PointEval dependency on fenicstools does not seem to be documented
Issue #4
resolved
The below snippet gives me the below error. Does cbcpost PointEval depend on fenicstools? Is this documented somewhere?
Traceback (most recent call last):
File "bug.py", line 12, in <module>
pp.add_field([PointEval("ActivationTimes", p, dict(plot=True))])
File "/home/meg/local/fenics-dev/lib/python2.7/site-packages/cbcpost-1.4.0-py2.7.egg/cbcpost/metafields/PointEval.py", line 83, in __init__
self._ft = import_fenicstools()
File "/home/meg/local/fenics-dev/lib/python2.7/site-packages/cbcpost-1.4.0-py2.7.egg/cbcpost/utils/utils.py", line 26, in import_fenicstools
import fenicstools
ImportError: No module named fenicstools
from cbcpost import *
pp = PostProcessor(dict(casedir="foo"))
threshold = 0.0
evaluation_points = [(0, 0, 0), (0, 7, 0), (20, 0, 0), (20, 7, 0),
(0, 0, 3), (0, 7, 3), (20, 0, 3), (20, 7, 3),
(10, 3.5, 1.5)]
for p in evaluation_points:
pp.add_field([PointEval("ActivationTimes", p, dict(plot=True))])
replayer = Replay(pp)
replayer.replay()
interactive()
Comments (2)
-
-
reporter - changed status to resolved
- Log in to comment
Yes, PointEval (and SubFunction) depends on fenicstools. I added a line to the documentation now.
This is because parallel point evaluation is (as far as I know) not supported in dolfin, but is supported in fenicstools.