MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
AddQualityMetricTest () | |
void | setUp () |
Protected Member Functions | |
virtual bool | evaluate (PatchData &, size_t, double &, MsqError &) |
Private Member Functions | |
CPPUNIT_TEST_SUITE (AddQualityMetricTest) | |
CPPUNIT_TEST (test_supported_types) | |
CPPUNIT_TEST (test_ideal_element_eval) | |
CPPUNIT_TEST (test_ideal_element_grad) | |
CPPUNIT_TEST (test_ideal_element_hess) | |
CPPUNIT_TEST (test_non_ideal_eval) | |
CPPUNIT_TEST (test_valid_hessian) | |
CPPUNIT_TEST (test_inverted_elements) | |
CPPUNIT_TEST (test_degenerate_elements) | |
CPPUNIT_TEST (test_get_evaluations) | |
CPPUNIT_TEST (test_get_element_indices) | |
CPPUNIT_TEST (test_get_fixed_indices) | |
CPPUNIT_TEST (test_eval_with_indices) | |
CPPUNIT_TEST (test_eval_with_gradient) | |
CPPUNIT_TEST (test_eval_with_hessian) | |
CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
MsqError | mErr |
IdealWeightInverseMeanRatio | m1 |
IdealWeightInverseMeanRatio | m2 |
AddQualityMetric | m |
Definition at line 206 of file CompositeMetricTest.cpp.
AddQualityMetricTest::AddQualityMetricTest | ( | ) | [inline] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_supported_types | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_ideal_element_eval | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_ideal_element_grad | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_ideal_element_hess | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_non_ideal_eval | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_valid_hessian | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_inverted_elements | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_degenerate_elements | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_get_evaluations | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_get_element_indices | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_get_fixed_indices | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_eval_with_indices | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_eval_with_gradient | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST | ( | test_eval_with_hessian | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST_SUITE | ( | AddQualityMetricTest | ) | [private] |
AddQualityMetricTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
bool AddQualityMetricTest::evaluate | ( | PatchData & | pd, |
size_t | h, | ||
double & | val, | ||
MsqError & | err | ||
) | [protected, virtual] |
Implements CompositeMetricTestBase.
Definition at line 246 of file CompositeMetricTest.cpp.
References MSQ_ERRFALSE.
{ double v1, v2; bool rval = true, rval1; rval1 = m1.evaluate( pd, h, v1, err ); MSQ_ERRFALSE( err ); if( !rval1 ) rval = false; rval1 = m2.evaluate( pd, h, v2, err ); MSQ_ERRFALSE( err ); if( !rval1 ) rval = false; val = v1 + v2; return rval; }
void AddQualityMetricTest::setUp | ( | ) | [inline] |
Definition at line 240 of file CompositeMetricTest.cpp.
References CPPUNIT_ASSERT.
{ CPPUNIT_ASSERT( !mErr ); }
AddQualityMetric AddQualityMetricTest::m [private] |
Definition at line 230 of file CompositeMetricTest.cpp.
Definition at line 228 of file CompositeMetricTest.cpp.
Definition at line 229 of file CompositeMetricTest.cpp.
MsqError AddQualityMetricTest::mErr [private] |
Definition at line 227 of file CompositeMetricTest.cpp.