Changeset 1986 for LMDZ5/trunk/libf/cosp


Ignore:
Timestamp:
Feb 19, 2014, 3:51:00 PM (11 years ago)
Author:
jghattas
Message:

cosp : corrections for compiling with XIOS. Runnig with cosp not tested.
xml : corrected error in field ozone_daylight. Error seen when read_climoz=2.

Location:
LMDZ5/trunk/libf/cosp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/cosp/cosp_output_mod.F90

    r1926 r1986  
    205205    ! ug déclaration des axes verticaux de chaque fichier:
    206206    if (use_vgrid) then
    207       CALL wxios_add_vaxis("height", cosp_nidfiles(iff), Nlevout, vgrid%z)
     207      CALL wxios_add_vaxis("height", cosp_outfilenames(iff), Nlevout, vgrid%z)
    208208    else
    209       CALL wxios_add_vaxis("presnivs", cosp_nidfiles(iff), Nlevout, presnivs)
     209      CALL wxios_add_vaxis("presnivs", cosp_outfilenames(iff), Nlevout, presnivs)
    210210    endif
    211     CALL wxios_add_vaxis("height_mlev", cosp_nidfiles(iff), Nlevlmdz, vgrid%mz)
    212     CALL wxios_add_vaxis("sza", cosp_nidfiles(iff), PARASOL_NREFL, PARASOL_SZA)
    213     CALL wxios_add_vaxis("pressure2", cosp_nidfiles(iff), 7, ISCCP_PC)
    214     CALL wxios_add_vaxis("column", cosp_nidfiles(iff), Ncolumns, column_ax)
     211    CALL wxios_add_vaxis("height_mlev", cosp_outfilenames(iff), Nlevlmdz, vgrid%mz)
     212    CALL wxios_add_vaxis("sza", cosp_outfilenames(iff), PARASOL_NREFL, PARASOL_SZA)
     213    CALL wxios_add_vaxis("pressure2", cosp_outfilenames(iff), 7, ISCCP_PC)
     214    CALL wxios_add_vaxis("column", cosp_outfilenames(iff), Ncolumns, column_ax)
    215215#endif
    216216
  • LMDZ5/trunk/libf/cosp/cosp_output_write_mod.F90

    r1926 r1986  
    2222#ifdef CPP_XIOS
    2323    ! ug Pour les sorties XIOS
    24         USE wxios
    25     USE xios
     24    USE wxios
    2625#endif
    2726
     
    244243    use iophy
    245244    USE mod_phys_lmdz_para
     245#ifdef CPP_XIOS
     246  USE wxios
     247#endif
    246248
    247249    IMPLICIT NONE
     
    277279
    278280#ifdef CPP_XIOS
    279         CALL wxios_add_field_to_file(var%name, 2, cosp_nidfiles(iff),
    280 cosp_outfilenames(iff), &
    281         var%description, var%unit, var%cles(iff), typeecrit)
     281        CALL wxios_add_field_to_file(var%name, 2, cosp_nidfiles(iff), cosp_outfilenames(iff), &
     282        var%description, var%unit, 1, typeecrit)
    282283#endif
    283284       IF ( var%cles(iff) ) THEN
     
    294295    use iophy
    295296    USE mod_phys_lmdz_para
     297
     298#ifdef CPP_XIOS
     299  USE wxios
     300#endif
     301
    296302
    297303    IMPLICIT NONE
     
    352358
    353359#ifdef CPP_XIOS
    354         CALL wxios_add_field_to_file(nom, 3, cosp_nidfiles(iff),
    355 cosp_outfilenames(iff), &
    356         var%description, var%unit, var%flag(iff), typeecrit)
     360        CALL wxios_add_field_to_file(nom, 3, cosp_nidfiles(iff), cosp_outfilenames(iff), &
     361        var%description, var%unit, 1, typeecrit)
    357362#endif
    358363       IF ( var%cles(iff) ) THEN
     
    439444
    440445#ifdef CPP_XIOS
    441 ! USE WXIOS
     446 USE WXIOS
    442447#endif
    443448
Note: See TracChangeset for help on using the changeset viewer.