set_D.hpp
Go to the documentation of this file.
1 #ifndef SET_D_H
2 #define SET_D_H
3 #include <petscksp.h>
4 #include "class.hpp"
5 namespace SPE
6 {
12  PetscInt set_D(
13  const PetscScalar y[],
14  const PetscScalar yP[],
15  const PetscInt &n,
16  Mat &output,
17  SPE &data,
18  const PetscInt &order=2,
19  const PetscInt &d=2 ,
20  const PetscBool &periodic=PETSC_FALSE,
21  const PetscBool &staggered=PETSC_FALSE,
22  const PetscBool &reduce_wall_order=PETSC_TRUE,
23  const PetscBool &uniform=PETSC_TRUE
24  );
30  PetscInt set_D_fourier(
31  const PetscInt N,
32  const PetscScalar &T,
33  Mat &output,
34  const PetscInt &d=1
35  );
41  PetscInt set_D(
42  SPE &data
43  );
44 }
45 
46 #endif
47 
PetscInt set_D_fourier(const PetscInt N, const PetscScalar &T, Mat &output, const PetscInt &d=1)
set D matrix operator for specified derivative using fouier collocated points
Definition: set_D.cpp:358
Namespace containing all functions and data classes for this solver.
Definition: Ax_b.hpp:5
PetscInt set_D(const PetscScalar y[], const PetscScalar yP[], const PetscInt &n, Mat &output, SPE &data, const PetscInt &order=2, const PetscInt &d=2, const PetscBool &periodic=PETSC_FALSE, const PetscBool &staggered=PETSC_FALSE, const PetscBool &reduce_wall_order=PETSC_TRUE, const PetscBool &uniform=PETSC_TRUE)
set D matrix operator for specified order and derivative
Definition: set_D.cpp:18