XGCa
Functions
moments_check.cpp File Reference
#include "xgc_io.hpp"
#include "moments_check.hpp"
Include dependency graph for moments_check.cpp:

Functions

void check_value_abs (double test, double ref, double tolerance, int &fail_count, double &max_diff)
 
void check_value_ratio (double test, double ref, double tolerance_ratio, int &fail_count, double &max_diff)
 
Moments read_reference_moments (XGC_IO_Stream &stream, int test_nplanes, int test_plane_index, int &nplanes, double &ptl_resolution)
 
void run_moments_test (const Grid< DeviceType > &grid, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, Plasma &plasma, const Moments &moments)
 
void write_moments_test_reference_data (const Grid< DeviceType > &grid, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp, Plasma &plasma, const Moments &moments)
 

Function Documentation

◆ check_value_abs()

void check_value_abs ( double  test,
double  ref,
double  tolerance,
int &  fail_count,
double &  max_diff 
)

◆ check_value_ratio()

void check_value_ratio ( double  test,
double  ref,
double  tolerance_ratio,
int &  fail_count,
double &  max_diff 
)
Here is the caller graph for this function:

◆ read_reference_moments()

Moments read_reference_moments ( XGC_IO_Stream stream,
int  test_nplanes,
int  test_plane_index,
int &  nplanes,
double &  ptl_resolution 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_moments_test()

void run_moments_test ( const Grid< DeviceType > &  grid,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp,
Plasma plasma,
const Moments moments 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_moments_test_reference_data()

void write_moments_test_reference_data ( const Grid< DeviceType > &  grid,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp,
Plasma plasma,
const Moments moments 
)
Here is the call graph for this function:
Here is the caller graph for this function: