Change the sign of the returned energy

This commit is contained in:
Alejandro Gallo 2021-10-05 16:55:25 +02:00
parent 185da8913e
commit 9d731bc489
2 changed files with 4 additions and 2 deletions

View File

@ -2407,7 +2407,8 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
LOG(0, "atrip:flops") LOG(0, "atrip:flops")
<< nIterations * doublesFlops / chrono["doubles"].count() << "\n"; << nIterations * doublesFlops / chrono["doubles"].count() << "\n";
return { energy }; // TODO: change the sign in the getEnergy routines
return { - globalEnergy };
} }
#+end_src #+end_src

View File

@ -533,7 +533,8 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
LOG(0, "atrip:flops") LOG(0, "atrip:flops")
<< nIterations * doublesFlops / chrono["doubles"].count() << "\n"; << nIterations * doublesFlops / chrono["doubles"].count() << "\n";
return { energy }; // TODO: change the sign in the getEnergy routines
return { - globalEnergy };
} }
// Main:1 ends here // Main:1 ends here