|
Last change
on this file since 3656 was
3175,
checked in by emillour, 23 months ago
|
|
Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM
|
|
File size:
366 bytes
|
| Line | |
|---|
| 1 | subroutine scatter(n,a,index,b) |
|---|
| 2 | C |
|---|
| 3 | implicit none |
|---|
| 4 | integer N,INDEX(n),I |
|---|
| 5 | real A(n),B(n) |
|---|
| 6 | c |
|---|
| 7 | c |
|---|
| 8 | DO 100 I=1,N |
|---|
| 9 | A(INDEX(I))=B(I) |
|---|
| 10 | 100 CONTINUE |
|---|
| 11 | c |
|---|
| 12 | return |
|---|
| 13 | end |
|---|
| 14 | c |
|---|
| 15 | c |
|---|
| 16 | c peut etre vec_scatter(v,rindices,count,r) en f77hp |
|---|
| 17 | c equivalent code: |
|---|
| 18 | c do 99 i=1,count |
|---|
| 19 | c99 r(rindices(i))=v(i) |
|---|
| 20 | c voir p. 11-13 |
|---|
| 21 | c |
|---|
Note: See
TracBrowser
for help on using the repository browser.