[Ad-dev] [openAD] #264: dimension information dropped (set to 1) in some array declarations

OpenAD trac at mcs.anl.gov
Wed Nov 17 14:05:38 CST 2010


#264: dimension information dropped (set to 1) in some array declarations
---------------------------------+------------------------------------------
 Reporter:  utke                 |        Owner:           
     Type:  defect               |       Status:  closed   
 Priority:  major                |    Milestone:  scale1   
Component:  Application - SCALE  |   Resolution:  duplicate
 Keywords:                       |  
---------------------------------+------------------------------------------
Changes (by utke):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 This is a duplicate of #224
 rationale:  INEMAT is a local variable in a module subroutine that
 contains another subroutine.  The contained subroutine is elevated one
 level and the local variables of the containing subroutine that are used
 in the contained routine are elevated to module level.
 However nptt and iftg are themselves module variables and are not
 parameters and therefore cannot be used to declare the dimension of a
 module variable.
 The front end drops them to avoid the conflict and the default replacement
 with 1 kicks in.
 Workaround is to make all such variables part of the argument list to be
 passed to the contained subroutine

-- 
Ticket URL: <https://trac.mcs.anl.gov/projects/openAD/ticket/264#comment:2>
OpenAD <http://www.mcs.anl.gov/openad>
Bug tracking for OpenAD components


More information about the Ad-dev mailing list