From 5b94a19da0054f5ee6d252645696fe27abc2b052 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Mon, 9 Sep 2024 11:50:05 +0100 Subject: [PATCH] Update input.cc --- input.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input.cc b/input.cc index 906d942bb..4c40aa24b 100644 --- a/input.cc +++ b/input.cc @@ -95,12 +95,12 @@ auto get_phixsupperlevel_tmp(const std::vector &temp_allphixstar void read_phixs_data_table(std::fstream &phixsfile, const int nphixspoints_inputtable, const int element, const int lowerion, const int lowerlevel, const int upperion, int upperlevel_in, - std::vector &tmpallphixs, std::vector &temp_allphixstargets, - size_t *mem_usage_phixs, const int phixs_file_version) { + std::vector &tmpallphixs, auto &temp_allphixstargets, size_t *mem_usage_phixs, + const int phixs_file_version) { std::string phixsline; assert_always(globals::elements[element].ions[lowerion].levels[lowerlevel].phixstargetstart == -1); globals::elements[element].ions[lowerion].levels[lowerlevel].phixstargetstart = - static_cast(std::ssize(temp_allphixstargets)); + static_cast(temp_allphixstargets.size()); if (upperlevel_in >= 0) { // file gives photoionisation to a single target state only int upperlevel = upperlevel_in - groundstate_index_in; assert_always(upperlevel >= 0);