Skip to content

Commit 02443a0

Browse files
committed
bugfix
1 parent e2d54d6 commit 02443a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Setup_geometry.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export AddBox!, AddSphere!, AddEllipsoid!, AddCylinder!, AddLayer!, addSlab!, a
1818
McKenzie_subducting_slab, LinearWeightedTemperature, Trench
1919

2020

21-
2221
"""
2322
addStripes!(Phase, Grid::AbstractGeneralGrid;
2423
stripAxes = (1,1,0),
@@ -1627,7 +1626,7 @@ function addSlab!(Phase, Temp, Grid::AbstractGeneralGrid, trench::Trench;
16271626
ls_weakzone = fill(NaN,size(Grid)); # -> l = length from the trench along the slab
16281627
find_slab_distance!(ls_weakzone, d_weakzone, X,Y,Z, WeakZone, Top, trench);
16291628

1630-
ind = findall( (0.0 .<= d_weakzone .<= trench.WeakzoneThickness) .& (Z .>-trench.d_decoupling) );
1629+
ind = findall( (-trench.WeakzoneThickness .<= d_weakzone .<= 0.0) .& (Z .>-trench.d_decoupling) );
16311630
Phase[ind] .= trench.WeakzonePhase
16321631
end
16331632

0 commit comments

Comments
 (0)