libMesh
Classes | Functions
point_neighbor_coupling_test.C File Reference

Go to the source code of this file.

Classes

class  PointNeighborCouplingTest
 

Functions

Number cubic_point_neighbor_coupling_test (const Point &p, const Parameters &, const std::string &, const std::string &)
 
 CPPUNIT_TEST_SUITE_REGISTRATION (PointNeighborCouplingTest)
 

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( PointNeighborCouplingTest  )
Number cubic_point_neighbor_coupling_test ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 32 of file point_neighbor_coupling_test.C.

References libMesh::Real, and libMesh::x.

Referenced by PointNeighborCouplingTest::testCoupling().

36 {
37  const Real & x = p(0);
38  const Real & y = p(1);
39  const Real & z = p(2);
40 
41  return x*(1-x)*(1-x) + x*x*(1-y) + x*(1-y)*(1-z) + y*(1-y)*z + z*(1-z)*(1-z);
42 }
PetscErrorCode Vec x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real