← Back to team overview

ffc team mailing list archive

Arbitraryness in code generated by quadrature representation?

 


Repeated runs of the dolfin generate-form-files scripts seems to generate different code. For instance for the forms defined in

    /demo/undocumented/dg-advection-diffusion/cpp/AdvectionDiffusion.ufl

I get differences of the type

-    G[1] = 0.500000000000000*det*n1;
-    G[2] = 0.500000000000000*det;
+    G[1] = 0.500000000000000*det;
+    G[2] = 0.500000000000000*det*n1;

in tabulate_tensor and corresponding differences for the tensor terms. The code seems equivalent, but this behaviour makes it tedious to check for changes in the generated code. Has anyone else experienced this?

--
Marie

Follow ups