def maybe_setflags(array, write=None, align=None, uic=None):
    write = write if array.flags['OWNDATA'] else None
    array.setflags(write=write, align=align, uic=uic)
Set flags on a numpy ary.
dataset/ETHPy150Open OP2/PyOP2/pyop2/utils.py/maybe_setflags