change according to comments in pullrequest

This commit is contained in:
hnil
2019-05-23 09:13:45 +02:00
committed by Atgeirr Flø Rasmussen
parent 3a56213ed8
commit ee482e87a6
4 changed files with 17 additions and 25 deletions

View File

@@ -401,10 +401,7 @@ public:
*/
void setTimeStepSize(Scalar value)
{
if( not(value>0)){
std::cout << "Time step set to zero" << std::endl;
}
timeStepSize_ = value;
timeStepSize_ = value;
}
/*!
@@ -448,7 +445,7 @@ public:
*/
bool finished() const
{
assert(timeStepSize_ > 0.0);
assert(timeStepSize_ >= 0.0);
Scalar eps =
std::max(Scalar(std::abs(this->time())), timeStepSize())
*std::numeric_limits<Scalar>::epsilon()*1e3;
@@ -765,7 +762,7 @@ public:
else
// ask the problem to provide the next time step size
dt = std::min(maxTimeStepSize(), problem_->nextTimeStepSize());
assert(dt>0);
setTimeStepSize(dt);
}
prePostProcessTimer_.stop();