Ignore:
Timestamp:
Nov 8, 2024, 10:57:27 AM (13 days ago)
Author:
afalco
Message:

Pluto: import write_output function from Mars.
xios specific outputs.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3504 r3506  
    3737                          nesp, is_chim, is_condensable,constants_epsi_generic
    3838      use time_phylmdz_mod, only: ecritphy, iphysiq, nday
    39       use phyetat0_mod, only: phyetat0
     39      use phyetat0_mod, only: phyetat0,tab_cntrl_mod
    4040      use wstats_mod, only: callstats, wstats, mkstats
    4141      use phyredem, only: physdem0, physdem1
     
    7979      use datafile_mod, only: datadir
    8080#ifndef MESOSCALE
    81       use vertical_layers_mod, only: presnivs, pseudoalt
     81      USE vertical_layers_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt
    8282      use mod_phys_lmdz_omp_data, ONLY: is_omp_master
    8383#else
     
    745745#ifdef CPP_XIOS
    746746
    747          write(*,*) "physiq: call initialize_xios_output"
    748          call initialize_xios_output(pday,ptime,ptimestep,daysec, &
    749                                      year_day,presnivs,pseudoalt,WNOI,WNOV)
     747         if (is_master) write(*,*) "physiq: call initialize_xios_output"
     748         call initialize_xios_output(pday,ptime,ptimestep,daysec,year_day, &
     749                                     presnivs,pseudoalt,mlayer,WNOI,WNOV)
    750750#endif
    751751
     
    26372637      ! Send fields to XIOS: (NB these fields must also be defined as
    26382638      ! <field id="..." /> in context_lmdz_physics.xml to be correctly used)
    2639       CALL send_xios_field("ls",zls)
    2640 
    2641       CALL send_xios_field("ps",ps)
    2642       CALL send_xios_field("area",cell_area)
    2643       CALL send_xios_field("p",pplay)
    2644       CALL send_xios_field("temperature",zt)
    2645       CALL send_xios_field("u",zu)
    2646       CALL send_xios_field("v",zv)
    2647       call send_xios_field("w",pw)
    2648 
    2649       CALL send_xios_field("ISR",fluxtop_dn)
    2650       CALL send_xios_field("OLR",fluxtop_lw)
    2651       CALL send_xios_field("ASR",fluxabs_sw)
    2652 
    2653       if (specOLR .and. corrk) then
    2654          call send_xios_field("OLR3D",OLR_nu)
    2655          call send_xios_field("IR_Bandwidth",DWNI)
    2656          call send_xios_field("VI_Bandwidth",DWNV)
    2657          call send_xios_field("OSR3D",OSR_nu)
    2658          call send_xios_field("GSR3D",GSR_nu)
    2659       endif
     2639      CALL send_xios_field("controle",tab_cntrl_mod,1)
     2640
     2641      CALL send_xios_field("ap",ap,1)
     2642      CALL send_xios_field("bp",bp,1)
     2643      CALL send_xios_field("aps",aps,1)
     2644      CALL send_xios_field("bps",bps,1)
    26602645
    26612646      if (lastcall.and.is_omp_master) then
Note: See TracChangeset for help on using the changeset viewer.