6#include "Thyra_VectorSpaceBase.hpp"
13Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
18 using Teuchos::rcp_dynamic_cast;
23 if(ghostedResidual_!=Teuchos::null)
24 return ghostedResidual_;
27 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
30 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
31 return th_loc->get_f_th();
34Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
48Teuchos::RCP<Thyra::VectorBase<panzer::Traits::RealType> >
53 using Teuchos::rcp_dynamic_cast;
57 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
58 return Thyra::createMember(objFactory->getThyraRangeSpace());
64Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
69 using Teuchos::rcp_dynamic_cast;
74 if(ghostedJacobian_!=Teuchos::null)
75 return ghostedJacobian_;
78 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
81 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
82 return th_loc->get_A_th();
85Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
99Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
104 using Teuchos::rcp_dynamic_cast;
108 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
109 return objFactory->getThyraMatrix();
115#ifdef Panzer_BUILD_HESSIAN_SUPPORT
117Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
122 using Teuchos::rcp_dynamic_cast;
127 if(ghostedHessian_!=Teuchos::null)
128 return ghostedHessian_;
131 RCP<LinearObjContainer> loc = linObjFactory_->buildGhostedLinearObjContainer();
134 RCP<TOC> th_loc = rcp_dynamic_cast<TOC>(loc);
135 return th_loc->get_A_th();
138Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
152Teuchos::RCP<Thyra::LinearOpBase<panzer::Traits::RealType> >
157 using Teuchos::rcp_dynamic_cast;
161 RCP<const ObjFactory> objFactory = rcp_dynamic_cast<const ObjFactory>(linObjFactory_);
162 return objFactory->getThyraMatrix();