46 use constants_mod
, only: kappa, grav, cp_air, rdgas
48 use mpp_mod
, only: fatal, mpp_error
59 subroutine set_eta(km, ks, ptop, ak, bk)
61 integer,
intent(in):: km
62 integer,
intent(out):: ks
63 real:: a60(61),b60(61)
66 data a60/300.0000, 430.00000, 558.00000, &
67 700.00000, 863.05803, 1051.07995, &
68 1265.75194, 1510.71101, 1790.05098, &
69 2108.36604, 2470.78817, 2883.03811, &
70 3351.46002, 3883.05187, 4485.49315, &
71 5167.14603, 5937.04991, 6804.87379, &
72 7780.84698, 8875.64338, 10100.20534, &
73 11264.35673, 12190.64366, 12905.42546, &
74 13430.87867, 13785.88765, 13986.77987, &
75 14047.96335, 13982.46770, 13802.40331, &
76 13519.33841, 13144.59486, 12689.45608, &
77 12165.28766, 11583.57006, 10955.84778, &
78 10293.60402, 9608.08306, 8910.07678, &
79 8209.70131, 7516.18560, 6837.69250, &
80 6181.19473, 5552.39653, 4955.72632, &
81 4394.37629, 3870.38682, 3384.76586, &
82 2937.63489, 2528.37666, 2155.78385, &
83 1818.20722, 1513.68173, 1240.03585, &
84 994.99144, 776.23591, 581.48797, &
85 408.53400, 255.26520, 119.70243, 0. /
87 data b60/0.00000, 0.00000, 0.00000, &
88 0.00000, 0.00000, 0.00000, &
89 0.00000, 0.00000, 0.00000, &
90 0.00000, 0.00000, 0.00000, &
91 0.00000, 0.00000, 0.00000, &
92 0.00000, 0.00000, 0.00000, &
93 0.00000, 0.00000, 0.00000, &
94 0.00201, 0.00792, 0.01755, &
95 0.03079, 0.04751, 0.06761, &
96 0.09097, 0.11746, 0.14690, &
97 0.17911, 0.21382, 0.25076, &
98 0.28960, 0.32994, 0.37140, &
99 0.41353, 0.45589, 0.49806, &
100 0.53961, 0.58015, 0.61935, &
101 0.65692, 0.69261, 0.72625, &
102 0.75773, 0.78698, 0.81398, &
103 0.83876, 0.86138, 0.88192, &
104 0.90050, 0.91722, 0.93223, &
105 0.94565, 0.95762, 0.96827, &
106 0.97771, 0.98608, 0.99347, 1./
107 real,
intent(out):: ak(km+1)
108 real,
intent(out):: bk(km+1)
109 real,
intent(out):: ptop
110 real pint, stretch_fac
112 real :: s_rate = -1.0
252 #ifdef MOUNTAIN_WAVES 253 call mount_waves(km, ak, bk, ptop, ks, pint)
255 if (s_rate > 0.)
then 256 call var_les(km, ak, bk, ptop, ks, pint, s_rate)
259 call var_hi2(km, ak, bk, ptop, ks, pint, stretch_fac)
260 elseif (km==5 .or. km==10 )
then 265 bk(k) =
real(k-1) /
real (km) 266 ak(k) = ptop*(1.-bk(k))
270 call var_hi(km, ak, bk, ptop, ks, pint, stretch_fac)
281 subroutine mount_waves(km, ak, bk, ptop, ks, pint)
282 integer,
intent(in):: km
283 real,
intent(out):: ak(km+1), bk(km+1)
284 real,
intent(out):: ptop, pint
285 integer,
intent(out):: ks
287 real,
parameter:: p00 = 1.e5
288 real,
dimension(km+1):: ze, pe1, peln, eta
289 real,
dimension(km):: dz, dlnp
290 real ztop, t0, dz0, sum1, tmp1
291 real ep, es, alpha, beta, gama, s_fac
316 ze(k) = ze(k+1) + dz0
322 ze(k) = ze(k+1) + dz0
324 ze(2) = ze(3) + sqrt(2.)*dz0
325 ze(1) = ze(2) + 2.0*dz0
331 dz(k) = ze(k) - ze(k+1)
332 dlnp(k) = grav*dz(k) / (rdgas*t0)
336 peln(km+1) = log(p00)
338 peln(k) = peln(k+1) - dlnp(k)
339 pe1(k) = exp(peln(k))
349 if ( pint < pe1(k))
then 355 if ( is_master() )
then 356 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
357 write(*,*)
'Modified ptop =', ptop,
' ztop=', ze(1)/1000.
359 write(*,*) k,
'ze =', ze(k)/1000.
371 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
372 ak(k) = pe1(k) - bk(k) * pe1(km+1)
379 eta(k) = pe1(k) / pe1(km+1)
384 alpha = (ep**2-2.*ep*es) / (es-ep)**2
385 beta = 2.*ep*es**2 / (es-ep)**2
386 gama = -(ep*es)**2 / (es-ep)**2
395 ak(k) = alpha*eta(k) + beta + gama/eta(k)
401 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
406 if ( is_master() )
then 409 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
411 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
414 end subroutine mount_waves
419 subroutine set_eta(km, ks, ptop, ak, bk)
420 integer,
intent(in):: km
421 integer,
intent(out):: ks
422 real,
intent(out):: ak(km+1)
423 real,
intent(out):: bk(km+1)
424 real,
intent(out):: ptop
429 real a32w(33),b32w(33)
440 real a100(101),b100(101)
441 real a104(105),b104(105)
442 real a125(126),b125(126)
447 real pt, pint, lnpe, dlnp
448 real press(km+1), pt1(km)
457 data a24 / 100.0000, 903.4465, 3474.7942, 7505.5556, 12787.2428, &
458 19111.3683, 21854.9274, 22884.1866, 22776.3058, 21716.1604, &
459 20073.2963, 18110.5123, 16004.7832, 13877.6253, 11812.5452, &
460 9865.8840, 8073.9726, 6458.0834, 5027.9899, 3784.6085, &
461 2722.0086, 1828.9752, 1090.2396, 487.4595, 0.0000 /
463 data b24 / 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, &
464 0.0000000, 0.0435679, 0.1102275, 0.1922249, 0.2817656, &
465 0.3694997, 0.4532348, 0.5316253, 0.6038733, 0.6695556, &
466 0.7285176, 0.7808017, 0.8265992, 0.8662148, 0.9000406, &
467 0.9285364, 0.9522140, 0.9716252, 0.9873523, 1.0000000 /
470 data a26 / 219.4067, 489.5209, 988.2418, 1805.2010, 2983.7240, 4462.3340, &
471 6160.5870, 7851.2430, 7731.2710, 7590.1310, 7424.0860, &
472 7228.7440, 6998.9330, 6728.5740, 6410.5090, 6036.3220, &
473 5596.1110, 5078.2250, 4468.9600, 3752.1910, 2908.9490, &
474 2084.739, 1334.443, 708.499, 252.1360, 0.0, 0.0 /
476 data b26 / 0.0, 0.0, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,&
477 0.0000000, 0.01505309, 0.03276228, 0.05359622, 0.07810627, &
478 0.1069411, 0.1408637, 0.1807720, 0.2277220, 0.2829562, &
479 0.3479364, 0.4243822, 0.5143168, 0.6201202, 0.7235355, &
480 0.8176768, 0.8962153, 0.9534761, 0.9851122, 1.0000000 /
486 data a32/100.00000, 400.00000, 818.60211, &
487 1378.88653, 2091.79519, 2983.64084, &
488 4121.78960, 5579.22148, 7419.79300, &
489 9704.82578, 12496.33710, 15855.26306, &
490 19839.62499, 24502.73262, 28177.10152, &
491 29525.28447, 29016.34358, 27131.32792, &
492 24406.11225, 21326.04907, 18221.18357, &
493 15275.14642, 12581.67796, 10181.42843, &
494 8081.89816, 6270.86956, 4725.35001, &
495 3417.39199, 2317.75459, 1398.09473, &
496 632.49506, 0.00000, 0.00000 /
498 data b32/0.00000, 0.00000, 0.00000, &
499 0.00000, 0.00000, 0.00000, &
500 0.00000, 0.00000, 0.00000, &
501 0.00000, 0.00000, 0.00000, &
502 0.00000, 0.00000, 0.01711, &
503 0.06479, 0.13730, 0.22693, &
504 0.32416, 0.42058, 0.51105, &
505 0.59325, 0.66628, 0.73011, &
506 0.78516, 0.83217, 0.87197, &
507 0.90546, 0.93349, 0.95685, &
508 0.97624, 0.99223, 1.00000 /
512 data a32/100.00000, 400.00000, 818.60211, &
513 1378.88653, 2091.79519, 2983.64084, &
514 4121.78960, 5579.22148, 6907.19063, &
515 7735.78639, 8197.66476, 8377.95525, &
516 8331.69594, 8094.72213, 7690.85756, &
517 7139.01788, 6464.80251, 5712.35727, &
518 4940.05347, 4198.60465, 3516.63294, &
519 2905.19863, 2366.73733, 1899.19455, &
520 1497.78137, 1156.25252, 867.79199, &
521 625.59324, 423.21322, 254.76613, &
522 115.06646, 0.00000, 0.00000 /
524 data b32/0.00000, 0.00000, 0.00000, &
525 0.00000, 0.00000, 0.00000, &
526 0.00000, 0.00000, 0.00513, &
527 0.01969, 0.04299, 0.07477, &
528 0.11508, 0.16408, 0.22198, &
529 0.28865, 0.36281, 0.44112, &
530 0.51882, 0.59185, 0.65810, &
531 0.71694, 0.76843, 0.81293, &
532 0.85100, 0.88331, 0.91055, &
533 0.93338, 0.95244, 0.96828, &
534 0.98142, 0.99223, 1.00000 /
541 data a32w/ 1.00, 26.6378, 84.5529, 228.8592, &
542 539.9597, 1131.7087, 2141.8082, 3712.0454, &
543 5963.5317, 8974.1873, 12764.5388, 17294.5911, &
544 20857.7007, 22221.8651, 22892.7202, 22891.1641, &
545 22286.0724, 21176.0846, 19673.0671, 17889.0989, &
546 15927.5060, 13877.6239, 11812.5474, 9865.8830, &
547 8073.9717, 6458.0824, 5027.9893, 3784.6104, &
548 2722.0093, 1828.9741, 1090.2397, 487.4575, &
551 data b32w/ 0.0000, 0.0000, 0.0000, 0.0000, &
552 0.0000, 0.0000, 0.0000, 0.0000, &
553 0.0000, 0.0000, 0.0000, 0.0000, &
554 0.0159, 0.0586, 0.1117, 0.1734, &
555 0.2415, 0.3137, 0.3878, 0.4619, &
556 0.5344, 0.6039, 0.6696, 0.7285, &
557 0.7808, 0.8266, 0.8662, 0.9000, &
558 0.9285, 0.9522, 0.9716, 0.9874, &
564 data a47/ 10.00000, 24.45365, 48.76776, &
565 85.39458, 133.41983, 191.01402, &
566 257.94919, 336.63306, 431.52741, &
567 548.18995, 692.78825, 872.16512, &
568 1094.18467, 1368.11917, 1704.99489, &
569 2117.91945, 2622.42986, 3236.88281, &
570 3982.89623, 4885.84733, 5975.43260, &
571 7286.29500, 8858.72424, 10739.43477, &
572 12982.41110, 15649.68745, 18811.37629, &
573 22542.71275, 25724.93857, 27314.36781, &
574 27498.59474, 26501.79312, 24605.92991, &
575 22130.51655, 19381.30274, 16601.56419, &
576 13952.53231, 11522.93244, 9350.82303, &
577 7443.47723, 5790.77434, 4373.32696, &
578 3167.47008, 2148.51663, 1293.15510, &
579 581.62429, 0.00000, 0.00000 /
581 data b47/ 0.0000, 0.0000, 0.0000, &
582 0.00000, 0.00000, 0.00000, &
583 0.00000, 0.00000, 0.00000, &
584 0.00000, 0.00000, 0.00000, &
585 0.00000, 0.00000, 0.00000, &
586 0.00000, 0.00000, 0.00000, &
587 0.00000, 0.00000, 0.00000, &
588 0.00000, 0.00000, 0.00000, &
589 0.00000, 0.00000, 0.00000, &
590 0.00000, 0.01188, 0.04650, &
591 0.10170, 0.17401, 0.25832, &
592 0.34850, 0.43872, 0.52448, &
593 0.60307, 0.67328, 0.73492, &
594 0.78834, 0.83418, 0.87320, &
595 0.90622, 0.93399, 0.95723, &
596 0.97650, 0.99223, 1.00000 /
600 data a47/ 10.00000, 24.45365, 48.76776, &
601 85.39458, 133.41983, 191.01402, &
602 257.94919, 336.63306, 431.52741, &
603 548.18995, 692.78825, 872.16512, &
604 1094.18467, 1368.11917, 1704.99489, &
605 2117.91945, 2622.42986, 3236.88281, &
606 3982.89623, 4885.84733, 5975.43260, &
607 7019.26669, 7796.15848, 8346.60209, &
608 8700.31838, 8878.27554, 8894.27179, &
609 8756.46404, 8469.60171, 8038.92687, &
610 7475.89006, 6803.68067, 6058.68992, &
611 5285.28859, 4526.01565, 3813.00206, &
612 3164.95553, 2589.26318, 2085.96929, &
613 1651.11596, 1278.81205, 962.38875, &
614 695.07046, 470.40784, 282.61654, &
615 126.92745, 0.00000, 0.00000 /
616 data b47/ 0.0000, 0.0000, 0.0000, &
617 0.00000, 0.00000, 0.00000, &
618 0.00000, 0.00000, 0.00000, &
619 0.00000, 0.00000, 0.00000, &
620 0.00000, 0.00000, 0.00000, &
621 0.00000, 0.00000, 0.00000, &
622 0.00000, 0.00000, 0.00000, &
623 0.00267, 0.01063, 0.02393, &
624 0.04282, 0.06771, 0.09917, &
625 0.13786, 0.18444, 0.23925, &
626 0.30193, 0.37100, 0.44379, &
627 0.51695, 0.58727, 0.65236, &
628 0.71094, 0.76262, 0.80757, &
629 0.84626, 0.87930, 0.90731, &
630 0.93094, 0.95077, 0.96733, &
631 0.98105, 0.99223, 1.00000 /
635 1.00000, 2.69722, 5.17136, &
636 8.89455, 14.24790, 22.07157, &
637 33.61283, 50.48096, 74.79993, &
638 109.40055, 158.00460, 225.44108, &
639 317.89560, 443.19350, 611.11558, &
640 833.74392, 1125.83405, 1505.20759, &
641 1993.15829, 2614.86254, 3399.78420, &
642 4382.06240, 5600.87014, 7100.73115, &
643 8931.78242, 11149.97021, 13817.16841, &
644 17001.20930, 20775.81856, 23967.33875, &
645 25527.64563, 25671.22552, 24609.29622, &
646 22640.51220, 20147.13482, 17477.63530, &
647 14859.86462, 12414.92533, 10201.44191, &
648 8241.50255, 6534.43202, 5066.17865, &
649 3815.60705, 2758.60264, 1870.64631, &
650 1128.33931, 510.47983, 0.00000, &
654 0.00000, 0.00000, 0.00000, &
655 0.00000, 0.00000, 0.00000, &
656 0.00000, 0.00000, 0.00000, &
657 0.00000, 0.00000, 0.00000, &
658 0.00000, 0.00000, 0.00000, &
659 0.00000, 0.00000, 0.00000, &
660 0.00000, 0.00000, 0.00000, &
661 0.00000, 0.00000, 0.00000, &
662 0.00000, 0.00000, 0.00000, &
663 0.00000, 0.00000, 0.01253, &
664 0.04887, 0.10724, 0.18455, &
665 0.27461, 0.36914, 0.46103, &
666 0.54623, 0.62305, 0.69099, &
667 0.75016, 0.80110, 0.84453, &
668 0.88127, 0.91217, 0.93803, &
669 0.95958, 0.97747, 0.99223, &
674 data a54/100.00000, 254.83931, 729.54278, &
675 1602.41121, 2797.50667, 4100.18977, &
676 5334.87140, 6455.24153, 7511.80944, &
677 8580.26355, 9714.44293, 10938.62253, &
678 12080.36051, 12987.13921, 13692.75084, &
679 14224.92180, 14606.55444, 14856.69953, &
680 14991.32121, 15023.90075, 14965.91493, &
681 14827.21612, 14616.33505, 14340.72252, &
682 14006.94280, 13620.82849, 13187.60470, &
683 12711.98873, 12198.27003, 11650.37451, &
684 11071.91608, 10466.23819, 9836.44706, &
685 9185.43852, 8515.96231, 7831.01080, &
686 7135.14301, 6436.71659, 5749.00215, &
687 5087.67188, 4465.67510, 3889.86419, &
688 3361.63433, 2879.51065, 2441.02496, &
689 2043.41345, 1683.80513, 1359.31122, &
690 1067.09135, 804.40101, 568.62625, &
691 357.32525, 168.33263, 0.00000, &
694 data b54/0.00000, 0.00000, 0.00000, &
695 0.00000, 0.00000, 0.00000, &
696 0.00000, 0.00000, 0.00000, &
697 0.00000, 0.00000, 0.00000, &
698 0.00180, 0.00694, 0.01510, &
699 0.02601, 0.03942, 0.05515, &
700 0.07302, 0.09288, 0.11459, &
701 0.13803, 0.16307, 0.18960, &
702 0.21753, 0.24675, 0.27716, &
703 0.30866, 0.34115, 0.37456, &
704 0.40879, 0.44375, 0.47935, &
705 0.51551, 0.55215, 0.58916, &
706 0.62636, 0.66334, 0.69946, &
707 0.73395, 0.76622, 0.79594, &
708 0.82309, 0.84780, 0.87020, &
709 0.89047, 0.90876, 0.92524, &
710 0.94006, 0.95336, 0.96529, &
711 0.97596, 0.98551, 0.99400, &
716 data a56/ 10.00000, 24.97818, 58.01160, &
717 115.21466, 199.29210, 309.39897, &
718 445.31785, 610.54747, 812.28518, &
719 1059.80882, 1363.07092, 1732.09335, &
720 2176.91502, 2707.68972, 3334.70962, &
721 4068.31964, 4918.76594, 5896.01890, &
722 7009.59166, 8268.36324, 9680.41211, &
723 11252.86491, 12991.76409, 14901.95764, &
724 16987.01313, 19249.15733, 21689.24182, &
725 23845.11055, 25330.63353, 26243.52467, &
726 26663.84998, 26657.94696, 26281.61371, &
727 25583.05256, 24606.03265, 23393.39510, &
728 21990.28845, 20445.82122, 18811.93894, &
729 17139.59660, 15473.90350, 13850.50167, &
730 12294.49060, 10821.62655, 9440.57746, &
731 8155.11214, 6965.72496, 5870.70511, &
732 4866.83822, 3949.90019, 3115.03562, &
733 2357.07879, 1670.87329, 1051.65120, &
734 495.51399, 0.00000, 0.00000 /
736 data b56 /0.00000, 0.00000, 0.00000, &
737 0.00000, 0.00000, 0.00000, &
738 0.00000, 0.00000, 0.00000, &
739 0.00000, 0.00000, 0.00000, &
740 0.00000, 0.00000, 0.00000, &
741 0.00000, 0.00000, 0.00000, &
742 0.00000, 0.00000, 0.00000, &
743 0.00000, 0.00000, 0.00000, &
744 0.00000, 0.00000, 0.00000, &
745 0.00462, 0.01769, 0.03821, &
746 0.06534, 0.09834, 0.13659, &
747 0.17947, 0.22637, 0.27660, &
748 0.32929, 0.38343, 0.43791, &
749 0.49162, 0.54361, 0.59319, &
750 0.63989, 0.68348, 0.72391, &
751 0.76121, 0.79545, 0.82679, &
752 0.85537, 0.88135, 0.90493, &
753 0.92626, 0.94552, 0.96286, &
754 0.97840, 0.99223, 1.00000 /
756 data a60/ 1.7861000000e-01, 1.0805100000e+00, 3.9647100000e+00, &
757 9.7516000000e+00, 1.9816580000e+01, 3.6695950000e+01, &
758 6.2550570000e+01, 9.9199620000e+01, 1.4792505000e+02, &
759 2.0947487000e+02, 2.8422571000e+02, 3.7241721000e+02, &
760 4.7437835000e+02, 5.9070236000e+02, 7.2236063000e+02, &
761 8.7076746000e+02, 1.0378138800e+03, 1.2258877300e+03, &
762 1.4378924600e+03, 1.6772726600e+03, 1.9480506400e+03, &
763 2.2548762700e+03, 2.6030909400e+03, 2.9988059200e+03, &
764 3.4489952300e+03, 3.9616028900e+03, 4.5456641600e+03, &
765 5.2114401700e+03, 5.9705644000e+03, 6.8361981800e+03, &
766 7.8231906000e+03, 8.9482351000e+03, 1.0230010660e+04, &
767 1.1689289750e+04, 1.3348986860e+04, 1.5234111060e+04, &
768 1.7371573230e+04, 1.9789784580e+04, 2.2005564550e+04, &
769 2.3550115120e+04, 2.4468583320e+04, 2.4800548800e+04, &
770 2.4582445070e+04, 2.3849999620e+04, 2.2640519740e+04, &
771 2.0994737150e+04, 1.8957848730e+04, 1.6579413230e+04, &
772 1.4080071030e+04, 1.1753630920e+04, 9.6516996300e+03, &
773 7.7938009300e+03, 6.1769062800e+03, 4.7874276000e+03, &
774 3.6050497500e+03, 2.6059860700e+03, 1.7668328200e+03, &
775 1.0656131200e+03, 4.8226201000e+02, 0.0000000000e+00, &
779 data b60/ 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
780 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
781 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
782 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
783 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
784 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
785 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
786 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
787 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
788 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
789 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
790 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
791 0.0000000000e+00, 0.0000000000e+00, 5.0600000000e-03, &
792 2.0080000000e-02, 4.4900000000e-02, 7.9360000000e-02, &
793 1.2326000000e-01, 1.7634000000e-01, 2.3820000000e-01, &
794 3.0827000000e-01, 3.8581000000e-01, 4.6989000000e-01, &
795 5.5393000000e-01, 6.2958000000e-01, 6.9642000000e-01, &
796 7.5458000000e-01, 8.0463000000e-01, 8.4728000000e-01, &
797 8.8335000000e-01, 9.1368000000e-01, 9.3905000000e-01, &
798 9.6020000000e-01, 9.7775000000e-01, 9.9223000000e-01, &
804 data a63/64.247, 137.790, 221.958, &
805 318.266, 428.434, 554.424, &
806 698.457, 863.05803, 1051.07995, &
807 1265.75194, 1510.71101, 1790.05098, &
808 2108.36604, 2470.78817, 2883.03811, &
809 3351.46002, 3883.05187, 4485.49315, &
810 5167.14603, 5937.04991, 6804.87379, &
811 7780.84698, 8875.64338, 10100.20534, &
812 11264.35673, 12190.64366, 12905.42546, &
813 13430.87867, 13785.88765, 13986.77987, &
814 14047.96335, 13982.46770, 13802.40331, &
815 13519.33841, 13144.59486, 12689.45608, &
816 12165.28766, 11583.57006, 10955.84778, &
817 10293.60402, 9608.08306, 8910.07678, &
818 8209.70131, 7516.18560, 6837.69250, &
819 6181.19473, 5552.39653, 4955.72632, &
820 4394.37629, 3870.38682, 3384.76586, &
821 2937.63489, 2528.37666, 2155.78385, &
822 1818.20722, 1513.68173, 1240.03585, &
823 994.99144, 776.23591, 581.48797, &
824 408.53400, 255.26520, 119.70243, 0. /
826 data b63/0.00000, 0.00000, 0.00000, &
827 0.00000, 0.00000, 0.00000, &
828 0.00000, 0.00000, 0.00000, &
829 0.00000, 0.00000, 0.00000, &
830 0.00000, 0.00000, 0.00000, &
831 0.00000, 0.00000, 0.00000, &
832 0.00000, 0.00000, 0.00000, &
833 0.00000, 0.00000, 0.00000, &
834 0.00201, 0.00792, 0.01755, &
835 0.03079, 0.04751, 0.06761, &
836 0.09097, 0.11746, 0.14690, &
837 0.17911, 0.21382, 0.25076, &
838 0.28960, 0.32994, 0.37140, &
839 0.41353, 0.45589, 0.49806, &
840 0.53961, 0.58015, 0.61935, &
841 0.65692, 0.69261, 0.72625, &
842 0.75773, 0.78698, 0.81398, &
843 0.83876, 0.86138, 0.88192, &
844 0.90050, 0.91722, 0.93223, &
845 0.94565, 0.95762, 0.96827, &
846 0.97771, 0.98608, 0.99347, 1./
848 data a64/20.00000, 68.00000, 137.79000, &
849 221.95800, 318.26600, 428.43400, &
850 554.42400, 698.45700, 863.05803, &
851 1051.07995, 1265.75194, 1510.71101, &
852 1790.05098, 2108.36604, 2470.78817, &
853 2883.03811, 3351.46002, 3883.05187, &
854 4485.49315, 5167.14603, 5937.04991, &
855 6804.87379, 7780.84698, 8875.64338, &
856 9921.40745, 10760.99844, 11417.88354, &
857 11911.61193, 12258.61668, 12472.89642, &
858 12566.58298, 12550.43517, 12434.26075, &
859 12227.27484, 11938.39468, 11576.46910, &
860 11150.43640, 10669.41063, 10142.69482, &
861 9579.72458, 8989.94947, 8382.67090, &
862 7766.85063, 7150.91171, 6542.55077, &
863 5948.57894, 5374.81094, 4825.99383, &
864 4305.79754, 3816.84622, 3360.78848, &
865 2938.39801, 2549.69756, 2194.08449, &
866 1870.45732, 1577.34218, 1313.00028, &
867 1075.52114, 862.90778, 673.13815, &
868 504.22118, 354.22752, 221.32110, &
870 data b64/0.00000, 0.00000, 0.00000, &
871 0.00000, 0.00000, 0.00000, &
872 0.00000, 0.00000, 0.00000, &
873 0.00000, 0.00000, 0.00000, &
874 0.00000, 0.00000, 0.00000, &
875 0.00000, 0.00000, 0.00000, &
876 0.00000, 0.00000, 0.00000, &
877 0.00000, 0.00000, 0.00000, &
878 0.00179, 0.00705, 0.01564, &
879 0.02749, 0.04251, 0.06064, &
880 0.08182, 0.10595, 0.13294, &
881 0.16266, 0.19492, 0.22950, &
882 0.26615, 0.30455, 0.34435, &
883 0.38516, 0.42656, 0.46815, &
884 0.50949, 0.55020, 0.58989, &
885 0.62825, 0.66498, 0.69987, &
886 0.73275, 0.76351, 0.79208, &
887 0.81845, 0.84264, 0.86472, &
888 0.88478, 0.90290, 0.91923, &
889 0.93388, 0.94697, 0.95865, &
890 0.96904, 0.97826, 0.98642, &
893 data a64/1.00000, 3.90000, 8.70000, &
894 15.42000, 24.00000, 34.50000, &
895 47.00000, 61.50000, 78.60000, &
896 99.13500, 124.12789, 154.63770, &
897 191.69700, 236.49300, 290.38000, &
898 354.91000, 431.82303, 523.09300, &
899 630.92800, 757.79000, 906.45000, &
900 1079.85000, 1281.00000, 1515.00000, &
901 1788.00000, 2105.00000, 2470.00000, &
902 2889.00000, 3362.00000, 3890.00000, &
903 4475.00000, 5120.00000, 5830.00000, &
904 6608.00000, 7461.00000, 8395.00000, &
905 9424.46289, 10574.46880, 11864.80270, &
906 13312.58890, 14937.03710, 16759.70700, &
907 18804.78710, 21099.41210, 23674.03710, &
908 26562.82810, 29804.11720, 32627.31640, &
909 34245.89840, 34722.28910, 34155.19920, &
910 32636.50390, 30241.08200, 27101.44920, &
911 23362.20700, 19317.05270, 15446.17090, &
912 12197.45210, 9496.39941, 7205.66992, &
913 5144.64307, 3240.79346, 1518.62134, &
916 data b64/0.00000, 0.00000, 0.00000, &
917 0.00000, 0.00000, 0.00000, &
918 0.00000, 0.00000, 0.00000, &
919 0.00000, 0.00000, 0.00000, &
920 0.00000, 0.00000, 0.00000, &
921 0.00000, 0.00000, 0.00000, &
922 0.00000, 0.00000, 0.00000, &
923 0.00000, 0.00000, 0.00000, &
924 0.00000, 0.00000, 0.00000, &
925 0.00000, 0.00000, 0.00000, &
926 0.00000, 0.00000, 0.00000, &
927 0.00000, 0.00000, 0.00000, &
928 0.00000, 0.00000, 0.00000, &
929 0.00000, 0.00000, 0.00000, &
930 0.00000, 0.00000, 0.00000, &
931 0.00000, 0.00000, 0.00813, &
932 0.03224, 0.07128, 0.12445, &
933 0.19063, 0.26929, 0.35799, &
934 0.45438, 0.55263, 0.64304, &
935 0.71703, 0.77754, 0.82827, &
936 0.87352, 0.91502, 0.95235, &
940 data a68/1.00000, 2.68881, 5.15524, &
941 8.86683, 14.20349, 22.00278, &
942 33.50807, 50.32362, 74.56680, &
943 109.05958, 157.51214, 224.73844, &
944 316.90481, 441.81219, 609.21090, &
945 831.14537, 1122.32514, 1500.51628, &
946 1986.94617, 2606.71274, 3389.18802, &
947 4368.40473, 5583.41379, 7078.60015, &
948 8903.94455, 11115.21886, 13774.60566, &
949 16936.82070, 20340.47045, 23193.71492, &
950 24870.36141, 25444.59363, 25252.57081, &
951 24544.26211, 23474.29096, 22230.65331, &
952 20918.50731, 19589.96280, 18296.26682, &
953 17038.02866, 15866.85655, 14763.18943, &
954 13736.83624, 12794.11850, 11930.72442, &
955 11137.17217, 10404.78946, 9720.03954, &
956 9075.54055, 8466.72650, 7887.12346, &
957 7333.90490, 6805.43028, 6297.33773, &
958 5805.78227, 5327.94995, 4859.88765, &
959 4398.63854, 3942.81761, 3491.08449, &
960 3043.04531, 2598.71608, 2157.94527, &
961 1720.87444, 1287.52805, 858.02944, &
962 432.71276, 8.10905, 0.00000 /
964 data b68/0.00000, 0.00000, 0.00000, &
965 0.00000, 0.00000, 0.00000, &
966 0.00000, 0.00000, 0.00000, &
967 0.00000, 0.00000, 0.00000, &
968 0.00000, 0.00000, 0.00000, &
969 0.00000, 0.00000, 0.00000, &
970 0.00000, 0.00000, 0.00000, &
971 0.00000, 0.00000, 0.00000, &
972 0.00000, 0.00000, 0.00000, &
973 0.00000, 0.00283, 0.01590, &
974 0.04412, 0.08487, 0.13284, &
975 0.18470, 0.23828, 0.29120, &
976 0.34211, 0.39029, 0.43518, &
977 0.47677, 0.51536, 0.55091, &
978 0.58331, 0.61263, 0.63917, &
979 0.66333, 0.68552, 0.70617, &
980 0.72555, 0.74383, 0.76117, &
981 0.77765, 0.79335, 0.80838, &
982 0.82287, 0.83693, 0.85069, &
983 0.86423, 0.87760, 0.89082, &
984 0.90392, 0.91689, 0.92973, &
985 0.94244, 0.95502, 0.96747, &
986 0.97979, 0.99200, 1.00000 /
988 data a96/1.00000, 2.35408, 4.51347, &
989 7.76300, 12.43530, 19.26365, &
990 29.33665, 44.05883, 65.28397, &
991 95.48274, 137.90344, 196.76073, &
992 277.45330, 386.81095, 533.37018, &
993 727.67600, 982.60677, 1313.71685, &
994 1739.59104, 2282.20281, 2967.26766, &
995 3824.58158, 4888.33404, 6197.38450, &
996 7795.49158, 9731.48414, 11969.71024, &
997 14502.88894, 17304.52434, 20134.76139, &
998 22536.63814, 24252.54459, 25230.65591, &
999 25585.72044, 25539.91412, 25178.87141, &
1000 24644.84493, 23978.98781, 23245.49366, &
1001 22492.11600, 21709.93990, 20949.64473, &
1002 20225.94258, 19513.31158, 18829.32485, &
1003 18192.62250, 17589.39396, 17003.45386, &
1004 16439.01774, 15903.91204, 15396.39758, &
1005 14908.02140, 14430.65897, 13967.88643, &
1006 13524.16667, 13098.30227, 12687.56457, &
1007 12287.08757, 11894.41553, 11511.54106, &
1008 11139.22483, 10776.01912, 10419.75711, &
1009 10067.11881, 9716.63489, 9369.61967, &
1010 9026.69066, 8687.29884, 8350.04978, &
1011 8013.20925, 7677.12187, 7343.12994, &
1012 7011.62844, 6681.98102, 6353.09764, &
1013 6025.10535, 5699.10089, 5375.54503, &
1014 5053.63074, 4732.62740, 4413.38037, &
1015 4096.62775, 3781.79777, 3468.45371, &
1016 3157.19882, 2848.25306, 2541.19150, &
1017 2236.21942, 1933.50628, 1632.83741, &
1018 1334.35954, 1038.16655, 744.22318, &
1019 452.71094, 194.91899, 0.00000, &
1022 data b96/0.00000, 0.00000, 0.00000, &
1023 0.00000, 0.00000, 0.00000, &
1024 0.00000, 0.00000, 0.00000, &
1025 0.00000, 0.00000, 0.00000, &
1026 0.00000, 0.00000, 0.00000, &
1027 0.00000, 0.00000, 0.00000, &
1028 0.00000, 0.00000, 0.00000, &
1029 0.00000, 0.00000, 0.00000, &
1030 0.00000, 0.00000, 0.00000, &
1031 0.00000, 0.00000, 0.00193, &
1032 0.00974, 0.02538, 0.04876, &
1033 0.07817, 0.11081, 0.14514, &
1034 0.18007, 0.21486, 0.24866, &
1035 0.28088, 0.31158, 0.34030, &
1036 0.36701, 0.39210, 0.41554, &
1037 0.43733, 0.45774, 0.47707, &
1038 0.49540, 0.51275, 0.52922, &
1039 0.54495, 0.56007, 0.57459, &
1040 0.58850, 0.60186, 0.61471, &
1041 0.62715, 0.63922, 0.65095, &
1042 0.66235, 0.67348, 0.68438, &
1043 0.69510, 0.70570, 0.71616, &
1044 0.72651, 0.73675, 0.74691, &
1045 0.75700, 0.76704, 0.77701, &
1046 0.78690, 0.79672, 0.80649, &
1047 0.81620, 0.82585, 0.83542, &
1048 0.84492, 0.85437, 0.86375, &
1049 0.87305, 0.88229, 0.89146, &
1050 0.90056, 0.90958, 0.91854, &
1051 0.92742, 0.93623, 0.94497, &
1052 0.95364, 0.96223, 0.97074, &
1053 0.97918, 0.98723, 0.99460, &
1058 data a100/100.00000, 300.00000, 800.00000, &
1059 1762.35235, 3106.43596, 4225.71874, &
1060 4946.40525, 5388.77387, 5708.35540, &
1061 5993.33124, 6277.73673, 6571.49996, &
1062 6877.05339, 7195.14327, 7526.24920, &
1063 7870.82981, 8229.35361, 8602.30193, &
1064 8990.16936, 9393.46399, 9812.70768, &
1065 10248.43625, 10701.19980, 11171.56286, &
1066 11660.10476, 12167.41975, 12694.11735, &
1067 13240.82253, 13808.17600, 14396.83442, &
1068 15007.47066, 15640.77407, 16297.45067, &
1069 16978.22343, 17683.83253, 18415.03554, &
1070 19172.60771, 19957.34218, 20770.05022, &
1071 21559.14829, 22274.03147, 22916.87519, &
1072 23489.70456, 23994.40187, 24432.71365, &
1073 24806.25734, 25116.52754, 25364.90190, &
1074 25552.64670, 25680.92203, 25750.78675, &
1075 25763.20311, 25719.04113, 25619.08274, &
1076 25464.02630, 25254.49482, 24991.06137, &
1077 24674.32737, 24305.11235, 23884.79781, &
1078 23415.77059, 22901.76510, 22347.84738, &
1079 21759.93950, 21144.07284, 20505.73136, &
1080 19849.54271, 19179.31412, 18498.23400, &
1081 17809.06809, 17114.28232, 16416.10343, &
1082 15716.54833, 15017.44246, 14320.43478, &
1083 13627.01116, 12938.50682, 12256.11762, &
1084 11580.91062, 10913.83385, 10255.72526, &
1085 9607.32122, 8969.26427, 8342.11044, &
1086 7726.33606, 7122.34405, 6530.46991, &
1087 5950.98721, 5384.11279, 4830.01153, &
1088 4288.80090, 3760.55514, 3245.30920, &
1089 2743.06250, 2253.78294, 1777.41285, &
1090 1313.88054, 863.12371, 425.13088, &
1094 data b100/0.00000, 0.00000, 0.00000, &
1095 0.00000, 0.00000, 0.00000, &
1096 0.00000, 0.00000, 0.00000, &
1097 0.00000, 0.00000, 0.00000, &
1098 0.00000, 0.00000, 0.00000, &
1099 0.00000, 0.00000, 0.00000, &
1100 0.00000, 0.00000, 0.00000, &
1101 0.00000, 0.00000, 0.00000, &
1102 0.00000, 0.00000, 0.00000, &
1103 0.00000, 0.00000, 0.00000, &
1104 0.00000, 0.00000, 0.00000, &
1105 0.00000, 0.00000, 0.00000, &
1106 0.00000, 0.00000, 0.00000, &
1107 0.00052, 0.00209, 0.00468, &
1108 0.00828, 0.01288, 0.01849, &
1109 0.02508, 0.03266, 0.04121, &
1110 0.05075, 0.06126, 0.07275, &
1111 0.08521, 0.09866, 0.11308, &
1112 0.12850, 0.14490, 0.16230, &
1113 0.18070, 0.20009, 0.22042, &
1114 0.24164, 0.26362, 0.28622, &
1115 0.30926, 0.33258, 0.35605, &
1116 0.37958, 0.40308, 0.42651, &
1117 0.44981, 0.47296, 0.49591, &
1118 0.51862, 0.54109, 0.56327, &
1119 0.58514, 0.60668, 0.62789, &
1120 0.64872, 0.66919, 0.68927, &
1121 0.70895, 0.72822, 0.74709, &
1122 0.76554, 0.78357, 0.80117, &
1123 0.81835, 0.83511, 0.85145, &
1124 0.86736, 0.88286, 0.89794, &
1125 0.91261, 0.92687, 0.94073, &
1126 0.95419, 0.96726, 0.97994, &
1130 1.8827062944e-01, 7.7977549145e-01, 2.1950593583e+00, &
1131 4.9874566624e+00, 9.8041418997e+00, 1.7019717163e+01, &
1132 2.7216579591e+01, 4.0518628401e+01, 5.6749646818e+01, &
1133 7.5513868331e+01, 9.6315093333e+01, 1.1866706195e+02, &
1134 1.4216835396e+02, 1.6653733709e+02, 1.9161605772e+02, &
1135 2.1735580129e+02, 2.4379516604e+02, 2.7103771847e+02, &
1136 2.9923284173e+02, 3.2856100952e+02, 3.5922338766e+02, &
1137 3.9143507908e+02, 4.2542117983e+02, 4.6141487902e+02, &
1138 4.9965698106e+02, 5.4039638379e+02, 5.8389118154e+02, &
1139 6.3041016829e+02, 6.8023459505e+02, 7.3366009144e+02, &
1140 7.9099869949e+02, 8.5258099392e+02, 9.1875827946e+02, &
1141 9.8990486716e+02, 1.0664204381e+03, 1.1487325074e+03, &
1142 1.2372990044e+03, 1.3326109855e+03, 1.4351954993e+03, &
1143 1.5456186222e+03, 1.6644886848e+03, 1.7924597105e+03, &
1144 1.9302350870e+03, 2.0785714934e+03, 2.2382831070e+03, &
1145 2.4102461133e+03, 2.5954035462e+03, 2.7947704856e+03, &
1146 3.0094396408e+03, 3.2405873512e+03, 3.4894800360e+03, &
1147 3.7574811281e+03, 4.0460585279e+03, 4.3567926151e+03, &
1148 4.6913848588e+03, 5.0516670674e+03, 5.4396113207e+03, &
1149 5.8573406270e+03, 6.3071403487e+03, 6.7914704368e+03, &
1150 7.3129785102e+03, 7.8745138115e+03, 8.4791420557e+03, &
1151 9.1301611750e+03, 9.8311179338e+03, 1.0585825354e+04, &
1152 1.1398380836e+04, 1.2273184781e+04, 1.3214959424e+04, &
1153 1.4228767429e+04, 1.5320029596e+04, 1.6494540743e+04, &
1154 1.7758482452e+04, 1.9118430825e+04, 2.0422798801e+04, &
1155 2.1520147587e+04, 2.2416813461e+04, 2.3118184510e+04, &
1156 2.3628790785e+04, 2.3952411814e+04, 2.4092209011e+04, &
1157 2.4050892106e+04, 2.3830930156e+04, 2.3434818358e+04, &
1158 2.2865410898e+04, 2.2126326004e+04, 2.1222420323e+04, &
1159 2.0160313690e+04, 1.8948920926e+04, 1.7599915822e+04, &
1160 1.6128019809e+04, 1.4550987232e+04, 1.2889169132e+04, &
1161 1.1164595563e+04, 9.4227665517e+03, 7.7259097899e+03, &
1162 6.1538244381e+03, 4.7808126007e+03, 3.5967415552e+03, &
1163 2.5886394104e+03, 1.7415964865e+03, 1.0393721271e+03, &
1164 4.6478852032e+02, 7.0308342481e-13, 0.0000000000e+00 /
1168 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1169 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1170 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1171 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1172 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1173 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1174 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1175 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1176 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1177 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1178 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1179 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1180 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1181 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1182 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1183 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1184 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1185 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1186 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1187 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1188 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1189 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1190 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1191 0.0000000000e+00, 0.0000000000e+00, 0.0000000000e+00, &
1192 0.0000000000e+00, 0.0000000000e+00, 1.5648447298e-03, &
1193 6.2617046389e-03, 1.4104157933e-02, 2.5118187415e-02, &
1194 3.9340510972e-02, 5.6816335609e-02, 7.7596328431e-02, &
1195 1.0173255472e-01, 1.2927309709e-01, 1.6025505622e-01, &
1196 1.9469566981e-01, 2.3258141217e-01, 2.7385520518e-01, &
1197 3.1840233814e-01, 3.6603639170e-01, 4.1648734767e-01, &
1198 4.6939496013e-01, 5.2431098738e-01, 5.8071350676e-01, &
1199 6.3803478105e-01, 6.9495048840e-01, 7.4963750338e-01, &
1200 7.9975208897e-01, 8.4315257576e-01, 8.8034012292e-01, &
1201 9.1184389721e-01, 9.3821231526e-01, 9.6000677644e-01, &
1202 9.7779792223e-01, 9.9216315122e-01, 1.0000000000e+00 /
1206 86.895882, 107.415741, 131.425507, 159.279404, 191.338562, &
1207 227.968948, 269.539581, 316.420746, 368.982361, 427.592499, 492.616028, &
1208 564.413452, 643.339905, 729.744141, 823.967834, 926.344910, 1037.201172, &
1209 1156.853638, 1285.610352, 1423.770142, 1571.622925, 1729.448975, 1897.519287, &
1210 2076.095947, 2265.431641, 2465.770508, 2677.348145, 2900.391357, 3135.119385, &
1211 3381.743652, 3640.468262, 3911.490479, 4194.930664, 4490.817383, 4799.149414, &
1212 5119.895020, 5452.990723, 5798.344727, 6156.074219, 6526.946777, 6911.870605, &
1213 7311.869141, 7727.412109, 8159.354004, 8608.525391, 9076.400391, 9562.682617, &
1214 10065.978516, 10584.631836, 11116.662109, 11660.067383, 12211.547852, 12766.873047, &
1215 13324.668945, 13881.331055, 14432.139648, 14975.615234, 15508.256836, 16026.115234, &
1216 16527.322266, 17008.789063, 17467.613281, 17901.621094, 18308.433594, 18685.718750, &
1217 19031.289063, 19343.511719, 19620.042969, 19859.390625, 20059.931641, 20219.664063, &
1218 20337.863281, 20412.308594, 20442.078125, 20425.718750, 20361.816406, 20249.511719, &
1219 20087.085938, 19874.025391, 19608.572266, 19290.226563, 18917.460938, 18489.707031, &
1220 18006.925781, 17471.839844, 16888.687500, 16262.046875, 15596.695313, 14898.453125, &
1221 14173.324219, 13427.769531, 12668.257813, 11901.339844, 11133.304688, 10370.175781, &
1222 9617.515625, 8880.453125, 8163.375000, 7470.343750, 6804.421875, 6168.531250, &
1223 5564.382813, 4993.796875, 4457.375000, 3955.960938, 3489.234375, 3057.265625, &
1224 2659.140625, 2294.242188, 1961.500000, 1659.476563, 1387.546875, 1143.250000, &
1225 926.507813, 734.992188, 568.062500, 424.414063, 302.476563, 202.484375, &
1226 122.101563, 62.781250, 22.835938, 3.757813, 0.000000, 0.000000 /
1228 data b125/ 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1229 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1230 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1231 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1232 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1233 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1234 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, &
1235 0.000000, 0.000007, 0.000024, 0.000059, 0.000112, 0.000199, &
1236 0.000340, 0.000562, 0.000890, 0.001353, 0.001992, 0.002857, &
1237 0.003971, 0.005378, 0.007133, 0.009261, 0.011806, 0.014816, &
1238 0.018318, 0.022355, 0.026964, 0.032176, 0.038026, 0.044548, &
1239 0.051773, 0.059728, 0.068448, 0.077958, 0.088286, 0.099462, &
1240 0.111505, 0.124448, 0.138313, 0.153125, 0.168910, 0.185689, &
1241 0.203491, 0.222333, 0.242244, 0.263242, 0.285354, 0.308598, &
1242 0.332939, 0.358254, 0.384363, 0.411125, 0.438391, 0.466003, &
1243 0.493800, 0.521619, 0.549301, 0.576692, 0.603648, 0.630036, &
1244 0.655736, 0.680643, 0.704669, 0.727739, 0.749797, 0.770798, &
1245 0.790717, 0.809536, 0.827256, 0.843881, 0.859432, 0.873929, &
1246 0.887408, 0.899900, 0.911448, 0.922096, 0.931881, 0.940860, &
1247 0.949064, 0.956550, 0.963352, 0.969513, 0.975078, 0.980072, &
1248 0.984542, 0.988500, 0.991984, 0.995003, 0.997630, 1.000000 /
1373 dlnp = (log(p0) - log(pt)) /
real(km)
1375 lnpe = log(press(km+1))
1378 press(k) = exp(lnpe)
1384 if(press(k) >= pc)
then 1400 ak(k) = pint*(press(km)-press(k))/(press(km)-pint)
1401 bk(k) = (press(k) - ak(k)) / press(km+1)
1417 call var_dz(km, ak, bk, ptop, ks, pint, 1.035)
1422 call var_hi(km, ak, bk, ptop, ks, pint, 1.035)
1427 call var_hi(km, ak, bk, ptop, ks, pint, 1.035)
1433 call var_hi(km, ak, bk, ptop, ks, pint, 1.035)
1448 call var_hi(km, ak, bk, ptop, ks, pint, 1.035)
1454 call var_gfs(km, ak, bk, ptop, ks, pint, 1.029)
1460 call var_gfs(km, ak, bk, ptop, ks, pint, 1.028)
1464 call var_gfs(km, ak, bk, ptop, ks, pint, 1.028)
1480 call gw_1d(km, 1000.e2, ak, bk, ptop, 10.e3, pt1)
1492 pint = pt + 1.e5/
real(km)
1500 bk(k) =
real(k-2) /
real(km-1)
1501 ak(k) = pint - bk(k)*pint
1518 real,
intent(in) :: ak(:)
1519 real,
intent(in) :: bk(:)
1520 real,
intent(out) :: ptop
1521 integer,
intent(out) :: ks
1528 do k = 1,
size(bk(:))
1529 if (bk(k).lt.eps) ks = k
1533 if (is_master())
write(6,*)
' ptop & ks ', ptop, ks
1538 subroutine var_les(km, ak, bk, ptop, ks, pint, s_rate)
1540 integer,
intent(in):: km
1541 real,
intent(in):: ptop
1542 real,
intent(in):: s_rate
1543 real,
intent(out):: ak(km+1), bk(km+1)
1544 real,
intent(inout):: pint
1545 integer,
intent(out):: ks
1547 real,
parameter:: p00 = 1.e5
1548 real,
dimension(km+1):: ze, pe1, peln, eta
1549 real,
dimension(km):: dz, s_fac, dlnp, pm, dp, dk
1550 real ztop, t0, dz0, sum1, tmp1
1551 real ep, es, alpha, beta, gama
1552 real,
parameter:: akap = 2./7.
1561 peln(1) = log(pe1(1))
1563 peln(km+1) = log(pe1(km+1))
1566 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
1568 s_inc = (1.-s0) /
real(k_inc)
1571 do k=km-1, km-k_inc, -1
1572 s_fac(k) = s_fac(k+1) + s_inc
1575 s_fac(km-k_inc-1) = 0.5*(s_fac(km-k_inc) + s_rate)
1577 do k=km-k_inc-2, 5, -1
1578 s_fac(k) = s_rate * s_fac(k+1)
1581 s_fac(4) = 0.5*(1.1+s_rate)*s_fac(5)
1582 s_fac(3) = 1.1 *s_fac(4)
1583 s_fac(2) = 1.1 *s_fac(3)
1584 s_fac(1) = 1.1 *s_fac(2)
1588 sum1 = sum1 + s_fac(k)
1594 dz(k) = s_fac(k) * dz0
1599 ze(k) = ze(k+1) + dz(k)
1604 dz(k) = dz(k) * (ztop/ze(1))
1608 ze(k) = ze(k+1) + dz(k)
1612 if ( is_master() )
then 1613 write(*,*)
'var_les: computed model top (m)=', ztop,
' bottom/top dz=', dz(km), dz(1)
1619 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 2)
1623 dz(k) = ze(k) - ze(k+1)
1624 dlnp(k) = grav*dz(k) / (rdgas*t0)
1628 peln(k) = peln(k-1) + dlnp(k-1)
1629 pe1(k) = exp(peln(k))
1637 if ( pint < pe1(k))
then 1642 if ( is_master() )
then 1643 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
1648 eta(k) = pe1(k) / pe1(km+1)
1654 alpha = (ep**2-2.*ep*es) / (es-ep)**2
1655 beta = 2.*ep*es**2 / (es-ep)**2
1656 gama = -(ep*es)**2 / (es-ep)**2
1665 ak(k) = alpha*eta(k) + beta + gama/eta(k)
1671 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
1675 if ( is_master() )
then 1683 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
1685 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
1686 write(*,800) (pm(k), k=km,1,-1)
1690 dp(k) = (pe1(k+1) - pe1(k))/100.
1691 dk(k) = pe1(k+1)**akap - pe1(k)**akap
1694 800
format(1x,5(1x,f9.4))
1700 subroutine var_gfs(km, ak, bk, ptop, ks, pint, s_rate)
1701 integer,
intent(in):: km
1702 real,
intent(in):: ptop
1703 real,
intent(in):: s_rate
1704 real,
intent(out):: ak(km+1), bk(km+1)
1705 real,
intent(inout):: pint
1706 integer,
intent(out):: ks
1708 real,
parameter:: p00 = 1.e5
1709 real,
dimension(km+1):: ze, pe1, peln, eta
1710 real,
dimension(km):: dz, s_fac, dlnp
1711 real ztop, t0, dz0, sum1, tmp1
1712 real ep, es, alpha, beta, gama
1714 integer:: k_inc = 25
1721 peln(1) = log(pe1(1))
1723 peln(km+1) = log(pe1(km+1))
1726 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
1728 s_inc = (1.-s0) /
real(k_inc)
1731 do k=km-1, km-k_inc, -1
1732 s_fac(k) = s_fac(k+1) + s_inc
1735 do k=km-k_inc-1, 9, -1
1736 s_fac(k) = s_rate * s_fac(k+1)
1738 s_fac(8) = 0.5*(1.1+s_rate)*s_fac(9)
1739 s_fac(7) = 1.10*s_fac(8)
1740 s_fac(6) = 1.15*s_fac(7)
1741 s_fac(5) = 1.20*s_fac(6)
1742 s_fac(4) = 1.26*s_fac(5)
1743 s_fac(3) = 1.33*s_fac(4)
1744 s_fac(2) = 1.41*s_fac(3)
1745 s_fac(1) = 1.60*s_fac(2)
1749 sum1 = sum1 + s_fac(k)
1755 dz(k) = s_fac(k) * dz0
1760 ze(k) = ze(k+1) + dz(k)
1765 dz(k) = dz(k) * (ztop/ze(1))
1769 ze(k) = ze(k+1) + dz(k)
1773 if ( is_master() )
then 1774 write(*,*)
'var_gfs: computed model top (m)=', ztop*0.001,
' bottom/top dz=', dz(km), dz(1)
1784 dz(k) = ze(k) - ze(k+1)
1785 dlnp(k) = grav*dz(k) / (rdgas*t0)
1788 peln(k) = peln(k-1) + dlnp(k-1)
1789 pe1(k) = exp(peln(k))
1796 if ( pint < pe1(k))
then 1801 if ( is_master() )
then 1802 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
1803 write(*,*)
'ptop =', ptop
1814 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
1815 ak(k) = pe1(k) - bk(k) * pe1(km+1)
1822 eta(k) = pe1(k) / pe1(km+1)
1828 alpha = (ep**2-2.*ep*es) / (es-ep)**2
1829 beta = 2.*ep*es**2 / (es-ep)**2
1830 gama = -(ep*es)**2 / (es-ep)**2
1839 ak(k) = alpha*eta(k) + beta + gama/eta(k)
1845 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
1850 if ( is_master() )
then 1851 write(*,*)
'KS=', ks,
'PINT (mb)=', pint/100.
1853 write(*,*) k, 0.5*(pe1(k)+pe1(k+1))/100., dz(k)
1857 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
1859 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
1864 subroutine var_hi(km, ak, bk, ptop, ks, pint, s_rate)
1865 integer,
intent(in):: km
1866 real,
intent(in):: ptop
1867 real,
intent(in):: s_rate
1868 real,
intent(out):: ak(km+1), bk(km+1)
1869 real,
intent(inout):: pint
1870 integer,
intent(out):: ks
1872 real,
parameter:: p00 = 1.e5
1873 real,
dimension(km+1):: ze, pe1, peln, eta
1874 real,
dimension(km):: dz, s_fac, dlnp
1875 real ztop, t0, dz0, sum1, tmp1
1876 real ep, es, alpha, beta, gama
1878 integer:: k_inc = 15
1885 peln(1) = log(pe1(1))
1887 peln(km+1) = log(pe1(km+1))
1890 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
1892 s_inc = (1.-s0) /
real(k_inc)
1895 do k=km-1, km-k_inc, -1
1896 s_fac(k) = s_fac(k+1) + s_inc
1899 s_fac(km-k_inc-1) = 0.5*(s_fac(km-k_inc) + s_rate)
1902 do k=km-k_inc-2, 4, -1
1903 s_fac(k) = s_rate * s_fac(k+1)
1905 s_fac(3) = 0.5*(1.15+s_rate)*s_fac(4)
1906 s_fac(2) = 1.15 *s_fac(3)
1907 s_fac(1) = 1.3 *s_fac(2)
1909 do k=km-k_inc-2, 9, -1
1910 s_fac(k) = s_rate * s_fac(k+1)
1913 s_fac(8) = 0.5*(1.1+s_rate)*s_fac(9)
1914 s_fac(7) = 1.1 *s_fac(8)
1915 s_fac(6) = 1.15*s_fac(7)
1916 s_fac(5) = 1.2 *s_fac(6)
1917 s_fac(4) = 1.3 *s_fac(5)
1918 s_fac(3) = 1.4 *s_fac(4)
1919 s_fac(2) = 1.45 *s_fac(3)
1920 s_fac(1) = 1.5 *s_fac(2)
1925 sum1 = sum1 + s_fac(k)
1931 dz(k) = s_fac(k) * dz0
1936 ze(k) = ze(k+1) + dz(k)
1941 dz(k) = dz(k) * (ztop/ze(1))
1945 ze(k) = ze(k+1) + dz(k)
1949 if ( is_master() )
then 1950 write(*,*)
'var_hi: computed model top (m)=', ztop*0.001,
' bottom/top dz=', dz(km), dz(1)
1956 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 1)
1960 dz(k) = ze(k) - ze(k+1)
1961 dlnp(k) = grav*dz(k) / (rdgas*t0)
1964 peln(k) = peln(k-1) + dlnp(k-1)
1965 pe1(k) = exp(peln(k))
1972 if ( pint < pe1(k))
then 1977 if ( is_master() )
then 1978 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
1979 write(*,*)
'ptop =', ptop
1990 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
1991 ak(k) = pe1(k) - bk(k) * pe1(km+1)
1998 eta(k) = pe1(k) / pe1(km+1)
2004 alpha = (ep**2-2.*ep*es) / (es-ep)**2
2005 beta = 2.*ep*es**2 / (es-ep)**2
2006 gama = -(ep*es)**2 / (es-ep)**2
2015 ak(k) = alpha*eta(k) + beta + gama/eta(k)
2021 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
2026 if ( is_master() )
then 2027 write(*,*)
'KS=', ks,
'PINT (mb)=', pint/100.
2029 write(*,*) k, 0.5*(pe1(k)+pe1(k+1))/100., dz(k)
2033 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
2035 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
2040 subroutine var_hi2(km, ak, bk, ptop, ks, pint, s_rate)
2041 integer,
intent(in):: km
2042 real,
intent(in):: ptop
2043 real,
intent(in):: s_rate
2044 real,
intent(out):: ak(km+1), bk(km+1)
2045 real,
intent(inout):: pint
2046 integer,
intent(out):: ks
2048 real,
parameter:: p00 = 1.e5
2049 real,
dimension(km+1):: ze, pe1, peln, eta
2050 real,
dimension(km):: dz, s_fac, dlnp
2051 real ztop, t0, dz0, sum1, tmp1
2052 real ep, es, alpha, beta, gama
2056 peln(1) = log(pe1(1))
2058 peln(km+1) = log(pe1(km+1))
2061 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
2073 s_fac(km-10) = 0.5*(s_fac(km-9) + s_rate)
2076 s_fac(k) = s_rate * s_fac(k+1)
2079 s_fac(7) = 0.5*(1.1+s_rate)*s_fac(9)
2080 s_fac(6) = 1.05*s_fac(7)
2081 s_fac(5) = 1.1*s_fac(6)
2082 s_fac(4) = 1.15*s_fac(5)
2083 s_fac(3) = 1.2*s_fac(4)
2084 s_fac(2) = 1.3*s_fac(3)
2085 s_fac(1) = 1.4*s_fac(2)
2089 sum1 = sum1 + s_fac(k)
2095 dz(k) = s_fac(k) * dz0
2100 ze(k) = ze(k+1) + dz(k)
2105 dz(k) = dz(k) * (ztop/ze(1))
2109 ze(k) = ze(k+1) + dz(k)
2113 if ( is_master() )
write(*,*)
'var_hi2: computed model top (m)=', ztop*0.001,
' bottom/top dz=', dz(km), dz(1)
2114 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 1)
2118 dz(k) = ze(k) - ze(k+1)
2119 dlnp(k) = grav*dz(k) / (rdgas*t0)
2122 peln(k) = peln(k-1) + dlnp(k-1)
2123 pe1(k) = exp(peln(k))
2130 if ( pint < pe1(k))
then 2135 if ( is_master() )
then 2136 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
2147 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
2148 ak(k) = pe1(k) - bk(k) * pe1(km+1)
2155 eta(k) = pe1(k) / pe1(km+1)
2161 alpha = (ep**2-2.*ep*es) / (es-ep)**2
2162 beta = 2.*ep*es**2 / (es-ep)**2
2163 gama = -(ep*es)**2 / (es-ep)**2
2172 ak(k) = alpha*eta(k) + beta + gama/eta(k)
2178 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
2183 if ( is_master() )
then 2184 write(*,*)
'KS=', ks,
'PINT (mb)=', pint/100.
2186 write(*,*) k, 0.5*(pe1(k)+pe1(k+1))/100., dz(k)
2190 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
2192 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
2199 subroutine var_dz(km, ak, bk, ptop, ks, pint, s_rate)
2200 integer,
intent(in):: km
2201 real,
intent(in):: ptop
2202 real,
intent(in):: s_rate
2203 real,
intent(out):: ak(km+1), bk(km+1)
2204 real,
intent(inout):: pint
2205 integer,
intent(out):: ks
2207 real,
parameter:: p00 = 1.e5
2208 real,
dimension(km+1):: ze, pe1, peln, eta
2209 real,
dimension(km):: dz, s_fac, dlnp
2210 real ztop, t0, dz0, sum1, tmp1
2211 real ep, es, alpha, beta, gama
2215 peln(1) = log(pe1(1))
2217 peln(km+1) = log(pe1(km+1))
2220 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
2232 s_fac(km-10) = 0.5*(s_fac(km-9) + s_rate)
2235 s_fac(k) = min(10.0, s_rate * s_fac(k+1) )
2238 s_fac(8) = 0.5*(1.1+s_rate)*s_fac(9)
2239 s_fac(7) = 1.1 *s_fac(8)
2240 s_fac(6) = 1.15*s_fac(7)
2241 s_fac(5) = 1.2 *s_fac(6)
2242 s_fac(4) = 1.3 *s_fac(5)
2243 s_fac(3) = 1.4 *s_fac(4)
2244 s_fac(2) = 1.5 *s_fac(3)
2245 s_fac(1) = 1.6 *s_fac(2)
2249 sum1 = sum1 + s_fac(k)
2255 dz(k) = s_fac(k) * dz0
2260 ze(k) = ze(k+1) + dz(k)
2265 dz(k) = dz(k) * (ztop/ze(1))
2269 ze(k) = ze(k+1) + dz(k)
2273 if ( is_master() )
write(*,*)
'var_dz: computed model top (m)=', ztop*0.001,
' bottom/top dz=', dz(km), dz(1)
2274 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 1)
2278 dz(k) = ze(k) - ze(k+1)
2279 dlnp(k) = grav*dz(k) / (rdgas*t0)
2282 peln(k) = peln(k-1) + dlnp(k-1)
2283 pe1(k) = exp(peln(k))
2290 if ( pint < pe1(k))
then 2295 if ( is_master() )
then 2296 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
2297 write(*,*)
'ptop =', ptop
2308 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
2309 ak(k) = pe1(k) - bk(k) * pe1(km+1)
2316 eta(k) = pe1(k) / pe1(km+1)
2322 alpha = (ep**2-2.*ep*es) / (es-ep)**2
2323 beta = 2.*ep*es**2 / (es-ep)**2
2324 gama = -(ep*es)**2 / (es-ep)**2
2333 ak(k) = alpha*eta(k) + beta + gama/eta(k)
2339 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
2344 if ( is_master() )
then 2345 write(*,*)
'KS=', ks,
'PINT (mb)=', pint/100.
2347 write(*,*) k, 0.5*(pe1(k)+pe1(k+1))/100., dz(k)
2351 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
2353 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
2360 subroutine var55_dz(km, ak, bk, ptop, ks, pint, s_rate)
2361 integer,
intent(in):: km
2362 real,
intent(in):: ptop
2363 real,
intent(in):: s_rate
2364 real,
intent(out):: ak(km+1), bk(km+1)
2365 real,
intent(inout):: pint
2366 integer,
intent(out):: ks
2368 real,
parameter:: p00 = 1.e5
2369 real,
dimension(km+1):: ze, pe1, peln, eta
2370 real,
dimension(km):: dz, s_fac, dlnp
2371 real ztop, t0, dz0, sum1, tmp1
2372 real ep, es, alpha, beta, gama
2376 peln(1) = log(pe1(1))
2378 peln(km+1) = log(pe1(km+1))
2381 ztop = rdgas/grav*t0*(peln(km+1) - peln(1))
2399 s_fac(k) = min(10.0, s_rate * s_fac(k+1) )
2402 s_fac(8) = 0.5*(1.1+s_rate)*s_fac(9)
2403 s_fac(7) = 1.1 *s_fac(8)
2404 s_fac(6) = 1.15*s_fac(7)
2405 s_fac(5) = 1.2 *s_fac(6)
2406 s_fac(4) = 1.3 *s_fac(5)
2407 s_fac(3) = 1.4 *s_fac(4)
2408 s_fac(2) = 1.5 *s_fac(3)
2409 s_fac(1) = 1.6 *s_fac(2)
2413 sum1 = sum1 + s_fac(k)
2419 dz(k) = s_fac(k) * dz0
2424 ze(k) = ze(k+1) + dz(k)
2429 dz(k) = dz(k) * (ztop/ze(1))
2433 ze(k) = ze(k+1) + dz(k)
2437 if ( is_master() )
write(*,*)
'var55_dz: computed model top (m)=', ztop*0.001,
' bottom/top dz=', dz(km), dz(1)
2438 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 2)
2442 dz(k) = ze(k) - ze(k+1)
2443 dlnp(k) = grav*dz(k) / (rdgas*t0)
2446 peln(k) = peln(k-1) + dlnp(k-1)
2447 pe1(k) = exp(peln(k))
2454 if ( pint < pe1(k))
then 2459 if ( is_master() )
then 2460 write(*,*)
'For (input) PINT=', 0.01*pint,
' KS=', ks,
'pint(computed)=', 0.01*pe1(ks+1)
2471 bk(k) = (pe1(k) - pint) / (pe1(km+1)-pint)
2472 ak(k) = pe1(k) - bk(k) * pe1(km+1)
2479 eta(k) = pe1(k) / pe1(km+1)
2485 alpha = (ep**2-2.*ep*es) / (es-ep)**2
2486 beta = 2.*ep*es**2 / (es-ep)**2
2487 gama = -(ep*es)**2 / (es-ep)**2
2496 ak(k) = alpha*eta(k) + beta + gama/eta(k)
2502 bk(k) = (pe1(k) - ak(k))/pe1(km+1)
2507 if ( is_master() )
then 2508 write(*,*)
'KS=', ks,
'PINT (mb)=', pint/100.
2510 write(*,*) k, 0.5*(pe1(k)+pe1(k+1))/100., dz(k)
2514 tmp1 = max(tmp1, (ak(k)-ak(k+1))/max(1.e-5, (bk(k+1)-bk(k))) )
2516 write(*,*)
'Hybrid Sigma-P: minimum allowable surface pressure (hpa)=', tmp1/100.
2523 integer,
intent(in):: km
2524 real,
intent(in):: s_rate
2525 real,
intent(in):: ztop
2526 real,
intent(out):: dz(km)
2528 real,
parameter:: p00 = 1.e5
2529 real,
dimension(km+1):: ze, pe1, peln, eta
2530 real,
dimension(km):: s_fac, dlnp
2531 real t0, dz0, sum1, tmp1
2532 real ep, es, alpha, beta, gama
2547 s_fac(k) = min(4.0, s_rate * s_fac(k+1) )
2550 s_fac(8) = 1.05*s_fac(9)
2551 s_fac(7) = 1.1 *s_fac(8)
2552 s_fac(6) = 1.15*s_fac(7)
2553 s_fac(5) = 1.2 *s_fac(6)
2554 s_fac(4) = 1.3 *s_fac(5)
2555 s_fac(3) = 1.4 *s_fac(4)
2556 s_fac(2) = 1.5 *s_fac(3)
2557 s_fac(1) = 1.6 *s_fac(2)
2561 sum1 = sum1 + s_fac(k)
2567 dz(k) = s_fac(k) * dz0
2572 ze(k) = ze(k+1) + dz(k)
2577 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 2)
2580 dz(k) = ze(k) - ze(k+1)
2588 integer,
intent(in) :: npz
2589 real,
intent(in) :: p_s
2590 real,
intent(in) :: ak(npz+1)
2591 real,
intent(in) :: bk(npz+1)
2592 real,
intent(in),
optional :: pscale
2593 real,
intent(out) :: pf(npz)
2594 real,
intent(out) :: ph(npz+1)
2599 ph(k) = ak(k) + bk(k)*p_s
2602 if (
present(pscale) )
then 2604 ph(k) = pscale*ph(k)
2608 if( ak(1) > 1.e-8 )
then 2609 pf(1) = (ph(2) - ph(1)) / log(ph(2)/ph(1))
2611 pf(1) = (ph(2) - ph(1)) * kappa/(kappa+1.)
2615 pf(k) = (ph(k+1) - ph(k)) / log(ph(k+1)/ph(k))
2624 integer,
intent(in):: km
2625 real,
intent(in):: ztop
2626 real,
intent(out):: dz(km)
2628 real ze(km+1), dzt(km)
2633 dz(1) = ztop /
real(km) 2645 ze(k) = ze(k+1) + dz(k)
2648 if ( is_master() )
then 2649 write(*,*)
'Hybrid_z: dz, zm' 2651 dzt(k) = 0.5*(ze(k)+ze(k+1)) / 1000.
2652 write(*,*) k, dz(k), dzt(k)
2660 integer,
intent(in):: km
2661 real,
intent(in):: ztop
2662 real,
intent(out):: dz(km)
2664 real,
parameter:: s_rate = 1.0
2682 s_fac(k) = s_rate * s_fac(k+1)
2685 s_fac(8) = 1.05*s_fac(9)
2686 s_fac(7) = 1.1 *s_fac(8)
2687 s_fac(6) = 1.15*s_fac(7)
2688 s_fac(5) = 1.2 *s_fac(6)
2689 s_fac(4) = 1.3 *s_fac(5)
2690 s_fac(3) = 1.4 *s_fac(4)
2691 s_fac(2) = 1.5 *s_fac(3)
2692 s_fac(1) = 1.6 *s_fac(2)
2696 sum1 = sum1 + s_fac(k)
2702 dz(k) = s_fac(k) * dz0
2708 ze(k) = ze(k+1) + dz(k)
2713 dz(k) = dz(k) * (ztop/ze(1))
2717 ze(k) = ze(k+1) + dz(k)
2720 call sm1_edge(1, 1, 1, 1, km, 1, 1, ze, 2)
2723 dz(k) = ze(k) - ze(k+1)
2730 integer,
intent(in):: km
2731 real,
intent(out):: dz(km)
2732 real,
intent(out):: ztop
2738 integer k, k0, k1, k2, n
2759 ze(3) = ze(2) + dz(2)
2761 dz1 = 2.*(z1-ze(3) - k1*dz0) / (k1*(k1-1))
2764 dz(k) = dz0 + (k-k0)*dz1
2765 ze(k+1) = ze(k) + dz(k)
2769 dz2 = 2.*(z2-ze(k0+k1+1)-k2*dz0) / (k2*(k2-1))
2771 do k=k0+k1+1,k0+k1+k2
2772 dz(k) = dz0 + (k-k0-k1)*dz2
2773 ze(k+1) = ze(k) + dz(k)
2776 dz(km) = 2.*dz(km-1)
2777 ztop = ze(km) + dz(km)
2778 ze(km+1) = ze(km) + dz(km)
2780 call zflip (dz, 1, km)
2784 ze(k) = ze(k+1) + dz(k)
2799 integer,
intent(in):: km
2800 real,
intent(out):: dz(km)
2801 real,
intent(out):: ztop
2805 real:: stretch_f = 1.16
2816 ze(k) = ze(k+1) + dz(k)
2820 dz(k) = stretch_f * dz(k+1)
2821 ze(k) = ze(k+1) + dz(k)
2825 ze(1) = ze(2) + dz(1)
2828 if ( is_master() )
then 2829 write(*,*)
'Hybrid_z: dz, ze' 2831 write(*,*) k, 0.001*dz(k), 0.001*ze(k)
2834 write(*,*)
'ztop (km) =', ztop * 0.001
2839 subroutine set_hybrid_z(is, ie, js, je, ng, km, ztop, dz, rgrav, hs, ze, dz3)
2841 integer,
intent(in):: is, ie, js, je, ng, km
2842 real,
intent(in):: rgrav, ztop
2843 real,
intent(in):: dz(km)
2844 real,
intent(in):: hs(is-ng:ie+ng,js-ng:je+ng)
2845 real,
intent(inout):: ze(is:ie,js:je,km+1)
2846 real,
optional,
intent(out):: dz3(is-ng:ie+ng,js-ng:je+ng,km)
2848 logical:: filter_xy = .false.
2849 real,
allocatable:: delz(:,:,:)
2852 real:: z1(is:ie,js:je)
2855 integer ks(is:ie,js:je)
2856 integer i, j, k, ks_min, kint
2860 z(k) = z(k+1) + dz(k)
2866 ze(i,j,km+1) = hs(i,j) * rgrav
2879 #ifndef USE_VAR_ZINT 2884 if ( z(k)<=zint )
then 2890 if ( is_master() )
write(*,*)
'Z_coord interface set at k=',kint,
' ZE=', z(kint)
2894 z_rat = (ze(i,j,kint)-ze(i,j,km+1)) / (z(kint)-z(km+1))
2896 ze(i,j,k) = ze(i,j,k+1) + dz(k)*z_rat
2901 call sm1_edge(is, ie, js, je, km, i, j, ze, ntimes)
2909 z1(i,j) = dim(ze(i,j,km+1), 2500.) + 7500.
2917 if ( z(k)>=z1(i,j) )
then 2919 ks_min = min(ks_min, k)
2930 z_rat = (ze(i,j,kint)-ze(i,j,km+1)) / (z(kint)-z(km+1))
2932 ze(i,j,k) = ze(i,j,k+1) + dz(k)*z_rat
2937 call sm1_edge(is, ie, js, je, km, i, j, ze, ntimes)
2943 if ( filter_xy )
then 2944 allocate (delz(isd:ied, jsd:jed, km) )
2949 delz(i,j,k) = ze(i,j,k+1) - ze(i,j,k)
2953 call del2_cubed(delz, 0.2*da_min, npx, npy, km, ntimes)
2957 ze(i,j,k) = ze(i,j,k+1) - delz(i,j,k)
2964 if (
present(dz3) )
then 2968 dz3(i,j,k) = ze(i,j,k+1) - ze(i,j,k)
2977 subroutine sm1_edge(is, ie, js, je, km, i, j, ze, ntimes)
2978 integer,
intent(in):: is, ie, js, je, km
2979 integer,
intent(in):: ntimes, i, j
2980 real,
intent(inout):: ze(is:ie,js:je,km+1)
2982 real,
parameter:: df = 0.25
2985 integer k, n, k1, k2
2989 dz(k) = ze(i,j,k+1) - ze(i,j,k)
2998 flux(k) = df*(dz(k) - dz(k-1))
3002 dz(k) = dz(k) - flux(k) + flux(k+1)
3007 ze(i,j,k) = ze(i,j,k+1) - dz(k)
3014 subroutine gw_1d(km, p0, ak, bk, ptop, ztop, pt1)
3015 integer,
intent(in):: km
3016 real,
intent(in):: p0, ztop
3017 real,
intent(inout):: ptop
3018 real,
intent(inout):: ak(km+1), bk(km+1)
3019 real,
intent(out):: pt1(km)
3021 logical:: isothermal
3022 real,
dimension(km+1):: ze, pe1, pk1
3023 real,
dimension(km):: dz1
3028 isothermal = .false.
3031 if ( isothermal )
then 3032 n2 = grav**2/(cp_air*t0)
3037 s0 = grav*grav / (cp_air*n2)
3041 dz1(k) = ztop /
real(km)
3042 ze(k) = ze(k+1) + dz1(k)
3047 pe1(k) = p0*( (1.-s0/t0) + s0/t0*exp(-n2*ze(k)/grav) )**(1./kappa)
3057 bk(k) = (pe1(k) - pe1(1)) / (pe1(km+1)-pe1(1))
3058 ak(k) = pe1(1)*(1.-bk(k))
3064 pk1(k) = pe1(k) ** kappa
3069 pt1(k) = grav*dz1(k) / ( cp_air*(pk1(k+1)-pk1(k)) )
3072 end subroutine gw_1d 3076 subroutine zflip(q, im, km)
3077 integer,
intent(in):: im, km
3078 real,
intent(inout):: q(im,km)
3086 q(i,k) = q(i,km+1-k)
3091 end subroutine zflip subroutine, public sm1_edge(is, ie, js, je, km, i, j, ze, ntimes)
The module 'fv_mp_mod' is a single program multiple data (SPMD) parallel decompostion/communication m...
subroutine, public hybrid_z_dz(km, dz, ztop, s_rate)
subroutine var_hi2(km, ak, bk, ptop, ks, pint, s_rate)
subroutine, public set_eta(km, ks, ptop, ak, bk)
This is the version of set_eta used in fvGFS and AM4.
subroutine var_les(km, ak, bk, ptop, ks, pint, s_rate)
subroutine, public get_eta_level(npz, p_s, pf, ph, ak, bk, pscale)
The subroutine 'get_eta_level' returns the interface and layer-mean pressures for reference...
subroutine, public set_hybrid_z(is, ie, js, je, ng, km, ztop, dz, rgrav, hs, ze, dz3)
subroutine, public gw_1d(km, p0, ak, bk, ptop, ztop, pt1)
subroutine var55_dz(km, ak, bk, ptop, ks, pint, s_rate)
subroutine, public compute_dz(km, ztop, dz)
subroutine, public compute_dz_l32(km, ztop, dz)
subroutine zflip(q, im, km)
subroutine, public set_external_eta(ak, bk, ptop, ks)
The subroutine 'set_external_eta' sets 'ptop' (model top) and 'ks' (first level of pure pressure coor...
The module 'fv_eta' contains routine to set up the reference (Eulerian) pressure coordinate.
subroutine, public compute_dz_var(km, ztop, dz)
subroutine var_gfs(km, ak, bk, ptop, ks, pint, s_rate)
subroutine var_dz(km, ak, bk, ptop, ks, pint, s_rate)
subroutine var_hi(km, ak, bk, ptop, ks, pint, s_rate)
subroutine, public compute_dz_l101(km, ztop, dz)