From d616f995f287f89bbd5de1782ac7e12f091cab17 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Sun, 31 Dec 2023 10:38:57 -0800 Subject: [PATCH] Fix warnings --- Source/Particles/PhysicalParticleContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 389223756b5..ecf27cf7b99 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -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() * it.timeUnitSI(); + t_lab = amrex::ParticleReal(it.time() * it.timeUnitSI()); } bool injection_from_recording_plane = false; pp_species_name.query("injection_from_recording_plane", injection_from_recording_plane);