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 9271 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icerst.F90 – NEMO

Ignore:
Timestamp:
2018-01-19T18:56:15+01:00 (6 years ago)
Author:
clem
Message:

first steps for having more than 1 snow layers in the ice (in theory). There is still icethd_dh.F90 routine to change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/icerst.F90

    r9123 r9271  
    132132      CALL iom_rstput( iter, nitrst, numriw, 'a_ip', a_ip ) 
    133133      CALL iom_rstput( iter, nitrst, numriw, 'v_ip', v_ip ) 
    134 !!gm dangerous !!!!!  ===>>>> better reading writing all snow layers ! 
    135       ! Snow enthalpy (1st snow layer only) 
    136       z3d = e_s(:,:,1,:) 
    137       CALL iom_rstput( iter, nitrst, numriw, 'e_s_l01' , z3d ) 
    138       ! Ice enthalpy (all ice layers) 
     134      ! Snow enthalpy 
     135      DO jk = 1, nlay_s  
     136         WRITE(zchar1,'(I2.2)') jk 
     137         znam = 'e_s'//'_l'//zchar1 
     138         z3d(:,:,:) = e_s(:,:,jk,:) 
     139         CALL iom_rstput( iter, nitrst, numriw, znam , z3d ) 
     140      END DO 
     141      ! Ice enthalpy 
    139142      DO jk = 1, nlay_i  
    140143         WRITE(zchar1,'(I2.2)') jk 
     
    219222         v_ip(:,:,:) = 0._wp 
    220223      ENDIF 
    221 !!gm dangerous !!!!!  ===>>>> better reading writing all snow layers ! 
    222       ! Snow enthalpy (1st snow layer only) 
    223       CALL iom_get( numrir, jpdom_autoglo, 'e_s_l01' , z3d ) 
    224       e_s(:,:,1,:) = z3d 
    225       ! Ice enthalpy (all ice layers) 
    226       DO jk = 1, nlay_i  
     224      ! Snow enthalpy 
     225      DO jk = 1, nlay_s 
     226         WRITE(zchar1,'(I2.2)') jk 
     227         znam = 'e_s'//'_l'//zchar1 
     228         CALL iom_get( numrir, jpdom_autoglo, znam , z3d ) 
     229         e_s(:,:,jk,:) = z3d(:,:,:) 
     230      END DO 
     231      ! Ice enthalpy 
     232      DO jk = 1, nlay_i 
    227233         WRITE(zchar1,'(I2.2)') jk 
    228234         znam = 'e_i'//'_l'//zchar1 
Note: See TracChangeset for help on using the changeset viewer.