1 |
|
|
2 |
/***************************************************************************** |
/***************************************************************************** |
3 |
* |
* |
4 |
* Copyright (c) 2003-2014 by University of Queensland |
* Copyright (c) 2014 by University of Queensland |
5 |
* http://www.uq.edu.au |
* http://www.uq.edu.au |
6 |
* |
* |
7 |
* Primary Business: Queensland, Australia |
* Primary Business: Queensland, Australia |
19 |
#define _RIPLEY_SYSTEMMATRIXTESTCASE_H_ |
#define _RIPLEY_SYSTEMMATRIXTESTCASE_H_ |
20 |
|
|
21 |
#include <escript/AbstractDomain.h> |
#include <escript/AbstractDomain.h> |
22 |
|
#include <escript/AbstractSystemMatrix.h> |
23 |
|
|
24 |
#include <cppunit/TestFixture.h> |
#include <cppunit/TestFixture.h> |
25 |
#include <cppunit/TestSuite.h> |
#include <cppunit/TestSuite.h> |
27 |
class SystemMatrixTestCase : public CppUnit::TestFixture |
class SystemMatrixTestCase : public CppUnit::TestFixture |
28 |
{ |
{ |
29 |
public: |
public: |
30 |
void testSpMV(); |
virtual void setUp(); |
31 |
|
|
32 |
|
void testSpMV_CPU_blocksize1_nonsymmetric(); |
33 |
|
void testSpMV_CPU_blocksize2_nonsymmetric(); |
34 |
|
void testSpMV_CPU_blocksize3_nonsymmetric(); |
35 |
|
void testSpMV_CPU_blocksize4_nonsymmetric(); |
36 |
|
void testSpMV_CPU_blocksize1_symmetric(); |
37 |
|
void testSpMV_CPU_blocksize2_symmetric(); |
38 |
|
void testSpMV_CPU_blocksize3_symmetric(); |
39 |
|
void testSpMV_CPU_blocksize4_symmetric(); |
40 |
|
|
41 |
static CppUnit::TestSuite* suite(); |
static CppUnit::TestSuite* suite(); |
42 |
|
|
43 |
|
private: |
44 |
|
escript::ASM_ptr createMatrix(int blocksize, bool symmetric); |
45 |
|
escript::Data createInputVector(int blocksize); |
46 |
|
|
47 |
|
esysUtils::JMPI mpiInfo; |
48 |
|
escript::Domain_ptr domain; |
49 |
}; |
}; |
50 |
|
|
51 |
#endif // _RIPLEY_SYSTEMMATRIXTESTCASE_H_ |
#endif // _RIPLEY_SYSTEMMATRIXTESTCASE_H_ |