From 1248e790fd9d074e41e270f6fe4e712cfee2aed6 Mon Sep 17 00:00:00 2001 From: James McClure Date: Thu, 13 Aug 2015 03:01:31 -0400 Subject: [PATCH] arg --- tests/lbpm_color_simulator.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/lbpm_color_simulator.cpp b/tests/lbpm_color_simulator.cpp index 7d9ab127..64402c0f 100644 --- a/tests/lbpm_color_simulator.cpp +++ b/tests/lbpm_color_simulator.cpp @@ -592,6 +592,18 @@ int main(int argc, char **argv) ComputePressureD3Q19(ID,f_even,f_odd,Pressure,Nx,Ny,Nz); ComputeVelocityD3Q19(ID,f_even,f_odd,Velocity,Nx,Ny,Nz); + if (BoundaryCondition==1 && Dm.kproc == 0){ + for (n=Nx*Ny; n<2*Nx*Ny; n++){ + if (Dm.id[n]>0 && 3.0*Pressure[n] != din) printf("Inlet pBC error: %f != %f \n",3.0*Pressure[n],din); + } + } + + if (BoundaryCondition==1 && Dm.kproc == nprocz-1){ + for (n=Nx*Ny*(Nz-2); n0 && 3.0*Pressure[n] != dout) printf("Outlet pBC error: %f != %f \n",3.0*Pressure[n],din); + } + } + //........................................................................... // Copy the phase indicator field for the earlier timestep DeviceBarrier();