Changeset 1579 for trunk/MESOSCALE/LMD_MM_MARS/SRC
- Timestamp:
- Aug 23, 2016, 8:04:18 AM (8 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/Makefile
r1577 r1579 11 11 update_inputs_physiq_mod.o \ 12 12 update_outputs_physiq_mod.o \ 13 iniphysiq_mod.o \ 13 14 module_lmd_driver.o 14 15 -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F.new
r1578 r1579 62 62 USE update_outputs_physiq_mod !! to get outputs from physiq 63 63 USE comm_wrf !! to get fields to be written from physiq 64 USE iniphysiq_mod !! to get iniphysiq subroutine 64 65 USE physiq_mod, only : physiq 65 USE phys_state_var_init_mod, only : phys_state_var_init66 !!! ajouter init_time (voir iniphysiq. ne plus le faire dans la physiq)67 66 #endif 68 67 … … 454 453 lct_input,lon_input,ls_input,& 455 454 ptime,pday,MY) 456 !!457 CALL phys_state_var_init(ngrid,nlayer,nq,&458 floor(pday),ptime,&459 wdaysec,ptimestep,1/reradius,g,r_d,cp)460 455 !! Fill planetary parameters in modules 461 456 !! Values defined in the module_model_constants.F WRF routine 462 457 CALL update_inputs_physiq_constants 463 !! Read callphys.def !! 464 call conf_phys(ngrid,nlayer,nq) 458 !! Initialize physics 459 CALL iniphysiq(ngrid,nlayer,nq,ptime,wappel_phys,& 460 wdaysec,floor(pday),ptimestep, & 461 1./reradius,g,r_d,cp,1) 465 462 ENDIF allocation_firstcall 466 463 #endif -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/update_inputs_physiq_mod.F
r1577 r1579 227 227 XLAT,XLONG) 228 228 229 ! in WRF (share) 229 230 USE module_model_constants, only: DEGRAD 231 ! in LMD (phymars) 230 232 use comgeomfi_h, only: ini_fillgeom 233 ! in LMD (phy_common) 234 USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz 235 USE geometry_mod, ONLY: latitude,latitude_deg,& 236 longitude,longitude_deg,& 237 cell_area 231 238 232 239 INTEGER, INTENT(IN) :: ims,ime,jms,jme … … 273 280 !! FILL GEOMETRICAL ARRAYS !! 274 281 call ini_fillgeom(ngrid,plat,plon,parea) 282 283 !!! ---------------------------------------------------------- 284 !!! --- initializing geometry in phy_common 285 !!! --- (this is quite planet-independent) 286 !!! ---------------------------------------------------------- 287 ! initialize mod_grid_phy_lmdz 288 CALL init_grid_phy_lmdz(1,1,ipe-ips+1,jpe-jps+1,nlayer) 289 ! fill in geometry_mod variables 290 ! ... copy over local grid longitudes and latitudes 291 ! ... partly what is done in init_geometry 292 IF(.not.ALLOCATED(longitude)) ALLOCATE(longitude(ngrid)) 293 IF(.not.ALLOCATED(longitude_deg)) ALLOCATE(longitude_deg(ngrid)) 294 IF(.not.ALLOCATED(latitude)) ALLOCATE(latitude(ngrid)) 295 IF(.not.ALLOCATED(latitude_deg)) ALLOCATE(latitude_deg(ngrid)) 296 IF(.not.ALLOCATED(cell_area)) ALLOCATE(cell_area(ngrid)) 297 longitude(:) = plon(:) 298 latitude(:) = plat(:) 299 longitude_deg(:) = plon(:)/DEGRAD 300 latitude_deg(:) = plat(:)/DEGRAD 301 cell_area(:) = parea(:) 302 !!! ---------------------------------------------------------- 275 303 276 304 END SUBROUTINE update_inputs_physiq_geom
Note: See TracChangeset
for help on using the changeset viewer.