Intrepid
Macros | Functions
test_01.cpp File Reference

Test file for a set of functions providing orthogonal polynomial polynomial calculus and interpolation. More...

#include "Intrepid_Polylib.hpp"
#include "Teuchos_oblackholestream.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_ScalarTraits.hpp"
#include "Teuchos_GlobalMPISession.hpp"

Go to the source code of this file.

Macros

#define NPLOWER   5
 
#define NPUPPER   15
 
#define TEST_EPS   1000*INTREPID_TOL
 
#define GAUSS_INT   1
 
#define GAUSS_RADAUM_INT   1
 
#define GAUSS_RADAUP_INT   1
 
#define GAUSS_LOBATTO_INT   1
 
#define GAUSS_DIFF   1
 
#define GAUSS_RADAUM_DIFF   1
 
#define GAUSS_RADAUP_DIFF   1
 
#define GAUSS_LOBATTO_DIFF   1
 
#define GAUSS_INTERP   1
 
#define GAUSS_RADAUM_INTERP   1
 
#define GAUSS_RADAUP_INTERP   1
 
#define GAUSS_LOBATTO_INTERP   1
 
#define INTREPID_TEST_COMMAND(S)
 

Functions

template<class Scalar >
Scalar ddot (int n, Scalar *x, int incx, Scalar *y, int incy)
 
template<class Scalar >
Scalar * dvector (int nl, int nh)
 
int main (int argc, char *argv[])
 

Detailed Description

Test file for a set of functions providing orthogonal polynomial polynomial calculus and interpolation.

Author
Created by Spencer Sherwin, Aeronautics, Imperial College London, modified and redistributed by D. Ridzal.

Definition in file test_01.cpp.

Macro Definition Documentation

◆ GAUSS_DIFF

#define GAUSS_DIFF   1

Definition at line 69 of file test_01.cpp.

◆ GAUSS_INT

#define GAUSS_INT   1

Definition at line 65 of file test_01.cpp.

◆ GAUSS_INTERP

#define GAUSS_INTERP   1

Definition at line 73 of file test_01.cpp.

◆ GAUSS_LOBATTO_DIFF

#define GAUSS_LOBATTO_DIFF   1

Definition at line 72 of file test_01.cpp.

◆ GAUSS_LOBATTO_INT

#define GAUSS_LOBATTO_INT   1

Definition at line 68 of file test_01.cpp.

◆ GAUSS_LOBATTO_INTERP

#define GAUSS_LOBATTO_INTERP   1

Definition at line 76 of file test_01.cpp.

◆ GAUSS_RADAUM_DIFF

#define GAUSS_RADAUM_DIFF   1

Definition at line 70 of file test_01.cpp.

◆ GAUSS_RADAUM_INT

#define GAUSS_RADAUM_INT   1

Definition at line 66 of file test_01.cpp.

◆ GAUSS_RADAUM_INTERP

#define GAUSS_RADAUM_INTERP   1

Definition at line 74 of file test_01.cpp.

◆ GAUSS_RADAUP_DIFF

#define GAUSS_RADAUP_DIFF   1

Definition at line 71 of file test_01.cpp.

◆ GAUSS_RADAUP_INT

#define GAUSS_RADAUP_INT   1

Definition at line 67 of file test_01.cpp.

◆ GAUSS_RADAUP_INTERP

#define GAUSS_RADAUP_INTERP   1

Definition at line 75 of file test_01.cpp.

◆ INTREPID_TEST_COMMAND

#define INTREPID_TEST_COMMAND (   S)
Value:
{ \
try { \
S ; \
} \
catch (const std::logic_error & err) { \
*outStream << "Expected Error ----------------------------------------------------------------\n"; \
*outStream << err.what() << '\n'; \
*outStream << "-------------------------------------------------------------------------------" << "\n\n"; \
}; \
}

Definition at line 79 of file test_01.cpp.

◆ NPLOWER

#define NPLOWER   5

Definition at line 61 of file test_01.cpp.

◆ NPUPPER

#define NPUPPER   15

Definition at line 62 of file test_01.cpp.

◆ TEST_EPS

#define TEST_EPS   1000*INTREPID_TOL

Definition at line 63 of file test_01.cpp.

Function Documentation

◆ ddot()

template<class Scalar >
Scalar ddot ( int  n,
Scalar *  x,
int  incx,
Scalar *  y,
int  incy 
)

Definition at line 93 of file test_01.cpp.

◆ dvector()

template<class Scalar >
Scalar * dvector ( int  nl,
int  nh 
)

Definition at line 106 of file test_01.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 193 of file test_01.cpp.