Tests for efit splines.
More...
#include <cassert>
#include <vector>
#include <netcdf.h>
#include "equilibrium.hpp"
|
| template<jit::float_scalar T> |
| void | check_error (const T test, const T expected, const T tolarance, const char *name) |
| | Check error.
|
| |
| template<jit::float_scalar T> |
| void | check_error (const T test, const T tolarance, const char *name) |
| | Check error.
|
| |
| template<typename T > |
| void | run_test () |
| | Run tests.
|
| |
| int | main (int argc, const char *argv[]) |
| | Main program of the test.
|
| |
◆ check_error() [1/2]
| void check_error |
( |
const T |
test, |
|
|
const T |
expected, |
|
|
const T |
tolarance, |
|
|
const char * |
name |
|
) |
| |
Check error.
- Parameters
-
| [in] | test | Test value. |
| [in] | expected | Expected result. |
| [in] | tolarance | Error tolarance. |
| [in] | name | Name of the test. |
◆ check_error() [2/2]
| void check_error |
( |
const T |
test, |
|
|
const T |
tolarance, |
|
|
const char * |
name |
|
) |
| |
Check error.
- Parameters
-
| [in] | test | Test value. |
| [in] | tolarance | Error tolarance. |
| [in] | name | Name 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_test()
Run tests.
- Template Parameters
-
| T | Base type of the calculation. |