← Back to team overview

ufl team mailing list archive

Index renumbering

 

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

Attachment: signature.asc
Description: Digital signature


Follow ups