diff --git a/src/mirco_topology.cpp b/src/mirco_topology.cpp index 8d17ab5..072851b 100644 --- a/src/mirco_topology.cpp +++ b/src/mirco_topology.cpp @@ -22,7 +22,7 @@ void MIRCO::ReadFile::GetSurface(Teuchos::SerialDenseMatrix &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; @@ -34,7 +34,6 @@ void MIRCO::ReadFile::GetSurface(Teuchos::SerialDenseMatrix &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; diff --git a/src/mirco_topology.h b/src/mirco_topology.h index d49cd25..bb4b10a 100644 --- a/src/mirco_topology.h +++ b/src/mirco_topology.h @@ -22,6 +22,8 @@ namespace MIRCO */ virtual void GetSurface(Teuchos::SerialDenseMatrix &z) = 0; TopologyGeneration(int nn) { resolution = nn; } + + virtual ~TopologyGeneration() = default; }; class ReadFile : public TopologyGeneration