DUNE-ACFEM (2.5.1)

GridFunctionTests

Classes

class  ScopedRedirect
 A class to redirect streams. More...
 

Macros

#define __DUNE_ACFEM_MAKE_CHECK__   1
 Enable additional test-code, ATM only local -> global evaluation in the GridFunctionAdapter.
 

Functions

template<class DiscreteFunction >
void gridWalkTest (const DiscreteFunction &f)
 Test routine which is called with the GridFunctionExpression from the main-program. More...
 
template<class DiscreteFunction , class Indicator >
void gridWalkTest (const BoundarySupportedFunction< DiscreteFunction, Indicator > &f)
 Test routine which is called with the GridFunctionExpression from the main-program. More...
 
const std::string dgfData ("DGF\n" "\n" "Interval\n" " 0 0\n" " 1 1\n" " 1 1\n" "#\n" "%Vertex\n" "% -1 -1\n" "% 1 -1\n" "% 1 1\n" "% -1 1\n" "% 0 0\n" "%#\n" "\n" "%SIMPLEX\n" "%0 1 4\n" "%1 2 4\n" "%2 3 4\n" "%3 0 4\n" "%#\n" "\n" "BoundaryDomain\n" "default 1\n" "1 1 0 1 1 : blah1 % right boundary\n" "2 0 1 1 1 : blah2 % upper boundary\n" "3 0 0 0 1 : blah3 % left boundary\n" "4 0 0 1 0 : blah4 % lower boundary\n" "#\n" "\n" "GridParameter\n" "% longest or arbitrary (see DGF docu)\n" "refinementedge longest\n" "% there is zarro information on this ... :(\n" "overlap 0\n" "% whatever this may be ...\n" "tolerance 1e-12\n" "% silence?\n" "verbose 0\n" "#\n")
 Embedded grid-function test DGF-"file".
 
int main (int argc, char *argv[])
 Test-template main program. More...
 

Detailed Description

Function Documentation

◆ gridWalkTest() [1/2]

template<class DiscreteFunction , class Indicator >
void gridWalkTest ( const BoundarySupportedFunction< DiscreteFunction, Indicator > &  f)

Test routine which is called with the GridFunctionExpression from the main-program.

We simply walk over the grid and evaluate the local function and its jacobian on each boundary intersection.

References Dune::ACFem::BoundarySupportedFunction< GridFunction, Indicator >::localFunction().

◆ gridWalkTest() [2/2]

template<class DiscreteFunction >
void gridWalkTest ( const DiscreteFunction &  f)

Test routine which is called with the GridFunctionExpression from the main-program.

We simply walk over the grid and evaluate the local function and its jacobian on each element.

◆ main()

int main ( int  argc,
char *  argv[] 
)
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 18, 22:30, 2024)