// @HEADER // ***************************************************************************** // ShyLU: Scalable Hybrid LU Preconditioner and Solver // // Copyright 2011 NTESS and the ShyLU contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef __IFPACK2_BASKERILU_HPP__ #define __IFPACK2_BASKERILU_HPP__ //Include needed Trilinos #include #include #include #include //Include needed Basker #include "../src/shylubasker_decl.hpp" template class Baskerilu : public Ifpack2::Preconditioner { public: typedef Tpetra::CrsMatrix TCrsMatrix; typedef Kokkos::CrsMatrix KCrsMatrix; typedef Kokkos::View OrdinalArray; typedef Kokkos::View ScalarArray; private: bool initFlag; bool computedFlag; int nInit; int nApply; int nComputed; double initTime; double computeTime; double applyTime; Teuchos::RCP mat; public: Baskerilu() { //Made to fit the needs of your solve } //required by IfPack2 Teuchos::RCP > getDomainMap() const { return mat->getDomainMap(); } Teuchos::RCP > getRangeMap() const { return mat->getRangeMap(); } void apply ( const Tpetra::MultVector &X, Tpetra::MultiVector &Y, Teuchos::ETransp mode = Teuchos::NO_TRANS, Scalar alpha = Teuchos::ScalarTraits::one(), Scalar beta =Teuchos::ScalarTraits::two() )const { return; }//end of apply() void setParameters(const Teuchos::ParameterList& List) { return; }//end setParameters() void initialize() { return; }//end initialize() bool isInitialized() const { return false; }//end isInitialized() void compute() { return; }//end compute() bool isComputed() const { return false; }//end isComputed() Teuchos::RCP > getMatrix() const { }//end getMatrix() int getNumInitialize() const { }//end getNumInitialize() int getNumCompute() const { }//end getNumCompute() int getNumApply() const { }//end getNumApply() double getInitializeTime() const { }//end getInitializeTime double getComputeTime() const { }//end getComputeTime double getApplyTime() const { }//end getApplyTime() void checkLocalILU() { }//end checkLocalILU() void checkLocalIC() { }//end checkIC() void printStatus() { }//end printStat() };//end class Baskerilu #endif //end __IFPACK2_BASKERILU_HPP__