Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 31, 2023
1 parent c712173 commit d616f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,10 @@ PhysicalParticleContainer::AddPlasmaFromFile(PlasmaInjector & plasma_injector,
openPMD::Iteration it = series->iterations.begin()->second;
const ParmParse pp_species_name(species_name);
pp_species_name.query("impose_t_lab_from_file", impose_t_lab_from_file);
double t_lab = 0._prt;
auto t_lab = 0._prt;
if (impose_t_lab_from_file) {
// Impose t_lab as being the time stored in the openPMD file
t_lab = it.time<double>() * it.timeUnitSI();
t_lab = amrex::ParticleReal(it.time<double>() * it.timeUnitSI());
}
bool injection_from_recording_plane = false;
pp_species_name.query("injection_from_recording_plane", injection_from_recording_plane);
Expand Down

0 comments on commit d616f99

Please sign in to comment.