Actual source code: zbvec2f.c
1: #include <petsc/private/fortranimpl.h>
2: #include <petscvec.h>
3: #if defined(PETSC_HAVE_FORTRAN_CAPS)
4: #define veccreateseqwitharray0_ VECCREATESEQWITHARRAY0
5: #define veccreateseqwitharray1_ VECCREATESEQWITHARRAY1
6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
7: #define veccreateseqwitharray0_ veccreateseqwitharray0
8: #define veccreateseqwitharray1_ veccreateseqwitharray1
9: #endif
11: PETSC_EXTERN void veccreateseqwitharray0_(MPI_Comm *comm, int *bs, PetscInt *n, PetscScalar *s, Vec *V, PetscErrorCode *ierr)
12: {
13: CHKFORTRANNULLSCALAR(s);
14: *ierr = VecCreateSeqWithArray(MPI_Comm_f2c(*(MPI_Fint *)&*comm), *bs, *n, s, V);
15: }
17: PETSC_EXTERN void veccreateseqwitharray1_(MPI_Comm *comm, PetscInt64 *bs, PetscInt *n, PetscScalar *s, Vec *V, PetscErrorCode *ierr)
18: {
19: CHKFORTRANNULLSCALAR(s);
20: *ierr = VecCreateSeqWithArray(MPI_Comm_f2c(*(MPI_Fint *)&*comm), *bs, *n, s, V);
21: }