- Timestamp:
- Aug 23, 2016, 8:04:18 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/conf_phys.F
r1525 r1579 54 54 CHARACTER ch1*12 55 55 56 #ifndef MESOSCALE 56 57 ! read in some parameters from "run.def" for physics, 57 58 ! or shared between dynamics and physics. … … 65 66 ecritstart=0 ! default value 66 67 call getin("ecritstart",ecritstart) ! write a restart every ecristart steps 68 #endif 69 67 70 ! -------------------------------------------------------------- 68 71 ! Reading the "callphys.def" file controlling some key options -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r1576 r1579 412 412 #else 413 413 ! MESOSCALE. Supposedly everything is already set in modules. 414 ! So we just check. And we calculate day_ini + two param in dyn3d/control_mod. 414 ! So we just check. And we fill day_ini 415 print*,"check: --- in physiq.F" 415 416 print*,"check: rad,cpp,g,r,rcp,daysec" 416 417 print*,rad,cpp,g,r,rcp,daysec … … 424 425 PRINT*,'check: qsurf ',qsurf(1,1),qsurf(ngrid,nq) 425 426 PRINT*,'check: co2 ',co2ice(1),co2ice(ngrid) 426 day_step=daysec/ptimestep 427 PRINT*,'Call to LMD physics:',day_step,' per Martian day' 428 iphysiq=ptimestep 427 !!! 429 428 day_ini = pday 430 429 #endif -
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.