escript  Revision_4925
SystemMatrixPattern.h
Go to the documentation of this file.
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 
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  {
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;
72 };
73 
74 
75 } // namespace paso
76 
77 #endif // __PASO_SYSTEMMATRIXPATTERN_H__
78 
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:36
#define PASO_DLL_API
Definition: Paso.h:41
void Esys_MPIInfo_free(Esys_MPIInfo *in)
Definition: Esys_MPI.cpp:60
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:56
Struct that holds MPI communicator, rank, size and a tag counter.
Definition: Esys_MPI.h:48
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
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:66
Definition: SystemMatrixPattern.h:43
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:68
Esys_MPIInfo * mpi_info
Definition: SystemMatrixPattern.h:64
int type
Definition: SystemMatrixPattern.h:63
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:69
int index_t
Definition: types.h:25
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:35
Pattern_ptr mainPattern
Definition: SystemMatrixPattern.h:65
Distribution_ptr output_distribution
Definition: SystemMatrixPattern.h:70
Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:71
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:67
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:51
int dim_t
Definition: types.h:24