include file: PERIOD_BDY_EM_CHEM2.inc 1,4
!STARTOFREGISTRYGENERATEDINCLUDE 'inc/PERIOD_BDY_EM_CHEM2.inc'
!
! WARNING This file is generated automatically by use_registry
! using the data base in the file named Registry.
! Do not edit.  Your changes to this file will be lost.
!
IF ( grid%comms( PERIOD_BDY_EM_CHEM2 ) == invalid_message_value .AND. (config_flags%periodic_x .OR. config_flags%periodic_y )) THEN
  CALL wrf_debug ( 50 , 'setting up period PERIOD_BDY_EM_CHEM2' )
  CALL setup_period_rsl( grid )
  CALL rsl_create_message ( msg )
  CALL rsl_create_period ( grid%comms ( PERIOD_BDY_EM_CHEM2 ) )
  CALL rsl_describe_period ( grid%domdesc , grid%comms ( PERIOD_BDY_EM_CHEM2 ) , 3 , msg )
ENDIF
IF ( config_flags%periodic_x ) THEN
  CALL wrf_debug ( 50 , 'exchanging period PERIOD_BDY_EM_CHEM2 on x' )
  CALL rsl_exch_period ( grid%domdesc , grid%comms( PERIOD_BDY_EM_CHEM2 ) , x_period_flag )
END IF
IF ( config_flags%periodic_y ) THEN
  CALL wrf_debug ( 50 , 'exchanging period PERIOD_BDY_EM_CHEM2 on y' )
  CALL rsl_exch_period ( grid%domdesc , grid%comms( PERIOD_BDY_EM_CHEM2 ) , y_period_flag )
END IF
!ENDOFREGISTRYGENERATEDINCLUDE