Skip to content
Snippets Groups Projects
Commit fdcfb31c authored by Robert Kloefkorn's avatar Robert Kloefkorn
Browse files

added flag to stop exactly at endTime.

parent f598611b
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,9 @@ public:
}
}
// true if last time step should match end time
const bool stopAtEndTime = ParameterType::getValue("femdg.stopatendtime", bool(false) );
//******************************
//* Time Loop *
//******************************
......@@ -361,6 +364,10 @@ public:
<<", grid size: " << grSize << std::endl;
}
// next advance should not exceed endtime
if( stopAtEndTime )
tp.provideTimeStepEstimate( (endTime - tp.time()) );
// next time step is prescribed by fixedTimeStep
// it fixedTimeStep is not 0
if ( fixedTimeStep > 1e-20 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment