basic_impl.py¶
Basic vector and data transfer implementation factory.
-
class
openmdao.core.basic_impl.
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, mode, sysdata)[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.
mode : str
Either ‘fwd’ or ‘rev’, indicating a forward or reverse scatter.
sysdata : SysData object
The SysData object for the Group that will contain the new DataTransfer object.
Returns: DataTransfer
A DataTransfer object.
-
static
create_src_vecwrapper
(sysdata, probdata, comm)[source]¶ Create a vecwrapper for source variables.
Args: sysdata : _SysData
A data object for System level data.
probdata : _ProbData
A data object for Problem level data that we need in order to store flags that span multiple layers in the hierarchy.
comm : a fake communicator or None.
This arg is ignored.
Returns: SrcVecWrapper
-
static
create_tgt_vecwrapper
(sysdata, probdata, comm)[source]¶ Create a vecwrapper for target variables.
Args: sysdata : _SysData
A data object for system level data
probdata : _ProbData
A data object for Problem level data that we need in order to store flags that span multiple layers in the hierarchy.
comm : a fake communicator or None.
This arg is ignored.
Returns: TgtVecWrapper
-
idx_arr_type
¶ alias of
int
-
static