From a390bda2f88404ef115f9a2e44cbdf6c895e9a19 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sat, 10 Nov 2018 13:21:26 -0500 Subject: [PATCH] fixed tolerance in color model --- models/ColorModel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/models/ColorModel.cpp b/models/ColorModel.cpp index 465e69fc..b43b44d7 100644 --- a/models/ColorModel.cpp +++ b/models/ColorModel.cpp @@ -598,9 +598,7 @@ void ScaLBL_ColorModel::Run(){ Fy *= 1e-6/force_magnitude; Fz *= 1e-6/force_magnitude; } - tolerance = fabs(Ca-capillary_number)/ Ca ; - if (rank == 0) printf(" -- adjust force by %f \n ",tolerance); - + if (rank == 0) printf(" -- adjust force by factor %f \n ",capillary_number / Ca); Averages->SetParams(rhoA,rhoB,tauA,tauB,Fx,Fy,Fz,alpha); } @@ -641,7 +639,6 @@ void ScaLBL_ColorModel::Run(){ } MPI_Barrier(comm); morph_timesteps = 0; - tolerance = 1.f; } morph_timesteps += analysis_interval; }