Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add i_water to netcdf output and input #192

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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