diff --git a/models/ColorModel.cpp b/models/ColorModel.cpp index 6bcb6474..7dfe063f 100644 --- a/models/ColorModel.cpp +++ b/models/ColorModel.cpp @@ -95,7 +95,7 @@ void ScaLBL_ColorModel::ReadParams(string filename){ outletA=0.f; outletB=1.f; - if (BoundaryCondition==4) flux = din*rhoA; // mass flux must adjust for density (see formulation for details) + if (BoundaryCondition==4) flux *= rhoA; // mass flux must adjust for density (see formulation for details) // Read domain parameters auto L = domain_db->getVector( "L" ); diff --git a/sample_scripts/configure_desktop b/sample_scripts/configure_desktop index ccf6f713..1e717c98 100755 --- a/sample_scripts/configure_desktop +++ b/sample_scripts/configure_desktop @@ -10,7 +10,7 @@ cmake \ -D MPI_COMPILER:BOOL=TRUE \ -D MPIEXEC=mpirun \ -D USE_EXT_MPI_FOR_SERIAL_TESTS:BOOL=TRUE \ - -D CMAKE_BUILD_TYPE:STRING=Debug \ + -D CMAKE_BUILD_TYPE:STRING=Release \ -D CUDA_FLAGS="-arch sm_35" \ -D CUDA_HOST_COMPILER="/usr/bin/gcc" \ -D USE_NETCDF=0 \ diff --git a/tests/lbpm_serial_decomp.cpp b/tests/lbpm_serial_decomp.cpp index a2d6c17c..46431c37 100644 --- a/tests/lbpm_serial_decomp.cpp +++ b/tests/lbpm_serial_decomp.cpp @@ -66,6 +66,12 @@ int main(int argc, char **argv) auto size = domain_db->getVector( "n" ); auto SIZE = domain_db->getVector( "N" ); auto nproc = domain_db->getVector( "nproc" ); + if (domain_db->keyExists( "offset" )){ + auto offset = domain_db->getVector( "offset" ); + xStart = offset[0]; + yStart = offset[1]; + zStart = offset[2]; + } auto ReadValues = domain_db->getVector( "ReadValues" ); auto WriteValues = domain_db->getVector( "WriteValues" ); auto ReadType = domain_db->getScalar( "ReadType" );