Skip to content

Running GFDL microphysics with hydrostatic option #1122

@benwgreen

Description

@benwgreen

Description

I am trying to run SFS (in hydrostatic mode) with GFDL microphysics. This required me to create my own suite definition file that is modeled on suite_FV3_GFS_v17_coupled_p8_ugwpv1.xml, but modified for GFDL MP instead of Thompson. When I run the code, I get a segmentation fault error that nicely traces to the following:
281: 2 0x000000000292887f fv_sat_adj_mp_wqs2_vect_() /scratch2/BMC/gsd-fv3-dev/Ben.Green/SFS_GFDL_HY_20250407/sorc/ufs_model.fd/FV3/ccpp/physics/physics/MP/GFDL/fv_sat_adj.F90:1278
281: 3 0x0000000002924dd3 fv_sat_adj_mp_fv_sat_adj_work_() /scratch2/BMC/gsd-fv3-dev/Ben.Green/SFS_GFDL_HY_20250407/sorc/ufs_model.fd/FV3/ccpp/physics/physics/MP/GFDL/fv_sat_adj.F90:733
On Line 1278 (note: this is Line 1260 in the source code, I had added some print statements), I determined that a NaN was being fed into "it", which when fed into the lookup tables caused them to crash.

I do not get this error in non-hydrostatic mode. Moreover, I added print statements and found that there were NaNs and zeros in the variable "peln", thus "dpln" on Line 340 is NaN or zero, thus "den" on Line 511 has divide by NaN / divide by zero, etc.

In short, the problem is that the variable "peln" does not appear to be sent to fv_sat_adj.F90 correctly.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Check out and compile the latest global-workflow (95be61086815f3a311b4385484b7f4436efa62e0) in hydrostatic mode. It is crucial that hydrostatic mode be used. It is not crucial to use the coupled model; it should happen for an atmosphere-only run with hydrostatic and GFDL MP.
  2. Change the SDF to one that uses GFDL microphysics.
  3. Run and see the crash...

Additional Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Machine: Hera
  • Compiler
  • Suite Definition File or Scheme: Custom (I can provide upon requests)
  • Reference other issues or PRs in other repositories that this is related to, and how they are related.

Output

In the log file:
281: 2 0x000000000292887f fv_sat_adj_mp_wqs2_vect_() /scratch2/BMC/gsd-fv3-dev/Ben.Green/SFS_GFDL_HY_20250407/sorc/ufs_model.fd/FV3/ccpp/physics/physics/MP/GFDL/fv_sat_adj.F90:1278
281: 3 0x0000000002924dd3 fv_sat_adj_mp_fv_sat_adj_work_() /scratch2/BMC/gsd-fv3-dev/Ben.Green/SFS_GFDL_HY_20250407/sorc/ufs_model.fd/FV3/ccpp/physics/physics/MP/GFDL/fv_sat_adj.F90:733

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions