SystemMatrixPattern.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2020 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
/****************************************************************************/
/* Paso: system matrix pattern */
/****************************************************************************/
/* Copyrights by ACcESS Australia 2004,2005 */
/* Author: Lutz Gross, l.gross@uq.edu.au */
/****************************************************************************/
#ifndef __PASO_SYSTEMMATRIXPATTERN_H__
#define __PASO_SYSTEMMATRIXPATTERN_H__
#include "Coupler.h"
#include "Pattern.h"
#include <escript/Distribution.h>
namespace paso {
struct SystemMatrixPattern;
typedef boost::shared_ptr<SystemMatrixPattern> SystemMatrixPattern_ptr;
typedef boost::shared_ptr<const SystemMatrixPattern> const_SystemMatrixPattern_ptr;
PASO_DLL_API
struct SystemMatrixPattern : boost::enable_shared_from_this<SystemMatrixPattern>
{
// constructor
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);
~SystemMatrixPattern() {}
inline index_t getNumOutput() const {
return mainPattern->numOutput;
}
SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size,
dim_t input_block_size);
int type;
escript::JMPI mpi_info;
Pattern_ptr mainPattern;
Pattern_ptr col_couplePattern;
Pattern_ptr row_couplePattern;
Connector_ptr col_connector;
Connector_ptr row_connector;
escript::Distribution_ptr output_distribution;
escript::Distribution_ptr input_distribution;
};
} // namespace paso
#endif // __PASO_SYSTEMMATRIXPATTERN_H__
paso::SystemMatrix::mpi_info
escript::JMPI mpi_info
Definition: SystemMatrix.h:336
escript::Distribution_ptr
boost::shared_ptr< Distribution > Distribution_ptr
Definition: Distribution.h:39
paso::SystemMatrixPattern::getNumOutput
index_t getNumOutput() const
Definition: SystemMatrixPattern.h:69
paso::SystemMatrixPattern::col_connector
Connector_ptr col_connector
Definition: SystemMatrixPattern.h:81
paso::SystemMatrixPattern_ptr
boost::shared_ptr< SystemMatrixPattern > SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:54
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:48
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:124
paso::const_SystemMatrixPattern_ptr
boost::shared_ptr< const SystemMatrixPattern > const_SystemMatrixPattern_ptr
Definition: SystemMatrixPattern.h:56
paso::SystemMatrixPattern::output_distribution
escript::Distribution_ptr output_distribution
Definition: SystemMatrixPattern.h:83
paso::SystemMatrixPattern::row_connector
Connector_ptr row_connector
Definition: SystemMatrixPattern.h:82
paso::SystemMatrixPattern::type
int type
Definition: SystemMatrixPattern.h:76
Paso.h
escript::DataTypes::dim_t
index_t dim_t
Definition: DataTypes.h:93
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:72
SystemMatrixPattern.h
paso::SystemMatrixPattern::input_distribution
escript::Distribution_ptr input_distribution
Definition: SystemMatrixPattern.h:84
paso::SystemMatrixPattern::mpi_info
escript::JMPI mpi_info
Definition: SystemMatrixPattern.h:77
Pattern.h
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:88
paso::SystemMatrixPattern::row_couplePattern
Pattern_ptr row_couplePattern
Definition: SystemMatrixPattern.h:80
paso::SystemMatrixPattern::unrollBlocks
SystemMatrixPattern_ptr unrollBlocks(int type, dim_t output_block_size, dim_t input_block_size)
Definition: SystemMatrixPattern_unrollBlocks.cpp:47
paso::SystemMatrixPattern::col_couplePattern
Pattern_ptr col_couplePattern
Definition: SystemMatrixPattern.h:79
PASO_DLL_API
#define PASO_DLL_API
Definition: Paso.h:60
paso::Connector_ptr
boost::shared_ptr< Connector > Connector_ptr
Definition: Coupler.h:52
paso::Pattern_ptr
boost::shared_ptr< Pattern > Pattern_ptr
Definition: Pattern.h:52
Coupler.h
paso::SystemMatrixPattern::~SystemMatrixPattern
~SystemMatrixPattern()
Definition: SystemMatrixPattern.h:67
paso
Definition: BiCGStab.cpp:26
escript::shipString
bool shipString(const char *src, char **dest, MPI_Comm &comm)
Definition: EsysMPI.cpp:178
paso::SystemMatrixPattern::mainPattern
Pattern_ptr mainPattern
Definition: SystemMatrixPattern.h:78