[Ad-dev] [openAD] #209: assumed-size arrays

OpenAD trac at mcs.anl.gov
Tue Mar 30 23:40:18 CDT 2010


#209: assumed-size arrays
---------------------------------+------------------------------------------
 Reporter:  utke                 |       Owner:  utke
     Type:  task                 |      Status:  new 
 Priority:  minor                |   Milestone:      
Component:  multiple components  |    Keywords:      
---------------------------------+------------------------------------------
 An assumed-size array (F77 idiom) is a dummy argument that has a '*' in
 the dimension specification. The dummy argument will assume the size (but
 not necessarily the shape or extent) of the actual argument. No
 lbound/ubound/size info can be extracted from the assumed-size array
 dimension. Consequently it is impossible to create any temporaries for
 such arrays.

 HOWEVER, for many practical uses the actual size of the array will still
 be known at call time, because it is  passed in another dummy argument.
 In that case the suggested workaround is
 to replace the "*" in the dimension with the dummy argument that
 contains the size (or a permitted expression thereof)

 The alternative in current Fortran are assumed-shape arrays.
 They do require an interface and consequently matching shape.

-- 
Ticket URL: <http://trac.mcs.anl.gov/projects/openAD/ticket/209>
OpenAD <http://www.mcs.anl.gov/openad>
Bug tracking for OpenAD components


More information about the Ad-dev mailing list