Sacado Package Browser (Single Doxygen Collection)  Version of the Day
Macros | Typedefs | Functions | Variables
Fad_SerializationTests.cpp File Reference
#include "Teuchos_UnitTestHarness.hpp"
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestRepository.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_Array.hpp"
#include "Sacado_No_Kokkos.hpp"
#include "Sacado_Fad_SimpleFad.hpp"
#include "Sacado_CacheFad_DFad.hpp"
#include "Sacado_CacheFad_SFad.hpp"
#include "Sacado_CacheFad_SLFad.hpp"
#include "Sacado_mpl_apply.hpp"
#include "Sacado_Random.hpp"
Include dependency graph for Fad_SerializationTests.cpp:

Go to the source code of this file.

Macros

#define FAD_SERIALIZATION_TESTS(FadType, FAD)
 
#define SFAD_SERIALIZATION_TESTS(FadType, FAD)
 

Typedefs

typedef Sacado::Fad::SLFad< double, 10 > Fad_SLFadType
 
typedef Sacado::ELRFad::SLFad< double, 10 > ELRFad_SLFadType
 
typedef Sacado::ELRCacheFad::SLFad< double, 10 > ELRCacheFad_SLFadType
 
typedef Sacado::CacheFad::SLFad< double, 10 > CacheFad_SLFadType
 
typedef Sacado::Fad::SFad< double, 5 > Fad_SFadType
 
typedef Sacado::ELRFad::SFad< double, 5 > ELRFad_SFadType
 
typedef Sacado::ELRCacheFad::SFad< double, 5 > ELRCacheFad_SFadType
 
typedef Sacado::CacheFad::SFad< double, 5 > CacheFad_SFadType
 

Functions

template<typename FadType >
bool testSerialization (const Teuchos::Array< FadType > &x, const std::string &tag, Teuchos::FancyOStream &out)
 
template<typename FadType , typename Serializer >
bool testSerializationObject (const Serializer &serializer, Teuchos::Array< FadType > &x, const std::string &tag, Teuchos::FancyOStream &out)
 
template<typename FadType , typename Serializer >
bool testNestedSerializationObject (const Serializer &serializer, Teuchos::Array< FadType > &x, const std::string &tag, Teuchos::FancyOStream &out)
 
int main (int argc, char *argv[])
 

Variables

Sacado::Random< double > rnd
 

Macro Definition Documentation

◆ FAD_SERIALIZATION_TESTS

#define FAD_SERIALIZATION_TESTS (   FadType,
  FAD 
)

Definition at line 205 of file Fad_SerializationTests.cpp.

◆ SFAD_SERIALIZATION_TESTS

#define SFAD_SERIALIZATION_TESTS (   FadType,
  FAD 
)

Definition at line 352 of file Fad_SerializationTests.cpp.

Typedef Documentation

◆ Fad_SLFadType

typedef Sacado::Fad::SLFad<double,10> Fad_SLFadType

Definition at line 407 of file Fad_SerializationTests.cpp.

◆ ELRFad_SLFadType

Definition at line 408 of file Fad_SerializationTests.cpp.

◆ ELRCacheFad_SLFadType

Definition at line 409 of file Fad_SerializationTests.cpp.

◆ CacheFad_SLFadType

Definition at line 410 of file Fad_SerializationTests.cpp.

◆ Fad_SFadType

typedef Sacado::Fad::SFad<double,5> Fad_SFadType

Definition at line 416 of file Fad_SerializationTests.cpp.

◆ ELRFad_SFadType

Definition at line 417 of file Fad_SerializationTests.cpp.

◆ ELRCacheFad_SFadType

Definition at line 418 of file Fad_SerializationTests.cpp.

◆ CacheFad_SFadType

Definition at line 419 of file Fad_SerializationTests.cpp.

Function Documentation

◆ testSerialization()

template<typename FadType >
bool testSerialization ( const Teuchos::Array< FadType > &  x,
const std::string &  tag,
Teuchos::FancyOStream out 
)

Definition at line 48 of file Fad_SerializationTests.cpp.

◆ testSerializationObject()

template<typename FadType , typename Serializer >
bool testSerializationObject ( const Serializer &  serializer,
Teuchos::Array< FadType > &  x,
const std::string &  tag,
Teuchos::FancyOStream out 
)

Definition at line 95 of file Fad_SerializationTests.cpp.

◆ testNestedSerializationObject()

template<typename FadType , typename Serializer >
bool testNestedSerializationObject ( const Serializer &  serializer,
Teuchos::Array< FadType > &  x,
const std::string &  tag,
Teuchos::FancyOStream out 
)

Definition at line 147 of file Fad_SerializationTests.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 436 of file Fad_SerializationTests.cpp.

Variable Documentation

◆ rnd

Sacado::Random<double> rnd

Definition at line 401 of file Fad_SerializationTests.cpp.