/[escript]/trunk/ripley/test/SystemMatrixTestCase.h
ViewVC logotype

Diff of /trunk/ripley/test/SystemMatrixTestCase.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5219 by caltinay, Wed Oct 22 05:06:48 2014 UTC revision 5220 by caltinay, Thu Oct 23 03:50:37 2014 UTC
# Line 1  Line 1 
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
# Line 19  Line 19 
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>
# Line 26  Line 27 
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_

Legend:
Removed from v.5219  
changed lines
  Added in v.5220

  ViewVC Help
Powered by ViewVC 1.1.26