[825] | 1 | MODULE limdyn |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE limdyn *** |
---|
| 4 | !! Sea-Ice dynamics : |
---|
| 5 | !!====================================================================== |
---|
[2715] | 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 |
---|
[5123] | 8 | !! 3.5 ! 2011-02 (G. Madec) dynamical allocation |
---|
[2528] | 9 | !!---------------------------------------------------------------------- |
---|
[825] | 10 | #if defined key_lim3 |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
[834] | 12 | !! 'key_lim3' : LIM3 sea-ice model |
---|
[825] | 13 | !!---------------------------------------------------------------------- |
---|
| 14 | !! lim_dyn : computes ice velocities |
---|
| 15 | !! lim_dyn_init : initialization and namelist read |
---|
| 16 | !!---------------------------------------------------------------------- |
---|
[4161] | 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 |
---|
[7421] | 27 | USE timing ! Timing |
---|
| 28 | USE limcons ! conservation tests |
---|
| 29 | USE limctl ! control prints |
---|
[5123] | 30 | USE limvar |
---|
[825] | 31 | |
---|
| 32 | IMPLICIT NONE |
---|
| 33 | PRIVATE |
---|
| 34 | |
---|
[7421] | 35 | PUBLIC lim_dyn ! routine called by sbcice_lim.F90 |
---|
| 36 | PUBLIC lim_dyn_init ! routine called by sbcice_lim.F90 |
---|
[825] | 37 | |
---|
[868] | 38 | !! * Substitutions |
---|
| 39 | # include "vectopt_loop_substitute.h90" |
---|
[825] | 40 | !!---------------------------------------------------------------------- |
---|
[4161] | 41 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) |
---|
[1156] | 42 | !! $Id$ |
---|
[2528] | 43 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[825] | 44 | !!---------------------------------------------------------------------- |
---|
| 45 | CONTAINS |
---|
| 46 | |
---|
[921] | 47 | SUBROUTINE lim_dyn( kt ) |
---|
[825] | 48 | !!------------------------------------------------------------------- |
---|
| 49 | !! *** ROUTINE lim_dyn *** |
---|
| 50 | !! |
---|
[7421] | 51 | !! ** Purpose : compute ice velocity |
---|
[825] | 52 | !! |
---|
| 53 | !! ** Method : |
---|
| 54 | !! |
---|
| 55 | !! ** Action : - Initialisation |
---|
| 56 | !! - Call of the dynamic routine for each hemisphere |
---|
| 57 | !!------------------------------------------------------------------------------------ |
---|
[921] | 58 | INTEGER, INTENT(in) :: kt ! number of iteration |
---|
[2528] | 59 | !! |
---|
[7421] | 60 | INTEGER :: jl, jk ! dummy loop indices |
---|
[4688] | 61 | REAL(wp) :: zvi_b, zsmv_b, zei_b, zfs_b, zfw_b, zft_b |
---|
[4161] | 62 | !!--------------------------------------------------------------------- |
---|
[825] | 63 | |
---|
[4161] | 64 | IF( nn_timing == 1 ) CALL timing_start('limdyn') |
---|
| 65 | |
---|
[7421] | 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 |
---|
[863] | 78 | DO jl = 1, jpl |
---|
[7421] | 79 | WHERE( ht_i(:,:,jl) > ht_n(:,:) * rn_gamma ) tau_icebfr(:,:) = tau_icebfr(:,:) + a_i(:,:,jl) * rn_icebfr |
---|
[863] | 80 | END DO |
---|
[825] | 81 | ENDIF |
---|
[7421] | 82 | |
---|
| 83 | ! Rheology (ice dynamics) |
---|
| 84 | ! ======== |
---|
| 85 | CALL lim_rhg |
---|
[2528] | 86 | ! |
---|
[7421] | 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' ) |
---|
[2715] | 92 | ! |
---|
[4161] | 93 | IF( nn_timing == 1 ) CALL timing_stop('limdyn') |
---|
| 94 | |
---|
[825] | 95 | END SUBROUTINE lim_dyn |
---|
| 96 | |
---|
[2528] | 97 | |
---|
[921] | 98 | SUBROUTINE lim_dyn_init |
---|
[825] | 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 | !!------------------------------------------------------------------- |
---|
[4147] | 110 | INTEGER :: ios ! Local integer output status for namelist read |
---|
[7421] | 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 |
---|
[825] | 114 | !!------------------------------------------------------------------- |
---|
| 115 | |
---|
[4147] | 116 | REWIND( numnam_ice_ref ) ! Namelist namicedyn in reference namelist : Ice dynamics |
---|
| 117 | READ ( numnam_ice_ref, namicedyn, IOSTAT = ios, ERR = 901) |
---|
| 118 | 901 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 ) |
---|
| 122 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicedyn in configuration namelist', lwp ) |
---|
[4624] | 123 | IF(lwm) WRITE ( numoni, namicedyn ) |
---|
[2528] | 124 | |
---|
| 125 | IF(lwp) THEN ! control print |
---|
[825] | 126 | WRITE(numout,*) |
---|
| 127 | WRITE(numout,*) 'lim_dyn_init : ice parameters for ice dynamics ' |
---|
| 128 | WRITE(numout,*) '~~~~~~~~~~~~' |
---|
[7421] | 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 |
---|
[825] | 147 | ENDIF |
---|
[2528] | 148 | ! |
---|
[825] | 149 | END SUBROUTINE lim_dyn_init |
---|
| 150 | |
---|
| 151 | #else |
---|
| 152 | !!---------------------------------------------------------------------- |
---|
| 153 | !! Default option Empty module NO LIM sea-ice model |
---|
| 154 | !!---------------------------------------------------------------------- |
---|
| 155 | CONTAINS |
---|
| 156 | SUBROUTINE lim_dyn ! Empty routine |
---|
| 157 | END SUBROUTINE lim_dyn |
---|
| 158 | #endif |
---|
| 159 | |
---|
| 160 | !!====================================================================== |
---|
| 161 | END MODULE limdyn |
---|