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

Tests for efit splines. More...

#include <cassert>
#include <vector>
#include <netcdf.h>
#include "equilibrium.hpp"

Classes

class  gold_data< T >
 Class interface for gold data. More...
 

Functions

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.
 

Detailed Description

Tests for efit splines.

Function Documentation

◆ check_error() [1/2]

template<jit::float_scalar T>
void check_error ( const T  test,
const T  expected,
const T  tolarance,
const char *  name 
)

Check error.

Parameters
[in]testTest value.
[in]expectedExpected result.
[in]tolaranceError tolarance.
[in]nameName of the test.

◆ check_error() [2/2]

template<jit::float_scalar T>
void check_error ( const T  test,
const T  tolarance,
const char *  name 
)

Check error.

Parameters
[in]testTest value.
[in]tolaranceError tolarance.
[in]nameName of the test.

◆ 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_test()

template<typename T >
void run_test ( )

Run tests.

Template Parameters
TBase type of the calculation.