Wmap5-likelihood: issue for calling it as subroutine.

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Amir Reza Aghamousa
Posts: 1
Joined: July 13 2008
Affiliation: Centre for Modeling & Simulation, Pune University

Wmap5-likelihood: issue for calling it as subroutine.

Post by Amir Reza Aghamousa » July 13 2008

Hi,

I made small modification on test.F90 and converted it as subroutine. I call this subroutine under another fortran code inside a loop. Every thing at the first iteration is fine and subroutine works well. But at the second iteration I encounter with following error:
forrtl: severe (151): allocatable array is already allocated.
That means at likelihood subroutine there are several allocations which
are not deallocated by its programmers. So I think there are two solution one is searching throughout the likelihood code(that contains several files) and insert deallocate command for each item. That seems to be unprofessional and difficult. Second one is to use a command in Fortran 90 to deallocate all the items totally. But I don't know there is such command or not!
Please let me know if you have any suggestion.

Thanking you
Amir Reza Aghamousa

Post Reply