Re: READ error with Gfortran
- From: "Ash" <ashutosh.mishra@xxxxxxxxx>
- Date: 20 Feb 2007 09:15:56 -0800
On Feb 19, 3:25 pm, Thomas Koenig <Thomas.Koe...@xxxxxxxxx> wrote:
Ash <ashutosh.mis...@xxxxxxxxx> wrote:
++++++++++++++++++++++++++++++++++++++++++++++++++=
In file breader.f90:12
read(12,*) (tissid(i)),(sge(i,1)),(sge(i,2))
1
Error: Expected variable in READ statement at (1)
This is indeed a syntax error. (tsssid(i)) is an expression,
not a variable (just as tssid(i)+0 would be). You are trying to
read something into that expression, and gfortran is telling you
it expects a variable instead.
You probably want to use
read(12,*) tissid(i),sge(i,1),sge(i,2)
I have no idea why ifort accepts this, it's probably a bug.
Thanks ! That DID do the trick !
Strange about the Ifort ..hmm..
Cheers,
-A
.
- References:
- READ error with Gfortran
- From: Ash
- Re: READ error with Gfortran
- From: Thomas Koenig
- READ error with Gfortran
- Prev by Date: Re: Optional arguments (again) on Sun
- Next by Date: Re: Intel Support
- Previous by thread: Re: READ error with Gfortran
- Next by thread: Old Fortran version
- Index(es):
Relevant Pages
|