libMesh
laspack_vector_test.C
Go to the documentation of this file.
1 #include <libmesh/laspack_vector.h>
2 
3 #ifdef LIBMESH_HAVE_LASPACK
4 
5 #include "numeric_vector_test.h"
6 
7 
8 using namespace libMesh;
9 
10 class LaspackVectorTest : public NumericVectorTest<LaspackVector<Number>>
11 {
12 public:
13  void setUp()
14  {
15  // Laspack doesn't support distributed parallel vectors, but we
16  // can build a serial vector on each processor
17  my_comm = new Parallel::Communicator();
18  }
19 
20  void tearDown()
21  {
22  delete my_comm;
23  }
24 
25  CPPUNIT_TEST_SUITE( LaspackVectorTest );
26 
27  NUMERICVECTORTEST
28 
29  CPPUNIT_TEST_SUITE_END();
30 };
31 
33 
34 #endif // #ifdef LIBMESH_HAVE_LASPACK
35 
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition: factoryfunction.C:55
LaspackVectorTest
Definition: laspack_vector_test.C:10
numeric_vector_test.h
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(LaspackVectorTest)
LaspackVectorTest::tearDown
void tearDown()
Definition: laspack_vector_test.C:20
NumericVectorTest
Definition: numeric_vector_test.h:27
LaspackVectorTest::setUp
void setUp()
Definition: laspack_vector_test.C:13