Skip to content

Commit

Permalink
Fix unused variable with OpenPMD=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Nov 15, 2023
1 parent ce82a69 commit 477348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Initialization/PlasmaInjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ void PlasmaInjector::setupExternalFile (const amrex::ParmParse& pp_species_name)
utils::parser::queryWithParser(pp_species_name, "q_tot", q_tot);
utils::parser::queryWithParser(pp_species_name, "z_shift",z_shift);

#ifdef WARPX_USE_OPENPMD
const bool charge_is_specified = pp_species_name.contains("charge");
const bool mass_is_specified = pp_species_name.contains("mass");
const bool species_is_specified = pp_species_name.contains("species_type");

#ifdef WARPX_USE_OPENPMD
if (amrex::ParallelDescriptor::IOProcessor()) {
m_openpmd_input_series = std::make_unique<openPMD::Series>(
str_injection_file, openPMD::Access::READ_ONLY);
Expand Down

0 comments on commit 477348d

Please sign in to comment.