Sacado Package Browser (Single Doxygen Collection) Version of the Day
TraitsTests.cpp
Go to the documentation of this file.
00001 // $Id$ 
00002 // $Source$ 
00003 // @HEADER
00004 // ***********************************************************************
00005 // 
00006 //                           Sacado Package
00007 //                 Copyright (2006) Sandia Corporation
00008 // 
00009 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00010 // the U.S. Government retains certain rights in this software.
00011 // 
00012 // This library is free software; you can redistribute it and/or modify
00013 // it under the terms of the GNU Lesser General Public License as
00014 // published by the Free Software Foundation; either version 2.1 of the
00015 // License, or (at your option) any later version.
00016 //  
00017 // This library is distributed in the hope that it will be useful, but
00018 // WITHOUT ANY WARRANTY; without even the implied warranty of
00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 // Lesser General Public License for more details.
00021 //  
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License along with this library; if not, write to the Free Software
00024 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00025 // USA
00026 // Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
00027 // (etphipp@sandia.gov).
00028 // 
00029 // ***********************************************************************
00030 // @HEADER
00031 
00032 #include "TraitsTests.hpp"
00033 
00034 #include "Sacado_Fad_SimpleFad.hpp"
00035 #include "Sacado_CacheFad_DFad.hpp"
00036 #include "Sacado_CacheFad_SFad.hpp"
00037 #include "Sacado_CacheFad_SLFad.hpp"
00038 #include "Sacado_Tay_CacheTaylor.hpp"
00039 #ifdef HAVE_SACADO_STOKHOS
00040 #include "Sacado_PCE_OrthogPoly.hpp"
00041 #endif
00042 
00043 template <>
00044 Sacado::Fad::MemPool* Sacado::Fad::MemPoolStorage<double>::defaultPool_ = NULL;
00045 template <>
00046 Sacado::Fad::MemPool* Sacado::Fad::MemPoolStorage< Sacado::Fad::DMFad<double> >::defaultPool_ = NULL;
00047 
00048 typedef TraitsTests< Sacado::Fad::DFad<double> > DFadTest;
00049 typedef TraitsTests< Sacado::Fad::SFad<double,5> > SFadTest;
00050 typedef TraitsTests< Sacado::Fad::SLFad<double,10> > SLFadTest;
00051 typedef TraitsTests< Sacado::Fad::SimpleFad<double> > SimpleFadTest;
00052 typedef TraitsTests< Sacado::Fad::DMFad<double> > DMFadTest;
00053 typedef TraitsTests< Sacado::Fad::DVFad<double> > DVFadTest;
00054 
00055 CPPUNIT_TEST_SUITE_REGISTRATION(DFadTest);
00056 CPPUNIT_TEST_SUITE_REGISTRATION(SFadTest);
00057 CPPUNIT_TEST_SUITE_REGISTRATION(SLFadTest);
00058 CPPUNIT_TEST_SUITE_REGISTRATION(SimpleFadTest);
00059 CPPUNIT_TEST_SUITE_REGISTRATION(DMFadTest);
00060 CPPUNIT_TEST_SUITE_REGISTRATION(DVFadTest);
00061 
00062 typedef TraitsTests< Sacado::ELRFad::DFad<double> > ELRDFadTest;
00063 typedef TraitsTests< Sacado::ELRFad::SFad<double,5> > ELRSFadTest;
00064 typedef TraitsTests< Sacado::ELRFad::SLFad<double,10> > ELRSLFadTest;
00065 
00066 CPPUNIT_TEST_SUITE_REGISTRATION(ELRDFadTest);
00067 CPPUNIT_TEST_SUITE_REGISTRATION(ELRSFadTest);
00068 CPPUNIT_TEST_SUITE_REGISTRATION(ELRSLFadTest);
00069 
00070 typedef TraitsTests< Sacado::CacheFad::DFad<double> > CacheDFadTest;
00071 typedef TraitsTests< Sacado::CacheFad::SFad<double,5> > CacheSFadTest;
00072 typedef TraitsTests< Sacado::CacheFad::SLFad<double,10> > CacheSLFadTest;
00073 
00074 CPPUNIT_TEST_SUITE_REGISTRATION(CacheDFadTest);
00075 CPPUNIT_TEST_SUITE_REGISTRATION(CacheSFadTest);
00076 CPPUNIT_TEST_SUITE_REGISTRATION(CacheSLFadTest);
00077 
00078 typedef TraitsTests< Sacado::ELRCacheFad::DFad<double> > ELRCacheDFadTest;
00079 typedef TraitsTests< Sacado::ELRCacheFad::SFad<double,5> > ELRCacheSFadTest;
00080 typedef TraitsTests< Sacado::ELRCacheFad::SLFad<double,10> > ELRCacheSLFadTest;
00081 
00082 CPPUNIT_TEST_SUITE_REGISTRATION(ELRCacheDFadTest);
00083 CPPUNIT_TEST_SUITE_REGISTRATION(ELRCacheSFadTest);
00084 CPPUNIT_TEST_SUITE_REGISTRATION(ELRCacheSLFadTest);
00085 
00086 typedef TraitsTests< Sacado::LFad::LogicalSparse<double,bool> > LSFadTest;
00087 CPPUNIT_TEST_SUITE_REGISTRATION(LSFadTest);
00088 
00089 typedef TraitsTests< Sacado::FlopCounterPack::ScalarFlopCounter<double> > SFCTest;
00090 CPPUNIT_TEST_SUITE_REGISTRATION(SFCTest);
00091 
00092 typedef TraitsTests< Sacado::Tay::Taylor<double> > TaylorTest;
00093 typedef TraitsTests< Sacado::Tay::CacheTaylor<double> > CacheTaylorTest;
00094 CPPUNIT_TEST_SUITE_REGISTRATION(TaylorTest);
00095 CPPUNIT_TEST_SUITE_REGISTRATION(CacheTaylorTest);
00096 
00097 typedef TraitsTests< Sacado::Rad::ADvar<double> > RadTest;
00098 typedef TraitsTests< Sacado::Rad2::ADvar<double> > Rad2Test;
00099 typedef TraitsTests< Sacado::RadVec::ADvar<double> > RadVecTest;
00100 CPPUNIT_TEST_SUITE_REGISTRATION(RadTest);
00101 CPPUNIT_TEST_SUITE_REGISTRATION(Rad2Test);
00102 CPPUNIT_TEST_SUITE_REGISTRATION(RadVecTest);
00103 
00104 #ifdef HAVE_SACADO_STOKHOS
00105 typedef TraitsTests< Sacado::PCE::OrthogPoly<double> > OrthogPolyTest;
00106 CPPUNIT_TEST_SUITE_REGISTRATION(OrthogPolyTest);
00107 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines