Namespaces | Functions
set_Vec.hpp File Reference
#include <petscksp.h>

Go to the source code of this file.

Namespaces

 SPE
 Namespace containing all functions and data classes for this solver.
 

Functions

PetscInt SPE::set_Vec (const PetscScalar *bin, const PetscInt &n, Vec &b, const PetscBool &parallel=PETSC_TRUE)
 set a vector from PetscScalar 1D vector to PETSc Vec type in parallel More...
 
PetscInt SPE::set_Vec (Vec &b)
 Assemble b vector. More...
 
PetscInt SPE::set_Vec (const PetscScalar &bin, const PetscInt &n, Vec &b)
 set a vector from PetscScalar to PETSc Vec in location n More...
 
PetscInt SPE::set_Vec (const Vec &inVec, const PetscInt &low, const PetscInt &hi, Vec &b)
 set a subvector from larger vector from low to hi indices More...
 
PetscInt SPE::set_Vec_linspace (PetscScalar a, const PetscScalar b, const PetscInt n, PetscScalar y[])
 set values of y, use linspace similar to matlab, creates on every processor More...