Dear Jouk,
Your suggestion solves my problem.
Thanks a lot !
Xiaogang
On Mon, 9 Sep 2002, Jacob =Jouk Jansen wrote:
> Xiaogang wrote on 7-SEP-2002 22:50:33.74
>
> > I have a binary file generated by fortran 90 on a SGI
> >with SGI fortran compiler. I want to read it on a linux alpha
> >by a fortran code ( compaq fortran compiler).
> >
> >
> > I prefer a stand-alone tool that can convert the SGI binary
> >file to a binary file readable by my fortran code on the alpha.
>
> SGI is a big endian machine and Alpha a little. However it is easy to to
> read big endian files on the alpha with compaq fortran
> 1) compile with the "-convert big_endian" compile time option.
>
> or
>
> 2) use "convert='BIG_ENDIAN'" on the file open statement.
>
> Doing this you can just read the file as you wrote it.
>
> Jouk
>
>
> Bush : All votes are equal but some votes are more equal than others.
>
> >------------------------------------------------------------------------------<
>
> Jouk Jansen
>
> [log in to unmask]
>
> Technische Universiteit Delft tttttttttt uu uu ddddddd
> Nationaal centrum voor HREM tttttttttt uu uu dd dd
> Rotterdamseweg 137 tt uu uu dd dd
> 2628 AL Delft tt uu uu dd dd
> Nederland tt uu uu dd dd
> tel. 31-15-2782272 tt uuuuuuu ddddddd
>
> >------------------------------------------------------------------------------<
>
------------------------------------------------
Dr Xiaogang Wang
Departement de chimie
Universite de Montreal
C.P. 6128, succursale Centre-ville
Montreal, Quebec H3C 3J7
Tel. (514) 3436111 ext. 3947 (office)
FAX (514) 3437586 (office)
e-mail: [log in to unmask]
homepage: http://www.esi.umontreal.ca/~wangx
------------------------------------------------
|