[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
I can test now. But do this:
INTEGER, ALLOCATABLE, DIMENSION(:) :: test
ALLOCATE (test(1:3)) ! OR ALLOCATE (test(3))
test(1)=1
test(2)=2
test(3)=3
or make a module where you put the dimension the array and after call by USE .
Before END code do you use DEALLOCATE. Try this.
2007/4/26, Jure Ravnik <jure.ravnik@xxxxxxxxx>:
Ronai, I've just done some testing, it seems
static arrays are ok, only dynamic ones do not work.
That is, if I do
INTEGER test(3)
test(1)=1
test(2)=2
test(3)=3
I can see the values OK, but if I do
INTEGER, ALLOCATABLE :: test(:)
ALLOCATE (test(3))
test(1)=1
test(2)=2
test(3)=3
then photran displays [-1].
Since ALLOCATABLE arrays were introduced in f90, this seems to agree
with your findings.
Any other ideas?
Thanks, Jure.
On Wed, 2007-04-25 at 09:18 -0300, Ronai Lisboa wrote:
> Your fortran code is f77 or f90 ? With me when I compile f77 with g90,
> ifort I can see
> this values [-1]. Anyway when I compile f77 with g77 thats ok.
>
> Ronai Lisboa
>
> 2007/4/25, Jure Ravnik <jure.ravnik@xxxxxxxxx>:
> > Dear All,
> >
> > I'm using Photran 3.0.1 on linux FC6, with intel compiler
8.0.
> > Compiler flags: -g -C -traceback -warn all -warn nounused -check all
> >
> > When I debug my code with gdb debugger within photran, I can see values
> > of simple variables, but I can not see values in arrays. Photran
> > displays values [-1] for all arrays.
> >
> > Does anyone know how to solve this problem. I would very much like to
> > see values in my dynamically allocated arrays.
> >
> >
> > Thank you in advance,
> >
> > Jure.
> >
> >
> >
> > ---------------
> > Jure Ravnik
> >
iepoi.uni-mb.si/ravnik/research.html
> >
> > _______________________________________________
> > photran mailing list
> > photran@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/photran
> >
>
>
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran
--
Ronai Lisboa