environment/share/doc/ipython/examples/parallel/wave2D/parallelwave-mpi.py
def setup_partitioner(index, num_procs, gnum_cells, parts):
    """create a partitioner in the engine namespace"""
    global partitioner
    p = MPIRectPartitioner2D(my_id=index, num_procs=num_procs)
    p.redim(global_num_cells=gnum_cells, num_parts=parts)
    p.prepare_communication()
    # put the partitioner into the global namespace:
    partitioner=p
def setup_partitioner(index, num_procs, gnum_cells, parts):
    """create a partitioner in the engine namespace"""
    global partitioner
    p = MPIRectPartitioner2D(my_id=index, num_procs=num_procs)
    p.redim(global_num_cells=gnum_cells, num_parts=parts)
    p.prepare_communication()
    # put the partitioner into the global namespace:
    partitioner=p
def setup_partitioner ( index , num_procs , gnum_cells , parts ) : global partitioner p = MPIRectPartitioner2D ( my_id = index , num_procs = num_procs ) p . redim ( global_num_cells = gnum_cells , num_parts = parts ) p . prepare_communication ( ) # put the partitioner into the global namespace: partitioner = p
create a partitioner in the engine namespace
create a partitioner in the engine namespace