Source code for openmdao.core.parallel_group
"""Define the ParallelGroup class."""
from openmdao.core.group import Group
[docs]class ParallelGroup(Group):
"""
Class used to group systems together to be executed in parallel.
"""
[docs] def __init__(self, **kwargs):
"""
Set the mpi_proc_allocator option to 'parallel'.
Parameters
----------
**kwargs : dict
dict of arguments available here and in all descendants of this
Group.
"""
super().__init__(**kwargs)
self._mpi_proc_allocator.parallel = True