Removed unnecessary variable.

This commit is contained in:
Atgeirr Flø Rasmussen 2010-11-19 14:05:03 +01:00
parent c3b1763f55
commit c6198d463e

View File

@ -77,12 +77,10 @@ public:
int num_cells = grid.numCells(); int num_cells = grid.numCells();
int ngconn = grid_.c_grid()->cell_facepos[num_cells]; int ngconn = grid_.c_grid()->cell_facepos[num_cells];
ncf_.resize(num_cells); ncf_.resize(num_cells);
int count = 0;
for (int cell = 0; cell < num_cells; ++cell) { for (int cell = 0; cell < num_cells; ++cell) {
int num_local_faces = grid.numCellFaces(cell); int num_local_faces = grid.numCellFaces(cell);
ncf_[cell] = num_local_faces; ncf_[cell] = num_local_faces;
} }
assert(count == ngconn);
htrans_.resize(ngconn); htrans_.resize(ngconn);
tpfa_htrans_compute(grid_.c_grid(), perm, &htrans_[0]); tpfa_htrans_compute(grid_.c_grid(), perm, &htrans_[0]);