|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Mon Dec 12, 2005 9:28 am Post subject: run-time error 94 |
|
|
The executable obtained from compiling a fortran90 code gives the following error: "Error 94, Unit has either been OPENed or preconnected: 00401000 MODIFY [+06d3]". Here is an excerpt of my source code . It seems the problem is with the input/read for the prip.dat file. Please, advise me on fixing this error. Thanks.
write(*,*)'prints 1st line'
OPEN(10,FILE='OUTPUTA.TXT',STATUS='OLD')
c write(*,*)'prints OPEN file'
98 WRITE(*,*) ' Enter magnet and wall data file name >'
READ(*,'(A)')MGNAME
c WRITE(*,*)MGNAME
INQUIRE(FILE=MGNAME,EXIST=FEXST)
IF (.NOT.FEXST) GOTO 98
OPEN(5,STATUS='OLD',FILE=MGNAME)
OPEN(12,FILE='prip.dat',STATUS='UNKNOWN')
c write(*,*)'prints OPEN file'
READ(10,9) Rmin,Zmin,YCLG,XCLG,a,b
write(*,*)'prints Rmin',Rmin,Zmin,YCLG,XCLG,a,b
9 FORMAT(/,18x,F3.1,1x,F3.1,10X,F4.1,1x,F3.1
> ,16X,F4.2,1x,F4.2)
c READ(10,9)KNX,KNY
! c 9 format(///////,20X,I6,I6,///)
KNY= (YCLG-Rmin)/a
KNX= (XCLG-Zmin)/b
write(*,*)'KNX=',KNX,'KNY=',KNY
KN=(KNX+1)*(KNY+1)
KNE =KNX*KNY
* write(*,*)'INPUT THE NO.OF MAGNETS and Walls'
* read(*,*)NCB,NFB
NCB = 2
NFB = 3
write(*,*)NCB,NFB
WRITE(12,64) KN,KNE,KNX,KNY,NCB,NFB |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Tue Dec 13, 2005 1:19 am Post subject: run-time error 94 |
|
|
Taiwo
There is a possible conflict between OPEN(5, ... and READ(*,... because 5 may be used as the standard input stream. All unit numbers should start above 6.
Paul |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Thu Dec 15, 2005 8:44 am Post subject: run-time error 94 |
|
|
Hi, Paul
Can the FTN95 be used for ABAQUS 6.4 (the requirement is Compaq Visual Fortran 6.0 (Update A) on Windwo XP? If FTN 95 is not suitable, could you suggest any suitable products. Thanks.
James |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Fri Dec 16, 2005 1:00 am Post subject: run-time error 94 |
|
|
James
FTN95 will be OK if ABAQUS 6.4 works with standard Fortran otherwise if you are looking to buy a compiler try contacting Polyhedron at www.polyhedron.com. I assume that www.abaqus.com does not give a list of suitable compilers (or is the information written in Japanese?).
Paul |
|
Back to top |
|
|
JohnH
Joined: 26 Sep 2005 Posts: 13
|
Posted: Fri Dec 16, 2005 7:30 am Post subject: run-time error 94 |
|
|
James
I thought Abaqus only worked with Digital Visual Fortran.
John |
|
Back to top |
|
|
LA
Joined: 27 Nov 2005 Posts: 7
|
Posted: Sat Dec 17, 2005 6:14 am Post subject: run-time error 94 |
|
|
Perhaps, for the next releaes of ftn95, the help file could be amended accordingly, as in the entry for "OPEN" it currently gives the example:
Code: | OPEN(UNIT=5,FILE=�FRED�) |
which is unfortunate.
Andrew Smith
[url="http://www.londonanalytics.info/"]London Analytics[/url] _________________ Andrew+Smith%0D%0A%5Burl%3D%26quot%3Bhttp%3A%2F%2Fwww%2Elondonanalytics%2Einfo%2F%26quot%3B%5DLondon+Analytics%5B%2Furl%5D |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|