ufs-community / ufs-srweather-app

UFS Short-Range Weather Application
Other
55 stars 116 forks source link

The weather model hash should be updated to the latest main branch #1049

Closed mkavulich closed 5 months ago

mkavulich commented 5 months ago

Description

The hash for ufs-weather-model in SRW has fallen behind the latest development by several months, and there are some major incompatibilities with the current workflow that need to be solved. This is a problem for a project I'm working with (UFS_FIRE) which has capabilities that are even with the latest weather model development, and so will not work in the latest SRW workflow.

Solution

The weather model hash should be updated to the latest hash (8518c2c or later) of ufs-weather-model. This will require at least three additional fixes in order to work correctly:

Requirements**

The SRW should build and run with the latest hash (8518c2c or later) of ufs-weather-model

Acceptance Criteria (Definition of Done)

The SRW should build and run with the latest hash (8518c2c or later) of ufs-weather-model

MichaelLueken commented 5 months ago

@mkavulich - I have started updating the UFS_UTILS, UPP, and ufs-weather-model hashes in my feature/hash_update branch. I have the majority of the necessary modification made and the fundamental and comprehensive tests have successfully passed.

I will need to update the ufs-weather-model hash to 8518c2c and apply the updates for spack-stack v.1.5.1 and retest, but that should be easier than the majority of the other changes that I have already worked through in this branch.

MichaelLueken commented 5 months ago

@mkavulich - I have updated my feature/hash_update branch to 24d83ca. This updates the ufs-weather-model hash to 8518c2c, the UPP hash to 945cb2c, and updates the spack-stack version to 1.5.1. These have been tested on Hercules, where the fundamental tests have passed.

I will need to run the comprehensive tests, and also ensure that the SRW builds on other machines, but this is a good start.

mkavulich commented 5 months ago

@MichaelLueken Thanks for working on this! It looks like your changes are close to mine that I've already tested. My only recommendation would be to remove the ush/set_ozone_param.py file entirely since it's now just a bunch of additional unneeded logic; see my commit here: https://github.com/ufs-community/ufs-srweather-app/commit/c9217d7a1f2caa434b3d9672fb3504766b92b46d

MichaelLueken commented 5 months ago

Thans for recommendation on removing the ush/set_ozone_param.py file, @mkavulich! I have applied this change in my working copy and am testing it now.

I've also pushed a small update for Jet. The modulefiles/build_jet_intel.lua file has load("prod-util/1.2.2"). The updated spack-stack doesn't have prod-util, but this is a remnant from when RRFS components were being merged to the SRW. This module is required for GSI, but since GSI isn't in the SRW App, it is okay to remove.