Operating System - OpenVMS
1829556 Members
1822 Online
109992 Solutions
New Discussion

Fortran /align qualifiers

 
SOLVED
Go to solution
JKrucus
Frequent Advisor

Fortran /align qualifiers

I am recompiling from source an old Fortran program, that includes an obsolete qualifier.
It had /align=(rec=pack,comm=natu)
Now its /align=(comm=(pack,nomulti),reco=natu)
but the data does not align correctly.

Does anyone know the modern equivalent of the old /align qualifiers?
Thank you.
4 REPLIES 4
devgoswami
New Member

Re: Fortran /align qualifiers

are u using a 32 bit OVMS or 64 bit?
if 64 bit then the "reco=natural" will cause problems.
John Gillings
Honored Contributor
Solution

Re: Fortran /align qualifiers

I'd expect:

/ALIGN=(RECORD=PACK,COMMON=NATURAL)

to work. Note that:

/ALIGN=(REC=PACK)

will NOT work because they keyword "REC" is considered ambiguous.

Note that (COMM=(PACK,NOMULTI),RECO=NATU) does the exact opposite of (REC=PACK,COMMON=NATURAL). I'm assuming you want common blocks packed and records naturally aligned.

All that said, it would be very much in your interest to modify your code so that EVERYTHING is naturally aligned.

If that doesn't help, please post the EXACT command that's failing and EXACT AND COMPLETE error messages.

Also give some detail about what you mean by "does not align correctly". Show us what you're declaring and how you want it aligned.
A crucible of informative mistakes
Antoniov.
Honored Contributor

Re: Fortran /align qualifiers

Hi,
hope this HP documentation page can help you
http://h71000.www7.hp.com/doc/82final/6443/6443pro_003.html#sec_fortran_quals

Antonio Vigliotti
Antonio Maria Vigliotti
JKrucus
Frequent Advisor

Re: Fortran /align qualifiers

reco = rec did it. Thank you, all.