Skip to content

Write netcdf axis variables using the same real kind as data variables#283

Merged
laurenchilutti merged 1 commit into
NOAA-GFDL:dev/emcfrom
DusanJovic-NOAA:axis_type
Sep 26, 2023
Merged

Write netcdf axis variables using the same real kind as data variables#283
laurenchilutti merged 1 commit into
NOAA-GFDL:dev/emcfrom
DusanJovic-NOAA:axis_type

Conversation

@DusanJovic-NOAA
Copy link
Copy Markdown
Contributor

Description

Currently, the axis data type in restart files is always "double" regardless of the data type (float vs. double) of used for data variables. This PR updates io routines so that axis data type corresponds to the actual precision used for data variables.
This change is necessary to make restart files bit-identical to the restart files written out by the write grid component in UFS weather model.

Fixes # (issue)
NOAA-EMC/ufsatm#696

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note
any relevant details for your test configuration (e.g. compiler, OS). Include
enough information so someone can reproduce your tests.

Full regression test of the ufs weather model passed on Hera (both Intel and GNU compilers) and Orion.

Checklist:

Please check all whether they apply or not

  • 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

@jkbk2004
Copy link
Copy Markdown

@laurenchilutti All tests are done at ufs-community/ufs-weather-model#1903. Please, go ahead to merge this pr.

@laurenchilutti laurenchilutti merged commit 9616e4e into NOAA-GFDL:dev/emc Sep 26, 2023
@DusanJovic-NOAA DusanJovic-NOAA deleted the axis_type branch September 26, 2023 12:30
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.

4 participants