Index: /issm/trunk/src/m/solutions/dakota/qmuisdistributed.m
===================================================================
--- /issm/trunk/src/m/solutions/dakota/qmuisdistributed.m	(revision 2053)
+++ /issm/trunk/src/m/solutions/dakota/qmuisdistributed.m	(revision 2054)
@@ -2,10 +2,11 @@
 %QMUISDISTRIBTED - figure out if a string is a decriptor with a numerical postfix. Like thickness1, or drag10
 
-found=0;
-for i=1:length(string),
-	if ~isempty(str2num(string(i))),
-		found=1;
-		break;
-	end
+
+%just take last string element, and see if it is numeric.
+last=string(end);
+
+if ((double(last)<=57) & (double(last)>=49)),
+	found=1;
+else
+	found=0;
 end
-
