moving some native-formatted fortran data from linux/x86 to aix/pSeries
- From: Dan Stromberg <strombrg@xxxxxxxxxxxxxxx>
- Date: Thu, 07 Apr 2005 22:24:27 GMT
Hi.
I'm working with a researcher on getting his data converted from native
linux/x86 format, to something xlf90 would be happy with on AIX. I'm not
just sure which fortran compiler he's using on the linux side, but then
I'm not sure if it matters - it could be gcc's fortran or fortran 95, or
it could be something commercial like portland group or so.
The data files certainly contain real*4's, and may contain other things as
well.
I wrote a quick little C program that assumed everything in the file was a
real*4 on a linux system (all linuxes concerned are Fedora Core 3, so far
at least), and converted that to ASCII. Then I wrote another little C
program that would read a bunch of real*4's as ASCII, and convert that to
AIX real*4. However, the researcher is telling me that this produced
incorrect results when he used the resulting data file in his application,
so I'm looking more deeply now.
Anyway, my questions are:
1) Are there any compiler options that might assist us in this transition?
2) Is there a way of making one or more of the fortran compilers use
unbuffered I/O, so I can use strace and/or truss to see how large
chunks the programs are reading and writing data in? I'm guessing that
this might also help us identify if the data files have a single,
consistent record length, or if the data is variable length records.
3) Am I correct in assuming that a C program should be able to use
real*4's in the same format that fortran will on these platforms?
Yes, we do have source code. Yes, we did study it a bit, and it -seemed-
like it was writing consistent, 44 byte fixed-width records, but then the
file length isn't evenly divisible by 44, so....
BTW, this research group is moving most of their binary data to NetCDF for
the long term, so they do know how to avoid this kind of issue in the
future.
Thanks!
.
- Follow-Ups:
- Re: moving some native-formatted fortran data from linux/x86 to aix/pSeries
- From: Arnaud Desitter
- Re: moving some native-formatted fortran data from linux/x86 to aix/pSeries
- From: Harald Anlauf
- Re: moving some native-formatted fortran data from linux/x86 to aix/pSeries
- From: glen herrmannsfeldt
- Re: moving some native-formatted fortran data from linux/x86 to aix/pSeries
- Prev by Date: Re: Integer types in format statements
- Next by Date: Re: Integer types in format statements
- Previous by thread: Nice tutorial on parallel compilers
- Next by thread: Re: moving some native-formatted fortran data from linux/x86 to aix/pSeries
- Index(es):
Relevant Pages
|