def add_output(self, fname, unit, binflag=False, package=None):
    '\n        Assign an external array so that it will be listed as a DATA or\n        DATA(BINARY) entry in the name file.  This will allow an outside\n        file package to refer to it.\n\n        Parameters\n        ----------\n        fname : str\n            filename of external array\n        unit : int\n            unit number of external array\n        binflag : boolean\n            binary or not. (default is False)\n\n        '
    if (fname in self.output_fnames):
        if self.verbose:
            print(f'BaseModel.add_output() warning: replacing existing filename {fname}')
        idx = self.output_fnames.index(fname)
        if self.verbose:
            self._output_msg(idx, add=False)
        self.output_fnames.pop(idx)
        self.output_units.pop(idx)
        self.output_binflag.pop(idx)
        self.output_packages.pop(idx)
    self.output_fnames.append(fname)
    self.output_units.append(unit)
    self.output_binflag.append(binflag)
    if (package is not None):
        self.output_packages.append([package])
    else:
        self.output_packages.append([])
    if self.verbose:
        self._output_msg((- 1), add=True)
    return
Assign an external array so that it will be listed as a DATA or
DATA(BINARY) entry in the name file.  This will allow an outside
file package to refer to it.

Parameters
----------
fname : str
    filename of external array
unit : int
    unit number of external array
binflag : boolean
    binary or not. (default is False)
def add_output(self, fname, unit, binflag=False, package=None):
    '\n        Assign an external array so that it will be listed as a DATA or\n        DATA(BINARY) entry in the name file.  This will allow an outside\n        file package to refer to it.\n\n        Parameters\n        ----------\n        fname : str\n            filename of external array\n        unit : int\n            unit number of external array\n        binflag : boolean\n            binary or not. (default is False)\n\n        '
    if (fname in self.output_fnames):
        if self.verbose:
            print(f'BaseModel.add_output() warning: replacing existing filename {fname}')
        idx = self.output_fnames.index(fname)
        if self.verbose:
            self._output_msg(idx, add=False)
        self.output_fnames.pop(idx)
        self.output_units.pop(idx)
        self.output_binflag.pop(idx)
        self.output_packages.pop(idx)
    self.output_fnames.append(fname)
    self.output_units.append(unit)
    self.output_binflag.append(binflag)
    if (package is not None):
        self.output_packages.append([package])
    else:
        self.output_packages.append([])
    if self.verbose:
        self._output_msg((- 1), add=True)
    return