libMesh
Classes | Functions
default_coupling_test.C File Reference

Go to the source code of this file.

Classes

class  DefaultCouplingTest
 

Functions

Number cubic_default_coupling_test (const Point &p, const Parameters &, const std::string &, const std::string &)
 
 CPPUNIT_TEST_SUITE_REGISTRATION (DefaultCouplingTest)
 

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( DefaultCouplingTest  )
Number cubic_default_coupling_test ( const Point p,
const Parameters ,
const std::string &  ,
const std::string &   
)

Definition at line 31 of file default_coupling_test.C.

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

Referenced by DefaultCouplingTest::testCoupling().

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