BUG: timeVaryingMapped: enforce re-evaluation when not providing initial values

This commit is contained in:
mattijs 2013-11-17 19:21:32 +00:00
parent 474785b8e7
commit 867d5088a7
2 changed files with 10 additions and 2 deletions

View File

@ -120,7 +120,11 @@ timeVaryingMappedFixedValueFvPatchField
}
else
{
updateCoeffs();
// Note: we use evaluate() here to trigger updateCoeffs followed
// by re-setting of fvatchfield::updated_ flag. This is
// so if first use is in the next time step it retriggers
// a new update.
this->evaluate(Pstream::blocking);
}
}

View File

@ -113,7 +113,11 @@ timeVaryingMappedFixedValuePointPatchField
}
else
{
updateCoeffs();
// Note: use evaluate to do updateCoeffs followed by a reset
// of the pointPatchField::updated_ flag. This is
// so if first use is in the next time step it retriggers
// a new update.
pointPatchField<Type>::evaluate(Pstream::blocking);
}
}