Changeset 5103 for LMDZ6/branches/Amaury_dev/libf/phydev
- Timestamp:
- Jul 23, 2024, 3:29:36 PM (2 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/phydev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phydev/iophy.F90
r5101 r5103 25 25 contains 26 26 27 subroutineinit_iophy_new(rlat,rlon)27 SUBROUTINE init_iophy_new(rlat,rlon) 28 28 USE dimphy, only: klon 29 29 USE mod_phys_lmdz_para, only: gather, bcast, & … … 34 34 USE print_control_mod, ONLY: lunout, prt_level 35 35 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat 36 #ifdef CPP_IOIPSL37 36 USE ioipsl, only: flio_dom_set 38 #endif39 37 use wxios, only: wxios_domain_param, using_xios 40 38 implicit none … … 141 139 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 142 140 143 subroutinehistbeg_phy(name,itau0,zjulian,dtime,nhori,nid_day)141 SUBROUTINE histbeg_phy(name,itau0,zjulian,dtime,nhori,nid_day) 144 142 USE mod_phys_lmdz_para, only: is_sequential, jj_begin, jj_end, jj_nb 145 143 use ioipsl, only: histbeg … … 165 163 !$OMP END MASTER 166 164 167 end subroutinehistbeg_phy165 END SUBROUTINE histbeg_phy 168 166 169 167 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 200 198 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 201 199 202 subroutinehistwrite2d_phy(nid,lpoint,name,itau,field)200 SUBROUTINE histwrite2d_phy(nid,lpoint,name,itau,field) 203 201 USE dimphy, only: klon 204 202 USE mod_phys_lmdz_para, only: Gather_omp, grid1Dto2D_mpi, & … … 242 240 else 243 241 DO ip=1, npstn 244 ! print*,'histwrite2d is_sequential npstn ip name nptabij',npstn,ip,name,nptabij(ip)242 ! PRINT*,'histwrite2d is_sequential npstn ip name nptabij',npstn,ip,name,nptabij(ip) 245 243 IF(nptabij(ip)>=klon_mpi_begin.AND. & 246 244 nptabij(ip)<=klon_mpi_end) THEN … … 255 253 deallocate(fieldok) 256 254 !$OMP END MASTER 257 end subroutinehistwrite2d_phy258 259 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 260 261 subroutinehistwrite3d_phy(nid,lpoint,name,itau,field)255 END SUBROUTINE histwrite2d_phy 256 257 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 258 259 SUBROUTINE histwrite3d_phy(nid,lpoint,name,itau,field) 262 260 USE dimphy, only: klon 263 261 USE mod_phys_lmdz_para, only: Gather_omp, grid1Dto2D_mpi, & … … 317 315 deallocate(fieldok) 318 316 !$OMP END MASTER 319 end subroutinehistwrite3d_phy317 END SUBROUTINE histwrite3d_phy 320 318 321 319 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -
LMDZ6/branches/Amaury_dev/libf/phydev/physiq_mod.F90
r5101 r5103 56 56 real :: temp_newton(klon,klev) 57 57 integer :: k 58 logical, save :: first=. true.58 logical, save :: first=.TRUE. 59 59 !$OMP THREADPRIVATE(first) 60 60 … … 75 75 76 76 ! initializations 77 if(debut) then ! Things to do only for the first CALL to physics77 IF (debut) then ! Things to do only for the first CALL to physics 78 78 ! load initial conditions for physics (including the grid) 79 79 CALL phys_state_var_init() ! some initializations, required before calling phyetat0 … … 137 137 !$OMP END MASTER 138 138 !$OMP BARRIER 139 endif! of if (debut)139 END IF ! of if (debut) 140 140 141 141 ! increment local time counter itau … … 154 154 d_v(1:klon,1)=-v(1:klon,1)/86400. 155 155 ! newtonian relaxation towards temp_newton() 156 dok=1,klev156 DO k=1,klev 157 157 temp_newton(1:klon,k)=280.+cos(latitude(1:klon))*40.-pphi(1:klon,k)/rg*6.e-3 158 158 d_t(1:klon,k)=(temp_newton(1:klon,k)-t(1:klon,k))/1.e5 159 enddo 159 END DO 160 160 161 161 162 print*,'PHYDEV: itau=',itau162 PRINT*,'PHYDEV: itau=',itau 163 163 164 164 ! write some outputs: 165 165 ! IOIPSL 166 166 #ifndef CPP_IOIPSL_NO_OUTPUT 167 if(modulo(itau,iwrite_phys)==0) then168 CALL histwrite_phy(nid_hist,. false.,"temperature",itau,t)169 CALL histwrite_phy(nid_hist,. false.,"u",itau,u)170 CALL histwrite_phy(nid_hist,. false.,"v",itau,v)171 CALL histwrite_phy(nid_hist,. false.,"ps",itau,paprs(:,1))172 endif 167 IF (modulo(itau,iwrite_phys)==0) then 168 CALL histwrite_phy(nid_hist,.FALSE.,"temperature",itau,t) 169 CALL histwrite_phy(nid_hist,.FALSE.,"u",itau,u) 170 CALL histwrite_phy(nid_hist,.FALSE.,"v",itau,v) 171 CALL histwrite_phy(nid_hist,.FALSE.,"ps",itau,paprs(:,1)) 172 END IF 173 173 #endif 174 174 … … 191 191 192 192 ! if lastcall, then it is time to write "restartphy.nc" file 193 if(lafin) then193 IF (lafin) then 194 194 CALL phyredem("restartphy.nc") 195 endif 195 END IF 196 196 197 end subroutinephysiq197 END SUBROUTINE physiq 198 198 199 199 END MODULE physiq_mod
Note: See TracChangeset
for help on using the changeset viewer.