diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-30 09:08:09 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-30 09:08:09 -0400 |
commit | 1d30b115d31df05530b20eb7dd348e21bc1a7711 (patch) | |
tree | 5a6acf70302a0310fc370e2aea811376c6a80985 /lib/state.h | |
parent | 95b4257a4df36516e192d72b12da8673f6af3081 (diff) | |
download | c++-1d30b115d31df05530b20eb7dd348e21bc1a7711.tar.gz c++-1d30b115d31df05530b20eb7dd348e21bc1a7711.tar.bz2 c++-1d30b115d31df05530b20eb7dd348e21bc1a7711.zip |
removed some unnessecary code
Diffstat (limited to 'lib/state.h')
-rw-r--r-- | lib/state.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/state.h b/lib/state.h index 550d100..3bbed39 100644 --- a/lib/state.h +++ b/lib/state.h @@ -58,8 +58,7 @@ class state_t { } void update_magnetization(const X_t& s_old, const X_t& s_new) { - M -= s_old; - M += s_new; + M += s_new - s_old; } void update_energy(const double& dE) { |