| 401 | } |
| 402 | |
| 403 | void |
| 404 | PhysicalParticleContainer::BackwardCompatibility () |
| 405 | { |
| 406 | const ParmParse pp_species_name(species_name); |
| 407 | std::vector<std::string> backward_strings; |
| 408 | if (pp_species_name.queryarr("plot_vars", backward_strings)){ |
| 409 | WARPX_ABORT_WITH_MESSAGE("<species>.plot_vars is not supported anymore. " |
| 410 | "Please use the new syntax for diagnostics, see documentation."); |
| 411 | } |
| 412 | |
| 413 | int backward_int; |
| 414 | if (pp_species_name.query("plot_species", backward_int)){ |
| 415 | WARPX_ABORT_WITH_MESSAGE("<species>.plot_species is not supported anymore. " |
| 416 | "Please use the new syntax for diagnostics, see documentation."); |
| 417 | } |
| 418 | |
| 419 | std::string backward_profile_type; |
| 420 | if (pp_species_name.query("profile", backward_profile_type) && backward_profile_type == "predefined"){ |
| 421 | WARPX_ABORT_WITH_MESSAGE( |
| 422 | "<species>.profile = predefined is no longer supported. " |
| 423 | "Please use <species>.profile = parse_density_function instead."); |
| 424 | } |
| 425 | |
| 426 | std::string backward_mom_dist; |
| 427 | if (pp_species_name.query("momentum_distribution_type", backward_mom_dist) && |
| 428 | backward_mom_dist == "radial_expansion") { |
| 429 | WARPX_ABORT_WITH_MESSAGE( |
| 430 | "<species>.momentum_distribution_type = radial_expansion is not supported anymore. " |
| 431 | "Please use momentum_distribution_type = parse_momentum_function instead."); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | void PhysicalParticleContainer::InitData () |
| 436 | { |