Tests for math nodes.
More...
|
| template<dispersion::function DISPERSION> |
| void | test_solve (const typename DISPERSION::base tolarance, const typename DISPERSION::base omega, const typename DISPERSION::base k_guess, equilibrium::shared< typename DISPERSION::base > &eq) |
| | The newton solve for dispersion 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_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_solve()
| void test_solve |
( |
const typename DISPERSION::base |
tolarance, |
|
|
const typename DISPERSION::base |
omega, |
|
|
const typename DISPERSION::base |
k_guess, |
|
|
equilibrium::shared< typename DISPERSION::base > & |
eq |
|
) |
| |
The newton solve for dispersion relation.
- Template Parameters
-
| DISPERSION | Class of dispersion function to use. |
- Parameters
-
| [in] | tolarance | Tolarance to solver the dispersion function to. |
| [in] | omega | Ray frequency. |
| [in] | k_guess | Inital guess for the wave number. |
| [in,out] | eq | The equilibrium. |