Changeset 3169


Ignore:
Timestamp:
Jan 3, 2024, 12:41:29 PM (11 months ago)
Author:
emillour
Message:

Mars PCM:
Minor fix for XIOS output of a scalar in write_output_mod.F90.
Also added more helpful error messages in xios_output_mod.F90.
EM

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3166 r3169  
    44264426== 30/12/2023 == EM
    44274427Fix typo in previous commit
     4428
     4429== 03/01/2024 == EM
     4430Minor fix for XIOS output of a scalar in write_output_mod.F90.
     4431Also added more helpful error messages in xios_output_mod.F90.
  • trunk/LMDZ.MARS/libf/phymars/write_output_mod.F90

    r3161 r3169  
    3838#ifdef CPP_XIOS
    3939    ! only send the field to xios if the user asked for it
    40     if (xios_is_active_field(field_name)) call send_xios_field(field_name,(/field/))
     40    if (xios_is_active_field(field_name)) call send_xios_field(field_name,field)
    4141#endif
    4242
  • trunk/LMDZ.MARS/libf/phymars/xios_output_mod.F90

    r3055 r3169  
    243243    REAL,DIMENSION(klon_mpi) :: buffer_omp
    244244    REAL :: Field2d(nbp_lon,jj_nb)
     245   
     246    CHARACTER(len=128) :: msg
    245247
    246248    IF (prt_level >= 10) WRITE(lunout,*)'Begin histrwrite2d_xios ',trim(field_name)
    247     IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)
    248    
     249    IF (SIZE(field)/=klon) THEN
     250      WRITE(msg,*) "Pb with field "//trim(field_name)//&
     251                   " : Field first DIMENSION not equal to klon"
     252      CALL abort_physic('iophy::histwrite2d_xios',trim(msg),1)
     253    ENDIF
    249254    CALL Gather_omp(field,buffer_omp)   
    250255!$OMP MASTER
     
    276281    INTEGER :: ip, n, nlev
    277282
     283    CHARACTER(len=128) :: msg
     284
    278285  IF (prt_level >= 10) write(lunout,*)'Begin histrwrite3d_xios ',trim(field_name)
    279286
    280     !Et on.... écrit
    281     IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)
     287    !And we write...
     288    IF (SIZE(field,1)/=klon) THEN
     289      WRITE(msg,*) "Pb with field "//trim(field_name)//&
     290                   " : Field first DIMENSION not equal to klon"
     291      CALL abort_physic('iophy::histwrite3d',trim(msg),1)
     292    ENDIF
     293   
    282294    nlev=SIZE(field,2)
    283295
Note: See TracChangeset for help on using the changeset viewer.