spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Log output of number of (log-)steps #463

Closed SpiritSuperUser closed 5 years ago

SpiritSuperUser commented 5 years ago

When the number of total steps is chosen smaller than the number of log steps, I would adapt the log output to avoid this Going to iterate 0 steps output:

2018-10-30 10:28:47 [ ALL ] [GNEB] [01] [--] ------------ Started GNEB Calculation ------------ 2018-10-30 10:28:47 [ ALL ] [GNEB] [01] [--] Going to iterate 0 steps 2018-10-30 10:28:47 [ ALL ] [GNEB] [01] [--] with 100 iterations per step 2018-10-30 10:34:24 [ ALL ] [GNEB] [01] [--] ------------ Terminated GNEB Calculation ------------ 2018-10-30 10:28:50 [ ALL ] [GNEB] [01] [--] Iteration 50 / 50

Instead, Going to iterate 1 step with 50 iterations per step should be displayed. Ie., the number of log steps should be min(#logsteps, #totalsteps)

GPMueller commented 5 years ago

Fixed with 150b52208a618218be5e42262d9fcf0eb6b10c12. The log messages regarding steps and iterations are now generally clearer.