diff options
author | 2020-03-02 13:12:01 -0800 | |
---|---|---|
committer | 2020-03-02 13:12:01 -0800 | |
commit | a491def111e4c4a1fd7b394a2d4b511fb742c08b (patch) | |
tree | 8eb8ac5c92be15149bbefbd5b480370dcab57c67 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | c8b1d2175fce8eb8c98933fb5729840e7f8e8f45 (diff) | |
download | WarpX-a491def111e4c4a1fd7b394a2d4b511fb742c08b.tar.gz WarpX-a491def111e4c4a1fd7b394a2d4b511fb742c08b.tar.zst WarpX-a491def111e4c4a1fd7b394a2d4b511fb742c08b.zip |
Option to specify the type of physical species (#746)
* first implementation, doesnt link
* fix species type and use it in some examples
* eol
* typo in input file
* Apply suggestions from code review
Co-Authored-By: Luca Fedeli <luca.fedeli.88@gmail.com>
Co-Authored-By: Yinjian Zhao <yinjianzhao@lbl.gov>
* changes suggested by review
* put species functions into a namespace
Co-authored-by: Luca Fedeli <luca.fedeli.88@gmail.com>
Co-authored-by: Yinjian Zhao <yinjianzhao@lbl.gov>
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 5ed4f4ca3..159cb7b87 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -40,6 +40,7 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp species_name(name) { plasma_injector.reset(new PlasmaInjector(species_id, species_name)); + physical_species = plasma_injector->getPhysicalSpecies(); charge = plasma_injector->getCharge(); mass = plasma_injector->getMass(); |