libMesh
Classes | Functions
mesh_function_dfem.C File Reference

Go to the source code of this file.

Classes

class  MeshfunctionDFEM
 

Functions

Number position_function (const Point &p, const Parameters &, const std::string &, const std::string &)
 
Number position_function2 (const Point &p, const Parameters &, const std::string &, const std::string &)
 
 CPPUNIT_TEST_SUITE_REGISTRATION (MeshfunctionDFEM)
 

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( MeshfunctionDFEM  )
Number position_function ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 34 of file mesh_function_dfem.C.

Referenced by MeshfunctionDFEM::test_mesh_function_dfem().

38 {
39  if (p(1) > 0.0)
40  return 0.0;
41  else
42  return 1.0;
43 }
Number position_function2 ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 45 of file mesh_function_dfem.C.

Referenced by MeshfunctionDFEM::test_mesh_function_dfem_grad().

49 {
50  if (p(1) > 0.0)
51  return 2.0 * p(1) + 1.0;
52  else
53  return p(1) + 1.0;
54 }