Skip to content

Commit

Permalink
Fix for parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Umberto Zerbinati committed Sep 11, 2024
1 parent 0d9de86 commit fd7b581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Setting up basic python and to be root
FROM python:3.10-slim-buster
FROM python:3.10-slim
USER root
#Setting up system variable
ENV PETSC_DIR /root/petsc
Expand Down
3 changes: 2 additions & 1 deletion ngsPETSc/utils/firedrake/hierarchies.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def uniformRefinementRoutine(ngmesh, cdm):
rdm.removeLabel("pyop2_owned")
rdm.removeLabel("pyop2_ghost")
if ngmesh.dim > 2:
mapping = MeshMapping(rdm, geo=ngmesh.GetGeometry())
sdm = rdm.getRedundant()
mapping = MeshMapping(sdm, geo=ngmesh.GetGeometry())
return (rdm, mapping.ngMesh)
else:
#Faster but only works for 2D meshes
Expand Down

0 comments on commit fd7b581

Please sign in to comment.