Hello Kai,

you should use the class "CheckPointTimeLoop" for this.

It is in the same header as the regular time loop so you don't need to include 
anything else.


Just replace "TimeLoop" by "CheckPointTimeLoop" in your problem or main file 
(or wherever it is used).


Best regards

Kilian

________________________________
Von: Dumux <dumux-boun...@listserv.uni-stuttgart.de> im Auftrag von Kai Wendel 
<kaiwende...@googlemail.com>
Gesendet: Samstag, 14. Dezember 2019 15:54:34
An: dumux@listserv.uni-stuttgart.de
Betreff: [DuMuX] error message while trying to implement "EpisodeLength"

Hello,

I tried to implement an EpisodeLength parameter into a simulation in order to 
reduce the amount of output files. I used the remediations scenarios example 
from the dumux lecture. By compiling, I got the following error message:

/home/kaiw/DUMUX_10/dumux-degassing/appl/degassing/main.cc:125:19: error: 
‘using element_type = class Dumux::TimeLoop<double> {aka class 
Dumux::TimeLoop<double>}’ has no member named ‘setPeriodicCheckPoint’
         
timeLoop->setPeriodicCheckPoint(getParam<Scalar>("TimeLoop.EpisodeLength"));
                   ^~~~~~~~~~~~~~~~~~~~~
/home/kaiw/DUMUX_10/dumux-degassing/appl/degassing/main.cc:165:62: error: 
‘using element_type = class Dumux::TimeLoop<double> {aka class 
Dumux::TimeLoop<double>}’ has no member named ‘isCheckPoint’
         if (!hasParam("TimeLoop.EpisodeLength") || timeLoop->isCheckPoint() || 
timeLoop->finished() || timeLoop->timeStepIndex() == 1)
                                                              ^~~~~~~~~~~~
In file included from 
/home/kaiw/DUMUX_10/dumux/dumux/io/grid/gridmanager.hh:32:0,
                 from 
/home/kaiw/DUMUX_10/dumux-degassing/appl/degassing/main.cc:49:
/home/kaiw/DUMUX_10/dumux/dumux/io/grid/gridmanager_ug.hh: In instantiation of 
‘void Dumux::GridManager<Dune::UGGrid<dim> >::preProcessing_(const string&) 
[with int dim = 2; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/kaiw/DUMUX_10/dumux/dumux/io/grid/gridmanager_ug.hh:76:27:   required 
from ‘void Dumux::GridManager<Dune::UGGrid<dim> >::init(const string&) [with 
int dim = 2; std::__cxx11::string = std::__cxx11::basic_string<char>]’

Is there anything to be activated?
Greetings,
Kai
_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to