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.
limsbc.F90 in trunk/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

source: trunk/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90 @ 3558

Last change on this file since 3558 was 3558, checked in by rblod, 11 years ago

Fix issues when using key_nosignedzeo, see ticket #996

  • Property svn:keywords set to Id
File size: 22.6 KB
Line 
1MODULE limsbc
2   !!======================================================================
3   !!                       ***  MODULE limsbc   ***
4   !!           computation of the flux at the sea ice/ocean interface
5   !!======================================================================
6   !! History :   -   ! 2006-07 (M. Vancoppelle)  LIM3 original code
7   !!            3.0  ! 2008-03 (C. Tallandier)  surface module
8   !!             -   ! 2008-04 (C. Tallandier)  split in 2 + new ice-ocean coupling
9   !!            3.3  ! 2010-05 (G. Madec) decrease ocean & ice reference salinities in the Baltic sea
10   !!                 !                  + simplification of the ice-ocean stress calculation
11   !!            4.0  ! 2011-02 (G. Madec) dynamical allocation
12   !!----------------------------------------------------------------------
13#if defined key_lim3
14   !!----------------------------------------------------------------------
15   !!   'key_lim3'                                    LIM 3.0 sea-ice model
16   !!----------------------------------------------------------------------
17   !!   lim_sbc_alloc : allocate the limsbc arrays
18   !!   lim_sbc_init  : initialisation
19   !!   lim_sbc_flx   : updates mass, heat and salt fluxes at the ocean surface
20   !!   lim_sbc_tau   : update i- and j-stresses, and its modulus at the ocean surface
21   !!----------------------------------------------------------------------
22   USE par_oce          ! ocean parameters
23   USE par_ice          ! ice parameters
24   USE dom_oce          ! ocean domain
25   USE sbc_ice          ! Surface boundary condition: sea-ice fields
26   USE sbc_oce          ! Surface boundary condition: ocean fields
27   USE phycst           ! physical constants
28   USE albedo           ! albedo parameters
29   USE ice              ! LIM sea-ice variables
30   USE lbclnk           ! ocean lateral boundary condition
31   USE in_out_manager   ! I/O manager
32   USE lib_mpp          ! MPP library
33   USE wrk_nemo         ! work arrays
34   USE prtctl           ! Print control
35   USE lib_fortran      ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)
36   USE cpl_oasis3, ONLY : lk_cpl
37
38   IMPLICIT NONE
39   PRIVATE
40
41   PUBLIC   lim_sbc_init   ! called by ice_init
42   PUBLIC   lim_sbc_flx    ! called by sbc_ice_lim
43   PUBLIC   lim_sbc_tau    ! called by sbc_ice_lim
44
45   REAL(wp)  ::   r1_rdtice            ! = 1. / rdt_ice
46   REAL(wp)  ::   epsi16 = 1.e-16_wp   ! constant values
47   REAL(wp)  ::   rzero  = 0._wp   
48   REAL(wp)  ::   rone   = 1._wp
49
50   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   utau_oce, vtau_oce   ! air-ocean surface i- & j-stress     [N/m2]
51   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   tmod_io              ! modulus of the ice-ocean velocity   [m/s]
52   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) ::   soce_0  , sice_0     ! cst SSS and ice salinity (levitating sea-ice)
53
54   !! * Substitutions
55#  include "vectopt_loop_substitute.h90"
56   !!----------------------------------------------------------------------
57   !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011)
58   !! $Id$
59   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
60   !!----------------------------------------------------------------------
61CONTAINS
62
63   INTEGER FUNCTION lim_sbc_alloc()
64      !!-------------------------------------------------------------------
65      !!             ***  ROUTINE lim_sbc_alloc ***
66      !!-------------------------------------------------------------------
67      ALLOCATE( soce_0(jpi,jpj) , utau_oce(jpi,jpj) ,                       &
68         &      sice_0(jpi,jpj) , vtau_oce(jpi,jpj) , tmod_io(jpi,jpj), STAT=lim_sbc_alloc)
69         !
70      IF( lk_mpp             )   CALL mpp_sum( lim_sbc_alloc )
71      IF( lim_sbc_alloc /= 0 )   CALL ctl_warn('lim_sbc_alloc: failed to allocate arrays')
72   END FUNCTION lim_sbc_alloc
73
74
75   SUBROUTINE lim_sbc_flx( kt )
76      !!-------------------------------------------------------------------
77      !!                ***  ROUTINE lim_sbc_flx ***
78      !! 
79      !! ** Purpose :   Update the surface ocean boundary condition for heat
80      !!              salt and mass over areas where sea-ice is non-zero
81      !!         
82      !! ** Action  : - computes the heat and freshwater/salt fluxes
83      !!              at the ice-ocean interface.
84      !!              - Update the ocean sbc
85      !!     
86      !! ** Outputs : - qsr     : sea heat flux:     solar
87      !!              - qns     : sea heat flux: non solar
88      !!              - emp     : freshwater budget: volume flux
89      !!              - emps    : freshwater budget: concentration/dillution
90      !!              - fr_i    : ice fraction
91      !!              - tn_ice  : sea-ice surface temperature
92      !!              - alb_ice : sea-ice alberdo (lk_cpl=T)
93      !!
94      !! References : Goosse, H. et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90.
95      !!              Tartinville et al. 2001 Ocean Modelling, 3, 95-108.
96      !!---------------------------------------------------------------------
97      INTEGER, INTENT(in) ::   kt    ! number of iteration
98      !
99      INTEGER  ::   ji, jj           ! dummy loop indices
100      INTEGER  ::   ierr             ! local integer
101      INTEGER  ::   ifvt, i1mfr, idfr               ! some switches
102      INTEGER  ::   iflt, ial, iadv, ifral, ifrdv
103      REAL(wp) ::   zinda, zfons, zpme              ! local scalars
104      REAL(wp), POINTER, DIMENSION(:,:) ::   zfcm1 , zfcm2    ! solar/non solar heat fluxes
105      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zalb, zalbp   ! 2D/3D workspace
106      !!---------------------------------------------------------------------
107     
108      CALL wrk_alloc( jpi, jpj, zfcm1 , zfcm2 )
109      IF( lk_cpl )   CALL wrk_alloc( jpi, jpj, jpl, zalb, zalbp )
110
111      !------------------------------------------!
112      !      heat flux at the ocean surface      !
113      !------------------------------------------!
114      ! pfrld is the lead fraction at the previous time step (actually between TRP and THD)
115      ! changed to old_frld and old ht_i
116
117      DO jj = 1, jpj
118         DO ji = 1, jpi
119            zinda   = 1.0 - MAX( rzero , SIGN( rone , - ( 1.0 - pfrld(ji,jj) ) ) )
120            ifvt    = zinda  *  MAX( rzero , SIGN( rone, -phicif  (ji,jj) ) )  !subscripts are bad here
121            i1mfr   = 1.0 - MAX( rzero , SIGN( rone ,  - ( at_i(ji,jj)       ) ) )
122            idfr    = 1.0 - MAX( rzero , SIGN( rone , ( 1.0 - at_i(ji,jj) ) - pfrld(ji,jj) ) )
123            iflt    = zinda  * (1 - i1mfr) * (1 - ifvt )
124            ial     = ifvt   * i1mfr + ( 1 - ifvt ) * idfr
125            iadv    = ( 1  - i1mfr ) * zinda
126            ifral   = ( 1  - i1mfr * ( 1 - ial ) )   
127            ifrdv   = ( 1  - ifral * ( 1 - ial ) ) * iadv 
128
129            ! switch --- 1.0 ---------------- 0.0 --------------------
130            ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131            ! zinda   | if pfrld = 1       | if pfrld < 1            |
132            !  -> ifvt| if pfrld old_ht_i
133            ! i1mfr   | if frld = 1        | if frld  < 1            |
134            ! idfr    | if frld <= pfrld    | if frld > pfrld        |
135            ! iflt    |
136            ! ial     |
137            ! iadv    |
138            ! ifral
139            ! ifrdv
140
141            !   computation the solar flux at ocean surface
142            zfcm1(ji,jj)   = pfrld(ji,jj) * qsr(ji,jj)  + ( 1. - pfrld(ji,jj) ) * fstric(ji,jj)
143            ! fstric     Solar flux transmitted trough the ice
144            ! qsr        Net short wave heat flux on free ocean
145            ! new line
146            fscmbq(ji,jj) = ( 1.0 - pfrld(ji,jj) ) * fstric(ji,jj)
147
148            !  computation the non solar heat flux at ocean surface
149            zfcm2(ji,jj) = - zfcm1(ji,jj)                  &
150               &           + iflt    * ( fscmbq(ji,jj) )   & ! total abl -> fscmbq is given to the ocean
151               ! fscmbq and ffltbif are obsolete
152               !              &           + iflt * ffltbif(ji,jj) !!! only if one category is used
153               &           + ifral   * ( ial * qcmif(ji,jj) + (1 - ial) * qldif(ji,jj) ) * r1_rdtice   &
154               &           + ifrdv   * ( qfvbq(ji,jj) + qdtcn(ji,jj) )                   * r1_rdtice   &
155               &           + fhmec(ji,jj)     & ! new contribution due to snow melt in ridging!!
156               &           + fheat_rpo(ji,jj) & ! contribution from ridge formation
157               &           + fheat_res(ji,jj)
158            ! fscmbq  Part of the solar radiation transmitted through the ice and going to the ocean
159            !         computed in limthd_zdf.F90
160            ! ffltbif Total heat content of the ice (brine pockets+ice) / delta_t
161            ! qcmif   Energy needed to bring the ocean surface layer until its freezing (ok)
162            ! qldif   heat balance of the lead (or of the open ocean)
163            ! qfvbq   i think this is wrong!
164            ! ---> Array used to store energy in case of total lateral ablation
165            ! qfvbq latent heat uptake/release after accretion/ablation
166            ! qdtcn Energy from the turbulent oceanic heat flux heat flux coming in the lead
167
168            IF ( num_sal == 2 ) zfcm2(ji,jj) = zfcm2(ji,jj) + &
169               fhbri(ji,jj) ! new contribution due to brine drainage
170
171            ! bottom radiative component is sent to the computation of the
172            ! oceanic heat flux
173            fsbbq(ji,jj) = ( 1.0 - ( ifvt + iflt ) ) * fscmbq(ji,jj)     
174
175            ! used to compute the oceanic heat flux at the next time step
176            qsr(ji,jj) = zfcm1(ji,jj)                                       ! solar heat flux
177            qns(ji,jj) = zfcm2(ji,jj) - fdtcn(ji,jj)                        ! non solar heat flux
178            !                           ! fdtcn : turbulent oceanic heat flux
179
180            !!gm   this IF prevents the vertorisation of the whole loop
181            IF ( ( ji == jiindx ) .AND. ( jj == jjindx) ) THEN
182               WRITE(numout,*) ' lim_sbc : heat fluxes '
183               WRITE(numout,*) ' qsr       : ', qsr(jiindx,jjindx)
184               WRITE(numout,*) ' zfcm1     : ', zfcm1(jiindx,jjindx)
185               WRITE(numout,*) ' pfrld     : ', pfrld(jiindx,jjindx)
186               WRITE(numout,*) ' fstric    : ', fstric (jiindx,jjindx)
187               WRITE(numout,*)
188               WRITE(numout,*) ' qns       : ', qns(jiindx,jjindx)
189               WRITE(numout,*) ' zfcm2     : ', zfcm2(jiindx,jjindx)
190               WRITE(numout,*) ' zfcm1     : ', zfcm1(jiindx,jjindx)
191               WRITE(numout,*) ' ifral     : ', ifral
192               WRITE(numout,*) ' ial       : ', ial 
193               WRITE(numout,*) ' qcmif     : ', qcmif(jiindx,jjindx)
194               WRITE(numout,*) ' qldif     : ', qldif(jiindx,jjindx)
195               WRITE(numout,*) ' qcmif / dt: ', qcmif(jiindx,jjindx) * r1_rdtice
196               WRITE(numout,*) ' qldif / dt: ', qldif(jiindx,jjindx) * r1_rdtice
197               WRITE(numout,*) ' ifrdv     : ', ifrdv
198               WRITE(numout,*) ' qfvbq     : ', qfvbq(jiindx,jjindx)
199               WRITE(numout,*) ' qdtcn     : ', qdtcn(jiindx,jjindx)
200               WRITE(numout,*) ' qfvbq / dt: ', qfvbq(jiindx,jjindx) * r1_rdtice
201               WRITE(numout,*) ' qdtcn / dt: ', qdtcn(jiindx,jjindx) * r1_rdtice
202               WRITE(numout,*) ' '
203               WRITE(numout,*) ' fdtcn     : ', fdtcn(jiindx,jjindx)
204               WRITE(numout,*) ' fhmec     : ', fhmec(jiindx,jjindx)
205               WRITE(numout,*) ' fheat_rpo : ', fheat_rpo(jiindx,jjindx)
206               WRITE(numout,*) ' fhbri     : ', fhbri(jiindx,jjindx)
207               WRITE(numout,*) ' fheat_res : ', fheat_res(jiindx,jjindx)
208            ENDIF
209            !!gm   end
210         END DO
211      END DO
212
213      !------------------------------------------!
214      !      mass flux at the ocean surface      !
215      !------------------------------------------!
216
217!!gm   optimisation: this loop have to be merged with the previous one
218      DO jj = 1, jpj
219         DO ji = 1, jpi
220            !  case of realistic freshwater flux (Tartinville et al., 2001) (presently ACTIVATED)
221            !  -------------------------------------------------------------------------------------
222            !  The idea of this approach is that the system that we consider is the ICE-OCEAN system
223            !  Thus  FW  flux  =  External ( E-P+snow melt)
224            !       Salt flux  =  Exchanges in the ice-ocean system then converted into FW
225            !                     Associated to Ice formation AND Ice melting
226            !                     Even if i see Ice melting as a FW and SALT flux
227            !       
228
229            !  computing freshwater exchanges at the ice/ocean interface
230            zpme = - emp(ji,jj)     * ( 1.0 - at_i(ji,jj)          )  &   ! evaporation over oceanic fraction
231               &   + tprecip(ji,jj) *         at_i(ji,jj)             &   ! all precipitation reach the ocean
232               &   - sprecip(ji,jj) * ( 1. - (pfrld(ji,jj)**betas) )  &   ! except solid precip intercepted by sea-ice
233               &   - rdmsnif(ji,jj) * r1_rdtice                       &   ! freshwaterflux due to snow melting
234               &   + fmmec(ji,jj)                                         ! snow falling when ridging
235
236
237            !  computing salt exchanges at the ice/ocean interface
238            !  sice should be the same as computed with the ice model
239            zfons =  ( soce_0(ji,jj) - sice_0(ji,jj) ) * rdmicif(ji,jj) * r1_rdtice 
240            ! SOCE
241            zfons =  ( sss_m (ji,jj) - sice_0(ji,jj) ) * rdmicif(ji,jj) * r1_rdtice
242
243            !CT useless            !  salt flux for constant salinity
244            !CT useless            fsalt(ji,jj)      =  zfons / ( sss_m(ji,jj) + epsi16 ) + fsalt_res(ji,jj)
245            !  salt flux for variable salinity
246            zinda             = 1.0 - MAX( rzero , SIGN( rone , - ( 1.0 - pfrld(ji,jj) ) ) )
247            !  correcting brine and salt fluxes
248            fsbri(ji,jj)      =  zinda*fsbri(ji,jj)
249            !  converting the salt fluxes from ice to a freshwater flux from ocean
250            fsalt_res(ji,jj)  =  fsalt_res(ji,jj) / ( sss_m(ji,jj) + epsi16 )
251            fseqv(ji,jj)      =  fseqv(ji,jj)     / ( sss_m(ji,jj) + epsi16 )
252            fsbri(ji,jj)      =  fsbri(ji,jj)     / ( sss_m(ji,jj) + epsi16 )
253            fsalt_rpo(ji,jj)  =  fsalt_rpo(ji,jj) / ( sss_m(ji,jj) + epsi16 )
254
255            !  freshwater mass exchange (positive to the ice, negative for the ocean ?)
256            !  actually it's a salt flux (so it's minus freshwater flux)
257            !  if sea ice grows, zfons is positive, fsalt also
258            !  POSITIVE SALT FLUX FROM THE ICE TO THE OCEAN
259            !  POSITIVE FRESHWATER FLUX FROM THE OCEAN TO THE ICE [kg.m-2.s-1]
260
261            emp(ji,jj) = - zpme 
262         END DO
263      END DO
264
265      IF( num_sal == 2 ) THEN      ! variable ice salinity: brine drainage included in the salt flux
266         emps(:,:) = fsbri(:,:) + fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:)
267      ELSE                         ! constant ice salinity:
268         emps(:,:) =              fseqv(:,:) + fsalt_res(:,:) + fsalt_rpo(:,:) + emp(:,:)
269      ENDIF
270
271      !-----------------------------------------------!
272      !   Storing the transmitted variables           !
273      !-----------------------------------------------!
274      fr_i  (:,:)   = at_i(:,:)             ! Sea-ice fraction           
275      tn_ice(:,:,:) = t_su(:,:,:)           ! Ice surface temperature                     
276
277      !------------------------------------------------!
278      !    Computation of snow/ice and ocean albedo    !
279      !------------------------------------------------!
280      IF( lk_cpl ) THEN          ! coupled case
281         CALL albedo_ice( t_su, ht_i, ht_s, zalbp, zalb )                  ! snow/ice albedo
282         !
283         alb_ice(:,:,:) =  0.5_wp * zalbp(:,:,:) + 0.5_wp * zalb (:,:,:)   ! Ice albedo (mean clear and overcast skys)
284      ENDIF
285
286      IF(ln_ctl) THEN
287         CALL prt_ctl( tab2d_1=qsr   , clinfo1=' lim_sbc: qsr    : ', tab2d_2=qns , clinfo2=' qns     : ' )
288         CALL prt_ctl( tab2d_1=emp   , clinfo1=' lim_sbc: emp    : ', tab2d_2=emps, clinfo2=' emps    : ' )
289         CALL prt_ctl( tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i   : ' )
290         CALL prt_ctl( tab3d_1=tn_ice, clinfo1=' lim_sbc: tn_ice : ', kdim=jpl )
291      ENDIF
292      !
293      CALL wrk_dealloc( jpi, jpj, zfcm1 , zfcm2 )
294      IF( lk_cpl )   CALL wrk_dealloc( jpi, jpj, jpl, zalb, zalbp )
295      !
296   END SUBROUTINE lim_sbc_flx
297
298
299   SUBROUTINE lim_sbc_tau( kt , pu_oce, pv_oce )
300      !!-------------------------------------------------------------------
301      !!                ***  ROUTINE lim_sbc_tau ***
302      !! 
303      !! ** Purpose : Update the ocean surface stresses due to the ice
304      !!         
305      !! ** Action  : * at each ice time step (every nn_fsbc time step):
306      !!                - compute the modulus of ice-ocean relative velocity
307      !!                  (*rho*Cd) at T-point (C-grid) or I-point (B-grid)
308      !!                      tmod_io = rhoco * | U_ice-U_oce |
309      !!                - update the modulus of stress at ocean surface
310      !!                      taum = frld * taum + (1-frld) * tmod_io * | U_ice-U_oce |
311      !!              * at each ocean time step (every kt):
312      !!                  compute linearized ice-ocean stresses as
313      !!                      Utau = tmod_io * | U_ice - pU_oce |
314      !!                using instantaneous current ocean velocity (usually before)
315      !!
316      !!    NB: - ice-ocean rotation angle no more allowed
317      !!        - here we make an approximation: taum is only computed every ice time step
318      !!          This avoids mutiple average to pass from T -> U,V grids and next from U,V grids
319      !!          to T grid. taum is used in TKE and GLS, which should not be too sensitive to this approximaton...
320      !!
321      !! ** Outputs : - utau, vtau   : surface ocean i- and j-stress (u- & v-pts) updated with ice-ocean fluxes
322      !!              - taum         : modulus of the surface ocean stress (T-point) updated with ice-ocean fluxes
323      !!---------------------------------------------------------------------
324      INTEGER ,                     INTENT(in) ::   kt               ! ocean time-step index
325      REAL(wp), DIMENSION(jpi,jpj), INTENT(in) ::   pu_oce, pv_oce   ! surface ocean currents
326      !!
327      INTEGER  ::   ji, jj   ! dummy loop indices
328      REAL(wp) ::   zat_u, zutau_ice, zu_t, zmodt   ! local scalar
329      REAL(wp) ::   zat_v, zvtau_ice, zv_t          !   -      -
330      !!---------------------------------------------------------------------
331      !
332      IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN     !==  Ice time-step only  ==!   (i.e. surface module time-step)
333!CDIR NOVERRCHK
334         DO jj = 2, jpjm1                             !* update the modulus of stress at ocean surface (T-point)
335!CDIR NOVERRCHK
336            DO ji = fs_2, fs_jpim1
337               !                                               ! 2*(U_ice-U_oce) at T-point
338               zu_t = u_ice(ji,jj) + u_ice(ji-1,jj) - u_oce(ji,jj) - u_oce(ji-1,jj)   
339               zv_t = v_ice(ji,jj) + v_ice(ji,jj-1) - v_oce(ji,jj) - v_oce(ji,jj-1) 
340               !                                              ! |U_ice-U_oce|^2
341               zmodt =  0.25_wp * (  zu_t * zu_t + zv_t * zv_t  )
342               !                                               ! update the ocean stress modulus
343               taum(ji,jj) = ( 1._wp - at_i(ji,jj) ) * taum(ji,jj) + at_i(ji,jj) * rhoco * zmodt
344               tmod_io(ji,jj) = rhoco * SQRT( zmodt )          ! rhoco * |U_ice-U_oce| at T-point
345            END DO
346         END DO
347         CALL lbc_lnk( taum, 'T', 1. )   ;   CALL lbc_lnk( tmod_io, 'T', 1. )
348         !
349         utau_oce(:,:) = utau(:,:)                    !* save the air-ocean stresses at ice time-step
350         vtau_oce(:,:) = vtau(:,:)
351         !
352      ENDIF
353      !
354      !                                      !==  every ocean time-step  ==!
355      !
356      DO jj = 2, jpjm1                                !* update the stress WITHOUT a ice-ocean rotation angle
357         DO ji = fs_2, fs_jpim1   ! Vect. Opt.
358            zat_u  = ( at_i(ji,jj) + at_i(ji+1,jj) ) * 0.5_wp   ! ice area at u and V-points
359            zat_v  = ( at_i(ji,jj) + at_i(ji,jj+1) ) * 0.5_wp
360            !                                                   ! linearized quadratic drag formulation
361            zutau_ice   = 0.5_wp * ( tmod_io(ji,jj) + tmod_io(ji+1,jj) ) * ( u_ice(ji,jj) - pu_oce(ji,jj) )
362            zvtau_ice   = 0.5_wp * ( tmod_io(ji,jj) + tmod_io(ji,jj+1) ) * ( v_ice(ji,jj) - pv_oce(ji,jj) )
363            !                                                   ! stresses at the ocean surface
364            utau(ji,jj) = ( 1._wp - zat_u ) * utau_oce(ji,jj) + zat_u * zutau_ice
365            vtau(ji,jj) = ( 1._wp - zat_v ) * vtau_oce(ji,jj) + zat_v * zvtau_ice
366         END DO
367      END DO
368      CALL lbc_lnk( utau, 'U', -1. )   ;   CALL lbc_lnk( vtau, 'V', -1. )   ! lateral boundary condition
369      !
370      IF(ln_ctl)   CALL prt_ctl( tab2d_1=utau, clinfo1=' lim_sbc: utau   : ', mask1=umask,   &
371         &                       tab2d_2=vtau, clinfo2=' vtau    : '        , mask2=vmask )
372     
373   END SUBROUTINE lim_sbc_tau
374
375
376   SUBROUTINE lim_sbc_init
377      !!-------------------------------------------------------------------
378      !!                  ***  ROUTINE lim_sbc_init  ***
379      !!             
380      !! ** Purpose : Preparation of the file ice_evolu for the output of
381      !!      the temporal evolution of key variables
382      !!
383      !! ** input   : Namelist namicedia
384      !!-------------------------------------------------------------------
385      !
386      IF(lwp) WRITE(numout,*)
387      IF(lwp) WRITE(numout,*) 'lim_sbc_init : LIM-3 sea-ice - surface boundary condition'
388      IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~   '
389
390      !                                      ! allocate lim_sbc array
391      IF( lim_sbc_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'lim_sbc_init : unable to allocate standard arrays' )
392      !
393      r1_rdtice = 1. / rdt_ice
394      !
395      soce_0(:,:) = soce                     ! constant SSS and ice salinity used in levitating sea-ice case
396      sice_0(:,:) = sice
397      !
398      IF( cp_cfg == "orca" ) THEN            ! decrease ocean & ice reference salinities in the Baltic sea
399         WHERE( 14._wp <= glamt(:,:) .AND. glamt(:,:) <= 32._wp .AND.   &
400            &   54._wp <= gphit(:,:) .AND. gphit(:,:) <= 66._wp         ) 
401            soce_0(:,:) = 4._wp
402            sice_0(:,:) = 2._wp
403         END WHERE
404      ENDIF
405      !
406   END SUBROUTINE lim_sbc_init
407
408#else
409   !!----------------------------------------------------------------------
410   !!   Default option :        Dummy module       NO LIM 3.0 sea-ice model
411   !!----------------------------------------------------------------------
412CONTAINS
413   SUBROUTINE lim_sbc           ! Dummy routine
414   END SUBROUTINE lim_sbc
415#endif 
416
417   !!======================================================================
418END MODULE limsbc
Note: See TracBrowser for help on using the repository browser.