[3] | 1 | MODULE limistate |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE limistate *** |
---|
| 4 | !! Initialisation of diagnostics ice variables |
---|
| 5 | !!====================================================================== |
---|
| 6 | #if defined key_ice_lim |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! 'key_ice_lim' : LIM sea-ice model |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
| 10 | !! lim_istate : Initialisation of diagnostics ice variables |
---|
| 11 | !! lim_istate_init : initialization of ice state and namelist read |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! * Modules used |
---|
| 14 | USE phycst |
---|
| 15 | USE ocfzpt |
---|
| 16 | USE oce ! dynamics and tracers variables |
---|
| 17 | USE dom_oce |
---|
[77] | 18 | USE par_ice ! ice parameters |
---|
[3] | 19 | USE ice_oce ! ice variables |
---|
| 20 | USE in_out_manager |
---|
| 21 | USE dom_ice |
---|
| 22 | USE ice |
---|
| 23 | USE lbclnk |
---|
| 24 | |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | PRIVATE |
---|
| 27 | |
---|
| 28 | !! * Accessibility |
---|
| 29 | PUBLIC lim_istate ! routine called by lim_init.F90 |
---|
| 30 | |
---|
| 31 | !! * Module variables |
---|
| 32 | REAL(wp) :: & !!! ** init namelist (namiceini) ** |
---|
| 33 | ttest = 2.0 , & ! threshold water temperature for initial sea ice |
---|
| 34 | hninn = 0.5 , & ! initial snow thickness in the north |
---|
| 35 | hginn = 3.0 , & ! initial ice thickness in the north |
---|
| 36 | alinn = 0.05 , & ! initial leads area in the north |
---|
| 37 | hnins = 0.1 , & ! initial snow thickness in the south |
---|
| 38 | hgins = 1.0 , & ! initial ice thickness in the south |
---|
| 39 | alins = 0.1 ! initial leads area in the south |
---|
| 40 | |
---|
[77] | 41 | REAL(wp) :: & ! constant values |
---|
| 42 | zzero = 0.e0 , & |
---|
| 43 | zone = 1.e0 |
---|
[3] | 44 | !!---------------------------------------------------------------------- |
---|
[247] | 45 | !! LIM 2.0, UCL-LOCEAN-IPSL (2005) |
---|
| 46 | !! $Header$ |
---|
| 47 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
[3] | 48 | !!---------------------------------------------------------------------- |
---|
| 49 | |
---|
| 50 | CONTAINS |
---|
| 51 | |
---|
| 52 | SUBROUTINE lim_istate |
---|
| 53 | !!------------------------------------------------------------------- |
---|
| 54 | !! *** ROUTINE lim_istate *** |
---|
| 55 | !! |
---|
[77] | 56 | !! ** Purpose : defined the sea-ice initial state |
---|
| 57 | !! |
---|
| 58 | !! ** Method : restart from a state defined in a binary file |
---|
| 59 | !! or from arbitrary sea-ice conditions |
---|
| 60 | !! |
---|
[3] | 61 | !! History : |
---|
| 62 | !! 2.0 ! 01-04 (C. Ethe, G. Madec) Original code |
---|
| 63 | !!-------------------------------------------------------------------- |
---|
| 64 | !! * Local variables |
---|
| 65 | INTEGER :: ji, jj, jk ! dummy loop indices |
---|
| 66 | REAL(wp) :: zidto, & ! temporary scalar |
---|
| 67 | zs0, ztf, zbin |
---|
| 68 | REAL(wp), DIMENSION(jpi,jpj) :: & |
---|
| 69 | ztn |
---|
| 70 | !-------------------------------------------------------------------- |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | CALL lim_istate_init ! reading the initials parameters of the ice |
---|
| 74 | |
---|
| 75 | !-- Initialisation of sst,sss,u,v do i=1,jpi |
---|
| 76 | u_io(:,:) = 0.e0 ! ice velocity in x direction |
---|
| 77 | v_io(:,:) = 0.e0 ! ice velocity in y direction |
---|
| 78 | |
---|
| 79 | ! Initialisation at tn or -2 if ice |
---|
| 80 | DO jj = 1, jpj |
---|
| 81 | DO ji = 1, jpi |
---|
| 82 | zbin = MAX( 0., SIGN( 1., fzptn(ji,jj) - tn(ji,jj,1) ) ) |
---|
| 83 | ztn(ji,jj) = ( (1.-zbin) * tn(ji,jj,1) - 2. * zbin + rt0 ) * tmask(ji,jj,1) |
---|
| 84 | END DO |
---|
| 85 | END DO |
---|
| 86 | |
---|
| 87 | |
---|
[77] | 88 | u_io (:,:) = 0.e0 |
---|
| 89 | v_io (:,:) = 0.e0 |
---|
[3] | 90 | sst_io(:,:) = ( nfice - 1 ) * ( tn(:,:,1) + rt0 ) ! use the ocean initial values |
---|
| 91 | sss_io(:,:) = ( nfice - 1 ) * sn(:,:,1) ! tricky trick *(nfice-1) ! |
---|
| 92 | |
---|
| 93 | ! reference salinity 34psu |
---|
| 94 | zs0 = 34.e0 |
---|
| 95 | ztf = ABS ( rt0 - 0.0575 * zs0 & |
---|
| 96 | & + 1.710523e-03 * zs0 * SQRT( zs0 ) & |
---|
| 97 | & - 2.154996e-04 * zs0 *zs0 ) |
---|
| 98 | |
---|
| 99 | ! tfu: Melting point of sea water |
---|
| 100 | tfu(:,:) = ztf |
---|
| 101 | |
---|
[77] | 102 | DO jj = 1, jpj |
---|
| 103 | DO ji = 1, jpi |
---|
[3] | 104 | !--- Criterion for presence (zidto=1) or absence (zidto=0) of ice |
---|
| 105 | zidto = tms(ji,jj) * ( 1.0 - MAX(zzero, SIGN( zone, ztn(ji,jj) - tfu(ji,jj) - ttest) ) ) |
---|
| 106 | |
---|
[77] | 107 | IF( fcor(ji,jj) >= 0.e0 ) THEN !-- Northern hemisphere. |
---|
| 108 | hicif(ji,jj) = zidto * hginn |
---|
| 109 | frld(ji,jj) = zidto * alinn + ( 1.0 - zidto ) * 1.0 |
---|
| 110 | hsnif(ji,jj) = zidto * hninn |
---|
| 111 | ELSE !--- Southern hemisphere. |
---|
| 112 | hicif(ji,jj) = zidto * hgins |
---|
| 113 | frld(ji,jj) = zidto * alins + ( 1.0 - zidto ) * 1.0 |
---|
| 114 | hsnif(ji,jj) = zidto * hnins |
---|
| 115 | ENDIF |
---|
| 116 | END DO |
---|
| 117 | END DO |
---|
[3] | 118 | |
---|
| 119 | sist (:,:) = tfu(:,:) |
---|
| 120 | tbif (:,:,1) = tfu(:,:) |
---|
| 121 | tbif (:,:,2) = tfu(:,:) |
---|
| 122 | tbif (:,:,3) = tfu(:,:) |
---|
| 123 | fsbbq (:,:) = 0.e0 |
---|
| 124 | qstoif(:,:) = 0.e0 |
---|
| 125 | u_ice (:,:) = 0.e0 |
---|
| 126 | v_ice (:,:) = 0.e0 |
---|
| 127 | # if defined key_coupled |
---|
| 128 | albege(:,:) = 0.8 * tms(:,:) |
---|
| 129 | # endif |
---|
| 130 | |
---|
[77] | 131 | !--- Moments for advection. |
---|
[3] | 132 | |
---|
[77] | 133 | sxice (:,:) = 0.e0 ; sxsn (:,:) = 0.e0 ; sxa (:,:) = 0.e0 |
---|
| 134 | syice (:,:) = 0.e0 ; sysn (:,:) = 0.e0 ; sya (:,:) = 0.e0 |
---|
| 135 | sxxice(:,:) = 0.e0 ; sxxsn(:,:) = 0.e0 ; sxxa (:,:) = 0.e0 |
---|
| 136 | syyice(:,:) = 0.e0 ; syysn(:,:) = 0.e0 ; syya (:,:) = 0.e0 |
---|
| 137 | sxyice(:,:) = 0.e0 ; sxysn(:,:) = 0.e0 ; sxya (:,:) = 0.e0 |
---|
[3] | 138 | |
---|
[77] | 139 | sxc0 (:,:) = 0.e0 ; sxc1 (:,:) = 0.e0 ; sxc2 (:,:) = 0.e0 |
---|
| 140 | syc0 (:,:) = 0.e0 ; syc1 (:,:) = 0.e0 ; syc2 (:,:) = 0.e0 |
---|
| 141 | sxxc0 (:,:) = 0.e0 ; sxxc1(:,:) = 0.e0 ; sxxc2(:,:) = 0.e0 |
---|
| 142 | syyc0 (:,:) = 0.e0 ; syyc1(:,:) = 0.e0 ; syyc2(:,:) = 0.e0 |
---|
| 143 | sxyc0 (:,:) = 0.e0 ; sxyc1(:,:) = 0.e0 ; sxyc2(:,:) = 0.e0 |
---|
[3] | 144 | |
---|
[77] | 145 | sxst (:,:) = 0.e0 |
---|
| 146 | syst (:,:) = 0.e0 |
---|
| 147 | sxxst (:,:) = 0.e0 |
---|
| 148 | syyst (:,:) = 0.e0 |
---|
| 149 | sxyst (:,:) = 0.e0 |
---|
[3] | 150 | |
---|
[77] | 151 | !-- lateral boundary conditions |
---|
| 152 | CALL lbc_lnk( hicif, 'T', 1. ) |
---|
| 153 | CALL lbc_lnk( frld , 'T', 1. ) |
---|
[3] | 154 | !i bug frld = 1 over land |
---|
[77] | 155 | frld(:,:) = tms(:,:) * frld(:,:) + ( 1. - tms(:,:) ) ! put 1 over land |
---|
[3] | 156 | !i |
---|
[77] | 157 | CALL lbc_lnk( hsnif, 'T', 1. ) |
---|
| 158 | CALL lbc_lnk( sist , 'T', 1. ) |
---|
| 159 | DO jk = 1, jplayersp1 |
---|
| 160 | CALL lbc_lnk(tbif(:,:,jk), 'T', 1. ) |
---|
| 161 | END DO |
---|
| 162 | CALL lbc_lnk( fsbbq , 'T', 1. ) |
---|
| 163 | CALL lbc_lnk( qstoif , 'T', 1. ) |
---|
| 164 | CALL lbc_lnk( sss_io , 'T', 1. ) |
---|
[3] | 165 | |
---|
| 166 | END SUBROUTINE lim_istate |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | SUBROUTINE lim_istate_init |
---|
| 170 | !!------------------------------------------------------------------- |
---|
| 171 | !! *** ROUTINE lim_istate_init *** |
---|
| 172 | !! |
---|
[77] | 173 | !! ** Purpose : Definition of initial state of the ice |
---|
[3] | 174 | !! |
---|
[77] | 175 | !! ** Method : Read the namiceini namelist and check the parameter |
---|
[3] | 176 | !! values called at the first timestep (nit000) |
---|
| 177 | !! |
---|
[77] | 178 | !! ** input : Namelist namiceini |
---|
[3] | 179 | !! |
---|
[77] | 180 | !! history |
---|
[3] | 181 | !! 8.5 ! 03-08 (C. Ethe) original code |
---|
| 182 | !!------------------------------------------------------------------- |
---|
| 183 | NAMELIST/namiceini/ ttest, hninn, hginn, alinn, hnins, hgins, alins |
---|
| 184 | !!------------------------------------------------------------------- |
---|
| 185 | |
---|
[77] | 186 | ! Read Namelist namiceini |
---|
[3] | 187 | |
---|
| 188 | REWIND ( numnam_ice ) |
---|
| 189 | READ ( numnam_ice , namiceini ) |
---|
| 190 | IF(lwp) THEN |
---|
| 191 | WRITE(numout,*) |
---|
| 192 | WRITE(numout,*) 'lim_istate_init : ice parameters inititialisation ' |
---|
| 193 | WRITE(numout,*) '~~~~~~~~~~~~~~~' |
---|
[77] | 194 | WRITE(numout,*) ' threshold water temp. for initial sea-ice ttest = ', ttest |
---|
| 195 | WRITE(numout,*) ' initial snow thickness in the north hninn = ', hninn |
---|
| 196 | WRITE(numout,*) ' initial ice thickness in the north hginn = ', hginn |
---|
| 197 | WRITE(numout,*) ' initial leads area in the north alinn = ', alinn |
---|
| 198 | WRITE(numout,*) ' initial snow thickness in the south hnins = ', hnins |
---|
| 199 | WRITE(numout,*) ' initial ice thickness in the south hgins = ', hgins |
---|
| 200 | WRITE(numout,*) ' initial leads area in the south alins = ', alins |
---|
[3] | 201 | ENDIF |
---|
| 202 | |
---|
| 203 | END SUBROUTINE lim_istate_init |
---|
| 204 | |
---|
| 205 | #else |
---|
| 206 | !!---------------------------------------------------------------------- |
---|
| 207 | !! Default option : Empty module NO LIM sea-ice model |
---|
| 208 | !!---------------------------------------------------------------------- |
---|
| 209 | CONTAINS |
---|
| 210 | SUBROUTINE lim_istate ! Empty routine |
---|
| 211 | END SUBROUTINE lim_istate |
---|
| 212 | #endif |
---|
| 213 | |
---|
| 214 | !!====================================================================== |
---|
| 215 | END MODULE limistate |
---|