@@ -466,53 +466,53 @@ subroutine sat_hist_write( tape , nflds, nfils)
466466 call get_indices( obs_lats, obs_lons, ncols, nocols, has_dyn_flds, col_ndxs, chk_ndxs, &
467467 fdyn_ndxs, ldyn_ndxs, phs_owners, dyn_owners, mlats, mlons, phs_dists )
468468
469- if ( .not. pio_file_is_open(tape% File ) ) then
469+ if ( .not. pio_file_is_open(tape% Files( 1 ) ) ) then
470470 call endrun(' sat file not open' )
471471 endif
472472
473473
474- ierr = pio_inq_dimid(tape% File ,' ncol' ,coldim )
474+ ierr = pio_inq_dimid(tape% Files( 1 ) ,' ncol' ,coldim )
475475
476- ierr = pio_inq_varid(tape% File , ' lat' , out_latid )
477- ierr = pio_inq_varid(tape% File , ' lon' , out_lonid )
478- ierr = pio_inq_varid(tape% File , ' distance' , out_dstid )
476+ ierr = pio_inq_varid(tape% Files( 1 ) , ' lat' , out_latid )
477+ ierr = pio_inq_varid(tape% Files( 1 ) , ' lon' , out_lonid )
478+ ierr = pio_inq_varid(tape% Files( 1 ) , ' distance' , out_dstid )
479479
480480 call write_record_coord( tape, mlats(:), mlons(:), phs_dists(:), ncols, nfils )
481481
482482 ! dump columns of 2D fields
483483 if (has_phys_srf_flds) then
484- call dump_columns( tape% File , tape% hlist, nflds, nocols, 1 , nfils, &
484+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, 1 , nfils, &
485485 col_ndxs, chk_ndxs, phs_owners, phys_decomp )
486486 endif
487487 if (has_dyn_srf_flds) then
488- call dump_columns( tape% File , tape% hlist, nflds, nocols, 1 , nfils, &
488+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, 1 , nfils, &
489489 fdyn_ndxs, ldyn_ndxs, dyn_owners, dyn_decomp )
490490 endif
491491
492492 ! dump columns of 3D fields defined on mid pres levels
493493 if (has_phys_lev_flds) then
494- call dump_columns( tape% File , tape% hlist, nflds, nocols, pver, nfils, &
494+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, pver, nfils, &
495495 col_ndxs, chk_ndxs, phs_owners, phys_decomp )
496496 endif
497497 if (has_dyn_lev_flds) then
498- call dump_columns( tape% File , tape% hlist, nflds, nocols, pver, nfils, &
498+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, pver, nfils, &
499499 fdyn_ndxs, ldyn_ndxs, dyn_owners, dyn_decomp )
500500 endif
501501
502502 ! dump columns of 3D fields defined on interface pres levels
503503 if (has_phys_ilev_flds) then
504- call dump_columns( tape% File , tape% hlist, nflds, nocols, pverp, nfils, &
504+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, pverp, nfils, &
505505 col_ndxs, chk_ndxs, phs_owners, phys_decomp )
506506 endif
507507 if (has_dyn_ilev_flds) then
508- call dump_columns( tape% File , tape% hlist, nflds, nocols, pverp, nfils, &
508+ call dump_columns( tape% Files( 1 ) , tape% hlist, nflds, nocols, pverp, nfils, &
509509 fdyn_ndxs, ldyn_ndxs, dyn_owners, dyn_decomp )
510510 endif
511511
512512 deallocate ( col_ndxs, chk_ndxs, fdyn_ndxs, ldyn_ndxs, phs_owners, dyn_owners )
513513 deallocate ( mlons, mlats, phs_dists )
514514 deallocate ( obs_lons, obs_lats )
515- call pio_syncfile(tape% File )
515+ call pio_syncfile(tape% Files( 1 ) )
516516
517517 nfils = nfils + nocols
518518
@@ -763,19 +763,19 @@ subroutine write_record_coord( tape, mod_lats, mod_lons, mod_dists, ncols, nfils
763763 allocate ( rtmp(ncols * sathist_nclosest) )
764764
765765 itmp(:) = ncdate
766- ierr = pio_put_var(tape% File , tape% dateid,(/ nfils/ ), (/ ncols * sathist_nclosest/ ),itmp)
766+ ierr = pio_put_var(tape% Files( 1 ) , tape% dateid,(/ nfils/ ), (/ ncols * sathist_nclosest/ ),itmp)
767767 itmp(:) = ncsec
768- ierr = pio_put_var(tape% File , tape% datesecid,(/ nfils/ ),(/ ncols * sathist_nclosest/ ),itmp)
768+ ierr = pio_put_var(tape% Files( 1 ) , tape% datesecid,(/ nfils/ ),(/ ncols * sathist_nclosest/ ),itmp)
769769 rtmp(:) = time
770- ierr = pio_put_var(tape% File , tape% timeid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ),rtmp)
770+ ierr = pio_put_var(tape% Files( 1 ) , tape% timeid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ),rtmp)
771771
772772 deallocate (itmp)
773773 deallocate (rtmp)
774774
775775 ! output model column coordinates
776- ierr = pio_put_var(tape% File , out_latid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_lats)
777- ierr = pio_put_var(tape% File , out_lonid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_lons)
778- ierr = pio_put_var(tape% File , out_dstid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_dists / 1000._r8 )
776+ ierr = pio_put_var(tape% Files( 1 ) , out_latid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_lats)
777+ ierr = pio_put_var(tape% Files( 1 ) , out_lonid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_lons)
778+ ierr = pio_put_var(tape% Files( 1 ) , out_dstid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), mod_dists / 1000._r8 )
779779
780780 ! output instrument location
781781 allocate ( out_lats(ncols * sathist_nclosest) )
@@ -786,40 +786,40 @@ subroutine write_record_coord( tape, mod_lats, mod_lons, mod_dists, ncols, nfils
786786 out_lons(((i-1 )* sathist_nclosest)+ 1 : (i* sathist_nclosest)) = obs_lons(i)
787787 enddo
788788
789- ierr = pio_put_var(tape% File , out_instr_lat_vid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), out_lats)
790- ierr = pio_put_var(tape% File , out_instr_lon_vid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), out_lons)
789+ ierr = pio_put_var(tape% Files( 1 ) , out_instr_lat_vid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), out_lats)
790+ ierr = pio_put_var(tape% Files( 1 ) , out_instr_lon_vid, (/ nfils/ ),(/ ncols * sathist_nclosest/ ), out_lons)
791791
792792 deallocate (out_lats)
793793 deallocate (out_lons)
794794
795795
796- ierr = copy_data( infile, date_vid, tape% File , out_obs_date_vid, in_start_col, nfils, ncols )
797- ierr = copy_data( infile, time_vid, tape% File , out_obs_time_vid, in_start_col, nfils, ncols )
796+ ierr = copy_data( infile, date_vid, tape% Files( 1 ) , out_obs_date_vid, in_start_col, nfils, ncols )
797+ ierr = copy_data( infile, time_vid, tape% Files( 1 ) , out_obs_time_vid, in_start_col, nfils, ncols )
798798
799799 ! output observation identifiers
800800 if (instr_vid> 0 ) then
801- ierr = copy_data( infile, instr_vid, tape% File , out_instrid, in_start_col, nfils, ncols )
801+ ierr = copy_data( infile, instr_vid, tape% Files( 1 ) , out_instrid, in_start_col, nfils, ncols )
802802 endif
803803 if (orbit_vid> 0 ) then
804- ierr = copy_data( infile, orbit_vid, tape% File , out_orbid, in_start_col, nfils, ncols )
804+ ierr = copy_data( infile, orbit_vid, tape% Files( 1 ) , out_orbid, in_start_col, nfils, ncols )
805805 endif
806806 if (prof_vid> 0 ) then
807- ierr = copy_data( infile, prof_vid, tape% File , out_profid, in_start_col, nfils, ncols )
807+ ierr = copy_data( infile, prof_vid, tape% Files( 1 ) , out_profid, in_start_col, nfils, ncols )
808808 endif
809809 if (zenith_vid> 0 ) then
810- ierr = copy_data( infile, zenith_vid, tape% File , out_zenithid, in_start_col, nfils, ncols )
810+ ierr = copy_data( infile, zenith_vid, tape% Files( 1 ) , out_zenithid, in_start_col, nfils, ncols )
811811 endif
812812 if (in_julian_vid> 0 ) then
813- ierr = copy_data( infile, in_julian_vid, tape% File , out_julian_vid, in_start_col, nfils, ncols )
813+ ierr = copy_data( infile, in_julian_vid, tape% Files( 1 ) , out_julian_vid, in_start_col, nfils, ncols )
814814 endif
815815 if (in_occ_type_vid> 0 ) then
816- ierr = copy_data( infile, in_occ_type_vid, tape% File , out_occ_type_vid, in_start_col, nfils, ncols )
816+ ierr = copy_data( infile, in_occ_type_vid, tape% Files( 1 ) , out_occ_type_vid, in_start_col, nfils, ncols )
817817 endif
818818 if (in_localtime_vid> 0 ) then
819- ierr = copy_data( infile, in_localtime_vid, tape% File , out_localtime_vid, in_start_col, nfils, ncols )
819+ ierr = copy_data( infile, in_localtime_vid, tape% Files( 1 ) , out_localtime_vid, in_start_col, nfils, ncols )
820820 endif
821821 if (in_doy_vid> 0 ) then
822- ierr = copy_data( infile, in_doy_vid, tape% File , out_doy_vid, in_start_col, nfils, ncols )
822+ ierr = copy_data( infile, in_doy_vid, tape% Files( 1 ) , out_doy_vid, in_start_col, nfils, ncols )
823823 endif
824824
825825 call t_stopf (' sat_hist::write_record_coord' )
0 commit comments