- Timestamp:
- 2011-07-11T16:18:18+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_if.F90
r2715 r2798 65 65 !!--------------------------------------------------------------------- 66 66 ! ! ====================== ! 67 IF( kt == nit000 ) THEN ! First call kt=nit000 !68 ! ! ====================== !69 ! set file information70 cn_dir = './' ! directory in which the model is executed71 ! ... default values (NB: frequency positive => hours, negative => months)72 ! ! file ! frequency ! variable ! time intep ! clim ! 'yearly' or ! weights ! rotation !73 ! ! name ! (hours) ! name ! (T/F) ! (T/F) ! 'monthly' ! filename ! pairs !74 sn_ice = FLD_N('ice_cover', -1 , 'ice_cov' , .true. , .true. , 'yearly' , '' , '' )75 76 REWIND ( numnam ) ! ... read in namlist namiif77 READ ( numnam, namsbc_iif )78 79 ALLOCATE( sf_ice(1), STAT=ierror )80 IF( ierror > 0 ) CALL ctl_stop( 'STOP', 'sbc_ice_if: unable to allocate sf_ice structure' )81 ALLOCATE( sf_ice(1)%fnow(jpi,jpj,1) )82 IF( sn_ice%ln_tint ) ALLOCATE( sf_ice(1)%fdta(jpi,jpj,1,2) )83 84 ! fill sf_ice with sn_ice and control print85 CALL fld_fill( sf_ice, (/ sn_ice /), cn_dir, 'sbc_ice_if', 'ice-if sea-ice model', 'namsbc_iif' )86 !87 ENDIF88 89 CALL fld_read( kt, nn_fsbc, sf_ice ) ! Read input fields and provides the90 ! ! input fields at the current time-step91 67 92 68 IF( MOD( kt-1, nn_fsbc) == 0 ) THEN … … 104 80 ! 105 81 zt_fzp = fr_i(ji,jj) ! freezing point temperature 106 zfr_obs = sf_ice(1)%fnow(ji,jj,1) ! observed ice cover107 82 ! ! ocean ice fraction (0/1) from the freezing point temperature 108 83 IF( sst_m(ji,jj) <= zt_fzp ) THEN ; fr_i(ji,jj) = 1.e0 … … 110 85 ENDIF 111 86 87 zfr_obs = fr_i(ji,jj) 112 88 tn(ji,jj,1) = MAX( tn(ji,jj,1), zt_fzp ) ! avoid over-freezing point temperature 113 89
Note: See TracChangeset
for help on using the changeset viewer.