Index: /issm/trunk/src/m/classes/public/ismodelselfconsistent.m
===================================================================
--- /issm/trunk/src/m/classes/public/ismodelselfconsistent.m	(revision 4682)
+++ /issm/trunk/src/m/classes/public/ismodelselfconsistent.m	(revision 4683)
@@ -226,7 +226,10 @@
 
 	%CHECK THAT WE ARE NOT FULLY CONSTRAINED
-	if (md.dim==2),
-		if isempty(find(~md.spcvelocity(:,1:2))),
-			error(['model not consistent: model ' md.name ' is totally constrained, no need to solve!']);
+	if isempty(find(~md.spcvelocity(:,1:2))),
+		error(['model not consistent: model ' md.name ' is totally constrained horizontally, no need to solve!']);
+	end
+	if (md.dim==3),
+		if isempty(find(~md.spcvelocity(:,3))),
+			error(['model not consistent: model ' md.name ' is totally constrained vertically, no need to solve!']);
 		end
 	end
