diff --git a/dumux/common/timeloop.hh b/dumux/common/timeloop.hh index e75adb9b0f19ee6bad69a3e78135b266ab92638a..3144c45db1a3f62268806cee3be32ddfc39e6971 100644 --- a/dumux/common/timeloop.hh +++ b/dumux/common/timeloop.hh @@ -447,11 +447,11 @@ public: /*! * \brief Set a periodic check point * \note You can query if we are at a time check point with isCheckPoint() - * \param interval Set a periodic checkout every [interal] seconds + * \param interval Set a periodic checkout every [interval] seconds * \param offset time from which the periodic check points are supposed to start (simulation time) * the first checkpoint will be at time = offset. - * \note If offset is in the past the first checkpoint will be at the next - * periodic heck point greater or equal than time + * \note If offset is in the past the first check point will be at the next + * periodic check point greater or equal than time * \note This also updates the time step size and potentially reduces the time step size to meet the next check point */ void setPeriodicCheckPoint(Scalar interval, Scalar offset = 0.0) diff --git a/test/common/timeloop/test_timeloop.cc b/test/common/timeloop/test_timeloop.cc index c7294cc9f3bbab913f1a26780eae718df873617c..939fb14a89e0e8a6e81ece0a12febb96c9771c24 100644 --- a/test/common/timeloop/test_timeloop.cc +++ b/test/common/timeloop/test_timeloop.cc @@ -31,8 +31,8 @@ int main(int argc, char* argv[]) try if (std::abs(timeLoop.timeStepSize()-dt) > 1e-15) DUNE_THROW(Dune::InvalidStateException, "Wrong time step size!"); - timeLoop.setMaxTimeStepSize(0.033333333333333); - if (std::abs(timeLoop.timeStepSize()-0.033333333333333) > 1e-15) + timeLoop.setMaxTimeStepSize(0.03333333333333333); + if (std::abs(timeLoop.timeStepSize()-0.03333333333333333) > 1e-15) DUNE_THROW(Dune::InvalidStateException, "Wrong time step size!"); timeLoop.start(); // starts the timer