Access in vector with tuple not working
Bug #879034 reported by
Anders Logg
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.
Changed in dolfin: | |
assignee: | nobody → Johan Hake (johan-hake) |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.0-beta2 |
To post a comment you must log in.
Must use list, not tuple: b1 = b[[0, 4, 7, 10]]