Tests for solvers.
More...
|
| template<solver::method SOLVER> |
| void | test_solver (const typename SOLVER::base tolerance, const typename SOLVER::base omega0, const typename SOLVER::base kx0, const typename SOLVER::base dt) |
| | Test the solver.
|
| |
| template<typename DISPERSION > |
| void | run_dispersions_tests (const typename DISPERSION::base tolerance, const typename DISPERSION::base omega0, const typename DISPERSION::base kx0, const typename DISPERSION::base dt) |
| | Run tests with a specified dispersions Relation.
|
| |
| template<jit::float_scalar T> |
| void | run_tests (const T tolerance) |
| | 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_dispersions_tests()
template<typename DISPERSION >
| void run_dispersions_tests |
( |
const typename DISPERSION::base |
tolerance, |
|
|
const typename DISPERSION::base |
omega0, |
|
|
const typename DISPERSION::base |
kx0, |
|
|
const typename DISPERSION::base |
dt |
|
) |
| |
Run tests with a specified dispersions Relation.
- Template Parameters
-
| DISPERSION | Class of dispersion function to use. |
- Parameters
-
| [in] | tolerance | Tolerance 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 |
tolerance | ) |
|
Run tests with a specified backend.
- Template Parameters
-
| T | Base type of the calculation. |
- Parameters
-
| [in] | tolerance | Tolerance to solver the dispersion function to. |
◆ test_solver()
| void test_solver |
( |
const typename SOLVER::base |
tolerance, |
|
|
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] | tolerance | Tolerance to solver the dispersion function to. |
| [in] | omega0 | Ray frequency. |
| [in] | kx0 | Wave number guess. |
| [in] | dt | Time step for the solver. |