diff --git a/dumux/common/timeloop.hh b/dumux/common/timeloop.hh index 1d4d5c093752fff37efa6c50dc0a65f9205737e8..3f2e02dad9c74e1c8d7d30cb3dbc1ef7e02e4c0c 100644 --- a/dumux/common/timeloop.hh +++ b/dumux/common/timeloop.hh @@ -29,6 +29,7 @@ #include <dune/common/float_cmp.hh> #include <dune/common/timer.hh> +#include <dune/common/parallel/collectivecommunication.hh> #include <dune/common/parallel/mpihelper.hh> #include <dumux/common/parameters.hh> @@ -275,7 +276,7 @@ public: /*! * \brief Print final status and stops tracking the time. */ - template <class Communicator> + template< class Communicator = Dune::CollectiveCommunication<typename Dune::MPIHelper::MPICommunicator> > void finalize(const Communicator& comm = Dune::MPIHelper::getCollectiveCommunication()) { timer_.stop();