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

Contents of /trunk/dyn3d/adaptdt.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (show annotations)
Thu Sep 4 10:05:52 2014 UTC (9 years, 8 months ago) by guez
File size: 1055 byte(s)
Removed procedure sortvarc0. Called sortvarc with an additional
argument resetvarc instead. (Following LMDZ.) Moved current time
computations and some printing statements from sortvarc to
caldyn. Could then remove arguments itau and time_0 of sortvarc, and
could remove "use dynetat0". Better to keep "dynetat0.f" as a gcm-only
file.

Moved some variables from module ener to module sortvarc.

Split file "mathelp.f" into single-procedure files.

Removed unused argument nadv of adaptdt. Removed dimension arguments
of bernoui.

Removed unused argument nisurf of interfoce_lim. Changed the size of
argument lmt_sst of interfoce_lim from klon to knon. Removed case when
newlmt is false.

dynredem1 is called only once in each run, either ce0l or gcm. So
variable nb in call to nf95_put_var was always 1. Removed variable nb.

Removed dimension arguments of calcul_fluxs. Removed unused arguments
precip_rain, precip_snow, snow of calcul_fluxs. Changed the size of
all the arrays in calcul_fluxs from klon to knon.

Removed dimension arguments of fonte_neige. Changed the size of all
the arrays in fonte_neige from klon to knon.

Changed the size of arguments tsurf and tsurf_new of interfsurf_hq
from klon to knon. Changed the size of argument ptsrf of soil from
klon to knon.

1
2 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/adaptdt.F,v 1.1.1.1 2004/05/19
3 ! 12:53:05 lmdzadmin Exp $
4
5 SUBROUTINE adaptdt(dtbon, n, pbaru, masse)
6
7 USE dimens_m
8 USE paramet_m
9 USE comconst
10 USE disvert_m
11 USE conf_gcm_m
12 USE conf_gcm_m
13 USE comgeom
14 USE temps
15 IMPLICIT NONE
16
17
18 ! ----------------------------------------------------------
19 ! Arguments
20 ! ----------------------------------------------------------
21 INTEGER n
22 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
31 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
45 RETURN
46 END SUBROUTINE adaptdt
47
48
49
50
51
52
53

  ViewVC Help
Powered by ViewVC 1.1.21