diff options
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 55c41427d..5fd6f8d4f 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -47,6 +47,8 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp : WarpXParticleContainer(amr_core, ispecies), species_name(name) { + BackwardCompatibility(); + plasma_injector.reset(new PlasmaInjector(species_id, species_name)); physical_species = plasma_injector->getPhysicalSpecies(); charge = plasma_injector->getCharge(); @@ -139,6 +141,23 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core) plasma_injector.reset(new PlasmaInjector()); } +void +PhysicalParticleContainer::BackwardCompatibility () +{ + ParmParse pps(species_name); + std::vector<std::string> backward_strings; + if (pps.queryarr("plot_vars", backward_strings)){ + amrex::Abort("<species>.plot_vars is not supported anymore. " + "Please use the new syntax for diagnostics, see documentation."); + } + + int backward_int; + if (pps.query("plot_species", backward_int)){ + amrex::Abort("<species>.plot_species is not supported anymore. " + "Please use the new syntax for diagnostics, see documentation."); + } +} + void PhysicalParticleContainer::InitData () { // Init ionization module here instead of in the PhysicalParticleContainer |