Staticise internal function to avoid warnings about missing prior prototype.
This commit is contained in:
parent
74b8fe759a
commit
600a22e5b0
@ -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,
|
coarse_sys_meta_allocate(size_t nblocks, size_t nfaces_c,
|
||||||
size_t nc , size_t nfaces_f)
|
size_t nc , size_t nfaces_f)
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
@ -80,7 +80,7 @@ static void igetvectors(int dims[3], int i, int j, int *field, int *v[])
|
|||||||
element in neighbors.
|
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;
|
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
|
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 */
|
/* 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 == 0 : constant-i faces.
|
||||||
direction == 1 : constant-j faces.
|
direction == 1 : constant-j faces.
|
||||||
*/
|
*/
|
||||||
void process_vertical_faces(int direction,
|
static void process_vertical_faces(int direction,
|
||||||
int **intersections,
|
int **intersections,
|
||||||
int *plist, int *work,
|
int *plist, int *work,
|
||||||
struct processed_grid *out)
|
struct processed_grid *out)
|
||||||
@ -237,7 +237,7 @@ static int linearindex(const int dims[3], int i, int j, int k)
|
|||||||
ACTNUM==0)
|
ACTNUM==0)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
void process_horizontal_faces(int **intersections,
|
static void process_horizontal_faces(int **intersections,
|
||||||
int *plist,
|
int *plist,
|
||||||
struct processed_grid *out)
|
struct processed_grid *out)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
call_UMFPACK(struct CSRMatrix *A, double *b, double *x)
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ deallocate_cart_grid(grid_t *G)
|
|||||||
free(G);
|
free(G);
|
||||||
}
|
}
|
||||||
|
|
||||||
grid_t *
|
static grid_t *
|
||||||
cart_grid(int nx, int ny, int nz)
|
cart_grid(int nx, int ny, int nz)
|
||||||
{
|
{
|
||||||
/* The following applies to any grid derived from base_grid_t. */
|
/* The following applies to any grid derived from base_grid_t. */
|
||||||
|
Loading…
Reference in New Issue
Block a user