[Numerics] Deprecate GeneralMatrix::nRowsAndStruct
This commit is contained in:
parent
2d623e893e
commit
454f156764
6 changed files with 15 additions and 0 deletions
8
include/cantera/clib/ctmatlab.h
Normal file
8
include/cantera/clib/ctmatlab.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "ct.h"
|
||||
#include "ctfunc.h"
|
||||
#include "ctmultiphase.h"
|
||||
#include "ctonedim.h"
|
||||
#include "ctreactor.h"
|
||||
#include "ctrpath.h"
|
||||
#include "ctsurf.h"
|
||||
#include "ctxml.h"
|
||||
|
|
@ -131,6 +131,7 @@ public:
|
|||
* istruct[0] = kl
|
||||
* istruct[1] = ku
|
||||
* @returns the number of rows and columns in the matrix.
|
||||
* @deprecated Unused. To be removed after Cantera 2.3.
|
||||
*/
|
||||
virtual size_t nRowsAndStruct(size_t* const iStruct = 0) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ public:
|
|||
* @param iStruct OUTPUT Pointer to a vector of ints that describe the
|
||||
* structure of the matrix.
|
||||
* @returns the number of rows and columns in the matrix.
|
||||
* @deprecated Unused. To be removed after Cantera 2.3.
|
||||
*/
|
||||
virtual size_t nRowsAndStruct(size_t* const iStruct = 0) const = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ public:
|
|||
* structure of the matrix. not used
|
||||
*
|
||||
* @returns the number of rows and columns in the matrix.
|
||||
* @deprecated Unused. To be removed after Cantera 2.3.
|
||||
*/
|
||||
size_t nRowsAndStruct(size_t* const iStruct = 0) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ size_t BandMatrix::nRows() const
|
|||
|
||||
size_t BandMatrix::nRowsAndStruct(size_t* const iStruct) const
|
||||
{
|
||||
warn_deprecated("BandMatrix::nRowsAndStruct",
|
||||
"To be removed after Cantera 2.3.");
|
||||
if (iStruct) {
|
||||
iStruct[0] = m_kl;
|
||||
iStruct[1] = m_ku;
|
||||
|
|
|
|||
|
|
@ -320,6 +320,8 @@ size_t SquareMatrix::nRows() const
|
|||
|
||||
size_t SquareMatrix::nRowsAndStruct(size_t* const iStruct) const
|
||||
{
|
||||
warn_deprecated("SquareMatrix::nRowsAndStruct",
|
||||
"To be removed after Cantera 2.3.");
|
||||
return m_nrows;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue