XANSYS Message: 42384 [Go back to message list]
No rating yet
Rate item:

Subject: Re: FORTRAN question
Author: Manish Sharma
Date: 2002-10-01 15:01:00

Hello Schepers,
that one worked like a charm.. thank you..
manish.

Manish Sharma

Office Address: | Home Address:
Zyvex Corporation, 1321, N Plano Road | 631, Tumbleweed Ct.
Richardson, TX-75081 | Plano, TX-75023
Phone(office): 972-235-7881 (ext 221) |

Email me at sharmam2@e...
smanish_252@h...

On Tue, 1 Oct 2002, Winfried Schepers wrote:

> Dear Manish,

> try this:

> program test
> real,allocatable::a(:,:)
> open(10,file='x')
> read(10,*) n,m
> write(*,*) n,m
> allocate(a(n,m))
> read(10,*) a
> write(*,*) a
> stop
> end

> On my computer this works even for a file "x" like this
> 2 2
> 1.1
> 1.2 2.1
> 2.2

> btw, keep in mind the remarks Peter made on the Fortran array storage
> order.

> Winfried
> Berlin University of Technology
> Soil Mechanics and Foundation Engineering

Posts possibly associated with message #42384AuthorDateScore
42317FORTRAN questionManish Sharma2002/09/30 
42327Re: FORTRAN questionWinfried Schepers2002/10/01 
42347Re: FORTRAN questionPeter Attar2002/10/01 
42368Re: FORTRAN questionManish Sharma2002/10/01 
42373Re: FORTRAN questionWinfried Schepers2002/10/01 
42384Re: FORTRAN questionManish Sharma2002/10/01 
79042*tread/*vread question. Fortran questionMilot, Timothy 2005/10/12 
79043Re: *tread/*vread question. Fortran questionRandy Smith2005/10/12 
79044Re: *tread/*vread question. Fortran questionRick Fischer2005/10/12 
79046Re: *tread/*vread question. Fortran questionMartin Liddle2005/10/12 
79050Re: *tread/*vread question. Fortran questionDan Bohlen2005/10/13