Panzer Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
panzer::ScalarToVector< EvalT, Traits > Class Template Reference

Copies a set of scalar fields into a single vector field. More...

#include <Panzer_ScalarToVector_decl.hpp>

Inheritance diagram for panzer::ScalarToVector< EvalT, Traits >:
Inheritance graph
[legend]

Public Types

using ScalarT = typename EvalT::ScalarT
 
- Public Types inherited from panzer::DomainEvaluator
enum  DomainType : int {
  OWNED =0 , GHOST =1 , REAL =2 , VIRTUAL =3 ,
  EXTERNAL =4 , ALL =5
}
 Domain types supported by worksets. More...
 

Public Member Functions

 ScalarToVector (const Teuchos::ParameterList &p)
 
 ScalarToVector (const std::vector< PHX::Tag< ScalarT > > &input, const PHX::FieldTag &output)
 
void postRegistrationSetup (typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
 
void evaluateFields (typename Traits::EvalData d)
 
- Public Member Functions inherited from panzer::EvaluatorWithBaseImpl< Traits >
void setDetailsIndex (const int di)
 An evaluator builder sets the details index.
 
- Public Member Functions inherited from panzer::DomainEvaluator
 DomainEvaluator (DomainType domain=ALL)
 Constructor.
 
virtual ~DomainEvaluator ()=default
 Default destructor.
 
void setDomain (const DomainType domain)
 Set the domain for the evaluator.
 
DomainType getDomain ()
 Get the domain for the evaluator.
 
virtual int cellStartIndex (const panzer::Workset &workset) const
 Returns the starting cell for the specified domain for a given workset.
 
virtual int cellEndIndex (const panzer::Workset &workset) const
 Returns the non-inclusive end cell for the specified domain for a given workset.
 

Private Types

using InnerView = typename PHX::MDField< const ScalarT, Cell, Point >::array_type
 

Private Attributes

PHX::MDField< ScalarT, Cell, Point, Dimvector_field_
 
std::vector< PHX::MDField< const ScalarT, Cell, Point > > scalar_fields_
 
PHX::ViewOfViews< 1, InnerViewscalar_fields_vov_
 

Additional Inherited Members

- Protected Attributes inherited from panzer::EvaluatorWithBaseImpl< Traits >
WorksetDetailsAccessor wda
 

Detailed Description

template<typename EvalT, typename Traits>
class panzer::ScalarToVector< EvalT, Traits >

Copies a set of scalar fields into a single vector field.

Definition at line 24 of file Panzer_ScalarToVector_decl.hpp.

Member Typedef Documentation

◆ ScalarT

template<typename EvalT , typename Traits >
using panzer::ScalarToVector< EvalT, Traits >::ScalarT = typename EvalT::ScalarT

Definition at line 27 of file Panzer_ScalarToVector_decl.hpp.

◆ InnerView

template<typename EvalT , typename Traits >
using panzer::ScalarToVector< EvalT, Traits >::InnerView = typename PHX::MDField<const ScalarT,Cell,Point>::array_type
private

Definition at line 43 of file Panzer_ScalarToVector_decl.hpp.

Constructor & Destructor Documentation

◆ ScalarToVector() [1/2]

template<typename EvalT , typename Traits >
panzer::ScalarToVector< EvalT, Traits >::ScalarToVector ( const Teuchos::ParameterList &  p)

Definition at line 20 of file Panzer_ScalarToVector_impl.hpp.

◆ ScalarToVector() [2/2]

template<typename EvalT , typename Traits >
panzer::ScalarToVector< EvalT, Traits >::ScalarToVector ( const std::vector< PHX::Tag< ScalarT > > &  input,
const PHX::FieldTag &  output 
)

Definition at line 46 of file Panzer_ScalarToVector_impl.hpp.

Member Function Documentation

◆ postRegistrationSetup()

template<typename EvalT , typename Traits >
void panzer::ScalarToVector< EvalT, Traits >::postRegistrationSetup ( typename Traits::SetupData  d,
PHX::FieldManager< Traits > &  fm 
)

Definition at line 71 of file Panzer_ScalarToVector_impl.hpp.

◆ evaluateFields()

template<typename EvalT , typename Traits >
void panzer::ScalarToVector< EvalT, Traits >::evaluateFields ( typename Traits::EvalData  d)

Definition at line 86 of file Panzer_ScalarToVector_impl.hpp.

Member Data Documentation

◆ vector_field_

template<typename EvalT , typename Traits >
PHX::MDField<ScalarT,Cell,Point,Dim> panzer::ScalarToVector< EvalT, Traits >::vector_field_
private

Definition at line 41 of file Panzer_ScalarToVector_decl.hpp.

◆ scalar_fields_

template<typename EvalT , typename Traits >
std::vector<PHX::MDField<const ScalarT,Cell,Point> > panzer::ScalarToVector< EvalT, Traits >::scalar_fields_
private

Definition at line 42 of file Panzer_ScalarToVector_decl.hpp.

◆ scalar_fields_vov_

template<typename EvalT , typename Traits >
PHX::ViewOfViews<1,InnerView> panzer::ScalarToVector< EvalT, Traits >::scalar_fields_vov_
private

Definition at line 44 of file Panzer_ScalarToVector_decl.hpp.


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