Fixed a typo that was causing sundials version 2.3 builds to fail.
The define variable was spelled incorrectly.
This commit is contained in:
parent
b8ee78fc24
commit
acf0c3f7c3
1 changed files with 6 additions and 6 deletions
|
|
@ -238,7 +238,7 @@ namespace Cantera {
|
||||||
|
|
||||||
int flag;
|
int flag;
|
||||||
|
|
||||||
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION23)
|
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION_23)
|
||||||
flag = CVodeSensMalloc(m_cvode_mem, m_np, CV_STAGGERED, m_yS);
|
flag = CVodeSensMalloc(m_cvode_mem, m_np, CV_STAGGERED, m_yS);
|
||||||
if (flag != CV_SUCCESS) {
|
if (flag != CV_SUCCESS) {
|
||||||
throw CVodesErr("Error in CVodeSensMalloc");
|
throw CVodesErr("Error in CVodeSensMalloc");
|
||||||
|
|
@ -291,7 +291,7 @@ namespace Cantera {
|
||||||
if (!m_cvode_mem) throw CVodesErr("CVodeCreate failed.");
|
if (!m_cvode_mem) throw CVodesErr("CVodeCreate failed.");
|
||||||
|
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION23)
|
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION_23)
|
||||||
if (m_itol == CV_SV) {
|
if (m_itol == CV_SV) {
|
||||||
// vector atol
|
// vector atol
|
||||||
flag = CVodeMalloc(m_cvode_mem, cvodes_rhs, m_t0, nv(m_y), m_itol,
|
flag = CVodeMalloc(m_cvode_mem, cvodes_rhs, m_t0, nv(m_y), m_itol,
|
||||||
|
|
@ -370,7 +370,7 @@ namespace Cantera {
|
||||||
m_fdata = new FuncData(&func, func.nparams());
|
m_fdata = new FuncData(&func, func.nparams());
|
||||||
|
|
||||||
//m_data = (void*)&func;
|
//m_data = (void*)&func;
|
||||||
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION23)
|
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION_23)
|
||||||
flag = CVodeSetFdata(m_cvode_mem, (void*)m_fdata);
|
flag = CVodeSetFdata(m_cvode_mem, (void*)m_fdata);
|
||||||
if (flag != CV_SUCCESS) {
|
if (flag != CV_SUCCESS) {
|
||||||
throw CVodesErr("CVodeSetFdata failed.");
|
throw CVodesErr("CVodeSetFdata failed.");
|
||||||
|
|
@ -410,7 +410,7 @@ namespace Cantera {
|
||||||
|
|
||||||
int result, flag;
|
int result, flag;
|
||||||
|
|
||||||
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION23)
|
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION_23)
|
||||||
if (m_itol == CV_SV) {
|
if (m_itol == CV_SV) {
|
||||||
result = CVodeReInit(m_cvode_mem, cvodes_rhs, m_t0, nv(m_y),
|
result = CVodeReInit(m_cvode_mem, cvodes_rhs, m_t0, nv(m_y),
|
||||||
m_itol, m_reltol,
|
m_itol, m_reltol,
|
||||||
|
|
@ -465,15 +465,15 @@ namespace Cantera {
|
||||||
{
|
{
|
||||||
double t;
|
double t;
|
||||||
int flag;
|
int flag;
|
||||||
double tretn;
|
|
||||||
flag = CVode(m_cvode_mem, tout, nv(m_y), &t, CV_NORMAL);
|
flag = CVode(m_cvode_mem, tout, nv(m_y), &t, CV_NORMAL);
|
||||||
if (flag != CV_SUCCESS)
|
if (flag != CV_SUCCESS)
|
||||||
throw CVodesErr(" CVodes error encountered.");
|
throw CVodesErr(" CVodes error encountered.");
|
||||||
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION23)
|
#if defined(SUNDIALS_VERSION_22) || defined(SUNDIALS_VERSION_23)
|
||||||
if (m_np > 0) {
|
if (m_np > 0) {
|
||||||
CVodeGetSens(m_cvode_mem, tout, m_yS);
|
CVodeGetSens(m_cvode_mem, tout, m_yS);
|
||||||
}
|
}
|
||||||
#elif defined(SUNDIALS_VERSION_24)
|
#elif defined(SUNDIALS_VERSION_24)
|
||||||
|
double tretn;
|
||||||
if (m_np > 0) {
|
if (m_np > 0) {
|
||||||
CVodeGetSens(m_cvode_mem, &tretn, m_yS);
|
CVodeGetSens(m_cvode_mem, &tretn, m_yS);
|
||||||
if (fabs(tretn - tout) > 1.0E-5) {
|
if (fabs(tretn - tout) > 1.0E-5) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue