Skip to content

How about setting up a vertical temperature penetration effect in the ocean and solve the NaN problem? #3382

Discussion options

You must be logged in to vote

The depth dependence should probably be implemented with exp(z), not exp(-z). I can't see the code you use to create your grid, but generally z increases upward (think of "z" as "height", z=0 at the surface and z is negative within the ocean).

One way to check this is to plot your forcing function temperature_forcing as a function of z to inspect that it behaves as expected.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wpan081
Comment options

Answer selected by wpan081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants