Skip to content

Commit

Permalink
IOSS: Add backward compatible interfaces back
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed May 30, 2024
1 parent 3df70aa commit dfd5177
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
8 changes: 8 additions & 0 deletions packages/seacas/libraries/ioss/src/Ioss_VariableType.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Ioss::QuadraturePoint> &quad_points);
Expand Down

0 comments on commit dfd5177

Please sign in to comment.