Skip to content

Bodner mixed-layer restratification scheme can produce negative layer thicknesses #60

@dougiesquire

Description

@dougiesquire

The MOM_mixed_layer_restrat::mixedlayer_restrat_Bodner routine does not clamp layer thicknesses after applying the transport, unlike mixedlayer_restrat_OM4 and mixedlayer_restrat_BML which both apply a floor at 0.5 Angstrom. This can lead to negative thicknesses which can lead to issues such as NaNs (e.g. see here)

A simple fix is to mirror the approach already used in the other two routines. However, those include the comment:

h_min = 0.5*GV%Angstrom_H ! This should be GV%Angstrom_H, but that value would change answers.

so we may want to clamp at one Angstrom, rather than 0.5.

This will change answers so will require the introduction of a parameter to preserve old answers.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions