Commits

Jed Brown  committed ea64a5b

PCTFS: need PETSC_INTERN for functions with function-pointer arguments

  • Participants
  • Parent commits b2e770c
  • Branches jed/cray-externc

Comments (0)

Files changed (2)

File src/ksp/pc/impls/tfs/xxt.c

 }
 
 /**************************************xxt.c***********************************/
-PetscInt XXT_factor(xxt_ADT xxt_handle,     /* prev. allocated xxt  handle */
-                    PetscInt *local2global, /* global column mapping       */
-                    PetscInt n,             /* local num rows              */
-                    PetscInt m,             /* local num cols              */
-                    PetscErrorCode (*matvec)(void*,PetscScalar*,PetscScalar*), /* b_loc=A_local.x_loc         */
-                    void *grid_data)        /* grid data for matvec        */
+PETSC_INTERN PetscInt XXT_factor(xxt_ADT xxt_handle,     /* prev. allocated xxt  handle */
+                                 PetscInt *local2global, /* global column mapping       */
+                                 PetscInt n,             /* local num rows              */
+                                 PetscInt m,             /* local num cols              */
+                                 PetscErrorCode (*matvec)(void*,PetscScalar*,PetscScalar*), /* b_loc=A_local.x_loc         */
+                                 void *grid_data)        /* grid data for matvec        */
 {
   PCTFS_comm_init();
   check_handle(xxt_handle);

File src/ksp/pc/impls/tfs/xyt.c

 }
 
 /**************************************xyt.c***********************************/
-PetscInt XYT_factor(xyt_ADT xyt_handle,     /* prev. allocated xyt  handle */
-                    PetscInt *local2global, /* global column mapping       */
-                    PetscInt n,             /* local num rows              */
-                    PetscInt m,             /* local num cols              */
-                    PetscErrorCode (*matvec)(void*,PetscScalar*,PetscScalar*), /* b_loc=A_local.x_loc         */
-                    void *grid_data)        /* grid data for matvec        */
+PETSC_INTERN PetscInt XYT_factor(xyt_ADT xyt_handle,     /* prev. allocated xyt  handle */
+                                 PetscInt *local2global, /* global column mapping       */
+                                 PetscInt n,             /* local num rows              */
+                                 PetscInt m,             /* local num cols              */
+                                 PetscErrorCode (*matvec)(void*,PetscScalar*,PetscScalar*), /* b_loc=A_local.x_loc         */
+                                 void *grid_data)        /* grid data for matvec        */
 {
 
   PCTFS_comm_init();