Changeset 5501 for LMDZ6/trunk/libf/phylmd
- Timestamp:
- Jan 21, 2025, 6:46:33 PM (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_thermcell_old.f90
r5434 r5501 52 52 REAL fraca(ngrid, nlay+1), zw2(ngrid, nlay+1) 53 53 54 INTEGER, SAVE :: idetr = 3, lev_out = 1 55 !$OMP THREADPRIVATE(idetr,lev_out) 54 INTEGER :: idetr, lev_out 56 55 57 56 ! local: 58 57 ! ------ 59 58 60 INTEGER , SAVE :: dvdq = 0, flagdq = 0, dqimpl = 161 LOGICAL , SAVE :: debut = .TRUE.62 !$OMP THREADPRIVATE(dvdq,flagdq,debut,dqimpl) 59 INTEGER :: dvdq, flagdq, dqimpl 60 LOGICAL :: debut 61 63 62 64 63 INTEGER ig, k, l, lmax(klon, klev+1), lmaxa(klon), lmix(klon) … … 117 116 EXTERNAL scopy 118 117 119 INTEGER ncorrec, ll 120 SAVE ncorrec 121 DATA ncorrec/0/ 122 !$OMP THREADPRIVATE(ncorrec) 118 INTEGER ll 123 119 124 120 … … 126 122 ! initialisation: 127 123 ! --------------- 124 125 idetr=3 126 lev_out=1 128 127 129 128 sorties = .TRUE. … … 174 173 ! ----------------------------------------------------------------------- 175 174 176 IF (debut) THEN 177 flagdq = (iflag_thermals-1000)/100 178 dvdq = (iflag_thermals-(1000+flagdq*100))/10 179 IF (flagdq==2) dqimpl = -1 180 IF (flagdq==3) dqimpl = 1 181 debut = .FALSE. 182 END IF 183 PRINT *, 'TH flag th ', iflag_thermals, flagdq, dvdq, dqimpl 175 flagdq = (iflag_thermals-1000)/100 176 dvdq = (iflag_thermals-(1000+flagdq*100))/10 177 IF (flagdq==2) dqimpl = -1 178 IF (flagdq==3) dqimpl = 1 179 !PRINT *, 'TH flag th ', iflag_thermals, flagdq, dvdq, dqimpl 184 180 185 181 DO l = 2, nlay … … 764 760 765 761 INTEGER idetr 766 SAVE idetr767 DATA idetr/3/768 !$OMP THREADPRIVATE(idetr)769 762 770 763 ! local: … … 778 771 REAL zmix(klon), fracazmix(klon) 779 772 REAL alpha 780 SAVE alpha781 DATA alpha/1./782 !$OMP THREADPRIVATE(alpha)783 773 784 774 ! RC … … 890 880 REAL f_old 891 881 REAL zlevinter(klon) 892 LOGICAL, 882 LOGICAL,SAVE :: first = .TRUE. 893 883 !$OMP THREADPRIVATE(first) 894 884 ! data first /.false./ … … 915 905 EXTERNAL scopy 916 906 917 INTEGER ncorrec, ll 918 SAVE ncorrec 919 DATA ncorrec/0/ 920 !$OMP THREADPRIVATE(ncorrec) 921 922 907 INTEGER ll 908 909 910 idetr=3 911 alpha=1. 923 912 924 913 ! ----------------------------------------------------------------------- … … 2365 2354 2366 2355 INTEGER idetr 2367 SAVE idetr2368 DATA idetr/3/2369 !$OMP THREADPRIVATE(idetr)2370 2356 2371 2357 ! local: … … 2459 2445 EXTERNAL scopy 2460 2446 2461 INTEGER ncorrec, ll 2462 SAVE ncorrec 2463 DATA ncorrec/0/ 2464 !$OMP THREADPRIVATE(ncorrec) 2447 INTEGER ll 2465 2448 2466 2449 … … 2470 2453 ! --------------- 2471 2454 2455 idetr=3 2472 2456 sorties = .TRUE. 2473 2457 IF (ngrid/=klon) THEN … … 3294 3278 3295 3279 INTEGER idetr 3296 SAVE idetr3297 DATA idetr/3/3298 !$OMP THREADPRIVATE(idetr)3299 3280 3300 3281 ! local: … … 3375 3356 EXTERNAL scopy 3376 3357 3377 INTEGER ncorrec, ll 3378 SAVE ncorrec 3379 DATA ncorrec/0/ 3380 !$OMP THREADPRIVATE(ncorrec) 3358 INTEGER ll 3381 3359 3382 3360 … … 3385 3363 ! --------------- 3386 3364 3365 idetr=3 3387 3366 sorties = .TRUE. 3388 3367 IF (ngrid/=klon) THEN … … 4507 4486 4508 4487 INTEGER idetr 4509 SAVE idetr4510 DATA idetr/3/4511 !$OMP THREADPRIVATE(idetr)4512 4488 4513 4489 ! local: … … 4572 4548 REAL f(klon), f0(klon) 4573 4549 REAL zlevinter(klon) 4574 LOGICAL first4575 DATA first/.FALSE./4576 SAVE first4577 !$OMP THREADPRIVATE(first)4578 ! RC4579 4550 4580 4551 CHARACTER *2 str2 … … 4588 4559 EXTERNAL scopy 4589 4560 4590 INTEGER ncorrec, ll 4591 SAVE ncorrec 4592 DATA ncorrec/0/ 4593 !$OMP THREADPRIVATE(ncorrec) 4561 INTEGER ll 4594 4562 4595 4563 … … 4598 4566 ! --------------- 4599 4567 4568 idetr=3 4600 4569 sorties = .TRUE. 4601 4570 IF (ngrid/=klon) THEN … … 4612 4581 ! print*,'0 OK convect8' 4613 4582 4583 idetr=3 4614 4584 DO l = 1, nlay 4615 4585 DO ig = 1, ngrid … … 5337 5307 5338 5308 INTEGER idetr 5339 SAVE idetr5340 DATA idetr/3/5341 !$OMP THREADPRIVATE(idetr)5342 5309 ! local: 5343 5310 ! ------ … … 5376 5343 5377 5344 REAL count_time 5378 ! integer isplit,nsplit5379 INTEGER isplit, nsplit, ialt5380 PARAMETER (nsplit=10)5381 DATA isplit/0/5382 SAVE isplit5383 !$OMP THREADPRIVATE(isplit)5384 5345 5385 5346 LOGICAL sorties … … 5427 5388 EXTERNAL scopy 5428 5389 5429 INTEGER ncorrec5430 SAVE ncorrec5431 DATA ncorrec/0/5432 !$OMP THREADPRIVATE(ncorrec)5433 5390 5434 5391 … … 5437 5394 ! --------------- 5438 5395 5396 idetr=3 5439 5397 sorties = .TRUE. 5440 5398 IF (ngrid/=klon) THEN … … 6226 6184 ! print*,'15 OK convect8' 6227 6185 6228 isplit = isplit + 16229 6186 6230 6187 END IF
Note: See TracChangeset
for help on using the changeset viewer.