Refactor read_input_xml so that all non-trivial functionality is containined in public functions.

This commit is contained in:
helen-brooks 2021-01-29 14:33:43 +00:00
parent ac808730a6
commit adf7077a01
5 changed files with 32 additions and 28 deletions

View file

@ -242,8 +242,7 @@ get_temperatures(std::vector<std::vector<double>>& nuc_temps,
//==============================================================================
void finalize_geometry(std::vector<std::vector<double>>& nuc_temps,
std::vector<std::vector<double>>& thermal_temps)
void finalize_geometry()
{
// Perform some final operations to set up the geometry
adjust_indices();
@ -253,9 +252,6 @@ void finalize_geometry(std::vector<std::vector<double>>& nuc_temps,
// Assign temperatures to cells that don't have temperatures already assigned
assign_temperatures();
// Determine desired temperatures for each nuclide and S(a,b) table
get_temperatures(nuc_temps, thermal_temps);
// Determine number of nested coordinate levels in the geometry
model::n_coord_levels = maximum_levels(model::root_universe);
}