Changeset 2715 for trunk/NEMOGCM/NEMO/LIM_SRC_2/limdia_2.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/LIM_SRC_2/limdia_2.F90
r2528 r2715 12 12 !! 'key_lim2' : LIM 2.0 sea-ice model 13 13 !!---------------------------------------------------------------------- 14 !!----------------------------------------------------------------------15 14 !! lim_dia_2 : computation of the time evolution of keys var. 16 15 !! lim_dia_init_2 : initialization and namelist read … … 24 23 USE limistate_2 ! 25 24 USE in_out_manager ! I/O manager 25 USE lib_mpp ! MPP library 26 26 27 27 IMPLICIT NONE … … 29 29 30 30 PUBLIC lim_dia_2 ! called by sbc_ice_lim_2 31 31 32 INTEGER, PUBLIC :: ntmoy = 1 , & !: instantaneous values of ice evolution or averaging ntmoy 32 33 & ninfo = 1 !: frequency of ouputs on file ice_evolu in case of averaging … … 52 53 REAL(wp) :: epsi06 = 1.e-06 ! ??? 53 54 REAL(wp), DIMENSION(jpinfmx) :: vinfom ! temporary working space 54 REAL(wp), DIMENSION(jpi,jpj) :: aire ! masked grid cell area55 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: aire ! masked grid cell area 55 56 56 57 !! * Substitutions … … 61 62 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 62 63 !!---------------------------------------------------------------------- 63 64 64 CONTAINS 65 65 … … 173 173 !!------------------------------------------------------------------- 174 174 CHARACTER(len=jpchinf) :: titinf 175 INTEGER :: jv ! dummy loop indice 176 INTEGER :: ntot , ndeb 177 INTEGER :: nv ! indice of variable 178 REAL(wp) :: zxx0, zxx1 ! temporary scalars 175 INTEGER :: jv ! dummy loop indice 176 INTEGER :: ntot , ndeb, nv, ierr ! local integer 177 REAL(wp) :: zxx0, zxx1 ! local scalars 179 178 180 179 NAMELIST/namicedia/fmtinf, nfrinf, ninfo, ntmoy 181 180 !!------------------------------------------------------------------- 182 181 183 ! Read Namelist namicedia 184 REWIND ( numnam_ice ) 185 READ ( numnam_ice , namicedia ) 182 REWIND( numnam_ice ) ! Read Namelist namicedia 183 READ ( numnam_ice , namicedia ) 186 184 187 IF(lwp) THEN 185 IF(lwp) THEN ! control print 188 186 WRITE(numout,*) 189 187 WRITE(numout,*) 'lim_dia_init_2 : ice parameters for ice diagnostics ' … … 195 193 ENDIF 196 194 197 ! masked grid cell area 195 ALLOCATE( aire(jpi,jpj) , STAT=ierr ) ! masked grid cell area 196 IF( lk_mpp ) CALL mpp_sum( ierr ) 197 IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'lim_dia_init_2 : unable to allocate standard arrays' ) 198 198 aire(:,:) = area(:,:) * tms(:,:) 199 199 200 ! Titles of ice key variables : 201 nv = 1 200 nv = 1 ! Titles of ice key variables 202 201 titvar(nv) = 'NoIt' ! iteration number 203 202 nv = nv + 1 204 203 titvar(nv) = 'T yr' ! time step in years 205 206 204 nbvt = nv - 1 207 208 205 nv = nv + 1 ; titvar(nv) = 'AEFN' ! sea ice area in the northern Hemisp.(10^12 km2) 209 206 nv = nv + 1 ; titvar(nv) = 'AEFS' ! sea ice area in the southern Hemisp.(10^12 km2)
Note: See TracChangeset
for help on using the changeset viewer.