Closed marshallward closed 2 years ago
The companion MOM6 PR is here: https://github.com/NOAA-GFDL/MOM6/pull/5
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.
This patch updates the equation of state (EOS) calls in SIS2 to use the updated MOM EOS API:
EOS_end
is removed, since there is no longer anything to deallocateTHE EOS type is allocated prior to calling
EOS_init
, rather than relying on the internal allocation. This is becauseEOS_init
no longer expects a pointer, and no longer does this allocation.This patch may still work with the older version of MOM6, although the EOS pointer will be double-allocated.