def create_copy(a):
    #create an empty array
    b = create(a.shape, a.dtype)

    #copy contents across
    b[:] = a[:]

    return b
create a a shared copy of an array
dataset/ETHPy150Open aheadley/pynemap/shmem.py/create_copy