

def create_local_meta(metadata, name):
    '\n    Creates the metadata dictionary for this level of execution.\n\n    Args\n    ----\n    metadata : dict\n        Dictionary containing the metadata passed from the parent level.\n\n    name : str\n        String to describe the current level of execution.\n    '
    if MPI:
        rank = MPI.COMM_WORLD.rank
    else:
        rank = 0
    if (metadata is None):
        parent_coordinate = [rank]
    else:
        parent_coordinate = metadata['coord']
    if ((len(parent_coordinate) == 3) and (rank == '')):
        name = 'root'
    local_meta = {
        'name': name,
        'coord': (parent_coordinate + [name, (0,)]),
        'timestamp': None,
        'success': 1,
        'msg': '',
    }
    return local_meta

dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/util/record_util.py create_local_meta/VarMisuse@77/184 `name`->`rank`