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
chain identifier
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: chain identifier
you can use instance or MPIRank from settings.f90.