Skip to content
Snippets Groups Projects
Commit cb9e6062 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files
parents 8e1164ee f60afc9e
No related branches found
No related tags found
No related merge requests found
......@@ -90,11 +90,16 @@ bool tnlPDESolver< Problem, TimeStepper > :: solve()
IndexType step( 0 );
IndexType allSteps = ceil( this -> finalTime / this -> snapshotTau );
this -> timeStepper -> setProblem( * ( this -> problem ) );
if( ! this -> problem -> makeSnapshot( t, step ) )
{
cerr << "Making the snapshot failed." << endl;
return false;
}
while( step < allSteps )
{
RealType tau = Min( this -> snapshotTau,
this -> finalTime - t );
this -> timeStepper -> setTau( tau );
//this -> timeStepper -> setTau( tau );
if( ! this -> timeStepper -> solve( t, t + tau ) )
return false;
step ++;
......
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