Skip to content

Commit

Permalink
EXODIFF: Remove unused element order code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Sep 24, 2024
1 parent 98e241e commit fd435e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
1 change: 0 additions & 1 deletion packages/seacas/applications/exodiff/exoII_read.C
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ template <typename INT> ExoII_Read<INT>::~ExoII_Read()
delete[] global_vals2;
delete[] node_map;
delete[] elmt_map;
delete[] elmt_order;
}
catch (...) {
}
Expand Down
21 changes: 4 additions & 17 deletions packages/seacas/applications/exodiff/exoII_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ template <typename INT> 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:

Expand Down Expand Up @@ -224,9 +223,8 @@ template <typename INT> 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:

Expand Down Expand Up @@ -276,14 +274,3 @@ template <typename INT> inline INT ExoII_Read<INT>::Element_Map(size_t elmt_num)
}
return 0;
}

template <typename INT> inline INT ExoII_Read<INT>::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;
}

0 comments on commit fd435e6

Please sign in to comment.