Ignore:
Timestamp:
Apr 3, 2020 9:38:20 AM (4 years ago)
Author:
raasch
Message:

bugfix for subroutine calls that contain the decycle_chem and decycle_salsa switches as arguments

File:
1 edited

Legend:

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

    r4481 r4487  
    2727! -----------------
    2828! $Id$
     29! bugfix for subroutine calls that contain the decycle_chem switches as arguments
     30!
     31! 4481 2020-03-31 18:55:54Z maronga
    2932! use statement for exchange horiz added,
    3033! bugfix for call of exchange horiz 2d
     
    20372040!--    appear under shear-free stable conditions.
    20382041       CALL ws_init_flags_scalar(                                              &
    2039                   bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  decycle_chem_lr, &
    2040                   bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  decycle_chem_ns, &
    2041                   bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  decycle_chem_lr, &
    2042                   bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  decycle_chem_ns, &
     2042                  bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  ( decycle_chem_lr .AND. nxl == 0  ), &
     2043                  bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  ( decycle_chem_ns .AND. nyn == ny ), &
     2044                  bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  ( decycle_chem_lr .AND. nxr == nx ), &
     2045                  bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  ( decycle_chem_ns .AND. nys == 0  ), &
    20432046                  cs_advc_flags_s, .TRUE. )
    20442047    ENDIF
     
    28292832          IF ( ws_scheme_sca )  THEN
    28302833             CALL advec_s_ws( cs_advc_flags_s, chem_species(ilsp)%conc, 'kc',                      &
    2831                               bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  decycle_chem_lr,        &
    2832                               bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  decycle_chem_ns,        &
    2833                               bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  decycle_chem_lr,        &
    2834                               bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  decycle_chem_ns )
     2834                  bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  ( decycle_chem_lr .AND. nxl == 0  ), &
     2835                  bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  ( decycle_chem_ns .AND. nyn == ny ), &
     2836                  bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  ( decycle_chem_lr .AND. nxr == nx ), &
     2837                  bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  ( decycle_chem_ns .AND. nys == 0  ) )
    28352838          ELSE
    28362839             CALL advec_s_pw( chem_species(ilsp)%conc )
     
    29392942       IF ( timestep_scheme(1:5) == 'runge' )  THEN
    29402943          IF ( ws_scheme_sca )  THEN
    2941              CALL advec_s_ws( cs_advc_flags_s,                                                     &
    2942                               i,                                                                   &
    2943                               j,                                                                   &
    2944                               chem_species(ilsp)%conc,                                             &
    2945                               'kc',                                                                &
     2944             CALL advec_s_ws( cs_advc_flags_s, i, j, chem_species(ilsp)%conc, 'kc',                &
    29462945                              chem_species(ilsp)%flux_s_cs,                                        &
    29472946                              chem_species(ilsp)%diss_s_cs,                                        &
     
    29502949                              i_omp_start,                                                         &
    29512950                              tn,                                                                  &
    2952                               bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  decycle_chem_lr,        &
    2953                               bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  decycle_chem_ns,        &
    2954                               bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  decycle_chem_lr,        &
    2955                               bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  decycle_chem_ns,        &
    2956                               monotonic_limiter_z )
     2951                  bc_dirichlet_l  .OR.  bc_radiation_l  .OR.  ( decycle_chem_lr .AND. nxl == 0  ), &
     2952                  bc_dirichlet_n  .OR.  bc_radiation_n  .OR.  ( decycle_chem_ns .AND. nyn == ny ), &
     2953                  bc_dirichlet_r  .OR.  bc_radiation_r  .OR.  ( decycle_chem_lr .AND. nxr == nx ), &
     2954                  bc_dirichlet_s  .OR.  bc_radiation_s  .OR.  ( decycle_chem_ns .AND. nys == 0  ), &
     2955                  monotonic_limiter_z )
    29572956          ELSE
    29582957             CALL advec_s_pw( i, j, chem_species(ilsp)%conc )
Note: See TracChangeset for help on using the changeset viewer.