question about VecLoad (pls disregard previous one)

tsjb00 tsjb00 at hotmail.com
Thu May 15 10:29:03 CDT 2008


Many thanks to all for the reply! 

I use the code:
  PetscViewerBinaryOpen(PETSC_COMM_WORLD,"out.dat",FILE_MODE_READ,viewer);
  VecLoad(viewer,VECMPI,&v1);
to get the vector storing values of var.

My problem is, it seems that the vector global is evenly distributed over processors; while in my program, a DA is defined and according to DA global vectors are not distributed the same way. Would anybody please tell me how to deal with that?

Thanks in advance!

JB

_________________________________________________________________
MSN 中文网,最新时尚生活资讯,白领聚集门户。
http://cn.msn.com




More information about the petsc-users mailing list