Exemple #1
0
    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)
Exemple #2
0
    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"]