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 3381 for branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90 – NEMO

Ignore:
Timestamp:
2012-05-04T09:26:12+02:00 (12 years ago)
Author:
sga
Message:

NEMO branch dev_r3337_NOCS10_ICB: Changes to allow branch to compile with key_agrif. Not yet complete.

Along the way replace unnecessary POINTER declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90

    r3379 r3381  
    3838   INTEGER ::   nret, ncid, nc_dim 
    3939    
    40    INTEGER,  DIMENSION(3)              :: nstrt3, nlngth3 
    41    REAL(wp), DIMENSION(:,:,:), POINTER :: griddata => NULL()    ! need 2d array to read in with 
     40   INTEGER,  DIMENSION(3)                  :: nstrt3, nlngth3 
    4241 
    4342   !!---------------------------------------------------------------------- 
     
    7069      TYPE(point)                  ::   localpt   ! NOT a pointer but an actual local variable 
    7170      !!---------------------------------------------------------------------- 
    72  
    73       IF( .NOT. ASSOCIATED(griddata) ) ALLOCATE( griddata(jpi,jpj,1) ) 
    7471 
    7572      ! Find a restart file 
     
    236233      !!---------------------------------------------------------------------- 
    237234 
    238       IF( .NOT. ASSOCIATED(griddata) ) ALLOCATE( griddata(jpi,jpj,1) ) 
    239  
    240235      IF( lk_mpp ) THEN 
    241236         WRITE(cl_filename,'("icebergs_",I8.8,"_restart_",I4.4,".nc")') kt, narea-1 
Note: See TracChangeset for help on using the changeset viewer.