From f4892645a1bf8208a1f894a00750c408a20b0c95 Mon Sep 17 00:00:00 2001 From: Soeren Peters <soe.peters@tu-braunschweig.de> Date: Tue, 5 Oct 2021 17:43:21 +0200 Subject: [PATCH] Use new communicator singleton reference. --- apps/gpu/LBM/ActuatorLine/ActuatorLine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/gpu/LBM/ActuatorLine/ActuatorLine.cpp b/apps/gpu/LBM/ActuatorLine/ActuatorLine.cpp index bc4a428ec..32a7b4081 100644 --- a/apps/gpu/LBM/ActuatorLine/ActuatorLine.cpp +++ b/apps/gpu/LBM/ActuatorLine/ActuatorLine.cpp @@ -127,12 +127,12 @@ void multipleLevel(const std::string& configPath) if( lbmOrGks == LBM ) { - vf::gpu::Communicator* comm = vf::gpu::Communicator::getInstanz(); + vf::gpu::Communicator& communicator = vf::gpu::Communicator::getInstance(); vf::basics::ConfigurationFile config; config.load(configPath); - //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - SPtr<Parameter> para = std::make_shared<Parameter>(config, comm->getNummberOfProcess(), comm->getPID()); + ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////^ + SPtr<Parameter> para = std::make_shared<Parameter>(config, communicator.getNummberOfProcess(), communicator.getPID()); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -220,7 +220,7 @@ void multipleLevel(const std::string& configPath) - Simulation sim; + Simulation sim(communicator); SPtr<FileWriter> fileWriter = SPtr<FileWriter>(new FileWriter()); SPtr<KernelFactoryImp> kernelFactory = KernelFactoryImp::getInstance(); SPtr<PreProcessorFactoryImp> preProcessorFactory = PreProcessorFactoryImp::getInstance(); -- GitLab