← Back to team overview

ffc team mailing list archive

Re: [Branch ~dolfin-core/dolfin/main] Rev 4434: Set parameter to use tensor rep for DG Poisson demo. It's broken.

 

On Tue, Feb 02, 2010 at 11:20:32PM -0000, noreply@xxxxxxxxxxxxx wrote:
> ------------------------------------------------------------
> revno: 4434
> committer: Garth N. Wells <gnw20@xxxxxxxxx>
> branch nick: dolfin-all
> timestamp: Tue 2010-02-02 23:16:44 +0000
> message:
>   Set parameter to use tensor rep for DG Poisson demo. It's broken.
>
>   This shows that tensor rep is not wotking for DG.

I think it just shows that the tensor representation does not handle
FacetNormals or Division which is known. Without the -r representation
option, FFC will automatically discover that the integrand in question
needs to be done with quadrature but if someone insists on -r tensor,
then FFC will try and explain why it fails:

  *** FFC: No handler defined for expression Division.

I'll switch the demo back to "auto".

--
Anders



> modified:
>   demo/pde/dg/poisson/python/demo.py
>
>

> === modified file 'demo/pde/dg/poisson/python/demo.py'
> --- demo/pde/dg/poisson/python/demo.py	2010-01-27 21:09:29 +0000
> +++ demo/pde/dg/poisson/python/demo.py	2010-02-02 23:16:44 +0000
> @@ -23,6 +23,8 @@
>
>  from dolfin import *
>
> +parameters["form_compiler"]["representation"] = "tensor"
> +
>  # Create mesh and define function space
>  mesh = UnitSquare(24, 24)
>  V = FunctionSpace(mesh, "DG", 1)
>

Attachment: signature.asc
Description: Digital signature


Follow ups