from devito.tools import Tag

__all__ = ['DOMAIN', 'OWNED', 'HALO', 'NOPAD', 'FULL',
           'LEFT', 'RIGHT', 'CENTER']


class DataRegion(Tag):
    pass


DOMAIN = DataRegion('domain')
OWNED = DataRegion('owned')  # within DOMAIN
HALO = DataRegion('halo')
NOPAD = DataRegion('nopad')  # == DOMAIN+HALO
FULL = DataRegion('full')  # == DOMAIN+HALO+PADDING


class DataSide(Tag):
    pass


LEFT = DataSide('left')
RIGHT = DataSide('right')
CENTER = DataSide('center')

from devito.tools import Tag

__all__ = ['DOMAIN', 'OWNED', 'HALO', 'NOPAD', 'FULL',
           'LEFT', 'RIGHT', 'CENTER']


class DataRegion(Tag):
    pass


DOMAIN = DataRegion('domain')
OWNED = DataRegion('owned')  # within DOMAIN
HALO = DataRegion('halo')
NOPAD = DataRegion('nopad')  # == DOMAIN+HALO
FULL = DataRegion('full')  # == DOMAIN+HALO+PADDING


class DataSide(Tag):
    pass


LEFT = DataSide('left', -1)
CENTER = DataSide('center', 0)
RIGHT = DataSide('right', 1)

Add static value to LEFT, CENTER, RIGHT
data: Add static value to LEFT, CENTER, RIGHT

  from devito.tools import Tag
  
  __all__ = ['DOMAIN', 'OWNED', 'HALO', 'NOPAD', 'FULL',
             'LEFT', 'RIGHT', 'CENTER']
  
  
  class DataRegion(Tag):
      pass
  
  
  DOMAIN = DataRegion('domain')
  OWNED = DataRegion('owned')  # within DOMAIN
  HALO = DataRegion('halo')
  NOPAD = DataRegion('nopad')  # == DOMAIN+HALO
  FULL = DataRegion('full')  # == DOMAIN+HALO+PADDING
  
  
  class DataSide(Tag):
      pass
  
  
- LEFT = DataSide('left')
+ LEFT = DataSide('left', -1)
- RIGHT = DataSide('right')
- CENTER = DataSide('center')
+ CENTER = DataSide('center', 0)
+ RIGHT = DataSide('right', 1)
  
Add static value to LEFT, CENTER, RIGHT
## Code Before:
from devito.tools import Tag

__all__ = ['DOMAIN', 'OWNED', 'HALO', 'NOPAD', 'FULL',
           'LEFT', 'RIGHT', 'CENTER']


class DataRegion(Tag):
    pass


DOMAIN = DataRegion('domain')
OWNED = DataRegion('owned')  # within DOMAIN
HALO = DataRegion('halo')
NOPAD = DataRegion('nopad')  # == DOMAIN+HALO
FULL = DataRegion('full')  # == DOMAIN+HALO+PADDING


class DataSide(Tag):
    pass


LEFT = DataSide('left')
RIGHT = DataSide('right')
CENTER = DataSide('center')

## Instruction:
Add static value to LEFT, CENTER, RIGHT
## Code After:
from devito.tools import Tag

__all__ = ['DOMAIN', 'OWNED', 'HALO', 'NOPAD', 'FULL',
           'LEFT', 'RIGHT', 'CENTER']


class DataRegion(Tag):
    pass


DOMAIN = DataRegion('domain')
OWNED = DataRegion('owned')  # within DOMAIN
HALO = DataRegion('halo')
NOPAD = DataRegion('nopad')  # == DOMAIN+HALO
FULL = DataRegion('full')  # == DOMAIN+HALO+PADDING


class DataSide(Tag):
    pass


LEFT = DataSide('left', -1)
CENTER = DataSide('center', 0)
RIGHT = DataSide('right', 1)
