E3SM-Project / polaris

Testing and analysis for OMEGA, MPAS-Ocean, MALI and MPAS-Seaice
BSD 3-Clause "New" or "Revised" License
6 stars 13 forks source link

Only print task baseline status if basline compared #133

Closed xylar closed 1 year ago

xylar commented 1 year ago

Before this merge, we were incorrectly printing a message that baselines passed when no baseline comparison was made. With this fix, a message about baselines is only printed if baseline comparisons were performed.

Checklist

closes #132

xylar commented 1 year ago

Testing

I ran the inertial_gravity_wave test (without a baseline) on Chrysalis and now see:

ocean/planar/inertial_gravity_wave
  * step: init_200km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_200km
          execution:        SUCCESS
          runtime:          0:00:03
  * step: init_100km
          execution:        SUCCESS
          runtime:          0:00:01
  * step: forward_100km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: init_50km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_50km
          execution:        SUCCESS
          runtime:          0:00:16
  * step: init_25km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: forward_25km
          execution:        SUCCESS
          runtime:          0:00:22
  * step: analysis
          execution:        SUCCESS
          runtime:          0:00:00
  task execution:   SUCCESS
  task runtime:     0:01:01
Task Runtimes:
0:01:01 PASS ocean/planar/inertial_gravity_wave
Total runtime: 0:01:01
PASS: All passed successfully!

When I run with a baseline, I see:

ocean/planar/inertial_gravity_wave
  * step: init_200km
          execution:        SUCCESS
          runtime:          0:00:03
  * step: forward_200km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:03
  * step: init_100km
          execution:        SUCCESS
          runtime:          0:00:01
  * step: forward_100km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:07
  * step: init_50km
          execution:        SUCCESS
          runtime:          0:00:02
  * step: forward_50km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:17
  * step: init_25km
          execution:        SUCCESS
          runtime:          0:00:07
  * step: forward_25km
          execution:        SUCCESS
          baseline comp.:   PASS
          runtime:          0:00:22
  * step: analysis
          execution:        SUCCESS
          runtime:          0:00:00
  task execution:   SUCCESS
  baseline comp.:   PASS
  task runtime:     0:01:04
Task Runtimes:
0:01:04 PASS ocean/planar/inertial_gravity_wave
Total runtime: 0:01:05
PASS: All passed successfully
cbegeman commented 1 year ago

@xylar Thanks for making this fix!