Commit b8736302 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#859 Cosmetics.

parent 78fca46d
......@@ -91,19 +91,18 @@ namespace MoReFEM
case policy_to_adapt_time_step::decreasing:
{
if (NumericNS::AreEqual(time_step, minimum_time_step))
{
throw Exception("Your simulation tries to decrease the time step to less than the minimum time step allowed.",
throw Exception("Your simulation tries to decrease the time step to less than the minimum "
"time step allowed.",
__FILE__, __LINE__);
}
if (time_step > minimum_time_step)
{
time_step = std::max(0.5 * time_step, minimum_time_step);
if (mpi.IsRootProcessor())
{
std::cout << std::endl << "Time step subiteration with time step " << time_step << "." << std::endl;
}
std::cout << std::endl << "Time step subiteration with time step " << time_step
<< "." << std::endl;
}
break;
}
......@@ -127,9 +126,8 @@ namespace MoReFEM
time_step = new_time_step;
if (mpi.IsRootProcessor())
{
std::cout << std::endl << "Time step re-adaptation with time step " << new_time_step << "." << std::endl;
}
std::cout << std::endl << "Time step re-adaptation with time step " << new_time_step
<< "." << std::endl;
}
break;
}
......
Markdown is supported
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