Skip to content

Fix double diffusion density ratio (not critical, since double diffusion is not used by default )#943

Open
patrickscholz wants to merge 1 commit into
mainfrom
workbench_fix_double_diffusion_gradient
Open

Fix double diffusion density ratio (not critical, since double diffusion is not used by default )#943
patrickscholz wants to merge 1 commit into
mainfrom
workbench_fix_double_diffusion_gradient

Conversation

@patrickscholz

Copy link
Copy Markdown
Contributor

Fix double diffusion density ratio using vertical gradients instead of absolute T/S

ddmix computed alphaDT and betaDS from single-level absolute tracer values, making Rrho a ratio of absolute T and S rather than of their vertical density gradients. This triggered salt-fingering and diffusive-convection mixing continuously across virtually the entire ocean whenever double_diffusion=.true., regardless of actual stratification stability.

Replace with the gradient form (T(nz-1)-T(nz), S(nz-1)-S(nz)) so that the scheme activates only at interfaces where the destabilising gradient exceeds the stabilising one, as the physics requires.

Note: double diffusion is off by default (double_diffusion=.false.), so this bug has no effect on standard production runs.

…f absolute T/S

ddmix computed alphaDT and betaDS from single-level absolute tracer values, making
Rrho a ratio of absolute T and S rather than of their vertical density gradients.
This triggered salt-fingering and diffusive-convection mixing continuously across
virtually the entire ocean whenever double_diffusion=.true., regardless of actual
stratification stability.

Replace with the gradient form (T(nz-1)-T(nz), S(nz-1)-S(nz)) so that the scheme
activates only at interfaces where the destabilising gradient exceeds the stabilising
one, as the physics requires.

Note: double diffusion is off by default (double_diffusion=.false.), so this bug
has no effect on standard production runs.
@patrickscholz patrickscholz added this to the FESOM 2.8 milestone Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants