Commits

Martin Alnæs  committed 42866e7

Remove measure() call.

  • Participants
  • Parent commits 05df716

Comments (0)

Files changed (1)

File site-packages/uflacs/backends/latex/compiler.py

     return r"\text{TODO: format as LaTeX code: %s}" % str(expr)
 
 def format_integral(integral, integrandcode):
-    m = integral.measure()
-    dt = m.domain_type()
+    dt = integral.domain_type()
+    did = integral.domain_id()
     if dt == 'cell':
-        domain = r"\Omega_{%d}" % m.domain_id()
-        dx = m._domain_types[dt]
+        domain = r"\Omega_{%d}" % (did,)
+        dx = Measure._domain_types[dt]
     elif dt == 'exterior_facet':
-        domain = r"\partial\Omega_{%d}" % m.domain_id()
-        dx = m._domain_types[dt]
+        domain = r"\partial\Omega_{%d}" % (did,)
+        dx = Measure._domain_types[dt]
     elif dt == 'interior_facet':
-        domain = r"\Gamma_{%d}" % m.domain_id()
-        dx = m._domain_types[dt]
+        domain = r"\Gamma_{%d}" % (did,)
+        dx = Measure._domain_types[dt]
     return r"\int_{%s} %s %s" % (domain, integrandcode, dx)
 
 def compile_form(form, prefix):