Ignore:
Timestamp:
Dec 20, 2018 1:51:36 AM (5 years ago)
Author:
knoop
Message:

M Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/swap_timelevel.f90

    r3636 r3637  
    2525! -----------------
    2626! $Id$
     27! Implementation of the PALM module interface
     28!
     29! 3636 2018-12-19 13:48:34Z raasch
    2730! nopointer option removed
    2831!
     
    151154               v, v_1, v_2, v_p, w, w_1, w_2, w_p
    152155
    153     USE bulk_cloud_model_mod,                                                  &
    154         ONLY:  bulk_cloud_model, bcm_swap_timelevel
    155 
    156     USE chemistry_model_mod,                                                   &
    157         ONLY:  chem_swap_timelevel
    158 
    159156    USE cpulog,                                                                &
    160157        ONLY: cpu_log, log_point
    161158
    162159    USE control_parameters,                                                    &
    163         ONLY:  air_chemistry, humidity, land_surface, neutral, ocean_mode,     &
    164                passive_scalar, simulated_time, timestep_count, urban_surface,  &
    165                time_since_reference_point, salsa
    166 
    167     USE gust_mod,                                                              &
    168         ONLY: gust_module_enabled, gust_swap_timelevel
    169 
    170     USE land_surface_model_mod,                                                &
    171         ONLY: lsm_swap_timelevel
    172 
    173     USE ocean_mod,                                                             &
    174         ONLY:  ocean_swap_timelevel
     160        ONLY:  humidity, neutral, passive_scalar, timestep_count
     161
     162    USE kinds
     163
     164    USE module_interface,                                                      &
     165        ONLY:  module_interface_swap_timelevel
    175166
    176167    USE pmc_interface,                                                         &
    177168        ONLY: nested_run, pmci_set_swaplevel
    178          
    179     USE salsa_mod,                                                             &
    180         ONLY:  salsa_swap_timelevel, skip_time_do_salsa             
    181169
    182170    USE turbulence_closure_mod,                                                &
    183171        ONLY:  tcm_swap_timelevel
    184172
    185     USE urban_surface_mod,                                                     &
    186         ONLY:  usm_swap_timelevel
    187 
    188173
    189174    IMPLICIT NONE
    190175
    191     INTEGER ::  swap_level  !> swap_level for steering the pmc data transfer
     176    INTEGER(iwp) ::  swap_level  !> swap_level for steering the pmc data transfer
    192177
    193178!
     
    237222    END SELECT
    238223
    239     IF ( humidity  .AND.  bulk_cloud_model )  THEN
    240        CALL bcm_swap_timelevel( MOD( timestep_count, 2) )
    241     ENDIF
    242 
    243     IF ( air_chemistry )  CALL chem_swap_timelevel( MOD( timestep_count, 2) )
    244 
    245     IF ( gust_module_enabled )  THEN
    246        CALL gust_swap_timelevel( MOD( timestep_count, 2) )
    247     ENDIF
    248 
    249     IF ( land_surface )  THEN
    250        CALL lsm_swap_timelevel( MOD( timestep_count, 2) )
    251     ENDIF
    252 
    253     IF ( ocean_mode )  THEN
    254        CALL ocean_swap_timelevel( MOD( timestep_count, 2 ) )
    255     ENDIF
    256    
    257     IF ( salsa  .AND.  simulated_time >= time_since_reference_point )  THEN
    258        CALL salsa_swap_timelevel(  MOD( timestep_count, 2 ) )
    259     ENDIF     
    260 
     224!
     225!-- Set the swap level the turbulence closure module
    261226    CALL tcm_swap_timelevel( MOD( timestep_count, 2) )
    262227
    263     IF ( urban_surface )  THEN
    264        CALL usm_swap_timelevel( MOD( timestep_count, 2) )
    265     ENDIF
     228!
     229!-- Set the swap level for all other modules
     230    CALL module_interface_swap_timelevel( MOD( timestep_count, 2) )
    266231
    267232!
Note: See TracChangeset for help on using the changeset viewer.