| subroutine, public gfs_rrtmgp_pre::gfs_rrtmgp_pre_run  | 
          ( | 
          integer, intent(in) |           me,  | 
        
        
           | 
           | 
          integer, intent(in) |           ncol,  | 
        
        
           | 
           | 
          integer, intent(in) |           nlev,  | 
        
        
           | 
           | 
          integer, intent(in) |           i_o3,  | 
        
        
           | 
           | 
          logical, intent(in) |           doswrad,  | 
        
        
           | 
           | 
          logical, intent(in) |           dolwrad,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           fhswr,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           fhlwr,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           xlat,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           xlon,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(in) |           prsl,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(in) |           tgrs,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(in) |           prslk,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(in) |           prsi,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:,:), intent(in) |           qgrs,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           tsfc,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           coslat,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           sinlat,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_g,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_rd,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_eps,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_epsm1,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_fvirt,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_epsqs,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           solhr,  | 
        
        
           | 
           | 
          real(kind_phys), intent(inout) |           raddt,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           p_lay,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           t_lay,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           p_lev,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           t_lev,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_o2,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_h2o,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_o3,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_ch4,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_n2o,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           vmr_co2,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(inout) |           tsfg,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(inout) |           tsfa,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           qs_lay,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           q_lay,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           tv_lay,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           relhum,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           deltaz,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           deltazc,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           deltap,  | 
        
        
           | 
           | 
          character(len=*), dimension(:), intent(in), optional |           active_gases_array,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(inout) |           tsfc_radtime,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(inout) |           coszen,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(inout) |           coszdg,  | 
        
        
           | 
           | 
          logical, intent(inout) |           top_at_1,  | 
        
        
           | 
           | 
          integer, intent(inout) |           isfc,  | 
        
        
           | 
           | 
          integer, intent(inout) |           itoa,  | 
        
        
           | 
           | 
          integer, intent(out) |           nday,  | 
        
        
           | 
           | 
          integer, dimension(:), intent(inout) |           idxday,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:), intent(in) |           semis,  | 
        
        
           | 
           | 
          real(kind_phys), dimension(:,:), intent(inout), optional |           sfc_emiss_byband,  | 
        
        
           | 
           | 
          integer, intent(in) |           ico2,  | 
        
        
           | 
           | 
          type(ty_ozphys), intent(in) |           ozphys,  | 
        
        
           | 
           | 
          real(kind_phys), intent(in) |           con_pi,  | 
        
        
           | 
           | 
          character(len=*), intent(out) |           errmsg,  | 
        
        
           | 
           | 
          integer, intent(out) |           errflg ) |