Actual source code: zlandaucreate.c

  1: #include <petsc/private/fortranimpl.h>
  2: #include <petscdmplex.h>
  3: #include <petsclandau.h>

  5: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  6:   #define dmplexlandaucreatevelocityspace_ DMPLEXLANDAUCREATEVELOCITYSPACE
  7: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
  8:   #define dmplexlandaucreatevelocityspace_ dmplexlandaucreatevelocityspace
  9: #endif

 11: /* Definitions of Fortran Wrapper routines */

 13: PETSC_EXTERN void dmplexlandaucreatevelocityspace_(MPI_Fint *comm, PetscInt *dim, char *name, Vec *X, Mat *J, DM *dm, int *ierr, PETSC_FORTRAN_CHARLEN_T len)
 14: {
 15:   char *prefix;
 16:   FIXCHAR(name, len, prefix);
 17:   *ierr = DMPlexLandauCreateVelocitySpace(MPI_Comm_f2c(*(comm)), *dim, prefix, X, J, dm);
 18:   FREECHAR(name, prefix);
 19: }