From e9d41d4ecd100911e1247b9dfcd6527d99b12fb9 Mon Sep 17 00:00:00 2001 From: Louis Viot Date: Tue, 16 Jul 2024 14:41:38 +0200 Subject: [PATCH] Fixing Couette configuration source file when using OpenFOAM --- coupling/configurations/CouetteConfiguration.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/coupling/configurations/CouetteConfiguration.h b/coupling/configurations/CouetteConfiguration.h index 993298e08..ef3b350c0 100644 --- a/coupling/configurations/CouetteConfiguration.h +++ b/coupling/configurations/CouetteConfiguration.h @@ -191,12 +191,12 @@ struct coupling::configurations::CouetteConfig { } #if (BUILD_WITH_OPENFOAM) else if (type == "foam") { - _cfg.maSolverType = COUETTE_FOAM; - tarch::configuration::ParseConfiguration::readIntMandatory(_cfg.plotEveryTimestep, subtag, "plot-every-timestep"); - tarch::configuration::ParseConfiguration::readStringMandatory(_cfg.foam.directory, subtag, "foam-setup-directory"); - tarch::configuration::ParseConfiguration::readStringMandatory(_cfg.foam.folder, subtag, "foam-setup-folder"); - tarch::configuration::ParseConfiguration::readVectorMandatory<12, unsigned int>(_cfg.foam.boundariesWithMD, subtag, "boundaries-with-MD"); - if (!_cfg.twoWayCoupling && _cfg.foam.boundariesWithMD != tarch::la::Vector<12, unsigned int>{0}) { + cfg.maSolverType = COUETTE_FOAM; + tarch::configuration::ParseConfiguration::readIntMandatory(cfg.plotEveryTimestep, subtag, "plot-every-timestep"); + tarch::configuration::ParseConfiguration::readStringMandatory(cfg.foam.directory, subtag, "foam-setup-directory"); + tarch::configuration::ParseConfiguration::readStringMandatory(cfg.foam.folder, subtag, "foam-setup-folder"); + tarch::configuration::ParseConfiguration::readVectorMandatory<12, unsigned int>(cfg.foam.boundariesWithMD, subtag, "boundaries-with-MD"); + if (!cfg.twoWayCoupling && cfg.foam.boundariesWithMD != tarch::la::Vector<12, unsigned int>{0}) { std::cout << "ERROR: Two-way coupling is disabled, but boundaries with " "MD for openfoam were defined" << std::endl;