// @HEADER // ***************************************************************************** // LOCA: Library of Continuation Algorithms Package // // Copyright 2001-2005 NTESS and the LOCA contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef LOCA_EPETRA_ADAPTIVESOLUTIONMANAGER #define LOCA_EPETRA_ADAPTIVESOLUTIONMANAGER #include "LOCA.H" #include "LOCA_Epetra.H" #include "NOX_Epetra_AdaptiveSolutionManager.H" namespace LOCA { namespace Epetra { class AdaptiveSolutionManager : public NOX::Epetra::AdaptiveSolutionManager { public: AdaptiveSolutionManager ( const int number_of_time_derivatives, const Teuchos::RCP& map_, const Teuchos::RCP& overlapMap_, const Teuchos::RCP& overlapJacGraph_); virtual ~AdaptiveSolutionManager () {} virtual Teuchos::RCP updateSolution(); //! Build the LOCA solution group virtual Teuchos::RCP buildSolutionGroup() = 0; //! Remap "old" solution into new data structures virtual void projectCurrentSolution(); //! Accessor functions virtual void getConvergenceData(int& KrylovIters, int& lastSolveKrylocIters, int& linSolves, double& tolAchieved) const; virtual Teuchos::RCP getAdaptParamsNonConst() { return adaptParams; } virtual Teuchos::RCP getAdaptParams() const { return adaptParams; } protected: //! The solution group Teuchos::RCP grp; //! The linear system used for the solution in the group Teuchos::RCP linsys; //! The adaptation parameter list Teuchos::RCP adaptParams; //! The parent of the solution parameter list Teuchos::RCP piroParams; }; } } #endif //LOCA_EPETRA_ADAPTIVESOLUTIONMANAGER