Index: /issm/trunk-jpl/src/c/classes/Misfit.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/Misfit.h	(revision 22134)
+++ /issm/trunk-jpl/src/c/classes/Misfit.h	(revision 22135)
@@ -166,6 +166,8 @@
 				 if(time==finaltime)this->lock=1;
 
-				 /*What we return is the value of misfit / time: */
-				 return misfit/(time-starttime);
+				 /*What we return is the value of misfit / time if transient*/
+				 if(time!=0) misfit = misfit/(time-starttime);
+
+				 return misfit;
 			 } /*}}}*/
 			 else if (this->local==2){ /*vertex by vertex computation: {{{*/
