strange behaviour with PetscViewerBinary on MATIS

Andreas Grassl Andreas.Grassl at student.uibk.ac.at
Thu Jul 23 07:47:28 CDT 2009


Hello,

I want to save my Matrix A to disk and process it then with ksp/ksp/ex10. Doing
it for type AIJ is working fine.

Using type IS, it seems to save only the local matrix from one processor to the
disk and dump the others to stdout.

PetscViewerBinaryOpen(commw,"matrix.bin",FILE_MODE_WRITE,&viewer1);
MatView(A,viewer1);

Is the only workaround to save the LocalToGlobalMapping and the local matrices
separately and to read in all this information or do you see an easier way?

Is there a canonical way to save and restore the LocalToGlobalMapping?

Cheers,

ando

-- 
 /"\                               Grassl Andreas
 \ /    ASCII Ribbon Campaign      Uni Innsbruck Institut f. Mathematik
  X      against HTML email        Technikerstr. 13 Zi 709
 / \                               +43 (0)512 507 6091


More information about the petsc-users mailing list