Changeset 3294 for palm/trunk/SOURCE/swap_timelevel.f90
- Timestamp:
- Oct 1, 2018 2:37:10 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/swap_timelevel.f90
r3274 r3294 25 25 ! ----------------- 26 26 ! $Id$ 27 ! changes concerning modularization of ocean option 28 ! 29 ! 3274 2018-09-24 15:42:55Z knoop 27 30 ! Modularization of all bulk cloud physics code components 28 31 ! … … 147 150 ONLY: chem_swap_timelevel 148 151 149 USE land_surface_model_mod, &150 ONLY: lsm_swap_timelevel151 152 152 USE cpulog, & 153 153 ONLY: cpu_log, log_point 154 154 155 155 USE control_parameters, & 156 ONLY: air_chemistry, humidity, land_surface, 157 neutral, ocean,passive_scalar, timestep_count, urban_surface156 ONLY: air_chemistry, humidity, land_surface, neutral, ocean_mode, & 157 passive_scalar, timestep_count, urban_surface 158 158 159 159 USE gust_mod, & … … 164 164 ONLY: nxlg, nxrg, nyng, nysg, nzb, nzt 165 165 #endif 166 167 USE land_surface_model_mod, & 168 ONLY: lsm_swap_timelevel 169 170 USE ocean_mod, & 171 ONLY: ocean_swap_timelevel 166 172 167 173 USE pmc_interface, & … … 202 208 ENDDO 203 209 204 CALL tcm_swap_timelevel ( 0 )205 206 IF ( ocean ) THEN207 sa = sa_p208 ENDIF209 210 210 IF ( humidity ) THEN 211 211 q = q_p … … 214 214 IF ( passive_scalar ) s = s_p 215 215 216 IF ( humidity .AND. bulk_cloud_model ) THEN 217 CALL bcm_swap_timelevel ( 0 ) 218 ENDIF 219 220 IF ( land_surface ) THEN 221 CALL lsm_swap_timelevel ( 0 ) 222 ENDIF 223 224 IF ( urban_surface ) THEN 225 CALL usm_swap_timelevel ( 0 ) 226 ENDIF 227 228 IF ( gust_module_enabled ) THEN 229 CALL gust_swap_timelevel ( 0 ) 230 ENDIF 231 216 ! 217 !-- Swapping the timelevel of other modules 218 IF ( humidity .AND. bulk_cloud_model ) CALL bcm_swap_timelevel( 0 ) 219 IF ( gust_module_enabled ) CALL gust_swap_timelevel( 0 ) 220 IF ( land_surface ) CALL lsm_swap_timelevel( 0 ) 221 IF ( ocean_mode ) CALL ocean_swap_timelevl( 0 ) 222 CALL tcm_swap_timelevel( 0 ) 223 IF ( urban_surface ) CALL usm_swap_timelevel( 0 ) 232 224 233 225 CALL cpu_log( log_point(28), 'swap_timelevel (nop)', 'stop' ) … … 245 237 pt => pt_1; pt_p => pt_2 246 238 ENDIF 247 IF ( ocean ) THEN239 IF ( ocean_mode ) THEN 248 240 sa => sa_1; sa_p => sa_2 249 241 ENDIF … … 254 246 s => s_1; s_p => s_2 255 247 ENDIF 256 257 IF ( air_chemistry ) CALL chem_swap_timelevel(0)258 248 259 249 swap_level = 1 … … 267 257 pt => pt_2; pt_p => pt_1 268 258 ENDIF 269 IF ( ocean ) THEN259 IF ( ocean_mode ) THEN 270 260 sa => sa_2; sa_p => sa_1 271 261 ENDIF … … 277 267 ENDIF 278 268 279 IF ( air_chemistry ) CALL chem_swap_timelevel(1)280 281 269 swap_level = 2 282 270 283 271 END SELECT 272 273 IF ( air_chemistry ) CALL chem_swap_timelevel( MOD( timestep_count, 2) ) 284 274 285 275 CALL tcm_swap_timelevel ( MOD( timestep_count, 2) )
Note: See TracChangeset
for help on using the changeset viewer.