Skip to content

Commit 4b1483e

Browse files
committed
minor updates
1 parent fb230ed commit 4b1483e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

bindings/pysundials/arkode/pysundials_arkode.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <nanobind/nanobind.h>
1818
#include <nanobind/stl/function.h>
1919
#include <nanobind/stl/optional.h>
20+
#include <nanobind/stl/tuple.h>
2021

2122
#include <sundials/sundials_core.hpp>
2223

@@ -47,9 +48,10 @@ void bind_arkode(nb::module_& m)
4748
.def("get", nb::overload_cast<>(&ARKodeView::get, nb::const_),
4849
nb::rv_policy::reference);
4950

50-
//
51-
// ARKode function pointer setters
52-
//
51+
/////////////////////////////////////////////////////////////////////////////
52+
// ARKODE user-supplied function setters
53+
/////////////////////////////////////////////////////////////////////////////
54+
5355
m.def("ARKodeSetPostprocessStepFn",
5456
[](void* ark_mem, std::function<std::remove_pointer_t<ARKPostProcessFn>> fn)
5557
{

bindings/pysundials/cvodes/generate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ modules:
3939
fn_exclude_by_name__regex:
4040
- "CVodeInit"
4141
# nanobind doesnt support **
42+
- "CVodeComputeStateSens"
4243
- "CVodeGetCurrentState"
4344
- "CVodeGetJac"
4445
- "CVodeGetQuadSens"
@@ -51,11 +52,10 @@ modules:
5152
- "CVodeQuadSensReInit"
5253
- "CVodeQuadSensSVtolerances"
5354
- "CVodeResizeHistory"
54-
- "CVodeSensSVtolerances"
55-
- "CVodeSensReInit"
5655
- "CVodeSensInit"
5756
- "CVodeSensInit1"
58-
- "CVodeComputeStateSens"
57+
- "CVodeSensReInit"
58+
- "CVodeSensSVtolerances"
5959
# we use user_data for sneaking in python contexts, users can instead capture their states in a class
6060
- "CVodeGetUserData"
6161
- "CVodeSetUserData"

0 commit comments

Comments
 (0)