Skip to content

Commit

Permalink
Allow Piro to build without Teko (#12375)
Browse files Browse the repository at this point in the history
  • Loading branch information
kliegeois authored Oct 7, 2023
1 parent 04b2897 commit b3965b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ gradient_z( ROL::Vector<Real> &grad, const ROL::Vector<Real> &u_old, const ROL::
Teuchos::RCP<const Piro::ProductModelEvaluator<Real>> model_PME = getProductModelEvaluator(thyra_model_);

if ( !model_PME.is_null()) {
Teko::BlockedLinearOp dgdp_op =
Teuchos::RCP<Thyra::PhysicallyBlockedLinearOpBase<Real>> dgdp_op =
Teuchos::rcp_dynamic_cast<Thyra::PhysicallyBlockedLinearOpBase<Real>>(model_PME->create_DgDp_op(g_index_, 0, prodvec_dgdp));
Thyra::ModelEvaluatorBase::Derivative<Real> dgdp_der(Teuchos::rcp_dynamic_cast<Thyra::LinearOpBase<Real>>(dgdp_op));
outArgs.set_DgDp(g_index_, 0, dgdp_der);
Expand Down

0 comments on commit b3965b6

Please sign in to comment.