This commit is contained in:
Melanie Darcis 2010-10-13 15:00:04 +00:00 committed by Andreas Lauser
parent b442580b0c
commit 7e5c2d8846

View File

@ -69,13 +69,13 @@ int main(int argc, char** argv)
TimeManager timeManager; TimeManager timeManager;
// instantiate the problem on the leaf grid // instantiate the problem on the leaf grid
Problem problem(timeManager, gridPtr->leafView()); Problem problem(timeManager, gridPtr->leafView()); /*@\label{tutorial-coupled:instantiate-problem}@*/
timeManager.init(problem, 0, dt, tEnd, !restart); timeManager.init(problem, 0, dt, tEnd, !restart);
// load the some previously saved state from disk // load the some previously saved state from disk
if (restart) if (restart)
problem.restart(restartTime); problem.restart(restartTime); /*@\label{tutorial-coupled:restart}@*/
// run the simulation // run the simulation
timeManager.run(); timeManager.run(); /*@\label{tutorial-coupled:execute}@*/
return 0; return 0;
} }
catch (Dune::Exception &e) { /*@\label{tutorial-coupled:catch-dune-exceptions}@*/ catch (Dune::Exception &e) { /*@\label{tutorial-coupled:catch-dune-exceptions}@*/