Ignore:
Timestamp:
Apr 11, 2011 6:42:09 AM (10 years ago)
Author:
raasch
Message:

bugfixes of r722 merged to release 3.8

Location:
palm/tags/release-3.8
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/tags/release-3.8

  • palm/tags/release-3.8/SOURCE

  • palm/tags/release-3.8/SOURCE/init_pegrid.f90

    r710 r724  
    1212! -----------------
    1313! $Id$
     14!
     15! 722 2011-04-11 06:21:09Z raasch
     16! Bugfix: bc_lr/ns_cyc/dirrad/raddir replaced by bc_lr/ns, because variables
     17!         are not yet set here; grid_level set to 0
    1418!
    1519! 709 2011-03-30 09:31:40Z raasch
     
    193197!
    194198!-- If necessary, set horizontal boundary conditions to non-cyclic
    195     IF ( .NOT. bc_lr_cyc )  cyclic(1) = .FALSE.
    196     IF ( .NOT. bc_ns_cyc )  cyclic(2) = .FALSE.
     199    IF ( bc_lr /= 'cyclic' )  cyclic(1) = .FALSE.
     200    IF ( bc_ns /= 'cyclic' )  cyclic(2) = .FALSE.
    197201
    198202!
     
    977981    ENDIF
    978982
    979     grid_level = maximum_grid_level
     983!
     984!-- Default level 0 tells exchange_horiz that all ghost planes have to be
     985!-- exchanged. grid_level is adjusted in poismg, where only one ghost plane
     986!-- is required.
     987    grid_level = 0
    980988
    981989#if defined( __parallel )
     
    10671075!-- horizontal boundary conditions.
    10681076    IF ( pleft == MPI_PROC_NULL )  THEN
    1069        IF ( bc_lr_dirrad )  THEN
     1077       IF ( bc_lr == 'dirichlet/radiation' )  THEN
    10701078          inflow_l  = .TRUE.
    1071        ELSEIF ( bc_lr_raddir )  THEN
     1079       ELSEIF ( bc_lr == 'radiation/dirichlet' )  THEN
    10721080          outflow_l = .TRUE.
    10731081       ENDIF
     
    10751083
    10761084    IF ( pright == MPI_PROC_NULL )  THEN
    1077        IF ( bc_lr_dirrad )  THEN
     1085       IF ( bc_lr == 'dirichlet/radiation' )  THEN
    10781086          outflow_r = .TRUE.
    1079        ELSEIF ( bc_lr_raddir )  THEN
     1087       ELSEIF ( bc_lr == 'radiation/dirichlet' )  THEN
    10801088          inflow_r  = .TRUE.
    10811089       ENDIF
     
    10831091
    10841092    IF ( psouth == MPI_PROC_NULL )  THEN
    1085        IF ( bc_ns_dirrad )  THEN
     1093       IF ( bc_ns == 'dirichlet/radiation' )  THEN
    10861094          outflow_s = .TRUE.
    1087        ELSEIF ( bc_ns_raddir )  THEN
     1095       ELSEIF ( bc_ns == 'radiation/dirichlet' )  THEN
    10881096          inflow_s  = .TRUE.
    10891097       ENDIF
     
    10911099
    10921100    IF ( pnorth == MPI_PROC_NULL )  THEN
    1093        IF ( bc_ns_dirrad )  THEN
     1101       IF ( bc_ns == 'dirichlet/radiation' )  THEN
    10941102          inflow_n  = .TRUE.
    1095        ELSEIF ( bc_ns_raddir )  THEN
     1103       ELSEIF ( bc_ns == 'radiation/dirichlet' )  THEN
    10961104          outflow_n = .TRUE.
    10971105       ENDIF
     
    11231131
    11241132#else
    1125     IF ( bc_lr_dirrad )  THEN
     1133    IF ( bc_lr == 'dirichlet/radiation' )  THEN
    11261134       inflow_l  = .TRUE.
    11271135       outflow_r = .TRUE.
    1128     ELSEIF ( bc_lr_raddir )  THEN
     1136    ELSEIF ( bc_lr == 'radiation/dirichlet' )  THEN
    11291137       outflow_l = .TRUE.
    11301138       inflow_r  = .TRUE.
    11311139    ENDIF
    11321140
    1133     IF ( bc_ns_dirrad )  THEN
     1141    IF ( bc_ns == 'dirichlet/radiation' )  THEN
    11341142       inflow_n  = .TRUE.
    11351143       outflow_s = .TRUE.
    1136     ELSEIF ( bc_ns_raddir )  THEN
     1144    ELSEIF ( bc_ns == 'radiation/dirichlet' )  THEN
    11371145       outflow_n = .TRUE.
    11381146       inflow_s  = .TRUE.
Note: See TracChangeset for help on using the changeset viewer.