libMesh
eigen_sparse_matrix_test.C
Go to the documentation of this file.
1 #include <libmesh/libmesh_config.h>
2 
3 #ifdef LIBMESH_HAVE_EIGEN
4 
5 #include <libmesh/eigen_sparse_matrix.h>
6 
7 #include "sparse_matrix_test.h"
8 
9 using namespace libMesh;
10 
11 class EigenSparseMatrixTest : public SparseMatrixTest<EigenSparseMatrix<Number>>
12 {
13 public:
17  this->libmesh_suite_name = "SparseMatrixTest";
18  else
19  this->libmesh_suite_name = "EigenSparseMatrixTest";
20  }
21 
22  void setUp()
23  {
24  // EigenSparseMatrix is serial; we'll tell it to use MPI_COMM_SELF
25  // so we just do these tests embarrassingly parallel
26  my_comm = &comm_self;
27 
28  // EigenSparseMatrix doesn't support non-square matrices?
29  nonsquare = 0;
30 
32  }
33 
34  CPPUNIT_TEST_SUITE(EigenSparseMatrixTest);
35 
36  SPARSEMATRIXTEST
37 
38  CPPUNIT_TEST_SUITE_END();
39 
40 private:
41 
43 };
44 
46 
47 #endif
The EigenSparseMatrix class wraps a sparse matrix object from the Eigen library.
The libMesh namespace provides an interface to certain functionality in the library.
Parallel::Communicator comm_self
bool summarized_logs_enabled()
Definition: perf_log.h:202
CPPUNIT_TEST_SUITE_REGISTRATION(EigenSparseMatrixTest)
libMesh::PerfLog * unitlog
Definition: driver.C:173