delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/13/12:43:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Sent: 13 Jun 2002 16:41:31 GMT
Message-ID: <019c01c212f8$ab4461d0$050202ca@apple>
From: "Xinan Zhou" <zhoux AT lifepredictiontech DOT com>
To: <cygwin AT cygwin DOT com>
References: <3D074C2D DOT 9C5880B6 AT yahoo DOT com> <20020613042819 DOT 415632CC32 AT inet1 DOT ywave DOT com> <017001c212d7$874a7e70$050202ca AT apple> <20020613130409 DOT BD59B2CD9B AT inet1 DOT ywave DOT com>
Subject: Re: [Fwd: fortran read problem]
Date: Thu, 13 Jun 2002 12:37:54 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Hi,

Can I safely say that it is a bug that fortran read(1, '(a132)') on cygwin
cannot read an entire line properly from a data file edited by Notepad or
vi?
Or it is my mistake that I miss setting up something?

Thank you and have a nice day!

Xinan
----- Original Message -----
From: "Tim Prince" <tprince AT computer DOT org>
To: "Xinan Zhou" <zhoux AT lifepredictiontech DOT com>
Cc: <cygwin AT cygwin DOT com>
Sent: Thursday, June 13, 2002 9:04 AM
Subject: Re: [Fwd: fortran read problem]


> On Thursday 13 June 2002 05:40, Xinan Zhou wrote:
> > Hi, Tim, thank you for your response.
> >
> > What I want to do is to port worked program on Linux to cygwin. In the
> > ported program, the input file needs to be parsed and one entire line is
> > read in each time. The input file has the following format:
> >
> > *HEADING
> > Model: beam
> > *NODE
> > 1,0.,0.,0.
> > 2,1.,0.,0.
> > ......
> > *ELEMENT, TYPE=C3D20R
> > 1,1,2,3,4,13,14,15,16,5,6,
> >   7,8,17,18,19,20,9,10,11,12
> > ......
> >
> > being able to read in one entire line each time will make parsing terse.
> >
> > It did pass the compile and give the executable with g77 testRead.f. And
> > the same test program gives correct results  on MS Fortran.
> >
> > Could you tell me how to fix the incompatible mixture of fixed and free
> > format input or your
> > modified one? Can your modified one read the entire line?
>
> I simply reformatted the source file to fixed format (spacing statements
over
> to column 7 as required).  It ran fine, same on cygwin and on linux.  As I
> said, I suspected you might have tried to use a DOS text file, but I
didn't
> try to replicate such a problem.
>
> --
> Tim Prince
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019