Skip to content

(*)Fix nonBousinesq handling of the case when sea level drops below the seafloor - #1161

Open
Hallberg-NOAA wants to merge 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:intBTcont_nonBous_limit_fix
Open

(*)Fix nonBousinesq handling of the case when sea level drops below the seafloor#1161
Hallberg-NOAA wants to merge 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:intBTcont_nonBous_limit_fix

Conversation

@Hallberg-NOAA

Copy link
Copy Markdown
Member

Corrected the handling of sea surface heights dropping below the bathymetry in non-Boussinesq mode when INTEGRAL_BT_CONTINUITY is true. In non-Boussinesq mode, the eta variable in btstep() is the total depth of the water column, but the error handling in this case had been treating as though it were the sea surface height anomaly. As a result, there could be non-Boussinesq cases where the limiting was not being applied until eta is more than the depth of the ocean below the topography, but this could change drastically if the reference geopotential for the bathymetry (set via REFERENCE_HEIGHT) is non-zero. The revised code now sets the non-Boussinesq limit on eta to 0, as it should be. There is no bug-recovery flag in this case because this is an instance that corrects a situation that would have been failing previously with a fatal error.

This commit also correct the descriptions in several places of the eta variable that is passed into btstep().

All answers are bitwise identical in cases that were working previously.

  Corrected the handling of sea surface heights dropping below the bathymetry in
non-Boussinesq mode when INTEGRAL_BT_CONTINUITY is true.  In non-Boussinesq
mode, the eta variable in btstep() is the total depth of the water column, but
the error handling in this case had been treating as though it were the sea
surface height anomaly.  As a result, there could be non-Boussinesq cases where
the limiting was not being applied until eta is more than the depth of the ocean
below the topography, but this could change drastically if the reference
geopotential for the bathymetry (set via REFERENCE_HEIGHT) is non-zero.  The
revised code now sets the non-Boussinesq limit on eta to 0, as it should be.
There is no bug-recovery flag in this case because this is an instance that
corrects a situation that would have been failing previously with a fatal
error.

  This commit also correct the descriptions in several places of the eta
variable that is passed into btstep.

  All answers are bitwise identical in cases that were working
previously.
@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working documentation Improvements or additions to documentation bugfix Fixes an existing bug and removed bug Something isn't working labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes an existing bug documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant