For Programmers: Free Programming Magazines  


Home > Archive > Fortran > March 2004 > Warning compiling data structure









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Warning compiling data structure
mancuso69

2004-03-27, 12:16 am

Someone of my types produces erratic results which I suspect might
correlate somehow to the following warning:
"Warning: Because of COMMON, the alignment of object is inconsistent
with its type [TYPE_NAME]".
Does anybody know what the problem could be?
How can I solve it?
Help is much appreciated.

Thanks a lot
Michael Metcalf

2004-03-27, 12:16 am


"mancuso69" <mancuso69@hotmail.com> wrote in message
news:f0d26ec2.0403180549.1012f030@posting.google.com...
> Someone of my types produces erratic results which I suspect might
> correlate somehow to the following warning:
> "Warning: Because of COMMON, the alignment of object is inconsistent
> with its type [TYPE_NAME]".
> Does anybody know what the problem could be?


Sounds as though you have a situation like

common/x/c, r
character c
real r

which causes r to fall on an unnatural boundary. This often occurs also if c
is real and r double precision.

> How can I solve it?


1) put the largest data objects first;

2) use variables in modules rather than common.

Regards,

Mike Metcalf


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com