|
|
alternative to ifort's form='binary'
Hi
I have to migrate a code originally working under ifort to gfortran.
Unfortunately there are many problems. One is that I used
open (.... form='binary')
I have tried to substitude with form='unformatted' access='direct'
recl=?
is this correct? what is the recl if i write an array of 10 integers?
or 10 double precisions?
cheers
ciccio
|
|
0
|
|
|
|
Reply
|
alex.mura (2)
|
3/7/2012 2:45:13 PM |
|
On 2012-03-07 15:45, Roberto123 wrote:
> Hi
> I have to migrate a code originally working under ifort to gfortran.
> Unfortunately there are many problems. One is that I used
> open (.... form='binary')
>
> I have tried to substitude with form='unformatted' access='direct'
> recl=?
>
> is this correct? what is the recl if i write an array of 10 integers?
> or 10 double precisions?
>
> cheers
> ciccio
You are looking for access="stream" - an F2003 feature that standardises
dealing with a complete lack of any record structure.
Regards,
Arjen
|
|
0
|
|
|
|
Reply
|
arjen.markus895 (634)
|
3/7/2012 2:55:45 PM
|
|
arjenmarkus <arjen.markus895@gmail.com> wrote:
> On 2012-03-07 15:45, Roberto123 wrote:
> > Hi
> > I have to migrate a code originally working under ifort to gfortran.
> > Unfortunately there are many problems. One is that I used
> > open (.... form='binary')
> >
> > I have tried to substitude with form='unformatted' access='direct'
> > recl=?
> >
> > is this correct? what is the recl if i write an array of 10 integers?
> > or 10 double precisions?
> >
> > cheers
> > ciccio
>
> You are looking for access="stream" - an F2003 feature that standardises
> dealing with a complete lack of any record structure.
And note that ifort now also supports the standard access='stream'.
--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
|
|
0
|
|
|
|
Reply
|
nospam47 (9742)
|
3/7/2012 5:12:46 PM
|
|
On 7 Mar, 18:12, nos...@see.signature (Richard Maine) wrote:
>
> > You are looking foraccess="stream" - an F2003 feature that standardises
> > dealing with a complete lack of any record structure.
>
Hi,
thanks!!
But i got error when i compile with gfortran:
Error: FORM specifier in OPEN statement at (1) has invalid value
'stream'
mmaybe I have to pass some arguments to gfortran? I tried to guess
from the man page but I could not.
Thank you again
ciccio
|
|
0
|
|
|
|
Reply
|
alex.mura (2)
|
3/15/2012 3:04:18 PM
|
|
Roberto123 <alex.mura@gmail.com> wrote:
> On 7 Mar, 18:12, nos...@see.signature (Richard Maine) wrote:
> >
> > > You are looking foraccess="stream" - an F2003 feature that standardises
> > > dealing with a complete lack of any record structure.
> >
> But i got error when i compile with gfortran:
> Error: FORM specifier in OPEN statement at (1) has invalid value
> 'stream'
Notice I (and Arjen) said access='stream', not form='stream'.
Yes, I know that the nonstandard variant was form='binary', but that was
pretty nonsensical. The form specifier is, as always in standard
Fortran, 'formatted' or 'unformatted'. It specifies whether the data is
in internal form (unformatted) or is converted to character form
(formatted). Both options exist with stream access.
You want the same unformatted data that you normally get with
form='unformated',access='sequential', but you don't want the record
structure of sequential acess. You want acess='stream'.
--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
|
|
0
|
|
|
|
Reply
|
nospam47 (9742)
|
3/15/2012 3:29:48 PM
|
|
|
4 Replies
109 Views
(page loaded in 0.132 seconds)
Similiar Articles: Reading an unformatted file - comp.lang.fortranI first compiled my program with ifort and it ... * Each binary record consists of an integer byte count ... It might do one of the nonstandard alternatives that do the ... call tree - comp.lang.fortranI would hope that there is a compiler (pgf90? ifort? g95? gfortran?) that ... vizgraph?) that does not seem to be available for my platform in binary form and I am ... Simply Fortran IDE for gfortran on Windows - comp.lang.fortran ...Seems like a nice alternative for schools & universities, because of it's simplicity and ... and-GCC.html If you use free form ... comp.lang.fortran IDE for ifort on Linux ... Press any key to continue... - comp.unix.programmerAlternative to system("pause");? - comp.unix.programmer ... 1>IncludeDeps.f90 > Compiler is DVF, CVF, or ifort ... Press any key to continue > MESSAGE [BINARY] Sending %s ... Finding center of a circle in an image - comp.soft-sys.matlab ...... simply locate two points on each circle, form a ... A number of alternative shape fitting functions are ... 67; % Threshold the image to get a binary image (only 0's and 1's ... Where did Fortran go? - comp.lang.fortranAlso noteworthy: While ifort ... algebra, Mathematica and FORM. For the needs of HEP, there is probably no alternative ... > > Yeah man, it's all gone free form. Nice ... Signed multiplication - comp.lang.vhdlAnd is the positive number, and its 2's complement form same ... Lets have a look at the same two binary numbers in ... others you _may_ need that extra bit, or an alternative ... Hex to ascii - comp.lang.asm.x86If you want any kind of fast binary to ascii ... with leading zeros), which is the slowest form ... (The alternative is a binary search which is even less predictable ... Measurement Studio 7.0 c# or LabView? - comp.lang.labview ...Form what they show in the demo clips, I must say ... Studio .NET, this tool should really be an alternative. ... Read LabView binary file timestamp into ... M02, M03 ... Freescale's Idea of Open Source JTAG - comp.arch.embedded ...... it can tell OpenOCD to load a program binary into the target board's ... For other uses, it forms part of a chain of ... I looked at a range of alternatives and ddd was the ... streamIOFormatted stream I/O essentially provides an alternative ... ! ifort Package ID: W_FC_C_9.0.029 access = 'sequential' form = 'binary' end if Gender, Alternatives to Binary – FREE Gender, Alternatives to ...Gender, Alternatives to Binary – Encyclopedia.com has Gender, Alternatives to Binary ... for changing the ways westerners experience gender, because each alternative form ... 7/13/2012 3:54:59 AM
|
|
|
|
|
|
|
|
|