allocating arrays, trouble
- From: "Förster vom Silberwald" <chain_lube@xxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 01:21:15 -0800 (PST)
==
program unhappy
integer :: buff1=100,bugg2=500
....
contains
subroutine i_want_my_bigloo_compiler_back(buff1,buff2,....)
real*8, dimension(buff1,buff1,buff2) :: ger
real*8, dimension(buff1,buff2) :: ger2
.....
end subroutine i_want_my_bigloo_compiler_back
==
will give me a segmentation fault after executing a.out.
However:
==
integer :: buff1=100,buff2=500
contains
subroutine i_want_my_bigloo_compiler_back(buff1,buff2,....)
real*8, dimension(100,100,5000) :: ger
real*8, dimension(buff1,buff2) :: ger2
.....
==
works.
ifort -convert big_endian unhappy.f90
Thanks
.
- Follow-Ups:
- Re: allocating arrays, trouble
- From: Charles Coldwell
- Re: allocating arrays, trouble
- From: michael
- Re: allocating arrays, trouble
- From: Förster vom Silberwald
- Re: allocating arrays, trouble
- Prev by Date: Re: C String Prefix Operator Idea (Was: gfortran diagnostics and so on)
- Next by Date: Re: allocating arrays, trouble
- Previous by thread: Reading binary file generated from 32-bit machine using 64-bit machine
- Next by thread: Re: allocating arrays, trouble
- Index(es):
Relevant Pages
|