From e2ce92882c5f21ac206e180cf38812d976025717 Mon Sep 17 00:00:00 2001 From: David Parkhurst Date: Thu, 8 Apr 2021 08:09:17 -0600 Subject: [PATCH] Tony agreed with change for all_cells, new test case --- readtr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readtr.cpp b/readtr.cpp index fec852fb..af09ff6d 100644 --- a/readtr.cpp +++ b/readtr.cpp @@ -765,8 +765,9 @@ read_transport(void) * Allocate space for cell_data */ int all_cells_now = max_cells * (1 + stag_data.count_stag) + 2; - cell_data.resize(all_cells_now); // initialized by global_structures.h - // But first two previously allocated + cell_data.resize(all_cells_now); // new classes initialized by global_structures.h + // But first two previously allocated for Change_Surf, so may + // need to reinitialize if (all_cells_now > all_cells) { for (int i = all_cells; i < all_cells_now; i++)