New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2715 for trunk/NEMOGCM/EXTERNAL/AGRIF/AGRIF_FILES/modarrays.F – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/EXTERNAL/AGRIF/AGRIF_FILES/modarrays.F

    r2528 r2715  
    126126C     Local variables 
    127127C 
    128       SELECT CASE (nbdim) 
    129       CASE (1) 
    130            lower = lbound(Variable % array1,indice) 
    131            upper = ubound(Variable % array1,indice) 
    132       CASE (2) 
    133            lower = lbound(Variable % array2,indice) 
    134            upper = ubound(Variable % array2,indice) 
    135       CASE (3) 
    136            lower = lbound(Variable % array3,indice) 
    137            upper = ubound(Variable % array3,indice) 
    138       CASE (4) 
    139            lower = lbound(Variable % array4,indice) 
    140            upper = ubound(Variable % array4,indice) 
    141       CASE (5) 
    142            lower = lbound(Variable % array5,indice) 
    143            upper = ubound(Variable % array5,indice) 
    144       CASE (6) 
    145            lower = lbound(Variable % array6,indice) 
    146            upper = ubound(Variable % array6,indice) 
    147       END SELECT 
    148 C 
     128 
     129      lower = Variable % lb(indice) 
     130      upper = Variable % ub(indice) 
    149131      return 
    150132C 
Note: See TracChangeset for help on using the changeset viewer.