Enzyme.jl icon indicating copy to clipboard operation
Enzyme.jl copied to clipboard

Oceananigans AssertionError with vector-valued FluxBC

Open jlk9 opened this issue 11 months ago • 3 comments

Running this code: https://github.com/DJ4Earth/Enzymanigans.jl/tree/jlk9/with-simulation

Produces this AssertionError:

error_0120.txt

This is related to using vector-valued FluxBoundaryCondition set at lines 78-80. Previous versions of this script used a function for the top Flux BC.

@wsmoses

jlk9 avatar Jan 21 '25 01:01 jlk9

Updated error:

error_0121.txt

jlk9 avatar Jan 21 '25 23:01 jlk9

A reduced script reproducing the error can be found here:

https://github.com/DJ4Earth/Enzymanigans.jl/blob/jlk9/reduce-for-active-arg-0122/dynamical_core/autodiff_double_gyre.jl

jlk9 avatar Jan 22 '25 19:01 jlk9

Oceananigans has been eliminated from the above script. It now replicates the AssertionError with Enzyme as its only dependency.

jlk9 avatar Jan 23 '25 00:01 jlk9