diff --git a/src/poet.cpp b/src/poet.cpp index 68c39592f..7dac258af 100644 --- a/src/poet.cpp +++ b/src/poet.cpp @@ -259,8 +259,6 @@ static Rcpp::List RunMasterLoop(const RuntimeParameters ¶ms, chem.simulate(dt); - diffusion.getField().update(chem.getField()); - // MDL master_iteration_end just writes on disk state_T and // state_C after every iteration if the cmdline option // --ignore-results is not given (and thus the R variable @@ -273,6 +271,8 @@ static Rcpp::List RunMasterLoop(const RuntimeParameters ¶ms, *global_rt_setup, trans_field, chem_field); } + diffusion.getField().update(chem.getField()); + MSG("End of *coupling* iteration " + std::to_string(iter) + "/" + std::to_string(maxiter)); MSG();