Skip to content

Commit

Permalink
Distributed pickled objects only if its needed.
Browse files Browse the repository at this point in the history
#TODO: Fix this issue in parallel ...

Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Apr 24, 2024
1 parent f83b50a commit 7490746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngsPETSc/utils/firedrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def curveField(self, order, tol=1e-8):
element = low_order_element.reconstruct(degree=order)
space = fd.VectorFunctionSpace(self, fd.BrokenElement(element))
newFunctionCoordinates = fd.assemble(interpolate(self.coordinates, space))
self.netgen_mesh = self.comm.bcast(self.netgen_mesh, root=0)
if self.comm.size > 1:
self.netgen_mesh = self.comm.bcast(self.netgen_mesh, root=0)
#Computing reference points using fiat
fiat_element = newFunctionCoordinates.function_space().finat_element.fiat_equivalent
entity_ids = fiat_element.entity_dofs()
Expand Down

0 comments on commit 7490746

Please sign in to comment.