tomchor / Oceanostics.jl

Diagnostics for Oceananigans
https://tomchor.github.io/Oceanostics.jl/
MIT License
24 stars 9 forks source link

Some progress messengers don't follow intended formatting #71

Closed tomchor closed 2 years ago

tomchor commented 2 years ago

At the moment this is the output of the tests for the SingleLine and the Timed progress messengers:

┌ Info: Testing SingleLineProgressMessenger with closure
└   closure = (ScalarDiffusivity{ExplicitTimeDiscretization}(ν=1.0e-6, κ=1.0e-7), SmagorinskyLilly: C=0.16, Cb=1.0, Pr=1.0, ν=0.0, κ=0.0)
[ Info: Initializing simulation...
┌ Info: [000.00%] iter:      0,     time: 100.000 ms,     Δt:      10 ms,     wall time: 3.743 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
[ Info:     ... simulation initialization complete (4.036 ms)
[ Info: Executing initial time step...
[ Info:     ... initial time step complete (1.536 ms).
┌ Info: [000.00%] iter:      1,     time: 110.000 ms,     Δt:      10 ms,     wall time: 12.312 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      2,     time: 120.000 ms,     Δt:      10 ms,     wall time: 13.906 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      3,     time: 130.000 ms,     Δt:      10 ms,     wall time: 15.369 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      4,     time: 140.000 ms,     Δt:      10 ms,     wall time: 16.818 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      5,     time:     150 ms,     Δt:      10 ms,     wall time: 18.285 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      6,     time:     160 ms,     Δt:      10 ms,     wall time: 19.772 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      7,     time:     170 ms,     Δt:      10 ms,     wall time: 21.292 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      8,     time: 180.000 ms,     Δt:      10 ms,     wall time: 22.763 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
┌ Info: [000.00%] iter:      9,     time: 190.000 ms,     Δt:      10 ms,     wall time: 24.195 ms
└           └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m s⁻¹,     adv CFL: 0.00e+00,     νₘₐₓ: 1.00e-06m² s⁻¹
[ Info: Simulation is stopping. Model iteration 10 has hit or exceeded simulation stop iteration 10.
┌ Info: Testing TimedProgressMessenger with closure
└   closure = (ScalarDiffusivity{ExplicitTimeDiscretization}(ν=1.0e-6, κ=1.0e-7), SmagorinskyLilly: C=0.16, Cb=1.0, Pr=1.0, ν=0.0, κ=0.0)
[ Info: Initializing simulation...
[ Info: [000.00%] iteration:      0, time: 200.000 ms, Δt:      10 ms, wall time: 117.747 ms (0 seconds / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info:     ... simulation initialization complete (118.035 ms)
[ Info: Executing initial time step...
[ Info:     ... initial time step complete (1.639 ms).
[ Info: [000.00%] iteration:      1, time: 210.000 ms, Δt:      10 ms, wall time: 126.405 ms (8.658 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      2, time: 220.000 ms, Δt:      10 ms, wall time: 128.009 ms (1.603 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      3, time: 230.000 ms, Δt:      10 ms, wall time: 129.404 ms (1.395 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      4, time: 240.000 ms, Δt:      10 ms, wall time: 130.694 ms (1.291 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      5, time: 250.000 ms, Δt:      10 ms, wall time: 131.983 ms (1.289 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      6, time: 260.000 ms, Δt:      10 ms, wall time: 133.253 ms (1.270 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      7, time: 270.000 ms, Δt:      10 ms, wall time: 134.504 ms (1.251 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      8, time: 280.000 ms, Δt:      10 ms, wall time: 135.767 ms (1.263 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: [000.00%] iteration:      9, time: 290.000 ms, Δt:      10 ms, wall time: 136.999 ms (1.232 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00
[ Info: Simulation is stopping. Model iteration 10 has hit or exceeded simulation stop iteration 10.
[ Info: [000.00%] iteration:     10, time: 300.000 ms, Δt:      10 ms, wall time: 138.304 ms (1.305 ms / time step)          └── max(|u⃗|): [0.00e+00, 0.00e+00, 0.00e+00] m/s, CFL: 0.00e+00

Meaning the Timed messenger (which should be in two lines) appears as one line, and the SingleLine messenger (which should be one line) appears as two lines.