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;
A BndryData stores and manipulates boundary data information on each side of each box in a BoxArray.
Definition AMReX_BndryData.H:46
A collection of Boxes stored in an Array.
Definition AMReX_BoxArray.H:568
Calculates the distribution of FABs to MPI processes.
Definition AMReX_DistributionMapping.H:43
Rectangular problem domain geometry.
Definition AMReX_Geometry.H:74
Semi-structured ABecLaplacian operator built on HYPRE's SStruct API.
Definition AMReX_HypreABecLap2.H:24
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:290
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() 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:148
Lightweight base class shared by HYPRE-backed linear solvers, HypreABecLap, HypreABecLap2,...
Definition AMReX_Hypre.H:33
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:79
int MPI_Comm
Definition AMReX_ccse-mpi.H:51
Definition AMReX_Amr.cpp:49