Skip to content

Commit

Permalink
remove stupid getface
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Mar 20, 2017
1 parent 5aa70b3 commit 53e985f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ end
@inline getnodes(grid::Grid, set::String) = grid.nodes[grid.nodesets[set]]
@inline getnnodes(grid::Grid) = length(grid.nodes)

@inline function getface(grid::Grid, v::Int)
cell = (v-1) ÷ n_faces_per_cell(grid) + 1
face = v - (cell-1) * n_faces_per_cell(grid)
return CellFace((cell, face))
end

@inline getfaces(grid::Grid, set::String) = grid.cellfaces[grid.facesets[set]]
@inline getnfaces(grid::Grid) = getncells(grid) * n_faces_per_cell(grid)

Expand Down

0 comments on commit 53e985f

Please sign in to comment.