Hi PETSc mailing list users,
I have managed to install PETSc and run some PETSc examples and little test codes of my own in Fortran. I am now trying to make PETSc work with my existing Fortran code. I have tried to build little test examples of the functionality that I can then incorporate
into my larger code base. However, I am having trouble just passing vectors back and forth between PETSc and Fortran.
I have attached a minimum semi-working example that can be compiled with the standard 'Makefile.user'. It throws an error when I try to copy the PETSc vector back to a Fortran vector using VecGetValues(). I get that it can only access values of the array on
the local process but how do I fix this? Is this even the right approach?