diff --git a/Tests/MultiBlock/Advection/main.cpp b/Tests/MultiBlock/Advection/main.cpp index 74418ef9efc..96e1fb9a3a5 100644 --- a/Tests/MultiBlock/Advection/main.cpp +++ b/Tests/MultiBlock/Advection/main.cpp @@ -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 comms; + comms.reserve(boundaries.size()); for (auto& boundary : boundaries) { comms.push_back(boundary.FillBoundary_nowait()); } diff --git a/Tests/openPMDTests/fields/main.cpp b/Tests/openPMDTests/fields/main.cpp index 63dd1f843ae..d9a48b8def3 100644 --- a/Tests/openPMDTests/fields/main.cpp +++ b/Tests/openPMDTests/fields/main.cpp @@ -52,8 +52,6 @@ struct TestField { TestField(const InputParams& inputs) { - m_Time = 0.0; - const int nghost = 0; Vector domains; @@ -99,14 +97,14 @@ struct TestField Vector m_Level_steps; Vector m_Varnames; - Real m_Time; + Real m_Time = Real(0.0); Vector m_Ref_ratio; Vector m_Geom; Vector > 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);