Skip to content

Commit

Permalink
update scripts as radius in add_sphere! is no longer a Tuple but a nu…
Browse files Browse the repository at this point in the history
…mber instead
  • Loading branch information
boriskaus committed Oct 20, 2024
1 parent 7ca342a commit e73c9ac
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LaMEM"
uuid = "2e889f3d-35ce-4a77-8ea2-858aecb630f7"
authors = ["Boris Kaus <[email protected]>"]
version = "0.4.0"
version = "0.4.1"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Expand Down
2 changes: 1 addition & 1 deletion example_scripts/PassiveTracers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
"matrix = Phase(ID=0,Name=\"matrix\",eta=1e20,rho=3000)\n",
"sphere = Phase(ID=1,Name=\"sphere\",eta=1e23,rho=3200)\n",
"add_phase!(model, sphere, matrix)\n",
"add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5,))\n",
"add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)\n",
"\n",
"run_lamem(model,1)"
]
Expand Down
2 changes: 1 addition & 1 deletion example_scripts/PassiveTracers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ model = Model(Grid(nel=(16,16,16), x=[-1,1], y=[-1,1], z=[-1,1]), PassiveTracer
matrix = Phase(ID=0,Name="matrix",eta=1e20,rho=3000)
sphere = Phase(ID=1,Name="sphere",eta=1e23,rho=3200)
add_phase!(model, sphere, matrix)
add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5,))
add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)

run_lamem(model,1)
2 changes: 1 addition & 1 deletion test/mesh_refinement_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using GeophysicalModelGenerator
add_phase!(model, sphere, matrix)

# Add an initial geometry (using GeophysicalModelGenerator routines)
add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5, ))
add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)

# run the simulation on 1 core
run_lamem(model, 1);
Expand Down
2 changes: 1 addition & 1 deletion test/test_compression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using GeophysicalModelGenerator
add_phase!(model, sphere, matrix)

# Add an initial geometry (using GeophysicalModelGenerator routines)
add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5, ))
add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)

# run the simulation on 4 core
run_lamem(model, 4);
Expand Down
4 changes: 2 additions & 2 deletions test/test_julia_setups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using GeophysicalModelGenerator
add_phase!(model, sphere, matrix)

# Add an initial geometry (using GeophysicalModelGenerator routines)
add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5, ))
add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)

# run the simulation on 1 core
run_lamem(model, 1);
Expand Down Expand Up @@ -63,7 +63,7 @@ using GeophysicalModelGenerator
add_phase!(model, sphere, matrix)

# Add an initial geometry (using GeophysicalModelGenerator routines)
add_sphere!(model,cen=(0.0,0.0,0.0), radius=(0.5, ))
add_sphere!(model,cen=(0.0,0.0,0.0), radius=0.5)

# Add a velocity box:
vbox = VelocityBox(cenX=0, cenY=0, cenZ=0,
Expand Down

0 comments on commit e73c9ac

Please sign in to comment.