escript  Revision_
SystemMatrixPattern.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 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 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 
39 typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
40 typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
41 
43 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
44 {
45  // constructor
50 
52  {
53  }
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;
71 };
72 
73 
74 } // namespace paso
75 
76 #endif // __PASO_SYSTEMMATRIXPATTERN_H__
77 
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:36
#define PASO_DLL_API
Definition: Paso.h:41
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:55
esysUtils::JMPI mpi_info
Definition: SystemMatrixPattern.h:63
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:36
SystemMatrixPattern(int type, Distribution_ptr output_distribution, Distribution_ptr input_distribution, Pattern_ptr mainPattern, Pattern_ptr col_couplePattern, Pattern_ptr row_couplePattern, Connector_ptr col_connector, Connector_ptr row_connector)
Definition: SystemMatrixPattern.cpp:33
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:38
Definition: AMG.cpp:38
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:65
Definition: SystemMatrixPattern.h:43
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:67
int type
Definition: SystemMatrixPattern.h:62
SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size, dim_t input_block_size)
Definition: SystemMatrixPattern_unrollBlocks.cpp:32
boost::shared_ptr< const SystemMatrixPattern > const_SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:40
Connector_ptr row_connector
Definition: SystemMatrixPattern.h:68
int index_t
Definition: types.h:24
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:35
index_t dim_t
Definition: types.h:27
Pattern_ptr mainPattern
Definition: SystemMatrixPattern.h:64
Distribution_ptr output_distribution
Definition: SystemMatrixPattern.h:69
Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:70
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:66
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:51
boost::shared_ptr< JMPI_ > JMPI
Definition: Esys_MPI.h:79