Index: /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp	(revision 26294)
+++ /issm/trunk-jpl/src/c/modules/ModelProcessorx/ElementsAndVerticesPartitioning.cpp	(revision 26295)
@@ -111,9 +111,14 @@
 
 	/*Start figuring out, out of the partition, which elements belong to this cpu: */
+	bool check = false;
 	for(int i=0;i<iomodel->numberofelements;i++){
 
 		/*!All elements have been partitioned above, only deal with elements for this cpu: */
-		if(my_rank==epart[i]) my_elements[i]=true;
+		if(my_rank==epart[i]){
+			my_elements[i]=true;
+			check = true;
+		}
 	}
+	if(!check) _error_("partition "<<my_rank<<" does not have any element! Try reducing md.cluster.np");
 
 	/*Assign pointers to iomodel*/
