Input:αsph,
|
Output:
|
1: fornpth = 0 toNpth − 1 do
|
2: parm_fwdarg[npth].npth = npth
|
3: parm_fwdarg[npth]. = &
|
4: parm_fwdarg[npth].αpth=&αsph[npthNxNyNz/Npth] |
5: parm_fwdarg[npth].= {Pass addresses |
of arrays to each pthread} |
6: pthread_create(&pthreads[npth], NULL, fwd_pthread, (void *) |
(parm_fwdarg+npth)) {Call function fwd_pthread} |
7: endfor
|
8: fornpth = 0 toNpth − 1 do
|
9: forn = 0 toNrNvNfdo
|
10:
|
11: endfor
|
12: endfor
|