In the SAVE statement, the name of the COMMON block has to have the slash characters on either side, to let the compiler distinguish between a variable of that name and the block.
RAR
-----Original Message-----
From: Fortran 90 List [mailto:[log in to unmask]]On Behalf
Of Alberto Fasso'
Sent: Wednesday, March 03, 2004 3:30 PM
To: [log in to unmask]
Subject: COMMON & SAVE
I have never used SAVE with COMMONs, and I was surprised
by what I have learnt from this discussion.
So, I immediately have added SAVE in a program I am working
with:
COMMON /MUONS/ BIAPMU, ENMIN, NEINTV, NTHINT
SAVE MUONS
As a result, the g77 compiler has given me the following warning:
warning: unused variable `muons'
It looks that g77 assumes that SAVE is only for variables. Or is there
something I have not understood?
Alberto Fassò
--
Alberto Fassò
SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025
Phone: (1 650) 926 4762 Fax: (1 650) 926 3569
-----------------------------------------
*****************Internet Email Confidentiality Footer******************
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message
and notify the sender by reply email. Please advise immediately if you
or your employer do not consent to Internet email for messages of this
kind. Opinions, conclusions and other information in this message that
do not relate to the official business of The Shaw Group Inc. or its
subsidiaries shall be understood as neither given nor endorsed by it.
________________________________________________________________________
The Shaw Group Inc.
http://www.shawgrp.com
|