Skip to content

Commit

Permalink
typo in documentation, additional check for +ve weight
Browse files Browse the repository at this point in the history
  • Loading branch information
amartyads committed Feb 22, 2024
1 parent 36a774e commit 68351ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/parallel/StaticIrregDomainDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ void StaticIrregDomainDecomposition::updateSubdomainWeightsFromFile(std::string
while(ss.good()) {
int temp;
ss >> temp;
if (temp <=0) {
Log::global_log->fatal() << "CSV has non-natural number! Only weights > 0 allowed, please check CSV file!";
Simulation::exit(5003);
}
_subdomainWeights[i].push_back(temp);
if (ss.peek() == ',' || ss.peek() == ' ') //skip commas and spaces
ss.ignore();
Expand Down
2 changes: 1 addition & 1 deletion src/parallel/StaticIrregDomainDecomposition.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class StaticIrregDomainDecomposition : public DomainDecomposition {
/** @brief Reads in XML configuration for StaticIrregDomainDecomposition.
*
* The only configuration allowed right now is a CSV file, which contains the actual domain breakdown.
* Even though this class subclasses DomainDecomposition, it bypasses he readXML() mehod of DomainDecomposition
* Even though this class subclasses DomainDecomposition, it bypasses the readXML() mehod of DomainDecomposition
* because MPIGridDims is supposed to be calculated from the CSV configuration.
*
* The following xml object structure is handled by this method:
Expand Down

0 comments on commit 68351ab

Please sign in to comment.