From d939b3a7ef3866ce3c888ef5bfe80144b94fc6c9 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Fri, 13 Sep 2024 14:09:21 -0600 Subject: [PATCH] EXODIFF: Remove unused element order code --- .../seacas/applications/exodiff/exoII_read.C | 1 - .../seacas/applications/exodiff/exoII_read.h | 21 ++++--------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/packages/seacas/applications/exodiff/exoII_read.C b/packages/seacas/applications/exodiff/exoII_read.C index 4e57ed0b35..86acc3a5bc 100644 --- a/packages/seacas/applications/exodiff/exoII_read.C +++ b/packages/seacas/applications/exodiff/exoII_read.C @@ -68,7 +68,6 @@ template ExoII_Read::~ExoII_Read() delete[] global_vals2; delete[] node_map; delete[] elmt_map; - delete[] elmt_order; } catch (...) { } diff --git a/packages/seacas/applications/exodiff/exoII_read.h b/packages/seacas/applications/exodiff/exoII_read.h index 4e0560acd4..3f60917309 100644 --- a/packages/seacas/applications/exodiff/exoII_read.h +++ b/packages/seacas/applications/exodiff/exoII_read.h @@ -114,9 +114,8 @@ template class ExoII_Read std::string Load_Element_Map(); std::string Free_Element_Map(); const INT *Get_Element_Map() { return elmt_map; } - inline INT Node_Map(size_t node_num) const; // numbers are global, 1-offset - inline INT Element_Map(size_t elmt_num) const; // numbers are global, 1-offset - inline INT Element_Order(size_t elmt_num) const; // numbers are global, 1-offset + inline INT Node_Map(size_t node_num) const; // numbers are global, 1-offset + inline INT Element_Map(size_t elmt_num) const; // numbers are global, 1-offset // Nodal data: @@ -224,9 +223,8 @@ template class ExoII_Read double *nodes{nullptr}; // Matrix; dimension by num_nodes (row major form). // I.e., all x's then all y's, etc. - INT *node_map{nullptr}; // Array; num_nodes long when filled. - INT *elmt_map{nullptr}; // Array; num_elmts long when filled. - INT *elmt_order{nullptr}; // Array; num_elmts long when filled. + INT *node_map{nullptr}; // Array; num_nodes long when filled. + INT *elmt_map{nullptr}; // Array; num_elmts long when filled. // RESULTS info: @@ -276,14 +274,3 @@ template inline INT ExoII_Read::Element_Map(size_t elmt_num) } return 0; } - -template inline INT ExoII_Read::Element_Order(size_t elmt_num) const -{ - SMART_ASSERT(Check_State()); - SMART_ASSERT(elmt_num <= num_elmts); - - if (elmt_order) { - return elmt_order[elmt_num - 1]; - } - return 0; -}