petsc_transfer.py#
Define the PETSc Transfer class.
- class openmdao.vectors.petsc_transfer.PETScTransfer(in_vec, out_vec, in_inds, out_inds, comm)[source]
Bases:
DefaultTransfer
PETSc Transfer implementation for running in parallel.
- Parameters:
- in_vec<Vector>
Pointer to the input vector.
- out_vec<Vector>
Pointer to the output vector.
- in_indsint ndarray
Input indices for the transfer.
- out_indsint ndarray
Output indices for the transfer.
- commMPI.Comm or <FakeComm>
Communicator of the system that owns this transfer.
- Attributes:
- _scattermethod
Method that performs a PETSc scatter.
- __init__(in_vec, out_vec, in_inds, out_inds, comm)[source]
Initialize all attributes.