From 39009362a8ca48e58971026e2ba9923011309f79 Mon Sep 17 00:00:00 2001 From: James McClure Date: Mon, 14 Jun 2021 20:24:05 -0400 Subject: [PATCH] fix image sequence bug --- tests/lbpm_color_simulator.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/lbpm_color_simulator.cpp b/tests/lbpm_color_simulator.cpp index 3591bbcd..839b5f06 100644 --- a/tests/lbpm_color_simulator.cpp +++ b/tests/lbpm_color_simulator.cpp @@ -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("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;