Sorry for bothering again.
I have solved the problem by looking through another fortran code, it seems 
that I was wrongly calling the subroutine DMDAVecGetArrayF90.
I attached my final fortran code to share with you guys, which is changed from 
ksp tutorial ex34.c to ex34f.F90
Have a good day.

----------------------------------------------------------------
Pengyang Song(宋朋洋)
MSc candidate in Physical Oceanography
College of Oceanic and Atmospheric Sciences
Ocean University of China
No. 238 Songling Road, Qingdao 266100, Shandong, China
TEL: (+86) 15762264643

Attachment: ex34f.F90
Description: ex34f.F90

Reply via email to