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.
limdyn.F90 in branches/UKMO/r8395_cpl_tauwav/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

source: branches/UKMO/r8395_cpl_tauwav/NEMOGCM/NEMO/LIM_SRC_3/limdyn.F90 @ 12286

Last change on this file since 12286 was 12286, checked in by jcastill, 4 years ago

Remove svn keywords

File size: 7.9 KB
Line 
1MODULE limdyn
2   !!======================================================================
3   !!                     ***  MODULE  limdyn  ***
4   !!   Sea-Ice dynamics : 
5   !!======================================================================
6   !! history :  1.0  ! 2002-08  (C. Ethe, G. Madec)  original VP code
7   !!            3.0  ! 2007-03  (MA Morales Maqueda, S. Bouillon, M. Vancoppenolle)  LIM3: EVP-Cgrid
8   !!            3.5  ! 2011-02  (G. Madec) dynamical allocation
9   !!----------------------------------------------------------------------
10#if defined key_lim3
11   !!----------------------------------------------------------------------
12   !!   'key_lim3' :                                 LIM3 sea-ice model
13   !!----------------------------------------------------------------------
14   !!    lim_dyn      : computes ice velocities
15   !!    lim_dyn_init : initialization and namelist read
16   !!----------------------------------------------------------------------
17   USE phycst           ! physical constants
18   USE dom_oce          ! ocean space and time domain
19   USE sbc_ice          ! Surface boundary condition: ice   fields
20   USE ice              ! LIM-3 variables
21   USE limrhg           ! LIM-3 rheology
22   USE lbclnk           ! lateral boundary conditions - MPP exchanges
23   USE lib_mpp          ! MPP library
24   USE wrk_nemo         ! work arrays
25   USE in_out_manager   ! I/O manager
26   USE lib_fortran      ! glob_sum
27   USE timing           ! Timing
28   USE limcons          ! conservation tests
29   USE limctl           ! control prints
30   USE limvar
31
32   IMPLICIT NONE
33   PRIVATE
34
35   PUBLIC   lim_dyn        ! routine called by sbcice_lim.F90
36   PUBLIC   lim_dyn_init   ! routine called by sbcice_lim.F90
37
38   !! * Substitutions
39#  include "vectopt_loop_substitute.h90"
40   !!----------------------------------------------------------------------
41   !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011)
42   !! $Id$
43   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
44   !!----------------------------------------------------------------------
45CONTAINS
46
47   SUBROUTINE lim_dyn( kt )
48      !!-------------------------------------------------------------------
49      !!               ***  ROUTINE lim_dyn  ***
50      !!               
51      !! ** Purpose :   compute ice velocity
52      !!               
53      !! ** Method  :
54      !!
55      !! ** Action  : - Initialisation
56      !!              - Call of the dynamic routine for each hemisphere
57      !!------------------------------------------------------------------------------------
58      INTEGER, INTENT(in) ::   kt     ! number of iteration
59      !!
60      INTEGER  :: jl, jk ! dummy loop indices
61      REAL(wp) :: zvi_b, zsmv_b, zei_b, zfs_b, zfw_b, zft_b 
62     !!---------------------------------------------------------------------
63
64      IF( nn_timing == 1 )  CALL timing_start('limdyn')
65
66      CALL lim_var_agg(1)                      ! aggregate ice categories
67      !
68      ! conservation test
69      IF( ln_limdiachk ) CALL lim_cons_hsm(0, 'limdyn', zvi_b, zsmv_b, zei_b, zfw_b, zfs_b, zft_b)
70     
71      ! ice velocities before rheology
72      u_ice_b(:,:) = u_ice(:,:) * umask(:,:,1)
73      v_ice_b(:,:) = v_ice(:,:) * vmask(:,:,1)
74     
75      ! Landfast ice parameterization: define max bottom friction
76      tau_icebfr(:,:) = 0._wp
77      IF( ln_landfast ) THEN
78         DO jl = 1, jpl
79            WHERE( ht_i(:,:,jl) > ht_n(:,:) * rn_gamma )  tau_icebfr(:,:) = tau_icebfr(:,:) + a_i(:,:,jl) * rn_icebfr
80         END DO
81      ENDIF
82     
83      ! Rheology (ice dynamics)
84      ! ========     
85      CALL lim_rhg
86      !
87      ! conservation test
88      IF( ln_limdiachk ) CALL lim_cons_hsm(1, 'limdyn', zvi_b, zsmv_b, zei_b, zfw_b, zfs_b, zft_b)
89
90      ! Control prints
91      IF( ln_ctl )       CALL lim_prt3D( 'limdyn' )
92      !
93      IF( nn_timing == 1 )  CALL timing_stop('limdyn')
94
95   END SUBROUTINE lim_dyn
96
97
98   SUBROUTINE lim_dyn_init
99      !!-------------------------------------------------------------------
100      !!                  ***  ROUTINE lim_dyn_init  ***
101      !!
102      !! ** Purpose : Physical constants and parameters linked to the ice
103      !!      dynamics
104      !!
105      !! ** Method  :  Read the namicedyn namelist and check the ice-dynamic
106      !!       parameter values called at the first timestep (nit000)
107      !!
108      !! ** input   :   Namelist namicedyn
109      !!-------------------------------------------------------------------
110      INTEGER  ::   ios                 ! Local integer output status for namelist read
111      NAMELIST/namicedyn/ nn_limadv, nn_limadv_ord,  &
112         &                nn_icestr, ln_icestr_bvf, rn_pe_rdg, rn_pstar, rn_crhg, rn_cio, rn_creepl, rn_ecc, &
113         &                nn_nevp, rn_relast, ln_landfast, rn_gamma, rn_icebfr, rn_lfrelax
114      !!-------------------------------------------------------------------
115
116      REWIND( numnam_ice_ref )              ! Namelist namicedyn in reference namelist : Ice dynamics
117      READ  ( numnam_ice_ref, namicedyn, IOSTAT = ios, ERR = 901)
118901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicedyn in reference namelist', lwp )
119
120      REWIND( numnam_ice_cfg )              ! Namelist namicedyn in configuration namelist : Ice dynamics
121      READ  ( numnam_ice_cfg, namicedyn, IOSTAT = ios, ERR = 902 )
122902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicedyn in configuration namelist', lwp )
123      IF(lwm) WRITE ( numoni, namicedyn )
124     
125      IF(lwp) THEN                        ! control print
126         WRITE(numout,*)
127         WRITE(numout,*) 'lim_dyn_init : ice parameters for ice dynamics '
128         WRITE(numout,*) '~~~~~~~~~~~~'
129         ! limtrp
130         WRITE(numout,*)'    choose the advection scheme (-1=Prather, 0=Ulimate-Macho)   nn_limadv     = ', nn_limadv 
131         WRITE(numout,*)'    choose the order of the scheme (if ultimate)                nn_limadv_ord = ', nn_limadv_ord 
132         ! limrhg
133         WRITE(numout,*)'    ice strength parameterization (0=Hibler 1=Rothrock)         nn_icestr     = ', nn_icestr 
134         WRITE(numout,*)'    Including brine volume in ice strength comp.                ln_icestr_bvf = ', ln_icestr_bvf
135         WRITE(numout,*)'    Ratio of ridging work to PotEner change in ridging          rn_pe_rdg     = ', rn_pe_rdg 
136         WRITE(numout,*) '   drag coefficient for oceanic stress                         rn_cio        = ', rn_cio
137         WRITE(numout,*) '   first bulk-rheology parameter                               rn_pstar      = ', rn_pstar
138         WRITE(numout,*) '   second bulk-rhelogy parameter                               rn_crhg       = ', rn_crhg
139         WRITE(numout,*) '   creep limit                                                 rn_creepl     = ', rn_creepl
140         WRITE(numout,*) '   eccentricity of the elliptical yield curve                  rn_ecc        = ', rn_ecc
141         WRITE(numout,*) '   number of iterations for subcycling                         nn_nevp       = ', nn_nevp
142         WRITE(numout,*) '   ratio of elastic timescale over ice time step               rn_relast     = ', rn_relast
143         WRITE(numout,*) '   Landfast: param (T or F)                                    ln_landfast   = ', ln_landfast
144         WRITE(numout,*) '   Landfast: fraction of ocean depth that ice must reach       rn_gamma      = ', rn_gamma
145         WRITE(numout,*) '   Landfast: maximum bottom stress per unit area of contact    rn_icebfr     = ', rn_icebfr
146         WRITE(numout,*) '   Landfast: relax time scale (s-1) to reach static friction   rn_lfrelax    = ', rn_lfrelax
147      ENDIF
148      !
149   END SUBROUTINE lim_dyn_init
150
151#else
152   !!----------------------------------------------------------------------
153   !!   Default option          Empty module           NO LIM sea-ice model
154   !!----------------------------------------------------------------------
155CONTAINS
156   SUBROUTINE lim_dyn         ! Empty routine
157   END SUBROUTINE lim_dyn
158#endif 
159
160   !!======================================================================
161END MODULE limdyn
Note: See TracBrowser for help on using the repository browser.