Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Rocstar::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 Rocstar::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 RocstarTest.H.

Referenced by 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 Rocstar::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 RocstarTest.H.

Referenced by 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: