def register_var(self, name, bc_object):
    '\n        register a variable with CellCenterData1d object.  Here we pass in a\n        BCObject that describes the boundary conditions for that\n        variable.\n        '
    if (self.initialized == 1):
        sys.exit('ERROR: grid already initialized')
    self.vars.append(name)
    self.nvar += 1
    self.BCs[name] = bc_object
register a variable with CellCenterData1d object.  Here we pass in a
BCObject that describes the boundary conditions for that
variable.
def register_var(self, name, bc_object):
    '\n        register a variable with CellCenterData1d object.  Here we pass in a\n        BCObject that describes the boundary conditions for that\n        variable.\n        '
    if (self.initialized == 1):
        sys.exit('ERROR: grid already initialized')
    self.vars.append(name)
    self.nvar += 1
    self.BCs[name] = bc_object