1 | /* ----------------------------------------------------------------- |
---|
2 | * Programmer(s): David J. Gardner @ LLNL |
---|
3 | * ----------------------------------------------------------------- |
---|
4 | * LLNS Copyright Start |
---|
5 | * Copyright (c) 2014, Lawrence Livermore National Security |
---|
6 | * This work was performed under the auspices of the U.S. Department |
---|
7 | * of Energy by Lawrence Livermore National Laboratory in part under |
---|
8 | * Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344. |
---|
9 | * Produced at the Lawrence Livermore National Laboratory. |
---|
10 | * All rights reserved. |
---|
11 | * For details, see the LICENSE file. |
---|
12 | * LLNS Copyright End |
---|
13 | * ----------------------------------------------------------------- |
---|
14 | * This header file is for routines to get SUNDIALS version info |
---|
15 | * -----------------------------------------------------------------*/ |
---|
16 | |
---|
17 | #ifndef _SUNDIALS_VERSION_H |
---|
18 | #define _SUNDIALS_VERSION_H |
---|
19 | |
---|
20 | #include <sundials/sundials_config.h> |
---|
21 | |
---|
22 | #ifdef __cplusplus /* wrapper to enable C++ usage */ |
---|
23 | extern "C" { |
---|
24 | #endif |
---|
25 | |
---|
26 | /* ----------------------------------------------------------------- |
---|
27 | * Function: SUNDIALSGetVersion |
---|
28 | * ----------------------------------------------------------------- |
---|
29 | * SUNDIALSGetVersion fills a string with SUNDIALS version |
---|
30 | * information using the format major.minor.patch-label |
---|
31 | * |
---|
32 | * Inputs: |
---|
33 | * version = string to fill with version information |
---|
34 | * len = length of the input string version |
---|
35 | * |
---|
36 | * SUNDIALSGetVersion returns 0 if successful and -1 if the input |
---|
37 | * string is too short to store the SUNDIALS version. |
---|
38 | * -----------------------------------------------------------------*/ |
---|
39 | SUNDIALS_EXPORT int SUNDIALSGetVersion(char *version, int len); |
---|
40 | |
---|
41 | |
---|
42 | /* ----------------------------------------------------------------- |
---|
43 | * Function: SUNDIALSGetVersionNumber |
---|
44 | * ----------------------------------------------------------------- |
---|
45 | * SUNDIALSGetVersionNumber fills separate integers with the |
---|
46 | * SUNDIALS major, minor, and patch release version numbers and a |
---|
47 | * fills a string with the release label. |
---|
48 | * |
---|
49 | * Inputs: |
---|
50 | * major = integer for major version number |
---|
51 | * minor = integer for minor version number |
---|
52 | * patch = integer for patch version number |
---|
53 | * label = string for version label |
---|
54 | * len = length of the input string label |
---|
55 | * |
---|
56 | * SUNDIALSGetVersionNumber returns 0 if successful and -1 if the |
---|
57 | * input string is too short to store the SUNDIALS version. |
---|
58 | * -----------------------------------------------------------------*/ |
---|
59 | SUNDIALS_EXPORT int SUNDIALSGetVersionNumber(int *major, int *minor, int *patch, |
---|
60 | char *label, int len); |
---|
61 | |
---|
62 | #ifdef __cplusplus |
---|
63 | } |
---|
64 | #endif |
---|
65 | |
---|
66 | #endif |
---|