MOAB: Mesh Oriented datABase  (version 5.4.1)
PowerQualityMetricTest< POWER > Class Template Reference
+ Inheritance diagram for PowerQualityMetricTest< POWER >:
+ Collaboration diagram for PowerQualityMetricTest< POWER >:

Public Member Functions

 PowerQualityMetricTest ()

Protected Member Functions

virtual bool evaluate (PatchData &, size_t, double &, MsqError &)

Private Member Functions

 CPPUNIT_TEST_SUITE (PowerQualityMetricTest< POWER >)
 CPPUNIT_TEST (test_supported_types)
 CPPUNIT_TEST (test_ideal_element_eval)
 CPPUNIT_TEST (test_ideal_element_grad)
 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

IdealWeightInverseMeanRatio m1
PowerQualityMetric m

Detailed Description

template<int POWER>
class PowerQualityMetricTest< POWER >

Definition at line 328 of file CompositeMetricTest.cpp.


Constructor & Destructor Documentation

template<int POWER>
PowerQualityMetricTest< POWER >::PowerQualityMetricTest ( ) [inline]

Definition at line 355 of file CompositeMetricTest.cpp.

References mMetric.

                             : m( &m1, POWER )
    {
        mMetric = &m;
    }

Member Function Documentation

template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_supported_types  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_ideal_element_eval  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_ideal_element_grad  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_non_ideal_eval  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_valid_hessian  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_inverted_elements  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_degenerate_elements  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_get_evaluations  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_get_element_indices  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_get_fixed_indices  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_eval_with_indices  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_eval_with_gradient  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST ( test_eval_with_hessian  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST_SUITE ( PowerQualityMetricTest< POWER >  ) [private]
template<int POWER>
PowerQualityMetricTest< POWER >::CPPUNIT_TEST_SUITE_END ( ) [private]
template<int POWER>
bool PowerQualityMetricTest< POWER >::evaluate ( PatchData pd,
size_t  h,
double &  val,
MsqError err 
) [protected, virtual]

Implements CompositeMetricTestBase.

Definition at line 362 of file CompositeMetricTest.cpp.

References PowerQualityMetricTest< POWER >::evaluate(), and MSQ_ERRFALSE.

Referenced by PowerQualityMetricTest< POWER >::evaluate().

{
    bool rval = m1.evaluate( pd, h, val, err );
    MSQ_ERRFALSE( err );
    val = std::pow( val, POWER );
    return rval;
}

Member Data Documentation

template<int POWER>
PowerQualityMetric PowerQualityMetricTest< POWER >::m [private]

Definition at line 349 of file CompositeMetricTest.cpp.

template<int POWER>
IdealWeightInverseMeanRatio PowerQualityMetricTest< POWER >::m1 [private]

Definition at line 348 of file CompositeMetricTest.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines