mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
Fix diffusion and chem field update order in RunMasterLoop
This commit is contained in:
parent
103b26a097
commit
f4661a591c
@ -259,8 +259,6 @@ static Rcpp::List RunMasterLoop(const RuntimeParameters ¶ms,
|
|||||||
|
|
||||||
chem.simulate(dt);
|
chem.simulate(dt);
|
||||||
|
|
||||||
diffusion.getField().update(chem.getField());
|
|
||||||
|
|
||||||
// MDL master_iteration_end just writes on disk state_T and
|
// MDL master_iteration_end just writes on disk state_T and
|
||||||
// state_C after every iteration if the cmdline option
|
// state_C after every iteration if the cmdline option
|
||||||
// --ignore-results is not given (and thus the R variable
|
// --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);
|
*global_rt_setup, trans_field, chem_field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
diffusion.getField().update(chem.getField());
|
||||||
|
|
||||||
MSG("End of *coupling* iteration " + std::to_string(iter) + "/" +
|
MSG("End of *coupling* iteration " + std::to_string(iter) + "/" +
|
||||||
std::to_string(maxiter));
|
std::to_string(maxiter));
|
||||||
MSG();
|
MSG();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user