Skip to content

Commit 5a7f86c

Browse files
committed
edit examples
1 parent 19ad83a commit 5a7f86c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/src/distributed.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Where `poisson.jl` is the following code.
3737

3838
```julia
3939
using STLCutters
40+
using Gridap
4041
using GridapEmbedded
4142
using GridapDistributed
4243
using PartitionedArrays
@@ -47,7 +48,7 @@ cells = (10,10,10)
4748
filename = "stl_file_path.stl"
4849

4950
with_mpi() do distribute
50-
ranks = distribute(LinearIndices((prod(parts))))
51+
ranks = distribute(LinearIndices((prod(parts),)))
5152
# Domain and discretization
5253
geo = STLGeometry(filename)
5354
pmin,pmax = get_bounding_box(geo)
@@ -64,7 +65,7 @@ with_mpi() do distribute
6465
= Measure(Γ,2)
6566
# FE spaces
6667
Vstd = TestFESpace(Ω_act,ReferenceFE(lagrangian,Float64,1))
67-
V = AgFEMSpace(Vstd)
68+
V = AgFEMSpace(model,Vstd,aggregates)
6869
U = TrialFESpace(V)
6970
# Weak form
7071
γ = 10.0

docs/src/usage.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Now, we provide an example of the solution of a Poisson problem on the embedded
7171

7272
```julia
7373
using STLCutters
74+
using Gridap
7475
using GridapEmbedded
7576
cells = (10,10,10)
7677
filename = "stl_file_path.stl"
@@ -90,7 +91,7 @@ dΩ = Measure(Ω,2)
9091
= Measure(Γ,2)
9192
# FE spaces
9293
Vstd = TestFESpace(Ω_act,ReferenceFE(lagrangian,Float64,1))
93-
V = AgFEMSpace(Vstd)
94+
V = AgFEMSpace(Vstd,aggregates)
9495
U = TrialFESpace(V)
9596
# Weak form
9697
γ = 10.0

0 commit comments

Comments
 (0)