Ignore:
Timestamp:
Jun 7, 2012, 11:12:36 AM (12 years ago)
Author:
acolaitis
Message:

Mesoscale: minor modif so that you can run a nested simulation with radt=1 without the -DSPECIAL_NEST_SAVE flag. (also replaced the initialisation q2 at start from 0 to 1.E-6)

File:
1 edited

Legend:

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

    r688 r700  
    460460ENDIF
    461461#else
     462IF( .NOT. ALLOCATED( dp_save  ) ) THEN
    462463ALLOCATE(dp_save(ngrid)) !! here are the arrays that would be useful to save physics tendencies
    463464ALLOCATE(du_save(ngrid,nlayer))
     
    465466ALLOCATE(dt_save(ngrid,nlayer))
    466467ALLOCATE(dq_save(ngrid,nlayer,nq))
     468ENDIF
    467469dp_save(:)=0.    !! initialize these arrays ...
    468470du_save(:,:)=0.
     
    473475#ifndef NORESTART
    474476! Restart save arrays
     477IF( .NOT. ALLOCATED( save_tsoil_restart  ) ) THEN
    475478ALLOCATE(save_tsoil_restart(ngrid,nsoil))
    476479ALLOCATE(save_co2ice_restart(ngrid))
     
    478481ALLOCATE(save_qsurf_restart(ngrid,nq))
    479482ALLOCATE(save_tsurf_restart(ngrid))
     483ENDIF
    480484save_tsoil_restart(:,:)=0.
    481485save_co2ice_restart(:)=0.
     
    484488save_tsurf_restart(:)=0.
    485489#ifdef NEWPHYS
     490IF( .NOT. ALLOCATED( save_wstar_restart  ) ) THEN
    486491ALLOCATE(save_wstar_restart(ngrid))
    487492ALLOCATE(save_fluxrad_restart(ngrid))
     493ENDIF
    488494save_wstar_restart(:)=0.
    489495save_fluxrad_restart(:)=0.
     
    11381144!-------------------------!
    11391145IF (.not. restart) THEN
    1140    q2_val(:)=0.      !PBL wind variance
     1146   q2_val(:)=1.E-6      !PBL wind variance
    11411147#ifdef NEWPHYS
    11421148   fluxrad_val=0.
Note: See TracChangeset for help on using the changeset viewer.