Skip to content

Commit

Permalink
few more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Apr 7, 2024
1 parent 5e50cc3 commit 704b8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_MTK_GMG_2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Data_set3D = CartData(X,Y,Z,(Phases=zeros(Int64,size(X)),Temp=zeros(size(X)))
# Create 2D cross-section
Nx = Num.Nx; # resolution in x
Nz = Num.Nz;
Data_2D = CrossSection(Data_set3D, Start=(-20,4), End=(20,4), dims=(Nx, Nz))
Data_2D = cross_section(Data_set3D, Start=(-20,4), End=(20,4), dims=(Nx, Nz))
Data_2D = addfield(Data_2D,"FlatCrossSection", FlattenCrossSection(Data_2D))
Data_2D = addfield(Data_2D,"Phases", Int64.(Data_2D.fields.Phases))

Expand Down
2 changes: 1 addition & 1 deletion test/test_MTK_GMG_3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ X,Y,Z = xyz_grid(range(-23,23, length=Nx),range(-19,19, length=Ny),range
Data_3D = CartData(X,Y,Z,(Phases=zeros(Int64,size(X)),Temp=zeros(size(X)))); # 3D dataset

# Intersect with topography
Below = BelowSurface(Data_3D, Topo_cart)
Below = below_surface(Data_3D, Topo_cart)
Data_3D.fields.Phases[Below] .= 1

# Set Moho
Expand Down

0 comments on commit 704b8b4

Please sign in to comment.