/[lmdze]/trunk/phylmd/minmaxqfi.f90
ViewVC logotype

Annotation of /trunk/phylmd/minmaxqfi.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 959 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 guez 17 module minmaxqfi_m
2    
3     IMPLICIT none
4    
5     contains
6    
7     SUBROUTINE minmaxqfi(zq, qmin, qmax, comment)
8    
9     ! From phylmd/minmaxqfi.F, version 1.1.1.1 2004/05/19 12:53:09
10    
11 guez 265 use dimensions, only: llm
12 guez 17 use dimphy, only: klon
13 guez 36 use nr_util, only: assert
14 guez 17
15     real, intent(in):: zq(:, :), qmin, qmax
16     CHARACTER(len=*), intent(in):: comment
17    
18     ! Variables local to the procedure:
19    
20     INTEGER jadrs(klon), jbad, k, i
21    
22     !---------------------------------
23    
24     call assert(shape(zq) == (/klon, llm/), "minmaxqfi")
25    
26     DO k = 1, llm
27     jbad = 0
28     DO i = 1, klon
29     IF (zq(i, k) > qmax .OR. zq(i, k) < qmin) THEN
30     jbad = jbad + 1
31     jadrs(jbad) = i
32     ENDIF
33     ENDDO
34     IF (jbad > 0) THEN
35     PRINT *, comment
36     DO i = 1, jbad
37     PRINT *, "zq(", jadrs(i), ", ", k, ") = ", zq(jadrs(i), k)
38     ENDDO
39     ENDIF
40     ENDDO
41    
42     end SUBROUTINE minmaxqfi
43    
44     end module minmaxqfi_m

  ViewVC Help
Powered by ViewVC 1.1.21