From 5a7f86c10cf0ace5764d8f6ebe39e4775f085a23 Mon Sep 17 00:00:00 2001 From: Pere Antoni Martorell Date: Thu, 4 Jul 2024 11:24:47 +0200 Subject: [PATCH] edit examples --- docs/src/distributed.md | 5 +++-- docs/src/usage.md | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/distributed.md b/docs/src/distributed.md index 8dbddf55..7776f188 100644 --- a/docs/src/distributed.md +++ b/docs/src/distributed.md @@ -37,6 +37,7 @@ Where `poisson.jl` is the following code. ```julia using STLCutters +using Gridap using GridapEmbedded using GridapDistributed using PartitionedArrays @@ -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) @@ -64,7 +65,7 @@ with_mpi() do distribute dΓ = 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 diff --git a/docs/src/usage.md b/docs/src/usage.md index 098e263f..bec234e0 100644 --- a/docs/src/usage.md +++ b/docs/src/usage.md @@ -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" @@ -90,7 +91,7 @@ dΩ = Measure(Ω,2) dΓ = 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