solaris port:
std:: applied to copy()
This commit is contained in:
parent
7c3d9c8320
commit
46d984cf63
2 changed files with 51 additions and 53 deletions
|
|
@ -171,8 +171,8 @@ namespace Cantera {
|
||||||
throw CanteraError("Domain1D::setBounds",
|
throw CanteraError("Domain1D::setBounds",
|
||||||
"wrong array size for solution bounds. "
|
"wrong array size for solution bounds. "
|
||||||
"Size should be at least "+int2str(m_nv));
|
"Size should be at least "+int2str(m_nv));
|
||||||
copy(upper, upper + m_nv, m_max.begin());
|
std::copy(upper, upper + m_nv, m_max.begin());
|
||||||
copy(lower, lower + m_nv, m_min.begin());
|
std::copy(lower, lower + m_nv, m_min.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
void setBounds(int n, doublereal lower, doublereal upper) {
|
void setBounds(int n, doublereal lower, doublereal upper) {
|
||||||
|
|
@ -217,7 +217,7 @@ namespace Cantera {
|
||||||
* x0.
|
* x0.
|
||||||
*/
|
*/
|
||||||
void initTimeInteg(doublereal dt, const doublereal* x0) {
|
void initTimeInteg(doublereal dt, const doublereal* x0) {
|
||||||
copy(x0 + loc(), x0 + loc() + size(), m_slast.begin());
|
std::copy(x0 + loc(), x0 + loc() + size(), m_slast.begin());
|
||||||
m_rdt = 1.0/dt;
|
m_rdt = 1.0/dt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -478,5 +478,3 @@ namespace Cantera {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ namespace Cantera {
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void _finalize(const doublereal* x) {
|
virtual void _finalize(const doublereal* x) {
|
||||||
copy(x+1,x+1+m_nsp,m_fixed_cov.begin());
|
std::copy(x+1,x+1+m_nsp,m_fixed_cov.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void showSolution(const doublereal* x) {
|
virtual void showSolution(const doublereal* x) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue