The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

Commit 3acff042 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

only update_adapters before writing

parent a462c43d
......@@ -152,8 +152,6 @@ bool RichardsSimulation<Traits>::compute_time_step ()
DUNE_THROW(Dune::Exception,e);
}
update_adapters();
// controller reacts to outcome of solution
return controller->validate(exception);
}
......@@ -161,8 +159,6 @@ bool RichardsSimulation<Traits>::compute_time_step ()
template<typename Traits>
void RichardsSimulation<Traits>::run ()
{
update_adapters();
const auto t_start = controller->getTime();
write_data(t_start);
......@@ -172,7 +168,7 @@ void RichardsSimulation<Traits>::run ()
if(!compute_time_step()){
continue;
}
write_data(t_start);
if(controller->doStep()
......@@ -197,6 +193,7 @@ void RichardsSimulation<Traits>::update_adapters ()
template<typename Traits>
void RichardsSimulation<Traits>::write_data (RF time)
{
update_adapters();
if (inifile.get<bool>("output.vertexData")) {
vtkwriter->addVertexData(udgf,"head");
vtkwriter->addVertexData(fluxdgf,"flux");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment