COSMIC-PopSynth / COSMIC

COSMIC (Compact Object Synthesis and Monte Carlo Investigation Code)
GNU General Public License v3.0
46 stars 58 forks source link

Speed up set_reff #533

Closed carlrodriguez closed 3 years ago

carlrodriguez commented 3 years ago

The current set_reff function is EXTREMELY slow, since it's technically calling COSMIC for all the binaries in the initial conditions and spooling up the entire python machinery.

It would be relatively easy to write a quick wrapper to star/hrdiag to just call those functions only, bypassing calling evolv2 and all the python overhead. Should speed up CMC and independent samplers significantly.

carlrodriguez commented 3 years ago

Ok the new commit I've made does this; doing it all in fortran speeds things up by 60x

scottcoughlin2014 commented 3 years ago

Finished in #536