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_Tay_CacheTaylor.hpp"
00037 #ifdef HAVE_SACADO_STOKHOS
00038 #include "Sacado_PCE_OrthogPoly.hpp"
00039 #endif
00040 
00041 template <>
00042 Sacado::Fad::MemPool* Sacado::Fad::MemPoolStorage<double>::defaultPool_ = NULL;
00043 template <>
00044 Sacado::Fad::MemPool* Sacado::Fad::MemPoolStorage< Sacado::Fad::DMFad<double> >::defaultPool_ = NULL;
00045 
00046 typedef TraitsTests< Sacado::Fad::DFad<double> > DFadTest;
00047 typedef TraitsTests< Sacado::Fad::SFad<double,5> > SFadTest;
00048 typedef TraitsTests< Sacado::Fad::SLFad<double,10> > SLFadTest;
00049 typedef TraitsTests< Sacado::Fad::SimpleFad<double> > SimpleFadTest;
00050 typedef TraitsTests< Sacado::Fad::DMFad<double> > DMFadTest;
00051 typedef TraitsTests< Sacado::Fad::DVFad<double> > DVFadTest;
00052 
00053 CPPUNIT_TEST_SUITE_REGISTRATION(DFadTest);
00054 CPPUNIT_TEST_SUITE_REGISTRATION(SFadTest);
00055 CPPUNIT_TEST_SUITE_REGISTRATION(SLFadTest);
00056 CPPUNIT_TEST_SUITE_REGISTRATION(SimpleFadTest);
00057 CPPUNIT_TEST_SUITE_REGISTRATION(DMFadTest);
00058 CPPUNIT_TEST_SUITE_REGISTRATION(DVFadTest);
00059 
00060 typedef TraitsTests< Sacado::ELRFad::DFad<double> > ELRDFadTest;
00061 typedef TraitsTests< Sacado::ELRFad::SFad<double,5> > ELRSFadTest;
00062 typedef TraitsTests< Sacado::ELRFad::SLFad<double,10> > ELRSLFadTest;
00063 
00064 CPPUNIT_TEST_SUITE_REGISTRATION(ELRDFadTest);
00065 CPPUNIT_TEST_SUITE_REGISTRATION(ELRSFadTest);
00066 CPPUNIT_TEST_SUITE_REGISTRATION(ELRSLFadTest);
00067 
00068 typedef TraitsTests< Sacado::CacheFad::DFad<double> > CacheDFadTest;
00069 CPPUNIT_TEST_SUITE_REGISTRATION(CacheDFadTest);
00070 
00071 typedef TraitsTests< Sacado::LFad::LogicalSparse<double,bool> > LSFadTest;
00072 CPPUNIT_TEST_SUITE_REGISTRATION(LSFadTest);
00073 
00074 typedef TraitsTests< Sacado::FlopCounterPack::ScalarFlopCounter<double> > SFCTest;
00075 CPPUNIT_TEST_SUITE_REGISTRATION(SFCTest);
00076 
00077 typedef TraitsTests< Sacado::Tay::Taylor<double> > TaylorTest;
00078 typedef TraitsTests< Sacado::Tay::CacheTaylor<double> > CacheTaylorTest;
00079 CPPUNIT_TEST_SUITE_REGISTRATION(TaylorTest);
00080 CPPUNIT_TEST_SUITE_REGISTRATION(CacheTaylorTest);
00081 
00082 typedef TraitsTests< Sacado::Rad::ADvar<double> > RadTest;
00083 typedef TraitsTests< Sacado::Rad2::ADvar<double> > Rad2Test;
00084 typedef TraitsTests< Sacado::RadVec::ADvar<double> > RadVecTest;
00085 CPPUNIT_TEST_SUITE_REGISTRATION(RadTest);
00086 CPPUNIT_TEST_SUITE_REGISTRATION(Rad2Test);
00087 CPPUNIT_TEST_SUITE_REGISTRATION(RadVecTest);
00088 
00089 #ifdef HAVE_SACADO_STOKHOS
00090 typedef TraitsTests< Sacado::PCE::OrthogPoly<double> > OrthogPolyTest;
00091 CPPUNIT_TEST_SUITE_REGISTRATION(OrthogPolyTest);
00092 #endif

Generated on Wed May 12 21:39:42 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7