Skip to content

Commit 34aaa7f

Browse files
committed
Add warning for unknown topologies
1 parent fee25cd commit 34aaa7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gridtopology.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function getgridtopology(lon_vertices, lat_vertices, lev)
4444
elseif isapprox_lon(NPlon, rot180(NPlon)) && isapprox(NPlat, rot180(NPlat))
4545
return TripolarGridTopology(nx, ny, nz)
4646
else
47+
@warn """
48+
Unknown grid topology detected. Things might not work as expected.
49+
See `getgridtopology` function to see what failed the checks
50+
"""
4751
return UnknownGridTopology(nx, ny, nz)
4852
end
4953
end

0 commit comments

Comments
 (0)