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

constness of some functions added

parent 6b3dafe5
......@@ -101,7 +101,7 @@ namespace AMDiS {
{}
/// Returns \ref name.
inline std::string getName()
inline std::string getName() const
{
return name;
}
......
......@@ -103,7 +103,7 @@ namespace AMDiS {
double integrateStdSimplex(AbstractFunction<double, DimVec<double> > *f);
/// Returns \ref name
inline std::string getName()
inline std::string getName() const
{
return name;
}
......
......@@ -151,7 +151,7 @@ namespace AMDiS { namespace Parallel {
/// the program if it finds a non macro element in the mesh.
void testForMacroMesh();
inline std::string getName()
inline std::string getName() const
{
return name;
}
......
......@@ -126,17 +126,17 @@ public:
}
/// name of the baseBroblem
std::string getName()
std::string getName() const
{
return name;
}
int getNumProblems()
int getNumProblems() const
{
return 1;
}
int getNumComponents()
int getNumComponents() const
{
return prob->getNumComponents();
}
......
......@@ -108,7 +108,7 @@ public:
return baseProblems[i]->getFeSpace(j);
}
std::string getName() { return name; }
std::string getName() const { return name; }
protected:
std::vector<BaseProblemType*> baseProblems;
......
......@@ -204,7 +204,7 @@ public:
return _GET_<i>(baseProblems).getFeSpace(j);
}
std::string getName() { return name; }
std::string getName() const { return name; }
template<typename BaseProblemType>
......@@ -254,7 +254,7 @@ public:
}
// using CProblemStat::getNumProblems
virtual int getNumProblems() override
virtual int getNumProblems() const override
{
return CProblemStat::getNumProblems();
}
......
......@@ -88,9 +88,9 @@ public:
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)
{ 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