Skip to content

Adding reactant extension to RectilinearGrid#5600

Open
jlk9 wants to merge 5 commits into
mainfrom
jlk9/reactant-rectilinear-grid-error
Open

Adding reactant extension to RectilinearGrid#5600
jlk9 wants to merge 5 commits into
mainfrom
jlk9/reactant-rectilinear-grid-error

Conversation

@jlk9
Copy link
Copy Markdown
Collaborator

@jlk9 jlk9 commented May 16, 2026

This PR adds the functions traced_type_inner and make_tracer to OceananigansReactantExt for RectilinearGrid. Currently there is a bug where calling eltype for RectilinearGrid with ReactantState architecture returns Float64, although it should return a TracedRFloat.

This PR is not yet successful. It can be tested by running the script here, which shows the fields in RectilinearGrid are still generally Float64 even with traced_type_inner and make_tracer being run.

@wsmoses

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.

1 participant