[821] | 1 | MODULE iceini_2 |
---|
[3] | 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE iceini *** |
---|
[821] | 4 | !! Sea-ice model : LIM 2.0 Sea ice model Initialization |
---|
[3] | 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 |
---|
[2319] | 8 | !! 3.3 ! 09-05 (G.Garric, C. Bricaud) addition of the lim2_evp case |
---|
[508] | 9 | !!---------------------------------------------------------------------- |
---|
[821] | 10 | #if defined key_lim2 |
---|
[3] | 11 | !!---------------------------------------------------------------------- |
---|
[821] | 12 | !! 'key_lim2' : LIM 2.0 sea-ice model |
---|
[3] | 13 | !!---------------------------------------------------------------------- |
---|
[508] | 14 | !!---------------------------------------------------------------------- |
---|
[821] | 15 | !! ice_init_2 : sea-ice model initialization |
---|
| 16 | !! ice_run_2 : Definition some run parameter for ice model |
---|
[3] | 17 | !!---------------------------------------------------------------------- |
---|
[2319] | 18 | USE dom_oce ! ocean domain |
---|
| 19 | USE dom_ice_2 ! LIM2: ice domain |
---|
| 20 | USE sbc_oce ! surface boundary condition: ocean |
---|
| 21 | USE sbc_ice ! surface boundary condition: ice |
---|
| 22 | USE phycst ! Define parameters for the routines |
---|
| 23 | USE ice_2 ! LIM2: ice variable |
---|
| 24 | USE limmsh_2 ! LIM2: mesh |
---|
| 25 | USE limistate_2 ! LIM2: initial state |
---|
| 26 | USE limrst_2 ! LIM2: restart |
---|
| 27 | USE in_out_manager ! I/O manager |
---|
[508] | 28 | |
---|
[3] | 29 | IMPLICIT NONE |
---|
| 30 | PRIVATE |
---|
| 31 | |
---|
[1228] | 32 | PUBLIC ice_init_2 ! called by sbcice_lim_2.F90 |
---|
[3] | 33 | |
---|
[2319] | 34 | INTEGER, PUBLIC :: numit !: iteration number |
---|
| 35 | |
---|
[3] | 36 | !!---------------------------------------------------------------------- |
---|
[2287] | 37 | !! NEMO/LIM2 3.3 , UCL - NEMO Consortium (2010) |
---|
[1156] | 38 | !! $Id$ |
---|
[2287] | 39 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[3] | 40 | !!---------------------------------------------------------------------- |
---|
| 41 | |
---|
| 42 | CONTAINS |
---|
| 43 | |
---|
[821] | 44 | SUBROUTINE ice_init_2 |
---|
[3] | 45 | !!---------------------------------------------------------------------- |
---|
[821] | 46 | !! *** ROUTINE ice_init_2 *** |
---|
[3] | 47 | !! |
---|
[2319] | 48 | !! ** purpose : initialisation of LIM-2 domain and variables |
---|
[3] | 49 | !!---------------------------------------------------------------------- |
---|
[508] | 50 | ! |
---|
[3] | 51 | ! Open the namelist file |
---|
[1581] | 52 | CALL ctl_opn( numnam_ice, 'namelist_ice', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) |
---|
[821] | 53 | CALL ice_run_2 ! read in namelist some run parameters |
---|
[3] | 54 | |
---|
| 55 | ! Louvain la Neuve Ice model |
---|
[888] | 56 | rdt_ice = nn_fsbc * rdttra(1) |
---|
[2319] | 57 | numit = nit000 - 1 |
---|
[3] | 58 | |
---|
[821] | 59 | CALL lim_msh_2 ! ice mesh initialization |
---|
[3] | 60 | |
---|
| 61 | ! Initial sea-ice state |
---|
| 62 | IF( .NOT.ln_rstart ) THEN |
---|
[821] | 63 | CALL lim_istate_2 ! start from rest: sea-ice deduced from sst |
---|
[3] | 64 | ELSE |
---|
[821] | 65 | CALL lim_rst_read_2 ! start from a restart file |
---|
[3] | 66 | ENDIF |
---|
| 67 | |
---|
[1463] | 68 | tn_ice(:,:,1) = sist(:,:) ! initialisation of ice temperature |
---|
[1037] | 69 | fr_i (:,:) = 1.0 - frld(:,:) ! initialisation of sea-ice fraction |
---|
[508] | 70 | ! |
---|
[821] | 71 | END SUBROUTINE ice_init_2 |
---|
[3] | 72 | |
---|
| 73 | |
---|
[821] | 74 | SUBROUTINE ice_run_2 |
---|
[3] | 75 | !!------------------------------------------------------------------- |
---|
[821] | 76 | !! *** ROUTINE ice_run_2 *** |
---|
[3] | 77 | !! |
---|
| 78 | !! ** Purpose : Definition some run parameter for ice model |
---|
| 79 | !! |
---|
| 80 | !! ** Method : Read the namicerun namelist and check the parameter |
---|
| 81 | !! values called at the first timestep (nit000) |
---|
| 82 | !! |
---|
| 83 | !! ** input : Namelist namicerun |
---|
| 84 | !!------------------------------------------------------------------- |
---|
[1229] | 85 | NAMELIST/namicerun/ cn_icerst_in, cn_icerst_out, ln_limdyn, ln_limdmp, acrit, hsndif, hicdif |
---|
[3] | 86 | !!------------------------------------------------------------------- |
---|
[508] | 87 | ! |
---|
| 88 | REWIND ( numnam_ice ) ! Read Namelist namicerun |
---|
[3] | 89 | READ ( numnam_ice , namicerun ) |
---|
[253] | 90 | |
---|
[3] | 91 | IF(lwp) THEN |
---|
| 92 | WRITE(numout,*) |
---|
| 93 | WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice' |
---|
| 94 | WRITE(numout,*) ' ~~~~~~' |
---|
[76] | 95 | WRITE(numout,*) ' switch for ice dynamics (1) or not (0) ln_limdyn = ', ln_limdyn |
---|
[675] | 96 | WRITE(numout,*) ' Ice damping ln_limdmp = ', ln_limdmp |
---|
[76] | 97 | WRITE(numout,*) ' minimum fraction for leads in the NH (SH) acrit(1/2) = ', acrit(:) |
---|
[3] | 98 | WRITE(numout,*) ' computation of temp. in snow (=0) or not (=9999) hsndif = ', hsndif |
---|
| 99 | WRITE(numout,*) ' computation of temp. in ice (=0) or not (=9999) hicdif = ', hicdif |
---|
| 100 | ENDIF |
---|
[508] | 101 | ! |
---|
[821] | 102 | END SUBROUTINE ice_run_2 |
---|
[3] | 103 | |
---|
| 104 | #else |
---|
| 105 | !!---------------------------------------------------------------------- |
---|
[821] | 106 | !! Default option : Empty module NO LIM 2.0 sea-ice model |
---|
[3] | 107 | !!---------------------------------------------------------------------- |
---|
| 108 | CONTAINS |
---|
[821] | 109 | SUBROUTINE ice_init_2 ! Empty routine |
---|
| 110 | END SUBROUTINE ice_init_2 |
---|
[3] | 111 | #endif |
---|
| 112 | |
---|
| 113 | !!====================================================================== |
---|
[821] | 114 | END MODULE iceini_2 |
---|