Ignore:
Timestamp:
Apr 3, 2023, 6:17:05 PM (21 months ago)
Author:
romain.vande
Message:

Mars PCM:
Add a new routine to write output called write_output.
It needs to be imported (for example : use write_output_mod, only: write_output)
Then, it requires only 4 arguments : the name of the variable, its title, its units and the variable itself.
It detects the dimension of the variable and decide to output either in diagfi or diagsoil.
It is also compatible with XIOS (xml file needs to be adapted)
Writediagfi and writediagsoil routines are still available in case.
RV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r2926 r2932  
    4141     &                  nf90_strerror
    4242      use iostart, only: open_startphy,get_var, close_startphy
     43      use write_output_mod, only: write_output
    4344      IMPLICIT NONE
    4445
     
    852853          ENDIF  !((iq.eq.igcm_h2o_vap).and.(atm_wat_profile.eq.2)) THEN
    853854        ENDDO
    854         CALL WRITEDIAGFI(ngrid,'qsat',
     855        CALL write_output('qsat',
    855856     &                         'qsat',
    856      &                         'kg/kg',1,zqsat)
     857     &                         'kg/kg',zqsat(:))
    857858
    858859
Note: See TracChangeset for help on using the changeset viewer.