Access in vector with tuple not working

Bug #879034 reported by Anders Logg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Invalid
High
Johan Hake

Bug Description

This fails but is listed as a valid example in the DOLFIN chapter:

b1 = b[(0, 4, 7, 10)]

Works if the index tuple is a numpy array.

Anders Logg (logg)
Changed in dolfin:
assignee: nobody → Johan Hake (johan-hake)
status: New → Confirmed
importance: Undecided → High
milestone: none → 1.0-beta2
Revision history for this message
Anders Logg (logg) wrote :

Must use list, not tuple: b1 = b[[0, 4, 7, 10]]

Changed in dolfin:
status: Confirmed → Invalid
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.