Panzer
Version of the Day
|
#include <Panzer_Response_Residual.hpp>
Public Member Functions | |
Response_Residual (const std::string &responseName, const Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > &lof) | |
virtual | ~Response_Residual () |
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > | getGhostedResidual () const |
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > | getResidual () const |
void | setResidual (const Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > &res) |
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > | allocateResidualVector () const |
virtual void | initializeResponse () |
virtual void | scatterResponse () |
Prepare the response for access by the user (do global communication) More... | |
![]() | |
ResponseBase (const std::string &responseName) | |
virtual | ~ResponseBase () |
std::string | getName () const |
std::string | getLookupName () const |
virtual void | ghostToGlobal (int) |
Inherited from GlobalEvaluationData,. More... | |
virtual void | initializeData () |
![]() | |
GlobalEvaluationData_Default () | |
GlobalEvaluationData_Default (const GlobalEvaluationData_Default &s) | |
virtual void | globalToGhost (int mem) |
void | setRequiresDirichletAdjustment (bool b) |
bool | requiresDirichletAdjustment () const |
![]() | |
virtual | ~GlobalEvaluationData ()=0 |
virtual void | print (std::ostream &os) const |
Diagnostic function for determinning what's in this object. More... | |
Private Attributes | |
Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > | linObjFactory_ |
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > | residual_ |
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > | ghostedResidual_ |
Additional Inherited Members | |
![]() | |
static std::string | buildLookupName (const std::string &responseName) |
This is the response object used for calculation of the residual. This class uses the LOF to construct a ghosted residual object. A user can uses class members to construct a compatible residual object and then set it as the residual for this response to fill.
Definition at line 39 of file Panzer_Response_Residual.hpp.
|
inline |
Definition at line 48 of file Panzer_Response_Residual.hpp.
|
inlinevirtual |
Definition at line 52 of file Panzer_Response_Residual.hpp.
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > panzer::Response_Residual< panzer::Traits::Residual >::getGhostedResidual | ( | ) | const |
Access the ghosted residual object. Note that this method will not return null. When called for the first time this will use the LOF to construct a ghosted residual.
Definition at line 15 of file Panzer_Response_Residual.cpp.
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > panzer::Response_Residual< panzer::Traits::Residual >::getResidual | ( | ) | const |
Access the residual. This method can return null, but will only return the residual class set by setResidual.
Definition at line 36 of file Panzer_Response_Residual.cpp.
void panzer::Response_Residual< panzer::Traits::Residual >::setResidual | ( | const Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > & | res | ) |
Set the residual to use. If set to null, the internal residual will be lost. This is assumed to be correctly sized.
Definition at line 43 of file Panzer_Response_Residual.cpp.
Teuchos::RCP< Thyra::VectorBase< panzer::Traits::RealType > > panzer::Response_Residual< panzer::Traits::Residual >::allocateResidualVector | ( | ) | const |
Build a correctly sized residual vector. This is a conenience, it wraps the linear object factory.
Definition at line 50 of file Panzer_Response_Residual.cpp.
|
inlinevirtual |
Implements panzer::ResponseBase.
Definition at line 75 of file Panzer_Response_Residual.hpp.
|
inlinevirtual |
Prepare the response for access by the user (do global communication)
Implements panzer::ResponseBase.
Definition at line 76 of file Panzer_Response_Residual.hpp.
|
private |
Definition at line 41 of file Panzer_Response_Residual.hpp.
|
private |
Definition at line 43 of file Panzer_Response_Residual.hpp.
|
mutableprivate |
Definition at line 44 of file Panzer_Response_Residual.hpp.