Page 1 of 1

pycamb for modified camb compiling problem

Posted: February 27 2019
by Angela Chen
Hi all,

I got an error message like this when compiling pycamb for my local modified camb. If anyone can tell me what's happening it would be greatly appreciated!

camb_python.f90:435:24:

EV%OutputSources => sources
1
Error: 'outputsources' at (1) is not a member of the 'evolutionvars' structure; did you mean 'outputtransfer'?
camb_python.f90:436:30:

if (ncustomsources>0) EV%CustomSources => custom_sources
1
Error: Cannot assign to a named constant at (1)
camb_python.f90:438:51:

nullify(EV%OutputTransfer, EV%OutputSources, EV%CustomSources)
1
Error: 'outputsources' at (1) is not a member of the 'evolutionvars' structure; did you mean 'outputtransfer'?
camb_python.f90:505:26:

if (ncustomsources>0) custom_sources_func => old_sources
1
Error: Cannot assign to a named constant at (1)
compilation terminated due to -fmax-errors=4.
make: *** [Releaselib/camb_python.o] Error 1

Re: pycamb for modified camb compiling problem

Posted: February 27 2019
by Antony Lewis
I expect you have some out of date files. Is this is the latest CAMB version?

Re: pycamb for modified camb compiling problem

Posted: February 27 2019
by Angela Chen
Antony Lewis wrote:
February 27 2019
I expect you have some out of date files. Is this is the latest CAMB version?
right, it was 0.1.7, don't know how I was stuck with this old version... I'll try it on 1.0.3, thanks Antony!