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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6939 - (hide annotations)
Mon Jan 20 03:37:18 2020 UTC (10 months ago) by uqaeller
File MIME type: text/plain
File size: 1637 byte(s)
Updated the copyright header.


1 caltinay 5212
2     /*****************************************************************************
3     *
4 jfenwick 6651 * Copyright (c) 2014-2018 by The University of Queensland
5 caltinay 5212 * http://www.uq.edu.au
6     *
7     * Primary Business: Queensland, Australia
8 jfenwick 6112 * Licensed under the Apache License, version 2.0
9     * http://www.apache.org/licenses/LICENSE-2.0
10 caltinay 5212 *
11     * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     * Development 2012-2013 by School of Earth Sciences
13 uqaeller 6939 * Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
14     * Development from 2019 by School of Earth and Environmental Sciences
15     **
16 caltinay 5212 *****************************************************************************/
17    
18    
19     #ifndef _RIPLEY_SYSTEMMATRIXTESTCASE_H_
20     #define _RIPLEY_SYSTEMMATRIXTESTCASE_H_
21    
22     #include <escript/AbstractDomain.h>
23 caltinay 5220 #include <escript/AbstractSystemMatrix.h>
24 caltinay 5212
25     #include <cppunit/TestFixture.h>
26     #include <cppunit/TestSuite.h>
27    
28     class SystemMatrixTestCase : public CppUnit::TestFixture
29     {
30     public:
31 caltinay 5220 virtual void setUp();
32 caltinay 5212
33 caltinay 5220 void testSpMV_CPU_blocksize1_nonsymmetric();
34     void testSpMV_CPU_blocksize2_nonsymmetric();
35     void testSpMV_CPU_blocksize3_nonsymmetric();
36     void testSpMV_CPU_blocksize4_nonsymmetric();
37     void testSpMV_CPU_blocksize1_symmetric();
38     void testSpMV_CPU_blocksize2_symmetric();
39     void testSpMV_CPU_blocksize3_symmetric();
40     void testSpMV_CPU_blocksize4_symmetric();
41    
42 caltinay 5212 static CppUnit::TestSuite* suite();
43    
44 caltinay 5220 private:
45     escript::ASM_ptr createMatrix(int blocksize, bool symmetric);
46     escript::Data createInputVector(int blocksize);
47    
48 caltinay 6001 escript::JMPI mpiInfo;
49 caltinay 5220 escript::Domain_ptr domain;
50 caltinay 5212 };
51    
52     #endif // _RIPLEY_SYSTEMMATRIXTESTCASE_H_
53    

  ViewVC Help
Powered by ViewVC 1.1.26