FFC

generated dofmap code uses double when it should be an int

Bug #889455 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FFC
Fix Released
Undecided
Marie Rognes

Bug Description

The input

    P2 = VectorElement("Lagrange", triangle, 1)
    real = FiniteElement("Real", triangle, 0)
   element = P2 * real

creates a function

  /// Initialize dofmap for mesh (return true iff init_cell() is needed)
  virtual bool init_mesh(const ufc::mesh& m)
  {
    _global_dimension = 2.0*m.num_entities[0] + 1;
    return false;
  }

2.0 should be 2.

Changed in ffc:
milestone: none → 1.0-rc
status: New → Confirmed
Changed in ffc:
assignee: nobody → Marie Rognes (meg-simula)
status: Confirmed → In Progress
Changed in ffc:
status: In Progress → Fix Committed
Anders Logg (logg)
Changed in ffc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.