fenics-buildbot team mailing list archive
-
fenics-buildbot team
-
Mailing list archive
-
Message #00281
buildbot failure in FEniCS Project on dolfin-trunk-full-precise-amd64
The Buildbot has detected a new failure on builder dolfin-trunk-full-precise-amd64 while building FEniCS Project.
Full details are available at:
http://fenicsproject.org:8010/builders/dolfin-trunk-full-precise-amd64/builds/275
Buildbot URL: http://fenicsproject.org:8010/
Buildslave for this Build: precise-amd64
Build Reason: 'try' job by user Martin Alnaes
Build Source Stamp: HEAD (plus patch)
Blamelist: Martin Alnaes
BUILD FAILED: failed make run_unittests
sincerely,
-The Buildbot
=== modified file 'site-packages/dolfin/functions/function.py'
--- site-packages/dolfin/functions/function.py 2012-11-28 12:15:57 +0000
+++ site-packages/dolfin/functions/function.py 2012-11-29 12:12:14 +0000
@@ -388,30 +388,19 @@
"Return the FunctionSpace"
return self._V
-def _attach_argument_functions(V):
- if V._argument_functions is None:
- test = Argument(V)
- trial = Argument(V)
- V._argument_functions = (test, trial)
- test, trial = V._argument_functions
+def TestFunction(V):
+ """UFL value: Create a trial function argument to a form.
+
+ Note that this is the PyDOLFIN variant of the UFL TrialFunction.
+ """
+ return Argument(V, V._test_trial_count_offset - 2)
def TrialFunction(V):
"""UFL value: Create a test function argument to a form.
Note that this is the PyDOLFIN variant of the UFL TrialFunction.
"""
- _attach_argument_functions(V)
- test, trial = V._argument_functions
- return trial
-
-def TestFunction(V):
- """UFL value: Create a trial function argument to a form.
-
- Note that this is the PyDOLFIN variant of the UFL TrialFunction.
- """
- _attach_argument_functions(V)
- test, trial = V._argument_functions
- return test
+ return Argument(V, V._test_trial_count_offset - 1)
#--- TestFunctions and TrialFunctions ---
=== modified file 'site-packages/dolfin/functions/functionspace.py'
--- site-packages/dolfin/functions/functionspace.py 2012-11-28 12:15:57 +0000
+++ site-packages/dolfin/functions/functionspace.py 2012-11-29 12:12:14 +0000
@@ -48,6 +48,8 @@
class FunctionSpaceBase(cpp.FunctionSpace):
"Base class for all function spaces."
+ _global_test_trial_count_offset = 0
+
def __init__(self, mesh, element):
"""Create function space on given mesh for given finite element.
@@ -74,8 +76,9 @@
# set the element from a derived class.
self._ufl_element = element
- # Test and trial functions are constructed on demand and stored in this member
- self._argument_functions = None
+ # Test and trial functions are constructed on demand with count (id) stored in this member
+ FunctionSpaceBase._global_test_trial_count_offset -= 2
+ self._test_trial_count_offset = FunctionSpaceBase._global_test_trial_count_offset
# JIT-compile element to get ufc_element and ufc_dofmap
ufc_element, ufc_dofmap = jit(self._ufl_element)