Skip to content

Commit

Permalink
Merge pull request #54 from HSU-HPC/fix-mamico-with-openfoam
Browse files Browse the repository at this point in the history
Fixing Couette configuration source file when using OpenFOAM
  • Loading branch information
rubenhorn authored Jul 16, 2024
2 parents cd9adc7 + e9d41d4 commit 36ec067
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions coupling/configurations/CouetteConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36ec067

Please sign in to comment.