diff --git a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp index 294da3ddd8f56013b3d56cc499bc0002c2815863..8f544a36201fa8f869f8967f2c1fc5a4ee2ad291 100644 --- a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp +++ b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp @@ -117,7 +117,6 @@ void multipleLevel(const std::string& configPath) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// bool useGridGenerator = true; - bool useMultiGPU = true; bool useStreams = true; bool useLevels = true; para->useReducedCommunicationAfterFtoC = true; @@ -144,7 +143,6 @@ void multipleLevel(const std::string& configPath) *logging::out << logging::Logger::INFO_HIGH << "viscosity real [m^2/s] = " << viscosityLB * para->getViscosityRatio() << "\n"; *logging::out << logging::Logger::INFO_HIGH << "dxGrid = " << dxGrid << "\n"; *logging::out << logging::Logger::INFO_HIGH << "useGridGenerator = " << useGridGenerator << "\n"; - *logging::out << logging::Logger::INFO_HIGH << "useMultiGPU = " << useMultiGPU << "\n"; *logging::out << logging::Logger::INFO_HIGH << "useStreams = " << useStreams << "\n"; @@ -173,7 +171,7 @@ void multipleLevel(const std::string& configPath) para->setMainKernel("CumulantK17CompChimStream"); *logging::out << logging::Logger::INFO_HIGH << "Kernel: " << para->getMainKernel() << "\n"; - // if (useMultiGPU) { + // if (para->getNumprocs() > 1) { // para->setDevices(std::vector<uint>{ (uint)0, (uint)1 }); // para->setMaxDev(2); // } else @@ -213,7 +211,7 @@ void multipleLevel(const std::string& configPath) bivalveRef_1_STL = TriangularMesh::make(stlPath + bivalveType + "_Level1.stl"); - if (useMultiGPU) { + if (para->getNumprocs() > 1) { const uint generatePart = vf::gpu::Communicator::getInstanz()->getPID(); real overlap = (real)8.0 * dxGrid; diff --git a/apps/gpu/LBM/MusselOyster/configPhoenix1GPU.txt b/apps/gpu/LBM/MusselOyster/configPhoenix1GPU.txt index bb905cf4f16b49481001a7080fd59f1a795e3a62..ff581337a0a1f1d5cfae349e5b57ee8ce13faa07 100644 --- a/apps/gpu/LBM/MusselOyster/configPhoenix1GPU.txt +++ b/apps/gpu/LBM/MusselOyster/configPhoenix1GPU.txt @@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL1GPU ################################################## #simulation parameter ################################################## -TimeEnd=100000 +TimeEnd=10000 TimeOut=1000 #TimeStartOut=0 \ No newline at end of file diff --git a/apps/gpu/LBM/MusselOyster/configPhoenix2GPU.txt b/apps/gpu/LBM/MusselOyster/configPhoenix2GPU.txt index 9cafddea7b86c9d026e629b11d199b465553cd7d..8ec2cd734205bf8841e4d0c96d7a7ba4dd5c79cc 100644 --- a/apps/gpu/LBM/MusselOyster/configPhoenix2GPU.txt +++ b/apps/gpu/LBM/MusselOyster/configPhoenix2GPU.txt @@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL2GPU ################################################## #simulation parameter ################################################## -TimeEnd=100000 +TimeEnd=10000 TimeOut=1000 #TimeStartOut=0 \ No newline at end of file diff --git a/apps/gpu/LBM/MusselOyster/configPhoenix4GPU.txt b/apps/gpu/LBM/MusselOyster/configPhoenix4GPU.txt index 0495f23b0e576607f4c869a819aa610c6ed851d1..576d270f7e6ec9790228b944e2e9e5c0e5f47e50 100644 --- a/apps/gpu/LBM/MusselOyster/configPhoenix4GPU.txt +++ b/apps/gpu/LBM/MusselOyster/configPhoenix4GPU.txt @@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL4GPU ################################################## #simulation parameter ################################################## -TimeEnd=100000 +TimeEnd=10000 TimeOut=1000 #TimeStartOut=0 \ No newline at end of file