From dfd51778700320f95e03f8cb006117580ead8b51 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Thu, 30 May 2024 15:46:27 -0600 Subject: [PATCH] IOSS: Add backward compatible interfaces back --- .../libraries/ioss/src/Ioss_CompositeVariableType.h | 7 +++++++ packages/seacas/libraries/ioss/src/Ioss_VariableType.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/packages/seacas/libraries/ioss/src/Ioss_CompositeVariableType.h b/packages/seacas/libraries/ioss/src/Ioss_CompositeVariableType.h index 87803d16e8..904fef550b 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_CompositeVariableType.h +++ b/packages/seacas/libraries/ioss/src/Ioss_CompositeVariableType.h @@ -31,6 +31,13 @@ namespace Ioss { IOSS_NODISCARD const VariableType *get_base_type() const { return baseType; } IOSS_NODISCARD int get_num_copies() const { return copies_; } + // Kept for backward compatibility... + IOSS_NODISCARD __attribute__((__deprecated__)) const VariableType *getBaseType() const + { + return baseType; + } + IOSS_NODISCARD __attribute__((__deprecated__)) int getNumCopies() const { return copies_; } + private: const VariableType *baseType; int copies_; diff --git a/packages/seacas/libraries/ioss/src/Ioss_VariableType.h b/packages/seacas/libraries/ioss/src/Ioss_VariableType.h index 994334b6e1..c34670f23b 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_VariableType.h +++ b/packages/seacas/libraries/ioss/src/Ioss_VariableType.h @@ -94,6 +94,14 @@ namespace Ioss { static bool create_named_suffix_type(const std::string &type_name, const Ioss::NameList &suffices); + + // Backward compatibility... + __attribute__((__deprecated__)) static bool + create_named_suffix_field_type(const std::string &type_name, const Ioss::NameList &suffices) + { + return create_named_suffix_type(type_name, suffices); + } + static bool create_basis_type(const std::string &type_name, const Ioss::Basis &basis); static bool create_quadrature_type(const std::string &type_name, const std::vector &quad_points);