diff --git a/MathLib/LinAlg/LinAlg.cpp b/MathLib/LinAlg/LinAlg.cpp index a06ab49642f..5e688a3fd1e 100644 --- a/MathLib/LinAlg/LinAlg.cpp +++ b/MathLib/LinAlg/LinAlg.cpp @@ -70,6 +70,13 @@ void axpby(PETScVector& y, PetscScalar const a, PetscScalar const b, // Explicit specialization // Computes w = x/y componentwise. +// \note that VecPointwiseDivide avoids to divide by values that are +// identically zero such as +// for (int i=0; i void componentwiseDivide(PETScVector& w, PETScVector const& x, PETScVector const& y)