NOAA-GFDL / FMS

GFDL's Flexible Modeling System
Other
87 stars 128 forks source link

Diag manager: Allow scalar static variables #1526

Open uramirez8707 opened 1 month ago

uramirez8707 commented 1 month ago

Is your feature request related to a problem? Please describe. The current register_static_field interface does not allow for scalar static variables. https://github.com/NOAA-GFDL/FMS/blob/42f8506512e1b5b43982320f5b9d4ca1ca9cbebd/diag_manager/diag_manager.F90#L487-L492

This will force users to have a dummy axis of size 1 which is terrible practice. https://github.com/uramirez8707/FMS/blob/008ebd513cd170c223d6d50be9ff36bee156e3e3/test_fms/diag_manager/test_output_every_freq.F90#L50 https://github.com/uramirez8707/FMS/blob/008ebd513cd170c223d6d50be9ff36bee156e3e3/test_fms/diag_manager/test_output_every_freq.F90#L53

Describe the solution you'd like The register_static_field should be expanded to allow for scalar static variables.

Describe alternatives you've considered Forcing people to pass in a dummy axis of size 1

Additional context N/A