Commit 7848953b authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: equationInitialResidualCondition - updated to support user-time, e.g. engineTime

parent eed3b770
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment