DUNE-ACFEM (unstable)

GridFunctionTests

Functions

template<class GridFunction >
void gridWalkTest (GridFunction &&f)
 Test routine which is called with the GridFunctionExpression from the main-program. More...
 
const std::string dgfData ("DGF\n" "\n" "%Interval\n" "% -1 -1\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" "BoundarySegments\n" "1 0 1 : blah1 % right boundary\n" "2 1 2 : blah2 % upper boundary\n" "3 2 3 : blah3 % left boundary\n" "4 3 0 : blah4 % lower boundary\n" "#\n" "GridParameter\n" "\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()

template<class GridFunction >
void gridWalkTest ( GridFunction &&  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.

References Dune::ACFem::GeometryInformation< GridPart, codim >::localCenter().

◆ main()

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

Test-template main program.

Instantiate a single expression template and evaluate it on a simple grid.

References dgfData().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)