1#ifndef AMREX_HYPREABECLAP2_H_
2#define AMREX_HYPREABECLAP2_H_
3#include <AMReX_Config.H>
7#include "_hypre_sstruct_mv.h"
8#include "_hypre_sstruct_ls.h"
56 int maxiter,
const BndryData& bndry,
int max_bndry_order)
override;
60 HYPRE_SStructGrid hgrid =
nullptr;
61 HYPRE_SStructStencil stencil =
nullptr;
62 HYPRE_SStructGraph graph =
nullptr;
63 HYPRE_SStructMatrix A =
nullptr;
64 HYPRE_SStructVector b =
nullptr;
65 HYPRE_SStructVector x =
nullptr;
66 HYPRE_Solver solver =
nullptr;
Reference-counted collection of Boxes.
Definition AMReX_BoxArray.H:681
Calculates the distribution of FABs to MPI processes.
Definition AMReX_DistributionMapping.H:51
Rectangular problem domain geometry.
Definition AMReX_Geometry.H:87
void loadVectors(MultiFab &soln, const MultiFab &rhs)
Copy AMReX solution guess soln and RHS rhs into the HYPRE vectors before solving.
Definition AMReX_HypreABecLap2.cpp:299
void solve(MultiFab &soln, const MultiFab &rhs, Real reltol, Real abstol, int maxiter, const BndryData &bndry, int max_bndry_order) override
Solve (a - b div beta grad) phi = rhs via HYPRE's SStruct interface.
Definition AMReX_HypreABecLap2.cpp:38
HypreABecLap2 & operator=(HypreABecLap2 const &)=delete
HypreABecLap2(HypreABecLap2 &&)=delete
HypreABecLap2(const BoxArray &grids, const DistributionMapping &dmap, const Geometry &geom_, MPI_Comm comm_)
Bind the semi-structured solver to a single AMR level.
Definition AMReX_HypreABecLap2.cpp:13
~HypreABecLap2() override
Definition AMReX_HypreABecLap2.cpp:19
HypreABecLap2(HypreABecLap2 const &)=delete
void prepareSolver()
Build the SStruct graph/matrix given the current coefficients.
Definition AMReX_HypreABecLap2.cpp:149
Hypre(const BoxArray &grids, const DistributionMapping &dmap, const Geometry &geom, MPI_Comm comm_)
Construct a HYPRE wrapper bound to the supplied grids.
Definition AMReX_Hypre.cpp:27
A collection (stored as an array) of FArrayBox objects.
Definition AMReX_MultiFab.H:40
amrex_real Real
Floating Point Type for Fields.
Definition AMReX_REAL.H:80
int MPI_Comm
Definition AMReX_ccse-mpi.H:51
Definition AMReX_Amr.cpp:50
BndryDataT< MultiFab > BndryData
Definition AMReX_BndryData.H:336