Re: undefined variable problem
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 30 Mar 2007 04:06:21 -0700
On 30 mrt, 11:59, Bart Vandewoestyne
<MyFirstName.MyLastN...@xxxxxxxxxx> wrote:
I am a bit confused... I have a module with the following
variable:
integer(kind=i4b), dimension(:,:,:), allocatable, private :: a
Within that module, I have a subroutine that tries to access this
variable using a simple print statement:
print *, a
I am quite sure the variable a is allocated, because if i check
it right before the print statement with the ALLOCATED intrinsic,
it appears to be allocated.
However, when i compile and run my code with the NAGWare f95
compiler Release 5.1(282) on Linux, i get the following error:
Reference to undefined variable A
Program terminated by fatal error
With gfortran and g95 i don't get this error.
I have no clue what is going wrong here... what
are the things I should look for? I refuse to believe that this
is a compiler bug... i guess it is more likely that the problem
is at my side, but i cannot think of what could be wrong...
Thanks,
Bart
--
"Share what you know. Learn what you don't."
Any chance of reproducing it in a small program? That might clear
things
up a bit.
Regards,
Arjen
.
- Follow-Ups:
- Re: undefined variable problem
- From: Bart Vandewoestyne
- Re: undefined variable problem
- References:
- undefined variable problem
- From: Bart Vandewoestyne
- undefined variable problem
- Prev by Date: Re: variable names for different fortrans
- Next by Date: Re: undefined variable problem
- Previous by thread: undefined variable problem
- Next by thread: Re: undefined variable problem
- Index(es):
Relevant Pages
|
|