← Back to team overview

ufl team mailing list archive

Re: Index renumbering

 

We need some kind of canonical numbering of indices (and form
arguments) for repr to give a unique ID for the cache.

Martin



On Sun, Feb 22, 2009 at 11:15 AM, Anders Logg <logg@xxxxxxxxx> wrote:
> I thought about it some more and I think I might be able to generate
> the indices on the fly as part of the monomial extraction so it might
> not be necessary.
>
> So if it's not needed for quadrature it can be part of the monomial
> extraction. Otherwise, it seems pretty simple to make a transformer
> for index renumbering.
>
> --
> Anders
>
>
> On Sun, Feb 22, 2009 at 10:35:06AM +0100, Martin Sandve Alnæs wrote:
>> 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)
>> >
>> >
>> > -----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
>> >
>> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmhJdsACgkQTuwUCDsYZdEo0gCfXNGRlgpfNBABWgAVLeMexyrW
> ZJkAn2f85OXCiyBjVnNl+CftHHG3irJH
> =/4QY
> -----END PGP SIGNATURE-----
>
>


References