diff options
author | 2022-09-16 00:25:20 +0200 | |
---|---|---|
committer | 2022-09-15 15:25:20 -0700 | |
commit | 47eef0b6e103ec54947daf82c690138f4e2a5cb4 (patch) | |
tree | 86ecfb4a6a35366a6e81f44af42fb33fc67549e6 /Source/Initialization/PlasmaInjector.cpp | |
parent | ac2521aa4c23e999715931331a817c41e416ddd2 (diff) | |
download | WarpX-47eef0b6e103ec54947daf82c690138f4e2a5cb4.tar.gz WarpX-47eef0b6e103ec54947daf82c690138f4e2a5cb4.tar.zst WarpX-47eef0b6e103ec54947daf82c690138f4e2a5cb4.zip |
add species name to a couple of error messages (#3381)
Diffstat (limited to 'Source/Initialization/PlasmaInjector.cpp')
-rw-r--r-- | Source/Initialization/PlasmaInjector.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp index e56d5a5da..cad2bbbe2 100644 --- a/Source/Initialization/PlasmaInjector.cpp +++ b/Source/Initialization/PlasmaInjector.cpp @@ -156,7 +156,8 @@ PlasmaInjector::PlasmaInjector (int ispecies, const std::string& name) charge_is_specified || species_is_specified || (injection_style == "external_file"), - "Need to specify at least one of species_type or charge" + "Need to specify at least one of species_type or charge for species '" + + species_name + "'." ); if ( mass_is_specified && species_is_specified ){ @@ -170,7 +171,8 @@ PlasmaInjector::PlasmaInjector (int ispecies, const std::string& name) mass_is_specified || species_is_specified || (injection_style == "external_file"), - "Need to specify at least one of species_type or mass" + "Need to specify at least one of species_type or mass for species '" + + species_name + "'." ); num_particles_per_cell_each_dim.assign(3, 0); |