MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
MultiplyQualityMetricTest () | |
void | setUp () |
Protected Member Functions | |
virtual bool | evaluate (PatchData &, size_t, double &, MsqError &) |
Private Member Functions | |
CPPUNIT_TEST_SUITE (MultiplyQualityMetricTest) | |
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 |
MultiplyQualityMetric | m |
Definition at line 267 of file CompositeMetricTest.cpp.
MultiplyQualityMetricTest::MultiplyQualityMetricTest | ( | ) | [inline] |
MultiplyQualityMetricTest::CPPUNIT_TEST | ( | test_supported_types | ) | [private] |
MultiplyQualityMetricTest::CPPUNIT_TEST | ( | test_non_ideal_eval | ) | [private] |
MultiplyQualityMetricTest::CPPUNIT_TEST | ( | test_valid_hessian | ) | [private] |
MultiplyQualityMetricTest::CPPUNIT_TEST | ( | test_get_evaluations | ) | [private] |
MultiplyQualityMetricTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
bool MultiplyQualityMetricTest::evaluate | ( | PatchData & | pd, |
size_t | h, | ||
double & | val, | ||
MsqError & | err | ||
) | [protected, virtual] |
Implements CompositeMetricTestBase.
Definition at line 306 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 MultiplyQualityMetricTest::setUp | ( | ) | [inline] |
Definition at line 300 of file CompositeMetricTest.cpp.
References CPPUNIT_ASSERT.
{ CPPUNIT_ASSERT( !mErr ); }
Definition at line 290 of file CompositeMetricTest.cpp.
Definition at line 288 of file CompositeMetricTest.cpp.
Definition at line 289 of file CompositeMetricTest.cpp.
MsqError MultiplyQualityMetricTest::mErr [private] |
Definition at line 287 of file CompositeMetricTest.cpp.