def add_external(self, fname, unit, binflag=False, output=False):
    '\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.external_fnames):
        if self.verbose:
            print(f'BaseModel.add_external() warning: replacing existing filename {fname}')
        idx = self.external_fnames.index(fname)
        self.external_fnames.pop(idx)
        self.external_units.pop(idx)
        self.external_binflag.pop(idx)
        self.external_output.pop(idx)
    if (unit in self.external_units):
        if self.verbose:
            msg = f'BaseModel.add_external() warning: replacing existing unit {unit}'
            print(msg)
        idx = self.external_units.index(unit)
        self.external_fnames.pop(idx)
        self.external_units.pop(idx)
        self.external_binflag.pop(idx)
        self.external_output.pop(idx)
    self.external_fnames.append(fname)
    self.external_units.append(unit)
    self.external_binflag.append(binflag)
    self.external_output.append(output)
    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_external(self, fname, unit, binflag=False, output=False):
    '\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.external_fnames):
        if self.verbose:
            print(f'BaseModel.add_external() warning: replacing existing filename {fname}')
        idx = self.external_fnames.index(fname)
        self.external_fnames.pop(idx)
        self.external_units.pop(idx)
        self.external_binflag.pop(idx)
        self.external_output.pop(idx)
    if (unit in self.external_units):
        if self.verbose:
            msg = f'BaseModel.add_external() warning: replacing existing unit {unit}'
            print(msg)
        idx = self.external_units.index(unit)
        self.external_fnames.pop(idx)
        self.external_units.pop(idx)
        self.external_binflag.pop(idx)
        self.external_output.pop(idx)
    self.external_fnames.append(fname)
    self.external_units.append(unit)
    self.external_binflag.append(binflag)
    self.external_output.append(output)
    return