diff --git a/MathLib/LinAlg/FinalizeVectorAssembly.h b/MathLib/LinAlg/FinalizeVectorAssembly.h index f970875037e433ea27021b4ed8fa13cb72a539af..136fd69da68f462d0dd727c306d6fc307e7726fc 100644 --- a/MathLib/LinAlg/FinalizeVectorAssembly.h +++ b/MathLib/LinAlg/FinalizeVectorAssembly.h @@ -16,7 +16,7 @@ namespace MathLib { - +/// General function to finalize the vector assembly template <typename VEC_T> void finalizeVectorAssembly(VEC_T &) { diff --git a/MathLib/LinAlg/PETSc/PETScVector.cpp b/MathLib/LinAlg/PETSc/PETScVector.cpp index 5e33f259bbbdd97cb52ed6d8ea3306d24ecbcc01..142aca9384a08000315b70674a3b2387b02d9957 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 37552355f09a7bb4511af547f580b2c6431bae93..b5a72069fee3243dbd627cdd8ffaeae3e8f54b91 100644 --- a/MathLib/LinAlg/PETSc/PETScVector.h +++ b/MathLib/LinAlg/PETSc/PETScVector.h @@ -20,7 +20,7 @@ #include <string> #include <vector> -#include "petscvec.h" +#include <petscvec.h> #include "LinAlg/VectorNorms.h" typedef Vec PETSc_Vec; @@ -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; } @@ -260,6 +257,7 @@ class PETScVector friend void finalizeVectorAssembly(PETScVector &vec); }; +/// Function to finalize the vector assembly void finalizeVectorAssembly(PETScVector &vec); } // end namespace diff --git a/Tests/testrunner.cpp b/Tests/testrunner.cpp index cadaa5d633c59adbb88cc09d3d50cc44d6227d5d..af887d2e65bb1ccf5a0cba0ad4555e1e2f198657 100644 --- a/Tests/testrunner.cpp +++ b/Tests/testrunner.cpp @@ -18,11 +18,11 @@ #include "logog/include/logog.hpp" #ifdef USE_LIS -#include "lis.h" +#include <lis.h> #endif #ifdef USE_PETSC -#include "petscksp.h" +#include <petscksp.h> #endif #include "BaseLib/TemplateLogogFormatterSuppressedGCC.h"