- Timestamp:
- 2017-12-13T15:58:53+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90
r6140 r9019 28 28 USE ldfslp ! Lateral diffusion: slopes of neutral surfaces 29 29 USE tradmp ! Tracer damping 30 #if defined key_zdftke31 30 USE zdftke ! TKE vertical physics 32 #endif33 31 USE eosbn2 ! Equation of state (eos_bn2 routine) 34 32 USE zdfmxl ! Mixed layer depth … … 38 36 USE asmpar ! Parameters for the assmilation interface 39 37 USE zdfmxl ! mixed layer depth 40 #if defined key_lim241 USE ice_242 #endif43 38 #if defined key_lim3 44 39 USE ice … … 94 89 IF( nitbkg_r == nit000 - 1 ) THEN ! Treat special case when nitbkg = 0 95 90 zdate = REAL( ndastp ) 96 #if defined key_zdftke 97 ! lk_zdftke=T : Read turbulent kinetic energy ( en ) 98 IF(lwp) WRITE(numout,*) ' Reading TKE (en) from restart...' 99 CALL tke_rst( nit000, 'READ' ) ! lk_zdftke=T : Read turbulent kinetic energy ( en ) 100 101 #endif 91 IF( ln_zdftke ) THEN ! read turbulent kinetic energy ( en ) 92 IF(lwp) WRITE(numout,*) ' Reading TKE (en) from restart...' 93 CALL tke_rst( nit000, 'READ' ) 94 ENDIF 102 95 ELSE 103 96 zdate = REAL( ndastp ) … … 111 104 CALL iom_rstput( kt, nitbkg_r, inum, 'sn' , tsn(:,:,:,jp_sal) ) 112 105 CALL iom_rstput( kt, nitbkg_r, inum, 'sshn' , sshn ) 113 #if defined key_zdftke 114 CALL iom_rstput( kt, nitbkg_r, inum, 'en' , en ) 115 #endif 106 IF( ln_zdftke ) CALL iom_rstput( kt, nitbkg_r, inum, 'en' , en ) 116 107 ! 117 108 CALL iom_close( inum ) … … 148 139 CALL iom_rstput( kt, nitdin_r, inum, 'sn' , tsn(:,:,:,jp_sal) ) 149 140 CALL iom_rstput( kt, nitdin_r, inum, 'sshn' , sshn ) 150 #if defined key_lim 2 || defined key_lim3151 IF( nn_ice == 2 .OR. nn_ice == 3) THEN152 IF( ALLOCATED( frld) ) THEN153 CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', 1._wp - frld(:,:) )141 #if defined key_lim3 142 IF( nn_ice == 2 ) THEN 143 IF( ALLOCATED(at_i) ) THEN 144 CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', at_i(:,:) ) 154 145 ELSE 155 CALL ctl_warn('Ice concentration not written to background as ice variable frld not allocated on this timestep') 146 CALL ctl_warn('asm_bkg_wri: Ice concentration not written to background ', & 147 & 'as ice variable at_i not allocated on this timestep') 156 148 ENDIF 157 149 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.