Ignore:
Timestamp:
Jan 30, 2019, 5:55:48 PM (5 years ago)
Author:
lguez
Message:

Introduce variable activate_ocean_skin in module config_ocean_skin_m.

Bug fix in phys_state_var_end: we need to deallocate variables for
lmdz1d (although it is useless for a 3D run).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin/libf/phylmd/phys_state_var_mod.F90

    r3429 r3458  
    439439USE infotrac_phy, ONLY : nbtr
    440440USE indice_sol_mod
     441use config_ocean_skin_m, only: activate_ocean_skin
    441442IMPLICIT NONE
    442443
     
    621622      if (.not. ok_hines .and. ok_gwd_rando) allocate(du_gwd_front(klon, klev))
    622623
    623       ALLOCATE(ds_ns(klon), dt_ns(klon))
     624      if (activate_ocean_skin >= 1) ALLOCATE(ds_ns(klon), dt_ns(klon))
    624625
    625626    END SUBROUTINE phys_state_var_init
    626627
    627628!======================================================================
    628 SUBROUTINE phys_state_var_end
     629    SUBROUTINE phys_state_var_end
     630      ! Useful only for lmdz1d.
    629631!USE dimphy
    630632USE indice_sol_mod
     633use config_ocean_skin_m, only: activate_ocean_skin
    631634IMPLICIT NONE
    632635include "clesphys.h"
     
    754757      deallocate(ale_bl_trig)
    755758!!! fin nrlmd le 10/04/2012
     759      if (activate_ocean_skin >= 1) deALLOCATE(ds_ns, dt_ns)
    756760
    757761END SUBROUTINE phys_state_var_end
Note: See TracChangeset for help on using the changeset viewer.