From 323914eaba6a21f2c33fef4e7734a68c3a4c9231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 9 May 2012 18:58:17 +0200 Subject: [PATCH] Don't expose a (presently) internal function. --- opm/core/pressure/tpfa/ifs_tpfa.c | 10 +++++++--- opm/core/pressure/tpfa/ifs_tpfa.h | 3 --- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/opm/core/pressure/tpfa/ifs_tpfa.c b/opm/core/pressure/tpfa/ifs_tpfa.c index 030bae422..4b1540c9f 100644 --- a/opm/core/pressure/tpfa/ifs_tpfa.c +++ b/opm/core/pressure/tpfa/ifs_tpfa.c @@ -11,8 +11,12 @@ #include -void mult_csr_matrix(const struct CSRMatrix* A, const double* u, double* v) { - size_t i,j; +static void +mult_csr_matrix(const struct CSRMatrix* A, + const double* u, + double* v) +{ + size_t i, j; for (j = 0; j < A->m; ++j) { v[j] = 0; for (i = (size_t) (A->ia[j]); i < (size_t) (A->ia[j+1]); ++i) { @@ -761,7 +765,7 @@ ifs_tpfa_assemble_comprock_increment(struct UnstructuredGrid *G , mult_csr_matrix(h->A, prev_pressure, v); /* We want to solve a Newton step for the residual - * (porevol(pressure)-porevol(initial_pressure))/dt + residual_for_imcompressible + * (porevol(pressure)-porevol(initial_pressure))/dt + residual_for_imcompressible * */ diff --git a/opm/core/pressure/tpfa/ifs_tpfa.h b/opm/core/pressure/tpfa/ifs_tpfa.h index c06c2f660..f7ab4230e 100644 --- a/opm/core/pressure/tpfa/ifs_tpfa.h +++ b/opm/core/pressure/tpfa/ifs_tpfa.h @@ -62,9 +62,6 @@ ifs_tpfa_construct(struct UnstructuredGrid *G, struct Wells *W); -void mult_csr_matrix(const struct CSRMatrix* A, const double* u, double* v); - - int ifs_tpfa_assemble(struct UnstructuredGrid *G , const struct ifs_tpfa_forces *F ,