-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
54 lines (39 loc) · 1.49 KB
/
__init__.py
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
54
"""
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.7.0dev"
# Import compiler functions
from ffc.compiler import compile_form, compile_element, compile_coordinate_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 *
from .fiatinterface import create_actual_fiat_element
# List of supported elements
try:
# Import list of supported elements from FIAT
from FIAT import supported_elements
supported_elements = list(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 = []