MCPcopy Create free account
hub / github.com/BLAST-WarpX/warpx / BackwardCompatibility

Method BackwardCompatibility

Source/Particles/PhysicalParticleContainer.cpp:403–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void
404PhysicalParticleContainer::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
435void PhysicalParticleContainer::InitData ()
436{

Callers

nothing calls this directly

Calls 1

queryMethod · 0.80

Tested by

no test coverage detected