Replies: 2 comments 8 replies
-
You can definitely set tracer boundary conditions. Can you show us the code for |
Beta Was this translation helpful? Give feedback.
8 replies
-
Hi, Here is the full script that I have errors with when trying to included the Salinity BC as formulated:
Thanks again for all of the help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to run some different variations on Oceananigans solvers, BCs, and other forcing to try and learn the package better.
I'm attempting to simulate the same setup (BC's, forcing, etc) I had done with the NonhydrostaticModel, but with the HydroStaticFreeSurfaceModel.
I'm trying to force my simulation with wind stress at the top boundary in the x-direction, with no-slip boundaries on the bottom immersed boundary field. I also am trying to impose a temperature and salinity flux at the surface.
u_bcs = FieldBoundaryConditions(top = FluxBoundaryCondition(τx), immersed=ValueBoundaryCondition(0))
T_bcs = FieldBoundaryConditions(top = FluxBoundaryCondition(Jᵀ), immersed = GradientBoundaryCondition(dTdz))
evaporation_bc = FluxBoundaryCondition(Jˢ, field_dependencies=:S, parameters=evaporation_rate)
S_bcs = FieldBoundaryConditions(top=evaporation_bc)
However, when I use the HydrostaticFreeSurfaceModel I get this error:
[ Info: Initializing simulation...
ERROR: InvalidIRError: compiling MethodInstance for Oceananigans.BoundaryConditions.gpu__apply_z_bcs!(::KernelAbstractions.CompilerMetadata{…}, ::OffsetArrays.OffsetArray{…}, ::Tuple{…}, ::ImmersedBoundaryGrid{…}, ::BoundaryCondition{…}, ::BoundaryCondition{…}, ::Tuple{…}) resulted in invalid LLVM IR
Reason: unsupported call to an unknown function (call to ijl_get_nth_field_checked)
I've tried removing / changing the boundary conditions for my simulation, and it seems like I only get this error when trying to set the tracer flux boundary condition at the top surface.
Is it not possible to set the flux BC at the top surface for the tracer with the HydrostaticFreeSurfaceModel, or is there something different I need to do for the free surface solver when trying to impose this boundary condition.
Thank you for all of your help!
All the best,
Josh
Beta Was this translation helpful? Give feedback.
All reactions