Panzer Version of the Day
Loading...
Searching...
No Matches
panzer::ResponseMESupport_Default< panzer::Traits::Jacobian > Class Referenceabstract

#include <Panzer_ResponseMESupport_Default.hpp>

Inheritance diagram for panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >:

Public Member Functions

 ResponseMESupport_Default (const std::string &responseName, MPI_Comm comm, const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &derivVecSpace=Teuchos::null)
virtual ~ResponseMESupport_Default ()
virtual std::size_t localSizeRequired () const =0
 What is the number of values you need locally.
virtual bool vectorIsDistributed () const =0
 Is the vector distributed (or replicated). For derivative assembly this must be false!
bool supportsDerivative () const
 Does this response support derivative evaluation?
Teuchos::RCP< Thyra::MultiVectorBase< double > > getDerivative () const
virtual Teuchos::RCP< Thyra::MultiVectorBase< double > > buildDerivative () const
 Get the Epetra_Map for this response, map is constructed lazily.
virtual void setDerivative (const Teuchos::RCP< Thyra::MultiVectorBase< double > > &derivative)
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > getVectorSpace () const
 Get the vector space for this response, vector space is constructed lazily.
void setVector (const Teuchos::RCP< Thyra::VectorBase< double > > &destVec)
void setVectorSpace (Teuchos::RCP< const Thyra::VectorSpaceBase< double > > vs)
 set the vector space for this response
Teuchos::RCP< Thyra::VectorBase< double > > getVector () const
 Access the response vector.
Public Member Functions inherited from panzer::ResponseMESupportBase< panzer::Traits::Jacobian >
 ResponseMESupportBase (const std::string &responseName)
virtual ~ResponseMESupportBase ()
Public Member Functions inherited from panzer::ResponseBase
 ResponseBase (const std::string &responseName)
virtual ~ResponseBase ()
std::string getName () const
std::string getLookupName () const
virtual void ghostToGlobal (int)
 Inherited from GlobalEvaluationData,.
virtual void initializeData ()
virtual void scatterResponse ()=0
 Prepare the response for access by the user (do global communication).
virtual void initializeResponse ()=0
Public Member Functions inherited from panzer::GlobalEvaluationData_Default
 GlobalEvaluationData_Default ()
 GlobalEvaluationData_Default (const GlobalEvaluationData_Default &s)
virtual void globalToGhost (int)
void setRequiresDirichletAdjustment (bool b)
bool requiresDirichletAdjustment () const
Public Member Functions inherited from panzer::GlobalEvaluationData
virtual ~GlobalEvaluationData ()=0
virtual void print (std::ostream &os) const
 Diagnostic function for determinning what's in this object.

Protected Member Functions

Teuchos::RCP< const Teuchos::Comm< Thyra::Ordinal > > getComm () const
 Get the teuchos comm object.
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > getDerivativeVectorSpace () const
 Get the derivative vector space.
void setDerivativeVectorSpace (const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &vs)
 Set the derivative vector space.
bool useEpetra () const
 Is Epetra the right vector.
bool useThyra () const
 Is Thyra the right vector.
Thyra::ArrayRCP< double > getThyraVector () const
 Access the thyra vector.
Teuchos::RCP< Thyra::MultiVectorBase< double > > getThyraMultiVector () const
 Access the thyra MultiVector.

Private Member Functions

 ResponseMESupport_Default ()
 ResponseMESupport_Default (const ResponseMESupport_Default< panzer::Traits::Jacobian > &)

Private Attributes

Teuchos::RCP< const Teuchos::Comm< Thyra::Ordinal > > tComm_
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > derivVecSpace_
Teuchos::RCP< Thyra::MultiVectorBase< double > > derivative_
bool useEpetra_
bool useThyra_
Teuchos::RCP< const Thyra::VectorSpaceBase< double > > vSpace_
Teuchos::RCP< Thyra::VectorBase< double > > tVector_

Additional Inherited Members

Static Public Member Functions inherited from panzer::ResponseBase
static std::string buildLookupName (const std::string &responseName)

Detailed Description

Definition at line 160 of file Panzer_ResponseMESupport_Default.hpp.

Constructor & Destructor Documentation

◆ ResponseMESupport_Default() [1/3]

panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::ResponseMESupport_Default ( const std::string & responseName,
MPI_Comm comm,
const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > & derivVecSpace = Teuchos::null )
inline

Definition at line 163 of file Panzer_ResponseMESupport_Default.hpp.

◆ ~ResponseMESupport_Default()

◆ ResponseMESupport_Default() [2/3]

panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::ResponseMESupport_Default ( )
private

◆ ResponseMESupport_Default() [3/3]

panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::ResponseMESupport_Default ( const ResponseMESupport_Default< panzer::Traits::Jacobian > & )
private

Member Function Documentation

◆ localSizeRequired()

virtual std::size_t panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::localSizeRequired ( ) const
pure virtual

What is the number of values you need locally.

◆ vectorIsDistributed()

virtual bool panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::vectorIsDistributed ( ) const
pure virtual

Is the vector distributed (or replicated). For derivative assembly this must be false!

◆ supportsDerivative()

bool panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::supportsDerivative ( ) const
inlinevirtual

Does this response support derivative evaluation?

Implements panzer::ResponseMESupportBase< panzer::Traits::Jacobian >.

Definition at line 177 of file Panzer_ResponseMESupport_Default.hpp.

◆ getDerivative()

Teuchos::RCP< Thyra::MultiVectorBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getDerivative ( ) const
inline

Get the vector for this response. This must be constructed from the vector space returned by getMap.

Definition at line 182 of file Panzer_ResponseMESupport_Default.hpp.

◆ buildDerivative()

virtual Teuchos::RCP< Thyra::MultiVectorBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::buildDerivative ( ) const
inlinevirtual

Get the Epetra_Map for this response, map is constructed lazily.

Implements panzer::ResponseMESupportBase< panzer::Traits::Jacobian >.

Definition at line 220 of file Panzer_ResponseMESupport_Default.hpp.

◆ setDerivative()

virtual void panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::setDerivative ( const Teuchos::RCP< Thyra::MultiVectorBase< double > > & derivative)
inlinevirtual

Set the vector (to be filled) for this response. This must be constructed from the vector space returned by getMap.

Implements panzer::ResponseMESupportBase< panzer::Traits::Jacobian >.

Definition at line 231 of file Panzer_ResponseMESupport_Default.hpp.

◆ getComm()

Teuchos::RCP< const Teuchos::Comm< Thyra::Ordinal > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getComm ( ) const
inlineprotected

Get the teuchos comm object.

Definition at line 241 of file Panzer_ResponseMESupport_Default.hpp.

◆ getDerivativeVectorSpace()

Teuchos::RCP< const Thyra::VectorSpaceBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getDerivativeVectorSpace ( ) const
inlineprotected

Get the derivative vector space.

Definition at line 244 of file Panzer_ResponseMESupport_Default.hpp.

◆ setDerivativeVectorSpace()

void panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::setDerivativeVectorSpace ( const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > & vs)
inlineprotected

Set the derivative vector space.

Definition at line 248 of file Panzer_ResponseMESupport_Default.hpp.

◆ getVectorSpace()

Teuchos::RCP< const Thyra::VectorSpaceBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getVectorSpace ( ) const
virtual

Get the vector space for this response, vector space is constructed lazily.

Implements panzer::ResponseMESupportBase< panzer::Traits::Jacobian >.

Definition at line 103 of file Panzer_ResponseMESupport_Default_impl.hpp.

◆ setVector()

void panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::setVector ( const Teuchos::RCP< Thyra::VectorBase< double > > & destVec)
virtual

Set the vector (to be filled) for this response. This must be constructed from the vector space returned by getVectorSpace.

Implements panzer::ResponseMESupportBase< panzer::Traits::Jacobian >.

Definition at line 108 of file Panzer_ResponseMESupport_Default_impl.hpp.

◆ setVectorSpace()

void panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::setVectorSpace ( Teuchos::RCP< const Thyra::VectorSpaceBase< double > > vs)
inline

set the vector space for this response

Definition at line 111 of file Panzer_ResponseMESupport_Default.hpp.

◆ getVector()

Teuchos::RCP< Thyra::VectorBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getVector ( ) const
inline

Access the response vector.

Definition at line 115 of file Panzer_ResponseMESupport_Default.hpp.

◆ useEpetra()

bool panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::useEpetra ( ) const
inlineprotected

Is Epetra the right vector.

Definition at line 123 of file Panzer_ResponseMESupport_Default.hpp.

◆ useThyra()

bool panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::useThyra ( ) const
inlineprotected

Is Thyra the right vector.

Definition at line 126 of file Panzer_ResponseMESupport_Default.hpp.

◆ getThyraVector()

Thyra::ArrayRCP< double > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getThyraVector ( ) const
protected

Access the thyra vector.

Definition at line 134 of file Panzer_ResponseMESupport_Default_impl.hpp.

◆ getThyraMultiVector()

Teuchos::RCP< Thyra::MultiVectorBase< double > > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::getThyraMultiVector ( ) const
inlineprotected

Access the thyra MultiVector.

Definition at line 137 of file Panzer_ResponseMESupport_Default.hpp.

Member Data Documentation

◆ tComm_

Teuchos::RCP<const Teuchos::Comm<Thyra::Ordinal> > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::tComm_
private

Definition at line 256 of file Panzer_ResponseMESupport_Default.hpp.

◆ derivVecSpace_

Teuchos::RCP<const Thyra::VectorSpaceBase<double> > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::derivVecSpace_
private

Definition at line 257 of file Panzer_ResponseMESupport_Default.hpp.

◆ derivative_

Definition at line 262 of file Panzer_ResponseMESupport_Default.hpp.

◆ useEpetra_

◆ useThyra_

◆ vSpace_

Teuchos::RCP<const Thyra::VectorSpaceBase<double> > panzer::ResponseMESupport_Default< panzer::Traits::Jacobian >::vSpace_
mutableprivate

Definition at line 154 of file Panzer_ResponseMESupport_Default.hpp.

◆ tVector_

Definition at line 155 of file Panzer_ResponseMESupport_Default.hpp.


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