Namespaces | Macros | Functions
print.cpp File Reference
#include "print.hpp"
#include "Init_Vec.hpp"
#include <assert.h>

Namespaces

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

Macros

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

Functions

PetscErrorCode SPE::printScalar (const PetscScalar x[], const PetscInt n=1, char const name[]="x", const PetscViewer viewer=PETSC_VIEWER_STDOUT_WORLD)
 Print PetscScalar variable to screen. More...
 
PetscErrorCode SPE::printReal (const PetscReal x[], const PetscInt n=1, char const name[]="x", const PetscViewer viewer=PETSC_VIEWER_STDOUT_WORLD)
 Print PetscReal variable to screen. More...
 
PetscErrorCode SPE::printVec (const Vec &x, const PetscInt n, char const name[]="x")
 Print Vec from PETSc type variable to screen. More...
 
PetscErrorCode SPE::printInt (const PetscInt x[], const PetscInt n=1, char const name[]="x")
 Print PetscInt variable to screen. More...
 
void SPE::printVecView (const Vec &x, char const name[]="x viewer", const PetscViewerFormat format=PETSC_VIEWER_DEFAULT)
 view PetscVec variable to screen Open an X-window viewer. Note that we specify the same communicator for the viewer as we used for the distributed vector (PETSC_COMM_WORLD). More...
 
PetscInt SPE::printMatView (const Mat &A, char const name[]="A viewer", const PetscViewerFormat format=PETSC_VIEWER_DEFAULT)
 view Petsc Mat variable to screen Open an X-window viewer. Note that we specify the same communicator for the viewer as we used for the distributed vector (PETSC_COMM_WORLD). More...
 
PetscInt SPE::printMatASCII (const Mat &A, char const name[]="printMatASCII.txt", const PetscViewerFormat format=PETSC_VIEWER_DEFAULT)
 view Petsc Mat variable to ASCII file More...
 
PetscInt SPE::printMatASCII (const Mat &A, std::string name, const PetscViewerFormat format=PETSC_VIEWER_DEFAULT)
 view Petsc Mat variable to ASCII file More...
 
void SPE::printMatGetDiagonalASCII (const Mat &A, char const name[]="printMatGetDiagonalASCII.txt", const PetscViewerFormat format=PETSC_VIEWER_ASCII_MATLAB)
 print diagonal of Petsc Mat variable to ASCII file More...
 
void SPE::printVecASCII (const Vec &b, char const name[]="printVecASCII.txt", const PetscViewerFormat format=PETSC_VIEWER_ASCII_MATLAB)
 view Petsc Vec variable to ASCII file More...
 
PetscErrorCode SPE::printClosureIter (SPE &data)
 print iteration residuals to screen from update_Closure iterations More...
 
PetscErrorCode SPE::printNonlinearIter (SPE &data)
 print iteration residuals to screen from update_Nonlinear iterations More...
 
void SPE::printHeaderIter ()
 print iteration residuals header to screen More...
 
PetscErrorCode SPE::printBaseNonlinearIter (SPE &data, PetscReal basenonlinear_error, PetscInt basenonlinear_iter)
 print iteration residuals to screen from baseflow nonlinear iterations More...
 

Macro Definition Documentation

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