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

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

Parent Directory Parent Directory | Revision Log Revision Log


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


1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17
18
19 /****************************************************************************/
20
21 /* Paso: system matrix pattern */
22
23 /****************************************************************************/
24
25 /* Copyrights by ACcESS Australia 2004,2005 */
26 /* Author: Lutz Gross, l.gross@uq.edu.au */
27
28 /****************************************************************************/
29
30 #ifndef __PASO_SYSTEMMATRIXPATTERN_H__
31 #define __PASO_SYSTEMMATRIXPATTERN_H__
32
33 #include "Coupler.h"
34 #include "Pattern.h"
35
36 #include <escript/Distribution.h>
37
38 namespace paso {
39
40 struct SystemMatrixPattern;
41 typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
42 typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
43
44 PASO_DLL_API
45 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
46 {
47 // constructor
48 SystemMatrixPattern(int type, escript::Distribution_ptr output_distribution,
49 escript::Distribution_ptr input_distribution, Pattern_ptr mainPattern,
50 Pattern_ptr col_couplePattern, Pattern_ptr row_couplePattern,
51 Connector_ptr col_connector, Connector_ptr row_connector);
52
53 ~SystemMatrixPattern() {}
54
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 int type;
63 escript::JMPI mpi_info;
64 Pattern_ptr mainPattern;
65 Pattern_ptr col_couplePattern;
66 Pattern_ptr row_couplePattern;
67 Connector_ptr col_connector;
68 Connector_ptr row_connector;
69 escript::Distribution_ptr output_distribution;
70 escript::Distribution_ptr input_distribution;
71 };
72
73
74 } // 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