Skip to content

Commit

Permalink
Merge branch 'master' into fix/mamico-cfg-periodic-checkpoint-WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhorn authored Nov 29, 2024
2 parents 1048939 + 8e00ead commit e01da91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions coupling/configurations/ThermostatConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ class coupling::configurations::ThermostatConfiguration : public tarch::configur
_type = onlyOutestLayer;
} else if (value == "outerLayers") {
_type = outerLayers;
int cellsTemp = 0;
tarch::configuration::ParseConfiguration::readIntOptional(cellsTemp, node, "number-layers");
if (cellsTemp <= 0) {
tarch::configuration::ParseConfiguration::readIntMandatory(_cells, node, "number-layers");
if (_cells < 0) {
std::cout << "ERROR coupling::ThermostatConfiguration: Wrong number of cells to use!" << std::endl;
_isValid = false;
exit(EXIT_FAILURE);
}
_cells = cellsTemp - 1;
} else if (value == "all") {
_type = all;
} else if (value == "nowhere") {
Expand Down

0 comments on commit e01da91

Please sign in to comment.