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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4803 - (show annotations)
Wed Mar 26 06:52:28 2014 UTC (5 years, 10 months ago) by caltinay
File MIME type: text/plain
File size: 2395 byte(s)
Removed obsolete wrappers for malloc and friends.
Paso_Pattern -> paso::Pattern

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 PASO_DLL_API
39 struct SystemMatrixPattern
40 {
41 // constructor
42 SystemMatrixPattern(int type, Paso_Distribution* output_distribution,
43 Paso_Distribution* input_distribution, Pattern* mainPattern,
44 Pattern* col_couplePattern, Pattern* row_couplePattern,
45 Connector* col_connector, Connector* row_connector);
46
47 int type;
48
49 Esys_MPIInfo* mpi_info;
50
51 Pattern* mainPattern;
52 Pattern* col_couplePattern;
53 Pattern* row_couplePattern;
54 Connector* col_connector;
55 Connector* row_connector;
56 Paso_Distribution* output_distribution;
57 Paso_Distribution* input_distribution;
58
59 dim_t reference_counter;
60 };
61
62
63 /* interfaces: */
64
65 PASO_DLL_API
66 SystemMatrixPattern* SystemMatrixPattern_getReference(SystemMatrixPattern*);
67
68 PASO_DLL_API
69 void SystemMatrixPattern_free(SystemMatrixPattern*);
70
71 SystemMatrixPattern* SystemMatrixPattern_unrollBlocks(
72 SystemMatrixPattern* pattern,
73 int type, dim_t output_block_size,
74 dim_t input_block_size);
75
76 index_t SystemMatrixPattern_getNumOutput(const SystemMatrixPattern*);
77
78 } // namespace paso
79
80 #endif // __PASO_SYSTEMMATRIXPATTERN_H__
81

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26