Skip to content

Commit

Permalink
[oneD] Deprecate Domain1D::domainType
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Mar 18, 2023
1 parent ee28caa commit 9073fae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/cantera/oneD/Domain1D.h
Expand Up @@ -53,12 +53,12 @@ class Domain1D
Domain1D& operator=(const Domain1D&) = delete;

//! Domain type flag.
int domainType() {
return m_type;
}
//! @deprecated To be changed after Cantera 3.0; for new behavior, see type.
int domainType();

//! String indicating the domain implemented.
//! @since New in Cantera 3.0.
//! @todo Transition back to domainType after Cantera 3.0
virtual string type() const {
return "domain";
}
Expand Down
7 changes: 7 additions & 0 deletions src/oneD/Domain1D.cpp
Expand Up @@ -23,6 +23,13 @@ Domain1D::~Domain1D()
{
}

int Domain1D::domainType()
{
warn_deprecated("Domain1D::domainType",
"To be changed after Cantera 3.0; for new behavior, see 'type'.");
return m_type;
}

void Domain1D::resize(size_t nv, size_t np)
{
// if the number of components is being changed, then a
Expand Down

0 comments on commit 9073fae

Please sign in to comment.