Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
17c89c2
pick changes to sundials C/C++ interface or other core sundials
balos1 Sep 19, 2025
683cb92
document API changes
balos1 Sep 19, 2025
431905b
pick gitignore
balos1 Sep 19, 2025
5213a1e
doc update
balos1 Sep 19, 2025
1c40de4
move SetOwnUserData functions to impl
balos1 Sep 20, 2025
0352562
doc some types
balos1 Sep 20, 2025
ae7adee
use macro defines for constants instead of const int to enable intege…
balos1 Sep 22, 2025
915394e
use SUN_DATAIOMODE_
balos1 Sep 22, 2025
112b638
use SUN_MEMTYPE
balos1 Sep 22, 2025
7e6669b
newline
balos1 Sep 22, 2025
56711a6
remove duplicate typedef from merge conflict
balos1 Sep 22, 2025
9df8b5a
regen swig
balos1 Sep 22, 2025
b5d8c19
no anonymous enums
balos1 Sep 22, 2025
4e0d03e
move SPRKStepSetUseCompensatedSums
balos1 Sep 22, 2025
3fd9b27
undo SUN_MEMTYPE / SUN_DATAIOMODE switch
balos1 Sep 22, 2025
73fe771
find/replace double underscore SUNMEMTYPE__
balos1 Sep 22, 2025
f1de1af
regen fortran
balos1 Sep 22, 2025
67a1dcc
missed Convert to get
balos1 Sep 22, 2025
eba70ba
merge error
balos1 Sep 22, 2025
778359f
typo
balos1 Sep 22, 2025
dc49482
add python pointers for linearsolver and nonlinear
balos1 Sep 23, 2025
5d94366
regen swig after typo
balos1 Sep 23, 2025
abbecce
remove enum trailing underscores
balos1 Sep 23, 2025
c6b2b8b
add _deprecated headers to cmake
balos1 Sep 23, 2025
12a66ee
format
balos1 Sep 23, 2025
8d373a7
merge fixes
balos1 Sep 23, 2025
022324c
use parameter name suffixes instead of typedef for arrays
balos1 Sep 29, 2025
039c1b9
Merge remote-tracking branch 'origin/develop' into feature/python-part1
balos1 Sep 29, 2025
0aa53b4
Merge remote-tracking branch 'origin/develop' into feature/python-part1
balos1 Sep 29, 2025
fce667a
update copyrights
balos1 Sep 29, 2025
b386d06
make SUNContextView, SUNLoggerView, and SUNProfilerView inherit from …
balos1 Sep 29, 2025
76fc0e0
find/replace error
balos1 Sep 29, 2025
4ade51f
remove unnecessary checks for null
balos1 Sep 29, 2025
de470d6
fix find/replace error
balos1 Sep 30, 2025
10e15fc
typo
balos1 Sep 30, 2025
86d17f0
add note about suffixes to naming conventions
balos1 Sep 30, 2025
7cb6050
explain combination of ptr and dimensions suffixes
balos1 Sep 30, 2025
6b43e53
regen swig
balos1 Sep 30, 2025
6835f6f
use std::forward
balos1 Sep 30, 2025
099554d
combine definition and declaration of static Create methods
balos1 Sep 30, 2025
97f685c
Convert to get
balos1 Sep 30, 2025
960fdb5
add rule on anonymous enums
balos1 Sep 30, 2025
29d4c03
Update doc/superbuild/source/developers/source_code/Naming.rst
balos1 Oct 1, 2025
a8bbe92
remove comment that is not needed
balos1 Oct 1, 2025
0086cbb
address multiple PR comments
balos1 Oct 2, 2025
919bf88
fix enum min/max values and comment about why
balos1 Oct 2, 2025
31bd0d3
format
balos1 Oct 2, 2025
3f17bba
Apply suggestions from code review
balos1 Oct 2, 2025
2438419
deprecate N_Vector_S
balos1 Oct 2, 2025
5e96c22
Merge branch 'feature/python-interfaces' into feature/python-part1
balos1 Oct 2, 2025
e9b387b
add change notes
balos1 Oct 2, 2025
f745359
more change notes
balos1 Oct 2, 2025
4d8ff80
add enum naming rule
balos1 Oct 2, 2025
390f589
apply formatting
gardner48 Oct 2, 2025
c64ac24
run swig
gardner48 Oct 2, 2025
840e10e
minor doc fix
gardner48 Oct 2, 2025
2c9d808
namespace CSC_MAT and CSR_MAT macros
balos1 Oct 3, 2025
0389c21
add deprecation notice
balos1 Oct 3, 2025
b7cd8f7
Merge remote-tracking branch 'origin/feature/python-part1' into featu…
balos1 Oct 3, 2025
d511b2d
change all uses of CSC_MAT and CSR_ MATH
balos1 Oct 3, 2025
59e9d55
markdown format fix
gardner48 Oct 3, 2025
37343e3
fix table links
gardner48 Oct 3, 2025
5d2dd65
wrap long line
gardner48 Oct 3, 2025
932fdc1
fix SPRKMethodID ordering
gardner48 Oct 3, 2025
b4d0685
add back newlines
gardner48 Oct 3, 2025
e87ce82
add new line
gardner48 Oct 3, 2025
4f21564
add _1d prefix in more places
balos1 Oct 3, 2025
18a3700
Merge remote-tracking branch 'origin/feature/python-part1' into featu…
balos1 Oct 3, 2025
5d14eb4
add N_Vector_S deprecation note
balos1 Oct 6, 2025
e6e6c0f
add hpp files for each arkode stepper module
balos1 Oct 6, 2025
9e83bb3
add hpp files to cmake
balos1 Oct 6, 2025
32e1665
fix enum names
balos1 Oct 6, 2025
506b3c7
use proper naming convention for internal functions
balos1 Oct 6, 2025
e81340f
add missing header to cmake
balos1 Oct 6, 2025
5a06a74
free cv_user_data in CVAbckpbDelete if owned
balos1 Oct 6, 2025
91194bb
add idaSetOwnUserDataB
balos1 Oct 6, 2025
7f1bb3e
format and regen swig
balos1 Oct 6, 2025
035e8a0
Merge remote-tracking branch 'origin/develop' into feature/python-part1
balos1 Oct 6, 2025
609af2f
initialize ida_own_user_data in BMem
balos1 Oct 6, 2025
aec1b92
Merge branch 'feature/python-interfaces' into feature/python-part1
balos1 Oct 6, 2025
be1e7da
apply formatting
gardner48 Oct 7, 2025
6a2718f
header file updates
gardner48 Oct 7, 2025
3258f62
Merge branch 'develop' into feature/python-part1
gardner48 Oct 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### New Features and Enhancements

The functions ``CVodeGetUserDataB`` and ``IDAGetUserDataB`` were added to CVODES
The functions `CVodeGetUserDataB` and `IDAGetUserDataB` were added to CVODES
and IDAS, respectively.

### Bug Fixes
Expand All @@ -25,6 +25,11 @@ The `Convert` methods on the `sundials::kokkos:Vector`, `sundials::kokkos::Dense
been deprecated and will be removed in the next major release. The method `get`, should
be used instead.

The `CSC_MAT` and `CSR_MAT` macros defined in `sunmatrix_sparse.h` will be removed in
the next major release. Use `SUN_CSC_MAT` and `SUN_CSR_MAT` instead.

The `N_Vector_S` typedef to `N_Vector*` is deprecated and will be removed in the next major release.

## Changes to SUNDIALS in release 7.5.0

### Major Features
Expand Down
5 changes: 5 additions & 0 deletions doc/shared/RecentChanges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ The ``Convert`` methods on the ``sundials::kokkos:Vector``, ``sundials::kokkos::
``sundials::ginkgo::LinearSolver``, and ``sundials::ginkgo::BatchLinearSolver`` classes have
been deprecated and will be removed in the next major release. The method ``get``, should
be used instead.

The ``CSC_MAT`` and ``CSR_MAT`` macros defined in ``sunmatrix_sparse.h`` will be removed in
the next major release. Use ``SUN_CSC_MAT`` and ``SUN_CSR_MAT`` instead.

The ``N_Vector_S`` typedef to ``N_Vector*`` is deprecated and will be removed in the next major release.
28 changes: 14 additions & 14 deletions doc/shared/sunmatrix/SUNMatrix_Sparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ complete description of the parts of this *content* field is given below:
variables (of length ``NNZ``), containing the values of the
nonzero entries in the matrix

* ``sparsetype`` - type of the sparse matrix (``CSC_MAT`` or ``CSR_MAT``)
* ``sparsetype`` - type of the sparse matrix (``SUN_CSC_MAT`` or ``SUN_CSR_MAT``)

* ``indexvals`` - pointer to a contiguous block of ``int`` variables
(of length ``NNZ``), containing the row indices (if CSC) or column
Expand All @@ -90,16 +90,16 @@ automatically when creating a sparse ``SUNMatrix``, based on the
sparse matrix storage type.

* ``rowvals`` - pointer to ``indexvals`` when ``sparsetype`` is
``CSC_MAT``, otherwise set to ``NULL``.
``SUN_CSC_MAT``, otherwise set to ``NULL``.

* ``colptrs`` - pointer to ``indexptrs`` when ``sparsetype`` is
``CSC_MAT``, otherwise set to ``NULL``.
``SUN_CSC_MAT``, otherwise set to ``NULL``.

* ``colvals`` - pointer to ``indexvals`` when ``sparsetype`` is
``CSR_MAT``, otherwise set to ``NULL``.
``SUN_CSR_MAT``, otherwise set to ``NULL``.

* ``rowptrs`` - pointer to ``indexptrs`` when ``sparsetype`` is
``CSR_MAT``, otherwise set to ``NULL``.
``SUN_CSR_MAT``, otherwise set to ``NULL``.

For example, the :math:`5\times 4` matrix

Expand All @@ -121,7 +121,7 @@ could be stored as a CSC matrix in this structure as either
NNZ = 8;
NP = N;
data = {3.0, 1.0, 3.0, 7.0, 1.0, 2.0, 9.0, 5.0};
sparsetype = CSC_MAT;
sparsetype = SUN_CSC_MAT;
indexvals = {1, 3, 0, 2, 0, 1, 3, 4};
indexptrs = {0, 2, 4, 5, 8};

Expand All @@ -134,7 +134,7 @@ or
NNZ = 10;
NP = N;
data = {3.0, 1.0, 3.0, 7.0, 1.0, 2.0, 9.0, 5.0, *, *};
sparsetype = CSC_MAT;
sparsetype = SUN_CSC_MAT;
indexvals = {1, 3, 0, 2, 0, 1, 3, 4, *, *};
indexptrs = {0, 2, 4, 5, 8};

Expand All @@ -152,7 +152,7 @@ Similarly, in CSR format, the same matrix could be stored as
NNZ = 8;
NP = M;
data = {3.0, 1.0, 3.0, 2.0, 7.0, 1.0, 9.0, 5.0};
sparsetype = CSR_MAT;
sparsetype = SUN_CSR_MAT;
indexvals = {1, 2, 0, 3, 1, 0, 3, 3};
indexptrs = {0, 2, 4, 5, 7, 8};

Expand Down Expand Up @@ -335,8 +335,8 @@ following additional user-callable routines:
``SUNMatrix``. Its arguments are the number of rows and columns of
the matrix, *M* and *N*, the maximum number of nonzeros to be
stored in the matrix, *NNZ*, and a flag *sparsetype* indicating
whether to use CSR or CSC format (valid choices are ``CSR_MAT`` or
``CSC_MAT``).
whether to use CSR or CSC format (valid choices are ``SUN_CSR_MAT`` or
``SUN_CSC_MAT``).



Expand All @@ -352,7 +352,7 @@ following additional user-callable routines:

* *droptol* must be non-negative

* *sparsetype* must be either ``CSC_MAT`` or ``CSR_MAT``
* *sparsetype* must be either ``SUN_CSC_MAT`` or ``SUN_CSR_MAT``

The function returns ``NULL`` if any requirements are violated, or if
the matrix storage request cannot be satisfied.
Expand All @@ -371,7 +371,7 @@ following additional user-callable routines:

* *droptol* must be non-negative

* *sparsetype* must be either ``CSC_MAT`` or ``CSR_MAT``.
* *sparsetype* must be either ``SUN_CSC_MAT`` or ``SUN_CSR_MAT``.

The function returns ``NULL`` if any requirements are violated, or if
the matrix storage request cannot be satisfied.
Expand Down Expand Up @@ -424,8 +424,8 @@ following additional user-callable routines:

.. c:function:: int SUNSparseMatrix_SparseType(SUNMatrix A)

This function returns the storage type (``CSR_MAT``
or ``CSC_MAT``) for the sparse ``SUNMatrix``.
This function returns the storage type (``SUN_CSR_MAT``
or ``SUN_CSC_MAT``) for the sparse ``SUNMatrix``.


.. c:function:: sunrealtype* SUNSparseMatrix_Data(SUNMatrix A)
Expand Down
14 changes: 7 additions & 7 deletions doc/superbuild/source/developers/source_code/Naming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ When combining the two rules, the ``_ptr`` suffix should come last, e.g.

.. warning::

The suffixes are **required** for parameters of functions within public header
The suffixes are **required** for parameters of functions within public header
files because the Python interface generator relies on the suffixes to determine
the proper way to expose the parameter to Python users. It is preferable to follow
this convention within other code, but not required.
Expand Down Expand Up @@ -114,15 +114,15 @@ Names for Vectors, Matrices, and Solvers
The SUNDIALS vector, matrix, linear solver, and nonlinear solver classes use the
naming convention ``<short class name><method>`` for base class methods where
each component of the name uses Pascal case. See
:numref:`_SourceCode.Table.OldBaseClassMethodNaming` for examples.
:numref:`SourceCode.Naming.Table.OldBaseClassMethodNaming` for examples.

.. note::

This naming convention *only* applies to the vector, matrix, and solver
classes. All other classes should follow the naming convention described in
:ref:`SourceCode.Naming.NewClasses`.

.. _SourceCode.Table.OldBaseClassMethodNaming:
.. _SourceCode.Naming.Table.OldBaseClassMethodNaming:

.. Table:: SUNDIALS base class naming convention examples for vectors, matrices,
linear solvers and nonlinear solvers.
Expand All @@ -141,9 +141,9 @@ each component of the name uses Pascal case. See

Derived class implementations of the base class methods should follow the naming
convention ``<short class name><method>_<implementation>``. See
:numref:`SourceCode.Table.OldDerivedClassMethodNaming` for examples.
:numref:`SourceCode.Naming.Table.OldDerivedClassMethodNaming` for examples.

.. _SourceCode.Table.OldDerivedClassMethodNaming:
.. _SourceCode.Naming.Table.OldDerivedClassMethodNaming:

.. Table:: SUNDIALS derived class naming convention examples for vectors,
matrices, linear solvers and nonlinear solvers.
Expand Down Expand Up @@ -173,7 +173,7 @@ Names for New Classes

All new base classes should use the naming convention ``<class name>_<method>``
for the base class methods. See
:numref:`SourceCode.Table.NewBaseClassMethodNaming` for examples.
:numref:`SourceCode.Naming.Table.NewBaseClassMethodNaming` for examples.

.. _SourceCode.Naming.Table.NewBaseClassMethodNaming:

Expand All @@ -187,7 +187,7 @@ for the base class methods. See

Derived class implementations of the base class methods should follow the naming
convention ``<class name>_<method>_<implementation>``. See
:numref:`SourceCode.Table.NewDerivedClassMethodNaming` for examples.
:numref:`SourceCode.Naming.Table.NewDerivedClassMethodNaming` for examples.

.. _SourceCode.Naming.Table.NewDerivedClassMethodNaming:

Expand Down
6 changes: 3 additions & 3 deletions doc/superbuild/source/developers/source_code/Rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ not adhere to all of these rules.
int array_length = 10;
int* array1 = malloc(array_length * sizeof(a)); // Do this
int* array2 = malloc(array_length * sizeof(int)); // Don't do this
#. Do not use anonymous ``enum`` s in public header files (the Python interface generator doesn't like it).
Wrap typedef statements in SWIG guards, e.g.

#. Do not use anonymous ``enum`` s in public header files (the Python interface
generator doesn't like it). Wrap typedef statements in SWIG guards, e.g.

.. code-block:: c

Expand Down
4 changes: 2 additions & 2 deletions examples/arkode/C_klu/ark_brusselator1D_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int main(void)

/* Initialize sparse matrix data structure and KLU solver */
NNZ = 5 * NEQ;
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, ctx);
if (check_flag((void*)A, "SUNSparseMatrix", 0)) { return 1; }

LS = SUNLinSol_KLU(y, A, ctx);
Expand Down Expand Up @@ -445,7 +445,7 @@ static int Jac(sunrealtype t, N_Vector y, N_Vector fy, SUNMatrix J,
{
udata->R = SUNSparseMatrix(SUNSparseMatrix_Rows(J),
SUNSparseMatrix_Columns(J),
SUNSparseMatrix_NNZ(J), CSC_MAT, J->sunctx);
SUNSparseMatrix_NNZ(J), SUN_CSC_MAT, J->sunctx);
if (udata->R == NULL)
{
printf("Jacobian calculation error in allocating R matrix!\n");
Expand Down
4 changes: 2 additions & 2 deletions examples/arkode/C_superlu-mt/ark_brusselator1D_FEM_slu.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ int main(int argc, char* argv[])
/* Initialize sparse matrix data structure and linear solvers (system and mass) */
NNZ = 15 * NEQ;

A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSR_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSR_MAT, ctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

LS = SUNLinSol_SuperLUMT(y, A, num_threads, ctx);
Expand Down Expand Up @@ -742,7 +742,7 @@ static int Jac(sunrealtype t, N_Vector y, N_Vector fy, SUNMatrix J,
{
udata->R = SUNSparseMatrix(SUNSparseMatrix_Rows(J),
SUNSparseMatrix_Columns(J),
SUNSparseMatrix_NNZ(J), CSR_MAT, J->sunctx);
SUNSparseMatrix_NNZ(J), SUN_CSR_MAT, J->sunctx);
if (udata->R == NULL)
{
printf("Jac: error in allocating R matrix!\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ program main
end if

! create a sparse matrix
sunmat_A => FSUNSparseMatrix(neq, neq, neq*neq, CSC_MAT, sunctx)
sunmat_A => FSUNSparseMatrix(neq, neq, neq*neq, SUN_CSC_MAT, sunctx)
if (.not. associated(sunmat_A)) then
print *, 'ERROR: sunmat = NULL'
stop 1
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/F2003_serial/cv_roberts_klu_f2003.f90
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ program main
end if

! Create sparse SUNMatrix for use in linear solves
sunmat_A => FSUNSparseMatrix(neq, neq, nnz, CSC_MAT, sunctx)
sunmat_A => FSUNSparseMatrix(neq, neq, nnz, SUN_CSC_MAT, sunctx)
if (.not. associated(sunmat_A)) then
print *, 'ERROR: sunmat = NULL'
stop 1
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/serial/cvRoberts_block_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int main(int argc, char* argv[])

/* Create sparse SUNMatrix for use in linear solves */
nnz = GROUPSIZE * GROUPSIZE * ngroups;
A = SUNSparseMatrix(neq, neq, nnz, CSR_MAT, sunctx);
A = SUNSparseMatrix(neq, neq, nnz, SUN_CSR_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU solver object for use by CVode */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/serial/cvRoberts_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int main(void)
if (check_retval(&retval, "CVodeRootInit", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU solver object for use by CVode */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/serial/cvRoberts_sps.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int main(void)
if (check_retval(&retval, "CVodeRootInit", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT solver object for use by CVode (one thread) */
Expand Down
4 changes: 2 additions & 2 deletions examples/cvodes/serial/cvsRoberts_ASAi_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int main(int argc, char* argv[])

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ; /* max no. of nonzeros entries in the Jac */
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object */
Expand Down Expand Up @@ -372,7 +372,7 @@ int main(int argc, char* argv[])
if (check_retval(&retval, "CVodeSetUserDataB", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
AB = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, sunctx);
AB = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object */
Expand Down
4 changes: 2 additions & 2 deletions examples/cvodes/serial/cvsRoberts_ASAi_sps.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int main(int argc, char* argv[])

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ; /* max no. of nonzeros entries in the Jac */
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT SUNLinearSolver object */
Expand Down Expand Up @@ -373,7 +373,7 @@ int main(int argc, char* argv[])
if (check_retval(&retval, "CVodeSetUserDataB", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
AB = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, sunctx);
AB = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT SUNLinearSolver object */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvodes/serial/cvsRoberts_FSA_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int main(int argc, char* argv[])
if (check_retval(&retval, "CVodeSetUserData", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvodes/serial/cvsRoberts_FSA_sps.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int main(int argc, char* argv[])
if (check_retval(&retval, "CVodeSetUserData", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT solver object for use by CVode (one thread) */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvodes/serial/cvsRoberts_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int main(void)
if (check_retval(&retval, "CVodeRootInit", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU solver object for use by CVode */
Expand Down
2 changes: 1 addition & 1 deletion examples/cvodes/serial/cvsRoberts_sps.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int main(void)
if (check_retval(&retval, "CVodeRootInit", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
A = SUNSparseMatrix(NEQ, NEQ, NNZ, CSC_MAT, sunctx);
A = SUNSparseMatrix(NEQ, NEQ, NNZ, SUN_CSC_MAT, sunctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT solver object for use by CVode (one thread) */
Expand Down
2 changes: 1 addition & 1 deletion examples/ida/serial/idaHeat2D_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int main(void)

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ;
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, ctx);
if (check_retval((void*)A, "SUNSparseMtarix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object */
Expand Down
2 changes: 1 addition & 1 deletion examples/ida/serial/idaRoberts_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int main(void)

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ;
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSR_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSR_MAT, ctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object */
Expand Down
2 changes: 1 addition & 1 deletion examples/ida/serial/idaRoberts_sps.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int main(void)

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ;
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, ctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create SuperLUMT SUNLinearSolver object (one thread) */
Expand Down
4 changes: 2 additions & 2 deletions examples/idas/serial/idasRoberts_ASAi_klu.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int main(int argc, char* argv[])

/* Create sparse SUNMatrix for use in linear solves */
nnz = NEQ * NEQ;
A = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, ctx);
A = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, ctx);
if (check_retval((void*)A, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object (one thread) */
Expand Down Expand Up @@ -373,7 +373,7 @@ int main(int argc, char* argv[])
if (check_retval(&retval, "IDASetMaxNumStepsB", 1)) { return (1); }

/* Create sparse SUNMatrix for use in linear solves */
AB = SUNSparseMatrix(NEQ, NEQ, nnz, CSC_MAT, ctx);
AB = SUNSparseMatrix(NEQ, NEQ, nnz, SUN_CSC_MAT, ctx);
if (check_retval((void*)AB, "SUNSparseMatrix", 0)) { return (1); }

/* Create KLU SUNLinearSolver object (one thread) */
Expand Down
Loading
Loading