MergedSolver.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2017 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 by Centre for Geoscience Computing (GeoComp)
*
*****************************************************************************/
/****************************************************************************
* Paso: Merged solver for AMG
****************************************************************************/
/* Author: lgao@uq.edu.au, l.gross@uq.edu.au */
/****************************************************************************/
#ifndef __PASO_MERGEDSOLVER_H__
#define __PASO_MERGEDSOLVER_H__
#include "Paso.h"
#include "SystemMatrix.h"
namespace paso {
struct MergedSolver
{
MergedSolver(const_SystemMatrix_ptr A, const Options* options);
~MergedSolver();
void solve(double* local_x, const double* local_b);
escript::JMPI mpi_info;
SparseMatrix_ptr A;
double* x;
double* b;
int* counts;
int* offset;
index_t reordering;
index_t refinements;
index_t verbose;
index_t sweeps;
};
} // namespace paso
#endif // __PASO_MERGEDSOLVER_H__
paso::MergedSolver::MergedSolver
MergedSolver(const_SystemMatrix_ptr A, const Options *options)
Definition: MergedSolver.cpp:37
Paso.h
paso::MergedSolver::b
double * b
Definition: MergedSolver.h:46
SystemMatrix.h
paso::Options
Definition: Options.h:89
paso::MergedSolver::verbose
index_t verbose
Definition: MergedSolver.h:51
paso::MergedSolver::reordering
index_t reordering
Definition: MergedSolver.h:49
paso::MergedSolver::sweeps
index_t sweeps
Definition: MergedSolver.h:52
escript::JMPI
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
paso::SparseMatrix_ptr
boost::shared_ptr< SparseMatrix > SparseMatrix_ptr
Definition: SparseMatrix.h:35
paso
Definition: AMG.cpp:45
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:59
paso::MergedSolver::refinements
index_t refinements
Definition: MergedSolver.h:50
paso::MergedSolver::~MergedSolver
~MergedSolver()
Definition: MergedSolver.cpp:82
paso::MergedSolver::solve
void solve(double *local_x, const double *local_b)
Definition: MergedSolver.cpp:90
paso::MergedSolver::x
double * x
Definition: MergedSolver.h:45
paso::const_SystemMatrix_ptr
boost::shared_ptr< const SystemMatrix > const_SystemMatrix_ptr
Definition: SystemMatrix.h:42
paso::MergedSolver
Definition: MergedSolver.h:36
paso::MergedSolver::offset
int * offset
Definition: MergedSolver.h:48
paso::MergedSolver::mpi_info
escript::JMPI mpi_info
Definition: MergedSolver.h:43
paso::MergedSolver::counts
int * counts
Definition: MergedSolver.h:47
paso::MergedSolver::A
SparseMatrix_ptr A
Definition: MergedSolver.h:44