Package hedge :: Package cuda :: Module discretization :: Class Discretization
[frames] | no frames]

Class Discretization

source code

                   object --+    
                            |    
discretization.Discretization --+
                                |
                               Discretization

Instance Methods
 
__init__(self, mesh, local_discretization=None, order=None, flux_plan=None, init_cuda=True, debug=False, dev=None, default_scalar_type=numpy.float32) source code
 
find_el_gpu_index(self, el) source code
 
find_number_in_block(self, el) source code
 
gpu_dof_count(self) source code
 
volume_to_gpu(self, field) source code
 
volume_from_gpu(self, field) source code
 
gpu_boundary_embedding(self, tag)
Return an array of indices embedding a CPU boundary field for tag into the GPU boundary field.
source code
 
boundary_to_gpu(self, tag, field) source code
 
volume_empty(self, shape=(), dtype=None) source code
 
volume_zeros(self, shape=()) source code
 
interpolate_volume_function(self, f, dtype=None) source code
 
boundary_empty(self, tag=hedge.mesh.TAG_ALL, shape=(), dtype=None) source code
 
boundary_zeros(self, tag=hedge.mesh.TAG_ALL, shape=(), dtype=None) source code
 
interpolate_boundary_function(self, f, tag=hedge.mesh.TAG_ALL) source code
 
boundary_normals(self, tag=hedge.mesh.TAG_ALL) source code
 
volumize_boundary_field(self, bfield, tag=hedge.mesh.TAG_ALL) source code
 
boundarize_volume_field(self, field, tag=hedge.mesh.TAG_ALL) source code
 
compile(self, optemplate) source code

Inherited from discretization.Discretization: __len__, add_instrumentation, boundary_nonempty, dt_factor, dt_geometric_factor, dt_non_geometric_factor, find_el_data, find_el_discretization, find_el_range, find_element, get_boundary, get_flux_operator, integral, len_boundary, norm

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods

Inherited from discretization.Discretization: get_local_discretization

Class Variables
  host_volume_empty = s.volume_empty
  host_volume_zeros = s.volume_zeros
Properties

Inherited from discretization.Discretization: inverse_mass_operator, mass_operator, minv_stiffness_t, nabla, stiffness_operator, stiffness_t_operator

Inherited from object: __class__

Method Details

__init__(self, mesh, local_discretization=None, order=None, flux_plan=None, init_cuda=True, debug=False, dev=None, default_scalar_type=numpy.float32)
(Constructor)

source code 
Overrides: discretization.Discretization.__init__

gpu_boundary_embedding(self, tag)

source code 

Return an array of indices embedding a CPU boundary field for tag into the GPU boundary field.

Decorators:
  • @memoize_method

volume_empty(self, shape=(), dtype=None)

source code 
Overrides: discretization.Discretization.volume_empty

volume_zeros(self, shape=())

source code 
Overrides: discretization.Discretization.volume_zeros

interpolate_volume_function(self, f, dtype=None)

source code 
Overrides: discretization.Discretization.interpolate_volume_function

boundary_empty(self, tag=hedge.mesh.TAG_ALL, shape=(), dtype=None)

source code 
Overrides: discretization.Discretization.boundary_empty

boundary_zeros(self, tag=hedge.mesh.TAG_ALL, shape=(), dtype=None)

source code 
Overrides: discretization.Discretization.boundary_zeros

interpolate_boundary_function(self, f, tag=hedge.mesh.TAG_ALL)

source code 
Overrides: discretization.Discretization.interpolate_boundary_function

boundary_normals(self, tag=hedge.mesh.TAG_ALL)

source code 
Overrides: discretization.Discretization.boundary_normals

volumize_boundary_field(self, bfield, tag=hedge.mesh.TAG_ALL)

source code 
Overrides: discretization.Discretization.volumize_boundary_field

boundarize_volume_field(self, field, tag=hedge.mesh.TAG_ALL)

source code 
Overrides: discretization.Discretization.boundarize_volume_field

compile(self, optemplate)

source code 
Overrides: discretization.Discretization.compile