BUGFIX: In parallel run, if no cells are on a processor, min() returns no ::max instead of ::zero and max() returns ::min instead of ::zero. Author: Pablo Higuera. Merge: Dominik Christ.
This commit is contained in:
commit
c5a2b9d772
1 changed files with 2 additions and 8 deletions
|
@ -318,10 +318,7 @@ Type max(const UList<Type>& f)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WarningIn("max(const UList<Type>&)")
|
return pTraits<Type>::min;
|
||||||
<< "empty field, returning zero" << endl;
|
|
||||||
|
|
||||||
return pTraits<Type>::zero;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,10 +335,7 @@ Type min(const UList<Type>& f)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WarningIn("min(const UList<Type>&)")
|
return pTraits<Type>::max;
|
||||||
<< "empty field, returning zero" << endl;
|
|
||||||
|
|
||||||
return pTraits<Type>::zero;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue