Commits

Jed Brown committed bb9467b

Fortran: callbacks cannot use auto-generated interfaces

Comments (0)

Files changed (2)

src/dm/interface/dm.c

 
 #undef __FUNCT__
 #define __FUNCT__ "DMRefineHookAdd"
-/*@
+/*@C
    DMRefineHookAdd - adds a callback to be run when interpolating a nonlinear problem to a finer grid
 
    Logically Collective
 
    If this function is called multiple times, the hooks will be run in the order they are added.
 
+   This function is currently not available from Fortran.
+
 .seealso: DMCoarsenHookAdd(), SNESFASGetInterpolation(), SNESFASGetInjection(), PetscObjectCompose(), PetscContainerCreate()
 @*/
 PetscErrorCode DMRefineHookAdd(DM coarse,PetscErrorCode (*refinehook)(DM,DM,void*),PetscErrorCode (*interphook)(DM,Mat,DM,void*),void *ctx)
 
 #undef __FUNCT__
 #define __FUNCT__ "DMGlobalToLocalHookAdd"
-/*@
+/*@C
    DMGlobalToLocalHookAdd - adds a callback to be run when global to local is called
 
    Logically Collective
    In order to compose with nonlinear preconditioning without duplicating storage, the hook should be implemented to
    extract the finest level information from its context (instead of from the SNES).
 
+   This function is currently not available from Fortran.
+
 .seealso: DMRefineHookAdd(), SNESFASGetInterpolation(), SNESFASGetInjection(), PetscObjectCompose(), PetscContainerCreate()
 @*/
 PetscErrorCode DMGlobalToLocalHookAdd(DM dm,PetscErrorCode (*beginhook)(DM,Vec,InsertMode,Vec,void*),PetscErrorCode (*endhook)(DM,Vec,InsertMode,Vec,void*),void *ctx)
 
 #undef __FUNCT__
 #define __FUNCT__ "DMCoarsenHookAdd"
-/*@
+/*@C
    DMCoarsenHookAdd - adds a callback to be run when restricting a nonlinear problem to the coarse grid
 
    Logically Collective
    In order to compose with nonlinear preconditioning without duplicating storage, the hook should be implemented to
    extract the finest level information from its context (instead of from the SNES).
 
+   This function is currently not available from Fortran.
+
 .seealso: DMRefineHookAdd(), SNESFASGetInterpolation(), SNESFASGetInjection(), PetscObjectCompose(), PetscContainerCreate()
 @*/
 PetscErrorCode DMCoarsenHookAdd(DM fine,PetscErrorCode (*coarsenhook)(DM,DM,void*),PetscErrorCode (*restricthook)(DM,Mat,Vec,Mat,DM,void*),void *ctx)
 
 #undef __FUNCT__
 #define __FUNCT__ "DMSubDomainHookAdd"
-/*@
+/*@C
    DMSubDomainHookAdd - adds a callback to be run when restricting a problem to the coarse grid
 
    Logically Collective
    In order to compose with nonlinear preconditioning without duplicating storage, the hook should be implemented to
    extract the finest level information from its context (instead of from the SNES).
 
+   This function is currently not available from Fortran.
+
 .seealso: DMRefineHookAdd(), SNESFASGetInterpolation(), SNESFASGetInjection(), PetscObjectCompose(), PetscContainerCreate()
 @*/
 PetscErrorCode DMSubDomainHookAdd(DM global,PetscErrorCode (*ddhook)(DM,DM,void*),PetscErrorCode (*restricthook)(DM,VecScatter,VecScatter,DM,void*),void *ctx)

src/snes/interface/snes.c

 
 #undef __FUNCT__
 #define __FUNCT__ "SNESSetComputeApplicationContext"
-/*@
+/*@C
    SNESSetComputeApplicationContext - Sets an optional function to compute a user-defined context for
    the nonlinear solvers.
 
 
    Level: intermediate
 
+   Notes:
+   This function is currently not available from Fortran.
+
 .keywords: SNES, nonlinear, set, application, context
 
 .seealso: SNESGetApplicationContext(), SNESSetComputeApplicationContext(), SNESGetApplicationContext()