escript  Revision_
SystemMatrixPattern.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 
19 /****************************************************************************/
20 
21 /* Paso: system matrix pattern */
22 
23 /****************************************************************************/
24 
25 /* Copyrights by ACcESS Australia 2004,2005 */
26 /* Author: Lutz Gross, l.gross@uq.edu.au */
27 
28 /****************************************************************************/
29 
30 #ifndef __PASO_SYSTEMMATRIXPATTERN_H__
31 #define __PASO_SYSTEMMATRIXPATTERN_H__
32 
33 #include "Coupler.h"
34 #include "Pattern.h"
35 
36 #include <escript/Distribution.h>
37 
38 namespace paso {
39 
40 struct SystemMatrixPattern;
41 typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
42 typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
43 
44 struct PASO_DLL_API SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
45 {
46  // constructor
47  SystemMatrixPattern(int type, escript::Distribution_ptr output_distribution,
48  escript::Distribution_ptr input_distribution, Pattern_ptr mainPattern,
49  Pattern_ptr col_couplePattern, Pattern_ptr row_couplePattern,
50  Connector_ptr col_connector, Connector_ptr row_connector);
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 
PASO_DLL_API
#define PASO_DLL_API
Definition: paso/src/system_dep.h:29
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:25
paso::SystemMatrixPattern::getNumOutput
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:54
paso::SystemMatrixPattern::col_connector
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:66
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:40
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:33
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:110
paso::const_SystemMatrixPattern_ptr
boost::shared_ptr< const SystemMatrixPattern > const_SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:42
paso::SystemMatrixPattern::output_distribution
escript::Distribution_ptr output_distribution
Definition: SystemMatrixPattern.h:68
paso::SystemMatrixPattern::row_connector
Connector_ptr row_connector
Definition: SystemMatrixPattern.h:67
paso::SystemMatrixPattern::type
int type
Definition: SystemMatrixPattern.h:61
Paso.h
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:66
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:74
SystemMatrixPattern.h
paso::SystemMatrixPattern
Definition: SystemMatrixPattern.h:45
paso::SystemMatrixPattern::input_distribution
escript::Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:69
paso::SystemMatrixPattern::mpi_info
escript::JMPI mpi_info
Definition: SystemMatrixPattern.h:62
Pattern.h
paso::PasoException
PasoException exception class.
Definition: PasoException.h:34
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:61
paso::SystemMatrixPattern::row_couplePattern
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:65
paso::SystemMatrixPattern::col_couplePattern
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:64
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:38
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:39
Coupler.h
paso::SystemMatrixPattern::~SystemMatrixPattern
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:52
paso
Definition: BiCGStab.cpp:25
escript::shipString
bool shipString(const char *src, char **dest, MPI_Comm &comm)
Definition: EsysMPI.cpp:164
paso::SystemMatrixPattern::mainPattern
Pattern_ptr mainPattern
Definition: SystemMatrixPattern.h:63