42 #ifndef EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H
43 #define EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H
45 #include <Teuchos_RCP.hpp>
55 class RestrictedCrsMatrixWrapper{
58 RestrictedCrsMatrixWrapper();
60 ~RestrictedCrsMatrixWrapper();
67 int SetMPISubComm(MPI_Comm MPI_SubComm);
70 MPI_Comm GetMPISubComm(){
return MPI_SubComm_;}
76 bool RestrictedProcIsActive(){
return proc_is_active;}
79 Teuchos::RCP<Epetra_CrsMatrix> InputMatrix(){
return input_matrix_;}
82 Teuchos::RCP<Epetra_CrsMatrix> RestrictedMatrix(){
return restricted_matrix_;}
94 int restrict_comm(Teuchos::RCP<Epetra_CrsMatrix> input_matrix);
100 MPI_Comm MPI_SubComm_;
105 Teuchos::RCP<Epetra_CrsMatrix> input_matrix_;
106 Teuchos::RCP<Epetra_CrsMatrix> restricted_matrix_;
108 template<
typename int_type>
109 int Trestrict_comm(Teuchos::RCP<Epetra_CrsMatrix> input_matrix);