1 | REAL u(0:nx,0:ny), unew(0:nx,0:ny), f(0:nx,0:ny) |
2 | !HPF$ DISTRIBUTE u(BLOCK,*) |
3 | !HPF$ ALIGN (:,:) WITH u(:,:) :: unew, f |
4 | dx = 1.0/nx; dy = 1.0/ny; err = tol * 1e6 |
5 |
FORALL ( i=0:nx, j=0:ny )
|
6 | END FORALL |
7 | u = 0.0; unew = 0.0 |
8 |
DO WHILE (err > tol)
|
9 | END DO |