Пример #1
0
 def setUp(self):
     self.filename = os.path.join(os.path.dirname(__file__), 'test_data_padeops/taylorgreen.h5')
     self.reader = por.PadeopsReader(self.filename, periodic_dimensions=(True,True,True))
     
     self.lo = (2, 1, 2)
     self.hi = (4, 6, 5)
     self.reader.sub_domain = (self.lo, self.hi)
     self.reader.step = 0
Пример #2
0
    def setUp(self):
        self.filename = os.path.join(os.path.dirname(__file__),
                                     'test_data_padeops/taylorgreen.h5')
        self.serial_reader = por.PadeopsReader(self.filename,
                                               periodic_dimensions=(True, True,
                                                                    True))
        self.serial_reader.step = 0

        self.comm = MPI.COMM_WORLD
        self.num_ghosts = (1, 1, 1)
        self.reader = pdr.ParallelDataReader(
            MPI.COMM_WORLD,
            por.PadeopsReader(self.filename,
                              periodic_dimensions=(True, True, True)),
            num_ghosts=self.num_ghosts)
        self.reader.step = 0

        self.lo, self.hi = self.reader.interior_chunk