Skip to content
Snippets Groups Projects
Commit 1a476864 authored by Marcel Koch's avatar Marcel Koch Committed by Dominic Kempf
Browse files

use `self.measure`

parent 9c5ea7cd
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,10 @@ class BlockStructuredGeometryMixin(GenericPDELabGeometryMixin): ...@@ -31,12 +31,10 @@ class BlockStructuredGeometryMixin(GenericPDELabGeometryMixin):
assert isinstance(local, prim.Expression) assert isinstance(local, prim.Expression)
name = get_pymbolic_basename(local) + "_global" name = get_pymbolic_basename(local) + "_global"
it = get_global_context_value("integral_type") if self.measure == 'cell':
if it == 'cell':
compute_multilinear_to_global_transformation(name, local, self) compute_multilinear_to_global_transformation(name, local, self)
return prim.Variable(name) return prim.Variable(name)
elif it == 'exterior_facet' or it == 'interior_facet': elif self.measure == 'exterior_facet' or self.measure == 'interior_facet':
return GenericPDELabGeometryMixin.to_global(self, local) return GenericPDELabGeometryMixin.to_global(self, local)
else: else:
raise NotImplementedError raise NotImplementedError
...@@ -89,12 +87,10 @@ class AxiparallelBlockStructuredGeometryMixin(AxiparallelGeometryMixin, BlockStr ...@@ -89,12 +87,10 @@ class AxiparallelBlockStructuredGeometryMixin(AxiparallelGeometryMixin, BlockStr
assert isinstance(local, prim.Expression) assert isinstance(local, prim.Expression)
name = get_pymbolic_basename(local) + "_global" name = get_pymbolic_basename(local) + "_global"
it = get_global_context_value("integral_type") if self.measure == 'cell':
if it == 'cell':
compute_axiparallel_to_global_transformation(name, local, self) compute_axiparallel_to_global_transformation(name, local, self)
return prim.Variable(name) return prim.Variable(name)
elif it == 'exterior_facet' or it == 'interior_facet': elif self.measure == 'exterior_facet' or self.measure == 'interior_facet':
return AxiparallelGeometryMixin.to_global(self, local) return AxiparallelGeometryMixin.to_global(self, local)
else: else:
raise NotImplementedError raise NotImplementedError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment