Ignore:
Timestamp:
Feb 21, 2023, 3:26:41 PM (20 months ago)
Author:
idelkadi
Message:

Update of the ECRAD radiative code version implemented in the LMDZ model.
Upgrade to the :
https://github.com/ecmwf/ecrad/trunk
Version svn : 749
UUID du dépôt : 44b0ca93-0ed8-356e-d663-ce57b7db7bff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_save.F90

    r3908 r4444  
    3333  ! thermodynamics object
    3434  subroutine save_fluxes(file_name, config, thermodynamics, flux, &
    35        &                 iverbose, is_hdf5_file, experiment_name)
     35       &                 iverbose, is_hdf5_file, experiment_name, &
     36       &                 is_double_precision)
    3637
    3738    use yomhook,                  only : lhook, dr_hook
     
    5051    integer,          optional, intent(in) :: iverbose
    5152    logical,          optional, intent(in) :: is_hdf5_file
     53    logical,          optional, intent(in) :: is_double_precision
    5254    character(len=*), optional, intent(in) :: experiment_name
    5355
     
    9698    ! output file column varies most slowly so need to transpose
    9799    call out_file%transpose_matrices(.true.)
     100
     101    ! Set default precision for file, if specified
     102    if (present(is_double_precision)) then
     103      call out_file%double_precision(is_double_precision)
     104    end if
    98105
    99106    ! Spectral fluxes in memory are dimensioned (nband,ncol,nlev), but
     
    885892           &   dim2_name="column", dim1_name="level", &
    886893           &   units_str="m", long_name="Ice effective radius")
    887       if (allocated(cloud%re_ice)) then
     894      if (associated(cloud%re_ice)) then
    888895        call out_file%define_variable("re_ice", &
    889896             &   dim2_name="column", dim1_name="level", &
     
    966973      call out_file%put("q_ice", cloud%q_ice)
    967974      call out_file%put("re_liquid", cloud%re_liq)
    968       if (allocated(cloud%re_ice)) then
     975      if (associated(cloud%re_ice)) then
    969976        call out_file%put("re_ice", cloud%re_ice)
    970977      end if
Note: See TracChangeset for help on using the changeset viewer.