- Timestamp:
- Apr 15, 2015, 6:49:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/write_histday_seri.h
r3809 r3814 51 51 CALL histwrite(nid_day_seri,"ecin",itau_w, & 52 52 zx_tmp_2d,iim*jjmp1,ndex2d) 53 ! 54 !IM 151004 BEG 55 IF(1.EQ.0) THEN 56 ! 57 DO k=1, klev 58 DO i=1, klon 59 zx_tmp_fi3d(i,k)=u_seri(i,k)*RA*cos(pir* rlat(i)) 60 ENDDO 61 ENDDO 62 ! 63 CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, & 64 airephy, paprs, moyglo) 65 zx_tmp_fi2d(1:klon)=moyglo 66 ! 67 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 68 CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, & 69 iim*jjmp1,ndex2d) 70 ! 71 ! friction torque 72 ! 73 DO i=1, klon 74 zx_tmp_fi2d(i)=zxfluxu(i,1)*RA* cos(pir* rlat(i)) 75 ENDDO 76 ! 77 ok_msk=.FALSE. 78 CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, & 79 ok_msk, msk, moyglo) 80 zx_tmp_fi2d(1:klon)=moyglo 81 ! 82 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 83 CALL histwrite(nid_day_seri,"frictor",itau_w,zx_tmp_2d, & 84 iim*jjmp1,ndex2d) 85 ! 86 ! mountain torque 87 ! 88 !IM 190504 BEG 89 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 90 CALL gr_fi_dyn(klev+1,klon,iim+1,jjm+1,paprs,padyn) 91 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,rlat,rlatdyn) 92 mountor=0. 93 airetot=0. 94 DO j = 1, jjmp1 95 DO i = 1, iim+1 96 ij=i+(iim+1)*(j-1) 97 zx_tmp(ij)=0. 98 DO k = 1, klev 99 zx_tmp(ij)=zx_tmp(ij)+dudyn(i,j,k)*airedyn(i,j)* & 100 (padyn(i,j,k+1)-padyn(i,j,k))/RG 101 airetot=airetot+airedyn(i,j) 102 ENDDO 103 !IM 190504 mountor=mountor+zx_tmp(ij)*airedyn(i,j)*RA* 104 mountor=mountor+zx_tmp(ij)*RA* & 105 cos(pir* rlatdyn(i,j)) 106 ENDDO 107 ENDDO 108 !IM 151004 BEG 109 IF(itap.EQ.1) PRINT*,'airetot=',airetot,airetot/klev 110 !IM 151004 END 111 !IM 190504 mountor=mountor/(airetot*airetot) 112 mountor=mountor/airetot 113 ! 114 !IM 190504 END 115 zx_tmp_2d(1:iim,1:jjmp1)=mountor 116 CALL histwrite(nid_day_seri,"mountor",itau_w,zx_tmp_2d, & 117 iim*jjmp1,ndex2d) 118 ! 119 ENDIF !(1.EQ.0) THEN 120 ! 121 ! 122 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 53 54 55 !#ifdef _YM_UNUSED_TO_SUPRESS_ 56 !ym ! 57 !ym!IM 151004 BEG 58 !ym IF(1.EQ.0) THEN 59 !ym! 60 !ym DO k=1, klev 61 !ym DO i=1, klon 62 !ym zx_tmp_fi3d(i,k)=u_seri(i,k)*RA*cos(pir* rlat(i)) 63 !ym ENDDO 64 !ym ENDDO 65 !ym! 66 !ym CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, & 67 !ym airephy, paprs, moyglo) 68 !ym zx_tmp_fi2d(1:klon)=moyglo 69 !ym! 70 !ym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 71 !ym CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, & 72 !ym iim*jjmp1,ndex2d) 73 !ym! 74 !ym! friction torque 75 !ym! 76 !ym DO i=1, klon 77 !ym zx_tmp_fi2d(i)=zxfluxu(i,1)*RA* cos(pir* rlat(i)) 78 !ym ENDDO 79 !ym! 80 !ym ok_msk=.FALSE. 81 !ym CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, & 82 !ym ok_msk, msk, moyglo) 83 !ym zx_tmp_fi2d(1:klon)=moyglo 84 !ym! 85 !ym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 86 !ym CALL histwrite(nid_day_seri,"frictor",itau_w,zx_tmp_2d, & 87 !ym iim*jjmp1,ndex2d) 88 !ym! 89 !ym! mountain torque 90 !ym! 91 !ym!IM 190504 BEG 92 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 93 !ym CALL gr_fi_dyn(klev+1,klon,iim+1,jjm+1,paprs,padyn) 94 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,rlat,rlatdyn) 95 !ym 96 !ym 97 !ym mountor=0. 98 !ym airetot=0. 99 !ym DO j = 1, jjmp1 100 !ym DO i = 1, iim+1 101 !ym ij=i+(iim+1)*(j-1) 102 !ym zx_tmp(ij)=0. 103 !ym DO k = 1, klev 104 !ym zx_tmp(ij)=zx_tmp(ij)+dudyn(i,j,k)*airedyn(i,j)* & 105 !ym (padyn(i,j,k+1)-padyn(i,j,k))/RG 106 !ym airetot=airetot+airedyn(i,j) 107 !ym ENDDO 108 !ym!IM 190504 mountor=mountor+zx_tmp(ij)*airedyn(i,j)*RA* 109 !ym mountor=mountor+zx_tmp(ij)*RA* & 110 !ym cos(pir* rlatdyn(i,j)) 111 !ym ENDDO 112 !ym ENDDO 113 !ym!IM 151004 BEG 114 !ym IF(itap.EQ.1) PRINT*,'airetot=',airetot,airetot/klev 115 !ym!IM 151004 END 116 !ym!IM 190504 mountor=mountor/(airetot*airetot) 117 !ym mountor=mountor/airetot 118 !ym! 119 !ym!IM 190504 END 120 !ym zx_tmp_2d(1:iim,1:jjmp1)=mountor 121 !ym CALL histwrite(nid_day_seri,"mountor",itau_w,zx_tmp_2d, & 122 !ym iim*jjmp1,ndex2d) 123 !ym! 124 !ym ENDIF !(1.EQ.0) THEN 125 !ym! 126 !ym! 127 !ym 128 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 129 !#endif 130 123 131 CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) 124 132 airetot=0. … … 133 141 ! ENDDO !j 134 142 ! 143 144 145 airetot=0. 135 146 DO i=1, klon 136 147 airetot=airetot+airephy(i)
Note: See TracChangeset
for help on using the changeset viewer.