Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Aug 29, 2024
1 parent 3a955b8 commit ebe2d97
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Source/radiation/HypreExtMultiABec.H
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class HypreExtMultiABec : public HypreMultiABec {
d2coefs(fine_level+1)
{}

~HypreExtMultiABec();
~HypreExtMultiABec() override;

HypreExtMultiABec(const HypreExtMultiABec& src) = delete;
HypreExtMultiABec(const HypreExtMultiABec&& src) = delete;
Expand Down Expand Up @@ -113,12 +113,12 @@ class HypreExtMultiABec : public HypreMultiABec {
amrex::MultiFab& dest,
int icomp,
amrex::MultiFab& rhs, ///< will not be altered
BC_Mode inhom);
BC_Mode inhom) override;
void loadLevelVectorB(int level,
amrex::MultiFab& rhs, ///< will not be altered
BC_Mode inhom);
BC_Mode inhom) override;

void loadMatrix(); ///< once all level coeffs and scalars have been set
void loadMatrix() override; ///< once all level coeffs and scalars have been set


///
Expand Down
6 changes: 6 additions & 0 deletions Source/radiation/HypreMultiABec.H
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ class AuxVarBox {
delete[] dptr;
}

AuxVarBox(const AuxVarBox& src) = delete;
AuxVarBox(const AuxVarBox&& src) = delete;

AuxVarBox& operator= (const AuxVarBox& src) = delete;
AuxVarBox& operator= (const AuxVarBox&& src) = delete;

AuxVar& operator()(const amrex::IntVect& p) {
BL_ASSERT(!(dptr == 0));
BL_ASSERT(domain.contains(p));
Expand Down
14 changes: 7 additions & 7 deletions Source/radiation/MGRadBndry.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ public:
/// @param geom
/// @param ratio
///
virtual void setBndryConds(const amrex::BCRec& phys_bc,
const amrex::Geometry& geom, amrex::IntVect& ratio);
void setBndryConds(const amrex::BCRec& phys_bc,
const amrex::Geometry& geom, amrex::IntVect& ratio) override;


///
/// @param bc
/// @param phys_bc_mode
///
virtual void setBndryFluxConds(const amrex::BCRec& bc,
const BC_Mode phys_bc_mode = Inhomogeneous_BC);
void setBndryFluxConds(const amrex::BCRec& bc,
const BC_Mode phys_bc_mode = Inhomogeneous_BC) override;


///
/// @param _face
///
virtual int mixedBndry(const amrex::Orientation& _face) const {
return (bcflag[_face] > 1) ? 1 : 0;
int mixedBndry(const amrex::Orientation& _face) const override {
return (bcflag[_face] > 1) ? 1 : 0;
}


Expand Down Expand Up @@ -96,7 +96,7 @@ public:
NGBndry* operator()(const amrex::BoxArray& _grids,
const amrex::DistributionMapping& _dmap,
int _ngroups,
const amrex::Geometry& _geom) const {
const amrex::Geometry& _geom) const override {

///
/// @param _grids
Expand Down
12 changes: 6 additions & 6 deletions Source/radiation/RadBndry.H
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ public:
/// @param geom
/// @param ratio
///
virtual void setBndryConds(const amrex::BCRec& phys_bc,
const amrex::Geometry& geom, amrex::IntVect& ratio);
void setBndryConds(const amrex::BCRec& phys_bc,
const amrex::Geometry& geom, amrex::IntVect& ratio) override;


///
/// @param bc
/// @param phys_bc_mode
///
virtual void setBndryFluxConds(const amrex::BCRec& bc,
const BC_Mode phys_bc_mode = Inhomogeneous_BC);
void setBndryFluxConds(const amrex::BCRec& bc,
const BC_Mode phys_bc_mode = Inhomogeneous_BC) override;


///
/// @param _face
///
virtual int mixedBndry(const amrex::Orientation& _face) const {
int mixedBndry(const amrex::Orientation& _face) const override {
return (bcflag[_face] > 1) ? 1 : 0;
}

Expand Down Expand Up @@ -109,7 +109,7 @@ public:
NGBndry* operator()(const amrex::BoxArray& _grids,
const amrex::DistributionMapping& _dmap,
int /* _ncomp */,
const amrex::Geometry& _geom) const {
const amrex::Geometry& _geom) const override {
return new RadBndry(_grids, _dmap, _geom);
}
};
Expand Down

0 comments on commit ebe2d97

Please sign in to comment.