Macros | Functions
SPE.cpp File Reference
#include "SPE.hpp"
#include <string>

Macros

#define ANSI_COLOR_CYAN   "\x1b[36m"
 
#define ANSI_COLOR_RESET   "\x1b[0m"
 

Functions

int main (int argc, char **args)
 

Detailed Description

KSP^solving the SPE equations complex numbers; Parabolic Stability Equations for Transition modeling

Solves a complex linear system in parallel with KSP.

The model problem: Solve SPE equation in the channel flow Dirichlet b.c.'s on all sides Use the 3-D, finite difference stencil.

Compiling the code: This code uses the complex numbers version of PETSc, so configure must be run to enable this

Include "petscksp.h" so that we can use KSP solvers. Note that this file automatically includes: petscsys.h - base PETSc routines petscvec.h - vectors petscmat.h - matrices petscis.h - index sets petscksp.h - Krylov subspace methods petscviewer.h - viewers petscpc.h - preconditioners

Macro Definition Documentation

#define ANSI_COLOR_CYAN   "\x1b[36m"
#define ANSI_COLOR_RESET   "\x1b[0m"

Function Documentation

int main ( int  argc,
char **  args 
)