Ignore:
Timestamp:
Oct 30, 2018 7:05:21 PM (5 years ago)
Author:
suehring
Message:

Branch salsa @3446 re-integrated into trunk

Location:
palm/trunk/SOURCE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE

  • palm/trunk/SOURCE/time_integration.f90

    r3448 r3467  
    2525! -----------------
    2626! $Id$
     27! Implementation of a new aerosol module salsa.
     28!
     29! 3448 2018-10-29 18:14:31Z kanani
    2730! Add biometeorology
    2831!
     
    549552               stg_adjust, stg_main, time_stg_adjust, time_stg_call,           &
    550553               use_syn_turb_gen
     554         
     555    USE salsa_mod,                                                             &
     556        ONLY: aerosol_number, aerosol_mass, nbins, ncc_tot, ngast, salsa,      &
     557              salsa_boundary_conds, salsa_gas, salsa_gases_from_chem,          &
     558              skip_time_do_salsa           
    551559
    552560    USE user_actions_mod,                                                      &
     
    571579
    572580    CHARACTER (LEN=9) ::  time_to_string   !<
    573 
    574     INTEGER(iwp)      ::  lsp       !<
     581   
     582    INTEGER(iwp)      ::  b !< index for aerosol size bins   
     583    INTEGER(iwp)      ::  c !< index for chemical compounds in aerosol size bins
     584    INTEGER(iwp)      ::  g !< index for gaseous compounds
     585    INTEGER(iwp)      ::  lsp
    575586    INTEGER(iwp)      ::  lsp_usr   !<
    576587    INTEGER(iwp)      ::  n         !< loop counter for chemistry species
     
    694705          CALL cpu_log( log_point(55), 'wind_turbine', 'stop' )
    695706
    696        ENDIF      
     707       ENDIF   
    697708       
    698709!
     
    852863          ENDIF
    853864
     865          IF ( salsa  .AND.  time_since_reference_point >= skip_time_do_salsa )&
     866          THEN
     867             CALL cpu_log( log_point_s(91), 'salsa exch-horiz ', 'start' )
     868             DO  b = 1, nbins
     869                CALL exchange_horiz( aerosol_number(b)%conc_p, nbgp )
     870                CALL cpu_log( log_point_s(93), 'salsa decycle', 'start' )
     871                CALL salsa_boundary_conds( aerosol_number(b)%conc_p,           &
     872                                           aerosol_number(b)%init )
     873                CALL cpu_log( log_point_s(93), 'salsa decycle', 'stop' )
     874                DO  c = 1, ncc_tot
     875                   CALL exchange_horiz( aerosol_mass((c-1)*nbins+b)%conc_p,    &
     876                                        nbgp )
     877                   CALL cpu_log( log_point_s(93), 'salsa decycle', 'start' )
     878                   CALL salsa_boundary_conds( aerosol_mass((c-1)*nbins+b)%conc_p,&
     879                                              aerosol_mass((c-1)*nbins+b)%init )
     880                   CALL cpu_log( log_point_s(93), 'salsa decycle', 'stop' )
     881                ENDDO
     882             ENDDO
     883             IF ( .NOT. salsa_gases_from_chem )  THEN
     884                DO  g = 1, ngast
     885                   CALL exchange_horiz( salsa_gas(g)%conc_p, nbgp )
     886                   CALL cpu_log( log_point_s(93), 'salsa decycle', 'start' )
     887                   CALL salsa_boundary_conds( salsa_gas(g)%conc_p,             &
     888                                              salsa_gas(g)%init )
     889                   CALL cpu_log( log_point_s(93), 'salsa decycle', 'stop' )
     890             ENDDO
     891             ENDIF
     892             CALL cpu_log( log_point_s(91), 'salsa exch-horiz ', 'stop' )
     893          ENDIF         
     894
    854895          CALL cpu_log( log_point(26), 'exchange-horiz-progn', 'stop' )
    855896
     
    906947                ENDIF
    907948
    908                 IF ( passive_scalar )  CALL exchange_horiz( s, nbgp )
     949                IF ( passive_scalar )  CALL exchange_horiz( s, nbgp ) 
     950               
    909951                IF ( .NOT. constant_diffusion )  CALL exchange_horiz( e, nbgp )
    910952
     
    926968!--          Correct the w top-BC in nest domains to ensure mass conservation.
    927969!--          This action must never be done for the root domain. Vertical
    928 !--          nesting implies mass conservation.
    929970!--          Commented out April 18, 2018 as seemingly unnecessary.
    930971!--          Will later be completely removed.
     
    12481289          time_dopr       = time_dopr        + dt_3d
    12491290       ENDIF
    1250        time_dopr_listing          = time_dopr_listing        + dt_3d
     1291       time_dopr_listing  = time_dopr_listing + dt_3d
    12511292       time_run_control   = time_run_control + dt_3d
    12521293!
Note: See TracChangeset for help on using the changeset viewer.