From 1dd8fcf88e0b61a35de9dfa58a1eabf186521dba Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sat, 16 Feb 2019 11:16:16 -0500 Subject: [PATCH] adding checkerboard inlet option --- tests/lbpm_serial_decomp.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/lbpm_serial_decomp.cpp b/tests/lbpm_serial_decomp.cpp index b8ee95c4..0b70977c 100644 --- a/tests/lbpm_serial_decomp.cpp +++ b/tests/lbpm_serial_decomp.cpp @@ -54,7 +54,7 @@ int main(int argc, char **argv) int BC=0; int64_t xStart,yStart,zStart; int64_t checkerSize; - int64_t CropInlet[3]; + int64_t inlet_count_x, inlet_count_y, inlet_count_z; // char fluidValue,solidValue; xStart=yStart=zStart=0; @@ -74,8 +74,11 @@ int main(int argc, char **argv) yStart = offset[1]; zStart = offset[2]; } - if (domain_db->keyExists( "CropInlet" )){ - CropInlet = domain_db->getVector( "CropInlet" ); + if (domain_db->keyExists( "InletCount" )){ + auto InletCount = domain_db->getVector( "InletCount" ); + inlet_count_x = InletCount[0]; + inlet_count_y = InletCount[1]; + inlet_count_z = InletCount[2]; } if (domain_db->keyExists( "checkerSize" )){ checkerSize = domain_db->getScalar( "checkerSize" ); @@ -144,11 +147,11 @@ int main(int argc, char **argv) printf("Read segmented data from %s \n",Filename.c_str()); } - if (CropInlet[0] > 0){ + if (inlet_count_x > 0){ // use checkerboard pattern for (int k = 0; k