From 9d731bc4898751972379db387835b7414d79eaa4 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Tue, 5 Oct 2021 16:55:25 +0200 Subject: [PATCH] Change the sign of the returned energy --- atrip.org | 3 ++- src/atrip/Atrip.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/atrip.org b/atrip.org index 43ec364..e1c24fc 100644 --- a/atrip.org +++ b/atrip.org @@ -2407,7 +2407,8 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { LOG(0, "atrip:flops") << nIterations * doublesFlops / chrono["doubles"].count() << "\n"; - return { energy }; + // TODO: change the sign in the getEnergy routines + return { - globalEnergy }; } #+end_src diff --git a/src/atrip/Atrip.cxx b/src/atrip/Atrip.cxx index 85fe35e..905a513 100644 --- a/src/atrip/Atrip.cxx +++ b/src/atrip/Atrip.cxx @@ -533,7 +533,8 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { LOG(0, "atrip:flops") << nIterations * doublesFlops / chrono["doubles"].count() << "\n"; - return { energy }; + // TODO: change the sign in the getEnergy routines + return { - globalEnergy }; } // Main:1 ends here