ocean-eddy-cpt / MOM6

Modular Ocean Model
Other
1 stars 1 forks source link

Remove hard-wired parameter in adjustEtaToFitBathymetry #19

Closed gustavo-marques closed 2 years ago

gustavo-marques commented 2 years ago

Subroutine adjustEtaToFitBathymetry had a hard-wired parameter (hTolerance = 0.1) controlling the tolerance when adjusting the thickness to fit the bathymetry. This patch adds a user-controlled parameter (THICKNESS_TOLERANCE), which replaces hTolerance. THICKNESS_TOLERANCE is only activated when ADJUST_THICKNESS=True.

As shown in the plot below, in NW2, the hard-wired parameter (hTolerance = 0.1) leads to an inconsistency in SSH between the prescribed values and the adjusted value in MOM_IC.nc.

image

This inconsistency is significantly reduced when THICKNESS_TOLERANCE = 0.01 m:

image