return a;
}
- // In the import_from_ghosted_array_finish we need to calculate maximal
- // and minimal value on number types, which is not straight forward for
- // complex numbers. Therfore, comparison of complex numbers is
- // prohibited and throw an assert.
+ // In the import_from_ghosted_array_finish we might need to calculate the
+ // maximal and minimal value for the given number type, which is not
+ // straight forward for complex numbers. Therefore, comparison of complex
+ // numbers is prohibited and throws an exception.
template <typename Number>
Number
get_min(const Number a, const Number b)
get_min(const std::complex<Number> a, const std::complex<Number>)
{
AssertThrow(false,
- ExcMessage("VectorOperation::min max not"
+ ExcMessage("VectorOperation::min not "
"implemented for complex numbers"));
return a;
}
get_max(const std::complex<Number> a, const std::complex<Number>)
{
AssertThrow(false,
- ExcMessage("VectorOperation::min max not "
+ ExcMessage("VectorOperation::max not "
"implemented for complex numbers"));
return a;
}
* actually consistent between processors, i.e., whenever a non-zero
* ghost element is found, it is compared to the value on the owning
* processor and an exception is thrown if these elements do not agree.
- * If called with VectorOperation::min or VectorOperation::max the
+ * If called with VectorOperation::min or VectorOperation::max, the
* minimum or maximum on all elements across the processors is set.
* @note This vector class has a fixed set of ghost entries attached to
* the local representation. As a consequence, all ghost entries are
- * assumed to be valid and will be unconditionally exchanged according
+ * assumed to be valid and will be exchanged unconditionally according
* to the given VectorOperation. Make sure to initialize all ghost
- * entries with the neutral element of the given VectorOperation. The
- * neutral element is zero for VectorOperation::add and
- * VectorOperation::insert, `+inf` for VectorOperation::min, and `-inf`
- * for VectorOperation::max or touch all ghost entries. If all values
- * are initialized with values below zero and compress is called with
- * VectorOperation::max two times subsequently, the maximal value
+ * entries with the neutral element of the given VectorOperation or
+ * touch all ghost entries. The neutral element is zero for
+ * VectorOperation::add and VectorOperation::insert, `+inf` for
+ * VectorOperation::min, and `-inf` for VectorOperation::max. If all
+ * values are initialized with values below zero and compress is called
+ * with VectorOperation::max two times subsequently, the maximal value
* after the second calculation will be zero.
*/
virtual void
namespace internal
{
- // In the import_from_ghosted_array_finish we need to calculate maximal
- // and minimal value on number types, which is not straight forward for
- // complex numbers. Therfore, comparison of complex numbers is
- // prohibited and throw an assert.
+ // In the import_from_ghosted_array_finish we need to calculate the maximal
+ // and minimal value for the given number type, which is not straight
+ // forward for complex numbers. Therefore, comparison of complex numbers is
+ // prohibited and throws an assert.
template <typename Number>
Number
get_min(const Number a, const Number b)
get_min(const std::complex<Number> a, const std::complex<Number>)
{
AssertThrow(false,
- ExcMessage("VectorOperation::min max not"
+ ExcMessage("VectorOperation::min not "
"implemented for complex numbers"));
return a;
}
get_max(const std::complex<Number> a, const std::complex<Number>)
{
AssertThrow(false,
- ExcMessage("VectorOperation::min max not "
+ ExcMessage("VectorOperation::max not "
"implemented for complex numbers"));
return a;
}
else
Assert(
false,
- "compress() can only be called with VectorOperation add, insert, or unknown");
+ ExcMessage(
+ "compress() can only be called with VectorOperation add, insert, or unknown"));
}
else
{
else
Assert(
false,
- "compress() can only be called with VectorOperation add, insert, or unknown");
+ ExcMessage(
+ "compress() can only be called with VectorOperation add, insert, or unknown"));
}
else
{