Last change
on this file since 3616 was
3175,
checked in by emillour, 13 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:
437 bytes
|
Rev | Line | |
---|
[3175] | 1 | SUBROUTINE wheneq(n,x,incx,target,index,nn) |
---|
| 2 | IMPLICIT NONE |
---|
| 3 | c |
---|
| 4 | integer n, incx, nn |
---|
| 5 | integer index(n) |
---|
| 6 | c |
---|
| 7 | integer target, x((n-1)*incx+1) |
---|
| 8 | cccccc real target, x((n-1)*incx+1) |
---|
| 9 | c |
---|
| 10 | integer i, ix |
---|
| 11 | c |
---|
| 12 | ix = 1 |
---|
| 13 | nn = 0 |
---|
| 14 | do 10 i = 1, n |
---|
| 15 | if (x(ix).EQ.target) then |
---|
| 16 | index(i) = ix |
---|
| 17 | nn = nn + 1 |
---|
| 18 | endif |
---|
| 19 | ix = ix + incx |
---|
| 20 | 10 continue |
---|
| 21 | c |
---|
| 22 | return |
---|
| 23 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.