Diag manager: Allow scalar static variables #1526
Labels
enhancement
Issue/PR for a modification that increases performance, improves syntax, or adds functionality.
help wanted
Is your feature request related to a problem? Please describe.
The current register_static_field interface does not allow for scalar static variables.
FMS/diag_manager/diag_manager.F90
Lines 487 to 492 in 42f8506
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
The text was updated successfully, but these errors were encountered: