Staticise internal function to avoid warnings about missing prior prototype.

This commit is contained in:
Bård Skaflestad 2011-12-08 16:25:00 +01:00
parent 74b8fe759a
commit 600a22e5b0
3 changed files with 7 additions and 7 deletions

View File

@ -128,7 +128,7 @@ coarse_sys_meta_destroy(struct coarse_sys_meta *m)
/* ---------------------------------------------------------------------- */
struct coarse_sys_meta *
static struct coarse_sys_meta *
coarse_sys_meta_allocate(size_t nblocks, size_t nfaces_c,
size_t nc , size_t nfaces_f)
/* ---------------------------------------------------------------------- */

View File

@ -80,7 +80,7 @@ static void igetvectors(int dims[3], int i, int j, int *field, int *v[])
element in neighbors.
*/
void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len)
static void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len)
{
int k;
@ -102,7 +102,7 @@ void compute_cell_index(const int dims[3], int i, int j, int *neighbors, int len
/*-----------------------------------------------------------------
Ensure there's sufficient memory
*/
int checkmemeory(int nz, struct processed_grid *out, int **intersections)
static int checkmemeory(int nz, struct processed_grid *out, int **intersections)
{
/* Ensure there is enough space */
@ -157,7 +157,7 @@ int checkmemeory(int nz, struct processed_grid *out, int **intersections)
direction == 0 : constant-i faces.
direction == 1 : constant-j faces.
*/
void process_vertical_faces(int direction,
static void process_vertical_faces(int direction,
int **intersections,
int *plist, int *work,
struct processed_grid *out)
@ -237,7 +237,7 @@ static int linearindex(const int dims[3], int i, int j, int k)
ACTNUM==0)
*/
void process_horizontal_faces(int **intersections,
static void process_horizontal_faces(int **intersections,
int *plist,
struct processed_grid *out)
{

View File

@ -137,7 +137,7 @@ solve_umfpack(struct CSCMatrix *csc, const double *b, double *x)
/*---------------------------------------------------------------------------*/
void
static void
call_UMFPACK(struct CSRMatrix *A, double *b, double *x)
/*---------------------------------------------------------------------------*/
{
@ -176,7 +176,7 @@ deallocate_cart_grid(grid_t *G)
free(G);
}
grid_t *
static grid_t *
cart_grid(int nx, int ny, int nz)
{
/* The following applies to any grid derived from base_grid_t. */