Home | Trees | Indices | Help |
|
---|
|
1 # -*- coding: utf-8 -*- 2 """ 3 This module contains representation classes for integrals. 4 """ 5 6 # Copyright (C) 2008-2012 Martin Sandve Alnes and Simula Resarch Laboratory 7 # 8 # This file is part of SyFi. 9 # 10 # SyFi is free software: you can redistribute it and/or modify 11 # it under the terms of the GNU General Public License as published by 12 # the Free Software Foundation, either version 2 of the License, or 13 # (at your option) any later version. 14 # 15 # SyFi is distributed in the hope that it will be useful, 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 # GNU General Public License for more details. 19 # 20 # You should have received a copy of the GNU General Public License 21 # along with SyFi. If not, see <http://www.gnu.org/licenses/>. 22 # 23 # Modified by Kent-Andre Mardal, 2010. 24 # 25 # First added: 2008-08-13 26 # Last changed: 2012-05-25 27 28 #import SyFi 29 import swiginac 30 31 #import ufl 32 from ufl.permutation import compute_indices 33 from sfc.common import sfc_assert, sfc_warning, sfc_debug, sfc_error 34 from sfc.common.utilities import indices_subset 35 from sfc.codegeneration.codeformatting import indent, row_major_index_string 36 from sfc.symbolic_utils import symbols, symbol 375240 sfc_debug("Entering IntegralRepresentationBase.__init__") 41 42 sfc_assert(len(integrals) == 1, "Multiple integration modes not implemented.") 43 44 self.integrals = integrals 45 self.formrep = formrep 46 self._on_facet = on_facet 47 self.options = self.formrep.options.code.integral 48 49 self.classname = formrep.itg_names[integrals[0]] 50 51 sfc_debug("Leaving IntegralRepresentationBase.__init__")
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 31 03:52:26 2013 | http://epydoc.sourceforge.net |