Skip to content

Commit

Permalink
edit examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pmartorell committed Jul 4, 2024
1 parent 19ad83a commit 5a7f86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/src/distributed.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Where `poisson.jl` is the following code.

```julia
using STLCutters
using Gridap
using GridapEmbedded
using GridapDistributed
using PartitionedArrays
Expand All @@ -47,7 +48,7 @@ cells = (10,10,10)
filename = "stl_file_path.stl"

with_mpi() do distribute
ranks = distribute(LinearIndices((prod(parts))))
ranks = distribute(LinearIndices((prod(parts),)))
# Domain and discretization
geo = STLGeometry(filename)
pmin,pmax = get_bounding_box(geo)
Expand All @@ -64,7 +65,7 @@ with_mpi() do distribute
= Measure(Γ,2)
# FE spaces
Vstd = TestFESpace(Ω_act,ReferenceFE(lagrangian,Float64,1))
V = AgFEMSpace(Vstd)
V = AgFEMSpace(model,Vstd,aggregates)
U = TrialFESpace(V)
# Weak form
γ = 10.0
Expand Down
3 changes: 2 additions & 1 deletion docs/src/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Now, we provide an example of the solution of a Poisson problem on the embedded

```julia
using STLCutters
using Gridap
using GridapEmbedded
cells = (10,10,10)
filename = "stl_file_path.stl"
Expand All @@ -90,7 +91,7 @@ dΩ = Measure(Ω,2)
= Measure(Γ,2)
# FE spaces
Vstd = TestFESpace(Ω_act,ReferenceFE(lagrangian,Float64,1))
V = AgFEMSpace(Vstd)
V = AgFEMSpace(Vstd,aggregates)
U = TrialFESpace(V)
# Weak form
γ = 10.0
Expand Down

0 comments on commit 5a7f86c

Please sign in to comment.