Skip to content

[BUG] Trapping objective missing term #661

@Jacob-Stevens-Haas

Description

@Jacob-Stevens-Haas

A while ago, Alan mentioned a bug in the trapping code. This line handles the difference in the objective between global trapping and local trapping, adding the final term of equations 39 and 41. However, it currently adds the term from equation 39 twice. It should add the penalty for nonlinearity in enstrophy, nonlin_ens_loss and the penalty in specifically cubic enstrophy growth, cubic_ens_loss.

Sorry for the long delay in getting to this - hopefully this can serve as a useful example for the mentored sprint at PyData Seattle 2025

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions