Skip to content

Commit

Permalink
final remarks of @luraess
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Nov 28, 2023
1 parent e25af1c commit 1fc3f6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ The package serves several purposes:
- more easily handle local material properties through the use of [GeoParams.jl]((https://github.com/JuliaGeodynamics/GeoParams.jl))
- more easily switch between a pseudo-transient solver and another solvers (e.g. an explicit thermal solvers)

* It provides a place to describe performance benchmarks for the solver routines
* It provides a natural repository for contributions of new solvers for use by the larger community

We provide several miniapps, each designed to solve a well-specified benchmark problem, in order to provide
Expand Down Expand Up @@ -101,8 +100,7 @@ function init_phases!(phase_ratios, xci, radius)
end
```


As stated above, the code is parallelised with ParallelStencil.jl. Therefore, `JustRelax.jl` needs to set up the environment with the device architecture (CPU/GPU), default FP precision, and model dimension (2D or 3D). The `PS_setup` variables are `PS_Setup(device, precision, dimensions)`.
JustRelax allows to setup a model environment `PS_Setup` (and interplay with the underlying ParallelStencil package) to specify the dimension of the problem (2D or 3D) and the backend (CPU or GPU). The `PS_setup` functions takes `device`, `precision` and `dimensions` as argument:

```julia
model = PS_Setup(:Threads, Float64, 2) #running on the CPU in 2D
Expand Down

0 comments on commit 1fc3f6a

Please sign in to comment.