changed: suppress all output in RK solver if not standalone

This commit is contained in:
Arne Morten Kvarving 2022-02-16 11:10:56 +01:00
parent 5618e4b000
commit bbc3333380

View File

@ -90,11 +90,18 @@ public:
//! \copydoc ISolver::solveStep(TimeStep&)
virtual bool solveStep(TimeStep& tp)
{
int msgLevel = 0;
if (alone)
solver.getProcessAdm().cout <<"\n step = "<< tp.step <<" time = "<< tp.time.t << std::endl;
else
std::swap(SIMadmin::msgLevel, msgLevel);
Vectors stages;
return this->solveRK(stages, tp);
bool result = this->solveRK(stages, tp);
if (!alone)
std::swap(SIMadmin::msgLevel, msgLevel);
return result;
}
//! \brief Applies the Runge-Kutta scheme.