escript  Revision_
SystemMatrixPattern.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 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 "Coupler.h"
33 #include "Pattern.h"
34 
35 #include <escript/Distribution.h>
36 
37 namespace paso {
38 
39 struct SystemMatrixPattern;
40 typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
41 typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
42 
44 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
45 {
46  // constructor
51 
53 
54  inline index_t getNumOutput() const {
55  return mainPattern->numOutput;
56  }
57 
58  SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size,
59  dim_t input_block_size);
60 
61  int type;
70 };
71 
72 
73 } // namespace paso
74 
75 #endif // __PASO_SYSTEMMATRIXPATTERN_H__
76 
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:35
paso::SystemMatrixPattern::getNumOutput
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:65
paso::SystemMatrixPattern::col_connector
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:77
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:50
paso::SystemMatrixPattern::SystemMatrixPattern
SystemMatrixPattern(int type, escript::Distribution_ptr output_distribution, escript::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:44
escript::checkResult
bool checkResult(int res, int &mres, const JMPI &info)
Everyone puts in their error code and everyone gets the largest one.
Definition: EsysMPI.cpp:120
paso::const_SystemMatrixPattern_ptr
boost::shared_ptr< const SystemMatrixPattern > const_SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:52
paso::SystemMatrixPattern::output_distribution
escript::Distribution_ptr output_distribution
Definition: SystemMatrixPattern.h:79
paso::SystemMatrixPattern::row_connector
Connector_ptr row_connector
Definition: SystemMatrixPattern.h:78
paso::SystemMatrixPattern::type
int type
Definition: SystemMatrixPattern.h:72
Paso.h
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:87
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:70
SystemMatrixPattern.h
paso::SystemMatrixPattern::input_distribution
escript::Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:80
paso::SystemMatrixPattern::mpi_info
escript::JMPI mpi_info
Definition: SystemMatrixPattern.h:73
Pattern.h
paso::PasoException
PasoException exception class.
Definition: PasoException.h:43
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:82
paso::SystemMatrixPattern::row_couplePattern
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:76
paso::SystemMatrixPattern::unrollBlocks
SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size, dim_t input_block_size)
Definition: SystemMatrixPattern_unrollBlocks.cpp:43
paso::SystemMatrixPattern::col_couplePattern
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:75
PASO_DLL_API
#define PASO_DLL_API
Definition: Paso.h:58
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:48
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:48
Coupler.h
paso::SystemMatrixPattern::~SystemMatrixPattern
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:63
paso
Definition: BiCGStab.cpp:25
escript::shipString
bool shipString(const char *src, char **dest, MPI_Comm &comm)
Definition: EsysMPI.cpp:174
paso::SystemMatrixPattern::mainPattern
Pattern_ptr mainPattern
Definition: SystemMatrixPattern.h:74