Changeset 1738 for trunk/MESOSCALE/LMD_MM_MARS
- Timestamp:
- Jul 24, 2017, 12:00:05 AM (7 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/dynphy_wrf_mars_lmd_new/update_outputs_physiq_mod.F
r1724 r1738 14 14 use surfdat_h, only: tsurf, co2ice, qsurf 15 15 16 implicit none 17 16 18 INTEGER, INTENT(IN) :: ims,ime,jms,jme 17 19 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe … … 54 56 use comsoil_h, only: tsoil 55 57 58 implicit none 59 56 60 INTEGER, INTENT(IN) :: ims,ime,jms,jme 57 61 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,nsoil … … 87 91 use dimradmars_mod, only: fluxrad 88 92 93 implicit none 94 89 95 INTEGER, INTENT(IN) :: ims,ime,jms,jme 90 96 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe … … 114 120 SUBROUTINE update_outputs_physiq_turb( & 115 121 ims,ime,jms,jme,kms,kme,& 116 ips,ipe,jps,jpe, &122 ips,ipe,jps,jpe,kps,kpe,& 117 123 M_Q2,M_WSTAR,& 118 124 HFMAX,ZMAX,USTM,HFX) … … 120 126 use turb_mod, only: q2,wstar,ustar,sensibFlux,& 121 127 hfmax_th,zmax_th 128 implicit none 122 129 123 130 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme 124 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe 125 INTEGER :: i,j,subs 131 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,kps,kpe 132 INTEGER :: i,j,subs 126 133 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: & 127 134 M_WSTAR,HFMAX,ZMAX,USTM,HFX 128 135 REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT) :: M_Q2 129 136 130 137 DO j = jps,jpe 131 138 DO i = ips,ipe … … 148 155 HFX(i,j) = sensibFlux(subs) 149 156 150 151 157 ENDDO 158 ENDDO 152 159 153 160 END SUBROUTINE update_outputs_physiq_turb … … 171 178 MTOT,ICETOT,TAU_ICE 172 179 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & 173 HR_SW,HR_LW, RDUST,VMR_ICE,RICE,HR_DYN,DT,DTRAD,DTVDF,DTAJS180 HR_SW,HR_LW,HR_DYN,RDUST,VMR_ICE,RICE,DT,DTRAD,DTVDF,DTAJS 174 181 INTEGER :: i,j,subs 175 182 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/dynphy_wrf_prescribed_void_lmd_new/update_outputs_physiq_mod.F
r1724 r1738 57 57 58 58 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme 59 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe 59 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,kps,kpe 60 60 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: & 61 61 M_WSTAR,HFMAX,ZMAX,USTM,HFX 62 62 REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT) :: M_Q2 63 63 64 64 END SUBROUTINE update_outputs_physiq_turb 65 65 … … 67 67 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 68 68 SUBROUTINE update_outputs_physiq_diag( & 69 ims,ime,jms,jme,kms,kme,&70 ips,ipe,jps,jpe,kps,kpe,&71 SWDOWNZ,TAU_DUST,QSURFDUST,&72 MTOT,ICETOT,TAU_ICE,&73 HR_SW,HR_LW,HR_DYN,DT,DTRAD,DTVDF,DTAJS,&74 RDUST,VMR_ICE,RICE)69 ims,ime,jms,jme,kms,kme,& 70 ips,ipe,jps,jpe,kps,kpe,& 71 SWDOWNZ,TAU_DUST,QSURFDUST,& 72 MTOT,ICETOT,TAU_ICE,& 73 HR_SW,HR_LW,HR_DYN,DT,DTRAD,DTVDF,DTAJS,& 74 RDUST,VMR_ICE,RICE) 75 75 76 76 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme … … 80 80 MTOT,ICETOT,TAU_ICE 81 81 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & 82 HR_SW,HR_LW,HR_DYN,RDUST,VMR_ICE,RICE,DT,DTRA ,DTVDF,DTAJS83 INTEGER :: i,j, k,subs82 HR_SW,HR_LW,HR_DYN,RDUST,VMR_ICE,RICE,DT,DTRAD,DTVDF,DTAJS 83 INTEGER :: i,j,subs,k 84 84 REAL, DIMENSION(kms:kme) :: phr_sw,phr_lw,phr_dyn 85 85 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/dynphy_wrf_venus_lmd_new/update_outputs_physiq_mod.F
r1724 r1738 12 12 M_H2OICE) 13 13 14 !use surfdat_h, only: tsurf15 14 use phys_state_var_mod, only : ftsol 16 15 … … 50 49 M_TSOIL) 51 50 52 !use comsoil_h, only: tsoil53 51 use phys_state_var_mod, only : ftsoil 54 52 … … 86 84 M_FLUXRAD) 87 85 88 !use dimradmars_mod, only: fluxrad89 86 use phys_state_var_mod, only : radsol 90 87 … … 122 119 HFMAX,ZMAX,USTM,HFX) 123 120 124 use turb_mod, only: q2,wstar,yustar,sens!,& 125 ! hfmax_th,zmax_th 121 use turb_mod, only: q2,wstar,yustar,sens 126 122 127 123 implicit none … … 149 145 150 146 !! output only (arrays already in phys modules) 151 !HFMAX(i,j) = HFMAX_TH(subs)152 !ZMAX(i,j) = ZMAX_TH(subs)153 147 USTM(i,j) = yustar(subs) 154 148 HFX(i,j) = sens(subs) … … 159 153 END SUBROUTINE update_outputs_physiq_turb 160 154 161 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 162 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 163 SUBROUTINE update_outputs_physiq_diag( & 164 ims,ime,jms,jme,kms,kme,&165 ips,ipe,jps,jpe,kps,kpe,&166 SWDOWNZ,TAU_DUST,QSURFDUST,&167 MTOT,ICETOT,TAU_ICE,&168 HR_SW,HR_LW,HR_DYN,DT,DTRAD,DTVDF,DTAJS,&169 RDUST,VMR_ICE,RICE)170 171 USE comm_wrf !! to get fields to be written from physiq 172 173 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme 174 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,kps,kpe 175 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: & 176 SWDOWNZ,TAU_DUST,QSURFDUST,& 177 MTOT,ICETOT,TAU_ICE 178 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: &155 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 156 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 157 SUBROUTINE update_outputs_physiq_diag( & 158 ims,ime,jms,jme,kms,kme,& 159 ips,ipe,jps,jpe,kps,kpe,& 160 SWDOWNZ,TAU_DUST,QSURFDUST,& 161 MTOT,ICETOT,TAU_ICE,& 162 HR_SW,HR_LW,HR_DYN,DT,DTRAD,DTVDF,DTAJS,& 163 RDUST,VMR_ICE,RICE) 164 165 USE comm_wrf !! to get fields to be written from physiq 166 167 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme 168 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,kps,kpe 169 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: & 170 SWDOWNZ,TAU_DUST,QSURFDUST,& 171 MTOT,ICETOT,TAU_ICE 172 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & 179 173 HR_SW,HR_LW,HR_DYN,RDUST,VMR_ICE,RICE,DT,DTRAD,DTVDF,DTAJS 180 INTEGER :: i,j,subs181 182 DO j = jps,jpe 183 DO i = ips,ipe 184 185 !-----------------------------------!186 ! 1D subscript for physics "cursor" !187 !-----------------------------------!188 subs = (j-jps)*(ipe-ips+1)+(i-ips+1)189 190 !! get diagnostics from physics191 SWDOWNZ(i,j) = comm_SWDOWNZ(subs)192 MTOT(i,j) = comm_MTOT(subs)193 HR_SW(i,kps:kpe,j) = comm_HR_SW(subs,kps:kpe)194 HR_LW(i,kps:kpe,j) = comm_HR_LW(subs,kps:kpe)195 HR_DYN(i,kps:kpe,j) = comm_HR_DYN(subs,kps:kpe)196 DT(i,kps:kpe,j) = comm_DT(subs,kps:kpe)197 DTRAD(i,kps:kpe,j) = comm_DT_RAD(subs,kps:kpe)198 DTVDF(i,kps:kpe,j) = comm_DT_VDF(subs,kps:kpe)199 DTAJS(i,kps:kpe,j) = comm_DT_AJS(subs,kps:kpe)200 201 ENDDO 202 ENDDO 203 204 CALL deallocate_comm_wrf205 174 INTEGER :: i,j,subs 175 176 DO j = jps,jpe 177 DO i = ips,ipe 178 179 !-----------------------------------! 180 ! 1D subscript for physics "cursor" ! 181 !-----------------------------------! 182 subs = (j-jps)*(ipe-ips+1)+(i-ips+1) 183 184 !! get diagnostics from physics 185 SWDOWNZ(i,j) = comm_SWDOWNZ(subs) 186 MTOT(i,j) = comm_MTOT(subs) 187 HR_SW(i,kps:kpe,j) = comm_HR_SW(subs,kps:kpe) 188 HR_LW(i,kps:kpe,j) = comm_HR_LW(subs,kps:kpe) 189 HR_DYN(i,kps:kpe,j) = comm_HR_DYN(subs,kps:kpe) 190 DT(i,kps:kpe,j) = comm_DT(subs,kps:kpe) 191 DTRAD(i,kps:kpe,j) = comm_DT_RAD(subs,kps:kpe) 192 DTVDF(i,kps:kpe,j) = comm_DT_VDF(subs,kps:kpe) 193 DTAJS(i,kps:kpe,j) = comm_DT_AJS(subs,kps:kpe) 194 195 ENDDO 196 ENDDO 197 198 CALL deallocate_comm_wrf 199 206 200 END SUBROUTINE update_outputs_physiq_diag 207 201 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/dynphy_wrf_void_lmd_new/update_outputs_physiq_mod.F
r1724 r1738 52 52 SUBROUTINE update_outputs_physiq_turb( & 53 53 ims,ime,jms,jme,kms,kme,& 54 ips,ipe,jps,jpe, &54 ips,ipe,jps,jpe,kps,kpe,& 55 55 M_Q2,M_WSTAR,& 56 56 HFMAX,ZMAX,USTM,HFX) 57 57 58 58 INTEGER, INTENT(IN) :: ims,ime,jms,jme,kms,kme 59 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe 59 INTEGER, INTENT(IN) :: ips,ipe,jps,jpe,kps,kpe 60 60 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: & 61 61 M_WSTAR,HFMAX,ZMAX,USTM,HFX 62 62 REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT) :: M_Q2 63 63 64 64 END SUBROUTINE update_outputs_physiq_turb 65 65 … … 80 80 MTOT,ICETOT,TAU_ICE 81 81 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & 82 HR_SW,HR_LW, RDUST,VMR_ICE,RICE,HR_DYN,DT,DTRAD,DTVDF,DTAJS82 HR_SW,HR_LW,HR_DYN,RDUST,VMR_ICE,RICE,DT,DTRAD,DTVDF,DTAJS 83 83 INTEGER :: i,j,subs 84 84
Note: See TracChangeset
for help on using the changeset viewer.