222 real(RP),
intent(out) :: DENS_RK(KA,IA,JA)
223 real(RP),
intent(out) :: MOMZ_RK(KA,IA,JA)
224 real(RP),
intent(out) :: MOMX_RK(KA,IA,JA)
225 real(RP),
intent(out) :: MOMY_RK(KA,IA,JA)
226 real(RP),
intent(out) :: RHOT_RK(KA,IA,JA)
228 real(RP),
intent(out) :: PROG_RK(KA,IA,JA,VA)
230 real(RP),
intent(inout) :: mflx_hi(KA,IA,JA,3)
231 real(RP),
intent(out) :: tflx_hi(KA,IA,JA,3)
233 real(RP),
intent(in),
target :: DENS0(KA,IA,JA)
234 real(RP),
intent(in),
target :: MOMZ0(KA,IA,JA)
235 real(RP),
intent(in),
target :: MOMX0(KA,IA,JA)
236 real(RP),
intent(in),
target :: MOMY0(KA,IA,JA)
237 real(RP),
intent(in),
target :: RHOT0(KA,IA,JA)
239 real(RP),
intent(in) :: DENS(KA,IA,JA)
240 real(RP),
intent(in) :: MOMZ(KA,IA,JA)
241 real(RP),
intent(in) :: MOMX(KA,IA,JA)
242 real(RP),
intent(in) :: MOMY(KA,IA,JA)
243 real(RP),
intent(in) :: RHOT(KA,IA,JA)
245 real(RP),
intent(in) :: DENS_t(KA,IA,JA)
246 real(RP),
intent(in) :: MOMZ_t(KA,IA,JA)
247 real(RP),
intent(in) :: MOMX_t(KA,IA,JA)
248 real(RP),
intent(in) :: MOMY_t(KA,IA,JA)
249 real(RP),
intent(in) :: RHOT_t(KA,IA,JA)
251 real(RP),
intent(in) :: PROG0(KA,IA,JA,VA)
252 real(RP),
intent(in) :: PROG (KA,IA,JA,VA)
254 real(RP),
intent(in) :: DPRES0(KA,IA,JA)
255 real(RP),
intent(in) :: RT2P(KA,IA,JA)
256 real(RP),
intent(in) :: CORIOLI(1,IA,JA)
257 real(RP),
intent(in) :: num_diff(KA,IA,JA,5,3)
258 real(RP),
intent(in) :: wdamp_coef(KA)
259 real(RP),
intent(in) :: divdmp_coef
260 real(RP),
intent(in) :: DDIV(KA,IA,JA)
262 logical,
intent(in) :: FLAG_FCT_MOMENTUM
263 logical,
intent(in) :: FLAG_FCT_T
264 logical,
intent(in) :: FLAG_FCT_ALONG_STREAM
266 real(RP),
intent(in) :: CDZ(KA)
267 real(RP),
intent(in) :: FDZ(KA-1)
268 real(RP),
intent(in) :: FDX(IA-1)
269 real(RP),
intent(in) :: FDY(JA-1)
270 real(RP),
intent(in) :: RCDZ(KA)
271 real(RP),
intent(in) :: RCDX(IA)
272 real(RP),
intent(in) :: RCDY(JA)
273 real(RP),
intent(in) :: RFDZ(KA-1)
274 real(RP),
intent(in) :: RFDX(IA-1)
275 real(RP),
intent(in) :: RFDY(JA-1)
277 real(RP),
intent(in) :: PHI (KA,IA,JA)
278 real(RP),
intent(in) :: GSQRT (KA,IA,JA,7)
279 real(RP),
intent(in) :: J13G (KA,IA,JA,7)
280 real(RP),
intent(in) :: J23G (KA,IA,JA,7)
281 real(RP),
intent(in) :: J33G
282 real(RP),
intent(in) :: MAPF (IA,JA,2,4)
283 real(RP),
intent(in) :: REF_dens(KA,IA,JA)
284 real(RP),
intent(in) :: REF_rhot(KA,IA,JA)
286 logical,
intent(in) :: BND_W
287 logical,
intent(in) :: BND_E
288 logical,
intent(in) :: BND_S
289 logical,
intent(in) :: BND_N
291 real(RP),
intent(in) :: dtrk
292 logical,
intent(in) :: last
296 real(RP) :: POTT(KA,IA,JA)
297 real(RP) :: DDENS(KA,IA,JA)
298 real(RP) :: DPRES(KA,IA,JA)
299 real(RP) :: DPRES_N(KA,IA,JA)
301 real(RP) :: Sr(KA,IA,JA)
302 real(RP) :: Sw(KA,IA,JA)
303 real(RP) :: Su(KA,IA,JA)
304 real(RP) :: Sv(KA,IA,JA)
305 real(RP) :: St(KA,IA,JA)
306 real(RP) :: RCs2T(KA,IA,JA)
307 real(RP) :: B(KA,IA,JA)
311 real(RP) :: qflx_hi (KA,IA,JA,3)
312 real(RP) :: qflx_J13(KA,IA,JA)
313 real(RP) :: qflx_J23(KA,IA,JA)
314 real(RP) :: mflx_hi2(KA,IA,JA,3)
317 real(RP) :: M(7,KA,IA,JA)
318 real(RP) :: r(KA,IA,JA)
319 real(RP) :: p(KA,IA,JA)
321 real(RP) :: zero(KA,IA,JA)
325 integer :: IIS, IIE, JJS, JJE
334 mflx_hi(:,:,:,:) = undef
335 mflx_hi(
ks-1,:,:,
zdir) = 0.0_rp
337 qflx_hi(:,:,:,:) = undef
338 tflx_hi(:,:,:,:) = undef
339 qflx_j13(:,:,:) = undef
340 qflx_j23(:,:,:) = undef
341 mflx_hi2(:,:,:,:) = undef
355 #if defined DEBUG || defined QUICKDEBUG 356 dens_rk( 1:
ks-1,:,:) = undef
357 dens_rk(
ke+1:
ka ,:,:) = undef
358 momz_rk( 1:
ks-1,:,:) = undef
359 momz_rk(
ke+1:
ka ,:,:) = undef
360 momx_rk( 1:
ks-1,:,:) = undef
361 momx_rk(
ke+1:
ka ,:,:) = undef
362 momy_rk( 1:
ks-1,:,:) = undef
363 momy_rk(
ke+1:
ka ,:,:) = undef
364 rhot_rk( 1:
ks-1,:,:) = undef
365 rhot_rk(
ke+1:
ka ,:,:) = undef
366 prog_rk( 1:
ks-1,:,:,:) = undef
367 prog_rk(
ke+1:
ka ,:,:,:) = undef
382 call check( __line__, dpres0(k,i,j) )
383 call check( __line__, rt2p(k,i,j) )
384 call check( __line__, rhot(k,i,j) )
385 call check( __line__, ref_rhot(k,i,j) )
387 dpres(k,i,j) = dpres0(k,i,j) + rt2p(k,i,j) * ( rhot(k,i,j) - ref_rhot(k,i,j) )
389 dpres(
ks-1,i,j) = dpres0(
ks-1,i,j) - dens(
ks,i,j) * ( phi(
ks-1,i,j) - phi(
ks+1,i,j) )
390 dpres(
ke+1,i,j) = dpres0(
ke+1,i,j) - dens(
ke,i,j) * ( phi(
ke+1,i,j) - phi(
ke-1,i,j) )
399 call check( __line__, dens(k,i,j) )
400 call check( __line__, ref_dens(k,i,j) )
402 ddens(k,i,j) = dens(k,i,j) - ref_dens(k,i,j)
412 call check( __line__, rhot(k,i,j) )
413 call check( __line__, dens(k,i,j) )
415 pott(k,i,j) = rhot(k,i,j) / dens(k,i,j)
420 k = iundef; i = iundef; j = iundef
428 call check( __line__, rt2p(k,i,j) )
430 rcs2t(k,i,j) = 1.0_rp / rt2p(k,i,j)
435 k = iundef; i = iundef; j = iundef
446 call check( __line__, momx(k+1,i ,j) )
447 call check( __line__, momx(k+1,i-1,j) )
448 call check( __line__, momx(k ,i ,j) )
449 call check( __line__, momx(k ,i+1,j) )
450 call check( __line__, momy(k+1,i,j) )
451 call check( __line__, momy(k+1,i,j-1) )
452 call check( __line__, momy(k ,i,j) )
453 call check( __line__, momy(k ,i,j-1) )
454 call check( __line__, num_diff(k,i,j,
i_dens,
zdir) )
455 call check( __line__, gsqrt(k,i,j,
i_xyw) )
457 mflx_hi2(k,i,j,
zdir) = j13g(k,i,j,
i_xyw) * 0.25_rp * ( momx(k+1,i,j)+momx(k+1,i-1,j) &
458 + momx(k ,i,j)+momx(k ,i-1,j) ) &
459 + j23g(k,i,j,
i_xyw) * 0.25_rp * ( momy(k+1,i,j)+momy(k+1,i,j-1) &
460 + momy(k ,i,j)+momy(k ,i,j-1) ) &
466 k = iundef; i = iundef; j = iundef
472 mflx_hi2(
ks-1,i,j,
zdir) = 0.0_rp
473 mflx_hi2(
ke ,i,j,
zdir) = 0.0_rp
483 call check( __line__, gsqrt(k,i,j,
i_uyz) )
484 call check( __line__, num_diff(k,i,j,
i_dens,
xdir) )
486 mflx_hi2(k,i,j,
xdir) = gsqrt(k,i,j,
i_uyz) * num_diff(k,i,j,
i_dens,
xdir)
491 k = iundef; i = iundef; j = iundef
499 call check( __line__, gsqrt(k,i,j,
i_xvz) )
500 call check( __line__, num_diff(k,i,j,
i_dens,
ydir) )
502 mflx_hi2(k,i,j,
ydir) = gsqrt(k,i,j,
i_xvz) * num_diff(k,i,j,
i_dens,
ydir)
507 k = iundef; i = iundef; j = iundef
516 gsqrt(:,:,:,
i_xyz), j33g, &
522 gsqrt(:,:,:,
i_xyz), j13g(:,:,:,
i_xyz), mapf(:,:,:,
i_xy), &
527 gsqrt(:,:,:,
i_xyz), j23g(:,:,:,
i_xyz), mapf(:,:,:,
i_xy), &
552 call check( __line__, qflx_hi(k ,i ,j ,
zdir) )
553 call check( __line__, qflx_hi(k-1,i ,j ,
zdir) )
554 call check( __line__, qflx_j13(k ,i ,j ) )
555 call check( __line__, qflx_j13(k-1,i ,j ) )
556 call check( __line__, qflx_j23(k ,i ,j ) )
557 call check( __line__, qflx_j23(k-1,i ,j ) )
558 call check( __line__, qflx_hi(k ,i ,j ,
xdir) )
559 call check( __line__, qflx_hi(k ,i-1,j ,
xdir) )
560 call check( __line__, qflx_hi(k ,i ,j ,
ydir) )
561 call check( __line__, qflx_hi(k ,i ,j-1,
ydir) )
562 call check( __line__, ddiv(k ,i,j) )
563 call check( __line__, ddiv(k+1,i,j) )
564 call check( __line__, momz0(k,i,j) )
565 call check( __line__, momz_t(k,i,j) )
568 - ( ( qflx_hi(k,i,j,
zdir) - qflx_hi(k-1,i ,j ,
zdir) &
569 + qflx_j13(k,i,j) - qflx_j13(k-1,i ,j ) &
570 + qflx_j23(k,i,j) - qflx_j23(k-1,i ,j ) ) * rfdz(k) &
571 + ( qflx_hi(k,i,j,
xdir) - qflx_hi(k ,i-1,j ,
xdir) ) * rcdx(i) &
572 + ( qflx_hi(k,i,j,
ydir) - qflx_hi(k ,i ,j-1,
ydir) ) * rcdy(j) &
573 ) / gsqrt(k,i,j,
i_xyw) &
574 - wdamp_coef(k) * momz0(k,i,j) &
575 + divdmp_coef * rdt * ( ddiv(k+1,i,j)-ddiv(k,i,j) ) * fdz(k) &
581 k = iundef; i = iundef; j = iundef
586 sw(
ks-1,i,j) = 0.0_rp
591 k = iundef; i = iundef; j = iundef
600 gsqrt(:,:,:,
i_uyw), j33g, &
606 gsqrt(:,:,:,
i_uyz), j13g(:,:,:,
i_uyw), mapf(:,:,:,
i_uy), &
611 gsqrt(:,:,:,
i_uyz), j23g(:,:,:,
i_uyw), mapf(:,:,:,
i_uy), &
638 call check( __line__, qflx_hi(k ,i ,j ,
zdir) )
639 call check( __line__, qflx_hi(k-1,i ,j ,
zdir) )
640 call check( __line__, qflx_hi(k ,i ,j ,
xdir) )
641 call check( __line__, qflx_hi(k ,i-1,j ,
xdir) )
642 call check( __line__, qflx_hi(k ,i ,j ,
ydir) )
643 call check( __line__, qflx_hi(k ,i ,j-1,
ydir) )
644 call check( __line__, dpres(k+1,i+1,j) )
645 call check( __line__, dpres(k+1,i ,j) )
646 call check( __line__, dpres(k-1,i+1,j) )
647 call check( __line__, dpres(k-1,i ,j) )
648 call check( __line__, corioli(1,i ,j) )
649 call check( __line__, corioli(1,i+1,j) )
650 call check( __line__, momy(k,i ,j ) )
651 call check( __line__, momy(k,i+1,j ) )
652 call check( __line__, momy(k,i ,j-1) )
653 call check( __line__, momy(k,i+1,j-1) )
654 call check( __line__, ddiv(k,i+1,j) )
655 call check( __line__, ddiv(k,i ,j) )
656 call check( __line__, momx0(k,i,j) )
659 - ( ( qflx_hi(k,i,j,
zdir) - qflx_hi(k-1,i ,j ,
zdir) &
660 + qflx_j13(k,i,j) - qflx_j13(k-1,i ,j) &
661 + qflx_j23(k,i,j) - qflx_j23(k-1,i ,j) ) * rcdz(k) &
662 + ( qflx_hi(k,i,j,
xdir) - qflx_hi(k ,i-1,j ,
xdir) ) * rfdx(i) &
663 + ( qflx_hi(k,i,j,
ydir) - qflx_hi(k ,i ,j-1,
ydir) ) * rcdy(j) ) &
664 - ( j13g(k+1,i,j,
i_uyz) * ( dpres(k+1,i+1,j)+dpres(k+1,i,j) ) &
665 - j13g(k-1,i,j,
i_uyz) * ( dpres(k-1,i+1,j)+dpres(k-1,i,j) ) ) &
666 * 0.5_rp / ( fdz(k+1)+fdz(k) ) &
667 ) / gsqrt(k,i,j,
i_uyz) &
668 + 0.125_rp * ( corioli(1,i,j)+corioli(1,i+1,j) ) &
669 * ( momy(k,i,j)+momy(k,i+1,j)+momy(k,i,j-1)+momy(k,i+1,j-1) ) &
670 + divdmp_coef * rdt * ( ddiv(k,i+1,j)-ddiv(k,i,j) ) * fdx(i) &
676 k = iundef; i = iundef; j = iundef
684 gsqrt(:,:,:,
i_xvw), j33g, &
690 gsqrt(:,:,:,
i_xvz), j13g(:,:,:,
i_xvw), mapf(:,:,:,
i_xv), &
695 gsqrt(:,:,:,
i_xvz), j23g(:,:,:,
i_xvw), mapf(:,:,:,
i_xv), &
722 call check( __line__, qflx_hi(k ,i ,j ,
zdir) )
723 call check( __line__, qflx_hi(k-1,i ,j ,
zdir) )
724 call check( __line__, qflx_hi(k ,i ,j ,
xdir) )
725 call check( __line__, qflx_hi(k ,i-1,j ,
xdir) )
726 call check( __line__, qflx_hi(k ,i ,j ,
ydir) )
727 call check( __line__, qflx_hi(k ,i ,j-1,
ydir) )
728 call check( __line__, dpres(k+1,i,j ) )
729 call check( __line__, dpres(k+1,i,j+1) )
730 call check( __line__, dpres(k-1,i,j ) )
731 call check( __line__, dpres(k-1,i,j+1) )
732 call check( __line__, corioli(1,i,j ) )
733 call check( __line__, corioli(1,i,j+1) )
734 call check( __line__, momx(k,i ,j ) )
735 call check( __line__, momx(k,i ,j+1) )
736 call check( __line__, momx(k,i-1,j ) )
737 call check( __line__, momx(k,i-1,j+1) )
738 call check( __line__, ddiv(k,i,j+1) )
739 call check( __line__, ddiv(k,i,j ) )
740 call check( __line__, momy_t(k,i,j) )
743 ( - ( ( qflx_hi(k,i,j,
zdir) - qflx_hi(k-1,i ,j ,
zdir) &
744 + qflx_j13(k,i,j) - qflx_j13(k-1,i ,j ) &
745 + qflx_j23(k,i,j) - qflx_j23(k-1,i ,j ) ) * rcdz(k) &
746 + ( qflx_hi(k,i,j,
xdir) - qflx_hi(k ,i-1,j ,
xdir) ) * rcdx(i) &
747 + ( qflx_hi(k,i,j,
ydir) - qflx_hi(k ,i ,j-1,
ydir) ) * rfdy(j) ) &
748 - ( j23g(k+1,i,j,
i_xvz) * ( dpres(k+1,i,j+1)+dpres(k+1,i,j) ) &
749 - j23g(k-1,i,j,
i_xvz) * ( dpres(k-1,i,j+1)+dpres(k-1,i,j) ) ) &
750 * 0.5_rp / ( fdz(k+1)+fdz(k) ) &
751 ) / gsqrt(k,i,j,
i_xvz) &
752 - 0.125_rp * ( corioli(1,i ,j+1)+corioli(1,i ,j) ) &
753 * ( momx(k,i,j+1)+momx(k,i,j)+momx(k,i-1,j+1)+momx(k,i-1,j) ) &
754 + divdmp_coef * rdt * ( ddiv(k,i,j+1)-ddiv(k,i,j) ) * fdy(j) &
760 k = iundef; i = iundef; j = iundef
768 mflx_hi2(:,:,:,
zdir), pott, gsqrt(:,:,:,
i_xyw), &
775 mflx_hi2(:,:,:,
xdir), pott, gsqrt(:,:,:,
i_uyz), &
782 mflx_hi2(:,:,:,
ydir), pott, gsqrt(:,:,:,
i_xvz), &
792 call check( __line__, tflx_hi(k ,i ,j ,
zdir) )
793 call check( __line__, tflx_hi(k-1,i ,j ,
zdir) )
794 call check( __line__, tflx_hi(k ,i ,j ,
xdir) )
795 call check( __line__, tflx_hi(k ,i-1,j ,
xdir) )
796 call check( __line__, tflx_hi(k ,i ,j ,
ydir) )
797 call check( __line__, tflx_hi(k ,i ,j-1,
ydir) )
798 call check( __line__, rhot_t(k,i,j) )
801 - ( ( tflx_hi(k,i,j,
zdir) - tflx_hi(k-1,i ,j ,
zdir) ) * rcdz(k) &
802 + ( tflx_hi(k,i,j,
xdir) - tflx_hi(k ,i-1,j ,
xdir) ) * rcdx(i) &
803 + ( tflx_hi(k,i,j,
ydir) - tflx_hi(k ,i ,j-1,
ydir) ) * rcdy(j) &
804 ) / gsqrt(k,i,j,
i_xyz) &
810 k = iundef; i = iundef; j = iundef
823 call comm_vars8(
su, 1 )
824 call comm_vars8( sv, 2 )
825 call comm_wait (
su, 1 )
826 call comm_wait ( sv, 2 )
837 call check( __line__, momz(k-1,i,j) )
838 call check( __line__, momz(k ,i,j) )
839 call check( __line__, momx(k,i-1,j) )
840 call check( __line__, momx(k,i ,j) )
841 call check( __line__, momy(k,i,j-1) )
842 call check( __line__, momy(k,i,j ) )
843 call check( __line__, pott(k-2,i,j) )
844 call check( __line__, pott(k-1,i,j) )
845 call check( __line__, pott(k ,i,j) )
846 call check( __line__, pott(k+1,i,j) )
847 call check( __line__, pott(k+2,i,j) )
848 call check( __line__, pott(k,i-2,j) )
849 call check( __line__, pott(k,i-1,j) )
850 call check( __line__, pott(k,i ,j) )
851 call check( __line__, pott(k,i+1,j) )
852 call check( __line__, pott(k,i+2,j) )
853 call check( __line__, pott(k,i,j-2) )
854 call check( __line__, pott(k,i,j-1) )
855 call check( __line__, pott(k,i,j ) )
856 call check( __line__, pott(k,i,j+1) )
857 call check( __line__, pott(k,i,j+2) )
858 call check( __line__, sw(k-1,i,j) )
859 call check( __line__, sw(k ,i,j) )
860 call check( __line__,
su(k,i-1,j) )
861 call check( __line__,
su(k,i ,j) )
862 call check( __line__, sv(k,i,j-1) )
863 call check( __line__, sv(k,i,j ) )
864 call check( __line__, gsqrt(k,i ,j,
i_uyz) )
865 call check( __line__, gsqrt(k,i-1,j,
i_uyz) )
866 call check( __line__, gsqrt(k,i,j-1,
i_xvz) )
867 call check( __line__, gsqrt(k,i,j ,
i_xvz) )
868 call check( __line__, gsqrt(k,i,j,
i_xyz) )
869 call check( __line__, st(k,i,j) )
870 call check( __line__, dpres(k-1,i,j) )
871 call check( __line__, dpres(k ,i,j) )
872 call check( __line__, dpres(k+1,i,j) )
873 call check( __line__, rt2p(k-1,i,j) )
874 call check( __line__, rt2p(k ,i,j) )
875 call check( __line__, rt2p(k+1,i,j) )
876 call check( __line__, rhot(k-1,i,j) )
877 call check( __line__, rhot(k+1,i,j) )
878 call check( __line__, ddens(k-1,i,j) )
879 call check( __line__, ddens(k+1,i,j) )
882 ( j33g * ( momz(k ,i,j) + dtrk*sw(k ,i,j) ) &
883 * ( fact_n*(pott(k+1,i,j)+pott(k ,i,j)) &
884 + fact_f*(pott(k+2,i,j)+pott(k-1,i,j)) ) &
885 - j33g * ( momz(k-1,i,j) + dtrk*sw(k-1,i,j) ) &
886 * ( fact_n*(pott(k ,i,j)+pott(k-1,i,j)) &
887 + fact_f*(pott(k+1,i,j)+pott(k-2,i,j)) ) ) * rcdz(k) &
888 + ( gsqrt(k,i ,j,
i_uyz) * ( momx(k,i ,j) + dtrk*
su(k,i ,j) ) &
889 * ( fact_n*(pott(k,i+1,j)+pott(k,i ,j)) &
890 + fact_f*(pott(k,i+2,j)+pott(k,i-1,j)) ) &
891 - gsqrt(k,i-1,j,
i_uyz) * ( momx(k,i-1,j) + dtrk*
su(k,i-1,j) ) &
892 * ( fact_n*(pott(k,i ,j)+pott(k,i-1,j)) &
893 + fact_f*(pott(k,i+1,j)+pott(k,i-2,j)) ) ) * rcdx(i) &
894 + ( gsqrt(k,i,j ,
i_xvz) * ( momy(k,i,j ) + dtrk*sv(k,i,j ) ) &
895 * ( fact_n*(pott(k,i,j+1)+pott(k,i,j )) &
896 + fact_f*(pott(k,i,j+2)+pott(k,i,j-1)) ) &
897 - gsqrt(k,i,j-1,
i_xvz) * ( momy(k,i,j-1) + dtrk*sv(k,i,j-1) ) &
898 * ( fact_n*(pott(k,i,j )+pott(k,i,j-1)) &
899 + fact_f*(pott(k,i,j+1)+pott(k,i,j-2)) ) ) * rcdy(j) &
900 + gsqrt(k,i,j,
i_xyz) * ( st(k,i,j) - dpres(k,i,j) * rcs2t(k,i,j) * rdt ) &
902 + grav * j33g * ( ( dpres(k+1,i,j)*rcs2t(k+1,i,j) &
903 - dpres(k-1,i,j)*rcs2t(k-1,i,j) ) &
904 - ( rhot(k+1,i,j)*ddens(k+1,i,j)/dens(k+1,i,j) &
905 - rhot(k-1,i,j)*ddens(k-1,i,j)/dens(k-1,i,j) ) &
906 ) / ( fdz(k) + fdz(k-1) )
911 k = iundef; i = iundef; j = iundef
916 call check( __line__, momz(
ks,i,j) )
917 call check( __line__, momx(
ks,i,j) )
918 call check( __line__, momy(
ks,i,j) )
919 call check( __line__, sw(
ks,i,j) )
920 call check( __line__,
su(
ks,i-1,j) )
921 call check( __line__,
su(
ks,i ,j) )
922 call check( __line__, sv(
ks,i,j-1) )
923 call check( __line__, sv(
ks,i,j ) )
924 call check( __line__, st(
ks,i,j) )
925 call check( __line__, pott(
ks ,i,j) )
926 call check( __line__, pott(
ks+1,i,j) )
927 call check( __line__, pott(
ks,i-2,j) )
928 call check( __line__, pott(
ks,i-1,j) )
929 call check( __line__, pott(
ks,i ,j) )
930 call check( __line__, pott(
ks,i+1,j) )
931 call check( __line__, pott(
ks,i+2,j) )
932 call check( __line__, pott(
ks,i,j-2) )
933 call check( __line__, pott(
ks,i,j-1) )
934 call check( __line__, pott(
ks,i,j ) )
935 call check( __line__, pott(
ks,i,j+1) )
936 call check( __line__, pott(
ks,i,j+2) )
937 call check( __line__, gsqrt(
ks,i,j,
i_uyz) )
938 call check( __line__, gsqrt(
ks,i,j,
i_xvz) )
939 call check( __line__, gsqrt(
ks,i,j,
i_xyz) )
940 call check( __line__, dpres(
ks ,i,j) )
941 call check( __line__, dpres(
ks+1,i,j) )
942 call check( __line__, rt2p(
ks ,i,j) )
943 call check( __line__, rt2p(
ks+1,i,j) )
944 call check( __line__, rhot(
ks+1,i,j) )
945 call check( __line__, ddens(
ks+1,i,j) )
948 ( j33g * ( momz(
ks ,i,j) + dtrk*sw(
ks ,i,j) ) &
949 * 0.5_rp*(pott(
ks+1,i,j)+pott(
ks ,i,j)) ) * rcdz(
ks) &
950 + ( gsqrt(
ks,i ,j,
i_uyz) * ( momx(
ks,i ,j) + dtrk*
su(
ks,i ,j) ) &
951 * ( fact_n*(pott(
ks,i+1,j)+pott(
ks,i ,j)) &
952 + fact_f*(pott(
ks,i+2,j)+pott(
ks,i-1,j)) ) &
953 - gsqrt(
ks,i-1,j,
i_uyz) * ( momx(
ks,i-1,j) + dtrk*
su(
ks,i-1,j) ) &
954 * ( fact_n*(pott(
ks,i ,j)+pott(
ks,i-1,j)) &
955 + fact_f*(pott(
ks,i+1,j)+pott(
ks,i-2,j)) ) ) * rcdx(i) &
956 + ( gsqrt(
ks,i,j ,
i_xvz) * ( momy(
ks,i,j ) + dtrk*sv(
ks,i,j ) ) &
957 * ( fact_n*(pott(
ks,i,j+1)+pott(
ks,i,j )) &
958 + fact_f*(pott(
ks,i,j+2)+pott(
ks,i,j-1)) ) &
959 - gsqrt(
ks,i,j-1,
i_xvz) * ( momy(
ks,i,j-1) + dtrk*sv(
ks,i,j-1) ) &
960 * ( fact_n*(pott(
ks,i,j )+pott(
ks,i,j-1)) &
961 + fact_f*(pott(
ks,i,j+1)+pott(
ks,i,j-2)) ) ) * rcdy(j) &
962 + gsqrt(
ks,i,j,
i_xyz) * ( st(
ks,i,j) - dpres(
ks,i,j) * rcs2t(
ks,i,j) * rdt ) &
964 + grav * j33g * 0.5_rp * ( ( dpres(
ks,i,j)+dpres(
ks+1,i,j) ) * rcs2t(
ks,i,j) &
965 - ( ddens(
ks,i,j)+ddens(
ks+1,i,j) ) * pott(
ks,i,j) ) * rcdz(
ks)
967 call check( __line__, momz(
ks ,i,j) )
968 call check( __line__, momz(
ks+1 ,i,j) )
969 call check( __line__, momx(
ks+1,i-1,j) )
970 call check( __line__, momx(
ks+1,i ,j) )
971 call check( __line__, momy(
ks+1,i,j-1) )
972 call check( __line__, momy(
ks+1,i,j ) )
973 call check( __line__, pott(
ks ,i,j) )
974 call check( __line__, pott(
ks+1 ,i,j) )
975 call check( __line__, pott(
ks+1+1,i,j) )
976 call check( __line__, pott(
ks+1+2,i,j) )
977 call check( __line__, pott(
ks+1,i-2,j) )
978 call check( __line__, pott(
ks+1,i-1,j) )
979 call check( __line__, pott(
ks+1,i ,j) )
980 call check( __line__, pott(
ks+1,i+1,j) )
981 call check( __line__, pott(
ks+1,i+2,j) )
982 call check( __line__, pott(
ks+1,i,j-2) )
983 call check( __line__, pott(
ks+1,i,j-1) )
984 call check( __line__, pott(
ks+1,i,j ) )
985 call check( __line__, pott(
ks+1,i,j+1) )
986 call check( __line__, pott(
ks+1,i,j+2) )
987 call check( __line__, sw(
ks ,i,j) )
988 call check( __line__, sw(
ks+1,i,j) )
989 call check( __line__,
su(
ks+1,i-1,j) )
990 call check( __line__,
su(
ks+1,i ,j) )
991 call check( __line__, sv(
ks+1,i,j-1) )
992 call check( __line__, sv(
ks+1,i,j ) )
993 call check( __line__, gsqrt(
ks+1,i ,j,
i_uyz) )
994 call check( __line__, gsqrt(
ks+1,i-1,j,
i_uyz) )
995 call check( __line__, gsqrt(
ks+1,i,j-1,
i_xvz) )
996 call check( __line__, gsqrt(
ks+1,i,j ,
i_xvz) )
997 call check( __line__, gsqrt(
ks+1,i,j,
i_xyz) )
998 call check( __line__, st(
ks+1,i,j) )
999 call check( __line__, dpres(
ks ,i,j) )
1000 call check( __line__, dpres(
ks+1,i,j) )
1001 call check( __line__, dpres(
ks+2,i,j) )
1002 call check( __line__, rt2p(
ks ,i,j) )
1003 call check( __line__, rt2p(
ks+1,i,j) )
1004 call check( __line__, rt2p(
ks+2,i,j) )
1005 call check( __line__, rhot(
ks ,i,j) )
1006 call check( __line__, rhot(
ks+2,i,j) )
1007 call check( __line__, ddens(
ks ,i,j) )
1008 call check( __line__, ddens(
ks+2,i,j) )
1011 ( j33g * ( momz(
ks+1,i,j) + dtrk*sw(
ks+1,i,j) ) &
1012 * ( fact_n*(pott(
ks+2,i,j)+pott(
ks+1,i,j)) &
1013 + fact_f*(pott(
ks+3,i,j)+pott(
ks ,i,j)) ) &
1014 - j33g * ( momz(
ks+1-1,i,j) + dtrk*sw(
ks+1-1,i,j) ) &
1015 * ( 0.5_rp*(pott(
ks+1,i,j)+pott(
ks,i,j)) ) ) * rcdz(
ks+1) &
1016 + ( gsqrt(
ks+1,i ,j,
i_uyz) * ( momx(
ks+1,i ,j) + dtrk*
su(
ks+1,i ,j) ) &
1017 * ( fact_n*(pott(
ks+1,i+1,j)+pott(
ks+1,i ,j)) &
1018 + fact_f*(pott(
ks+1,i+2,j)+pott(
ks+1,i-1,j)) ) &
1019 - gsqrt(
ks+1,i-1,j,
i_uyz) * ( momx(
ks+1,i-1,j) + dtrk*
su(
ks+1,i-1,j) ) &
1020 * ( fact_n*(pott(
ks+1,i ,j)+pott(
ks+1,i-1,j)) &
1021 + fact_f*(pott(
ks+1,i+1,j)+pott(
ks+1,i-2,j)) ) ) * rcdx(i) &
1022 + ( gsqrt(
ks+1,i,j ,
i_xvz) * ( momy(
ks+1,i,j ) + dtrk*sv(
ks+1,i,j ) ) &
1023 * ( fact_n*(pott(
ks+1,i,j+1)+pott(
ks+1,i,j )) &
1024 + fact_f*(pott(
ks+1,i,j+2)+pott(
ks+1,i,j-1)) ) &
1025 - gsqrt(
ks+1,i,j-1,
i_xvz) * ( momy(
ks+1,i,j-1) + dtrk*sv(
ks+1,i,j-1) ) &
1026 * ( fact_n*(pott(
ks+1,i,j )+pott(
ks+1,i,j-1)) &
1027 + fact_f*(pott(
ks+1,i,j+1)+pott(
ks+1,i,j-2)) ) ) * rcdy(j) &
1028 + gsqrt(
ks+1,i,j,
i_xyz) * ( st(
ks+1,i,j) - dpres(
ks+1,i,j) * rcs2t(
ks+1,i,j) * rdt ) &
1030 + grav * j33g * ( ( dpres(
ks+2,i,j)*rcs2t(
ks+2,i,j) &
1031 - dpres(
ks ,i,j)*rcs2t(
ks ,i,j) ) &
1032 - ( rhot(
ks+2,i,j)*ddens(
ks+2,i,j)/dens(
ks+2,i,j) &
1033 - rhot(
ks ,i,j)*ddens(
ks ,i,j)/dens(
ks ,i,j) ) &
1034 ) / ( fdz(
ks+1) + fdz(
ks) )
1036 call check( __line__, momz(
ke-2,i,j) )
1037 call check( __line__, momz(
ke-1,i,j) )
1038 call check( __line__, momx(
ke-1,i-1,j) )
1039 call check( __line__, momx(
ke-1,i ,j) )
1040 call check( __line__, momy(
ke-1,i,j-1) )
1041 call check( __line__, momy(
ke-1,i,j ) )
1042 call check( __line__, pott(
ke-3,i,j) )
1043 call check( __line__, pott(
ke-2,i,j) )
1044 call check( __line__, pott(
ke-1,i,j) )
1045 call check( __line__, pott(
ke ,i,j) )
1046 call check( __line__, pott(
ke-1,i-2,j) )
1047 call check( __line__, pott(
ke-1,i-1,j) )
1048 call check( __line__, pott(
ke-1,i ,j) )
1049 call check( __line__, pott(
ke-1,i+1,j) )
1050 call check( __line__, pott(
ke-1,i+2,j) )
1051 call check( __line__, pott(
ke-1,i,j-2) )
1052 call check( __line__, pott(
ke-1,i,j-1) )
1053 call check( __line__, pott(
ke-1,i,j ) )
1054 call check( __line__, pott(
ke-1,i,j+1) )
1055 call check( __line__, pott(
ke-1,i,j+2) )
1056 call check( __line__, sw(
ke-2,i,j) )
1057 call check( __line__, sw(
ke-1,i,j) )
1058 call check( __line__,
su(
ke-1,i-1,j) )
1059 call check( __line__,
su(
ke-1,i ,j) )
1060 call check( __line__, sv(
ke-1,i,j-1) )
1061 call check( __line__, sv(
ke-1,i,j ) )
1062 call check( __line__, gsqrt(
ke-1,i ,j,
i_uyz) )
1063 call check( __line__, gsqrt(
ke-1,i-1,j,
i_uyz) )
1064 call check( __line__, gsqrt(
ke-1,i,j-1,
i_xvz) )
1065 call check( __line__, gsqrt(
ke-1,i,j ,
i_xvz) )
1066 call check( __line__, gsqrt(
ke-1,i,j,
i_xyz) )
1067 call check( __line__, st(
ke-1,i,j) )
1068 call check( __line__, dpres(
ke-2,i,j) )
1069 call check( __line__, dpres(
ke-1,i,j) )
1070 call check( __line__, dpres(
ke ,i,j) )
1071 call check( __line__, rt2p(
ke-2,i,j) )
1072 call check( __line__, rt2p(
ke-1,i,j) )
1073 call check( __line__, rt2p(
ke ,i,j) )
1074 call check( __line__, rhot(
ke-2,i,j) )
1075 call check( __line__, rhot(
ke,i,j) )
1076 call check( __line__, ddens(
ke-2,i,j) )
1077 call check( __line__, ddens(
ke,i,j) )
1080 ( j33g * ( momz(
ke-1,i,j) + dtrk*sw(
ke-1,i,j) ) &
1081 * ( 0.5_rp*(pott(
ke ,i,j)+pott(
ke-1,i,j)) ) &
1082 - j33g * ( momz(
ke-2,i,j) + dtrk*sw(
ke-2,i,j) ) &
1083 * ( fact_n*(pott(
ke-1,i,j)+pott(
ke-2,i,j)) &
1084 + fact_f*(pott(
ke ,i,j)+pott(
ke-3,i,j)) ) ) * rcdz(
ke-1) &
1085 + ( gsqrt(
ke-1,i ,j,
i_uyz) * ( momx(
ke-1,i ,j) + dtrk*
su(
ke-1,i ,j) ) &
1086 * ( fact_n*(pott(
ke-1,i+1,j)+pott(
ke-1,i ,j)) &
1087 + fact_f*(pott(
ke-1,i+2,j)+pott(
ke-1,i-1,j)) ) &
1088 - gsqrt(
ke-1,i-1,j,
i_uyz) * ( momx(
ke-1,i-1,j) + dtrk*
su(
ke-1,i-1,j) ) &
1089 * ( fact_n*(pott(
ke-1,i ,j)+pott(
ke-1,i-1,j)) &
1090 + fact_f*(pott(
ke-1,i+1,j)+pott(
ke-1,i-2,j)) ) ) * rcdx(i) &
1091 + ( gsqrt(
ke-1,i,j ,
i_xvz) * ( momy(
ke-1,i,j ) + dtrk*sv(
ke-1,i,j ) ) &
1092 * ( fact_n*(pott(
ke-1,i,j+1)+pott(
ke-1,i,j )) &
1093 + fact_f*(pott(
ke-1,i,j+2)+pott(
ke-1,i,j-1)) ) &
1094 - gsqrt(
ke-1,i,j-1,
i_xvz) * ( momy(
ke-1,i,j-1) + dtrk*sv(
ke-1,i,j-1) ) &
1095 * ( fact_n*(pott(
ke-1,i,j )+pott(
ke-1,i,j-1)) &
1096 + fact_f*(pott(
ke-1,i,j+1)+pott(
ke-1,i,j-2)) ) ) * rcdy(j) &
1097 + gsqrt(
ke-1,i,j,
i_xyz) * ( st(
ke-1,i,j) - dpres(
ke-1,i,j) * rcs2t(
ke-1,i,j) * rdt ) &
1099 + grav * j33g * ( ( dpres(
ke ,i,j)*rcs2t(
ke ,i,j) &
1100 - dpres(
ke-2,i,j)*rcs2t(
ke-2,i,j) ) &
1101 - ( rhot(
ke ,i,j)*ddens(
ke ,i,j)/dens(
ke ,i,j) &
1102 - rhot(
ke-2,i,j)*ddens(
ke-2,i,j)/dens(
ke-2,i,j) )&
1103 ) / ( fdz(
ke-1) + fdz(
ke-1-1) )
1105 call check( __line__, momz(
ke-1,i,j) )
1106 call check( __line__, momx(
ke,i-1,j) )
1107 call check( __line__, momx(
ke,i ,j) )
1108 call check( __line__, momy(
ke,i,j-1) )
1109 call check( __line__, momy(
ke,i,j ) )
1110 call check( __line__, sw(
ke-1,i,j) )
1111 call check( __line__,
su(
ke,i-1,j) )
1112 call check( __line__,
su(
ke,i ,j) )
1113 call check( __line__, sv(
ke,i,j-1) )
1114 call check( __line__, sv(
ke,i,j ) )
1115 call check( __line__, gsqrt(
ke,i-1,j,
i_uyz) )
1116 call check( __line__, pott(
ke-1,i,j) )
1117 call check( __line__, pott(
ke ,i,j) )
1118 call check( __line__, pott(
ke,i-2,j) )
1119 call check( __line__, pott(
ke,i-1,j) )
1120 call check( __line__, pott(
ke,i ,j) )
1121 call check( __line__, pott(
ke,i+1,j) )
1122 call check( __line__, pott(
ke,i+2,j) )
1123 call check( __line__, pott(
ke,i,j-2) )
1124 call check( __line__, pott(
ke,i,j-1) )
1125 call check( __line__, pott(
ke,i,j ) )
1126 call check( __line__, pott(
ke,i,j+1) )
1127 call check( __line__, pott(
ke,i,j+2) )
1128 call check( __line__, gsqrt(
ke,i-1,j,
i_uyz) )
1129 call check( __line__, gsqrt(
ke,i ,j,
i_uyz) )
1130 call check( __line__, gsqrt(
ke,i,j-1,
i_xvz) )
1131 call check( __line__, gsqrt(
ke,i,j ,
i_xvz) )
1132 call check( __line__, gsqrt(
ke,i,j,
i_xyz) )
1133 call check( __line__, st(
ke,i,j) )
1134 call check( __line__, dpres(
ke-1,i,j) )
1135 call check( __line__, dpres(
ke ,i,j) )
1136 call check( __line__, rt2p(
ke-1,i,j) )
1137 call check( __line__, rt2p(
ke ,i,j) )
1138 call check( __line__, rhot(
ke-1,i,j) )
1139 call check( __line__, ddens(
ke-1,i,j) )
1143 - j33g * ( momz(
ke-1,i,j) + dtrk*sw(
ke-1,i,j) ) &
1144 * 0.5_rp*(pott(
ke ,i,j)+pott(
ke-1,i,j)) ) * rcdz(
ke) &
1145 + ( gsqrt(
ke,i ,j,
i_uyz) * ( momx(
ke,i ,j) + dtrk*
su(
ke,i ,j) ) &
1146 * ( fact_n*(pott(
ke,i+1,j)+pott(
ke,i ,j)) &
1147 + fact_f*(pott(
ke,i+2,j)+pott(
ke,i-1,j)) ) &
1148 - gsqrt(
ke,i-1,j,
i_uyz) * ( momx(
ke,i-1,j) + dtrk*
su(
ke,i-1,j) ) &
1149 * ( fact_n*(pott(
ke,i ,j)+pott(
ke,i-1,j)) &
1150 + fact_f*(pott(
ke,i+1,j)+pott(
ke,i-2,j)) ) ) * rcdx(i) &
1151 + ( gsqrt(
ke,i,j ,
i_xvz) * ( momy(
ke,i,j ) + dtrk*sv(
ke,i,j ) ) &
1152 * ( fact_n*(pott(
ke,i,j+1)+pott(
ke,i,j )) &
1153 + fact_f*(pott(
ke,i,j+2)+pott(
ke,i,j-1)) ) &
1154 - gsqrt(
ke,i,j-1,
i_xvz) * ( momy(
ke,i,j-1) + dtrk*sv(
ke,i,j-1) ) &
1155 * ( fact_n*(pott(
ke,i,j )+pott(
ke,i,j-1)) &
1156 + fact_f*(pott(
ke,i,j+1)+pott(
ke,i,j-2)) ) ) * rcdy(j) &
1157 + gsqrt(
ke,i,j,
i_xyz) * ( st(
ke,i,j) - dpres(
ke,i,j) * rcs2t(
ke,i,j) * rdt ) &
1159 + grav * j33g * 0.5_rp * ( - ( dpres(
ke,i,j)+dpres(
ke-1,i,j) ) * rcs2t(
ke,i,j) &
1160 + ( ddens(
ke,i,j)+ddens(
ke-1,i,j) ) * pott(
ke,i,j) ) * rcdz(
ke)
1164 k = iundef; i = iundef; j = iundef
1169 pott, rcs2t, grav, &
1171 rcdz, rfdz, rcdx, rfdx, rcdy,rfdy, fdz, &
1175 iis, iie, jjs, jje )
1180 call solve_bicgstab( &
1185 call comm_vars8( dpres_n, 1 )
1186 call comm_wait ( dpres_n, 1 )
1189 call check_solver( dpres_n, m, b )
1194 call solve_multigrid
1211 call check( __line__, dpres_n(k+1,i,j) )
1212 call check( __line__, dpres_n(k ,i,j) )
1213 call check( __line__, dpres(k+1,i,j) )
1214 call check( __line__, dpres(k ,i,j) )
1215 call check( __line__, ddens(k+1,i,j) )
1216 call check( __line__, ddens(k ,i,j) )
1217 call check( __line__, ref_dens(k+1,i,j) )
1218 call check( __line__, ref_dens(k,i,j) )
1219 call check( __line__, momz0(k,i,j) )
1222 - j33g * ( dpres_n(k+1,i,j) - dpres_n(k,i,j) ) * rfdz(k) &
1223 ) / gsqrt(k,i,j,
i_uyz) &
1225 * ( ddens(k+1,i,j) &
1226 + ( dpres_n(k+1,i,j) - dpres(k+1,i,j) ) &
1227 / ( pott(k+1,i,j) * rt2p(k+1,i,j) ) &
1229 + ( dpres_n(k ,i,j) - dpres(k ,i,j) ) &
1230 / ( pott(k ,i,j) * rt2p(k ,i,j) ) ) &
1232 momz_rk(k,i,j) = momz0(k,i,j) + duvw
1233 mflx_hi(k,i,j,
zdir) = j33g * ( momz(k,i,j) + duvw )
1238 k = iundef; i = iundef; j = iundef
1242 mflx_hi(
ks-1,i,j,
zdir) = 0.0_rp
1243 mflx_hi(
ke ,i,j,
zdir) = 0.0_rp
1247 k = iundef; i = iundef; j = iundef
1259 call check( __line__, dpres_n(k,i+1,j) )
1260 call check( __line__, dpres_n(k,i ,j) )
1261 call check( __line__, gsqrt(k,i+1,j,
i_xyz) )
1262 call check( __line__, gsqrt(k,i ,j,
i_xyz) )
1263 call check( __line__, gsqrt(k,i,j,
i_uyz) )
1264 call check( __line__,
su(k,i,j) )
1265 call check( __line__, momx0(k,i,j) )
1268 - ( gsqrt(k,i+1,j,
i_xyz) * dpres_n(k,i+1,j) &
1269 - gsqrt(k,i ,j,
i_xyz) * dpres_n(k,i ,j) ) * rfdx(i) &
1270 ) / gsqrt(k,i,j,
i_uyz) &
1273 momx_rk(k,i,j) = momx0(k,i,j) + duvw
1274 mflx_hi(k,i,j,
xdir) = gsqrt(k,i,j,
i_uyz) * ( momx(k,i,j) + duvw )
1279 k = iundef; i = iundef; j = iundef
1290 call check( __line__, dpres_n(k,i,j ) )
1291 call check( __line__, dpres_n(k,i,j+1) )
1292 call check( __line__, gsqrt(k,i,j ,
i_xyz) )
1293 call check( __line__, gsqrt(k,i,j+1,
i_xyz) )
1294 call check( __line__, gsqrt(k,i,j,
i_xvz) )
1295 call check( __line__, sv(k,i,j) )
1296 call check( __line__, momy0(k,i,j) )
1299 - ( gsqrt(k,i,j+1,
i_xyz) * dpres_n(k,i,j+1) &
1300 - gsqrt(k,i,j ,
i_xyz) * dpres_n(k,i,j ) ) * rfdy(j) &
1301 ) / gsqrt(k,i,j,
i_xvz) &
1303 momy_rk(k,i,j) = momy0(k,i,j) + duvw
1304 mflx_hi(k,i,j,
ydir) = gsqrt(k,i,j,
i_xvz) * ( momy(k,i,j) + duvw )
1309 k = iundef; i = iundef; j = iundef
1321 call check( __line__, mflx_hi(k,i,j,
zdir) )
1322 call check( __line__, pott(k,i-1,j) )
1323 call check( __line__, pott(k,i ,j) )
1324 call check( __line__, pott(k,i+1,j) )
1325 call check( __line__, pott(k,i+1,j) )
1326 call check( __line__, num_diff(k,i,j,
i_rhot,
xdir) )
1328 tflx_hi(k,i,j,
zdir) = mflx_hi(k,i,j,
zdir) &
1329 * ( fact_n * ( pott(k+1,i,j) + pott(k ,i,j) ) &
1330 + fact_f * ( pott(k+2,i,j) + pott(k-1,i,j) ) )
1335 k = iundef; i = iundef; j = iundef
1340 tflx_hi(
ks-1,i,j,
zdir) = 0.0_rp
1341 tflx_hi(
ks ,i,j,
zdir) = mflx_hi(
ks ,i,j,
zdir) * 0.5_rp * ( pott(
ks+1,i,j) + pott(
ks ,i,j) )
1342 tflx_hi(
ke-1,i,j,
zdir) = mflx_hi(
ke-1,i,j,
zdir) * 0.5_rp * ( pott(
ke ,i,j) + pott(
ke-1,i,j) )
1343 tflx_hi(
ke ,i,j,
zdir) = 0.0_rp
1347 k = iundef; i = iundef; j = iundef
1355 call check( __line__, mflx_hi(k,i,j,
xdir) )
1356 call check( __line__, pott(k,i-1,j) )
1357 call check( __line__, pott(k,i ,j) )
1358 call check( __line__, pott(k,i+1,j) )
1359 call check( __line__, pott(k,i+1,j) )
1360 call check( __line__, num_diff(k,i,j,
i_rhot,
xdir) )
1362 tflx_hi(k,i,j,
xdir) = mflx_hi(k,i,j,
xdir) &
1363 * ( fact_n * ( pott(k,i+1,j)+pott(k,i ,j) ) &
1364 + fact_f * ( pott(k,i+2,j)+pott(k,i-1,j) ) )
1369 k = iundef; i = iundef; j = iundef
1377 call check( __line__, mflx_hi(k,i,j,
ydir) )
1378 call check( __line__, pott(k,i,j-1) )
1379 call check( __line__, pott(k,i,j ) )
1380 call check( __line__, pott(k,i,j+1) )
1381 call check( __line__, pott(k,i,j+2) )
1382 call check( __line__, num_diff(k,i,j,
i_rhot,
ydir) )
1384 tflx_hi(k,i,j,
ydir) = mflx_hi(k,i,j,
ydir) &
1385 * ( fact_n * ( pott(k,i,j+1)+pott(k,i,j ) ) &
1386 + fact_f * ( pott(k,i,j+2)+pott(k,i,j-1) ) )
1391 k = iundef; i = iundef; j = iundef
1398 rhot_rk(k,i,j) = rhot0(k,i,j) &
1399 + dtrk * ( - ( ( tflx_hi(k,i,j,
zdir) - tflx_hi(k-1,i ,j ,
zdir) ) * rcdz(k) &
1400 + ( tflx_hi(k,i,j,
xdir) - tflx_hi(k ,i-1,j ,
xdir) ) * rcdx(i) &
1401 + ( tflx_hi(k,i,j,
ydir) - tflx_hi(k ,i ,j-1,
ydir) ) * rcdy(j) ) &
1402 / gsqrt(k,i,j,
i_xyz) &
1414 mflx_hi(k,i,j,
zdir) = mflx_hi(k,i,j,
zdir) + mflx_hi2(k,i,j,
zdir)
1421 mflx_hi(k,i,j,
xdir) = mflx_hi(k,i,j,
xdir) + mflx_hi2(k,i,j,
xdir)
1428 mflx_hi(k,i,j,
ydir) = mflx_hi(k,i,j,
ydir) + mflx_hi2(k,i,j,
ydir)
1439 call check( __line__, dens0(k,i,j) )
1440 call check( __line__, mflx_hi(k ,i ,j ,
xdir) )
1441 call check( __line__, mflx_hi(k ,i-1,j ,
xdir) )
1442 call check( __line__, mflx_hi(k ,i ,j ,
ydir) )
1443 call check( __line__, mflx_hi(k ,i ,j-1,
ydir) )
1444 call check( __line__, dens_t(k,i,j) )
1446 dens_rk(k,i,j) = dens0(k,i,j) &
1447 + dtrk * ( - ( ( mflx_hi(k,i,j,
zdir)-mflx_hi(k-1,i ,j,
zdir) ) * rcdz(k) &
1448 + ( mflx_hi(k,i,j,
xdir)-mflx_hi(k ,i-1,j,
xdir) ) * rcdx(i) &
1449 + ( mflx_hi(k,i,j,
ydir)-mflx_hi(k ,i, j-1,
ydir) ) * rcdy(j) ) &
1450 / gsqrt(k,i,j,
i_xyz) &
1456 k = iundef; i = iundef; j = iundef
1462 dpres_n, dpres, rhot_rk, rhot, dens_rk, dens, b,&
integer, parameter, public i_rhot
integer, public is
start point of inner domain: x, local
integer, public je
end point of inner domain: y, local
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxx_xvz
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj23_uyz
integer, public iblock
block size for cache blocking: x
integer, parameter, public i_momx
integer, parameter, public zdir
integer, parameter, public i_momz
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj23_xyw
procedure(flux_phi), pointer, public atmos_dyn_fvm_fluxx_xyz
integer, parameter, public ydir
integer, public ke
end point of inner domain: z, local
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj13_xyw
integer, parameter, public xdir
integer, parameter, public i_dens
integer, parameter, public i_momy
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxx_xyw
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxy_xyw
procedure(flux_z), pointer, public atmos_dyn_fvm_fluxz_xvz
integer, public ka
of whole cells: z, local, with HALO
real(rp), public const_pre00
pressure reference [Pa]
integer, public jblock
block size for cache blocking: y
real(rp), public const_grav
standard acceleration of gravity [m/s2]
integer, public js
start point of inner domain: y, local
module Atmosphere / Dynamics common
procedure(valuew), pointer, public atmos_dyn_fvm_flux_valuew_z
integer, public ks
start point of inner domain: z, local
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj13_xvz
integer, public ie
end point of inner domain: x, local
procedure(flux_z), pointer, public atmos_dyn_fvm_fluxz_uyz
module scale_atmos_dyn_fvm_flux
subroutine, public atmos_dyn_fct(qflx_anti, phi_in, DENS0, DENS, qflx_hi, qflx_lo, mflx_hi, rdz, rdx, rdy, GSQRT, MAPF, dt, flag_vect)
Flux Correction Transport Limiter.
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj13_uyz
procedure(flux_j), pointer, public atmos_dyn_fvm_fluxj23_xvz
procedure(flux_phi), pointer, public atmos_dyn_fvm_fluxz_xyz
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxx_uyz
procedure(flux_phi), pointer, public atmos_dyn_fvm_fluxy_xyz
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxy_uyz
procedure(flux_wz), pointer, public atmos_dyn_fvm_fluxz_xyw
procedure(flux_mom), pointer, public atmos_dyn_fvm_fluxy_xvz