42 #ifndef EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H
43 #define EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H
45 #if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS)
47 #warning "The EpetraExt package is deprecated"
51 #include <Teuchos_RCP.hpp>
61 class RestrictedCrsMatrixWrapper{
64 RestrictedCrsMatrixWrapper();
66 ~RestrictedCrsMatrixWrapper();
73 int SetMPISubComm(MPI_Comm MPI_SubComm);
76 MPI_Comm GetMPISubComm(){
return MPI_SubComm_;}
82 bool RestrictedProcIsActive(){
return proc_is_active;}
85 Teuchos::RCP<Epetra_CrsMatrix> InputMatrix(){
return input_matrix_;}
88 Teuchos::RCP<Epetra_CrsMatrix> RestrictedMatrix(){
return restricted_matrix_;}
100 int restrict_comm(Teuchos::RCP<Epetra_CrsMatrix> input_matrix);
106 MPI_Comm MPI_SubComm_;
111 Teuchos::RCP<Epetra_CrsMatrix> input_matrix_;
112 Teuchos::RCP<Epetra_CrsMatrix> restricted_matrix_;
114 template<
typename int_type>
115 int Trestrict_comm(Teuchos::RCP<Epetra_CrsMatrix> input_matrix);