fix image sequence bug

This commit is contained in:
James McClure 2021-06-14 20:24:05 -04:00
parent 7072ede5a4
commit 39009362a8

View File

@ -136,6 +136,7 @@ int main( int argc, char **argv )
if (rank==0) printf("***Loading next image in sequence (%i) ***\n",IMAGE_INDEX);
ColorModel.color_db->putScalar<int>("image_index",IMAGE_INDEX);
Adapt.ImageInit(ColorModel, next_image);
skip_time = SKIP_TIMESTEPS;
}
else{
if (rank==0) printf("Finished simulating image sequence \n");
@ -148,9 +149,11 @@ int main( int argc, char **argv )
SaturationChange = volB/(volA + volB) - initialSaturation;
skip_time += ANALYSIS_INTERVAL;
}
if (rank==0) printf(" ********************************************************************* \n");
if (rank==0) printf(" Updated fractional flow with saturation change = %f \n", SaturationChange);
if (rank==0) printf(" ********************************************************************* \n");
if (PROTOCOL == "fractional flow") {
if (rank==0) printf(" ********************************************************************* \n");
if (rank==0) printf(" Updated fractional flow with saturation change = %f \n", SaturationChange);
if (rank==0) printf(" ********************************************************************* \n");
}
}
/* apply timestep skipping algorithm to accelerate steady-state */
/* skip_time = 0;