Ignore:
Timestamp:
Oct 3, 2018 12:04:15 PM (6 years ago)
Author:
raasch
Message:

salinity allowed to be switched off, bugfix for swapping in case of ocean mode

File:
1 edited

Legend:

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

    r3294 r3303  
    2525! -----------------
    2626! $Id$
     27! bugfix for swapping in case of ocean mode
     28!
     29! 3294 2018-10-01 02:37:10Z raasch
    2730! changes concerning modularization of ocean option
    2831!
     
    219222    IF ( gust_module_enabled )                CALL gust_swap_timelevel( 0 )
    220223    IF ( land_surface )                       CALL lsm_swap_timelevel( 0 )
    221     IF ( ocean_mode )                         CALL ocean_swap_timelevl( 0 )
     224    IF ( ocean_mode )                         CALL ocean_swap_timelevel( 0 )
    222225    CALL tcm_swap_timelevel( 0 )
    223226    IF ( urban_surface )                      CALL usm_swap_timelevel( 0 )
     
    237240             pt => pt_1;  pt_p => pt_2
    238241          ENDIF
    239           IF ( ocean_mode )  THEN
    240              sa => sa_1;  sa_p => sa_2
    241           ENDIF
    242242          IF ( humidity )  THEN
    243243             q => q_1;    q_p => q_2
     
    257257             pt => pt_2;  pt_p => pt_1
    258258          ENDIF
    259           IF ( ocean_mode )  THEN
    260              sa => sa_2;  sa_p => sa_1
    261           ENDIF
    262259          IF ( humidity )  THEN
    263260             q => q_2;    q_p => q_1
     
    271268    END SELECT
    272269
     270    IF ( humidity  .AND.  bulk_cloud_model )  THEN
     271       CALL bcm_swap_timelevel( MOD( timestep_count, 2) )
     272    ENDIF
     273
    273274    IF ( air_chemistry )  CALL chem_swap_timelevel( MOD( timestep_count, 2) )
    274275
    275     CALL tcm_swap_timelevel ( MOD( timestep_count, 2) )
    276 
    277     IF ( humidity  .AND.  bulk_cloud_model )  THEN
    278        CALL bcm_swap_timelevel ( MOD( timestep_count, 2) )
     276    IF ( gust_module_enabled )  THEN
     277       CALL gust_swap_timelevel( MOD( timestep_count, 2) )
    279278    ENDIF
    280279
    281280    IF ( land_surface )  THEN
    282        CALL lsm_swap_timelevel ( MOD( timestep_count, 2) )
    283     ENDIF
     281       CALL lsm_swap_timelevel( MOD( timestep_count, 2) )
     282    ENDIF
     283
     284    IF ( ocean_mode )  THEN
     285       CALL ocean_swap_timelevel( MOD( timestep_count, 2 ) )
     286    ENDIF
     287
     288    CALL tcm_swap_timelevel( MOD( timestep_count, 2) )
    284289
    285290    IF ( urban_surface )  THEN
    286        CALL usm_swap_timelevel ( MOD( timestep_count, 2) )
    287     ENDIF
    288 
    289     IF ( gust_module_enabled )  THEN
    290        CALL gust_swap_timelevel ( MOD( timestep_count, 2) )
     291       CALL usm_swap_timelevel( MOD( timestep_count, 2) )
    291292    ENDIF
    292293
Note: See TracChangeset for help on using the changeset viewer.