16#include "Thyra_VectorSpaceBase.hpp"
23Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
28 using Teuchos::rcp_dynamic_cast;
33 if(ghostedResidual_!=Teuchos::null)
34 return ghostedResidual_;
37 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
40 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
41 return th_loc->get_f_th();
44Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
58Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
63 using Teuchos::rcp_dynamic_cast;
67 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
68 return Thyra::createMember(objFactory->getThyraRangeSpace());
74Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
79 using Teuchos::rcp_dynamic_cast;
84 if(ghostedJacobian_!=Teuchos::null)
85 return ghostedJacobian_;
88 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
91 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
92 return th_loc->get_A_th();
95Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
109Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
114 using Teuchos::rcp_dynamic_cast;
118 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
119 return objFactory->getThyraMatrix();
125#ifdef Panzer_BUILD_HESSIAN_SUPPORT
127Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
132 using Teuchos::rcp_dynamic_cast;
137 if(ghostedHessian_!=Teuchos::null)
138 return ghostedHessian_;
141 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
144 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
145 return th_loc->get_A_th();
148Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
162Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
167 using Teuchos::rcp_dynamic_cast;
171 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
172 return objFactory->getThyraMatrix();