Index: /issm/trunk/src/c/parallel/OutputThermal.cpp
===================================================================
--- /issm/trunk/src/c/parallel/OutputThermal.cpp	(revision 579)
+++ /issm/trunk/src/c/parallel/OutputThermal.cpp	(revision 580)
@@ -21,5 +21,5 @@
 
 	/*intermediary: */
-	FemModel*  fem=NULL;
+	FemModel* fem=NULL;
 	NodeSets* nodesets=NULL;
 	Vec       partition=NULL;
@@ -27,5 +27,5 @@
 	
 	/* standard output: */
-	Vec partition_shifted=NULL;
+	Vec     partition_shifted=NULL;
 	double* serial_partition=NULL;
 
@@ -35,4 +35,5 @@
 	double ndt,dt;
 	int    nsteps;
+	int    nstepsplusone;
 	int    sub_analysis_type;
 	
@@ -65,4 +66,5 @@
 		nsteps=(int)(ndt/dt);
 	}
+	nstepsplusone=nsteps+1;
 
 	/*allocate t_g and m_g arrays: */
@@ -91,5 +93,5 @@
 
 		/*Write time steps: */
-		WriteDataToDisk(&time,&nsteps,&one,"Mat",fid);
+		WriteDataToDisk(&time,&nstepsplusone,&one,"Mat",fid);
 
 		/*Write solutions to disk: */
