1
__author__ = "Anders Logg (logg@simula.no)"
2
__date__ = "2004-11-03 -- 2009-03-08"
3
__copyright__ = "Copyright (C) 2004-2009 Anders Logg"
4
__license__ = "GNU GPL version 3 or any later version"
6
# Modified by Marie E. Rognes (meg@math.uio.no) 2007
9
from ffc.common.log import debug
11
# FFC tensor representation modules
12
from monomialtransformation import MonomialIndex
13
from multiindex import create_multi_index
16
"""This class represents the geometry tensor for a monomial term
17
of a multilinear form."""
19
def __init__(self, monomial):
20
"Create geometry tensor for given monomial."
23
self.determinant = monomial.determinant
24
self.coefficients = monomial.coefficients
25
self.transforms = monomial.transforms
27
# Create secondary and auxiliary multi indices
28
self.secondary_multi_index = create_multi_index(monomial, MonomialIndex.SECONDARY)
29
self.external_multi_index = create_multi_index(monomial, MonomialIndex.EXTERNAL)
31
debug("Secondary multi index: " + str(self.secondary_multi_index))
32
debug("External multi index: " + str(self.external_multi_index))