Skip to content

Commit

Permalink
*Avoid re-rescaling T and p in MOM_EOS_Roquet_rho
Browse files Browse the repository at this point in the history
  Refactored MOM_EOS_Roquet_rho and MOM_EOS_Roquet_SpV to work directly with
conservative temperatures in [degC] and pressures in [Pa] rather than
normalizing them as in the original Roquet publication.  However, the
coefficients are still set using the values directly copied from that paper, but
rescaled where they are declared as parameters, enabling (or requiring)
compilers to precalculate them during compilation.  These changes are
mathematically equivalent but will change answers at roundoff with these two
equations of state, but they are not believed to be in use yet.
  • Loading branch information
Hallberg-NOAA authored and marshallward committed Apr 23, 2023
1 parent 4a3b6ac commit ae46d7d
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 435 deletions.
Loading

0 comments on commit ae46d7d

Please sign in to comment.