1: #include <petsc/private/fortranimpl.h>
2: #include <petscpc.h>
4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
5: #define pccompositeaddpctype_ PCCOMPOSITEADDPCTYPE
6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
7: #define pccompositeaddpctype_ pccompositeaddpctype
8: #endif
10: PETSC_EXTERN void pccompositeaddpctype_(PC *pc, char *type, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len)
11: {
12: char *t;
14: FIXCHAR(type, len, t);
15: *ierr = PCCompositeAddPCType(*pc, t);
16: if (*ierr) return;
17: FREECHAR(type, t);
18: }