Hi there,<br>I am coding using Fortran 90 with petsc. I extract the results from vector in petsc as follows,<br> <br> PetscScalar, pointer :: xx_v(:)<br> Vec pet_u <br> <br> ..............<br> call VecGetArrayF90(pet_u,xx_v,ierr) <br>
data_for_fortran = xx_v<br> call VecRestoreArrayF90(pet_u,xx_v,ierr)<br clear="all"> ...................<br> <br><br>For small size of vector, there is no problem. But when the size of vector is above million, some strange data appear. Could you recommend another way to output the data of vector in petsc into fortran array ? <br>
<br><br>Thanks,<br>Bo <br>