- Timestamp:
- Jul 22, 2024, 9:29:09 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmdiso/climb_hq_mod.F90
r5087 r5099 1 1 MODULE climb_hq_mod 2 ! 2 3 3 ! Module to solve the verctical diffusion of "q" and "H"; 4 4 ! specific humidity and potential energi. 5 ! 5 6 6 USE dimphy 7 7 #ifdef ISO … … 42 42 43 43 CONTAINS 44 ! 45 !**************************************************************************************** 46 ! 44 45 !**************************************************************************************** 46 47 47 SUBROUTINE climb_hq_down(knon, coefhq, paprs, pplay, & 48 48 delp, temp, q, dtime, & … … 67 67 ! for the quantity X=[Q,H] in equation X(k) = C(k) + D(k)*X(k-1), where k is 68 68 ! the index of the vertical layer. 69 ! 69 70 70 ! Input arguments 71 71 !**************************************************************************************** … … 147 147 ! 1) 148 148 ! Allocation at first time step only 149 ! 149 150 150 !**************************************************************************************** 151 151 … … 203 203 ! 2) 204 204 ! Definition of the coeficient K 205 ! 205 206 206 !**************************************************************************************** 207 207 Kcoefhq(:,:) = 0.0 … … 217 217 ! 3) 218 218 ! Calculation of gama for "Q" and "H" 219 ! 219 220 220 !**************************************************************************************** 221 221 ! surface pressure is used as reference … … 278 278 ! 4) 279 279 ! Calculte the coefficients C and D for specific humidity, q 280 ! 280 281 281 !**************************************************************************************** 282 282 … … 340 340 ! 5) 341 341 ! Calculte the coefficients C and D for potentiel entalpie, H 342 ! 342 343 343 !**************************************************************************************** 344 344 h_old(:,:) = 0.0 … … 358 358 ! 6) 359 359 ! Return the first layer in output variables 360 ! 360 361 361 !**************************************************************************************** 362 362 Acoef_H_out = Acoef_H … … 372 372 ! 7) 373 373 ! If Pbl is split, return also the other layers in output variables 374 ! 374 375 375 !**************************************************************************************** 376 376 !!! jyg le 07/02/2012 … … 415 415 416 416 END SUBROUTINE climb_hq_down 417 ! 418 !**************************************************************************************** 419 ! 417 418 !**************************************************************************************** 419 420 420 SUBROUTINE calc_coef(knon, Kcoef, gama, delp, X, Ccoef, Dcoef, Acoef, Bcoef) 421 ! 421 422 422 ! Calculate the coefficients C and D in : X(k) = C(k) + D(k)*X(k-1) 423 423 ! where X is H or Q, and k the vertical level k=1,klev 424 ! 424 425 425 INCLUDE "YOMCST.h" 426 426 ! Input arguments … … 443 443 !**************************************************************************************** 444 444 ! Niveau au sommet, k=klev 445 ! 445 446 446 !**************************************************************************************** 447 447 Ccoef(:,:) = 0.0 … … 458 458 !**************************************************************************************** 459 459 ! Niveau (klev-1) <= k <= 2 460 ! 460 461 461 !**************************************************************************************** 462 462 … … 472 472 !**************************************************************************************** 473 473 ! Niveau k=1 474 ! 474 475 475 !**************************************************************************************** 476 476 … … 482 482 483 483 END SUBROUTINE calc_coef 484 ! 485 !**************************************************************************************** 486 ! 484 485 !**************************************************************************************** 486 487 487 SUBROUTINE climb_hq_up(knon, dtime, t_old, q_old, & 488 488 flx_q1, flx_h1, paprs, pplay, & … … 505 505 USE isotopes_verif_mod 506 506 #endif 507 ! 507 508 508 ! This routine calculates the flux and tendency of the specific humidity q and 509 509 ! the potential engergi H. … … 511 511 ! X(k) = C(k) + D(k)*X(k-1) for X=[q,H], where the coefficients 512 512 ! C and D are known from before and k is index of the vertical layer. 513 !514 513 515 514 ! Input arguments … … 564 563 ! Definition of some variables 565 564 REAL, DIMENSION(klon,klev) :: d_h, zairm 566 ! 565 567 566 !**************************************************************************************** 568 567 … … 645 644 ! 2) 646 645 ! Calculation of Q and H 647 ! 646 648 647 !**************************************************************************************** 649 648 … … 715 714 ! 3) 716 715 ! Calculation of the flux for Q and H 717 ! 716 718 717 !**************************************************************************************** 719 718 … … 748 747 ! 4) 749 748 ! Calculation of tendency for Q and H 750 ! 749 751 750 !**************************************************************************************** 752 751 d_h_col_vdf(:) = 0.0 … … 798 797 !**************************************************************************************** 799 798 ! Some deallocations 800 ! 799 801 800 !**************************************************************************************** 802 801 IF (last) THEN … … 822 821 END IF 823 822 END SUBROUTINE climb_hq_up 824 ! 825 !**************************************************************************************** 826 ! 823 824 !**************************************************************************************** 825 827 826 END MODULE climb_hq_mod 828 827
Note: See TracChangeset
for help on using the changeset viewer.