@@ -1555,7 +1555,7 @@ julia> Cart = CartData(XYZGrid(x, y, z));
15551555julia> Phase = ones(Int64,size(Cart));
15561556julia> 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)
15591559julia> phase = LithosphericPhases(Layers=[5 7 88], Phases = [2 3 4], Tlab=nothing)
15601560julia> TsHC = HalfspaceCoolingTemp(Tsurface=20.0, Tmantle=1350, Age=30, Adiabat=0.4)
15611561julia> addSlab!(Phase, Temp, Cart, trench, phase = phase, T = TsHC)
@@ -1564,7 +1564,7 @@ julia> addSlab!(Phase, Temp, Cart, trench, phase = phase, T = TsHC)
15641564"""
15651565function 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