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 3294 for trunk/NEMOGCM/NEMO/LIM_SRC_2/limwri_dimg_2.h90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/LIM_SRC_2/limwri_dimg_2.h90

    r2715 r3294  
    2222    INTEGER , SAVE, DIMENSION(:), ALLOCATABLE  :: nsubindex   !: subindex to be saved 
    2323    INTEGER , SAVE ::   nice, nhorid, ndim, niter, ndepid 
    24     REAL(wp), SAVE, DIMENSION(jpi,jpj,jpnoumax) :: rcmoy 
     24    REAL(wp), SAVE, DIMENSION(:,:,:), ALLOCATABLE :: rcmoy 
    2525 
    2626    INTEGER ::  ji, jj, jf, ii   ! dummy loop indices and array index 
    2727    INTEGER :: iyear, iday, imon !  
     28    INTEGER :: ialloc 
    2829    CHARACTER(LEN=80) :: clname, cltext, clmode 
    2930    REAL(wp), DIMENSION(1) ::   zdept 
     
    3940#endif 
    4041    !!------------------------------------------------------------------- 
     42    IF( .NOT. ALLOCATED(rcmoy) )THEN 
     43        ALLOCATE(rcmoy(jpi,jpj,jpnoumax),  STAT=ialloc ) 
     44       ! 
     45       IF( lk_mpp      )   CALL mpp_sum ( ialloc  ) 
     46       IF( ialloc /= 0 )   CALL ctl_warn('lim_wri_2 (limwri_dimg_2.h90) : failed to allocate arrays') 
     47       rcmoy(:,:,:) = 0._wp 
     48    ENDIF 
    4149 
    4250    IF( kt == nit000 ) THEN  
Note: See TracChangeset for help on using the changeset viewer.