Skip to content

Commit 1320014

Browse files
committed
update test
1 parent 2312b64 commit 1320014

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Setup_geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ function addSlab!(Phase, Temp, Grid::AbstractGeneralGrid, trench::Trench;
16561656
# Compute top and bottom of the slab
16571657
Top,Bottom = compute_slab_surface(trench);
16581658

1659-
# Find the distance to the slab (along and perpendicular)
1659+
# Find the distance to the slab (along & perpendicular)
16601660
find_slab_distance!(ls, d, trench, Top, Bottom, X,Y,Z );
16611661

16621662
# Function to fill up the temperature and the phase.

test/test_setup_geometry.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ TsHC = HalfspaceCoolingTemp(Tsurface=20.0, Tmantle=1350, Age=30, Adiabat=0.4)
237237
temp = TsHC;
238238

239239
addSlab!(Phase,Temp,Cart, t1, phase=phase, T = TsHC)
240-
@test sum(Temp) 2.7987343685251493e9
240+
@test Temp[84,84,110] 1142.25814954244
241241

242242
Data_Final = CartData(X,Y,Z,(Phase=Phase,Temp=Temp))
243243
#Write_Paraview(Data_Final, "Data_Final");
@@ -258,6 +258,6 @@ phase = LithosphericPhases(Layers=[5 7 88], Phases = [2 3 4], Tlab=nothing)
258258
t1 = Trench(Start = (400.0,400.0), End = (800.0,800.0),θ_max = 90.0, direction = 1.0, n_seg = 50, L0 = 600.0, D0 = 80.0, Lb = 500.0,d_decoupling = 100.0, type_bending =:Ribe)
259259

260260
addSlab!(Phase,Temp,Cart, t1, phase=phase, T = TsHC)
261-
@test sum(Temp) 2.7836771215872355e9
261+
@test Temp[84,84,110] 713.1083054586794
262262

263263
Data_Final = CartData(X,Y,Z,(Phase=Phase,Temp=Temp))

0 commit comments

Comments
 (0)