Changeset 4043 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Feb 5, 2026, 2:47:26 PM (4 weeks ago)
Author:
jbclement
Message:

Mars PCM:
Addition of 'pa' and 'preff' in the information provided by "start1D.txt".
JBC

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

Legend:

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

    r3996 r4043  
    313313! ------------------------
    314314psurf = 610. ! Default value for psurf
     315pa = 20.     ! Default value for transition pressure (for hybrid coord.)
     316preff = 610. ! Default value for reference surface pressure
    315317write(*,*) 'Surface pressure (Pa)?'
    316318if (.not. therestart1D) then
     
    318320else
    319321    open(3,file = trim(start1Dname),status = "old",action = "read")
    320     read(3,*) header, psurf
    321 endif
    322 write(*,*) " psurf = ",psurf
     322    read(3,*) header, psurf, pa, preff
     323endif
     324write(*,*) " psurf = ", psurf
     325write(*,*) " pa    = ", pa
     326write(*,*) " preff = ", preff
    323327
    324328! Compute pressures and altitudes of atmospheric levels
     
    330334call getin("hybrid",hybrid)
    331335write(*,*) " hybrid = ", hybrid
    332 
    333 ! Reference pressures
    334 pa = 20.     ! Transition pressure (for hybrid coord.)
    335 preff = 610. ! Reference surface pressure
    336336
    337337call disvert_noterre
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90

    r3912 r4043  
    1111use dimradmars_mod,      only: tauvis, totcloudfrac, albedo
    1212use dust_param_mod,      only: tauscaling
    13 use comvert_mod,         only: ap, bp, aps, bps
     13use comvert_mod,         only: ap, bp, aps, bps, pa, preff
    1414use physiq_mod,          only: physiq
    1515use turb_mod,            only: q2
     
    261261
    262262! Writing the "restart1D.txt" file for the next run
    263 if (startfiles_1D) call writerestart1D('restart1D.txt',psurf,tsurf(1,:),nlayer,size(tsurf,2),temp,u,v,nq,noms,qsurf(1,:,:),q)
     263if (startfiles_1D) call writerestart1D('restart1D.txt',psurf,pa,preff,tsurf(1,:),nlayer,size(tsurf,2),temp,u,v,nq,noms,qsurf(1,:,:),q)
    264264
    265265write(*,*) "testphys1d: everything is cool!"
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/writerestart1D_mod.F90

    r3074 r4043  
    55contains
    66
    7 SUBROUTINE writerestart1D(filename,psurf,tsurf,nlayer,nslope,temp,u,v,nq,qnames,qsurf,q)
     7SUBROUTINE writerestart1D(filename,psurf,pa,preff,tsurf,nlayer,nslope,temp,u,v,nq,qnames,qsurf,q)
    88
    99implicit none
    1010
    1111! Arguments
    12 character(len = *),                intent(in) :: filename
    13 integer,                           intent(in) :: nlayer, nq, nslope
    14 real,                              intent(in) :: psurf
    15 real, dimension(nslope),           intent(in) :: tsurf
    16 real, dimension(nlayer),           intent(in) :: temp, u, v
    17 real, dimension(nlayer,nq),        intent(in) :: q
    18 real, dimension(nq,nslope),        intent(in) :: qsurf
    19 character(len = *), dimension(nq), intent(in) :: qnames
     12character(*),                intent(in) :: filename
     13integer,                     intent(in) :: nlayer, nq, nslope
     14real,                        intent(in) :: psurf, pa, preff
     15real, dimension(nslope),     intent(in) :: tsurf
     16real, dimension(nlayer),     intent(in) :: temp, u, v
     17real, dimension(nlayer,nq),  intent(in) :: q
     18real, dimension(nq,nslope),  intent(in) :: qsurf
     19character(*), dimension(nq), intent(in) :: qnames
    2020
    2121! Local variables
     
    2424! Write the data needed for a restart in "restart1D.txt"
    2525open(1,file = filename,status = "replace",action = "write")
    26 write(1,*) 'ps', psurf
     26write(1,*) 'ps', psurf, pa, preff
    2727do i = 1,nq
    2828    write(1,*) qnames(i), (qsurf(i,j), j = 1,nslope), (q(il,i), il = 1,nlayer)
Note: See TracChangeset for help on using the changeset viewer.