Set the 'n' member of the matrix (number of columns).

This commit is contained in:
Atgeirr Flø Rasmussen 2010-10-28 11:38:41 +02:00
parent a05de2d311
commit 496bbb7faf

View File

@ -108,6 +108,9 @@ ifs_tpfa_construct_matrix(grid_t *G)
}
}
/* The tpfa matrix is square */
A->n = A->m;
assert ((size_t) A->ia[ G->number_of_cells ] == nnz);
/* Guarantee sorted rows */