Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field manager namelist #1412

Merged
merged 6 commits into from
Dec 14, 2023
Merged

Conversation

uramirez8707
Copy link
Contributor

Description
Adds a namelist to specify whether or not use the yaml tables (use_field_table_yaml)
The code crashes if use_field_table_yaml = . true. and are not compiling with yaml.
The code crashes if both versions of the tables are present
Adds units test to test all the options

Fixes #1313

How Has This Been Tested?
CI

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

field_manager/field_manager.F90 Outdated Show resolved Hide resolved
field_manager/field_manager.F90 Outdated Show resolved Hide resolved
test_fms/field_manager/test_field_table_read.F90 Outdated Show resolved Hide resolved
@@ -829,7 +850,7 @@ end subroutine new_name
!! needed within various modules. The field manager does not
!! initialize any of those schemes however. It simply holds the
!! information and is queried by the appropriate module.
subroutine field_manager_init(nfields, table_name)
subroutine field_manager_init_legacy(nfields, table_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer field_manager_init_field_table_original or something like that. Legacy is not descriptive enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to read_field_table_legacy and read_field_table_yaml

@rem1776 rem1776 merged commit c3a322d into NOAA-GFDL:main Dec 14, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print message that indicates what version of the data_table and field_table is used
4 participants