summaryrefslogtreecommitdiff
path: root/packages/sundials/src/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sundials/src/helpers.h')
-rw-r--r--packages/sundials/src/helpers.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/sundials/src/helpers.h b/packages/sundials/src/helpers.h
index 5c1d9f3..b41ab73 100644
--- a/packages/sundials/src/helpers.h
+++ b/packages/sundials/src/helpers.h
@@ -8,8 +8,7 @@
8#define FSYM "f" 8#define FSYM "f"
9#endif 9#endif
10 10
11typedef struct _generic_N_Vector BarType; 11typedef struct _generic_N_Vector SunVector;
12typedef struct _N_VectorContent_Serial BazType;
13 12
14/* Check function return value... 13/* Check function return value...
15 opt == 0 means SUNDIALS function allocates memory so check if 14 opt == 0 means SUNDIALS function allocates memory so check if
@@ -17,6 +16,6 @@ typedef struct _N_VectorContent_Serial BazType;
17 opt == 1 means SUNDIALS function returns a flag so check if 16 opt == 1 means SUNDIALS function returns a flag so check if
18 flag >= 0 17 flag >= 0
19 opt == 2 means function allocates memory so check if returned 18 opt == 2 means function allocates memory so check if returned
20 NULL pointer 19 NULL pointer
21*/ 20*/
22int check_flag(void *flagvalue, const char *funcname, int opt); 21int check_flag(void *flagvalue, const char *funcname, int opt);