libMesh
Loading...
Searching...
No Matches
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
8
9using namespace libMesh;
10
11class EigenSparseMatrixTest : public SparseMatrixTest<EigenSparseMatrix<Number>>
12{
13public:
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
27
28 // EigenSparseMatrix doesn't support non-square matrices?
29 nonsquare = 0;
30
32 }
33
35
36 SPARSEMATRIXTEST
37
39
40private:
41
43};
44
46
47#endif
CPPUNIT_TEST_SUITE(EigenSparseMatrixTest)
Parallel::Communicator comm_self
SPARSEMATRIXTEST CPPUNIT_TEST_SUITE_END()
The EigenSparseMatrix class wraps a sparse matrix object from the Eigen library.
bool summarized_logs_enabled()
Definition perf_log.h:210
libMesh::PerfLog * unitlog
Definition driver.C:220
CPPUNIT_TEST_SUITE_REGISTRATION(EigenSparseMatrixTest)
The libMesh namespace provides an interface to certain functionality in the library.