BOOMERAMG.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: interface to HYPRE, a software library of high performance
* preconditioners and solvers. We use the BoomerAMG part provided
* in this library
*/
/****************************************************************************/
/* Author: Lin Gao, l.gao@uq.edu.au */
/****************************************************************************/
#ifndef __PASO_BOOMERAMG_H__
#define __PASO_BOOMERAMG_H__
#include "SystemMatrix.h"
#ifdef ESYS_HAVE_BOOMERAMG
#include <HYPRE_krylov.h>
#include <HYPRE.h>
#include <HYPRE_parcsr_ls.h>
#endif
namespace paso {
struct Preconditioner_BoomerAMG
{
#ifdef ESYS_HAVE_BOOMERAMG
HYPRE_IJMatrix A;
HYPRE_ParCSRMatrix parcsr_A;
HYPRE_IJVector b;
HYPRE_ParVector par_b;
HYPRE_IJVector x;
HYPRE_ParVector par_x;
HYPRE_Solver solver;
#else
void* n;
#endif
};
void Preconditioner_BoomerAMG_free(Preconditioner_BoomerAMG* in);
Preconditioner_BoomerAMG* Preconditioner_BoomerAMG_alloc(SystemMatrix_ptr A,
Options* options);
void Preconditioner_BoomerAMG_solve(SystemMatrix_ptr A,
Preconditioner_BoomerAMG* amg,
double* x, double * b);
} // namespace paso
#endif // __PASO_BOOMERAMG_H__
SystemMatrix.h
paso::Options
Definition: Options.h:89
paso::Preconditioner_BoomerAMG
Definition: BOOMERAMG.h:44
paso::Preconditioner_BoomerAMG::n
void * n
Definition: BOOMERAMG.h:55
paso::SystemMatrix_ptr
boost::shared_ptr< SystemMatrix > SystemMatrix_ptr
Definition: SystemMatrix.h:40
paso
Definition: AMG.cpp:45
paso::Preconditioner_BoomerAMG_free
void Preconditioner_BoomerAMG_free(Preconditioner_BoomerAMG *in)
Definition: BOOMERAMG.cpp:37
paso::Preconditioner_BoomerAMG_solve
void Preconditioner_BoomerAMG_solve(SystemMatrix_ptr A, Preconditioner_BoomerAMG *amg, double *out, double *in)
call the solver
Definition: BOOMERAMG.cpp:230
paso::Preconditioner_BoomerAMG_alloc
Preconditioner_BoomerAMG * Preconditioner_BoomerAMG_alloc(SystemMatrix_ptr A, Options *options)
Definition: BOOMERAMG.cpp:51