Skip to content

Commit

Permalink
Merge pull request #3668 from sconde/rythmos-get-solver
Browse files Browse the repository at this point in the history
Piro: add getter to access nonlinear solver
  • Loading branch information
sconde authored Oct 29, 2018
2 parents 09eeed6 + 2da3a5b commit a68b12e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/piro/src/Piro_RythmosSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class RythmosSolver

Teuchos::RCP<const Rythmos::IntegratorBase<Scalar> > getRythmosIntegrator() const;

Teuchos::RCP<const Thyra::NonlinearSolverBase<Scalar> > getTimeStepSolver() const;

/** \name Overridden from Thyra::ModelEvaluatorBase. */
//@{
/** \brief . */
Expand Down
14 changes: 14 additions & 0 deletions packages/piro/src/Piro_RythmosSolver_Def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,20 @@ Piro::RythmosSolver<Scalar>::getRythmosIntegrator() const
return fwdStateIntegrator;
}


#ifdef ALBANY_BUILD
template <typename Scalar, typename LocalOrdinal, typename GlobalOrdinal, typename Node>
Teuchos::RCP<const Thyra::NonlinearSolverBase<Scalar> >
Piro::RythmosSolver<Scalar, LocalOrdinal, GlobalOrdinal, Node>::getTimeStepSolver() const
#else
template <typename Scalar>
Teuchos::RCP<const Thyra::NonlinearSolverBase<Scalar> >
Piro::RythmosSolver<Scalar>::getTimeStepSolver() const
#endif
{
return fwdTimeStepSolver;
}

#ifdef ALBANY_BUILD
template <typename Scalar, typename LocalOrdinal, typename GlobalOrdinal, typename Node>
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
Expand Down

0 comments on commit a68b12e

Please sign in to comment.