Boundary condition flags:
0 = ZERO_GRADIENT
1 = DOUBLE_PERIDIOC
2 = ZERO_FLUX
There are still several things to be done in this build:
- Some of the tensors are somehow put onto CPU instead of GPU. Need to check how to optimize the performance by running codes on GPU.
- Use ATen to generate parallized functions.
- Add the functionality of the checking the velocity specification to ensure zero divergence and zero boundary flux (automatically ensured by vel_perp=0 at boundaries).