/[escript]/trunk/paso/src/SystemMatrixPattern.h
ViewVC logotype

Annotation of /trunk/paso/src/SystemMatrixPattern.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6939 - (hide annotations)
Mon Jan 20 03:37:18 2020 UTC (5 weeks, 3 days ago) by uqaeller
File MIME type: text/plain
File size: 2475 byte(s)
Updated the copyright header.


1 ksteube 1312
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 uqaeller 6939 * Copyright (c) 2003-2020 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
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 ksteube 1811 *
11 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * 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 jfenwick 3981 *****************************************************************************/
17 dhawcroft 631
18 ksteube 1811
19 caltinay 4800 /****************************************************************************/
20 jgs 150
21 caltinay 3642 /* Paso: system matrix pattern */
22 jgs 150
23 caltinay 4800 /****************************************************************************/
24 jgs 150
25     /* Copyrights by ACcESS Australia 2004,2005 */
26 jfenwick 2608 /* Author: Lutz Gross, l.gross@uq.edu.au */
27 jgs 150
28 caltinay 4800 /****************************************************************************/
29 jgs 150
30 caltinay 4800 #ifndef __PASO_SYSTEMMATRIXPATTERN_H__
31     #define __PASO_SYSTEMMATRIXPATTERN_H__
32 jgs 150
33 caltinay 6001 #include "Coupler.h"
34 ksteube 1312 #include "Pattern.h"
35 jgs 150
36 caltinay 6197 #include <escript/Distribution.h>
37    
38 caltinay 4800 namespace paso {
39 jgs 150
40 caltinay 4818 struct SystemMatrixPattern;
41     typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
42     typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
43    
44 caltinay 4800 PASO_DLL_API
45 caltinay 4818 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
46 caltinay 4800 {
47     // constructor
48 caltinay 6197 SystemMatrixPattern(int type, escript::Distribution_ptr output_distribution,
49     escript::Distribution_ptr input_distribution, Pattern_ptr mainPattern,
50 caltinay 4819 Pattern_ptr col_couplePattern, Pattern_ptr row_couplePattern,
51 caltinay 4817 Connector_ptr col_connector, Connector_ptr row_connector);
52 ksteube 1312
53 caltinay 5997 ~SystemMatrixPattern() {}
54 caltinay 4818
55     inline index_t getNumOutput() const {
56     return mainPattern->numOutput;
57     }
58    
59     SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size,
60     dim_t input_block_size);
61    
62 caltinay 4800 int type;
63 caltinay 5997 escript::JMPI mpi_info;
64 caltinay 4819 Pattern_ptr mainPattern;
65     Pattern_ptr col_couplePattern;
66     Pattern_ptr row_couplePattern;
67 caltinay 4817 Connector_ptr col_connector;
68     Connector_ptr row_connector;
69 caltinay 6197 escript::Distribution_ptr output_distribution;
70     escript::Distribution_ptr input_distribution;
71 caltinay 4800 };
72 jgs 150
73    
74 caltinay 4800 } // namespace paso
75    
76     #endif // __PASO_SYSTEMMATRIXPATTERN_H__
77    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26