chain identifier

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
shadab alam
Posts: 14
Joined: November 06 2013
Affiliation: CMU

chain identifier

Post by shadab alam » November 06 2013

Hi,

I want to run different chains but each chain writes out some file and read it later.
As I understand it, different chains in cosmomc runs independently with different initial condition.
Therefore they will be exploring different parameters at the same time.
If I am writing some file (for example theoretical correlation function) with some name "xyz.xi" then different chains will overwrite the same file which will mess up the whole calculation.
Therefore, I should name each file with some chain identifier(eg: chain number).
In order to do that I need to know some variable which can identify different chains.

I am not able to find any such variable even after looking in Cosmocoffee .

Can someone help me with this problem?
Any suggestion or alternative?

Thanks,
Shadab

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

Re: chain identifier

Post by Antony Lewis » November 06 2013

you can use instance or MPIRank from settings.f90.

Post Reply