3 #ifndef PY_SSIZE_T_CLEAN
4 #define PY_SSIZE_T_CLEAN
8 #error Python headers needed to compile C extensions, please install development version of Python.
9 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
10 #error Cython requires Python 2.6+ or Python 3.3+.
12 #define CYTHON_ABI "0_29_30"
13 #define CYTHON_HEX_VERSION 0x001D1EF0
14 #define CYTHON_FUTURE_DIVISION 0
17 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
19 #if !defined(WIN32) && !defined(MS_WINDOWS)
31 #define DL_IMPORT(t) t
34 #define DL_EXPORT(t) t
37 #ifndef HAVE_LONG_LONG
38 #if PY_VERSION_HEX >= 0x02070000
39 #define HAVE_LONG_LONG
43 #define PY_LONG_LONG LONG_LONG
46 #define Py_HUGE_VAL HUGE_VAL
49 #define CYTHON_COMPILING_IN_PYPY 1
50 #define CYTHON_COMPILING_IN_PYSTON 0
51 #define CYTHON_COMPILING_IN_CPYTHON 0
52 #undef CYTHON_USE_TYPE_SLOTS
53 #define CYTHON_USE_TYPE_SLOTS 0
54 #undef CYTHON_USE_PYTYPE_LOOKUP
55 #define CYTHON_USE_PYTYPE_LOOKUP 0
56 #if PY_VERSION_HEX < 0x03050000
57 #undef CYTHON_USE_ASYNC_SLOTS
58 #define CYTHON_USE_ASYNC_SLOTS 0
59 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
60 #define CYTHON_USE_ASYNC_SLOTS 1
62 #undef CYTHON_USE_PYLIST_INTERNALS
63 #define CYTHON_USE_PYLIST_INTERNALS 0
64 #undef CYTHON_USE_UNICODE_INTERNALS
65 #define CYTHON_USE_UNICODE_INTERNALS 0
66 #undef CYTHON_USE_UNICODE_WRITER
67 #define CYTHON_USE_UNICODE_WRITER 0
68 #undef CYTHON_USE_PYLONG_INTERNALS
69 #define CYTHON_USE_PYLONG_INTERNALS 0
70 #undef CYTHON_AVOID_BORROWED_REFS
71 #define CYTHON_AVOID_BORROWED_REFS 1
72 #undef CYTHON_ASSUME_SAFE_MACROS
73 #define CYTHON_ASSUME_SAFE_MACROS 0
74 #undef CYTHON_UNPACK_METHODS
75 #define CYTHON_UNPACK_METHODS 0
76 #undef CYTHON_FAST_THREAD_STATE
77 #define CYTHON_FAST_THREAD_STATE 0
78 #undef CYTHON_FAST_PYCALL
79 #define CYTHON_FAST_PYCALL 0
80 #undef CYTHON_PEP489_MULTI_PHASE_INIT
81 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
82 #undef CYTHON_USE_TP_FINALIZE
83 #define CYTHON_USE_TP_FINALIZE 0
84 #undef CYTHON_USE_DICT_VERSIONS
85 #define CYTHON_USE_DICT_VERSIONS 0
86 #undef CYTHON_USE_EXC_INFO_STACK
87 #define CYTHON_USE_EXC_INFO_STACK 0
88 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
89 #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_HEX >= 0x07030900)
91 #elif defined(PYSTON_VERSION)
92 #define CYTHON_COMPILING_IN_PYPY 0
93 #define CYTHON_COMPILING_IN_PYSTON 1
94 #define CYTHON_COMPILING_IN_CPYTHON 0
95 #ifndef CYTHON_USE_TYPE_SLOTS
96 #define CYTHON_USE_TYPE_SLOTS 1
98 #undef CYTHON_USE_PYTYPE_LOOKUP
99 #define CYTHON_USE_PYTYPE_LOOKUP 0
100 #undef CYTHON_USE_ASYNC_SLOTS
101 #define CYTHON_USE_ASYNC_SLOTS 0
102 #undef CYTHON_USE_PYLIST_INTERNALS
103 #define CYTHON_USE_PYLIST_INTERNALS 0
104 #ifndef CYTHON_USE_UNICODE_INTERNALS
105 #define CYTHON_USE_UNICODE_INTERNALS 1
107 #undef CYTHON_USE_UNICODE_WRITER
108 #define CYTHON_USE_UNICODE_WRITER 0
109 #undef CYTHON_USE_PYLONG_INTERNALS
110 #define CYTHON_USE_PYLONG_INTERNALS 0
111 #ifndef CYTHON_AVOID_BORROWED_REFS
112 #define CYTHON_AVOID_BORROWED_REFS 0
114 #ifndef CYTHON_ASSUME_SAFE_MACROS
115 #define CYTHON_ASSUME_SAFE_MACROS 1
117 #ifndef CYTHON_UNPACK_METHODS
118 #define CYTHON_UNPACK_METHODS 1
120 #undef CYTHON_FAST_THREAD_STATE
121 #define CYTHON_FAST_THREAD_STATE 0
122 #undef CYTHON_FAST_PYCALL
123 #define CYTHON_FAST_PYCALL 0
124 #undef CYTHON_PEP489_MULTI_PHASE_INIT
125 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
126 #undef CYTHON_USE_TP_FINALIZE
127 #define CYTHON_USE_TP_FINALIZE 0
128 #undef CYTHON_USE_DICT_VERSIONS
129 #define CYTHON_USE_DICT_VERSIONS 0
130 #undef CYTHON_USE_EXC_INFO_STACK
131 #define CYTHON_USE_EXC_INFO_STACK 0
132 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
133 #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
136 #define CYTHON_COMPILING_IN_PYPY 0
137 #define CYTHON_COMPILING_IN_PYSTON 0
138 #define CYTHON_COMPILING_IN_CPYTHON 1
139 #ifndef CYTHON_USE_TYPE_SLOTS
140 #define CYTHON_USE_TYPE_SLOTS 1
142 #if PY_VERSION_HEX < 0x02070000
143 #undef CYTHON_USE_PYTYPE_LOOKUP
144 #define CYTHON_USE_PYTYPE_LOOKUP 0
145 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
146 #define CYTHON_USE_PYTYPE_LOOKUP 1
148 #if PY_MAJOR_VERSION < 3
149 #undef CYTHON_USE_ASYNC_SLOTS
150 #define CYTHON_USE_ASYNC_SLOTS 0
151 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
152 #define CYTHON_USE_ASYNC_SLOTS 1
154 #if PY_VERSION_HEX < 0x02070000
155 #undef CYTHON_USE_PYLONG_INTERNALS
156 #define CYTHON_USE_PYLONG_INTERNALS 0
157 #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
158 #define CYTHON_USE_PYLONG_INTERNALS 1
160 #ifndef CYTHON_USE_PYLIST_INTERNALS
161 #define CYTHON_USE_PYLIST_INTERNALS 1
163 #ifndef CYTHON_USE_UNICODE_INTERNALS
164 #define CYTHON_USE_UNICODE_INTERNALS 1
166 #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
167 #undef CYTHON_USE_UNICODE_WRITER
168 #define CYTHON_USE_UNICODE_WRITER 0
169 #elif !defined(CYTHON_USE_UNICODE_WRITER)
170 #define CYTHON_USE_UNICODE_WRITER 1
172 #ifndef CYTHON_AVOID_BORROWED_REFS
173 #define CYTHON_AVOID_BORROWED_REFS 0
175 #ifndef CYTHON_ASSUME_SAFE_MACROS
176 #define CYTHON_ASSUME_SAFE_MACROS 1
178 #ifndef CYTHON_UNPACK_METHODS
179 #define CYTHON_UNPACK_METHODS 1
181 #if PY_VERSION_HEX >= 0x030B00A4
182 #undef CYTHON_FAST_THREAD_STATE
183 #define CYTHON_FAST_THREAD_STATE 0
184 #elif !defined(CYTHON_FAST_THREAD_STATE)
185 #define CYTHON_FAST_THREAD_STATE 1
187 #ifndef CYTHON_FAST_PYCALL
188 #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000)
190 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
191 #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
193 #ifndef CYTHON_USE_TP_FINALIZE
194 #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
196 #ifndef CYTHON_USE_DICT_VERSIONS
197 #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
199 #if PY_VERSION_HEX >= 0x030B00A4
200 #undef CYTHON_USE_EXC_INFO_STACK
201 #define CYTHON_USE_EXC_INFO_STACK 0
202 #elif !defined(CYTHON_USE_EXC_INFO_STACK)
203 #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
205 #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
206 #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
209 #if !defined(CYTHON_FAST_PYCCALL)
210 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
212 #if CYTHON_USE_PYLONG_INTERNALS
213 #if PY_MAJOR_VERSION < 3
214 #include "longintrepr.h"
220 enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P ==
sizeof(
void*)) };
223 #ifndef __has_attribute
224 #define __has_attribute(x) 0
226 #ifndef __has_cpp_attribute
227 #define __has_cpp_attribute(x) 0
229 #ifndef CYTHON_RESTRICT
230 #if defined(__GNUC__)
231 #define CYTHON_RESTRICT __restrict__
232 #elif defined(_MSC_VER) && _MSC_VER >= 1400
233 #define CYTHON_RESTRICT __restrict
234 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
235 #define CYTHON_RESTRICT restrict
237 #define CYTHON_RESTRICT
240 #ifndef CYTHON_UNUSED
241 # if defined(__GNUC__)
242 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
243 # define CYTHON_UNUSED __attribute__ ((__unused__))
245 # define CYTHON_UNUSED
247 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
248 # define CYTHON_UNUSED __attribute__ ((__unused__))
250 # define CYTHON_UNUSED
253 #ifndef CYTHON_MAYBE_UNUSED_VAR
254 # if defined(__cplusplus)
255 template<
class T>
void CYTHON_MAYBE_UNUSED_VAR(
const T& ) { }
257 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
260 #ifndef CYTHON_NCP_UNUSED
261 # if CYTHON_COMPILING_IN_CPYTHON
262 # define CYTHON_NCP_UNUSED
264 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
267 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
269 #ifndef _MSC_STDINT_H_
271 typedef unsigned char uint8_t;
272 typedef unsigned int uint32_t;
274 typedef unsigned __int8 uint8_t;
275 typedef unsigned __int32 uint32_t;
281 #ifndef CYTHON_FALLTHROUGH
282 #if defined(__cplusplus) && __cplusplus >= 201103L
283 #if __has_cpp_attribute(fallthrough)
284 #define CYTHON_FALLTHROUGH [[fallthrough]]
285 #elif __has_cpp_attribute(clang::fallthrough)
286 #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
287 #elif __has_cpp_attribute(gnu::fallthrough)
288 #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
291 #ifndef CYTHON_FALLTHROUGH
292 #if __has_attribute(fallthrough)
293 #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
295 #define CYTHON_FALLTHROUGH
298 #if defined(__clang__ ) && defined(__apple_build_version__)
299 #if __apple_build_version__ < 7000000
300 #undef CYTHON_FALLTHROUGH
301 #define CYTHON_FALLTHROUGH
306 #ifndef CYTHON_INLINE
307 #if defined(__clang__)
308 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
309 #elif defined(__GNUC__)
310 #define CYTHON_INLINE __inline__
311 #elif defined(_MSC_VER)
312 #define CYTHON_INLINE __inline
313 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
314 #define CYTHON_INLINE inline
316 #define CYTHON_INLINE
320 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
321 #define Py_OptimizeFlag 0
323 #define __PYX_BUILD_PY_SSIZE_T "n"
324 #define CYTHON_FORMAT_SSIZE_T "z"
325 #if PY_MAJOR_VERSION < 3
326 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
327 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
328 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329 #define __Pyx_DefaultClassType PyClass_Type
331 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
332 #define __Pyx_DefaultClassType PyType_Type
333 #if PY_VERSION_HEX >= 0x030B00A1
334 static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(
int a,
int k,
int l,
int s,
int f,
335 PyObject *code, PyObject *
c, PyObject*
n, PyObject *
v,
336 PyObject *fv, PyObject *cell, PyObject* fn,
337 PyObject *name,
int fline, PyObject *lnos) {
338 PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
339 PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
340 const char *fn_cstr=NULL;
341 const char *name_cstr=NULL;
342 PyCodeObject* co=NULL;
343 PyObject *type, *value, *traceback;
344 PyErr_Fetch(&type, &value, &traceback);
345 if (!(kwds=PyDict_New()))
goto end;
346 if (!(argcount=PyLong_FromLong(a)))
goto end;
347 if (PyDict_SetItemString(kwds,
"co_argcount", argcount) != 0)
goto end;
348 if (!(posonlyargcount=PyLong_FromLong(0)))
goto end;
349 if (PyDict_SetItemString(kwds,
"co_posonlyargcount", posonlyargcount) != 0)
goto end;
350 if (!(kwonlyargcount=PyLong_FromLong(k)))
goto end;
351 if (PyDict_SetItemString(kwds,
"co_kwonlyargcount", kwonlyargcount) != 0)
goto end;
352 if (!(nlocals=PyLong_FromLong(l)))
goto end;
353 if (PyDict_SetItemString(kwds,
"co_nlocals", nlocals) != 0)
goto end;
354 if (!(stacksize=PyLong_FromLong(
s)))
goto end;
355 if (PyDict_SetItemString(kwds,
"co_stacksize", stacksize) != 0)
goto end;
356 if (!(flags=PyLong_FromLong(
f)))
goto end;
357 if (PyDict_SetItemString(kwds,
"co_flags", flags) != 0)
goto end;
358 if (PyDict_SetItemString(kwds,
"co_code", code) != 0)
goto end;
359 if (PyDict_SetItemString(kwds,
"co_consts",
c) != 0)
goto end;
360 if (PyDict_SetItemString(kwds,
"co_names",
n) != 0)
goto end;
361 if (PyDict_SetItemString(kwds,
"co_varnames",
v) != 0)
goto end;
362 if (PyDict_SetItemString(kwds,
"co_freevars", fv) != 0)
goto end;
363 if (PyDict_SetItemString(kwds,
"co_cellvars", cell) != 0)
goto end;
364 if (PyDict_SetItemString(kwds,
"co_linetable", lnos) != 0)
goto end;
365 if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL)))
goto end;
366 if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL)))
goto end;
367 if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline)))
goto end;
368 if (!(replace = PyObject_GetAttrString((PyObject*)co,
"replace")))
goto cleanup_code_too;
369 if (!(empty = PyTuple_New(0)))
goto cleanup_code_too;
370 if (!(call_result = PyObject_Call(replace, empty, kwds)))
goto cleanup_code_too;
371 Py_XDECREF((PyObject*)co);
372 co = (PyCodeObject*)call_result;
376 Py_XDECREF((PyObject*)co);
381 Py_XDECREF(argcount);
382 Py_XDECREF(posonlyargcount);
383 Py_XDECREF(kwonlyargcount);
385 Py_XDECREF(stacksize);
387 Py_XDECREF(call_result);
390 PyErr_Restore(type, value, traceback);
395 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
396 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
398 #define __Pyx_DefaultClassType PyType_Type
400 #ifndef Py_TPFLAGS_CHECKTYPES
401 #define Py_TPFLAGS_CHECKTYPES 0
403 #ifndef Py_TPFLAGS_HAVE_INDEX
404 #define Py_TPFLAGS_HAVE_INDEX 0
406 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
407 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
409 #ifndef Py_TPFLAGS_HAVE_FINALIZE
410 #define Py_TPFLAGS_HAVE_FINALIZE 0
412 #ifndef METH_STACKLESS
413 #define METH_STACKLESS 0
415 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
416 #ifndef METH_FASTCALL
417 #define METH_FASTCALL 0x80
419 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *
self, PyObject *
const *args, Py_ssize_t nargs);
420 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *
self, PyObject *
const *args,
421 Py_ssize_t nargs, PyObject *kwnames);
423 #define __Pyx_PyCFunctionFast _PyCFunctionFast
424 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
426 #if CYTHON_FAST_PYCCALL
427 #define __Pyx_PyFastCFunction_Check(func)\
428 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
430 #define __Pyx_PyFastCFunction_Check(func) 0
432 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
433 #define PyObject_Malloc(s) PyMem_Malloc(s)
434 #define PyObject_Free(p) PyMem_Free(p)
435 #define PyObject_Realloc(p) PyMem_Realloc(p)
437 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
438 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
439 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
440 #define PyMem_RawFree(p) PyMem_Free(p)
442 #if CYTHON_COMPILING_IN_PYSTON
443 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
444 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
446 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
447 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
449 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
450 #define __Pyx_PyThreadState_Current PyThreadState_GET()
451 #elif PY_VERSION_HEX >= 0x03060000
452 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
453 #elif PY_VERSION_HEX >= 0x03000000
454 #define __Pyx_PyThreadState_Current PyThreadState_GET()
456 #define __Pyx_PyThreadState_Current _PyThreadState_Current
458 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
459 #include "pythread.h"
460 #define Py_tss_NEEDS_INIT 0
461 typedef int Py_tss_t;
462 static CYTHON_INLINE
int PyThread_tss_create(Py_tss_t *key) {
463 *key = PyThread_create_key();
466 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(
void) {
467 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(
sizeof(Py_tss_t));
468 *key = Py_tss_NEEDS_INIT;
471 static CYTHON_INLINE
void PyThread_tss_free(Py_tss_t *key) {
474 static CYTHON_INLINE
int PyThread_tss_is_created(Py_tss_t *key) {
475 return *key != Py_tss_NEEDS_INIT;
477 static CYTHON_INLINE
void PyThread_tss_delete(Py_tss_t *key) {
478 PyThread_delete_key(*key);
479 *key = Py_tss_NEEDS_INIT;
481 static CYTHON_INLINE
int PyThread_tss_set(Py_tss_t *key,
void *value) {
482 return PyThread_set_key_value(*key, value);
484 static CYTHON_INLINE
void * PyThread_tss_get(Py_tss_t *key) {
485 return PyThread_get_key_value(*key);
488 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
489 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
491 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
493 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
494 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
495 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
497 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
498 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
500 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
501 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
503 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
505 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
506 #define CYTHON_PEP393_ENABLED 1
507 #if defined(PyUnicode_IS_READY)
508 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
509 0 : _PyUnicode_Ready((PyObject *)(op)))
511 #define __Pyx_PyUnicode_READY(op) (0)
513 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
514 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
515 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
516 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
517 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
518 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
519 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
520 #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
521 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
522 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
524 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
527 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
530 #define CYTHON_PEP393_ENABLED 0
531 #define PyUnicode_1BYTE_KIND 1
532 #define PyUnicode_2BYTE_KIND 2
533 #define PyUnicode_4BYTE_KIND 4
534 #define __Pyx_PyUnicode_READY(op) (0)
535 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
536 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
537 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
538 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
539 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
540 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
541 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
542 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
544 #if CYTHON_COMPILING_IN_PYPY
545 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
546 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
548 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
549 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
550 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
552 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
553 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
555 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
556 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
558 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
559 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
561 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
562 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
563 #if PY_MAJOR_VERSION >= 3
564 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
566 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
568 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
569 #define PyObject_ASCII(o) PyObject_Repr(o)
571 #if PY_MAJOR_VERSION >= 3
572 #define PyBaseString_Type PyUnicode_Type
573 #define PyStringObject PyUnicodeObject
574 #define PyString_Type PyUnicode_Type
575 #define PyString_Check PyUnicode_Check
576 #define PyString_CheckExact PyUnicode_CheckExact
577 #ifndef PyObject_Unicode
578 #define PyObject_Unicode PyObject_Str
581 #if PY_MAJOR_VERSION >= 3
582 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
583 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
585 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
586 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
588 #ifndef PySet_CheckExact
589 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
591 #if PY_VERSION_HEX >= 0x030900A4
592 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
593 #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
595 #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
596 #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
598 #if CYTHON_ASSUME_SAFE_MACROS
599 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
601 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
603 #if PY_MAJOR_VERSION >= 3
604 #define PyIntObject PyLongObject
605 #define PyInt_Type PyLong_Type
606 #define PyInt_Check(op) PyLong_Check(op)
607 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
608 #define PyInt_FromString PyLong_FromString
609 #define PyInt_FromUnicode PyLong_FromUnicode
610 #define PyInt_FromLong PyLong_FromLong
611 #define PyInt_FromSize_t PyLong_FromSize_t
612 #define PyInt_FromSsize_t PyLong_FromSsize_t
613 #define PyInt_AsLong PyLong_AsLong
614 #define PyInt_AS_LONG PyLong_AS_LONG
615 #define PyInt_AsSsize_t PyLong_AsSsize_t
616 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
617 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
618 #define PyNumber_Int PyNumber_Long
620 #if PY_MAJOR_VERSION >= 3
621 #define PyBoolObject PyLongObject
623 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
624 #ifndef PyUnicode_InternFromString
625 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
628 #if PY_VERSION_HEX < 0x030200A4
629 typedef long Py_hash_t;
630 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
631 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
633 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
634 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
636 #if PY_MAJOR_VERSION >= 3
637 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
639 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
641 #if CYTHON_USE_ASYNC_SLOTS
642 #if PY_VERSION_HEX >= 0x030500B1
643 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
644 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
646 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
649 #define __Pyx_PyType_AsAsync(obj) NULL
651 #ifndef __Pyx_PyAsyncMethodsStruct
656 } __Pyx_PyAsyncMethodsStruct;
659 #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
660 #if !defined(_USE_MATH_DEFINES)
661 #define _USE_MATH_DEFINES
666 #define __PYX_NAN() ((float) NAN)
668 static CYTHON_INLINE
float __PYX_NAN() {
670 memset(&value, 0xFF,
sizeof(value));
674 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
675 #define __Pyx_truncl trunc
677 #define __Pyx_truncl truncl
680 #define __PYX_MARK_ERR_POS(f_index, lineno) \
681 { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
682 #define __PYX_ERR(f_index, lineno, Ln_error) \
683 { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
685 #ifndef __PYX_EXTERN_C
687 #define __PYX_EXTERN_C extern "C"
689 #define __PYX_EXTERN_C extern
693 #define __PYX_HAVE__cnumericalFlux
694 #define __PYX_HAVE_API__cnumericalFlux
698 #include "numpy/arrayobject.h"
699 #include "numpy/ndarrayobject.h"
700 #include "numpy/ndarraytypes.h"
701 #include "numpy/arrayscalars.h"
702 #include "numpy/ufuncobject.h"
711 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
712 #define CYTHON_WITHOUT_ASSERTIONS
715 typedef struct {PyObject **p;
const char *
s;
const Py_ssize_t
n;
const char* encoding;
716 const char is_unicode;
const char is_str;
const char intern; } __Pyx_StringTabEntry;
718 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
719 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
720 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
721 #define __PYX_DEFAULT_STRING_ENCODING ""
722 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
723 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
724 #define __Pyx_uchar_cast(c) ((unsigned char)c)
725 #define __Pyx_long_cast(x) ((long)x)
726 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
727 (sizeof(type) < sizeof(Py_ssize_t)) ||\
728 (sizeof(type) > sizeof(Py_ssize_t) &&\
729 likely(v < (type)PY_SSIZE_T_MAX ||\
730 v == (type)PY_SSIZE_T_MAX) &&\
731 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
732 v == (type)PY_SSIZE_T_MIN))) ||\
733 (sizeof(type) == sizeof(Py_ssize_t) &&\
734 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
735 v == (type)PY_SSIZE_T_MAX))) )
736 static CYTHON_INLINE
int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
737 return (
size_t) i < (size_t) limit;
739 #if defined (__cplusplus) && __cplusplus >= 201103L
741 #define __Pyx_sst_abs(value) std::abs(value)
742 #elif SIZEOF_INT >= SIZEOF_SIZE_T
743 #define __Pyx_sst_abs(value) abs(value)
744 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
745 #define __Pyx_sst_abs(value) labs(value)
746 #elif defined (_MSC_VER)
747 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
748 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
749 #define __Pyx_sst_abs(value) llabs(value)
750 #elif defined (__GNUC__)
751 #define __Pyx_sst_abs(value) __builtin_llabs(value)
753 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
755 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject*);
756 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
757 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
758 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
759 #define __Pyx_PyBytes_FromString PyBytes_FromString
760 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
761 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char*);
762 #if PY_MAJOR_VERSION < 3
763 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
764 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
766 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
767 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
769 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
770 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
771 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
772 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
773 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
774 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
775 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
776 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
777 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
778 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
779 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
780 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
781 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
782 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
783 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
784 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
785 static CYTHON_INLINE
size_t __Pyx_Py_UNICODE_strlen(
const Py_UNICODE *
u) {
786 const Py_UNICODE *u_end =
u;
788 return (
size_t)(u_end -
u - 1);
790 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
791 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
792 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
793 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
794 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
795 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b);
796 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*);
797 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
798 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
799 #define __Pyx_PySequence_Tuple(obj)\
800 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
801 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
802 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t);
803 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
804 #if CYTHON_ASSUME_SAFE_MACROS
805 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
807 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
809 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
810 #if PY_MAJOR_VERSION >= 3
811 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
813 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
815 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
816 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
817 static int __Pyx_sys_getdefaultencoding_not_ascii;
818 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
820 PyObject* default_encoding = NULL;
821 PyObject* ascii_chars_u = NULL;
822 PyObject* ascii_chars_b = NULL;
823 const char* default_encoding_c;
824 sys = PyImport_ImportModule(
"sys");
826 default_encoding = PyObject_CallMethod(sys, (
char*)
"getdefaultencoding", NULL);
828 if (!default_encoding)
goto bad;
829 default_encoding_c = PyBytes_AsString(default_encoding);
830 if (!default_encoding_c)
goto bad;
831 if (strcmp(default_encoding_c,
"ascii") == 0) {
832 __Pyx_sys_getdefaultencoding_not_ascii = 0;
834 char ascii_chars[128];
836 for (
c = 0;
c < 128;
c++) {
839 __Pyx_sys_getdefaultencoding_not_ascii = 1;
840 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
841 if (!ascii_chars_u)
goto bad;
842 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
843 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
846 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
850 Py_DECREF(ascii_chars_u);
851 Py_DECREF(ascii_chars_b);
853 Py_DECREF(default_encoding);
856 Py_XDECREF(default_encoding);
857 Py_XDECREF(ascii_chars_u);
858 Py_XDECREF(ascii_chars_b);
862 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
863 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
865 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
866 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
867 static char* __PYX_DEFAULT_STRING_ENCODING;
868 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
870 PyObject* default_encoding = NULL;
871 char* default_encoding_c;
872 sys = PyImport_ImportModule(
"sys");
874 default_encoding = PyObject_CallMethod(sys, (
char*) (
const char*)
"getdefaultencoding", NULL);
876 if (!default_encoding)
goto bad;
877 default_encoding_c = PyBytes_AsString(default_encoding);
878 if (!default_encoding_c)
goto bad;
879 __PYX_DEFAULT_STRING_ENCODING = (
char*) malloc(strlen(default_encoding_c) + 1);
880 if (!__PYX_DEFAULT_STRING_ENCODING)
goto bad;
881 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
882 Py_DECREF(default_encoding);
885 Py_XDECREF(default_encoding);
893 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
894 #define likely(x) __builtin_expect(!!(x), 1)
895 #define unlikely(x) __builtin_expect(!!(x), 0)
897 #define likely(x) (x)
898 #define unlikely(x) (x)
900 static CYTHON_INLINE
void __Pyx_pretend_to_initialize(
void* ptr) { (void)ptr; }
902 static PyObject *__pyx_m = NULL;
903 static PyObject *__pyx_d;
904 static PyObject *__pyx_b;
905 static PyObject *__pyx_cython_runtime = NULL;
906 static PyObject *__pyx_empty_tuple;
907 static PyObject *__pyx_empty_bytes;
908 static PyObject *__pyx_empty_unicode;
909 static int __pyx_lineno;
910 static int __pyx_clineno = 0;
911 static const char * __pyx_cfilenm= __FILE__;
912 static const char *__pyx_filename;
915 #if !defined(CYTHON_CCOMPLEX)
916 #if defined(__cplusplus)
917 #define CYTHON_CCOMPLEX 1
918 #elif defined(_Complex_I)
919 #define CYTHON_CCOMPLEX 1
921 #define CYTHON_CCOMPLEX 0
931 #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
933 #define _Complex_I 1.0fj
937 static const char *__pyx_f[] = {
938 "proteus/cnumericalFlux.pyx",
950 typedef npy_int8 __pyx_t_5numpy_int8_t;
959 typedef npy_int16 __pyx_t_5numpy_int16_t;
968 typedef npy_int32 __pyx_t_5numpy_int32_t;
977 typedef npy_int64 __pyx_t_5numpy_int64_t;
986 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
995 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1004 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1013 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1022 typedef npy_float32 __pyx_t_5numpy_float32_t;
1031 typedef npy_float64 __pyx_t_5numpy_float64_t;
1040 typedef npy_long __pyx_t_5numpy_int_t;
1049 typedef npy_longlong __pyx_t_5numpy_long_t;
1058 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1067 typedef npy_ulong __pyx_t_5numpy_uint_t;
1076 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1085 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1094 typedef npy_intp __pyx_t_5numpy_intp_t;
1103 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1112 typedef npy_double __pyx_t_5numpy_float_t;
1121 typedef npy_double __pyx_t_5numpy_double_t;
1130 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1134 typedef ::std::complex< float > __pyx_t_float_complex;
1136 typedef float _Complex __pyx_t_float_complex;
1139 typedef struct {
float real, imag; } __pyx_t_float_complex;
1141 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1146 typedef ::std::complex< double > __pyx_t_double_complex;
1148 typedef double _Complex __pyx_t_double_complex;
1151 typedef struct {
double real, imag; } __pyx_t_double_complex;
1153 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1165 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1174 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1183 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1192 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1196 #ifndef CYTHON_REFNANNY
1197 #define CYTHON_REFNANNY 0
1201 void (*INCREF)(
void*, PyObject*, int);
1202 void (*DECREF)(
void*, PyObject*, int);
1203 void (*GOTREF)(
void*, PyObject*, int);
1204 void (*GIVEREF)(
void*, PyObject*, int);
1205 void* (*SetupContext)(
const char*, int,
const char*);
1206 void (*FinishContext)(
void**);
1207 } __Pyx_RefNannyAPIStruct;
1208 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1209 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
1210 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1212 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1214 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1215 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1216 PyGILState_Release(__pyx_gilstate_save);\
1218 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1221 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1222 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1224 #define __Pyx_RefNannyFinishContext()\
1225 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1226 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1227 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1228 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1229 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1230 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1231 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1232 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1233 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1235 #define __Pyx_RefNannyDeclarations
1236 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1237 #define __Pyx_RefNannyFinishContext()
1238 #define __Pyx_INCREF(r) Py_INCREF(r)
1239 #define __Pyx_DECREF(r) Py_DECREF(r)
1240 #define __Pyx_GOTREF(r)
1241 #define __Pyx_GIVEREF(r)
1242 #define __Pyx_XINCREF(r) Py_XINCREF(r)
1243 #define __Pyx_XDECREF(r) Py_XDECREF(r)
1244 #define __Pyx_XGOTREF(r)
1245 #define __Pyx_XGIVEREF(r)
1247 #define __Pyx_XDECREF_SET(r, v) do {\
1248 PyObject *tmp = (PyObject *) r;\
1249 r = v; __Pyx_XDECREF(tmp);\
1251 #define __Pyx_DECREF_SET(r, v) do {\
1252 PyObject *tmp = (PyObject *) r;\
1253 r = v; __Pyx_DECREF(tmp);\
1255 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1256 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1259 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
1260 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1263 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
1266 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1267 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1268 const char* function_name);
1271 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1272 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1273 __Pyx__ArgTypeTest(obj, type, name, exact))
1274 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
1277 #if CYTHON_USE_TYPE_SLOTS
1278 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1280 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1284 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1285 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1286 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1287 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1288 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1289 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1290 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1291 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1292 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1293 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1294 int wraparound,
int boundscheck);
1295 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1296 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1297 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1298 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1299 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1300 int wraparound,
int boundscheck);
1301 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1302 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1303 int is_list,
int wraparound,
int boundscheck);
1306 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1309 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
1310 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
1311 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
1312 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
1313 (version_var) = __PYX_GET_DICT_VERSION(dict);\
1314 (cache_var) = (value);
1315 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
1316 static PY_UINT64_T __pyx_dict_version = 0;\
1317 static PyObject *__pyx_dict_cached_value = NULL;\
1318 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
1319 (VAR) = __pyx_dict_cached_value;\
1321 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1322 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
1325 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
1326 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
1327 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
1329 #define __PYX_GET_DICT_VERSION(dict) (0)
1330 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
1331 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
1335 #if CYTHON_USE_DICT_VERSIONS
1336 #define __Pyx_GetModuleGlobalName(var, name) {\
1337 static PY_UINT64_T __pyx_dict_version = 0;\
1338 static PyObject *__pyx_dict_cached_value = NULL;\
1339 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
1340 (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
1341 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1343 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
1344 PY_UINT64_T __pyx_dict_version;\
1345 PyObject *__pyx_dict_cached_value;\
1346 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1348 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
1350 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1351 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1352 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
1356 #if CYTHON_FAST_PYCCALL
1357 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
1359 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
1363 #if CYTHON_FAST_PYCALL
1364 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
1365 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
1366 #if 1 || PY_VERSION_HEX < 0x030600B1
1367 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
1369 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
1371 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
1372 (sizeof(char [1 - 2*!(cond)]) - 1)
1373 #ifndef Py_MEMBER_SIZE
1374 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
1376 #if CYTHON_FAST_PYCALL
1377 static size_t __pyx_pyframe_localsplus_offset = 0;
1378 #include "frameobject.h"
1379 #if PY_VERSION_HEX >= 0x030b00a6
1380 #ifndef Py_BUILD_CORE
1381 #define Py_BUILD_CORE 1
1383 #include "internal/pycore_frame.h"
1385 #define __Pxy_PyFrame_Initialize_Offsets()\
1386 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
1387 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
1388 #define __Pyx_PyFrame_GetLocalsplus(frame)\
1389 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1390 #endif // CYTHON_FAST_PYCALL
1394 #if CYTHON_COMPILING_IN_CPYTHON
1395 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1397 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1401 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2);
1404 #if CYTHON_COMPILING_IN_CPYTHON
1405 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
1409 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
1412 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2,
long intval,
long inplace);
1415 #if CYTHON_USE_EXC_INFO_STACK
1416 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1420 #if CYTHON_FAST_THREAD_STATE
1421 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1422 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1423 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1425 #define __Pyx_PyThreadState_declare
1426 #define __Pyx_PyThreadState_assign
1427 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1431 #if CYTHON_FAST_THREAD_STATE
1432 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1433 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1434 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1435 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1437 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1438 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1442 #if CYTHON_FAST_THREAD_STATE
1443 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1444 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1446 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1450 #if CYTHON_FAST_THREAD_STATE
1451 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1452 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1454 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1458 #if CYTHON_FAST_THREAD_STATE
1459 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1460 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1461 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1462 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1463 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1464 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1465 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1466 #if CYTHON_COMPILING_IN_CPYTHON
1467 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1469 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1472 #define __Pyx_PyErr_Clear() PyErr_Clear()
1473 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1474 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1475 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1476 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1477 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1478 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1479 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1483 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1486 #ifndef __PYX_HAVE_RT_ImportType_proto
1487 #define __PYX_HAVE_RT_ImportType_proto
1488 enum __Pyx_ImportType_CheckSize {
1489 __Pyx_ImportType_CheckSize_Error = 0,
1490 __Pyx_ImportType_CheckSize_Warn = 1,
1491 __Pyx_ImportType_CheckSize_Ignore = 2
1493 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
1497 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
1500 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
1503 #ifdef CYTHON_CLINE_IN_TRACEBACK
1504 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1506 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1511 PyCodeObject* code_object;
1513 } __Pyx_CodeObjectCacheEntry;
1514 struct __Pyx_CodeObjectCache {
1517 __Pyx_CodeObjectCacheEntry* entries;
1519 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1520 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1521 static PyCodeObject *__pyx_find_code_object(
int code_line);
1522 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1525 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1526 int py_line,
const char *filename);
1529 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
1530 #define __Pyx_HAS_GCC_DIAGNOSTIC
1536 #define __Pyx_CREAL(z) ((z).real())
1537 #define __Pyx_CIMAG(z) ((z).imag())
1539 #define __Pyx_CREAL(z) (__real__(z))
1540 #define __Pyx_CIMAG(z) (__imag__(z))
1543 #define __Pyx_CREAL(z) ((z).real)
1544 #define __Pyx_CIMAG(z) ((z).imag)
1546 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
1547 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
1548 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1549 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1551 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
1552 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
1557 #define __Pyx_c_eq_float(a, b) ((a)==(b))
1558 #define __Pyx_c_sum_float(a, b) ((a)+(b))
1559 #define __Pyx_c_diff_float(a, b) ((a)-(b))
1560 #define __Pyx_c_prod_float(a, b) ((a)*(b))
1561 #define __Pyx_c_quot_float(a, b) ((a)/(b))
1562 #define __Pyx_c_neg_float(a) (-(a))
1564 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
1565 #define __Pyx_c_conj_float(z) (::std::conj(z))
1567 #define __Pyx_c_abs_float(z) (::std::abs(z))
1568 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
1571 #define __Pyx_c_is_zero_float(z) ((z)==0)
1572 #define __Pyx_c_conj_float(z) (conjf(z))
1574 #define __Pyx_c_abs_float(z) (cabsf(z))
1575 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
1579 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
1580 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
1581 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
1582 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
1583 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
1584 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
1585 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
1586 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
1588 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
1589 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
1595 #define __Pyx_c_eq_double(a, b) ((a)==(b))
1596 #define __Pyx_c_sum_double(a, b) ((a)+(b))
1597 #define __Pyx_c_diff_double(a, b) ((a)-(b))
1598 #define __Pyx_c_prod_double(a, b) ((a)*(b))
1599 #define __Pyx_c_quot_double(a, b) ((a)/(b))
1600 #define __Pyx_c_neg_double(a) (-(a))
1602 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
1603 #define __Pyx_c_conj_double(z) (::std::conj(z))
1605 #define __Pyx_c_abs_double(z) (::std::abs(z))
1606 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
1609 #define __Pyx_c_is_zero_double(z) ((z)==0)
1610 #define __Pyx_c_conj_double(z) (conj(z))
1612 #define __Pyx_c_abs_double(z) (cabs(z))
1613 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
1617 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
1618 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
1619 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
1620 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
1621 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
1622 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
1623 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
1624 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
1626 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
1627 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
1632 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
1635 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
1638 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
1641 #if CYTHON_COMPILING_IN_CPYTHON
1642 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1643 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1644 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1645 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1647 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1648 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1649 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1651 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1654 static int __Pyx_check_binary_version(
void);
1657 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1669 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
1682 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
1683 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
1684 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
1685 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
1686 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
1687 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
1688 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
1689 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
1690 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
1691 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
1692 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
1693 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
1694 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
1695 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
1696 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1699 #define __Pyx_MODULE_NAME "cnumericalFlux"
1700 extern int __pyx_module_is_main_cnumericalFlux;
1701 int __pyx_module_is_main_cnumericalFlux = 0;
1704 static PyObject *__pyx_builtin_ImportError;
1705 static const char __pyx_k_H[] =
"H";
1706 static const char __pyx_k_K[] =
"K";
1707 static const char __pyx_k_V[] =
"V";
1708 static const char __pyx_k_a[] =
"a";
1709 static const char __pyx_k_f[] =
"f";
1710 static const char __pyx_k_g[] =
"g";
1711 static const char __pyx_k_h[] =
"h";
1712 static const char __pyx_k_n[] =
"n";
1713 static const char __pyx_k_p[] =
"p";
1714 static const char __pyx_k_u[] =
"u";
1715 static const char __pyx_k_v[] =
"v";
1716 static const char __pyx_k_w[] =
"w";
1717 static const char __pyx_k_DV[] =
"DV";
1718 static const char __pyx_k_dH[] =
"dH";
1719 static const char __pyx_k_dK[] =
"dK";
1720 static const char __pyx_k_da[] =
"da";
1721 static const char __pyx_k_df[] =
"df";
1722 static const char __pyx_k_fn[] =
"fn";
1723 static const char __pyx_k_fw[] =
"fw";
1724 static const char __pyx_k_hu[] =
"hu";
1725 static const char __pyx_k_hv[] =
"hv";
1726 static const char __pyx_k_np[] =
"np";
1727 static const char __pyx_k_sw[] =
"sw";
1728 static const char __pyx_k_dim[] =
"dim";
1729 static const char __pyx_k_f_m[] =
"f_m";
1730 static const char __pyx_k_fpu[] =
"fpu";
1731 static const char __pyx_k_fpv[] =
"fpv";
1732 static const char __pyx_k_fpw[] =
"fpw";
1733 static const char __pyx_k_l2g[] =
"l2g";
1734 static const char __pyx_k_phi[] =
"phi";
1735 static const char __pyx_k_q_a[] =
"q_a";
1736 static const char __pyx_k_s_w[] =
"s_w";
1737 static const char __pyx_k_sys[] =
"sys";
1738 static const char __pyx_k_u_m[] =
"u_m";
1739 static const char __pyx_k_u_w[] =
"u_w";
1740 static const char __pyx_k_aHat[] =
"aHat";
1741 static const char __pyx_k_a_mm[] =
"a_mm";
1742 static const char __pyx_k_a_mw[] =
"a_mw";
1743 static const char __pyx_k_a_nn[] =
"a_nn";
1744 static const char __pyx_k_a_wm[] =
"a_wm";
1745 static const char __pyx_k_a_ww[] =
"a_ww";
1746 static const char __pyx_k_bc_H[] =
"bc_H";
1747 static const char __pyx_k_bc_a[] =
"bc_a";
1748 static const char __pyx_k_bc_f[] =
"bc_f";
1749 static const char __pyx_k_bc_p[] =
"bc_p";
1750 static const char __pyx_k_bc_u[] =
"bc_u";
1751 static const char __pyx_k_bc_v[] =
"bc_v";
1752 static const char __pyx_k_bc_w[] =
"bc_w";
1753 static const char __pyx_k_dphi[] =
"dphi";
1754 static const char __pyx_k_exit[] =
"exit";
1755 static const char __pyx_k_flux[] =
"flux";
1756 static const char __pyx_k_h_lq[] =
"h_lq";
1757 static const char __pyx_k_h_lv[] =
"h_lv";
1758 static const char __pyx_k_h_rq[] =
"h_rq";
1759 static const char __pyx_k_h_rv[] =
"h_rv";
1760 static const char __pyx_k_main[] =
"__main__";
1761 static const char __pyx_k_name[] =
"__name__";
1762 static const char __pyx_k_psiw[] =
"psiw";
1763 static const char __pyx_k_sape[] =
"sape";
1764 static const char __pyx_k_test[] =
"__test__";
1765 static const char __pyx_k_DV_eb[] =
"DV_eb";
1766 static const char __pyx_k_bc_dH[] =
"bc_dH";
1767 static const char __pyx_k_bc_df[] =
"bc_df";
1768 static const char __pyx_k_bc_fn[] =
"bc_fn";
1769 static const char __pyx_k_bc_fw[] =
"bc_fw";
1770 static const char __pyx_k_bc_sw[] =
"bc_sw";
1771 static const char __pyx_k_df_du[] =
"df_du";
1772 static const char __pyx_k_df_dv[] =
"df_dv";
1773 static const char __pyx_k_df_dw[] =
"df_dw";
1774 static const char __pyx_k_dflux[] =
"dflux";
1775 static const char __pyx_k_ebq_a[] =
"ebq_a";
1776 static const char __pyx_k_fluxn[] =
"fluxn";
1777 static const char __pyx_k_fluxw[] =
"fluxw";
1778 static const char __pyx_k_h_eps[] =
"h_eps";
1779 static const char __pyx_k_hu_lq[] =
"hu_lq";
1780 static const char __pyx_k_hu_lv[] =
"hu_lv";
1781 static const char __pyx_k_hu_rq[] =
"hu_rq";
1782 static const char __pyx_k_hu_rv[] =
"hu_rv";
1783 static const char __pyx_k_hv_lq[] =
"hv_lq";
1784 static const char __pyx_k_hv_rq[] =
"hv_rq";
1785 static const char __pyx_k_numpy[] =
"numpy";
1786 static const char __pyx_k_psi_c[] =
"psi_c";
1787 static const char __pyx_k_psi_n[] =
"psi_n";
1788 static const char __pyx_k_psi_w[] =
"psi_w";
1789 static const char __pyx_k_sahpe[] =
"sahpe";
1790 static const char __pyx_k_sigma[] =
"sigma";
1791 static const char __pyx_k_tol_u[] =
"tol_u";
1792 static const char __pyx_k_aSplit[] =
"aSplit";
1793 static const char __pyx_k_aTilde[] =
"aTilde";
1794 static const char __pyx_k_bc_f_m[] =
"bc_f_m";
1795 static const char __pyx_k_bc_fpu[] =
"bc_fpu";
1796 static const char __pyx_k_bc_fpv[] =
"bc_fpv";
1797 static const char __pyx_k_bc_fpw[] =
"bc_fpw";
1798 static const char __pyx_k_bc_s_w[] =
"bc_s_w";
1799 static const char __pyx_k_bc_u_m[] =
"bc_u_m";
1800 static const char __pyx_k_bc_u_w[] =
"bc_u_w";
1801 static const char __pyx_k_colind[] =
"colind";
1802 static const char __pyx_k_f_mass[] =
"f_mass";
1803 static const char __pyx_k_f_umom[] =
"f_umom";
1804 static const char __pyx_k_f_vmom[] =
"f_vmom";
1805 static const char __pyx_k_f_wmom[] =
"f_wmom";
1806 static const char __pyx_k_flux_h[] =
"flux_h";
1807 static const char __pyx_k_fluxpu[] =
"fluxpu";
1808 static const char __pyx_k_fluxpv[] =
"fluxpv";
1809 static const char __pyx_k_fluxpw[] =
"fluxpw";
1810 static const char __pyx_k_grad_u[] =
"grad_u";
1811 static const char __pyx_k_grad_v[] =
"grad_v";
1812 static const char __pyx_k_import[] =
"__import__";
1813 static const char __pyx_k_nSpace[] =
"nSpace";
1814 static const char __pyx_k_phi_bc[] =
"phi_bc";
1815 static const char __pyx_k_rowptr[] =
"rowptr";
1816 static const char __pyx_k_K_rho_g[] =
"K_rho_g";
1817 static const char __pyx_k_bc_a_mm[] =
"bc_a_mm";
1818 static const char __pyx_k_bc_a_mw[] =
"bc_a_mw";
1819 static const char __pyx_k_bc_a_nn[] =
"bc_a_nn";
1820 static const char __pyx_k_bc_a_wm[] =
"bc_a_wm";
1821 static const char __pyx_k_bc_a_ww[] =
"bc_a_ww";
1822 static const char __pyx_k_bc_psiw[] =
"bc_psiw";
1823 static const char __pyx_k_df_m_dw[] =
"df_m_dw";
1824 static const char __pyx_k_dfn_dsw[] =
"dfn_dsw";
1825 static const char __pyx_k_dfpu_dp[] =
"dfpu_dp";
1826 static const char __pyx_k_dfpv_dp[] =
"dfpv_dp";
1827 static const char __pyx_k_dfpw_dp[] =
"dfpw_dp";
1828 static const char __pyx_k_dfw_dsw[] =
"dfw_dsw";
1829 static const char __pyx_k_dm_umom[] =
"dm_umom";
1830 static const char __pyx_k_eb_aHat[] =
"eb_aHat";
1831 static const char __pyx_k_epsFact[] =
"epsFact";
1832 static const char __pyx_k_flux_hu[] =
"flux_hu";
1833 static const char __pyx_k_flux_hv[] =
"flux_hv";
1834 static const char __pyx_k_penalty[] =
"penalty";
1835 static const char __pyx_k_bc_psi_c[] =
"bc_psi_c";
1836 static const char __pyx_k_bc_psi_n[] =
"bc_psi_n";
1837 static const char __pyx_k_bc_psi_w[] =
"bc_psi_w";
1838 static const char __pyx_k_dK_rho_g[] =
"dK_rho_g";
1839 static const char __pyx_k_da_mm_dm[] =
"da_mm_dm";
1840 static const char __pyx_k_da_mm_dw[] =
"da_mm_dw";
1841 static const char __pyx_k_da_mw_dm[] =
"da_mw_dm";
1842 static const char __pyx_k_da_mw_dw[] =
"da_mw_dw";
1843 static const char __pyx_k_da_nn_dn[] =
"da_nn_dn";
1844 static const char __pyx_k_da_nn_dw[] =
"da_nn_dw";
1845 static const char __pyx_k_da_wm_dm[] =
"da_wm_dm";
1846 static const char __pyx_k_da_wm_dw[] =
"da_wm_dw";
1847 static const char __pyx_k_da_ww_dn[] =
"da_ww_dn";
1848 static const char __pyx_k_da_ww_dw[] =
"da_ww_dw";
1849 static const char __pyx_k_dflux_du[] =
"dflux_du";
1850 static const char __pyx_k_dflux_dv[] =
"dflux_dv";
1851 static const char __pyx_k_dflux_dw[] =
"dflux_dw";
1852 static const char __pyx_k_dphi_m_m[] =
"dphi_m_m";
1853 static const char __pyx_k_dphi_m_w[] =
"dphi_m_w";
1854 static const char __pyx_k_dphi_n_n[] =
"dphi_n_n";
1855 static const char __pyx_k_dphi_n_w[] =
"dphi_n_w";
1856 static const char __pyx_k_dphi_w_m[] =
"dphi_w_m";
1857 static const char __pyx_k_dphi_w_n[] =
"dphi_w_n";
1858 static const char __pyx_k_dphi_w_w[] =
"dphi_w_w";
1859 static const char __pyx_k_grad_phi[] =
"grad_phi";
1860 static const char __pyx_k_grad_psi[] =
"grad_psi";
1861 static const char __pyx_k_oneByRho[] =
"oneByRho";
1862 static const char __pyx_k_velocity[] =
"velocity";
1863 static const char __pyx_k_H_element[] =
"H_element";
1864 static const char __pyx_k_bc_f_mass[] =
"bc_f_mass";
1865 static const char __pyx_k_bc_f_umom[] =
"bc_f_umom";
1866 static const char __pyx_k_bc_f_vmom[] =
"bc_f_vmom";
1867 static const char __pyx_k_bc_f_wmom[] =
"bc_f_wmom";
1868 static const char __pyx_k_colind_mm[] =
"colind_mm";
1869 static const char __pyx_k_colind_mw[] =
"colind_mw";
1870 static const char __pyx_k_colind_nn[] =
"colind_nn";
1871 static const char __pyx_k_colind_wm[] =
"colind_wm";
1872 static const char __pyx_k_colind_ww[] =
"colind_ww";
1873 static const char __pyx_k_dfn_dpsiw[] =
"dfn_dpsiw";
1874 static const char __pyx_k_dfw_dpsiw[] =
"dfw_dpsiw";
1875 static const char __pyx_k_eb_aTilde[] =
"eb_aTilde";
1876 static const char __pyx_k_flux_mass[] =
"flux_mass";
1877 static const char __pyx_k_flux_umom[] =
"flux_umom";
1878 static const char __pyx_k_flux_vmom[] =
"flux_vmom";
1879 static const char __pyx_k_flux_wmom[] =
"flux_wmom";
1880 static const char __pyx_k_penalty_m[] =
"penalty_m";
1881 static const char __pyx_k_penalty_n[] =
"penalty_n";
1882 static const char __pyx_k_penalty_w[] =
"penalty_w";
1883 static const char __pyx_k_rowptr_mm[] =
"rowptr_mm";
1884 static const char __pyx_k_rowptr_mw[] =
"rowptr_mw";
1885 static const char __pyx_k_rowptr_nn[] =
"rowptr_nn";
1886 static const char __pyx_k_rowptr_wm[] =
"rowptr_wm";
1887 static const char __pyx_k_rowptr_ww[] =
"rowptr_ww";
1888 static const char __pyx_k_sonicFlux[] =
"sonicFlux";
1889 static const char __pyx_k_bc_dfn_dsw[] =
"bc_dfn_dsw";
1890 static const char __pyx_k_bc_dfw_dsw[] =
"bc_dfw_dsw";
1891 static const char __pyx_k_dH_element[] =
"dH_element";
1892 static const char __pyx_k_df_element[] =
"df_element";
1893 static const char __pyx_k_df_mass_du[] =
"df_mass_du";
1894 static const char __pyx_k_df_mass_dv[] =
"df_mass_dv";
1895 static const char __pyx_k_df_mass_dw[] =
"df_mass_dw";
1896 static const char __pyx_k_df_umom_dp[] =
"df_umom_dp";
1897 static const char __pyx_k_df_umom_du[] =
"df_umom_du";
1898 static const char __pyx_k_df_umom_dv[] =
"df_umom_dv";
1899 static const char __pyx_k_df_umom_dw[] =
"df_umom_dw";
1900 static const char __pyx_k_df_vmom_dp[] =
"df_vmom_dp";
1901 static const char __pyx_k_df_vmom_du[] =
"df_vmom_du";
1902 static const char __pyx_k_df_vmom_dv[] =
"df_vmom_dv";
1903 static const char __pyx_k_df_vmom_dw[] =
"df_vmom_dw";
1904 static const char __pyx_k_df_wmom_dp[] =
"df_wmom_dp";
1905 static const char __pyx_k_df_wmom_du[] =
"df_wmom_du";
1906 static const char __pyx_k_df_wmom_dv[] =
"df_wmom_dv";
1907 static const char __pyx_k_df_wmom_dw[] =
"df_wmom_dw";
1908 static const char __pyx_k_dflux_left[] =
"dflux_left";
1909 static const char __pyx_k_dfluxn_dsw[] =
"dfluxn_dsw";
1910 static const char __pyx_k_dfluxpu_dp[] =
"dfluxpu_dp";
1911 static const char __pyx_k_dfluxpv_dp[] =
"dfluxpv_dp";
1912 static const char __pyx_k_dfluxpw_dp[] =
"dfluxpw_dp";
1913 static const char __pyx_k_dfluxw_dsw[] =
"dfluxw_dsw";
1914 static const char __pyx_k_dpsi_n_dsw[] =
"dpsi_n_dsw";
1915 static const char __pyx_k_grad_phi_m[] =
"grad_phi_m";
1916 static const char __pyx_k_grad_phi_n[] =
"grad_phi_n";
1917 static const char __pyx_k_grad_phi_w[] =
"grad_phi_w";
1918 static const char __pyx_k_inflowFlag[] =
"inflowFlag";
1919 static const char __pyx_k_inflowFlux[] =
"inflowFlux";
1920 static const char __pyx_k_lambda_bar[] =
"lambda_bar";
1921 static const char __pyx_k_sonicPoint[] =
"sonicPoint";
1922 static const char __pyx_k_ImportError[] =
"ImportError";
1923 static const char __pyx_k_bc_grad_phi[] =
"bc_grad_phi";
1924 static const char __pyx_k_dflux_right[] =
"dflux_right";
1925 static const char __pyx_k_dstress_u_u[] =
"dstress_u_u";
1926 static const char __pyx_k_dstress_u_v[] =
"dstress_u_v";
1927 static const char __pyx_k_dstress_u_w[] =
"dstress_u_w";
1928 static const char __pyx_k_dstress_v_u[] =
"dstress_v_u";
1929 static const char __pyx_k_dstress_v_v[] =
"dstress_v_v";
1930 static const char __pyx_k_dstress_v_w[] =
"dstress_v_w";
1931 static const char __pyx_k_dstress_w_u[] =
"dstress_w_u";
1932 static const char __pyx_k_dstress_w_v[] =
"dstress_w_v";
1933 static const char __pyx_k_dstress_w_w[] =
"dstress_w_w";
1934 static const char __pyx_k_bc_dfn_dpsiw[] =
"bc_dfn_dpsiw";
1935 static const char __pyx_k_bc_dfw_dpsiw[] =
"bc_dfw_dpsiw";
1936 static const char __pyx_k_dfluxn_dpsiw[] =
"dfluxn_dpsiw";
1937 static const char __pyx_k_dfluxw_dpsiw[] =
"dfluxw_dpsiw";
1938 static const char __pyx_k_dpsi_n_dpsic[] =
"dpsi_n_dpsic";
1939 static const char __pyx_k_dpsi_n_dpsiw[] =
"dpsi_n_dpsiw";
1940 static const char __pyx_k_fluxJacobian[] =
"fluxJacobian";
1941 static const char __pyx_k_safetyFactor[] =
"safetyFactor";
1942 static const char __pyx_k_stressFlux_u[] =
"stressFlux_u";
1943 static const char __pyx_k_stressFlux_v[] =
"stressFlux_v";
1944 static const char __pyx_k_stressFlux_w[] =
"stressFlux_w";
1945 static const char __pyx_k_advectiveFlux[] =
"advectiveFlux";
1946 static const char __pyx_k_bc_grad_phi_m[] =
"bc_grad_phi_m";
1947 static const char __pyx_k_bc_grad_phi_n[] =
"bc_grad_phi_n";
1948 static const char __pyx_k_bc_grad_phi_w[] =
"bc_grad_phi_w";
1949 static const char __pyx_k_dflux_mass_dp[] =
"dflux_mass_dp";
1950 static const char __pyx_k_dflux_mass_du[] =
"dflux_mass_du";
1951 static const char __pyx_k_dflux_mass_dv[] =
"dflux_mass_dv";
1952 static const char __pyx_k_dflux_mass_dw[] =
"dflux_mass_dw";
1953 static const char __pyx_k_dflux_umom_dp[] =
"dflux_umom_dp";
1954 static const char __pyx_k_dflux_umom_du[] =
"dflux_umom_du";
1955 static const char __pyx_k_dflux_umom_dv[] =
"dflux_umom_dv";
1956 static const char __pyx_k_dflux_umom_dw[] =
"dflux_umom_dw";
1957 static const char __pyx_k_dflux_vmom_dp[] =
"dflux_vmom_dp";
1958 static const char __pyx_k_dflux_vmom_du[] =
"dflux_vmom_du";
1959 static const char __pyx_k_dflux_vmom_dv[] =
"dflux_vmom_dv";
1960 static const char __pyx_k_dflux_vmom_dw[] =
"dflux_vmom_dw";
1961 static const char __pyx_k_dflux_wmom_dp[] =
"dflux_wmom_dp";
1962 static const char __pyx_k_dflux_wmom_du[] =
"dflux_wmom_du";
1963 static const char __pyx_k_dflux_wmom_dv[] =
"dflux_wmom_dv";
1964 static const char __pyx_k_dflux_wmom_dw[] =
"dflux_wmom_dw";
1965 static const char __pyx_k_diffusiveFlux[] =
"diffusiveFlux";
1966 static const char __pyx_k_isDOFBoundary[] =
"isDOFBoundary";
1967 static const char __pyx_k_isSeepageFace[] =
"isSeepageFace";
1968 static const char __pyx_k_penalty_floor[] =
"penalty_floor";
1969 static const char __pyx_k_scale_penalty[] =
"scale_penalty";
1970 static const char __pyx_k_setInflowFlux[] =
"setInflowFlux";
1971 static const char __pyx_k_speedEvalFlag[] =
"speedEvalFlag";
1972 static const char __pyx_k_cnumericalFlux[] =
"cnumericalFlux";
1973 static const char __pyx_k_advectiveFlux_m[] =
"advectiveFlux_m";
1974 static const char __pyx_k_fluxJacobian_eb[] =
"fluxJacobian_eb";
1975 static const char __pyx_k_fluxJacobian_mm[] =
"fluxJacobian_mm";
1976 static const char __pyx_k_fluxJacobian_mw[] =
"fluxJacobian_mw";
1977 static const char __pyx_k_fluxJacobian_nn[] =
"fluxJacobian_nn";
1978 static const char __pyx_k_fluxJacobian_nw[] =
"fluxJacobian_nw";
1979 static const char __pyx_k_fluxJacobian_wm[] =
"fluxJacobian_wm";
1980 static const char __pyx_k_fluxJacobian_wn[] =
"fluxJacobian_wn";
1981 static const char __pyx_k_fluxJacobian_ww[] =
"fluxJacobian_ww";
1982 static const char __pyx_k_isDOFBoundary_p[] =
"isDOFBoundary_p";
1983 static const char __pyx_k_isDOFBoundary_u[] =
"isDOFBoundary_u";
1984 static const char __pyx_k_isDOFBoundary_v[] =
"isDOFBoundary_v";
1985 static const char __pyx_k_isDOFBoundary_w[] =
"isDOFBoundary_w";
1986 static const char __pyx_k_applySeepageFace[] =
"applySeepageFace";
1987 static const char __pyx_k_diffusiveFlux_mm[] =
"diffusiveFlux_mm";
1988 static const char __pyx_k_diffusiveFlux_mw[] =
"diffusiveFlux_mw";
1989 static const char __pyx_k_diffusiveFlux_nn[] =
"diffusiveFlux_nn";
1990 static const char __pyx_k_diffusiveFlux_wm[] =
"diffusiveFlux_wm";
1991 static const char __pyx_k_diffusiveFlux_ww[] =
"diffusiveFlux_ww";
1992 static const char __pyx_k_elementDiameters[] =
"elementDiameters";
1993 static const char __pyx_k_fluxBoundaryFlag[] =
"fluxBoundaryFlag";
1994 static const char __pyx_k_fluxJacobian_u_u[] =
"fluxJacobian_u_u";
1995 static const char __pyx_k_fluxJacobian_u_v[] =
"fluxJacobian_u_v";
1996 static const char __pyx_k_fluxJacobian_u_w[] =
"fluxJacobian_u_w";
1997 static const char __pyx_k_fluxJacobian_v_u[] =
"fluxJacobian_v_u";
1998 static const char __pyx_k_fluxJacobian_v_v[] =
"fluxJacobian_v_v";
1999 static const char __pyx_k_fluxJacobian_v_w[] =
"fluxJacobian_v_w";
2000 static const char __pyx_k_fluxJacobian_w_u[] =
"fluxJacobian_w_u";
2001 static const char __pyx_k_fluxJacobian_w_v[] =
"fluxJacobian_w_v";
2002 static const char __pyx_k_fluxJacobian_w_w[] =
"fluxJacobian_w_w";
2003 static const char __pyx_k_isDOFBoundary_sw[] =
"isDOFBoundary_sw";
2004 static const char __pyx_k_isDOFBoundary_um[] =
"isDOFBoundary_um";
2005 static const char __pyx_k_isDOFBoundary_un[] =
"isDOFBoundary_un";
2006 static const char __pyx_k_isDOFBoundary_uw[] =
"isDOFBoundary_uw";
2007 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
2008 static const char __pyx_k_isDOFBoundary_psiw[] =
"isDOFBoundary_psiw";
2009 static const char __pyx_k_isStressBoundary_u[] =
"isStressBoundary_u";
2010 static const char __pyx_k_isStressBoundary_v[] =
"isStressBoundary_v";
2011 static const char __pyx_k_isStressBoundary_w[] =
"isStressBoundary_w";
2012 static const char __pyx_k_lambda_bar_element[] =
"lambda_bar_element";
2013 static const char __pyx_k_nDOF_trial_element[] =
"nDOF_trial_element";
2014 static const char __pyx_k_dadvectiveFlux_m_dw[] =
"dadvectiveFlux_m_dw";
2015 static const char __pyx_k_fluxBoundaryFlag_un[] =
"fluxBoundaryFlag_un";
2016 static const char __pyx_k_fluxBoundaryFlag_uw[] =
"fluxBoundaryFlag_uw";
2017 static const char __pyx_k_fluxJacobian_2sided[] =
"fluxJacobian_2sided";
2018 static const char __pyx_k_fluxJacobian_exterior[] =
"fluxJacobian_exterior";
2019 static const char __pyx_k_elementBoundaryElements[] =
"elementBoundaryElements";
2020 static const char __pyx_k_isDiffusiveFluxBoundary[] =
"isDiffusiveFluxBoundary";
2021 static const char __pyx_k_applySeepageFaceJacobian[] =
"applySeepageFaceJacobian";
2022 static const char __pyx_k_exteriorElementBoundaries[] =
"exteriorElementBoundaries";
2023 static const char __pyx_k_interiorElementBoundaries[] =
"interiorElementBoundaries";
2024 static const char __pyx_k_nQuadraturePoints_element[] =
"nQuadraturePoints_element";
2025 static const char __pyx_k_nElementBoundaries_element[] =
"nElementBoundaries_element";
2026 static const char __pyx_k_proteus_cnumericalFlux_pyx[] =
"proteus/cnumericalFlux.pyx";
2027 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
2028 static const char __pyx_k_calculateDiffusionMatrixSplittin[] =
"calculateDiffusionMatrixSplittings_LDG_sd";
2029 static const char __pyx_k_calculateExteriorLesaintRaviartN[] =
"calculateExteriorLesaintRaviartNumericalFlux";
2030 static const char __pyx_k_calculateExteriorNumericalAdvect[] =
"calculateExteriorNumericalAdvectiveFlux_NoBC";
2031 static const char __pyx_k_calculateExteriorNumericalDiffus[] =
"calculateExteriorNumericalDiffusiveFlux";
2032 static const char __pyx_k_calculateExteriorNumericalFluxJa[] =
"calculateExteriorNumericalFluxJacobianRichards_sd";
2033 static const char __pyx_k_calculateExteriorNumericalFluxRi[] =
"calculateExteriorNumericalFluxRichards_sd";
2034 static const char __pyx_k_calculateExteriorNumericalFluxSh[] =
"calculateExteriorNumericalFluxShallowWater_1D";
2035 static const char __pyx_k_calculateGlobalExteriorInflowNum[] =
"calculateGlobalExteriorInflowNumericalAdvectiveFlux";
2036 static const char __pyx_k_calculateGlobalExteriorLesaintRa[] =
"calculateGlobalExteriorLesaintRaviartNumericalFlux";
2037 static const char __pyx_k_calculateGlobalExteriorNumerical[] =
"calculateGlobalExteriorNumericalFluxDarcyFCFF";
2038 static const char __pyx_k_calculateInteriorChengShuNumeric[] =
"calculateInteriorChengShuNumericalFlux";
2039 static const char __pyx_k_calculateInteriorLesaintRaviartN[] =
"calculateInteriorLesaintRaviartNumericalFlux";
2040 static const char __pyx_k_calculateInteriorNumericalAdvect[] =
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound";
2041 static const char __pyx_k_calculateInteriorNumericalDiffus[] =
"calculateInteriorNumericalDiffusiveFlux";
2042 static const char __pyx_k_calculateInteriorNumericalFluxSh[] =
"calculateInteriorNumericalFluxShallowWater_1D";
2043 static const char __pyx_k_elementBoundaryLocalElementBound[] =
"elementBoundaryLocalElementBoundaries";
2044 static const char __pyx_k_nExteriorElementBoundaries_globa[] =
"nExteriorElementBoundaries_global";
2045 static const char __pyx_k_nQuadraturePoints_elementBoundar[] =
"nQuadraturePoints_elementBoundary";
2046 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
2047 static const char __pyx_k_updateExteriorNumericalAdvective[] =
"updateExteriorNumericalAdvectiveFluxJacobian";
2048 static const char __pyx_k_updateExteriorNumericalDiffusive[] =
"updateExteriorNumericalDiffusiveFluxJacobian_sd";
2049 static const char __pyx_k_updateExteriorNumericalStressFlu[] =
"updateExteriorNumericalStressFluxJacobian";
2050 static const char __pyx_k_updateGlobalExteriorNumericalAdv[] =
"updateGlobalExteriorNumericalAdvectiveFluxJacobian";
2051 static const char __pyx_k_updateGlobalExteriorNumericalDif[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian";
2052 static const char __pyx_k_updateInteriorNumericalAdvective[] =
"updateInteriorNumericalAdvectiveFluxJacobian";
2053 static const char __pyx_k_updateInteriorNumericalDiffusive[] =
"updateInteriorNumericalDiffusiveFluxJacobian";
2054 static const char __pyx_k_updateInteriorTwoSidedNumericalF[] =
"updateInteriorTwoSidedNumericalFluxJacobian";
2055 static const char __pyx_k_calculateExteriorNumericalAdvect_2[] =
"calculateExteriorNumericalAdvectiveFlux";
2056 static const char __pyx_k_calculateExteriorNumericalAdvect_3[] =
"calculateExteriorNumericalAdvectiveFluxStokes2D";
2057 static const char __pyx_k_calculateExteriorNumericalAdvect_4[] =
"calculateExteriorNumericalAdvectiveFluxStokes3D";
2058 static const char __pyx_k_calculateExteriorNumericalAdvect_5[] =
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D";
2059 static const char __pyx_k_calculateExteriorNumericalAdvect_6[] =
"calculateExteriorNumericalAdvectiveFluxRusanov";
2060 static const char __pyx_k_calculateExteriorNumericalAdvect_7[] =
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound";
2061 static const char __pyx_k_calculateExteriorNumericalAdvect_8[] =
"calculateExteriorNumericalAdvectiveFlux_free";
2062 static const char __pyx_k_calculateExteriorNumericalAdvect_9[] =
"calculateExteriorNumericalAdvectiveFluxStokesP2D";
2063 static const char __pyx_k_calculateExteriorNumericalDiffus_2[] =
"calculateExteriorNumericalDiffusiveFlux_sd";
2064 static const char __pyx_k_calculateExteriorNumericalDiffus_3[] =
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd";
2065 static const char __pyx_k_calculateExteriorNumericalDiffus_4[] =
"calculateExteriorNumericalDiffusiveFlux_free";
2066 static const char __pyx_k_calculateExteriorNumericalDiffus_5[] =
"calculateExteriorNumericalDiffusiveFlux_free_sd";
2067 static const char __pyx_k_calculateExteriorNumericalDiffus_6[] =
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind";
2068 static const char __pyx_k_calculateExteriorNumericalDiffus_7[] =
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd";
2069 static const char __pyx_k_calculateExteriorNumericalFluxSh_2[] =
"calculateExteriorNumericalFluxShallowWater_2D";
2070 static const char __pyx_k_calculateExteriorNumericalFluxSh_3[] =
"calculateExteriorNumericalFluxShallowWaterHLL_1D";
2071 static const char __pyx_k_calculateGlobalExteriorNumerical_2[] =
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian";
2072 static const char __pyx_k_calculateGlobalExteriorNumerical_3[] =
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd";
2073 static const char __pyx_k_calculateGlobalExteriorNumerical_4[] =
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd";
2074 static const char __pyx_k_calculateGlobalExteriorNumerical_5[] =
"calculateGlobalExteriorNumericalFluxDarcyFC";
2075 static const char __pyx_k_calculateGlobalExteriorNumerical_6[] =
"calculateGlobalExteriorNumericalFluxDarcyFC_sd";
2076 static const char __pyx_k_calculateGlobalExteriorNumerical_7[] =
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian";
2077 static const char __pyx_k_calculateGlobalExteriorNumerical_8[] =
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd";
2078 static const char __pyx_k_calculateGlobalExteriorNumerical_9[] =
"calculateGlobalExteriorNumericalFluxDarcyFCPP";
2079 static const char __pyx_k_calculateInteriorNumericalAdvect_2[] =
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint";
2080 static const char __pyx_k_calculateInteriorNumericalAdvect_3[] =
"calculateInteriorNumericalAdvectiveFluxRusanov";
2081 static const char __pyx_k_calculateInteriorNumericalAdvect_4[] =
"calculateInteriorNumericalAdvectiveFlux";
2082 static const char __pyx_k_calculateInteriorNumericalAdvect_5[] =
"calculateInteriorNumericalAdvectiveFlux_average";
2083 static const char __pyx_k_calculateInteriorNumericalDiffus_2[] =
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind";
2084 static const char __pyx_k_calculateInteriorNumericalDiffus_3[] =
"calculateInteriorNumericalDiffusiveFlux_sd";
2085 static const char __pyx_k_calculateInteriorNumericalDiffus_4[] =
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd";
2086 static const char __pyx_k_calculateInteriorNumericalFluxSh_2[] =
"calculateInteriorNumericalFluxShallowWater_2D";
2087 static const char __pyx_k_calculateInteriorNumericalFluxSh_3[] =
"calculateInteriorNumericalFluxShallowWaterHLL_1D";
2088 static const char __pyx_k_updateExteriorNumericalAdvective_2[] =
"updateExteriorNumericalAdvectiveFluxJacobian_free";
2089 static const char __pyx_k_updateExteriorNumericalDiffusive_2[] =
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd";
2090 static const char __pyx_k_updateExteriorNumericalDiffusive_3[] =
"updateExteriorNumericalDiffusiveFluxJacobian";
2091 static const char __pyx_k_updateExteriorNumericalDiffusive_4[] =
"updateExteriorNumericalDiffusiveFluxJacobian_free";
2092 static const char __pyx_k_updateExteriorNumericalDiffusive_5[] =
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind";
2093 static const char __pyx_k_updateExteriorNumericalDiffusive_6[] =
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd";
2094 static const char __pyx_k_updateExteriorNumericalDiffusive_7[] =
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd";
2095 static const char __pyx_k_updateGlobalExteriorNumericalAdv_2[] =
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free";
2096 static const char __pyx_k_updateGlobalExteriorNumericalDif_2[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd";
2097 static const char __pyx_k_updateGlobalExteriorNumericalDif_3[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free";
2098 static const char __pyx_k_updateGlobalExteriorNumericalDif_4[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd";
2099 static const char __pyx_k_updateGlobalExteriorNumericalDif_5[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind";
2100 static const char __pyx_k_updateGlobalExteriorNumericalDif_6[] =
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd";
2101 static const char __pyx_k_updateGlobalExteriorNumericalDif_7[] =
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd";
2102 static const char __pyx_k_updateInteriorNumericalDiffusive_2[] =
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind";
2103 static const char __pyx_k_updateInteriorNumericalDiffusive_3[] =
"updateInteriorNumericalDiffusiveFluxJacobian_sd";
2104 static const char __pyx_k_updateInteriorNumericalDiffusive_4[] =
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd";
2105 static const char __pyx_k_calculateExteriorNumericalAdvect_10[] =
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D";
2106 static const char __pyx_k_calculateExteriorNumericalAdvect_11[] =
"calculateExteriorNumericalAdvectiveFluxStokesP3D";
2107 static const char __pyx_k_calculateExteriorNumericalAdvect_12[] =
"calculateExteriorNumericalAdvectiveFlux_average";
2108 static const char __pyx_k_calculateGlobalExteriorNumerical_10[] =
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd";
2109 static const char __pyx_k_calculateGlobalExteriorNumerical_11[] =
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian";
2110 static const char __pyx_k_calculateGlobalExteriorNumerical_12[] =
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd";
2111 static const char __pyx_k_calculateGlobalExteriorNumerical_13[] =
"calculateGlobalExteriorNumericalStressFlux";
2112 static const char __pyx_k_calculateGlobalExteriorNumerical_14[] =
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov";
2113 static const char __pyx_k_calculateGlobalExteriorNumerical_15[] =
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound";
2114 static const char __pyx_k_calculateGlobalExteriorNumerical_16[] =
"calculateGlobalExteriorNumericalDiffusiveFlux";
2115 static const char __pyx_k_calculateGlobalExteriorNumerical_17[] =
"calculateGlobalExteriorNumericalDiffusiveFlux_sd";
2116 static const char __pyx_k_calculateGlobalExteriorNumerical_18[] =
"calculateGlobalExteriorNumericalDiffusiveFlux_free";
2117 static const char __pyx_k_calculateGlobalExteriorNumerical_19[] =
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd";
2118 static const char __pyx_k_calculateGlobalExteriorNumerical_20[] =
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC";
2119 static const char __pyx_k_calculateGlobalExteriorNumerical_21[] =
"calculateGlobalExteriorNumericalAdvectiveFlux";
2120 static const char __pyx_k_calculateGlobalExteriorNumerical_22[] =
"calculateGlobalExteriorNumericalAdvectiveFlux_free";
2121 static const char __pyx_k_calculateGlobalExteriorNumerical_23[] =
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D";
2122 static const char __pyx_k_calculateGlobalExteriorNumerical_24[] =
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D";
2123 static const char __pyx_k_calculateGlobalExteriorNumerical_25[] =
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D";
2124 static const char __pyx_k_calculateGlobalExteriorNumerical_26[] =
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D";
2125 static const char __pyx_k_calculateGlobalExteriorNumerical_27[] =
"calculateGlobalExteriorNumericalAdvectiveFlux_average";
2126 static const char __pyx_k_calculateGlobalExteriorNumerical_28[] =
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind";
2127 static const char __pyx_k_calculateGlobalExteriorNumerical_29[] =
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd";
2128 static const char __pyx_k_calculateGlobalExteriorNumerical_30[] =
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC";
2129 static const char __pyx_k_calculateGlobalExteriorNumerical_31[] =
"calculateGlobalExteriorNumericalFluxDarcySplitPressure";
2130 static const char __pyx_k_calculateGlobalExteriorNumerical_32[] =
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd";
2131 static const char __pyx_k_calculateGlobalExteriorNumerical_33[] =
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D";
2132 static const char __pyx_k_calculateGlobalExteriorNumerical_34[] =
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D";
2133 static PyObject *__pyx_n_s_DV;
2134 static PyObject *__pyx_n_s_DV_eb;
2135 static PyObject *__pyx_n_s_H;
2136 static PyObject *__pyx_n_s_H_element;
2137 static PyObject *__pyx_n_s_ImportError;
2138 static PyObject *__pyx_n_s_K;
2139 static PyObject *__pyx_n_s_K_rho_g;
2140 static PyObject *__pyx_n_s_V;
2141 static PyObject *__pyx_n_s_a;
2142 static PyObject *__pyx_n_s_aHat;
2143 static PyObject *__pyx_n_s_aSplit;
2144 static PyObject *__pyx_n_s_aTilde;
2145 static PyObject *__pyx_n_s_a_mm;
2146 static PyObject *__pyx_n_s_a_mw;
2147 static PyObject *__pyx_n_s_a_nn;
2148 static PyObject *__pyx_n_s_a_wm;
2149 static PyObject *__pyx_n_s_a_ww;
2150 static PyObject *__pyx_n_s_advectiveFlux;
2151 static PyObject *__pyx_n_s_advectiveFlux_m;
2152 static PyObject *__pyx_n_s_applySeepageFace;
2153 static PyObject *__pyx_n_s_applySeepageFaceJacobian;
2154 static PyObject *__pyx_n_s_bc_H;
2155 static PyObject *__pyx_n_s_bc_a;
2156 static PyObject *__pyx_n_s_bc_a_mm;
2157 static PyObject *__pyx_n_s_bc_a_mw;
2158 static PyObject *__pyx_n_s_bc_a_nn;
2159 static PyObject *__pyx_n_s_bc_a_wm;
2160 static PyObject *__pyx_n_s_bc_a_ww;
2161 static PyObject *__pyx_n_s_bc_dH;
2162 static PyObject *__pyx_n_s_bc_df;
2163 static PyObject *__pyx_n_s_bc_dfn_dpsiw;
2164 static PyObject *__pyx_n_s_bc_dfn_dsw;
2165 static PyObject *__pyx_n_s_bc_dfw_dpsiw;
2166 static PyObject *__pyx_n_s_bc_dfw_dsw;
2167 static PyObject *__pyx_n_s_bc_f;
2168 static PyObject *__pyx_n_s_bc_f_m;
2169 static PyObject *__pyx_n_s_bc_f_mass;
2170 static PyObject *__pyx_n_s_bc_f_umom;
2171 static PyObject *__pyx_n_s_bc_f_vmom;
2172 static PyObject *__pyx_n_s_bc_f_wmom;
2173 static PyObject *__pyx_n_s_bc_fn;
2174 static PyObject *__pyx_n_s_bc_fpu;
2175 static PyObject *__pyx_n_s_bc_fpv;
2176 static PyObject *__pyx_n_s_bc_fpw;
2177 static PyObject *__pyx_n_s_bc_fw;
2178 static PyObject *__pyx_n_s_bc_grad_phi;
2179 static PyObject *__pyx_n_s_bc_grad_phi_m;
2180 static PyObject *__pyx_n_s_bc_grad_phi_n;
2181 static PyObject *__pyx_n_s_bc_grad_phi_w;
2182 static PyObject *__pyx_n_s_bc_p;
2183 static PyObject *__pyx_n_s_bc_psi_c;
2184 static PyObject *__pyx_n_s_bc_psi_n;
2185 static PyObject *__pyx_n_s_bc_psi_w;
2186 static PyObject *__pyx_n_s_bc_psiw;
2187 static PyObject *__pyx_n_s_bc_s_w;
2188 static PyObject *__pyx_n_s_bc_sw;
2189 static PyObject *__pyx_n_s_bc_u;
2190 static PyObject *__pyx_n_s_bc_u_m;
2191 static PyObject *__pyx_n_s_bc_u_w;
2192 static PyObject *__pyx_n_s_bc_v;
2193 static PyObject *__pyx_n_s_bc_w;
2194 static PyObject *__pyx_n_s_calculateDiffusionMatrixSplittin;
2195 static PyObject *__pyx_n_s_calculateExteriorLesaintRaviartN;
2196 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect;
2197 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_10;
2198 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_11;
2199 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_12;
2200 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_2;
2201 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_3;
2202 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_4;
2203 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_5;
2204 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_6;
2205 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_7;
2206 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_8;
2207 static PyObject *__pyx_n_s_calculateExteriorNumericalAdvect_9;
2208 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus;
2209 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_2;
2210 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_3;
2211 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_4;
2212 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_5;
2213 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_6;
2214 static PyObject *__pyx_n_s_calculateExteriorNumericalDiffus_7;
2215 static PyObject *__pyx_n_s_calculateExteriorNumericalFluxJa;
2216 static PyObject *__pyx_n_s_calculateExteriorNumericalFluxRi;
2217 static PyObject *__pyx_n_s_calculateExteriorNumericalFluxSh;
2218 static PyObject *__pyx_n_s_calculateExteriorNumericalFluxSh_2;
2219 static PyObject *__pyx_n_s_calculateExteriorNumericalFluxSh_3;
2220 static PyObject *__pyx_n_s_calculateGlobalExteriorInflowNum;
2221 static PyObject *__pyx_n_s_calculateGlobalExteriorLesaintRa;
2222 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical;
2223 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_10;
2224 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_11;
2225 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_12;
2226 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_13;
2227 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_14;
2228 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_15;
2229 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_16;
2230 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_17;
2231 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_18;
2232 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_19;
2233 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_2;
2234 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_20;
2235 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_21;
2236 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_22;
2237 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_23;
2238 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_24;
2239 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_25;
2240 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_26;
2241 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_27;
2242 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_28;
2243 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_29;
2244 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_3;
2245 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_30;
2246 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_31;
2247 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_32;
2248 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_33;
2249 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_34;
2250 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_4;
2251 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_5;
2252 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_6;
2253 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_7;
2254 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_8;
2255 static PyObject *__pyx_n_s_calculateGlobalExteriorNumerical_9;
2256 static PyObject *__pyx_n_s_calculateInteriorChengShuNumeric;
2257 static PyObject *__pyx_n_s_calculateInteriorLesaintRaviartN;
2258 static PyObject *__pyx_n_s_calculateInteriorNumericalAdvect;
2259 static PyObject *__pyx_n_s_calculateInteriorNumericalAdvect_2;
2260 static PyObject *__pyx_n_s_calculateInteriorNumericalAdvect_3;
2261 static PyObject *__pyx_n_s_calculateInteriorNumericalAdvect_4;
2262 static PyObject *__pyx_n_s_calculateInteriorNumericalAdvect_5;
2263 static PyObject *__pyx_n_s_calculateInteriorNumericalDiffus;
2264 static PyObject *__pyx_n_s_calculateInteriorNumericalDiffus_2;
2265 static PyObject *__pyx_n_s_calculateInteriorNumericalDiffus_3;
2266 static PyObject *__pyx_n_s_calculateInteriorNumericalDiffus_4;
2267 static PyObject *__pyx_n_s_calculateInteriorNumericalFluxSh;
2268 static PyObject *__pyx_n_s_calculateInteriorNumericalFluxSh_2;
2269 static PyObject *__pyx_n_s_calculateInteriorNumericalFluxSh_3;
2270 static PyObject *__pyx_n_s_cline_in_traceback;
2271 static PyObject *__pyx_n_s_cnumericalFlux;
2272 static PyObject *__pyx_n_s_colind;
2273 static PyObject *__pyx_n_s_colind_mm;
2274 static PyObject *__pyx_n_s_colind_mw;
2275 static PyObject *__pyx_n_s_colind_nn;
2276 static PyObject *__pyx_n_s_colind_wm;
2277 static PyObject *__pyx_n_s_colind_ww;
2278 static PyObject *__pyx_n_s_dH;
2279 static PyObject *__pyx_n_s_dH_element;
2280 static PyObject *__pyx_n_s_dK;
2281 static PyObject *__pyx_n_s_dK_rho_g;
2282 static PyObject *__pyx_n_s_da;
2283 static PyObject *__pyx_n_s_da_mm_dm;
2284 static PyObject *__pyx_n_s_da_mm_dw;
2285 static PyObject *__pyx_n_s_da_mw_dm;
2286 static PyObject *__pyx_n_s_da_mw_dw;
2287 static PyObject *__pyx_n_s_da_nn_dn;
2288 static PyObject *__pyx_n_s_da_nn_dw;
2289 static PyObject *__pyx_n_s_da_wm_dm;
2290 static PyObject *__pyx_n_s_da_wm_dw;
2291 static PyObject *__pyx_n_s_da_ww_dn;
2292 static PyObject *__pyx_n_s_da_ww_dw;
2293 static PyObject *__pyx_n_s_dadvectiveFlux_m_dw;
2294 static PyObject *__pyx_n_s_df;
2295 static PyObject *__pyx_n_s_df_du;
2296 static PyObject *__pyx_n_s_df_dv;
2297 static PyObject *__pyx_n_s_df_dw;
2298 static PyObject *__pyx_n_s_df_element;
2299 static PyObject *__pyx_n_s_df_m_dw;
2300 static PyObject *__pyx_n_s_df_mass_du;
2301 static PyObject *__pyx_n_s_df_mass_dv;
2302 static PyObject *__pyx_n_s_df_mass_dw;
2303 static PyObject *__pyx_n_s_df_umom_dp;
2304 static PyObject *__pyx_n_s_df_umom_du;
2305 static PyObject *__pyx_n_s_df_umom_dv;
2306 static PyObject *__pyx_n_s_df_umom_dw;
2307 static PyObject *__pyx_n_s_df_vmom_dp;
2308 static PyObject *__pyx_n_s_df_vmom_du;
2309 static PyObject *__pyx_n_s_df_vmom_dv;
2310 static PyObject *__pyx_n_s_df_vmom_dw;
2311 static PyObject *__pyx_n_s_df_wmom_dp;
2312 static PyObject *__pyx_n_s_df_wmom_du;
2313 static PyObject *__pyx_n_s_df_wmom_dv;
2314 static PyObject *__pyx_n_s_df_wmom_dw;
2315 static PyObject *__pyx_n_s_dflux;
2316 static PyObject *__pyx_n_s_dflux_du;
2317 static PyObject *__pyx_n_s_dflux_dv;
2318 static PyObject *__pyx_n_s_dflux_dw;
2319 static PyObject *__pyx_n_s_dflux_left;
2320 static PyObject *__pyx_n_s_dflux_mass_dp;
2321 static PyObject *__pyx_n_s_dflux_mass_du;
2322 static PyObject *__pyx_n_s_dflux_mass_dv;
2323 static PyObject *__pyx_n_s_dflux_mass_dw;
2324 static PyObject *__pyx_n_s_dflux_right;
2325 static PyObject *__pyx_n_s_dflux_umom_dp;
2326 static PyObject *__pyx_n_s_dflux_umom_du;
2327 static PyObject *__pyx_n_s_dflux_umom_dv;
2328 static PyObject *__pyx_n_s_dflux_umom_dw;
2329 static PyObject *__pyx_n_s_dflux_vmom_dp;
2330 static PyObject *__pyx_n_s_dflux_vmom_du;
2331 static PyObject *__pyx_n_s_dflux_vmom_dv;
2332 static PyObject *__pyx_n_s_dflux_vmom_dw;
2333 static PyObject *__pyx_n_s_dflux_wmom_dp;
2334 static PyObject *__pyx_n_s_dflux_wmom_du;
2335 static PyObject *__pyx_n_s_dflux_wmom_dv;
2336 static PyObject *__pyx_n_s_dflux_wmom_dw;
2337 static PyObject *__pyx_n_s_dfluxn_dpsiw;
2338 static PyObject *__pyx_n_s_dfluxn_dsw;
2339 static PyObject *__pyx_n_s_dfluxpu_dp;
2340 static PyObject *__pyx_n_s_dfluxpv_dp;
2341 static PyObject *__pyx_n_s_dfluxpw_dp;
2342 static PyObject *__pyx_n_s_dfluxw_dpsiw;
2343 static PyObject *__pyx_n_s_dfluxw_dsw;
2344 static PyObject *__pyx_n_s_dfn_dpsiw;
2345 static PyObject *__pyx_n_s_dfn_dsw;
2346 static PyObject *__pyx_n_s_dfpu_dp;
2347 static PyObject *__pyx_n_s_dfpv_dp;
2348 static PyObject *__pyx_n_s_dfpw_dp;
2349 static PyObject *__pyx_n_s_dfw_dpsiw;
2350 static PyObject *__pyx_n_s_dfw_dsw;
2351 static PyObject *__pyx_n_s_diffusiveFlux;
2352 static PyObject *__pyx_n_s_diffusiveFlux_mm;
2353 static PyObject *__pyx_n_s_diffusiveFlux_mw;
2354 static PyObject *__pyx_n_s_diffusiveFlux_nn;
2355 static PyObject *__pyx_n_s_diffusiveFlux_wm;
2356 static PyObject *__pyx_n_s_diffusiveFlux_ww;
2357 static PyObject *__pyx_n_s_dim;
2358 static PyObject *__pyx_n_s_dm_umom;
2359 static PyObject *__pyx_n_s_dphi;
2360 static PyObject *__pyx_n_s_dphi_m_m;
2361 static PyObject *__pyx_n_s_dphi_m_w;
2362 static PyObject *__pyx_n_s_dphi_n_n;
2363 static PyObject *__pyx_n_s_dphi_n_w;
2364 static PyObject *__pyx_n_s_dphi_w_m;
2365 static PyObject *__pyx_n_s_dphi_w_n;
2366 static PyObject *__pyx_n_s_dphi_w_w;
2367 static PyObject *__pyx_n_s_dpsi_n_dpsic;
2368 static PyObject *__pyx_n_s_dpsi_n_dpsiw;
2369 static PyObject *__pyx_n_s_dpsi_n_dsw;
2370 static PyObject *__pyx_n_s_dstress_u_u;
2371 static PyObject *__pyx_n_s_dstress_u_v;
2372 static PyObject *__pyx_n_s_dstress_u_w;
2373 static PyObject *__pyx_n_s_dstress_v_u;
2374 static PyObject *__pyx_n_s_dstress_v_v;
2375 static PyObject *__pyx_n_s_dstress_v_w;
2376 static PyObject *__pyx_n_s_dstress_w_u;
2377 static PyObject *__pyx_n_s_dstress_w_v;
2378 static PyObject *__pyx_n_s_dstress_w_w;
2379 static PyObject *__pyx_n_s_eb_aHat;
2380 static PyObject *__pyx_n_s_eb_aTilde;
2381 static PyObject *__pyx_n_s_ebq_a;
2382 static PyObject *__pyx_n_s_elementBoundaryElements;
2383 static PyObject *__pyx_n_s_elementBoundaryLocalElementBound;
2384 static PyObject *__pyx_n_s_elementDiameters;
2385 static PyObject *__pyx_n_s_epsFact;
2386 static PyObject *__pyx_n_s_exit;
2387 static PyObject *__pyx_n_s_exteriorElementBoundaries;
2388 static PyObject *__pyx_n_s_f;
2389 static PyObject *__pyx_n_s_f_m;
2390 static PyObject *__pyx_n_s_f_mass;
2391 static PyObject *__pyx_n_s_f_umom;
2392 static PyObject *__pyx_n_s_f_vmom;
2393 static PyObject *__pyx_n_s_f_wmom;
2394 static PyObject *__pyx_n_s_flux;
2395 static PyObject *__pyx_n_s_fluxBoundaryFlag;
2396 static PyObject *__pyx_n_s_fluxBoundaryFlag_un;
2397 static PyObject *__pyx_n_s_fluxBoundaryFlag_uw;
2398 static PyObject *__pyx_n_s_fluxJacobian;
2399 static PyObject *__pyx_n_s_fluxJacobian_2sided;
2400 static PyObject *__pyx_n_s_fluxJacobian_eb;
2401 static PyObject *__pyx_n_s_fluxJacobian_exterior;
2402 static PyObject *__pyx_n_s_fluxJacobian_mm;
2403 static PyObject *__pyx_n_s_fluxJacobian_mw;
2404 static PyObject *__pyx_n_s_fluxJacobian_nn;
2405 static PyObject *__pyx_n_s_fluxJacobian_nw;
2406 static PyObject *__pyx_n_s_fluxJacobian_u_u;
2407 static PyObject *__pyx_n_s_fluxJacobian_u_v;
2408 static PyObject *__pyx_n_s_fluxJacobian_u_w;
2409 static PyObject *__pyx_n_s_fluxJacobian_v_u;
2410 static PyObject *__pyx_n_s_fluxJacobian_v_v;
2411 static PyObject *__pyx_n_s_fluxJacobian_v_w;
2412 static PyObject *__pyx_n_s_fluxJacobian_w_u;
2413 static PyObject *__pyx_n_s_fluxJacobian_w_v;
2414 static PyObject *__pyx_n_s_fluxJacobian_w_w;
2415 static PyObject *__pyx_n_s_fluxJacobian_wm;
2416 static PyObject *__pyx_n_s_fluxJacobian_wn;
2417 static PyObject *__pyx_n_s_fluxJacobian_ww;
2418 static PyObject *__pyx_n_s_flux_h;
2419 static PyObject *__pyx_n_s_flux_hu;
2420 static PyObject *__pyx_n_s_flux_hv;
2421 static PyObject *__pyx_n_s_flux_mass;
2422 static PyObject *__pyx_n_s_flux_umom;
2423 static PyObject *__pyx_n_s_flux_vmom;
2424 static PyObject *__pyx_n_s_flux_wmom;
2425 static PyObject *__pyx_n_s_fluxn;
2426 static PyObject *__pyx_n_s_fluxpu;
2427 static PyObject *__pyx_n_s_fluxpv;
2428 static PyObject *__pyx_n_s_fluxpw;
2429 static PyObject *__pyx_n_s_fluxw;
2430 static PyObject *__pyx_n_s_fn;
2431 static PyObject *__pyx_n_s_fpu;
2432 static PyObject *__pyx_n_s_fpv;
2433 static PyObject *__pyx_n_s_fpw;
2434 static PyObject *__pyx_n_s_fw;
2435 static PyObject *__pyx_n_s_g;
2436 static PyObject *__pyx_n_s_grad_phi;
2437 static PyObject *__pyx_n_s_grad_phi_m;
2438 static PyObject *__pyx_n_s_grad_phi_n;
2439 static PyObject *__pyx_n_s_grad_phi_w;
2440 static PyObject *__pyx_n_s_grad_psi;
2441 static PyObject *__pyx_n_s_grad_u;
2442 static PyObject *__pyx_n_s_grad_v;
2443 static PyObject *__pyx_n_s_h;
2444 static PyObject *__pyx_n_s_h_eps;
2445 static PyObject *__pyx_n_s_h_lq;
2446 static PyObject *__pyx_n_s_h_lv;
2447 static PyObject *__pyx_n_s_h_rq;
2448 static PyObject *__pyx_n_s_h_rv;
2449 static PyObject *__pyx_n_s_hu;
2450 static PyObject *__pyx_n_s_hu_lq;
2451 static PyObject *__pyx_n_s_hu_lv;
2452 static PyObject *__pyx_n_s_hu_rq;
2453 static PyObject *__pyx_n_s_hu_rv;
2454 static PyObject *__pyx_n_s_hv;
2455 static PyObject *__pyx_n_s_hv_lq;
2456 static PyObject *__pyx_n_s_hv_rq;
2457 static PyObject *__pyx_n_s_import;
2458 static PyObject *__pyx_n_s_inflowFlag;
2459 static PyObject *__pyx_n_s_inflowFlux;
2460 static PyObject *__pyx_n_s_interiorElementBoundaries;
2461 static PyObject *__pyx_n_s_isDOFBoundary;
2462 static PyObject *__pyx_n_s_isDOFBoundary_p;
2463 static PyObject *__pyx_n_s_isDOFBoundary_psiw;
2464 static PyObject *__pyx_n_s_isDOFBoundary_sw;
2465 static PyObject *__pyx_n_s_isDOFBoundary_u;
2466 static PyObject *__pyx_n_s_isDOFBoundary_um;
2467 static PyObject *__pyx_n_s_isDOFBoundary_un;
2468 static PyObject *__pyx_n_s_isDOFBoundary_uw;
2469 static PyObject *__pyx_n_s_isDOFBoundary_v;
2470 static PyObject *__pyx_n_s_isDOFBoundary_w;
2471 static PyObject *__pyx_n_s_isDiffusiveFluxBoundary;
2472 static PyObject *__pyx_n_s_isSeepageFace;
2473 static PyObject *__pyx_n_s_isStressBoundary_u;
2474 static PyObject *__pyx_n_s_isStressBoundary_v;
2475 static PyObject *__pyx_n_s_isStressBoundary_w;
2476 static PyObject *__pyx_n_s_l2g;
2477 static PyObject *__pyx_n_s_lambda_bar;
2478 static PyObject *__pyx_n_s_lambda_bar_element;
2479 static PyObject *__pyx_n_s_main;
2480 static PyObject *__pyx_n_s_n;
2481 static PyObject *__pyx_n_s_nDOF_trial_element;
2482 static PyObject *__pyx_n_s_nElementBoundaries_element;
2483 static PyObject *__pyx_n_s_nExteriorElementBoundaries_globa;
2484 static PyObject *__pyx_n_s_nQuadraturePoints_element;
2485 static PyObject *__pyx_n_s_nQuadraturePoints_elementBoundar;
2486 static PyObject *__pyx_n_s_nSpace;
2487 static PyObject *__pyx_n_s_name;
2488 static PyObject *__pyx_n_s_np;
2489 static PyObject *__pyx_n_s_numpy;
2490 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2491 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2492 static PyObject *__pyx_n_s_oneByRho;
2493 static PyObject *__pyx_n_s_p;
2494 static PyObject *__pyx_n_s_penalty;
2495 static PyObject *__pyx_n_s_penalty_floor;
2496 static PyObject *__pyx_n_s_penalty_m;
2497 static PyObject *__pyx_n_s_penalty_n;
2498 static PyObject *__pyx_n_s_penalty_w;
2499 static PyObject *__pyx_n_s_phi;
2500 static PyObject *__pyx_n_s_phi_bc;
2501 static PyObject *__pyx_kp_s_proteus_cnumericalFlux_pyx;
2502 static PyObject *__pyx_n_s_psi_c;
2503 static PyObject *__pyx_n_s_psi_n;
2504 static PyObject *__pyx_n_s_psi_w;
2505 static PyObject *__pyx_n_s_psiw;
2506 static PyObject *__pyx_n_s_q_a;
2507 static PyObject *__pyx_n_s_rowptr;
2508 static PyObject *__pyx_n_s_rowptr_mm;
2509 static PyObject *__pyx_n_s_rowptr_mw;
2510 static PyObject *__pyx_n_s_rowptr_nn;
2511 static PyObject *__pyx_n_s_rowptr_wm;
2512 static PyObject *__pyx_n_s_rowptr_ww;
2513 static PyObject *__pyx_n_s_s_w;
2514 static PyObject *__pyx_n_s_safetyFactor;
2515 static PyObject *__pyx_n_s_sahpe;
2516 static PyObject *__pyx_n_s_sape;
2517 static PyObject *__pyx_n_s_scale_penalty;
2518 static PyObject *__pyx_n_s_setInflowFlux;
2519 static PyObject *__pyx_n_s_sigma;
2520 static PyObject *__pyx_n_s_sonicFlux;
2521 static PyObject *__pyx_n_s_sonicPoint;
2522 static PyObject *__pyx_n_s_speedEvalFlag;
2523 static PyObject *__pyx_n_s_stressFlux_u;
2524 static PyObject *__pyx_n_s_stressFlux_v;
2525 static PyObject *__pyx_n_s_stressFlux_w;
2526 static PyObject *__pyx_n_s_sw;
2527 static PyObject *__pyx_n_s_sys;
2528 static PyObject *__pyx_n_s_test;
2529 static PyObject *__pyx_n_s_tol_u;
2530 static PyObject *__pyx_n_s_u;
2531 static PyObject *__pyx_n_s_u_m;
2532 static PyObject *__pyx_n_s_u_w;
2533 static PyObject *__pyx_n_s_updateExteriorNumericalAdvective;
2534 static PyObject *__pyx_n_s_updateExteriorNumericalAdvective_2;
2535 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive;
2536 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_2;
2537 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_3;
2538 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_4;
2539 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_5;
2540 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_6;
2541 static PyObject *__pyx_n_s_updateExteriorNumericalDiffusive_7;
2542 static PyObject *__pyx_n_s_updateExteriorNumericalStressFlu;
2543 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalAdv;
2544 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalAdv_2;
2545 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif;
2546 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_2;
2547 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_3;
2548 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_4;
2549 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_5;
2550 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_6;
2551 static PyObject *__pyx_n_s_updateGlobalExteriorNumericalDif_7;
2552 static PyObject *__pyx_n_s_updateInteriorNumericalAdvective;
2553 static PyObject *__pyx_n_s_updateInteriorNumericalDiffusive;
2554 static PyObject *__pyx_n_s_updateInteriorNumericalDiffusive_2;
2555 static PyObject *__pyx_n_s_updateInteriorNumericalDiffusive_3;
2556 static PyObject *__pyx_n_s_updateInteriorNumericalDiffusive_4;
2557 static PyObject *__pyx_n_s_updateInteriorTwoSidedNumericalF;
2558 static PyObject *__pyx_n_s_v;
2559 static PyObject *__pyx_n_s_velocity;
2560 static PyObject *__pyx_n_s_w;
2561 static PyObject *__pyx_pf_14cnumericalFlux_calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_lambda_bar_element, PyArrayObject *__pyx_v_flux);
2562 static PyObject *__pyx_pf_14cnumericalFlux_2calculateInteriorLesaintRaviartNumericalFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_speedEvalFlag, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2563 static PyObject *__pyx_pf_14cnumericalFlux_4calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sonicPoint,
double __pyx_v_sonicFlux, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2564 static PyObject *__pyx_pf_14cnumericalFlux_6calculateInteriorNumericalAdvectiveFluxRusanov(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_df_element, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2565 static PyObject *__pyx_pf_14cnumericalFlux_8calculateInteriorNumericalDiffusiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2566 static PyObject *__pyx_pf_14cnumericalFlux_10updateInteriorNumericalDiffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2567 static PyObject *__pyx_pf_14cnumericalFlux_12calculateInteriorNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2568 static PyObject *__pyx_pf_14cnumericalFlux_14updateInteriorNumericalAdvectiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2569 static PyObject *__pyx_pf_14cnumericalFlux_16calculateInteriorNumericalAdvectiveFlux_average(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2570 static PyObject *__pyx_pf_14cnumericalFlux_18calculateExteriorNumericalAdvectiveFlux_NoBC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left);
2571 static PyObject *__pyx_pf_14cnumericalFlux_20calculateExteriorNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2572 static PyObject *__pyx_pf_14cnumericalFlux_22updateExteriorNumericalAdvectiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2573 static PyObject *__pyx_pf_14cnumericalFlux_24calculateInteriorNumericalDiffusiveFlux_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2574 static PyObject *__pyx_pf_14cnumericalFlux_26updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian, PyArrayObject *__pyx_v_fluxJacobian_eb);
2575 static PyObject *__pyx_pf_14cnumericalFlux_28setInflowFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_inflowFlux, PyArrayObject *__pyx_v_flux);
2576 static PyObject *__pyx_pf_14cnumericalFlux_30updateInteriorTwoSidedNumericalFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian_2sided);
2577 static PyObject *__pyx_pf_14cnumericalFlux_32calculateGlobalExteriorInflowNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_inflowFlux, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left);
2578 static PyObject *__pyx_pf_14cnumericalFlux_34updateGlobalExteriorNumericalAdvectiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2579 static PyObject *__pyx_pf_14cnumericalFlux_36calculateInteriorChengShuNumericalFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_speedEvalFlag, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_H_element, PyArrayObject *__pyx_v_dH_element, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right);
2580 static PyObject *__pyx_pf_14cnumericalFlux_38calculateGlobalExteriorNumericalFluxDarcyFCFF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_um, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f_m, PyArrayObject *__pyx_v_bc_a_wm, PyArrayObject *__pyx_v_bc_a_mw, PyArrayObject *__pyx_v_bc_a_mm, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_m, PyArrayObject *__pyx_v_bc_u_w, PyArrayObject *__pyx_v_bc_u_m, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m_dw, PyArrayObject *__pyx_v_a_wm, PyArrayObject *__pyx_v_a_mw, PyArrayObject *__pyx_v_a_mm, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_m, PyArrayObject *__pyx_v_u_w, PyArrayObject *__pyx_v_u_m, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_m, PyArrayObject *__pyx_v_advectiveFlux_m, PyArrayObject *__pyx_v_dadvectiveFlux_m_dw, PyArrayObject *__pyx_v_diffusiveFlux_wm, PyArrayObject *__pyx_v_diffusiveFlux_mw, PyArrayObject *__pyx_v_diffusiveFlux_mm);
2581 static PyObject *__pyx_pf_14cnumericalFlux_40calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_um, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m_dw, PyArrayObject *__pyx_v_a_wm, PyArrayObject *__pyx_v_da_wm_dw, PyArrayObject *__pyx_v_da_wm_dm, PyArrayObject *__pyx_v_a_mw, PyArrayObject *__pyx_v_da_mw_dw, PyArrayObject *__pyx_v_da_mw_dm, PyArrayObject *__pyx_v_a_mm, PyArrayObject *__pyx_v_da_mm_dw, PyArrayObject *__pyx_v_da_mm_dm, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_m, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_m, PyArrayObject *__pyx_v_dphi_m_w, PyArrayObject *__pyx_v_dphi_m_m, PyArrayObject *__pyx_v_u_w, PyArrayObject *__pyx_v_u_m, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_m, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wm, PyArrayObject *__pyx_v_fluxJacobian_mw, PyArrayObject *__pyx_v_fluxJacobian_mm);
2582 static PyObject *__pyx_pf_14cnumericalFlux_42updateExteriorNumericalStressFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_isStressBoundary_u, PyArrayObject *__pyx_v_isStressBoundary_v, PyArrayObject *__pyx_v_isStressBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dstress_u_u, PyArrayObject *__pyx_v_dstress_u_v, PyArrayObject *__pyx_v_dstress_u_w, PyArrayObject *__pyx_v_dstress_v_u, PyArrayObject *__pyx_v_dstress_v_v, PyArrayObject *__pyx_v_dstress_v_w, PyArrayObject *__pyx_v_dstress_w_u, PyArrayObject *__pyx_v_dstress_w_v, PyArrayObject *__pyx_v_dstress_w_w, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian_u_u, PyArrayObject *__pyx_v_fluxJacobian_u_v, PyArrayObject *__pyx_v_fluxJacobian_u_w, PyArrayObject *__pyx_v_fluxJacobian_v_u, PyArrayObject *__pyx_v_fluxJacobian_v_v, PyArrayObject *__pyx_v_fluxJacobian_v_w, PyArrayObject *__pyx_v_fluxJacobian_w_u, PyArrayObject *__pyx_v_fluxJacobian_w_v, PyArrayObject *__pyx_v_fluxJacobian_w_w);
2583 static PyObject *__pyx_pf_14cnumericalFlux_44calculateExteriorNumericalFluxRichards_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_isSeepageFace, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_K, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_K_rho_g, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_diffusiveFlux);
2584 static PyObject *__pyx_pf_14cnumericalFlux_46calculateExteriorNumericalFluxJacobianRichards_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_K, PyArrayObject *__pyx_v_dK, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_dK_rho_g, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2585 static PyObject *__pyx_pf_14cnumericalFlux_48calculateExteriorNumericalAdvectiveFluxStokes2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_velocity);
2586 static PyObject *__pyx_pf_14cnumericalFlux_50calculateInteriorNumericalDiffusiveFlux_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2587 static PyObject *__pyx_pf_14cnumericalFlux_52updateInteriorNumericalDiffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2588 static PyObject *__pyx_pf_14cnumericalFlux_54updateExteriorNumericalDiffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2589 static PyObject *__pyx_pf_14cnumericalFlux_56updateExteriorNumericalDiffusiveFluxJacobian_free_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2590 static PyObject *__pyx_pf_14cnumericalFlux_58calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2591 static PyObject *__pyx_pf_14cnumericalFlux_60updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian, PyArrayObject *__pyx_v_fluxJacobian_eb);
2592 static PyObject *__pyx_pf_14cnumericalFlux_62calculateDiffusionMatrixSplittings_LDG_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_aSplit,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_ebq_a, PyArrayObject *__pyx_v_q_a, PyArrayObject *__pyx_v_eb_aHat, PyArrayObject *__pyx_v_eb_aTilde, PyArrayObject *__pyx_v_aHat, PyArrayObject *__pyx_v_aTilde);
2593 static PyObject *__pyx_pf_14cnumericalFlux_64calculateGlobalExteriorNumericalFluxDarcyFCFF_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_wm, PyArrayObject *__pyx_v_colind_wm, PyArrayObject *__pyx_v_rowptr_mw, PyArrayObject *__pyx_v_colind_mw, PyArrayObject *__pyx_v_rowptr_mm, PyArrayObject *__pyx_v_colind_mm, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_um, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f_m, PyArrayObject *__pyx_v_bc_a_wm, PyArrayObject *__pyx_v_bc_a_mw, PyArrayObject *__pyx_v_bc_a_mm, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_m, PyArrayObject *__pyx_v_bc_u_w, PyArrayObject *__pyx_v_bc_u_m, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m_dw, PyArrayObject *__pyx_v_a_wm, PyArrayObject *__pyx_v_a_mw, PyArrayObject *__pyx_v_a_mm, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_m, PyArrayObject *__pyx_v_u_w, PyArrayObject *__pyx_v_u_m, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_m, PyArrayObject *__pyx_v_advectiveFlux_m, PyArrayObject *__pyx_v_dadvectiveFlux_m_dw, PyArrayObject *__pyx_v_diffusiveFlux_wm, PyArrayObject *__pyx_v_diffusiveFlux_mw, PyArrayObject *__pyx_v_diffusiveFlux_mm);
2594 static PyObject *__pyx_pf_14cnumericalFlux_66calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_wm, PyArrayObject *__pyx_v_colind_wm, PyArrayObject *__pyx_v_rowptr_mw, PyArrayObject *__pyx_v_colind_mw, PyArrayObject *__pyx_v_rowptr_mm, PyArrayObject *__pyx_v_colind_mm, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_um, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f_m, PyArrayObject *__pyx_v_df_m_dw, PyArrayObject *__pyx_v_a_wm, PyArrayObject *__pyx_v_da_wm_dw, PyArrayObject *__pyx_v_da_wm_dm, PyArrayObject *__pyx_v_a_mw, PyArrayObject *__pyx_v_da_mw_dw, PyArrayObject *__pyx_v_da_mw_dm, PyArrayObject *__pyx_v_a_mm, PyArrayObject *__pyx_v_da_mm_dw, PyArrayObject *__pyx_v_da_mm_dm, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_m, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_m, PyArrayObject *__pyx_v_dphi_m_w, PyArrayObject *__pyx_v_dphi_m_m, PyArrayObject *__pyx_v_u_w, PyArrayObject *__pyx_v_u_m, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_m, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wm, PyArrayObject *__pyx_v_fluxJacobian_mw, PyArrayObject *__pyx_v_fluxJacobian_mm);
2595 static PyObject *__pyx_pf_14cnumericalFlux_68calculateGlobalExteriorNumericalFluxDarcyFC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a_ww, PyArrayObject *__pyx_v_bc_a_nn, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_n, PyArrayObject *__pyx_v_bc_s_w, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_s_w, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_diffusiveFlux_ww, PyArrayObject *__pyx_v_diffusiveFlux_nn);
2596 static PyObject *__pyx_pf_14cnumericalFlux_70calculateGlobalExteriorNumericalFluxDarcyFC_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_ww, PyArrayObject *__pyx_v_colind_ww, PyArrayObject *__pyx_v_rowptr_nn, PyArrayObject *__pyx_v_colind_nn, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a_ww, PyArrayObject *__pyx_v_bc_a_nn, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_n, PyArrayObject *__pyx_v_bc_s_w, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_s_w, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_diffusiveFlux_ww, PyArrayObject *__pyx_v_diffusiveFlux_nn);
2597 static PyObject *__pyx_pf_14cnumericalFlux_72calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_da_ww_dw, PyArrayObject *__pyx_v_da_ww_dn, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_da_nn_dw, PyArrayObject *__pyx_v_da_nn_dn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_n, PyArrayObject *__pyx_v_dphi_n_w, PyArrayObject *__pyx_v_dphi_n_n, PyArrayObject *__pyx_v_s_w, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_dpsi_n_dsw, PyArrayObject *__pyx_v_dpsi_n_dpsiw, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wn, PyArrayObject *__pyx_v_fluxJacobian_nw, PyArrayObject *__pyx_v_fluxJacobian_nn);
2598 static PyObject *__pyx_pf_14cnumericalFlux_74calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_ww, PyArrayObject *__pyx_v_colind_ww, PyArrayObject *__pyx_v_rowptr_nn, PyArrayObject *__pyx_v_colind_nn, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_da_ww_dw, PyArrayObject *__pyx_v_da_ww_dn, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_da_nn_dw, PyArrayObject *__pyx_v_da_nn_dn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_n, PyArrayObject *__pyx_v_dphi_n_w, PyArrayObject *__pyx_v_dphi_n_n, PyArrayObject *__pyx_v_s_w, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_dpsi_n_dsw, PyArrayObject *__pyx_v_dpsi_n_dpsiw, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wn, PyArrayObject *__pyx_v_fluxJacobian_nw, PyArrayObject *__pyx_v_fluxJacobian_nn);
2599 static PyObject *__pyx_pf_14cnumericalFlux_76calculateGlobalExteriorNumericalFluxDarcyFCPP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a_ww, PyArrayObject *__pyx_v_bc_a_nn, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_n, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_c, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_c, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_diffusiveFlux_ww, PyArrayObject *__pyx_v_diffusiveFlux_nn);
2600 static PyObject *__pyx_pf_14cnumericalFlux_78calculateGlobalExteriorNumericalFluxDarcyFCPP_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_ww, PyArrayObject *__pyx_v_colind_ww, PyArrayObject *__pyx_v_rowptr_nn, PyArrayObject *__pyx_v_colind_nn, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a_ww, PyArrayObject *__pyx_v_bc_a_nn, PyArrayObject *__pyx_v_bc_grad_phi_w, PyArrayObject *__pyx_v_bc_grad_phi_n, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_c, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_c, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_diffusiveFlux_ww, PyArrayObject *__pyx_v_diffusiveFlux_nn);
2601 static PyObject *__pyx_pf_14cnumericalFlux_80calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_da_ww_dw, PyArrayObject *__pyx_v_da_ww_dn, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_da_nn_dw, PyArrayObject *__pyx_v_da_nn_dn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_n, PyArrayObject *__pyx_v_dphi_n_w, PyArrayObject *__pyx_v_dphi_n_n, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_c, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_dpsi_n_dpsiw, PyArrayObject *__pyx_v_dpsi_n_dpsic, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wn, PyArrayObject *__pyx_v_fluxJacobian_nw, PyArrayObject *__pyx_v_fluxJacobian_nn);
2602 static PyObject *__pyx_pf_14cnumericalFlux_82calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr_ww, PyArrayObject *__pyx_v_colind_ww, PyArrayObject *__pyx_v_rowptr_nn, PyArrayObject *__pyx_v_colind_nn, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_uw, PyArrayObject *__pyx_v_isDOFBoundary_un,
int __pyx_v_fluxBoundaryFlag_uw,
int __pyx_v_fluxBoundaryFlag_un, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a_ww, PyArrayObject *__pyx_v_da_ww_dw, PyArrayObject *__pyx_v_da_ww_dn, PyArrayObject *__pyx_v_a_nn, PyArrayObject *__pyx_v_da_nn_dw, PyArrayObject *__pyx_v_da_nn_dn, PyArrayObject *__pyx_v_grad_phi_w, PyArrayObject *__pyx_v_grad_phi_n, PyArrayObject *__pyx_v_dphi_w_w, PyArrayObject *__pyx_v_dphi_w_n, PyArrayObject *__pyx_v_dphi_n_w, PyArrayObject *__pyx_v_dphi_n_n, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_c, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_dpsi_n_dpsiw, PyArrayObject *__pyx_v_dpsi_n_dpsic, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty_w, PyArrayObject *__pyx_v_penalty_n, PyArrayObject *__pyx_v_fluxJacobian_ww, PyArrayObject *__pyx_v_fluxJacobian_wn, PyArrayObject *__pyx_v_fluxJacobian_nw, PyArrayObject *__pyx_v_fluxJacobian_nn);
2603 static PyObject *__pyx_pf_14cnumericalFlux_84calculateInteriorNumericalFluxShallowWater_1D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu);
2604 static PyObject *__pyx_pf_14cnumericalFlux_86calculateExteriorNumericalFluxShallowWater_1D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h_lv, PyArrayObject *__pyx_v_hu_lv, PyArrayObject *__pyx_v_h_rv, PyArrayObject *__pyx_v_hu_rv, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu);
2605 static PyObject *__pyx_pf_14cnumericalFlux_88calculateInteriorNumericalFluxShallowWater_2D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_hv, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu, PyArrayObject *__pyx_v_flux_hv);
2606 static PyObject *__pyx_pf_14cnumericalFlux_90calculateExteriorNumericalFluxShallowWater_2D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h_lq, PyArrayObject *__pyx_v_hu_lq, PyArrayObject *__pyx_v_hv_lq, PyArrayObject *__pyx_v_h_rq, PyArrayObject *__pyx_v_hu_rq, PyArrayObject *__pyx_v_hv_rq, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu, PyArrayObject *__pyx_v_flux_hv);
2607 static PyObject *__pyx_pf_14cnumericalFlux_92calculateInteriorNumericalFluxShallowWaterHLL_1D(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h, PyArrayObject *__pyx_v_hu, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu);
2608 static PyObject *__pyx_pf_14cnumericalFlux_94calculateExteriorNumericalFluxShallowWaterHLL_1D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
double __pyx_v_h_eps,
double __pyx_v_tol_u,
double __pyx_v_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_h_lv, PyArrayObject *__pyx_v_hu_lv, PyArrayObject *__pyx_v_h_rv, PyArrayObject *__pyx_v_hu_rv, PyArrayObject *__pyx_v_flux_h, PyArrayObject *__pyx_v_flux_hu);
2609 static PyObject *__pyx_pf_14cnumericalFlux_96calculateGlobalExteriorNumericalStressFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_v, PyArrayObject *__pyx_v_bc_w, PyArrayObject *__pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_stressFlux_u, PyArrayObject *__pyx_v_stressFlux_v, PyArrayObject *__pyx_v_stressFlux_w);
2610 static PyObject *__pyx_pf_14cnumericalFlux_98calculateExteriorNumericalAdvectiveFluxStokes3D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_mass_dw, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_flux_wmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_mass_dw, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_wmom_dp, PyArrayObject *__pyx_v_velocity);
2611 static PyObject *__pyx_pf_14cnumericalFlux_100calculateExteriorNumericalAdvectiveFluxNavierStokes3D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_bc_f_umom, PyArrayObject *__pyx_v_bc_f_vmom, PyArrayObject *__pyx_v_bc_f_wmom, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_f_umom, PyArrayObject *__pyx_v_f_vmom, PyArrayObject *__pyx_v_f_wmom, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_mass_dw, PyArrayObject *__pyx_v_df_umom_dp, PyArrayObject *__pyx_v_df_umom_du, PyArrayObject *__pyx_v_df_umom_dv, PyArrayObject *__pyx_v_df_umom_dw, PyArrayObject *__pyx_v_df_vmom_dp, PyArrayObject *__pyx_v_df_vmom_du, PyArrayObject *__pyx_v_df_vmom_dv, PyArrayObject *__pyx_v_df_vmom_dw, PyArrayObject *__pyx_v_df_wmom_dp, PyArrayObject *__pyx_v_df_wmom_du, PyArrayObject *__pyx_v_df_wmom_dv, PyArrayObject *__pyx_v_df_wmom_dw, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_flux_wmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_mass_dw, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_umom_du, PyArrayObject *__pyx_v_dflux_umom_dv, PyArrayObject *__pyx_v_dflux_umom_dw, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_vmom_du, PyArrayObject *__pyx_v_dflux_vmom_dv, PyArrayObject *__pyx_v_dflux_vmom_dw, PyArrayObject *__pyx_v_dflux_wmom_dp, PyArrayObject *__pyx_v_dflux_wmom_du, PyArrayObject *__pyx_v_dflux_wmom_dv, PyArrayObject *__pyx_v_dflux_wmom_dw, PyArrayObject *__pyx_v_velocity);
2612 static PyObject *__pyx_pf_14cnumericalFlux_102calculateExteriorNumericalAdvectiveFluxRusanov(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_df_element, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2613 static PyObject *__pyx_pf_14cnumericalFlux_104calculateGlobalExteriorNumericalAdvectiveFluxRusanov(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_df_element, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2614 static PyObject *__pyx_pf_14cnumericalFlux_106calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_lambda_bar, PyArrayObject *__pyx_v_flux);
2615 static PyObject *__pyx_pf_14cnumericalFlux_108calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_lambda_bar_element, PyArrayObject *__pyx_v_flux);
2616 static PyObject *__pyx_pf_14cnumericalFlux_110calculateExteriorNumericalDiffusiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2617 static PyObject *__pyx_pf_14cnumericalFlux_112calculateExteriorNumericalDiffusiveFlux_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2618 static PyObject *__pyx_pf_14cnumericalFlux_114calculateGlobalExteriorNumericalDiffusiveFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2619 static PyObject *__pyx_pf_14cnumericalFlux_116calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2620 static PyObject *__pyx_pf_14cnumericalFlux_118calculateGlobalExteriorNumericalDiffusiveFlux_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2621 static PyObject *__pyx_pf_14cnumericalFlux_120calculateExteriorNumericalDiffusiveFlux_free(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2622 static PyObject *__pyx_pf_14cnumericalFlux_122calculateExteriorNumericalDiffusiveFlux_free_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2623 static PyObject *__pyx_pf_14cnumericalFlux_124calculateGlobalExteriorNumericalDiffusiveFlux_free(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2624 static PyObject *__pyx_pf_14cnumericalFlux_126calculateGlobalExteriorNumericalDiffusiveFlux_free_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2625 static PyObject *__pyx_pf_14cnumericalFlux_128updateExteriorNumericalDiffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2626 static PyObject *__pyx_pf_14cnumericalFlux_130updateGlobalExteriorNumericalDiffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2627 static PyObject *__pyx_pf_14cnumericalFlux_132updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2628 static PyObject *__pyx_pf_14cnumericalFlux_134updateExteriorNumericalDiffusiveFluxJacobian_free(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2629 static PyObject *__pyx_pf_14cnumericalFlux_136updateGlobalExteriorNumericalDiffusiveFluxJacobian_free(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2630 static PyObject *__pyx_pf_14cnumericalFlux_138updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2631 static PyObject *__pyx_pf_14cnumericalFlux_140calculateGlobalExteriorNumericalAdvectiveFlux_NoBC(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left);
2632 static PyObject *__pyx_pf_14cnumericalFlux_142calculateGlobalExteriorNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2633 static PyObject *__pyx_pf_14cnumericalFlux_144calculateExteriorNumericalAdvectiveFlux_free(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2634 static PyObject *__pyx_pf_14cnumericalFlux_146calculateGlobalExteriorNumericalAdvectiveFlux_free(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2635 static PyObject *__pyx_pf_14cnumericalFlux_148calculateExteriorNumericalAdvectiveFluxStokesP2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_fpu, PyArrayObject *__pyx_v_bc_fpv, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_fpu, PyArrayObject *__pyx_v_fpv, PyArrayObject *__pyx_v_df_du, PyArrayObject *__pyx_v_df_dv, PyArrayObject *__pyx_v_dfpu_dp, PyArrayObject *__pyx_v_dfpv_dp, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_fluxpu, PyArrayObject *__pyx_v_fluxpv, PyArrayObject *__pyx_v_dflux_du, PyArrayObject *__pyx_v_dflux_dv, PyArrayObject *__pyx_v_dfluxpu_dp, PyArrayObject *__pyx_v_dfluxpv_dp);
2636 static PyObject *__pyx_pf_14cnumericalFlux_150calculateExteriorNumericalAdvectiveFluxNavierStokes2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_bc_f_umom, PyArrayObject *__pyx_v_bc_f_vmom, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_dm_umom, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_f_umom, PyArrayObject *__pyx_v_f_vmom, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_umom_dp, PyArrayObject *__pyx_v_df_umom_du, PyArrayObject *__pyx_v_df_umom_dv, PyArrayObject *__pyx_v_df_vmom_dp, PyArrayObject *__pyx_v_df_vmom_du, PyArrayObject *__pyx_v_df_vmom_dv, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_dflux_mass_dp, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_umom_du, PyArrayObject *__pyx_v_dflux_umom_dv, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_vmom_du, PyArrayObject *__pyx_v_dflux_vmom_dv, PyArrayObject *__pyx_v_velocity);
2637 static PyObject *__pyx_pf_14cnumericalFlux_152calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_bc_f_umom, PyArrayObject *__pyx_v_bc_f_vmom, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_oneByRho, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_f_umom, PyArrayObject *__pyx_v_f_vmom, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_umom_dp, PyArrayObject *__pyx_v_df_umom_du, PyArrayObject *__pyx_v_df_umom_dv, PyArrayObject *__pyx_v_df_vmom_dp, PyArrayObject *__pyx_v_df_vmom_du, PyArrayObject *__pyx_v_df_vmom_dv, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_dflux_mass_dp, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_umom_du, PyArrayObject *__pyx_v_dflux_umom_dv, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_vmom_du, PyArrayObject *__pyx_v_dflux_vmom_dv, PyArrayObject *__pyx_v_velocity);
2638 static PyObject *__pyx_pf_14cnumericalFlux_154calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_bc_f_umom, PyArrayObject *__pyx_v_bc_f_vmom, PyArrayObject *__pyx_v_bc_f_wmom, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_f_umom, PyArrayObject *__pyx_v_f_vmom, PyArrayObject *__pyx_v_f_wmom, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_mass_dw, PyArrayObject *__pyx_v_df_umom_dp, PyArrayObject *__pyx_v_df_umom_du, PyArrayObject *__pyx_v_df_umom_dv, PyArrayObject *__pyx_v_df_umom_dw, PyArrayObject *__pyx_v_df_vmom_dp, PyArrayObject *__pyx_v_df_vmom_du, PyArrayObject *__pyx_v_df_vmom_dv, PyArrayObject *__pyx_v_df_vmom_dw, PyArrayObject *__pyx_v_df_wmom_dp, PyArrayObject *__pyx_v_df_wmom_du, PyArrayObject *__pyx_v_df_wmom_dv, PyArrayObject *__pyx_v_df_wmom_dw, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_flux_wmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_mass_dw, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_umom_du, PyArrayObject *__pyx_v_dflux_umom_dv, PyArrayObject *__pyx_v_dflux_umom_dw, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_vmom_du, PyArrayObject *__pyx_v_dflux_vmom_dv, PyArrayObject *__pyx_v_dflux_vmom_dw, PyArrayObject *__pyx_v_dflux_wmom_dp, PyArrayObject *__pyx_v_dflux_wmom_du, PyArrayObject *__pyx_v_dflux_wmom_dv, PyArrayObject *__pyx_v_dflux_wmom_dw, PyArrayObject *__pyx_v_velocity);
2639 static PyObject *__pyx_pf_14cnumericalFlux_156calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_fpu, PyArrayObject *__pyx_v_bc_fpv, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_fpu, PyArrayObject *__pyx_v_fpv, PyArrayObject *__pyx_v_df_du, PyArrayObject *__pyx_v_df_dv, PyArrayObject *__pyx_v_dfpu_dp, PyArrayObject *__pyx_v_dfpv_dp, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_fluxpu, PyArrayObject *__pyx_v_fluxpv, PyArrayObject *__pyx_v_dflux_du, PyArrayObject *__pyx_v_dflux_dv, PyArrayObject *__pyx_v_dfluxpu_dp, PyArrayObject *__pyx_v_dfluxpv_dp);
2640 static PyObject *__pyx_pf_14cnumericalFlux_158calculateExteriorNumericalAdvectiveFluxStokesP3D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_fpu, PyArrayObject *__pyx_v_bc_fpv, PyArrayObject *__pyx_v_bc_fpw, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_fpu, PyArrayObject *__pyx_v_fpv, PyArrayObject *__pyx_v_fpw, PyArrayObject *__pyx_v_df_du, PyArrayObject *__pyx_v_df_dv, PyArrayObject *__pyx_v_df_dw, PyArrayObject *__pyx_v_dfpu_dp, PyArrayObject *__pyx_v_dfpv_dp, PyArrayObject *__pyx_v_dfpw_dp, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_fluxpu, PyArrayObject *__pyx_v_fluxpv, PyArrayObject *__pyx_v_fluxpw, PyArrayObject *__pyx_v_dflux_du, PyArrayObject *__pyx_v_dflux_dv, PyArrayObject *__pyx_v_dflux_dw, PyArrayObject *__pyx_v_dfluxpu_dp, PyArrayObject *__pyx_v_dfluxpv_dp, PyArrayObject *__pyx_v_dfluxpw_dp);
2641 static PyObject *__pyx_pf_14cnumericalFlux_160calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_fpu, PyArrayObject *__pyx_v_bc_fpv, PyArrayObject *__pyx_v_bc_fpw, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_fpu, PyArrayObject *__pyx_v_fpv, PyArrayObject *__pyx_v_fpw, PyArrayObject *__pyx_v_df_du, PyArrayObject *__pyx_v_df_dv, PyArrayObject *__pyx_v_df_dw, PyArrayObject *__pyx_v_dfpu_dp, PyArrayObject *__pyx_v_dfpv_dp, PyArrayObject *__pyx_v_dfpw_dp, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_fluxpu, PyArrayObject *__pyx_v_fluxpv, PyArrayObject *__pyx_v_fluxpw, PyArrayObject *__pyx_v_dflux_du, PyArrayObject *__pyx_v_dflux_dv, PyArrayObject *__pyx_v_dflux_dw, PyArrayObject *__pyx_v_dfluxpu_dp, PyArrayObject *__pyx_v_dfluxpv_dp, PyArrayObject *__pyx_v_dfluxpw_dp);
2642 static PyObject *__pyx_pf_14cnumericalFlux_162calculateExteriorNumericalAdvectiveFlux_average(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2643 static PyObject *__pyx_pf_14cnumericalFlux_164calculateGlobalExteriorNumericalAdvectiveFlux_average(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2644 static PyObject *__pyx_pf_14cnumericalFlux_166updateExteriorNumericalAdvectiveFluxJacobian_free(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2645 static PyObject *__pyx_pf_14cnumericalFlux_168updateGlobalExteriorNumericalAdvectiveFluxJacobian_free(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2646 static PyObject *__pyx_pf_14cnumericalFlux_170calculateExteriorNumericalDiffusiveFlux_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2647 static PyObject *__pyx_pf_14cnumericalFlux_172calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2648 static PyObject *__pyx_pf_14cnumericalFlux_174calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2649 static PyObject *__pyx_pf_14cnumericalFlux_176calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux);
2650 static PyObject *__pyx_pf_14cnumericalFlux_178updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDiffusiveFluxBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian, PyArrayObject *__pyx_v_fluxJacobian_eb);
2651 static PyObject *__pyx_pf_14cnumericalFlux_180updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDiffusiveFluxBoundary, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian, PyArrayObject *__pyx_v_fluxJacobian_eb);
2652 static PyObject *__pyx_pf_14cnumericalFlux_182updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDiffusiveFluxBoundary,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian_exterior, PyArrayObject *__pyx_v_fluxJacobian_eb);
2653 static PyObject *__pyx_pf_14cnumericalFlux_184updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDiffusiveFluxBoundary,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian_exterior, PyArrayObject *__pyx_v_fluxJacobian_eb);
2654 static PyObject *__pyx_pf_14cnumericalFlux_186calculateExteriorLesaintRaviartNumericalFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_speedEvalFlag, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_H, PyArrayObject *__pyx_v_bc_dH, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2655 static PyObject *__pyx_pf_14cnumericalFlux_188calculateGlobalExteriorLesaintRaviartNumericalFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace,
int __pyx_v_speedEvalFlag, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_H, PyArrayObject *__pyx_v_bc_dH, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux);
2656 static PyObject *__pyx_pf_14cnumericalFlux_190calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_sw, PyArrayObject *__pyx_v_isDOFBoundary_psiw, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_sw, PyArrayObject *__pyx_v_bc_psiw, PyArrayObject *__pyx_v_bc_fw, PyArrayObject *__pyx_v_bc_dfw_dsw, PyArrayObject *__pyx_v_bc_dfw_dpsiw, PyArrayObject *__pyx_v_bc_fn, PyArrayObject *__pyx_v_bc_dfn_dsw, PyArrayObject *__pyx_v_bc_dfn_dpsiw, PyArrayObject *__pyx_v_sw, PyArrayObject *__pyx_v_psiw, PyArrayObject *__pyx_v_fw, PyArrayObject *__pyx_v_dfw_dsw, PyArrayObject *__pyx_v_dfw_dpsiw, PyArrayObject *__pyx_v_fn, PyArrayObject *__pyx_v_dfn_dsw, PyArrayObject *__pyx_v_dfn_dpsiw, PyArrayObject *__pyx_v_fluxw, PyArrayObject *__pyx_v_dfluxw_dsw, PyArrayObject *__pyx_v_dfluxw_dpsiw, PyArrayObject *__pyx_v_fluxn, PyArrayObject *__pyx_v_dfluxn_dsw, PyArrayObject *__pyx_v_dfluxn_dpsiw);
2657 static PyObject *__pyx_pf_14cnumericalFlux_192calculateGlobalExteriorNumericalFluxDarcySplitPressure(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_diffusiveFlux);
2658 static PyObject *__pyx_pf_14cnumericalFlux_194calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_a, PyArrayObject *__pyx_v_bc_grad_phi, PyArrayObject *__pyx_v_bc_psi_w, PyArrayObject *__pyx_v_bc_psi_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_psi_w, PyArrayObject *__pyx_v_psi_n, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_diffusiveFlux);
2659 static PyObject *__pyx_pf_14cnumericalFlux_196updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_fluxBoundaryFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor);
2660 static PyObject *__pyx_pf_14cnumericalFlux_198updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nDOF_trial_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_fluxBoundaryFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian);
2661 static PyObject *__pyx_pf_14cnumericalFlux_200calculateGlobalExteriorNumericalAdvectiveFluxStokes2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_velocity);
2662 static PyObject *__pyx_pf_14cnumericalFlux_202calculateGlobalExteriorNumericalAdvectiveFluxStokes3D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary_p, PyArrayObject *__pyx_v_isDOFBoundary_u, PyArrayObject *__pyx_v_isDOFBoundary_v, PyArrayObject *__pyx_v_isDOFBoundary_w, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_p, PyArrayObject *__pyx_v_bc_f_mass, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_f_mass, PyArrayObject *__pyx_v_df_mass_du, PyArrayObject *__pyx_v_df_mass_dv, PyArrayObject *__pyx_v_df_mass_dw, PyArrayObject *__pyx_v_flux_mass, PyArrayObject *__pyx_v_flux_umom, PyArrayObject *__pyx_v_flux_vmom, PyArrayObject *__pyx_v_flux_wmom, PyArrayObject *__pyx_v_dflux_mass_du, PyArrayObject *__pyx_v_dflux_mass_dv, PyArrayObject *__pyx_v_dflux_mass_dw, PyArrayObject *__pyx_v_dflux_umom_dp, PyArrayObject *__pyx_v_dflux_vmom_dp, PyArrayObject *__pyx_v_dflux_wmom_dp, PyArrayObject *__pyx_v_velocity);
2663 static PyObject *__pyx_pf_14cnumericalFlux_204applySeepageFace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isSeepageFace, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_epsFact, PyArrayObject *__pyx_v_elementDiameters, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux);
2664 static PyObject *__pyx_pf_14cnumericalFlux_206applySeepageFaceJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isSeepageFace,
double __pyx_v_epsFact, PyArrayObject *__pyx_v_elementDiameters, PyArrayObject *__pyx_v_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_advectiveFlux, PyArrayObject *__pyx_v_diffusiveFlux, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian);
2665 static PyObject *__pyx_int_0;
2666 static PyObject *__pyx_int_1;
2667 static PyObject *__pyx_int_3;
2668 static PyObject *__pyx_int_4;
2669 static PyObject *__pyx_tuple_;
2670 static PyObject *__pyx_tuple__2;
2671 static PyObject *__pyx_tuple__3;
2672 static PyObject *__pyx_tuple__5;
2673 static PyObject *__pyx_tuple__7;
2674 static PyObject *__pyx_tuple__9;
2675 static PyObject *__pyx_tuple__11;
2676 static PyObject *__pyx_tuple__13;
2677 static PyObject *__pyx_tuple__15;
2678 static PyObject *__pyx_tuple__17;
2679 static PyObject *__pyx_tuple__19;
2680 static PyObject *__pyx_tuple__21;
2681 static PyObject *__pyx_tuple__23;
2682 static PyObject *__pyx_tuple__25;
2683 static PyObject *__pyx_tuple__27;
2684 static PyObject *__pyx_tuple__29;
2685 static PyObject *__pyx_tuple__31;
2686 static PyObject *__pyx_tuple__33;
2687 static PyObject *__pyx_tuple__35;
2688 static PyObject *__pyx_tuple__37;
2689 static PyObject *__pyx_tuple__39;
2690 static PyObject *__pyx_tuple__41;
2691 static PyObject *__pyx_tuple__43;
2692 static PyObject *__pyx_tuple__45;
2693 static PyObject *__pyx_tuple__47;
2694 static PyObject *__pyx_tuple__49;
2695 static PyObject *__pyx_tuple__51;
2696 static PyObject *__pyx_tuple__53;
2697 static PyObject *__pyx_tuple__55;
2698 static PyObject *__pyx_tuple__57;
2699 static PyObject *__pyx_tuple__59;
2700 static PyObject *__pyx_tuple__61;
2701 static PyObject *__pyx_tuple__63;
2702 static PyObject *__pyx_tuple__65;
2703 static PyObject *__pyx_tuple__67;
2704 static PyObject *__pyx_tuple__69;
2705 static PyObject *__pyx_tuple__71;
2706 static PyObject *__pyx_tuple__73;
2707 static PyObject *__pyx_tuple__75;
2708 static PyObject *__pyx_tuple__77;
2709 static PyObject *__pyx_tuple__79;
2710 static PyObject *__pyx_tuple__81;
2711 static PyObject *__pyx_tuple__83;
2712 static PyObject *__pyx_tuple__85;
2713 static PyObject *__pyx_tuple__87;
2714 static PyObject *__pyx_tuple__89;
2715 static PyObject *__pyx_tuple__91;
2716 static PyObject *__pyx_tuple__93;
2717 static PyObject *__pyx_tuple__95;
2718 static PyObject *__pyx_tuple__97;
2719 static PyObject *__pyx_tuple__99;
2720 static PyObject *__pyx_codeobj__4;
2721 static PyObject *__pyx_codeobj__6;
2722 static PyObject *__pyx_codeobj__8;
2723 static PyObject *__pyx_tuple__101;
2724 static PyObject *__pyx_tuple__103;
2725 static PyObject *__pyx_tuple__105;
2726 static PyObject *__pyx_tuple__107;
2727 static PyObject *__pyx_tuple__109;
2728 static PyObject *__pyx_tuple__111;
2729 static PyObject *__pyx_tuple__113;
2730 static PyObject *__pyx_tuple__115;
2731 static PyObject *__pyx_tuple__117;
2732 static PyObject *__pyx_tuple__119;
2733 static PyObject *__pyx_tuple__121;
2734 static PyObject *__pyx_tuple__123;
2735 static PyObject *__pyx_tuple__125;
2736 static PyObject *__pyx_tuple__127;
2737 static PyObject *__pyx_tuple__129;
2738 static PyObject *__pyx_tuple__131;
2739 static PyObject *__pyx_tuple__133;
2740 static PyObject *__pyx_tuple__135;
2741 static PyObject *__pyx_tuple__137;
2742 static PyObject *__pyx_tuple__139;
2743 static PyObject *__pyx_tuple__141;
2744 static PyObject *__pyx_tuple__143;
2745 static PyObject *__pyx_tuple__145;
2746 static PyObject *__pyx_tuple__147;
2747 static PyObject *__pyx_tuple__149;
2748 static PyObject *__pyx_tuple__151;
2749 static PyObject *__pyx_tuple__153;
2750 static PyObject *__pyx_tuple__155;
2751 static PyObject *__pyx_tuple__157;
2752 static PyObject *__pyx_tuple__159;
2753 static PyObject *__pyx_tuple__161;
2754 static PyObject *__pyx_tuple__163;
2755 static PyObject *__pyx_tuple__165;
2756 static PyObject *__pyx_tuple__167;
2757 static PyObject *__pyx_tuple__169;
2758 static PyObject *__pyx_tuple__171;
2759 static PyObject *__pyx_tuple__173;
2760 static PyObject *__pyx_tuple__175;
2761 static PyObject *__pyx_tuple__177;
2762 static PyObject *__pyx_tuple__179;
2763 static PyObject *__pyx_tuple__181;
2764 static PyObject *__pyx_tuple__183;
2765 static PyObject *__pyx_tuple__185;
2766 static PyObject *__pyx_tuple__187;
2767 static PyObject *__pyx_tuple__189;
2768 static PyObject *__pyx_tuple__191;
2769 static PyObject *__pyx_tuple__193;
2770 static PyObject *__pyx_tuple__195;
2771 static PyObject *__pyx_tuple__197;
2772 static PyObject *__pyx_tuple__199;
2773 static PyObject *__pyx_tuple__201;
2774 static PyObject *__pyx_tuple__203;
2775 static PyObject *__pyx_tuple__205;
2776 static PyObject *__pyx_tuple__207;
2777 static PyObject *__pyx_tuple__209;
2778 static PyObject *__pyx_codeobj__10;
2779 static PyObject *__pyx_codeobj__12;
2780 static PyObject *__pyx_codeobj__14;
2781 static PyObject *__pyx_codeobj__16;
2782 static PyObject *__pyx_codeobj__18;
2783 static PyObject *__pyx_codeobj__20;
2784 static PyObject *__pyx_codeobj__22;
2785 static PyObject *__pyx_codeobj__24;
2786 static PyObject *__pyx_codeobj__26;
2787 static PyObject *__pyx_codeobj__28;
2788 static PyObject *__pyx_codeobj__30;
2789 static PyObject *__pyx_codeobj__32;
2790 static PyObject *__pyx_codeobj__34;
2791 static PyObject *__pyx_codeobj__36;
2792 static PyObject *__pyx_codeobj__38;
2793 static PyObject *__pyx_codeobj__40;
2794 static PyObject *__pyx_codeobj__42;
2795 static PyObject *__pyx_codeobj__44;
2796 static PyObject *__pyx_codeobj__46;
2797 static PyObject *__pyx_codeobj__48;
2798 static PyObject *__pyx_codeobj__50;
2799 static PyObject *__pyx_codeobj__52;
2800 static PyObject *__pyx_codeobj__54;
2801 static PyObject *__pyx_codeobj__56;
2802 static PyObject *__pyx_codeobj__58;
2803 static PyObject *__pyx_codeobj__60;
2804 static PyObject *__pyx_codeobj__62;
2805 static PyObject *__pyx_codeobj__64;
2806 static PyObject *__pyx_codeobj__66;
2807 static PyObject *__pyx_codeobj__68;
2808 static PyObject *__pyx_codeobj__70;
2809 static PyObject *__pyx_codeobj__72;
2810 static PyObject *__pyx_codeobj__74;
2811 static PyObject *__pyx_codeobj__76;
2812 static PyObject *__pyx_codeobj__78;
2813 static PyObject *__pyx_codeobj__80;
2814 static PyObject *__pyx_codeobj__82;
2815 static PyObject *__pyx_codeobj__84;
2816 static PyObject *__pyx_codeobj__86;
2817 static PyObject *__pyx_codeobj__88;
2818 static PyObject *__pyx_codeobj__90;
2819 static PyObject *__pyx_codeobj__92;
2820 static PyObject *__pyx_codeobj__94;
2821 static PyObject *__pyx_codeobj__96;
2822 static PyObject *__pyx_codeobj__98;
2823 static PyObject *__pyx_codeobj__100;
2824 static PyObject *__pyx_codeobj__102;
2825 static PyObject *__pyx_codeobj__104;
2826 static PyObject *__pyx_codeobj__106;
2827 static PyObject *__pyx_codeobj__108;
2828 static PyObject *__pyx_codeobj__110;
2829 static PyObject *__pyx_codeobj__112;
2830 static PyObject *__pyx_codeobj__114;
2831 static PyObject *__pyx_codeobj__116;
2832 static PyObject *__pyx_codeobj__118;
2833 static PyObject *__pyx_codeobj__120;
2834 static PyObject *__pyx_codeobj__122;
2835 static PyObject *__pyx_codeobj__124;
2836 static PyObject *__pyx_codeobj__126;
2837 static PyObject *__pyx_codeobj__128;
2838 static PyObject *__pyx_codeobj__130;
2839 static PyObject *__pyx_codeobj__132;
2840 static PyObject *__pyx_codeobj__134;
2841 static PyObject *__pyx_codeobj__136;
2842 static PyObject *__pyx_codeobj__138;
2843 static PyObject *__pyx_codeobj__140;
2844 static PyObject *__pyx_codeobj__142;
2845 static PyObject *__pyx_codeobj__144;
2846 static PyObject *__pyx_codeobj__146;
2847 static PyObject *__pyx_codeobj__148;
2848 static PyObject *__pyx_codeobj__150;
2849 static PyObject *__pyx_codeobj__152;
2850 static PyObject *__pyx_codeobj__154;
2851 static PyObject *__pyx_codeobj__156;
2852 static PyObject *__pyx_codeobj__158;
2853 static PyObject *__pyx_codeobj__160;
2854 static PyObject *__pyx_codeobj__162;
2855 static PyObject *__pyx_codeobj__164;
2856 static PyObject *__pyx_codeobj__166;
2857 static PyObject *__pyx_codeobj__168;
2858 static PyObject *__pyx_codeobj__170;
2859 static PyObject *__pyx_codeobj__172;
2860 static PyObject *__pyx_codeobj__174;
2861 static PyObject *__pyx_codeobj__176;
2862 static PyObject *__pyx_codeobj__178;
2863 static PyObject *__pyx_codeobj__180;
2864 static PyObject *__pyx_codeobj__182;
2865 static PyObject *__pyx_codeobj__184;
2866 static PyObject *__pyx_codeobj__186;
2867 static PyObject *__pyx_codeobj__188;
2868 static PyObject *__pyx_codeobj__190;
2869 static PyObject *__pyx_codeobj__192;
2870 static PyObject *__pyx_codeobj__194;
2871 static PyObject *__pyx_codeobj__196;
2872 static PyObject *__pyx_codeobj__198;
2873 static PyObject *__pyx_codeobj__200;
2874 static PyObject *__pyx_codeobj__202;
2875 static PyObject *__pyx_codeobj__204;
2876 static PyObject *__pyx_codeobj__206;
2877 static PyObject *__pyx_codeobj__208;
2878 static PyObject *__pyx_codeobj__210;
2890 static PyObject *__pyx_pw_14cnumericalFlux_1calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
2891 static PyMethodDef __pyx_mdef_14cnumericalFlux_1calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound = {
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_1calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, METH_VARARGS|METH_KEYWORDS, 0};
2892 static PyObject *__pyx_pw_14cnumericalFlux_1calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2893 double __pyx_v_safetyFactor;
2894 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
2895 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
2896 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
2897 PyArrayObject *__pyx_v_n = 0;
2898 PyArrayObject *__pyx_v_u = 0;
2899 PyArrayObject *__pyx_v_f = 0;
2900 PyArrayObject *__pyx_v_lambda_bar_element = 0;
2901 PyArrayObject *__pyx_v_flux = 0;
2902 int __pyx_lineno = 0;
2903 const char *__pyx_filename = NULL;
2904 int __pyx_clineno = 0;
2905 PyObject *__pyx_r = 0;
2906 __Pyx_RefNannyDeclarations
2907 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound (wrapper)", 0);
2909 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_lambda_bar_element,&__pyx_n_s_flux,0};
2910 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
2911 if (unlikely(__pyx_kwds)) {
2913 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2915 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
2917 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
2919 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
2921 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2923 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2925 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2927 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2929 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2931 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2934 default:
goto __pyx_L5_argtuple_error;
2936 kw_args = PyDict_Size(__pyx_kwds);
2939 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
2940 else goto __pyx_L5_argtuple_error;
2943 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
2945 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 1); __PYX_ERR(0, 2147, __pyx_L3_error)
2949 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
2951 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 2); __PYX_ERR(0, 2147, __pyx_L3_error)
2955 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
2957 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 3); __PYX_ERR(0, 2147, __pyx_L3_error)
2961 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
2963 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 4); __PYX_ERR(0, 2147, __pyx_L3_error)
2967 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
2969 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 5); __PYX_ERR(0, 2147, __pyx_L3_error)
2973 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
2975 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 6); __PYX_ERR(0, 2147, __pyx_L3_error)
2979 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lambda_bar_element)) != 0)) kw_args--;
2981 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 7); __PYX_ERR(0, 2147, __pyx_L3_error)
2985 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
2987 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, 8); __PYX_ERR(0, 2147, __pyx_L3_error)
2990 if (unlikely(kw_args > 0)) {
2991 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound") < 0)) __PYX_ERR(0, 2147, __pyx_L3_error)
2993 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
2994 goto __pyx_L5_argtuple_error;
2996 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2997 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2998 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2999 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3000 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3001 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3002 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3003 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3004 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3006 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2147, __pyx_L3_error)
3007 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
3008 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
3009 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
3010 __pyx_v_n = ((PyArrayObject *)values[4]);
3011 __pyx_v_u = ((PyArrayObject *)values[5]);
3012 __pyx_v_f = ((PyArrayObject *)values[6]);
3013 __pyx_v_lambda_bar_element = ((PyArrayObject *)values[7]);
3014 __pyx_v_flux = ((PyArrayObject *)values[8]);
3016 goto __pyx_L4_argument_unpacking_done;
3017 __pyx_L5_argtuple_error:;
3018 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2147, __pyx_L3_error)
3020 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", __pyx_clineno, __pyx_lineno, __pyx_filename);
3021 __Pyx_RefNannyFinishContext();
3023 __pyx_L4_argument_unpacking_done:;
3024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2148, __pyx_L1_error)
3025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2149, __pyx_L1_error)
3026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2150, __pyx_L1_error)
3027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2151, __pyx_L1_error)
3028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2152, __pyx_L1_error)
3029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2153, __pyx_L1_error)
3030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lambda_bar_element), __pyx_ptype_5numpy_ndarray, 1,
"lambda_bar_element", 0))) __PYX_ERR(0, 2154, __pyx_L1_error)
3031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2155, __pyx_L1_error)
3032 __pyx_r = __pyx_pf_14cnumericalFlux_calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_self, __pyx_v_safetyFactor, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_f, __pyx_v_lambda_bar_element, __pyx_v_flux);
3039 __Pyx_RefNannyFinishContext();
3043 static PyObject *__pyx_pf_14cnumericalFlux_calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_lambda_bar_element, PyArrayObject *__pyx_v_flux) {
3044 PyObject *__pyx_r = NULL;
3045 __Pyx_RefNannyDeclarations
3046 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 0);
3055 calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_v_safetyFactor, (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_lambda_bar_element->dimensions[1]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_lambda_bar_element->data), ((
double *)__pyx_v_flux->data));
3066 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3067 __Pyx_XGIVEREF(__pyx_r);
3068 __Pyx_RefNannyFinishContext();
3081 static PyObject *__pyx_pw_14cnumericalFlux_3calculateInteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3082 static PyMethodDef __pyx_mdef_14cnumericalFlux_3calculateInteriorLesaintRaviartNumericalFlux = {
"calculateInteriorLesaintRaviartNumericalFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_3calculateInteriorLesaintRaviartNumericalFlux, METH_VARARGS|METH_KEYWORDS, 0};
3083 static PyObject *__pyx_pw_14cnumericalFlux_3calculateInteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3084 int __pyx_v_speedEvalFlag;
3085 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
3086 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
3087 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
3088 PyArrayObject *__pyx_v_n = 0;
3089 PyArrayObject *__pyx_v_u = 0;
3090 PyArrayObject *__pyx_v_H = 0;
3091 PyArrayObject *__pyx_v_dH = 0;
3092 PyArrayObject *__pyx_v_flux = 0;
3093 PyArrayObject *__pyx_v_dflux_left = 0;
3094 PyArrayObject *__pyx_v_dflux_right = 0;
3095 int __pyx_lineno = 0;
3096 const char *__pyx_filename = NULL;
3097 int __pyx_clineno = 0;
3098 PyObject *__pyx_r = 0;
3099 __Pyx_RefNannyDeclarations
3100 __Pyx_RefNannySetupContext(
"calculateInteriorLesaintRaviartNumericalFlux (wrapper)", 0);
3102 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_speedEvalFlag,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
3103 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
3104 if (unlikely(__pyx_kwds)) {
3106 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3108 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3110 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3112 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3114 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3116 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3118 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3120 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3122 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3124 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3126 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3128 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3131 default:
goto __pyx_L5_argtuple_error;
3133 kw_args = PyDict_Size(__pyx_kwds);
3136 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speedEvalFlag)) != 0)) kw_args--;
3137 else goto __pyx_L5_argtuple_error;
3140 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
3142 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 1); __PYX_ERR(0, 2170, __pyx_L3_error)
3146 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
3148 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 2); __PYX_ERR(0, 2170, __pyx_L3_error)
3152 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
3154 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 3); __PYX_ERR(0, 2170, __pyx_L3_error)
3158 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
3160 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 4); __PYX_ERR(0, 2170, __pyx_L3_error)
3164 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3166 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 5); __PYX_ERR(0, 2170, __pyx_L3_error)
3170 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
3172 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 6); __PYX_ERR(0, 2170, __pyx_L3_error)
3176 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
3178 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 7); __PYX_ERR(0, 2170, __pyx_L3_error)
3182 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
3184 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 8); __PYX_ERR(0, 2170, __pyx_L3_error)
3188 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
3190 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 9); __PYX_ERR(0, 2170, __pyx_L3_error)
3194 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
3196 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, 10); __PYX_ERR(0, 2170, __pyx_L3_error)
3199 if (unlikely(kw_args > 0)) {
3200 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorLesaintRaviartNumericalFlux") < 0)) __PYX_ERR(0, 2170, __pyx_L3_error)
3202 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
3203 goto __pyx_L5_argtuple_error;
3205 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3206 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3207 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3208 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3209 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3210 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3211 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3212 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3213 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3214 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3215 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3217 __pyx_v_speedEvalFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_speedEvalFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2170, __pyx_L3_error)
3218 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
3219 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
3220 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
3221 __pyx_v_n = ((PyArrayObject *)values[4]);
3222 __pyx_v_u = ((PyArrayObject *)values[5]);
3223 __pyx_v_H = ((PyArrayObject *)values[6]);
3224 __pyx_v_dH = ((PyArrayObject *)values[7]);
3225 __pyx_v_flux = ((PyArrayObject *)values[8]);
3226 __pyx_v_dflux_left = ((PyArrayObject *)values[9]);
3227 __pyx_v_dflux_right = ((PyArrayObject *)values[10]);
3229 goto __pyx_L4_argument_unpacking_done;
3230 __pyx_L5_argtuple_error:;
3231 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorLesaintRaviartNumericalFlux", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2170, __pyx_L3_error)
3233 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorLesaintRaviartNumericalFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
3234 __Pyx_RefNannyFinishContext();
3236 __pyx_L4_argument_unpacking_done:;
3237 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2171, __pyx_L1_error)
3238 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2172, __pyx_L1_error)
3239 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2173, __pyx_L1_error)
3240 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2174, __pyx_L1_error)
3241 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2175, __pyx_L1_error)
3242 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 2176, __pyx_L1_error)
3243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 2177, __pyx_L1_error)
3244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2178, __pyx_L1_error)
3245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2179, __pyx_L1_error)
3246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2180, __pyx_L1_error)
3247 __pyx_r = __pyx_pf_14cnumericalFlux_2calculateInteriorLesaintRaviartNumericalFlux(__pyx_self, __pyx_v_speedEvalFlag, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_H, __pyx_v_dH, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
3254 __Pyx_RefNannyFinishContext();
3258 static PyObject *__pyx_pf_14cnumericalFlux_2calculateInteriorLesaintRaviartNumericalFlux(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_speedEvalFlag, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right) {
3259 PyObject *__pyx_r = NULL;
3260 __Pyx_RefNannyDeclarations
3261 __Pyx_RefNannySetupContext(
"calculateInteriorLesaintRaviartNumericalFlux", 0);
3270 calculateInteriorLesaintRaviartNumericalFlux((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_dH->dimensions[1]), (__pyx_v_dH->dimensions[2]), (__pyx_v_dH->dimensions[3]), __pyx_v_speedEvalFlag, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
3281 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3282 __Pyx_XGIVEREF(__pyx_r);
3283 __Pyx_RefNannyFinishContext();
3296 static PyObject *__pyx_pw_14cnumericalFlux_5calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3297 static PyMethodDef __pyx_mdef_14cnumericalFlux_5calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint = {
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_5calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint, METH_VARARGS|METH_KEYWORDS, 0};
3298 static PyObject *__pyx_pw_14cnumericalFlux_5calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3299 double __pyx_v_sonicPoint;
3300 double __pyx_v_sonicFlux;
3301 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
3302 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
3303 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
3304 PyArrayObject *__pyx_v_n = 0;
3305 PyArrayObject *__pyx_v_u = 0;
3306 PyArrayObject *__pyx_v_f = 0;
3307 PyArrayObject *__pyx_v_df = 0;
3308 PyArrayObject *__pyx_v_flux = 0;
3309 PyArrayObject *__pyx_v_dflux_left = 0;
3310 PyArrayObject *__pyx_v_dflux_right = 0;
3311 int __pyx_lineno = 0;
3312 const char *__pyx_filename = NULL;
3313 int __pyx_clineno = 0;
3314 PyObject *__pyx_r = 0;
3315 __Pyx_RefNannyDeclarations
3316 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint (wrapper)", 0);
3318 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sonicPoint,&__pyx_n_s_sonicFlux,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
3319 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
3320 if (unlikely(__pyx_kwds)) {
3322 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3324 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3326 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3328 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3330 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3332 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3334 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3336 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3338 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3340 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3342 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3344 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3346 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3349 default:
goto __pyx_L5_argtuple_error;
3351 kw_args = PyDict_Size(__pyx_kwds);
3354 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sonicPoint)) != 0)) kw_args--;
3355 else goto __pyx_L5_argtuple_error;
3358 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sonicFlux)) != 0)) kw_args--;
3360 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 1); __PYX_ERR(0, 2196, __pyx_L3_error)
3364 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
3366 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 2); __PYX_ERR(0, 2196, __pyx_L3_error)
3370 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
3372 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 3); __PYX_ERR(0, 2196, __pyx_L3_error)
3376 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
3378 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 4); __PYX_ERR(0, 2196, __pyx_L3_error)
3382 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
3384 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 5); __PYX_ERR(0, 2196, __pyx_L3_error)
3388 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3390 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 6); __PYX_ERR(0, 2196, __pyx_L3_error)
3394 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3396 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 7); __PYX_ERR(0, 2196, __pyx_L3_error)
3400 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3402 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 8); __PYX_ERR(0, 2196, __pyx_L3_error)
3406 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
3408 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 9); __PYX_ERR(0, 2196, __pyx_L3_error)
3412 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
3414 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 10); __PYX_ERR(0, 2196, __pyx_L3_error)
3418 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
3420 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, 11); __PYX_ERR(0, 2196, __pyx_L3_error)
3423 if (unlikely(kw_args > 0)) {
3424 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint") < 0)) __PYX_ERR(0, 2196, __pyx_L3_error)
3426 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
3427 goto __pyx_L5_argtuple_error;
3429 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3430 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3431 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3432 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3433 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3434 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3435 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3436 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3437 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3438 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3439 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3440 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3442 __pyx_v_sonicPoint = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_sonicPoint == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2196, __pyx_L3_error)
3443 __pyx_v_sonicFlux = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_sonicFlux == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2197, __pyx_L3_error)
3444 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
3445 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
3446 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
3447 __pyx_v_n = ((PyArrayObject *)values[5]);
3448 __pyx_v_u = ((PyArrayObject *)values[6]);
3449 __pyx_v_f = ((PyArrayObject *)values[7]);
3450 __pyx_v_df = ((PyArrayObject *)values[8]);
3451 __pyx_v_flux = ((PyArrayObject *)values[9]);
3452 __pyx_v_dflux_left = ((PyArrayObject *)values[10]);
3453 __pyx_v_dflux_right = ((PyArrayObject *)values[11]);
3455 goto __pyx_L4_argument_unpacking_done;
3456 __pyx_L5_argtuple_error:;
3457 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2196, __pyx_L3_error)
3459 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
3460 __Pyx_RefNannyFinishContext();
3462 __pyx_L4_argument_unpacking_done:;
3463 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2198, __pyx_L1_error)
3464 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2199, __pyx_L1_error)
3465 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2200, __pyx_L1_error)
3466 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2201, __pyx_L1_error)
3467 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2202, __pyx_L1_error)
3468 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2203, __pyx_L1_error)
3469 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2204, __pyx_L1_error)
3470 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2205, __pyx_L1_error)
3471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2206, __pyx_L1_error)
3472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2207, __pyx_L1_error)
3473 __pyx_r = __pyx_pf_14cnumericalFlux_4calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(__pyx_self, __pyx_v_sonicPoint, __pyx_v_sonicFlux, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
3480 __Pyx_RefNannyFinishContext();
3484 static PyObject *__pyx_pf_14cnumericalFlux_4calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_sonicPoint,
double __pyx_v_sonicFlux, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right) {
3485 PyObject *__pyx_r = NULL;
3486 __Pyx_RefNannyDeclarations
3487 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint", 0);
3496 calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint(__pyx_v_sonicPoint, __pyx_v_sonicFlux, (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
3507 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3508 __Pyx_XGIVEREF(__pyx_r);
3509 __Pyx_RefNannyFinishContext();
3522 static PyObject *__pyx_pw_14cnumericalFlux_7calculateInteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3523 static PyMethodDef __pyx_mdef_14cnumericalFlux_7calculateInteriorNumericalAdvectiveFluxRusanov = {
"calculateInteriorNumericalAdvectiveFluxRusanov", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_7calculateInteriorNumericalAdvectiveFluxRusanov, METH_VARARGS|METH_KEYWORDS, 0};
3524 static PyObject *__pyx_pw_14cnumericalFlux_7calculateInteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3525 double __pyx_v_safetyFactor;
3526 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
3527 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
3528 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
3529 PyArrayObject *__pyx_v_n = 0;
3530 PyArrayObject *__pyx_v_u = 0;
3531 PyArrayObject *__pyx_v_f = 0;
3532 PyArrayObject *__pyx_v_df = 0;
3533 PyArrayObject *__pyx_v_df_element = 0;
3534 PyArrayObject *__pyx_v_flux = 0;
3535 PyArrayObject *__pyx_v_dflux_left = 0;
3536 PyArrayObject *__pyx_v_dflux_right = 0;
3537 int __pyx_lineno = 0;
3538 const char *__pyx_filename = NULL;
3539 int __pyx_clineno = 0;
3540 PyObject *__pyx_r = 0;
3541 __Pyx_RefNannyDeclarations
3542 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxRusanov (wrapper)", 0);
3544 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_df_element,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
3545 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
3546 if (unlikely(__pyx_kwds)) {
3548 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3550 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3552 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3554 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3556 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3558 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3560 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3562 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3564 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3566 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3568 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3570 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3572 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3575 default:
goto __pyx_L5_argtuple_error;
3577 kw_args = PyDict_Size(__pyx_kwds);
3580 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
3581 else goto __pyx_L5_argtuple_error;
3584 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
3586 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 1); __PYX_ERR(0, 2224, __pyx_L3_error)
3590 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
3592 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 2); __PYX_ERR(0, 2224, __pyx_L3_error)
3596 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
3598 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 3); __PYX_ERR(0, 2224, __pyx_L3_error)
3602 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
3604 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 4); __PYX_ERR(0, 2224, __pyx_L3_error)
3608 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3610 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 5); __PYX_ERR(0, 2224, __pyx_L3_error)
3614 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
3616 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 6); __PYX_ERR(0, 2224, __pyx_L3_error)
3620 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
3622 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 7); __PYX_ERR(0, 2224, __pyx_L3_error)
3626 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_element)) != 0)) kw_args--;
3628 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 8); __PYX_ERR(0, 2224, __pyx_L3_error)
3632 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
3634 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 9); __PYX_ERR(0, 2224, __pyx_L3_error)
3638 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
3640 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 10); __PYX_ERR(0, 2224, __pyx_L3_error)
3644 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
3646 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, 11); __PYX_ERR(0, 2224, __pyx_L3_error)
3649 if (unlikely(kw_args > 0)) {
3650 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalAdvectiveFluxRusanov") < 0)) __PYX_ERR(0, 2224, __pyx_L3_error)
3652 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
3653 goto __pyx_L5_argtuple_error;
3655 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3656 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3657 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3658 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3659 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3660 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3661 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3662 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3663 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3664 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3665 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3666 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
3668 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2224, __pyx_L3_error)
3669 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
3670 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
3671 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
3672 __pyx_v_n = ((PyArrayObject *)values[4]);
3673 __pyx_v_u = ((PyArrayObject *)values[5]);
3674 __pyx_v_f = ((PyArrayObject *)values[6]);
3675 __pyx_v_df = ((PyArrayObject *)values[7]);
3676 __pyx_v_df_element = ((PyArrayObject *)values[8]);
3677 __pyx_v_flux = ((PyArrayObject *)values[9]);
3678 __pyx_v_dflux_left = ((PyArrayObject *)values[10]);
3679 __pyx_v_dflux_right = ((PyArrayObject *)values[11]);
3681 goto __pyx_L4_argument_unpacking_done;
3682 __pyx_L5_argtuple_error:;
3683 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFluxRusanov", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2224, __pyx_L3_error)
3685 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalAdvectiveFluxRusanov", __pyx_clineno, __pyx_lineno, __pyx_filename);
3686 __Pyx_RefNannyFinishContext();
3688 __pyx_L4_argument_unpacking_done:;
3689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2225, __pyx_L1_error)
3690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2226, __pyx_L1_error)
3691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2227, __pyx_L1_error)
3692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2228, __pyx_L1_error)
3693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2229, __pyx_L1_error)
3694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2230, __pyx_L1_error)
3695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2231, __pyx_L1_error)
3696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_element), __pyx_ptype_5numpy_ndarray, 1,
"df_element", 0))) __PYX_ERR(0, 2232, __pyx_L1_error)
3697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2233, __pyx_L1_error)
3698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2234, __pyx_L1_error)
3699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2235, __pyx_L1_error)
3700 __pyx_r = __pyx_pf_14cnumericalFlux_6calculateInteriorNumericalAdvectiveFluxRusanov(__pyx_self, __pyx_v_safetyFactor, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_f, __pyx_v_df, __pyx_v_df_element, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
3707 __Pyx_RefNannyFinishContext();
3711 static PyObject *__pyx_pf_14cnumericalFlux_6calculateInteriorNumericalAdvectiveFluxRusanov(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_safetyFactor, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_df_element, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right) {
3712 PyObject *__pyx_r = NULL;
3713 __Pyx_RefNannyDeclarations
3714 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFluxRusanov", 0);
3723 calculateInteriorNumericalAdvectiveFluxRusanov(__pyx_v_safetyFactor, (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_df_element->dimensions[1]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_df_element->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
3734 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3735 __Pyx_XGIVEREF(__pyx_r);
3736 __Pyx_RefNannyFinishContext();
3749 static PyObject *__pyx_pw_14cnumericalFlux_9calculateInteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3750 static PyMethodDef __pyx_mdef_14cnumericalFlux_9calculateInteriorNumericalDiffusiveFlux = {
"calculateInteriorNumericalDiffusiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_9calculateInteriorNumericalDiffusiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
3751 static PyObject *__pyx_pw_14cnumericalFlux_9calculateInteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3752 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
3753 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
3754 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
3755 PyArrayObject *__pyx_v_n = 0;
3756 PyArrayObject *__pyx_v_a = 0;
3757 PyArrayObject *__pyx_v_grad_phi = 0;
3758 PyArrayObject *__pyx_v_u = 0;
3759 PyArrayObject *__pyx_v_penalty = 0;
3760 PyArrayObject *__pyx_v_flux = 0;
3761 int __pyx_v_scale_penalty;
3762 double __pyx_v_penalty_floor;
3763 int __pyx_lineno = 0;
3764 const char *__pyx_filename = NULL;
3765 int __pyx_clineno = 0;
3766 PyObject *__pyx_r = 0;
3767 __Pyx_RefNannyDeclarations
3768 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux (wrapper)", 0);
3770 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,0};
3771 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
3772 if (unlikely(__pyx_kwds)) {
3774 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3776 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3778 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3780 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3782 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3784 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3786 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3788 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3790 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3792 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3794 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3796 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3799 default:
goto __pyx_L5_argtuple_error;
3801 kw_args = PyDict_Size(__pyx_kwds);
3804 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
3805 else goto __pyx_L5_argtuple_error;
3808 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
3810 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 1); __PYX_ERR(0, 2254, __pyx_L3_error)
3814 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
3816 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 2); __PYX_ERR(0, 2254, __pyx_L3_error)
3820 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
3822 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 3); __PYX_ERR(0, 2254, __pyx_L3_error)
3826 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3828 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 4); __PYX_ERR(0, 2254, __pyx_L3_error)
3832 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
3834 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 5); __PYX_ERR(0, 2254, __pyx_L3_error)
3838 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
3840 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 6); __PYX_ERR(0, 2254, __pyx_L3_error)
3844 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
3846 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 7); __PYX_ERR(0, 2254, __pyx_L3_error)
3850 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
3852 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 8); __PYX_ERR(0, 2254, __pyx_L3_error)
3856 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
3858 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 9); __PYX_ERR(0, 2254, __pyx_L3_error)
3862 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
3864 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, 10); __PYX_ERR(0, 2254, __pyx_L3_error)
3867 if (unlikely(kw_args > 0)) {
3868 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalDiffusiveFlux") < 0)) __PYX_ERR(0, 2254, __pyx_L3_error)
3870 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
3871 goto __pyx_L5_argtuple_error;
3873 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3874 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3875 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3876 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3877 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3878 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3879 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3880 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3881 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3882 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3883 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
3885 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
3886 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
3887 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
3888 __pyx_v_n = ((PyArrayObject *)values[3]);
3889 __pyx_v_a = ((PyArrayObject *)values[4]);
3890 __pyx_v_grad_phi = ((PyArrayObject *)values[5]);
3891 __pyx_v_u = ((PyArrayObject *)values[6]);
3892 __pyx_v_penalty = ((PyArrayObject *)values[7]);
3893 __pyx_v_flux = ((PyArrayObject *)values[8]);
3894 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[9]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2263, __pyx_L3_error)
3895 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[10]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2264, __pyx_L3_error)
3897 goto __pyx_L4_argument_unpacking_done;
3898 __pyx_L5_argtuple_error:;
3899 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2254, __pyx_L3_error)
3901 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalDiffusiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
3902 __Pyx_RefNannyFinishContext();
3904 __pyx_L4_argument_unpacking_done:;
3905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2254, __pyx_L1_error)
3906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2255, __pyx_L1_error)
3907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2256, __pyx_L1_error)
3908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2257, __pyx_L1_error)
3909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2258, __pyx_L1_error)
3910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 2259, __pyx_L1_error)
3911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2260, __pyx_L1_error)
3912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2261, __pyx_L1_error)
3913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2262, __pyx_L1_error)
3914 __pyx_r = __pyx_pf_14cnumericalFlux_8calculateInteriorNumericalDiffusiveFlux(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
3921 __Pyx_RefNannyFinishContext();
3925 static PyObject *__pyx_pf_14cnumericalFlux_8calculateInteriorNumericalDiffusiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_flux,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor) {
3926 PyObject *__pyx_r = NULL;
3927 __Pyx_RefNannyDeclarations
3928 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux", 0);
3937 calculateInteriorNumericalDiffusiveFlux(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
3948 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3949 __Pyx_XGIVEREF(__pyx_r);
3950 __Pyx_RefNannyFinishContext();
3963 static PyObject *__pyx_pw_14cnumericalFlux_11updateInteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3964 static PyMethodDef __pyx_mdef_14cnumericalFlux_11updateInteriorNumericalDiffusiveFluxJacobian = {
"updateInteriorNumericalDiffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_11updateInteriorNumericalDiffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
3965 static PyObject *__pyx_pw_14cnumericalFlux_11updateInteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3966 PyArrayObject *__pyx_v_l2g = 0;
3967 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
3968 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
3969 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
3970 PyArrayObject *__pyx_v_n = 0;
3971 PyArrayObject *__pyx_v_a = 0;
3972 PyArrayObject *__pyx_v_da = 0;
3973 PyArrayObject *__pyx_v_grad_phi = 0;
3974 PyArrayObject *__pyx_v_dphi = 0;
3975 PyArrayObject *__pyx_v_v = 0;
3976 PyArrayObject *__pyx_v_grad_v = 0;
3977 PyArrayObject *__pyx_v_penalty = 0;
3978 PyArrayObject *__pyx_v_fluxJacobian = 0;
3979 int __pyx_v_scale_penalty;
3980 double __pyx_v_penalty_floor;
3981 int __pyx_lineno = 0;
3982 const char *__pyx_filename = NULL;
3983 int __pyx_clineno = 0;
3984 PyObject *__pyx_r = 0;
3985 __Pyx_RefNannyDeclarations
3986 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian (wrapper)", 0);
3988 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_dphi,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,0};
3989 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
3990 if (unlikely(__pyx_kwds)) {
3992 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3994 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
3996 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
3998 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4000 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4002 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4004 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4006 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4008 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4010 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4012 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4014 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4016 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4018 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4020 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4022 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4025 default:
goto __pyx_L5_argtuple_error;
4027 kw_args = PyDict_Size(__pyx_kwds);
4030 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
4031 else goto __pyx_L5_argtuple_error;
4034 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
4036 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 1); __PYX_ERR(0, 2280, __pyx_L3_error)
4040 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
4042 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 2); __PYX_ERR(0, 2280, __pyx_L3_error)
4046 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
4048 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 3); __PYX_ERR(0, 2280, __pyx_L3_error)
4052 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4054 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 4); __PYX_ERR(0, 2280, __pyx_L3_error)
4058 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4060 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 5); __PYX_ERR(0, 2280, __pyx_L3_error)
4064 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
4066 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 6); __PYX_ERR(0, 2280, __pyx_L3_error)
4070 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
4072 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 7); __PYX_ERR(0, 2280, __pyx_L3_error)
4076 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
4078 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 8); __PYX_ERR(0, 2280, __pyx_L3_error)
4082 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4084 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 9); __PYX_ERR(0, 2280, __pyx_L3_error)
4088 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
4090 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 10); __PYX_ERR(0, 2280, __pyx_L3_error)
4094 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
4096 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 11); __PYX_ERR(0, 2280, __pyx_L3_error)
4100 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
4102 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 12); __PYX_ERR(0, 2280, __pyx_L3_error)
4106 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
4108 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 13); __PYX_ERR(0, 2280, __pyx_L3_error)
4112 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
4114 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, 14); __PYX_ERR(0, 2280, __pyx_L3_error)
4117 if (unlikely(kw_args > 0)) {
4118 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorNumericalDiffusiveFluxJacobian") < 0)) __PYX_ERR(0, 2280, __pyx_L3_error)
4120 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
4121 goto __pyx_L5_argtuple_error;
4123 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4124 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4125 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4126 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4127 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4128 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4129 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4130 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4131 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4132 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4133 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4134 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4135 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4136 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4137 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4139 __pyx_v_l2g = ((PyArrayObject *)values[0]);
4140 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
4141 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
4142 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
4143 __pyx_v_n = ((PyArrayObject *)values[4]);
4144 __pyx_v_a = ((PyArrayObject *)values[5]);
4145 __pyx_v_da = ((PyArrayObject *)values[6]);
4146 __pyx_v_grad_phi = ((PyArrayObject *)values[7]);
4147 __pyx_v_dphi = ((PyArrayObject *)values[8]);
4148 __pyx_v_v = ((PyArrayObject *)values[9]);
4149 __pyx_v_grad_v = ((PyArrayObject *)values[10]);
4150 __pyx_v_penalty = ((PyArrayObject *)values[11]);
4151 __pyx_v_fluxJacobian = ((PyArrayObject *)values[12]);
4152 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[13]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2293, __pyx_L3_error)
4153 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[14]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2294, __pyx_L3_error)
4155 goto __pyx_L4_argument_unpacking_done;
4156 __pyx_L5_argtuple_error:;
4157 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2280, __pyx_L3_error)
4159 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalDiffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
4160 __Pyx_RefNannyFinishContext();
4162 __pyx_L4_argument_unpacking_done:;
4163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2280, __pyx_L1_error)
4164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2281, __pyx_L1_error)
4165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2282, __pyx_L1_error)
4166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2283, __pyx_L1_error)
4167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2284, __pyx_L1_error)
4168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2285, __pyx_L1_error)
4169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 2286, __pyx_L1_error)
4170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 2287, __pyx_L1_error)
4171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 2288, __pyx_L1_error)
4172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2289, __pyx_L1_error)
4173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 2290, __pyx_L1_error)
4174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2291, __pyx_L1_error)
4175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2292, __pyx_L1_error)
4176 __pyx_r = __pyx_pf_14cnumericalFlux_10updateInteriorNumericalDiffusiveFluxJacobian(__pyx_self, __pyx_v_l2g, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_dphi, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty, __pyx_v_fluxJacobian, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
4183 __Pyx_RefNannyFinishContext();
4187 static PyObject *__pyx_pf_14cnumericalFlux_10updateInteriorNumericalDiffusiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_penalty, PyArrayObject *__pyx_v_fluxJacobian,
int __pyx_v_scale_penalty,
double __pyx_v_penalty_floor) {
4188 PyObject *__pyx_r = NULL;
4189 __Pyx_RefNannyDeclarations
4190 PyObject *__pyx_t_1 = NULL;
4191 PyObject *__pyx_t_2 = NULL;
4193 int __pyx_lineno = 0;
4194 const char *__pyx_filename = NULL;
4195 int __pyx_clineno = 0;
4196 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian", 0);
4205 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_grad_v), __pyx_n_s_sahpe);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2299, __pyx_L1_error)
4206 __Pyx_GOTREF(__pyx_t_1);
4207 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2299, __pyx_L1_error)
4208 __Pyx_GOTREF(__pyx_t_2);
4209 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4210 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_t_2);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2299, __pyx_L1_error)
4211 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4220 updateInteriorNumericalDiffusiveFluxJacobian(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_interiorElementBoundaries->dimensions[0]), __pyx_t_3, (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), (__pyx_v_grad_v->dimensions[4]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data));
4231 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4234 __Pyx_XDECREF(__pyx_t_1);
4235 __Pyx_XDECREF(__pyx_t_2);
4236 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalDiffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
4239 __Pyx_XGIVEREF(__pyx_r);
4240 __Pyx_RefNannyFinishContext();
4253 static PyObject *__pyx_pw_14cnumericalFlux_13calculateInteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4254 static PyMethodDef __pyx_mdef_14cnumericalFlux_13calculateInteriorNumericalAdvectiveFlux = {
"calculateInteriorNumericalAdvectiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_13calculateInteriorNumericalAdvectiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
4255 static PyObject *__pyx_pw_14cnumericalFlux_13calculateInteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4256 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
4257 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
4258 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
4259 PyArrayObject *__pyx_v_n = 0;
4260 PyArrayObject *__pyx_v_u = 0;
4261 PyArrayObject *__pyx_v_f = 0;
4262 PyArrayObject *__pyx_v_df = 0;
4263 PyArrayObject *__pyx_v_flux = 0;
4264 PyArrayObject *__pyx_v_dflux_left = 0;
4265 PyArrayObject *__pyx_v_dflux_right = 0;
4266 int __pyx_lineno = 0;
4267 const char *__pyx_filename = NULL;
4268 int __pyx_clineno = 0;
4269 PyObject *__pyx_r = 0;
4270 __Pyx_RefNannyDeclarations
4271 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFlux (wrapper)", 0);
4273 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
4274 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
4275 if (unlikely(__pyx_kwds)) {
4277 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4279 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4281 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4283 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4285 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4287 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4289 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4291 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4293 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4295 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4297 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4300 default:
goto __pyx_L5_argtuple_error;
4302 kw_args = PyDict_Size(__pyx_kwds);
4305 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
4306 else goto __pyx_L5_argtuple_error;
4309 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
4311 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 1); __PYX_ERR(0, 2317, __pyx_L3_error)
4315 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
4317 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 2); __PYX_ERR(0, 2317, __pyx_L3_error)
4321 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4323 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 3); __PYX_ERR(0, 2317, __pyx_L3_error)
4327 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4329 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 4); __PYX_ERR(0, 2317, __pyx_L3_error)
4333 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4335 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 5); __PYX_ERR(0, 2317, __pyx_L3_error)
4339 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
4341 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 6); __PYX_ERR(0, 2317, __pyx_L3_error)
4345 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
4347 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 7); __PYX_ERR(0, 2317, __pyx_L3_error)
4351 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
4353 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 8); __PYX_ERR(0, 2317, __pyx_L3_error)
4357 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
4359 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, 9); __PYX_ERR(0, 2317, __pyx_L3_error)
4362 if (unlikely(kw_args > 0)) {
4363 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalAdvectiveFlux") < 0)) __PYX_ERR(0, 2317, __pyx_L3_error)
4365 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
4366 goto __pyx_L5_argtuple_error;
4368 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4369 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4370 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4371 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4372 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4373 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4374 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4375 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4376 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4377 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4379 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
4380 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
4381 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
4382 __pyx_v_n = ((PyArrayObject *)values[3]);
4383 __pyx_v_u = ((PyArrayObject *)values[4]);
4384 __pyx_v_f = ((PyArrayObject *)values[5]);
4385 __pyx_v_df = ((PyArrayObject *)values[6]);
4386 __pyx_v_flux = ((PyArrayObject *)values[7]);
4387 __pyx_v_dflux_left = ((PyArrayObject *)values[8]);
4388 __pyx_v_dflux_right = ((PyArrayObject *)values[9]);
4390 goto __pyx_L4_argument_unpacking_done;
4391 __pyx_L5_argtuple_error:;
4392 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2317, __pyx_L3_error)
4394 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalAdvectiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
4395 __Pyx_RefNannyFinishContext();
4397 __pyx_L4_argument_unpacking_done:;
4398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2317, __pyx_L1_error)
4399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2318, __pyx_L1_error)
4400 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2319, __pyx_L1_error)
4401 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2320, __pyx_L1_error)
4402 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2321, __pyx_L1_error)
4403 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2322, __pyx_L1_error)
4404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2323, __pyx_L1_error)
4405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2324, __pyx_L1_error)
4406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2325, __pyx_L1_error)
4407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2326, __pyx_L1_error)
4408 __pyx_r = __pyx_pf_14cnumericalFlux_12calculateInteriorNumericalAdvectiveFlux(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
4415 __Pyx_RefNannyFinishContext();
4419 static PyObject *__pyx_pf_14cnumericalFlux_12calculateInteriorNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right) {
4420 PyObject *__pyx_r = NULL;
4421 __Pyx_RefNannyDeclarations
4422 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFlux", 0);
4431 calculateInteriorNumericalAdvectiveFlux((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
4442 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4443 __Pyx_XGIVEREF(__pyx_r);
4444 __Pyx_RefNannyFinishContext();
4457 static PyObject *__pyx_pw_14cnumericalFlux_15updateInteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4458 static PyMethodDef __pyx_mdef_14cnumericalFlux_15updateInteriorNumericalAdvectiveFluxJacobian = {
"updateInteriorNumericalAdvectiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_15updateInteriorNumericalAdvectiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
4459 static PyObject *__pyx_pw_14cnumericalFlux_15updateInteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4460 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
4461 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
4462 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
4463 PyArrayObject *__pyx_v_dflux_left = 0;
4464 PyArrayObject *__pyx_v_dflux_right = 0;
4465 PyArrayObject *__pyx_v_v = 0;
4466 PyArrayObject *__pyx_v_fluxJacobian = 0;
4467 int __pyx_lineno = 0;
4468 const char *__pyx_filename = NULL;
4469 int __pyx_clineno = 0;
4470 PyObject *__pyx_r = 0;
4471 __Pyx_RefNannyDeclarations
4472 __Pyx_RefNannySetupContext(
"updateInteriorNumericalAdvectiveFluxJacobian (wrapper)", 0);
4474 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,&__pyx_n_s_v,&__pyx_n_s_fluxJacobian,0};
4475 PyObject* values[7] = {0,0,0,0,0,0,0};
4476 if (unlikely(__pyx_kwds)) {
4478 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4480 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4482 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4484 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4486 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4488 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4490 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4492 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4495 default:
goto __pyx_L5_argtuple_error;
4497 kw_args = PyDict_Size(__pyx_kwds);
4500 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
4501 else goto __pyx_L5_argtuple_error;
4504 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
4506 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 1); __PYX_ERR(0, 2342, __pyx_L3_error)
4510 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
4512 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 2); __PYX_ERR(0, 2342, __pyx_L3_error)
4516 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
4518 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 3); __PYX_ERR(0, 2342, __pyx_L3_error)
4522 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
4524 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 4); __PYX_ERR(0, 2342, __pyx_L3_error)
4528 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4530 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 5); __PYX_ERR(0, 2342, __pyx_L3_error)
4534 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
4536 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 6); __PYX_ERR(0, 2342, __pyx_L3_error)
4539 if (unlikely(kw_args > 0)) {
4540 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorNumericalAdvectiveFluxJacobian") < 0)) __PYX_ERR(0, 2342, __pyx_L3_error)
4542 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
4543 goto __pyx_L5_argtuple_error;
4545 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4546 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4547 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4548 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4549 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4550 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4551 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4553 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
4554 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
4555 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
4556 __pyx_v_dflux_left = ((PyArrayObject *)values[3]);
4557 __pyx_v_dflux_right = ((PyArrayObject *)values[4]);
4558 __pyx_v_v = ((PyArrayObject *)values[5]);
4559 __pyx_v_fluxJacobian = ((PyArrayObject *)values[6]);
4561 goto __pyx_L4_argument_unpacking_done;
4562 __pyx_L5_argtuple_error:;
4563 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2342, __pyx_L3_error)
4565 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalAdvectiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
4566 __Pyx_RefNannyFinishContext();
4568 __pyx_L4_argument_unpacking_done:;
4569 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2342, __pyx_L1_error)
4570 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2343, __pyx_L1_error)
4571 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2344, __pyx_L1_error)
4572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2345, __pyx_L1_error)
4573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2346, __pyx_L1_error)
4574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2347, __pyx_L1_error)
4575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2348, __pyx_L1_error)
4576 __pyx_r = __pyx_pf_14cnumericalFlux_14updateInteriorNumericalAdvectiveFluxJacobian(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_dflux_left, __pyx_v_dflux_right, __pyx_v_v, __pyx_v_fluxJacobian);
4583 __Pyx_RefNannyFinishContext();
4587 static PyObject *__pyx_pf_14cnumericalFlux_14updateInteriorNumericalAdvectiveFluxJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_fluxJacobian) {
4588 PyObject *__pyx_r = NULL;
4589 __Pyx_RefNannyDeclarations
4590 __Pyx_RefNannySetupContext(
"updateInteriorNumericalAdvectiveFluxJacobian", 0);
4599 updateInteriorNumericalAdvectiveFluxJacobian((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
4610 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4611 __Pyx_XGIVEREF(__pyx_r);
4612 __Pyx_RefNannyFinishContext();
4625 static PyObject *__pyx_pw_14cnumericalFlux_17calculateInteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4626 static PyMethodDef __pyx_mdef_14cnumericalFlux_17calculateInteriorNumericalAdvectiveFlux_average = {
"calculateInteriorNumericalAdvectiveFlux_average", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_17calculateInteriorNumericalAdvectiveFlux_average, METH_VARARGS|METH_KEYWORDS, 0};
4627 static PyObject *__pyx_pw_14cnumericalFlux_17calculateInteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4628 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
4629 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
4630 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
4631 PyArrayObject *__pyx_v_n = 0;
4632 PyArrayObject *__pyx_v_u = 0;
4633 PyArrayObject *__pyx_v_f = 0;
4634 PyArrayObject *__pyx_v_df = 0;
4635 PyArrayObject *__pyx_v_flux = 0;
4636 PyArrayObject *__pyx_v_dflux_left = 0;
4637 PyArrayObject *__pyx_v_dflux_right = 0;
4638 int __pyx_lineno = 0;
4639 const char *__pyx_filename = NULL;
4640 int __pyx_clineno = 0;
4641 PyObject *__pyx_r = 0;
4642 __Pyx_RefNannyDeclarations
4643 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFlux_average (wrapper)", 0);
4645 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
4646 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
4647 if (unlikely(__pyx_kwds)) {
4649 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4651 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4653 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4655 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4657 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4659 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4661 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4663 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4665 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4667 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4669 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4672 default:
goto __pyx_L5_argtuple_error;
4674 kw_args = PyDict_Size(__pyx_kwds);
4677 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
4678 else goto __pyx_L5_argtuple_error;
4681 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
4683 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 1); __PYX_ERR(0, 2361, __pyx_L3_error)
4687 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
4689 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 2); __PYX_ERR(0, 2361, __pyx_L3_error)
4693 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4695 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 3); __PYX_ERR(0, 2361, __pyx_L3_error)
4699 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4701 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 4); __PYX_ERR(0, 2361, __pyx_L3_error)
4705 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4707 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 5); __PYX_ERR(0, 2361, __pyx_L3_error)
4711 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
4713 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 6); __PYX_ERR(0, 2361, __pyx_L3_error)
4717 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
4719 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 7); __PYX_ERR(0, 2361, __pyx_L3_error)
4723 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
4725 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 8); __PYX_ERR(0, 2361, __pyx_L3_error)
4729 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
4731 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, 9); __PYX_ERR(0, 2361, __pyx_L3_error)
4734 if (unlikely(kw_args > 0)) {
4735 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalAdvectiveFlux_average") < 0)) __PYX_ERR(0, 2361, __pyx_L3_error)
4737 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
4738 goto __pyx_L5_argtuple_error;
4740 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4741 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4742 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4743 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4744 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4745 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4746 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4747 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4748 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4749 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4751 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
4752 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
4753 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
4754 __pyx_v_n = ((PyArrayObject *)values[3]);
4755 __pyx_v_u = ((PyArrayObject *)values[4]);
4756 __pyx_v_f = ((PyArrayObject *)values[5]);
4757 __pyx_v_df = ((PyArrayObject *)values[6]);
4758 __pyx_v_flux = ((PyArrayObject *)values[7]);
4759 __pyx_v_dflux_left = ((PyArrayObject *)values[8]);
4760 __pyx_v_dflux_right = ((PyArrayObject *)values[9]);
4762 goto __pyx_L4_argument_unpacking_done;
4763 __pyx_L5_argtuple_error:;
4764 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalAdvectiveFlux_average", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2361, __pyx_L3_error)
4766 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalAdvectiveFlux_average", __pyx_clineno, __pyx_lineno, __pyx_filename);
4767 __Pyx_RefNannyFinishContext();
4769 __pyx_L4_argument_unpacking_done:;
4770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2361, __pyx_L1_error)
4771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2362, __pyx_L1_error)
4772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2363, __pyx_L1_error)
4773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2364, __pyx_L1_error)
4774 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2365, __pyx_L1_error)
4775 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2366, __pyx_L1_error)
4776 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2367, __pyx_L1_error)
4777 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2368, __pyx_L1_error)
4778 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2369, __pyx_L1_error)
4779 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2370, __pyx_L1_error)
4780 __pyx_r = __pyx_pf_14cnumericalFlux_16calculateInteriorNumericalAdvectiveFlux_average(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
4787 __Pyx_RefNannyFinishContext();
4791 static PyObject *__pyx_pf_14cnumericalFlux_16calculateInteriorNumericalAdvectiveFlux_average(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left, PyArrayObject *__pyx_v_dflux_right) {
4792 PyObject *__pyx_r = NULL;
4793 __Pyx_RefNannyDeclarations
4794 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalAdvectiveFlux_average", 0);
4803 calculateInteriorNumericalAdvectiveFlux_average((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
4814 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4815 __Pyx_XGIVEREF(__pyx_r);
4816 __Pyx_RefNannyFinishContext();
4829 static PyObject *__pyx_pw_14cnumericalFlux_19calculateExteriorNumericalAdvectiveFlux_NoBC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4830 static PyMethodDef __pyx_mdef_14cnumericalFlux_19calculateExteriorNumericalAdvectiveFlux_NoBC = {
"calculateExteriorNumericalAdvectiveFlux_NoBC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_19calculateExteriorNumericalAdvectiveFlux_NoBC, METH_VARARGS|METH_KEYWORDS, 0};
4831 static PyObject *__pyx_pw_14cnumericalFlux_19calculateExteriorNumericalAdvectiveFlux_NoBC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4832 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
4833 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
4834 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
4835 PyArrayObject *__pyx_v_inflowFlag = 0;
4836 PyArrayObject *__pyx_v_n = 0;
4837 PyArrayObject *__pyx_v_f = 0;
4838 PyArrayObject *__pyx_v_df = 0;
4839 PyArrayObject *__pyx_v_flux = 0;
4840 PyArrayObject *__pyx_v_dflux_left = 0;
4841 int __pyx_lineno = 0;
4842 const char *__pyx_filename = NULL;
4843 int __pyx_clineno = 0;
4844 PyObject *__pyx_r = 0;
4845 __Pyx_RefNannyDeclarations
4846 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_NoBC (wrapper)", 0);
4848 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_inflowFlag,&__pyx_n_s_n,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,0};
4849 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
4850 if (unlikely(__pyx_kwds)) {
4852 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4854 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4856 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4858 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4860 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4862 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4864 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4866 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4868 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4870 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4873 default:
goto __pyx_L5_argtuple_error;
4875 kw_args = PyDict_Size(__pyx_kwds);
4878 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
4879 else goto __pyx_L5_argtuple_error;
4882 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
4884 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 1); __PYX_ERR(0, 2386, __pyx_L3_error)
4888 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
4890 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 2); __PYX_ERR(0, 2386, __pyx_L3_error)
4894 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
4896 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 3); __PYX_ERR(0, 2386, __pyx_L3_error)
4900 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4902 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 4); __PYX_ERR(0, 2386, __pyx_L3_error)
4906 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4908 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 5); __PYX_ERR(0, 2386, __pyx_L3_error)
4912 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
4914 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 6); __PYX_ERR(0, 2386, __pyx_L3_error)
4918 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
4920 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 7); __PYX_ERR(0, 2386, __pyx_L3_error)
4924 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
4926 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, 8); __PYX_ERR(0, 2386, __pyx_L3_error)
4929 if (unlikely(kw_args > 0)) {
4930 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFlux_NoBC") < 0)) __PYX_ERR(0, 2386, __pyx_L3_error)
4932 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
4933 goto __pyx_L5_argtuple_error;
4935 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4936 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4937 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4938 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4939 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4940 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4941 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4942 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4943 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4945 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
4946 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
4947 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
4948 __pyx_v_inflowFlag = ((PyArrayObject *)values[3]);
4949 __pyx_v_n = ((PyArrayObject *)values[4]);
4950 __pyx_v_f = ((PyArrayObject *)values[5]);
4951 __pyx_v_df = ((PyArrayObject *)values[6]);
4952 __pyx_v_flux = ((PyArrayObject *)values[7]);
4953 __pyx_v_dflux_left = ((PyArrayObject *)values[8]);
4955 goto __pyx_L4_argument_unpacking_done;
4956 __pyx_L5_argtuple_error:;
4957 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2386, __pyx_L3_error)
4959 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFlux_NoBC", __pyx_clineno, __pyx_lineno, __pyx_filename);
4960 __Pyx_RefNannyFinishContext();
4962 __pyx_L4_argument_unpacking_done:;
4963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2386, __pyx_L1_error)
4964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2387, __pyx_L1_error)
4965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2388, __pyx_L1_error)
4966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 2389, __pyx_L1_error)
4967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2390, __pyx_L1_error)
4968 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2391, __pyx_L1_error)
4969 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2392, __pyx_L1_error)
4970 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2393, __pyx_L1_error)
4971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2394, __pyx_L1_error)
4972 __pyx_r = __pyx_pf_14cnumericalFlux_18calculateExteriorNumericalAdvectiveFlux_NoBC(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_n, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux_left);
4979 __Pyx_RefNannyFinishContext();
4983 static PyObject *__pyx_pf_14cnumericalFlux_18calculateExteriorNumericalAdvectiveFlux_NoBC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux_left) {
4984 PyObject *__pyx_r = NULL;
4985 __Pyx_RefNannyDeclarations
4987 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_NoBC", 0);
4996 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
5006 calculateExteriorNumericalAdvectiveFlux_NoBC((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data));
5034 calculateGlobalExteriorNumericalAdvectiveFlux_NoBC((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data));
5047 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5048 __Pyx_XGIVEREF(__pyx_r);
5049 __Pyx_RefNannyFinishContext();
5062 static PyObject *__pyx_pw_14cnumericalFlux_21calculateExteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5063 static PyMethodDef __pyx_mdef_14cnumericalFlux_21calculateExteriorNumericalAdvectiveFlux = {
"calculateExteriorNumericalAdvectiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_21calculateExteriorNumericalAdvectiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
5064 static PyObject *__pyx_pw_14cnumericalFlux_21calculateExteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5065 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
5066 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5067 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5068 PyArrayObject *__pyx_v_isDOFBoundary = 0;
5069 PyArrayObject *__pyx_v_inflowFlag = 0;
5070 PyArrayObject *__pyx_v_n = 0;
5071 PyArrayObject *__pyx_v_bc_u = 0;
5072 PyArrayObject *__pyx_v_bc_f = 0;
5073 PyArrayObject *__pyx_v_bc_df = 0;
5074 PyArrayObject *__pyx_v_u = 0;
5075 PyArrayObject *__pyx_v_f = 0;
5076 PyArrayObject *__pyx_v_df = 0;
5077 PyArrayObject *__pyx_v_flux = 0;
5078 PyArrayObject *__pyx_v_dflux = 0;
5079 int __pyx_lineno = 0;
5080 const char *__pyx_filename = NULL;
5081 int __pyx_clineno = 0;
5082 PyObject *__pyx_r = 0;
5083 __Pyx_RefNannyDeclarations
5084 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux (wrapper)", 0);
5086 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_inflowFlag,&__pyx_n_s_n,&__pyx_n_s_bc_u,&__pyx_n_s_bc_f,&__pyx_n_s_bc_df,&__pyx_n_s_u,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux,0};
5087 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5088 if (unlikely(__pyx_kwds)) {
5090 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5092 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5094 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5096 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5098 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5100 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5102 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5104 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5106 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5108 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5110 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5112 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5114 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5116 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5118 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5121 default:
goto __pyx_L5_argtuple_error;
5123 kw_args = PyDict_Size(__pyx_kwds);
5126 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
5127 else goto __pyx_L5_argtuple_error;
5130 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5132 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 1); __PYX_ERR(0, 2424, __pyx_L3_error)
5136 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5138 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 2); __PYX_ERR(0, 2424, __pyx_L3_error)
5142 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
5144 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 3); __PYX_ERR(0, 2424, __pyx_L3_error)
5148 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
5150 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 4); __PYX_ERR(0, 2424, __pyx_L3_error)
5154 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
5156 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 5); __PYX_ERR(0, 2424, __pyx_L3_error)
5160 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
5162 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 6); __PYX_ERR(0, 2424, __pyx_L3_error)
5166 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
5168 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 7); __PYX_ERR(0, 2424, __pyx_L3_error)
5172 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
5174 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 8); __PYX_ERR(0, 2424, __pyx_L3_error)
5178 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5180 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 9); __PYX_ERR(0, 2424, __pyx_L3_error)
5184 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
5186 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 10); __PYX_ERR(0, 2424, __pyx_L3_error)
5190 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
5192 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 11); __PYX_ERR(0, 2424, __pyx_L3_error)
5196 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
5198 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 12); __PYX_ERR(0, 2424, __pyx_L3_error)
5202 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
5204 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, 13); __PYX_ERR(0, 2424, __pyx_L3_error)
5207 if (unlikely(kw_args > 0)) {
5208 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFlux") < 0)) __PYX_ERR(0, 2424, __pyx_L3_error)
5210 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
5211 goto __pyx_L5_argtuple_error;
5213 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5214 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5215 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5216 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5217 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5218 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5219 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5220 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5221 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5222 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5223 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5224 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5225 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5226 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5228 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
5229 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5230 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5231 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
5232 __pyx_v_inflowFlag = ((PyArrayObject *)values[4]);
5233 __pyx_v_n = ((PyArrayObject *)values[5]);
5234 __pyx_v_bc_u = ((PyArrayObject *)values[6]);
5235 __pyx_v_bc_f = ((PyArrayObject *)values[7]);
5236 __pyx_v_bc_df = ((PyArrayObject *)values[8]);
5237 __pyx_v_u = ((PyArrayObject *)values[9]);
5238 __pyx_v_f = ((PyArrayObject *)values[10]);
5239 __pyx_v_df = ((PyArrayObject *)values[11]);
5240 __pyx_v_flux = ((PyArrayObject *)values[12]);
5241 __pyx_v_dflux = ((PyArrayObject *)values[13]);
5243 goto __pyx_L4_argument_unpacking_done;
5244 __pyx_L5_argtuple_error:;
5245 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2424, __pyx_L3_error)
5247 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
5248 __Pyx_RefNannyFinishContext();
5250 __pyx_L4_argument_unpacking_done:;
5251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2424, __pyx_L1_error)
5252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2425, __pyx_L1_error)
5253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2426, __pyx_L1_error)
5254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 2427, __pyx_L1_error)
5255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 2428, __pyx_L1_error)
5256 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2429, __pyx_L1_error)
5257 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 2430, __pyx_L1_error)
5258 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 2431, __pyx_L1_error)
5259 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 2432, __pyx_L1_error)
5260 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2433, __pyx_L1_error)
5261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2434, __pyx_L1_error)
5262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2435, __pyx_L1_error)
5263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2436, __pyx_L1_error)
5264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 2437, __pyx_L1_error)
5265 __pyx_r = __pyx_pf_14cnumericalFlux_20calculateExteriorNumericalAdvectiveFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_inflowFlag, __pyx_v_n, __pyx_v_bc_u, __pyx_v_bc_f, __pyx_v_bc_df, __pyx_v_u, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux);
5272 __Pyx_RefNannyFinishContext();
5276 static PyObject *__pyx_pf_14cnumericalFlux_20calculateExteriorNumericalAdvectiveFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_inflowFlag, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_bc_u, PyArrayObject *__pyx_v_bc_f, PyArrayObject *__pyx_v_bc_df, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_dflux) {
5277 PyObject *__pyx_r = NULL;
5278 __Pyx_RefNannyDeclarations
5280 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux", 0);
5289 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
5299 calculateExteriorNumericalAdvectiveFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_u->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_df->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux->data));
5327 calculateGlobalExteriorNumericalAdvectiveFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_u->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_df->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux->data));
5340 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5341 __Pyx_XGIVEREF(__pyx_r);
5342 __Pyx_RefNannyFinishContext();
5355 static PyObject *__pyx_pw_14cnumericalFlux_23updateExteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5356 static PyMethodDef __pyx_mdef_14cnumericalFlux_23updateExteriorNumericalAdvectiveFluxJacobian = {
"updateExteriorNumericalAdvectiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_23updateExteriorNumericalAdvectiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
5357 static PyObject *__pyx_pw_14cnumericalFlux_23updateExteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5358 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
5359 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5360 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5361 PyArrayObject *__pyx_v_inflowFlag = 0;
5362 PyArrayObject *__pyx_v_dflux_left = 0;
5363 PyArrayObject *__pyx_v_v = 0;
5364 PyArrayObject *__pyx_v_fluxJacobian = 0;
5365 int __pyx_lineno = 0;
5366 const char *__pyx_filename = NULL;
5367 int __pyx_clineno = 0;
5368 PyObject *__pyx_r = 0;
5369 __Pyx_RefNannyDeclarations
5370 __Pyx_RefNannySetupContext(
"updateExteriorNumericalAdvectiveFluxJacobian (wrapper)", 0);
5372 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_inflowFlag,&__pyx_n_s_dflux_left,&__pyx_n_s_v,&__pyx_n_s_fluxJacobian,0};
5373 PyObject* values[7] = {0,0,0,0,0,0,0};
5374 if (unlikely(__pyx_kwds)) {
5376 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5378 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5380 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5382 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5384 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5386 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5388 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5390 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5393 default:
goto __pyx_L5_argtuple_error;
5395 kw_args = PyDict_Size(__pyx_kwds);
5398 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
5399 else goto __pyx_L5_argtuple_error;
5402 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5404 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 1); __PYX_ERR(0, 2477, __pyx_L3_error)
5408 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5410 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 2); __PYX_ERR(0, 2477, __pyx_L3_error)
5414 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
5416 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 3); __PYX_ERR(0, 2477, __pyx_L3_error)
5420 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
5422 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 4); __PYX_ERR(0, 2477, __pyx_L3_error)
5426 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5428 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 5); __PYX_ERR(0, 2477, __pyx_L3_error)
5432 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
5434 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, 6); __PYX_ERR(0, 2477, __pyx_L3_error)
5437 if (unlikely(kw_args > 0)) {
5438 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalAdvectiveFluxJacobian") < 0)) __PYX_ERR(0, 2477, __pyx_L3_error)
5440 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
5441 goto __pyx_L5_argtuple_error;
5443 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5444 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5445 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5446 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5447 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5448 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5449 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5451 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
5452 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5453 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5454 __pyx_v_inflowFlag = ((PyArrayObject *)values[3]);
5455 __pyx_v_dflux_left = ((PyArrayObject *)values[4]);
5456 __pyx_v_v = ((PyArrayObject *)values[5]);
5457 __pyx_v_fluxJacobian = ((PyArrayObject *)values[6]);
5459 goto __pyx_L4_argument_unpacking_done;
5460 __pyx_L5_argtuple_error:;
5461 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2477, __pyx_L3_error)
5463 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalAdvectiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
5464 __Pyx_RefNannyFinishContext();
5466 __pyx_L4_argument_unpacking_done:;
5467 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2477, __pyx_L1_error)
5468 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2478, __pyx_L1_error)
5469 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2479, __pyx_L1_error)
5470 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 2480, __pyx_L1_error)