Subject: [FFC-dev] Unused variables with quadrature optimisation

From: "Garth N. Wells" <[email-masked]>
Date: Fri, 24 Apr 2009 11:29:58 +0100

When switching on optimisation with quadrature for 
demo/pde/stokes/stabilized/Stokes.ufl, I get error for unsued variables 
in the generated code (see below). Same problem for 
demo/pde/elastodynamics/cpp/DG0_eps_xx.ufl.

Garth

In file included from main.cpp:14:
Stokes.h: In member function ‘virtual void 
UFC_StokesBilinearForm_cell_integral_0_quadrature::tabulate_tensor(double*, 
const double* const*, const ufc::cell&) const’:
Stokes.h:7629: error: unused variable ‘nzc7’
Stokes.h:7631: error: unused variable ‘nzc8’
Stokes.h: In member function ‘virtual void 
UFC_StokesLinearForm_cell_integral_0_quadrature::tabulate_tensor(double*, 
const double* const*, const ufc::cell&) const’:
Stokes.h:14086: error: unused variable ‘nzc2’
Stokes.h:14098: error: unused variable ‘nzc3’
Stokes.h:14104: error: unused variable ‘nzc6’
Stokes.h:14106: error: unused variable ‘nzc7’
Stokes.h:14108: error: unused variable ‘nzc8’
scons: *** [main.o] Error 1
scons: building terminated because of errors.

---

From: Kristian Oelgaard <[email-masked]>
Date: Fri, 24 Apr 2009 15:20:05 +0200

> demo/pde/elastodynamics/cpp/DG0_eps_xx.ufl.

I'll take a look.

Kristian

> _______________________________________________
> FFC-dev mailing list
> [email-masked]
> http://www.fenics.org/mailman/listinfo/ffc-dev
>

---

From: Kristian Oelgaard <[email-masked]>
Date: Fri, 24 Apr 2009 20:26:57 +0200

> > demo/pde/elastodynamics/cpp/DG0_eps_xx.ufl.

This should be fixed now.

Kristian