From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,714079992eda26fa,start X-Google-Attributes: gid1164f8,public From: dEdmundson@Bigfoot.com Subject: [Q] DEC Alpha / F90 stack problem ... Date: 1998/06/04 Message-ID: <6l5ga4$ng$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 359397787 X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; Linux 2.0.32 i686) Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Jun 04 06:53:56 1998 GMT Newsgroups: comp.sys.dec We have a number of "OSF1 V4.0 878 alpha" workstations. The following simple Fortran90 code works on various other platforms but gives a segmentation fault on our DEC boxes. It may be that the large temporary arrays created by the subroutine are being allocated on the stack rather than the heap. If so, can this behaviour be changed or otherwise remedied? ----test.f90------ program test use foomod real, allocatable :: d(:,:) allocate( d(600,500) ) d=3.14 call foo( d ) deallocate( d ) end program test ----foomod.f90---- module foomod contains subroutine foo( d ) real :: d(:,:) real :: tmp(size(d,1),size(d,2)) tmp = cshift( cshift(d,1,dim=2) ,1,dim=1) ! segmentation fault end subroutine foo end module foomod ----------------- compiled with 'f90 foomod.f90 test.f90' Thanks for any help you can offer. Darran. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading