hedge :: optemplate :: BCToFluxRewriter :: Class BCToFluxRewriter
[hide private]
[frames] | no frames]

Class BCToFluxRewriter

source code

Operates on FluxOperator instances bound to BoundaryPairs. If the boundary pair's bfield is an expression of what's available in the field, we can avoid fetching the data for the explicit boundary condition and just substitute the bfield expression into the flux. This mapper does exactly that.

Instance Methods [hide private]
map_common_subexpression_uncached(self, expr, *args, **kwargs) source code
map_operator_binding(self, expr) source code

Inherited from pymbolic.mapper.CSECachingMapperMixin: map_common_subexpression

Inherited from IdentityMapperMixin: map_boundarize, map_boundary_pair, map_diff_base, map_elementwise_max, map_flux_base, map_flux_exchange, map_mass_base, map_normal_component, map_scalar_parameter

Inherited from LocalOpReducerMixin: map_diff, map_inverse_mass, map_mass, map_minv_st, map_stiffness, map_stiffness_t

Inherited from FluxOpReducerMixin: map_flux, map_lift

Inherited from pymbolic.mapper.IdentityMapperBase: map_call, map_constant, map_function_symbol, map_list, map_lookup, map_negation, map_numpy_array, map_polynomial, map_power, map_product, map_quotient, map_subscript, map_sum, map_variable, map_vector

Inherited from pymbolic.mapper.RecursiveMapper: rec

Inherited from pymbolic.mapper.Mapper: __call__, handle_unsupported_expression, map_foreign, map_rational

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

map_operator_binding(self, expr)

source code 
Overrides: IdentityMapperMixin.map_operator_binding