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.
Amir Reza Aghamousa
Wmap5-likelihood: issue for calling it as subroutine.
1 post • Page 1 of 1