DISPATCH
dispatch_data.Patch Class Reference
Inheritance diagram for dispatch_data.Patch:
Collaboration diagram for dispatch_data.Patch:

Public Member Functions

def __init__ (self, filename, suffix='.txt', read_derivs=False, overlap=0.01, verbose=False, fd=None)
 
def data (self)
 
def stripv (self, v)
 
def trans (self, tr)
 
def stripit (self)
 
def cache (self)
 
def vars (self)
 
def corner_radii (self)
 
def variable_indices (self, read_derivs=False)
 
- Public Member Functions inherited from dispatch_data.Task
def __init__ (self)
 
def data (self)
 

Public Attributes

 filename
 
 offset
 
 kind
 
 nbytes
 
 nvar
 
 varidx
 
 varnames
 
 t
 
 Q
 
 d
 
 phi
 
 e
 
 s
 
 sd
 
 temp
 
 pg
 
 u1
 
 u2
 
 u3
 
 p1
 
 p2
 
 p3
 
 b1
 
 b2
 
 b3
 
 x
 
 y
 
 z
 
 xs
 
 ys
 
 zs
 
 S
 
 rk
 
 var
 

Detailed Description

A derived class for patches.

Definition at line 32 of file dispatch_data.py.

Member Function Documentation

◆ corner_radii()

def dispatch_data.Patch.corner_radii (   self)
array of corner radiii 

Definition at line 270 of file dispatch_data.py.

◆ data()

def dispatch_data.Patch.data (   self)
The actual data for a patch is accessed through a numpy 'memory map',
which uses on-demand access rather than reading the whole file in.
Note that a file handle is opened when this is invoked for the first time
and, if there are a very large number of patches, python will raise
an exception when it reaches its file handler limit.

Definition at line 65 of file dispatch_data.py.

References dispatch_data.Patch.__cached, dispatch_data.Patch.__data, dispatch_data.Patch._read_legacy_data(), dispatch_data.Patch.b1, dispatch_data.Patch.b2, dispatch_data.Patch.b3, dispatch_data.Patch.cache(), dispatch._dispatch._patch.cache(), index_mod::index_t.d, scaling_mod::scaling_t.d, mhd_mod::mhd_t.d, dispatch._dispatch._units.d, mesh_mod::mesh_t.d, dispatch_data.Patch.d, io_unit_mod::io_unit_t.data, buffered_io_mod::dump_t.data, dispatch_data.Task.data(), hash_table_mod::hash_table_t.data, dispatch._dispatch._patch.data, index_mod::index_t.e, math_mod::math_t.e, scaling_mod::scaling_t.e, cooling_mod::cooling_t.e, units_mod::const_t.e, mhd_mod::mhd_t.e, dispatch._dispatch._units.e, dispatch_data.Patch.e, mpi_file_mod::mpi_file_t.filename, direct_io_mod::direct_io_t.filename, dispatch._aux.aux.filename, dispatch_data.Patch.filename, data_io_mod::io_kind_t.filename, dispatch._dispatch._patch.filename, eos_mod::eos_t.gamma, initial_mod::initial_t.gamma, patch_mod::patch_t.gamma, omp_lock_mod::lock_t.kind, dispatch_data.Patch.kind, list_mod::list_t.kind, task_mod::task_t.kind, mpi_buffer_mod::mpi_buffer_t.n, mpi_global_mod::mpi_global_t.n, dll_mod::dll_t.n, timer_mod::latency_t.n, list_mod::list_t.n, counters_mod::counters_t.n, mesh_mod::mesh_t.n, mpi_mesg_mod::mesg_list_t.n, amr_io_mod::amr_io_t.n, load_balance_mod::rank_info_list_t.n, patch_mod::patch_t.n, patch_mod::header_t.n, dispatch_data.Patch.nbytes, dispatch_data.Patch.nvar, io_mod::io_t.nwrite, mpi_io_mod::mpi_io_t.nwrite, dispatch_data.Patch.offset, trace_particles_mod::trace_particles_t.offset, patch_mod::patch_t.offset, task_mod::task_t.origin, mesh_mod::mesh_t.origin, dispatch_data.Patch.p1, dispatch_data.Patch.p2, dispatch_data.Patch.p3, mhd_mod::mhd_t.pg, dispatch_data.Patch.pg, index_mod::index_t.phi, initial_mod::initial_t.phi, patch_mod::patch_t.phi, dispatch_data.Patch.phi, dispatch_data.Patch.Q, rt_mod::rt_t.rk, dispatch_data.Patch.rk, index_mod::index_t.s, mhd_mod::mhd_t.s, hd_mod::hd_t.s, mesh_mod::mesh_t.s, dispatch_data.Patch.s, dispatch_data.Patch.S, dispatch_data.Patch.sd, dispatch_data.Patch.stripv(), global_mod::global_t.t, particle_mod::particle_t.t, units_mod::units_t.t, dispatch._dispatch._units.t, task_mod::task_t.t, dispatch_data.Patch.t, patch_mod::header_t.t, scaling_mod::scaling_t.temp, dispatch_data.Patch.temp, dispatch_data.Patch.u1, dispatch_data.Patch.u2, dispatch_data.Patch.u3, dispatch_data.Patch.varidx, hydro_commons::courant_t.x, dispatch_data.Patch.x, dispatch_data.Patch.xs, dispatch_data.Patch.y, dispatch_data.Patch.ys, dispatch_data.Patch.z, and dispatch_data.Patch.zs.

◆ variable_indices()

def dispatch_data.Patch.variable_indices (   self,
  read_derivs = False 
)
A simple function to provide the indices of the variable stored in the binary
dump.

Definition at line 280 of file dispatch_data.py.

References omp_lock_mod::lock_t.kind, list_mod::list_t.kind, dispatch_data.Patch.kind, task_mod::task_t.kind, and dispatch_data.Patch.nvar.

◆ vars()


The documentation for this class was generated from the following file: