Changeset 3717 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Apr 9, 2025, 11:54:39 AM (3 months ago)
Author:
emillour
Message:

Generic PCM:
Fixing some outputs: when since "write_output" uses the shape of its argument
(scalar, 1D array for surface, 2D for volume) to infer which type of field to
output, one must provide it the sough array (and not just its first element).
MH+SB+JBM+EM

Location:
trunk/LMDZ.GENERIC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LMDZ.GENERIC/changelog.txt

    r3716 r3717  
    20552055Follow-up of reindexing of columns for restartfi files: In 1D one should also
    20562056initialize the "ind_cell_glo" array
     2057
     2058== 09/04/2025 == MH+SB+JBM+EM
     2059Fixing some outputs: when since "write_output" uses the shape of its argument
     2060(scalar, 1D array for surface, 2D for volume) to infer which type of field to
     2061output, one must provide it the sough array (and not just its first element).
  • TabularUnified trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r3655 r3717  
    26682668      ! Output aerosols.
    26692669      if (igcm_co2_ice.ne.0.and.iaero_co2.ne.0) &
    2670          call write_output('CO2ice_reff','CO2ice_reff','m',reffrad(1,1,iaero_co2))
     2670         call write_output('CO2ice_reff','CO2ice_reff','m',reffrad(:,:,iaero_co2))
    26712671      if (igcm_h2o_ice.ne.0.and.iaero_h2o.ne.0) &
    26722672         call write_output('H2Oice_reff','H2Oice_reff','m',reffrad(:,:,iaero_h2o))
    26732673      if (igcm_co2_ice.ne.0.and.iaero_co2.ne.0) &
    2674          call write_output('CO2ice_reffcol','CO2ice_reffcol','um kg m^-2',reffcol(1,iaero_co2))
     2674         call write_output('CO2ice_reffcol','CO2ice_reffcol','um kg m^-2',reffcol(:,iaero_co2))
    26752675      if (igcm_h2o_ice.ne.0.and.iaero_h2o.ne.0) &
    2676          call write_output('H2Oice_reffcol','H2Oice_reffcol','um kg m^-2',reffcol(1,iaero_h2o))
     2676         call write_output('H2Oice_reffcol','H2Oice_reffcol','um kg m^-2',reffcol(:,iaero_h2o))
    26772677
    26782678      ! Output tracers.
     
    26822682            call write_output(noms(iq),noms(iq),'kg/kg',zq(:,:,iq))
    26832683            call write_output(trim(noms(iq))//'_surf',trim(noms(iq))//'_surf',  &
    2684                             'kg m^-2',qsurf_hist(1,iq) )
     2684                            'kg m^-2',qsurf_hist(:,iq) )
    26852685            call write_output(trim(noms(iq))//'_col',trim(noms(iq))//'_col',    &
    26862686                           'kg m^-2',qcol(:,iq) )
Note: See TracChangeset for help on using the changeset viewer.