WITHOUT the WantTensors: true line, this example runs without complaining (but then the tensor modes are not correctly sampled...).
WITH the WantTensors: true line, this example segfaults (see error below).
The theory_primordial_Pk.FeaturePrimordialPk I have taken from here, modified only by adding r everywhere after ns and by adding the lines
Issue
I would like to use an external primordial power spectrum with tensor modes.
In
cobaya/theories/camb/camb.py
line 336 it says:However, when I supply
WantTensors: true
toextra_args
I end up getting a segfault.Example
Here is a hopefully reproducible example yaml file:
WITHOUT the
WantTensors: true
line, this example runs without complaining (but then the tensor modes are not correctly sampled...). WITH theWantTensors: true
line, this example segfaults (see error below).The
theory_primordial_Pk.FeaturePrimordialPk
I have taken from here, modified only by addingr
everywhere afterns
and by adding the linesand
(Not meant to be physically sensible, just meant to be able to reproduce the error...)
Error message
This is the error message that I'm getting:
Hotfix
I can add the following lines to
cobaya/theories/camb/camb.py
(line 340ish) which makes things work:But this is obviously not the proper way of fixing this.