From c7b6ac7290740adce11c1c733bd1aafb8e3d35c5 Mon Sep 17 00:00:00 2001 From: Rex Zhe Li Date: Fri, 7 May 2021 03:18:31 -0400 Subject: [PATCH] make minor change so MPI barrier is in the right place now --- models/IonModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/IonModel.cpp b/models/IonModel.cpp index 67887811..136af02f 100644 --- a/models/IonModel.cpp +++ b/models/IonModel.cpp @@ -831,8 +831,8 @@ void ScaLBL_IonModel::Run(double *Velocity, double *ElectricField){ if (BoundaryConditionSolid==1){ //TODO IonSolid may also be species-dependent ScaLBL_Comm->SolidDirichletD3Q7(&fq[ic*Np*7], IonSolid); - ScaLBL_Comm->Barrier(); comm.barrier(); } + ScaLBL_Comm->Barrier(); comm.barrier(); // *************EVEN TIMESTEP*************// timestep++; @@ -875,8 +875,8 @@ void ScaLBL_IonModel::Run(double *Velocity, double *ElectricField){ if (BoundaryConditionSolid==1){ //TODO IonSolid may also be species-dependent ScaLBL_Comm->SolidDirichletD3Q7(&fq[ic*Np*7], IonSolid); - ScaLBL_Comm->Barrier(); comm.barrier(); } + ScaLBL_Comm->Barrier(); comm.barrier(); } }