diff --git a/packages/piro/src/Piro_ThyraProductME_TempusFinalObjective.hpp b/packages/piro/src/Piro_ThyraProductME_TempusFinalObjective.hpp index 692bfce67185..ec3dc7e4773c 100644 --- a/packages/piro/src/Piro_ThyraProductME_TempusFinalObjective.hpp +++ b/packages/piro/src/Piro_ThyraProductME_TempusFinalObjective.hpp @@ -304,7 +304,7 @@ gradient_z( ROL::Vector &grad, const ROL::Vector &u_old, const ROL:: Teuchos::RCP> model_PME = getProductModelEvaluator(thyra_model_); if ( !model_PME.is_null()) { - Teko::BlockedLinearOp dgdp_op = + Teuchos::RCP> dgdp_op = Teuchos::rcp_dynamic_cast>(model_PME->create_DgDp_op(g_index_, 0, prodvec_dgdp)); Thyra::ModelEvaluatorBase::Derivative dgdp_der(Teuchos::rcp_dynamic_cast>(dgdp_op)); outArgs.set_DgDp(g_index_, 0, dgdp_der);