mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: equationInitialResidualCondition - updated to support user-time, e.g. engineTime
This commit is contained in:
@ -92,7 +92,11 @@ equationInitialResidualCondition
|
||||
timeStart_(dict.lookupOrDefault("timeStart", -GREAT)),
|
||||
mode_(operatingModeNames.read(dict.lookup("mode")))
|
||||
{
|
||||
if (!fieldNames_.size())
|
||||
if (fieldNames_.size())
|
||||
{
|
||||
timeStart_ = obr.time().userTimeToTime(timeStart_);
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningInFunction
|
||||
<< "No fields supplied: deactivating" << endl;
|
||||
|
||||
Reference in New Issue
Block a user