Hi there, I tried to allocate the size of an array using 'allocatable' and 'allocate', for example as follows:
Program allo implicit none
integer, allocatable :: L(:,:) integer :: m,n
allocate (L(2,2))
L(1,1) = 0; L(1,2) = 1; L(2,1) = 2; L(2,2) = 4
do m = 1,2 do n = 1,2 print*,L(m,n) enddo enddo
end program
On my laptop, it works fine. On the PC in my office, it doesn't, and it always give me an error message saying:
Salford run-time library. Insufficent memory available for CHECK mode Fatal run-time error
I just wonder why it is not working on my PC, as it is very basic and important that we are able to allocate the size of any array. Will be grateful if anyone can explain to me what is wrong.
Thank you very much, Neoandyson