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

Fixes regional diagnostic error (issue # 409) by adding global attrib… #434

Merged
merged 7 commits into from
Jun 2, 2020

Conversation

ngs333
Copy link
Contributor

@ngs333 ngs333 commented May 28, 2020

Fixes errors in writing regional diagnostics using mask tables by registering global attribute "NumFilesInSet" and per-axis attribute "domain_decomposition" for regional X and Y axis.
NumFilesInSet is always set equal to 0. File diag_output.F90 was changed.

Fixes #409

How Has This Been Tested?
Ocean model output for regional diagnostic with mask tables were performed on Xanadu and 2020.02 code base (plus this fix) and compared.

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

…ute NumFilesInSet and per-axis attribute domain_decomposition for regional X and Y axis.
… and

per-axis attribute "domain_decomposition" for regional X and Y axis.
NumFilesInSet is always set equal to 0. Fixes errors in writing regional
diagnostics using mask tables.
@colingladueNOAA colingladueNOAA added the bug Issue/PR that reports or fixes a given discovered bug label May 28, 2020
@colingladueNOAA colingladueNOAA added this to the 2020.03 milestone May 28, 2020
… NumFilesInSet

and domain_decomposition attributes.
Copy link
Member

@thomas-robinson thomas-robinson left a comment

Choose a reason for hiding this comment

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

The global attribute should be moved so that it is only written for regional diagnostic files

…utes NumFilesInSet

and domain_decomposition for regional subaxis. Presence of NumFileInSet is checked so as
to add it only once. Relevant comments are added. This solves github issue  # 409.
…utes NumFilesInSet

and domain_decomposition for regional subaxis. Presence of NumFileInSet is checked so as
to add it only once. Relevant comments are added. This solves github issue  # 409.
…esInSet"

oce per regional diag file - in function diag_output_init. Function write_axis_meta_data is modified to register the attribute "domain_decomposition" for regional X and Y axis. NumFilesInSet is always set equal to 0. Appropriate comments are added.
@ngs333
Copy link
Contributor Author

ngs333 commented Jun 1, 2020

Per the decisions in the FMS2_IO meeting on Jun 1, I moved the registering of the global attribute NumFileInSet back tnto the function "diag_output_init()"

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR that reports or fixes a given discovered bug development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regional diagnostics are different when using Ocean mask_table
5 participants