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

Ignore:
Timestamp:
2017-12-07T12:14:23+01:00 (6 years ago)
Author:
clem
Message:

dev_CNRS_2017: raw commit of the Met-Office specifics for coupling with their Earth system model. It is not yet tested and debuging is expected

File:
1 edited

Legend:

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

    r8882 r8933  
    1919   USE ice            ! sea-ice variables 
    2020   USE dom_oce        ! ocean domain 
    21    USE sbc_oce , ONLY : nn_fsbc 
     21   USE sbc_oce , ONLY : nn_fsbc, ln_meto_cpl 
    2222   USE icectl 
    2323   ! 
     
    129129      CALL iom_rstput( iter, nitrst, numriw, 'a_i' , a_i  ) 
    130130      CALL iom_rstput( iter, nitrst, numriw, 't_su', t_su ) 
    131       ! 
    132131      ! Melt ponds 
    133132      CALL iom_rstput( iter, nitrst, numriw, 'a_ip', a_ip ) 
    134133      CALL iom_rstput( iter, nitrst, numriw, 'v_ip', v_ip ) 
    135       ! 
    136134!!gm dangerous !!!!!  ===>>>> better reading writing all snow layers ! 
    137135      ! Snow enthalpy (1st snow layer only) 
    138136      z3d = e_s(:,:,1,:) 
    139137      CALL iom_rstput( iter, nitrst, numriw, 'tempt_sl1' , z3d ) 
    140       ! 
    141138      ! Ice enthalpy (all ice layers) 
    142139      DO jk = 1, nlay_i  
     
    146143         CALL iom_rstput( iter, nitrst, numriw, znam , z3d ) 
    147144      END DO 
    148       ! 
    149145      ! ice velocity 
    150146      CALL iom_rstput( iter, nitrst, numriw, 'u_ice', u_ice ) ! u_ice 
    151147      CALL iom_rstput( iter, nitrst, numriw, 'v_ice', v_ice ) ! v_ice 
    152        
     148      ! fields needed for Jules coupling 
     149      IF (ln_meto_cpl) THEN 
     150         CALL iom_rstput( iter, nitrst, numriw, 'cnd_ice', cnd_ice ) 
     151         CALL iom_rstput( iter, nitrst, numriw, 't1_ice' , t1_ice  ) 
     152      ENDIF 
     153      ! 
     154 
    153155      ! close restart file 
    154156      ! ------------------ 
     
    207209      CALL iom_get( numrir, jpdom_autoglo, 'a_i' , a_i  ) 
    208210      CALL iom_get( numrir, jpdom_autoglo, 't_su', t_su ) 
    209       ! 
    210211      ! Melt ponds 
    211212      id1 = iom_varid( numrir, 'a_ip_htc01' , ldstop = .FALSE. ) 
     
    218219         v_ip(:,:,:) = 0._wp 
    219220      ENDIF 
    220       ! 
    221221!!gm dangerous !!!!!  ===>>>> better reading writing all snow layers ! 
    222222      ! Snow enthalpy (1st snow layer only) 
    223223      CALL iom_get( numrir, jpdom_autoglo, 'tempt_sl1' , z3d ) 
    224224      e_s(:,:,1,:) = z3d 
    225       ! 
    226225      ! Ice enthalpy (all ice layers) 
    227226      DO jk = 1, nlay_i  
     
    231230         e_i(:,:,jk,:) = z3d(:,:,:) 
    232231      END DO 
    233       ! 
    234232      ! ice velocity 
    235233      CALL iom_get( numrir, jpdom_autoglo, 'u_ice', u_ice ) 
    236234      CALL iom_get( numrir, jpdom_autoglo, 'v_ice', v_ice ) 
     235      ! fields needed for Jules coupling 
     236      IF (ln_meto_cpl) THEN 
     237         CALL iom_get( numrir, jpdom_autoglo, 'cnd_ice', cnd_ice ) 
     238         CALL iom_get( numrir, jpdom_autoglo, 't1_ice' , t1_ice  ) 
     239      ENDIF 
    237240 
    238241   END SUBROUTINE ice_rst_read 
Note: See TracChangeset for help on using the changeset viewer.