Skip to content

Commit 278b6db

Browse files
committed
OM2-01 fix for grid topology
1 parent bdb0562 commit 278b6db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OceanTransportMatrixBuilder"
22
uuid = "c2b4a04e-6049-4fc4-aa6a-5508a29a1e1c"
33
authors = ["Benoit Pasquier <[email protected]> and contributors"]
4-
version = "0.5.3"
4+
version = "0.5.4"
55

66
[deps]
77
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"

src/gridtopology.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function getgridtopology(lon_vertices, lat_vertices, lev)
3131
if all(NPlat .== 90)
3232
return BipolarGridTopology(nx,ny,nz)
3333
# Otherwise check if the north pole is split in two
34-
elseif NPlon == rot180(NPlon) && NPlat == rot180(NPlat)
34+
elseif isapprox(NPlon, rot180(NPlon)) && isapprox(NPlat, rot180(NPlat))
3535
return TripolarGridTopology(nx,ny,nz)
3636
else
3737
return UnknownGridTopology(nx,ny,nz)

0 commit comments

Comments
 (0)