Skip to content

Commit

Permalink
[oneD] Deprecate Sim1D::solution/getSolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Sep 4, 2022
1 parent 70d31f7 commit 2957c95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/cantera/oneD/Sim1D.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ class Sim1D : public OneDim

//! @}

// @deprecated To be removed after Cantera 3.0 (unused)
const doublereal* solution() {
warn_deprecated("Sim1D::solution",
"This method is unused and will be removed after Cantera 3.0.");
return m_x.data();
}

Expand Down Expand Up @@ -220,11 +223,17 @@ class Sim1D : public OneDim

void getInitialSoln();

// @deprecated To be removed after Cantera 3.0 (unused)
void setSolution(const doublereal* soln) {
warn_deprecated("Sim1D::setSolution",
"This method is unused and will be removed after Cantera 3.0.");
std::copy(soln, soln + m_x.size(), m_x.data());
}

// @deprecated To be removed after Cantera 3.0 (unused)
const doublereal* solution() const {
warn_deprecated("Sim1D::solution",
"This method is unused and will be removed after Cantera 3.0.");
return m_x.data();
}

Expand Down

0 comments on commit 2957c95

Please sign in to comment.