Commit 43f749f241748675dc3e7b5280c88fba04dfc7ef

  • avatar
  • MichaƂ Januszewski <spock @gen…oo.org>
  • Sat Feb 20 14:26:50 CET 2010
Fix the presenter example.
  
4747 self._vscale = 0.005
4848 self._vismode = 4
4949
50 def _draw_field(self, field, srf, b, vismode, width, height):
50 def _draw_field(self, field, srf, b, unused_map, vismode, width, height):
5151 # Rotate the field to the correct position.
5252 field = numpy.rot90(field.astype(numpy.float32), 3)
5353 a = pygame.surfarray.pixels3d(srf)
119119
120120 def _init_vis_2d(self):
121121 self.vis = Fluid2DVisPresentation(self, self.options.scr_w, self.options.scr_h,
122 self.options.scr_depth, self.options.lat_nx, self.options.lat_ny)
122 self.options.scr_depth, self.options.lat_nx, self.options.lat_ny,
123 self.options.scr_scale)
123124
124125if __name__ == '__main__':
125126 sim = LPresSim(LBMGeoPoiseuille)