Permalink
Browse files

Fixed python interface for LB print_velocity_vtk.

  • Loading branch information...
leqiao committed Oct 11, 2017
1 parent d6456c6 commit 1428c33bbf12025d4edbb7356a87083dcd28bc9e
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/python/espressomd/lb.pyx
@@ -173,12 +173,15 @@ IF LB_GPU or LB:
# input/output function wrappers for whole LB fields
####################################################
def print_vtk_velocity(self, path):
lb_lbfluid_print_vtk_velocity(utils.to_char_pointer(path))
def print_vtk_velocity(self, path, bb1, bb2):
cdef vector[int] bb1_vec = bb1
cdef vector[int] bb2_vec = bb2
lb_lbfluid_print_vtk_velocity(utils.to_char_pointer(path), bb1_vec, bb2_vec)
def print_vtk_velocity(self, path, bb1=None, bb2=None):
cdef vector[int] bb1_vec
cdef vector[int] bb2_vec
if bb1 is None or bb2 is None:
lb_lbfluid_print_vtk_velocity(utils.to_char_pointer(path))
else:
bb1_vec = bb1
bb2_vec = bb2
lb_lbfluid_print_vtk_velocity(utils.to_char_pointer(path), bb1_vec, bb2_vec)
def print_vtk_boundary(self, path):
lb_lbfluid_print_vtk_boundary(utils.to_char_pointer(path))
def print_velocity(self, path):

0 comments on commit 1428c33

Please sign in to comment.