Mesh refinement/no redistribute/ghost mesh


101
views
0
4 months ago by
ae  
I cannot seem to be able to refine the mesh containing ghost elements without redistribution, see the example below.  If I either remove ghost_mode or allow redistribution things seem to work just fine.

from dolfin import *
parameters["ghost_mode"] = "shared_vertex"
comm = mpi_comm_world()
mesh  = UnitSquareMesh(comm, 10, 10)
mesh_refined = refine(mesh,redistribute=False)
​


The error message is

*** -------------------------------------------------------------------------
*** Error:   Unable to build ghost mesh.
*** Reason:  Ghost cell information not available.
*** Where:   This error was encountered inside MeshPartitioning.cpp.
*** Process: 0
***
*** DOLFIN version: 2017.2.0
*** Git changeset:  4c59bbdb45b95db2f07f4e3fd8985c098615527f
*** -------------------------------------------------------------------------
​
Community: FEniCS Project
Please login to add an answer/comment or follow this question.

Similar posts:
Search »