Skip to content

Commit

Permalink
added timers
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Mar 30, 2018
1 parent 975c86d commit c9f27c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,
if(paduprop_getrank() == 0) {
std::cout << "Obtaining tensors" << std::endl;
}
global_prof.begin("propagateH");
switch(degree) {
case 3:
// drivers.t3s_t2s_t1s_driver(m0, J, H, T);
Expand Down Expand Up @@ -821,6 +822,7 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,
std::cout << "Invalid option" << std::endl;
exit(-1);
}
global_prof.end("propagateH");
if(paduprop_getrank() == 0) {
std::cout << "Done with tensors" << std::endl;
}
Expand All @@ -829,6 +831,7 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,
std::cout << "Propagating mean" << std::endl;
}
// Propagate mean
global_prof.begin("propagateMU");
drivers.integrate(m0);

if (degree > 1) {
Expand All @@ -840,12 +843,14 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,
}
}
}
global_prof.end("propagateMU");

if(paduprop_getrank() == 0) {
std::cout << "Propagating covariance" << std::endl;
}

// Propagate covariance
global_prof.begin("propagateCOV");

for (size_t pn = 0; pn < dim; ++pn) {
for (size_t pm = 0; pm < dim; ++pm) {
Expand Down Expand Up @@ -949,6 +954,7 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,

cv0 = cv_temp + cv_temp2;
// cv0.cutoff(cutrate);
global_prof.end("propagateCOV");
global_prof.end("propagateAD");
}

Expand Down

0 comments on commit c9f27c5

Please sign in to comment.