Changeset 1777 for trunk


Ignore:
Timestamp:
Aug 27, 2017, 9:41:59 AM (7 years ago)
Author:
aslmd
Message:

MESOSCALE setting the stage for maybe fixing nesting in the LMD_MM_MARS. added saving the number of previous domai computed. print details only when changing domain. minor changes to printing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F.new

    r1759 r1777  
    159159   REAL :: wappel_phys
    160160   LOGICAL, SAVE :: flag_first_restart
     161   INTEGER, SAVE :: previous_id = 0
    161162!**************************************************
    162163! IMPORTANT: pour travailler avec grid nesting
     
    188189
    189190   REAL :: tk1,tk2
     191
    190192!==================================================================
    191193! CODE
    192194!==================================================================
    193195
     196print *, '** ',planet_type,'** ENTER WRF-LMD DRIVER'
     197
     198!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    194199!! determine here if this is turbulence-resolving or not
    195200IF (JULYR .ne. 9999) THEN
     
    214219     ENDIF
    215220ENDIF
    216 
    217 
    218 print *,'** ',planet_type,' ** DOMAIN',id
     221!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    219222
    220223!-------------------------!
     
    280283ENDIF
    281284
    282 IF ((elaps .eq. 0.).or.flag_first_restart) THEN
     285is_first_step: IF ((elaps .eq. 0.).or.flag_first_restart) THEN
    283286firstcall=.true.  !! for continuity with GCM, physics are always called at the first WRF timestep
    284287  !firstcall=.false. !! just in case you'd want to get rid of the physics
     
    324327flag_first_restart=.false.
    325328#endif
    326 
    327 !! put here some general information you'd like to print just once
    328     print *, 'TILES: ', i_start,i_end, j_start, j_end  ! numbers for simple runs, arrays for parallel runs
    329     print *, 'DOMAIN: ', ids, ide, jds, jde
    330     print *, 'MEMORY: ', ims, ime, jms, jme
    331     print *, 'ADVECTED TRACERS: ', num_3d_s-1
    332     print *, 'PHYSICS IS CALLED EACH...',wappel_phys
    333 !! put here some general information you'd like to print just once
    334329ELSE
    335330!-------------------------------------------------!
     
    345340test = 9999   
    346341ENDIF
    347 ENDIF
     342ENDIF is_first_step
     343
     344!------------------------------------!
     345! print info about domain initially  !
     346! ... and whenever domain is changed !
     347!------------------------------------!
     348print *,'** ',planet_type,' ** DOMAIN',id
     349IF (previousid .ne. id) THEN
     350    print *, '** ',planet_type,' ** ... INITIALIZE DOMAIN',id
     351    print *, '** ',planet_type,' ** ... PREVIOUS DOMAIN was',previousid
     352    print *, 'ITIMESTEP: ',itimestep
     353    print *, 'TILES: ', i_start,i_end, j_start, j_end  ! numbers for simple runs, arrays for parallel runs
     354    print *, 'DOMAIN: ', ids, ide, jds, jde
     355    print *, 'MEMORY: ', ims, ime, jms, jme
     356    print *, 'COMPUT: ', ips, ipe, jps, jpe
     357    print *, 'SIZE OF PHYSICS GRID for this process: ',ngrid
     358    print *, 'ADVECTED TRACERS: ', num_3d_s-1
     359    print *, 'PHYSICS IS CALLED EACH...',wappel_phys
     360    print *, '-- means: PHYSICAL TIMESTEP=',zdt_split
     361ENDIF
     362
    348363
    349364!!!***********!!
     
    722737            RDUST,VMR_ICE,RICE)
    723738!!!
    724 print*,"update_outputs_physiq_diag"
    725 
     739print *, '** ',planet_type,'** OUTPUT PHYSICS DONE'
    726740
    727741ENDIF call_physics
     
    790804!!*****!!
    791805print *,'** ',planet_type,'** END LMD PHYSICS'
     806previous_id = id
    792807!----------------------------------------------------------------!
    793808! use debug (see solve_em) if you wanna display some message ... !
Note: See TracChangeset for help on using the changeset viewer.