Subject: [FFC-dev] [HG FFC] Support for command line option to specify how many quadrature points should be used (quadrature representation only).

From: [email-masked] (FFC)
Date: Fri, 24 Aug 2007 14:19:15 +0200 (CEST)

One or more new changesets pushed to the primary ffc repository.
A short summary of the last three changesets is included below.

changeset:   941:e7701c9fe93d000432a256085d14f7e341fa27ca
tag:         tip
user:        "Kristian Oelgaard <[email-masked]>"
date:        Fri Aug 24 14:19:02 2007 +0200
files:       src/ffc/common/constants.py src/ffc/compiler/compiler.py src/ffc/compiler/representation/quadrature/elementtensor.py src/ffc/compiler/representation/quadrature/monomialtabulation.py src/ffc/compiler/representation/quadrature/quadraturerepresentation.py src/ffc/compiler/representation/tensor/tensorrepresentation.py
description:
Support for command line option to specify how many quadrature points should be used (quadrature representation only).

changeset:   940:e4a2d568f35f4323db01305efc629260895c0ba6
user:        "Kristian Oelgaard <[email-masked]>"
date:        Fri Aug 24 09:00:19 2007 +0200
files:       src/ffc/compiler/codegeneration/quadrature/quadraturegenerator.py src/ffc/compiler/codegeneration/quadrature/quadraturegenerator_utils.py
description:
Minor bug fix in quadrature (name mapping for reusing tables).

changeset:   939:3ff55460c74399504315ec40dbb76007d178b926
user:        "Kristian Oelgaard <[email-masked]>"
date:        Wed Aug 22 10:44:24 2007 +0200
files:       src/ffc/compiler/codegeneration/common/evaluatebasisderivatives.py src/test/regression/reference/Constant.h src/test/regression/reference/Elasticity.h src/test/regression/reference/EnergyNorm.h src/test/regression/reference/FunctionOperators.h src/test/regression/reference/Heat.h src/test/regression/reference/Mass.h src/test/regression/reference/MixedMixedElement.h src/test/regression/reference/MixedPoisson.h src/test/regression/reference/NavierStokes.h src/test/regression/reference/NeumannProblem.h src/test/regression/reference/Optimization.h src/test/regression/reference/P5tet.h src/test/regression/reference/P5tri.h src/test/regression/reference/Poisson.h src/test/regression/reference/PoissonDG.h src/test/regression/reference/PoissonSystem.h src/test/regression/reference/Projection.h src/test/regression/reference/Stokes.h src/test/regression/reference/TensorWeightedPoisson.h
description:
Fix memory leak in evaluate_basis_derivatives(), evaluatebasisderivatives.py: delete_pointers().

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/ffc

---

From: Anders Logg <[email-masked]>
Date: Fri, 24 Aug 2007 14:23:03 +0200

Could you add the command-line option to the manpage?

/Anders

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

---

From: Kristian Oelgaard <[email-masked]>
Date: Fri, 24 Aug 2007 14:26:38 +0200

Quoting FFC <[email-masked]>:

It is now possible to specify from the command line how many quadrature points
FFC should use to evaluate a form. Currently only implemented for quadrature
representation but is easily implemented for tensor representation also if it
appears to be desirable.

usage:

ffc -r quadrature -fquadrature_points=2 Poisson.form

Will generate 2 quadrature points in each direction regardless of the polynomial
order of the form.

NOTE: The specified number of points will apply to ALL terms of the given form!

Kristian

> files:       src/ffc/common/constants.py src/ffc/compiler/compiler.py
> src/ffc/compiler/representation/quadrature/elementtensor.py
> src/ffc/compiler/representation/quadrature/monomialtabulation.py
> src/ffc/compiler/representation/quadrature/quadraturerepresentation.py
> src/ffc/compiler/representation/tensor/tensorrepresentation.py
> description:
> Support for command line option to specify how many quadrature points should
> be used (quadrature representation only).
> 
> 
> files:      
> src/ffc/compiler/codegeneration/quadrature/quadraturegenerator.py
> src/ffc/compiler/codegeneration/quadrature/quadraturegenerator_utils.py
> description:
> files:      
> src/ffc/compiler/codegeneration/common/evaluatebasisderivatives.py
> src/test/regression/reference/Constant.h
> src/test/regression/reference/Elasticity.h
> src/test/regression/reference/EnergyNorm.h
> src/test/regression/reference/FunctionOperators.h
> src/test/regression/reference/Heat.h src/test/regression/reference/Mass.h
> src/test/regression/reference/MixedMixedElement.h
> src/test/regression/reference/MixedPoisson.h
> src/test/regression/reference/NavierStokes.h
> src/test/regression/reference/NeumannProblem.h
> src/test/regression/reference/Optimization.h
> src/test/regression/reference/P5tet.h src/test/regression/reference/P5tri.h
> src/test/regression/reference/Poisson.h
> src/test/regression/reference/PoissonDG.h
> src/test/regression/reference/PoissonSystem.h
> src/test/regression/reference/Projection.h
> src/test/regression/reference/Stokes.h
> src/test/regression/reference/TensorWeightedPoisson.h
> description:

---

From: Kristian Oelgaard <[email-masked]>
Date: Fri, 24 Aug 2007 14:28:07 +0200

> Could you add the command-line option to the manpage?

Sure

Kristian

> > Support for command line option to specify how many quadrature points
> should be used (quadrature representation only).
> > 
> > 
> > Fix memory leak in evaluate_basis_derivatives(),
> evaluatebasisderivatives.py: delete_pointers().
> >

---

From: Anders Logg <[email-masked]>
Date: Fri, 24 Aug 2007 14:35:31 +0200

>> Fix memory leak in evaluate_basis_derivatives(), evaluatebasisderivatives.py:

Very nice!

/Anders