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.
This inconsistency is significantly reduced when THICKNESS_TOLERANCE = 0.01 m:
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.
This inconsistency is significantly reduced when THICKNESS_TOLERANCE = 0.01 m: