Re: segmentation fault
- From: "robin" <robin_v@xxxxxxxxxxx>
- Date: Tue, 27 Dec 2005 22:51:33 GMT
"student" <adarsh@xxxxxxxxxxxxx> wrote in message
news:1135406189.209378.79820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I have two codes in f90 which do exactly the same things. The only
> differences between the two codes is that in one case I declared the
> exact sizes of the arrays and in the other case, I declared each array
> to be an allocatable array and then later allocated their sizes. The
> answers that I get from the two codes are exactly the same too.
> However, for some reason the latter code gives a segmentation fault
> error while quitting. Can anyone point out what's happening here.
A segmentation fault is typically caused by a subscript bounds error.
You need to turn on subscript checking.
.
- References:
- segmentation fault
- From: student
- segmentation fault
- Prev by Date: Re: How to halt a running program without losing data?
- Next by Date: Wave that shook the world
- Previous by thread: Re: segmentation fault
- Next by thread: Re: How to halt a running program without losing data?
- Index(es):
Relevant Pages
|