| Directory: | ./ |
|---|---|
| File: | misc/minmax.f |
| Date: | 2022-01-11 19:19:34 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 7 | 7 | 100.0% |
| Branches: | 2 | 2 | 100.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | ! | ||
| 2 | ! $Header$ | ||
| 3 | ! | ||
| 4 | 18245 | SUBROUTINE minmax(imax, xi, zmin, zmax ) | |
| 5 | c | ||
| 6 | c P. Le Van | ||
| 7 | |||
| 8 | INTEGER imax | ||
| 9 | REAL xi(imax) | ||
| 10 | REAL zmin,zmax | ||
| 11 | INTEGER i | ||
| 12 | |||
| 13 | 18245 | zmin = xi(1) | |
| 14 | 18245 | zmax = xi(1) | |
| 15 | |||
| 16 |
2/2✓ Branch 0 taken 18646654 times.
✓ Branch 1 taken 18245 times.
|
18664899 | DO i = 2, imax |
| 17 | 18646654 | zmin = MIN( zmin,xi(i) ) | |
| 18 | 18664899 | zmax = MAX( zmax,xi(i) ) | |
| 19 | ENDDO | ||
| 20 | |||
| 21 | 18245 | RETURN | |
| 22 | END | ||
| 23 | |||
| 24 |