Index: sm/trunk-jpl/src/m/array/find_string.m
===================================================================
--- /issm/trunk-jpl/src/m/array/find_string.m	(revision 21108)
+++ 	(revision )
@@ -1,18 +1,0 @@
-%
-%  function to find a string in a cell array
-%  (could probably be replaced by matlab strmatch)
-%  
-%  [ifound]=find_string(cells,str)
-%
-function [ifound]=find_string(cells,str)
-
-ifound=false;
-
-for i=1:numel(cells)
-    if ischar(cells{i}) && strcmp(cells{i},str)
-        ifound=i;
-        return
-    end
-end
-
-end
Index: /issm/trunk-jpl/src/m/qmu/dakota_in_write.m
===================================================================
--- /issm/trunk-jpl/src/m/qmu/dakota_in_write.m	(revision 21108)
+++ /issm/trunk-jpl/src/m/qmu/dakota_in_write.m	(revision 21109)
@@ -316,5 +316,5 @@
 %  gradients
 
-if find_string(ghspec,'grad')
+if ismember('grad',ghspec)
     if     ~params.numerical_gradients && ~params.analytic_gradients
         params.numerical_gradients=true;
@@ -338,5 +338,5 @@
 %  hessians (no implemented methods use them yet)
 
-if find_string(ghspec,'hess')
+if ismember('hess',ghspec)
     error('Hessians needed by method but not provided.');
 else
