pyro-kinetics / pyrokinetics

Python library to run and analyse gyrokinetics simulations
https://pyrokinetics.readthedocs.io/en/latest/#
GNU Lesser General Public License v3.0
24 stars 6 forks source link

Remove extra species namelist from inputs when removed #366

Closed bpatel2107 closed 3 months ago

bpatel2107 commented 3 months ago

When removing a species for any reason, input files would not be modified to reflect this and the removed species would end up persisting when writing out files. Here we check to make sure the total number of species matches the number in LocalSpecies and remove additional ones if need be. Added some tests for each code too.