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