Changeset 612 for BOL/trunk/Class_Reg
- Timestamp:
- Mar 25, 2005, 4:04:06 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/trunk/Class_Reg/geo2reg.F90
r611 r612 45 45 real, allocatable, dimension(:) :: xpdfmean 46 46 47 integer nb_bin 47 integer nb_bin, nbr_inf, nbr_sup 48 48 real min_bin, max_bin, step_bin, w_mult, x_mult 49 49 real xpdftot(mmax) … … 467 467 ! initialisations: 468 468 469 470 469 allocate(xpdfmean(nb_bin)) 471 470 allocate(xpdf(nb_bin, itime)) … … 474 473 allocate(w_binw(nb_bin, itime)) 475 474 allocate(x_binw(nb_bin, itime)) 476 477 478 479 480 475 481 476 !-- temporal loop: … … 538 533 enddo 539 534 enddo 535 nbr_inf = 0; nbr_sup = 0 540 536 ! tropical belt: 541 537 do j = 1, jm … … 549 545 x1 = x(i,j)*x_mult 550 546 ! bin w500: 551 ir = INT((w1-min_bin)/step_bin) + 1 547 if (w1 < min_bin) then 548 ir = 1 549 nbr_inf = nbr_inf + 1 550 else if (w1 > max_bin) then 551 ir = nb_bin 552 nbr_sup = nbr_sup + 1 553 else 554 ir = INT((w1-min_bin)/step_bin) + 1 555 endif 552 556 ! monthly PDF : 553 557 xpdfmeantot = xpdfmeantot + surf(i,j) … … 565 569 endif ! lat 566 570 enddo ! j 571 write(lunout,*)'nbre de points ou w500 < ',min_bin,' = ', nbr_inf 572 write(lunout,*)'nbre de points ou w500 > ',max_bin,' = ', nbr_sup 567 573 enddo ! m 568 574 … … 626 632 stop 627 633 endif 634 deallocate(var_dim) 628 635 629 636
Note: See TracChangeset
for help on using the changeset viewer.