Sponge layer implementation #569
Unanswered
suhanidalal
asked this question in
Q&A
Replies: 1 comment 12 replies
-
Does it run on CPU? That is the first thing to check. It may be helpful to see your whole script as well as the entire stack trace. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to implement a sponge layer to dampen tracers approaching the north/south latitude boundary of my near-global simulation. Referencing this discussion, I tried creating the mask like this:
I also tried to implement the mask with LinearlyTaperedPolarMask, but that didn't work either:
The error I'm getting seems to be related to the GPU compiler and part of it states:
InvalidIRError: compiling MethodInstance for Oceananigans.Models.HydrostaticFreeSurfaceModels.gpu_compute_hydrostatic_free_surface_Gc!(::KernelAbstractions.
...
Reason: unsupported call to an unknown function (call to ijl_get_nth_field_checked)
Do you know what I'm doing wrong? Is there a different way to create the mask? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions