[petsc-users] Index set in Chaco
Eda Oktay
eda.oktay at metu.edu.tr
Mon Jul 29 06:26:57 CDT 2019
Hello everyone,
I am trying to partition a matrix by using chaco. By using ex15 from mat
examples, I wrote the code below:
MatPartitioningCreate(MPI_COMM_WORLD, &part);
MatPartitioningSetAdjacency(part, A);
MatPartitioningSetFromOptions(part);
MatPartitioningApply(part, &is);
ISView(is, PETSC_VIEWER_STDOUT_WORLD);
ISDestroy(&is);
MatPartitioningDestroy(&part);
MatDestroy(&A);
However, I always get zeros when I printed index set. I tried to change
eigensolver but it doesn't work. Since this is the first time I am using
Chaco, I couldn't understand where I did something wrong.
Thanks,
Eda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190729/4f851e07/attachment.html>
More information about the petsc-users
mailing list