CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Fortran 'list-directed I/O syntax error' (KIVA 3V)

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 28, 2009, 11:29
Default Fortran 'list-directed I/O syntax error' (KIVA 3V)
  #1
New Member
 
Robert C
Join Date: Jun 2009
Location: London, UK
Posts: 16
Rep Power: 16
ottbot is on a distinguished road
Hi all, I've been given KIVA 3V code to get familiar with.. Being relatively new to Fortran and CFD, it's been a challenge getting this to run on OS X (using ifort 11)

Anyway, I'm having problems getting kiva to read itape5, this is the specific error:
Code:
forrtl: severe (59): list-directed I/O syntax error, unit 5, file /Users/rob/Desktop/kiva/kiva/itape5
This is happening starting here:
Code:
      read ( 5,*)      id(1),(presi(n),n=1,nreg)
      write(12,*) ' presi  ',(presi(n),n=1,nreg)
      read ( 5,*)      id(1),(tempi(n),n=1,nreg)
      write(12,*) ' tempi  ',(tempi(n),n=1,nreg)
Here is the relevant location in itape5:
Code:
  nreg      1
 presi,		4.9e+6
 tempi,		500.0
 tkei,      0.1
 scli,      0.0
nreg is read just above the fortran line above, then it chokes when trying to read presi, and I can't sort out why. I wrote a small stand alone to do the same thing, which seems to work fine.

Anyone have any ideas how to debug this?

Thanks!
ottbot is offline   Reply With Quote

 

Tags
fortran, kiva


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 04:08.