[petsc-dev] Missing petsc4py bindings

Pierre Jolivet pierre at joliv.et
Tue Jul 13 07:39:46 CDT 2021


Hello,
I’d like to repartition a MATMPIAIJ in petsc4py, is there an equivalent of:
    MatPartitioning mpart;
    ierr = MatPartitioningCreate(PETSC_COMM_WORLD,&mpart);CHKERRQ(ierr);
    ierr = MatPartitioningSetAdjacency(mpart,B);CHKERRQ(ierr);
    ierr = MatPartitioningSetFromOptions(mpart);CHKERRQ(ierr);
    ierr = MatPartitioningApply(mpart,&is);CHKERRQ(ierr);
    ierr = MatPartitioningDestroy(&mpart);CHKERRQ(ierr);
    ierr = ISBuildTwoSided(is,NULL,&rows);CHKERRQ(ierr);
I can’t find any reference to MatPartitioning or ISBuildTwoSided in src/binding/petsc4py

Thanks,
Pierre


More information about the petsc-dev mailing list