Vendored 'SUNDIALS' Solver Suite for Linking by Other Packages

Bundles the pure-C part of the 'SUNDIALS' suite (CVODE, CVODES, ARKODE, IDA, IDAS and KINSOL with the serial vector and the dense, band and iterative linear solvers) and builds it into a static library. Other packages use it by adding 'sundials' to 'LinkingTo' for the headers and calling sundials::LdFlags() from their 'Makevars' to link the library. No 'Fortran', 'MPI', GPU or external third-party-library modules are included. 'SUNDIALS' is described in Hindmarsh et al. (2005) .


sundials

Vendored SUNDIALS suite, built into a static library for other R packages to link against.

Contains the pure-C part of CVODE, CVODES, ARKODE, IDA, IDAS and KINSOL with the serial vector and the dense, band and iterative (SPGMR/SPFGMR/SPBCGS/SPTFQMR/PCG) linear solvers. No Fortran, MPI, GPU or external-library modules. Double precision, 64-bit indices (sunindextype = int64_t).

Use from another package

DESCRIPTION:

LinkingTo: sundials

src/Makevars and src/Makevars.win:

PKG_LIBS = $(shell "$(R_HOME)/bin/Rscript" -e "sundials::LdFlags()")

LinkingTo puts the SUNDIALS headers on the compile path; LdFlags() adds -L<libdir> -lsundials. Then include and call SUNDIALS as usual:

#include <cvode/cvode.h>
#include <nvector/nvector_serial.h>
#include <sunlinsol/sunlinsol_dense.h>

Updating the vendored SUNDIALS

tools/vendor.sh 7.9.0

Downloads the release, regenerates the config headers with cmake, refreshes src/sundials/**, inst/include/** and src/Makevars (from tools/Makevars.in). See development/notes.md.

Licence

The vendored SUNDIALS source is BSD 3-Clause, Copyright Lawrence Livermore National Security, Southern Methodist University, University of Maryland Baltimore County and the SUNDIALS contributors. See LICENSE, inst/COPYRIGHTS, inst/AUTHORS. The package's own glue code is offered under the same terms.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("sundials")

7.9.0-1 by Konrad Krämer, 7 hours ago


https://github.com/Konrad1991/sundials, https://computing.llnl.gov/projects/sundials


Report a bug at https://github.com/Konrad1991/sundials/issues


Browse source code at https://github.com/cran/sundials


Authors: Konrad Krämer [aut, cre] , Lawrence Livermore National Security [cph] (SUNDIALS source code) , Southern Methodist University [cph] (SUNDIALS source code) , University of Maryland Baltimore County [cph] (SUNDIALS source code) , SUNDIALS contributors [aut, cph] (see inst/AUTHORS)


Documentation:   PDF Manual  


BSD_3_clause + file LICENSE license


Suggests tinytest, Rcpp, deSolve

System requirements: GNU make


See at CRAN