Ignore:
Timestamp:
Apr 3, 2023, 6:17:05 PM (23 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/compute_dtau_mod.F90

    r2643 r2932  
    2525        USE dust_param_mod, only: odpref, t_scenario_sol
    2626        USE read_dust_scenario_mod, only: read_dust_scenario
     27        use write_output_mod, only: write_output
    2728       
    2829        IMPLICIT NONE
     
    8081        endif
    8182       ! for diagnostics
    82         call WRITEDIAGFI(ngrid,"tau_pref_target", &
     83        call write_output("tau_pref_target", &
    8384                          "target visible dust opacity column at 610Pa", &
    84                           "",2,tau_pref_target)
     85                          "",tau_pref_target(:))
    8586
    8687        ! 2. Compute dtau() and dustliftday()
     
    102103
    103104       ! for diagnostics
    104         call WRITEDIAGFI(ngrid,"dtau","opacity difference wrt scenario",&
    105                           "",2,dtau)
    106         call WRITEDIAGFI(ngrid,"dustliftday","dust injection rate",     &
    107                           "s-1",2,dustliftday)
     105        call write_output("dtau","opacity difference wrt scenario",&
     106                          "",dtau(:))
     107        call write_output("dustliftday","dust injection rate",     &
     108                          "s-1",dustliftday(:))
    108109         
    109110        ! 4. Save local time
Note: See TracChangeset for help on using the changeset viewer.