def get_empty(ncells=0, aux_names=None, structured=True): # get an empty recaray that correponds to dtype dtype = ModflowGhb.get_default_dtype(structured=structured) if aux_names is not None: dtype = Package.add_to_dtype(dtype, aux_names, np.float32) d = np.zeros((ncells, len(dtype)), dtype=dtype) d[:, :] = -1.0E+10 return np.core.records.fromarrays(d.transpose(), dtype=dtype)
def get_empty(ncells=0, aux_names=None): #get an empty recaray that corresponds to dtype dtype = ModflowChd.get_default_dtype() if aux_names is not None: dtype = Package.add_to_dtype(dtype, aux_names, np.float32) d = np.zeros((ncells, len(dtype)), dtype=dtype) d[:, :] = -1.0E+10 return np.core.records.fromarrays(d.transpose(), dtype=dtype)
def get_empty(ncells=0, aux_names=None, structured=True): """ Get an empty recarray that correponds to hfb dtype and has been extended to include aux variables and associated aux names. """ dtype = ModflowHfb.get_default_dtype(structured=structured) if aux_names is not None: dtype = Package.add_to_dtype(dtype, aux_names, np.float32) d = np.zeros((ncells, len(dtype)), dtype=dtype) d[:, :] = -1.0e10 return np.core.records.fromarrays(d.transpose(), dtype=dtype)
def get_empty(ncells=0, aux_names=None): """ Get an empty recarray that correponds to hfb dtype and has been extended to include aux variables and associated aux names. """ dtype = ModflowHfb.get_default_dtype() if aux_names is not None: dtype = Package.add_to_dtype(dtype, aux_names, np.float32) d = np.zeros((ncells, len(dtype)), dtype=dtype) d[:, :] = -1.0E+10 return np.core.records.fromarrays(d.transpose(), dtype=dtype)