throwstd::runtime_error("ghost indices are not sorted - the mesh is probably inconsistent or there is a bug in the DistributedMeshSynchronizer");
prev_global_idx=global_idx;
constintowner=getOwner(global_idx);
constintowner=getEntityOwner(global_idx);
if(owner==rank)
throwstd::runtime_error("the owner of a ghost entity cannot be the local rank - the mesh is probably inconsistent or there is a bug in the DistributedMeshSynchronizer");