Closed poojanagrawal closed 1 year ago
Patch coverage: 34.38
% and project coverage change: -0.07
:warning:
Comparison is base (
5c760e0
) 86.98% compared to head (1ca23dd
) 86.91%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR includes modifications/bug fixes in cosmic from the Gaia BH project.
To avoid accretion of matter from a massless companion, the calculation of mass changes in evolv2.f now excludes type 15 stars. The error results from non-zero 'dme' and the fact that the minimum of NaN (which is 'dmt') and dme gives me, leading to non-zero 'dmt' .
The properties of massless remnants are now exclusively assigned in hrdiag.f, so that they do not interfere with the evolution of other stars (e.g. due to non-neglible radii).
Added a new evolve_type (100) to identify systems that fail to evolve due to iter>loop error.
Following the use of qcrit, replaced kstar(k) to kstar(k)+1 by PA to avoid errors for type 0 stars.
Added an extra call to write bpp array for systems that become remnant on entering evolv2.f ( mostly systems whose evolution has been restarted), and avoid write bpp array altogether, leading to issues later in the code.
(Note that Gaia BH project did not have this.) Wind calculation should use original zsun values from their respective wind prescription and not depend on the zsun elsewhere in the code. The value is hardcoded to avoid misuse of zsun in mlwind.f.