DomainError when changing grid size in simple column model #221
Replies: 4 comments 4 replies
-
Thanks in advance to anyone who can help us understand this problem! |
Beta Was this translation helpful? Give feedback.
-
Hi @andrewwatford and @francispoulin, Have you tried making the timestep smaller? Or maybe setting If this doesn't work I can look into it more tomorrow! |
Beta Was this translation helpful? Give feedback.
-
We should really try to tell the user when this is happening but you can't throw warnings/errors in the normal way on the GPU so it might take some work |
Beta Was this translation helpful? Give feedback.
-
One easy solution would be to add a simulation callback to check for this and either print a warning or throw an error to stop the simulation. Similar to how Oceananigans adds a |
Beta Was this translation helpful? Give feedback.
-
I am interested if anyone is able to point me in the right direction with an error I am encountering. I am trying to modify the simple column example here to have a different grid (instead of 3D, it is 1D, and the number of points is greater). The error is
ERROR: DomainError with -0.000840929789711402: Exponentiation yielding a complex result requires a complex argument. Replace x^y with (x+0im)^y, Complex(x)^y, or similar.
I think it has something to do with the two-band light attenuation, but not exactly sure what is going wrong. Any help would be appreciated, thanks! Here's a minimal example that reproduces the error:Beta Was this translation helpful? Give feedback.
All reactions