Relying on the time labeled components for averaging

This commit is contained in:
James E McClure
2015-08-18 22:06:57 -04:00
parent f537372cc5
commit 12cd013fa2

View File

@@ -651,7 +651,7 @@ int main(int argc, char **argv)
CopyToHost(Averages.Vel_z.get(),&Velocity[2*N],N*sizeof(double));
//...........................................................................
int timestep = 0;
int timestep = -1;
if (rank==0) printf("********************************************************\n");
if (rank==0) printf("No. of timesteps: %i \n", timestepMax);
@@ -771,6 +771,8 @@ int main(int argc, char **argv)
MPI_Barrier(MPI_COMM_WORLD);
PROFILE_STOP("Update");
// Timestep completed!
timestep++;
//...................................................................
if (timestep%1000 == 995){
//...........................................................................
@@ -860,8 +862,6 @@ int main(int argc, char **argv)
PROFILE_STOP("Save Checkpoint");
PROFILE_SAVE("lbpm_color_simulator",1);
}
// Timestep completed!
timestep++;
}
PROFILE_STOP("Loop");
//************************************************************************/