[3] | 1 | MODULE iceini |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE iceini *** |
---|
| 4 | !! Sea-ice model : LIM Sea ice model Initialization |
---|
| 5 | !!====================================================================== |
---|
[508] | 6 | !! History : 1.0 ! 02-08 (G. Madec) F90: Free form and modules |
---|
| 7 | !! 2.0 ! 03-08 (C. Ethe) add ice_run |
---|
| 8 | !!---------------------------------------------------------------------- |
---|
[3] | 9 | #if defined key_ice_lim |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | !! 'key_ice_lim' : LIM sea-ice model |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
[508] | 13 | !!---------------------------------------------------------------------- |
---|
[3] | 14 | !! ice_init : sea-ice model initialization |
---|
[508] | 15 | !! ice_run : Definition some run parameter for ice model |
---|
[3] | 16 | !!---------------------------------------------------------------------- |
---|
| 17 | USE dom_oce |
---|
| 18 | USE in_out_manager |
---|
| 19 | USE ice_oce ! ice variables |
---|
| 20 | USE flx_oce |
---|
| 21 | USE phycst ! Define parameters for the routines |
---|
| 22 | USE ocfzpt |
---|
| 23 | USE ice |
---|
| 24 | USE limmsh |
---|
| 25 | USE limistate |
---|
[508] | 26 | USE limrst |
---|
[253] | 27 | USE ini1d ! initialization of the 1D configuration |
---|
[508] | 28 | |
---|
[3] | 29 | IMPLICIT NONE |
---|
| 30 | PRIVATE |
---|
| 31 | |
---|
[508] | 32 | PUBLIC ice_init ! called by opa.F90 |
---|
[3] | 33 | |
---|
[508] | 34 | LOGICAL , PUBLIC :: ln_limdyn = .TRUE. !: flag for ice dynamics (T) or not (F) |
---|
| 35 | REAL(wp), PUBLIC :: hsndif = 0.e0 !: computation of temp. in snow (0) or not (9999) |
---|
| 36 | REAL(wp), PUBLIC :: hicdif = 0.e0 !: computation of temp. in ice (0) or not (9999) |
---|
| 37 | REAL(wp), PUBLIC, DIMENSION(2) :: acrit = (/ 1.e-06 , 1.e-06 /) !: minimum fraction for leads in |
---|
| 38 | ! ! north and south hemisphere |
---|
[3] | 39 | !!---------------------------------------------------------------------- |
---|
[247] | 40 | !! LIM 2.0, UCL-LOCEAN-IPSL (2005) |
---|
| 41 | !! $Header$ |
---|
| 42 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
[3] | 43 | !!---------------------------------------------------------------------- |
---|
| 44 | |
---|
| 45 | CONTAINS |
---|
| 46 | |
---|
| 47 | SUBROUTINE ice_init |
---|
| 48 | !!---------------------------------------------------------------------- |
---|
| 49 | !! *** ROUTINE ice_init *** |
---|
| 50 | !! |
---|
| 51 | !! ** purpose : |
---|
| 52 | !!---------------------------------------------------------------------- |
---|
[508] | 53 | CHARACTER(len=80) :: namelist_icename |
---|
| 54 | !!---------------------------------------------------------------------- |
---|
| 55 | ! |
---|
[3] | 56 | ! Open the namelist file |
---|
[391] | 57 | namelist_icename = 'namelist_ice' |
---|
| 58 | CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL', & |
---|
| 59 | 1,numout,.FALSE.,1) |
---|
[3] | 60 | CALL ice_run ! read in namelist some run parameters |
---|
| 61 | |
---|
| 62 | ! Louvain la Neuve Ice model |
---|
| 63 | IF( nacc == 1 ) THEN |
---|
| 64 | dtsd2 = nfice * rdtmin * 0.5 |
---|
| 65 | rdt_ice = nfice * rdtmin |
---|
| 66 | ELSE |
---|
| 67 | dtsd2 = nfice * rdt * 0.5 |
---|
| 68 | rdt_ice = nfice * rdt |
---|
| 69 | ENDIF |
---|
| 70 | |
---|
| 71 | CALL lim_msh ! ice mesh initialization |
---|
| 72 | |
---|
| 73 | ! Initial sea-ice state |
---|
| 74 | IF( .NOT.ln_rstart ) THEN |
---|
| 75 | CALL lim_istate ! start from rest: sea-ice deduced from sst |
---|
| 76 | ELSE |
---|
[508] | 77 | CALL lim_rst_read ! start from a restart file |
---|
[3] | 78 | ENDIF |
---|
| 79 | |
---|
| 80 | tn_ice(:,:) = sist(:,:) ! initialisation of ice temperature |
---|
| 81 | freeze(:,:) = 1.0 - frld(:,:) ! initialisation of sea/ice cover |
---|
| 82 | # if defined key_coupled |
---|
| 83 | alb_ice(:,:) = albege(:,:) ! sea-ice albedo |
---|
| 84 | # endif |
---|
[508] | 85 | ! |
---|
[3] | 86 | END SUBROUTINE ice_init |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | SUBROUTINE ice_run |
---|
| 90 | !!------------------------------------------------------------------- |
---|
| 91 | !! *** ROUTINE ice_run *** |
---|
| 92 | !! |
---|
| 93 | !! ** Purpose : Definition some run parameter for ice model |
---|
| 94 | !! |
---|
| 95 | !! ** Method : Read the namicerun namelist and check the parameter |
---|
| 96 | !! values called at the first timestep (nit000) |
---|
| 97 | !! |
---|
| 98 | !! ** input : Namelist namicerun |
---|
| 99 | !!------------------------------------------------------------------- |
---|
[76] | 100 | NAMELIST/namicerun/ ln_limdyn, acrit, hsndif, hicdif |
---|
[3] | 101 | !!------------------------------------------------------------------- |
---|
[508] | 102 | ! |
---|
| 103 | REWIND ( numnam_ice ) ! Read Namelist namicerun |
---|
[3] | 104 | READ ( numnam_ice , namicerun ) |
---|
[253] | 105 | |
---|
[508] | 106 | IF( lk_cfg_1d ) ln_limdyn = .FALSE. ! No ice transport in 1D configuration |
---|
[253] | 107 | |
---|
[3] | 108 | IF(lwp) THEN |
---|
| 109 | WRITE(numout,*) |
---|
| 110 | WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice' |
---|
| 111 | WRITE(numout,*) ' ~~~~~~' |
---|
[76] | 112 | WRITE(numout,*) ' switch for ice dynamics (1) or not (0) ln_limdyn = ', ln_limdyn |
---|
| 113 | WRITE(numout,*) ' minimum fraction for leads in the NH (SH) acrit(1/2) = ', acrit(:) |
---|
[3] | 114 | WRITE(numout,*) ' computation of temp. in snow (=0) or not (=9999) hsndif = ', hsndif |
---|
| 115 | WRITE(numout,*) ' computation of temp. in ice (=0) or not (=9999) hicdif = ', hicdif |
---|
| 116 | ENDIF |
---|
[508] | 117 | ! |
---|
[3] | 118 | END SUBROUTINE ice_run |
---|
| 119 | |
---|
| 120 | #else |
---|
| 121 | !!---------------------------------------------------------------------- |
---|
| 122 | !! Default option : Empty module NO LIM sea-ice model |
---|
| 123 | !!---------------------------------------------------------------------- |
---|
| 124 | CONTAINS |
---|
| 125 | SUBROUTINE ice_init ! Empty routine |
---|
| 126 | END SUBROUTINE ice_init |
---|
| 127 | #endif |
---|
| 128 | |
---|
| 129 | !!====================================================================== |
---|
| 130 | END MODULE iceini |
---|