MOAB: Mesh Oriented datABase
(version 5.4.1)
|
00001 #define TARGET_TEST_GROUP "MiscTargetMetricTests" 00002 #include "TargetMetricTest.hpp" 00003 00004 using namespace MBMesquite; 00005 00006 #include "TSizeNB1.hpp" 00007 #include "TSizeB1.hpp" 00008 #include "TSquared.hpp" 00009 00010 #include "TOffset.hpp" 00011 #include "TPower2.hpp" 00012 #include "TScale.hpp" 00013 #include "TSum.hpp" 00014 00015 class TOffset_TSizeNB1_2 : public TOffset 00016 { 00017 public: 00018 TSizeNB1 mBase; 00019 TOffset_TSizeNB1_2() : TOffset( 2.0, &mBase ) {} 00020 }; 00021 00022 class TPower2_TSizeNB1 : public TPower2 00023 { 00024 public: 00025 TSizeNB1 mBase; 00026 TPower2_TSizeNB1() : TPower2( &mBase ) {} 00027 }; 00028 00029 class TScale_TSizeNB1_half : public TScale 00030 { 00031 public: 00032 TSizeNB1 mBase; 00033 TScale_TSizeNB1_half() : TScale( 0.5, &mBase ) {} 00034 }; 00035 00036 class TSum_TSize_TSize : public TSum 00037 { 00038 public: 00039 TSizeNB1 mu1; 00040 TSizeB1 mu2; 00041 TSum_TSize_TSize() : TSum( &mu1, &mu2 ) {} 00042 }; 00043 00044 TEST_NON_QUALITY_METRIC_WITH_HESS( TSquared ); 00045 00046 // METRIC NAME !SHAPE !SIZE !ORIENT BARRIER 00047 TEST_NAMED_METRIC_WITH_HESS( TOffset_TSizeNB1_2, TOffset, true, false, true, false, 2.0 ); 00048 TEST_NAMED_METRIC_WITH_HESS( TPower2_TSizeNB1, TPower2, true, false, true, false, 0.0 ); 00049 TEST_NAMED_METRIC_WITH_HESS( TScale_TSizeNB1_half, TScale, true, false, true, false, 0.0 ); 00050 TEST_NAMED_METRIC_WITH_HESS( TSum_TSize_TSize, TSum, true, false, true, true, 0.0 );