Skip to content

Commit

Permalink
EXODIFF: Fix override functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Sep 14, 2023
1 parent fb42509 commit e92cea4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/seacas/applications/exodiff/edge_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ template <typename INT> class Edge_Block : public Exo_Entity

size_t Edge_Index(size_t position) const;

int Check_State() const;
int Check_State() const override;

private:
void entity_load_params() override;
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/exodiff/exo_block.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2022 National Technology & Engineering Solutions
// Copyright(C) 1999-2023 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -34,7 +34,7 @@ template <typename INT> class Exo_Block : public Exo_Entity
const INT *Connectivity(size_t elmt_index) const; // 1-offset connectivity

// Misc:
int Check_State() const;
int Check_State() const override;

int64_t offset() const { return offset_; }
void offset(int64_t off) { offset_ = off; }
Expand Down
8 changes: 0 additions & 8 deletions packages/seacas/applications/exodiff/exo_entity.C
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ Exo_Entity::~Exo_Entity()
}
}

int Exo_Entity::Check_State() const
{
SMART_ASSERT(id_ >= EX_INVALID_ID);

SMART_ASSERT(!(id_ == EX_INVALID_ID && numEntity > 0));
return 1;
}

void Exo_Entity::initialize(int file_id, size_t id)
{
fileId = file_id;
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/exodiff/exo_entity.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2022 National Technology & Engineering Solutions
// Copyright(C) 1999-2023 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -37,7 +37,7 @@ class Exo_Entity
size_t Id() const { return id_; }
size_t Index() const { return index_; }

int Check_State() const;
virtual int Check_State() const = 0;

void initialize(int file_id, size_t id);

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exodiff/face_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ template <typename INT> class Face_Block : public Exo_Entity

size_t Face_Index(size_t position) const;

int Check_State() const;
int Check_State() const override;

private:
void entity_load_params() override;
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/exodiff/node_set.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions
// Copyright(C) 1999-2020, 2022, 2023 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -29,7 +29,7 @@ template <typename INT> class Node_Set : public Exo_Entity
const double *Distribution_Factors() const;
void Free_Distribution_Factors() const;

int Check_State() const;
int Check_State() const override;

private:
void entity_load_params() override;
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exodiff/side_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ template <typename INT> class Side_Set : public Exo_Entity
const double *Distribution_Factors() const;
void Free_Distribution_Factors() const;

int Check_State() const;
int Check_State() const override;
size_t Distribution_Factor_Count() const { return num_dist_factors; }

private:
Expand Down

0 comments on commit e92cea4

Please sign in to comment.