Last change
on this file since 3580 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:
310 bytes
|
Rev | Line | |
---|
[3175] | 1 | FUNCTION ilsum(n, logic, inc) |
---|
| 2 | c |
---|
| 3 | IMPLICIT NONE |
---|
| 4 | c |
---|
| 5 | integer ilsum |
---|
| 6 | integer n, inc |
---|
| 7 | logical logic((n-1)*inc+1) |
---|
| 8 | c |
---|
| 9 | integer i, in |
---|
| 10 | c |
---|
| 11 | ilsum = 0. |
---|
| 12 | in = 1 |
---|
| 13 | do 10 i = 1, n |
---|
| 14 | if (logic(in)) ilsum = ilsum + 1 |
---|
| 15 | in=in+inc |
---|
| 16 | 10 continue |
---|
| 17 | c |
---|
| 18 | return |
---|
| 19 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.