ArgumentError: halo must be ≤ size
in ocean_simulation
on coarse TripolarGrid
#336
Labels
bug
Something isn't working
The reason is that the default free_surface does not work when there are fewer than 70 points in a direction.
I recommend changing the default so that the number of substeps is computed based on the situations. In particular, the key assumption we have to make regards the time-step. We should encode this assumption explicitly, and then compute substeps based on
g
,H
. Then we should limit these substeps byNx, Ny
. In the case of a limitation, we should print a warning that instability may occur ifdt > something
because the CFL will be violated for the free surface.The text was updated successfully, but these errors were encountered: