Skip to content

Add ZFP compression and radiation diagnostic variables, update CO2 concentrations, make IDIFFPERTS=1 consistent#23

Open
grleung wants to merge 5 commits into
RAMSmodel:mainfrom
grleung:integration
Open

Add ZFP compression and radiation diagnostic variables, update CO2 concentrations, make IDIFFPERTS=1 consistent#23
grleung wants to merge 5 commits into
RAMSmodel:mainfrom
grleung:integration

Conversation

@grleung
Copy link
Copy Markdown

@grleung grleung commented Mar 31, 2026

In this PR:

  • add ZFP compression support from @freemansw1's code
  • add radiation diagnostic variables (OLR at top of radiation levels as added by @ldgrantcsu? in INCUS version of RAMS, shortwave/longwave heating) for radiation options 3-5
  • update CO2 concentrations for radiation options 3-5
  • update IDIFFPERTS=1 based on RCE energy conservation tests

grleung added 5 commits March 31, 2026 12:23
Added SW and LW heating rates (fthrdsw, fthrdlw) and outgoing longwave
at top radiative level (rlontop).

These are added from radiation options 3-5.
Now using 420ppm which is (alas) more accurate for 2020s.

Updated radiation options 3-5:
- Harrington (3): rad_drive.f90
- BUGSRAD (4): bugsrad/driver_read.f90
- RTE (5): rte-rrtmgp/interface/rams_rrtmgp_driver.f90

In the future we should probably make this an option that is easier to
change without recompiling, potentially adding to the RAMSIN.
Previously, when IDIFFPERTS=1 it used a different equation for THP vs
other scalars. After discussing with Leah Grant, this seems
inconsistent. Changed such that it uses the same equation for all
scalars. This change helps fix energy balance over long times in RCE
mode.

further fixes to boundary conditions for extra radiation variables FTHRDLW/FTHRDSW that I missed previously
- change RAMSIN.arctictest to include ACC_LT_VAR
- include sample include.mk.template with paths on my computer to show
  how to incorporate HDF5 plugins

Note that you need to set HDF5_PLUGIN_PATH in your .bashrc or equivalent
to ensure ZFP is working. I am working on some instructions for
installing all the relevant libraries with Spack which I hope to be able
to share soon.
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.

1 participant