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 5428 for branches/UKMO/2015_CO6_CO5_zenv_wr_direct_dwl_temp/NEMOGCM/NEMO/OPA_SRC/trc_oce.F90 – NEMO

Ignore:
Timestamp:
2015-06-16T06:25:15+02:00 (9 years ago)
Author:
deazer
Message:

Added incode changes to allow compoarisoin with CO5 after svn keywords removed.
Extracts, merges builds and runs as expected from working copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/2015_CO6_CO5_zenv_wr_direct_dwl_temp/NEMOGCM/NEMO/OPA_SRC/trc_oce.F90

    r5418 r5428  
    2727   REAL(wp), PUBLIC, SAVE, ALLOCATABLE, DIMENSION(:,:,:) ::   etot3         !: light absortion coefficient 
    2828   REAL(wp), PUBLIC, SAVE, ALLOCATABLE, DIMENSION(:,:,:) ::   facvol        !: volume for degraded regions 
     29   REAL(wp), PUBLIC, SAVE, ALLOCATABLE, DIMENSION(:,:)   ::   rlambda2      !: Lambda2 for downwell version of Short wave Radiation 
     30   REAL(wp), PUBLIC                                      ::   rlambda       !: Lambda  for downwell version of Short wave Radiation  
    2931 
    3032#if defined key_top  
     
    7678      !!                  ***  trc_oce_alloc  *** 
    7779      !!---------------------------------------------------------------------- 
    78       INTEGER ::   ierr(2)        ! Local variables 
     80      INTEGER ::   ierr(3)        ! Local variables 
    7981      !!---------------------------------------------------------------------- 
    8082      ierr(:) = 0 
    8183                     ALLOCATE( etot3 (jpi,jpj,jpk), STAT=ierr(1) ) 
    8284      IF( lk_degrad) ALLOCATE( facvol(jpi,jpj,jpk), STAT=ierr(2) ) 
     85                     ALLOCATE( rlambda2(jpi,jpj),   STAT=ierr(3) ) 
    8386      trc_oce_alloc  = MAXVAL( ierr ) 
    8487      ! 
    85       IF( trc_oce_alloc /= 0 )   CALL ctl_warn('trc_oce_alloc: failed to allocate etot3 array') 
     88      IF( trc_oce_alloc /= 0 )   CALL ctl_warn('trc_oce_alloc: failed to allocate etot3, facvol or rlambda2 array') 
    8689   END FUNCTION trc_oce_alloc 
    8790 
Note: See TracChangeset for help on using the changeset viewer.