def METHOD_NAME(self, A):
    for gid in self.map.MyGlobalElements():
        if gid in (0,self.size-1):
            A.InsertGlobalValues(gid, [1.0], [gid])
        else:
            A.InsertGlobalValues(gid, [-1.0,2.0,-1.0], [gid-1,gid,gid+1])
    A.FillComplete()