Intrepid
Functions
test_03.cpp File Reference

Test of the CellTools class. More...

#include "Intrepid_CellTools.hpp"
#include "Intrepid_FieldContainer.hpp"
#include "Intrepid_DefaultCubatureFactory.hpp"
#include "Teuchos_oblackholestream.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_ScalarTraits.hpp"

Go to the source code of this file.

Functions

void testSubcellParametrizations (int &errorFlag, const shards::CellTopology &parentCell, const FieldContainer< double > &subcParamVert_A, const FieldContainer< double > &subcParamVert_B, const int subcDim, const Teuchos::RCP< std::ostream > &outStream)
 Maps the vertices of the subcell parametrization domain to that subcell. More...
 
Teuchos::RCP< Intrepid::Basis
< double,
Intrepid::FieldContainer
< double > > > 
getIntrepidBasis (const shards::CellTopology &cellTopo)
 
int main (int argc, char *argv[])
 

Detailed Description

Test of the CellTools class.

Author
Created by P. Bochev, D. Ridzal and K. Peterson

Definition in file test_03.cpp.

Function Documentation

void testSubcellParametrizations ( int &  errorFlag,
const shards::CellTopology &  parentCell,
const FieldContainer< double > &  subcParamVert_A,
const FieldContainer< double > &  subcParamVert_B,
const int  subcDim,
const Teuchos::RCP< std::ostream > &  outStream 
)

Maps the vertices of the subcell parametrization domain to that subcell.

    Parametrization tests check if the vertices of the parametrization domain are properly 
    mapped to vertices of the resepective reference subcell. Because the parametrization map 
    is a polynomial whose degree depends on the number of vertices, if all vertices are 
    mapped correctly this is sufficient to assert that the parametrization map is correct.

    To test reference cells with two different kinds of faces, there are two argument slots
    to pass vertices of parametrization domains "A" and "B". When testing edges always pass
    the same argument because edges have the same parametrization domain [-1,1] (1-cube)
Parameters
errorFlag[out] - counts number of errors
parentCell[in] - topology of the reference cell whose 1 and 2-subcells are parametrized
subcParamVert_A[in] - vertex coordinates of parametrization domain "A" (2-simplex for faces)
subcParamVert_A[in] - vertex coordinates of parametrization domain "B" (2-cube for faces)
subcDim[in] - dimension of the subcells whose parametrizations are tested
outStream[in] - output stream to write