-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Significant reduction in production of BHBH from CHE v03.05.02 vs v03.10.01
The following command, using v03.05.02 (*on my server - see notes below):
./compas -n 1 --random-seed 4907
--metallicity 0.0017724805683766772
--initial-mass-1 41.997969179405416 --initial-mass-2 41.997969179405416
--semi-major-axis 0.06926436655793679
--chemically-homogeneous-evolution-mode PESSIMISTIC
--enhance-CHE-lifetimes-luminosities TRUE
--scale-CHE-mass-loss-with-surface-helium-abundance TRUE
--enable-rotationally-enhanced-mass-loss TRUE
--scale-terminal-wind-velocity-with-metallicity-power 0.0
--mass-change-fraction 0.005 --radial-change-fraction 0.005
--tides-prescription NONE
--pulsational-pair-instability-prescription HENDRIKS
--PPI-CO-Core-Shift-Hendriks 1.111111
--PPI-upper-limit 80.0 --PISN-lower-limit 80.0
--common-envelope-formalism TWO_STAGE
--wolf-rayet-multiplier 1.291550
results in the following output:
COMPAS v03.05.02
Compact Object Mergers: Population Astrophysics and Statistics
by Team COMPAS (http://compas.science/index.html)
A binary star simulator
Go to https://compas.readthedocs.io/en/latest/index.html for the online documentation
Check https://compas.readthedocs.io/en/latest/pages/whats-new.html to see what's new in the latest release
Start generating binaries at Thu Dec 5 09:42:21 2024
0: DCO formed: (Chemically_Homogeneous -> Black_Hole) + (Chemically_Homogeneous -> Black_Hole)
Generated 1 of 1 binaries requested
Simulation completed
End generating binaries at Thu Dec 5 09:42:22 2024
Clock time = 0.101016 CPU seconds
Wall time = 0000:00:00 (hhhh:mm:ss)
whereas the same command using COMPAS v03.10.01 (again, on my server - see notes below) results in:
COMPAS v03.10.01
Compact Object Mergers: Population Astrophysics and Statistics
by Team COMPAS (http://compas.science/index.html)
A binary star simulator
Go to https://compas.readthedocs.io/en/latest/index.html for the online documentation
Check https://compas.readthedocs.io/en/latest/pages/whats-new.html to see what's new in the latest release
Start generating binaries at Thu Dec 5 09:50:36 2024
0: Stars merged: (Main_Sequence_>_0.7 -> Main_Sequence_>_0.7) + (Main_Sequence_>_0.7 -> Main_Sequence_>_0.7)
Generated 1 of 1 binaries requested
Simulation completed
End generating binaries at Thu Dec 5 09:50:36 2024
Clock time = 0.004449 CPU seconds
Wall time = 0000:00:00 (hhhh:mm:ss)
In a run of 1 million binaries using the command shown above, on v03.05.02 we had ~650 CHE BHBHs, but on v03.10.01 we had none (see slack). So it would seem we are treating CHE binaries differently in later versions of COMPAS (post v03.05.02), and perhaps more differently than we should...
We should check that the CHE treatment in the latest version of COMPAS is correct.
*on my server (notes above).
If I run the same commands on my desktop, rather than my server, I get different results.
For v03.05.02 I get
COMPAS v03.05.02
Compact Object Mergers: Population Astrophysics and Statistics
by Team COMPAS (http://compas.science/index.html)
A binary star simulator
Go to https://compas.readthedocs.io/en/latest/index.html for the online documentation
Check https://compas.readthedocs.io/en/latest/pages/whats-new.html to see what's new in the latest release
Start generating binaries at Thu Dec 5 10:20:01 2024
0: Unbound binary: (Chemically_Homogeneous -> Neutron_Star) + (Chemically_Homogeneous -> Neutron_Star)
Generated 1 of 1 binaries requested
Simulation completed
End generating binaries at Thu Dec 5 10:20:01 2024
Clock time = 0.030105 CPU seconds
Wall time = 0000:00:00 (hhhh:mm:ss)
for v03.10.01 I get the same results as the run on my server.
I've noticed this before, and put it down to differences in the compiler implementations, gsl library, os, etc. - and I still think that's where the difference is. For completeness, my server versions are:
OS: Debian GNU/Linux 11 (bullseye)
g++: Debian 10.2.1-6
gsl library (COMPAS uses the gsl random number generator): 2.6+dfsg-2
On my desktop:
OS: Ubuntu 22.04.2 LTS
g++: Ubuntu 11.4.0-1ubuntu1~22.04
gsl library: 2.7.1+dfsg-3
We probably should document this somewhere, and caution users against running on different systems for the same project and combining the results - doing that could result in inconsistencies in the results. It probably only matters for really big runs - I imagine smaller runs would all be done on the same machine. For really big runs that might be distributed across different machines, using the same docker image is probably the safest option - unless the user can be sure each system is identical wrt OS, g++, and gsl library.