def is_variable_local( self, driver, prefix, name ):
        '''Check to see if the given variable is available locally on this process'''

        if driver not in self.is_variable_local_cache:
            self.is_variable_local_cache[ driver ] = {}

        # Use the cached value if available
        if name in self.is_variable_local_cache[ driver ]:
            return self.is_variable_local_cache[ driver ][ name ]

        if prefix:
            name = name[ len(prefix) + 1 : ]

        if name.endswith('workflow.itername'):
            dname = name.replace('workflow.itername', 'itername')
            is_local = driver.workflow._system.is_variable_local( dname )
        else:
            is_local = driver.workflow._system.is_variable_local( name )

        self.is_variable_local_cache[ driver ][ name ] = is_local # save it away for next time
        return is_local
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/hdf5case.py/HDF5CaseRecorder.is_variable_local/original