[petsc-users] Index set in Chaco

Smith, Barry F. bsmith at mcs.anl.gov
Mon Jul 29 13:08:18 CDT 2019



  What does MatPartitioningView() indicate?  Are you using -mat_partitioning_type chaco  ?




> On Jul 29, 2019, at 6:26 AM, Eda Oktay via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> 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



More information about the petsc-users mailing list