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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4819 - (show annotations)
Tue Apr 1 03:50:23 2014 UTC (6 years, 1 month ago) by caltinay
File MIME type: text/plain
File size: 2408 byte(s)
Pattern shared ptrs

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
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 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17
18 /****************************************************************************/
19
20 /* Paso: system matrix pattern */
21
22 /****************************************************************************/
23
24 /* Copyrights by ACcESS Australia 2004,2005 */
25 /* Author: Lutz Gross, l.gross@uq.edu.au */
26
27 /****************************************************************************/
28
29 #ifndef __PASO_SYSTEMMATRIXPATTERN_H__
30 #define __PASO_SYSTEMMATRIXPATTERN_H__
31
32 #include "Distribution.h"
33 #include "Pattern.h"
34 #include "Coupler.h"
35
36 namespace paso {
37
38 struct SystemMatrixPattern;
39 typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
40 typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
41
42 PASO_DLL_API
43 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
44 {
45 // constructor
46 SystemMatrixPattern(int type, Distribution_ptr output_distribution,
47 Distribution_ptr input_distribution, Pattern_ptr mainPattern,
48 Pattern_ptr col_couplePattern, Pattern_ptr row_couplePattern,
49 Connector_ptr col_connector, Connector_ptr row_connector);
50
51 ~SystemMatrixPattern()
52 {
53 Esys_MPIInfo_free(mpi_info);
54 }
55
56 inline index_t getNumOutput() const {
57 return mainPattern->numOutput;
58 }
59
60 SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size,
61 dim_t input_block_size);
62
63 int type;
64 Esys_MPIInfo* mpi_info;
65 Pattern_ptr mainPattern;
66 Pattern_ptr col_couplePattern;
67 Pattern_ptr row_couplePattern;
68 Connector_ptr col_connector;
69 Connector_ptr row_connector;
70 Distribution_ptr output_distribution;
71 Distribution_ptr input_distribution;
72 };
73
74
75 } // namespace paso
76
77 #endif // __PASO_SYSTEMMATRIXPATTERN_H__
78

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26