Skip to content

Commit

Permalink
EXODIFF: Fix so Size() works for assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Jan 10, 2024
1 parent 6f2f5c5 commit 3a972db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/seacas/applications/exodiff/ED_Version.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright(C) 1999-2023 National Technology & Engineering Solutions
// Copyright(C) 1999-2024 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.
//
// See packages/seacas/LICENSE for details
#pragma once

static const std::string version("3.30");
static const std::string version("3.31");
static const std::string verdate("2024-01-10");
3 changes: 2 additions & 1 deletion packages/seacas/applications/exodiff/assembly.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2023 National Technology & Engineering Solutions
// Copyright(C) 1999-2024 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 All @@ -23,6 +23,7 @@ template <typename INT> class Assembly : public Exo_Entity

ex_entity_type Type() const { return assembly_type; }
const std::vector<ex_entity_id> &Entities() const { return entities; }
size_t Size() const override { return entities.size(); }

private:
int Check_State() const override;
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-2023 National Technology & Engineering Solutions
// Copyright(C) 1999-2024 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 @@ -32,7 +32,7 @@ class Exo_Entity
Exo_Entity(const Exo_Entity &) = delete;
const Exo_Entity &operator=(const Exo_Entity &) = delete;

size_t Size() const { return numEntity; }
virtual size_t Size() const { return numEntity; }

size_t Id() const { return id_; }
size_t Index() const { return index_; }
Expand Down

0 comments on commit 3a972db

Please sign in to comment.