/[lmdze]/trunk/IOIPSL/Mathelp/moycum.f90
ViewVC logotype

Annotation of /trunk/IOIPSL/Mathelp/moycum.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (hide annotations)
Thu Sep 4 10:05:52 2014 UTC (9 years, 9 months ago) by guez
Original Path: trunk/IOIPSL/Mathelp/moycum.f
File size: 1118 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 guez 104 module moycum_m
2    
3     implicit none
4    
5     contains
6    
7     SUBROUTINE moycum (opp, np, px, py, pwx)
8     !- Does time operations
9     USE errioipsl, ONLY : histerr
10    
11     CHARACTER(LEN=7) :: opp
12     INTEGER :: np
13     REAL, DIMENSION(:) :: px, py
14     INTEGER :: pwx
15     !---------------------------------------------------------------------
16     IF (pwx /= 0) THEN
17     IF (opp == 'ave') THEN
18     px(1:np)=(px(1:np)*pwx+py(1:np))/REAL(pwx+1)
19     ELSE IF (opp == 't_sum') THEN
20     px(1:np)=px(1:np)+py(1:np)
21     ELSE IF ( (opp == 'l_min').OR.(opp == 't_min') ) THEN
22     px(1:np)=MIN(px(1:np), py(1:np))
23     ELSE IF ( (opp == 'l_max').OR.(opp == 't_max') ) THEN
24     px(1:np)=MAX(px(1:np), py(1:np))
25     ELSE
26     CALL histerr(3, "moycum", 'Unknown time operation', opp, ' ')
27     ENDIF
28     ELSE
29     IF (opp == 'l_min') THEN
30     px(1:np)=MIN(px(1:np), py(1:np))
31     ELSE IF (opp == 'l_max') THEN
32     px(1:np)=MAX(px(1:np), py(1:np))
33     ELSE
34     px(1:np)=py(1:np)
35     ENDIF
36     ENDIF
37     !--------------------
38     END SUBROUTINE moycum
39    
40     end module moycum_m

  ViewVC Help
Powered by ViewVC 1.1.21