Skip to content

Commit

Permalink
Use index map when creating colouring (#121)
Browse files Browse the repository at this point in the history
* use index map when creating colouring

* .grid.topology()
  • Loading branch information
mscroggs authored Oct 5, 2023
1 parent baed29c commit c4912c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bem/src/function_space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ impl<'a, E: FiniteElement> SerialFunctionSpace<'a, E> {
.topology()
.entity_count(self.grid.topology().dim())
{
let vs = cell_entities.row(i).unwrap();
let i_t = self.grid.topology().index_map()[i];
let vs = cell_entities.row(i_t).unwrap();
let mut c = 0;
while c < colouring.len() {
let mut found = false;
Expand Down

0 comments on commit c4912c8

Please sign in to comment.