Ignore:
Timestamp:
Jan 25, 2024, 6:06:27 PM (2 years ago)
Author:
jbclement
Message:

Mars PCM:
Some changes to prepare the introduction of slopes in 1D: in particular, the subroutine "getslopes.F90" and "param_slope.F90" are now inside the module "slope_mod.F90" + Few small cleanings throughout the code.
JBC

Location:
trunk/LMDZ.MARS/libf/phymars/dyn1d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90

    r3179 r3183  
    4141use conf_phys_mod,            only: conf_phys
    4242use paleoclimate_mod,         only: paleoclimate
     43use comslope_mod,             only: nslope, subslope_dist, ini_comslope_h, end_comslope_h
    4344! Mostly for XIOS outputs:
    4445use mod_const_mpi,            only: COMM_LMDZ
     
    208209allocate(nqfils(nqtot))
    209210nqperes = 0
    210 nqfils(:) = 0
     211nqfils = 0
    211212do iq = 1,nqtot
    212213    if (tnom_transp(iq) == 'air') then
     
    373374longitude = longitude*pi/180.
    374375
    375 ! Some initializations (some of which have already been
    376 ! done above!) and loads parameters set in callphys.def
    377 ! and allocates some arrays
     376! Some initializations (some of which have already been done above!)
     377! and loads parameters set in callphys.def and allocates some arrays
    378378! Mars possible matter with dttestphys in input and include!!!
    379379! Initializations below should mimick what is done in iniphysiq for 3D GCM
     
    383383call init_geometry_cell_area_for_outputs(1,cell_area)
    384384! Ehouarn: init_vertial_layers called later (because disvert not called yet)
    385 !      call init_vertical_layers(nlayer,preff,scaleheight,
    386 !     &                      ap,bp,aps,bps,presnivs,pseudoalt)
     385! call init_vertical_layers(nlayer,preff,scaleheight,ap,bp,aps,bps,presnivs,pseudoalt)
    387386call init_dimphy(1,nlayer) ! Initialize dimphy module
    388 call phys_state_var_init(1,llm,nq,tname,day0,dayn,time,daysec,dttestphys,rad,g,r,cpp,nqperes,nqfils)! MVals: variables isotopes
     387call phys_state_var_init(1,llm,nq,tname,day0,dayn,time,daysec,dttestphys,rad,g,r,cpp,nqperes,nqfils) ! MVals: variables isotopes
    389388call ini_fillgeom(1,latitude,longitude,(/1.0/))
    390389call conf_phys(1,llm,nq)
     
    461460
    462461! For the non-orographic gravity waves scheme
    463 du_nonoro_gwd(1,:)=0
    464 dv_nonoro_gwd(1,:)=0
     462du_nonoro_gwd(1,:) = 0
     463dv_nonoro_gwd(1,:) = 0
    465464
    466465! For the slope wind scheme
     
    559558if (.not. therestart1D) then
    560559    tsurf(:,1) = tmp2(0)
    561     temp(:) = tmp2(1:)
     560    temp = tmp2(1:)
    562561else
    563562    read(3,*) header, (tsurf(1,:), j = 1,size(tsurf,2)), (temp(ilayer), ilayer = 1,nlayer)
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90

    r3179 r3183  
    255255    ! Compute winds and temperature for next time step
    256256    ! ------------------------------------------------
    257     u(:) = u(:) + dttestphys*du(:)
    258     v(:) = v(:) + dttestphys*dv(:)
    259     temp(:) = temp(:) + dttestphys*dtemp(:)
     257    u = u + dttestphys*du
     258    v = v + dttestphys*dv
     259    temp = temp + dttestphys*dtemp
    260260
    261261    ! Compute pressure for next time step
Note: See TracChangeset for help on using the changeset viewer.