Skip to content

Commit 6aad871

Browse files
committed
make it work w/out thermal structure specified
1 parent 60ec2e1 commit 6aad871

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
@@ -1555,7 +1555,7 @@ julia> Cart = CartData(XYZGrid(x, y, z));
15551555
julia> Phase = ones(Int64,size(Cart));
15561556
julia> Temp = fill(1350.0,size(Cart));
15571557
# Define the trench:
1558-
julia> trench= Trench(n_seg_xy=1, A = [400.0,400.0],B = [800.0,800.0],θ_max = 45.0, direction = 1.0, n_seg = 50, L0 = 600.0, D0 = 80.0, Lb = 500.0,d_decoupling = 100.0, type_bending =:Ribe)
1558+
julia> trench= Trench(Start = (400.0,400.0), End = (800.0,800.0), θ_max = 45.0, direction = 1.0, n_seg = 50, L0 = 600.0, D0 = 80.0, Lb = 500.0, d_decoupling = 100.0, type_bending =:Ribe)
15591559
julia> phase = LithosphericPhases(Layers=[5 7 88], Phases = [2 3 4], Tlab=nothing)
15601560
julia> TsHC = HalfspaceCoolingTemp(Tsurface=20.0, Tmantle=1350, Age=30, Adiabat=0.4)
15611561
julia> addSlab!(Phase, Temp, Cart, trench, phase = phase, T = TsHC)
@@ -1564,7 +1564,7 @@ julia> addSlab!(Phase, Temp, Cart, trench, phase = phase, T = TsHC)
15641564
"""
15651565
function addSlab!(Phase, Temp, Grid::AbstractGeneralGrid, trench::Trench; # required input
15661566
phase::AbstractPhaseNumber = ConstantPhase(1), # Sets the phase number(s) in the slab
1567-
T::AbstractThermalStructure = nothing ) # Sets the thermal structure (various functions are available),
1567+
T::Union{AbstractThermalStructure,Nothing} = nothing ) # Sets the thermal structure (various functions are available),
15681568

15691569
# Retrieve 3D data arrays for the grid
15701570
X,Y,Z = coordinate_grids(Grid)

0 commit comments

Comments
 (0)