mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
add output of time measurements
This commit is contained in:
parent
272f010047
commit
115dd87ba3
@ -104,7 +104,6 @@ void AdvectionModule::simulate(double dt) {
|
|||||||
|
|
||||||
// HACK: constant flux for this moment imported from R runtime
|
// HACK: constant flux for this moment imported from R runtime
|
||||||
|
|
||||||
// auto parse_start = std::chrono::steady_clock::now();
|
|
||||||
// RInsidePOET &R = RInsidePOET::getInstance();
|
// RInsidePOET &R = RInsidePOET::getInstance();
|
||||||
// const auto flux_list =
|
// const auto flux_list =
|
||||||
// Rcpp::as<Rcpp::DataFrame>(R.parseEval("mysetup$advection$const_flux"));
|
// Rcpp::as<Rcpp::DataFrame>(R.parseEval("mysetup$advection$const_flux"));
|
||||||
@ -167,8 +166,11 @@ void AdvectionModule::simulate(double dt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
t_field = field_vec;
|
t_field = field_vec;
|
||||||
|
double end_t = MPI_Wtime();
|
||||||
|
|
||||||
this->transport_t += MPI_Wtime() - start_t;
|
MSG("Advection took " + std::to_string(end_t - start_t) + "s");
|
||||||
|
|
||||||
|
this->transport_t += end_t - start_t;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdvectionModule::initializeParams(RInsidePOET &R) {
|
void AdvectionModule::initializeParams(RInsidePOET &R) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user