Skip to content
Snippets Groups Projects
Commit 10340ccf authored by Oliver Sander's avatar Oliver Sander
Browse files

bugfix

[[Imported from SVN: r4780]]
parent 296b270e
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,6 @@ namespace Dune {
It is generally assumed that K is a numerical type compatible with double
(E.g. norms are always computed in double precision).
Implementation of all members uses template meta programs where appropriate
*/
template<class K, int SIZE>
class FieldVector
......@@ -309,7 +308,6 @@ namespace Dune {
It is generally assumed that K is a numerical type compatible with double
(E.g. norms are always computed in double precision).
Implementation of all members uses template meta programs where appropriate
*/
template<class K, int SIZE>
class FieldVector
......@@ -652,7 +650,7 @@ namespace Dune {
{
double result = 0;
for (int i=0; i<size; i++)
result += std::max(result, std::abs(p[i]));
result = std::max(result, std::abs(p[i]));
return result;
}
......@@ -661,7 +659,7 @@ namespace Dune {
{
double result = 0;
for (int i=0; i<size; i++)
result += std::max(result, fvmeta_absreal(p[i]));
result = std::max(result, fvmeta_absreal(p[i]));
return result;
}
#endif
......
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