1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.0
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 /* ---------------------------------------------------------------
12  * Programmer(s): Auto-generated by swig.
13  * ---------------------------------------------------------------
14  * SUNDIALS Copyright Start
15  * Copyright (c) 2002-2020, Lawrence Livermore National Security
16  * and Southern Methodist University.
17  * All rights reserved.
18  *
19  * See the top-level LICENSE and NOTICE files for details.
20  *
21  * SPDX-License-Identifier: BSD-3-Clause
22  * SUNDIALS Copyright End
23  * -------------------------------------------------------------*/
24 
25 /* -----------------------------------------------------------------------------
26  *  This section contains generic SWIG labels for method/variable
27  *  declarations/attributes, and other compiler dependent labels.
28  * ----------------------------------------------------------------------------- */
29 
30 /* template workaround for compilers that cannot correctly implement the C++ standard */
31 #ifndef SWIGTEMPLATEDISAMBIGUATOR
32 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
33 #  define SWIGTEMPLATEDISAMBIGUATOR template
34 # elif defined(__HP_aCC)
35 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
36 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
37 #  define SWIGTEMPLATEDISAMBIGUATOR template
38 # else
39 #  define SWIGTEMPLATEDISAMBIGUATOR
40 # endif
41 #endif
42 
43 /* inline attribute */
44 #ifndef SWIGINLINE
45 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
46 #   define SWIGINLINE inline
47 # else
48 #   define SWIGINLINE
49 # endif
50 #endif
51 
52 /* attribute recognised by some compilers to avoid 'unused' warnings */
53 #ifndef SWIGUNUSED
54 # if defined(__GNUC__)
55 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
56 #     define SWIGUNUSED __attribute__ ((__unused__))
57 #   else
58 #     define SWIGUNUSED
59 #   endif
60 # elif defined(__ICC)
61 #   define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 #   define SWIGUNUSED
64 # endif
65 #endif
66 
67 #ifndef SWIG_MSC_UNSUPPRESS_4505
68 # if defined(_MSC_VER)
69 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
70 # endif
71 #endif
72 
73 #ifndef SWIGUNUSEDPARM
74 # ifdef __cplusplus
75 #   define SWIGUNUSEDPARM(p)
76 # else
77 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
78 # endif
79 #endif
80 
81 /* internal SWIG method */
82 #ifndef SWIGINTERN
83 # define SWIGINTERN static SWIGUNUSED
84 #endif
85 
86 /* internal inline SWIG method */
87 #ifndef SWIGINTERNINLINE
88 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
89 #endif
90 
91 /* qualifier for exported *const* global data variables*/
92 #ifndef SWIGEXTERN
93 # ifdef __cplusplus
94 #   define SWIGEXTERN extern
95 # else
96 #   define SWIGEXTERN
97 # endif
98 #endif
99 
100 /* exporting methods */
101 #if defined(__GNUC__)
102 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
103 #    ifndef GCC_HASCLASSVISIBILITY
104 #      define GCC_HASCLASSVISIBILITY
105 #    endif
106 #  endif
107 #endif
108 
109 #ifndef SWIGEXPORT
110 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
111 #   if defined(STATIC_LINKED)
112 #     define SWIGEXPORT
113 #   else
114 #     define SWIGEXPORT __declspec(dllexport)
115 #   endif
116 # else
117 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
118 #     define SWIGEXPORT __attribute__ ((visibility("default")))
119 #   else
120 #     define SWIGEXPORT
121 #   endif
122 # endif
123 #endif
124 
125 /* calling conventions for Windows */
126 #ifndef SWIGSTDCALL
127 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
128 #   define SWIGSTDCALL __stdcall
129 # else
130 #   define SWIGSTDCALL
131 # endif
132 #endif
133 
134 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
135 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
136 # define _CRT_SECURE_NO_DEPRECATE
137 #endif
138 
139 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
140 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
141 # define _SCL_SECURE_NO_DEPRECATE
142 #endif
143 
144 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
145 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
146 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
147 #endif
148 
149 /* Intel's compiler complains if a variable which was never initialised is
150  * cast to void, which is a common idiom which we use to indicate that we
151  * are aware a variable isn't used.  So we just silence that warning.
152  * See: https://github.com/swig/swig/issues/192 for more discussion.
153  */
154 #ifdef __INTEL_COMPILER
155 # pragma warning disable 592
156 #endif
157 
158 /*  Errors in SWIG */
159 #define  SWIG_UnknownError    	   -1
160 #define  SWIG_IOError        	   -2
161 #define  SWIG_RuntimeError   	   -3
162 #define  SWIG_IndexError     	   -4
163 #define  SWIG_TypeError      	   -5
164 #define  SWIG_DivisionByZero 	   -6
165 #define  SWIG_OverflowError  	   -7
166 #define  SWIG_SyntaxError    	   -8
167 #define  SWIG_ValueError     	   -9
168 #define  SWIG_SystemError    	   -10
169 #define  SWIG_AttributeError 	   -11
170 #define  SWIG_MemoryError    	   -12
171 #define  SWIG_NullReferenceError   -13
172 
173 
174 
175 
176 #include <assert.h>
177 #define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178  { printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
179 
180 
181 #include <stdio.h>
182 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
183 # ifndef snprintf
184 #  define snprintf _snprintf
185 # endif
186 #endif
187 
188 
189 /* Support for the `contract` feature.
190  *
191  * Note that RETURNNULL is first because it's inserted via a 'Replaceall' in
192  * the fortran.cxx file.
193  */
194 #define SWIG_contract_assert(RETURNNULL, EXPR, MSG) \
195  if (!(EXPR)) { SWIG_exception_impl("$decl", SWIG_ValueError, MSG, RETURNNULL); }
196 
197 
198 #define SWIGVERSION 0x040000
199 #define SWIG_VERSION SWIGVERSION
200 
201 
202 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
203 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
204 
205 
206 #include "sundials/sundials_nonlinearsolver.h"
207 
208 
209 #include "sunnonlinsol/sunnonlinsol_fixedpoint.h"
210 
_wrap_FSUNNonlinSol_FixedPoint(N_Vector farg1,int const * farg2)211 SWIGEXPORT SUNNonlinearSolver _wrap_FSUNNonlinSol_FixedPoint(N_Vector farg1, int const *farg2) {
212   SUNNonlinearSolver fresult ;
213   N_Vector arg1 = (N_Vector) 0 ;
214   int arg2 ;
215   SUNNonlinearSolver result;
216 
217   arg1 = (N_Vector)(farg1);
218   arg2 = (int)(*farg2);
219   result = (SUNNonlinearSolver)SUNNonlinSol_FixedPoint(arg1,arg2);
220   fresult = result;
221   return fresult;
222 }
223 
224 
_wrap_FSUNNonlinSol_FixedPointSens(int const * farg1,N_Vector farg2,int const * farg3)225 SWIGEXPORT SUNNonlinearSolver _wrap_FSUNNonlinSol_FixedPointSens(int const *farg1, N_Vector farg2, int const *farg3) {
226   SUNNonlinearSolver fresult ;
227   int arg1 ;
228   N_Vector arg2 = (N_Vector) 0 ;
229   int arg3 ;
230   SUNNonlinearSolver result;
231 
232   arg1 = (int)(*farg1);
233   arg2 = (N_Vector)(farg2);
234   arg3 = (int)(*farg3);
235   result = (SUNNonlinearSolver)SUNNonlinSol_FixedPointSens(arg1,arg2,arg3);
236   fresult = result;
237   return fresult;
238 }
239 
240 
_wrap_FSUNNonlinSolGetType_FixedPoint(SUNNonlinearSolver farg1)241 SWIGEXPORT int _wrap_FSUNNonlinSolGetType_FixedPoint(SUNNonlinearSolver farg1) {
242   int fresult ;
243   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
244   SUNNonlinearSolver_Type result;
245 
246   arg1 = (SUNNonlinearSolver)(farg1);
247   result = (SUNNonlinearSolver_Type)SUNNonlinSolGetType_FixedPoint(arg1);
248   fresult = (int)(result);
249   return fresult;
250 }
251 
252 
_wrap_FSUNNonlinSolInitialize_FixedPoint(SUNNonlinearSolver farg1)253 SWIGEXPORT int _wrap_FSUNNonlinSolInitialize_FixedPoint(SUNNonlinearSolver farg1) {
254   int fresult ;
255   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
256   int result;
257 
258   arg1 = (SUNNonlinearSolver)(farg1);
259   result = (int)SUNNonlinSolInitialize_FixedPoint(arg1);
260   fresult = (int)(result);
261   return fresult;
262 }
263 
264 
_wrap_FSUNNonlinSolSolve_FixedPoint(SUNNonlinearSolver farg1,N_Vector farg2,N_Vector farg3,N_Vector farg4,double const * farg5,int const * farg6,void * farg7)265 SWIGEXPORT int _wrap_FSUNNonlinSolSolve_FixedPoint(SUNNonlinearSolver farg1, N_Vector farg2, N_Vector farg3, N_Vector farg4, double const *farg5, int const *farg6, void *farg7) {
266   int fresult ;
267   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
268   N_Vector arg2 = (N_Vector) 0 ;
269   N_Vector arg3 = (N_Vector) 0 ;
270   N_Vector arg4 = (N_Vector) 0 ;
271   realtype arg5 ;
272   int arg6 ;
273   void *arg7 = (void *) 0 ;
274   int result;
275 
276   arg1 = (SUNNonlinearSolver)(farg1);
277   arg2 = (N_Vector)(farg2);
278   arg3 = (N_Vector)(farg3);
279   arg4 = (N_Vector)(farg4);
280   arg5 = (realtype)(*farg5);
281   arg6 = (int)(*farg6);
282   arg7 = (void *)(farg7);
283   result = (int)SUNNonlinSolSolve_FixedPoint(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
284   fresult = (int)(result);
285   return fresult;
286 }
287 
288 
_wrap_FSUNNonlinSolFree_FixedPoint(SUNNonlinearSolver farg1)289 SWIGEXPORT int _wrap_FSUNNonlinSolFree_FixedPoint(SUNNonlinearSolver farg1) {
290   int fresult ;
291   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
292   int result;
293 
294   arg1 = (SUNNonlinearSolver)(farg1);
295   result = (int)SUNNonlinSolFree_FixedPoint(arg1);
296   fresult = (int)(result);
297   return fresult;
298 }
299 
300 
_wrap_FSUNNonlinSolSetSysFn_FixedPoint(SUNNonlinearSolver farg1,SUNNonlinSolSysFn farg2)301 SWIGEXPORT int _wrap_FSUNNonlinSolSetSysFn_FixedPoint(SUNNonlinearSolver farg1, SUNNonlinSolSysFn farg2) {
302   int fresult ;
303   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
304   SUNNonlinSolSysFn arg2 = (SUNNonlinSolSysFn) 0 ;
305   int result;
306 
307   arg1 = (SUNNonlinearSolver)(farg1);
308   arg2 = (SUNNonlinSolSysFn)(farg2);
309   result = (int)SUNNonlinSolSetSysFn_FixedPoint(arg1,arg2);
310   fresult = (int)(result);
311   return fresult;
312 }
313 
314 
_wrap_FSUNNonlinSolSetConvTestFn_FixedPoint(SUNNonlinearSolver farg1,SUNNonlinSolConvTestFn farg2,void * farg3)315 SWIGEXPORT int _wrap_FSUNNonlinSolSetConvTestFn_FixedPoint(SUNNonlinearSolver farg1, SUNNonlinSolConvTestFn farg2, void *farg3) {
316   int fresult ;
317   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
318   SUNNonlinSolConvTestFn arg2 = (SUNNonlinSolConvTestFn) 0 ;
319   void *arg3 = (void *) 0 ;
320   int result;
321 
322   arg1 = (SUNNonlinearSolver)(farg1);
323   arg2 = (SUNNonlinSolConvTestFn)(farg2);
324   arg3 = (void *)(farg3);
325   result = (int)SUNNonlinSolSetConvTestFn_FixedPoint(arg1,arg2,arg3);
326   fresult = (int)(result);
327   return fresult;
328 }
329 
330 
_wrap_FSUNNonlinSolSetMaxIters_FixedPoint(SUNNonlinearSolver farg1,int const * farg2)331 SWIGEXPORT int _wrap_FSUNNonlinSolSetMaxIters_FixedPoint(SUNNonlinearSolver farg1, int const *farg2) {
332   int fresult ;
333   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
334   int arg2 ;
335   int result;
336 
337   arg1 = (SUNNonlinearSolver)(farg1);
338   arg2 = (int)(*farg2);
339   result = (int)SUNNonlinSolSetMaxIters_FixedPoint(arg1,arg2);
340   fresult = (int)(result);
341   return fresult;
342 }
343 
344 
_wrap_FSUNNonlinSolSetDamping_FixedPoint(SUNNonlinearSolver farg1,double const * farg2)345 SWIGEXPORT int _wrap_FSUNNonlinSolSetDamping_FixedPoint(SUNNonlinearSolver farg1, double const *farg2) {
346   int fresult ;
347   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
348   realtype arg2 ;
349   int result;
350 
351   arg1 = (SUNNonlinearSolver)(farg1);
352   arg2 = (realtype)(*farg2);
353   result = (int)SUNNonlinSolSetDamping_FixedPoint(arg1,arg2);
354   fresult = (int)(result);
355   return fresult;
356 }
357 
358 
_wrap_FSUNNonlinSolGetNumIters_FixedPoint(SUNNonlinearSolver farg1,long * farg2)359 SWIGEXPORT int _wrap_FSUNNonlinSolGetNumIters_FixedPoint(SUNNonlinearSolver farg1, long *farg2) {
360   int fresult ;
361   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
362   long *arg2 = (long *) 0 ;
363   int result;
364 
365   arg1 = (SUNNonlinearSolver)(farg1);
366   arg2 = (long *)(farg2);
367   result = (int)SUNNonlinSolGetNumIters_FixedPoint(arg1,arg2);
368   fresult = (int)(result);
369   return fresult;
370 }
371 
372 
_wrap_FSUNNonlinSolGetCurIter_FixedPoint(SUNNonlinearSolver farg1,int * farg2)373 SWIGEXPORT int _wrap_FSUNNonlinSolGetCurIter_FixedPoint(SUNNonlinearSolver farg1, int *farg2) {
374   int fresult ;
375   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
376   int *arg2 = (int *) 0 ;
377   int result;
378 
379   arg1 = (SUNNonlinearSolver)(farg1);
380   arg2 = (int *)(farg2);
381   result = (int)SUNNonlinSolGetCurIter_FixedPoint(arg1,arg2);
382   fresult = (int)(result);
383   return fresult;
384 }
385 
386 
_wrap_FSUNNonlinSolGetNumConvFails_FixedPoint(SUNNonlinearSolver farg1,long * farg2)387 SWIGEXPORT int _wrap_FSUNNonlinSolGetNumConvFails_FixedPoint(SUNNonlinearSolver farg1, long *farg2) {
388   int fresult ;
389   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
390   long *arg2 = (long *) 0 ;
391   int result;
392 
393   arg1 = (SUNNonlinearSolver)(farg1);
394   arg2 = (long *)(farg2);
395   result = (int)SUNNonlinSolGetNumConvFails_FixedPoint(arg1,arg2);
396   fresult = (int)(result);
397   return fresult;
398 }
399 
400 
_wrap_FSUNNonlinSolGetSysFn_FixedPoint(SUNNonlinearSolver farg1,void * farg2)401 SWIGEXPORT int _wrap_FSUNNonlinSolGetSysFn_FixedPoint(SUNNonlinearSolver farg1, void *farg2) {
402   int fresult ;
403   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
404   SUNNonlinSolSysFn *arg2 = (SUNNonlinSolSysFn *) 0 ;
405   int result;
406 
407   arg1 = (SUNNonlinearSolver)(farg1);
408   arg2 = (SUNNonlinSolSysFn *)(farg2);
409   result = (int)SUNNonlinSolGetSysFn_FixedPoint(arg1,arg2);
410   fresult = (int)(result);
411   return fresult;
412 }
413 
414 
_wrap_FSUNNonlinSolSetInfoFile_FixedPoint(SUNNonlinearSolver farg1,void * farg2)415 SWIGEXPORT int _wrap_FSUNNonlinSolSetInfoFile_FixedPoint(SUNNonlinearSolver farg1, void *farg2) {
416   int fresult ;
417   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
418   FILE *arg2 = (FILE *) 0 ;
419   int result;
420 
421   arg1 = (SUNNonlinearSolver)(farg1);
422   arg2 = (FILE *)(farg2);
423   result = (int)SUNNonlinSolSetInfoFile_FixedPoint(arg1,arg2);
424   fresult = (int)(result);
425   return fresult;
426 }
427 
428 
_wrap_FSUNNonlinSolSetPrintLevel_FixedPoint(SUNNonlinearSolver farg1,int const * farg2)429 SWIGEXPORT int _wrap_FSUNNonlinSolSetPrintLevel_FixedPoint(SUNNonlinearSolver farg1, int const *farg2) {
430   int fresult ;
431   SUNNonlinearSolver arg1 = (SUNNonlinearSolver) 0 ;
432   int arg2 ;
433   int result;
434 
435   arg1 = (SUNNonlinearSolver)(farg1);
436   arg2 = (int)(*farg2);
437   result = (int)SUNNonlinSolSetPrintLevel_FixedPoint(arg1,arg2);
438   fresult = (int)(result);
439   return fresult;
440 }
441 
442 
443 
444