NOAA-GFDL / SIS2

NOAA-GFDL's Sea Ice Simulator version 2
Other
16 stars 43 forks source link

MOM EOS pointer API update #159

Closed marshallward closed 2 years ago

marshallward commented 2 years ago

This patch updates the equation of state (EOS) calls in SIS2 to use the updated MOM EOS API:

This patch may still work with the older version of MOM6, although the EOS pointer will be double-allocated.

marshallward commented 2 years ago

The companion MOM6 PR is here: https://github.com/NOAA-GFDL/MOM6/pull/5

Hallberg-NOAA commented 2 years ago

This PR has been tested with the existing version of MOM6, and it works, reproducing all existing answers and output.

Careful inspection of the MOM6 code shows that there will be no double-allocation of EOS pointers.