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 3200 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/LIM_SRC_2/limwri_dimg_2.h90 – NEMO

Ignore:
Timestamp:
2011-12-07T16:00:49+01:00 (12 years ago)
Author:
cbricaud
Message:

bugs corections for compilation witk key_dimgout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/LIM_SRC_2/limwri_dimg_2.h90

    r2715 r3200  
    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    ENDIF 
    4148 
    4249    IF( kt == nit000 ) THEN  
Note: See TracChangeset for help on using the changeset viewer.