Tests for solvers.
More...
|
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.
|
|
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Main program of the test.
- Parameters
-
[in] | argc | Number of commandline arguments. |
[in] | argv | Array 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
-
DISPERSION | Class of dispersion function to use. |
- Parameters
-
[in] | tolarance | Tolarance to solver the dispersion function to. |
[in] | omega0 | Ray frequency. |
[in] | kx0 | Wave number guess. |
[in] | dt | Timestep for the solver. |
◆ run_tests()
void run_tests |
( |
const T |
tolarance | ) |
|
Run tests with a specified backend.
- Template Parameters
-
T | Base type of the calculation. |
- Parameters
-
[in] | tolarance | Tolarance to solver the dispersion function to. |
◆ test_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
-
SOLVER | Class of solver to use. |
- Parameters
-
[in] | tolarance | Tolarance to solver the dispersion function to. |
[in] | omega0 | Ray frequency. |
[in] | kx0 | Wave number guess. |
[in] | dt | Timestep for the solver. |