BUG: circular call to write for gradientEnergyFvPatchScalarField.C
In the virtual ::write(Ostream& os)
function the call to
os.writeEntry("value", *this)
uses the field <<
operator to write the value field, which in turn (via fvPatchField
) calls the ::write(Ostream&)
function again and gets locked in an infinite loop.
Current remedy: fields cannot be written to stream using the os.writeEntry(<name>, <field>)
form---instead use <field>.writeEntry(<name>, os)
. For the future, look to update the Ostream::writeEntry
function.
Note: need to check other boundary condition ::write(Ostream&)
functions