📄 test.py
字号:
# This script calls the just-in-time compiler of FFC# which generates code, compiles the code, wraps it# back to Python (using Instant/SWIG) and returns it# as a Python objectimport syssys.path.append("../../")from ffc import *element = FiniteElement("Lagrange", "triangle", 1)v = TestFunction(element)u = TrialFunction(element)a = dot(grad(v), grad(u))*dxcompiled_form = jit(a, language="dolfin")print compiled_form.rank(), compiled_form.num_coefficients()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -