From 72f0d15a826c11ce7255f0902d69b3f3556d742a Mon Sep 17 00:00:00 2001 From: Wenqing Wang <wenqing.wang@ufz.de> Date: Wed, 12 Mar 2014 13:20:27 +0100 Subject: [PATCH] Remove one blank line in some comments of documentation according to Karstens comments --- MathLib/LinAlg/PETSc/PETScVector.cpp | 1 - MathLib/LinAlg/PETSc/PETScVector.h | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/MathLib/LinAlg/PETSc/PETScVector.cpp b/MathLib/LinAlg/PETSc/PETScVector.cpp index 5e33f259bbb..142aca9384a 100644 --- a/MathLib/LinAlg/PETSc/PETScVector.cpp +++ b/MathLib/LinAlg/PETSc/PETScVector.cpp @@ -59,7 +59,6 @@ PETScVector::PETScVector(const PETScVector &existing_vec, const bool deep_copy) } } -//----------------------------------------------------------------- void PETScVector::gatherLocalVectors( PetscScalar local_array[], PetscScalar global_array[]) { diff --git a/MathLib/LinAlg/PETSc/PETScVector.h b/MathLib/LinAlg/PETSc/PETScVector.h index b826465a7b9..b5a72069fee 100644 --- a/MathLib/LinAlg/PETSc/PETScVector.h +++ b/MathLib/LinAlg/PETSc/PETScVector.h @@ -39,7 +39,8 @@ class PETScVector /*! \brief Constructor \param vec_size The size of the vector, either global or local - \param is_global_size The flag of the global size, the default is true + \param is_global_size The flag of the type of vec_size, i.e. whether it is a global size + or local size. The default is true. */ PETScVector(const PetscInt vec_size, const bool is_global_size = true); @@ -95,7 +96,6 @@ class PETScVector /*! Insert a single entry with value. - \param i Entry index \param value Entry value @@ -107,7 +107,6 @@ class PETScVector /*! Add a value to an entry. - \param i Number of the entry \param value Value. */ @@ -154,7 +153,6 @@ class PETScVector /*! Get local vector, i.e. entries in the same rank - \param loc_vec Pointer to array where stores the local vector, memory allocation is not needed */ @@ -167,7 +165,6 @@ class PETScVector /*! Get global vector - \param u Array to store the global vector. Memory allocation is needed in advance */ void getGlobalVector(PetscScalar u[]); @@ -176,7 +173,7 @@ class PETScVector /// and it only get local value. Use it for only test purpose PetscScalar get(const PetscInt idx) const { - double x; + PetscScalar x; VecGetValues(_v, 1, &idx, &x); return x; } -- GitLab