set_Vec.hpp
Go to the documentation of this file.
1 #ifndef SET_VEC_H
2 #define SET_VEC_H
3 #include <petscksp.h>
4 namespace SPE{
10  PetscInt set_Vec(
11  const PetscScalar *bin,
12  const PetscInt &n,
13  Vec &b,
14  const PetscBool &parallel=PETSC_TRUE
15  );
16 
22  PetscInt set_Vec(
23  Vec &b
24  );
30  PetscInt set_Vec(
31  const PetscScalar &bin,
32  const PetscInt &n,
33  Vec &b
34  );
40  PetscInt set_Vec(
41  const Vec &inVec,
42  const PetscInt &low,
43  const PetscInt &hi,
44  Vec &b
45  );
51  PetscInt set_Vec_linspace(
52  PetscScalar a,
53  const PetscScalar b,
54  const PetscInt n,
55  PetscScalar y[]
56  );
57 }
58 
59 
60 #endif
PetscInt 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
Definition: set_Vec.cpp:6
Namespace containing all functions and data classes for this solver.
Definition: Ax_b.hpp:5
PetscInt 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
Definition: set_Vec.cpp:89