Skip to content

Commit

Permalink
update subduction example
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Apr 22, 2024
1 parent a696573 commit 5eec788
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions docs/src/Subduction3D.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ model = Model(
```

## 2. Define geometry
Next, we specify the geometry of the model, using the `add_box!` function from `GeophysicalModelGenerator`.
We start with the horizontal part of the slab. The function `add_box!` allows you to specify a layered lithosphere; here we have a crust and mantle. It also allows specifying a thermal structure.
Next, we specify the geometry of the model, using the `AddBox!` function from `GeophysicalModelGenerator`.
We start with the horizontal part of the slab. The function `AddBox!` allows you to specify a layered lithosphere; here we have a crust and mantle. It also allows specifying a thermal structure.
Since the current setup is only mechanical, we don't specify that here.

```julia
Expand Down Expand Up @@ -104,10 +104,28 @@ LaMEM Model setup
```

## 4. Run the model

on windows MPI + mumps currently does not work

```julia
if Sys.iswindows()
model.Solver.MGCoarseSolver = "direct"
end
```

Add this stage, we are ready to run the simulation. On my machine it takes around 4 seconds per timestep on 8 cores:

```julia
run_lamem(model, 8)
try testing == true
```

if we run this as part of the test suite, use fewer timesteps

```julia
run_lamem(model, 8, "-nstep_max 2 -nstep_out 1")
catch
run_lamem(model, 8) # run on 8 cores (if possible)
end
```

The results looks like this with paraview:
Expand Down

0 comments on commit 5eec788

Please sign in to comment.