diff options
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) { |