From b1f122f274b832194d0140f228a6631fec73bbd8 Mon Sep 17 00:00:00 2001 From: Everard van Nieuwenburg Date: Wed, 19 Sep 2018 14:34:27 -0700 Subject: [PATCH] Correction in checkpointing --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index f79a7bf..b6f6163 100644 --- a/main.cpp +++ b/main.cpp @@ -83,7 +83,7 @@ int main(int argc, char **argv) { Psit = krylov_propagate(H, Psit, dt, m); // Checkpoint the wavefunction - if (i % checkpoint_every) { + if (i % checkpoint_every == 0) { std::ofstream wfoutfile; wfoutfile.open(wf_filename); wfoutfile << Psit << std::endl;