CosmoMC: key not found : cov_file

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Claudio Destri
Posts: 2
Joined: March 13 2008
Affiliation: Dip. di Fisica Milano-Bicocca

CosmoMC: key not found : cov_file

Post by Claudio Destri » March 13 2008

After the changes in inifile.f90 in the latest cosmomc/camb release one gets:
key not found : cov_file
when including SDSS.
Indeed thee is no such file in the data/ directory for SDSS. But the same applied
in the previous version and no error was raised.

Maybe somebody can help before I try and fix it by hand.

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: key not found : cov_file

Post by Antony Lewis » March 13 2008

I guess we need a

Code: Select all

 Ini_fail_on_not_found = .false.
in ReadmpkDataset of mpk.f90? (not quite sure why this changed)

Claudio Destri
Posts: 2
Joined: March 13 2008
Affiliation: Dip. di Fisica Milano-Bicocca

CosmoMC: key not found : cov_file

Post by Claudio Destri » March 13 2008

It's not so clear. The file mpk.f90 did change but not in a way which seems related to
file readings. I replaced in mpk.f90:127

Code: Select all

  cov_file  = Ini_Read_String('cov_file')
with a brute force

Code: Select all

 cov_file  = ''
and no error was raised. Apparently Ini_Read_String('cov_file') does not return
the empty string.

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: key not found : cov_file

Post by Antony Lewis » March 13 2008

It should do if Ini_fail_on_not_found = .false.

Paolo Serra
Posts: 4
Joined: February 26 2008
Affiliation: University of California, Irvine

Re: CosmoMC: key not found : cov_file

Post by Paolo Serra » March 27 2008

Claudio Destri wrote:It's not so clear. The file mpk.f90 did change but not in a way which seems related to
file readings. I replaced in mpk.f90:127

Code: Select all

  cov_file  = Ini_Read_String('cov_file')
with a brute force

Code: Select all

 cov_file  = ''
and no error was raised. Apparently Ini_Read_String('cov_file') does not return
the empty string.
Hi.
I did the same modification to mpk.f90.
It works fine if I run a single
chain using WMAP5+SDSS, but I get the usual problem
running multiple chain. I tried also with
Ini_fail_on_not_found = .false. in ReadmpkDataset
Any suggestion?
Thanks

Neven Vulic
Posts: 1
Joined: March 28 2008
Affiliation: University Of Toronto

CosmoMC: key not found : cov_file

Post by Neven Vulic » March 28 2008

I just added Ini_fail_on_not_found = .false. above line 127 in mpk.f90 and it worked fine, I was able to run 8 chains (WMAP5+SDSS) without a problem.

Loison Hoi
Posts: 23
Joined: February 21 2006
Affiliation: McGill University

CosmoMC: key not found : cov_file

Post by Loison Hoi » April 04 2008

Hi,

The same problem occurs when I use 2dF:

key not found : use_scaling

Add the statement just above line 127 of mpk.f90 will work:

Ini_fail_on_not_found = .false.

Another way to solve the problem is to remove line 242 of driver.F90:

Ini_fail_on_not_found = .true.

Although I do not really understand why.

Loison Hoi
3 Apr 2008

Post Reply