Skip to content

Commit

Permalink
only ten reduction for degree>2
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Mar 20, 2018
1 parent 8b588c0 commit cc64070
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions include/ad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,20 +925,20 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,
}
}
}
if(paduprop_getrank() == 0) {
std::cout << "Done with covariance" << std::endl;
}
global_prof.begin("reduction");
if(paduprop_getrank() == 0) {
std::cout << "Start reduction" << std::endl;
}
paduprop_sum(cv_temp2);
if(paduprop_getrank() == 0) {
std::cout << "Done with reduction" << std::endl;
}

global_prof.end("reduction");
}
if(paduprop_getrank() == 0) {
std::cout << "Done with covariance" << std::endl;
}
global_prof.begin("reduction");
if(paduprop_getrank() == 0) {
std::cout << "Start reduction" << std::endl;
}
paduprop_sum(cv_temp2);
if(paduprop_getrank() == 0) {
std::cout << "Done with reduction" << std::endl;
}

global_prof.end("reduction");

cv0 = cv_temp + cv_temp2;
cv0.cutoff(cutrate);
Expand Down

0 comments on commit cc64070

Please sign in to comment.