Index: /issm/trunk-jpl/src/m/contrib/hack/resultstomatrix.m
===================================================================
--- /issm/trunk-jpl/src/m/contrib/hack/resultstomatrix.m	(revision 19078)
+++ /issm/trunk-jpl/src/m/contrib/hack/resultstomatrix.m	(revision 19079)
@@ -48,7 +48,7 @@
 
 	newtime=getfieldvalue(options,'time',[]);
-	newmatrix=zeros(nods+1,length(newtime));
-	newmatrix(end,:)=newtime;
 	if ~isempty(newtime),
+		newmatrix=zeros(nods+1,length(newtime));
+		newmatrix(end,:)=newtime;
 		%we are asked to reinterpolate to this new time: 
 
