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.
sbcice_lim_2.F90 in branches/dev_001_SBC/NEMO/OPA_SRC/SBC – NEMO

source: branches/dev_001_SBC/NEMO/OPA_SRC/SBC/sbcice_lim_2.F90 @ 882

Last change on this file since 882 was 882, checked in by ctlod, 16 years ago

dev_001_SBC: Step II: change effectively the modules names in addining _2 extension, see ticket: #110

  • Property svn:executable set to *
File size: 9.7 KB
Line 
1MODULE sbcice_lim_2
2   !!======================================================================
3   !!                       ***  MODULE  sbcice_lim_2  ***
4   !! Surface module :  update surface ocean boundary condition over ice
5   !!                   covered area using LIM sea-ice model
6   !! Sea-Ice model  :  LIM 2.0 Sea ice model time-stepping
7   !!======================================================================
8   !! History :  9.0   !  06-06  (G. Madec)  from icestp_2.F90
9   !!----------------------------------------------------------------------
10#if defined key_lim2
11   !!----------------------------------------------------------------------
12   !!   'key_lim2' :                                  LIM 2.0 sea-ice model
13   !!----------------------------------------------------------------------
14   !!----------------------------------------------------------------------
15   !!   sbc_ice_lim_2  : sea-ice model time-stepping and
16   !!                    update ocean sbc over ice-covered area
17   !!----------------------------------------------------------------------
18   USE oce             ! ocean dynamics and tracers
19   USE dom_oce         ! ocean space and time domain
20   USE ice_2
21   USE iceini_2
22   USE ice_oce         ! ice variables
23   USE dom_ice_2
24   USE cpl_oce
25
26   USE sbc_oce         ! Surface boundary condition: ocean fields
27   USE sbc_ice         ! Surface boundary condition: ice   fields
28   USE sbcblk_core     ! Surface boundary condition: CORE bulk
29   USE sbcblk_clio     ! Surface boundary condition: CLIO bulk
30   USE albedo
31
32   USE daymod          ! day calendar
33   USE phycst          ! Define parameters for the routines
34   USE eosbn2          ! equation of state
35   USE limdyn_2
36   USE limtrp_2
37   USE limdmp_2
38   USE limthd_2
39   USE limsbc_2        ! sea surface boundary condition
40   USE limdia_2
41   USE limwri_2
42   USE limrst_2
43
44   USE lbclnk
45   USE iom             ! I/O manager library
46   USE in_out_manager  ! I/O manager
47   USE prtctl          ! Print control
48
49   IMPLICIT NONE
50   PRIVATE
51
52   PUBLIC sbc_ice_lim_2 ! routine called by sbcmod.F90
53   
54   !! * Substitutions
55#  include "domzgr_substitute.h90"
56#  include "vectopt_loop_substitute.h90"
57   !!----------------------------------------------------------------------
58   !!   OPA 9.0 , LOCEAN-IPSL (2006)
59   !! $ Id: $
60   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
61   !!----------------------------------------------------------------------
62
63CONTAINS
64
65   SUBROUTINE sbc_ice_lim_2( kt, kblk )
66      !!---------------------------------------------------------------------
67      !!                  ***  ROUTINE sbc_ice_lim_2  ***
68      !!                   
69      !! ** Purpose :   update the ocean surface boundary condition via the
70      !!                Louvain la Neuve Sea Ice Model time stepping
71      !!
72      !! ** Method  :   ice model time stepping
73      !!              - call the ice dynamics routine
74      !!              - call the ice advection/diffusion routine
75      !!              - call the ice thermodynamics routine
76      !!              - call the routine that computes mass and
77      !!                heat fluxes at the ice/ocean interface
78      !!              - save the outputs
79      !!              - save the outputs for restart when necessary
80      !!
81      !! ** Action  : - time evolution of the LIM sea-ice model
82      !!              - update all sbc variables below sea-ice:
83      !!                utau, vtau, qns , qsr, emp , emps
84      !!---------------------------------------------------------------------
85      INTEGER, INTENT(in) ::   kt      ! ocean time step
86      INTEGER, INTENT(in) ::   kblk    ! type of bulk (=3 CLIO, =4 CORE)
87      !!
88      INTEGER  ::   ji, jj   ! dummy loop indices
89      REAL(wp), DIMENSION(jpi,jpj) ::   alb_oce_os   ! albedo of the ocean under overcast sky
90      REAL(wp), DIMENSION(jpi,jpj) ::   alb_oce_cs   ! albedo of the ocean under clear sky
91      REAL(wp), DIMENSION(jpi,jpj) ::   alb_ice_os   ! albedo of the ice under overcast sky
92      REAL(wp), DIMENSION(jpi,jpj) ::   alb_ice_cs   ! albedo of ice under clear sky
93      !!----------------------------------------------------------------------
94
95      IF( kt == nit000 ) THEN
96         IF(lwp) WRITE(numout,*)
97         IF(lwp) WRITE(numout,*) 'sbc_ice_lim_2 : update ocean surface boudary condition' 
98         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~   via Louvain la Neuve Ice Model (LIM) time stepping'
99
100         CALL ice_init_2
101
102      ENDIF
103
104      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN
105         !
106         ! ... mean surface ocean current at I-point (F-point with sea-ice indexation)
107         DO jj = 2, jpj
108            DO ji = fs_2, jpi   ! vector opt.
109               ui_oce(ji,jj) = 0.5 * ( ssu_m(ji-1,jj  ) + ssu_m(ji-1,jj-1) ) * tmu(ji,jj)
110               vi_oce(ji,jj) = 0.5 * ( ssv_m(ji  ,jj-1) + ssv_m(ji-1,jj-1) ) * tmu(ji,jj)
111            END DO
112         END DO
113         CALL lbc_lnk( ui_oce, 'I', -1. )   ! I-point (i.e. F-point with ice indices)
114         CALL lbc_lnk( vi_oce, 'I', -1. )   ! I-point (i.e. F-point with ice indices)
115
116         ! ... masked sea surface freezing temperature [Kelvin] (set to rt0 over land)
117         tfu(:,:) = tfreez( sss_m ) +  rt0 
118
119         ! ... ice and ocean albedo
120         CALL blk_albedo( alb_ice_os , alb_oce_os , alb_ice_cs , alb_oce_cs )
121
122         ! ... Sea-ice surface boundary conditions output from bulk formulae :
123         !     - utaui_ice  ! surface ice stress i-component (I-point)   [N/m2]
124         !     - vtaui_ice  ! surface ice stress j-component (I-point)   [N/m2]
125         !     - qns_ice    ! non solar heat flux over ice   (T-point)   [W/m2]
126         !     - qsr_ice    !     solar heat flux over ice   (T-point)   [W/m2]
127         !     - qla_ice    ! latent    heat flux over ice   (T-point)   [W/m2]
128         !     - dqns_ice   ! non solar heat sensistivity    (T-point)   [W/m2]
129         !     - dqla_ice   ! latent    heat sensistivity    (T-point)   [W/m2]
130         !     - tprecip    ! total precipitation            (T-point)   [Kg/m2/s]
131         !     - sprecip    ! solid precipitation            (T-point)   [Kg/m2/s]
132         !     - fr1_i0     ! 1sr fraction of qsr penetration in ice     [%]
133         !     - fr2_i0     ! 2nd fraction of qsr penetration in ice     [%]
134         !
135         SELECT CASE( kblk )
136         CASE( 3 )           ! CLIO bulk formulation
137            CALL blk_ice_clio( sist     , ui_ice   , vi_ice   , alb_ice_cs, alb_ice_os,            &
138               &                                     utaui_ice, vtaui_ice , qns_ice   , qsr_ice,   &
139               &                                     qla_ice  , dqns_ice  , dqla_ice  ,            &
140               &                                     tprecip  , sprecip   ,                        &
141               &                                     fr1_i0   , fr2_i0    , 'B'  )
142         CASE( 4 )           ! CORE bulk formulation
143            CALL blk_ice_core( sist     , ui_ice   , vi_ice   , alb_ice_cs,                      &
144               &                                     utaui_ice, vtaui_ice , qns_ice , qsr_ice,   &
145               &                                     qla_ice  , dqns_ice  , dqla_ice,            &
146               &                                     tprecip  , sprecip   ,                      &
147               &                                     fr1_i0   , fr2_i0  )
148         END SELECT
149
150         IF(ln_ctl) THEN         ! print mean trends (used for debugging)
151            CALL prt_ctl_info( 'Ice Forcings ' )
152            CALL prt_ctl( tab2d_1=tprecip  ,clinfo1=' sbc_ice_lim: precip   : ', tab2d_2=sprecip  , clinfo2=' Snow     : ' )
153            CALL prt_ctl( tab2d_1=utaui_ice,clinfo1=' sbc_ice_lim: utaui_ice: ', tab2d_2=vtaui_ice, clinfo2=' vtaui_ice: ' )
154            CALL prt_ctl( tab2d_1=sst_m    ,clinfo1=' sbc_ice_lim: sst      : ', tab2d_2=sss_m    , clinfo2=' sss      : ' )
155            CALL prt_ctl( tab2d_1=ui_oce   ,clinfo1=' sbc_ice_lim: u_io     : ', tab2d_2=vi_oce   , clinfo2=' v_io     : ' )
156            CALL prt_ctl( tab2d_1=hsnif    ,clinfo1=' sbc_ice_lim: hsnif  1 : ', tab2d_2=hicif    , clinfo2=' hicif    : ' )
157            CALL prt_ctl( tab2d_1=frld     ,clinfo1=' sbc_ice_lim: frld   1 : ', tab2d_2=sist     , clinfo2=' sist     : ' )
158         ENDIF
159
160         ! ---------------- !
161         !  Ice model step  !
162         ! ---------------- !
163         ;                              CALL lim_rst_opn_2  ( kt )      ! Open Ice restart file
164         ;                              CALL lim_dyn_2      ( kt )      ! Ice dynamics    ( rheology/dynamics )
165         ;                              CALL lim_trp_2      ( kt )      ! Ice transport   ( Advection/diffusion )
166         IF( ln_limdmp )                CALL lim_dmp_2      ( kt )      ! Ice damping
167         ;                              CALL lim_thd_2      ( kt )      ! Ice thermodynamics
168         ;                              CALL lim_sbc_2      ( kt )      ! Ice/Ocean Mass & Heat fluxes
169         IF( MOD( kt+nn_fsbc-1, ninfo ) == 0 .OR.   &
170            &  ntmoy == 1 )             CALL lim_dia_2      ( kt )      ! Ice Diagnostics
171         ;                              CALL lim_wri_2      ( kt )      ! Ice outputs
172         IF( lrst_ice )                 CALL lim_rst_write_2( kt )      ! Ice restart file
173         !
174      ENDIF
175      !
176   END SUBROUTINE sbc_ice_lim_2
177
178#else
179   !!----------------------------------------------------------------------
180   !!   Default option           Dummy module      NO LIM 2.0 sea-ice model
181   !!----------------------------------------------------------------------
182CONTAINS
183   SUBROUTINE sbc_ice_lim_2 ( kt, kblk )     ! Dummy routine
184      WRITE(*,*) 'sbc_ice_lim_2: You should not have seen this print! error?', kt, kblk
185   END SUBROUTINE sbc_ice_lim_2
186#endif
187
188   !!======================================================================
189END MODULE sbcice_lim_2
Note: See TracBrowser for help on using the repository browser.