1#ifndef AMREX_HypreABecLap_H_
2#define AMREX_HypreABecLap_H_
3#include <AMReX_Config.H>
12#include <HYPRE_struct_ls.h>
61 int maxiter,
const BndryData& bndry,
int max_bndry_order)
override;
65 HYPRE_StructGrid grid =
nullptr;
66 HYPRE_StructMatrix A =
nullptr;
67 HYPRE_StructVector b =
nullptr;
68 HYPRE_StructVector x =
nullptr;
69 HYPRE_StructSolver solver =
nullptr;
Boundary data container that owns masks, boundary values, and metadata.
Constants describing linear-operator boundary condition types.
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
Struct-interface HYPRE solver for (a - b div beta grad) phi = rhs.
Definition AMReX_HypreABecLap.H:29
HypreABecLap(HypreABecLap &&)=delete
HypreABecLap & operator=(HypreABecLap const &)=delete
void loadVectors(MultiFab &soln, const MultiFab &rhs)
Copy AMReX solution guess soln and RHS rhs into HYPRE vectors prior to a solve.
Definition AMReX_HypreABecLap.cpp:257
void prepareSolver()
Build the HYPRE structures and apply runtime parameters.
Definition AMReX_HypreABecLap.cpp:126
HypreABecLap(HypreABecLap const &)=delete
void solve(MultiFab &soln, const MultiFab &rhs, Real reltol, Real abstol, int maxiter, const BndryData &bndry, int max_bndry_order) override
Solve the struct-interface linear system with the configured coefficients.
Definition AMReX_HypreABecLap.cpp:33
~HypreABecLap() override
Definition AMReX_HypreABecLap.cpp:18
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