Skip to content

Commit

Permalink
Merge pull request #92 from sebproell/clang-warnings
Browse files Browse the repository at this point in the history
Fix two warnings when compiling with Clang
  • Loading branch information
mayrmt authored Mar 25, 2024
2 parents 8a8ae9c + f020956 commit a369329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/mirco_topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void MIRCO::ReadFile::GetSurface(Teuchos::SerialDenseMatrix<int, double> &z)
}
reader.close();
z.shape(dimension, dimension);
int position = 0, separatorPosition, lineCounter = 0;
int separatorPosition, lineCounter = 0;
std::ifstream stream(TopologyFilePath);
std::string line, container;
double value;
Expand All @@ -34,7 +34,6 @@ void MIRCO::ReadFile::GetSurface(Teuchos::SerialDenseMatrix<int, double> &z)
{
separatorPosition = line.find_first_of(';');
container = line.substr(0, separatorPosition);
position += 1;
line = line.substr(separatorPosition + 1, line.length());
value = stod(container);
z(lineCounter - 1, i) = value;
Expand Down
2 changes: 2 additions & 0 deletions src/mirco_topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace MIRCO
*/
virtual void GetSurface(Teuchos::SerialDenseMatrix<int, double> &z) = 0;
TopologyGeneration(int nn) { resolution = nn; }

virtual ~TopologyGeneration() = default;
};

class ReadFile : public TopologyGeneration
Expand Down

0 comments on commit a369329

Please sign in to comment.