/usr/lib/python2.7/dist-packages/ffc/__init__.py is in python-ffc 1.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | """
FEniCS Form Compiler (FFC)
--------------------------
FFC compiles finite element variational forms into C++ code.
The interface consists of the following functions:
compile_form - Compilation of forms
compile_element - Compilation of finite elements
jit - Just-In-Time compilation of forms and elements
default_parameters - Default parameter values for FFC
"""
__version__ = "1.4.0"
# Import compiler functions
from ffc.compiler import compile_form, compile_element
# Import JIT compiler
from ffc.jitcompiler import jit
# Import default parameters
from parameters import default_parameters
# Import plotting
from plot import *
# Import useful extra functionality
from extras import *
# List of supported elements
try:
# Import list of supported elements from FIAT
from FIAT import supported_elements
supported_elements = supported_elements.keys()
supported_elements.sort()
# Append elements that we can plot
from plot import element_colors
supported_elements_for_plotting = list(set(supported_elements).union(set(element_colors.keys())))
supported_elements_for_plotting.sort()
# Remove elements from list that we don't support or don't trust
supported_elements.remove("Argyris")
supported_elements.remove("Hermite")
supported_elements.remove("Morley")
except:
supported_elements = []
supported_elements_for_plotting = []
|