This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

global mesh.hmax()?

+3 votes

I noticed that mesh.hmax() is a local operation in that every process returns the maximum diameter in its part of the mesh. At least the documentation should be clarified here.

Anyways, is there a way to form the global maximum from within Python?

asked Dec 31, 2013 by nschloe FEniCS User (7,120 points)

1 Answer

+5 votes
 
Best answer

hmax = MPI.max(mesh.hmax())

answered Dec 31, 2013 by nschloe FEniCS User (7,120 points)

In DOLFIN 1.4, this will become

hmax = MPI.max(mesh.mpi_comm(), mesh.hmax())
...