Adaptive Fluid Simulation Using a Linear Octree Structure