Skip to content

Commit

Permalink
Fix Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Jan 4, 2024
1 parent a33253c commit 2a1d2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Tests/MultiBlock/Advection/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ struct FillBoundaryFn {
core_x.mass.FillBoundary(core_x.Geom(coarsest_level).periodicity());
core_y.mass.FillBoundary(core_y.Geom(coarsest_level).periodicity());
std::vector<CommHandler> comms;
comms.reserve(boundaries.size());
for (auto& boundary : boundaries) {
comms.push_back(boundary.FillBoundary_nowait());
}
Expand Down
6 changes: 2 additions & 4 deletions Tests/openPMDTests/fields/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ struct TestField
{
TestField(const InputParams& inputs)
{
m_Time = 0.0;

const int nghost = 0;

Vector<Box> domains;
Expand Down Expand Up @@ -99,14 +97,14 @@ struct TestField
Vector<int> m_Level_steps;

Vector<std::string> m_Varnames;
Real m_Time;
Real m_Time = Real(0.0);
Vector<IntVect> m_Ref_ratio;
Vector<Geometry> m_Geom;
Vector<std::unique_ptr<MultiFab> > m_mf;
};


void saveFile(char* fname, const InputParams& inputs, const TestField& testField)
void saveFile(char* const fname, const InputParams& inputs, const TestField& testField)
{
#ifdef AMREX_USE_OPENPMD_API
openpmd_api::InitHandler(fname);
Expand Down

0 comments on commit 2a1d2ea

Please sign in to comment.