Skip to content

Commit

Permalink
force sundials to use vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Sep 28, 2023
1 parent 2221d26 commit 3e9be58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pest = ">=2.1.3"
pest_derive = ">=2.1.0"
itertools = ">=0.10.3"
inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", features = ["llvm14-0"] }
sundials-sys = { version = ">=0.2.3", features = ["idas"] }
sundials-sys = { version = ">=0.3", features = ["idas", "build_libraries"] }
ouroboros = ">=0.17"
clap = { version = "4.3.23", features = ["derive"] }

Expand Down
9 changes: 8 additions & 1 deletion src/codegen/sundials.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
use ndarray::{Array1, Array2, ShapeBuilder};
use sundials_sys::{realtype, N_Vector, IDAGetNonlinSolvStats, IDA_SUCCESS, IDA_ROOT_RETURN, IDA_YA_YDP_INIT, IDA_NORMAL, IDASolve, IDAGetIntegratorStats, IDASetStopTime, IDACreate, N_VNew_Serial, N_VGetArrayPointer, N_VConst, IDAInit, IDACalcIC, IDASVtolerances, IDASetUserData, SUNLinSolInitialize, IDASetId, SUNMatrix, SUNLinearSolver, SUNDenseMatrix, PREC_NONE, PREC_LEFT, SUNLinSol_Dense, SUNLinSol_SPBCGS, SUNLinSol_SPFGMR, SUNLinSol_SPGMR, SUNLinSol_SPTFQMR, IDASetLinearSolver, SUNLinSolFree, SUNMatDestroy, N_VDestroy, IDAFree, IDAReInit, IDAGetConsistentIC, IDAGetReturnFlagName};
use sundials_sys::{
realtype, N_Vector, IDAGetNonlinSolvStats, IDA_SUCCESS, IDA_ROOT_RETURN, IDA_YA_YDP_INIT, IDA_NORMAL,
IDASolve, IDAGetIntegratorStats, IDASetStopTime, IDACreate, N_VNew_Serial, N_VGetArrayPointer, N_VConst,
IDAInit, IDACalcIC, IDASVtolerances, IDASetUserData, SUNLinSolInitialize, IDASetId, SUNMatrix, SUNLinearSolver,
SUNDenseMatrix, PREC_NONE, PREC_LEFT, SUNLinSol_Dense, SUNLinSol_SPBCGS, SUNLinSol_SPFGMR, SUNLinSol_SPGMR,
SUNLinSol_SPTFQMR, IDASetLinearSolver, SUNLinSolFree, SUNMatDestroy, N_VDestroy, IDAFree, IDAReInit,
IDAGetConsistentIC, IDAGetReturnFlagName,
};
use std::{ffi::{c_void, CStr, c_int}, io::{self, Write}, iter::zip, ptr::null_mut, slice};
use anyhow::{anyhow, Result};

Expand Down

0 comments on commit 3e9be58

Please sign in to comment.