Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GridConversion::TestFixture Namespace Reference

Namespace for storing simple test utility fixtures. More...

Functions

double F1 (double x)
 Simple test function fixture returns $2x$. More...
 
double F2 (double x)
 Simple test function fixture returns $3x^2$. More...
 

Detailed Description

Namespace for storing simple test utility fixtures.

Function Documentation

double GridConversion::TestFixture::F1 ( double  x)

Simple test function fixture returns $2x$.

F1 is a 1st order function in x that has unity integral over [0,1].

Definition at line 34 of file GridConversionTest.H.

Referenced by CImgDisplay::_update_iskey(), TestingObject< ResultsType >::Test__MidPointQuadrature(), and TestingObject< ResultsType >::Test__TrapezoidQuadrature().

34 { return (2.0*x); };
void int int REAL * x
Definition: read.cpp:74

Here is the caller graph for this function:

double GridConversion::TestFixture::F2 ( double  x)

Simple test function fixture returns $3x^2$.

F2 is quadratic function in x and integrates to unity over [0,1].

Definition at line 40 of file GridConversionTest.H.

Referenced by CImgDisplay::_update_iskey(), TestingObject< ResultsType >::Test__MidPointQuadrature(), and TestingObject< ResultsType >::Test__TrapezoidQuadrature().

40 { return (3.0*x*x); };
void int int REAL * x
Definition: read.cpp:74

Here is the caller graph for this function: