-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds momentum equation test for Enzyme extension #3822
base: main
Are you sure you want to change the base?
Conversation
#buoyancy = buoyancy, | ||
#tracers = (:T, :S), | ||
#velocities = PrescribedVelocityFields(; u, v), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#buoyancy = buoyancy, | |
#tracers = (:T, :S), | |
#velocities = PrescribedVelocityFields(; u, v), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you set up a system that allows you to loop through model properties to generate a bunch of tests automatically. For example, we can run the current test with a few advection schemes. If you set the models up with a passive tracer c
, you can use derivatives of that for all configurations including for prescribed velocities and prognostic velocities.
This adds a test for Enzyme AD applied to a hydrostatic free surface model with
ExplicitFreeSurface
momentum advection.