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

Fortran question

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 30, 2007, 07:59
Default Fortran question
  #1
Noureddine
Guest
 
Posts: n/a
Hi everybody,

I want to understand the following command lines from Peric's code:

CHARACTER*10 FILIN, NAME*6

PRINT *, ' ENTER PROBLEM NAME (SIX CHARACTERS): '

READ(*,'(A6)') NAME

WRITE( FILIN,'(A6,4H.cin)') NAME

OPEN (UNIT=5,FILE=FILIN)

REWIND 5

My question is about WRITE and OPEN command lines. I have understood that we write NAME in an internal file, but I did not understand the format '(A6,4H.cin)'. For OPEN command line, I did not understand what does it mean FILIN, name of file or what ?.

if there's someone who can explain me this part of code, I will be thankful.

Noureddine
  Reply With Quote

 


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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
a strange question about Fortran Hall Main CFD Forum 9 May 18, 2004 02:48
Question on USER FORTRAN: GETVAR BoZ CFX 2 May 6, 2003 10:32
Short question on command in user fortran Franz Thomsen CFX 2 June 20, 2000 06:35
'C' or FORTRAN or 'C++' Yogesh Talekar Main CFD Forum 20 October 21, 1999 04:00


All times are GMT -4. The time now is 01:40.