Re: allocating arrays, trouble
- From: "Förster vom Silberwald" <chain_lube@xxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 01:23:57 -0800 (PST)
On Nov 26, 9:21 am, "Förster vom Silberwald" <chain_l...@xxxxxxxxxxx>
wrote:
==
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
sorry it should read:
==
program unhappy
integer :: buff1=100,buff2=500
...
contains
subroutine i_want_my_bigloo_compiler_back(buff1,buff2,....)
integer, intent(in) :: 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,....)
integer, intent(in) :: buff1,buff2
real*8, dimension(100,100,5000) :: ger
real*8, dimension(buff1,buff2) :: ger2
....
==
.
- Follow-Ups:
- Re: allocating arrays, trouble
- From: Wade Ward
- Re: allocating arrays, trouble
- References:
- allocating arrays, trouble
- From: Förster vom Silberwald
- allocating arrays, trouble
- Prev by Date: allocating arrays, trouble
- Next by Date: Re: allocating arrays, trouble
- Previous by thread: allocating arrays, trouble
- Next by thread: Re: allocating arrays, trouble
- Index(es):
Relevant Pages
|
|