CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

CosmoMC : error when adding a new parameter.
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Starla Talbot



Joined: 01 Jun 2010
Posts: 4
Affiliation: Simon Fraser University

PostPosted: June 01 2010  Reply with quote

Hello,

I am trying to add a new parameter wa. I followed the information of the ReadMe file of cosmomc and the relevant posts here, but when I run cosmomc I get the message:

> ./cosmomc params.ini
Random seeds: 15052, 14868 rand_inst: 0
Computing tensors: F
Doing CMB lensing: F
lmax = 2100
Number of Cls = 3
parameter ranges not found, param 14 - omegal

======
Here are the modification to cosmomc
======

In settings.f90

integer, parameter :: num_hard = 8

In cmbtypes.f90

Type CMBParams

real wa

In params_CMB.f90

subroutine SetForH
CMB%w_a = Params(8)

subroutine CMBParamsToParams
Params(8) = CMB%w_a

In CMB_Cls_simple.f90

subroutine CMBToCAMB
P%w_a = CMB%w_a

—–
In CAMB

In modules.f90

type CAMBparams

real(dl) :: wa

In inidrivers.f90

wa = Ini_Read_Double('wa')

—–

In params.ini

#parameter start center, min, max, start width, st. dev. estimate
param[omegabh2] = 0.0223 0.0223 0.0223 0 0
param[omegadmh2] = 0.150 0.150 0.150 0 0
param[theta] = 1.04 1.04 1.04 0 0

param[tau] = 0 0 0 0 0

param[omegak] = 0 0 0 0 0
param[fnu] = 0 0 0 0 0
param[w] = −1 −1.5 −0.5 0.01 0.01
param[wa] = 0 −0.5 0.5 0.01 0.01


param[ns] = 0.95 0.95 0.95 0 0

param[nt] = 0 0 0 0 0
param[nrun] = 0 0 0 0 0

#log[1010 As]
param[logA] = 3 3 3 0 0
param[r] = 0 0 0 0 0


—–

I am only running cosmomc with supernovae data. Any help is appreciated.

Thanks,

Starla
Back to top
View user's profile  
Lukas Hollenstein



Joined: 31 Mar 2009
Posts: 13
Affiliation: IPhT CEA-Saclay

PostPosted: June 03 2010  Reply with quote

Hi Starla,

I think you have to add a line in "params_CMB.paramnames" after the line describing "w". Something like
Code:
w_a        w_a

Hope that helps?

Best,
Lukas
Back to top
View user's profile   Visit poster's website
Starla Talbot



Joined: 01 Jun 2010
Posts: 4
Affiliation: Simon Fraser University

PostPosted: June 03 2010  Reply with quote

Hello Lukas,

That indeed was the silly error. Thanks.

Cheers,

Starla.
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.