PetscInitializeFortran
Routine that should be called from C after the call to PetscInitialize() if one is using a C main program that calls Fortran routines that in turn call PETSc routines.
Synopsis
int PetscInitializeFortran(void)
Collective on PETSC_COMM_WORLD
Notes
PetscInitializeFortran() initializes some of the default viewers,
communicators, etc. for use in the Fortran if a user's main program is
written in C. PetscInitializeFortran() is NOT needed if a user's main
program is written in Fortran; in this case, just calling
PetscInitialize() in the main (Fortran) program is sufficient.
See Also
PetscInitialize()
Keywords
Mixing C and Fortran, passing PETSc objects to Fortran
Level:beginner
Location:src/fortran/custom/zstartf.c
System Index
Table of Contents