Index: /issm/trunk-jpl/src/m/classes/qmu/uniform_uncertain.m
===================================================================
--- /issm/trunk-jpl/src/m/classes/qmu/uniform_uncertain.m	(revision 25032)
+++ /issm/trunk-jpl/src/m/classes/qmu/uniform_uncertain.m	(revision 25033)
@@ -74,8 +74,8 @@
 				end
 				%better have a partition vector that has as many partitions as upper and lower's size: 
-				if length(self.upper,1)~=partition_npart(self.partition),
+				if size(self.upper,1)~=partition_npart(self.partition),
 					error('uniform_uncertain error message: row size of upper and partition size should be identical');
 				end
-				if length(self.lower,1)~=partition_npart(self.partition),
+				if size(self.lower,1)~=partition_npart(self.partition),
 					error('uniform_uncertain error message: row size of lower and partition size should be identical');
 				end
Index: /issm/trunk-jpl/src/m/qmu/setupdesign/QmuSetupVariables.m
===================================================================
--- /issm/trunk-jpl/src/m/qmu/setupdesign/QmuSetupVariables.m	(revision 25032)
+++ /issm/trunk-jpl/src/m/qmu/setupdesign/QmuSetupVariables.m	(revision 25033)
@@ -17,11 +17,11 @@
 
 	if isa(variables,'uniform_uncertain'),
-		nlower=length(variables.lower,1);
-		nupper=length(variables.upper,1);
+		nlower=size(variables.lower,1);
+		nupper=size(variables.upper,1);
 		if (nlower ~= npart || nupper ~=npart),
 			error('QmuSetupVariables error message: upper and lower fields should have the same number of rows as the number of partitions');
 		end
-		nlower=length(variables.lower,2);
-		nupper=length(variables.upper,2);
+		nlower=size(variables.lower,2);
+		nupper=size(variables.upper,2);
 		if (nlower ~= nt || nupper ~= nt),
 			error('QmuSetupVariables error message: upper and lower fields should have the same number of cols as the number of time steps');
