Panzer Version of the Day
|
#include <Panzer_Response_Probe.hpp>
Public Types | |
typedef EvalT::ScalarT | ScalarT |
Public Member Functions | |
Response_Probe (const std::string &responseName, MPI_Comm comm, const Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > &linObjFact=Teuchos::null) | |
virtual void | scatterResponse () |
This simply does global summation, then shoves the result into a vector. | |
virtual void | initializeResponse () |
virtual std::size_t | localSizeRequired () const |
What is the number of values you need locally. | |
virtual bool | vectorIsDistributed () const |
Is the vector distributed (or replicated) | |
Teuchos::RCP< Thyra::VectorBase< double > > | getGhostedVector () const |
Get ghosted responses (this will be filled by the evaluator) | |
void | adjustForDirichletConditions (const GlobalEvaluationData &localBCRows, const GlobalEvaluationData &globalBCRows) |
void | scatterResponse () |
Prepare the response for access by the user (do global communication) | |
void | scatterResponse () |
Prepare the response for access by the user (do global communication) | |
void | scatterResponse () |
Prepare the response for access by the user (do global communication) | |
void | adjustForDirichletConditions (const GlobalEvaluationData &localBCRows, const GlobalEvaluationData &globalBCRows) |
void | adjustForDirichletConditions (const GlobalEvaluationData &localBCRows, const GlobalEvaluationData &globalBCRows) |
![]() | |
ResponseMESupport_Default (const std::string &responseName, MPI_Comm comm) | |
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) | |
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. | |
![]() | |
ResponseMESupportBase (const std::string &responseName) | |
virtual | ~ResponseMESupportBase () |
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< double > > | getVectorSpace () const =0 |
Get the vector space for this response, vector space is constructed lazily. | |
virtual void | setVector (const Teuchos::RCP< Thyra::VectorBase< double > > &destVec)=0 |
![]() | |
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 |
![]() | |
GlobalEvaluationData_Default () | |
GlobalEvaluationData_Default (const GlobalEvaluationData_Default &s) | |
virtual void | ghostToGlobal (int) |
virtual void | globalToGhost (int) |
virtual void | initializeData () |
void | setRequiresDirichletAdjustment (bool b) |
bool | requiresDirichletAdjustment () const |
![]() | |
virtual | ~GlobalEvaluationData ()=0 |
virtual void | ghostToGlobal (int mem)=0 |
virtual void | globalToGhost (int mem)=0 |
virtual bool | requiresDirichletAdjustment () const =0 |
virtual void | initializeData ()=0 |
virtual void | print (std::ostream &os) const |
Diagnostic function for determinning what's in this object. | |
virtual void | adjustForDirichletConditions (const GlobalEvaluationData &localBCRows, const GlobalEvaluationData &globalBCRows)=0 |
Public Attributes | |
ScalarT | value |
bool | have_probe |
Private Member Functions | |
void | setSolnVectorSpace (const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &soln_vs) |
Set solution vector space. | |
Response_Probe () | |
Response_Probe (const Response_Probe &) | |
void | setSolnVectorSpace (const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &soln_vs) |
void | setSolnVectorSpace (const Teuchos::RCP< const Thyra::VectorSpaceBase< double > > &soln_vs) |
Private Attributes | |
Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > | linObjFactory_ |
Teuchos::RCP< const panzer::ThyraObjFactory< double > > | thyraObjFactory_ |
Teuchos::RCP< LinearObjContainer > | uniqueContainer_ |
Teuchos::RCP< LinearObjContainer > | ghostedContainer_ |
Additional Inherited Members | |
![]() | |
static std::string | buildLookupName (const std::string &responseName) |
![]() | |
Teuchos::RCP< const Teuchos::Comm< Thyra::Ordinal > > | getComm () const |
Get the teuchos comm object. | |
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. | |
This class provides a response storage for the value of the solution at a point in space/time.
Definition at line 76 of file Panzer_Response_Probe.hpp.
typedef EvalT::ScalarT panzer::Response_Probe< EvalT >::ScalarT |
Definition at line 79 of file Panzer_Response_Probe.hpp.
panzer::Response_Probe< EvalT >::Response_Probe | ( | const std::string & | responseName, |
MPI_Comm | comm, | ||
const Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > & | linObjFact = Teuchos::null |
||
) |
Definition at line 60 of file Panzer_Response_Probe_impl.hpp.
|
private |
|
private |
|
virtual |
This simply does global summation, then shoves the result into a vector.
Implements panzer::ResponseBase.
Definition at line 90 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Implements panzer::ResponseBase.
Definition at line 80 of file Panzer_Response_Probe_impl.hpp.
|
inlinevirtual |
What is the number of values you need locally.
Implements panzer::ResponseMESupport_Default< EvalT >.
Definition at line 95 of file Panzer_Response_Probe.hpp.
|
inlinevirtual |
Is the vector distributed (or replicated)
Implements panzer::ResponseMESupport_Default< EvalT >.
Definition at line 98 of file Panzer_Response_Probe.hpp.
|
inline |
Get ghosted responses (this will be filled by the evaluator)
Definition at line 101 of file Panzer_Response_Probe.hpp.
|
virtual |
Adjust the container for applied dirichlet conditions. The adjustment considers if a boundary condition was set globally and locally and based on that result adjusts the container so that when the ghost to global operation is correct across processors.
[in] | localBCRows | Linear object container uses the X vector to indicate locally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
[in] | globalBCRows | Linear object container uses the X vector to indicate globally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
Implements panzer::GlobalEvaluationData_BCAdjustment.
Definition at line 223 of file Panzer_Response_Probe_impl.hpp.
|
private |
Set solution vector space.
Definition at line 200 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Prepare the response for access by the user (do global communication)
Implements panzer::ResponseBase.
Definition at line 124 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Prepare the response for access by the user (do global communication)
Implements panzer::ResponseBase.
Definition at line 141 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Prepare the response for access by the user (do global communication)
Implements panzer::ResponseBase.
Definition at line 158 of file Panzer_Response_Probe_impl.hpp.
|
private |
Definition at line 205 of file Panzer_Response_Probe_impl.hpp.
|
private |
Definition at line 214 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Adjust the container for applied dirichlet conditions. The adjustment considers if a boundary condition was set globally and locally and based on that result adjusts the container so that when the ghost to global operation is correct across processors.
[in] | localBCRows | Linear object container uses the X vector to indicate locally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
[in] | globalBCRows | Linear object container uses the X vector to indicate globally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
Implements panzer::GlobalEvaluationData_BCAdjustment.
Definition at line 228 of file Panzer_Response_Probe_impl.hpp.
|
virtual |
Adjust the container for applied dirichlet conditions. The adjustment considers if a boundary condition was set globally and locally and based on that result adjusts the container so that when the ghost to global operation is correct across processors.
[in] | localBCRows | Linear object container uses the X vector to indicate locally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
[in] | globalBCRows | Linear object container uses the X vector to indicate globally set dirichlet conditions. The format is if an entry of the vector is nonzero then it was set as a dirichlet condition. |
Implements panzer::GlobalEvaluationData_BCAdjustment.
Definition at line 239 of file Panzer_Response_Probe_impl.hpp.
ScalarT panzer::Response_Probe< EvalT >::value |
Definition at line 81 of file Panzer_Response_Probe.hpp.
bool panzer::Response_Probe< EvalT >::have_probe |
Definition at line 82 of file Panzer_Response_Probe.hpp.
|
private |
Definition at line 114 of file Panzer_Response_Probe.hpp.
|
private |
Definition at line 115 of file Panzer_Response_Probe.hpp.
|
private |
Definition at line 117 of file Panzer_Response_Probe.hpp.
|
private |
Definition at line 118 of file Panzer_Response_Probe.hpp.