Changeset 2459
- Timestamp:
- Mar 9, 2016, 11:18:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cv3_routines.F90
r2458 r2459 138 138 WRITE (*, *) 'tau_stop =', tau_stop 139 139 WRITE (*, *) 'ok_intermittent =', ok_intermittent 140 WRITE (*, *) 'coef_peel =', coef_peel 140 141 141 142 ! IM Lecture du fichier ep_param.data … … 1954 1955 ! ori do 400 k=1,nlp 1955 1956 ! ori do 390 j=1,nlp 1956 !yor! commented original :1957 ! DO j = 1, nl1958 ! DO k = 1, nl1959 ! DO i = 1, ncum1960 ! qent(i, k, j) = rr(i, j)1961 ! uent(i, k, j) = u(i, j)1962 ! vent(i, k, j) = v(i, j)1963 ! elij(i, k, j) = 0.01964 !!ym ment(i,k,j)=0.01965 !!ym sij(i,k,j)=0.01966 ! END DO1967 ! END DO1968 ! END DO1969 !yor! optim :1970 1957 DO j = 1, nl 1971 DO k = 1, nl 1972 qent(1:ncum, k, j) = rr(1:ncum, j) 1973 uent(1:ncum, k, j) = u(1:ncum, j) 1974 vent(1:ncum, k, j) = v(1:ncum, j) 1975 END DO 1976 END DO 1977 elij(1:ncum, 1:nl, 1:nl) = 0. 1958 DO k = 1, nl 1959 DO i = 1, ncum 1960 qent(i, k, j) = rr(i, j) 1961 uent(i, k, j) = u(i, j) 1962 vent(i, k, j) = v(i, j) 1963 elij(i, k, j) = 0.0 1964 !ym ment(i,k,j)=0.0 1965 !ym sij(i,k,j)=0.0 1966 END DO 1967 END DO 1968 END DO 1978 1969 1979 1970 !ym … … 2289 2280 ! MAF: renormalisation de MENT 2290 2281 CALL zilch(zm, nloc*na) 2291 2292 !yor! commented orig2293 ! DO jm = 1, nl2294 ! DO im = 1, nl2295 ! DO il = 1, ncum2296 ! zm(il, im) = zm(il, im) + (1.-sij(il,im,jm))*ment(il, im, jm)2297 ! END DO2298 ! END DO2299 ! END DO2300 !yor! optim2301 2282 DO jm = 1, nl 2302 DO im = 1, nl 2303 !DO il = 1, ncum 2304 zm(1:ncum, im) = zm(1:ncum, im) + (1.-sij(1:ncum,im,jm))*ment(1:ncum, im, jm) 2305 !END DO 2306 END DO 2307 END DO 2308 !! 2283 DO im = 1, nl 2284 DO il = 1, ncum 2285 zm(il, im) = zm(il, im) + (1.-sij(il,im,jm))*ment(il, im, jm) 2286 END DO 2287 END DO 2288 END DO 2309 2289 2310 2290 DO jm = 1, nl … … 2318 2298 END DO 2319 2299 2320 2321 !yor! commented original 2322 ! DO jm = 1, nl 2323 ! DO im = 1, nl 2324 ! DO il = 1, ncum 2325 ! qents(il, im, jm) = qent(il, im, jm) 2326 ! ments(il, im, jm) = ment(il, im, jm) 2327 ! END DO 2328 ! END DO 2329 ! END DO 2330 !yor! replaced 2331 qents(1:ncum, 1:nl, 1:nl) = qent(1:ncum, 1:nl, 1:nl) !yor! ncum?=nloc , nd?=na ?? 2332 ments(1:ncum, 1:nl, 1:nl) = ment(1:ncum, 1:nl, 1:nl) 2300 DO jm = 1, nl 2301 DO im = 1, nl 2302 DO il = 1, ncum 2303 qents(il, im, jm) = qent(il, im, jm) 2304 ments(il, im, jm) = ment(il, im, jm) 2305 END DO 2306 END DO 2307 END DO 2333 2308 2334 2309 RETURN … … 3327 3302 END DO 3328 3303 3329 DO j = i + 1, nl + 1 3330 DO k = 1, i 3331 !yor! reverted j and k loops 3332 DO il = 1, ncum 3333 !yor! IF (i<=inb(il) .AND. j<=(inb(il)+1)) THEN ! the second condition implies the first ! 3334 IF (j<=(inb(il)+1)) THEN 3335 amp1(il) = amp1(il) + ment(il, k, j) 3336 END IF 3337 END DO 3338 END DO 3304 DO k = 1, i 3305 DO j = i + 1, nl + 1 3306 DO il = 1, ncum 3307 IF (i<=inb(il) .AND. j<=(inb(il)+1)) THEN 3308 amp1(il) = amp1(il) + ment(il, k, j) 3309 END IF 3310 END DO 3311 END DO 3339 3312 END DO 3340 3313 … … 3342 3315 DO j = i, nl + 1 ! newvecto: nl au lieu nl+1? 3343 3316 DO il = 1, ncum 3344 !yor! IF (i<=inb(il) .AND. j<=inb(il)) THEN ! the second condition implies the 1st ! 3345 IF (j<=inb(il)) THEN 3317 IF (i<=inb(il) .AND. j<=inb(il)) THEN 3346 3318 ad(il) = ad(il) + ment(il, j, k) 3347 3319 END IF … … 3799 3771 END DO 3800 3772 END DO 3801 DO j = 1, nl !yor! inverted i and j loops3802 DO i= 1, nl3773 DO i = 1, nl 3774 DO j = 1, nl 3803 3775 DO il = 1, ncum 3804 3776 IF (iflag(il)<=1) THEN … … 3871 3843 END DO 3872 3844 3873 !yor! commented original3874 ! DO i = 1, nl3875 ! DO k = i, nl3876 ! DO n = 1, i - 13877 ! DO il = 1, ncum3878 ! IF (i>=icb(il) .AND. i<=inb(il) .AND. k<=inb(il)) THEN3879 ! up1(il, k, i) = up1(il, k, i) + ment(il, n, k)3880 ! dn1(il, k, i) = dn1(il, k, i) - ment(il, k, n)3881 ! END IF3882 ! END DO3883 ! END DO3884 ! END DO3885 ! END DO3886 !yor! replaced with3887 3845 DO i = 1, nl 3888 3846 DO k = i, nl 3889 3847 DO n = 1, i - 1 3890 3848 DO il = 1, ncum 3891 IF (i>=icb(il) .AND. k<=inb(il)) THEN ! yor ! as i always <= k 3892 up1(il, k, i) = up1(il, k, i) + ment(il, n, k) 3849 IF (i>=icb(il) .AND. i<=inb(il) .AND. k<=inb(il)) THEN 3850 up1(il, k, i) = up1(il, k, i) + ment(il, n, k) 3851 dn1(il, k, i) = dn1(il, k, i) - ment(il, k, n) 3893 3852 END IF 3894 3853 END DO … … 3896 3855 END DO 3897 3856 END DO 3898 DO i = 1, nl3899 DO n = 1, i - 13900 DO k = i, nl3901 DO il = 1, ncum3902 IF (i>=icb(il) .AND. k<=inb(il)) THEN ! yor ! i always <= k3903 dn1(il, k, i) = dn1(il, k, i) - ment(il, k, n)3904 END IF3905 END DO3906 END DO3907 END DO3908 END DO3909 !yor! end replace3910 3857 3911 3858 DO i = 1, nl
Note: See TracChangeset
for help on using the changeset viewer.