Last change
on this file since 3436 was
3175,
checked in by emillour, 11 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:
325 bytes
|
Rev | Line | |
---|
[3175] | 1 | function ismax(n,sx,incx) |
---|
| 2 | c |
---|
| 3 | IMPLICIT NONE |
---|
| 4 | c |
---|
| 5 | INTEGER n,i,incx,ismax,ix |
---|
| 6 | real sx((n-1)*incx+1),sxmax |
---|
| 7 | c |
---|
| 8 | ix=1 |
---|
| 9 | ismax=1 |
---|
| 10 | sxmax=sx(1) |
---|
| 11 | do 10 i=1,n-1 |
---|
| 12 | ix=ix+incx |
---|
| 13 | if(sx(ix).gt.sxmax) then |
---|
| 14 | sxmax=sx(ix) |
---|
| 15 | ismax=i+1 |
---|
| 16 | endif |
---|
| 17 | 10 continue |
---|
| 18 | c |
---|
| 19 | return |
---|
| 20 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.