Changeset 667 for trunk/MESOSCALE/LMD_MM_MARS/SRC
- Timestamp:
- May 23, 2012, 4:32:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r577 r667 233 233 REAL :: wappel_phys 234 234 LOGICAL :: flag_LES 235 235 LOGICAL, SAVE :: flag_first_restart 236 236 !************************************************** 237 237 ! IMPORTANT: pour travailler avec grid nesting … … 359 359 !----------------------------------------------! 360 360 IF (elaps .eq. 0.) THEN 361 flag_first_restart = .false. 362 ELSE 363 flag_first_restart=flag_first_restart.OR.(.NOT. ALLOCATED(dp_save)) 364 ENDIF 365 366 IF ((elaps .eq. 0.).or.flag_first_restart) THEN 361 367 firstcall=.true. !! for continuity with GCM, physics are always called at the first WRF timestep 362 368 !firstcall=.false. !! just in case you'd want to get rid of the physics … … 367 373 PRINT *, '**** check **** OK I ALLOCATE one save ARRAY for all NESTS ', max_dom, id 368 374 !! here are the arrays that would be useful to save physics tendencies 369 ALLOCATE(dp_save(ngrid,max_dom)) 375 ALLOCATE(dp_save(ngrid,max_dom)) 370 376 ALLOCATE(du_save(ngrid,nlayer,max_dom)) 371 ALLOCATE(dv_save(ngrid,nlayer,max_dom)) 372 ALLOCATE(dt_save(ngrid,nlayer,max_dom)) 373 ALLOCATE(dq_save(ngrid,nlayer,nq,max_dom)) 377 ALLOCATE(dv_save(ngrid,nlayer,max_dom)) 378 ALLOCATE(dt_save(ngrid,nlayer,max_dom)) 379 ALLOCATE(dq_save(ngrid,nlayer,nq,max_dom)) 374 380 dp_save(:,:)=0. !! initialize these arrays ... 375 381 du_save(:,:,:)=0. … … 378 384 dq_save(:,:,:,:)=0. 379 385 ENDIF 386 IF (id .lt. max_dom) THEN 387 flag_first_restart=.true. 388 ELSE 389 flag_first_restart=.false. 390 ENDIF 380 391 #else 381 392 ALLOCATE(dp_save(ngrid)) !! here are the arrays that would be useful to save physics tendencies 382 393 ALLOCATE(du_save(ngrid,nlayer)) 383 ALLOCATE(dv_save(ngrid,nlayer)) 384 ALLOCATE(dt_save(ngrid,nlayer)) 385 ALLOCATE(dq_save(ngrid,nlayer,nq)) 394 ALLOCATE(dv_save(ngrid,nlayer)) 395 ALLOCATE(dt_save(ngrid,nlayer)) 396 ALLOCATE(dq_save(ngrid,nlayer,nq)) 386 397 dp_save(:)=0. !! initialize these arrays ... 387 398 du_save(:,:)=0. 388 399 dv_save(:,:)=0. 389 dt_save(:,:)=0. 400 dt_save(:,:)=0. 390 401 dq_save(:,:,:)=0. 402 flag_first_restart=.false. 391 403 #endif 392 404 !! put here some general information you'd like to print just once 393 405 print *, 'TILES: ', i_start,i_end, j_start, j_end ! numbers for simple runs, arrays for parallel runs 394 print *, 'DOMAIN: ', ids, ide, jds, jde 406 print *, 'DOMAIN: ', ids, ide, jds, jde 395 407 print *, 'MEMORY: ', ims, ime, jms, jme 396 408 print *, 'ADVECTED TRACERS: ', num_3d_s-1
Note: See TracChangeset
for help on using the changeset viewer.