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 7351ada commit 3a955b8
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Exec/radiation_tests/Rad2Tshock/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ void problem_initialize ()

eos_state.rho = problem::rho0;
eos_state.T = problem::T0;
for (int n = 0; n < NumSpec; n++) {
eos_state.xn[n] = 0.0_rt;
for (auto & X : eos_state.xn) {
X = 0.0_rt;
}
eos_state.xn[0] = 1.0_rt;

Expand Down
3 changes: 3 additions & 0 deletions Exec/radiation_tests/Rad2Tshock/problem_initialize_rad_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ void problem_initialize_rad_data (int i, int j, int k,
const GeometryData& geomdata)
{

amrex::ignore_unused(nugroup);
amrex::ignore_unused(dnugroup);

const Real* dx = geomdata.CellSize();
const Real* problo = geomdata.ProbLo();

Expand Down
4 changes: 2 additions & 2 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ Castro::Castro (Amr& papa,
}
radiation->regrid(level, grids, dmap);

rad_solver.reset(new RadSolve(parent, level, grids, dmap));
rad_solver = std::make_unique<RadSolve>(parent, level, grids, dmap);
}
#endif

Expand All @@ -751,7 +751,7 @@ Castro::Castro (Amr& papa,
Castro::~Castro () // NOLINT(modernize-use-equals-default)
{
#ifdef RADIATION
if (radiation != 0) {
if (radiation != nullptr) {
//radiation->cleanup(level);
radiation->close(level);
}
Expand Down
9 changes: 8 additions & 1 deletion Source/radiation/HypreMultiABec.H
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ class CrseBndryAuxVar : public BndryAuxVarBase {
/// @param ori
/// @param i
///
int size (const amrex::Orientation ori, int i) const { return aux[ori][i].size(); }
int size (const amrex::Orientation ori, int i) const {
return static_cast<int>(aux[ori][i].size());
}

AuxVarBox& operator() (const amrex::Orientation ori, int i, int j) {
return *aux[ori][i][j];
Expand Down Expand Up @@ -403,6 +405,11 @@ class HypreMultiABec {

virtual ~HypreMultiABec();

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

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

///
/// @param level
Expand Down
3 changes: 0 additions & 3 deletions Source/radiation/MGRadBndry.H
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public:
const int _ngroups,
const amrex::Geometry& _geom);

~MGRadBndry();


///
/// @param phys_bc
/// @param geom
Expand Down
4 changes: 0 additions & 4 deletions Source/radiation/MGRadBndry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ MGRadBndry::MGRadBndry(const BoxArray& _grids,
}
}

MGRadBndry::~MGRadBndry()
{
}

void MGRadBndry::init(const int _ngroups)
{
// obsolete implementation of the Marshak boundary condition requires
Expand Down
2 changes: 0 additions & 2 deletions Source/radiation/RadBndry.H
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public:
RadBndry(const amrex::BoxArray& _grids, const amrex::DistributionMapping& _dmap,
const amrex::Geometry& _geom, amrex::Real bv);

~RadBndry();


///
/// @param phys_bc
Expand Down
4 changes: 0 additions & 4 deletions Source/radiation/RadBndry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ RadBndry::RadBndry(const BoxArray& _grids, const DistributionMapping& _dmap,
setBndryValues(bv);
}

RadBndry::~RadBndry()
{
}

void RadBndry::init()
{
// obsolete implementation of the Marshak boundary condition requires
Expand Down
4 changes: 2 additions & 2 deletions Source/radiation/Radiation.H
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ public:
return delta_T_rat_level[lev];
}

amrex::Real deltaEnergyTol() {
[[nodiscard]] amrex::Real deltaEnergyTol() const {
return delta_e_rat_dt_tol;
}

amrex::Real deltaTTol() {
[[nodiscard]] amrex::Real deltaTTol() const {
return delta_T_rat_dt_tol;
}

Expand Down
23 changes: 15 additions & 8 deletions Source/radiation/_interpbndry/RadBndryData.H
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@ public:
//@ManMemo: administrative functions
//@ManDoc: default constructor
RadBndryData() : amrex::BndryRegister() {};

~RadBndryData() = default;

//
// Disabled!
//
//@ManDoc: copy constructor
RadBndryData(const RadBndryData& src) = delete;
//@ManDoc: copy operator
RadBndryData& operator = (const RadBndryData& src) = delete;
//@ManDoc: move constructor
RadBndryData(const RadBndryData&& src) = delete;
//@ManDoc: move operator
RadBndryData& operator = (const RadBndryData&& src) = delete;

//@ManDoc: constructor specifying number of components and box of physical domain (cell-centered)
RadBndryData(const amrex::BoxArray& _grids, const amrex::DistributionMapping& _dmap,
int _ncomp, const ProxyGeometry& geom);
Expand Down Expand Up @@ -167,14 +182,6 @@ public:
}


private:
//
// Disabled!
//
//@ManDoc: copy constructor
RadBndryData(const RadBndryData& src);
//@ManDoc: copy operator
RadBndryData& operator = (const RadBndryData& src);
};

#endif

0 comments on commit 3a955b8

Please sign in to comment.