Ignore:
Timestamp:
Mar 31, 2023, 8:42:57 PM (20 months ago)
Author:
lguez
Message:

Merge LMDZ_ECRad branch back into trunk!

Location:
LMDZ6/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk

  • LMDZ6/trunk/libf/phylmd/ecrad/radiation_save.F90

    r3908 r4489  
    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.