Thanks, yes that worked! Dave
On Feb 20, 2014, at 3:30 AM, Martin Sandve Alnæs <[email protected]> wrote: > In this case there's just better consistency checks that trigger on a bug in > your ufl file. Change > c1 = Constant(triangle) > to > c1 = Constant(domain) > and it should be fine. > > Martin > > > On 19 February 2014 23:18, David Bernstein <[email protected]> wrote: > Hi Everyone, The recent changes seem to have broken a couple of our UFL > files, one of them is attached. The error message is below. > > Has there been a change in the form language that I should know about or is > this an issue with ffc? > > Thanks, > Dave > > > > > > Davids-Melior-MacBook:ufl Dave$ ffc -l dolfin -O Reynolds.ufl > This is FFC, the FEniCS Form Compiler, version 1.3.0+. > For further information, visit http://www.fenics.org/ffc/. > > Cell mismatch between domains with same label. > An exception occured during evaluation of form file. > To help you find the location of the error, a temporary script > 'Reynolds_debug.py' > has been created and will now be executed with debug output enabled: > Cell mismatch between domains with same label. > Traceback (most recent call last): > File "/usr/local/bin/ffc", line 197, in <module> > sys.exit(main(sys.argv[1:])) > File "/usr/local/bin/ffc", line 161, in main > ufd = load_ufl_file(filename) > File "/usr/local/lib/python2.7/site-packages/ufl/algorithms/formfiles.py", > line 196, in load_ufl_file > namespace = execute_ufl_code(uflcode, filename) > File "/usr/local/lib/python2.7/site-packages/ufl/algorithms/formfiles.py", > line 100, in execute_ufl_code > m = __import__(basename) > File "/Users/Dave/Repositories/terafrac/terafracsim/ufl/Reynolds_debug.py", > line 46, in <module> > a = inner(pow(w,3)*grad(u), grad(v))*dx + c1*u*v*dx > File "/usr/local/lib/python2.7/site-packages/ufl/measure.py", line 380, in > __rmul__ > domains = integrand.domains() > File "/usr/local/lib/python2.7/site-packages/ufl/expr.py", line 94, in > domains > return extract_domains(self) > File "/usr/local/lib/python2.7/site-packages/ufl/geometry.py", line 1073, > in extract_domains > return sorted(join_domains(domainlist)) > File "/usr/local/lib/python2.7/site-packages/ufl/geometry.py", line 1029, > in join_domains > check_domain_compatibility(domlist) > File "/usr/local/lib/python2.7/site-packages/ufl/geometry.py", line 988, in > check_domain_compatibility > error("Cell mismatch between domains with same label.") > File "/usr/local/lib/python2.7/site-packages/ufl/log.py", line 154, in error > raise self._exception_type(self._format_raw(*message)) > ufl.log.UFLException: Cell mismatch between domains with same label. > > _______________________________________________ > fenics mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics > > > _______________________________________________ > fenics mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics
_______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
