Changeset 508 for trunk/NEMO/LIM_SRC/iceini.F90
- Timestamp:
- 2006-10-03T17:58:55+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/LIM_SRC/iceini.F90
r391 r508 4 4 !! Sea-ice model : LIM Sea ice model Initialization 5 5 !!====================================================================== 6 !! History : 1.0 ! 02-08 (G. Madec) F90: Free form and modules 7 !! 2.0 ! 03-08 (C. Ethe) add ice_run 8 !!---------------------------------------------------------------------- 6 9 #if defined key_ice_lim 7 10 !!---------------------------------------------------------------------- 8 11 !! 'key_ice_lim' : LIM sea-ice model 9 12 !!---------------------------------------------------------------------- 13 !!---------------------------------------------------------------------- 10 14 !! ice_init : sea-ice model initialization 15 !! ice_run : Definition some run parameter for ice model 11 16 !!---------------------------------------------------------------------- 12 17 USE dom_oce … … 19 24 USE limmsh 20 25 USE limistate 21 USE limrst 26 USE limrst 22 27 USE ini1d ! initialization of the 1D configuration 23 28 24 29 IMPLICIT NONE 25 30 PRIVATE 26 31 27 !! * Routine accessibility 28 PUBLIC ice_init ! called by opa.F90 32 PUBLIC ice_init ! called by opa.F90 29 33 30 !! * Share Module variables 31 LOGICAL , PUBLIC :: & !!! ** init namelist (namicerun) ** 32 ln_limdyn = .TRUE. !: flag for ice dynamics (T) or not (F) 33 INTEGER , PUBLIC :: & !: 34 nstart , & !: iteration number of the begining of the run 35 nlast , & !: iteration number of the end of the run 36 nitrun , & !: number of iteration 37 numit !: iteration number 38 REAL(wp), PUBLIC :: & !: 39 hsndif = 0.e0 , & !: computation of temp. in snow (0) or not (9999) 40 hicdif = 0.e0 , & !: computation of temp. in ice (0) or not (9999) 41 tpstot !: time of the run in seconds 42 REAL(wp), PUBLIC, DIMENSION(2) :: & !: 43 acrit = (/ 1.e-06 , 1.e-06 /) !: minimum fraction for leads in 44 ! ! north and south hemisphere 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 45 39 !!---------------------------------------------------------------------- 46 40 !! LIM 2.0, UCL-LOCEAN-IPSL (2005) … … 56 50 !! 57 51 !! ** purpose : 58 !!59 !! History :60 !! 8.5 ! 02-08 (G. Madec) F90: Free form and modules61 52 !!---------------------------------------------------------------------- 62 CHARACTER(len=80) :: namelist_icename 63 53 CHARACTER(len=80) :: namelist_icename 54 !!---------------------------------------------------------------------- 55 ! 64 56 ! Open the namelist file 65 57 namelist_icename = 'namelist_ice' 66 67 58 CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL', & 68 59 1,numout,.FALSE.,1) 69 70 60 CALL ice_run ! read in namelist some run parameters 71 61 … … 83 73 ! Initial sea-ice state 84 74 IF( .NOT.ln_rstart ) THEN 85 numit = 086 75 CALL lim_istate ! start from rest: sea-ice deduced from sst 87 76 ELSE 88 CALL lim_rst_read ( numit )! start from a restart file77 CALL lim_rst_read ! start from a restart file 89 78 ENDIF 90 79 … … 94 83 alb_ice(:,:) = albege(:,:) ! sea-ice albedo 95 84 # endif 96 97 nstart = numit + nfice 98 nitrun = nitend - nit000 + 1 99 nlast = numit + nitrun 100 101 IF( nstock == 0 ) nstock = nlast + 1 102 85 ! 103 86 END SUBROUTINE ice_init 104 87 … … 114 97 !! 115 98 !! ** input : Namelist namicerun 116 !!117 !! history :118 !! 2.0 ! 03-08 (C. Ethe) Original code119 99 !!------------------------------------------------------------------- 120 121 100 NAMELIST/namicerun/ ln_limdyn, acrit, hsndif, hicdif 122 101 !!------------------------------------------------------------------- 123 124 ! ! Read Namelist namicerun 125 REWIND ( numnam_ice ) 102 ! 103 REWIND ( numnam_ice ) ! Read Namelist namicerun 126 104 READ ( numnam_ice , namicerun ) 127 105 128 IF( lk_cfg_1d ) ln_limdyn = .FALSE.! No ice transport in 1D configuration106 IF( lk_cfg_1d ) ln_limdyn = .FALSE. ! No ice transport in 1D configuration 129 107 130 108 IF(lwp) THEN … … 137 115 WRITE(numout,*) ' computation of temp. in ice (=0) or not (=9999) hicdif = ', hicdif 138 116 ENDIF 117 ! 139 118 END SUBROUTINE ice_run 140 119
Note: See TracChangeset
for help on using the changeset viewer.