speedup PCISPH functions