Commit ca3febb8 authored by Praetorius, Simon's avatar Praetorius, Simon

constness of some functions added

parent 0c7dd2b6
...@@ -101,7 +101,7 @@ namespace AMDiS { ...@@ -101,7 +101,7 @@ namespace AMDiS {
{} {}
/// Returns \ref name. /// Returns \ref name.
inline std::string getName() inline std::string getName() const
{ {
return name; return name;
} }
......
...@@ -103,7 +103,7 @@ namespace AMDiS { ...@@ -103,7 +103,7 @@ namespace AMDiS {
double integrateStdSimplex(AbstractFunction<double, DimVec<double> > *f); double integrateStdSimplex(AbstractFunction<double, DimVec<double> > *f);
/// Returns \ref name /// Returns \ref name
inline std::string getName() inline std::string getName() const
{ {
return name; return name;
} }
......
...@@ -151,7 +151,7 @@ namespace AMDiS { namespace Parallel { ...@@ -151,7 +151,7 @@ namespace AMDiS { namespace Parallel {
/// the program if it finds a non macro element in the mesh. /// the program if it finds a non macro element in the mesh.
void testForMacroMesh(); void testForMacroMesh();
inline std::string getName() inline std::string getName() const
{ {
return name; return name;
} }
......
...@@ -126,17 +126,17 @@ public: ...@@ -126,17 +126,17 @@ public:
} }
/// name of the baseBroblem /// name of the baseBroblem
std::string getName() std::string getName() const
{ {
return name; return name;
} }
int getNumProblems() int getNumProblems() const
{ {
return 1; return 1;
} }
int getNumComponents() int getNumComponents() const
{ {
return prob->getNumComponents(); return prob->getNumComponents();
} }
......
...@@ -108,7 +108,7 @@ public: ...@@ -108,7 +108,7 @@ public:
return baseProblems[i]->getFeSpace(j); return baseProblems[i]->getFeSpace(j);
} }
std::string getName() { return name; } std::string getName() const { return name; }
protected: protected:
std::vector<BaseProblemType*> baseProblems; std::vector<BaseProblemType*> baseProblems;
......
...@@ -204,7 +204,7 @@ public: ...@@ -204,7 +204,7 @@ public:
return _GET_<i>(baseProblems).getFeSpace(j); return _GET_<i>(baseProblems).getFeSpace(j);
} }
std::string getName() { return name; } std::string getName() const { return name; }
template<typename BaseProblemType> template<typename BaseProblemType>
...@@ -254,7 +254,7 @@ public: ...@@ -254,7 +254,7 @@ public:
} }
// using CProblemStat::getNumProblems // using CProblemStat::getNumProblems
virtual int getNumProblems() override virtual int getNumProblems() const override
{ {
return CProblemStat::getNumProblems(); return CProblemStat::getNumProblems();
} }
......
...@@ -88,9 +88,9 @@ public: ...@@ -88,9 +88,9 @@ public:
return predictorProb->getMesh(comp); return predictorProb->getMesh(comp);
} }
std::string getName() { return name; }; std::string getName() const { return name; };
int getNumProblems() { return 3; }; int getNumProblems() const { return 3; };
ProblemStatType *getProblem(int number= 0) ProblemStatType *getProblem(int number= 0)
{ FUNCNAME("NavierStokes_Chorin::getProblem()"); { FUNCNAME("NavierStokes_Chorin::getProblem()");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment