Graph Framework
Loading...
Searching...
No Matches
solver_test.cpp File Reference

Tests for solvers. More...

Functions

template<solver::method SOLVER>
void test_solver (const typename SOLVER::base tolarance, const typename SOLVER::base omega0, const typename SOLVER::base kx0, const typename SOLVER::base dt)
 Test the solver.
 
template<typename DISPERSION >
void run_disperions_tests (const typename DISPERSION::base tolarance, const typename DISPERSION::base omega0, const typename DISPERSION::base kx0, const typename DISPERSION::base dt)
 Run tests with a specified disperions Relation.
 
template<jit::float_scalar T>
void run_tests (const T tolarance)
 Run tests with a specified backend.
 
int main (int argc, const char *argv[])
 Main program of the test.
 

Detailed Description

Tests for solvers.

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Main program of the test.

Parameters
[in]argcNumber of commandline arguments.
[in]argvArray of commandline arguments.

◆ run_disperions_tests()

template<typename DISPERSION >
void run_disperions_tests ( const typename DISPERSION::base  tolarance,
const typename DISPERSION::base  omega0,
const typename DISPERSION::base  kx0,
const typename DISPERSION::base  dt 
)

Run tests with a specified disperions Relation.

Template Parameters
DISPERSIONClass of dispersion function to use.
Parameters
[in]tolaranceTolarance to solver the dispersion function to.
[in]omega0Ray frequency.
[in]kx0Wave number guess.
[in]dtTimestep for the solver.

◆ run_tests()

template<jit::float_scalar T>
void run_tests ( const T  tolarance)

Run tests with a specified backend.

Template Parameters
TBase type of the calculation.
Parameters
[in]tolaranceTolarance to solver the dispersion function to.

◆ test_solver()

template<solver::method SOLVER>
void test_solver ( const typename SOLVER::base  tolarance,
const typename SOLVER::base  omega0,
const typename SOLVER::base  kx0,
const typename SOLVER::base  dt 
)

Test the solver.

Template Parameters
SOLVERClass of solver to use.
Parameters
[in]tolaranceTolarance to solver the dispersion function to.
[in]omega0Ray frequency.
[in]kx0Wave number guess.
[in]dtTimestep for the solver.