diff --git a/src/cell.cpp b/src/cell.cpp index f19930351b..d26fa84147 100644 --- a/src/cell.cpp +++ b/src/cell.cpp @@ -250,7 +250,6 @@ Cell::Cell(pugi::xml_node cell_node) material.push_back(std::stoi(mat)); } } - material.shrink_to_fit(); } else { std::stringstream err_msg; err_msg << "An empty material element was specified for cell " << id; @@ -458,7 +457,6 @@ read_cells(pugi::xml_node* node) for (pugi::xml_node cell_node: node->children("cell")) { global_cells.push_back(new Cell(cell_node)); } - global_cells.shrink_to_fit(); // Populate the Universe vector and map. for (int i = 0; i < global_cells.size(); i++) { diff --git a/src/surface.cpp b/src/surface.cpp index 77d19673b3..421c43d485 100644 --- a/src/surface.cpp +++ b/src/surface.cpp @@ -1083,7 +1083,6 @@ read_surfaces(pugi::xml_node* node) } } } - global_surfaces.shrink_to_fit(); // Fill the surface map. for (int i_surf = 0; i_surf < n_surfaces; i_surf++) {