31 #include "Epetra_MpiComm.h"
33 #include "Epetra_SerialComm.h"
35 #include "Epetra_Map.h"
36 #include "Epetra_CrsMatrix.h"
41 #include "Teuchos_RefCountPtr.hpp"
44 int main(
int argc,
char *argv[])
50 MPI_Init(&argc,&argv);
61 if (Comm.
MyPID() == 0)
62 cout <<
"Please run this test with one process only" << endl;
75 #if !defined(EPETRA_NO_32BIT_GLOBAL_INDICES) || !defined(EPETRA_NO_64BIT_GLOBAL_INDICES)
81 std::vector<long long> Indices(NumPoints);
82 std::vector<double> Values(NumPoints);
85 for (
int i = 0 ; i < NumPoints ; ++i) {
89 NumEntries = NumPoints;
90 for (
int j = 0 ; j < NumPoints ; ++j) {
103 #if !defined(EPETRA_NO_32BIT_GLOBAL_INDICES) || !defined(EPETRA_NO_64BIT_GLOBAL_INDICES)
104 A->InsertGlobalValues(i, NumEntries, &Values[0], &Indices[0]);
130 return(EXIT_SUCCESS);
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Ifpack_RCMReordering: reverse Cuthill-McKee reordering.
int main(int argc, char *argv[])
#define IFPACK_CHK_ERR(ifpack_err)
Ifpack_ReorderFilter: a class for light-weight reorder of local rows and columns of an Epetra_RowMatr...