/[lmdze]/trunk/dyn3d/adaptdt.f90
ViewVC logotype

Annotation of /trunk/dyn3d/adaptdt.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations)
Thu Jun 13 14:40:06 2019 UTC (5 years ago) by guez
File size: 1046 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 3
2 guez 81 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/adaptdt.F,v 1.1.1.1 2004/05/19
3     ! 12:53:05 lmdzadmin Exp $
4 guez 3
5 guez 104 SUBROUTINE adaptdt(dtbon, n, pbaru, masse)
6 guez 3
7 guez 265 USE dimensions
8 guez 81 USE paramet_m
9     USE comconst
10     USE disvert_m
11     USE conf_gcm_m
12     USE conf_gcm_m
13     USE comgeom
14 guez 313
15 guez 81 IMPLICIT NONE
16 guez 3
17    
18 guez 81 ! ----------------------------------------------------------
19     ! Arguments
20     ! ----------------------------------------------------------
21 guez 104 INTEGER n
22 guez 81 REAL dtbon
23     REAL, INTENT (IN) :: pbaru(iip1, jjp1, llm)
24     REAL masse(iip1, jjp1, llm)
25     ! ----------------------------------------------------------
26     ! Local
27     ! ----------------------------------------------------------
28     INTEGER i, j, l
29     REAL cflmax, aaa, bbb
30 guez 3
31 guez 81 cflmax = 0.
32     DO l = 1, llm
33     DO j = 2, jjm
34     DO i = 1, iim
35     aaa = pbaru(i, j, l)*dtvr/masse(i, j, l)
36     cflmax = max(cflmax, aaa)
37     bbb = -pbaru(i, j, l)*dtvr/masse(i+1, j, l)
38     cflmax = max(cflmax, bbb)
39     END DO
40     END DO
41     END DO
42     n = int(cflmax) + 1
43     dtbon = dtvr/n
44 guez 3
45 guez 81 RETURN
46     END SUBROUTINE adaptdt
47 guez 3
48    
49    
50 guez 81
51    
52    
53    

  ViewVC Help
Powered by ViewVC 1.1.21