Ignore:
Timestamp:
Sep 21, 2023, 10:19:40 AM (14 months ago)
Author:
jbclement
Message:

Mars PCM 1D:
Addition of the pressure profile to be able to run chained simulations in 1D. Like this, the surface pressure can be got from one run to the next.
Rework of "write_profile.F90" + correction of arguments in its call in "testphys1d.F": 'qsurf' was wrongly given!
JBC

File:
1 edited

Legend:

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

    r3000 r3045  
    1 SUBROUTINE writeprofile(nlev,data,name2,qsurf)
     1SUBROUTINE writeprofile(nlev,profilename,surfdata,profiledata)
    22
     3implicit none
    34
    4 IMPLICIT NONE
     5! arguments
     6integer, intent(in)               :: nlev
     7real, intent(in)                  :: surfdata
     8real, dimension(nlev), intent(in) :: profiledata
     9character(len = 30), intent(in)   :: profilename
    510
    6 ! arguments:
    7 INTEGER nlev
    8 REAL data(nlev)
    9 REAL qsurf
    10 CHARACTER(len=30) :: name2
     11! Local
     12integer :: il
    1113
    12 !local
    13 INTEGER il
     14! Write the data
     15open(1,file = 'profile_out_'//trim(profilename),form = 'formatted')
     16write(1,*) surfdata
     17do il = 1,nlev
     18    write(1,*) profiledata(il)
     19enddo
     20close(1)
     21return
    1422
    15 !write the data
    16 OPEN(1,file='profile_out_'//trim(name2),form='formatted')
    17 write(1,*) qsurf
    18 DO il=1,nlev
    19     write(1,*) data(il)
    20 ENDDO
    21 CLOSE(1)
    22 RETURN
    2323END
Note: See TracChangeset for help on using the changeset viewer.