Skip to content

Commit

Permalink
add i_water to netcdf output and input (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcurtis2 authored Nov 1, 2023
1 parent 9607437 commit f871c30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aero_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ subroutine aero_data_output_netcdf(aero_data, ncid)
call pmc_nc_write_real_1d(ncid, aero_data%kappa, &
"aero_kappa", (/ dimid_aero_species /), unit="1", &
long_name="hygroscopicity parameters (kappas) of aerosol species")
call pmc_nc_write_integer(ncid, aero_data%i_water, &
"aero_i_water", long_name="Index of aerosol water or " &
// "0 if water does not exist.")
call fractal_output_netcdf(aero_data%fractal, ncid)

end subroutine aero_data_output_netcdf
Expand Down Expand Up @@ -840,7 +843,7 @@ subroutine aero_data_input_netcdf(aero_data, ncid)
end do
call assert(377166446, aero_source_names == "")

call aero_data_set_water_index(aero_data)
call pmc_nc_read_integer(ncid, aero_data%i_water, "aero_i_water")

call fractal_input_netcdf(aero_data%fractal, ncid)

Expand Down

0 comments on commit f871c30

Please sign in to comment.