asteca / ASteCA

Code for the ASteCA package.
http://asteca.github.io/
MIT License
18 stars 6 forks source link

Discard low mass stars from sampled IMF to save memory #545

Closed Gabriel-p closed 3 months ago

Gabriel-p commented 2 years ago

Currently all the stars sampled from the IMF are stored in memory to be used by the synthetic cluster generation. This is not required, as the stars with the lowest masses (the largest in number) will very likely not be used. To save memory we could:

  1. Read all the loaded isochrones
  2. Move them by the minimum distance modulus and extinction
  3. Store the minimum mass (for all the isochrones) above the observed magnitude cut
  4. Discard masses below this limit for the sampled IMF
Gabriel-p commented 3 months ago

Tried it, it made little difference