include file: PERIOD_BDY_EM_B2.inc,4
!STARTOFREGISTRYGENERATEDINCLUDE 'inc/PERIOD_BDY_EM_B2.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_B2 ) == invalid_message_value .AND. (config_flags%periodic_x .OR. config_flags%periodic_y )) THEN
  CALL wrf_debug ( 50 , 'setting up period PERIOD_BDY_EM_B2' )
  CALL setup_period_rsl( grid )
  CALL rsl_create_message ( msg )
  CALL rsl_build_message ( msg, RSL_REAL_F90 , &
ru_tend , 3 , decompx , glenx , llenx )
  CALL rsl_build_message ( msg, RSL_REAL_F90 , &
rv_tend , 3 , decompy , gleny , lleny )
  CALL rsl_create_period ( grid%comms ( PERIOD_BDY_EM_B2 ) )
  CALL rsl_describe_period ( grid%domdesc , grid%comms ( PERIOD_BDY_EM_B2 ) , 2 , msg )
ENDIF
IF ( config_flags%periodic_x ) THEN
  CALL wrf_debug ( 50 , 'exchanging period PERIOD_BDY_EM_B2 on x' )
  CALL rsl_exch_period ( grid%domdesc , grid%comms( PERIOD_BDY_EM_B2 ) , x_period_flag )
END IF
IF ( config_flags%periodic_y ) THEN
  CALL wrf_debug ( 50 , 'exchanging period PERIOD_BDY_EM_B2 on y' )
  CALL rsl_exch_period ( grid%domdesc , grid%comms( PERIOD_BDY_EM_B2 ) , y_period_flag )
END IF
!ENDOFREGISTRYGENERATEDINCLUDE