summaryrefslogtreecommitdiff
path: root/packages/sundials/src/helpers.h
diff options
context:
space:
mode:
authoridontgetoutmuch <dominic@steinitz.org>2018-04-22 03:17:40 -0700
committerGitHub <noreply@github.com>2018-04-22 03:17:40 -0700
commitdf9980a1bc95cbe96b6766dc232c4abc8ca28c38 (patch)
tree72eae1364abfd4ef4b022f94cb126c189f5cde85 /packages/sundials/src/helpers.h
parent94db29b5d25f28708c1d430554f0c337c26172df (diff)
parent492b7e13c47bc7e42583c6a1754bdb2bb445b94f (diff)
Merge pull request #264 from idontgetoutmuch/sundials-clean
Add Sundials as an ODE Engine
Diffstat (limited to 'packages/sundials/src/helpers.h')
-rw-r--r--packages/sundials/src/helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/sundials/src/helpers.h b/packages/sundials/src/helpers.h
new file mode 100644
index 0000000..3d8fbc0
--- /dev/null
+++ b/packages/sundials/src/helpers.h
@@ -0,0 +1,9 @@
1/* Check function return value...
2 opt == 0 means SUNDIALS function allocates memory so check if
3 returned NULL pointer
4 opt == 1 means SUNDIALS function returns a flag so check if
5 flag >= 0
6 opt == 2 means function allocates memory so check if returned
7 NULL pointer
8*/
9int check_flag(void *flagvalue, const char *funcname, int opt);