From 84295bbd28e0082943d9775b36a6097830360fe1 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 4 Sep 2019 14:17:00 -0400 Subject: added option to not check convergence of magnetization at all --- src/new_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/new_model.cpp b/src/new_model.cpp index fdfc128..1886aa0 100644 --- a/src/new_model.cpp +++ b/src/new_model.cpp @@ -477,7 +477,7 @@ int main (int argc, char *argv[]) { double err = mi.A2.serr(); double val2 = stiffness.avg(); double err2 = stiffness.serr(); - if (err / mi.A2.avg() <= εmag && err2 / val2 < εstiff) { + if ((err / mi.A2.avg() <= εmag || εmag == 0) && err2 / val2 < εstiff) { break; } } -- cgit v1.2.3-70-g09d2