basicimpl.py¶
Basic vector and data transfer implementation factory.
-
class
openmdao.core.basicimpl.
BasicImpl
[source]¶ Bases:
object
Basic vector and data transfer implementation factory.
-
static
create_data_xfer
(src_vec, tgt_vec, src_idxs, tgt_idxs, vec_conns, byobj_conns)[source]¶ Create an object for performing data transfer between source and target vectors.
Args: src_vec : VecWrapper
Source vecwrapper for the transfer. In rev mode it will be the target.
tgt_vec : VecWrapper
Target vecwrapper for the transfer. In rev mode it will be the source.
src_idxs : array
Indices of the source variables in the source vector.
tgt_idxs : array
Indices of the target variables in the target vector.
vec_conns : dict
Mapping of ‘pass by vector’ variables to the source variables that they are connected to.
byobj_conns : dict
Mapping of ‘pass by object’ variables to the source variables that they are connected to.
Returns: DataXfer
A DataXfer object.
-
static