PHX::MyTraits Struct Reference

Struct to define traits for the FieldManager. More...

#include <Traits.hpp>

Inheritance diagram for PHX::MyTraits:

Inheritance graph
[legend]
Collaboration diagram for PHX::MyTraits:

Collaboration graph
[legend]

List of all members.

Classes

struct  Jacobian
struct  Residual

Public Types

typedef double RealType
typedef Sacado::Fad::DFad< double > FadType
typedef Sacado::mpl::vector
< Residual, Jacobian
EvalTypes
typedef Sacado::mpl::vector
< RealType, MyVector< RealType >
, MyTensor< RealType > > 
ResidualDataTypes
typedef Sacado::mpl::vector
< FadType, MyVector< FadType >
, MyTensor< FadType > > 
JacobianDataTypes
typedef boost::mpl::map
< boost::mpl::pair< Residual,
ResidualDataTypes >
, boost::mpl::pair< Jacobian,
JacobianDataTypes > >::type 
EvalToDataMap
typedef PHX::NewAllocator Allocator
typedef const MyWorksetEvalData
typedef void * PreEvalData
typedef void * PostEvalData
typedef double RealType
typedef Sacado::Fad::DFad< double > FadType
typedef Sacado::mpl::vector
< Residual, Jacobian
EvalTypes
typedef Sacado::mpl::vector
< RealType
ResidualDataTypes
typedef Sacado::mpl::vector
< FadType
JacobianDataTypes
typedef boost::mpl::map
< boost::mpl::pair< Residual,
ResidualDataTypes >
, boost::mpl::pair< Jacobian,
JacobianDataTypes > >::type 
EvalToDataMap
typedef PHX::NewAllocator Allocator
typedef const MyWorksetEvalData
typedef void * PreEvalData
typedef void * PostEvalData


Detailed Description

Struct to define traits for the FieldManager.

The user must define a number of objects in the traits class:

EvalTypes - an mpl::vector of user defined evaluation types. Each evaluation type must have a typedef member called ScalarT that provides the default scalar type. This is used to automate the building of evaluators for each evaluation type using the EvaluatorFactory.

EvalToDataMap - an mpl::map. The key is an evaluation type and the value is an mpl::vector of valid data types for that particular evaluation type.

Allocator type - type that defines the allocator class to use to allocate the memory for data storage.

EvalData - A user defined type to be passed in to the evaluateFields() call. Allows users to pass in arbitrary data on the cells.

PreEvalData - A user defined type to be passed in to the preEvaluate() call. Allows users to pass in arbitrary data on the cells.

EvalData - A user defined type to be passed in to the postEvaluate() call. Allows users to pass in arbitrary data on the cells.


Member Typedef Documentation

typedef boost::mpl::map< boost::mpl::pair<Residual, ResidualDataTypes>, boost::mpl::pair<Jacobian, JacobianDataTypes> >::type PHX::MyTraits::EvalToDataMap

typedef boost::mpl::map< boost::mpl::pair<Residual, ResidualDataTypes>, boost::mpl::pair<Jacobian, JacobianDataTypes> >::type PHX::MyTraits::EvalToDataMap

typedef Sacado::mpl::vector<Residual, Jacobian> PHX::MyTraits::EvalTypes

typedef Sacado::mpl::vector<Residual, Jacobian> PHX::MyTraits::EvalTypes

typedef Sacado::Fad::DFad<double> PHX::MyTraits::FadType

typedef Sacado::Fad::DFad<double> PHX::MyTraits::FadType

typedef Sacado::mpl::vector<FadType> PHX::MyTraits::JacobianDataTypes

typedef double PHX::MyTraits::RealType

typedef double PHX::MyTraits::RealType

typedef Sacado::mpl::vector<RealType> PHX::MyTraits::ResidualDataTypes


The documentation for this struct was generated from the following files:

Generated on Thu Dec 17 11:06:28 2009 for Phalanx by  doxygen 1.5.9