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

Constness

[[Imported from SVN: r6597]]
parent c2c7c1c1
Branches
Tags
No related merge requests found
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
tmp = 0; tmp = 0;
A.umv(f, tmp); A.umv(f, tmp);
double ret = f*tmp; double const ret = f*tmp;
if (ret < 0) if (ret < 0)
{ {
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
sprintf(msg, "Supplied linear operator is not positive (semi-)definite: (u,Au) = %e", ret); sprintf(msg, "Supplied linear operator is not positive (semi-)definite: (u,Au) = %e", ret);
DUNE_THROW(Dune::RangeError, msg); DUNE_THROW(Dune::RangeError, msg);
} }
ret = 0.0; return 0.0;
} }
return ret; return ret;
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
tmp = 0; tmp = 0;
A.umv(u, tmp); A.umv(u, tmp);
double ret = u*tmp; double const ret = u*tmp;
if (ret < 0) if (ret < 0)
{ {
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
sprintf(msg, "Supplied linear operator is not positive (semi-)definite: (u,Au) = %e", ret); sprintf(msg, "Supplied linear operator is not positive (semi-)definite: (u,Au) = %e", ret);
DUNE_THROW(Dune::RangeError, msg); DUNE_THROW(Dune::RangeError, msg);
} }
ret = 0.0; return 0.0;
} }
return ret; return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment