Skip to content

Commit fdc27c1

Browse files
committed
Bug fix : wrong syntax for the errors
1 parent 544c60b commit fdc27c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Setup_geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function AddBox!(Phase, Temp, Grid::AbstractGeneralGrid; # requi
201201
Origin = (xlim[1], ylim[1], zlim[2]) # upper-left corner
202202
end
203203

204-
if Origin != nothing & T==McKenzie_subducting_slab
204+
if Origin !== nothing && isa(T, McKenzie_subducting_slab)
205205
@warn "McKenzie temperature field requires that Origin = [xmin,ymin,zmax] of the box."
206-
if Origin[1] != xlim[1] | Origin[2] != ylim[1] | Origin[3] != zlim[2]
206+
if Origin[1] != xlim[1] || Origin[2] != ylim[1] || Origin[3] != zlim[2]
207207
@error "Origin is not set up correctly. For fixing the problem Origin can be left blank or Origin = [xmin,ymin,zmax] of the box"
208208
end
209209
end

0 commit comments

Comments
 (0)