← Back to team overview

ufl team mailing list archive

Re: Index renumbering

 

No, index renumbering isn't implemented.
And basis function indices are nonexisting,
I didn't think we needed them but maybe
you do for the tensor representation.
Lets discuss it next week.

Martin



On Sat, Feb 21, 2009 at 9:24 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> Is index renumbering implemented in UFL? I'd like to renumber all
> indices in a form such that the first index starts at zero. I'd also
> like to be able to have separate index types/flags for argument basis
> functions and other indices.
>
> For Poisson, FFC renumbers from
>
>  (dXa10/dx0)(dXa11/dx0) | ((d/dXa10)vi-2)*((d/dXa11)vi-1)*dX(0) +
>  (dXa12/dx1)(dXa13/dx1) | ((d/dXa12)vi-2)*((d/dXa13)vi-1)*dX(0)
>
> to
>
>  (dXa0/dx0)(dXa1/dx0) | ((d/dXa0)vi0)*((d/dXa1)vi1)*dX(0) +
>  (dXa0/dx1)(dXa1/dx1) | ((d/dXa0)vi0)*((d/dXa1)vi1)*dX(0)
>
> --
> Anders
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmgYxEACgkQTuwUCDsYZdEMCACfbxiYdEQrXpr9Ex5axYMqQ/Ja
> PbAAnjPaJkzuhXyEwBxKnDi1peZrKx+Y
> =OyGI
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> UFL-dev mailing list
> UFL-dev@xxxxxxxxxx
> http://fenics.org/mailman/listinfo/ufl-dev
>
>


Follow ups

References