def __str__(self):
    ' print out some basic information about the ccData2d object '
    if (self.initialized == 0):
        mystr = 'CellCenterData1d object not yet initialized'
        return mystr
    mystr = (('cc data: nx = {}, ng = {}\n'.format(self.grid.nx, self.grid.ng) + '         nvars = {}\n'.format(self.nvar)) + 'variables: \n')
    ilo = self.grid.ilo
    ihi = self.grid.ihi
    for n in range(self.nvar):
        mystr += ('%16s: min: %15.10f    max: %15.10f\n' % (self.vars[n], numpy.min(self.data[n, ilo:(ihi + 1)]), numpy.max(self.data[n, ilo:(ihi + 1)])))
        mystr += ('%16s  BCs: -x: %-12s +x: %-12s \n' % (' ', self.BCs[self.vars[n]].xlb, self.BCs[self.vars[n]].xrb))
    return mystr
print out some basic information about the ccData2d object
def __str__(self):
    '  '
    if (self.initialized == 0):
        mystr = 'CellCenterData1d object not yet initialized'
        return mystr
    mystr = (('cc data: nx = {}, ng = {}\n'.format(self.grid.nx, self.grid.ng) + '         nvars = {}\n'.format(self.nvar)) + 'variables: \n')
    ilo = self.grid.ilo
    ihi = self.grid.ihi
    for n in range(self.nvar):
        mystr += ('%16s: min: %15.10f    max: %15.10f\n' % (self.vars[n], numpy.min(self.data[n, ilo:(ihi + 1)]), numpy.max(self.data[n, ilo:(ihi + 1)])))
        mystr += ('%16s  BCs: -x: %-12s +x: %-12s \n' % (' ', self.BCs[self.vars[n]].xlb, self.BCs[self.vars[n]].xrb))
    return mystr