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 
45 struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
46 {
47  // constructor
52 
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 
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:25
paso::SystemMatrixPattern::getNumOutput
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:55
paso::SystemMatrixPattern::col_connector
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:67
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:34
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:69
paso::SystemMatrixPattern::row_connector
Connector_ptr row_connector
Definition: SystemMatrixPattern.h:68
paso::SystemMatrixPattern::type
int type
Definition: SystemMatrixPattern.h:62
Paso.h
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:65
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:72
SystemMatrixPattern.h
paso::SystemMatrixPattern
Definition: SystemMatrixPattern.h:46
paso::SystemMatrixPattern::input_distribution
escript::Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:70
paso::SystemMatrixPattern::mpi_info
escript::JMPI mpi_info
Definition: SystemMatrixPattern.h:63
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:60
paso::SystemMatrixPattern::row_couplePattern
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:66
paso::SystemMatrixPattern::unrollBlocks
SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size, dim_t input_block_size)
Definition: SystemMatrixPattern_unrollBlocks.cpp:33
paso::SystemMatrixPattern::col_couplePattern
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:65
PASO_DLL_API
#define PASO_DLL_API
Definition: Paso.h:60
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:38
Coupler.h
paso::SystemMatrixPattern::~SystemMatrixPattern
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:53
paso
Definition: BiCGStab.cpp:26
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:64