transfer.py

Define the Transfer base class.

class openmdao.vectors.transfer.Transfer(in_vec, out_vec, in_inds, out_inds, comm)[source]

Bases: object

Base Transfer class.

__init__(in_vec, out_vec, in_inds, out_inds, comm)[source]

Initialize all attributes.

Parameters:
in_vec : <Vector>

pointer to the input vector.

out_vec : <Vector>

pointer to the output vector.

in_inds : int ndarray

input indices for the transfer.

out_inds : int ndarray

output indices for the transfer.

comm : MPI.Comm or <FakeComm>

communicator of the system that owns this transfer.