Changeset 4899 for palm/trunk


Ignore:
Timestamp:
Mar 4, 2021 4:42:21 PM (3 years ago)
Author:
raasch
Message:

small adjustments regarding r4897, bugfix for r4898 (missing preprocessor directive added)

Location:
palm/trunk/SOURCE
Files:
2 edited

Legend:

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

    r4897 r4899  
    2626! -----------------
    2727! $Id$
     28! small adjustments regarding r4897
     29!
     30! 4897 2021-03-04 09:08:58Z forkel
    2831! Few informative messages removed, small changes in comments and chemistry header
    29 !
    3032!
    3133! 4895 2021-03-03 15:39:08Z suehring
     
    799801!
    800802!--       Surface conditions:
    801           IF ( ibc_cs_b == 0 )  THEN    ! Dirichlet
    802 !
     803          IF ( ibc_cs_b == 0 )  THEN
     804!
     805!--          Dirichlet:
    803806!--          Run loop over all non-natural and natural walls. Note, in wall-datatype the k
    804807!--          coordinate belongs to the atmospheric grid point, therefore, set s_p at k-1
     
    806809                !$OMP PARALLEL DO PRIVATE( i, j, k )
    807810                DO  m = 1, bc_h(l)%ns
    808                     i = bc_h(l)%i(m)
    809                     j = bc_h(l)%j(m)
    810                     k = bc_h(l)%k(m)
     811                   i = bc_h(l)%i(m)
     812                   j = bc_h(l)%j(m)
     813                   k = bc_h(l)%k(m)
    811814                   chem_species(lsp)%conc_p(k+bc_h(l)%koff,j,i) =                                  &
    812815                                                          chem_species(lsp)%conc(k+bc_h(l)%koff,j,i)
     
    814817             ENDDO
    815818
    816           ELSEIF ( ibc_cs_b == 1 )  THEN     ! Neumann
    817 !
     819          ELSEIF ( ibc_cs_b == 1 )  THEN
     820!
     821!--          Neumann:
    818822             DO  l = 0, 1
    819823                !$OMP PARALLEL DO PRIVATE( i, j, k )
     
    825829                ENDDO
    826830             ENDDO
     831
    827832          ENDIF
    828833
    829        ENDDO    ! end lsp loop
     834       ENDDO
    830835
    831836!
     
    12421247    IF ( call_chem_at_all_substeps )  THEN
    12431248       message_string =                                                                            &
    1244        'Warning: call_chem_at_all_substeps shoukld only be used for test purposes! '
    1245        CALL message( 'chem_check_parameters', 'PA0522', 0, 0, 0, 6, 0 )
     1249       'call_chem_at_all_substeps should only be used for test purposes'
     1250       CALL message( 'chem_check_parameters', 'PA0522', 0, 1, 0, 6, 0 )
    12461251    ENDIF
    12471252!
     
    18551860!
    18561861!-- Emission mode info
    1857     WRITE ( io, 4 ) emiss_read_legacy_mode
     1862    WRITE( io, 4 )  emiss_read_legacy_mode
     1863!
    18581864!-- At the moment the evaluation is done with both emiss_lod and mode_emis but once salsa has been
    18591865!-- migrated to emiss_lod the .OR. mode_emis conditions can be removed (ecc 20190513)
     
    21192125!-- applied near these boundaries.
    21202126!-- To get rid-off this, set-up additional flags that control the order of the scalar advection
    2121 !-- scheme near the lateral boundaries for passive scalars with  non-cyclic bcs
     2127!-- scheme near the lateral boundaries for passive scalars with non-cyclic bcs
    21222128    IF ( scalar_advec == 'ws-scheme' )  THEN
    21232129       ALLOCATE( cs_advc_flags_s(nzb:nzt+1,nysg:nyng,nxlg:nxrg) )
     
    25992605
    26002606!
    2601 !-- Conflict resolution for emiss_lod and mode_emis
    2602 !-- 1) if emiss_lod is defined, have mode_emis assume same setting as emiss_lod
    2603 !-- 2) if emiss_lod it not defined, have emiss_lod assuem same setting as mode_emis
    2604 !-- this check is in place to retain backward compatibility with salsa until the code is migrated
    2605 !-- completed to emiss_lod
    2606 !-- note that
     2607!--    Conflict resolution for emiss_lod and mode_emis.
     2608!--    1) if emiss_lod is defined, have mode_emis assume same setting as emiss_lod
     2609!--    2) if emiss_lod it not defined, have emiss_lod assuem same setting as mode_emis
     2610!--    This check is in place to retain backward compatibility with salsa until the code is
     2611!--    migrated completely to emiss_lod.
    26072612       IF  ( emiss_lod >= 0 ) THEN
    26082613
    26092614          SELECT CASE  ( emiss_lod )
    26102615!
    2611 !-- Synchronize mode_emis to defined emiss_lod (mode_emis will be depreciated in future releases)
     2616!--          Synchronize mode_emis to defined emiss_lod (mode_emis will be depreciated in
     2617!--          future releases)
    26122618             CASE (0)  !- parameterized mode
    26132619                mode_emis = 'PARAMETERIZED'
     
    28492855!-- It would have been nice to have time measurements for chemistry and deposition here.
    28502856!-- Unfortunately measurements within i,j loops degrade performance ince they are calles so often
    2851 !-- and the counter for this measurement gets extremely huge values. Therefore, no measurements here.
     2857!-- and the counter for this measurement gets extremely huge values. Therefore, no measurements
     2858!-- here.
    28522859    IF ( intermediate_timestep_count == 1  .OR.  call_chem_at_all_substeps )  THEN
    28532860
    28542861       IF ( chem_gasphase_on )  THEN
    2855           !$OMP MASTER
    2856           !$OMP END MASTER
    28572862          CALL chem_integrate( i, j )
    2858           !$OMP MASTER
    2859           !$OMP END MASTER
    28602863       ENDIF
    28612864
    28622865       IF ( deposition_dry )  THEN
    2863           !$OMP MASTER
    2864           !$OMP END MASTER
    28652866          CALL chem_depo( i, j )
    2866           !$OMP MASTER
    2867           !$OMP END MASTER
    28682867       ENDIF
    28692868
  • palm/trunk/SOURCE/radiation_model_mod.f90

    r4898 r4899  
    2727! -----------------
    2828! $Id$
     29! bugfix for r4898 (missing preprocessor directive added)
     30!
     31! 4898 2021-03-04 15:49:52Z raasch
    2932! MPI-IO for sky view factors implemented
    3033!
     
    99159918    INTEGER(iwp) ::  i            !<
    99169919    INTEGER(iwp) ::  ic           !<
     9920#if defined( __parallel )
    99179921    INTEGER(iwp) ::  ierr         !<
     9922#endif
    99189923    INTEGER(iwp) ::  ind          !<
    99199924    INTEGER(iwp) ::  ipcgb        !<
Note: See TracChangeset for help on using the changeset viewer.