Skip to content

Commit 68a88a1

Browse files
committed
bugfixes
1 parent bf92c5b commit 68a88a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Setup_geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ function Compute_ThermalStructure(Temp, X, Y, Z,Phase, s::McKenzie_subducting_sl
10701070

10711071
# Thickness of the layer:
10721072
D0 = (maximum(Z)-minimum(Z));
1073-
Zshift = Z .- Z[1] # McKenzie model is defined with Z = 0 at the bottom of the slab
1073+
Zshift = Z .- Z[end] # McKenzie model is defined with Z = 0 at the bottom of the slab
10741074

10751075
# Convert subduction velocity from cm/yr -> m/s;
10761076
convert_velocity = 1/(100.0*365.25*60.0*60.0*24.0);

test/test_setup_geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ AddBox!(Phase, Temp, Cart; xlim=(0.0,600.0),ylim=(0.0,600.0), zlim=(-80.0, 0.0),
193193
# inclined slab
194194
Temp = ones(Float64,size(Cart))*1350;
195195
AddBox!(Phase, Temp, Cart; xlim=(0.0,600.0),ylim=(0.0,600.0), zlim=(-80.0,0),StrikeAngle=0, DipAngle=45, phase = ConstantPhase(5), T=TsMK);
196-
@test sum(Temp) 3.5133669349123573e8
196+
@test sum(Temp) 3.5125017626287365e8
197197

198198

199199

0 commit comments

Comments
 (0)