Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jan 2, 2024
1 parent 5068434 commit 3ef63a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PatchBasedSmoothers/seq/PatchTriangulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ function Gridap.Geometry.Triangulation(PD::PatchDecomposition)
return PatchTriangulation(trian,PD,patch_cells,nothing,nothing)
end

function Gridap.Geometry.BoundaryTriangulation(PD::PatchDecomposition{Dc}) where Dc
Df = Dc -1
function Gridap.Geometry.BoundaryTriangulation(PD::PatchDecomposition{Dc};tags="boundary") where Dc
Df = Dc-1
model = PD.model
labeling = get_face_labeling(model)

is_boundary = get_face_mask(labeling,["boundary"],Df)
is_boundary = get_face_mask(labeling,tags,Df)
patch_faces = get_patch_faces(PD,Df,is_boundary)
pfaces_to_pcells = get_pfaces_to_pcells(PD,Df,patch_faces)

Expand Down
1 change: 1 addition & 0 deletions test/LinearSolvers/GMGTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function gmg_driver(t,parts,mh,spaces,qdegree,smoothers,biform,liform,u)
mode=:preconditioner)

solver = CGSolver(gmg;maxiter=20,atol=1e-14,rtol=1.e-6,verbose=i_am_main(parts))
#solver = GMRESSolver(5;Pr=gmg,maxiter=20,atol=1e-14,rtol=1.e-6,verbose=i_am_main(parts))
ns = numerical_setup(symbolic_setup(solver,A),A)
toc!(t,"GMG setup")

Expand Down

0 comments on commit 3ef63a7

Please sign in to comment.