def _load_cell_data(self): for i in range(self.nprocs): fname = "cells_" + str(i) + "_" + str(self.time) cell_data = get_pickled_data(fname) self.cell_data.update(cell_data)
def _load_neighbor_data(self): for i in range(self.nprocs): fname = "neighbors_" + str(i) + "_" + self.array_name fname += "_" + str(self.time) nbr_data = get_pickled_data(fname) for idx, data in nbr_data.iteritems(): self.neighbors[idx] = data["neighbors"] self.cell_ids[idx] = data["cid"]