SPI
SLEPc PETSc Interface is used for rapid development and intuitive matrix operations similar to MatLab or NumPy style of operations
Functions
tests.hpp File Reference

Go to the source code of this file.

Functions

void test_if_true (PetscBool test, std::string name)
 
void test_if_close (PetscScalar value, PetscScalar golden, std::string name, PetscReal tol=1.E-13)
 
int tests ()
 

Function Documentation

◆ test_if_close()

void test_if_close ( PetscScalar  value,
PetscScalar  golden,
std::string  name,
PetscReal  tol = 1.E-13 
)

Definition at line 11 of file tests.cpp.

◆ test_if_true()

void test_if_true ( PetscBool  test,
std::string  name 
)

Definition at line 6 of file tests.cpp.

◆ tests()

int tests ( )

Definition at line 24 of file tests.cpp.