Research Article
Parallel Algorithms of Well-Balanced and Weighted Average Flux for Shallow Water Model Using CUDA
Algorithm 3
Calculate flux in the
or
direction.
1: for each row do | 2: for each edge do | 3: Calculate flux in equations (6) and (7) | 4: Store flux to memory | 5: end for | 6: end for |
|