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

[FEATURE REQUEST] Investigate saving REAL*8 fields to the restart file #111

Closed
yantosca opened this issue Oct 24, 2019 · 4 comments
Closed
Assignees
Labels
category: Feature Request New feature or request topic: HEMCO Submodule Related to HEMCO

Comments

@yantosca
Copy link
Contributor

Overview

We are looking into removing differences between GEOS-Chem runs that execute over a long period, and runs that are restarted. One of the reasons for these differences might be insufficient precision in the GEOS-Chem restart files. We can experiment with saving REAL*8 data to the SpeciesRst collection and see if this helps to improve the situation.

@yantosca yantosca added the category: Feature Request New feature or request label Oct 24, 2019
@msulprizio msulprizio added this to the 13.0.0 milestone Mar 31, 2020
@yantosca
Copy link
Contributor Author

yantosca commented Aug 17, 2020

While the History diagnostics had derived types that would allow for carrying diagnostics as REAL*8, the I/O code (in History/history_netcdf_mod.F90 would cast everything to REAL*4 and then write it to netCDF. This situation has been corrected in commit 652bb23. Several modifications were made to the following modules:

  • Headers/registry_mod.F90
  • Headers/state_diag_mod.F90
  • History/history_mod.F90
  • History/history_netcdf_mod.F90

Specifically, we now have included a variable within derived-type objects that indicates the KIND value (i..e. REAL*8 or REAL*4) for the netCDF output. Prior to this, it was always assumed that netCDF variables would be written to disk with the same KIND value with which they were defined.

NOTE: Similar modifications need to be made in HEMCO in order to read in REAL*8 data. Right now HEMCO can only read in REAL*4 data from netCDF files.

@msulprizio msulprizio removed this from the 13.0.0 milestone Aug 28, 2020
@msulprizio
Copy link
Contributor

This will likely go into an early GEOS-Chem 13 version

@yantosca
Copy link
Contributor Author

yantosca commented Nov 20, 2020

The GCC History can now save output as REAL*4 or REAL*8 (cf. 6e004b7 merge).

However, at present, HEMCO can still only read and carry REAL*4 data in its data structures. This needs to be resolved first before this issue is closed.

@yantosca
Copy link
Contributor Author

yantosca commented Jan 7, 2021

The remaining work needs to be done on the HEMCO side, as the GEOS-Chem "Classic" History component can now write REAL*8 fields to disk.

Therefore, I am closing out this issue, and have opened a new feature request (geoschem/HEMCO#69) on the HEMCO repository issue tracer,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Feature Request New feature or request topic: HEMCO Submodule Related to HEMCO
Projects
None yet
Development

No branches or pull requests

3 participants