PETSc topics

Experimental html version of Parallel Programming in MPI, OpenMP, and PETSc by Victor Eijkhout. download the textbook at https:/

\[ \newcommand\inv{^{-1}}\newcommand\invt{^{-t}} \newcommand\bbP{\mathbb{P}} \newcommand\bbR{\mathbb{R}} \newcommand\defined{ \mathrel{\lower 5pt \hbox{${\equiv\atop\mathrm{\scriptstyle D}}$}}} \] 39.1 : Communicators
Back to Table of Contents

39 PETSc topics

39.1 Communicators

crumb trail: > petsc > Communicators

PETSc has a `world' communicator, which by default equals MPI_COMM_WORLD  . If you want to run PETSc on a subset of processes, you can assign a subcommunicator to the variable PETSC_COMM_WORLD in between the calls to MPI_Init and PetscInitialize  . Petsc communicators are of type PetscComm  .

Back to Table of Contents