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 2761 for trunk/NEMOGCM/NEMO/TOP_SRC/SED/sedini.F90 – NEMO

Ignore:
Timestamp:
2011-05-03T12:49:22+02:00 (13 years ago)
Author:
cetlod
Message:

Changes in sediment model to use with dynamic memory, see ticket #821

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/SED/sedini.F90

    r2715 r2761  
    7979      INTEGER  :: numblt          
    8080      INTEGER  :: nummsh    
    81       REAL(wp) , DIMENSION(jpi,jpj) :: zdta 
     81      REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zdta 
    8282#endif 
    8383      !!---------------------------------------------------------------------- 
     
    9999      WRITE(numsed,*) ' sed_init : Initialization of sediment module  ' 
    100100      WRITE(numsed,*) ' ' 
     101 
     102      !                                ! Allocate LOBSTER arrays 
     103      IF( sed_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'sed_ini: unable to allocate sediment model arrays' ) 
     104 
    101105 
    102106      ! Determination of sediments number of points and allocate global variables 
     
    118122     
    119123      ! bottom layer thickness 
     124      ALLOCATE( zdta(jpi,jpj) ) 
    120125      CALL iom_get  ( numblt, jpdom_data, 'E3TBOT', zdta(:,:) ) 
    121126      epkbot(:,:) = 0. 
     
    129134      CALL iom_close( nummsh )   
    130135      CALL iom_close( numblt )  
     136 
     137      DEALLOCATE( zdta ) 
    131138#else 
    132139 
Note: See TracChangeset for help on using the changeset viewer.