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 8324 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/oce.F90 – NEMO

Ignore:
Timestamp:
2017-07-12T15:36:28+02:00 (7 years ago)
Author:
clem
Message:

STEP3 (2): clean separation between sea-ice and ocean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/oce.F90

    r7646 r8324  
    6565   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) ::   rke          !: kinetic energy 
    6666 
    67    !! arrays relating to embedding ice in the ocean. These arrays need to be declared  
    68    !! even if no ice model is required. In the no ice model or traditional levitating  
    69    !! ice cases they contain only zeros 
    70    !! --------------------- 
    71    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   snwice_mass        !: mass of snow and ice at current  ice time step   [Kg/m2] 
    72    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   snwice_mass_b      !: mass of snow and ice at previous ice time step   [Kg/m2] 
    73    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   snwice_fmass       !: time evolution of mass of snow+ice               [Kg/m2/s] 
    74  
    7567   !! Energy budget of the leads (open water embedded in sea ice) 
    7668   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   fraqsr_1lev        !: fraction of solar net radiation absorbed in the first ocean level [-] 
     
    8779      !!                   ***  FUNCTION oce_alloc  *** 
    8880      !!---------------------------------------------------------------------- 
    89       INTEGER :: ierr(7) 
     81      INTEGER :: ierr(6) 
    9082      !!---------------------------------------------------------------------- 
    9183      ! 
     
    110102         &     riceload(jpi,jpj),                             STAT=ierr(2) ) 
    111103         ! 
    112       ALLOCATE( snwice_mass(jpi,jpj) , snwice_mass_b(jpi,jpj), snwice_fmass(jpi,jpj) , STAT=ierr(3) ) 
    113          ! 
    114       ALLOCATE( fraqsr_1lev(jpi,jpj) , STAT=ierr(4) ) 
     104      ALLOCATE( fraqsr_1lev(jpi,jpj) , STAT=ierr(3) ) 
    115105         ! 
    116106      ALLOCATE( ssha_e(jpi,jpj),  sshn_e(jpi,jpj), sshb_e(jpi,jpj), sshbb_e(jpi,jpj), & 
    117107         &        ua_e(jpi,jpj),    un_e(jpi,jpj),   ub_e(jpi,jpj),   ubb_e(jpi,jpj), & 
    118108         &        va_e(jpi,jpj),    vn_e(jpi,jpj),   vb_e(jpi,jpj),   vbb_e(jpi,jpj), & 
    119          &        hu_e(jpi,jpj),   hur_e(jpi,jpj),   hv_e(jpi,jpj),   hvr_e(jpi,jpj), STAT=ierr(5) ) 
     109         &        hu_e(jpi,jpj),   hur_e(jpi,jpj),   hv_e(jpi,jpj),   hvr_e(jpi,jpj), STAT=ierr(4) ) 
    120110         ! 
    121       ALLOCATE( ub2_b(jpi,jpj), vb2_b(jpi,jpj)                                      , STAT=ierr(6) ) 
     111      ALLOCATE( ub2_b(jpi,jpj), vb2_b(jpi,jpj)                                      , STAT=ierr(5) ) 
    122112#if defined key_agrif 
    123       ALLOCATE( ub2_i_b(jpi,jpj), vb2_i_b(jpi,jpj)                                  , STAT=ierr(7) ) 
     113      ALLOCATE( ub2_i_b(jpi,jpj), vb2_i_b(jpi,jpj)                                  , STAT=ierr(6) ) 
    124114#endif 
    125115         ! 
Note: See TracChangeset for help on using the changeset viewer.