10.1.11. Fortran90

Up: Contents Next: Sample Fortran77 Programs Previous: Routines with Different Fortran Interfaces

PETSc includes limited support for direct use of Fortran90 pointers. Current routines include:


See the manual pages for details and pointers to example programs. To use the routines VecGetArrayF90(), VecRestoreArrayF90() VecDuplicateVecsF90(), and VecDestroyVecsF90(), one must use the Fortran90 vector include file,
    #include "include/finclude/vec.h90" 
Analogous include files for other components are da.h90, mat.h90, and is.h90; the conventional Fortran style include files (as discussed in Section Include Files ) are supported as well.

Unfortunately, these routines currently work only on certain machines with certain compilers. They currently work with the SGI, the Cray T3E, the IBM and the NAG Fortran 90 compiler.


Up: Contents Next: Sample Fortran77 Programs Previous: Routines with Different Fortran Interfaces