diff options
Diffstat (limited to 'Source/ParticleContainer.H')
-rw-r--r-- | Source/ParticleContainer.H | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/ParticleContainer.H b/Source/ParticleContainer.H index 8a4033795..1b955d55f 100644 --- a/Source/ParticleContainer.H +++ b/Source/ParticleContainer.H @@ -152,6 +152,14 @@ public: int nSpecies() const {return nspecies;} + int nSpeciesDepositOnMainGrid () const { + int r = 0; + for (int i : deposit_on_main_grid) { + if (i) ++r; + } + return r; + } + int L_lower_order_in_v() {return l_lower_order_in_v;} bool Use_fdtd_nci_corr() {return use_fdtd_nci_corr;} @@ -181,6 +189,8 @@ protected: std::vector<std::string> species_names; + std::vector<int> deposit_on_main_grid; + std::vector<PCTypes> species_types; private: |