Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Remove remaining usage sites of 'get_mapper_method'
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 28, 2015
1 parent e63d022 commit 4c896e8
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions hedge/flux/__init__.py
Expand Up @@ -44,8 +44,7 @@ def __init__(self, name, is_complex=False):
pymbolic.primitives.Variable.__init__(self, name)
self.is_complex = is_complex

def get_mapper_method(self, mapper):
return mapper.map_scalar_parameter
mapper_method = "map_scalar_parameter"


class FieldComponent(Flux):
Expand All @@ -68,8 +67,7 @@ def get_hash(self):
self.index,
self.is_interior))

def get_mapper_method(self, mapper):
return mapper.map_field_component
mapper_method = "map_field_component"


class Normal(Flux):
Expand All @@ -87,8 +85,7 @@ def get_hash(self):
self.__class__,
self.axis))

def get_mapper_method(self, mapper):
return mapper.map_normal
mapper_method = "map_normal"


class _StatelessFlux(Flux):
Expand Down Expand Up @@ -118,23 +115,19 @@ def get_hash(self):


class FaceJacobian(_StatelessFlux):
def get_mapper_method(self, mapper):
return mapper.map_face_jacobian
mapper_method = "map_face_jacobian"


class ElementJacobian(_SidedFlux):
def get_mapper_method(self, mapper):
return mapper.map_element_jacobian
mapper_method = "map_element_jacobian"


class ElementOrder(_SidedFlux):
def get_mapper_method(self, mapper):
return mapper.map_element_order
mapper_method = "map_element_order"


class LocalMeshSize(_StatelessFlux):
def get_mapper_method(self, mapper):
return mapper.map_local_mesh_size
mapper_method = "map_local_mesh_size"


def make_penalty_term(power=1):
Expand Down

0 comments on commit 4c896e8

Please sign in to comment.