Skip to content
Snippets Groups Projects
Commit cf019601 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Constness

parent 81e6d3e8
No related branches found
No related tags found
No related merge requests found
...@@ -99,13 +99,13 @@ class RuinaFunction : public NiceFunction { ...@@ -99,13 +99,13 @@ class RuinaFunction : public NiceFunction {
} }
private: private:
double coefficient; double const coefficient;
double a; double const a;
double mu; double const mu;
double eta; double const eta;
double normalStress; double const normalStress;
double rho; double const rho;
}; };
class LinearFunction : public NiceFunction { class LinearFunction : public NiceFunction {
...@@ -125,7 +125,7 @@ class LinearFunction : public NiceFunction { ...@@ -125,7 +125,7 @@ class LinearFunction : public NiceFunction {
double virtual regularity(double s) const { return 0; } double virtual regularity(double s) const { return 0; }
private: private:
double coefficient; double const coefficient;
}; };
template <int slope> class SampleFunction : public NiceFunction { template <int slope> class SampleFunction : public NiceFunction {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment