Cleaned up pressure and removed layer of functions in CUDA code