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

More constness

parent 27480c24
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,8 @@ class MyNonlinearity { ...@@ -23,7 +23,8 @@ class MyNonlinearity {
typedef SmallMatrix MatrixType; typedef SmallMatrix MatrixType;
// directional subdifferential: at u on the line u + t*v // directional subdifferential: at u on the line u + t*v
void directionalSubDiff(VectorType u, VectorType v, Interval<double>& D) { void directionalSubDiff(VectorType const u, VectorType const v,
Interval<double>& D) const {
if (u == SmallVector(0.0)) { if (u == SmallVector(0.0)) {
D[0] = D[1] = func_.rightDifferential(0); D[0] = D[1] = func_.rightDifferential(0);
return; return;
......
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