How should petsc initialization be handled for a python application utilizing 
petsc4py and a Fortran library application also using petsc?

The petsc documentation states that PetscInitializeFortran "should be called 
soon AFTER the call to 
PetscInitialize<https://petsc.org/release/docs/manualpages/Sys/PetscInitialize.html#PetscInitialize>()
 if one is using a C main program that calls Fortran routines that in turn call 
PETSc routines". Does petsc4py.init(...) call PetscInitializeFortran? Is it 
permissible to call PetscInitializeFortran from the fortran library application 
itself? Or must PetscInitializeFortran be called from the C main program?

Thank you,
Nathan
  • [petsc-users] In... WUKIE, NATHAN A DR-02 USAF AFMC AFRL/RQVC via petsc-users

Reply via email to