Index: /issm/trunk/src/m/classes/public/ismodelselfconsistent.m
===================================================================
--- /issm/trunk/src/m/classes/public/ismodelselfconsistent.m	(revision 3054)
+++ /issm/trunk/src/m/classes/public/ismodelselfconsistent.m	(revision 3055)
@@ -201,4 +201,11 @@
 			error(['model not consistent: partition vector cannot have maximum index larger than number of grids']);
 		end
+		if ~isempty(find(md.part<0)),
+			error(['model not consistent: partition vector cannot have values less than 0']);
+		end
+		if ~isempty(find(md.part>=md.npart)),
+			error(['model not consistent: partition vector cannot have values more than md.npart-1']);
+		end
+
 	end
 	if md.eps_rel>1.1*10^-5,
