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)
5471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2481, __pyx_L1_error)
5472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2482, __pyx_L1_error)
5473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2483, __pyx_L1_error)
5474 __pyx_r = __pyx_pf_14cnumericalFlux_22updateExteriorNumericalAdvectiveFluxJacobian(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_dflux_left, __pyx_v_v, __pyx_v_fluxJacobian);
5481 __Pyx_RefNannyFinishContext();
5485 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) {
5486 PyObject *__pyx_r = NULL;
5487 __Pyx_RefNannyDeclarations
5488 __Pyx_RefNannySetupContext(
"updateExteriorNumericalAdvectiveFluxJacobian", 0);
5497 switch (__pyx_v_v->nd) {
5507 updateExteriorNumericalAdvectiveFluxJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->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_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
5526 updateGlobalExteriorNumericalAdvectiveFluxJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->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_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
5548 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5549 __Pyx_XGIVEREF(__pyx_r);
5550 __Pyx_RefNannyFinishContext();
5563 static PyObject *__pyx_pw_14cnumericalFlux_25calculateInteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5564 static PyMethodDef __pyx_mdef_14cnumericalFlux_25calculateInteriorNumericalDiffusiveFlux_LDG_upwind = {
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_25calculateInteriorNumericalDiffusiveFlux_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
5565 static PyObject *__pyx_pw_14cnumericalFlux_25calculateInteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5566 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
5567 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5568 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5569 PyArrayObject *__pyx_v_n = 0;
5570 PyArrayObject *__pyx_v_u = 0;
5571 PyArrayObject *__pyx_v_a = 0;
5572 PyArrayObject *__pyx_v_phi = 0;
5573 PyArrayObject *__pyx_v_V = 0;
5574 PyArrayObject *__pyx_v_penalty = 0;
5575 PyArrayObject *__pyx_v_flux = 0;
5576 int __pyx_lineno = 0;
5577 const char *__pyx_filename = NULL;
5578 int __pyx_clineno = 0;
5579 PyObject *__pyx_r = 0;
5580 __Pyx_RefNannyDeclarations
5581 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind (wrapper)", 0);
5583 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_a,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
5584 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
5585 if (unlikely(__pyx_kwds)) {
5587 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5589 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5591 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5593 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5595 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5597 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5599 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5601 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5603 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5605 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5607 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5610 default:
goto __pyx_L5_argtuple_error;
5612 kw_args = PyDict_Size(__pyx_kwds);
5615 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
5616 else goto __pyx_L5_argtuple_error;
5619 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5621 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 1); __PYX_ERR(0, 2508, __pyx_L3_error)
5625 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5627 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 2); __PYX_ERR(0, 2508, __pyx_L3_error)
5631 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
5633 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 3); __PYX_ERR(0, 2508, __pyx_L3_error)
5637 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
5639 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 4); __PYX_ERR(0, 2508, __pyx_L3_error)
5643 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5645 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 5); __PYX_ERR(0, 2508, __pyx_L3_error)
5649 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
5651 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 6); __PYX_ERR(0, 2508, __pyx_L3_error)
5655 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
5657 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 7); __PYX_ERR(0, 2508, __pyx_L3_error)
5661 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
5663 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 8); __PYX_ERR(0, 2508, __pyx_L3_error)
5667 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
5669 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, 9); __PYX_ERR(0, 2508, __pyx_L3_error)
5672 if (unlikely(kw_args > 0)) {
5673 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind") < 0)) __PYX_ERR(0, 2508, __pyx_L3_error)
5675 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
5676 goto __pyx_L5_argtuple_error;
5678 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5679 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5680 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5681 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5682 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5683 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5684 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5685 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5686 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5687 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5689 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
5690 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5691 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5692 __pyx_v_n = ((PyArrayObject *)values[3]);
5693 __pyx_v_u = ((PyArrayObject *)values[4]);
5694 __pyx_v_a = ((PyArrayObject *)values[5]);
5695 __pyx_v_phi = ((PyArrayObject *)values[6]);
5696 __pyx_v_V = ((PyArrayObject *)values[7]);
5697 __pyx_v_penalty = ((PyArrayObject *)values[8]);
5698 __pyx_v_flux = ((PyArrayObject *)values[9]);
5700 goto __pyx_L4_argument_unpacking_done;
5701 __pyx_L5_argtuple_error:;
5702 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2508, __pyx_L3_error)
5704 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalDiffusiveFlux_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
5705 __Pyx_RefNannyFinishContext();
5707 __pyx_L4_argument_unpacking_done:;
5708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2508, __pyx_L1_error)
5709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2509, __pyx_L1_error)
5710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2510, __pyx_L1_error)
5711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2511, __pyx_L1_error)
5712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2512, __pyx_L1_error)
5713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2513, __pyx_L1_error)
5714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 2514, __pyx_L1_error)
5715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 2515, __pyx_L1_error)
5716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2516, __pyx_L1_error)
5717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2517, __pyx_L1_error)
5718 __pyx_r = __pyx_pf_14cnumericalFlux_24calculateInteriorNumericalDiffusiveFlux_LDG_upwind(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
5725 __Pyx_RefNannyFinishContext();
5729 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) {
5730 PyObject *__pyx_r = NULL;
5731 __Pyx_RefNannyDeclarations
5732 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind", 0);
5741 calculateInteriorNumericalDiffusiveFlux_LDG_upwind((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->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_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
5752 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5753 __Pyx_XGIVEREF(__pyx_r);
5754 __Pyx_RefNannyFinishContext();
5767 static PyObject *__pyx_pw_14cnumericalFlux_27updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5768 static PyMethodDef __pyx_mdef_14cnumericalFlux_27updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind = {
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_27updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
5769 static PyObject *__pyx_pw_14cnumericalFlux_27updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5770 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
5771 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5772 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5773 PyArrayObject *__pyx_v_n = 0;
5774 PyArrayObject *__pyx_v_a = 0;
5775 PyArrayObject *__pyx_v_da = 0;
5776 PyArrayObject *__pyx_v_dphi = 0;
5777 PyArrayObject *__pyx_v_V = 0;
5778 PyArrayObject *__pyx_v_DV = 0;
5779 PyArrayObject *__pyx_v_DV_eb = 0;
5780 PyArrayObject *__pyx_v_v = 0;
5781 PyArrayObject *__pyx_v_penalty = 0;
5782 PyArrayObject *__pyx_v_fluxJacobian = 0;
5783 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
5784 int __pyx_lineno = 0;
5785 const char *__pyx_filename = NULL;
5786 int __pyx_clineno = 0;
5787 PyObject *__pyx_r = 0;
5788 __Pyx_RefNannyDeclarations
5789 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind (wrapper)", 0);
5791 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_da,&__pyx_n_s_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,&__pyx_n_s_fluxJacobian_eb,0};
5792 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5793 if (unlikely(__pyx_kwds)) {
5795 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5797 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5799 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5801 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5803 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5805 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5807 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5809 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5811 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5813 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5815 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5817 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5819 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5821 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5823 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5826 default:
goto __pyx_L5_argtuple_error;
5828 kw_args = PyDict_Size(__pyx_kwds);
5831 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
5832 else goto __pyx_L5_argtuple_error;
5835 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5837 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 1); __PYX_ERR(0, 2533, __pyx_L3_error)
5841 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5843 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 2); __PYX_ERR(0, 2533, __pyx_L3_error)
5847 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
5849 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 3); __PYX_ERR(0, 2533, __pyx_L3_error)
5853 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
5855 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 4); __PYX_ERR(0, 2533, __pyx_L3_error)
5859 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
5861 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 5); __PYX_ERR(0, 2533, __pyx_L3_error)
5865 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
5867 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 6); __PYX_ERR(0, 2533, __pyx_L3_error)
5871 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
5873 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 7); __PYX_ERR(0, 2533, __pyx_L3_error)
5877 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
5879 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 8); __PYX_ERR(0, 2533, __pyx_L3_error)
5883 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
5885 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 9); __PYX_ERR(0, 2533, __pyx_L3_error)
5889 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
5891 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 10); __PYX_ERR(0, 2533, __pyx_L3_error)
5895 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
5897 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 11); __PYX_ERR(0, 2533, __pyx_L3_error)
5901 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
5903 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 12); __PYX_ERR(0, 2533, __pyx_L3_error)
5907 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
5909 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, 13); __PYX_ERR(0, 2533, __pyx_L3_error)
5912 if (unlikely(kw_args > 0)) {
5913 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind") < 0)) __PYX_ERR(0, 2533, __pyx_L3_error)
5915 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
5916 goto __pyx_L5_argtuple_error;
5918 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5919 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5920 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5921 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5922 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5923 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5924 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5925 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5926 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5927 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5928 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5929 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5930 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5931 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5933 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
5934 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5935 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5936 __pyx_v_n = ((PyArrayObject *)values[3]);
5937 __pyx_v_a = ((PyArrayObject *)values[4]);
5938 __pyx_v_da = ((PyArrayObject *)values[5]);
5939 __pyx_v_dphi = ((PyArrayObject *)values[6]);
5940 __pyx_v_V = ((PyArrayObject *)values[7]);
5941 __pyx_v_DV = ((PyArrayObject *)values[8]);
5942 __pyx_v_DV_eb = ((PyArrayObject *)values[9]);
5943 __pyx_v_v = ((PyArrayObject *)values[10]);
5944 __pyx_v_penalty = ((PyArrayObject *)values[11]);
5945 __pyx_v_fluxJacobian = ((PyArrayObject *)values[12]);
5946 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[13]);
5948 goto __pyx_L4_argument_unpacking_done;
5949 __pyx_L5_argtuple_error:;
5950 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2533, __pyx_L3_error)
5952 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
5953 __Pyx_RefNannyFinishContext();
5955 __pyx_L4_argument_unpacking_done:;
5956 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2533, __pyx_L1_error)
5957 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2534, __pyx_L1_error)
5958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2535, __pyx_L1_error)
5959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2536, __pyx_L1_error)
5960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2537, __pyx_L1_error)
5961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 2538, __pyx_L1_error)
5962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 2539, __pyx_L1_error)
5963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 2540, __pyx_L1_error)
5964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 2541, __pyx_L1_error)
5965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 2542, __pyx_L1_error)
5966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2543, __pyx_L1_error)
5967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2544, __pyx_L1_error)
5968 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2545, __pyx_L1_error)
5969 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 2546, __pyx_L1_error)
5970 __pyx_r = __pyx_pf_14cnumericalFlux_26updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian, __pyx_v_fluxJacobian_eb);
5977 __Pyx_RefNannyFinishContext();
5981 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) {
5982 PyObject *__pyx_r = NULL;
5983 __Pyx_RefNannyDeclarations
5984 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 0);
5993 updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_n->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_da->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
6004 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6005 __Pyx_XGIVEREF(__pyx_r);
6006 __Pyx_RefNannyFinishContext();
6019 static PyObject *__pyx_pw_14cnumericalFlux_29setInflowFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6020 static PyMethodDef __pyx_mdef_14cnumericalFlux_29setInflowFlux = {
"setInflowFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_29setInflowFlux, METH_VARARGS|METH_KEYWORDS, 0};
6021 static PyObject *__pyx_pw_14cnumericalFlux_29setInflowFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6022 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6023 PyArrayObject *__pyx_v_inflowFlux = 0;
6024 PyArrayObject *__pyx_v_flux = 0;
6025 int __pyx_lineno = 0;
6026 const char *__pyx_filename = NULL;
6027 int __pyx_clineno = 0;
6028 PyObject *__pyx_r = 0;
6029 __Pyx_RefNannyDeclarations
6030 __Pyx_RefNannySetupContext(
"setInflowFlux (wrapper)", 0);
6032 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_inflowFlux,&__pyx_n_s_flux,0};
6033 PyObject* values[3] = {0,0,0};
6034 if (unlikely(__pyx_kwds)) {
6036 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6038 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6040 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6042 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6045 default:
goto __pyx_L5_argtuple_error;
6047 kw_args = PyDict_Size(__pyx_kwds);
6050 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
6051 else goto __pyx_L5_argtuple_error;
6054 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlux)) != 0)) kw_args--;
6056 __Pyx_RaiseArgtupleInvalid(
"setInflowFlux", 1, 3, 3, 1); __PYX_ERR(0, 2568, __pyx_L3_error)
6060 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
6062 __Pyx_RaiseArgtupleInvalid(
"setInflowFlux", 1, 3, 3, 2); __PYX_ERR(0, 2568, __pyx_L3_error)
6065 if (unlikely(kw_args > 0)) {
6066 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setInflowFlux") < 0)) __PYX_ERR(0, 2568, __pyx_L3_error)
6068 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
6069 goto __pyx_L5_argtuple_error;
6071 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6072 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6073 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6075 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
6076 __pyx_v_inflowFlux = ((PyArrayObject *)values[1]);
6077 __pyx_v_flux = ((PyArrayObject *)values[2]);
6079 goto __pyx_L4_argument_unpacking_done;
6080 __pyx_L5_argtuple_error:;
6081 __Pyx_RaiseArgtupleInvalid(
"setInflowFlux", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2568, __pyx_L3_error)
6083 __Pyx_AddTraceback(
"cnumericalFlux.setInflowFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
6084 __Pyx_RefNannyFinishContext();
6086 __pyx_L4_argument_unpacking_done:;
6087 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2568, __pyx_L1_error)
6088 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlux), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlux", 0))) __PYX_ERR(0, 2569, __pyx_L1_error)
6089 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2570, __pyx_L1_error)
6090 __pyx_r = __pyx_pf_14cnumericalFlux_28setInflowFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_inflowFlux, __pyx_v_flux);
6097 __Pyx_RefNannyFinishContext();
6101 static PyObject *__pyx_pf_14cnumericalFlux_28setInflowFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_inflowFlux, PyArrayObject *__pyx_v_flux) {
6102 PyObject *__pyx_r = NULL;
6103 __Pyx_RefNannyDeclarations
6104 __Pyx_RefNannySetupContext(
"setInflowFlux", 0);
6113 setInflowFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_flux->dimensions[1]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
double *)__pyx_v_inflowFlux->data), ((
double *)__pyx_v_flux->data));
6124 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6125 __Pyx_XGIVEREF(__pyx_r);
6126 __Pyx_RefNannyFinishContext();
6139 static PyObject *__pyx_pw_14cnumericalFlux_31updateInteriorTwoSidedNumericalFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6140 static PyMethodDef __pyx_mdef_14cnumericalFlux_31updateInteriorTwoSidedNumericalFluxJacobian = {
"updateInteriorTwoSidedNumericalFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_31updateInteriorTwoSidedNumericalFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
6141 static PyObject *__pyx_pw_14cnumericalFlux_31updateInteriorTwoSidedNumericalFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6142 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
6143 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6144 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6145 PyArrayObject *__pyx_v_dflux_left = 0;
6146 PyArrayObject *__pyx_v_dflux_right = 0;
6147 PyArrayObject *__pyx_v_v = 0;
6148 PyArrayObject *__pyx_v_fluxJacobian_2sided = 0;
6149 int __pyx_lineno = 0;
6150 const char *__pyx_filename = NULL;
6151 int __pyx_clineno = 0;
6152 PyObject *__pyx_r = 0;
6153 __Pyx_RefNannyDeclarations
6154 __Pyx_RefNannySetupContext(
"updateInteriorTwoSidedNumericalFluxJacobian (wrapper)", 0);
6156 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_2sided,0};
6157 PyObject* values[7] = {0,0,0,0,0,0,0};
6158 if (unlikely(__pyx_kwds)) {
6160 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6162 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6164 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6166 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6168 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6170 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6172 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6174 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6177 default:
goto __pyx_L5_argtuple_error;
6179 kw_args = PyDict_Size(__pyx_kwds);
6182 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
6183 else goto __pyx_L5_argtuple_error;
6186 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6188 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 1); __PYX_ERR(0, 2576, __pyx_L3_error)
6192 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6194 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 2); __PYX_ERR(0, 2576, __pyx_L3_error)
6198 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
6200 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 3); __PYX_ERR(0, 2576, __pyx_L3_error)
6204 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
6206 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 4); __PYX_ERR(0, 2576, __pyx_L3_error)
6210 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
6212 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 5); __PYX_ERR(0, 2576, __pyx_L3_error)
6216 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_2sided)) != 0)) kw_args--;
6218 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, 6); __PYX_ERR(0, 2576, __pyx_L3_error)
6221 if (unlikely(kw_args > 0)) {
6222 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorTwoSidedNumericalFluxJacobian") < 0)) __PYX_ERR(0, 2576, __pyx_L3_error)
6224 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
6225 goto __pyx_L5_argtuple_error;
6227 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6228 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6229 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6230 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6231 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6232 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6233 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6235 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
6236 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
6237 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
6238 __pyx_v_dflux_left = ((PyArrayObject *)values[3]);
6239 __pyx_v_dflux_right = ((PyArrayObject *)values[4]);
6240 __pyx_v_v = ((PyArrayObject *)values[5]);
6241 __pyx_v_fluxJacobian_2sided = ((PyArrayObject *)values[6]);
6243 goto __pyx_L4_argument_unpacking_done;
6244 __pyx_L5_argtuple_error:;
6245 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedNumericalFluxJacobian", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2576, __pyx_L3_error)
6247 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorTwoSidedNumericalFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
6248 __Pyx_RefNannyFinishContext();
6250 __pyx_L4_argument_unpacking_done:;
6251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2576, __pyx_L1_error)
6252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2577, __pyx_L1_error)
6253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2578, __pyx_L1_error)
6254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2579, __pyx_L1_error)
6255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2580, __pyx_L1_error)
6256 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2581, __pyx_L1_error)
6257 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_2sided), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_2sided", 0))) __PYX_ERR(0, 2582, __pyx_L1_error)
6258 __pyx_r = __pyx_pf_14cnumericalFlux_30updateInteriorTwoSidedNumericalFluxJacobian(__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_2sided);
6265 __Pyx_RefNannyFinishContext();
6269 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) {
6270 PyObject *__pyx_r = NULL;
6271 __Pyx_RefNannyDeclarations
6272 __Pyx_RefNannySetupContext(
"updateInteriorTwoSidedNumericalFluxJacobian", 0);
6281 updateInteriorTwoSidedNumericalFluxJacobian((__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_2sided->data));
6292 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6293 __Pyx_XGIVEREF(__pyx_r);
6294 __Pyx_RefNannyFinishContext();
6307 static PyObject *__pyx_pw_14cnumericalFlux_33calculateGlobalExteriorInflowNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6308 static PyMethodDef __pyx_mdef_14cnumericalFlux_33calculateGlobalExteriorInflowNumericalAdvectiveFlux = {
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_33calculateGlobalExteriorInflowNumericalAdvectiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
6309 static PyObject *__pyx_pw_14cnumericalFlux_33calculateGlobalExteriorInflowNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6310 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6311 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6312 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6313 PyArrayObject *__pyx_v_inflowFlag = 0;
6314 PyArrayObject *__pyx_v_inflowFlux = 0;
6315 PyArrayObject *__pyx_v_n = 0;
6316 PyArrayObject *__pyx_v_f = 0;
6317 PyArrayObject *__pyx_v_df = 0;
6318 PyArrayObject *__pyx_v_flux = 0;
6319 PyArrayObject *__pyx_v_dflux_left = 0;
6320 int __pyx_lineno = 0;
6321 const char *__pyx_filename = NULL;
6322 int __pyx_clineno = 0;
6323 PyObject *__pyx_r = 0;
6324 __Pyx_RefNannyDeclarations
6325 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux (wrapper)", 0);
6327 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_inflowFlag,&__pyx_n_s_inflowFlux,&__pyx_n_s_n,&__pyx_n_s_f,&__pyx_n_s_df,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,0};
6328 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
6329 if (unlikely(__pyx_kwds)) {
6331 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6333 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6335 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6337 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6339 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6341 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6343 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6345 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6347 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6349 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6351 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6354 default:
goto __pyx_L5_argtuple_error;
6356 kw_args = PyDict_Size(__pyx_kwds);
6359 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
6360 else goto __pyx_L5_argtuple_error;
6363 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6365 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 1); __PYX_ERR(0, 2595, __pyx_L3_error)
6369 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6371 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 2); __PYX_ERR(0, 2595, __pyx_L3_error)
6375 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
6377 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 3); __PYX_ERR(0, 2595, __pyx_L3_error)
6381 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlux)) != 0)) kw_args--;
6383 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 4); __PYX_ERR(0, 2595, __pyx_L3_error)
6387 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
6389 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 5); __PYX_ERR(0, 2595, __pyx_L3_error)
6393 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
6395 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 6); __PYX_ERR(0, 2595, __pyx_L3_error)
6399 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
6401 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 7); __PYX_ERR(0, 2595, __pyx_L3_error)
6405 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
6407 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 8); __PYX_ERR(0, 2595, __pyx_L3_error)
6411 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
6413 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, 9); __PYX_ERR(0, 2595, __pyx_L3_error)
6416 if (unlikely(kw_args > 0)) {
6417 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorInflowNumericalAdvectiveFlux") < 0)) __PYX_ERR(0, 2595, __pyx_L3_error)
6419 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
6420 goto __pyx_L5_argtuple_error;
6422 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6423 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6424 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6425 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6426 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6427 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6428 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6429 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6430 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6431 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6433 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
6434 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
6435 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
6436 __pyx_v_inflowFlag = ((PyArrayObject *)values[3]);
6437 __pyx_v_inflowFlux = ((PyArrayObject *)values[4]);
6438 __pyx_v_n = ((PyArrayObject *)values[5]);
6439 __pyx_v_f = ((PyArrayObject *)values[6]);
6440 __pyx_v_df = ((PyArrayObject *)values[7]);
6441 __pyx_v_flux = ((PyArrayObject *)values[8]);
6442 __pyx_v_dflux_left = ((PyArrayObject *)values[9]);
6444 goto __pyx_L4_argument_unpacking_done;
6445 __pyx_L5_argtuple_error:;
6446 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2595, __pyx_L3_error)
6448 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorInflowNumericalAdvectiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
6449 __Pyx_RefNannyFinishContext();
6451 __pyx_L4_argument_unpacking_done:;
6452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2595, __pyx_L1_error)
6453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2596, __pyx_L1_error)
6454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2597, __pyx_L1_error)
6455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 2598, __pyx_L1_error)
6456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlux), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlux", 0))) __PYX_ERR(0, 2599, __pyx_L1_error)
6457 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2600, __pyx_L1_error)
6458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 2601, __pyx_L1_error)
6459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 2602, __pyx_L1_error)
6460 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2603, __pyx_L1_error)
6461 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2604, __pyx_L1_error)
6462 __pyx_r = __pyx_pf_14cnumericalFlux_32calculateGlobalExteriorInflowNumericalAdvectiveFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_inflowFlux, __pyx_v_n, __pyx_v_f, __pyx_v_df, __pyx_v_flux, __pyx_v_dflux_left);
6469 __Pyx_RefNannyFinishContext();
6473 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) {
6474 PyObject *__pyx_r = NULL;
6475 __Pyx_RefNannyDeclarations
6476 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorInflowNumericalAdvectiveFlux", 0);
6485 calculateGlobalExteriorInflowNumericalAdvectiveFlux((__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_inflowFlux->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));
6496 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6497 __Pyx_XGIVEREF(__pyx_r);
6498 __Pyx_RefNannyFinishContext();
6511 static PyObject *__pyx_pw_14cnumericalFlux_35updateGlobalExteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6512 static PyMethodDef __pyx_mdef_14cnumericalFlux_35updateGlobalExteriorNumericalAdvectiveFluxJacobian = {
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_35updateGlobalExteriorNumericalAdvectiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
6513 static PyObject *__pyx_pw_14cnumericalFlux_35updateGlobalExteriorNumericalAdvectiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6514 int __pyx_v_nExteriorElementBoundaries_global;
6515 int __pyx_v_nQuadraturePoints_elementBoundary;
6516 int __pyx_v_nDOF_trial_element;
6517 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6518 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6519 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6520 PyArrayObject *__pyx_v_inflowFlag = 0;
6521 PyArrayObject *__pyx_v_dflux_left = 0;
6522 PyArrayObject *__pyx_v_v = 0;
6523 PyArrayObject *__pyx_v_fluxJacobian = 0;
6524 int __pyx_lineno = 0;
6525 const char *__pyx_filename = NULL;
6526 int __pyx_clineno = 0;
6527 PyObject *__pyx_r = 0;
6528 __Pyx_RefNannyDeclarations
6529 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian (wrapper)", 0);
6531 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__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};
6532 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
6533 if (unlikely(__pyx_kwds)) {
6535 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6537 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6539 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6541 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6543 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6545 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6547 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6549 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6551 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6553 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6555 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6558 default:
goto __pyx_L5_argtuple_error;
6560 kw_args = PyDict_Size(__pyx_kwds);
6563 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
6564 else goto __pyx_L5_argtuple_error;
6567 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
6569 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 1); __PYX_ERR(0, 2618, __pyx_L3_error)
6573 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
6575 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 2); __PYX_ERR(0, 2618, __pyx_L3_error)
6579 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
6581 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 3); __PYX_ERR(0, 2618, __pyx_L3_error)
6585 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6587 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 4); __PYX_ERR(0, 2618, __pyx_L3_error)
6591 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6593 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 5); __PYX_ERR(0, 2618, __pyx_L3_error)
6597 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
6599 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 6); __PYX_ERR(0, 2618, __pyx_L3_error)
6603 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
6605 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 7); __PYX_ERR(0, 2618, __pyx_L3_error)
6609 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
6611 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 8); __PYX_ERR(0, 2618, __pyx_L3_error)
6615 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
6617 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, 9); __PYX_ERR(0, 2618, __pyx_L3_error)
6620 if (unlikely(kw_args > 0)) {
6621 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalAdvectiveFluxJacobian") < 0)) __PYX_ERR(0, 2618, __pyx_L3_error)
6623 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
6624 goto __pyx_L5_argtuple_error;
6626 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6627 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6628 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6629 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6630 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6631 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6632 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6633 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6634 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6635 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6637 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2618, __pyx_L3_error)
6638 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2619, __pyx_L3_error)
6639 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2620, __pyx_L3_error)
6640 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
6641 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
6642 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
6643 __pyx_v_inflowFlag = ((PyArrayObject *)values[6]);
6644 __pyx_v_dflux_left = ((PyArrayObject *)values[7]);
6645 __pyx_v_v = ((PyArrayObject *)values[8]);
6646 __pyx_v_fluxJacobian = ((PyArrayObject *)values[9]);
6648 goto __pyx_L4_argument_unpacking_done;
6649 __pyx_L5_argtuple_error:;
6650 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2618, __pyx_L3_error)
6652 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalAdvectiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
6653 __Pyx_RefNannyFinishContext();
6655 __pyx_L4_argument_unpacking_done:;
6656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2621, __pyx_L1_error)
6657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2622, __pyx_L1_error)
6658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2623, __pyx_L1_error)
6659 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 2624, __pyx_L1_error)
6660 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2625, __pyx_L1_error)
6661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2626, __pyx_L1_error)
6662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2627, __pyx_L1_error)
6663 __pyx_r = __pyx_pf_14cnumericalFlux_34updateGlobalExteriorNumericalAdvectiveFluxJacobian(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_dflux_left, __pyx_v_v, __pyx_v_fluxJacobian);
6670 __Pyx_RefNannyFinishContext();
6674 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) {
6675 PyObject *__pyx_r = NULL;
6676 __Pyx_RefNannyDeclarations
6677 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian", 0);
6686 updateGlobalExteriorNumericalAdvectiveFluxJacobian(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
6697 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6698 __Pyx_XGIVEREF(__pyx_r);
6699 __Pyx_RefNannyFinishContext();
6712 static PyObject *__pyx_pw_14cnumericalFlux_37calculateInteriorChengShuNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6713 static PyMethodDef __pyx_mdef_14cnumericalFlux_37calculateInteriorChengShuNumericalFlux = {
"calculateInteriorChengShuNumericalFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_37calculateInteriorChengShuNumericalFlux, METH_VARARGS|METH_KEYWORDS, 0};
6714 static PyObject *__pyx_pw_14cnumericalFlux_37calculateInteriorChengShuNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6715 int __pyx_v_speedEvalFlag;
6716 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
6717 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6718 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6719 PyArrayObject *__pyx_v_n = 0;
6720 PyArrayObject *__pyx_v_u = 0;
6721 PyArrayObject *__pyx_v_H = 0;
6722 PyArrayObject *__pyx_v_dH = 0;
6723 PyArrayObject *__pyx_v_H_element = 0;
6724 PyArrayObject *__pyx_v_dH_element = 0;
6725 PyArrayObject *__pyx_v_flux = 0;
6726 PyArrayObject *__pyx_v_dflux_left = 0;
6727 PyArrayObject *__pyx_v_dflux_right = 0;
6728 int __pyx_lineno = 0;
6729 const char *__pyx_filename = NULL;
6730 int __pyx_clineno = 0;
6731 PyObject *__pyx_r = 0;
6732 __Pyx_RefNannyDeclarations
6733 __Pyx_RefNannySetupContext(
"calculateInteriorChengShuNumericalFlux (wrapper)", 0);
6735 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_H_element,&__pyx_n_s_dH_element,&__pyx_n_s_flux,&__pyx_n_s_dflux_left,&__pyx_n_s_dflux_right,0};
6736 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
6737 if (unlikely(__pyx_kwds)) {
6739 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6741 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6743 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6745 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6747 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6749 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6751 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6753 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6755 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6757 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6759 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6761 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6763 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6765 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6768 default:
goto __pyx_L5_argtuple_error;
6770 kw_args = PyDict_Size(__pyx_kwds);
6773 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speedEvalFlag)) != 0)) kw_args--;
6774 else goto __pyx_L5_argtuple_error;
6777 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
6779 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 1); __PYX_ERR(0, 2638, __pyx_L3_error)
6783 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6785 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 2); __PYX_ERR(0, 2638, __pyx_L3_error)
6789 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6791 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 3); __PYX_ERR(0, 2638, __pyx_L3_error)
6795 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
6797 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 4); __PYX_ERR(0, 2638, __pyx_L3_error)
6801 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
6803 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 5); __PYX_ERR(0, 2638, __pyx_L3_error)
6807 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
6809 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 6); __PYX_ERR(0, 2638, __pyx_L3_error)
6813 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
6815 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 7); __PYX_ERR(0, 2638, __pyx_L3_error)
6819 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H_element)) != 0)) kw_args--;
6821 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 8); __PYX_ERR(0, 2638, __pyx_L3_error)
6825 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH_element)) != 0)) kw_args--;
6827 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 9); __PYX_ERR(0, 2638, __pyx_L3_error)
6831 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
6833 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 10); __PYX_ERR(0, 2638, __pyx_L3_error)
6837 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
6839 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 11); __PYX_ERR(0, 2638, __pyx_L3_error)
6843 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_right)) != 0)) kw_args--;
6845 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, 12); __PYX_ERR(0, 2638, __pyx_L3_error)
6848 if (unlikely(kw_args > 0)) {
6849 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorChengShuNumericalFlux") < 0)) __PYX_ERR(0, 2638, __pyx_L3_error)
6851 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
6852 goto __pyx_L5_argtuple_error;
6854 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6855 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6856 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6857 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6858 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6859 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6860 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6861 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6862 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6863 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6864 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6865 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
6866 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
6868 __pyx_v_speedEvalFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_speedEvalFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2638, __pyx_L3_error)
6869 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
6870 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
6871 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
6872 __pyx_v_n = ((PyArrayObject *)values[4]);
6873 __pyx_v_u = ((PyArrayObject *)values[5]);
6874 __pyx_v_H = ((PyArrayObject *)values[6]);
6875 __pyx_v_dH = ((PyArrayObject *)values[7]);
6876 __pyx_v_H_element = ((PyArrayObject *)values[8]);
6877 __pyx_v_dH_element = ((PyArrayObject *)values[9]);
6878 __pyx_v_flux = ((PyArrayObject *)values[10]);
6879 __pyx_v_dflux_left = ((PyArrayObject *)values[11]);
6880 __pyx_v_dflux_right = ((PyArrayObject *)values[12]);
6882 goto __pyx_L4_argument_unpacking_done;
6883 __pyx_L5_argtuple_error:;
6884 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorChengShuNumericalFlux", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2638, __pyx_L3_error)
6886 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorChengShuNumericalFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
6887 __Pyx_RefNannyFinishContext();
6889 __pyx_L4_argument_unpacking_done:;
6890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2639, __pyx_L1_error)
6891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2640, __pyx_L1_error)
6892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2641, __pyx_L1_error)
6893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2642, __pyx_L1_error)
6894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2643, __pyx_L1_error)
6895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 2644, __pyx_L1_error)
6896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 2645, __pyx_L1_error)
6897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H_element), __pyx_ptype_5numpy_ndarray, 1,
"H_element", 0))) __PYX_ERR(0, 2646, __pyx_L1_error)
6898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH_element), __pyx_ptype_5numpy_ndarray, 1,
"dH_element", 0))) __PYX_ERR(0, 2647, __pyx_L1_error)
6899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2648, __pyx_L1_error)
6900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 2649, __pyx_L1_error)
6901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_right), __pyx_ptype_5numpy_ndarray, 1,
"dflux_right", 0))) __PYX_ERR(0, 2650, __pyx_L1_error)
6902 __pyx_r = __pyx_pf_14cnumericalFlux_36calculateInteriorChengShuNumericalFlux(__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_H_element, __pyx_v_dH_element, __pyx_v_flux, __pyx_v_dflux_left, __pyx_v_dflux_right);
6909 __Pyx_RefNannyFinishContext();
6913 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) {
6914 PyObject *__pyx_r = NULL;
6915 __Pyx_RefNannyDeclarations
6916 __Pyx_RefNannySetupContext(
"calculateInteriorChengShuNumericalFlux", 0);
6925 calculateInteriorChengShuNumericalFlux((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_dH->dimensions[1]), (__pyx_v_dH->dimensions[2]), (__pyx_v_dH_element->dimensions[1]), (__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_H_element->data), ((
double *)__pyx_v_dH_element->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_dflux_right->data));
6936 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6937 __Pyx_XGIVEREF(__pyx_r);
6938 __Pyx_RefNannyFinishContext();
6951 static PyObject *__pyx_pw_14cnumericalFlux_39calculateGlobalExteriorNumericalFluxDarcyFCFF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6952 static PyMethodDef __pyx_mdef_14cnumericalFlux_39calculateGlobalExteriorNumericalFluxDarcyFCFF = {
"calculateGlobalExteriorNumericalFluxDarcyFCFF", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_39calculateGlobalExteriorNumericalFluxDarcyFCFF, METH_VARARGS|METH_KEYWORDS, 0};
6953 static PyObject *__pyx_pw_14cnumericalFlux_39calculateGlobalExteriorNumericalFluxDarcyFCFF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6954 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6955 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6956 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6957 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
6958 PyArrayObject *__pyx_v_isDOFBoundary_um = 0;
6959 PyArrayObject *__pyx_v_n = 0;
6960 PyArrayObject *__pyx_v_bc_f_m = 0;
6961 PyArrayObject *__pyx_v_bc_a_wm = 0;
6962 PyArrayObject *__pyx_v_bc_a_mw = 0;
6963 PyArrayObject *__pyx_v_bc_a_mm = 0;
6964 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
6965 PyArrayObject *__pyx_v_bc_grad_phi_m = 0;
6966 PyArrayObject *__pyx_v_bc_u_w = 0;
6967 PyArrayObject *__pyx_v_bc_u_m = 0;
6968 PyArrayObject *__pyx_v_f_m = 0;
6969 PyArrayObject *__pyx_v_df_m_dw = 0;
6970 PyArrayObject *__pyx_v_a_wm = 0;
6971 PyArrayObject *__pyx_v_a_mw = 0;
6972 PyArrayObject *__pyx_v_a_mm = 0;
6973 PyArrayObject *__pyx_v_grad_phi_w = 0;
6974 PyArrayObject *__pyx_v_grad_phi_m = 0;
6975 PyArrayObject *__pyx_v_u_w = 0;
6976 PyArrayObject *__pyx_v_u_m = 0;
6977 PyArrayObject *__pyx_v_penalty_w = 0;
6978 PyArrayObject *__pyx_v_penalty_m = 0;
6979 PyArrayObject *__pyx_v_advectiveFlux_m = 0;
6980 PyArrayObject *__pyx_v_dadvectiveFlux_m_dw = 0;
6981 PyArrayObject *__pyx_v_diffusiveFlux_wm = 0;
6982 PyArrayObject *__pyx_v_diffusiveFlux_mw = 0;
6983 PyArrayObject *__pyx_v_diffusiveFlux_mm = 0;
6984 int __pyx_lineno = 0;
6985 const char *__pyx_filename = NULL;
6986 int __pyx_clineno = 0;
6987 PyObject *__pyx_r = 0;
6988 __Pyx_RefNannyDeclarations
6989 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF (wrapper)", 0);
6991 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_um,&__pyx_n_s_n,&__pyx_n_s_bc_f_m,&__pyx_n_s_bc_a_wm,&__pyx_n_s_bc_a_mw,&__pyx_n_s_bc_a_mm,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_m,&__pyx_n_s_bc_u_w,&__pyx_n_s_bc_u_m,&__pyx_n_s_f_m,&__pyx_n_s_df_m_dw,&__pyx_n_s_a_wm,&__pyx_n_s_a_mw,&__pyx_n_s_a_mm,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_m,&__pyx_n_s_u_w,&__pyx_n_s_u_m,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_m,&__pyx_n_s_advectiveFlux_m,&__pyx_n_s_dadvectiveFlux_m_dw,&__pyx_n_s_diffusiveFlux_wm,&__pyx_n_s_diffusiveFlux_mw,&__pyx_n_s_diffusiveFlux_mm,0};
6992 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
6993 if (unlikely(__pyx_kwds)) {
6995 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6997 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
6999 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
7001 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
7003 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
7005 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
7007 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
7009 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
7011 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
7013 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
7015 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
7017 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
7019 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
7021 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
7023 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
7025 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
7027 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
7029 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
7031 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7033 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7035 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7037 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7039 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7041 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7043 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7045 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7047 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7049 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7051 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7053 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7055 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7058 default:
goto __pyx_L5_argtuple_error;
7060 kw_args = PyDict_Size(__pyx_kwds);
7063 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
7064 else goto __pyx_L5_argtuple_error;
7067 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
7069 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 1); __PYX_ERR(0, 2669, __pyx_L3_error)
7073 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
7075 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 2); __PYX_ERR(0, 2669, __pyx_L3_error)
7079 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
7081 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 3); __PYX_ERR(0, 2669, __pyx_L3_error)
7085 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_um)) != 0)) kw_args--;
7087 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 4); __PYX_ERR(0, 2669, __pyx_L3_error)
7091 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
7093 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 5); __PYX_ERR(0, 2669, __pyx_L3_error)
7097 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_m)) != 0)) kw_args--;
7099 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 6); __PYX_ERR(0, 2669, __pyx_L3_error)
7103 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_wm)) != 0)) kw_args--;
7105 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 7); __PYX_ERR(0, 2669, __pyx_L3_error)
7109 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_mw)) != 0)) kw_args--;
7111 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 8); __PYX_ERR(0, 2669, __pyx_L3_error)
7115 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_mm)) != 0)) kw_args--;
7117 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 9); __PYX_ERR(0, 2669, __pyx_L3_error)
7121 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
7123 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 10); __PYX_ERR(0, 2669, __pyx_L3_error)
7127 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_m)) != 0)) kw_args--;
7129 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 11); __PYX_ERR(0, 2669, __pyx_L3_error)
7133 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u_w)) != 0)) kw_args--;
7135 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 12); __PYX_ERR(0, 2669, __pyx_L3_error)
7139 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u_m)) != 0)) kw_args--;
7141 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 13); __PYX_ERR(0, 2669, __pyx_L3_error)
7145 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
7147 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 14); __PYX_ERR(0, 2669, __pyx_L3_error)
7151 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m_dw)) != 0)) kw_args--;
7153 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 15); __PYX_ERR(0, 2669, __pyx_L3_error)
7157 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_wm)) != 0)) kw_args--;
7159 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 16); __PYX_ERR(0, 2669, __pyx_L3_error)
7163 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mw)) != 0)) kw_args--;
7165 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 17); __PYX_ERR(0, 2669, __pyx_L3_error)
7169 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mm)) != 0)) kw_args--;
7171 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 18); __PYX_ERR(0, 2669, __pyx_L3_error)
7175 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
7177 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 19); __PYX_ERR(0, 2669, __pyx_L3_error)
7181 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_m)) != 0)) kw_args--;
7183 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 20); __PYX_ERR(0, 2669, __pyx_L3_error)
7187 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_w)) != 0)) kw_args--;
7189 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 21); __PYX_ERR(0, 2669, __pyx_L3_error)
7193 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_m)) != 0)) kw_args--;
7195 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 22); __PYX_ERR(0, 2669, __pyx_L3_error)
7199 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
7201 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 23); __PYX_ERR(0, 2669, __pyx_L3_error)
7205 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_m)) != 0)) kw_args--;
7207 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 24); __PYX_ERR(0, 2669, __pyx_L3_error)
7211 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux_m)) != 0)) kw_args--;
7213 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 25); __PYX_ERR(0, 2669, __pyx_L3_error)
7217 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dadvectiveFlux_m_dw)) != 0)) kw_args--;
7219 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 26); __PYX_ERR(0, 2669, __pyx_L3_error)
7223 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_wm)) != 0)) kw_args--;
7225 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 27); __PYX_ERR(0, 2669, __pyx_L3_error)
7229 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_mw)) != 0)) kw_args--;
7231 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 28); __PYX_ERR(0, 2669, __pyx_L3_error)
7235 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_mm)) != 0)) kw_args--;
7237 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, 29); __PYX_ERR(0, 2669, __pyx_L3_error)
7240 if (unlikely(kw_args > 0)) {
7241 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCFF") < 0)) __PYX_ERR(0, 2669, __pyx_L3_error)
7243 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
7244 goto __pyx_L5_argtuple_error;
7246 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7247 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7248 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7249 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7250 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7251 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7252 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7253 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7254 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7255 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7256 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7257 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7258 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7259 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
7260 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
7261 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
7262 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
7263 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
7264 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
7265 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
7266 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
7267 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
7268 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
7269 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
7270 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
7271 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
7272 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
7273 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
7274 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
7275 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
7277 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
7278 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
7279 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
7280 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[3]);
7281 __pyx_v_isDOFBoundary_um = ((PyArrayObject *)values[4]);
7282 __pyx_v_n = ((PyArrayObject *)values[5]);
7283 __pyx_v_bc_f_m = ((PyArrayObject *)values[6]);
7284 __pyx_v_bc_a_wm = ((PyArrayObject *)values[7]);
7285 __pyx_v_bc_a_mw = ((PyArrayObject *)values[8]);
7286 __pyx_v_bc_a_mm = ((PyArrayObject *)values[9]);
7287 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[10]);
7288 __pyx_v_bc_grad_phi_m = ((PyArrayObject *)values[11]);
7289 __pyx_v_bc_u_w = ((PyArrayObject *)values[12]);
7290 __pyx_v_bc_u_m = ((PyArrayObject *)values[13]);
7291 __pyx_v_f_m = ((PyArrayObject *)values[14]);
7292 __pyx_v_df_m_dw = ((PyArrayObject *)values[15]);
7293 __pyx_v_a_wm = ((PyArrayObject *)values[16]);
7294 __pyx_v_a_mw = ((PyArrayObject *)values[17]);
7295 __pyx_v_a_mm = ((PyArrayObject *)values[18]);
7296 __pyx_v_grad_phi_w = ((PyArrayObject *)values[19]);
7297 __pyx_v_grad_phi_m = ((PyArrayObject *)values[20]);
7298 __pyx_v_u_w = ((PyArrayObject *)values[21]);
7299 __pyx_v_u_m = ((PyArrayObject *)values[22]);
7300 __pyx_v_penalty_w = ((PyArrayObject *)values[23]);
7301 __pyx_v_penalty_m = ((PyArrayObject *)values[24]);
7302 __pyx_v_advectiveFlux_m = ((PyArrayObject *)values[25]);
7303 __pyx_v_dadvectiveFlux_m_dw = ((PyArrayObject *)values[26]);
7304 __pyx_v_diffusiveFlux_wm = ((PyArrayObject *)values[27]);
7305 __pyx_v_diffusiveFlux_mw = ((PyArrayObject *)values[28]);
7306 __pyx_v_diffusiveFlux_mm = ((PyArrayObject *)values[29]);
7308 goto __pyx_L4_argument_unpacking_done;
7309 __pyx_L5_argtuple_error:;
7310 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2669, __pyx_L3_error)
7312 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCFF", __pyx_clineno, __pyx_lineno, __pyx_filename);
7313 __Pyx_RefNannyFinishContext();
7315 __pyx_L4_argument_unpacking_done:;
7316 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2669, __pyx_L1_error)
7317 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2670, __pyx_L1_error)
7318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2671, __pyx_L1_error)
7319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 2672, __pyx_L1_error)
7320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_um), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_um", 0))) __PYX_ERR(0, 2673, __pyx_L1_error)
7321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2674, __pyx_L1_error)
7322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_m", 0))) __PYX_ERR(0, 2675, __pyx_L1_error)
7323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_wm", 0))) __PYX_ERR(0, 2676, __pyx_L1_error)
7324 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_mw", 0))) __PYX_ERR(0, 2677, __pyx_L1_error)
7325 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_mm", 0))) __PYX_ERR(0, 2678, __pyx_L1_error)
7326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 2679, __pyx_L1_error)
7327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_m", 0))) __PYX_ERR(0, 2680, __pyx_L1_error)
7328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_u_w", 0))) __PYX_ERR(0, 2681, __pyx_L1_error)
7329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_u_m", 0))) __PYX_ERR(0, 2682, __pyx_L1_error)
7330 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1,
"f_m", 0))) __PYX_ERR(0, 2683, __pyx_L1_error)
7331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_m_dw", 0))) __PYX_ERR(0, 2684, __pyx_L1_error)
7332 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"a_wm", 0))) __PYX_ERR(0, 2685, __pyx_L1_error)
7333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"a_mw", 0))) __PYX_ERR(0, 2686, __pyx_L1_error)
7334 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"a_mm", 0))) __PYX_ERR(0, 2687, __pyx_L1_error)
7335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 2688, __pyx_L1_error)
7336 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_m", 0))) __PYX_ERR(0, 2689, __pyx_L1_error)
7337 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_w), __pyx_ptype_5numpy_ndarray, 1,
"u_w", 0))) __PYX_ERR(0, 2690, __pyx_L1_error)
7338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_m), __pyx_ptype_5numpy_ndarray, 1,
"u_m", 0))) __PYX_ERR(0, 2691, __pyx_L1_error)
7339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 2692, __pyx_L1_error)
7340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_m), __pyx_ptype_5numpy_ndarray, 1,
"penalty_m", 0))) __PYX_ERR(0, 2693, __pyx_L1_error)
7341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux_m), __pyx_ptype_5numpy_ndarray, 1,
"advectiveFlux_m", 0))) __PYX_ERR(0, 2694, __pyx_L1_error)
7342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dadvectiveFlux_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"dadvectiveFlux_m_dw", 0))) __PYX_ERR(0, 2695, __pyx_L1_error)
7343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_wm), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_wm", 0))) __PYX_ERR(0, 2696, __pyx_L1_error)
7344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_mw), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_mw", 0))) __PYX_ERR(0, 2697, __pyx_L1_error)
7345 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_mm), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_mm", 0))) __PYX_ERR(0, 2698, __pyx_L1_error)
7346 __pyx_r = __pyx_pf_14cnumericalFlux_38calculateGlobalExteriorNumericalFluxDarcyFCFF(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_um, __pyx_v_n, __pyx_v_bc_f_m, __pyx_v_bc_a_wm, __pyx_v_bc_a_mw, __pyx_v_bc_a_mm, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_m, __pyx_v_bc_u_w, __pyx_v_bc_u_m, __pyx_v_f_m, __pyx_v_df_m_dw, __pyx_v_a_wm, __pyx_v_a_mw, __pyx_v_a_mm, __pyx_v_grad_phi_w, __pyx_v_grad_phi_m, __pyx_v_u_w, __pyx_v_u_m, __pyx_v_penalty_w, __pyx_v_penalty_m, __pyx_v_advectiveFlux_m, __pyx_v_dadvectiveFlux_m_dw, __pyx_v_diffusiveFlux_wm, __pyx_v_diffusiveFlux_mw, __pyx_v_diffusiveFlux_mm);
7353 __Pyx_RefNannyFinishContext();
7357 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) {
7358 PyObject *__pyx_r = NULL;
7359 __Pyx_RefNannyDeclarations
7360 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF", 0);
7369 calculateGlobalExteriorNumericalFluxDarcyFCFF((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_um->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f_m->data), ((
double *)__pyx_v_bc_a_wm->data), ((
double *)__pyx_v_bc_a_mw->data), ((
double *)__pyx_v_bc_a_mm->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_m->data), ((
double *)__pyx_v_bc_u_w->data), ((
double *)__pyx_v_bc_u_m->data), ((
double *)__pyx_v_f_m->data), ((
double *)__pyx_v_df_m_dw->data), ((
double *)__pyx_v_a_wm->data), ((
double *)__pyx_v_a_mw->data), ((
double *)__pyx_v_a_mm->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_m->data), ((
double *)__pyx_v_u_w->data), ((
double *)__pyx_v_u_m->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_m->data), ((
double *)__pyx_v_advectiveFlux_m->data), ((
double *)__pyx_v_dadvectiveFlux_m_dw->data), ((
double *)__pyx_v_diffusiveFlux_wm->data), ((
double *)__pyx_v_diffusiveFlux_mw->data), ((
double *)__pyx_v_diffusiveFlux_mm->data));
7380 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7381 __Pyx_XGIVEREF(__pyx_r);
7382 __Pyx_RefNannyFinishContext();
7395 static PyObject *__pyx_pw_14cnumericalFlux_41calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7396 static PyMethodDef __pyx_mdef_14cnumericalFlux_41calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian = {
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_41calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
7397 static PyObject *__pyx_pw_14cnumericalFlux_41calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7398 PyArrayObject *__pyx_v_l2g = 0;
7399 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
7400 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
7401 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
7402 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
7403 PyArrayObject *__pyx_v_isDOFBoundary_um = 0;
7404 PyArrayObject *__pyx_v_n = 0;
7405 PyArrayObject *__pyx_v_f_m = 0;
7406 PyArrayObject *__pyx_v_df_m_dw = 0;
7407 PyArrayObject *__pyx_v_a_wm = 0;
7408 PyArrayObject *__pyx_v_da_wm_dw = 0;
7409 PyArrayObject *__pyx_v_da_wm_dm = 0;
7410 PyArrayObject *__pyx_v_a_mw = 0;
7411 PyArrayObject *__pyx_v_da_mw_dw = 0;
7412 PyArrayObject *__pyx_v_da_mw_dm = 0;
7413 PyArrayObject *__pyx_v_a_mm = 0;
7414 PyArrayObject *__pyx_v_da_mm_dw = 0;
7415 PyArrayObject *__pyx_v_da_mm_dm = 0;
7416 PyArrayObject *__pyx_v_grad_phi_w = 0;
7417 PyArrayObject *__pyx_v_grad_phi_m = 0;
7418 PyArrayObject *__pyx_v_dphi_w_w = 0;
7419 PyArrayObject *__pyx_v_dphi_w_m = 0;
7420 PyArrayObject *__pyx_v_dphi_m_w = 0;
7421 PyArrayObject *__pyx_v_dphi_m_m = 0;
7422 PyArrayObject *__pyx_v_u_w = 0;
7423 PyArrayObject *__pyx_v_u_m = 0;
7424 PyArrayObject *__pyx_v_v = 0;
7425 PyArrayObject *__pyx_v_grad_v = 0;
7426 PyArrayObject *__pyx_v_penalty_w = 0;
7427 PyArrayObject *__pyx_v_penalty_m = 0;
7428 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
7429 PyArrayObject *__pyx_v_fluxJacobian_wm = 0;
7430 PyArrayObject *__pyx_v_fluxJacobian_mw = 0;
7431 PyArrayObject *__pyx_v_fluxJacobian_mm = 0;
7432 int __pyx_lineno = 0;
7433 const char *__pyx_filename = NULL;
7434 int __pyx_clineno = 0;
7435 PyObject *__pyx_r = 0;
7436 __Pyx_RefNannyDeclarations
7437 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian (wrapper)", 0);
7439 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_um,&__pyx_n_s_n,&__pyx_n_s_f_m,&__pyx_n_s_df_m_dw,&__pyx_n_s_a_wm,&__pyx_n_s_da_wm_dw,&__pyx_n_s_da_wm_dm,&__pyx_n_s_a_mw,&__pyx_n_s_da_mw_dw,&__pyx_n_s_da_mw_dm,&__pyx_n_s_a_mm,&__pyx_n_s_da_mm_dw,&__pyx_n_s_da_mm_dm,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_m,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_m,&__pyx_n_s_dphi_m_w,&__pyx_n_s_dphi_m_m,&__pyx_n_s_u_w,&__pyx_n_s_u_m,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_m,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wm,&__pyx_n_s_fluxJacobian_mw,&__pyx_n_s_fluxJacobian_mm,0};
7440 PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
7441 if (unlikely(__pyx_kwds)) {
7443 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7445 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
7447 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
7449 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
7451 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
7453 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
7455 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
7457 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
7459 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
7461 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
7463 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
7465 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
7467 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
7469 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
7471 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
7473 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
7475 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
7477 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
7479 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
7481 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
7483 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
7485 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
7487 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7489 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7491 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7493 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7495 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7497 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7499 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7501 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7503 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7505 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7507 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7509 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7511 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7514 default:
goto __pyx_L5_argtuple_error;
7516 kw_args = PyDict_Size(__pyx_kwds);
7519 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
7520 else goto __pyx_L5_argtuple_error;
7523 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
7525 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 1); __PYX_ERR(0, 2732, __pyx_L3_error)
7529 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
7531 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 2); __PYX_ERR(0, 2732, __pyx_L3_error)
7535 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
7537 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 3); __PYX_ERR(0, 2732, __pyx_L3_error)
7541 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
7543 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 4); __PYX_ERR(0, 2732, __pyx_L3_error)
7547 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_um)) != 0)) kw_args--;
7549 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 5); __PYX_ERR(0, 2732, __pyx_L3_error)
7553 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
7555 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 6); __PYX_ERR(0, 2732, __pyx_L3_error)
7559 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
7561 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 7); __PYX_ERR(0, 2732, __pyx_L3_error)
7565 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m_dw)) != 0)) kw_args--;
7567 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 8); __PYX_ERR(0, 2732, __pyx_L3_error)
7571 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_wm)) != 0)) kw_args--;
7573 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 9); __PYX_ERR(0, 2732, __pyx_L3_error)
7577 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_wm_dw)) != 0)) kw_args--;
7579 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 10); __PYX_ERR(0, 2732, __pyx_L3_error)
7583 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_wm_dm)) != 0)) kw_args--;
7585 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 11); __PYX_ERR(0, 2732, __pyx_L3_error)
7589 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mw)) != 0)) kw_args--;
7591 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 12); __PYX_ERR(0, 2732, __pyx_L3_error)
7595 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mw_dw)) != 0)) kw_args--;
7597 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 13); __PYX_ERR(0, 2732, __pyx_L3_error)
7601 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mw_dm)) != 0)) kw_args--;
7603 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 14); __PYX_ERR(0, 2732, __pyx_L3_error)
7607 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mm)) != 0)) kw_args--;
7609 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 15); __PYX_ERR(0, 2732, __pyx_L3_error)
7613 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mm_dw)) != 0)) kw_args--;
7615 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 16); __PYX_ERR(0, 2732, __pyx_L3_error)
7619 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mm_dm)) != 0)) kw_args--;
7621 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 17); __PYX_ERR(0, 2732, __pyx_L3_error)
7625 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
7627 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 18); __PYX_ERR(0, 2732, __pyx_L3_error)
7631 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_m)) != 0)) kw_args--;
7633 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 19); __PYX_ERR(0, 2732, __pyx_L3_error)
7637 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
7639 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 20); __PYX_ERR(0, 2732, __pyx_L3_error)
7643 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_m)) != 0)) kw_args--;
7645 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 21); __PYX_ERR(0, 2732, __pyx_L3_error)
7649 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_m_w)) != 0)) kw_args--;
7651 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 22); __PYX_ERR(0, 2732, __pyx_L3_error)
7655 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_m_m)) != 0)) kw_args--;
7657 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 23); __PYX_ERR(0, 2732, __pyx_L3_error)
7661 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_w)) != 0)) kw_args--;
7663 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 24); __PYX_ERR(0, 2732, __pyx_L3_error)
7667 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_m)) != 0)) kw_args--;
7669 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 25); __PYX_ERR(0, 2732, __pyx_L3_error)
7673 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
7675 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 26); __PYX_ERR(0, 2732, __pyx_L3_error)
7679 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
7681 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 27); __PYX_ERR(0, 2732, __pyx_L3_error)
7685 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
7687 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 28); __PYX_ERR(0, 2732, __pyx_L3_error)
7691 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_m)) != 0)) kw_args--;
7693 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 29); __PYX_ERR(0, 2732, __pyx_L3_error)
7697 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
7699 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 30); __PYX_ERR(0, 2732, __pyx_L3_error)
7703 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wm)) != 0)) kw_args--;
7705 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 31); __PYX_ERR(0, 2732, __pyx_L3_error)
7709 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_mw)) != 0)) kw_args--;
7711 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 32); __PYX_ERR(0, 2732, __pyx_L3_error)
7715 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_mm)) != 0)) kw_args--;
7717 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, 33); __PYX_ERR(0, 2732, __pyx_L3_error)
7720 if (unlikely(kw_args > 0)) {
7721 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian") < 0)) __PYX_ERR(0, 2732, __pyx_L3_error)
7723 }
else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
7724 goto __pyx_L5_argtuple_error;
7726 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7727 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7728 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7729 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7730 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7731 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7732 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7733 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7734 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7735 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7736 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7737 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7738 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7739 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
7740 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
7741 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
7742 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
7743 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
7744 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
7745 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
7746 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
7747 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
7748 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
7749 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
7750 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
7751 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
7752 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
7753 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
7754 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
7755 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
7756 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
7757 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
7758 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
7759 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
7761 __pyx_v_l2g = ((PyArrayObject *)values[0]);
7762 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
7763 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
7764 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
7765 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[4]);
7766 __pyx_v_isDOFBoundary_um = ((PyArrayObject *)values[5]);
7767 __pyx_v_n = ((PyArrayObject *)values[6]);
7768 __pyx_v_f_m = ((PyArrayObject *)values[7]);
7769 __pyx_v_df_m_dw = ((PyArrayObject *)values[8]);
7770 __pyx_v_a_wm = ((PyArrayObject *)values[9]);
7771 __pyx_v_da_wm_dw = ((PyArrayObject *)values[10]);
7772 __pyx_v_da_wm_dm = ((PyArrayObject *)values[11]);
7773 __pyx_v_a_mw = ((PyArrayObject *)values[12]);
7774 __pyx_v_da_mw_dw = ((PyArrayObject *)values[13]);
7775 __pyx_v_da_mw_dm = ((PyArrayObject *)values[14]);
7776 __pyx_v_a_mm = ((PyArrayObject *)values[15]);
7777 __pyx_v_da_mm_dw = ((PyArrayObject *)values[16]);
7778 __pyx_v_da_mm_dm = ((PyArrayObject *)values[17]);
7779 __pyx_v_grad_phi_w = ((PyArrayObject *)values[18]);
7780 __pyx_v_grad_phi_m = ((PyArrayObject *)values[19]);
7781 __pyx_v_dphi_w_w = ((PyArrayObject *)values[20]);
7782 __pyx_v_dphi_w_m = ((PyArrayObject *)values[21]);
7783 __pyx_v_dphi_m_w = ((PyArrayObject *)values[22]);
7784 __pyx_v_dphi_m_m = ((PyArrayObject *)values[23]);
7785 __pyx_v_u_w = ((PyArrayObject *)values[24]);
7786 __pyx_v_u_m = ((PyArrayObject *)values[25]);
7787 __pyx_v_v = ((PyArrayObject *)values[26]);
7788 __pyx_v_grad_v = ((PyArrayObject *)values[27]);
7789 __pyx_v_penalty_w = ((PyArrayObject *)values[28]);
7790 __pyx_v_penalty_m = ((PyArrayObject *)values[29]);
7791 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[30]);
7792 __pyx_v_fluxJacobian_wm = ((PyArrayObject *)values[31]);
7793 __pyx_v_fluxJacobian_mw = ((PyArrayObject *)values[32]);
7794 __pyx_v_fluxJacobian_mm = ((PyArrayObject *)values[33]);
7796 goto __pyx_L4_argument_unpacking_done;
7797 __pyx_L5_argtuple_error:;
7798 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2732, __pyx_L3_error)
7800 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
7801 __Pyx_RefNannyFinishContext();
7803 __pyx_L4_argument_unpacking_done:;
7804 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2732, __pyx_L1_error)
7805 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2733, __pyx_L1_error)
7806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2734, __pyx_L1_error)
7807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2735, __pyx_L1_error)
7808 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 2736, __pyx_L1_error)
7809 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_um), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_um", 0))) __PYX_ERR(0, 2737, __pyx_L1_error)
7810 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2738, __pyx_L1_error)
7811 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1,
"f_m", 0))) __PYX_ERR(0, 2739, __pyx_L1_error)
7812 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_m_dw", 0))) __PYX_ERR(0, 2740, __pyx_L1_error)
7813 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"a_wm", 0))) __PYX_ERR(0, 2741, __pyx_L1_error)
7814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_wm_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_wm_dw", 0))) __PYX_ERR(0, 2742, __pyx_L1_error)
7815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_wm_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_wm_dm", 0))) __PYX_ERR(0, 2743, __pyx_L1_error)
7816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"a_mw", 0))) __PYX_ERR(0, 2744, __pyx_L1_error)
7817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mw_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_mw_dw", 0))) __PYX_ERR(0, 2745, __pyx_L1_error)
7818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mw_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_mw_dm", 0))) __PYX_ERR(0, 2746, __pyx_L1_error)
7819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"a_mm", 0))) __PYX_ERR(0, 2747, __pyx_L1_error)
7820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mm_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_mm_dw", 0))) __PYX_ERR(0, 2748, __pyx_L1_error)
7821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mm_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_mm_dm", 0))) __PYX_ERR(0, 2749, __pyx_L1_error)
7822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 2750, __pyx_L1_error)
7823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_m", 0))) __PYX_ERR(0, 2751, __pyx_L1_error)
7824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 2752, __pyx_L1_error)
7825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_m), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_m", 0))) __PYX_ERR(0, 2753, __pyx_L1_error)
7826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_m_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_m_w", 0))) __PYX_ERR(0, 2754, __pyx_L1_error)
7827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_m_m), __pyx_ptype_5numpy_ndarray, 1,
"dphi_m_m", 0))) __PYX_ERR(0, 2755, __pyx_L1_error)
7828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_w), __pyx_ptype_5numpy_ndarray, 1,
"u_w", 0))) __PYX_ERR(0, 2756, __pyx_L1_error)
7829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_m), __pyx_ptype_5numpy_ndarray, 1,
"u_m", 0))) __PYX_ERR(0, 2757, __pyx_L1_error)
7830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2758, __pyx_L1_error)
7831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 2759, __pyx_L1_error)
7832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 2760, __pyx_L1_error)
7833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_m), __pyx_ptype_5numpy_ndarray, 1,
"penalty_m", 0))) __PYX_ERR(0, 2761, __pyx_L1_error)
7834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 2762, __pyx_L1_error)
7835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wm), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wm", 0))) __PYX_ERR(0, 2763, __pyx_L1_error)
7836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_mw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_mw", 0))) __PYX_ERR(0, 2764, __pyx_L1_error)
7837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_mm), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_mm", 0))) __PYX_ERR(0, 2765, __pyx_L1_error)
7838 __pyx_r = __pyx_pf_14cnumericalFlux_40calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian(__pyx_self, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_um, __pyx_v_n, __pyx_v_f_m, __pyx_v_df_m_dw, __pyx_v_a_wm, __pyx_v_da_wm_dw, __pyx_v_da_wm_dm, __pyx_v_a_mw, __pyx_v_da_mw_dw, __pyx_v_da_mw_dm, __pyx_v_a_mm, __pyx_v_da_mm_dw, __pyx_v_da_mm_dm, __pyx_v_grad_phi_w, __pyx_v_grad_phi_m, __pyx_v_dphi_w_w, __pyx_v_dphi_w_m, __pyx_v_dphi_m_w, __pyx_v_dphi_m_m, __pyx_v_u_w, __pyx_v_u_m, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_m, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wm, __pyx_v_fluxJacobian_mw, __pyx_v_fluxJacobian_mm);
7845 __Pyx_RefNannyFinishContext();
7849 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) {
7850 PyObject *__pyx_r = NULL;
7851 __Pyx_RefNannyDeclarations
7852 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian", 0);
7861 calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_um->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_f_m->data), ((
double *)__pyx_v_df_m_dw->data), ((
double *)__pyx_v_a_wm->data), ((
double *)__pyx_v_da_wm_dw->data), ((
double *)__pyx_v_da_wm_dm->data), ((
double *)__pyx_v_a_mw->data), ((
double *)__pyx_v_da_mw_dw->data), ((
double *)__pyx_v_da_mw_dm->data), ((
double *)__pyx_v_a_mm->data), ((
double *)__pyx_v_da_mm_dw->data), ((
double *)__pyx_v_da_mm_dm->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_m->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_m->data), ((
double *)__pyx_v_dphi_m_w->data), ((
double *)__pyx_v_dphi_m_m->data), ((
double *)__pyx_v_u_w->data), ((
double *)__pyx_v_u_m->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_m->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wm->data), ((
double *)__pyx_v_fluxJacobian_mw->data), ((
double *)__pyx_v_fluxJacobian_mm->data));
7872 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7873 __Pyx_XGIVEREF(__pyx_r);
7874 __Pyx_RefNannyFinishContext();
7887 static PyObject *__pyx_pw_14cnumericalFlux_43updateExteriorNumericalStressFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7888 static PyMethodDef __pyx_mdef_14cnumericalFlux_43updateExteriorNumericalStressFluxJacobian = {
"updateExteriorNumericalStressFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_43updateExteriorNumericalStressFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
7889 static PyObject *__pyx_pw_14cnumericalFlux_43updateExteriorNumericalStressFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7890 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
7891 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
7892 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
7893 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
7894 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
7895 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
7896 PyArrayObject *__pyx_v_isStressBoundary_u = 0;
7897 PyArrayObject *__pyx_v_isStressBoundary_v = 0;
7898 PyArrayObject *__pyx_v_isStressBoundary_w = 0;
7899 PyArrayObject *__pyx_v_n = 0;
7900 PyArrayObject *__pyx_v_dstress_u_u = 0;
7901 PyArrayObject *__pyx_v_dstress_u_v = 0;
7902 PyArrayObject *__pyx_v_dstress_u_w = 0;
7903 PyArrayObject *__pyx_v_dstress_v_u = 0;
7904 PyArrayObject *__pyx_v_dstress_v_v = 0;
7905 PyArrayObject *__pyx_v_dstress_v_w = 0;
7906 PyArrayObject *__pyx_v_dstress_w_u = 0;
7907 PyArrayObject *__pyx_v_dstress_w_v = 0;
7908 PyArrayObject *__pyx_v_dstress_w_w = 0;
7909 PyArrayObject *__pyx_v_v = 0;
7910 PyArrayObject *__pyx_v_grad_v = 0;
7911 PyArrayObject *__pyx_v_penalty = 0;
7912 PyArrayObject *__pyx_v_fluxJacobian_u_u = 0;
7913 PyArrayObject *__pyx_v_fluxJacobian_u_v = 0;
7914 PyArrayObject *__pyx_v_fluxJacobian_u_w = 0;
7915 PyArrayObject *__pyx_v_fluxJacobian_v_u = 0;
7916 PyArrayObject *__pyx_v_fluxJacobian_v_v = 0;
7917 PyArrayObject *__pyx_v_fluxJacobian_v_w = 0;
7918 PyArrayObject *__pyx_v_fluxJacobian_w_u = 0;
7919 PyArrayObject *__pyx_v_fluxJacobian_w_v = 0;
7920 PyArrayObject *__pyx_v_fluxJacobian_w_w = 0;
7921 int __pyx_lineno = 0;
7922 const char *__pyx_filename = NULL;
7923 int __pyx_clineno = 0;
7924 PyObject *__pyx_r = 0;
7925 __Pyx_RefNannyDeclarations
7926 __Pyx_RefNannySetupContext(
"updateExteriorNumericalStressFluxJacobian (wrapper)", 0);
7928 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_isStressBoundary_u,&__pyx_n_s_isStressBoundary_v,&__pyx_n_s_isStressBoundary_w,&__pyx_n_s_n,&__pyx_n_s_dstress_u_u,&__pyx_n_s_dstress_u_v,&__pyx_n_s_dstress_u_w,&__pyx_n_s_dstress_v_u,&__pyx_n_s_dstress_v_v,&__pyx_n_s_dstress_v_w,&__pyx_n_s_dstress_w_u,&__pyx_n_s_dstress_w_v,&__pyx_n_s_dstress_w_w,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian_u_u,&__pyx_n_s_fluxJacobian_u_v,&__pyx_n_s_fluxJacobian_u_w,&__pyx_n_s_fluxJacobian_v_u,&__pyx_n_s_fluxJacobian_v_v,&__pyx_n_s_fluxJacobian_v_w,&__pyx_n_s_fluxJacobian_w_u,&__pyx_n_s_fluxJacobian_w_v,&__pyx_n_s_fluxJacobian_w_w,0};
7929 PyObject* values[31] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
7930 if (unlikely(__pyx_kwds)) {
7932 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7934 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
7936 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
7938 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
7940 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
7942 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
7944 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
7946 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
7948 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
7950 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
7952 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
7954 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
7956 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
7958 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
7960 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
7962 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
7964 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
7966 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
7968 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
7970 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
7972 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
7974 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
7976 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
7978 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
7980 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7982 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7984 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7986 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7988 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7990 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7992 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7994 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7997 default:
goto __pyx_L5_argtuple_error;
7999 kw_args = PyDict_Size(__pyx_kwds);
8002 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
8003 else goto __pyx_L5_argtuple_error;
8006 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
8008 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 1); __PYX_ERR(0, 2804, __pyx_L3_error)
8012 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
8014 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 2); __PYX_ERR(0, 2804, __pyx_L3_error)
8018 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
8020 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 3); __PYX_ERR(0, 2804, __pyx_L3_error)
8024 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
8026 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 4); __PYX_ERR(0, 2804, __pyx_L3_error)
8030 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
8032 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 5); __PYX_ERR(0, 2804, __pyx_L3_error)
8036 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isStressBoundary_u)) != 0)) kw_args--;
8038 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 6); __PYX_ERR(0, 2804, __pyx_L3_error)
8042 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isStressBoundary_v)) != 0)) kw_args--;
8044 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 7); __PYX_ERR(0, 2804, __pyx_L3_error)
8048 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isStressBoundary_w)) != 0)) kw_args--;
8050 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 8); __PYX_ERR(0, 2804, __pyx_L3_error)
8054 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8056 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 9); __PYX_ERR(0, 2804, __pyx_L3_error)
8060 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_u_u)) != 0)) kw_args--;
8062 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 10); __PYX_ERR(0, 2804, __pyx_L3_error)
8066 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_u_v)) != 0)) kw_args--;
8068 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 11); __PYX_ERR(0, 2804, __pyx_L3_error)
8072 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_u_w)) != 0)) kw_args--;
8074 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 12); __PYX_ERR(0, 2804, __pyx_L3_error)
8078 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_v_u)) != 0)) kw_args--;
8080 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 13); __PYX_ERR(0, 2804, __pyx_L3_error)
8084 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_v_v)) != 0)) kw_args--;
8086 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 14); __PYX_ERR(0, 2804, __pyx_L3_error)
8090 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_v_w)) != 0)) kw_args--;
8092 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 15); __PYX_ERR(0, 2804, __pyx_L3_error)
8096 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_w_u)) != 0)) kw_args--;
8098 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 16); __PYX_ERR(0, 2804, __pyx_L3_error)
8102 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_w_v)) != 0)) kw_args--;
8104 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 17); __PYX_ERR(0, 2804, __pyx_L3_error)
8108 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstress_w_w)) != 0)) kw_args--;
8110 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 18); __PYX_ERR(0, 2804, __pyx_L3_error)
8114 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
8116 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 19); __PYX_ERR(0, 2804, __pyx_L3_error)
8120 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
8122 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 20); __PYX_ERR(0, 2804, __pyx_L3_error)
8126 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
8128 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 21); __PYX_ERR(0, 2804, __pyx_L3_error)
8132 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_u_u)) != 0)) kw_args--;
8134 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 22); __PYX_ERR(0, 2804, __pyx_L3_error)
8138 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_u_v)) != 0)) kw_args--;
8140 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 23); __PYX_ERR(0, 2804, __pyx_L3_error)
8144 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_u_w)) != 0)) kw_args--;
8146 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 24); __PYX_ERR(0, 2804, __pyx_L3_error)
8150 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_v_u)) != 0)) kw_args--;
8152 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 25); __PYX_ERR(0, 2804, __pyx_L3_error)
8156 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_v_v)) != 0)) kw_args--;
8158 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 26); __PYX_ERR(0, 2804, __pyx_L3_error)
8162 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_v_w)) != 0)) kw_args--;
8164 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 27); __PYX_ERR(0, 2804, __pyx_L3_error)
8168 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_w_u)) != 0)) kw_args--;
8170 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 28); __PYX_ERR(0, 2804, __pyx_L3_error)
8174 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_w_v)) != 0)) kw_args--;
8176 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 29); __PYX_ERR(0, 2804, __pyx_L3_error)
8180 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_w_w)) != 0)) kw_args--;
8182 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, 30); __PYX_ERR(0, 2804, __pyx_L3_error)
8185 if (unlikely(kw_args > 0)) {
8186 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalStressFluxJacobian") < 0)) __PYX_ERR(0, 2804, __pyx_L3_error)
8188 }
else if (PyTuple_GET_SIZE(__pyx_args) != 31) {
8189 goto __pyx_L5_argtuple_error;
8191 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8192 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8193 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8194 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8195 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8196 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8197 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8198 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8199 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8200 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8201 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8202 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8203 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8204 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8205 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8206 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8207 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8208 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8209 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8210 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8211 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
8212 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
8213 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
8214 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
8215 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
8216 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
8217 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
8218 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
8219 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
8220 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
8221 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
8223 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
8224 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
8225 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
8226 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[3]);
8227 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[4]);
8228 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[5]);
8229 __pyx_v_isStressBoundary_u = ((PyArrayObject *)values[6]);
8230 __pyx_v_isStressBoundary_v = ((PyArrayObject *)values[7]);
8231 __pyx_v_isStressBoundary_w = ((PyArrayObject *)values[8]);
8232 __pyx_v_n = ((PyArrayObject *)values[9]);
8233 __pyx_v_dstress_u_u = ((PyArrayObject *)values[10]);
8234 __pyx_v_dstress_u_v = ((PyArrayObject *)values[11]);
8235 __pyx_v_dstress_u_w = ((PyArrayObject *)values[12]);
8236 __pyx_v_dstress_v_u = ((PyArrayObject *)values[13]);
8237 __pyx_v_dstress_v_v = ((PyArrayObject *)values[14]);
8238 __pyx_v_dstress_v_w = ((PyArrayObject *)values[15]);
8239 __pyx_v_dstress_w_u = ((PyArrayObject *)values[16]);
8240 __pyx_v_dstress_w_v = ((PyArrayObject *)values[17]);
8241 __pyx_v_dstress_w_w = ((PyArrayObject *)values[18]);
8242 __pyx_v_v = ((PyArrayObject *)values[19]);
8243 __pyx_v_grad_v = ((PyArrayObject *)values[20]);
8244 __pyx_v_penalty = ((PyArrayObject *)values[21]);
8245 __pyx_v_fluxJacobian_u_u = ((PyArrayObject *)values[22]);
8246 __pyx_v_fluxJacobian_u_v = ((PyArrayObject *)values[23]);
8247 __pyx_v_fluxJacobian_u_w = ((PyArrayObject *)values[24]);
8248 __pyx_v_fluxJacobian_v_u = ((PyArrayObject *)values[25]);
8249 __pyx_v_fluxJacobian_v_v = ((PyArrayObject *)values[26]);
8250 __pyx_v_fluxJacobian_v_w = ((PyArrayObject *)values[27]);
8251 __pyx_v_fluxJacobian_w_u = ((PyArrayObject *)values[28]);
8252 __pyx_v_fluxJacobian_w_v = ((PyArrayObject *)values[29]);
8253 __pyx_v_fluxJacobian_w_w = ((PyArrayObject *)values[30]);
8255 goto __pyx_L4_argument_unpacking_done;
8256 __pyx_L5_argtuple_error:;
8257 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalStressFluxJacobian", 1, 31, 31, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2804, __pyx_L3_error)
8259 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalStressFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
8260 __Pyx_RefNannyFinishContext();
8262 __pyx_L4_argument_unpacking_done:;
8263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2804, __pyx_L1_error)
8264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2805, __pyx_L1_error)
8265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2806, __pyx_L1_error)
8266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 2807, __pyx_L1_error)
8267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 2808, __pyx_L1_error)
8268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 2809, __pyx_L1_error)
8269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isStressBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isStressBoundary_u", 0))) __PYX_ERR(0, 2810, __pyx_L1_error)
8270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isStressBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isStressBoundary_v", 0))) __PYX_ERR(0, 2811, __pyx_L1_error)
8271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isStressBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isStressBoundary_w", 0))) __PYX_ERR(0, 2812, __pyx_L1_error)
8272 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2813, __pyx_L1_error)
8273 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_u_u), __pyx_ptype_5numpy_ndarray, 1,
"dstress_u_u", 0))) __PYX_ERR(0, 2814, __pyx_L1_error)
8274 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_u_v), __pyx_ptype_5numpy_ndarray, 1,
"dstress_u_v", 0))) __PYX_ERR(0, 2815, __pyx_L1_error)
8275 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_u_w), __pyx_ptype_5numpy_ndarray, 1,
"dstress_u_w", 0))) __PYX_ERR(0, 2816, __pyx_L1_error)
8276 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_v_u), __pyx_ptype_5numpy_ndarray, 1,
"dstress_v_u", 0))) __PYX_ERR(0, 2817, __pyx_L1_error)
8277 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_v_v), __pyx_ptype_5numpy_ndarray, 1,
"dstress_v_v", 0))) __PYX_ERR(0, 2818, __pyx_L1_error)
8278 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_v_w), __pyx_ptype_5numpy_ndarray, 1,
"dstress_v_w", 0))) __PYX_ERR(0, 2819, __pyx_L1_error)
8279 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_w_u), __pyx_ptype_5numpy_ndarray, 1,
"dstress_w_u", 0))) __PYX_ERR(0, 2820, __pyx_L1_error)
8280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_w_v), __pyx_ptype_5numpy_ndarray, 1,
"dstress_w_v", 0))) __PYX_ERR(0, 2821, __pyx_L1_error)
8281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstress_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dstress_w_w", 0))) __PYX_ERR(0, 2822, __pyx_L1_error)
8282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2823, __pyx_L1_error)
8283 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 2824, __pyx_L1_error)
8284 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2825, __pyx_L1_error)
8285 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_u_u), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_u_u", 0))) __PYX_ERR(0, 2826, __pyx_L1_error)
8286 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_u_v), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_u_v", 0))) __PYX_ERR(0, 2827, __pyx_L1_error)
8287 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_u_w), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_u_w", 0))) __PYX_ERR(0, 2828, __pyx_L1_error)
8288 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_v_u), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_v_u", 0))) __PYX_ERR(0, 2829, __pyx_L1_error)
8289 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_v_v), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_v_v", 0))) __PYX_ERR(0, 2830, __pyx_L1_error)
8290 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_v_w), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_v_w", 0))) __PYX_ERR(0, 2831, __pyx_L1_error)
8291 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_w_u), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_w_u", 0))) __PYX_ERR(0, 2832, __pyx_L1_error)
8292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_w_v), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_w_v", 0))) __PYX_ERR(0, 2833, __pyx_L1_error)
8293 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_w_w), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_w_w", 0))) __PYX_ERR(0, 2834, __pyx_L1_error)
8294 __pyx_r = __pyx_pf_14cnumericalFlux_42updateExteriorNumericalStressFluxJacobian(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_isStressBoundary_u, __pyx_v_isStressBoundary_v, __pyx_v_isStressBoundary_w, __pyx_v_n, __pyx_v_dstress_u_u, __pyx_v_dstress_u_v, __pyx_v_dstress_u_w, __pyx_v_dstress_v_u, __pyx_v_dstress_v_v, __pyx_v_dstress_v_w, __pyx_v_dstress_w_u, __pyx_v_dstress_w_v, __pyx_v_dstress_w_w, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty, __pyx_v_fluxJacobian_u_u, __pyx_v_fluxJacobian_u_v, __pyx_v_fluxJacobian_u_w, __pyx_v_fluxJacobian_v_u, __pyx_v_fluxJacobian_v_v, __pyx_v_fluxJacobian_v_w, __pyx_v_fluxJacobian_w_u, __pyx_v_fluxJacobian_w_v, __pyx_v_fluxJacobian_w_w);
8301 __Pyx_RefNannyFinishContext();
8305 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) {
8306 PyObject *__pyx_r = NULL;
8307 __Pyx_RefNannyDeclarations
8308 __Pyx_RefNannySetupContext(
"updateExteriorNumericalStressFluxJacobian", 0);
8317 updateExteriorNumericalStressFluxJacobian((__pyx_v_v->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
int *)__pyx_v_isStressBoundary_u->data), ((
int *)__pyx_v_isStressBoundary_v->data), ((
int *)__pyx_v_isStressBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_dstress_u_u->data), ((
double *)__pyx_v_dstress_u_v->data), ((
double *)__pyx_v_dstress_u_w->data), ((
double *)__pyx_v_dstress_v_u->data), ((
double *)__pyx_v_dstress_v_v->data), ((
double *)__pyx_v_dstress_v_w->data), ((
double *)__pyx_v_dstress_w_u->data), ((
double *)__pyx_v_dstress_w_v->data), ((
double *)__pyx_v_dstress_w_w->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian_u_u->data), ((
double *)__pyx_v_fluxJacobian_u_v->data), ((
double *)__pyx_v_fluxJacobian_u_w->data), ((
double *)__pyx_v_fluxJacobian_v_u->data), ((
double *)__pyx_v_fluxJacobian_v_v->data), ((
double *)__pyx_v_fluxJacobian_v_w->data), ((
double *)__pyx_v_fluxJacobian_w_u->data), ((
double *)__pyx_v_fluxJacobian_w_v->data), ((
double *)__pyx_v_fluxJacobian_w_w->data));
8328 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8329 __Pyx_XGIVEREF(__pyx_r);
8330 __Pyx_RefNannyFinishContext();
8343 static PyObject *__pyx_pw_14cnumericalFlux_45calculateExteriorNumericalFluxRichards_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8344 static PyMethodDef __pyx_mdef_14cnumericalFlux_45calculateExteriorNumericalFluxRichards_sd = {
"calculateExteriorNumericalFluxRichards_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_45calculateExteriorNumericalFluxRichards_sd, METH_VARARGS|METH_KEYWORDS, 0};
8345 static PyObject *__pyx_pw_14cnumericalFlux_45calculateExteriorNumericalFluxRichards_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8346 PyArrayObject *__pyx_v_rowptr = 0;
8347 PyArrayObject *__pyx_v_colind = 0;
8348 PyArrayObject *__pyx_v_isSeepageFace = 0;
8349 PyArrayObject *__pyx_v_isDOFBoundary = 0;
8350 PyArrayObject *__pyx_v_n = 0;
8351 PyArrayObject *__pyx_v_bc_u = 0;
8352 PyArrayObject *__pyx_v_K = 0;
8353 PyArrayObject *__pyx_v_grad_psi = 0;
8354 PyArrayObject *__pyx_v_u = 0;
8355 PyArrayObject *__pyx_v_K_rho_g = 0;
8356 PyArrayObject *__pyx_v_penalty = 0;
8357 PyArrayObject *__pyx_v_diffusiveFlux = 0;
8358 int __pyx_lineno = 0;
8359 const char *__pyx_filename = NULL;
8360 int __pyx_clineno = 0;
8361 PyObject *__pyx_r = 0;
8362 __Pyx_RefNannyDeclarations
8363 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxRichards_sd (wrapper)", 0);
8365 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_isSeepageFace,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_u,&__pyx_n_s_K,&__pyx_n_s_grad_psi,&__pyx_n_s_u,&__pyx_n_s_K_rho_g,&__pyx_n_s_penalty,&__pyx_n_s_diffusiveFlux,0};
8366 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
8367 if (unlikely(__pyx_kwds)) {
8369 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8371 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8373 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8375 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8377 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8379 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8381 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8383 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8385 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8387 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8389 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8391 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8393 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8396 default:
goto __pyx_L5_argtuple_error;
8398 kw_args = PyDict_Size(__pyx_kwds);
8401 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
8402 else goto __pyx_L5_argtuple_error;
8405 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
8407 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 1); __PYX_ERR(0, 2870, __pyx_L3_error)
8411 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isSeepageFace)) != 0)) kw_args--;
8413 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 2); __PYX_ERR(0, 2870, __pyx_L3_error)
8417 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
8419 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 3); __PYX_ERR(0, 2870, __pyx_L3_error)
8423 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8425 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 4); __PYX_ERR(0, 2870, __pyx_L3_error)
8429 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
8431 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 5); __PYX_ERR(0, 2870, __pyx_L3_error)
8435 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K)) != 0)) kw_args--;
8437 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 6); __PYX_ERR(0, 2870, __pyx_L3_error)
8441 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
8443 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 7); __PYX_ERR(0, 2870, __pyx_L3_error)
8447 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8449 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 8); __PYX_ERR(0, 2870, __pyx_L3_error)
8453 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K_rho_g)) != 0)) kw_args--;
8455 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 9); __PYX_ERR(0, 2870, __pyx_L3_error)
8459 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
8461 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 10); __PYX_ERR(0, 2870, __pyx_L3_error)
8465 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
8467 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, 11); __PYX_ERR(0, 2870, __pyx_L3_error)
8470 if (unlikely(kw_args > 0)) {
8471 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalFluxRichards_sd") < 0)) __PYX_ERR(0, 2870, __pyx_L3_error)
8473 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
8474 goto __pyx_L5_argtuple_error;
8476 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8477 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8478 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8479 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8480 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8481 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8482 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8483 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8484 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8485 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8486 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8487 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8489 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
8490 __pyx_v_colind = ((PyArrayObject *)values[1]);
8491 __pyx_v_isSeepageFace = ((PyArrayObject *)values[2]);
8492 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
8493 __pyx_v_n = ((PyArrayObject *)values[4]);
8494 __pyx_v_bc_u = ((PyArrayObject *)values[5]);
8495 __pyx_v_K = ((PyArrayObject *)values[6]);
8496 __pyx_v_grad_psi = ((PyArrayObject *)values[7]);
8497 __pyx_v_u = ((PyArrayObject *)values[8]);
8498 __pyx_v_K_rho_g = ((PyArrayObject *)values[9]);
8499 __pyx_v_penalty = ((PyArrayObject *)values[10]);
8500 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[11]);
8502 goto __pyx_L4_argument_unpacking_done;
8503 __pyx_L5_argtuple_error:;
8504 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxRichards_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2870, __pyx_L3_error)
8506 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalFluxRichards_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
8507 __Pyx_RefNannyFinishContext();
8509 __pyx_L4_argument_unpacking_done:;
8510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2870, __pyx_L1_error)
8511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2871, __pyx_L1_error)
8512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isSeepageFace), __pyx_ptype_5numpy_ndarray, 1,
"isSeepageFace", 0))) __PYX_ERR(0, 2872, __pyx_L1_error)
8513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 2873, __pyx_L1_error)
8514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2874, __pyx_L1_error)
8515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 2875, __pyx_L1_error)
8516 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_K), __pyx_ptype_5numpy_ndarray, 1,
"K", 0))) __PYX_ERR(0, 2876, __pyx_L1_error)
8517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2877, __pyx_L1_error)
8518 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2878, __pyx_L1_error)
8519 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_K_rho_g), __pyx_ptype_5numpy_ndarray, 1,
"K_rho_g", 0))) __PYX_ERR(0, 2879, __pyx_L1_error)
8520 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2880, __pyx_L1_error)
8521 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 2881, __pyx_L1_error)
8522 __pyx_r = __pyx_pf_14cnumericalFlux_44calculateExteriorNumericalFluxRichards_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_isSeepageFace, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_u, __pyx_v_K, __pyx_v_grad_psi, __pyx_v_u, __pyx_v_K_rho_g, __pyx_v_penalty, __pyx_v_diffusiveFlux);
8529 __Pyx_RefNannyFinishContext();
8533 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) {
8534 PyObject *__pyx_r = NULL;
8535 __Pyx_RefNannyDeclarations
8536 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxRichards_sd", 0);
8545 calculateExteriorNumericalFluxRichards_sd(((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), (__pyx_v_n->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_isSeepageFace->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_u->data), ((
double *)__pyx_v_K->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_K_rho_g->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_diffusiveFlux->data));
8556 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8557 __Pyx_XGIVEREF(__pyx_r);
8558 __Pyx_RefNannyFinishContext();
8571 static PyObject *__pyx_pw_14cnumericalFlux_47calculateExteriorNumericalFluxJacobianRichards_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8572 static PyMethodDef __pyx_mdef_14cnumericalFlux_47calculateExteriorNumericalFluxJacobianRichards_sd = {
"calculateExteriorNumericalFluxJacobianRichards_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_47calculateExteriorNumericalFluxJacobianRichards_sd, METH_VARARGS|METH_KEYWORDS, 0};
8573 static PyObject *__pyx_pw_14cnumericalFlux_47calculateExteriorNumericalFluxJacobianRichards_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8574 PyArrayObject *__pyx_v_rowptr = 0;
8575 PyArrayObject *__pyx_v_colind = 0;
8576 PyArrayObject *__pyx_v_isDOFBoundary = 0;
8577 PyArrayObject *__pyx_v_n = 0;
8578 PyArrayObject *__pyx_v_bc_u = 0;
8579 PyArrayObject *__pyx_v_K = 0;
8580 PyArrayObject *__pyx_v_dK = 0;
8581 PyArrayObject *__pyx_v_grad_psi = 0;
8582 PyArrayObject *__pyx_v_grad_v = 0;
8583 PyArrayObject *__pyx_v_u = 0;
8584 PyArrayObject *__pyx_v_dK_rho_g = 0;
8585 PyArrayObject *__pyx_v_v = 0;
8586 PyArrayObject *__pyx_v_penalty = 0;
8587 PyArrayObject *__pyx_v_fluxJacobian = 0;
8588 int __pyx_lineno = 0;
8589 const char *__pyx_filename = NULL;
8590 int __pyx_clineno = 0;
8591 PyObject *__pyx_r = 0;
8592 __Pyx_RefNannyDeclarations
8593 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxJacobianRichards_sd (wrapper)", 0);
8595 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_u,&__pyx_n_s_K,&__pyx_n_s_dK,&__pyx_n_s_grad_psi,&__pyx_n_s_grad_v,&__pyx_n_s_u,&__pyx_n_s_dK_rho_g,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,0};
8596 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8597 if (unlikely(__pyx_kwds)) {
8599 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8601 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8603 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8605 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8607 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8609 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8611 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8613 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8615 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8617 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8619 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8621 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8623 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8625 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8627 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8630 default:
goto __pyx_L5_argtuple_error;
8632 kw_args = PyDict_Size(__pyx_kwds);
8635 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
8636 else goto __pyx_L5_argtuple_error;
8639 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
8641 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 1); __PYX_ERR(0, 2897, __pyx_L3_error)
8645 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
8647 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 2); __PYX_ERR(0, 2897, __pyx_L3_error)
8651 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8653 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 3); __PYX_ERR(0, 2897, __pyx_L3_error)
8657 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
8659 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 4); __PYX_ERR(0, 2897, __pyx_L3_error)
8663 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K)) != 0)) kw_args--;
8665 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 5); __PYX_ERR(0, 2897, __pyx_L3_error)
8669 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dK)) != 0)) kw_args--;
8671 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 6); __PYX_ERR(0, 2897, __pyx_L3_error)
8675 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
8677 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 7); __PYX_ERR(0, 2897, __pyx_L3_error)
8681 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
8683 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 8); __PYX_ERR(0, 2897, __pyx_L3_error)
8687 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
8689 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 9); __PYX_ERR(0, 2897, __pyx_L3_error)
8693 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dK_rho_g)) != 0)) kw_args--;
8695 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 10); __PYX_ERR(0, 2897, __pyx_L3_error)
8699 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
8701 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 11); __PYX_ERR(0, 2897, __pyx_L3_error)
8705 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
8707 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 12); __PYX_ERR(0, 2897, __pyx_L3_error)
8711 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
8713 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, 13); __PYX_ERR(0, 2897, __pyx_L3_error)
8716 if (unlikely(kw_args > 0)) {
8717 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalFluxJacobianRichards_sd") < 0)) __PYX_ERR(0, 2897, __pyx_L3_error)
8719 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
8720 goto __pyx_L5_argtuple_error;
8722 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8723 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8724 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8725 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8726 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8727 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8728 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8729 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8730 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8731 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8732 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8733 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8734 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8735 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8737 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
8738 __pyx_v_colind = ((PyArrayObject *)values[1]);
8739 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[2]);
8740 __pyx_v_n = ((PyArrayObject *)values[3]);
8741 __pyx_v_bc_u = ((PyArrayObject *)values[4]);
8742 __pyx_v_K = ((PyArrayObject *)values[5]);
8743 __pyx_v_dK = ((PyArrayObject *)values[6]);
8744 __pyx_v_grad_psi = ((PyArrayObject *)values[7]);
8745 __pyx_v_grad_v = ((PyArrayObject *)values[8]);
8746 __pyx_v_u = ((PyArrayObject *)values[9]);
8747 __pyx_v_dK_rho_g = ((PyArrayObject *)values[10]);
8748 __pyx_v_v = ((PyArrayObject *)values[11]);
8749 __pyx_v_penalty = ((PyArrayObject *)values[12]);
8750 __pyx_v_fluxJacobian = ((PyArrayObject *)values[13]);
8752 goto __pyx_L4_argument_unpacking_done;
8753 __pyx_L5_argtuple_error:;
8754 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxJacobianRichards_sd", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2897, __pyx_L3_error)
8756 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalFluxJacobianRichards_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
8757 __Pyx_RefNannyFinishContext();
8759 __pyx_L4_argument_unpacking_done:;
8760 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2897, __pyx_L1_error)
8761 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2898, __pyx_L1_error)
8762 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 2899, __pyx_L1_error)
8763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2900, __pyx_L1_error)
8764 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 2901, __pyx_L1_error)
8765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_K), __pyx_ptype_5numpy_ndarray, 1,
"K", 0))) __PYX_ERR(0, 2902, __pyx_L1_error)
8766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dK), __pyx_ptype_5numpy_ndarray, 1,
"dK", 0))) __PYX_ERR(0, 2903, __pyx_L1_error)
8767 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2904, __pyx_L1_error)
8768 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 2905, __pyx_L1_error)
8769 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2906, __pyx_L1_error)
8770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dK_rho_g), __pyx_ptype_5numpy_ndarray, 1,
"dK_rho_g", 0))) __PYX_ERR(0, 2907, __pyx_L1_error)
8771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2908, __pyx_L1_error)
8772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2909, __pyx_L1_error)
8773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 2910, __pyx_L1_error)
8774 __pyx_r = __pyx_pf_14cnumericalFlux_46calculateExteriorNumericalFluxJacobianRichards_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_u, __pyx_v_K, __pyx_v_dK, __pyx_v_grad_psi, __pyx_v_grad_v, __pyx_v_u, __pyx_v_dK_rho_g, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian);
8781 __Pyx_RefNannyFinishContext();
8785 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) {
8786 PyObject *__pyx_r = NULL;
8787 __Pyx_RefNannyDeclarations
8788 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxJacobianRichards_sd", 0);
8797 calculateExteriorNumericalFluxJacobianRichards_sd(((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), (__pyx_v_grad_v->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_u->data), ((
double *)__pyx_v_K->data), ((
double *)__pyx_v_dK->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_dK_rho_g->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data));
8808 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8809 __Pyx_XGIVEREF(__pyx_r);
8810 __Pyx_RefNannyFinishContext();
8823 static PyObject *__pyx_pw_14cnumericalFlux_49calculateExteriorNumericalAdvectiveFluxStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8824 static PyMethodDef __pyx_mdef_14cnumericalFlux_49calculateExteriorNumericalAdvectiveFluxStokes2D = {
"calculateExteriorNumericalAdvectiveFluxStokes2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_49calculateExteriorNumericalAdvectiveFluxStokes2D, METH_VARARGS|METH_KEYWORDS, 0};
8825 static PyObject *__pyx_pw_14cnumericalFlux_49calculateExteriorNumericalAdvectiveFluxStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8826 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
8827 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
8828 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
8829 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
8830 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
8831 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
8832 PyArrayObject *__pyx_v_n = 0;
8833 PyArrayObject *__pyx_v_bc_p = 0;
8834 PyArrayObject *__pyx_v_bc_f_mass = 0;
8835 PyArrayObject *__pyx_v_p = 0;
8836 PyArrayObject *__pyx_v_f_mass = 0;
8837 PyArrayObject *__pyx_v_df_mass_du = 0;
8838 PyArrayObject *__pyx_v_df_mass_dv = 0;
8839 PyArrayObject *__pyx_v_flux_mass = 0;
8840 PyArrayObject *__pyx_v_flux_umom = 0;
8841 PyArrayObject *__pyx_v_flux_vmom = 0;
8842 PyArrayObject *__pyx_v_dflux_mass_du = 0;
8843 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
8844 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
8845 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
8846 PyArrayObject *__pyx_v_velocity = 0;
8847 int __pyx_lineno = 0;
8848 const char *__pyx_filename = NULL;
8849 int __pyx_clineno = 0;
8850 PyObject *__pyx_r = 0;
8851 __Pyx_RefNannyDeclarations
8852 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokes2D (wrapper)", 0);
8854 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_velocity,0};
8855 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
8856 if (unlikely(__pyx_kwds)) {
8858 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8860 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
8862 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
8864 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
8866 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
8868 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
8870 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
8872 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
8874 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
8876 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
8878 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
8880 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
8882 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8884 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8886 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8888 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8890 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8892 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8894 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8896 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8898 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8900 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8903 default:
goto __pyx_L5_argtuple_error;
8905 kw_args = PyDict_Size(__pyx_kwds);
8908 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
8909 else goto __pyx_L5_argtuple_error;
8912 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
8914 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 1); __PYX_ERR(0, 2929, __pyx_L3_error)
8918 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
8920 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 2); __PYX_ERR(0, 2929, __pyx_L3_error)
8924 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
8926 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 3); __PYX_ERR(0, 2929, __pyx_L3_error)
8930 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
8932 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 4); __PYX_ERR(0, 2929, __pyx_L3_error)
8936 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
8938 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 5); __PYX_ERR(0, 2929, __pyx_L3_error)
8942 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8944 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 6); __PYX_ERR(0, 2929, __pyx_L3_error)
8948 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
8950 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 7); __PYX_ERR(0, 2929, __pyx_L3_error)
8954 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
8956 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 8); __PYX_ERR(0, 2929, __pyx_L3_error)
8960 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
8962 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 9); __PYX_ERR(0, 2929, __pyx_L3_error)
8966 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
8968 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 10); __PYX_ERR(0, 2929, __pyx_L3_error)
8972 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
8974 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 11); __PYX_ERR(0, 2929, __pyx_L3_error)
8978 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
8980 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 12); __PYX_ERR(0, 2929, __pyx_L3_error)
8984 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
8986 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 13); __PYX_ERR(0, 2929, __pyx_L3_error)
8990 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
8992 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 14); __PYX_ERR(0, 2929, __pyx_L3_error)
8996 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
8998 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 15); __PYX_ERR(0, 2929, __pyx_L3_error)
9002 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
9004 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 16); __PYX_ERR(0, 2929, __pyx_L3_error)
9008 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
9010 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 17); __PYX_ERR(0, 2929, __pyx_L3_error)
9014 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
9016 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 18); __PYX_ERR(0, 2929, __pyx_L3_error)
9020 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
9022 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 19); __PYX_ERR(0, 2929, __pyx_L3_error)
9026 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
9028 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 20); __PYX_ERR(0, 2929, __pyx_L3_error)
9031 if (unlikely(kw_args > 0)) {
9032 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxStokes2D") < 0)) __PYX_ERR(0, 2929, __pyx_L3_error)
9034 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
9035 goto __pyx_L5_argtuple_error;
9037 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9038 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9039 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9040 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9041 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9042 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9043 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9044 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9045 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9046 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9047 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9048 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9049 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9050 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9051 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9052 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9053 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9054 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
9055 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
9056 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
9057 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
9059 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
9060 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
9061 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
9062 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
9063 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
9064 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
9065 __pyx_v_n = ((PyArrayObject *)values[6]);
9066 __pyx_v_bc_p = ((PyArrayObject *)values[7]);
9067 __pyx_v_bc_f_mass = ((PyArrayObject *)values[8]);
9068 __pyx_v_p = ((PyArrayObject *)values[9]);
9069 __pyx_v_f_mass = ((PyArrayObject *)values[10]);
9070 __pyx_v_df_mass_du = ((PyArrayObject *)values[11]);
9071 __pyx_v_df_mass_dv = ((PyArrayObject *)values[12]);
9072 __pyx_v_flux_mass = ((PyArrayObject *)values[13]);
9073 __pyx_v_flux_umom = ((PyArrayObject *)values[14]);
9074 __pyx_v_flux_vmom = ((PyArrayObject *)values[15]);
9075 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[16]);
9076 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[17]);
9077 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[18]);
9078 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[19]);
9079 __pyx_v_velocity = ((PyArrayObject *)values[20]);
9081 goto __pyx_L4_argument_unpacking_done;
9082 __pyx_L5_argtuple_error:;
9083 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2929, __pyx_L3_error)
9085 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxStokes2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
9086 __Pyx_RefNannyFinishContext();
9088 __pyx_L4_argument_unpacking_done:;
9089 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2929, __pyx_L1_error)
9090 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2930, __pyx_L1_error)
9091 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2931, __pyx_L1_error)
9092 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 2932, __pyx_L1_error)
9093 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 2933, __pyx_L1_error)
9094 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 2934, __pyx_L1_error)
9095 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2935, __pyx_L1_error)
9096 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 2936, __pyx_L1_error)
9097 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 2937, __pyx_L1_error)
9098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 2938, __pyx_L1_error)
9099 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 2939, __pyx_L1_error)
9100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 2940, __pyx_L1_error)
9101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 2941, __pyx_L1_error)
9102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 2942, __pyx_L1_error)
9103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 2943, __pyx_L1_error)
9104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 2944, __pyx_L1_error)
9105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 2945, __pyx_L1_error)
9106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 2946, __pyx_L1_error)
9107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 2947, __pyx_L1_error)
9108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 2948, __pyx_L1_error)
9109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 2949, __pyx_L1_error)
9110 __pyx_r = __pyx_pf_14cnumericalFlux_48calculateExteriorNumericalAdvectiveFluxStokes2D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_p, __pyx_v_f_mass, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_umom_dp, __pyx_v_dflux_vmom_dp, __pyx_v_velocity);
9117 __Pyx_RefNannyFinishContext();
9121 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) {
9122 PyObject *__pyx_r = NULL;
9123 __Pyx_RefNannyDeclarations
9124 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokes2D", 0);
9133 calculateGlobalExteriorNumericalAdvectiveFluxStokes2D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_velocity->data));
9144 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9145 __Pyx_XGIVEREF(__pyx_r);
9146 __Pyx_RefNannyFinishContext();
9159 static PyObject *__pyx_pw_14cnumericalFlux_51calculateInteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9160 static PyMethodDef __pyx_mdef_14cnumericalFlux_51calculateInteriorNumericalDiffusiveFlux_sd = {
"calculateInteriorNumericalDiffusiveFlux_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_51calculateInteriorNumericalDiffusiveFlux_sd, METH_VARARGS|METH_KEYWORDS, 0};
9161 static PyObject *__pyx_pw_14cnumericalFlux_51calculateInteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9162 PyArrayObject *__pyx_v_rowptr = 0;
9163 PyArrayObject *__pyx_v_colind = 0;
9164 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
9165 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9166 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9167 PyArrayObject *__pyx_v_n = 0;
9168 PyArrayObject *__pyx_v_a = 0;
9169 PyArrayObject *__pyx_v_grad_phi = 0;
9170 PyArrayObject *__pyx_v_u = 0;
9171 PyArrayObject *__pyx_v_penalty = 0;
9172 PyArrayObject *__pyx_v_flux = 0;
9173 int __pyx_v_scale_penalty;
9174 double __pyx_v_penalty_floor;
9175 int __pyx_lineno = 0;
9176 const char *__pyx_filename = NULL;
9177 int __pyx_clineno = 0;
9178 PyObject *__pyx_r = 0;
9179 __Pyx_RefNannyDeclarations
9180 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_sd (wrapper)", 0);
9182 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__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};
9183 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
9184 if (unlikely(__pyx_kwds)) {
9186 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9188 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9190 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9192 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9194 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9196 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9198 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9200 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9202 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9204 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9206 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9208 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9210 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9212 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9215 default:
goto __pyx_L5_argtuple_error;
9217 kw_args = PyDict_Size(__pyx_kwds);
9220 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
9221 else goto __pyx_L5_argtuple_error;
9224 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
9226 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 1); __PYX_ERR(0, 2976, __pyx_L3_error)
9230 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
9232 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 2); __PYX_ERR(0, 2976, __pyx_L3_error)
9236 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
9238 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 3); __PYX_ERR(0, 2976, __pyx_L3_error)
9242 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
9244 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 4); __PYX_ERR(0, 2976, __pyx_L3_error)
9248 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
9250 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 5); __PYX_ERR(0, 2976, __pyx_L3_error)
9254 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
9256 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 6); __PYX_ERR(0, 2976, __pyx_L3_error)
9260 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
9262 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 7); __PYX_ERR(0, 2976, __pyx_L3_error)
9266 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
9268 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 8); __PYX_ERR(0, 2976, __pyx_L3_error)
9272 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
9274 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 9); __PYX_ERR(0, 2976, __pyx_L3_error)
9278 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
9280 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, 10); __PYX_ERR(0, 2976, __pyx_L3_error)
9285 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty);
9286 if (value) { values[11] = value; kw_args--; }
9291 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor);
9292 if (value) { values[12] = value; kw_args--; }
9295 if (unlikely(kw_args > 0)) {
9296 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalDiffusiveFlux_sd") < 0)) __PYX_ERR(0, 2976, __pyx_L3_error)
9299 switch (PyTuple_GET_SIZE(__pyx_args)) {
9300 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9302 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9304 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9305 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9306 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9307 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9308 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9309 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9310 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9311 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9312 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9313 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9314 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9316 default:
goto __pyx_L5_argtuple_error;
9319 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
9320 __pyx_v_colind = ((PyArrayObject *)values[1]);
9321 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
9322 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
9323 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
9324 __pyx_v_n = ((PyArrayObject *)values[5]);
9325 __pyx_v_a = ((PyArrayObject *)values[6]);
9326 __pyx_v_grad_phi = ((PyArrayObject *)values[7]);
9327 __pyx_v_u = ((PyArrayObject *)values[8]);
9328 __pyx_v_penalty = ((PyArrayObject *)values[9]);
9329 __pyx_v_flux = ((PyArrayObject *)values[10]);
9331 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[11]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2987, __pyx_L3_error)
9333 __pyx_v_scale_penalty = ((int)0);
9336 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[12]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2988, __pyx_L3_error)
9338 __pyx_v_penalty_floor = ((double)0.0);
9341 goto __pyx_L4_argument_unpacking_done;
9342 __pyx_L5_argtuple_error:;
9343 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_sd", 0, 11, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2976, __pyx_L3_error)
9345 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalDiffusiveFlux_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
9346 __Pyx_RefNannyFinishContext();
9348 __pyx_L4_argument_unpacking_done:;
9349 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2976, __pyx_L1_error)
9350 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2977, __pyx_L1_error)
9351 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2978, __pyx_L1_error)
9352 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2979, __pyx_L1_error)
9353 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2980, __pyx_L1_error)
9354 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2981, __pyx_L1_error)
9355 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2982, __pyx_L1_error)
9356 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 2983, __pyx_L1_error)
9357 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 2984, __pyx_L1_error)
9358 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 2985, __pyx_L1_error)
9359 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2986, __pyx_L1_error)
9360 __pyx_r = __pyx_pf_14cnumericalFlux_50calculateInteriorNumericalDiffusiveFlux_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __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);
9367 __Pyx_RefNannyFinishContext();
9371 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) {
9372 PyObject *__pyx_r = NULL;
9373 __Pyx_RefNannyDeclarations
9374 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_sd", 0);
9383 calculateInteriorNumericalDiffusiveFlux_sd(__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_rowptr->data), ((
int *)__pyx_v_colind->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_grad_phi->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
9394 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9395 __Pyx_XGIVEREF(__pyx_r);
9396 __Pyx_RefNannyFinishContext();
9409 static PyObject *__pyx_pw_14cnumericalFlux_53updateInteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9410 static PyMethodDef __pyx_mdef_14cnumericalFlux_53updateInteriorNumericalDiffusiveFluxJacobian_sd = {
"updateInteriorNumericalDiffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_53updateInteriorNumericalDiffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
9411 static PyObject *__pyx_pw_14cnumericalFlux_53updateInteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9412 PyArrayObject *__pyx_v_rowptr = 0;
9413 PyArrayObject *__pyx_v_colind = 0;
9414 PyArrayObject *__pyx_v_l2g = 0;
9415 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
9416 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9417 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9418 PyArrayObject *__pyx_v_n = 0;
9419 PyArrayObject *__pyx_v_a = 0;
9420 PyArrayObject *__pyx_v_da = 0;
9421 PyArrayObject *__pyx_v_grad_phi = 0;
9422 PyArrayObject *__pyx_v_dphi = 0;
9423 PyArrayObject *__pyx_v_v = 0;
9424 PyArrayObject *__pyx_v_grad_v = 0;
9425 PyArrayObject *__pyx_v_penalty = 0;
9426 PyArrayObject *__pyx_v_fluxJacobian = 0;
9427 int __pyx_v_scale_penalty;
9428 double __pyx_v_penalty_floor;
9429 int __pyx_lineno = 0;
9430 const char *__pyx_filename = NULL;
9431 int __pyx_clineno = 0;
9432 PyObject *__pyx_r = 0;
9433 __Pyx_RefNannyDeclarations
9434 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_sd (wrapper)", 0);
9436 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__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};
9437 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9438 if (unlikely(__pyx_kwds)) {
9440 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9442 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9444 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9446 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9448 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9450 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9452 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9454 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9456 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9458 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9460 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9462 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9464 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9466 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9468 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9470 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9472 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9474 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9477 default:
goto __pyx_L5_argtuple_error;
9479 kw_args = PyDict_Size(__pyx_kwds);
9482 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
9483 else goto __pyx_L5_argtuple_error;
9486 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
9488 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 1); __PYX_ERR(0, 3007, __pyx_L3_error)
9492 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
9494 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 2); __PYX_ERR(0, 3007, __pyx_L3_error)
9498 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
9500 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 3); __PYX_ERR(0, 3007, __pyx_L3_error)
9504 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
9506 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 4); __PYX_ERR(0, 3007, __pyx_L3_error)
9510 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
9512 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 5); __PYX_ERR(0, 3007, __pyx_L3_error)
9516 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
9518 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 6); __PYX_ERR(0, 3007, __pyx_L3_error)
9522 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
9524 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 7); __PYX_ERR(0, 3007, __pyx_L3_error)
9528 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
9530 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 8); __PYX_ERR(0, 3007, __pyx_L3_error)
9534 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
9536 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 9); __PYX_ERR(0, 3007, __pyx_L3_error)
9540 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
9542 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 10); __PYX_ERR(0, 3007, __pyx_L3_error)
9546 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9548 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 11); __PYX_ERR(0, 3007, __pyx_L3_error)
9552 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
9554 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 12); __PYX_ERR(0, 3007, __pyx_L3_error)
9558 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
9560 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 13); __PYX_ERR(0, 3007, __pyx_L3_error)
9564 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
9566 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, 14); __PYX_ERR(0, 3007, __pyx_L3_error)
9571 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty);
9572 if (value) { values[15] = value; kw_args--; }
9577 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor);
9578 if (value) { values[16] = value; kw_args--; }
9581 if (unlikely(kw_args > 0)) {
9582 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorNumericalDiffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 3007, __pyx_L3_error)
9585 switch (PyTuple_GET_SIZE(__pyx_args)) {
9586 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9588 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9590 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9591 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9592 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9593 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9594 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9595 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9596 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9597 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9598 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9599 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9600 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9601 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9602 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9603 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9604 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9606 default:
goto __pyx_L5_argtuple_error;
9609 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
9610 __pyx_v_colind = ((PyArrayObject *)values[1]);
9611 __pyx_v_l2g = ((PyArrayObject *)values[2]);
9612 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[3]);
9613 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
9614 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
9615 __pyx_v_n = ((PyArrayObject *)values[6]);
9616 __pyx_v_a = ((PyArrayObject *)values[7]);
9617 __pyx_v_da = ((PyArrayObject *)values[8]);
9618 __pyx_v_grad_phi = ((PyArrayObject *)values[9]);
9619 __pyx_v_dphi = ((PyArrayObject *)values[10]);
9620 __pyx_v_v = ((PyArrayObject *)values[11]);
9621 __pyx_v_grad_v = ((PyArrayObject *)values[12]);
9622 __pyx_v_penalty = ((PyArrayObject *)values[13]);
9623 __pyx_v_fluxJacobian = ((PyArrayObject *)values[14]);
9625 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[15]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3022, __pyx_L3_error)
9627 __pyx_v_scale_penalty = ((int)0);
9630 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3023, __pyx_L3_error)
9632 __pyx_v_penalty_floor = ((double)0.0);
9635 goto __pyx_L4_argument_unpacking_done;
9636 __pyx_L5_argtuple_error:;
9637 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0, 15, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3007, __pyx_L3_error)
9639 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalDiffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
9640 __Pyx_RefNannyFinishContext();
9642 __pyx_L4_argument_unpacking_done:;
9643 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3007, __pyx_L1_error)
9644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3008, __pyx_L1_error)
9645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3009, __pyx_L1_error)
9646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3010, __pyx_L1_error)
9647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3011, __pyx_L1_error)
9648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3012, __pyx_L1_error)
9649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3013, __pyx_L1_error)
9650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3014, __pyx_L1_error)
9651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3015, __pyx_L1_error)
9652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3016, __pyx_L1_error)
9653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3017, __pyx_L1_error)
9654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3018, __pyx_L1_error)
9655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3019, __pyx_L1_error)
9656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 3020, __pyx_L1_error)
9657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 3021, __pyx_L1_error)
9658 __pyx_r = __pyx_pf_14cnumericalFlux_52updateInteriorNumericalDiffusiveFluxJacobian_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __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);
9665 __Pyx_RefNannyFinishContext();
9669 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) {
9670 PyObject *__pyx_r = NULL;
9671 __Pyx_RefNannyDeclarations
9672 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_sd", 0);
9681 updateInteriorNumericalDiffusiveFluxJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), (__pyx_v_grad_v->dimensions[4]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
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));
9692 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9693 __Pyx_XGIVEREF(__pyx_r);
9694 __Pyx_RefNannyFinishContext();
9707 static PyObject *__pyx_pw_14cnumericalFlux_55updateExteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9708 static PyMethodDef __pyx_mdef_14cnumericalFlux_55updateExteriorNumericalDiffusiveFluxJacobian_sd = {
"updateExteriorNumericalDiffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_55updateExteriorNumericalDiffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
9709 static PyObject *__pyx_pw_14cnumericalFlux_55updateExteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9710 PyArrayObject *__pyx_v_rowptr = 0;
9711 PyArrayObject *__pyx_v_colind = 0;
9712 PyArrayObject *__pyx_v_l2g = 0;
9713 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
9714 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9715 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9716 PyArrayObject *__pyx_v_isDOFBoundary = 0;
9717 PyArrayObject *__pyx_v_n = 0;
9718 PyArrayObject *__pyx_v_a = 0;
9719 PyArrayObject *__pyx_v_da = 0;
9720 PyArrayObject *__pyx_v_grad_phi = 0;
9721 PyArrayObject *__pyx_v_dphi = 0;
9722 PyArrayObject *__pyx_v_v = 0;
9723 PyArrayObject *__pyx_v_grad_v = 0;
9724 PyArrayObject *__pyx_v_penalty = 0;
9725 PyArrayObject *__pyx_v_fluxJacobian = 0;
9726 int __pyx_v_scale_penalty;
9727 double __pyx_v_penalty_floor;
9728 int __pyx_lineno = 0;
9729 const char *__pyx_filename = NULL;
9730 int __pyx_clineno = 0;
9731 PyObject *__pyx_r = 0;
9732 __Pyx_RefNannyDeclarations
9733 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_sd (wrapper)", 0);
9735 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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};
9736 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9737 if (unlikely(__pyx_kwds)) {
9739 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9741 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
9743 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9745 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9747 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9749 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9751 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9753 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9755 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9757 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9759 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9761 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9763 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9765 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9767 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9769 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9771 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9773 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9775 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9778 default:
goto __pyx_L5_argtuple_error;
9780 kw_args = PyDict_Size(__pyx_kwds);
9783 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
9784 else goto __pyx_L5_argtuple_error;
9787 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
9789 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 1); __PYX_ERR(0, 3046, __pyx_L3_error)
9793 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
9795 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 2); __PYX_ERR(0, 3046, __pyx_L3_error)
9799 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
9801 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 3); __PYX_ERR(0, 3046, __pyx_L3_error)
9805 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
9807 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 4); __PYX_ERR(0, 3046, __pyx_L3_error)
9811 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
9813 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 5); __PYX_ERR(0, 3046, __pyx_L3_error)
9817 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
9819 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 6); __PYX_ERR(0, 3046, __pyx_L3_error)
9823 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
9825 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 7); __PYX_ERR(0, 3046, __pyx_L3_error)
9829 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
9831 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 8); __PYX_ERR(0, 3046, __pyx_L3_error)
9835 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
9837 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 9); __PYX_ERR(0, 3046, __pyx_L3_error)
9841 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
9843 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 10); __PYX_ERR(0, 3046, __pyx_L3_error)
9847 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
9849 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 11); __PYX_ERR(0, 3046, __pyx_L3_error)
9853 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
9855 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 12); __PYX_ERR(0, 3046, __pyx_L3_error)
9859 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
9861 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 13); __PYX_ERR(0, 3046, __pyx_L3_error)
9865 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
9867 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 14); __PYX_ERR(0, 3046, __pyx_L3_error)
9871 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
9873 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, 15); __PYX_ERR(0, 3046, __pyx_L3_error)
9878 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty);
9879 if (value) { values[16] = value; kw_args--; }
9884 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor);
9885 if (value) { values[17] = value; kw_args--; }
9888 if (unlikely(kw_args > 0)) {
9889 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 3046, __pyx_L3_error)
9892 switch (PyTuple_GET_SIZE(__pyx_args)) {
9893 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
9895 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9897 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9898 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9899 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9900 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9901 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9902 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9903 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9904 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9905 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9906 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9907 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9908 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9909 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9910 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9911 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9912 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9914 default:
goto __pyx_L5_argtuple_error;
9917 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
9918 __pyx_v_colind = ((PyArrayObject *)values[1]);
9919 __pyx_v_l2g = ((PyArrayObject *)values[2]);
9920 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
9921 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
9922 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
9923 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
9924 __pyx_v_n = ((PyArrayObject *)values[7]);
9925 __pyx_v_a = ((PyArrayObject *)values[8]);
9926 __pyx_v_da = ((PyArrayObject *)values[9]);
9927 __pyx_v_grad_phi = ((PyArrayObject *)values[10]);
9928 __pyx_v_dphi = ((PyArrayObject *)values[11]);
9929 __pyx_v_v = ((PyArrayObject *)values[12]);
9930 __pyx_v_grad_v = ((PyArrayObject *)values[13]);
9931 __pyx_v_penalty = ((PyArrayObject *)values[14]);
9932 __pyx_v_fluxJacobian = ((PyArrayObject *)values[15]);
9934 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[16]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3062, __pyx_L3_error)
9936 __pyx_v_scale_penalty = ((int)0);
9939 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[17]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3063, __pyx_L3_error)
9941 __pyx_v_penalty_floor = ((double)0.0);
9944 goto __pyx_L4_argument_unpacking_done;
9945 __pyx_L5_argtuple_error:;
9946 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0, 16, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3046, __pyx_L3_error)
9948 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
9949 __Pyx_RefNannyFinishContext();
9951 __pyx_L4_argument_unpacking_done:;
9952 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3046, __pyx_L1_error)
9953 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3047, __pyx_L1_error)
9954 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3048, __pyx_L1_error)
9955 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3049, __pyx_L1_error)
9956 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3050, __pyx_L1_error)
9957 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3051, __pyx_L1_error)
9958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 3052, __pyx_L1_error)
9959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3053, __pyx_L1_error)
9960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3054, __pyx_L1_error)
9961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3055, __pyx_L1_error)
9962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3056, __pyx_L1_error)
9963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3057, __pyx_L1_error)
9964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3058, __pyx_L1_error)
9965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3059, __pyx_L1_error)
9966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 3060, __pyx_L1_error)
9967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 3061, __pyx_L1_error)
9968 __pyx_r = __pyx_pf_14cnumericalFlux_54updateExteriorNumericalDiffusiveFluxJacobian_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
9975 __Pyx_RefNannyFinishContext();
9979 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) {
9980 PyObject *__pyx_r = NULL;
9981 __Pyx_RefNannyDeclarations
9982 PyObject *__pyx_t_1 = NULL;
9983 PyObject *__pyx_t_2 = NULL;
9984 PyObject *__pyx_t_3 = NULL;
9985 int __pyx_lineno = 0;
9986 const char *__pyx_filename = NULL;
9987 int __pyx_clineno = 0;
9988 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_sd", 0);
9997 switch (__pyx_v_grad_v->nd) {
10007 updateExteriorNumericalDiffusiveFluxJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), (__pyx_v_grad_v->dimensions[4]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
10026 updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
10045 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3112, __pyx_L1_error)
10046 __Pyx_GOTREF(__pyx_t_2);
10048 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
10049 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10050 if (likely(__pyx_t_3)) {
10051 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10052 __Pyx_INCREF(__pyx_t_3);
10053 __Pyx_INCREF(
function);
10054 __Pyx_DECREF_SET(__pyx_t_2,
function);
10057 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
10058 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10059 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3112, __pyx_L1_error)
10060 __Pyx_GOTREF(__pyx_t_1);
10061 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10062 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10075 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10078 __Pyx_XDECREF(__pyx_t_1);
10079 __Pyx_XDECREF(__pyx_t_2);
10080 __Pyx_XDECREF(__pyx_t_3);
10081 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
10084 __Pyx_XGIVEREF(__pyx_r);
10085 __Pyx_RefNannyFinishContext();
10098 static PyObject *__pyx_pw_14cnumericalFlux_57updateExteriorNumericalDiffusiveFluxJacobian_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10099 static PyMethodDef __pyx_mdef_14cnumericalFlux_57updateExteriorNumericalDiffusiveFluxJacobian_free_sd = {
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_57updateExteriorNumericalDiffusiveFluxJacobian_free_sd, METH_VARARGS|METH_KEYWORDS, 0};
10100 static PyObject *__pyx_pw_14cnumericalFlux_57updateExteriorNumericalDiffusiveFluxJacobian_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10101 PyArrayObject *__pyx_v_rowptr = 0;
10102 PyArrayObject *__pyx_v_colind = 0;
10103 PyArrayObject *__pyx_v_l2g = 0;
10104 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
10105 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10106 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10107 PyArrayObject *__pyx_v_isDOFBoundary = 0;
10108 PyArrayObject *__pyx_v_n = 0;
10109 PyArrayObject *__pyx_v_a = 0;
10110 PyArrayObject *__pyx_v_da = 0;
10111 PyArrayObject *__pyx_v_grad_phi = 0;
10112 PyArrayObject *__pyx_v_dphi = 0;
10113 PyArrayObject *__pyx_v_v = 0;
10114 PyArrayObject *__pyx_v_grad_v = 0;
10115 PyArrayObject *__pyx_v_penalty = 0;
10116 PyArrayObject *__pyx_v_fluxJacobian = 0;
10117 int __pyx_lineno = 0;
10118 const char *__pyx_filename = NULL;
10119 int __pyx_clineno = 0;
10120 PyObject *__pyx_r = 0;
10121 __Pyx_RefNannyDeclarations
10122 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd (wrapper)", 0);
10124 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
10125 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
10126 if (unlikely(__pyx_kwds)) {
10127 Py_ssize_t kw_args;
10128 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10129 switch (pos_args) {
10130 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10131 CYTHON_FALLTHROUGH;
10132 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10133 CYTHON_FALLTHROUGH;
10134 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10135 CYTHON_FALLTHROUGH;
10136 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10137 CYTHON_FALLTHROUGH;
10138 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10139 CYTHON_FALLTHROUGH;
10140 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10141 CYTHON_FALLTHROUGH;
10142 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10143 CYTHON_FALLTHROUGH;
10144 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10145 CYTHON_FALLTHROUGH;
10146 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10147 CYTHON_FALLTHROUGH;
10148 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10149 CYTHON_FALLTHROUGH;
10150 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10151 CYTHON_FALLTHROUGH;
10152 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10153 CYTHON_FALLTHROUGH;
10154 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10155 CYTHON_FALLTHROUGH;
10156 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10157 CYTHON_FALLTHROUGH;
10158 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10159 CYTHON_FALLTHROUGH;
10160 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10161 CYTHON_FALLTHROUGH;
10163 default:
goto __pyx_L5_argtuple_error;
10165 kw_args = PyDict_Size(__pyx_kwds);
10166 switch (pos_args) {
10168 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
10169 else goto __pyx_L5_argtuple_error;
10170 CYTHON_FALLTHROUGH;
10172 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
10174 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 1); __PYX_ERR(0, 3113, __pyx_L3_error)
10176 CYTHON_FALLTHROUGH;
10178 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
10180 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 2); __PYX_ERR(0, 3113, __pyx_L3_error)
10182 CYTHON_FALLTHROUGH;
10184 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
10186 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 3); __PYX_ERR(0, 3113, __pyx_L3_error)
10188 CYTHON_FALLTHROUGH;
10190 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10192 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 4); __PYX_ERR(0, 3113, __pyx_L3_error)
10194 CYTHON_FALLTHROUGH;
10196 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10198 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 5); __PYX_ERR(0, 3113, __pyx_L3_error)
10200 CYTHON_FALLTHROUGH;
10202 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
10204 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 6); __PYX_ERR(0, 3113, __pyx_L3_error)
10206 CYTHON_FALLTHROUGH;
10208 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10210 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 7); __PYX_ERR(0, 3113, __pyx_L3_error)
10212 CYTHON_FALLTHROUGH;
10214 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
10216 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 8); __PYX_ERR(0, 3113, __pyx_L3_error)
10218 CYTHON_FALLTHROUGH;
10220 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
10222 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 9); __PYX_ERR(0, 3113, __pyx_L3_error)
10224 CYTHON_FALLTHROUGH;
10226 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
10228 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 10); __PYX_ERR(0, 3113, __pyx_L3_error)
10230 CYTHON_FALLTHROUGH;
10232 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
10234 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 11); __PYX_ERR(0, 3113, __pyx_L3_error)
10236 CYTHON_FALLTHROUGH;
10238 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
10240 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 12); __PYX_ERR(0, 3113, __pyx_L3_error)
10242 CYTHON_FALLTHROUGH;
10244 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
10246 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 13); __PYX_ERR(0, 3113, __pyx_L3_error)
10248 CYTHON_FALLTHROUGH;
10250 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
10252 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 14); __PYX_ERR(0, 3113, __pyx_L3_error)
10254 CYTHON_FALLTHROUGH;
10256 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
10258 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, 15); __PYX_ERR(0, 3113, __pyx_L3_error)
10261 if (unlikely(kw_args > 0)) {
10262 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd") < 0)) __PYX_ERR(0, 3113, __pyx_L3_error)
10264 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
10265 goto __pyx_L5_argtuple_error;
10267 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10268 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10269 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10270 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10271 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10272 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10273 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10274 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10275 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10276 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10277 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10278 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10279 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10280 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10281 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10282 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10284 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
10285 __pyx_v_colind = ((PyArrayObject *)values[1]);
10286 __pyx_v_l2g = ((PyArrayObject *)values[2]);
10287 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
10288 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
10289 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
10290 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
10291 __pyx_v_n = ((PyArrayObject *)values[7]);
10292 __pyx_v_a = ((PyArrayObject *)values[8]);
10293 __pyx_v_da = ((PyArrayObject *)values[9]);
10294 __pyx_v_grad_phi = ((PyArrayObject *)values[10]);
10295 __pyx_v_dphi = ((PyArrayObject *)values[11]);
10296 __pyx_v_v = ((PyArrayObject *)values[12]);
10297 __pyx_v_grad_v = ((PyArrayObject *)values[13]);
10298 __pyx_v_penalty = ((PyArrayObject *)values[14]);
10299 __pyx_v_fluxJacobian = ((PyArrayObject *)values[15]);
10301 goto __pyx_L4_argument_unpacking_done;
10302 __pyx_L5_argtuple_error:;
10303 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3113, __pyx_L3_error)
10305 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
10306 __Pyx_RefNannyFinishContext();
10308 __pyx_L4_argument_unpacking_done:;
10309 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3113, __pyx_L1_error)
10310 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3114, __pyx_L1_error)
10311 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3115, __pyx_L1_error)
10312 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3116, __pyx_L1_error)
10313 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3117, __pyx_L1_error)
10314 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3118, __pyx_L1_error)
10315 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 3119, __pyx_L1_error)
10316 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3120, __pyx_L1_error)
10317 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3121, __pyx_L1_error)
10318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3122, __pyx_L1_error)
10319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3123, __pyx_L1_error)
10320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3124, __pyx_L1_error)
10321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3125, __pyx_L1_error)
10322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3126, __pyx_L1_error)
10323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 3127, __pyx_L1_error)
10324 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 3128, __pyx_L1_error)
10325 __pyx_r = __pyx_pf_14cnumericalFlux_56updateExteriorNumericalDiffusiveFluxJacobian_free_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
10332 __Pyx_RefNannyFinishContext();
10336 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) {
10337 PyObject *__pyx_r = NULL;
10338 __Pyx_RefNannyDeclarations
10339 PyObject *__pyx_t_1 = NULL;
10340 PyObject *__pyx_t_2 = NULL;
10341 PyObject *__pyx_t_3 = NULL;
10342 int __pyx_lineno = 0;
10343 const char *__pyx_filename = NULL;
10344 int __pyx_clineno = 0;
10345 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_free_sd", 0);
10354 switch (__pyx_v_grad_v->nd) {
10364 updateExteriorNumericalDiffusiveFluxJacobian_free_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), (__pyx_v_grad_v->dimensions[4]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
10383 updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
10402 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3173, __pyx_L1_error)
10403 __Pyx_GOTREF(__pyx_t_2);
10405 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
10406 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10407 if (likely(__pyx_t_3)) {
10408 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10409 __Pyx_INCREF(__pyx_t_3);
10410 __Pyx_INCREF(
function);
10411 __Pyx_DECREF_SET(__pyx_t_2,
function);
10414 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
10415 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10416 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3173, __pyx_L1_error)
10417 __Pyx_GOTREF(__pyx_t_1);
10418 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10419 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10432 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10435 __Pyx_XDECREF(__pyx_t_1);
10436 __Pyx_XDECREF(__pyx_t_2);
10437 __Pyx_XDECREF(__pyx_t_3);
10438 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
10441 __Pyx_XGIVEREF(__pyx_r);
10442 __Pyx_RefNannyFinishContext();
10455 static PyObject *__pyx_pw_14cnumericalFlux_59calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10456 static PyMethodDef __pyx_mdef_14cnumericalFlux_59calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd = {
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_59calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
10457 static PyObject *__pyx_pw_14cnumericalFlux_59calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10458 PyArrayObject *__pyx_v_rowptr = 0;
10459 PyArrayObject *__pyx_v_colind = 0;
10460 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
10461 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10462 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10463 PyArrayObject *__pyx_v_n = 0;
10464 PyArrayObject *__pyx_v_u = 0;
10465 PyArrayObject *__pyx_v_a = 0;
10466 PyArrayObject *__pyx_v_phi = 0;
10467 PyArrayObject *__pyx_v_V = 0;
10468 PyArrayObject *__pyx_v_penalty = 0;
10469 PyArrayObject *__pyx_v_flux = 0;
10470 int __pyx_lineno = 0;
10471 const char *__pyx_filename = NULL;
10472 int __pyx_clineno = 0;
10473 PyObject *__pyx_r = 0;
10474 __Pyx_RefNannyDeclarations
10475 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd (wrapper)", 0);
10477 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_a,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
10478 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
10479 if (unlikely(__pyx_kwds)) {
10480 Py_ssize_t kw_args;
10481 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10482 switch (pos_args) {
10483 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10484 CYTHON_FALLTHROUGH;
10485 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10486 CYTHON_FALLTHROUGH;
10487 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10488 CYTHON_FALLTHROUGH;
10489 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10490 CYTHON_FALLTHROUGH;
10491 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10492 CYTHON_FALLTHROUGH;
10493 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10494 CYTHON_FALLTHROUGH;
10495 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10496 CYTHON_FALLTHROUGH;
10497 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10498 CYTHON_FALLTHROUGH;
10499 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10500 CYTHON_FALLTHROUGH;
10501 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10502 CYTHON_FALLTHROUGH;
10503 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10504 CYTHON_FALLTHROUGH;
10505 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10506 CYTHON_FALLTHROUGH;
10508 default:
goto __pyx_L5_argtuple_error;
10510 kw_args = PyDict_Size(__pyx_kwds);
10511 switch (pos_args) {
10513 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
10514 else goto __pyx_L5_argtuple_error;
10515 CYTHON_FALLTHROUGH;
10517 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
10519 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 1); __PYX_ERR(0, 3174, __pyx_L3_error)
10521 CYTHON_FALLTHROUGH;
10523 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10525 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 2); __PYX_ERR(0, 3174, __pyx_L3_error)
10527 CYTHON_FALLTHROUGH;
10529 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10531 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 3); __PYX_ERR(0, 3174, __pyx_L3_error)
10533 CYTHON_FALLTHROUGH;
10535 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10537 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 4); __PYX_ERR(0, 3174, __pyx_L3_error)
10539 CYTHON_FALLTHROUGH;
10541 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10543 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 5); __PYX_ERR(0, 3174, __pyx_L3_error)
10545 CYTHON_FALLTHROUGH;
10547 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
10549 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 6); __PYX_ERR(0, 3174, __pyx_L3_error)
10551 CYTHON_FALLTHROUGH;
10553 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
10555 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 7); __PYX_ERR(0, 3174, __pyx_L3_error)
10557 CYTHON_FALLTHROUGH;
10559 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
10561 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 8); __PYX_ERR(0, 3174, __pyx_L3_error)
10563 CYTHON_FALLTHROUGH;
10565 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
10567 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 9); __PYX_ERR(0, 3174, __pyx_L3_error)
10569 CYTHON_FALLTHROUGH;
10571 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
10573 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 10); __PYX_ERR(0, 3174, __pyx_L3_error)
10575 CYTHON_FALLTHROUGH;
10577 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
10579 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, 11); __PYX_ERR(0, 3174, __pyx_L3_error)
10582 if (unlikely(kw_args > 0)) {
10583 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd") < 0)) __PYX_ERR(0, 3174, __pyx_L3_error)
10585 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
10586 goto __pyx_L5_argtuple_error;
10588 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10589 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10590 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10591 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10592 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10593 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10594 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10595 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10596 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10597 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10598 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10599 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10601 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
10602 __pyx_v_colind = ((PyArrayObject *)values[1]);
10603 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
10604 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
10605 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
10606 __pyx_v_n = ((PyArrayObject *)values[5]);
10607 __pyx_v_u = ((PyArrayObject *)values[6]);
10608 __pyx_v_a = ((PyArrayObject *)values[7]);
10609 __pyx_v_phi = ((PyArrayObject *)values[8]);
10610 __pyx_v_V = ((PyArrayObject *)values[9]);
10611 __pyx_v_penalty = ((PyArrayObject *)values[10]);
10612 __pyx_v_flux = ((PyArrayObject *)values[11]);
10614 goto __pyx_L4_argument_unpacking_done;
10615 __pyx_L5_argtuple_error:;
10616 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3174, __pyx_L3_error)
10618 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
10619 __Pyx_RefNannyFinishContext();
10621 __pyx_L4_argument_unpacking_done:;
10622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3174, __pyx_L1_error)
10623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3175, __pyx_L1_error)
10624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3176, __pyx_L1_error)
10625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3177, __pyx_L1_error)
10626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3178, __pyx_L1_error)
10627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3179, __pyx_L1_error)
10628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 3180, __pyx_L1_error)
10629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3181, __pyx_L1_error)
10630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 3182, __pyx_L1_error)
10631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 3183, __pyx_L1_error)
10632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 3184, __pyx_L1_error)
10633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 3185, __pyx_L1_error)
10634 __pyx_r = __pyx_pf_14cnumericalFlux_58calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
10641 __Pyx_RefNannyFinishContext();
10645 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) {
10646 PyObject *__pyx_r = NULL;
10647 __Pyx_RefNannyDeclarations
10648 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd", 0);
10657 calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
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_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
10668 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10669 __Pyx_XGIVEREF(__pyx_r);
10670 __Pyx_RefNannyFinishContext();
10683 static PyObject *__pyx_pw_14cnumericalFlux_61updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10684 static PyMethodDef __pyx_mdef_14cnumericalFlux_61updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd = {
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_61updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
10685 static PyObject *__pyx_pw_14cnumericalFlux_61updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10686 PyArrayObject *__pyx_v_rowptr = 0;
10687 PyArrayObject *__pyx_v_colind = 0;
10688 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
10689 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10690 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10691 PyArrayObject *__pyx_v_n = 0;
10692 PyArrayObject *__pyx_v_a = 0;
10693 PyArrayObject *__pyx_v_da = 0;
10694 PyArrayObject *__pyx_v_dphi = 0;
10695 PyArrayObject *__pyx_v_V = 0;
10696 PyArrayObject *__pyx_v_DV = 0;
10697 PyArrayObject *__pyx_v_DV_eb = 0;
10698 PyArrayObject *__pyx_v_v = 0;
10699 PyArrayObject *__pyx_v_penalty = 0;
10700 PyArrayObject *__pyx_v_fluxJacobian = 0;
10701 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
10702 int __pyx_lineno = 0;
10703 const char *__pyx_filename = NULL;
10704 int __pyx_clineno = 0;
10705 PyObject *__pyx_r = 0;
10706 __Pyx_RefNannyDeclarations
10707 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd (wrapper)", 0);
10709 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__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_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,&__pyx_n_s_fluxJacobian_eb,0};
10710 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
10711 if (unlikely(__pyx_kwds)) {
10712 Py_ssize_t kw_args;
10713 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10714 switch (pos_args) {
10715 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10716 CYTHON_FALLTHROUGH;
10717 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10718 CYTHON_FALLTHROUGH;
10719 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10720 CYTHON_FALLTHROUGH;
10721 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10722 CYTHON_FALLTHROUGH;
10723 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10724 CYTHON_FALLTHROUGH;
10725 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10726 CYTHON_FALLTHROUGH;
10727 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10728 CYTHON_FALLTHROUGH;
10729 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10730 CYTHON_FALLTHROUGH;
10731 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10732 CYTHON_FALLTHROUGH;
10733 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10734 CYTHON_FALLTHROUGH;
10735 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10736 CYTHON_FALLTHROUGH;
10737 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10738 CYTHON_FALLTHROUGH;
10739 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10740 CYTHON_FALLTHROUGH;
10741 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10742 CYTHON_FALLTHROUGH;
10743 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10744 CYTHON_FALLTHROUGH;
10745 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10746 CYTHON_FALLTHROUGH;
10748 default:
goto __pyx_L5_argtuple_error;
10750 kw_args = PyDict_Size(__pyx_kwds);
10751 switch (pos_args) {
10753 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
10754 else goto __pyx_L5_argtuple_error;
10755 CYTHON_FALLTHROUGH;
10757 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
10759 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 1); __PYX_ERR(0, 3202, __pyx_L3_error)
10761 CYTHON_FALLTHROUGH;
10763 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10765 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 2); __PYX_ERR(0, 3202, __pyx_L3_error)
10767 CYTHON_FALLTHROUGH;
10769 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10771 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 3); __PYX_ERR(0, 3202, __pyx_L3_error)
10773 CYTHON_FALLTHROUGH;
10775 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10777 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 4); __PYX_ERR(0, 3202, __pyx_L3_error)
10779 CYTHON_FALLTHROUGH;
10781 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10783 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 5); __PYX_ERR(0, 3202, __pyx_L3_error)
10785 CYTHON_FALLTHROUGH;
10787 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
10789 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 6); __PYX_ERR(0, 3202, __pyx_L3_error)
10791 CYTHON_FALLTHROUGH;
10793 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
10795 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 7); __PYX_ERR(0, 3202, __pyx_L3_error)
10797 CYTHON_FALLTHROUGH;
10799 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
10801 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 8); __PYX_ERR(0, 3202, __pyx_L3_error)
10803 CYTHON_FALLTHROUGH;
10805 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
10807 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 9); __PYX_ERR(0, 3202, __pyx_L3_error)
10809 CYTHON_FALLTHROUGH;
10811 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
10813 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 10); __PYX_ERR(0, 3202, __pyx_L3_error)
10815 CYTHON_FALLTHROUGH;
10817 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
10819 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 11); __PYX_ERR(0, 3202, __pyx_L3_error)
10821 CYTHON_FALLTHROUGH;
10823 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
10825 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 12); __PYX_ERR(0, 3202, __pyx_L3_error)
10827 CYTHON_FALLTHROUGH;
10829 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
10831 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 13); __PYX_ERR(0, 3202, __pyx_L3_error)
10833 CYTHON_FALLTHROUGH;
10835 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
10837 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 14); __PYX_ERR(0, 3202, __pyx_L3_error)
10839 CYTHON_FALLTHROUGH;
10841 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
10843 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, 15); __PYX_ERR(0, 3202, __pyx_L3_error)
10846 if (unlikely(kw_args > 0)) {
10847 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd") < 0)) __PYX_ERR(0, 3202, __pyx_L3_error)
10849 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
10850 goto __pyx_L5_argtuple_error;
10852 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10853 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10854 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10855 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10856 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10857 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10858 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10859 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10860 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10861 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10862 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10863 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10864 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10865 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10866 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10867 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10869 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
10870 __pyx_v_colind = ((PyArrayObject *)values[1]);
10871 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
10872 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
10873 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
10874 __pyx_v_n = ((PyArrayObject *)values[5]);
10875 __pyx_v_a = ((PyArrayObject *)values[6]);
10876 __pyx_v_da = ((PyArrayObject *)values[7]);
10877 __pyx_v_dphi = ((PyArrayObject *)values[8]);
10878 __pyx_v_V = ((PyArrayObject *)values[9]);
10879 __pyx_v_DV = ((PyArrayObject *)values[10]);
10880 __pyx_v_DV_eb = ((PyArrayObject *)values[11]);
10881 __pyx_v_v = ((PyArrayObject *)values[12]);
10882 __pyx_v_penalty = ((PyArrayObject *)values[13]);
10883 __pyx_v_fluxJacobian = ((PyArrayObject *)values[14]);
10884 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[15]);
10886 goto __pyx_L4_argument_unpacking_done;
10887 __pyx_L5_argtuple_error:;
10888 __Pyx_RaiseArgtupleInvalid(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3202, __pyx_L3_error)
10890 __Pyx_AddTraceback(
"cnumericalFlux.updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
10891 __Pyx_RefNannyFinishContext();
10893 __pyx_L4_argument_unpacking_done:;
10894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3202, __pyx_L1_error)
10895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3203, __pyx_L1_error)
10896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3204, __pyx_L1_error)
10897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3205, __pyx_L1_error)
10898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3206, __pyx_L1_error)
10899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3207, __pyx_L1_error)
10900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3208, __pyx_L1_error)
10901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3209, __pyx_L1_error)
10902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3210, __pyx_L1_error)
10903 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 3211, __pyx_L1_error)
10904 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 3212, __pyx_L1_error)
10905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 3213, __pyx_L1_error)
10906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3214, __pyx_L1_error)
10907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 3215, __pyx_L1_error)
10908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 3216, __pyx_L1_error)
10909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 3217, __pyx_L1_error)
10910 __pyx_r = __pyx_pf_14cnumericalFlux_60updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian, __pyx_v_fluxJacobian_eb);
10917 __Pyx_RefNannyFinishContext();
10921 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) {
10922 PyObject *__pyx_r = NULL;
10923 __Pyx_RefNannyDeclarations
10924 __Pyx_RefNannySetupContext(
"updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 0);
10933 updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
10944 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10945 __Pyx_XGIVEREF(__pyx_r);
10946 __Pyx_RefNannyFinishContext();
10959 static PyObject *__pyx_pw_14cnumericalFlux_63calculateDiffusionMatrixSplittings_LDG_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10960 static PyMethodDef __pyx_mdef_14cnumericalFlux_63calculateDiffusionMatrixSplittings_LDG_sd = {
"calculateDiffusionMatrixSplittings_LDG_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_63calculateDiffusionMatrixSplittings_LDG_sd, METH_VARARGS|METH_KEYWORDS, 0};
10961 static PyObject *__pyx_pw_14cnumericalFlux_63calculateDiffusionMatrixSplittings_LDG_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10962 int __pyx_v_aSplit;
10963 int __pyx_v_nSpace;
10964 PyArrayObject *__pyx_v_rowptr = 0;
10965 PyArrayObject *__pyx_v_colind = 0;
10966 PyArrayObject *__pyx_v_ebq_a = 0;
10967 PyArrayObject *__pyx_v_q_a = 0;
10968 PyArrayObject *__pyx_v_eb_aHat = 0;
10969 PyArrayObject *__pyx_v_eb_aTilde = 0;
10970 PyArrayObject *__pyx_v_aHat = 0;
10971 PyArrayObject *__pyx_v_aTilde = 0;
10972 int __pyx_lineno = 0;
10973 const char *__pyx_filename = NULL;
10974 int __pyx_clineno = 0;
10975 PyObject *__pyx_r = 0;
10976 __Pyx_RefNannyDeclarations
10977 __Pyx_RefNannySetupContext(
"calculateDiffusionMatrixSplittings_LDG_sd (wrapper)", 0);
10979 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_aSplit,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_ebq_a,&__pyx_n_s_q_a,&__pyx_n_s_eb_aHat,&__pyx_n_s_eb_aTilde,&__pyx_n_s_aHat,&__pyx_n_s_aTilde,0};
10980 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
10981 if (unlikely(__pyx_kwds)) {
10982 Py_ssize_t kw_args;
10983 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10984 switch (pos_args) {
10985 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10986 CYTHON_FALLTHROUGH;
10987 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10988 CYTHON_FALLTHROUGH;
10989 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10990 CYTHON_FALLTHROUGH;
10991 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10992 CYTHON_FALLTHROUGH;
10993 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10994 CYTHON_FALLTHROUGH;
10995 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10996 CYTHON_FALLTHROUGH;
10997 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10998 CYTHON_FALLTHROUGH;
10999 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11000 CYTHON_FALLTHROUGH;
11001 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11002 CYTHON_FALLTHROUGH;
11003 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11004 CYTHON_FALLTHROUGH;
11006 default:
goto __pyx_L5_argtuple_error;
11008 kw_args = PyDict_Size(__pyx_kwds);
11009 switch (pos_args) {
11011 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aSplit)) != 0)) kw_args--;
11012 else goto __pyx_L5_argtuple_error;
11013 CYTHON_FALLTHROUGH;
11015 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
11017 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 1); __PYX_ERR(0, 3240, __pyx_L3_error)
11019 CYTHON_FALLTHROUGH;
11021 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
11023 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 2); __PYX_ERR(0, 3240, __pyx_L3_error)
11025 CYTHON_FALLTHROUGH;
11027 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
11029 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 3); __PYX_ERR(0, 3240, __pyx_L3_error)
11031 CYTHON_FALLTHROUGH;
11033 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_a)) != 0)) kw_args--;
11035 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 4); __PYX_ERR(0, 3240, __pyx_L3_error)
11037 CYTHON_FALLTHROUGH;
11039 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_a)) != 0)) kw_args--;
11041 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 5); __PYX_ERR(0, 3240, __pyx_L3_error)
11043 CYTHON_FALLTHROUGH;
11045 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eb_aHat)) != 0)) kw_args--;
11047 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 6); __PYX_ERR(0, 3240, __pyx_L3_error)
11049 CYTHON_FALLTHROUGH;
11051 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eb_aTilde)) != 0)) kw_args--;
11053 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 7); __PYX_ERR(0, 3240, __pyx_L3_error)
11055 CYTHON_FALLTHROUGH;
11057 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aHat)) != 0)) kw_args--;
11059 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 8); __PYX_ERR(0, 3240, __pyx_L3_error)
11061 CYTHON_FALLTHROUGH;
11063 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aTilde)) != 0)) kw_args--;
11065 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, 9); __PYX_ERR(0, 3240, __pyx_L3_error)
11068 if (unlikely(kw_args > 0)) {
11069 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateDiffusionMatrixSplittings_LDG_sd") < 0)) __PYX_ERR(0, 3240, __pyx_L3_error)
11071 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
11072 goto __pyx_L5_argtuple_error;
11074 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11075 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11076 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11077 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11078 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11079 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11080 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11081 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11082 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11083 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11085 __pyx_v_aSplit = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_aSplit == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3240, __pyx_L3_error)
11086 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3241, __pyx_L3_error)
11087 __pyx_v_rowptr = ((PyArrayObject *)values[2]);
11088 __pyx_v_colind = ((PyArrayObject *)values[3]);
11089 __pyx_v_ebq_a = ((PyArrayObject *)values[4]);
11090 __pyx_v_q_a = ((PyArrayObject *)values[5]);
11091 __pyx_v_eb_aHat = ((PyArrayObject *)values[6]);
11092 __pyx_v_eb_aTilde = ((PyArrayObject *)values[7]);
11093 __pyx_v_aHat = ((PyArrayObject *)values[8]);
11094 __pyx_v_aTilde = ((PyArrayObject *)values[9]);
11096 goto __pyx_L4_argument_unpacking_done;
11097 __pyx_L5_argtuple_error:;
11098 __Pyx_RaiseArgtupleInvalid(
"calculateDiffusionMatrixSplittings_LDG_sd", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3240, __pyx_L3_error)
11100 __Pyx_AddTraceback(
"cnumericalFlux.calculateDiffusionMatrixSplittings_LDG_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
11101 __Pyx_RefNannyFinishContext();
11103 __pyx_L4_argument_unpacking_done:;
11104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3242, __pyx_L1_error)
11105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3243, __pyx_L1_error)
11106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_a), __pyx_ptype_5numpy_ndarray, 1,
"ebq_a", 0))) __PYX_ERR(0, 3244, __pyx_L1_error)
11107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_a), __pyx_ptype_5numpy_ndarray, 1,
"q_a", 0))) __PYX_ERR(0, 3245, __pyx_L1_error)
11108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eb_aHat), __pyx_ptype_5numpy_ndarray, 1,
"eb_aHat", 0))) __PYX_ERR(0, 3246, __pyx_L1_error)
11109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eb_aTilde), __pyx_ptype_5numpy_ndarray, 1,
"eb_aTilde", 0))) __PYX_ERR(0, 3247, __pyx_L1_error)
11110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_aHat), __pyx_ptype_5numpy_ndarray, 1,
"aHat", 0))) __PYX_ERR(0, 3248, __pyx_L1_error)
11111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_aTilde), __pyx_ptype_5numpy_ndarray, 1,
"aTilde", 0))) __PYX_ERR(0, 3249, __pyx_L1_error)
11112 __pyx_r = __pyx_pf_14cnumericalFlux_62calculateDiffusionMatrixSplittings_LDG_sd(__pyx_self, __pyx_v_aSplit, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_ebq_a, __pyx_v_q_a, __pyx_v_eb_aHat, __pyx_v_eb_aTilde, __pyx_v_aHat, __pyx_v_aTilde);
11119 __Pyx_RefNannyFinishContext();
11123 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) {
11124 PyObject *__pyx_r = NULL;
11125 __Pyx_RefNannyDeclarations
11126 __Pyx_RefNannySetupContext(
"calculateDiffusionMatrixSplittings_LDG_sd", 0);
11135 calculateDiffusionMatrixSplittings_LDG_sd(__pyx_v_aSplit, (__pyx_v_q_a->dimensions[0]), (__pyx_v_ebq_a->dimensions[1]), (__pyx_v_q_a->dimensions[1]), (__pyx_v_ebq_a->dimensions[2]), __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_ebq_a->data), ((
double *)__pyx_v_q_a->data), ((
double *)__pyx_v_eb_aHat->data), ((
double *)__pyx_v_eb_aTilde->data), ((
double *)__pyx_v_aHat->data), ((
double *)__pyx_v_aTilde->data));
11146 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11147 __Pyx_XGIVEREF(__pyx_r);
11148 __Pyx_RefNannyFinishContext();
11161 static PyObject *__pyx_pw_14cnumericalFlux_65calculateGlobalExteriorNumericalFluxDarcyFCFF_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11162 static PyMethodDef __pyx_mdef_14cnumericalFlux_65calculateGlobalExteriorNumericalFluxDarcyFCFF_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_65calculateGlobalExteriorNumericalFluxDarcyFCFF_sd, METH_VARARGS|METH_KEYWORDS, 0};
11163 static PyObject *__pyx_pw_14cnumericalFlux_65calculateGlobalExteriorNumericalFluxDarcyFCFF_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11164 PyArrayObject *__pyx_v_rowptr_wm = 0;
11165 PyArrayObject *__pyx_v_colind_wm = 0;
11166 PyArrayObject *__pyx_v_rowptr_mw = 0;
11167 PyArrayObject *__pyx_v_colind_mw = 0;
11168 PyArrayObject *__pyx_v_rowptr_mm = 0;
11169 PyArrayObject *__pyx_v_colind_mm = 0;
11170 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
11171 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
11172 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
11173 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
11174 PyArrayObject *__pyx_v_isDOFBoundary_um = 0;
11175 PyArrayObject *__pyx_v_n = 0;
11176 PyArrayObject *__pyx_v_bc_f_m = 0;
11177 PyArrayObject *__pyx_v_bc_a_wm = 0;
11178 PyArrayObject *__pyx_v_bc_a_mw = 0;
11179 PyArrayObject *__pyx_v_bc_a_mm = 0;
11180 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
11181 PyArrayObject *__pyx_v_bc_grad_phi_m = 0;
11182 PyArrayObject *__pyx_v_bc_u_w = 0;
11183 PyArrayObject *__pyx_v_bc_u_m = 0;
11184 PyArrayObject *__pyx_v_f_m = 0;
11185 PyArrayObject *__pyx_v_df_m_dw = 0;
11186 PyArrayObject *__pyx_v_a_wm = 0;
11187 PyArrayObject *__pyx_v_a_mw = 0;
11188 PyArrayObject *__pyx_v_a_mm = 0;
11189 PyArrayObject *__pyx_v_grad_phi_w = 0;
11190 PyArrayObject *__pyx_v_grad_phi_m = 0;
11191 PyArrayObject *__pyx_v_u_w = 0;
11192 PyArrayObject *__pyx_v_u_m = 0;
11193 PyArrayObject *__pyx_v_penalty_w = 0;
11194 PyArrayObject *__pyx_v_penalty_m = 0;
11195 PyArrayObject *__pyx_v_advectiveFlux_m = 0;
11196 PyArrayObject *__pyx_v_dadvectiveFlux_m_dw = 0;
11197 PyArrayObject *__pyx_v_diffusiveFlux_wm = 0;
11198 PyArrayObject *__pyx_v_diffusiveFlux_mw = 0;
11199 PyArrayObject *__pyx_v_diffusiveFlux_mm = 0;
11200 int __pyx_lineno = 0;
11201 const char *__pyx_filename = NULL;
11202 int __pyx_clineno = 0;
11203 PyObject *__pyx_r = 0;
11204 __Pyx_RefNannyDeclarations
11205 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd (wrapper)", 0);
11207 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_wm,&__pyx_n_s_colind_wm,&__pyx_n_s_rowptr_mw,&__pyx_n_s_colind_mw,&__pyx_n_s_rowptr_mm,&__pyx_n_s_colind_mm,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_um,&__pyx_n_s_n,&__pyx_n_s_bc_f_m,&__pyx_n_s_bc_a_wm,&__pyx_n_s_bc_a_mw,&__pyx_n_s_bc_a_mm,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_m,&__pyx_n_s_bc_u_w,&__pyx_n_s_bc_u_m,&__pyx_n_s_f_m,&__pyx_n_s_df_m_dw,&__pyx_n_s_a_wm,&__pyx_n_s_a_mw,&__pyx_n_s_a_mm,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_m,&__pyx_n_s_u_w,&__pyx_n_s_u_m,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_m,&__pyx_n_s_advectiveFlux_m,&__pyx_n_s_dadvectiveFlux_m_dw,&__pyx_n_s_diffusiveFlux_wm,&__pyx_n_s_diffusiveFlux_mw,&__pyx_n_s_diffusiveFlux_mm,0};
11208 PyObject* values[36] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
11209 if (unlikely(__pyx_kwds)) {
11210 Py_ssize_t kw_args;
11211 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11212 switch (pos_args) {
11213 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
11214 CYTHON_FALLTHROUGH;
11215 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
11216 CYTHON_FALLTHROUGH;
11217 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
11218 CYTHON_FALLTHROUGH;
11219 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
11220 CYTHON_FALLTHROUGH;
11221 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
11222 CYTHON_FALLTHROUGH;
11223 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
11224 CYTHON_FALLTHROUGH;
11225 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
11226 CYTHON_FALLTHROUGH;
11227 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
11228 CYTHON_FALLTHROUGH;
11229 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
11230 CYTHON_FALLTHROUGH;
11231 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
11232 CYTHON_FALLTHROUGH;
11233 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
11234 CYTHON_FALLTHROUGH;
11235 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
11236 CYTHON_FALLTHROUGH;
11237 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
11238 CYTHON_FALLTHROUGH;
11239 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
11240 CYTHON_FALLTHROUGH;
11241 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
11242 CYTHON_FALLTHROUGH;
11243 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
11244 CYTHON_FALLTHROUGH;
11245 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
11246 CYTHON_FALLTHROUGH;
11247 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
11248 CYTHON_FALLTHROUGH;
11249 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11250 CYTHON_FALLTHROUGH;
11251 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11252 CYTHON_FALLTHROUGH;
11253 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11254 CYTHON_FALLTHROUGH;
11255 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11256 CYTHON_FALLTHROUGH;
11257 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11258 CYTHON_FALLTHROUGH;
11259 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11260 CYTHON_FALLTHROUGH;
11261 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11262 CYTHON_FALLTHROUGH;
11263 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11264 CYTHON_FALLTHROUGH;
11265 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11266 CYTHON_FALLTHROUGH;
11267 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11268 CYTHON_FALLTHROUGH;
11269 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11270 CYTHON_FALLTHROUGH;
11271 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11272 CYTHON_FALLTHROUGH;
11273 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11274 CYTHON_FALLTHROUGH;
11275 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11276 CYTHON_FALLTHROUGH;
11277 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11278 CYTHON_FALLTHROUGH;
11279 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11280 CYTHON_FALLTHROUGH;
11281 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11282 CYTHON_FALLTHROUGH;
11283 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11284 CYTHON_FALLTHROUGH;
11286 default:
goto __pyx_L5_argtuple_error;
11288 kw_args = PyDict_Size(__pyx_kwds);
11289 switch (pos_args) {
11291 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_wm)) != 0)) kw_args--;
11292 else goto __pyx_L5_argtuple_error;
11293 CYTHON_FALLTHROUGH;
11295 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_wm)) != 0)) kw_args--;
11297 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 1); __PYX_ERR(0, 3264, __pyx_L3_error)
11299 CYTHON_FALLTHROUGH;
11301 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_mw)) != 0)) kw_args--;
11303 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 2); __PYX_ERR(0, 3264, __pyx_L3_error)
11305 CYTHON_FALLTHROUGH;
11307 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_mw)) != 0)) kw_args--;
11309 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 3); __PYX_ERR(0, 3264, __pyx_L3_error)
11311 CYTHON_FALLTHROUGH;
11313 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_mm)) != 0)) kw_args--;
11315 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 4); __PYX_ERR(0, 3264, __pyx_L3_error)
11317 CYTHON_FALLTHROUGH;
11319 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_mm)) != 0)) kw_args--;
11321 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 5); __PYX_ERR(0, 3264, __pyx_L3_error)
11323 CYTHON_FALLTHROUGH;
11325 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
11327 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 6); __PYX_ERR(0, 3264, __pyx_L3_error)
11329 CYTHON_FALLTHROUGH;
11331 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
11333 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 7); __PYX_ERR(0, 3264, __pyx_L3_error)
11335 CYTHON_FALLTHROUGH;
11337 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
11339 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 8); __PYX_ERR(0, 3264, __pyx_L3_error)
11341 CYTHON_FALLTHROUGH;
11343 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
11345 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 9); __PYX_ERR(0, 3264, __pyx_L3_error)
11347 CYTHON_FALLTHROUGH;
11349 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_um)) != 0)) kw_args--;
11351 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 10); __PYX_ERR(0, 3264, __pyx_L3_error)
11353 CYTHON_FALLTHROUGH;
11355 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
11357 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 11); __PYX_ERR(0, 3264, __pyx_L3_error)
11359 CYTHON_FALLTHROUGH;
11361 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_m)) != 0)) kw_args--;
11363 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 12); __PYX_ERR(0, 3264, __pyx_L3_error)
11365 CYTHON_FALLTHROUGH;
11367 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_wm)) != 0)) kw_args--;
11369 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 13); __PYX_ERR(0, 3264, __pyx_L3_error)
11371 CYTHON_FALLTHROUGH;
11373 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_mw)) != 0)) kw_args--;
11375 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 14); __PYX_ERR(0, 3264, __pyx_L3_error)
11377 CYTHON_FALLTHROUGH;
11379 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_mm)) != 0)) kw_args--;
11381 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 15); __PYX_ERR(0, 3264, __pyx_L3_error)
11383 CYTHON_FALLTHROUGH;
11385 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
11387 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 16); __PYX_ERR(0, 3264, __pyx_L3_error)
11389 CYTHON_FALLTHROUGH;
11391 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_m)) != 0)) kw_args--;
11393 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 17); __PYX_ERR(0, 3264, __pyx_L3_error)
11395 CYTHON_FALLTHROUGH;
11397 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u_w)) != 0)) kw_args--;
11399 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 18); __PYX_ERR(0, 3264, __pyx_L3_error)
11401 CYTHON_FALLTHROUGH;
11403 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u_m)) != 0)) kw_args--;
11405 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 19); __PYX_ERR(0, 3264, __pyx_L3_error)
11407 CYTHON_FALLTHROUGH;
11409 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
11411 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 20); __PYX_ERR(0, 3264, __pyx_L3_error)
11413 CYTHON_FALLTHROUGH;
11415 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m_dw)) != 0)) kw_args--;
11417 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 21); __PYX_ERR(0, 3264, __pyx_L3_error)
11419 CYTHON_FALLTHROUGH;
11421 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_wm)) != 0)) kw_args--;
11423 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 22); __PYX_ERR(0, 3264, __pyx_L3_error)
11425 CYTHON_FALLTHROUGH;
11427 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mw)) != 0)) kw_args--;
11429 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 23); __PYX_ERR(0, 3264, __pyx_L3_error)
11431 CYTHON_FALLTHROUGH;
11433 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mm)) != 0)) kw_args--;
11435 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 24); __PYX_ERR(0, 3264, __pyx_L3_error)
11437 CYTHON_FALLTHROUGH;
11439 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
11441 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 25); __PYX_ERR(0, 3264, __pyx_L3_error)
11443 CYTHON_FALLTHROUGH;
11445 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_m)) != 0)) kw_args--;
11447 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 26); __PYX_ERR(0, 3264, __pyx_L3_error)
11449 CYTHON_FALLTHROUGH;
11451 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_w)) != 0)) kw_args--;
11453 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 27); __PYX_ERR(0, 3264, __pyx_L3_error)
11455 CYTHON_FALLTHROUGH;
11457 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_m)) != 0)) kw_args--;
11459 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 28); __PYX_ERR(0, 3264, __pyx_L3_error)
11461 CYTHON_FALLTHROUGH;
11463 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
11465 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 29); __PYX_ERR(0, 3264, __pyx_L3_error)
11467 CYTHON_FALLTHROUGH;
11469 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_m)) != 0)) kw_args--;
11471 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 30); __PYX_ERR(0, 3264, __pyx_L3_error)
11473 CYTHON_FALLTHROUGH;
11475 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux_m)) != 0)) kw_args--;
11477 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 31); __PYX_ERR(0, 3264, __pyx_L3_error)
11479 CYTHON_FALLTHROUGH;
11481 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dadvectiveFlux_m_dw)) != 0)) kw_args--;
11483 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 32); __PYX_ERR(0, 3264, __pyx_L3_error)
11485 CYTHON_FALLTHROUGH;
11487 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_wm)) != 0)) kw_args--;
11489 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 33); __PYX_ERR(0, 3264, __pyx_L3_error)
11491 CYTHON_FALLTHROUGH;
11493 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_mw)) != 0)) kw_args--;
11495 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 34); __PYX_ERR(0, 3264, __pyx_L3_error)
11497 CYTHON_FALLTHROUGH;
11499 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_mm)) != 0)) kw_args--;
11501 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, 35); __PYX_ERR(0, 3264, __pyx_L3_error)
11504 if (unlikely(kw_args > 0)) {
11505 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd") < 0)) __PYX_ERR(0, 3264, __pyx_L3_error)
11507 }
else if (PyTuple_GET_SIZE(__pyx_args) != 36) {
11508 goto __pyx_L5_argtuple_error;
11510 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11511 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11512 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11513 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11514 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11515 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11516 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11517 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11518 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11519 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11520 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11521 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11522 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11523 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11524 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11525 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11526 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11527 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11528 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
11529 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
11530 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
11531 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
11532 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
11533 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
11534 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
11535 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
11536 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
11537 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
11538 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
11539 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
11540 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
11541 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
11542 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
11543 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
11544 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
11545 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
11547 __pyx_v_rowptr_wm = ((PyArrayObject *)values[0]);
11548 __pyx_v_colind_wm = ((PyArrayObject *)values[1]);
11549 __pyx_v_rowptr_mw = ((PyArrayObject *)values[2]);
11550 __pyx_v_colind_mw = ((PyArrayObject *)values[3]);
11551 __pyx_v_rowptr_mm = ((PyArrayObject *)values[4]);
11552 __pyx_v_colind_mm = ((PyArrayObject *)values[5]);
11553 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[6]);
11554 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[7]);
11555 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[8]);
11556 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[9]);
11557 __pyx_v_isDOFBoundary_um = ((PyArrayObject *)values[10]);
11558 __pyx_v_n = ((PyArrayObject *)values[11]);
11559 __pyx_v_bc_f_m = ((PyArrayObject *)values[12]);
11560 __pyx_v_bc_a_wm = ((PyArrayObject *)values[13]);
11561 __pyx_v_bc_a_mw = ((PyArrayObject *)values[14]);
11562 __pyx_v_bc_a_mm = ((PyArrayObject *)values[15]);
11563 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[16]);
11564 __pyx_v_bc_grad_phi_m = ((PyArrayObject *)values[17]);
11565 __pyx_v_bc_u_w = ((PyArrayObject *)values[18]);
11566 __pyx_v_bc_u_m = ((PyArrayObject *)values[19]);
11567 __pyx_v_f_m = ((PyArrayObject *)values[20]);
11568 __pyx_v_df_m_dw = ((PyArrayObject *)values[21]);
11569 __pyx_v_a_wm = ((PyArrayObject *)values[22]);
11570 __pyx_v_a_mw = ((PyArrayObject *)values[23]);
11571 __pyx_v_a_mm = ((PyArrayObject *)values[24]);
11572 __pyx_v_grad_phi_w = ((PyArrayObject *)values[25]);
11573 __pyx_v_grad_phi_m = ((PyArrayObject *)values[26]);
11574 __pyx_v_u_w = ((PyArrayObject *)values[27]);
11575 __pyx_v_u_m = ((PyArrayObject *)values[28]);
11576 __pyx_v_penalty_w = ((PyArrayObject *)values[29]);
11577 __pyx_v_penalty_m = ((PyArrayObject *)values[30]);
11578 __pyx_v_advectiveFlux_m = ((PyArrayObject *)values[31]);
11579 __pyx_v_dadvectiveFlux_m_dw = ((PyArrayObject *)values[32]);
11580 __pyx_v_diffusiveFlux_wm = ((PyArrayObject *)values[33]);
11581 __pyx_v_diffusiveFlux_mw = ((PyArrayObject *)values[34]);
11582 __pyx_v_diffusiveFlux_mm = ((PyArrayObject *)values[35]);
11584 goto __pyx_L4_argument_unpacking_done;
11585 __pyx_L5_argtuple_error:;
11586 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 1, 36, 36, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3264, __pyx_L3_error)
11588 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
11589 __Pyx_RefNannyFinishContext();
11591 __pyx_L4_argument_unpacking_done:;
11592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_wm), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_wm", 0))) __PYX_ERR(0, 3264, __pyx_L1_error)
11593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_wm), __pyx_ptype_5numpy_ndarray, 1,
"colind_wm", 0))) __PYX_ERR(0, 3265, __pyx_L1_error)
11594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_mw), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_mw", 0))) __PYX_ERR(0, 3266, __pyx_L1_error)
11595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_mw), __pyx_ptype_5numpy_ndarray, 1,
"colind_mw", 0))) __PYX_ERR(0, 3267, __pyx_L1_error)
11596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_mm), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_mm", 0))) __PYX_ERR(0, 3268, __pyx_L1_error)
11597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_mm), __pyx_ptype_5numpy_ndarray, 1,
"colind_mm", 0))) __PYX_ERR(0, 3269, __pyx_L1_error)
11598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3270, __pyx_L1_error)
11599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3271, __pyx_L1_error)
11600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3272, __pyx_L1_error)
11601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3273, __pyx_L1_error)
11602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_um), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_um", 0))) __PYX_ERR(0, 3274, __pyx_L1_error)
11603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3275, __pyx_L1_error)
11604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_m", 0))) __PYX_ERR(0, 3276, __pyx_L1_error)
11605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_wm", 0))) __PYX_ERR(0, 3277, __pyx_L1_error)
11606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_mw", 0))) __PYX_ERR(0, 3278, __pyx_L1_error)
11607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_mm", 0))) __PYX_ERR(0, 3279, __pyx_L1_error)
11608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 3280, __pyx_L1_error)
11609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_m", 0))) __PYX_ERR(0, 3281, __pyx_L1_error)
11610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_u_w", 0))) __PYX_ERR(0, 3282, __pyx_L1_error)
11611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u_m), __pyx_ptype_5numpy_ndarray, 1,
"bc_u_m", 0))) __PYX_ERR(0, 3283, __pyx_L1_error)
11612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1,
"f_m", 0))) __PYX_ERR(0, 3284, __pyx_L1_error)
11613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_m_dw", 0))) __PYX_ERR(0, 3285, __pyx_L1_error)
11614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"a_wm", 0))) __PYX_ERR(0, 3286, __pyx_L1_error)
11615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"a_mw", 0))) __PYX_ERR(0, 3287, __pyx_L1_error)
11616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"a_mm", 0))) __PYX_ERR(0, 3288, __pyx_L1_error)
11617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3289, __pyx_L1_error)
11618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_m", 0))) __PYX_ERR(0, 3290, __pyx_L1_error)
11619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_w), __pyx_ptype_5numpy_ndarray, 1,
"u_w", 0))) __PYX_ERR(0, 3291, __pyx_L1_error)
11620 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_m), __pyx_ptype_5numpy_ndarray, 1,
"u_m", 0))) __PYX_ERR(0, 3292, __pyx_L1_error)
11621 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3293, __pyx_L1_error)
11622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_m), __pyx_ptype_5numpy_ndarray, 1,
"penalty_m", 0))) __PYX_ERR(0, 3294, __pyx_L1_error)
11623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux_m), __pyx_ptype_5numpy_ndarray, 1,
"advectiveFlux_m", 0))) __PYX_ERR(0, 3295, __pyx_L1_error)
11624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dadvectiveFlux_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"dadvectiveFlux_m_dw", 0))) __PYX_ERR(0, 3296, __pyx_L1_error)
11625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_wm), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_wm", 0))) __PYX_ERR(0, 3297, __pyx_L1_error)
11626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_mw), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_mw", 0))) __PYX_ERR(0, 3298, __pyx_L1_error)
11627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_mm), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_mm", 0))) __PYX_ERR(0, 3299, __pyx_L1_error)
11628 __pyx_r = __pyx_pf_14cnumericalFlux_64calculateGlobalExteriorNumericalFluxDarcyFCFF_sd(__pyx_self, __pyx_v_rowptr_wm, __pyx_v_colind_wm, __pyx_v_rowptr_mw, __pyx_v_colind_mw, __pyx_v_rowptr_mm, __pyx_v_colind_mm, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_um, __pyx_v_n, __pyx_v_bc_f_m, __pyx_v_bc_a_wm, __pyx_v_bc_a_mw, __pyx_v_bc_a_mm, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_m, __pyx_v_bc_u_w, __pyx_v_bc_u_m, __pyx_v_f_m, __pyx_v_df_m_dw, __pyx_v_a_wm, __pyx_v_a_mw, __pyx_v_a_mm, __pyx_v_grad_phi_w, __pyx_v_grad_phi_m, __pyx_v_u_w, __pyx_v_u_m, __pyx_v_penalty_w, __pyx_v_penalty_m, __pyx_v_advectiveFlux_m, __pyx_v_dadvectiveFlux_m_dw, __pyx_v_diffusiveFlux_wm, __pyx_v_diffusiveFlux_mw, __pyx_v_diffusiveFlux_mm);
11635 __Pyx_RefNannyFinishContext();
11639 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) {
11640 PyObject *__pyx_r = NULL;
11641 __Pyx_RefNannyDeclarations
11642 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_sd", 0);
11651 calculateGlobalExteriorNumericalFluxDarcyFCFF_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_rowptr_wm->data), ((
int *)__pyx_v_colind_wm->data), ((
int *)__pyx_v_rowptr_mw->data), ((
int *)__pyx_v_colind_mw->data), ((
int *)__pyx_v_rowptr_mm->data), ((
int *)__pyx_v_colind_mm->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_um->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f_m->data), ((
double *)__pyx_v_bc_a_wm->data), ((
double *)__pyx_v_bc_a_mw->data), ((
double *)__pyx_v_bc_a_mm->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_m->data), ((
double *)__pyx_v_bc_u_w->data), ((
double *)__pyx_v_bc_u_m->data), ((
double *)__pyx_v_f_m->data), ((
double *)__pyx_v_df_m_dw->data), ((
double *)__pyx_v_a_wm->data), ((
double *)__pyx_v_a_mw->data), ((
double *)__pyx_v_a_mm->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_m->data), ((
double *)__pyx_v_u_w->data), ((
double *)__pyx_v_u_m->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_m->data), ((
double *)__pyx_v_advectiveFlux_m->data), ((
double *)__pyx_v_dadvectiveFlux_m_dw->data), ((
double *)__pyx_v_diffusiveFlux_wm->data), ((
double *)__pyx_v_diffusiveFlux_mw->data), ((
double *)__pyx_v_diffusiveFlux_mm->data));
11662 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11663 __Pyx_XGIVEREF(__pyx_r);
11664 __Pyx_RefNannyFinishContext();
11677 static PyObject *__pyx_pw_14cnumericalFlux_67calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11678 static PyMethodDef __pyx_mdef_14cnumericalFlux_67calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_67calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
11679 static PyObject *__pyx_pw_14cnumericalFlux_67calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11680 PyArrayObject *__pyx_v_rowptr_wm = 0;
11681 PyArrayObject *__pyx_v_colind_wm = 0;
11682 PyArrayObject *__pyx_v_rowptr_mw = 0;
11683 PyArrayObject *__pyx_v_colind_mw = 0;
11684 PyArrayObject *__pyx_v_rowptr_mm = 0;
11685 PyArrayObject *__pyx_v_colind_mm = 0;
11686 PyArrayObject *__pyx_v_l2g = 0;
11687 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
11688 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
11689 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
11690 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
11691 PyArrayObject *__pyx_v_isDOFBoundary_um = 0;
11692 PyArrayObject *__pyx_v_n = 0;
11693 PyArrayObject *__pyx_v_f_m = 0;
11694 PyArrayObject *__pyx_v_df_m_dw = 0;
11695 PyArrayObject *__pyx_v_a_wm = 0;
11696 PyArrayObject *__pyx_v_da_wm_dw = 0;
11697 PyArrayObject *__pyx_v_da_wm_dm = 0;
11698 PyArrayObject *__pyx_v_a_mw = 0;
11699 PyArrayObject *__pyx_v_da_mw_dw = 0;
11700 PyArrayObject *__pyx_v_da_mw_dm = 0;
11701 PyArrayObject *__pyx_v_a_mm = 0;
11702 PyArrayObject *__pyx_v_da_mm_dw = 0;
11703 PyArrayObject *__pyx_v_da_mm_dm = 0;
11704 PyArrayObject *__pyx_v_grad_phi_w = 0;
11705 PyArrayObject *__pyx_v_grad_phi_m = 0;
11706 PyArrayObject *__pyx_v_dphi_w_w = 0;
11707 PyArrayObject *__pyx_v_dphi_w_m = 0;
11708 PyArrayObject *__pyx_v_dphi_m_w = 0;
11709 PyArrayObject *__pyx_v_dphi_m_m = 0;
11710 PyArrayObject *__pyx_v_u_w = 0;
11711 PyArrayObject *__pyx_v_u_m = 0;
11712 PyArrayObject *__pyx_v_v = 0;
11713 PyArrayObject *__pyx_v_grad_v = 0;
11714 PyArrayObject *__pyx_v_penalty_w = 0;
11715 PyArrayObject *__pyx_v_penalty_m = 0;
11716 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
11717 PyArrayObject *__pyx_v_fluxJacobian_wm = 0;
11718 PyArrayObject *__pyx_v_fluxJacobian_mw = 0;
11719 PyArrayObject *__pyx_v_fluxJacobian_mm = 0;
11720 int __pyx_lineno = 0;
11721 const char *__pyx_filename = NULL;
11722 int __pyx_clineno = 0;
11723 PyObject *__pyx_r = 0;
11724 __Pyx_RefNannyDeclarations
11725 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd (wrapper)", 0);
11727 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_wm,&__pyx_n_s_colind_wm,&__pyx_n_s_rowptr_mw,&__pyx_n_s_colind_mw,&__pyx_n_s_rowptr_mm,&__pyx_n_s_colind_mm,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_um,&__pyx_n_s_n,&__pyx_n_s_f_m,&__pyx_n_s_df_m_dw,&__pyx_n_s_a_wm,&__pyx_n_s_da_wm_dw,&__pyx_n_s_da_wm_dm,&__pyx_n_s_a_mw,&__pyx_n_s_da_mw_dw,&__pyx_n_s_da_mw_dm,&__pyx_n_s_a_mm,&__pyx_n_s_da_mm_dw,&__pyx_n_s_da_mm_dm,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_m,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_m,&__pyx_n_s_dphi_m_w,&__pyx_n_s_dphi_m_m,&__pyx_n_s_u_w,&__pyx_n_s_u_m,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_m,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wm,&__pyx_n_s_fluxJacobian_mw,&__pyx_n_s_fluxJacobian_mm,0};
11728 PyObject* values[40] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
11729 if (unlikely(__pyx_kwds)) {
11730 Py_ssize_t kw_args;
11731 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11732 switch (pos_args) {
11733 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
11734 CYTHON_FALLTHROUGH;
11735 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
11736 CYTHON_FALLTHROUGH;
11737 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
11738 CYTHON_FALLTHROUGH;
11739 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
11740 CYTHON_FALLTHROUGH;
11741 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
11742 CYTHON_FALLTHROUGH;
11743 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
11744 CYTHON_FALLTHROUGH;
11745 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
11746 CYTHON_FALLTHROUGH;
11747 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
11748 CYTHON_FALLTHROUGH;
11749 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
11750 CYTHON_FALLTHROUGH;
11751 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
11752 CYTHON_FALLTHROUGH;
11753 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
11754 CYTHON_FALLTHROUGH;
11755 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
11756 CYTHON_FALLTHROUGH;
11757 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
11758 CYTHON_FALLTHROUGH;
11759 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
11760 CYTHON_FALLTHROUGH;
11761 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
11762 CYTHON_FALLTHROUGH;
11763 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
11764 CYTHON_FALLTHROUGH;
11765 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
11766 CYTHON_FALLTHROUGH;
11767 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
11768 CYTHON_FALLTHROUGH;
11769 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
11770 CYTHON_FALLTHROUGH;
11771 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
11772 CYTHON_FALLTHROUGH;
11773 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
11774 CYTHON_FALLTHROUGH;
11775 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
11776 CYTHON_FALLTHROUGH;
11777 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11778 CYTHON_FALLTHROUGH;
11779 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11780 CYTHON_FALLTHROUGH;
11781 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11782 CYTHON_FALLTHROUGH;
11783 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11784 CYTHON_FALLTHROUGH;
11785 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11786 CYTHON_FALLTHROUGH;
11787 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11788 CYTHON_FALLTHROUGH;
11789 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11790 CYTHON_FALLTHROUGH;
11791 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11792 CYTHON_FALLTHROUGH;
11793 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11794 CYTHON_FALLTHROUGH;
11795 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11796 CYTHON_FALLTHROUGH;
11797 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11798 CYTHON_FALLTHROUGH;
11799 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11800 CYTHON_FALLTHROUGH;
11801 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11802 CYTHON_FALLTHROUGH;
11803 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11804 CYTHON_FALLTHROUGH;
11805 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11806 CYTHON_FALLTHROUGH;
11807 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11808 CYTHON_FALLTHROUGH;
11809 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11810 CYTHON_FALLTHROUGH;
11811 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11812 CYTHON_FALLTHROUGH;
11814 default:
goto __pyx_L5_argtuple_error;
11816 kw_args = PyDict_Size(__pyx_kwds);
11817 switch (pos_args) {
11819 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_wm)) != 0)) kw_args--;
11820 else goto __pyx_L5_argtuple_error;
11821 CYTHON_FALLTHROUGH;
11823 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_wm)) != 0)) kw_args--;
11825 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 1); __PYX_ERR(0, 3339, __pyx_L3_error)
11827 CYTHON_FALLTHROUGH;
11829 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_mw)) != 0)) kw_args--;
11831 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 2); __PYX_ERR(0, 3339, __pyx_L3_error)
11833 CYTHON_FALLTHROUGH;
11835 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_mw)) != 0)) kw_args--;
11837 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 3); __PYX_ERR(0, 3339, __pyx_L3_error)
11839 CYTHON_FALLTHROUGH;
11841 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_mm)) != 0)) kw_args--;
11843 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 4); __PYX_ERR(0, 3339, __pyx_L3_error)
11845 CYTHON_FALLTHROUGH;
11847 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_mm)) != 0)) kw_args--;
11849 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 5); __PYX_ERR(0, 3339, __pyx_L3_error)
11851 CYTHON_FALLTHROUGH;
11853 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
11855 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 6); __PYX_ERR(0, 3339, __pyx_L3_error)
11857 CYTHON_FALLTHROUGH;
11859 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
11861 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 7); __PYX_ERR(0, 3339, __pyx_L3_error)
11863 CYTHON_FALLTHROUGH;
11865 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
11867 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 8); __PYX_ERR(0, 3339, __pyx_L3_error)
11869 CYTHON_FALLTHROUGH;
11871 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
11873 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 9); __PYX_ERR(0, 3339, __pyx_L3_error)
11875 CYTHON_FALLTHROUGH;
11877 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
11879 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 10); __PYX_ERR(0, 3339, __pyx_L3_error)
11881 CYTHON_FALLTHROUGH;
11883 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_um)) != 0)) kw_args--;
11885 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 11); __PYX_ERR(0, 3339, __pyx_L3_error)
11887 CYTHON_FALLTHROUGH;
11889 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
11891 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 12); __PYX_ERR(0, 3339, __pyx_L3_error)
11893 CYTHON_FALLTHROUGH;
11895 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_m)) != 0)) kw_args--;
11897 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 13); __PYX_ERR(0, 3339, __pyx_L3_error)
11899 CYTHON_FALLTHROUGH;
11901 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_m_dw)) != 0)) kw_args--;
11903 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 14); __PYX_ERR(0, 3339, __pyx_L3_error)
11905 CYTHON_FALLTHROUGH;
11907 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_wm)) != 0)) kw_args--;
11909 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 15); __PYX_ERR(0, 3339, __pyx_L3_error)
11911 CYTHON_FALLTHROUGH;
11913 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_wm_dw)) != 0)) kw_args--;
11915 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 16); __PYX_ERR(0, 3339, __pyx_L3_error)
11917 CYTHON_FALLTHROUGH;
11919 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_wm_dm)) != 0)) kw_args--;
11921 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 17); __PYX_ERR(0, 3339, __pyx_L3_error)
11923 CYTHON_FALLTHROUGH;
11925 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mw)) != 0)) kw_args--;
11927 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 18); __PYX_ERR(0, 3339, __pyx_L3_error)
11929 CYTHON_FALLTHROUGH;
11931 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mw_dw)) != 0)) kw_args--;
11933 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 19); __PYX_ERR(0, 3339, __pyx_L3_error)
11935 CYTHON_FALLTHROUGH;
11937 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mw_dm)) != 0)) kw_args--;
11939 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 20); __PYX_ERR(0, 3339, __pyx_L3_error)
11941 CYTHON_FALLTHROUGH;
11943 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_mm)) != 0)) kw_args--;
11945 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 21); __PYX_ERR(0, 3339, __pyx_L3_error)
11947 CYTHON_FALLTHROUGH;
11949 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mm_dw)) != 0)) kw_args--;
11951 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 22); __PYX_ERR(0, 3339, __pyx_L3_error)
11953 CYTHON_FALLTHROUGH;
11955 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_mm_dm)) != 0)) kw_args--;
11957 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 23); __PYX_ERR(0, 3339, __pyx_L3_error)
11959 CYTHON_FALLTHROUGH;
11961 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
11963 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 24); __PYX_ERR(0, 3339, __pyx_L3_error)
11965 CYTHON_FALLTHROUGH;
11967 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_m)) != 0)) kw_args--;
11969 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 25); __PYX_ERR(0, 3339, __pyx_L3_error)
11971 CYTHON_FALLTHROUGH;
11973 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
11975 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 26); __PYX_ERR(0, 3339, __pyx_L3_error)
11977 CYTHON_FALLTHROUGH;
11979 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_m)) != 0)) kw_args--;
11981 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 27); __PYX_ERR(0, 3339, __pyx_L3_error)
11983 CYTHON_FALLTHROUGH;
11985 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_m_w)) != 0)) kw_args--;
11987 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 28); __PYX_ERR(0, 3339, __pyx_L3_error)
11989 CYTHON_FALLTHROUGH;
11991 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_m_m)) != 0)) kw_args--;
11993 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 29); __PYX_ERR(0, 3339, __pyx_L3_error)
11995 CYTHON_FALLTHROUGH;
11997 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_w)) != 0)) kw_args--;
11999 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 30); __PYX_ERR(0, 3339, __pyx_L3_error)
12001 CYTHON_FALLTHROUGH;
12003 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_m)) != 0)) kw_args--;
12005 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 31); __PYX_ERR(0, 3339, __pyx_L3_error)
12007 CYTHON_FALLTHROUGH;
12009 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
12011 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 32); __PYX_ERR(0, 3339, __pyx_L3_error)
12013 CYTHON_FALLTHROUGH;
12015 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
12017 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 33); __PYX_ERR(0, 3339, __pyx_L3_error)
12019 CYTHON_FALLTHROUGH;
12021 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
12023 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 34); __PYX_ERR(0, 3339, __pyx_L3_error)
12025 CYTHON_FALLTHROUGH;
12027 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_m)) != 0)) kw_args--;
12029 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 35); __PYX_ERR(0, 3339, __pyx_L3_error)
12031 CYTHON_FALLTHROUGH;
12033 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
12035 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 36); __PYX_ERR(0, 3339, __pyx_L3_error)
12037 CYTHON_FALLTHROUGH;
12039 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wm)) != 0)) kw_args--;
12041 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 37); __PYX_ERR(0, 3339, __pyx_L3_error)
12043 CYTHON_FALLTHROUGH;
12045 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_mw)) != 0)) kw_args--;
12047 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 38); __PYX_ERR(0, 3339, __pyx_L3_error)
12049 CYTHON_FALLTHROUGH;
12051 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_mm)) != 0)) kw_args--;
12053 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, 39); __PYX_ERR(0, 3339, __pyx_L3_error)
12056 if (unlikely(kw_args > 0)) {
12057 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 3339, __pyx_L3_error)
12059 }
else if (PyTuple_GET_SIZE(__pyx_args) != 40) {
12060 goto __pyx_L5_argtuple_error;
12062 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12063 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12064 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12065 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12066 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12067 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12068 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12069 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12070 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12071 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12072 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12073 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12074 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12075 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12076 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12077 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12078 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12079 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12080 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12081 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12082 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12083 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12084 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12085 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12086 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12087 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12088 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12089 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12090 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
12091 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
12092 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
12093 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
12094 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
12095 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
12096 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
12097 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
12098 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
12099 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
12100 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
12101 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
12103 __pyx_v_rowptr_wm = ((PyArrayObject *)values[0]);
12104 __pyx_v_colind_wm = ((PyArrayObject *)values[1]);
12105 __pyx_v_rowptr_mw = ((PyArrayObject *)values[2]);
12106 __pyx_v_colind_mw = ((PyArrayObject *)values[3]);
12107 __pyx_v_rowptr_mm = ((PyArrayObject *)values[4]);
12108 __pyx_v_colind_mm = ((PyArrayObject *)values[5]);
12109 __pyx_v_l2g = ((PyArrayObject *)values[6]);
12110 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[7]);
12111 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
12112 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
12113 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[10]);
12114 __pyx_v_isDOFBoundary_um = ((PyArrayObject *)values[11]);
12115 __pyx_v_n = ((PyArrayObject *)values[12]);
12116 __pyx_v_f_m = ((PyArrayObject *)values[13]);
12117 __pyx_v_df_m_dw = ((PyArrayObject *)values[14]);
12118 __pyx_v_a_wm = ((PyArrayObject *)values[15]);
12119 __pyx_v_da_wm_dw = ((PyArrayObject *)values[16]);
12120 __pyx_v_da_wm_dm = ((PyArrayObject *)values[17]);
12121 __pyx_v_a_mw = ((PyArrayObject *)values[18]);
12122 __pyx_v_da_mw_dw = ((PyArrayObject *)values[19]);
12123 __pyx_v_da_mw_dm = ((PyArrayObject *)values[20]);
12124 __pyx_v_a_mm = ((PyArrayObject *)values[21]);
12125 __pyx_v_da_mm_dw = ((PyArrayObject *)values[22]);
12126 __pyx_v_da_mm_dm = ((PyArrayObject *)values[23]);
12127 __pyx_v_grad_phi_w = ((PyArrayObject *)values[24]);
12128 __pyx_v_grad_phi_m = ((PyArrayObject *)values[25]);
12129 __pyx_v_dphi_w_w = ((PyArrayObject *)values[26]);
12130 __pyx_v_dphi_w_m = ((PyArrayObject *)values[27]);
12131 __pyx_v_dphi_m_w = ((PyArrayObject *)values[28]);
12132 __pyx_v_dphi_m_m = ((PyArrayObject *)values[29]);
12133 __pyx_v_u_w = ((PyArrayObject *)values[30]);
12134 __pyx_v_u_m = ((PyArrayObject *)values[31]);
12135 __pyx_v_v = ((PyArrayObject *)values[32]);
12136 __pyx_v_grad_v = ((PyArrayObject *)values[33]);
12137 __pyx_v_penalty_w = ((PyArrayObject *)values[34]);
12138 __pyx_v_penalty_m = ((PyArrayObject *)values[35]);
12139 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[36]);
12140 __pyx_v_fluxJacobian_wm = ((PyArrayObject *)values[37]);
12141 __pyx_v_fluxJacobian_mw = ((PyArrayObject *)values[38]);
12142 __pyx_v_fluxJacobian_mm = ((PyArrayObject *)values[39]);
12144 goto __pyx_L4_argument_unpacking_done;
12145 __pyx_L5_argtuple_error:;
12146 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 1, 40, 40, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3339, __pyx_L3_error)
12148 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
12149 __Pyx_RefNannyFinishContext();
12151 __pyx_L4_argument_unpacking_done:;
12152 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_wm), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_wm", 0))) __PYX_ERR(0, 3339, __pyx_L1_error)
12153 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_wm), __pyx_ptype_5numpy_ndarray, 1,
"colind_wm", 0))) __PYX_ERR(0, 3340, __pyx_L1_error)
12154 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_mw), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_mw", 0))) __PYX_ERR(0, 3341, __pyx_L1_error)
12155 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_mw), __pyx_ptype_5numpy_ndarray, 1,
"colind_mw", 0))) __PYX_ERR(0, 3342, __pyx_L1_error)
12156 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_mm), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_mm", 0))) __PYX_ERR(0, 3343, __pyx_L1_error)
12157 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_mm), __pyx_ptype_5numpy_ndarray, 1,
"colind_mm", 0))) __PYX_ERR(0, 3344, __pyx_L1_error)
12158 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3345, __pyx_L1_error)
12159 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3346, __pyx_L1_error)
12160 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3347, __pyx_L1_error)
12161 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3348, __pyx_L1_error)
12162 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3349, __pyx_L1_error)
12163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_um), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_um", 0))) __PYX_ERR(0, 3350, __pyx_L1_error)
12164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3351, __pyx_L1_error)
12165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_m), __pyx_ptype_5numpy_ndarray, 1,
"f_m", 0))) __PYX_ERR(0, 3352, __pyx_L1_error)
12166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_m_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_m_dw", 0))) __PYX_ERR(0, 3353, __pyx_L1_error)
12167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_wm), __pyx_ptype_5numpy_ndarray, 1,
"a_wm", 0))) __PYX_ERR(0, 3354, __pyx_L1_error)
12168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_wm_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_wm_dw", 0))) __PYX_ERR(0, 3355, __pyx_L1_error)
12169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_wm_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_wm_dm", 0))) __PYX_ERR(0, 3356, __pyx_L1_error)
12170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mw), __pyx_ptype_5numpy_ndarray, 1,
"a_mw", 0))) __PYX_ERR(0, 3357, __pyx_L1_error)
12171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mw_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_mw_dw", 0))) __PYX_ERR(0, 3358, __pyx_L1_error)
12172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mw_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_mw_dm", 0))) __PYX_ERR(0, 3359, __pyx_L1_error)
12173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_mm), __pyx_ptype_5numpy_ndarray, 1,
"a_mm", 0))) __PYX_ERR(0, 3360, __pyx_L1_error)
12174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mm_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_mm_dw", 0))) __PYX_ERR(0, 3361, __pyx_L1_error)
12175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_mm_dm), __pyx_ptype_5numpy_ndarray, 1,
"da_mm_dm", 0))) __PYX_ERR(0, 3362, __pyx_L1_error)
12176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3363, __pyx_L1_error)
12177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_m), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_m", 0))) __PYX_ERR(0, 3364, __pyx_L1_error)
12178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 3365, __pyx_L1_error)
12179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_m), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_m", 0))) __PYX_ERR(0, 3366, __pyx_L1_error)
12180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_m_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_m_w", 0))) __PYX_ERR(0, 3367, __pyx_L1_error)
12181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_m_m), __pyx_ptype_5numpy_ndarray, 1,
"dphi_m_m", 0))) __PYX_ERR(0, 3368, __pyx_L1_error)
12182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_w), __pyx_ptype_5numpy_ndarray, 1,
"u_w", 0))) __PYX_ERR(0, 3369, __pyx_L1_error)
12183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_m), __pyx_ptype_5numpy_ndarray, 1,
"u_m", 0))) __PYX_ERR(0, 3370, __pyx_L1_error)
12184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3371, __pyx_L1_error)
12185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3372, __pyx_L1_error)
12186 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3373, __pyx_L1_error)
12187 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_m), __pyx_ptype_5numpy_ndarray, 1,
"penalty_m", 0))) __PYX_ERR(0, 3374, __pyx_L1_error)
12188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 3375, __pyx_L1_error)
12189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wm), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wm", 0))) __PYX_ERR(0, 3376, __pyx_L1_error)
12190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_mw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_mw", 0))) __PYX_ERR(0, 3377, __pyx_L1_error)
12191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_mm), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_mm", 0))) __PYX_ERR(0, 3378, __pyx_L1_error)
12192 __pyx_r = __pyx_pf_14cnumericalFlux_66calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd(__pyx_self, __pyx_v_rowptr_wm, __pyx_v_colind_wm, __pyx_v_rowptr_mw, __pyx_v_colind_mw, __pyx_v_rowptr_mm, __pyx_v_colind_mm, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_um, __pyx_v_n, __pyx_v_f_m, __pyx_v_df_m_dw, __pyx_v_a_wm, __pyx_v_da_wm_dw, __pyx_v_da_wm_dm, __pyx_v_a_mw, __pyx_v_da_mw_dw, __pyx_v_da_mw_dm, __pyx_v_a_mm, __pyx_v_da_mm_dw, __pyx_v_da_mm_dm, __pyx_v_grad_phi_w, __pyx_v_grad_phi_m, __pyx_v_dphi_w_w, __pyx_v_dphi_w_m, __pyx_v_dphi_m_w, __pyx_v_dphi_m_m, __pyx_v_u_w, __pyx_v_u_m, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_m, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wm, __pyx_v_fluxJacobian_mw, __pyx_v_fluxJacobian_mm);
12199 __Pyx_RefNannyFinishContext();
12203 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) {
12204 PyObject *__pyx_r = NULL;
12205 __Pyx_RefNannyDeclarations
12206 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd", 0);
12215 calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_rowptr_wm->data), ((
int *)__pyx_v_colind_wm->data), ((
int *)__pyx_v_rowptr_mw->data), ((
int *)__pyx_v_colind_mw->data), ((
int *)__pyx_v_rowptr_mm->data), ((
int *)__pyx_v_colind_mm->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_um->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_f_m->data), ((
double *)__pyx_v_df_m_dw->data), ((
double *)__pyx_v_a_wm->data), ((
double *)__pyx_v_da_wm_dw->data), ((
double *)__pyx_v_da_wm_dm->data), ((
double *)__pyx_v_a_mw->data), ((
double *)__pyx_v_da_mw_dw->data), ((
double *)__pyx_v_da_mw_dm->data), ((
double *)__pyx_v_a_mm->data), ((
double *)__pyx_v_da_mm_dw->data), ((
double *)__pyx_v_da_mm_dm->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_m->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_m->data), ((
double *)__pyx_v_dphi_m_w->data), ((
double *)__pyx_v_dphi_m_m->data), ((
double *)__pyx_v_u_w->data), ((
double *)__pyx_v_u_m->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_m->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wm->data), ((
double *)__pyx_v_fluxJacobian_mw->data), ((
double *)__pyx_v_fluxJacobian_mm->data));
12226 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12227 __Pyx_XGIVEREF(__pyx_r);
12228 __Pyx_RefNannyFinishContext();
12241 static PyObject *__pyx_pw_14cnumericalFlux_69calculateGlobalExteriorNumericalFluxDarcyFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12242 static PyMethodDef __pyx_mdef_14cnumericalFlux_69calculateGlobalExteriorNumericalFluxDarcyFC = {
"calculateGlobalExteriorNumericalFluxDarcyFC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_69calculateGlobalExteriorNumericalFluxDarcyFC, METH_VARARGS|METH_KEYWORDS, 0};
12243 static PyObject *__pyx_pw_14cnumericalFlux_69calculateGlobalExteriorNumericalFluxDarcyFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12244 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
12245 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
12246 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
12247 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
12248 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
12249 int __pyx_v_fluxBoundaryFlag_uw;
12250 int __pyx_v_fluxBoundaryFlag_un;
12251 PyArrayObject *__pyx_v_n = 0;
12252 PyArrayObject *__pyx_v_bc_a_ww = 0;
12253 PyArrayObject *__pyx_v_bc_a_nn = 0;
12254 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
12255 PyArrayObject *__pyx_v_bc_grad_phi_n = 0;
12256 PyArrayObject *__pyx_v_bc_s_w = 0;
12257 PyArrayObject *__pyx_v_bc_psi_w = 0;
12258 PyArrayObject *__pyx_v_bc_psi_n = 0;
12259 PyArrayObject *__pyx_v_a_ww = 0;
12260 PyArrayObject *__pyx_v_a_nn = 0;
12261 PyArrayObject *__pyx_v_grad_phi_w = 0;
12262 PyArrayObject *__pyx_v_grad_phi_n = 0;
12263 PyArrayObject *__pyx_v_s_w = 0;
12264 PyArrayObject *__pyx_v_psi_w = 0;
12265 PyArrayObject *__pyx_v_psi_n = 0;
12266 PyArrayObject *__pyx_v_penalty_w = 0;
12267 PyArrayObject *__pyx_v_penalty_n = 0;
12268 PyArrayObject *__pyx_v_diffusiveFlux_ww = 0;
12269 PyArrayObject *__pyx_v_diffusiveFlux_nn = 0;
12270 int __pyx_lineno = 0;
12271 const char *__pyx_filename = NULL;
12272 int __pyx_clineno = 0;
12273 PyObject *__pyx_r = 0;
12274 __Pyx_RefNannyDeclarations
12275 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC (wrapper)", 0);
12277 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_bc_a_ww,&__pyx_n_s_bc_a_nn,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_n,&__pyx_n_s_bc_s_w,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a_ww,&__pyx_n_s_a_nn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_s_w,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_diffusiveFlux_ww,&__pyx_n_s_diffusiveFlux_nn,0};
12278 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12279 if (unlikely(__pyx_kwds)) {
12280 Py_ssize_t kw_args;
12281 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12282 switch (pos_args) {
12283 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12284 CYTHON_FALLTHROUGH;
12285 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12286 CYTHON_FALLTHROUGH;
12287 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12288 CYTHON_FALLTHROUGH;
12289 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12290 CYTHON_FALLTHROUGH;
12291 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12292 CYTHON_FALLTHROUGH;
12293 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12294 CYTHON_FALLTHROUGH;
12295 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12296 CYTHON_FALLTHROUGH;
12297 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12298 CYTHON_FALLTHROUGH;
12299 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12300 CYTHON_FALLTHROUGH;
12301 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12302 CYTHON_FALLTHROUGH;
12303 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12304 CYTHON_FALLTHROUGH;
12305 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12306 CYTHON_FALLTHROUGH;
12307 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12308 CYTHON_FALLTHROUGH;
12309 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12310 CYTHON_FALLTHROUGH;
12311 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12312 CYTHON_FALLTHROUGH;
12313 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12314 CYTHON_FALLTHROUGH;
12315 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12316 CYTHON_FALLTHROUGH;
12317 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12318 CYTHON_FALLTHROUGH;
12319 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12320 CYTHON_FALLTHROUGH;
12321 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12322 CYTHON_FALLTHROUGH;
12323 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12324 CYTHON_FALLTHROUGH;
12325 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12326 CYTHON_FALLTHROUGH;
12327 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12328 CYTHON_FALLTHROUGH;
12329 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12330 CYTHON_FALLTHROUGH;
12331 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12332 CYTHON_FALLTHROUGH;
12333 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12334 CYTHON_FALLTHROUGH;
12336 default:
goto __pyx_L5_argtuple_error;
12338 kw_args = PyDict_Size(__pyx_kwds);
12339 switch (pos_args) {
12341 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
12342 else goto __pyx_L5_argtuple_error;
12343 CYTHON_FALLTHROUGH;
12345 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
12347 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 1); __PYX_ERR(0, 3423, __pyx_L3_error)
12349 CYTHON_FALLTHROUGH;
12351 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
12353 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 2); __PYX_ERR(0, 3423, __pyx_L3_error)
12355 CYTHON_FALLTHROUGH;
12357 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
12359 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 3); __PYX_ERR(0, 3423, __pyx_L3_error)
12361 CYTHON_FALLTHROUGH;
12363 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
12365 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 4); __PYX_ERR(0, 3423, __pyx_L3_error)
12367 CYTHON_FALLTHROUGH;
12369 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
12371 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 5); __PYX_ERR(0, 3423, __pyx_L3_error)
12373 CYTHON_FALLTHROUGH;
12375 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
12377 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 6); __PYX_ERR(0, 3423, __pyx_L3_error)
12379 CYTHON_FALLTHROUGH;
12381 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
12383 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 7); __PYX_ERR(0, 3423, __pyx_L3_error)
12385 CYTHON_FALLTHROUGH;
12387 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_ww)) != 0)) kw_args--;
12389 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 8); __PYX_ERR(0, 3423, __pyx_L3_error)
12391 CYTHON_FALLTHROUGH;
12393 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_nn)) != 0)) kw_args--;
12395 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 9); __PYX_ERR(0, 3423, __pyx_L3_error)
12397 CYTHON_FALLTHROUGH;
12399 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
12401 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 10); __PYX_ERR(0, 3423, __pyx_L3_error)
12403 CYTHON_FALLTHROUGH;
12405 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_n)) != 0)) kw_args--;
12407 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 11); __PYX_ERR(0, 3423, __pyx_L3_error)
12409 CYTHON_FALLTHROUGH;
12411 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_s_w)) != 0)) kw_args--;
12413 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 12); __PYX_ERR(0, 3423, __pyx_L3_error)
12415 CYTHON_FALLTHROUGH;
12417 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
12419 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 13); __PYX_ERR(0, 3423, __pyx_L3_error)
12421 CYTHON_FALLTHROUGH;
12423 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
12425 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 14); __PYX_ERR(0, 3423, __pyx_L3_error)
12427 CYTHON_FALLTHROUGH;
12429 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
12431 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 15); __PYX_ERR(0, 3423, __pyx_L3_error)
12433 CYTHON_FALLTHROUGH;
12435 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
12437 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 16); __PYX_ERR(0, 3423, __pyx_L3_error)
12439 CYTHON_FALLTHROUGH;
12441 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
12443 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 17); __PYX_ERR(0, 3423, __pyx_L3_error)
12445 CYTHON_FALLTHROUGH;
12447 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
12449 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 18); __PYX_ERR(0, 3423, __pyx_L3_error)
12451 CYTHON_FALLTHROUGH;
12453 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_w)) != 0)) kw_args--;
12455 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 19); __PYX_ERR(0, 3423, __pyx_L3_error)
12457 CYTHON_FALLTHROUGH;
12459 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
12461 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 20); __PYX_ERR(0, 3423, __pyx_L3_error)
12463 CYTHON_FALLTHROUGH;
12465 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
12467 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 21); __PYX_ERR(0, 3423, __pyx_L3_error)
12469 CYTHON_FALLTHROUGH;
12471 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
12473 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 22); __PYX_ERR(0, 3423, __pyx_L3_error)
12475 CYTHON_FALLTHROUGH;
12477 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
12479 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 23); __PYX_ERR(0, 3423, __pyx_L3_error)
12481 CYTHON_FALLTHROUGH;
12483 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_ww)) != 0)) kw_args--;
12485 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 24); __PYX_ERR(0, 3423, __pyx_L3_error)
12487 CYTHON_FALLTHROUGH;
12489 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_nn)) != 0)) kw_args--;
12491 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, 25); __PYX_ERR(0, 3423, __pyx_L3_error)
12494 if (unlikely(kw_args > 0)) {
12495 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFC") < 0)) __PYX_ERR(0, 3423, __pyx_L3_error)
12497 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
12498 goto __pyx_L5_argtuple_error;
12500 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12501 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12502 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12503 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12504 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12505 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12506 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12507 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12508 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12509 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12510 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12511 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12512 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12513 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12514 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12515 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12516 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12517 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12518 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12519 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12520 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12521 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12522 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12523 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12524 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12525 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12527 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
12528 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
12529 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
12530 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[3]);
12531 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[4]);
12532 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3428, __pyx_L3_error)
12533 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3429, __pyx_L3_error)
12534 __pyx_v_n = ((PyArrayObject *)values[7]);
12535 __pyx_v_bc_a_ww = ((PyArrayObject *)values[8]);
12536 __pyx_v_bc_a_nn = ((PyArrayObject *)values[9]);
12537 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[10]);
12538 __pyx_v_bc_grad_phi_n = ((PyArrayObject *)values[11]);
12539 __pyx_v_bc_s_w = ((PyArrayObject *)values[12]);
12540 __pyx_v_bc_psi_w = ((PyArrayObject *)values[13]);
12541 __pyx_v_bc_psi_n = ((PyArrayObject *)values[14]);
12542 __pyx_v_a_ww = ((PyArrayObject *)values[15]);
12543 __pyx_v_a_nn = ((PyArrayObject *)values[16]);
12544 __pyx_v_grad_phi_w = ((PyArrayObject *)values[17]);
12545 __pyx_v_grad_phi_n = ((PyArrayObject *)values[18]);
12546 __pyx_v_s_w = ((PyArrayObject *)values[19]);
12547 __pyx_v_psi_w = ((PyArrayObject *)values[20]);
12548 __pyx_v_psi_n = ((PyArrayObject *)values[21]);
12549 __pyx_v_penalty_w = ((PyArrayObject *)values[22]);
12550 __pyx_v_penalty_n = ((PyArrayObject *)values[23]);
12551 __pyx_v_diffusiveFlux_ww = ((PyArrayObject *)values[24]);
12552 __pyx_v_diffusiveFlux_nn = ((PyArrayObject *)values[25]);
12554 goto __pyx_L4_argument_unpacking_done;
12555 __pyx_L5_argtuple_error:;
12556 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3423, __pyx_L3_error)
12558 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
12559 __Pyx_RefNannyFinishContext();
12561 __pyx_L4_argument_unpacking_done:;
12562 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3423, __pyx_L1_error)
12563 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3424, __pyx_L1_error)
12564 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3425, __pyx_L1_error)
12565 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3426, __pyx_L1_error)
12566 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3427, __pyx_L1_error)
12567 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3430, __pyx_L1_error)
12568 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_ww", 0))) __PYX_ERR(0, 3431, __pyx_L1_error)
12569 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_nn", 0))) __PYX_ERR(0, 3432, __pyx_L1_error)
12570 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 3433, __pyx_L1_error)
12571 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_n", 0))) __PYX_ERR(0, 3434, __pyx_L1_error)
12572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_s_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_s_w", 0))) __PYX_ERR(0, 3435, __pyx_L1_error)
12573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 3436, __pyx_L1_error)
12574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 3437, __pyx_L1_error)
12575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3438, __pyx_L1_error)
12576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3439, __pyx_L1_error)
12577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3440, __pyx_L1_error)
12578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3441, __pyx_L1_error)
12579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s_w), __pyx_ptype_5numpy_ndarray, 1,
"s_w", 0))) __PYX_ERR(0, 3442, __pyx_L1_error)
12580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3443, __pyx_L1_error)
12581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3444, __pyx_L1_error)
12582 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3445, __pyx_L1_error)
12583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3446, __pyx_L1_error)
12584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_ww), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_ww", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
12585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_nn), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_nn", 0))) __PYX_ERR(0, 3448, __pyx_L1_error)
12586 __pyx_r = __pyx_pf_14cnumericalFlux_68calculateGlobalExteriorNumericalFluxDarcyFC(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_bc_a_ww, __pyx_v_bc_a_nn, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_n, __pyx_v_bc_s_w, __pyx_v_bc_psi_w, __pyx_v_bc_psi_n, __pyx_v_a_ww, __pyx_v_a_nn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_s_w, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_diffusiveFlux_ww, __pyx_v_diffusiveFlux_nn);
12593 __Pyx_RefNannyFinishContext();
12597 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) {
12598 PyObject *__pyx_r = NULL;
12599 __Pyx_RefNannyDeclarations
12600 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC", 0);
12609 calculateGlobalExteriorNumericalFluxDarcyFC((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a_ww->data), ((
double *)__pyx_v_bc_a_nn->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_n->data), ((
double *)__pyx_v_bc_s_w->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_s_w->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_diffusiveFlux_ww->data), ((
double *)__pyx_v_diffusiveFlux_nn->data));
12620 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12621 __Pyx_XGIVEREF(__pyx_r);
12622 __Pyx_RefNannyFinishContext();
12635 static PyObject *__pyx_pw_14cnumericalFlux_71calculateGlobalExteriorNumericalFluxDarcyFC_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12636 static PyMethodDef __pyx_mdef_14cnumericalFlux_71calculateGlobalExteriorNumericalFluxDarcyFC_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_71calculateGlobalExteriorNumericalFluxDarcyFC_sd, METH_VARARGS|METH_KEYWORDS, 0};
12637 static PyObject *__pyx_pw_14cnumericalFlux_71calculateGlobalExteriorNumericalFluxDarcyFC_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12638 PyArrayObject *__pyx_v_rowptr_ww = 0;
12639 PyArrayObject *__pyx_v_colind_ww = 0;
12640 PyArrayObject *__pyx_v_rowptr_nn = 0;
12641 PyArrayObject *__pyx_v_colind_nn = 0;
12642 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
12643 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
12644 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
12645 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
12646 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
12647 int __pyx_v_fluxBoundaryFlag_uw;
12648 int __pyx_v_fluxBoundaryFlag_un;
12649 PyArrayObject *__pyx_v_n = 0;
12650 PyArrayObject *__pyx_v_bc_a_ww = 0;
12651 PyArrayObject *__pyx_v_bc_a_nn = 0;
12652 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
12653 PyArrayObject *__pyx_v_bc_grad_phi_n = 0;
12654 PyArrayObject *__pyx_v_bc_s_w = 0;
12655 PyArrayObject *__pyx_v_bc_psi_w = 0;
12656 PyArrayObject *__pyx_v_bc_psi_n = 0;
12657 PyArrayObject *__pyx_v_a_ww = 0;
12658 PyArrayObject *__pyx_v_a_nn = 0;
12659 PyArrayObject *__pyx_v_grad_phi_w = 0;
12660 PyArrayObject *__pyx_v_grad_phi_n = 0;
12661 PyArrayObject *__pyx_v_s_w = 0;
12662 PyArrayObject *__pyx_v_psi_w = 0;
12663 PyArrayObject *__pyx_v_psi_n = 0;
12664 PyArrayObject *__pyx_v_penalty_w = 0;
12665 PyArrayObject *__pyx_v_penalty_n = 0;
12666 PyArrayObject *__pyx_v_diffusiveFlux_ww = 0;
12667 PyArrayObject *__pyx_v_diffusiveFlux_nn = 0;
12668 int __pyx_lineno = 0;
12669 const char *__pyx_filename = NULL;
12670 int __pyx_clineno = 0;
12671 PyObject *__pyx_r = 0;
12672 __Pyx_RefNannyDeclarations
12673 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd (wrapper)", 0);
12675 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_ww,&__pyx_n_s_colind_ww,&__pyx_n_s_rowptr_nn,&__pyx_n_s_colind_nn,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_bc_a_ww,&__pyx_n_s_bc_a_nn,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_n,&__pyx_n_s_bc_s_w,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a_ww,&__pyx_n_s_a_nn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_s_w,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_diffusiveFlux_ww,&__pyx_n_s_diffusiveFlux_nn,0};
12676 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
12677 if (unlikely(__pyx_kwds)) {
12678 Py_ssize_t kw_args;
12679 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12680 switch (pos_args) {
12681 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
12682 CYTHON_FALLTHROUGH;
12683 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
12684 CYTHON_FALLTHROUGH;
12685 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12686 CYTHON_FALLTHROUGH;
12687 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12688 CYTHON_FALLTHROUGH;
12689 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12690 CYTHON_FALLTHROUGH;
12691 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12692 CYTHON_FALLTHROUGH;
12693 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12694 CYTHON_FALLTHROUGH;
12695 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12696 CYTHON_FALLTHROUGH;
12697 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12698 CYTHON_FALLTHROUGH;
12699 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12700 CYTHON_FALLTHROUGH;
12701 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12702 CYTHON_FALLTHROUGH;
12703 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12704 CYTHON_FALLTHROUGH;
12705 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12706 CYTHON_FALLTHROUGH;
12707 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12708 CYTHON_FALLTHROUGH;
12709 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12710 CYTHON_FALLTHROUGH;
12711 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12712 CYTHON_FALLTHROUGH;
12713 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12714 CYTHON_FALLTHROUGH;
12715 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12716 CYTHON_FALLTHROUGH;
12717 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12718 CYTHON_FALLTHROUGH;
12719 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12720 CYTHON_FALLTHROUGH;
12721 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12722 CYTHON_FALLTHROUGH;
12723 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12724 CYTHON_FALLTHROUGH;
12725 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12726 CYTHON_FALLTHROUGH;
12727 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12728 CYTHON_FALLTHROUGH;
12729 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12730 CYTHON_FALLTHROUGH;
12731 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12732 CYTHON_FALLTHROUGH;
12733 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12734 CYTHON_FALLTHROUGH;
12735 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12736 CYTHON_FALLTHROUGH;
12737 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12738 CYTHON_FALLTHROUGH;
12739 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12740 CYTHON_FALLTHROUGH;
12742 default:
goto __pyx_L5_argtuple_error;
12744 kw_args = PyDict_Size(__pyx_kwds);
12745 switch (pos_args) {
12747 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_ww)) != 0)) kw_args--;
12748 else goto __pyx_L5_argtuple_error;
12749 CYTHON_FALLTHROUGH;
12751 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_ww)) != 0)) kw_args--;
12753 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 1); __PYX_ERR(0, 3478, __pyx_L3_error)
12755 CYTHON_FALLTHROUGH;
12757 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_nn)) != 0)) kw_args--;
12759 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 2); __PYX_ERR(0, 3478, __pyx_L3_error)
12761 CYTHON_FALLTHROUGH;
12763 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_nn)) != 0)) kw_args--;
12765 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 3); __PYX_ERR(0, 3478, __pyx_L3_error)
12767 CYTHON_FALLTHROUGH;
12769 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
12771 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 4); __PYX_ERR(0, 3478, __pyx_L3_error)
12773 CYTHON_FALLTHROUGH;
12775 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
12777 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 5); __PYX_ERR(0, 3478, __pyx_L3_error)
12779 CYTHON_FALLTHROUGH;
12781 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
12783 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 6); __PYX_ERR(0, 3478, __pyx_L3_error)
12785 CYTHON_FALLTHROUGH;
12787 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
12789 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 7); __PYX_ERR(0, 3478, __pyx_L3_error)
12791 CYTHON_FALLTHROUGH;
12793 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
12795 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 8); __PYX_ERR(0, 3478, __pyx_L3_error)
12797 CYTHON_FALLTHROUGH;
12799 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
12801 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 9); __PYX_ERR(0, 3478, __pyx_L3_error)
12803 CYTHON_FALLTHROUGH;
12805 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
12807 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 10); __PYX_ERR(0, 3478, __pyx_L3_error)
12809 CYTHON_FALLTHROUGH;
12811 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
12813 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 11); __PYX_ERR(0, 3478, __pyx_L3_error)
12815 CYTHON_FALLTHROUGH;
12817 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_ww)) != 0)) kw_args--;
12819 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 12); __PYX_ERR(0, 3478, __pyx_L3_error)
12821 CYTHON_FALLTHROUGH;
12823 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_nn)) != 0)) kw_args--;
12825 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 13); __PYX_ERR(0, 3478, __pyx_L3_error)
12827 CYTHON_FALLTHROUGH;
12829 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
12831 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 14); __PYX_ERR(0, 3478, __pyx_L3_error)
12833 CYTHON_FALLTHROUGH;
12835 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_n)) != 0)) kw_args--;
12837 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 15); __PYX_ERR(0, 3478, __pyx_L3_error)
12839 CYTHON_FALLTHROUGH;
12841 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_s_w)) != 0)) kw_args--;
12843 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 16); __PYX_ERR(0, 3478, __pyx_L3_error)
12845 CYTHON_FALLTHROUGH;
12847 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
12849 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 17); __PYX_ERR(0, 3478, __pyx_L3_error)
12851 CYTHON_FALLTHROUGH;
12853 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
12855 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 18); __PYX_ERR(0, 3478, __pyx_L3_error)
12857 CYTHON_FALLTHROUGH;
12859 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
12861 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 19); __PYX_ERR(0, 3478, __pyx_L3_error)
12863 CYTHON_FALLTHROUGH;
12865 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
12867 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 20); __PYX_ERR(0, 3478, __pyx_L3_error)
12869 CYTHON_FALLTHROUGH;
12871 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
12873 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 21); __PYX_ERR(0, 3478, __pyx_L3_error)
12875 CYTHON_FALLTHROUGH;
12877 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
12879 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 22); __PYX_ERR(0, 3478, __pyx_L3_error)
12881 CYTHON_FALLTHROUGH;
12883 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_w)) != 0)) kw_args--;
12885 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 23); __PYX_ERR(0, 3478, __pyx_L3_error)
12887 CYTHON_FALLTHROUGH;
12889 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
12891 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 24); __PYX_ERR(0, 3478, __pyx_L3_error)
12893 CYTHON_FALLTHROUGH;
12895 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
12897 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 25); __PYX_ERR(0, 3478, __pyx_L3_error)
12899 CYTHON_FALLTHROUGH;
12901 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
12903 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 26); __PYX_ERR(0, 3478, __pyx_L3_error)
12905 CYTHON_FALLTHROUGH;
12907 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
12909 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 27); __PYX_ERR(0, 3478, __pyx_L3_error)
12911 CYTHON_FALLTHROUGH;
12913 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_ww)) != 0)) kw_args--;
12915 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 28); __PYX_ERR(0, 3478, __pyx_L3_error)
12917 CYTHON_FALLTHROUGH;
12919 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_nn)) != 0)) kw_args--;
12921 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, 29); __PYX_ERR(0, 3478, __pyx_L3_error)
12924 if (unlikely(kw_args > 0)) {
12925 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFC_sd") < 0)) __PYX_ERR(0, 3478, __pyx_L3_error)
12927 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
12928 goto __pyx_L5_argtuple_error;
12930 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12931 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12932 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12933 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12934 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12935 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12936 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12937 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
12938 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
12939 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
12940 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
12941 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
12942 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
12943 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
12944 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
12945 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
12946 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
12947 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
12948 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
12949 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
12950 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
12951 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
12952 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
12953 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
12954 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
12955 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
12956 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
12957 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
12958 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
12959 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
12961 __pyx_v_rowptr_ww = ((PyArrayObject *)values[0]);
12962 __pyx_v_colind_ww = ((PyArrayObject *)values[1]);
12963 __pyx_v_rowptr_nn = ((PyArrayObject *)values[2]);
12964 __pyx_v_colind_nn = ((PyArrayObject *)values[3]);
12965 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
12966 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
12967 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
12968 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[7]);
12969 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[8]);
12970 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[9]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3487, __pyx_L3_error)
12971 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[10]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3488, __pyx_L3_error)
12972 __pyx_v_n = ((PyArrayObject *)values[11]);
12973 __pyx_v_bc_a_ww = ((PyArrayObject *)values[12]);
12974 __pyx_v_bc_a_nn = ((PyArrayObject *)values[13]);
12975 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[14]);
12976 __pyx_v_bc_grad_phi_n = ((PyArrayObject *)values[15]);
12977 __pyx_v_bc_s_w = ((PyArrayObject *)values[16]);
12978 __pyx_v_bc_psi_w = ((PyArrayObject *)values[17]);
12979 __pyx_v_bc_psi_n = ((PyArrayObject *)values[18]);
12980 __pyx_v_a_ww = ((PyArrayObject *)values[19]);
12981 __pyx_v_a_nn = ((PyArrayObject *)values[20]);
12982 __pyx_v_grad_phi_w = ((PyArrayObject *)values[21]);
12983 __pyx_v_grad_phi_n = ((PyArrayObject *)values[22]);
12984 __pyx_v_s_w = ((PyArrayObject *)values[23]);
12985 __pyx_v_psi_w = ((PyArrayObject *)values[24]);
12986 __pyx_v_psi_n = ((PyArrayObject *)values[25]);
12987 __pyx_v_penalty_w = ((PyArrayObject *)values[26]);
12988 __pyx_v_penalty_n = ((PyArrayObject *)values[27]);
12989 __pyx_v_diffusiveFlux_ww = ((PyArrayObject *)values[28]);
12990 __pyx_v_diffusiveFlux_nn = ((PyArrayObject *)values[29]);
12992 goto __pyx_L4_argument_unpacking_done;
12993 __pyx_L5_argtuple_error:;
12994 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3478, __pyx_L3_error)
12996 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFC_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
12997 __Pyx_RefNannyFinishContext();
12999 __pyx_L4_argument_unpacking_done:;
13000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_ww), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_ww", 0))) __PYX_ERR(0, 3478, __pyx_L1_error)
13001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_ww), __pyx_ptype_5numpy_ndarray, 1,
"colind_ww", 0))) __PYX_ERR(0, 3479, __pyx_L1_error)
13002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_nn), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_nn", 0))) __PYX_ERR(0, 3480, __pyx_L1_error)
13003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_nn), __pyx_ptype_5numpy_ndarray, 1,
"colind_nn", 0))) __PYX_ERR(0, 3481, __pyx_L1_error)
13004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3482, __pyx_L1_error)
13005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3483, __pyx_L1_error)
13006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3484, __pyx_L1_error)
13007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3485, __pyx_L1_error)
13008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3486, __pyx_L1_error)
13009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3489, __pyx_L1_error)
13010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_ww", 0))) __PYX_ERR(0, 3490, __pyx_L1_error)
13011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_nn", 0))) __PYX_ERR(0, 3491, __pyx_L1_error)
13012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 3492, __pyx_L1_error)
13013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_n", 0))) __PYX_ERR(0, 3493, __pyx_L1_error)
13014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_s_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_s_w", 0))) __PYX_ERR(0, 3494, __pyx_L1_error)
13015 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 3495, __pyx_L1_error)
13016 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 3496, __pyx_L1_error)
13017 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3497, __pyx_L1_error)
13018 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3498, __pyx_L1_error)
13019 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3499, __pyx_L1_error)
13020 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3500, __pyx_L1_error)
13021 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s_w), __pyx_ptype_5numpy_ndarray, 1,
"s_w", 0))) __PYX_ERR(0, 3501, __pyx_L1_error)
13022 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3502, __pyx_L1_error)
13023 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3503, __pyx_L1_error)
13024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3504, __pyx_L1_error)
13025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3505, __pyx_L1_error)
13026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_ww), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_ww", 0))) __PYX_ERR(0, 3506, __pyx_L1_error)
13027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_nn), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_nn", 0))) __PYX_ERR(0, 3507, __pyx_L1_error)
13028 __pyx_r = __pyx_pf_14cnumericalFlux_70calculateGlobalExteriorNumericalFluxDarcyFC_sd(__pyx_self, __pyx_v_rowptr_ww, __pyx_v_colind_ww, __pyx_v_rowptr_nn, __pyx_v_colind_nn, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_bc_a_ww, __pyx_v_bc_a_nn, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_n, __pyx_v_bc_s_w, __pyx_v_bc_psi_w, __pyx_v_bc_psi_n, __pyx_v_a_ww, __pyx_v_a_nn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_s_w, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_diffusiveFlux_ww, __pyx_v_diffusiveFlux_nn);
13035 __Pyx_RefNannyFinishContext();
13039 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) {
13040 PyObject *__pyx_r = NULL;
13041 __Pyx_RefNannyDeclarations
13042 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_sd", 0);
13051 calculateGlobalExteriorNumericalFluxDarcyFC_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_rowptr_ww->data), ((
int *)__pyx_v_colind_ww->data), ((
int *)__pyx_v_rowptr_nn->data), ((
int *)__pyx_v_colind_nn->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a_ww->data), ((
double *)__pyx_v_bc_a_nn->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_n->data), ((
double *)__pyx_v_bc_s_w->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_s_w->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_diffusiveFlux_ww->data), ((
double *)__pyx_v_diffusiveFlux_nn->data));
13062 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13063 __Pyx_XGIVEREF(__pyx_r);
13064 __Pyx_RefNannyFinishContext();
13077 static PyObject *__pyx_pw_14cnumericalFlux_73calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13078 static PyMethodDef __pyx_mdef_14cnumericalFlux_73calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian = {
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_73calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
13079 static PyObject *__pyx_pw_14cnumericalFlux_73calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13080 PyArrayObject *__pyx_v_l2g = 0;
13081 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
13082 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
13083 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
13084 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
13085 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
13086 int __pyx_v_fluxBoundaryFlag_uw;
13087 int __pyx_v_fluxBoundaryFlag_un;
13088 PyArrayObject *__pyx_v_n = 0;
13089 PyArrayObject *__pyx_v_a_ww = 0;
13090 PyArrayObject *__pyx_v_da_ww_dw = 0;
13091 PyArrayObject *__pyx_v_da_ww_dn = 0;
13092 PyArrayObject *__pyx_v_a_nn = 0;
13093 PyArrayObject *__pyx_v_da_nn_dw = 0;
13094 PyArrayObject *__pyx_v_da_nn_dn = 0;
13095 PyArrayObject *__pyx_v_grad_phi_w = 0;
13096 PyArrayObject *__pyx_v_grad_phi_n = 0;
13097 PyArrayObject *__pyx_v_dphi_w_w = 0;
13098 PyArrayObject *__pyx_v_dphi_w_n = 0;
13099 PyArrayObject *__pyx_v_dphi_n_w = 0;
13100 PyArrayObject *__pyx_v_dphi_n_n = 0;
13101 PyArrayObject *__pyx_v_s_w = 0;
13102 PyArrayObject *__pyx_v_psi_w = 0;
13103 PyArrayObject *__pyx_v_psi_n = 0;
13104 PyArrayObject *__pyx_v_dpsi_n_dsw = 0;
13105 PyArrayObject *__pyx_v_dpsi_n_dpsiw = 0;
13106 PyArrayObject *__pyx_v_v = 0;
13107 PyArrayObject *__pyx_v_grad_v = 0;
13108 PyArrayObject *__pyx_v_penalty_w = 0;
13109 PyArrayObject *__pyx_v_penalty_n = 0;
13110 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
13111 PyArrayObject *__pyx_v_fluxJacobian_wn = 0;
13112 PyArrayObject *__pyx_v_fluxJacobian_nw = 0;
13113 PyArrayObject *__pyx_v_fluxJacobian_nn = 0;
13114 int __pyx_lineno = 0;
13115 const char *__pyx_filename = NULL;
13116 int __pyx_clineno = 0;
13117 PyObject *__pyx_r = 0;
13118 __Pyx_RefNannyDeclarations
13119 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian (wrapper)", 0);
13121 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_a_ww,&__pyx_n_s_da_ww_dw,&__pyx_n_s_da_ww_dn,&__pyx_n_s_a_nn,&__pyx_n_s_da_nn_dw,&__pyx_n_s_da_nn_dn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_n,&__pyx_n_s_dphi_n_w,&__pyx_n_s_dphi_n_n,&__pyx_n_s_s_w,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_dpsi_n_dsw,&__pyx_n_s_dpsi_n_dpsiw,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wn,&__pyx_n_s_fluxJacobian_nw,&__pyx_n_s_fluxJacobian_nn,0};
13122 PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13123 if (unlikely(__pyx_kwds)) {
13124 Py_ssize_t kw_args;
13125 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13126 switch (pos_args) {
13127 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13128 CYTHON_FALLTHROUGH;
13129 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13130 CYTHON_FALLTHROUGH;
13131 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13132 CYTHON_FALLTHROUGH;
13133 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13134 CYTHON_FALLTHROUGH;
13135 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13136 CYTHON_FALLTHROUGH;
13137 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13138 CYTHON_FALLTHROUGH;
13139 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13140 CYTHON_FALLTHROUGH;
13141 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13142 CYTHON_FALLTHROUGH;
13143 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13144 CYTHON_FALLTHROUGH;
13145 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13146 CYTHON_FALLTHROUGH;
13147 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13148 CYTHON_FALLTHROUGH;
13149 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13150 CYTHON_FALLTHROUGH;
13151 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13152 CYTHON_FALLTHROUGH;
13153 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13154 CYTHON_FALLTHROUGH;
13155 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13156 CYTHON_FALLTHROUGH;
13157 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13158 CYTHON_FALLTHROUGH;
13159 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13160 CYTHON_FALLTHROUGH;
13161 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13162 CYTHON_FALLTHROUGH;
13163 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13164 CYTHON_FALLTHROUGH;
13165 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13166 CYTHON_FALLTHROUGH;
13167 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13168 CYTHON_FALLTHROUGH;
13169 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13170 CYTHON_FALLTHROUGH;
13171 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13172 CYTHON_FALLTHROUGH;
13173 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13174 CYTHON_FALLTHROUGH;
13175 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13176 CYTHON_FALLTHROUGH;
13177 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13178 CYTHON_FALLTHROUGH;
13179 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13180 CYTHON_FALLTHROUGH;
13181 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13182 CYTHON_FALLTHROUGH;
13183 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13184 CYTHON_FALLTHROUGH;
13185 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13186 CYTHON_FALLTHROUGH;
13187 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13188 CYTHON_FALLTHROUGH;
13189 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13190 CYTHON_FALLTHROUGH;
13191 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13192 CYTHON_FALLTHROUGH;
13193 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13194 CYTHON_FALLTHROUGH;
13196 default:
goto __pyx_L5_argtuple_error;
13198 kw_args = PyDict_Size(__pyx_kwds);
13199 switch (pos_args) {
13201 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
13202 else goto __pyx_L5_argtuple_error;
13203 CYTHON_FALLTHROUGH;
13205 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
13207 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 1); __PYX_ERR(0, 3541, __pyx_L3_error)
13209 CYTHON_FALLTHROUGH;
13211 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
13213 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 2); __PYX_ERR(0, 3541, __pyx_L3_error)
13215 CYTHON_FALLTHROUGH;
13217 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
13219 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 3); __PYX_ERR(0, 3541, __pyx_L3_error)
13221 CYTHON_FALLTHROUGH;
13223 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
13225 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 4); __PYX_ERR(0, 3541, __pyx_L3_error)
13227 CYTHON_FALLTHROUGH;
13229 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
13231 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 5); __PYX_ERR(0, 3541, __pyx_L3_error)
13233 CYTHON_FALLTHROUGH;
13235 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
13237 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 6); __PYX_ERR(0, 3541, __pyx_L3_error)
13239 CYTHON_FALLTHROUGH;
13241 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
13243 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 7); __PYX_ERR(0, 3541, __pyx_L3_error)
13245 CYTHON_FALLTHROUGH;
13247 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
13249 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 8); __PYX_ERR(0, 3541, __pyx_L3_error)
13251 CYTHON_FALLTHROUGH;
13253 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
13255 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 9); __PYX_ERR(0, 3541, __pyx_L3_error)
13257 CYTHON_FALLTHROUGH;
13259 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dw)) != 0)) kw_args--;
13261 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 10); __PYX_ERR(0, 3541, __pyx_L3_error)
13263 CYTHON_FALLTHROUGH;
13265 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dn)) != 0)) kw_args--;
13267 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 11); __PYX_ERR(0, 3541, __pyx_L3_error)
13269 CYTHON_FALLTHROUGH;
13271 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
13273 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 12); __PYX_ERR(0, 3541, __pyx_L3_error)
13275 CYTHON_FALLTHROUGH;
13277 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dw)) != 0)) kw_args--;
13279 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 13); __PYX_ERR(0, 3541, __pyx_L3_error)
13281 CYTHON_FALLTHROUGH;
13283 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dn)) != 0)) kw_args--;
13285 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 14); __PYX_ERR(0, 3541, __pyx_L3_error)
13287 CYTHON_FALLTHROUGH;
13289 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
13291 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 15); __PYX_ERR(0, 3541, __pyx_L3_error)
13293 CYTHON_FALLTHROUGH;
13295 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
13297 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 16); __PYX_ERR(0, 3541, __pyx_L3_error)
13299 CYTHON_FALLTHROUGH;
13301 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
13303 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 17); __PYX_ERR(0, 3541, __pyx_L3_error)
13305 CYTHON_FALLTHROUGH;
13307 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_n)) != 0)) kw_args--;
13309 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 18); __PYX_ERR(0, 3541, __pyx_L3_error)
13311 CYTHON_FALLTHROUGH;
13313 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_w)) != 0)) kw_args--;
13315 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 19); __PYX_ERR(0, 3541, __pyx_L3_error)
13317 CYTHON_FALLTHROUGH;
13319 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_n)) != 0)) kw_args--;
13321 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 20); __PYX_ERR(0, 3541, __pyx_L3_error)
13323 CYTHON_FALLTHROUGH;
13325 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_w)) != 0)) kw_args--;
13327 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 21); __PYX_ERR(0, 3541, __pyx_L3_error)
13329 CYTHON_FALLTHROUGH;
13331 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
13333 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 22); __PYX_ERR(0, 3541, __pyx_L3_error)
13335 CYTHON_FALLTHROUGH;
13337 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
13339 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 23); __PYX_ERR(0, 3541, __pyx_L3_error)
13341 CYTHON_FALLTHROUGH;
13343 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dsw)) != 0)) kw_args--;
13345 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 24); __PYX_ERR(0, 3541, __pyx_L3_error)
13347 CYTHON_FALLTHROUGH;
13349 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsiw)) != 0)) kw_args--;
13351 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 25); __PYX_ERR(0, 3541, __pyx_L3_error)
13353 CYTHON_FALLTHROUGH;
13355 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13357 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 26); __PYX_ERR(0, 3541, __pyx_L3_error)
13359 CYTHON_FALLTHROUGH;
13361 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
13363 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 27); __PYX_ERR(0, 3541, __pyx_L3_error)
13365 CYTHON_FALLTHROUGH;
13367 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
13369 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 28); __PYX_ERR(0, 3541, __pyx_L3_error)
13371 CYTHON_FALLTHROUGH;
13373 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
13375 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 29); __PYX_ERR(0, 3541, __pyx_L3_error)
13377 CYTHON_FALLTHROUGH;
13379 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
13381 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 30); __PYX_ERR(0, 3541, __pyx_L3_error)
13383 CYTHON_FALLTHROUGH;
13385 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wn)) != 0)) kw_args--;
13387 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 31); __PYX_ERR(0, 3541, __pyx_L3_error)
13389 CYTHON_FALLTHROUGH;
13391 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nw)) != 0)) kw_args--;
13393 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 32); __PYX_ERR(0, 3541, __pyx_L3_error)
13395 CYTHON_FALLTHROUGH;
13397 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nn)) != 0)) kw_args--;
13399 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, 33); __PYX_ERR(0, 3541, __pyx_L3_error)
13402 if (unlikely(kw_args > 0)) {
13403 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian") < 0)) __PYX_ERR(0, 3541, __pyx_L3_error)
13405 }
else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
13406 goto __pyx_L5_argtuple_error;
13408 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13409 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13410 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13411 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13412 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13413 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13414 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13415 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13416 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13417 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13418 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13419 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13420 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13421 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13422 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13423 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13424 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13425 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13426 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13427 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13428 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13429 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13430 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13431 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13432 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13433 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13434 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13435 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13436 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13437 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13438 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13439 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13440 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13441 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13443 __pyx_v_l2g = ((PyArrayObject *)values[0]);
13444 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
13445 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
13446 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
13447 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[4]);
13448 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[5]);
13449 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3547, __pyx_L3_error)
13450 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[7]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3548, __pyx_L3_error)
13451 __pyx_v_n = ((PyArrayObject *)values[8]);
13452 __pyx_v_a_ww = ((PyArrayObject *)values[9]);
13453 __pyx_v_da_ww_dw = ((PyArrayObject *)values[10]);
13454 __pyx_v_da_ww_dn = ((PyArrayObject *)values[11]);
13455 __pyx_v_a_nn = ((PyArrayObject *)values[12]);
13456 __pyx_v_da_nn_dw = ((PyArrayObject *)values[13]);
13457 __pyx_v_da_nn_dn = ((PyArrayObject *)values[14]);
13458 __pyx_v_grad_phi_w = ((PyArrayObject *)values[15]);
13459 __pyx_v_grad_phi_n = ((PyArrayObject *)values[16]);
13460 __pyx_v_dphi_w_w = ((PyArrayObject *)values[17]);
13461 __pyx_v_dphi_w_n = ((PyArrayObject *)values[18]);
13462 __pyx_v_dphi_n_w = ((PyArrayObject *)values[19]);
13463 __pyx_v_dphi_n_n = ((PyArrayObject *)values[20]);
13464 __pyx_v_s_w = ((PyArrayObject *)values[21]);
13465 __pyx_v_psi_w = ((PyArrayObject *)values[22]);
13466 __pyx_v_psi_n = ((PyArrayObject *)values[23]);
13467 __pyx_v_dpsi_n_dsw = ((PyArrayObject *)values[24]);
13468 __pyx_v_dpsi_n_dpsiw = ((PyArrayObject *)values[25]);
13469 __pyx_v_v = ((PyArrayObject *)values[26]);
13470 __pyx_v_grad_v = ((PyArrayObject *)values[27]);
13471 __pyx_v_penalty_w = ((PyArrayObject *)values[28]);
13472 __pyx_v_penalty_n = ((PyArrayObject *)values[29]);
13473 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[30]);
13474 __pyx_v_fluxJacobian_wn = ((PyArrayObject *)values[31]);
13475 __pyx_v_fluxJacobian_nw = ((PyArrayObject *)values[32]);
13476 __pyx_v_fluxJacobian_nn = ((PyArrayObject *)values[33]);
13478 goto __pyx_L4_argument_unpacking_done;
13479 __pyx_L5_argtuple_error:;
13480 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3541, __pyx_L3_error)
13482 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
13483 __Pyx_RefNannyFinishContext();
13485 __pyx_L4_argument_unpacking_done:;
13486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3541, __pyx_L1_error)
13487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3542, __pyx_L1_error)
13488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3543, __pyx_L1_error)
13489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3544, __pyx_L1_error)
13490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3545, __pyx_L1_error)
13491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3546, __pyx_L1_error)
13492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3549, __pyx_L1_error)
13493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3550, __pyx_L1_error)
13494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dw", 0))) __PYX_ERR(0, 3551, __pyx_L1_error)
13495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dn", 0))) __PYX_ERR(0, 3552, __pyx_L1_error)
13496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3553, __pyx_L1_error)
13497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dw", 0))) __PYX_ERR(0, 3554, __pyx_L1_error)
13498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dn", 0))) __PYX_ERR(0, 3555, __pyx_L1_error)
13499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3556, __pyx_L1_error)
13500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3557, __pyx_L1_error)
13501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 3558, __pyx_L1_error)
13502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_n", 0))) __PYX_ERR(0, 3559, __pyx_L1_error)
13503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_w", 0))) __PYX_ERR(0, 3560, __pyx_L1_error)
13504 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_n", 0))) __PYX_ERR(0, 3561, __pyx_L1_error)
13505 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s_w), __pyx_ptype_5numpy_ndarray, 1,
"s_w", 0))) __PYX_ERR(0, 3562, __pyx_L1_error)
13506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3563, __pyx_L1_error)
13507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3564, __pyx_L1_error)
13508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dsw", 0))) __PYX_ERR(0, 3565, __pyx_L1_error)
13509 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsiw", 0))) __PYX_ERR(0, 3566, __pyx_L1_error)
13510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3567, __pyx_L1_error)
13511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3568, __pyx_L1_error)
13512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3569, __pyx_L1_error)
13513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3570, __pyx_L1_error)
13514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 3571, __pyx_L1_error)
13515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wn", 0))) __PYX_ERR(0, 3572, __pyx_L1_error)
13516 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nw", 0))) __PYX_ERR(0, 3573, __pyx_L1_error)
13517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nn", 0))) __PYX_ERR(0, 3574, __pyx_L1_error)
13518 __pyx_r = __pyx_pf_14cnumericalFlux_72calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian(__pyx_self, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_a_ww, __pyx_v_da_ww_dw, __pyx_v_da_ww_dn, __pyx_v_a_nn, __pyx_v_da_nn_dw, __pyx_v_da_nn_dn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_dphi_w_w, __pyx_v_dphi_w_n, __pyx_v_dphi_n_w, __pyx_v_dphi_n_n, __pyx_v_s_w, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_dpsi_n_dsw, __pyx_v_dpsi_n_dpsiw, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wn, __pyx_v_fluxJacobian_nw, __pyx_v_fluxJacobian_nn);
13525 __Pyx_RefNannyFinishContext();
13529 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) {
13530 PyObject *__pyx_r = NULL;
13531 __Pyx_RefNannyDeclarations
13532 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian", 0);
13541 calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_da_ww_dw->data), ((
double *)__pyx_v_da_ww_dn->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_da_nn_dw->data), ((
double *)__pyx_v_da_nn_dn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_n->data), ((
double *)__pyx_v_dphi_n_w->data), ((
double *)__pyx_v_dphi_n_n->data), ((
double *)__pyx_v_s_w->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_dpsi_n_dsw->data), ((
double *)__pyx_v_dpsi_n_dpsiw->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wn->data), ((
double *)__pyx_v_fluxJacobian_nw->data), ((
double *)__pyx_v_fluxJacobian_nn->data));
13552 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13553 __Pyx_XGIVEREF(__pyx_r);
13554 __Pyx_RefNannyFinishContext();
13567 static PyObject *__pyx_pw_14cnumericalFlux_75calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13568 static PyMethodDef __pyx_mdef_14cnumericalFlux_75calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_75calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
13569 static PyObject *__pyx_pw_14cnumericalFlux_75calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13570 PyArrayObject *__pyx_v_rowptr_ww = 0;
13571 PyArrayObject *__pyx_v_colind_ww = 0;
13572 PyArrayObject *__pyx_v_rowptr_nn = 0;
13573 PyArrayObject *__pyx_v_colind_nn = 0;
13574 PyArrayObject *__pyx_v_l2g = 0;
13575 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
13576 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
13577 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
13578 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
13579 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
13580 int __pyx_v_fluxBoundaryFlag_uw;
13581 int __pyx_v_fluxBoundaryFlag_un;
13582 PyArrayObject *__pyx_v_n = 0;
13583 PyArrayObject *__pyx_v_a_ww = 0;
13584 PyArrayObject *__pyx_v_da_ww_dw = 0;
13585 PyArrayObject *__pyx_v_da_ww_dn = 0;
13586 PyArrayObject *__pyx_v_a_nn = 0;
13587 PyArrayObject *__pyx_v_da_nn_dw = 0;
13588 PyArrayObject *__pyx_v_da_nn_dn = 0;
13589 PyArrayObject *__pyx_v_grad_phi_w = 0;
13590 PyArrayObject *__pyx_v_grad_phi_n = 0;
13591 PyArrayObject *__pyx_v_dphi_w_w = 0;
13592 PyArrayObject *__pyx_v_dphi_w_n = 0;
13593 PyArrayObject *__pyx_v_dphi_n_w = 0;
13594 PyArrayObject *__pyx_v_dphi_n_n = 0;
13595 PyArrayObject *__pyx_v_s_w = 0;
13596 PyArrayObject *__pyx_v_psi_w = 0;
13597 PyArrayObject *__pyx_v_psi_n = 0;
13598 PyArrayObject *__pyx_v_dpsi_n_dsw = 0;
13599 PyArrayObject *__pyx_v_dpsi_n_dpsiw = 0;
13600 PyArrayObject *__pyx_v_v = 0;
13601 PyArrayObject *__pyx_v_grad_v = 0;
13602 PyArrayObject *__pyx_v_penalty_w = 0;
13603 PyArrayObject *__pyx_v_penalty_n = 0;
13604 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
13605 PyArrayObject *__pyx_v_fluxJacobian_wn = 0;
13606 PyArrayObject *__pyx_v_fluxJacobian_nw = 0;
13607 PyArrayObject *__pyx_v_fluxJacobian_nn = 0;
13608 int __pyx_lineno = 0;
13609 const char *__pyx_filename = NULL;
13610 int __pyx_clineno = 0;
13611 PyObject *__pyx_r = 0;
13612 __Pyx_RefNannyDeclarations
13613 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd (wrapper)", 0);
13615 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_ww,&__pyx_n_s_colind_ww,&__pyx_n_s_rowptr_nn,&__pyx_n_s_colind_nn,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_a_ww,&__pyx_n_s_da_ww_dw,&__pyx_n_s_da_ww_dn,&__pyx_n_s_a_nn,&__pyx_n_s_da_nn_dw,&__pyx_n_s_da_nn_dn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_n,&__pyx_n_s_dphi_n_w,&__pyx_n_s_dphi_n_n,&__pyx_n_s_s_w,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_dpsi_n_dsw,&__pyx_n_s_dpsi_n_dpsiw,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wn,&__pyx_n_s_fluxJacobian_nw,&__pyx_n_s_fluxJacobian_nn,0};
13616 PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
13617 if (unlikely(__pyx_kwds)) {
13618 Py_ssize_t kw_args;
13619 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13620 switch (pos_args) {
13621 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
13622 CYTHON_FALLTHROUGH;
13623 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13624 CYTHON_FALLTHROUGH;
13625 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13626 CYTHON_FALLTHROUGH;
13627 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13628 CYTHON_FALLTHROUGH;
13629 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13630 CYTHON_FALLTHROUGH;
13631 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13632 CYTHON_FALLTHROUGH;
13633 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13634 CYTHON_FALLTHROUGH;
13635 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13636 CYTHON_FALLTHROUGH;
13637 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13638 CYTHON_FALLTHROUGH;
13639 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13640 CYTHON_FALLTHROUGH;
13641 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13642 CYTHON_FALLTHROUGH;
13643 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13644 CYTHON_FALLTHROUGH;
13645 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13646 CYTHON_FALLTHROUGH;
13647 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13648 CYTHON_FALLTHROUGH;
13649 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13650 CYTHON_FALLTHROUGH;
13651 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13652 CYTHON_FALLTHROUGH;
13653 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13654 CYTHON_FALLTHROUGH;
13655 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13656 CYTHON_FALLTHROUGH;
13657 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13658 CYTHON_FALLTHROUGH;
13659 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13660 CYTHON_FALLTHROUGH;
13661 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13662 CYTHON_FALLTHROUGH;
13663 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13664 CYTHON_FALLTHROUGH;
13665 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13666 CYTHON_FALLTHROUGH;
13667 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13668 CYTHON_FALLTHROUGH;
13669 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13670 CYTHON_FALLTHROUGH;
13671 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13672 CYTHON_FALLTHROUGH;
13673 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13674 CYTHON_FALLTHROUGH;
13675 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13676 CYTHON_FALLTHROUGH;
13677 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13678 CYTHON_FALLTHROUGH;
13679 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13680 CYTHON_FALLTHROUGH;
13681 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13682 CYTHON_FALLTHROUGH;
13683 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13684 CYTHON_FALLTHROUGH;
13685 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13686 CYTHON_FALLTHROUGH;
13687 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13688 CYTHON_FALLTHROUGH;
13689 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13690 CYTHON_FALLTHROUGH;
13691 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13692 CYTHON_FALLTHROUGH;
13693 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13694 CYTHON_FALLTHROUGH;
13695 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13696 CYTHON_FALLTHROUGH;
13698 default:
goto __pyx_L5_argtuple_error;
13700 kw_args = PyDict_Size(__pyx_kwds);
13701 switch (pos_args) {
13703 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_ww)) != 0)) kw_args--;
13704 else goto __pyx_L5_argtuple_error;
13705 CYTHON_FALLTHROUGH;
13707 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_ww)) != 0)) kw_args--;
13709 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 1); __PYX_ERR(0, 3613, __pyx_L3_error)
13711 CYTHON_FALLTHROUGH;
13713 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_nn)) != 0)) kw_args--;
13715 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 2); __PYX_ERR(0, 3613, __pyx_L3_error)
13717 CYTHON_FALLTHROUGH;
13719 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_nn)) != 0)) kw_args--;
13721 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 3); __PYX_ERR(0, 3613, __pyx_L3_error)
13723 CYTHON_FALLTHROUGH;
13725 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
13727 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 4); __PYX_ERR(0, 3613, __pyx_L3_error)
13729 CYTHON_FALLTHROUGH;
13731 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
13733 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 5); __PYX_ERR(0, 3613, __pyx_L3_error)
13735 CYTHON_FALLTHROUGH;
13737 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
13739 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 6); __PYX_ERR(0, 3613, __pyx_L3_error)
13741 CYTHON_FALLTHROUGH;
13743 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
13745 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 7); __PYX_ERR(0, 3613, __pyx_L3_error)
13747 CYTHON_FALLTHROUGH;
13749 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
13751 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 8); __PYX_ERR(0, 3613, __pyx_L3_error)
13753 CYTHON_FALLTHROUGH;
13755 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
13757 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 9); __PYX_ERR(0, 3613, __pyx_L3_error)
13759 CYTHON_FALLTHROUGH;
13761 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
13763 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 10); __PYX_ERR(0, 3613, __pyx_L3_error)
13765 CYTHON_FALLTHROUGH;
13767 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
13769 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 11); __PYX_ERR(0, 3613, __pyx_L3_error)
13771 CYTHON_FALLTHROUGH;
13773 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
13775 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 12); __PYX_ERR(0, 3613, __pyx_L3_error)
13777 CYTHON_FALLTHROUGH;
13779 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
13781 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 13); __PYX_ERR(0, 3613, __pyx_L3_error)
13783 CYTHON_FALLTHROUGH;
13785 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dw)) != 0)) kw_args--;
13787 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 14); __PYX_ERR(0, 3613, __pyx_L3_error)
13789 CYTHON_FALLTHROUGH;
13791 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dn)) != 0)) kw_args--;
13793 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 15); __PYX_ERR(0, 3613, __pyx_L3_error)
13795 CYTHON_FALLTHROUGH;
13797 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
13799 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 16); __PYX_ERR(0, 3613, __pyx_L3_error)
13801 CYTHON_FALLTHROUGH;
13803 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dw)) != 0)) kw_args--;
13805 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 17); __PYX_ERR(0, 3613, __pyx_L3_error)
13807 CYTHON_FALLTHROUGH;
13809 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dn)) != 0)) kw_args--;
13811 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 18); __PYX_ERR(0, 3613, __pyx_L3_error)
13813 CYTHON_FALLTHROUGH;
13815 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
13817 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 19); __PYX_ERR(0, 3613, __pyx_L3_error)
13819 CYTHON_FALLTHROUGH;
13821 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
13823 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 20); __PYX_ERR(0, 3613, __pyx_L3_error)
13825 CYTHON_FALLTHROUGH;
13827 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
13829 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 21); __PYX_ERR(0, 3613, __pyx_L3_error)
13831 CYTHON_FALLTHROUGH;
13833 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_n)) != 0)) kw_args--;
13835 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 22); __PYX_ERR(0, 3613, __pyx_L3_error)
13837 CYTHON_FALLTHROUGH;
13839 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_w)) != 0)) kw_args--;
13841 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 23); __PYX_ERR(0, 3613, __pyx_L3_error)
13843 CYTHON_FALLTHROUGH;
13845 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_n)) != 0)) kw_args--;
13847 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 24); __PYX_ERR(0, 3613, __pyx_L3_error)
13849 CYTHON_FALLTHROUGH;
13851 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s_w)) != 0)) kw_args--;
13853 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 25); __PYX_ERR(0, 3613, __pyx_L3_error)
13855 CYTHON_FALLTHROUGH;
13857 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
13859 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 26); __PYX_ERR(0, 3613, __pyx_L3_error)
13861 CYTHON_FALLTHROUGH;
13863 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
13865 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 27); __PYX_ERR(0, 3613, __pyx_L3_error)
13867 CYTHON_FALLTHROUGH;
13869 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dsw)) != 0)) kw_args--;
13871 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 28); __PYX_ERR(0, 3613, __pyx_L3_error)
13873 CYTHON_FALLTHROUGH;
13875 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsiw)) != 0)) kw_args--;
13877 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 29); __PYX_ERR(0, 3613, __pyx_L3_error)
13879 CYTHON_FALLTHROUGH;
13881 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13883 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 30); __PYX_ERR(0, 3613, __pyx_L3_error)
13885 CYTHON_FALLTHROUGH;
13887 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
13889 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 31); __PYX_ERR(0, 3613, __pyx_L3_error)
13891 CYTHON_FALLTHROUGH;
13893 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
13895 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 32); __PYX_ERR(0, 3613, __pyx_L3_error)
13897 CYTHON_FALLTHROUGH;
13899 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
13901 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 33); __PYX_ERR(0, 3613, __pyx_L3_error)
13903 CYTHON_FALLTHROUGH;
13905 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
13907 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 34); __PYX_ERR(0, 3613, __pyx_L3_error)
13909 CYTHON_FALLTHROUGH;
13911 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wn)) != 0)) kw_args--;
13913 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 35); __PYX_ERR(0, 3613, __pyx_L3_error)
13915 CYTHON_FALLTHROUGH;
13917 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nw)) != 0)) kw_args--;
13919 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 36); __PYX_ERR(0, 3613, __pyx_L3_error)
13921 CYTHON_FALLTHROUGH;
13923 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nn)) != 0)) kw_args--;
13925 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, 37); __PYX_ERR(0, 3613, __pyx_L3_error)
13928 if (unlikely(kw_args > 0)) {
13929 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 3613, __pyx_L3_error)
13931 }
else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
13932 goto __pyx_L5_argtuple_error;
13934 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13935 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13936 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13937 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13938 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13939 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13940 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13941 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13942 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13943 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13944 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13945 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
13946 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
13947 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
13948 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
13949 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
13950 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
13951 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
13952 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
13953 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
13954 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
13955 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
13956 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
13957 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
13958 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
13959 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
13960 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
13961 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
13962 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
13963 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
13964 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
13965 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
13966 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
13967 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
13968 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
13969 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
13970 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
13971 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
13973 __pyx_v_rowptr_ww = ((PyArrayObject *)values[0]);
13974 __pyx_v_colind_ww = ((PyArrayObject *)values[1]);
13975 __pyx_v_rowptr_nn = ((PyArrayObject *)values[2]);
13976 __pyx_v_colind_nn = ((PyArrayObject *)values[3]);
13977 __pyx_v_l2g = ((PyArrayObject *)values[4]);
13978 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
13979 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
13980 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
13981 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[8]);
13982 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[9]);
13983 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[10]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3623, __pyx_L3_error)
13984 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[11]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3624, __pyx_L3_error)
13985 __pyx_v_n = ((PyArrayObject *)values[12]);
13986 __pyx_v_a_ww = ((PyArrayObject *)values[13]);
13987 __pyx_v_da_ww_dw = ((PyArrayObject *)values[14]);
13988 __pyx_v_da_ww_dn = ((PyArrayObject *)values[15]);
13989 __pyx_v_a_nn = ((PyArrayObject *)values[16]);
13990 __pyx_v_da_nn_dw = ((PyArrayObject *)values[17]);
13991 __pyx_v_da_nn_dn = ((PyArrayObject *)values[18]);
13992 __pyx_v_grad_phi_w = ((PyArrayObject *)values[19]);
13993 __pyx_v_grad_phi_n = ((PyArrayObject *)values[20]);
13994 __pyx_v_dphi_w_w = ((PyArrayObject *)values[21]);
13995 __pyx_v_dphi_w_n = ((PyArrayObject *)values[22]);
13996 __pyx_v_dphi_n_w = ((PyArrayObject *)values[23]);
13997 __pyx_v_dphi_n_n = ((PyArrayObject *)values[24]);
13998 __pyx_v_s_w = ((PyArrayObject *)values[25]);
13999 __pyx_v_psi_w = ((PyArrayObject *)values[26]);
14000 __pyx_v_psi_n = ((PyArrayObject *)values[27]);
14001 __pyx_v_dpsi_n_dsw = ((PyArrayObject *)values[28]);
14002 __pyx_v_dpsi_n_dpsiw = ((PyArrayObject *)values[29]);
14003 __pyx_v_v = ((PyArrayObject *)values[30]);
14004 __pyx_v_grad_v = ((PyArrayObject *)values[31]);
14005 __pyx_v_penalty_w = ((PyArrayObject *)values[32]);
14006 __pyx_v_penalty_n = ((PyArrayObject *)values[33]);
14007 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[34]);
14008 __pyx_v_fluxJacobian_wn = ((PyArrayObject *)values[35]);
14009 __pyx_v_fluxJacobian_nw = ((PyArrayObject *)values[36]);
14010 __pyx_v_fluxJacobian_nn = ((PyArrayObject *)values[37]);
14012 goto __pyx_L4_argument_unpacking_done;
14013 __pyx_L5_argtuple_error:;
14014 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3613, __pyx_L3_error)
14016 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
14017 __Pyx_RefNannyFinishContext();
14019 __pyx_L4_argument_unpacking_done:;
14020 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_ww), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_ww", 0))) __PYX_ERR(0, 3613, __pyx_L1_error)
14021 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_ww), __pyx_ptype_5numpy_ndarray, 1,
"colind_ww", 0))) __PYX_ERR(0, 3614, __pyx_L1_error)
14022 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_nn), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_nn", 0))) __PYX_ERR(0, 3615, __pyx_L1_error)
14023 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_nn), __pyx_ptype_5numpy_ndarray, 1,
"colind_nn", 0))) __PYX_ERR(0, 3616, __pyx_L1_error)
14024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3617, __pyx_L1_error)
14025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3618, __pyx_L1_error)
14026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3619, __pyx_L1_error)
14027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3620, __pyx_L1_error)
14028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3621, __pyx_L1_error)
14029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3622, __pyx_L1_error)
14030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3625, __pyx_L1_error)
14031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3626, __pyx_L1_error)
14032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dw", 0))) __PYX_ERR(0, 3627, __pyx_L1_error)
14033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dn", 0))) __PYX_ERR(0, 3628, __pyx_L1_error)
14034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3629, __pyx_L1_error)
14035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dw", 0))) __PYX_ERR(0, 3630, __pyx_L1_error)
14036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dn", 0))) __PYX_ERR(0, 3631, __pyx_L1_error)
14037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3632, __pyx_L1_error)
14038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3633, __pyx_L1_error)
14039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 3634, __pyx_L1_error)
14040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_n", 0))) __PYX_ERR(0, 3635, __pyx_L1_error)
14041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_w", 0))) __PYX_ERR(0, 3636, __pyx_L1_error)
14042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_n", 0))) __PYX_ERR(0, 3637, __pyx_L1_error)
14043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s_w), __pyx_ptype_5numpy_ndarray, 1,
"s_w", 0))) __PYX_ERR(0, 3638, __pyx_L1_error)
14044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3639, __pyx_L1_error)
14045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3640, __pyx_L1_error)
14046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dsw", 0))) __PYX_ERR(0, 3641, __pyx_L1_error)
14047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsiw", 0))) __PYX_ERR(0, 3642, __pyx_L1_error)
14048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
14049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3644, __pyx_L1_error)
14050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3645, __pyx_L1_error)
14051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3646, __pyx_L1_error)
14052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 3647, __pyx_L1_error)
14053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wn", 0))) __PYX_ERR(0, 3648, __pyx_L1_error)
14054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nw", 0))) __PYX_ERR(0, 3649, __pyx_L1_error)
14055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nn", 0))) __PYX_ERR(0, 3650, __pyx_L1_error)
14056 __pyx_r = __pyx_pf_14cnumericalFlux_74calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd(__pyx_self, __pyx_v_rowptr_ww, __pyx_v_colind_ww, __pyx_v_rowptr_nn, __pyx_v_colind_nn, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_a_ww, __pyx_v_da_ww_dw, __pyx_v_da_ww_dn, __pyx_v_a_nn, __pyx_v_da_nn_dw, __pyx_v_da_nn_dn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_dphi_w_w, __pyx_v_dphi_w_n, __pyx_v_dphi_n_w, __pyx_v_dphi_n_n, __pyx_v_s_w, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_dpsi_n_dsw, __pyx_v_dpsi_n_dpsiw, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wn, __pyx_v_fluxJacobian_nw, __pyx_v_fluxJacobian_nn);
14063 __Pyx_RefNannyFinishContext();
14067 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) {
14068 PyObject *__pyx_r = NULL;
14069 __Pyx_RefNannyDeclarations
14070 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd", 0);
14079 calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_rowptr_ww->data), ((
int *)__pyx_v_colind_ww->data), ((
int *)__pyx_v_rowptr_nn->data), ((
int *)__pyx_v_colind_nn->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_da_ww_dw->data), ((
double *)__pyx_v_da_ww_dn->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_da_nn_dw->data), ((
double *)__pyx_v_da_nn_dn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_n->data), ((
double *)__pyx_v_dphi_n_w->data), ((
double *)__pyx_v_dphi_n_n->data), ((
double *)__pyx_v_s_w->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_dpsi_n_dsw->data), ((
double *)__pyx_v_dpsi_n_dpsiw->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wn->data), ((
double *)__pyx_v_fluxJacobian_nw->data), ((
double *)__pyx_v_fluxJacobian_nn->data));
14090 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14091 __Pyx_XGIVEREF(__pyx_r);
14092 __Pyx_RefNannyFinishContext();
14105 static PyObject *__pyx_pw_14cnumericalFlux_77calculateGlobalExteriorNumericalFluxDarcyFCPP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14106 static PyMethodDef __pyx_mdef_14cnumericalFlux_77calculateGlobalExteriorNumericalFluxDarcyFCPP = {
"calculateGlobalExteriorNumericalFluxDarcyFCPP", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_77calculateGlobalExteriorNumericalFluxDarcyFCPP, METH_VARARGS|METH_KEYWORDS, 0};
14107 static PyObject *__pyx_pw_14cnumericalFlux_77calculateGlobalExteriorNumericalFluxDarcyFCPP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14108 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
14109 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
14110 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
14111 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
14112 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
14113 int __pyx_v_fluxBoundaryFlag_uw;
14114 int __pyx_v_fluxBoundaryFlag_un;
14115 PyArrayObject *__pyx_v_n = 0;
14116 PyArrayObject *__pyx_v_bc_a_ww = 0;
14117 PyArrayObject *__pyx_v_bc_a_nn = 0;
14118 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
14119 PyArrayObject *__pyx_v_bc_grad_phi_n = 0;
14120 PyArrayObject *__pyx_v_bc_psi_w = 0;
14121 PyArrayObject *__pyx_v_bc_psi_c = 0;
14122 PyArrayObject *__pyx_v_bc_psi_n = 0;
14123 PyArrayObject *__pyx_v_a_ww = 0;
14124 PyArrayObject *__pyx_v_a_nn = 0;
14125 PyArrayObject *__pyx_v_grad_phi_w = 0;
14126 PyArrayObject *__pyx_v_grad_phi_n = 0;
14127 PyArrayObject *__pyx_v_psi_w = 0;
14128 PyArrayObject *__pyx_v_psi_c = 0;
14129 PyArrayObject *__pyx_v_psi_n = 0;
14130 PyArrayObject *__pyx_v_penalty_w = 0;
14131 PyArrayObject *__pyx_v_penalty_n = 0;
14132 PyArrayObject *__pyx_v_diffusiveFlux_ww = 0;
14133 PyArrayObject *__pyx_v_diffusiveFlux_nn = 0;
14134 int __pyx_lineno = 0;
14135 const char *__pyx_filename = NULL;
14136 int __pyx_clineno = 0;
14137 PyObject *__pyx_r = 0;
14138 __Pyx_RefNannyDeclarations
14139 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP (wrapper)", 0);
14141 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_bc_a_ww,&__pyx_n_s_bc_a_nn,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_n,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_c,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a_ww,&__pyx_n_s_a_nn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_psi_w,&__pyx_n_s_psi_c,&__pyx_n_s_psi_n,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_diffusiveFlux_ww,&__pyx_n_s_diffusiveFlux_nn,0};
14142 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14143 if (unlikely(__pyx_kwds)) {
14144 Py_ssize_t kw_args;
14145 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14146 switch (pos_args) {
14147 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14148 CYTHON_FALLTHROUGH;
14149 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14150 CYTHON_FALLTHROUGH;
14151 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14152 CYTHON_FALLTHROUGH;
14153 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14154 CYTHON_FALLTHROUGH;
14155 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14156 CYTHON_FALLTHROUGH;
14157 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14158 CYTHON_FALLTHROUGH;
14159 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14160 CYTHON_FALLTHROUGH;
14161 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14162 CYTHON_FALLTHROUGH;
14163 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14164 CYTHON_FALLTHROUGH;
14165 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14166 CYTHON_FALLTHROUGH;
14167 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14168 CYTHON_FALLTHROUGH;
14169 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14170 CYTHON_FALLTHROUGH;
14171 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14172 CYTHON_FALLTHROUGH;
14173 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14174 CYTHON_FALLTHROUGH;
14175 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14176 CYTHON_FALLTHROUGH;
14177 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14178 CYTHON_FALLTHROUGH;
14179 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14180 CYTHON_FALLTHROUGH;
14181 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14182 CYTHON_FALLTHROUGH;
14183 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14184 CYTHON_FALLTHROUGH;
14185 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14186 CYTHON_FALLTHROUGH;
14187 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14188 CYTHON_FALLTHROUGH;
14189 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14190 CYTHON_FALLTHROUGH;
14191 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14192 CYTHON_FALLTHROUGH;
14193 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14194 CYTHON_FALLTHROUGH;
14195 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14196 CYTHON_FALLTHROUGH;
14197 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14198 CYTHON_FALLTHROUGH;
14200 default:
goto __pyx_L5_argtuple_error;
14202 kw_args = PyDict_Size(__pyx_kwds);
14203 switch (pos_args) {
14205 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
14206 else goto __pyx_L5_argtuple_error;
14207 CYTHON_FALLTHROUGH;
14209 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
14211 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 1); __PYX_ERR(0, 3693, __pyx_L3_error)
14213 CYTHON_FALLTHROUGH;
14215 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
14217 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 2); __PYX_ERR(0, 3693, __pyx_L3_error)
14219 CYTHON_FALLTHROUGH;
14221 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
14223 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 3); __PYX_ERR(0, 3693, __pyx_L3_error)
14225 CYTHON_FALLTHROUGH;
14227 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
14229 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 4); __PYX_ERR(0, 3693, __pyx_L3_error)
14231 CYTHON_FALLTHROUGH;
14233 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
14235 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 5); __PYX_ERR(0, 3693, __pyx_L3_error)
14237 CYTHON_FALLTHROUGH;
14239 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
14241 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 6); __PYX_ERR(0, 3693, __pyx_L3_error)
14243 CYTHON_FALLTHROUGH;
14245 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
14247 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 7); __PYX_ERR(0, 3693, __pyx_L3_error)
14249 CYTHON_FALLTHROUGH;
14251 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_ww)) != 0)) kw_args--;
14253 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 8); __PYX_ERR(0, 3693, __pyx_L3_error)
14255 CYTHON_FALLTHROUGH;
14257 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_nn)) != 0)) kw_args--;
14259 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 9); __PYX_ERR(0, 3693, __pyx_L3_error)
14261 CYTHON_FALLTHROUGH;
14263 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
14265 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 10); __PYX_ERR(0, 3693, __pyx_L3_error)
14267 CYTHON_FALLTHROUGH;
14269 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_n)) != 0)) kw_args--;
14271 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 11); __PYX_ERR(0, 3693, __pyx_L3_error)
14273 CYTHON_FALLTHROUGH;
14275 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
14277 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 12); __PYX_ERR(0, 3693, __pyx_L3_error)
14279 CYTHON_FALLTHROUGH;
14281 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_c)) != 0)) kw_args--;
14283 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 13); __PYX_ERR(0, 3693, __pyx_L3_error)
14285 CYTHON_FALLTHROUGH;
14287 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
14289 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 14); __PYX_ERR(0, 3693, __pyx_L3_error)
14291 CYTHON_FALLTHROUGH;
14293 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
14295 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 15); __PYX_ERR(0, 3693, __pyx_L3_error)
14297 CYTHON_FALLTHROUGH;
14299 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
14301 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 16); __PYX_ERR(0, 3693, __pyx_L3_error)
14303 CYTHON_FALLTHROUGH;
14305 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
14307 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 17); __PYX_ERR(0, 3693, __pyx_L3_error)
14309 CYTHON_FALLTHROUGH;
14311 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
14313 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 18); __PYX_ERR(0, 3693, __pyx_L3_error)
14315 CYTHON_FALLTHROUGH;
14317 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
14319 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 19); __PYX_ERR(0, 3693, __pyx_L3_error)
14321 CYTHON_FALLTHROUGH;
14323 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_c)) != 0)) kw_args--;
14325 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 20); __PYX_ERR(0, 3693, __pyx_L3_error)
14327 CYTHON_FALLTHROUGH;
14329 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
14331 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 21); __PYX_ERR(0, 3693, __pyx_L3_error)
14333 CYTHON_FALLTHROUGH;
14335 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
14337 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 22); __PYX_ERR(0, 3693, __pyx_L3_error)
14339 CYTHON_FALLTHROUGH;
14341 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
14343 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 23); __PYX_ERR(0, 3693, __pyx_L3_error)
14345 CYTHON_FALLTHROUGH;
14347 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_ww)) != 0)) kw_args--;
14349 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 24); __PYX_ERR(0, 3693, __pyx_L3_error)
14351 CYTHON_FALLTHROUGH;
14353 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_nn)) != 0)) kw_args--;
14355 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, 25); __PYX_ERR(0, 3693, __pyx_L3_error)
14358 if (unlikely(kw_args > 0)) {
14359 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCPP") < 0)) __PYX_ERR(0, 3693, __pyx_L3_error)
14361 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
14362 goto __pyx_L5_argtuple_error;
14364 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14365 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14366 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14367 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14368 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14369 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14370 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14371 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14372 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14373 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14374 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14375 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14376 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14377 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14378 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14379 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14380 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14381 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14382 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14383 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14384 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14385 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14386 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14387 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14388 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14389 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14391 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
14392 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
14393 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
14394 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[3]);
14395 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[4]);
14396 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3698, __pyx_L3_error)
14397 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3699, __pyx_L3_error)
14398 __pyx_v_n = ((PyArrayObject *)values[7]);
14399 __pyx_v_bc_a_ww = ((PyArrayObject *)values[8]);
14400 __pyx_v_bc_a_nn = ((PyArrayObject *)values[9]);
14401 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[10]);
14402 __pyx_v_bc_grad_phi_n = ((PyArrayObject *)values[11]);
14403 __pyx_v_bc_psi_w = ((PyArrayObject *)values[12]);
14404 __pyx_v_bc_psi_c = ((PyArrayObject *)values[13]);
14405 __pyx_v_bc_psi_n = ((PyArrayObject *)values[14]);
14406 __pyx_v_a_ww = ((PyArrayObject *)values[15]);
14407 __pyx_v_a_nn = ((PyArrayObject *)values[16]);
14408 __pyx_v_grad_phi_w = ((PyArrayObject *)values[17]);
14409 __pyx_v_grad_phi_n = ((PyArrayObject *)values[18]);
14410 __pyx_v_psi_w = ((PyArrayObject *)values[19]);
14411 __pyx_v_psi_c = ((PyArrayObject *)values[20]);
14412 __pyx_v_psi_n = ((PyArrayObject *)values[21]);
14413 __pyx_v_penalty_w = ((PyArrayObject *)values[22]);
14414 __pyx_v_penalty_n = ((PyArrayObject *)values[23]);
14415 __pyx_v_diffusiveFlux_ww = ((PyArrayObject *)values[24]);
14416 __pyx_v_diffusiveFlux_nn = ((PyArrayObject *)values[25]);
14418 goto __pyx_L4_argument_unpacking_done;
14419 __pyx_L5_argtuple_error:;
14420 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3693, __pyx_L3_error)
14422 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCPP", __pyx_clineno, __pyx_lineno, __pyx_filename);
14423 __Pyx_RefNannyFinishContext();
14425 __pyx_L4_argument_unpacking_done:;
14426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3693, __pyx_L1_error)
14427 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3694, __pyx_L1_error)
14428 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3695, __pyx_L1_error)
14429 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3696, __pyx_L1_error)
14430 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3697, __pyx_L1_error)
14431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3700, __pyx_L1_error)
14432 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_ww", 0))) __PYX_ERR(0, 3701, __pyx_L1_error)
14433 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_nn", 0))) __PYX_ERR(0, 3702, __pyx_L1_error)
14434 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 3703, __pyx_L1_error)
14435 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_n", 0))) __PYX_ERR(0, 3704, __pyx_L1_error)
14436 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 3705, __pyx_L1_error)
14437 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_c", 0))) __PYX_ERR(0, 3706, __pyx_L1_error)
14438 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 3707, __pyx_L1_error)
14439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3708, __pyx_L1_error)
14440 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3709, __pyx_L1_error)
14441 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3710, __pyx_L1_error)
14442 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3711, __pyx_L1_error)
14443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3712, __pyx_L1_error)
14444 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"psi_c", 0))) __PYX_ERR(0, 3713, __pyx_L1_error)
14445 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3714, __pyx_L1_error)
14446 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3715, __pyx_L1_error)
14447 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3716, __pyx_L1_error)
14448 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_ww), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_ww", 0))) __PYX_ERR(0, 3717, __pyx_L1_error)
14449 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_nn), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_nn", 0))) __PYX_ERR(0, 3718, __pyx_L1_error)
14450 __pyx_r = __pyx_pf_14cnumericalFlux_76calculateGlobalExteriorNumericalFluxDarcyFCPP(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_bc_a_ww, __pyx_v_bc_a_nn, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_n, __pyx_v_bc_psi_w, __pyx_v_bc_psi_c, __pyx_v_bc_psi_n, __pyx_v_a_ww, __pyx_v_a_nn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_psi_w, __pyx_v_psi_c, __pyx_v_psi_n, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_diffusiveFlux_ww, __pyx_v_diffusiveFlux_nn);
14457 __Pyx_RefNannyFinishContext();
14461 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) {
14462 PyObject *__pyx_r = NULL;
14463 __Pyx_RefNannyDeclarations
14464 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP", 0);
14473 calculateGlobalExteriorNumericalFluxDarcyFCPP((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a_ww->data), ((
double *)__pyx_v_bc_a_nn->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_n->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_c->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_c->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_diffusiveFlux_ww->data), ((
double *)__pyx_v_diffusiveFlux_nn->data));
14484 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14485 __Pyx_XGIVEREF(__pyx_r);
14486 __Pyx_RefNannyFinishContext();
14499 static PyObject *__pyx_pw_14cnumericalFlux_79calculateGlobalExteriorNumericalFluxDarcyFCPP_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14500 static PyMethodDef __pyx_mdef_14cnumericalFlux_79calculateGlobalExteriorNumericalFluxDarcyFCPP_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_79calculateGlobalExteriorNumericalFluxDarcyFCPP_sd, METH_VARARGS|METH_KEYWORDS, 0};
14501 static PyObject *__pyx_pw_14cnumericalFlux_79calculateGlobalExteriorNumericalFluxDarcyFCPP_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14502 PyArrayObject *__pyx_v_rowptr_ww = 0;
14503 PyArrayObject *__pyx_v_colind_ww = 0;
14504 PyArrayObject *__pyx_v_rowptr_nn = 0;
14505 PyArrayObject *__pyx_v_colind_nn = 0;
14506 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
14507 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
14508 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
14509 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
14510 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
14511 int __pyx_v_fluxBoundaryFlag_uw;
14512 int __pyx_v_fluxBoundaryFlag_un;
14513 PyArrayObject *__pyx_v_n = 0;
14514 PyArrayObject *__pyx_v_bc_a_ww = 0;
14515 PyArrayObject *__pyx_v_bc_a_nn = 0;
14516 PyArrayObject *__pyx_v_bc_grad_phi_w = 0;
14517 PyArrayObject *__pyx_v_bc_grad_phi_n = 0;
14518 PyArrayObject *__pyx_v_bc_psi_w = 0;
14519 PyArrayObject *__pyx_v_bc_psi_c = 0;
14520 PyArrayObject *__pyx_v_bc_psi_n = 0;
14521 PyArrayObject *__pyx_v_a_ww = 0;
14522 PyArrayObject *__pyx_v_a_nn = 0;
14523 PyArrayObject *__pyx_v_grad_phi_w = 0;
14524 PyArrayObject *__pyx_v_grad_phi_n = 0;
14525 PyArrayObject *__pyx_v_psi_w = 0;
14526 PyArrayObject *__pyx_v_psi_c = 0;
14527 PyArrayObject *__pyx_v_psi_n = 0;
14528 PyArrayObject *__pyx_v_penalty_w = 0;
14529 PyArrayObject *__pyx_v_penalty_n = 0;
14530 PyArrayObject *__pyx_v_diffusiveFlux_ww = 0;
14531 PyArrayObject *__pyx_v_diffusiveFlux_nn = 0;
14532 int __pyx_lineno = 0;
14533 const char *__pyx_filename = NULL;
14534 int __pyx_clineno = 0;
14535 PyObject *__pyx_r = 0;
14536 __Pyx_RefNannyDeclarations
14537 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd (wrapper)", 0);
14539 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_ww,&__pyx_n_s_colind_ww,&__pyx_n_s_rowptr_nn,&__pyx_n_s_colind_nn,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_bc_a_ww,&__pyx_n_s_bc_a_nn,&__pyx_n_s_bc_grad_phi_w,&__pyx_n_s_bc_grad_phi_n,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_c,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a_ww,&__pyx_n_s_a_nn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_psi_w,&__pyx_n_s_psi_c,&__pyx_n_s_psi_n,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_diffusiveFlux_ww,&__pyx_n_s_diffusiveFlux_nn,0};
14540 PyObject* values[30] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14541 if (unlikely(__pyx_kwds)) {
14542 Py_ssize_t kw_args;
14543 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14544 switch (pos_args) {
14545 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14546 CYTHON_FALLTHROUGH;
14547 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14548 CYTHON_FALLTHROUGH;
14549 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14550 CYTHON_FALLTHROUGH;
14551 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14552 CYTHON_FALLTHROUGH;
14553 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14554 CYTHON_FALLTHROUGH;
14555 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14556 CYTHON_FALLTHROUGH;
14557 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14558 CYTHON_FALLTHROUGH;
14559 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14560 CYTHON_FALLTHROUGH;
14561 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14562 CYTHON_FALLTHROUGH;
14563 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14564 CYTHON_FALLTHROUGH;
14565 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14566 CYTHON_FALLTHROUGH;
14567 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14568 CYTHON_FALLTHROUGH;
14569 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14570 CYTHON_FALLTHROUGH;
14571 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14572 CYTHON_FALLTHROUGH;
14573 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14574 CYTHON_FALLTHROUGH;
14575 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14576 CYTHON_FALLTHROUGH;
14577 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14578 CYTHON_FALLTHROUGH;
14579 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14580 CYTHON_FALLTHROUGH;
14581 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14582 CYTHON_FALLTHROUGH;
14583 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14584 CYTHON_FALLTHROUGH;
14585 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14586 CYTHON_FALLTHROUGH;
14587 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14588 CYTHON_FALLTHROUGH;
14589 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14590 CYTHON_FALLTHROUGH;
14591 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14592 CYTHON_FALLTHROUGH;
14593 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14594 CYTHON_FALLTHROUGH;
14595 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14596 CYTHON_FALLTHROUGH;
14597 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14598 CYTHON_FALLTHROUGH;
14599 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14600 CYTHON_FALLTHROUGH;
14601 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14602 CYTHON_FALLTHROUGH;
14603 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14604 CYTHON_FALLTHROUGH;
14606 default:
goto __pyx_L5_argtuple_error;
14608 kw_args = PyDict_Size(__pyx_kwds);
14609 switch (pos_args) {
14611 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_ww)) != 0)) kw_args--;
14612 else goto __pyx_L5_argtuple_error;
14613 CYTHON_FALLTHROUGH;
14615 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_ww)) != 0)) kw_args--;
14617 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 1); __PYX_ERR(0, 3748, __pyx_L3_error)
14619 CYTHON_FALLTHROUGH;
14621 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_nn)) != 0)) kw_args--;
14623 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 2); __PYX_ERR(0, 3748, __pyx_L3_error)
14625 CYTHON_FALLTHROUGH;
14627 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_nn)) != 0)) kw_args--;
14629 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 3); __PYX_ERR(0, 3748, __pyx_L3_error)
14631 CYTHON_FALLTHROUGH;
14633 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
14635 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 4); __PYX_ERR(0, 3748, __pyx_L3_error)
14637 CYTHON_FALLTHROUGH;
14639 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
14641 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 5); __PYX_ERR(0, 3748, __pyx_L3_error)
14643 CYTHON_FALLTHROUGH;
14645 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
14647 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 6); __PYX_ERR(0, 3748, __pyx_L3_error)
14649 CYTHON_FALLTHROUGH;
14651 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
14653 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 7); __PYX_ERR(0, 3748, __pyx_L3_error)
14655 CYTHON_FALLTHROUGH;
14657 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
14659 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 8); __PYX_ERR(0, 3748, __pyx_L3_error)
14661 CYTHON_FALLTHROUGH;
14663 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
14665 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 9); __PYX_ERR(0, 3748, __pyx_L3_error)
14667 CYTHON_FALLTHROUGH;
14669 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
14671 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 10); __PYX_ERR(0, 3748, __pyx_L3_error)
14673 CYTHON_FALLTHROUGH;
14675 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
14677 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 11); __PYX_ERR(0, 3748, __pyx_L3_error)
14679 CYTHON_FALLTHROUGH;
14681 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_ww)) != 0)) kw_args--;
14683 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 12); __PYX_ERR(0, 3748, __pyx_L3_error)
14685 CYTHON_FALLTHROUGH;
14687 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a_nn)) != 0)) kw_args--;
14689 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 13); __PYX_ERR(0, 3748, __pyx_L3_error)
14691 CYTHON_FALLTHROUGH;
14693 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_w)) != 0)) kw_args--;
14695 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 14); __PYX_ERR(0, 3748, __pyx_L3_error)
14697 CYTHON_FALLTHROUGH;
14699 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi_n)) != 0)) kw_args--;
14701 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 15); __PYX_ERR(0, 3748, __pyx_L3_error)
14703 CYTHON_FALLTHROUGH;
14705 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
14707 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 16); __PYX_ERR(0, 3748, __pyx_L3_error)
14709 CYTHON_FALLTHROUGH;
14711 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_c)) != 0)) kw_args--;
14713 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 17); __PYX_ERR(0, 3748, __pyx_L3_error)
14715 CYTHON_FALLTHROUGH;
14717 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
14719 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 18); __PYX_ERR(0, 3748, __pyx_L3_error)
14721 CYTHON_FALLTHROUGH;
14723 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
14725 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 19); __PYX_ERR(0, 3748, __pyx_L3_error)
14727 CYTHON_FALLTHROUGH;
14729 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
14731 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 20); __PYX_ERR(0, 3748, __pyx_L3_error)
14733 CYTHON_FALLTHROUGH;
14735 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
14737 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 21); __PYX_ERR(0, 3748, __pyx_L3_error)
14739 CYTHON_FALLTHROUGH;
14741 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
14743 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 22); __PYX_ERR(0, 3748, __pyx_L3_error)
14745 CYTHON_FALLTHROUGH;
14747 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
14749 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 23); __PYX_ERR(0, 3748, __pyx_L3_error)
14751 CYTHON_FALLTHROUGH;
14753 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_c)) != 0)) kw_args--;
14755 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 24); __PYX_ERR(0, 3748, __pyx_L3_error)
14757 CYTHON_FALLTHROUGH;
14759 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
14761 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 25); __PYX_ERR(0, 3748, __pyx_L3_error)
14763 CYTHON_FALLTHROUGH;
14765 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
14767 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 26); __PYX_ERR(0, 3748, __pyx_L3_error)
14769 CYTHON_FALLTHROUGH;
14771 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
14773 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 27); __PYX_ERR(0, 3748, __pyx_L3_error)
14775 CYTHON_FALLTHROUGH;
14777 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_ww)) != 0)) kw_args--;
14779 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 28); __PYX_ERR(0, 3748, __pyx_L3_error)
14781 CYTHON_FALLTHROUGH;
14783 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux_nn)) != 0)) kw_args--;
14785 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, 29); __PYX_ERR(0, 3748, __pyx_L3_error)
14788 if (unlikely(kw_args > 0)) {
14789 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd") < 0)) __PYX_ERR(0, 3748, __pyx_L3_error)
14791 }
else if (PyTuple_GET_SIZE(__pyx_args) != 30) {
14792 goto __pyx_L5_argtuple_error;
14794 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14795 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14796 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14797 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14798 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14799 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14800 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14801 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14802 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14803 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
14804 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
14805 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
14806 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
14807 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
14808 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
14809 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
14810 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
14811 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
14812 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
14813 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
14814 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
14815 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
14816 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
14817 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
14818 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
14819 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
14820 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
14821 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
14822 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
14823 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
14825 __pyx_v_rowptr_ww = ((PyArrayObject *)values[0]);
14826 __pyx_v_colind_ww = ((PyArrayObject *)values[1]);
14827 __pyx_v_rowptr_nn = ((PyArrayObject *)values[2]);
14828 __pyx_v_colind_nn = ((PyArrayObject *)values[3]);
14829 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
14830 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
14831 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
14832 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[7]);
14833 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[8]);
14834 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[9]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3757, __pyx_L3_error)
14835 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[10]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3758, __pyx_L3_error)
14836 __pyx_v_n = ((PyArrayObject *)values[11]);
14837 __pyx_v_bc_a_ww = ((PyArrayObject *)values[12]);
14838 __pyx_v_bc_a_nn = ((PyArrayObject *)values[13]);
14839 __pyx_v_bc_grad_phi_w = ((PyArrayObject *)values[14]);
14840 __pyx_v_bc_grad_phi_n = ((PyArrayObject *)values[15]);
14841 __pyx_v_bc_psi_w = ((PyArrayObject *)values[16]);
14842 __pyx_v_bc_psi_c = ((PyArrayObject *)values[17]);
14843 __pyx_v_bc_psi_n = ((PyArrayObject *)values[18]);
14844 __pyx_v_a_ww = ((PyArrayObject *)values[19]);
14845 __pyx_v_a_nn = ((PyArrayObject *)values[20]);
14846 __pyx_v_grad_phi_w = ((PyArrayObject *)values[21]);
14847 __pyx_v_grad_phi_n = ((PyArrayObject *)values[22]);
14848 __pyx_v_psi_w = ((PyArrayObject *)values[23]);
14849 __pyx_v_psi_c = ((PyArrayObject *)values[24]);
14850 __pyx_v_psi_n = ((PyArrayObject *)values[25]);
14851 __pyx_v_penalty_w = ((PyArrayObject *)values[26]);
14852 __pyx_v_penalty_n = ((PyArrayObject *)values[27]);
14853 __pyx_v_diffusiveFlux_ww = ((PyArrayObject *)values[28]);
14854 __pyx_v_diffusiveFlux_nn = ((PyArrayObject *)values[29]);
14856 goto __pyx_L4_argument_unpacking_done;
14857 __pyx_L5_argtuple_error:;
14858 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 1, 30, 30, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3748, __pyx_L3_error)
14860 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
14861 __Pyx_RefNannyFinishContext();
14863 __pyx_L4_argument_unpacking_done:;
14864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_ww), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_ww", 0))) __PYX_ERR(0, 3748, __pyx_L1_error)
14865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_ww), __pyx_ptype_5numpy_ndarray, 1,
"colind_ww", 0))) __PYX_ERR(0, 3749, __pyx_L1_error)
14866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_nn), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_nn", 0))) __PYX_ERR(0, 3750, __pyx_L1_error)
14867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_nn), __pyx_ptype_5numpy_ndarray, 1,
"colind_nn", 0))) __PYX_ERR(0, 3751, __pyx_L1_error)
14868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3752, __pyx_L1_error)
14869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3753, __pyx_L1_error)
14870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3754, __pyx_L1_error)
14871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3755, __pyx_L1_error)
14872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3756, __pyx_L1_error)
14873 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3759, __pyx_L1_error)
14874 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_ww", 0))) __PYX_ERR(0, 3760, __pyx_L1_error)
14875 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"bc_a_nn", 0))) __PYX_ERR(0, 3761, __pyx_L1_error)
14876 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_w", 0))) __PYX_ERR(0, 3762, __pyx_L1_error)
14877 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi_n", 0))) __PYX_ERR(0, 3763, __pyx_L1_error)
14878 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 3764, __pyx_L1_error)
14879 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_c", 0))) __PYX_ERR(0, 3765, __pyx_L1_error)
14880 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 3766, __pyx_L1_error)
14881 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3767, __pyx_L1_error)
14882 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3768, __pyx_L1_error)
14883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3769, __pyx_L1_error)
14884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3770, __pyx_L1_error)
14885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3771, __pyx_L1_error)
14886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"psi_c", 0))) __PYX_ERR(0, 3772, __pyx_L1_error)
14887 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
14888 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3774, __pyx_L1_error)
14889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3775, __pyx_L1_error)
14890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_ww), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_ww", 0))) __PYX_ERR(0, 3776, __pyx_L1_error)
14891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux_nn), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux_nn", 0))) __PYX_ERR(0, 3777, __pyx_L1_error)
14892 __pyx_r = __pyx_pf_14cnumericalFlux_78calculateGlobalExteriorNumericalFluxDarcyFCPP_sd(__pyx_self, __pyx_v_rowptr_ww, __pyx_v_colind_ww, __pyx_v_rowptr_nn, __pyx_v_colind_nn, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_bc_a_ww, __pyx_v_bc_a_nn, __pyx_v_bc_grad_phi_w, __pyx_v_bc_grad_phi_n, __pyx_v_bc_psi_w, __pyx_v_bc_psi_c, __pyx_v_bc_psi_n, __pyx_v_a_ww, __pyx_v_a_nn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_psi_w, __pyx_v_psi_c, __pyx_v_psi_n, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_diffusiveFlux_ww, __pyx_v_diffusiveFlux_nn);
14899 __Pyx_RefNannyFinishContext();
14903 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) {
14904 PyObject *__pyx_r = NULL;
14905 __Pyx_RefNannyDeclarations
14906 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_sd", 0);
14915 calculateGlobalExteriorNumericalFluxDarcyFCPP_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_rowptr_ww->data), ((
int *)__pyx_v_colind_ww->data), ((
int *)__pyx_v_rowptr_nn->data), ((
int *)__pyx_v_colind_nn->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a_ww->data), ((
double *)__pyx_v_bc_a_nn->data), ((
double *)__pyx_v_bc_grad_phi_w->data), ((
double *)__pyx_v_bc_grad_phi_n->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_c->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_c->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_diffusiveFlux_ww->data), ((
double *)__pyx_v_diffusiveFlux_nn->data));
14926 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14927 __Pyx_XGIVEREF(__pyx_r);
14928 __Pyx_RefNannyFinishContext();
14941 static PyObject *__pyx_pw_14cnumericalFlux_81calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14942 static PyMethodDef __pyx_mdef_14cnumericalFlux_81calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian = {
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_81calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
14943 static PyObject *__pyx_pw_14cnumericalFlux_81calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14944 PyArrayObject *__pyx_v_l2g = 0;
14945 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
14946 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
14947 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
14948 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
14949 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
14950 int __pyx_v_fluxBoundaryFlag_uw;
14951 int __pyx_v_fluxBoundaryFlag_un;
14952 PyArrayObject *__pyx_v_n = 0;
14953 PyArrayObject *__pyx_v_a_ww = 0;
14954 PyArrayObject *__pyx_v_da_ww_dw = 0;
14955 PyArrayObject *__pyx_v_da_ww_dn = 0;
14956 PyArrayObject *__pyx_v_a_nn = 0;
14957 PyArrayObject *__pyx_v_da_nn_dw = 0;
14958 PyArrayObject *__pyx_v_da_nn_dn = 0;
14959 PyArrayObject *__pyx_v_grad_phi_w = 0;
14960 PyArrayObject *__pyx_v_grad_phi_n = 0;
14961 PyArrayObject *__pyx_v_dphi_w_w = 0;
14962 PyArrayObject *__pyx_v_dphi_w_n = 0;
14963 PyArrayObject *__pyx_v_dphi_n_w = 0;
14964 PyArrayObject *__pyx_v_dphi_n_n = 0;
14965 PyArrayObject *__pyx_v_psi_w = 0;
14966 PyArrayObject *__pyx_v_psi_c = 0;
14967 PyArrayObject *__pyx_v_psi_n = 0;
14968 PyArrayObject *__pyx_v_dpsi_n_dpsiw = 0;
14969 PyArrayObject *__pyx_v_dpsi_n_dpsic = 0;
14970 PyArrayObject *__pyx_v_v = 0;
14971 PyArrayObject *__pyx_v_grad_v = 0;
14972 PyArrayObject *__pyx_v_penalty_w = 0;
14973 PyArrayObject *__pyx_v_penalty_n = 0;
14974 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
14975 PyArrayObject *__pyx_v_fluxJacobian_wn = 0;
14976 PyArrayObject *__pyx_v_fluxJacobian_nw = 0;
14977 PyArrayObject *__pyx_v_fluxJacobian_nn = 0;
14978 int __pyx_lineno = 0;
14979 const char *__pyx_filename = NULL;
14980 int __pyx_clineno = 0;
14981 PyObject *__pyx_r = 0;
14982 __Pyx_RefNannyDeclarations
14983 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian (wrapper)", 0);
14985 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_a_ww,&__pyx_n_s_da_ww_dw,&__pyx_n_s_da_ww_dn,&__pyx_n_s_a_nn,&__pyx_n_s_da_nn_dw,&__pyx_n_s_da_nn_dn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_n,&__pyx_n_s_dphi_n_w,&__pyx_n_s_dphi_n_n,&__pyx_n_s_psi_w,&__pyx_n_s_psi_c,&__pyx_n_s_psi_n,&__pyx_n_s_dpsi_n_dpsiw,&__pyx_n_s_dpsi_n_dpsic,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wn,&__pyx_n_s_fluxJacobian_nw,&__pyx_n_s_fluxJacobian_nn,0};
14986 PyObject* values[34] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
14987 if (unlikely(__pyx_kwds)) {
14988 Py_ssize_t kw_args;
14989 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14990 switch (pos_args) {
14991 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
14992 CYTHON_FALLTHROUGH;
14993 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
14994 CYTHON_FALLTHROUGH;
14995 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
14996 CYTHON_FALLTHROUGH;
14997 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
14998 CYTHON_FALLTHROUGH;
14999 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15000 CYTHON_FALLTHROUGH;
15001 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15002 CYTHON_FALLTHROUGH;
15003 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15004 CYTHON_FALLTHROUGH;
15005 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15006 CYTHON_FALLTHROUGH;
15007 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15008 CYTHON_FALLTHROUGH;
15009 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15010 CYTHON_FALLTHROUGH;
15011 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15012 CYTHON_FALLTHROUGH;
15013 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15014 CYTHON_FALLTHROUGH;
15015 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15016 CYTHON_FALLTHROUGH;
15017 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15018 CYTHON_FALLTHROUGH;
15019 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15020 CYTHON_FALLTHROUGH;
15021 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15022 CYTHON_FALLTHROUGH;
15023 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15024 CYTHON_FALLTHROUGH;
15025 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15026 CYTHON_FALLTHROUGH;
15027 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15028 CYTHON_FALLTHROUGH;
15029 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15030 CYTHON_FALLTHROUGH;
15031 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15032 CYTHON_FALLTHROUGH;
15033 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15034 CYTHON_FALLTHROUGH;
15035 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15036 CYTHON_FALLTHROUGH;
15037 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15038 CYTHON_FALLTHROUGH;
15039 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15040 CYTHON_FALLTHROUGH;
15041 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15042 CYTHON_FALLTHROUGH;
15043 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15044 CYTHON_FALLTHROUGH;
15045 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15046 CYTHON_FALLTHROUGH;
15047 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15048 CYTHON_FALLTHROUGH;
15049 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15050 CYTHON_FALLTHROUGH;
15051 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15052 CYTHON_FALLTHROUGH;
15053 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15054 CYTHON_FALLTHROUGH;
15055 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15056 CYTHON_FALLTHROUGH;
15057 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15058 CYTHON_FALLTHROUGH;
15060 default:
goto __pyx_L5_argtuple_error;
15062 kw_args = PyDict_Size(__pyx_kwds);
15063 switch (pos_args) {
15065 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
15066 else goto __pyx_L5_argtuple_error;
15067 CYTHON_FALLTHROUGH;
15069 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
15071 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 1); __PYX_ERR(0, 3811, __pyx_L3_error)
15073 CYTHON_FALLTHROUGH;
15075 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
15077 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 2); __PYX_ERR(0, 3811, __pyx_L3_error)
15079 CYTHON_FALLTHROUGH;
15081 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
15083 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 3); __PYX_ERR(0, 3811, __pyx_L3_error)
15085 CYTHON_FALLTHROUGH;
15087 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
15089 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 4); __PYX_ERR(0, 3811, __pyx_L3_error)
15091 CYTHON_FALLTHROUGH;
15093 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
15095 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 5); __PYX_ERR(0, 3811, __pyx_L3_error)
15097 CYTHON_FALLTHROUGH;
15099 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
15101 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 6); __PYX_ERR(0, 3811, __pyx_L3_error)
15103 CYTHON_FALLTHROUGH;
15105 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
15107 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 7); __PYX_ERR(0, 3811, __pyx_L3_error)
15109 CYTHON_FALLTHROUGH;
15111 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
15113 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 8); __PYX_ERR(0, 3811, __pyx_L3_error)
15115 CYTHON_FALLTHROUGH;
15117 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
15119 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 9); __PYX_ERR(0, 3811, __pyx_L3_error)
15121 CYTHON_FALLTHROUGH;
15123 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dw)) != 0)) kw_args--;
15125 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 10); __PYX_ERR(0, 3811, __pyx_L3_error)
15127 CYTHON_FALLTHROUGH;
15129 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dn)) != 0)) kw_args--;
15131 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 11); __PYX_ERR(0, 3811, __pyx_L3_error)
15133 CYTHON_FALLTHROUGH;
15135 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
15137 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 12); __PYX_ERR(0, 3811, __pyx_L3_error)
15139 CYTHON_FALLTHROUGH;
15141 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dw)) != 0)) kw_args--;
15143 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 13); __PYX_ERR(0, 3811, __pyx_L3_error)
15145 CYTHON_FALLTHROUGH;
15147 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dn)) != 0)) kw_args--;
15149 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 14); __PYX_ERR(0, 3811, __pyx_L3_error)
15151 CYTHON_FALLTHROUGH;
15153 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
15155 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 15); __PYX_ERR(0, 3811, __pyx_L3_error)
15157 CYTHON_FALLTHROUGH;
15159 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
15161 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 16); __PYX_ERR(0, 3811, __pyx_L3_error)
15163 CYTHON_FALLTHROUGH;
15165 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
15167 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 17); __PYX_ERR(0, 3811, __pyx_L3_error)
15169 CYTHON_FALLTHROUGH;
15171 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_n)) != 0)) kw_args--;
15173 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 18); __PYX_ERR(0, 3811, __pyx_L3_error)
15175 CYTHON_FALLTHROUGH;
15177 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_w)) != 0)) kw_args--;
15179 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 19); __PYX_ERR(0, 3811, __pyx_L3_error)
15181 CYTHON_FALLTHROUGH;
15183 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_n)) != 0)) kw_args--;
15185 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 20); __PYX_ERR(0, 3811, __pyx_L3_error)
15187 CYTHON_FALLTHROUGH;
15189 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
15191 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 21); __PYX_ERR(0, 3811, __pyx_L3_error)
15193 CYTHON_FALLTHROUGH;
15195 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_c)) != 0)) kw_args--;
15197 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 22); __PYX_ERR(0, 3811, __pyx_L3_error)
15199 CYTHON_FALLTHROUGH;
15201 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
15203 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 23); __PYX_ERR(0, 3811, __pyx_L3_error)
15205 CYTHON_FALLTHROUGH;
15207 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsiw)) != 0)) kw_args--;
15209 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 24); __PYX_ERR(0, 3811, __pyx_L3_error)
15211 CYTHON_FALLTHROUGH;
15213 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsic)) != 0)) kw_args--;
15215 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 25); __PYX_ERR(0, 3811, __pyx_L3_error)
15217 CYTHON_FALLTHROUGH;
15219 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15221 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 26); __PYX_ERR(0, 3811, __pyx_L3_error)
15223 CYTHON_FALLTHROUGH;
15225 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
15227 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 27); __PYX_ERR(0, 3811, __pyx_L3_error)
15229 CYTHON_FALLTHROUGH;
15231 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
15233 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 28); __PYX_ERR(0, 3811, __pyx_L3_error)
15235 CYTHON_FALLTHROUGH;
15237 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
15239 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 29); __PYX_ERR(0, 3811, __pyx_L3_error)
15241 CYTHON_FALLTHROUGH;
15243 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
15245 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 30); __PYX_ERR(0, 3811, __pyx_L3_error)
15247 CYTHON_FALLTHROUGH;
15249 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wn)) != 0)) kw_args--;
15251 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 31); __PYX_ERR(0, 3811, __pyx_L3_error)
15253 CYTHON_FALLTHROUGH;
15255 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nw)) != 0)) kw_args--;
15257 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 32); __PYX_ERR(0, 3811, __pyx_L3_error)
15259 CYTHON_FALLTHROUGH;
15261 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nn)) != 0)) kw_args--;
15263 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, 33); __PYX_ERR(0, 3811, __pyx_L3_error)
15266 if (unlikely(kw_args > 0)) {
15267 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian") < 0)) __PYX_ERR(0, 3811, __pyx_L3_error)
15269 }
else if (PyTuple_GET_SIZE(__pyx_args) != 34) {
15270 goto __pyx_L5_argtuple_error;
15272 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15273 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15274 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15275 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15276 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15277 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15278 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15279 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15280 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15281 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15282 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15283 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15284 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15285 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15286 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15287 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15288 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15289 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15290 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15291 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15292 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15293 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15294 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15295 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15296 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15297 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15298 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15299 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15300 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15301 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15302 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15303 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15304 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
15305 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
15307 __pyx_v_l2g = ((PyArrayObject *)values[0]);
15308 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
15309 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
15310 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
15311 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[4]);
15312 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[5]);
15313 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3817, __pyx_L3_error)
15314 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[7]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3818, __pyx_L3_error)
15315 __pyx_v_n = ((PyArrayObject *)values[8]);
15316 __pyx_v_a_ww = ((PyArrayObject *)values[9]);
15317 __pyx_v_da_ww_dw = ((PyArrayObject *)values[10]);
15318 __pyx_v_da_ww_dn = ((PyArrayObject *)values[11]);
15319 __pyx_v_a_nn = ((PyArrayObject *)values[12]);
15320 __pyx_v_da_nn_dw = ((PyArrayObject *)values[13]);
15321 __pyx_v_da_nn_dn = ((PyArrayObject *)values[14]);
15322 __pyx_v_grad_phi_w = ((PyArrayObject *)values[15]);
15323 __pyx_v_grad_phi_n = ((PyArrayObject *)values[16]);
15324 __pyx_v_dphi_w_w = ((PyArrayObject *)values[17]);
15325 __pyx_v_dphi_w_n = ((PyArrayObject *)values[18]);
15326 __pyx_v_dphi_n_w = ((PyArrayObject *)values[19]);
15327 __pyx_v_dphi_n_n = ((PyArrayObject *)values[20]);
15328 __pyx_v_psi_w = ((PyArrayObject *)values[21]);
15329 __pyx_v_psi_c = ((PyArrayObject *)values[22]);
15330 __pyx_v_psi_n = ((PyArrayObject *)values[23]);
15331 __pyx_v_dpsi_n_dpsiw = ((PyArrayObject *)values[24]);
15332 __pyx_v_dpsi_n_dpsic = ((PyArrayObject *)values[25]);
15333 __pyx_v_v = ((PyArrayObject *)values[26]);
15334 __pyx_v_grad_v = ((PyArrayObject *)values[27]);
15335 __pyx_v_penalty_w = ((PyArrayObject *)values[28]);
15336 __pyx_v_penalty_n = ((PyArrayObject *)values[29]);
15337 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[30]);
15338 __pyx_v_fluxJacobian_wn = ((PyArrayObject *)values[31]);
15339 __pyx_v_fluxJacobian_nw = ((PyArrayObject *)values[32]);
15340 __pyx_v_fluxJacobian_nn = ((PyArrayObject *)values[33]);
15342 goto __pyx_L4_argument_unpacking_done;
15343 __pyx_L5_argtuple_error:;
15344 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 1, 34, 34, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3811, __pyx_L3_error)
15346 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
15347 __Pyx_RefNannyFinishContext();
15349 __pyx_L4_argument_unpacking_done:;
15350 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3811, __pyx_L1_error)
15351 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3812, __pyx_L1_error)
15352 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3813, __pyx_L1_error)
15353 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3814, __pyx_L1_error)
15354 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3815, __pyx_L1_error)
15355 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3816, __pyx_L1_error)
15356 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3819, __pyx_L1_error)
15357 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3820, __pyx_L1_error)
15358 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dw", 0))) __PYX_ERR(0, 3821, __pyx_L1_error)
15359 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dn", 0))) __PYX_ERR(0, 3822, __pyx_L1_error)
15360 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3823, __pyx_L1_error)
15361 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dw", 0))) __PYX_ERR(0, 3824, __pyx_L1_error)
15362 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dn", 0))) __PYX_ERR(0, 3825, __pyx_L1_error)
15363 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3826, __pyx_L1_error)
15364 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3827, __pyx_L1_error)
15365 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 3828, __pyx_L1_error)
15366 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_n", 0))) __PYX_ERR(0, 3829, __pyx_L1_error)
15367 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_w", 0))) __PYX_ERR(0, 3830, __pyx_L1_error)
15368 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_n", 0))) __PYX_ERR(0, 3831, __pyx_L1_error)
15369 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3832, __pyx_L1_error)
15370 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"psi_c", 0))) __PYX_ERR(0, 3833, __pyx_L1_error)
15371 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3834, __pyx_L1_error)
15372 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsiw", 0))) __PYX_ERR(0, 3835, __pyx_L1_error)
15373 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsic), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsic", 0))) __PYX_ERR(0, 3836, __pyx_L1_error)
15374 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
15375 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3838, __pyx_L1_error)
15376 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3839, __pyx_L1_error)
15377 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3840, __pyx_L1_error)
15378 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 3841, __pyx_L1_error)
15379 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wn", 0))) __PYX_ERR(0, 3842, __pyx_L1_error)
15380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nw", 0))) __PYX_ERR(0, 3843, __pyx_L1_error)
15381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nn", 0))) __PYX_ERR(0, 3844, __pyx_L1_error)
15382 __pyx_r = __pyx_pf_14cnumericalFlux_80calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian(__pyx_self, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_a_ww, __pyx_v_da_ww_dw, __pyx_v_da_ww_dn, __pyx_v_a_nn, __pyx_v_da_nn_dw, __pyx_v_da_nn_dn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_dphi_w_w, __pyx_v_dphi_w_n, __pyx_v_dphi_n_w, __pyx_v_dphi_n_n, __pyx_v_psi_w, __pyx_v_psi_c, __pyx_v_psi_n, __pyx_v_dpsi_n_dpsiw, __pyx_v_dpsi_n_dpsic, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wn, __pyx_v_fluxJacobian_nw, __pyx_v_fluxJacobian_nn);
15389 __Pyx_RefNannyFinishContext();
15393 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) {
15394 PyObject *__pyx_r = NULL;
15395 __Pyx_RefNannyDeclarations
15396 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian", 0);
15405 calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_da_ww_dw->data), ((
double *)__pyx_v_da_ww_dn->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_da_nn_dw->data), ((
double *)__pyx_v_da_nn_dn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_n->data), ((
double *)__pyx_v_dphi_n_w->data), ((
double *)__pyx_v_dphi_n_n->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_c->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_dpsi_n_dpsiw->data), ((
double *)__pyx_v_dpsi_n_dpsic->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wn->data), ((
double *)__pyx_v_fluxJacobian_nw->data), ((
double *)__pyx_v_fluxJacobian_nn->data));
15416 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15417 __Pyx_XGIVEREF(__pyx_r);
15418 __Pyx_RefNannyFinishContext();
15431 static PyObject *__pyx_pw_14cnumericalFlux_83calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15432 static PyMethodDef __pyx_mdef_14cnumericalFlux_83calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd = {
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_83calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
15433 static PyObject *__pyx_pw_14cnumericalFlux_83calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15434 PyArrayObject *__pyx_v_rowptr_ww = 0;
15435 PyArrayObject *__pyx_v_colind_ww = 0;
15436 PyArrayObject *__pyx_v_rowptr_nn = 0;
15437 PyArrayObject *__pyx_v_colind_nn = 0;
15438 PyArrayObject *__pyx_v_l2g = 0;
15439 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
15440 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
15441 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
15442 PyArrayObject *__pyx_v_isDOFBoundary_uw = 0;
15443 PyArrayObject *__pyx_v_isDOFBoundary_un = 0;
15444 int __pyx_v_fluxBoundaryFlag_uw;
15445 int __pyx_v_fluxBoundaryFlag_un;
15446 PyArrayObject *__pyx_v_n = 0;
15447 PyArrayObject *__pyx_v_a_ww = 0;
15448 PyArrayObject *__pyx_v_da_ww_dw = 0;
15449 PyArrayObject *__pyx_v_da_ww_dn = 0;
15450 PyArrayObject *__pyx_v_a_nn = 0;
15451 PyArrayObject *__pyx_v_da_nn_dw = 0;
15452 PyArrayObject *__pyx_v_da_nn_dn = 0;
15453 PyArrayObject *__pyx_v_grad_phi_w = 0;
15454 PyArrayObject *__pyx_v_grad_phi_n = 0;
15455 PyArrayObject *__pyx_v_dphi_w_w = 0;
15456 PyArrayObject *__pyx_v_dphi_w_n = 0;
15457 PyArrayObject *__pyx_v_dphi_n_w = 0;
15458 PyArrayObject *__pyx_v_dphi_n_n = 0;
15459 PyArrayObject *__pyx_v_psi_w = 0;
15460 PyArrayObject *__pyx_v_psi_c = 0;
15461 PyArrayObject *__pyx_v_psi_n = 0;
15462 PyArrayObject *__pyx_v_dpsi_n_dpsiw = 0;
15463 PyArrayObject *__pyx_v_dpsi_n_dpsic = 0;
15464 PyArrayObject *__pyx_v_v = 0;
15465 PyArrayObject *__pyx_v_grad_v = 0;
15466 PyArrayObject *__pyx_v_penalty_w = 0;
15467 PyArrayObject *__pyx_v_penalty_n = 0;
15468 PyArrayObject *__pyx_v_fluxJacobian_ww = 0;
15469 PyArrayObject *__pyx_v_fluxJacobian_wn = 0;
15470 PyArrayObject *__pyx_v_fluxJacobian_nw = 0;
15471 PyArrayObject *__pyx_v_fluxJacobian_nn = 0;
15472 int __pyx_lineno = 0;
15473 const char *__pyx_filename = NULL;
15474 int __pyx_clineno = 0;
15475 PyObject *__pyx_r = 0;
15476 __Pyx_RefNannyDeclarations
15477 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd (wrapper)", 0);
15479 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr_ww,&__pyx_n_s_colind_ww,&__pyx_n_s_rowptr_nn,&__pyx_n_s_colind_nn,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_uw,&__pyx_n_s_isDOFBoundary_un,&__pyx_n_s_fluxBoundaryFlag_uw,&__pyx_n_s_fluxBoundaryFlag_un,&__pyx_n_s_n,&__pyx_n_s_a_ww,&__pyx_n_s_da_ww_dw,&__pyx_n_s_da_ww_dn,&__pyx_n_s_a_nn,&__pyx_n_s_da_nn_dw,&__pyx_n_s_da_nn_dn,&__pyx_n_s_grad_phi_w,&__pyx_n_s_grad_phi_n,&__pyx_n_s_dphi_w_w,&__pyx_n_s_dphi_w_n,&__pyx_n_s_dphi_n_w,&__pyx_n_s_dphi_n_n,&__pyx_n_s_psi_w,&__pyx_n_s_psi_c,&__pyx_n_s_psi_n,&__pyx_n_s_dpsi_n_dpsiw,&__pyx_n_s_dpsi_n_dpsic,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_penalty_w,&__pyx_n_s_penalty_n,&__pyx_n_s_fluxJacobian_ww,&__pyx_n_s_fluxJacobian_wn,&__pyx_n_s_fluxJacobian_nw,&__pyx_n_s_fluxJacobian_nn,0};
15480 PyObject* values[38] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
15481 if (unlikely(__pyx_kwds)) {
15482 Py_ssize_t kw_args;
15483 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15484 switch (pos_args) {
15485 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
15486 CYTHON_FALLTHROUGH;
15487 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
15488 CYTHON_FALLTHROUGH;
15489 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
15490 CYTHON_FALLTHROUGH;
15491 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
15492 CYTHON_FALLTHROUGH;
15493 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
15494 CYTHON_FALLTHROUGH;
15495 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
15496 CYTHON_FALLTHROUGH;
15497 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15498 CYTHON_FALLTHROUGH;
15499 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15500 CYTHON_FALLTHROUGH;
15501 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15502 CYTHON_FALLTHROUGH;
15503 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15504 CYTHON_FALLTHROUGH;
15505 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15506 CYTHON_FALLTHROUGH;
15507 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15508 CYTHON_FALLTHROUGH;
15509 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15510 CYTHON_FALLTHROUGH;
15511 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15512 CYTHON_FALLTHROUGH;
15513 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15514 CYTHON_FALLTHROUGH;
15515 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15516 CYTHON_FALLTHROUGH;
15517 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15518 CYTHON_FALLTHROUGH;
15519 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15520 CYTHON_FALLTHROUGH;
15521 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15522 CYTHON_FALLTHROUGH;
15523 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15524 CYTHON_FALLTHROUGH;
15525 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15526 CYTHON_FALLTHROUGH;
15527 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15528 CYTHON_FALLTHROUGH;
15529 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15530 CYTHON_FALLTHROUGH;
15531 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15532 CYTHON_FALLTHROUGH;
15533 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15534 CYTHON_FALLTHROUGH;
15535 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15536 CYTHON_FALLTHROUGH;
15537 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15538 CYTHON_FALLTHROUGH;
15539 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15540 CYTHON_FALLTHROUGH;
15541 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15542 CYTHON_FALLTHROUGH;
15543 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15544 CYTHON_FALLTHROUGH;
15545 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15546 CYTHON_FALLTHROUGH;
15547 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15548 CYTHON_FALLTHROUGH;
15549 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15550 CYTHON_FALLTHROUGH;
15551 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15552 CYTHON_FALLTHROUGH;
15553 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15554 CYTHON_FALLTHROUGH;
15555 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15556 CYTHON_FALLTHROUGH;
15557 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15558 CYTHON_FALLTHROUGH;
15559 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15560 CYTHON_FALLTHROUGH;
15562 default:
goto __pyx_L5_argtuple_error;
15564 kw_args = PyDict_Size(__pyx_kwds);
15565 switch (pos_args) {
15567 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_ww)) != 0)) kw_args--;
15568 else goto __pyx_L5_argtuple_error;
15569 CYTHON_FALLTHROUGH;
15571 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_ww)) != 0)) kw_args--;
15573 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 1); __PYX_ERR(0, 3883, __pyx_L3_error)
15575 CYTHON_FALLTHROUGH;
15577 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr_nn)) != 0)) kw_args--;
15579 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 2); __PYX_ERR(0, 3883, __pyx_L3_error)
15581 CYTHON_FALLTHROUGH;
15583 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind_nn)) != 0)) kw_args--;
15585 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 3); __PYX_ERR(0, 3883, __pyx_L3_error)
15587 CYTHON_FALLTHROUGH;
15589 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
15591 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 4); __PYX_ERR(0, 3883, __pyx_L3_error)
15593 CYTHON_FALLTHROUGH;
15595 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
15597 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 5); __PYX_ERR(0, 3883, __pyx_L3_error)
15599 CYTHON_FALLTHROUGH;
15601 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
15603 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 6); __PYX_ERR(0, 3883, __pyx_L3_error)
15605 CYTHON_FALLTHROUGH;
15607 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
15609 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 7); __PYX_ERR(0, 3883, __pyx_L3_error)
15611 CYTHON_FALLTHROUGH;
15613 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_uw)) != 0)) kw_args--;
15615 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 8); __PYX_ERR(0, 3883, __pyx_L3_error)
15617 CYTHON_FALLTHROUGH;
15619 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_un)) != 0)) kw_args--;
15621 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 9); __PYX_ERR(0, 3883, __pyx_L3_error)
15623 CYTHON_FALLTHROUGH;
15625 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_uw)) != 0)) kw_args--;
15627 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 10); __PYX_ERR(0, 3883, __pyx_L3_error)
15629 CYTHON_FALLTHROUGH;
15631 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag_un)) != 0)) kw_args--;
15633 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 11); __PYX_ERR(0, 3883, __pyx_L3_error)
15635 CYTHON_FALLTHROUGH;
15637 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
15639 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 12); __PYX_ERR(0, 3883, __pyx_L3_error)
15641 CYTHON_FALLTHROUGH;
15643 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_ww)) != 0)) kw_args--;
15645 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 13); __PYX_ERR(0, 3883, __pyx_L3_error)
15647 CYTHON_FALLTHROUGH;
15649 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dw)) != 0)) kw_args--;
15651 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 14); __PYX_ERR(0, 3883, __pyx_L3_error)
15653 CYTHON_FALLTHROUGH;
15655 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_ww_dn)) != 0)) kw_args--;
15657 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 15); __PYX_ERR(0, 3883, __pyx_L3_error)
15659 CYTHON_FALLTHROUGH;
15661 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a_nn)) != 0)) kw_args--;
15663 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 16); __PYX_ERR(0, 3883, __pyx_L3_error)
15665 CYTHON_FALLTHROUGH;
15667 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dw)) != 0)) kw_args--;
15669 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 17); __PYX_ERR(0, 3883, __pyx_L3_error)
15671 CYTHON_FALLTHROUGH;
15673 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da_nn_dn)) != 0)) kw_args--;
15675 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 18); __PYX_ERR(0, 3883, __pyx_L3_error)
15677 CYTHON_FALLTHROUGH;
15679 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_w)) != 0)) kw_args--;
15681 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 19); __PYX_ERR(0, 3883, __pyx_L3_error)
15683 CYTHON_FALLTHROUGH;
15685 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_n)) != 0)) kw_args--;
15687 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 20); __PYX_ERR(0, 3883, __pyx_L3_error)
15689 CYTHON_FALLTHROUGH;
15691 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_w)) != 0)) kw_args--;
15693 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 21); __PYX_ERR(0, 3883, __pyx_L3_error)
15695 CYTHON_FALLTHROUGH;
15697 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_w_n)) != 0)) kw_args--;
15699 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 22); __PYX_ERR(0, 3883, __pyx_L3_error)
15701 CYTHON_FALLTHROUGH;
15703 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_w)) != 0)) kw_args--;
15705 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 23); __PYX_ERR(0, 3883, __pyx_L3_error)
15707 CYTHON_FALLTHROUGH;
15709 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_n_n)) != 0)) kw_args--;
15711 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 24); __PYX_ERR(0, 3883, __pyx_L3_error)
15713 CYTHON_FALLTHROUGH;
15715 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
15717 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 25); __PYX_ERR(0, 3883, __pyx_L3_error)
15719 CYTHON_FALLTHROUGH;
15721 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_c)) != 0)) kw_args--;
15723 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 26); __PYX_ERR(0, 3883, __pyx_L3_error)
15725 CYTHON_FALLTHROUGH;
15727 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
15729 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 27); __PYX_ERR(0, 3883, __pyx_L3_error)
15731 CYTHON_FALLTHROUGH;
15733 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsiw)) != 0)) kw_args--;
15735 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 28); __PYX_ERR(0, 3883, __pyx_L3_error)
15737 CYTHON_FALLTHROUGH;
15739 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dpsi_n_dpsic)) != 0)) kw_args--;
15741 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 29); __PYX_ERR(0, 3883, __pyx_L3_error)
15743 CYTHON_FALLTHROUGH;
15745 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15747 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 30); __PYX_ERR(0, 3883, __pyx_L3_error)
15749 CYTHON_FALLTHROUGH;
15751 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
15753 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 31); __PYX_ERR(0, 3883, __pyx_L3_error)
15755 CYTHON_FALLTHROUGH;
15757 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_w)) != 0)) kw_args--;
15759 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 32); __PYX_ERR(0, 3883, __pyx_L3_error)
15761 CYTHON_FALLTHROUGH;
15763 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_n)) != 0)) kw_args--;
15765 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 33); __PYX_ERR(0, 3883, __pyx_L3_error)
15767 CYTHON_FALLTHROUGH;
15769 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_ww)) != 0)) kw_args--;
15771 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 34); __PYX_ERR(0, 3883, __pyx_L3_error)
15773 CYTHON_FALLTHROUGH;
15775 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_wn)) != 0)) kw_args--;
15777 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 35); __PYX_ERR(0, 3883, __pyx_L3_error)
15779 CYTHON_FALLTHROUGH;
15781 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nw)) != 0)) kw_args--;
15783 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 36); __PYX_ERR(0, 3883, __pyx_L3_error)
15785 CYTHON_FALLTHROUGH;
15787 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_nn)) != 0)) kw_args--;
15789 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, 37); __PYX_ERR(0, 3883, __pyx_L3_error)
15792 if (unlikely(kw_args > 0)) {
15793 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 3883, __pyx_L3_error)
15795 }
else if (PyTuple_GET_SIZE(__pyx_args) != 38) {
15796 goto __pyx_L5_argtuple_error;
15798 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15799 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15800 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15801 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15802 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
15803 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
15804 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
15805 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
15806 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
15807 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15808 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15809 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
15810 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
15811 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
15812 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
15813 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
15814 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
15815 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
15816 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
15817 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
15818 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
15819 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
15820 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
15821 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
15822 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
15823 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
15824 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
15825 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
15826 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
15827 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
15828 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
15829 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
15830 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
15831 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
15832 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
15833 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
15834 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
15835 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
15837 __pyx_v_rowptr_ww = ((PyArrayObject *)values[0]);
15838 __pyx_v_colind_ww = ((PyArrayObject *)values[1]);
15839 __pyx_v_rowptr_nn = ((PyArrayObject *)values[2]);
15840 __pyx_v_colind_nn = ((PyArrayObject *)values[3]);
15841 __pyx_v_l2g = ((PyArrayObject *)values[4]);
15842 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
15843 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
15844 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
15845 __pyx_v_isDOFBoundary_uw = ((PyArrayObject *)values[8]);
15846 __pyx_v_isDOFBoundary_un = ((PyArrayObject *)values[9]);
15847 __pyx_v_fluxBoundaryFlag_uw = __Pyx_PyInt_As_int(values[10]);
if (unlikely((__pyx_v_fluxBoundaryFlag_uw == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3893, __pyx_L3_error)
15848 __pyx_v_fluxBoundaryFlag_un = __Pyx_PyInt_As_int(values[11]);
if (unlikely((__pyx_v_fluxBoundaryFlag_un == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3894, __pyx_L3_error)
15849 __pyx_v_n = ((PyArrayObject *)values[12]);
15850 __pyx_v_a_ww = ((PyArrayObject *)values[13]);
15851 __pyx_v_da_ww_dw = ((PyArrayObject *)values[14]);
15852 __pyx_v_da_ww_dn = ((PyArrayObject *)values[15]);
15853 __pyx_v_a_nn = ((PyArrayObject *)values[16]);
15854 __pyx_v_da_nn_dw = ((PyArrayObject *)values[17]);
15855 __pyx_v_da_nn_dn = ((PyArrayObject *)values[18]);
15856 __pyx_v_grad_phi_w = ((PyArrayObject *)values[19]);
15857 __pyx_v_grad_phi_n = ((PyArrayObject *)values[20]);
15858 __pyx_v_dphi_w_w = ((PyArrayObject *)values[21]);
15859 __pyx_v_dphi_w_n = ((PyArrayObject *)values[22]);
15860 __pyx_v_dphi_n_w = ((PyArrayObject *)values[23]);
15861 __pyx_v_dphi_n_n = ((PyArrayObject *)values[24]);
15862 __pyx_v_psi_w = ((PyArrayObject *)values[25]);
15863 __pyx_v_psi_c = ((PyArrayObject *)values[26]);
15864 __pyx_v_psi_n = ((PyArrayObject *)values[27]);
15865 __pyx_v_dpsi_n_dpsiw = ((PyArrayObject *)values[28]);
15866 __pyx_v_dpsi_n_dpsic = ((PyArrayObject *)values[29]);
15867 __pyx_v_v = ((PyArrayObject *)values[30]);
15868 __pyx_v_grad_v = ((PyArrayObject *)values[31]);
15869 __pyx_v_penalty_w = ((PyArrayObject *)values[32]);
15870 __pyx_v_penalty_n = ((PyArrayObject *)values[33]);
15871 __pyx_v_fluxJacobian_ww = ((PyArrayObject *)values[34]);
15872 __pyx_v_fluxJacobian_wn = ((PyArrayObject *)values[35]);
15873 __pyx_v_fluxJacobian_nw = ((PyArrayObject *)values[36]);
15874 __pyx_v_fluxJacobian_nn = ((PyArrayObject *)values[37]);
15876 goto __pyx_L4_argument_unpacking_done;
15877 __pyx_L5_argtuple_error:;
15878 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 1, 38, 38, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3883, __pyx_L3_error)
15880 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
15881 __Pyx_RefNannyFinishContext();
15883 __pyx_L4_argument_unpacking_done:;
15884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_ww), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_ww", 0))) __PYX_ERR(0, 3883, __pyx_L1_error)
15885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_ww), __pyx_ptype_5numpy_ndarray, 1,
"colind_ww", 0))) __PYX_ERR(0, 3884, __pyx_L1_error)
15886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr_nn), __pyx_ptype_5numpy_ndarray, 1,
"rowptr_nn", 0))) __PYX_ERR(0, 3885, __pyx_L1_error)
15887 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind_nn), __pyx_ptype_5numpy_ndarray, 1,
"colind_nn", 0))) __PYX_ERR(0, 3886, __pyx_L1_error)
15888 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3887, __pyx_L1_error)
15889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3888, __pyx_L1_error)
15890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3889, __pyx_L1_error)
15891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3890, __pyx_L1_error)
15892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_uw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_uw", 0))) __PYX_ERR(0, 3891, __pyx_L1_error)
15893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_un), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_un", 0))) __PYX_ERR(0, 3892, __pyx_L1_error)
15894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3895, __pyx_L1_error)
15895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_ww), __pyx_ptype_5numpy_ndarray, 1,
"a_ww", 0))) __PYX_ERR(0, 3896, __pyx_L1_error)
15896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dw", 0))) __PYX_ERR(0, 3897, __pyx_L1_error)
15897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_ww_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_ww_dn", 0))) __PYX_ERR(0, 3898, __pyx_L1_error)
15898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a_nn), __pyx_ptype_5numpy_ndarray, 1,
"a_nn", 0))) __PYX_ERR(0, 3899, __pyx_L1_error)
15899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dw), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dw", 0))) __PYX_ERR(0, 3900, __pyx_L1_error)
15900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da_nn_dn), __pyx_ptype_5numpy_ndarray, 1,
"da_nn_dn", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
15901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_w", 0))) __PYX_ERR(0, 3902, __pyx_L1_error)
15902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_n), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_n", 0))) __PYX_ERR(0, 3903, __pyx_L1_error)
15903 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_w", 0))) __PYX_ERR(0, 3904, __pyx_L1_error)
15904 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_w_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_w_n", 0))) __PYX_ERR(0, 3905, __pyx_L1_error)
15905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_w), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_w", 0))) __PYX_ERR(0, 3906, __pyx_L1_error)
15906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_n_n), __pyx_ptype_5numpy_ndarray, 1,
"dphi_n_n", 0))) __PYX_ERR(0, 3907, __pyx_L1_error)
15907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 3908, __pyx_L1_error)
15908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_c), __pyx_ptype_5numpy_ndarray, 1,
"psi_c", 0))) __PYX_ERR(0, 3909, __pyx_L1_error)
15909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 3910, __pyx_L1_error)
15910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsiw", 0))) __PYX_ERR(0, 3911, __pyx_L1_error)
15911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dpsi_n_dpsic), __pyx_ptype_5numpy_ndarray, 1,
"dpsi_n_dpsic", 0))) __PYX_ERR(0, 3912, __pyx_L1_error)
15912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3913, __pyx_L1_error)
15913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3914, __pyx_L1_error)
15914 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_w), __pyx_ptype_5numpy_ndarray, 1,
"penalty_w", 0))) __PYX_ERR(0, 3915, __pyx_L1_error)
15915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty_n), __pyx_ptype_5numpy_ndarray, 1,
"penalty_n", 0))) __PYX_ERR(0, 3916, __pyx_L1_error)
15916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_ww), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_ww", 0))) __PYX_ERR(0, 3917, __pyx_L1_error)
15917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_wn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_wn", 0))) __PYX_ERR(0, 3918, __pyx_L1_error)
15918 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nw), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nw", 0))) __PYX_ERR(0, 3919, __pyx_L1_error)
15919 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_nn), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_nn", 0))) __PYX_ERR(0, 3920, __pyx_L1_error)
15920 __pyx_r = __pyx_pf_14cnumericalFlux_82calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd(__pyx_self, __pyx_v_rowptr_ww, __pyx_v_colind_ww, __pyx_v_rowptr_nn, __pyx_v_colind_nn, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_uw, __pyx_v_isDOFBoundary_un, __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, __pyx_v_n, __pyx_v_a_ww, __pyx_v_da_ww_dw, __pyx_v_da_ww_dn, __pyx_v_a_nn, __pyx_v_da_nn_dw, __pyx_v_da_nn_dn, __pyx_v_grad_phi_w, __pyx_v_grad_phi_n, __pyx_v_dphi_w_w, __pyx_v_dphi_w_n, __pyx_v_dphi_n_w, __pyx_v_dphi_n_n, __pyx_v_psi_w, __pyx_v_psi_c, __pyx_v_psi_n, __pyx_v_dpsi_n_dpsiw, __pyx_v_dpsi_n_dpsic, __pyx_v_v, __pyx_v_grad_v, __pyx_v_penalty_w, __pyx_v_penalty_n, __pyx_v_fluxJacobian_ww, __pyx_v_fluxJacobian_wn, __pyx_v_fluxJacobian_nw, __pyx_v_fluxJacobian_nn);
15927 __Pyx_RefNannyFinishContext();
15931 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) {
15932 PyObject *__pyx_r = NULL;
15933 __Pyx_RefNannyDeclarations
15934 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd", 0);
15943 calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
int *)__pyx_v_rowptr_ww->data), ((
int *)__pyx_v_colind_ww->data), ((
int *)__pyx_v_rowptr_nn->data), ((
int *)__pyx_v_colind_nn->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_uw->data), ((
int *)__pyx_v_isDOFBoundary_un->data), __pyx_v_fluxBoundaryFlag_uw, __pyx_v_fluxBoundaryFlag_un, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a_ww->data), ((
double *)__pyx_v_da_ww_dw->data), ((
double *)__pyx_v_da_ww_dn->data), ((
double *)__pyx_v_a_nn->data), ((
double *)__pyx_v_da_nn_dw->data), ((
double *)__pyx_v_da_nn_dn->data), ((
double *)__pyx_v_grad_phi_w->data), ((
double *)__pyx_v_grad_phi_n->data), ((
double *)__pyx_v_dphi_w_w->data), ((
double *)__pyx_v_dphi_w_n->data), ((
double *)__pyx_v_dphi_n_w->data), ((
double *)__pyx_v_dphi_n_n->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_c->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_dpsi_n_dpsiw->data), ((
double *)__pyx_v_dpsi_n_dpsic->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_penalty_w->data), ((
double *)__pyx_v_penalty_n->data), ((
double *)__pyx_v_fluxJacobian_ww->data), ((
double *)__pyx_v_fluxJacobian_wn->data), ((
double *)__pyx_v_fluxJacobian_nw->data), ((
double *)__pyx_v_fluxJacobian_nn->data));
15954 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15955 __Pyx_XGIVEREF(__pyx_r);
15956 __Pyx_RefNannyFinishContext();
15969 static PyObject *__pyx_pw_14cnumericalFlux_85calculateInteriorNumericalFluxShallowWater_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15970 static PyMethodDef __pyx_mdef_14cnumericalFlux_85calculateInteriorNumericalFluxShallowWater_1D = {
"calculateInteriorNumericalFluxShallowWater_1D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_85calculateInteriorNumericalFluxShallowWater_1D, METH_VARARGS|METH_KEYWORDS, 0};
15971 static PyObject *__pyx_pw_14cnumericalFlux_85calculateInteriorNumericalFluxShallowWater_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15972 double __pyx_v_h_eps;
15973 double __pyx_v_tol_u;
15975 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
15976 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
15977 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
15978 PyArrayObject *__pyx_v_n = 0;
15979 PyArrayObject *__pyx_v_h = 0;
15980 PyArrayObject *__pyx_v_hu = 0;
15981 PyArrayObject *__pyx_v_flux_h = 0;
15982 PyArrayObject *__pyx_v_flux_hu = 0;
15983 int __pyx_lineno = 0;
15984 const char *__pyx_filename = NULL;
15985 int __pyx_clineno = 0;
15986 PyObject *__pyx_r = 0;
15987 __Pyx_RefNannyDeclarations
15988 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWater_1D (wrapper)", 0);
15990 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,0};
15991 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
15992 if (unlikely(__pyx_kwds)) {
15993 Py_ssize_t kw_args;
15994 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15995 switch (pos_args) {
15996 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
15997 CYTHON_FALLTHROUGH;
15998 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
15999 CYTHON_FALLTHROUGH;
16000 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16001 CYTHON_FALLTHROUGH;
16002 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16003 CYTHON_FALLTHROUGH;
16004 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16005 CYTHON_FALLTHROUGH;
16006 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16007 CYTHON_FALLTHROUGH;
16008 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16009 CYTHON_FALLTHROUGH;
16010 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16011 CYTHON_FALLTHROUGH;
16012 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16013 CYTHON_FALLTHROUGH;
16014 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16015 CYTHON_FALLTHROUGH;
16016 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16017 CYTHON_FALLTHROUGH;
16019 default:
goto __pyx_L5_argtuple_error;
16021 kw_args = PyDict_Size(__pyx_kwds);
16022 switch (pos_args) {
16024 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
16025 else goto __pyx_L5_argtuple_error;
16026 CYTHON_FALLTHROUGH;
16028 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
16030 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 1); __PYX_ERR(0, 3964, __pyx_L3_error)
16032 CYTHON_FALLTHROUGH;
16034 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16036 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 2); __PYX_ERR(0, 3964, __pyx_L3_error)
16038 CYTHON_FALLTHROUGH;
16040 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
16042 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 3); __PYX_ERR(0, 3964, __pyx_L3_error)
16044 CYTHON_FALLTHROUGH;
16046 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
16048 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 4); __PYX_ERR(0, 3964, __pyx_L3_error)
16050 CYTHON_FALLTHROUGH;
16052 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
16054 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 5); __PYX_ERR(0, 3964, __pyx_L3_error)
16056 CYTHON_FALLTHROUGH;
16058 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16060 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 6); __PYX_ERR(0, 3964, __pyx_L3_error)
16062 CYTHON_FALLTHROUGH;
16064 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
16066 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 7); __PYX_ERR(0, 3964, __pyx_L3_error)
16068 CYTHON_FALLTHROUGH;
16070 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
16072 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 8); __PYX_ERR(0, 3964, __pyx_L3_error)
16074 CYTHON_FALLTHROUGH;
16076 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
16078 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 9); __PYX_ERR(0, 3964, __pyx_L3_error)
16080 CYTHON_FALLTHROUGH;
16082 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
16084 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, 10); __PYX_ERR(0, 3964, __pyx_L3_error)
16087 if (unlikely(kw_args > 0)) {
16088 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalFluxShallowWater_1D") < 0)) __PYX_ERR(0, 3964, __pyx_L3_error)
16090 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
16091 goto __pyx_L5_argtuple_error;
16093 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16094 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16095 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16096 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16097 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16098 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16099 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16100 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16101 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16102 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16103 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16105 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3964, __pyx_L3_error)
16106 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3965, __pyx_L3_error)
16107 __pyx_v_g = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3966, __pyx_L3_error)
16108 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[3]);
16109 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
16110 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
16111 __pyx_v_n = ((PyArrayObject *)values[6]);
16112 __pyx_v_h = ((PyArrayObject *)values[7]);
16113 __pyx_v_hu = ((PyArrayObject *)values[8]);
16114 __pyx_v_flux_h = ((PyArrayObject *)values[9]);
16115 __pyx_v_flux_hu = ((PyArrayObject *)values[10]);
16117 goto __pyx_L4_argument_unpacking_done;
16118 __pyx_L5_argtuple_error:;
16119 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_1D", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3964, __pyx_L3_error)
16121 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalFluxShallowWater_1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
16122 __Pyx_RefNannyFinishContext();
16124 __pyx_L4_argument_unpacking_done:;
16125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3967, __pyx_L1_error)
16126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3968, __pyx_L1_error)
16127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3969, __pyx_L1_error)
16128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3970, __pyx_L1_error)
16129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 3971, __pyx_L1_error)
16130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1,
"hu", 0))) __PYX_ERR(0, 3972, __pyx_L1_error)
16131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 3973, __pyx_L1_error)
16132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 3974, __pyx_L1_error)
16133 __pyx_r = __pyx_pf_14cnumericalFlux_84calculateInteriorNumericalFluxShallowWater_1D(__pyx_self, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_h, __pyx_v_hu, __pyx_v_flux_h, __pyx_v_flux_hu);
16140 __Pyx_RefNannyFinishContext();
16144 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) {
16145 PyObject *__pyx_r = NULL;
16146 __Pyx_RefNannyDeclarations
16147 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWater_1D", 0);
16156 calculateInteriorNumericalFluxShallowWater_1D((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_hu->dimensions[1]), (__pyx_v_hu->dimensions[2]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_hu->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data));
16167 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16168 __Pyx_XGIVEREF(__pyx_r);
16169 __Pyx_RefNannyFinishContext();
16182 static PyObject *__pyx_pw_14cnumericalFlux_87calculateExteriorNumericalFluxShallowWater_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16183 static PyMethodDef __pyx_mdef_14cnumericalFlux_87calculateExteriorNumericalFluxShallowWater_1D = {
"calculateExteriorNumericalFluxShallowWater_1D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_87calculateExteriorNumericalFluxShallowWater_1D, METH_VARARGS|METH_KEYWORDS, 0};
16184 static PyObject *__pyx_pw_14cnumericalFlux_87calculateExteriorNumericalFluxShallowWater_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16185 int __pyx_v_nExteriorElementBoundaries_global;
16186 double __pyx_v_h_eps;
16187 double __pyx_v_tol_u;
16189 PyArrayObject *__pyx_v_n = 0;
16190 PyArrayObject *__pyx_v_h_lv = 0;
16191 PyArrayObject *__pyx_v_hu_lv = 0;
16192 PyArrayObject *__pyx_v_h_rv = 0;
16193 PyArrayObject *__pyx_v_hu_rv = 0;
16194 PyArrayObject *__pyx_v_flux_h = 0;
16195 PyArrayObject *__pyx_v_flux_hu = 0;
16196 int __pyx_lineno = 0;
16197 const char *__pyx_filename = NULL;
16198 int __pyx_clineno = 0;
16199 PyObject *__pyx_r = 0;
16200 __Pyx_RefNannyDeclarations
16201 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWater_1D (wrapper)", 0);
16203 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_n,&__pyx_n_s_h_lv,&__pyx_n_s_hu_lv,&__pyx_n_s_h_rv,&__pyx_n_s_hu_rv,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,0};
16204 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
16205 if (unlikely(__pyx_kwds)) {
16206 Py_ssize_t kw_args;
16207 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16208 switch (pos_args) {
16209 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16210 CYTHON_FALLTHROUGH;
16211 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16212 CYTHON_FALLTHROUGH;
16213 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16214 CYTHON_FALLTHROUGH;
16215 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16216 CYTHON_FALLTHROUGH;
16217 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16218 CYTHON_FALLTHROUGH;
16219 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16220 CYTHON_FALLTHROUGH;
16221 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16222 CYTHON_FALLTHROUGH;
16223 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16224 CYTHON_FALLTHROUGH;
16225 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16226 CYTHON_FALLTHROUGH;
16227 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16228 CYTHON_FALLTHROUGH;
16229 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16230 CYTHON_FALLTHROUGH;
16232 default:
goto __pyx_L5_argtuple_error;
16234 kw_args = PyDict_Size(__pyx_kwds);
16235 switch (pos_args) {
16237 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
16238 else goto __pyx_L5_argtuple_error;
16239 CYTHON_FALLTHROUGH;
16241 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
16243 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 1); __PYX_ERR(0, 3989, __pyx_L3_error)
16245 CYTHON_FALLTHROUGH;
16247 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
16249 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 2); __PYX_ERR(0, 3989, __pyx_L3_error)
16251 CYTHON_FALLTHROUGH;
16253 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16255 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 3); __PYX_ERR(0, 3989, __pyx_L3_error)
16257 CYTHON_FALLTHROUGH;
16259 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16261 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 4); __PYX_ERR(0, 3989, __pyx_L3_error)
16263 CYTHON_FALLTHROUGH;
16265 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_lv)) != 0)) kw_args--;
16267 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 5); __PYX_ERR(0, 3989, __pyx_L3_error)
16269 CYTHON_FALLTHROUGH;
16271 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_lv)) != 0)) kw_args--;
16273 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 6); __PYX_ERR(0, 3989, __pyx_L3_error)
16275 CYTHON_FALLTHROUGH;
16277 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_rv)) != 0)) kw_args--;
16279 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 7); __PYX_ERR(0, 3989, __pyx_L3_error)
16281 CYTHON_FALLTHROUGH;
16283 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_rv)) != 0)) kw_args--;
16285 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 8); __PYX_ERR(0, 3989, __pyx_L3_error)
16287 CYTHON_FALLTHROUGH;
16289 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
16291 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 9); __PYX_ERR(0, 3989, __pyx_L3_error)
16293 CYTHON_FALLTHROUGH;
16295 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
16297 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, 10); __PYX_ERR(0, 3989, __pyx_L3_error)
16300 if (unlikely(kw_args > 0)) {
16301 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalFluxShallowWater_1D") < 0)) __PYX_ERR(0, 3989, __pyx_L3_error)
16303 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
16304 goto __pyx_L5_argtuple_error;
16306 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16307 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16308 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16309 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16310 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16311 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16312 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16313 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16314 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16315 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16316 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16318 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3989, __pyx_L3_error)
16319 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3990, __pyx_L3_error)
16320 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3991, __pyx_L3_error)
16321 __pyx_v_g = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3992, __pyx_L3_error)
16322 __pyx_v_n = ((PyArrayObject *)values[4]);
16323 __pyx_v_h_lv = ((PyArrayObject *)values[5]);
16324 __pyx_v_hu_lv = ((PyArrayObject *)values[6]);
16325 __pyx_v_h_rv = ((PyArrayObject *)values[7]);
16326 __pyx_v_hu_rv = ((PyArrayObject *)values[8]);
16327 __pyx_v_flux_h = ((PyArrayObject *)values[9]);
16328 __pyx_v_flux_hu = ((PyArrayObject *)values[10]);
16330 goto __pyx_L4_argument_unpacking_done;
16331 __pyx_L5_argtuple_error:;
16332 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_1D", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3989, __pyx_L3_error)
16334 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalFluxShallowWater_1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
16335 __Pyx_RefNannyFinishContext();
16337 __pyx_L4_argument_unpacking_done:;
16338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 3993, __pyx_L1_error)
16339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_lv), __pyx_ptype_5numpy_ndarray, 1,
"h_lv", 0))) __PYX_ERR(0, 3994, __pyx_L1_error)
16340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_lv), __pyx_ptype_5numpy_ndarray, 1,
"hu_lv", 0))) __PYX_ERR(0, 3995, __pyx_L1_error)
16341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_rv), __pyx_ptype_5numpy_ndarray, 1,
"h_rv", 0))) __PYX_ERR(0, 3996, __pyx_L1_error)
16342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_rv), __pyx_ptype_5numpy_ndarray, 1,
"hu_rv", 0))) __PYX_ERR(0, 3997, __pyx_L1_error)
16343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 3998, __pyx_L1_error)
16344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 3999, __pyx_L1_error)
16345 __pyx_r = __pyx_pf_14cnumericalFlux_86calculateExteriorNumericalFluxShallowWater_1D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_n, __pyx_v_h_lv, __pyx_v_hu_lv, __pyx_v_h_rv, __pyx_v_hu_rv, __pyx_v_flux_h, __pyx_v_flux_hu);
16352 __Pyx_RefNannyFinishContext();
16356 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) {
16357 PyObject *__pyx_r = NULL;
16358 __Pyx_RefNannyDeclarations
16359 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWater_1D", 0);
16368 calculateExteriorNumericalFluxShallowWater_1D(__pyx_v_nExteriorElementBoundaries_global, (__pyx_v_hu_lv->dimensions[1]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h_lv->data), ((
double *)__pyx_v_hu_lv->data), ((
double *)__pyx_v_h_rv->data), ((
double *)__pyx_v_hu_rv->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data));
16379 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16380 __Pyx_XGIVEREF(__pyx_r);
16381 __Pyx_RefNannyFinishContext();
16394 static PyObject *__pyx_pw_14cnumericalFlux_89calculateInteriorNumericalFluxShallowWater_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16395 static PyMethodDef __pyx_mdef_14cnumericalFlux_89calculateInteriorNumericalFluxShallowWater_2D = {
"calculateInteriorNumericalFluxShallowWater_2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_89calculateInteriorNumericalFluxShallowWater_2D, METH_VARARGS|METH_KEYWORDS, 0};
16396 static PyObject *__pyx_pw_14cnumericalFlux_89calculateInteriorNumericalFluxShallowWater_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16397 double __pyx_v_h_eps;
16398 double __pyx_v_tol_u;
16400 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
16401 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
16402 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
16403 PyArrayObject *__pyx_v_n = 0;
16404 PyArrayObject *__pyx_v_h = 0;
16405 PyArrayObject *__pyx_v_hu = 0;
16406 PyArrayObject *__pyx_v_hv = 0;
16407 PyArrayObject *__pyx_v_flux_h = 0;
16408 PyArrayObject *__pyx_v_flux_hu = 0;
16409 PyArrayObject *__pyx_v_flux_hv = 0;
16410 int __pyx_lineno = 0;
16411 const char *__pyx_filename = NULL;
16412 int __pyx_clineno = 0;
16413 PyObject *__pyx_r = 0;
16414 __Pyx_RefNannyDeclarations
16415 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWater_2D (wrapper)", 0);
16417 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_hv,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,&__pyx_n_s_flux_hv,0};
16418 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
16419 if (unlikely(__pyx_kwds)) {
16420 Py_ssize_t kw_args;
16421 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16422 switch (pos_args) {
16423 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16424 CYTHON_FALLTHROUGH;
16425 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16426 CYTHON_FALLTHROUGH;
16427 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16428 CYTHON_FALLTHROUGH;
16429 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16430 CYTHON_FALLTHROUGH;
16431 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16432 CYTHON_FALLTHROUGH;
16433 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16434 CYTHON_FALLTHROUGH;
16435 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16436 CYTHON_FALLTHROUGH;
16437 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16438 CYTHON_FALLTHROUGH;
16439 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16440 CYTHON_FALLTHROUGH;
16441 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16442 CYTHON_FALLTHROUGH;
16443 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16444 CYTHON_FALLTHROUGH;
16445 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16446 CYTHON_FALLTHROUGH;
16447 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16448 CYTHON_FALLTHROUGH;
16450 default:
goto __pyx_L5_argtuple_error;
16452 kw_args = PyDict_Size(__pyx_kwds);
16453 switch (pos_args) {
16455 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
16456 else goto __pyx_L5_argtuple_error;
16457 CYTHON_FALLTHROUGH;
16459 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
16461 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 1); __PYX_ERR(0, 4012, __pyx_L3_error)
16463 CYTHON_FALLTHROUGH;
16465 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16467 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 2); __PYX_ERR(0, 4012, __pyx_L3_error)
16469 CYTHON_FALLTHROUGH;
16471 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
16473 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 3); __PYX_ERR(0, 4012, __pyx_L3_error)
16475 CYTHON_FALLTHROUGH;
16477 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
16479 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 4); __PYX_ERR(0, 4012, __pyx_L3_error)
16481 CYTHON_FALLTHROUGH;
16483 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
16485 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 5); __PYX_ERR(0, 4012, __pyx_L3_error)
16487 CYTHON_FALLTHROUGH;
16489 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16491 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 6); __PYX_ERR(0, 4012, __pyx_L3_error)
16493 CYTHON_FALLTHROUGH;
16495 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
16497 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 7); __PYX_ERR(0, 4012, __pyx_L3_error)
16499 CYTHON_FALLTHROUGH;
16501 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
16503 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 8); __PYX_ERR(0, 4012, __pyx_L3_error)
16505 CYTHON_FALLTHROUGH;
16507 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hv)) != 0)) kw_args--;
16509 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 9); __PYX_ERR(0, 4012, __pyx_L3_error)
16511 CYTHON_FALLTHROUGH;
16513 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
16515 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 10); __PYX_ERR(0, 4012, __pyx_L3_error)
16517 CYTHON_FALLTHROUGH;
16519 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
16521 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 11); __PYX_ERR(0, 4012, __pyx_L3_error)
16523 CYTHON_FALLTHROUGH;
16525 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hv)) != 0)) kw_args--;
16527 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, 12); __PYX_ERR(0, 4012, __pyx_L3_error)
16530 if (unlikely(kw_args > 0)) {
16531 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalFluxShallowWater_2D") < 0)) __PYX_ERR(0, 4012, __pyx_L3_error)
16533 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
16534 goto __pyx_L5_argtuple_error;
16536 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16537 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16538 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16539 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16540 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16541 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16542 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16543 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16544 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16545 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16546 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16547 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16548 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16550 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4012, __pyx_L3_error)
16551 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4013, __pyx_L3_error)
16552 __pyx_v_g = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4014, __pyx_L3_error)
16553 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[3]);
16554 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
16555 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
16556 __pyx_v_n = ((PyArrayObject *)values[6]);
16557 __pyx_v_h = ((PyArrayObject *)values[7]);
16558 __pyx_v_hu = ((PyArrayObject *)values[8]);
16559 __pyx_v_hv = ((PyArrayObject *)values[9]);
16560 __pyx_v_flux_h = ((PyArrayObject *)values[10]);
16561 __pyx_v_flux_hu = ((PyArrayObject *)values[11]);
16562 __pyx_v_flux_hv = ((PyArrayObject *)values[12]);
16564 goto __pyx_L4_argument_unpacking_done;
16565 __pyx_L5_argtuple_error:;
16566 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWater_2D", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4012, __pyx_L3_error)
16568 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalFluxShallowWater_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
16569 __Pyx_RefNannyFinishContext();
16571 __pyx_L4_argument_unpacking_done:;
16572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4015, __pyx_L1_error)
16573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4016, __pyx_L1_error)
16574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4017, __pyx_L1_error)
16575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4018, __pyx_L1_error)
16576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 4019, __pyx_L1_error)
16577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1,
"hu", 0))) __PYX_ERR(0, 4020, __pyx_L1_error)
16578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hv), __pyx_ptype_5numpy_ndarray, 1,
"hv", 0))) __PYX_ERR(0, 4021, __pyx_L1_error)
16579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 4022, __pyx_L1_error)
16580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 4023, __pyx_L1_error)
16581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hv), __pyx_ptype_5numpy_ndarray, 1,
"flux_hv", 0))) __PYX_ERR(0, 4024, __pyx_L1_error)
16582 __pyx_r = __pyx_pf_14cnumericalFlux_88calculateInteriorNumericalFluxShallowWater_2D(__pyx_self, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_h, __pyx_v_hu, __pyx_v_hv, __pyx_v_flux_h, __pyx_v_flux_hu, __pyx_v_flux_hv);
16589 __Pyx_RefNannyFinishContext();
16593 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) {
16594 PyObject *__pyx_r = NULL;
16595 __Pyx_RefNannyDeclarations
16596 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWater_2D", 0);
16605 calculateInteriorNumericalFluxShallowWater_2D((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_hu->dimensions[1]), (__pyx_v_hu->dimensions[2]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_hu->data), ((
double *)__pyx_v_hv->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data), ((
double *)__pyx_v_flux_hv->data));
16616 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16617 __Pyx_XGIVEREF(__pyx_r);
16618 __Pyx_RefNannyFinishContext();
16631 static PyObject *__pyx_pw_14cnumericalFlux_91calculateExteriorNumericalFluxShallowWater_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16632 static PyMethodDef __pyx_mdef_14cnumericalFlux_91calculateExteriorNumericalFluxShallowWater_2D = {
"calculateExteriorNumericalFluxShallowWater_2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_91calculateExteriorNumericalFluxShallowWater_2D, METH_VARARGS|METH_KEYWORDS, 0};
16633 static PyObject *__pyx_pw_14cnumericalFlux_91calculateExteriorNumericalFluxShallowWater_2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16634 int __pyx_v_nExteriorElementBoundaries_global;
16635 double __pyx_v_h_eps;
16636 double __pyx_v_tol_u;
16638 PyArrayObject *__pyx_v_n = 0;
16639 PyArrayObject *__pyx_v_h_lq = 0;
16640 PyArrayObject *__pyx_v_hu_lq = 0;
16641 PyArrayObject *__pyx_v_hv_lq = 0;
16642 PyArrayObject *__pyx_v_h_rq = 0;
16643 PyArrayObject *__pyx_v_hu_rq = 0;
16644 PyArrayObject *__pyx_v_hv_rq = 0;
16645 PyArrayObject *__pyx_v_flux_h = 0;
16646 PyArrayObject *__pyx_v_flux_hu = 0;
16647 PyArrayObject *__pyx_v_flux_hv = 0;
16648 int __pyx_lineno = 0;
16649 const char *__pyx_filename = NULL;
16650 int __pyx_clineno = 0;
16651 PyObject *__pyx_r = 0;
16652 __Pyx_RefNannyDeclarations
16653 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWater_2D (wrapper)", 0);
16655 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_n,&__pyx_n_s_h_lq,&__pyx_n_s_hu_lq,&__pyx_n_s_hv_lq,&__pyx_n_s_h_rq,&__pyx_n_s_hu_rq,&__pyx_n_s_hv_rq,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,&__pyx_n_s_flux_hv,0};
16656 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
16657 if (unlikely(__pyx_kwds)) {
16658 Py_ssize_t kw_args;
16659 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16660 switch (pos_args) {
16661 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16662 CYTHON_FALLTHROUGH;
16663 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16664 CYTHON_FALLTHROUGH;
16665 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16666 CYTHON_FALLTHROUGH;
16667 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16668 CYTHON_FALLTHROUGH;
16669 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16670 CYTHON_FALLTHROUGH;
16671 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16672 CYTHON_FALLTHROUGH;
16673 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16674 CYTHON_FALLTHROUGH;
16675 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16676 CYTHON_FALLTHROUGH;
16677 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16678 CYTHON_FALLTHROUGH;
16679 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16680 CYTHON_FALLTHROUGH;
16681 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16682 CYTHON_FALLTHROUGH;
16683 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16684 CYTHON_FALLTHROUGH;
16685 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16686 CYTHON_FALLTHROUGH;
16687 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16688 CYTHON_FALLTHROUGH;
16690 default:
goto __pyx_L5_argtuple_error;
16692 kw_args = PyDict_Size(__pyx_kwds);
16693 switch (pos_args) {
16695 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
16696 else goto __pyx_L5_argtuple_error;
16697 CYTHON_FALLTHROUGH;
16699 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
16701 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 1); __PYX_ERR(0, 4041, __pyx_L3_error)
16703 CYTHON_FALLTHROUGH;
16705 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
16707 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 2); __PYX_ERR(0, 4041, __pyx_L3_error)
16709 CYTHON_FALLTHROUGH;
16711 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16713 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 3); __PYX_ERR(0, 4041, __pyx_L3_error)
16715 CYTHON_FALLTHROUGH;
16717 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16719 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 4); __PYX_ERR(0, 4041, __pyx_L3_error)
16721 CYTHON_FALLTHROUGH;
16723 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_lq)) != 0)) kw_args--;
16725 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 5); __PYX_ERR(0, 4041, __pyx_L3_error)
16727 CYTHON_FALLTHROUGH;
16729 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_lq)) != 0)) kw_args--;
16731 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 6); __PYX_ERR(0, 4041, __pyx_L3_error)
16733 CYTHON_FALLTHROUGH;
16735 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hv_lq)) != 0)) kw_args--;
16737 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 7); __PYX_ERR(0, 4041, __pyx_L3_error)
16739 CYTHON_FALLTHROUGH;
16741 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_rq)) != 0)) kw_args--;
16743 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 8); __PYX_ERR(0, 4041, __pyx_L3_error)
16745 CYTHON_FALLTHROUGH;
16747 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_rq)) != 0)) kw_args--;
16749 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 9); __PYX_ERR(0, 4041, __pyx_L3_error)
16751 CYTHON_FALLTHROUGH;
16753 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hv_rq)) != 0)) kw_args--;
16755 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 10); __PYX_ERR(0, 4041, __pyx_L3_error)
16757 CYTHON_FALLTHROUGH;
16759 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
16761 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 11); __PYX_ERR(0, 4041, __pyx_L3_error)
16763 CYTHON_FALLTHROUGH;
16765 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
16767 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 12); __PYX_ERR(0, 4041, __pyx_L3_error)
16769 CYTHON_FALLTHROUGH;
16771 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hv)) != 0)) kw_args--;
16773 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, 13); __PYX_ERR(0, 4041, __pyx_L3_error)
16776 if (unlikely(kw_args > 0)) {
16777 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalFluxShallowWater_2D") < 0)) __PYX_ERR(0, 4041, __pyx_L3_error)
16779 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
16780 goto __pyx_L5_argtuple_error;
16782 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16783 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16784 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16785 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16786 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16787 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16788 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16789 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16790 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16791 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16792 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16793 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
16794 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
16795 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
16797 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4041, __pyx_L3_error)
16798 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4042, __pyx_L3_error)
16799 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4043, __pyx_L3_error)
16800 __pyx_v_g = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4044, __pyx_L3_error)
16801 __pyx_v_n = ((PyArrayObject *)values[4]);
16802 __pyx_v_h_lq = ((PyArrayObject *)values[5]);
16803 __pyx_v_hu_lq = ((PyArrayObject *)values[6]);
16804 __pyx_v_hv_lq = ((PyArrayObject *)values[7]);
16805 __pyx_v_h_rq = ((PyArrayObject *)values[8]);
16806 __pyx_v_hu_rq = ((PyArrayObject *)values[9]);
16807 __pyx_v_hv_rq = ((PyArrayObject *)values[10]);
16808 __pyx_v_flux_h = ((PyArrayObject *)values[11]);
16809 __pyx_v_flux_hu = ((PyArrayObject *)values[12]);
16810 __pyx_v_flux_hv = ((PyArrayObject *)values[13]);
16812 goto __pyx_L4_argument_unpacking_done;
16813 __pyx_L5_argtuple_error:;
16814 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWater_2D", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4041, __pyx_L3_error)
16816 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalFluxShallowWater_2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
16817 __Pyx_RefNannyFinishContext();
16819 __pyx_L4_argument_unpacking_done:;
16820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4045, __pyx_L1_error)
16821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_lq), __pyx_ptype_5numpy_ndarray, 1,
"h_lq", 0))) __PYX_ERR(0, 4046, __pyx_L1_error)
16822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_lq), __pyx_ptype_5numpy_ndarray, 1,
"hu_lq", 0))) __PYX_ERR(0, 4047, __pyx_L1_error)
16823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hv_lq), __pyx_ptype_5numpy_ndarray, 1,
"hv_lq", 0))) __PYX_ERR(0, 4048, __pyx_L1_error)
16824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_rq), __pyx_ptype_5numpy_ndarray, 1,
"h_rq", 0))) __PYX_ERR(0, 4049, __pyx_L1_error)
16825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_rq), __pyx_ptype_5numpy_ndarray, 1,
"hu_rq", 0))) __PYX_ERR(0, 4050, __pyx_L1_error)
16826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hv_rq), __pyx_ptype_5numpy_ndarray, 1,
"hv_rq", 0))) __PYX_ERR(0, 4051, __pyx_L1_error)
16827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 4052, __pyx_L1_error)
16828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 4053, __pyx_L1_error)
16829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hv), __pyx_ptype_5numpy_ndarray, 1,
"flux_hv", 0))) __PYX_ERR(0, 4054, __pyx_L1_error)
16830 __pyx_r = __pyx_pf_14cnumericalFlux_90calculateExteriorNumericalFluxShallowWater_2D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_n, __pyx_v_h_lq, __pyx_v_hu_lq, __pyx_v_hv_lq, __pyx_v_h_rq, __pyx_v_hu_rq, __pyx_v_hv_rq, __pyx_v_flux_h, __pyx_v_flux_hu, __pyx_v_flux_hv);
16837 __Pyx_RefNannyFinishContext();
16841 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) {
16842 PyObject *__pyx_r = NULL;
16843 __Pyx_RefNannyDeclarations
16844 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWater_2D", 0);
16853 calculateExteriorNumericalFluxShallowWater_2D(__pyx_v_nExteriorElementBoundaries_global, (__pyx_v_hu_lq->dimensions[1]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h_lq->data), ((
double *)__pyx_v_hu_lq->data), ((
double *)__pyx_v_hv_lq->data), ((
double *)__pyx_v_h_rq->data), ((
double *)__pyx_v_hu_rq->data), ((
double *)__pyx_v_hv_rq->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data), ((
double *)__pyx_v_flux_hv->data));
16864 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16865 __Pyx_XGIVEREF(__pyx_r);
16866 __Pyx_RefNannyFinishContext();
16879 static PyObject *__pyx_pw_14cnumericalFlux_93calculateInteriorNumericalFluxShallowWaterHLL_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16880 static PyMethodDef __pyx_mdef_14cnumericalFlux_93calculateInteriorNumericalFluxShallowWaterHLL_1D = {
"calculateInteriorNumericalFluxShallowWaterHLL_1D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_93calculateInteriorNumericalFluxShallowWaterHLL_1D, METH_VARARGS|METH_KEYWORDS, 0};
16881 static PyObject *__pyx_pw_14cnumericalFlux_93calculateInteriorNumericalFluxShallowWaterHLL_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16882 double __pyx_v_h_eps;
16883 double __pyx_v_tol_u;
16885 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
16886 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
16887 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
16888 PyArrayObject *__pyx_v_n = 0;
16889 PyArrayObject *__pyx_v_h = 0;
16890 PyArrayObject *__pyx_v_hu = 0;
16891 PyArrayObject *__pyx_v_flux_h = 0;
16892 PyArrayObject *__pyx_v_flux_hu = 0;
16893 int __pyx_lineno = 0;
16894 const char *__pyx_filename = NULL;
16895 int __pyx_clineno = 0;
16896 PyObject *__pyx_r = 0;
16897 __Pyx_RefNannyDeclarations
16898 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWaterHLL_1D (wrapper)", 0);
16900 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_h,&__pyx_n_s_hu,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,0};
16901 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
16902 if (unlikely(__pyx_kwds)) {
16903 Py_ssize_t kw_args;
16904 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16905 switch (pos_args) {
16906 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
16907 CYTHON_FALLTHROUGH;
16908 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16909 CYTHON_FALLTHROUGH;
16910 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16911 CYTHON_FALLTHROUGH;
16912 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16913 CYTHON_FALLTHROUGH;
16914 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16915 CYTHON_FALLTHROUGH;
16916 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16917 CYTHON_FALLTHROUGH;
16918 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16919 CYTHON_FALLTHROUGH;
16920 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16921 CYTHON_FALLTHROUGH;
16922 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16923 CYTHON_FALLTHROUGH;
16924 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16925 CYTHON_FALLTHROUGH;
16926 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16927 CYTHON_FALLTHROUGH;
16929 default:
goto __pyx_L5_argtuple_error;
16931 kw_args = PyDict_Size(__pyx_kwds);
16932 switch (pos_args) {
16934 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
16935 else goto __pyx_L5_argtuple_error;
16936 CYTHON_FALLTHROUGH;
16938 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
16940 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 1); __PYX_ERR(0, 4070, __pyx_L3_error)
16942 CYTHON_FALLTHROUGH;
16944 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
16946 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 2); __PYX_ERR(0, 4070, __pyx_L3_error)
16948 CYTHON_FALLTHROUGH;
16950 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
16952 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 3); __PYX_ERR(0, 4070, __pyx_L3_error)
16954 CYTHON_FALLTHROUGH;
16956 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
16958 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 4); __PYX_ERR(0, 4070, __pyx_L3_error)
16960 CYTHON_FALLTHROUGH;
16962 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
16964 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 5); __PYX_ERR(0, 4070, __pyx_L3_error)
16966 CYTHON_FALLTHROUGH;
16968 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
16970 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 6); __PYX_ERR(0, 4070, __pyx_L3_error)
16972 CYTHON_FALLTHROUGH;
16974 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--;
16976 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 7); __PYX_ERR(0, 4070, __pyx_L3_error)
16978 CYTHON_FALLTHROUGH;
16980 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu)) != 0)) kw_args--;
16982 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 8); __PYX_ERR(0, 4070, __pyx_L3_error)
16984 CYTHON_FALLTHROUGH;
16986 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
16988 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 9); __PYX_ERR(0, 4070, __pyx_L3_error)
16990 CYTHON_FALLTHROUGH;
16992 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
16994 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 10); __PYX_ERR(0, 4070, __pyx_L3_error)
16997 if (unlikely(kw_args > 0)) {
16998 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalFluxShallowWaterHLL_1D") < 0)) __PYX_ERR(0, 4070, __pyx_L3_error)
17000 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
17001 goto __pyx_L5_argtuple_error;
17003 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17004 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17005 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17006 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17007 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17008 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17009 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17010 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17011 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17012 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17013 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17015 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4070, __pyx_L3_error)
17016 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4071, __pyx_L3_error)
17017 __pyx_v_g = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4072, __pyx_L3_error)
17018 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[3]);
17019 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
17020 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
17021 __pyx_v_n = ((PyArrayObject *)values[6]);
17022 __pyx_v_h = ((PyArrayObject *)values[7]);
17023 __pyx_v_hu = ((PyArrayObject *)values[8]);
17024 __pyx_v_flux_h = ((PyArrayObject *)values[9]);
17025 __pyx_v_flux_hu = ((PyArrayObject *)values[10]);
17027 goto __pyx_L4_argument_unpacking_done;
17028 __pyx_L5_argtuple_error:;
17029 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4070, __pyx_L3_error)
17031 __Pyx_AddTraceback(
"cnumericalFlux.calculateInteriorNumericalFluxShallowWaterHLL_1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
17032 __Pyx_RefNannyFinishContext();
17034 __pyx_L4_argument_unpacking_done:;
17035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4073, __pyx_L1_error)
17036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4074, __pyx_L1_error)
17037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4075, __pyx_L1_error)
17038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4076, __pyx_L1_error)
17039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h), __pyx_ptype_5numpy_ndarray, 1,
"h", 0))) __PYX_ERR(0, 4077, __pyx_L1_error)
17040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu), __pyx_ptype_5numpy_ndarray, 1,
"hu", 0))) __PYX_ERR(0, 4078, __pyx_L1_error)
17041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 4079, __pyx_L1_error)
17042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 4080, __pyx_L1_error)
17043 __pyx_r = __pyx_pf_14cnumericalFlux_92calculateInteriorNumericalFluxShallowWaterHLL_1D(__pyx_self, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_h, __pyx_v_hu, __pyx_v_flux_h, __pyx_v_flux_hu);
17050 __Pyx_RefNannyFinishContext();
17054 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) {
17055 PyObject *__pyx_r = NULL;
17056 __Pyx_RefNannyDeclarations
17057 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalFluxShallowWaterHLL_1D", 0);
17066 calculateInteriorNumericalFluxShallowWaterHLL_1D((__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_hu->dimensions[1]), (__pyx_v_hu->dimensions[2]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h->data), ((
double *)__pyx_v_hu->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data));
17077 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17078 __Pyx_XGIVEREF(__pyx_r);
17079 __Pyx_RefNannyFinishContext();
17092 static PyObject *__pyx_pw_14cnumericalFlux_95calculateExteriorNumericalFluxShallowWaterHLL_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17093 static PyMethodDef __pyx_mdef_14cnumericalFlux_95calculateExteriorNumericalFluxShallowWaterHLL_1D = {
"calculateExteriorNumericalFluxShallowWaterHLL_1D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_95calculateExteriorNumericalFluxShallowWaterHLL_1D, METH_VARARGS|METH_KEYWORDS, 0};
17094 static PyObject *__pyx_pw_14cnumericalFlux_95calculateExteriorNumericalFluxShallowWaterHLL_1D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17095 int __pyx_v_nExteriorElementBoundaries_global;
17096 double __pyx_v_h_eps;
17097 double __pyx_v_tol_u;
17099 PyArrayObject *__pyx_v_n = 0;
17100 PyArrayObject *__pyx_v_h_lv = 0;
17101 PyArrayObject *__pyx_v_hu_lv = 0;
17102 PyArrayObject *__pyx_v_h_rv = 0;
17103 PyArrayObject *__pyx_v_hu_rv = 0;
17104 PyArrayObject *__pyx_v_flux_h = 0;
17105 PyArrayObject *__pyx_v_flux_hu = 0;
17106 int __pyx_lineno = 0;
17107 const char *__pyx_filename = NULL;
17108 int __pyx_clineno = 0;
17109 PyObject *__pyx_r = 0;
17110 __Pyx_RefNannyDeclarations
17111 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWaterHLL_1D (wrapper)", 0);
17113 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_h_eps,&__pyx_n_s_tol_u,&__pyx_n_s_g,&__pyx_n_s_n,&__pyx_n_s_h_lv,&__pyx_n_s_hu_lv,&__pyx_n_s_h_rv,&__pyx_n_s_hu_rv,&__pyx_n_s_flux_h,&__pyx_n_s_flux_hu,0};
17114 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
17115 if (unlikely(__pyx_kwds)) {
17116 Py_ssize_t kw_args;
17117 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17118 switch (pos_args) {
17119 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17120 CYTHON_FALLTHROUGH;
17121 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17122 CYTHON_FALLTHROUGH;
17123 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17124 CYTHON_FALLTHROUGH;
17125 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17126 CYTHON_FALLTHROUGH;
17127 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17128 CYTHON_FALLTHROUGH;
17129 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17130 CYTHON_FALLTHROUGH;
17131 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17132 CYTHON_FALLTHROUGH;
17133 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17134 CYTHON_FALLTHROUGH;
17135 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17136 CYTHON_FALLTHROUGH;
17137 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17138 CYTHON_FALLTHROUGH;
17139 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17140 CYTHON_FALLTHROUGH;
17142 default:
goto __pyx_L5_argtuple_error;
17144 kw_args = PyDict_Size(__pyx_kwds);
17145 switch (pos_args) {
17147 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
17148 else goto __pyx_L5_argtuple_error;
17149 CYTHON_FALLTHROUGH;
17151 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_eps)) != 0)) kw_args--;
17153 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 1); __PYX_ERR(0, 4095, __pyx_L3_error)
17155 CYTHON_FALLTHROUGH;
17157 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tol_u)) != 0)) kw_args--;
17159 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 2); __PYX_ERR(0, 4095, __pyx_L3_error)
17161 CYTHON_FALLTHROUGH;
17163 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
17165 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 3); __PYX_ERR(0, 4095, __pyx_L3_error)
17167 CYTHON_FALLTHROUGH;
17169 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17171 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 4); __PYX_ERR(0, 4095, __pyx_L3_error)
17173 CYTHON_FALLTHROUGH;
17175 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_lv)) != 0)) kw_args--;
17177 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 5); __PYX_ERR(0, 4095, __pyx_L3_error)
17179 CYTHON_FALLTHROUGH;
17181 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_lv)) != 0)) kw_args--;
17183 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 6); __PYX_ERR(0, 4095, __pyx_L3_error)
17185 CYTHON_FALLTHROUGH;
17187 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h_rv)) != 0)) kw_args--;
17189 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 7); __PYX_ERR(0, 4095, __pyx_L3_error)
17191 CYTHON_FALLTHROUGH;
17193 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_hu_rv)) != 0)) kw_args--;
17195 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 8); __PYX_ERR(0, 4095, __pyx_L3_error)
17197 CYTHON_FALLTHROUGH;
17199 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_h)) != 0)) kw_args--;
17201 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 9); __PYX_ERR(0, 4095, __pyx_L3_error)
17203 CYTHON_FALLTHROUGH;
17205 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_hu)) != 0)) kw_args--;
17207 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, 10); __PYX_ERR(0, 4095, __pyx_L3_error)
17210 if (unlikely(kw_args > 0)) {
17211 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalFluxShallowWaterHLL_1D") < 0)) __PYX_ERR(0, 4095, __pyx_L3_error)
17213 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
17214 goto __pyx_L5_argtuple_error;
17216 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17217 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17218 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17219 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17220 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17221 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17222 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17223 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17224 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17225 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17226 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17228 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4095, __pyx_L3_error)
17229 __pyx_v_h_eps = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_h_eps == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4096, __pyx_L3_error)
17230 __pyx_v_tol_u = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_tol_u == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4097, __pyx_L3_error)
17231 __pyx_v_g = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_g == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4098, __pyx_L3_error)
17232 __pyx_v_n = ((PyArrayObject *)values[4]);
17233 __pyx_v_h_lv = ((PyArrayObject *)values[5]);
17234 __pyx_v_hu_lv = ((PyArrayObject *)values[6]);
17235 __pyx_v_h_rv = ((PyArrayObject *)values[7]);
17236 __pyx_v_hu_rv = ((PyArrayObject *)values[8]);
17237 __pyx_v_flux_h = ((PyArrayObject *)values[9]);
17238 __pyx_v_flux_hu = ((PyArrayObject *)values[10]);
17240 goto __pyx_L4_argument_unpacking_done;
17241 __pyx_L5_argtuple_error:;
17242 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4095, __pyx_L3_error)
17244 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalFluxShallowWaterHLL_1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
17245 __Pyx_RefNannyFinishContext();
17247 __pyx_L4_argument_unpacking_done:;
17248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4099, __pyx_L1_error)
17249 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_lv), __pyx_ptype_5numpy_ndarray, 1,
"h_lv", 0))) __PYX_ERR(0, 4100, __pyx_L1_error)
17250 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_lv), __pyx_ptype_5numpy_ndarray, 1,
"hu_lv", 0))) __PYX_ERR(0, 4101, __pyx_L1_error)
17251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_h_rv), __pyx_ptype_5numpy_ndarray, 1,
"h_rv", 0))) __PYX_ERR(0, 4102, __pyx_L1_error)
17252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_hu_rv), __pyx_ptype_5numpy_ndarray, 1,
"hu_rv", 0))) __PYX_ERR(0, 4103, __pyx_L1_error)
17253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_h), __pyx_ptype_5numpy_ndarray, 1,
"flux_h", 0))) __PYX_ERR(0, 4104, __pyx_L1_error)
17254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_hu), __pyx_ptype_5numpy_ndarray, 1,
"flux_hu", 0))) __PYX_ERR(0, 4105, __pyx_L1_error)
17255 __pyx_r = __pyx_pf_14cnumericalFlux_94calculateExteriorNumericalFluxShallowWaterHLL_1D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, __pyx_v_n, __pyx_v_h_lv, __pyx_v_hu_lv, __pyx_v_h_rv, __pyx_v_hu_rv, __pyx_v_flux_h, __pyx_v_flux_hu);
17262 __Pyx_RefNannyFinishContext();
17266 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) {
17267 PyObject *__pyx_r = NULL;
17268 __Pyx_RefNannyDeclarations
17269 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalFluxShallowWaterHLL_1D", 0);
17278 calculateExteriorNumericalFluxShallowWaterHLL_1D(__pyx_v_nExteriorElementBoundaries_global, (__pyx_v_hu_lv->dimensions[1]), __pyx_v_h_eps, __pyx_v_tol_u, __pyx_v_g, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_h_lv->data), ((
double *)__pyx_v_hu_lv->data), ((
double *)__pyx_v_h_rv->data), ((
double *)__pyx_v_hu_rv->data), ((
double *)__pyx_v_flux_h->data), ((
double *)__pyx_v_flux_hu->data));
17289 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17290 __Pyx_XGIVEREF(__pyx_r);
17291 __Pyx_RefNannyFinishContext();
17304 static PyObject *__pyx_pw_14cnumericalFlux_97calculateGlobalExteriorNumericalStressFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17305 static PyMethodDef __pyx_mdef_14cnumericalFlux_97calculateGlobalExteriorNumericalStressFlux = {
"calculateGlobalExteriorNumericalStressFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_97calculateGlobalExteriorNumericalStressFlux, METH_VARARGS|METH_KEYWORDS, 0};
17306 static PyObject *__pyx_pw_14cnumericalFlux_97calculateGlobalExteriorNumericalStressFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17307 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
17308 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
17309 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
17310 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
17311 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
17312 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
17313 PyArrayObject *__pyx_v_n = 0;
17314 PyArrayObject *__pyx_v_bc_u = 0;
17315 PyArrayObject *__pyx_v_bc_v = 0;
17316 PyArrayObject *__pyx_v_bc_w = 0;
17317 PyArrayObject *__pyx_v_sigma = 0;
17318 PyArrayObject *__pyx_v_u = 0;
17319 PyArrayObject *__pyx_v_v = 0;
17320 PyArrayObject *__pyx_v_w = 0;
17321 PyArrayObject *__pyx_v_penalty = 0;
17322 PyArrayObject *__pyx_v_stressFlux_u = 0;
17323 PyArrayObject *__pyx_v_stressFlux_v = 0;
17324 PyArrayObject *__pyx_v_stressFlux_w = 0;
17325 int __pyx_lineno = 0;
17326 const char *__pyx_filename = NULL;
17327 int __pyx_clineno = 0;
17328 PyObject *__pyx_r = 0;
17329 __Pyx_RefNannyDeclarations
17330 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalStressFlux (wrapper)", 0);
17332 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_u,&__pyx_n_s_bc_v,&__pyx_n_s_bc_w,&__pyx_n_s_sigma,&__pyx_n_s_u,&__pyx_n_s_v,&__pyx_n_s_w,&__pyx_n_s_penalty,&__pyx_n_s_stressFlux_u,&__pyx_n_s_stressFlux_v,&__pyx_n_s_stressFlux_w,0};
17333 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
17334 if (unlikely(__pyx_kwds)) {
17335 Py_ssize_t kw_args;
17336 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17337 switch (pos_args) {
17338 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17339 CYTHON_FALLTHROUGH;
17340 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17341 CYTHON_FALLTHROUGH;
17342 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17343 CYTHON_FALLTHROUGH;
17344 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17345 CYTHON_FALLTHROUGH;
17346 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17347 CYTHON_FALLTHROUGH;
17348 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17349 CYTHON_FALLTHROUGH;
17350 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17351 CYTHON_FALLTHROUGH;
17352 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17353 CYTHON_FALLTHROUGH;
17354 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17355 CYTHON_FALLTHROUGH;
17356 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17357 CYTHON_FALLTHROUGH;
17358 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17359 CYTHON_FALLTHROUGH;
17360 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17361 CYTHON_FALLTHROUGH;
17362 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17363 CYTHON_FALLTHROUGH;
17364 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17365 CYTHON_FALLTHROUGH;
17366 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17367 CYTHON_FALLTHROUGH;
17368 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17369 CYTHON_FALLTHROUGH;
17370 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17371 CYTHON_FALLTHROUGH;
17372 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17373 CYTHON_FALLTHROUGH;
17375 default:
goto __pyx_L5_argtuple_error;
17377 kw_args = PyDict_Size(__pyx_kwds);
17378 switch (pos_args) {
17380 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
17381 else goto __pyx_L5_argtuple_error;
17382 CYTHON_FALLTHROUGH;
17384 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
17386 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 1); __PYX_ERR(0, 4118, __pyx_L3_error)
17388 CYTHON_FALLTHROUGH;
17390 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
17392 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 2); __PYX_ERR(0, 4118, __pyx_L3_error)
17394 CYTHON_FALLTHROUGH;
17396 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
17398 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 3); __PYX_ERR(0, 4118, __pyx_L3_error)
17400 CYTHON_FALLTHROUGH;
17402 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
17404 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 4); __PYX_ERR(0, 4118, __pyx_L3_error)
17406 CYTHON_FALLTHROUGH;
17408 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
17410 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 5); __PYX_ERR(0, 4118, __pyx_L3_error)
17412 CYTHON_FALLTHROUGH;
17414 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17416 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 6); __PYX_ERR(0, 4118, __pyx_L3_error)
17418 CYTHON_FALLTHROUGH;
17420 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
17422 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 7); __PYX_ERR(0, 4118, __pyx_L3_error)
17424 CYTHON_FALLTHROUGH;
17426 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_v)) != 0)) kw_args--;
17428 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 8); __PYX_ERR(0, 4118, __pyx_L3_error)
17430 CYTHON_FALLTHROUGH;
17432 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_w)) != 0)) kw_args--;
17434 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 9); __PYX_ERR(0, 4118, __pyx_L3_error)
17436 CYTHON_FALLTHROUGH;
17438 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
17440 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 10); __PYX_ERR(0, 4118, __pyx_L3_error)
17442 CYTHON_FALLTHROUGH;
17444 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
17446 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 11); __PYX_ERR(0, 4118, __pyx_L3_error)
17448 CYTHON_FALLTHROUGH;
17450 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17452 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 12); __PYX_ERR(0, 4118, __pyx_L3_error)
17454 CYTHON_FALLTHROUGH;
17456 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
17458 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 13); __PYX_ERR(0, 4118, __pyx_L3_error)
17460 CYTHON_FALLTHROUGH;
17462 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
17464 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 14); __PYX_ERR(0, 4118, __pyx_L3_error)
17466 CYTHON_FALLTHROUGH;
17468 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stressFlux_u)) != 0)) kw_args--;
17470 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 15); __PYX_ERR(0, 4118, __pyx_L3_error)
17472 CYTHON_FALLTHROUGH;
17474 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stressFlux_v)) != 0)) kw_args--;
17476 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 16); __PYX_ERR(0, 4118, __pyx_L3_error)
17478 CYTHON_FALLTHROUGH;
17480 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stressFlux_w)) != 0)) kw_args--;
17482 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, 17); __PYX_ERR(0, 4118, __pyx_L3_error)
17485 if (unlikely(kw_args > 0)) {
17486 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalStressFlux") < 0)) __PYX_ERR(0, 4118, __pyx_L3_error)
17488 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
17489 goto __pyx_L5_argtuple_error;
17491 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17492 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17493 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17494 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17495 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17496 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17497 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17498 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17499 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17500 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17501 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17502 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17503 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17504 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17505 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17506 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17507 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17508 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17510 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
17511 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
17512 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
17513 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[3]);
17514 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[4]);
17515 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[5]);
17516 __pyx_v_n = ((PyArrayObject *)values[6]);
17517 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
17518 __pyx_v_bc_v = ((PyArrayObject *)values[8]);
17519 __pyx_v_bc_w = ((PyArrayObject *)values[9]);
17520 __pyx_v_sigma = ((PyArrayObject *)values[10]);
17521 __pyx_v_u = ((PyArrayObject *)values[11]);
17522 __pyx_v_v = ((PyArrayObject *)values[12]);
17523 __pyx_v_w = ((PyArrayObject *)values[13]);
17524 __pyx_v_penalty = ((PyArrayObject *)values[14]);
17525 __pyx_v_stressFlux_u = ((PyArrayObject *)values[15]);
17526 __pyx_v_stressFlux_v = ((PyArrayObject *)values[16]);
17527 __pyx_v_stressFlux_w = ((PyArrayObject *)values[17]);
17529 goto __pyx_L4_argument_unpacking_done;
17530 __pyx_L5_argtuple_error:;
17531 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalStressFlux", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4118, __pyx_L3_error)
17533 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalStressFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
17534 __Pyx_RefNannyFinishContext();
17536 __pyx_L4_argument_unpacking_done:;
17537 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4118, __pyx_L1_error)
17538 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4119, __pyx_L1_error)
17539 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4120, __pyx_L1_error)
17540 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 4121, __pyx_L1_error)
17541 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 4122, __pyx_L1_error)
17542 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 4123, __pyx_L1_error)
17543 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4124, __pyx_L1_error)
17544 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4125, __pyx_L1_error)
17545 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_v), __pyx_ptype_5numpy_ndarray, 1,
"bc_v", 0))) __PYX_ERR(0, 4126, __pyx_L1_error)
17546 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_w", 0))) __PYX_ERR(0, 4127, __pyx_L1_error)
17547 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sigma), __pyx_ptype_5numpy_ndarray, 1,
"sigma", 0))) __PYX_ERR(0, 4128, __pyx_L1_error)
17548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4129, __pyx_L1_error)
17549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4130, __pyx_L1_error)
17550 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4131, __pyx_L1_error)
17551 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4132, __pyx_L1_error)
17552 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_stressFlux_u), __pyx_ptype_5numpy_ndarray, 1,
"stressFlux_u", 0))) __PYX_ERR(0, 4133, __pyx_L1_error)
17553 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_stressFlux_v), __pyx_ptype_5numpy_ndarray, 1,
"stressFlux_v", 0))) __PYX_ERR(0, 4134, __pyx_L1_error)
17554 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_stressFlux_w), __pyx_ptype_5numpy_ndarray, 1,
"stressFlux_w", 0))) __PYX_ERR(0, 4135, __pyx_L1_error)
17555 __pyx_r = __pyx_pf_14cnumericalFlux_96calculateGlobalExteriorNumericalStressFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_u, __pyx_v_bc_v, __pyx_v_bc_w, __pyx_v_sigma, __pyx_v_u, __pyx_v_v, __pyx_v_w, __pyx_v_penalty, __pyx_v_stressFlux_u, __pyx_v_stressFlux_v, __pyx_v_stressFlux_w);
17562 __Pyx_RefNannyFinishContext();
17566 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) {
17567 PyObject *__pyx_r = NULL;
17568 __Pyx_RefNannyDeclarations
17569 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalStressFlux", 0);
17578 calculateGlobalExteriorNumericalStressFlux((__pyx_v_n->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_u->data), ((
double *)__pyx_v_bc_v->data), ((
double *)__pyx_v_bc_w->data), ((
double *)__pyx_v_sigma->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_stressFlux_u->data), ((
double *)__pyx_v_stressFlux_v->data), ((
double *)__pyx_v_stressFlux_w->data));
17589 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17590 __Pyx_XGIVEREF(__pyx_r);
17591 __Pyx_RefNannyFinishContext();
17604 static PyObject *__pyx_pw_14cnumericalFlux_99calculateExteriorNumericalAdvectiveFluxStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17605 static PyMethodDef __pyx_mdef_14cnumericalFlux_99calculateExteriorNumericalAdvectiveFluxStokes3D = {
"calculateExteriorNumericalAdvectiveFluxStokes3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_99calculateExteriorNumericalAdvectiveFluxStokes3D, METH_VARARGS|METH_KEYWORDS, 0};
17606 static PyObject *__pyx_pw_14cnumericalFlux_99calculateExteriorNumericalAdvectiveFluxStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17607 int __pyx_v_nExteriorElementBoundaries_global;
17608 int __pyx_v_nQuadraturePoints_elementBoundary;
17609 int __pyx_v_nSpace;
17610 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
17611 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
17612 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
17613 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
17614 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
17615 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
17616 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
17617 PyArrayObject *__pyx_v_n = 0;
17618 PyArrayObject *__pyx_v_bc_p = 0;
17619 PyArrayObject *__pyx_v_bc_f_mass = 0;
17620 PyArrayObject *__pyx_v_p = 0;
17621 PyArrayObject *__pyx_v_f_mass = 0;
17622 PyArrayObject *__pyx_v_df_mass_du = 0;
17623 PyArrayObject *__pyx_v_df_mass_dv = 0;
17624 PyArrayObject *__pyx_v_df_mass_dw = 0;
17625 PyArrayObject *__pyx_v_flux_mass = 0;
17626 PyArrayObject *__pyx_v_flux_umom = 0;
17627 PyArrayObject *__pyx_v_flux_vmom = 0;
17628 PyArrayObject *__pyx_v_flux_wmom = 0;
17629 PyArrayObject *__pyx_v_dflux_mass_du = 0;
17630 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
17631 PyArrayObject *__pyx_v_dflux_mass_dw = 0;
17632 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
17633 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
17634 PyArrayObject *__pyx_v_dflux_wmom_dp = 0;
17635 PyArrayObject *__pyx_v_velocity = 0;
17636 int __pyx_lineno = 0;
17637 const char *__pyx_filename = NULL;
17638 int __pyx_clineno = 0;
17639 PyObject *__pyx_r = 0;
17640 __Pyx_RefNannyDeclarations
17641 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokes3D (wrapper)", 0);
17643 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_mass_dw,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_flux_wmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_mass_dw,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_wmom_dp,&__pyx_n_s_velocity,0};
17644 PyObject* values[29] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
17645 if (unlikely(__pyx_kwds)) {
17646 Py_ssize_t kw_args;
17647 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17648 switch (pos_args) {
17649 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17650 CYTHON_FALLTHROUGH;
17651 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17652 CYTHON_FALLTHROUGH;
17653 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17654 CYTHON_FALLTHROUGH;
17655 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17656 CYTHON_FALLTHROUGH;
17657 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17658 CYTHON_FALLTHROUGH;
17659 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17660 CYTHON_FALLTHROUGH;
17661 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17662 CYTHON_FALLTHROUGH;
17663 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17664 CYTHON_FALLTHROUGH;
17665 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17666 CYTHON_FALLTHROUGH;
17667 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17668 CYTHON_FALLTHROUGH;
17669 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17670 CYTHON_FALLTHROUGH;
17671 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17672 CYTHON_FALLTHROUGH;
17673 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17674 CYTHON_FALLTHROUGH;
17675 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17676 CYTHON_FALLTHROUGH;
17677 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17678 CYTHON_FALLTHROUGH;
17679 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17680 CYTHON_FALLTHROUGH;
17681 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17682 CYTHON_FALLTHROUGH;
17683 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17684 CYTHON_FALLTHROUGH;
17685 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17686 CYTHON_FALLTHROUGH;
17687 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17688 CYTHON_FALLTHROUGH;
17689 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17690 CYTHON_FALLTHROUGH;
17691 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17692 CYTHON_FALLTHROUGH;
17693 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17694 CYTHON_FALLTHROUGH;
17695 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17696 CYTHON_FALLTHROUGH;
17697 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17698 CYTHON_FALLTHROUGH;
17699 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17700 CYTHON_FALLTHROUGH;
17701 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17702 CYTHON_FALLTHROUGH;
17703 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17704 CYTHON_FALLTHROUGH;
17705 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17706 CYTHON_FALLTHROUGH;
17708 default:
goto __pyx_L5_argtuple_error;
17710 kw_args = PyDict_Size(__pyx_kwds);
17711 switch (pos_args) {
17713 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
17714 else goto __pyx_L5_argtuple_error;
17715 CYTHON_FALLTHROUGH;
17717 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
17719 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 1); __PYX_ERR(0, 4158, __pyx_L3_error)
17721 CYTHON_FALLTHROUGH;
17723 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
17725 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 2); __PYX_ERR(0, 4158, __pyx_L3_error)
17727 CYTHON_FALLTHROUGH;
17729 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
17731 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 3); __PYX_ERR(0, 4158, __pyx_L3_error)
17733 CYTHON_FALLTHROUGH;
17735 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
17737 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 4); __PYX_ERR(0, 4158, __pyx_L3_error)
17739 CYTHON_FALLTHROUGH;
17741 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
17743 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 5); __PYX_ERR(0, 4158, __pyx_L3_error)
17745 CYTHON_FALLTHROUGH;
17747 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
17749 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 6); __PYX_ERR(0, 4158, __pyx_L3_error)
17751 CYTHON_FALLTHROUGH;
17753 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
17755 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 7); __PYX_ERR(0, 4158, __pyx_L3_error)
17757 CYTHON_FALLTHROUGH;
17759 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
17761 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 8); __PYX_ERR(0, 4158, __pyx_L3_error)
17763 CYTHON_FALLTHROUGH;
17765 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
17767 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 9); __PYX_ERR(0, 4158, __pyx_L3_error)
17769 CYTHON_FALLTHROUGH;
17771 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
17773 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 10); __PYX_ERR(0, 4158, __pyx_L3_error)
17775 CYTHON_FALLTHROUGH;
17777 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
17779 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 11); __PYX_ERR(0, 4158, __pyx_L3_error)
17781 CYTHON_FALLTHROUGH;
17783 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
17785 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 12); __PYX_ERR(0, 4158, __pyx_L3_error)
17787 CYTHON_FALLTHROUGH;
17789 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
17791 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 13); __PYX_ERR(0, 4158, __pyx_L3_error)
17793 CYTHON_FALLTHROUGH;
17795 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
17797 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 14); __PYX_ERR(0, 4158, __pyx_L3_error)
17799 CYTHON_FALLTHROUGH;
17801 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
17803 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 15); __PYX_ERR(0, 4158, __pyx_L3_error)
17805 CYTHON_FALLTHROUGH;
17807 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
17809 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 16); __PYX_ERR(0, 4158, __pyx_L3_error)
17811 CYTHON_FALLTHROUGH;
17813 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dw)) != 0)) kw_args--;
17815 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 17); __PYX_ERR(0, 4158, __pyx_L3_error)
17817 CYTHON_FALLTHROUGH;
17819 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
17821 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 18); __PYX_ERR(0, 4158, __pyx_L3_error)
17823 CYTHON_FALLTHROUGH;
17825 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
17827 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 19); __PYX_ERR(0, 4158, __pyx_L3_error)
17829 CYTHON_FALLTHROUGH;
17831 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
17833 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 20); __PYX_ERR(0, 4158, __pyx_L3_error)
17835 CYTHON_FALLTHROUGH;
17837 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_wmom)) != 0)) kw_args--;
17839 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 21); __PYX_ERR(0, 4158, __pyx_L3_error)
17841 CYTHON_FALLTHROUGH;
17843 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
17845 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 22); __PYX_ERR(0, 4158, __pyx_L3_error)
17847 CYTHON_FALLTHROUGH;
17849 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
17851 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 23); __PYX_ERR(0, 4158, __pyx_L3_error)
17853 CYTHON_FALLTHROUGH;
17855 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dw)) != 0)) kw_args--;
17857 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 24); __PYX_ERR(0, 4158, __pyx_L3_error)
17859 CYTHON_FALLTHROUGH;
17861 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
17863 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 25); __PYX_ERR(0, 4158, __pyx_L3_error)
17865 CYTHON_FALLTHROUGH;
17867 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
17869 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 26); __PYX_ERR(0, 4158, __pyx_L3_error)
17871 CYTHON_FALLTHROUGH;
17873 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dp)) != 0)) kw_args--;
17875 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 27); __PYX_ERR(0, 4158, __pyx_L3_error)
17877 CYTHON_FALLTHROUGH;
17879 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
17881 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, 28); __PYX_ERR(0, 4158, __pyx_L3_error)
17884 if (unlikely(kw_args > 0)) {
17885 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxStokes3D") < 0)) __PYX_ERR(0, 4158, __pyx_L3_error)
17887 }
else if (PyTuple_GET_SIZE(__pyx_args) != 29) {
17888 goto __pyx_L5_argtuple_error;
17890 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17891 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17892 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17893 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17894 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17895 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17896 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17897 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17898 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17899 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17900 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17901 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17902 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17903 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
17904 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
17905 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
17906 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
17907 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
17908 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
17909 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
17910 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
17911 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
17912 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
17913 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
17914 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
17915 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
17916 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
17917 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
17918 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
17920 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4158, __pyx_L3_error)
17921 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4159, __pyx_L3_error)
17922 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4160, __pyx_L3_error)
17923 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
17924 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
17925 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
17926 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[6]);
17927 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[7]);
17928 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[8]);
17929 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[9]);
17930 __pyx_v_n = ((PyArrayObject *)values[10]);
17931 __pyx_v_bc_p = ((PyArrayObject *)values[11]);
17932 __pyx_v_bc_f_mass = ((PyArrayObject *)values[12]);
17933 __pyx_v_p = ((PyArrayObject *)values[13]);
17934 __pyx_v_f_mass = ((PyArrayObject *)values[14]);
17935 __pyx_v_df_mass_du = ((PyArrayObject *)values[15]);
17936 __pyx_v_df_mass_dv = ((PyArrayObject *)values[16]);
17937 __pyx_v_df_mass_dw = ((PyArrayObject *)values[17]);
17938 __pyx_v_flux_mass = ((PyArrayObject *)values[18]);
17939 __pyx_v_flux_umom = ((PyArrayObject *)values[19]);
17940 __pyx_v_flux_vmom = ((PyArrayObject *)values[20]);
17941 __pyx_v_flux_wmom = ((PyArrayObject *)values[21]);
17942 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[22]);
17943 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[23]);
17944 __pyx_v_dflux_mass_dw = ((PyArrayObject *)values[24]);
17945 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[25]);
17946 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[26]);
17947 __pyx_v_dflux_wmom_dp = ((PyArrayObject *)values[27]);
17948 __pyx_v_velocity = ((PyArrayObject *)values[28]);
17950 goto __pyx_L4_argument_unpacking_done;
17951 __pyx_L5_argtuple_error:;
17952 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 1, 29, 29, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4158, __pyx_L3_error)
17954 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxStokes3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
17955 __Pyx_RefNannyFinishContext();
17957 __pyx_L4_argument_unpacking_done:;
17958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4161, __pyx_L1_error)
17959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4162, __pyx_L1_error)
17960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4163, __pyx_L1_error)
17961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 4164, __pyx_L1_error)
17962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 4165, __pyx_L1_error)
17963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 4166, __pyx_L1_error)
17964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 4167, __pyx_L1_error)
17965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4168, __pyx_L1_error)
17966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 4169, __pyx_L1_error)
17967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 4170, __pyx_L1_error)
17968 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4171, __pyx_L1_error)
17969 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 4172, __pyx_L1_error)
17970 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 4173, __pyx_L1_error)
17971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 4174, __pyx_L1_error)
17972 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dw", 0))) __PYX_ERR(0, 4175, __pyx_L1_error)
17973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 4176, __pyx_L1_error)
17974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 4177, __pyx_L1_error)
17975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 4178, __pyx_L1_error)
17976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_wmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_wmom", 0))) __PYX_ERR(0, 4179, __pyx_L1_error)
17977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 4180, __pyx_L1_error)
17978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 4181, __pyx_L1_error)
17979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dw", 0))) __PYX_ERR(0, 4182, __pyx_L1_error)
17980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 4183, __pyx_L1_error)
17981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 4184, __pyx_L1_error)
17982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dp", 0))) __PYX_ERR(0, 4185, __pyx_L1_error)
17983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4186, __pyx_L1_error)
17984 __pyx_r = __pyx_pf_14cnumericalFlux_98calculateExteriorNumericalAdvectiveFluxStokes3D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_p, __pyx_v_f_mass, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_mass_dw, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_flux_wmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_mass_dw, __pyx_v_dflux_umom_dp, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_wmom_dp, __pyx_v_velocity);
17991 __Pyx_RefNannyFinishContext();
17995 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) {
17996 PyObject *__pyx_r = NULL;
17997 __Pyx_RefNannyDeclarations
17998 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokes3D", 0);
18007 calculateGlobalExteriorNumericalAdvectiveFluxStokes3D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_mass_dw->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_flux_wmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_mass_dw->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_wmom_dp->data), ((
double *)__pyx_v_velocity->data));
18018 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18019 __Pyx_XGIVEREF(__pyx_r);
18020 __Pyx_RefNannyFinishContext();
18033 static PyObject *__pyx_pw_14cnumericalFlux_101calculateExteriorNumericalAdvectiveFluxNavierStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18034 static PyMethodDef __pyx_mdef_14cnumericalFlux_101calculateExteriorNumericalAdvectiveFluxNavierStokes3D = {
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_101calculateExteriorNumericalAdvectiveFluxNavierStokes3D, METH_VARARGS|METH_KEYWORDS, 0};
18035 static PyObject *__pyx_pw_14cnumericalFlux_101calculateExteriorNumericalAdvectiveFluxNavierStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18036 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
18037 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
18038 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
18039 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
18040 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
18041 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
18042 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
18043 PyArrayObject *__pyx_v_n = 0;
18044 PyArrayObject *__pyx_v_bc_p = 0;
18045 PyArrayObject *__pyx_v_bc_f_mass = 0;
18046 PyArrayObject *__pyx_v_bc_f_umom = 0;
18047 PyArrayObject *__pyx_v_bc_f_vmom = 0;
18048 PyArrayObject *__pyx_v_bc_f_wmom = 0;
18049 PyArrayObject *__pyx_v_p = 0;
18050 PyArrayObject *__pyx_v_f_mass = 0;
18051 PyArrayObject *__pyx_v_f_umom = 0;
18052 PyArrayObject *__pyx_v_f_vmom = 0;
18053 PyArrayObject *__pyx_v_f_wmom = 0;
18054 PyArrayObject *__pyx_v_df_mass_du = 0;
18055 PyArrayObject *__pyx_v_df_mass_dv = 0;
18056 PyArrayObject *__pyx_v_df_mass_dw = 0;
18057 PyArrayObject *__pyx_v_df_umom_dp = 0;
18058 PyArrayObject *__pyx_v_df_umom_du = 0;
18059 PyArrayObject *__pyx_v_df_umom_dv = 0;
18060 PyArrayObject *__pyx_v_df_umom_dw = 0;
18061 PyArrayObject *__pyx_v_df_vmom_dp = 0;
18062 PyArrayObject *__pyx_v_df_vmom_du = 0;
18063 PyArrayObject *__pyx_v_df_vmom_dv = 0;
18064 PyArrayObject *__pyx_v_df_vmom_dw = 0;
18065 PyArrayObject *__pyx_v_df_wmom_dp = 0;
18066 PyArrayObject *__pyx_v_df_wmom_du = 0;
18067 PyArrayObject *__pyx_v_df_wmom_dv = 0;
18068 PyArrayObject *__pyx_v_df_wmom_dw = 0;
18069 PyArrayObject *__pyx_v_flux_mass = 0;
18070 PyArrayObject *__pyx_v_flux_umom = 0;
18071 PyArrayObject *__pyx_v_flux_vmom = 0;
18072 PyArrayObject *__pyx_v_flux_wmom = 0;
18073 PyArrayObject *__pyx_v_dflux_mass_du = 0;
18074 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
18075 PyArrayObject *__pyx_v_dflux_mass_dw = 0;
18076 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
18077 PyArrayObject *__pyx_v_dflux_umom_du = 0;
18078 PyArrayObject *__pyx_v_dflux_umom_dv = 0;
18079 PyArrayObject *__pyx_v_dflux_umom_dw = 0;
18080 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
18081 PyArrayObject *__pyx_v_dflux_vmom_du = 0;
18082 PyArrayObject *__pyx_v_dflux_vmom_dv = 0;
18083 PyArrayObject *__pyx_v_dflux_vmom_dw = 0;
18084 PyArrayObject *__pyx_v_dflux_wmom_dp = 0;
18085 PyArrayObject *__pyx_v_dflux_wmom_du = 0;
18086 PyArrayObject *__pyx_v_dflux_wmom_dv = 0;
18087 PyArrayObject *__pyx_v_dflux_wmom_dw = 0;
18088 PyArrayObject *__pyx_v_velocity = 0;
18089 int __pyx_lineno = 0;
18090 const char *__pyx_filename = NULL;
18091 int __pyx_clineno = 0;
18092 PyObject *__pyx_r = 0;
18093 __Pyx_RefNannyDeclarations
18094 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D (wrapper)", 0);
18096 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_bc_f_umom,&__pyx_n_s_bc_f_vmom,&__pyx_n_s_bc_f_wmom,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_f_umom,&__pyx_n_s_f_vmom,&__pyx_n_s_f_wmom,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_mass_dw,&__pyx_n_s_df_umom_dp,&__pyx_n_s_df_umom_du,&__pyx_n_s_df_umom_dv,&__pyx_n_s_df_umom_dw,&__pyx_n_s_df_vmom_dp,&__pyx_n_s_df_vmom_du,&__pyx_n_s_df_vmom_dv,&__pyx_n_s_df_vmom_dw,&__pyx_n_s_df_wmom_dp,&__pyx_n_s_df_wmom_du,&__pyx_n_s_df_wmom_dv,&__pyx_n_s_df_wmom_dw,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_flux_wmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_mass_dw,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_umom_du,&__pyx_n_s_dflux_umom_dv,&__pyx_n_s_dflux_umom_dw,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_vmom_du,&__pyx_n_s_dflux_vmom_dv,&__pyx_n_s_dflux_vmom_dw,&__pyx_n_s_dflux_wmom_dp,&__pyx_n_s_dflux_wmom_du,&__pyx_n_s_dflux_wmom_dv,&__pyx_n_s_dflux_wmom_dw,&__pyx_n_s_velocity,0};
18097 PyObject* values[53] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18098 if (unlikely(__pyx_kwds)) {
18099 Py_ssize_t kw_args;
18100 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18101 switch (pos_args) {
18102 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18103 CYTHON_FALLTHROUGH;
18104 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18105 CYTHON_FALLTHROUGH;
18106 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18107 CYTHON_FALLTHROUGH;
18108 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18109 CYTHON_FALLTHROUGH;
18110 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18111 CYTHON_FALLTHROUGH;
18112 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18113 CYTHON_FALLTHROUGH;
18114 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18115 CYTHON_FALLTHROUGH;
18116 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18117 CYTHON_FALLTHROUGH;
18118 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18119 CYTHON_FALLTHROUGH;
18120 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18121 CYTHON_FALLTHROUGH;
18122 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18123 CYTHON_FALLTHROUGH;
18124 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18125 CYTHON_FALLTHROUGH;
18126 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18127 CYTHON_FALLTHROUGH;
18128 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18129 CYTHON_FALLTHROUGH;
18130 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18131 CYTHON_FALLTHROUGH;
18132 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18133 CYTHON_FALLTHROUGH;
18134 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18135 CYTHON_FALLTHROUGH;
18136 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18137 CYTHON_FALLTHROUGH;
18138 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18139 CYTHON_FALLTHROUGH;
18140 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18141 CYTHON_FALLTHROUGH;
18142 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18143 CYTHON_FALLTHROUGH;
18144 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18145 CYTHON_FALLTHROUGH;
18146 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18147 CYTHON_FALLTHROUGH;
18148 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18149 CYTHON_FALLTHROUGH;
18150 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18151 CYTHON_FALLTHROUGH;
18152 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18153 CYTHON_FALLTHROUGH;
18154 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18155 CYTHON_FALLTHROUGH;
18156 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18157 CYTHON_FALLTHROUGH;
18158 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18159 CYTHON_FALLTHROUGH;
18160 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18161 CYTHON_FALLTHROUGH;
18162 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18163 CYTHON_FALLTHROUGH;
18164 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18165 CYTHON_FALLTHROUGH;
18166 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18167 CYTHON_FALLTHROUGH;
18168 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18169 CYTHON_FALLTHROUGH;
18170 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18171 CYTHON_FALLTHROUGH;
18172 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18173 CYTHON_FALLTHROUGH;
18174 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18175 CYTHON_FALLTHROUGH;
18176 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18177 CYTHON_FALLTHROUGH;
18178 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18179 CYTHON_FALLTHROUGH;
18180 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18181 CYTHON_FALLTHROUGH;
18182 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18183 CYTHON_FALLTHROUGH;
18184 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18185 CYTHON_FALLTHROUGH;
18186 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18187 CYTHON_FALLTHROUGH;
18188 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18189 CYTHON_FALLTHROUGH;
18190 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18191 CYTHON_FALLTHROUGH;
18192 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18193 CYTHON_FALLTHROUGH;
18194 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18195 CYTHON_FALLTHROUGH;
18196 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18197 CYTHON_FALLTHROUGH;
18198 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18199 CYTHON_FALLTHROUGH;
18200 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18201 CYTHON_FALLTHROUGH;
18202 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18203 CYTHON_FALLTHROUGH;
18204 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18205 CYTHON_FALLTHROUGH;
18206 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18207 CYTHON_FALLTHROUGH;
18209 default:
goto __pyx_L5_argtuple_error;
18211 kw_args = PyDict_Size(__pyx_kwds);
18212 switch (pos_args) {
18214 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
18215 else goto __pyx_L5_argtuple_error;
18216 CYTHON_FALLTHROUGH;
18218 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
18220 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 1); __PYX_ERR(0, 4216, __pyx_L3_error)
18222 CYTHON_FALLTHROUGH;
18224 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
18226 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 2); __PYX_ERR(0, 4216, __pyx_L3_error)
18228 CYTHON_FALLTHROUGH;
18230 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
18232 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 3); __PYX_ERR(0, 4216, __pyx_L3_error)
18234 CYTHON_FALLTHROUGH;
18236 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
18238 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 4); __PYX_ERR(0, 4216, __pyx_L3_error)
18240 CYTHON_FALLTHROUGH;
18242 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
18244 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 5); __PYX_ERR(0, 4216, __pyx_L3_error)
18246 CYTHON_FALLTHROUGH;
18248 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
18250 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 6); __PYX_ERR(0, 4216, __pyx_L3_error)
18252 CYTHON_FALLTHROUGH;
18254 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
18256 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 7); __PYX_ERR(0, 4216, __pyx_L3_error)
18258 CYTHON_FALLTHROUGH;
18260 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
18262 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 8); __PYX_ERR(0, 4216, __pyx_L3_error)
18264 CYTHON_FALLTHROUGH;
18266 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
18268 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 9); __PYX_ERR(0, 4216, __pyx_L3_error)
18270 CYTHON_FALLTHROUGH;
18272 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_umom)) != 0)) kw_args--;
18274 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 10); __PYX_ERR(0, 4216, __pyx_L3_error)
18276 CYTHON_FALLTHROUGH;
18278 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_vmom)) != 0)) kw_args--;
18280 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 11); __PYX_ERR(0, 4216, __pyx_L3_error)
18282 CYTHON_FALLTHROUGH;
18284 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_wmom)) != 0)) kw_args--;
18286 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 12); __PYX_ERR(0, 4216, __pyx_L3_error)
18288 CYTHON_FALLTHROUGH;
18290 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
18292 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 13); __PYX_ERR(0, 4216, __pyx_L3_error)
18294 CYTHON_FALLTHROUGH;
18296 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
18298 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 14); __PYX_ERR(0, 4216, __pyx_L3_error)
18300 CYTHON_FALLTHROUGH;
18302 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_umom)) != 0)) kw_args--;
18304 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 15); __PYX_ERR(0, 4216, __pyx_L3_error)
18306 CYTHON_FALLTHROUGH;
18308 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_vmom)) != 0)) kw_args--;
18310 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 16); __PYX_ERR(0, 4216, __pyx_L3_error)
18312 CYTHON_FALLTHROUGH;
18314 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_wmom)) != 0)) kw_args--;
18316 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 17); __PYX_ERR(0, 4216, __pyx_L3_error)
18318 CYTHON_FALLTHROUGH;
18320 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
18322 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 18); __PYX_ERR(0, 4216, __pyx_L3_error)
18324 CYTHON_FALLTHROUGH;
18326 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
18328 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 19); __PYX_ERR(0, 4216, __pyx_L3_error)
18330 CYTHON_FALLTHROUGH;
18332 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dw)) != 0)) kw_args--;
18334 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 20); __PYX_ERR(0, 4216, __pyx_L3_error)
18336 CYTHON_FALLTHROUGH;
18338 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dp)) != 0)) kw_args--;
18340 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 21); __PYX_ERR(0, 4216, __pyx_L3_error)
18342 CYTHON_FALLTHROUGH;
18344 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_du)) != 0)) kw_args--;
18346 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 22); __PYX_ERR(0, 4216, __pyx_L3_error)
18348 CYTHON_FALLTHROUGH;
18350 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dv)) != 0)) kw_args--;
18352 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 23); __PYX_ERR(0, 4216, __pyx_L3_error)
18354 CYTHON_FALLTHROUGH;
18356 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dw)) != 0)) kw_args--;
18358 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 24); __PYX_ERR(0, 4216, __pyx_L3_error)
18360 CYTHON_FALLTHROUGH;
18362 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dp)) != 0)) kw_args--;
18364 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 25); __PYX_ERR(0, 4216, __pyx_L3_error)
18366 CYTHON_FALLTHROUGH;
18368 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_du)) != 0)) kw_args--;
18370 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 26); __PYX_ERR(0, 4216, __pyx_L3_error)
18372 CYTHON_FALLTHROUGH;
18374 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dv)) != 0)) kw_args--;
18376 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 27); __PYX_ERR(0, 4216, __pyx_L3_error)
18378 CYTHON_FALLTHROUGH;
18380 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dw)) != 0)) kw_args--;
18382 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 28); __PYX_ERR(0, 4216, __pyx_L3_error)
18384 CYTHON_FALLTHROUGH;
18386 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dp)) != 0)) kw_args--;
18388 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 29); __PYX_ERR(0, 4216, __pyx_L3_error)
18390 CYTHON_FALLTHROUGH;
18392 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_du)) != 0)) kw_args--;
18394 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 30); __PYX_ERR(0, 4216, __pyx_L3_error)
18396 CYTHON_FALLTHROUGH;
18398 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dv)) != 0)) kw_args--;
18400 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 31); __PYX_ERR(0, 4216, __pyx_L3_error)
18402 CYTHON_FALLTHROUGH;
18404 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dw)) != 0)) kw_args--;
18406 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 32); __PYX_ERR(0, 4216, __pyx_L3_error)
18408 CYTHON_FALLTHROUGH;
18410 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
18412 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 33); __PYX_ERR(0, 4216, __pyx_L3_error)
18414 CYTHON_FALLTHROUGH;
18416 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
18418 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 34); __PYX_ERR(0, 4216, __pyx_L3_error)
18420 CYTHON_FALLTHROUGH;
18422 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
18424 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 35); __PYX_ERR(0, 4216, __pyx_L3_error)
18426 CYTHON_FALLTHROUGH;
18428 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_wmom)) != 0)) kw_args--;
18430 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 36); __PYX_ERR(0, 4216, __pyx_L3_error)
18432 CYTHON_FALLTHROUGH;
18434 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
18436 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 37); __PYX_ERR(0, 4216, __pyx_L3_error)
18438 CYTHON_FALLTHROUGH;
18440 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
18442 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 38); __PYX_ERR(0, 4216, __pyx_L3_error)
18444 CYTHON_FALLTHROUGH;
18446 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dw)) != 0)) kw_args--;
18448 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 39); __PYX_ERR(0, 4216, __pyx_L3_error)
18450 CYTHON_FALLTHROUGH;
18452 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
18454 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 40); __PYX_ERR(0, 4216, __pyx_L3_error)
18456 CYTHON_FALLTHROUGH;
18458 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_du)) != 0)) kw_args--;
18460 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 41); __PYX_ERR(0, 4216, __pyx_L3_error)
18462 CYTHON_FALLTHROUGH;
18464 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dv)) != 0)) kw_args--;
18466 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 42); __PYX_ERR(0, 4216, __pyx_L3_error)
18468 CYTHON_FALLTHROUGH;
18470 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dw)) != 0)) kw_args--;
18472 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 43); __PYX_ERR(0, 4216, __pyx_L3_error)
18474 CYTHON_FALLTHROUGH;
18476 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
18478 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 44); __PYX_ERR(0, 4216, __pyx_L3_error)
18480 CYTHON_FALLTHROUGH;
18482 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_du)) != 0)) kw_args--;
18484 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 45); __PYX_ERR(0, 4216, __pyx_L3_error)
18486 CYTHON_FALLTHROUGH;
18488 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dv)) != 0)) kw_args--;
18490 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 46); __PYX_ERR(0, 4216, __pyx_L3_error)
18492 CYTHON_FALLTHROUGH;
18494 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dw)) != 0)) kw_args--;
18496 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 47); __PYX_ERR(0, 4216, __pyx_L3_error)
18498 CYTHON_FALLTHROUGH;
18500 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dp)) != 0)) kw_args--;
18502 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 48); __PYX_ERR(0, 4216, __pyx_L3_error)
18504 CYTHON_FALLTHROUGH;
18506 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_du)) != 0)) kw_args--;
18508 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 49); __PYX_ERR(0, 4216, __pyx_L3_error)
18510 CYTHON_FALLTHROUGH;
18512 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dv)) != 0)) kw_args--;
18514 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 50); __PYX_ERR(0, 4216, __pyx_L3_error)
18516 CYTHON_FALLTHROUGH;
18518 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dw)) != 0)) kw_args--;
18520 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 51); __PYX_ERR(0, 4216, __pyx_L3_error)
18522 CYTHON_FALLTHROUGH;
18524 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
18526 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, 52); __PYX_ERR(0, 4216, __pyx_L3_error)
18529 if (unlikely(kw_args > 0)) {
18530 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D") < 0)) __PYX_ERR(0, 4216, __pyx_L3_error)
18532 }
else if (PyTuple_GET_SIZE(__pyx_args) != 53) {
18533 goto __pyx_L5_argtuple_error;
18535 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18536 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18537 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18538 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18539 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18540 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18541 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18542 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18543 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18544 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18545 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18546 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18547 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18548 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18549 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18550 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18551 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18552 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18553 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18554 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
18555 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
18556 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
18557 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
18558 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
18559 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
18560 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
18561 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
18562 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
18563 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
18564 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
18565 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
18566 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
18567 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
18568 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
18569 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
18570 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
18571 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
18572 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
18573 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
18574 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
18575 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
18576 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
18577 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
18578 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
18579 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
18580 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
18581 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
18582 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
18583 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
18584 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
18585 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
18586 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
18587 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
18589 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
18590 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
18591 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
18592 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
18593 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
18594 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
18595 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[6]);
18596 __pyx_v_n = ((PyArrayObject *)values[7]);
18597 __pyx_v_bc_p = ((PyArrayObject *)values[8]);
18598 __pyx_v_bc_f_mass = ((PyArrayObject *)values[9]);
18599 __pyx_v_bc_f_umom = ((PyArrayObject *)values[10]);
18600 __pyx_v_bc_f_vmom = ((PyArrayObject *)values[11]);
18601 __pyx_v_bc_f_wmom = ((PyArrayObject *)values[12]);
18602 __pyx_v_p = ((PyArrayObject *)values[13]);
18603 __pyx_v_f_mass = ((PyArrayObject *)values[14]);
18604 __pyx_v_f_umom = ((PyArrayObject *)values[15]);
18605 __pyx_v_f_vmom = ((PyArrayObject *)values[16]);
18606 __pyx_v_f_wmom = ((PyArrayObject *)values[17]);
18607 __pyx_v_df_mass_du = ((PyArrayObject *)values[18]);
18608 __pyx_v_df_mass_dv = ((PyArrayObject *)values[19]);
18609 __pyx_v_df_mass_dw = ((PyArrayObject *)values[20]);
18610 __pyx_v_df_umom_dp = ((PyArrayObject *)values[21]);
18611 __pyx_v_df_umom_du = ((PyArrayObject *)values[22]);
18612 __pyx_v_df_umom_dv = ((PyArrayObject *)values[23]);
18613 __pyx_v_df_umom_dw = ((PyArrayObject *)values[24]);
18614 __pyx_v_df_vmom_dp = ((PyArrayObject *)values[25]);
18615 __pyx_v_df_vmom_du = ((PyArrayObject *)values[26]);
18616 __pyx_v_df_vmom_dv = ((PyArrayObject *)values[27]);
18617 __pyx_v_df_vmom_dw = ((PyArrayObject *)values[28]);
18618 __pyx_v_df_wmom_dp = ((PyArrayObject *)values[29]);
18619 __pyx_v_df_wmom_du = ((PyArrayObject *)values[30]);
18620 __pyx_v_df_wmom_dv = ((PyArrayObject *)values[31]);
18621 __pyx_v_df_wmom_dw = ((PyArrayObject *)values[32]);
18622 __pyx_v_flux_mass = ((PyArrayObject *)values[33]);
18623 __pyx_v_flux_umom = ((PyArrayObject *)values[34]);
18624 __pyx_v_flux_vmom = ((PyArrayObject *)values[35]);
18625 __pyx_v_flux_wmom = ((PyArrayObject *)values[36]);
18626 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[37]);
18627 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[38]);
18628 __pyx_v_dflux_mass_dw = ((PyArrayObject *)values[39]);
18629 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[40]);
18630 __pyx_v_dflux_umom_du = ((PyArrayObject *)values[41]);
18631 __pyx_v_dflux_umom_dv = ((PyArrayObject *)values[42]);
18632 __pyx_v_dflux_umom_dw = ((PyArrayObject *)values[43]);
18633 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[44]);
18634 __pyx_v_dflux_vmom_du = ((PyArrayObject *)values[45]);
18635 __pyx_v_dflux_vmom_dv = ((PyArrayObject *)values[46]);
18636 __pyx_v_dflux_vmom_dw = ((PyArrayObject *)values[47]);
18637 __pyx_v_dflux_wmom_dp = ((PyArrayObject *)values[48]);
18638 __pyx_v_dflux_wmom_du = ((PyArrayObject *)values[49]);
18639 __pyx_v_dflux_wmom_dv = ((PyArrayObject *)values[50]);
18640 __pyx_v_dflux_wmom_dw = ((PyArrayObject *)values[51]);
18641 __pyx_v_velocity = ((PyArrayObject *)values[52]);
18643 goto __pyx_L4_argument_unpacking_done;
18644 __pyx_L5_argtuple_error:;
18645 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 53, 53, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4216, __pyx_L3_error)
18647 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxNavierStokes3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
18648 __Pyx_RefNannyFinishContext();
18650 __pyx_L4_argument_unpacking_done:;
18651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4216, __pyx_L1_error)
18652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4217, __pyx_L1_error)
18653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4218, __pyx_L1_error)
18654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 4219, __pyx_L1_error)
18655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 4220, __pyx_L1_error)
18656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 4221, __pyx_L1_error)
18657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 4222, __pyx_L1_error)
18658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4223, __pyx_L1_error)
18659 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 4224, __pyx_L1_error)
18660 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 4225, __pyx_L1_error)
18661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_umom", 0))) __PYX_ERR(0, 4226, __pyx_L1_error)
18662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_vmom", 0))) __PYX_ERR(0, 4227, __pyx_L1_error)
18663 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_wmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_wmom", 0))) __PYX_ERR(0, 4228, __pyx_L1_error)
18664 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 4229, __pyx_L1_error)
18665 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 4230, __pyx_L1_error)
18666 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"f_umom", 0))) __PYX_ERR(0, 4231, __pyx_L1_error)
18667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"f_vmom", 0))) __PYX_ERR(0, 4232, __pyx_L1_error)
18668 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_wmom), __pyx_ptype_5numpy_ndarray, 1,
"f_wmom", 0))) __PYX_ERR(0, 4233, __pyx_L1_error)
18669 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 4234, __pyx_L1_error)
18670 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 4235, __pyx_L1_error)
18671 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dw", 0))) __PYX_ERR(0, 4236, __pyx_L1_error)
18672 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dp", 0))) __PYX_ERR(0, 4237, __pyx_L1_error)
18673 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_du", 0))) __PYX_ERR(0, 4238, __pyx_L1_error)
18674 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dv", 0))) __PYX_ERR(0, 4239, __pyx_L1_error)
18675 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dw", 0))) __PYX_ERR(0, 4240, __pyx_L1_error)
18676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dp", 0))) __PYX_ERR(0, 4241, __pyx_L1_error)
18677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_du", 0))) __PYX_ERR(0, 4242, __pyx_L1_error)
18678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dv", 0))) __PYX_ERR(0, 4243, __pyx_L1_error)
18679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dw", 0))) __PYX_ERR(0, 4244, __pyx_L1_error)
18680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dp", 0))) __PYX_ERR(0, 4245, __pyx_L1_error)
18681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_du", 0))) __PYX_ERR(0, 4246, __pyx_L1_error)
18682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dv", 0))) __PYX_ERR(0, 4247, __pyx_L1_error)
18683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dw", 0))) __PYX_ERR(0, 4248, __pyx_L1_error)
18684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 4249, __pyx_L1_error)
18685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 4250, __pyx_L1_error)
18686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 4251, __pyx_L1_error)
18687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_wmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_wmom", 0))) __PYX_ERR(0, 4252, __pyx_L1_error)
18688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 4253, __pyx_L1_error)
18689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 4254, __pyx_L1_error)
18690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dw", 0))) __PYX_ERR(0, 4255, __pyx_L1_error)
18691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 4256, __pyx_L1_error)
18692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_du", 0))) __PYX_ERR(0, 4257, __pyx_L1_error)
18693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dv", 0))) __PYX_ERR(0, 4258, __pyx_L1_error)
18694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dw", 0))) __PYX_ERR(0, 4259, __pyx_L1_error)
18695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 4260, __pyx_L1_error)
18696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_du", 0))) __PYX_ERR(0, 4261, __pyx_L1_error)
18697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dv", 0))) __PYX_ERR(0, 4262, __pyx_L1_error)
18698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dw", 0))) __PYX_ERR(0, 4263, __pyx_L1_error)
18699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dp", 0))) __PYX_ERR(0, 4264, __pyx_L1_error)
18700 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_du", 0))) __PYX_ERR(0, 4265, __pyx_L1_error)
18701 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dv", 0))) __PYX_ERR(0, 4266, __pyx_L1_error)
18702 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dw", 0))) __PYX_ERR(0, 4267, __pyx_L1_error)
18703 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4268, __pyx_L1_error)
18704 __pyx_r = __pyx_pf_14cnumericalFlux_100calculateExteriorNumericalAdvectiveFluxNavierStokes3D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_bc_f_umom, __pyx_v_bc_f_vmom, __pyx_v_bc_f_wmom, __pyx_v_p, __pyx_v_f_mass, __pyx_v_f_umom, __pyx_v_f_vmom, __pyx_v_f_wmom, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_mass_dw, __pyx_v_df_umom_dp, __pyx_v_df_umom_du, __pyx_v_df_umom_dv, __pyx_v_df_umom_dw, __pyx_v_df_vmom_dp, __pyx_v_df_vmom_du, __pyx_v_df_vmom_dv, __pyx_v_df_vmom_dw, __pyx_v_df_wmom_dp, __pyx_v_df_wmom_du, __pyx_v_df_wmom_dv, __pyx_v_df_wmom_dw, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_flux_wmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_mass_dw, __pyx_v_dflux_umom_dp, __pyx_v_dflux_umom_du, __pyx_v_dflux_umom_dv, __pyx_v_dflux_umom_dw, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_vmom_du, __pyx_v_dflux_vmom_dv, __pyx_v_dflux_vmom_dw, __pyx_v_dflux_wmom_dp, __pyx_v_dflux_wmom_du, __pyx_v_dflux_wmom_dv, __pyx_v_dflux_wmom_dw, __pyx_v_velocity);
18711 __Pyx_RefNannyFinishContext();
18715 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) {
18716 PyObject *__pyx_r = NULL;
18717 __Pyx_RefNannyDeclarations
18719 PyObject *__pyx_t_2 = NULL;
18720 PyObject *__pyx_t_3 = NULL;
18721 PyObject *__pyx_t_4 = NULL;
18722 int __pyx_lineno = 0;
18723 const char *__pyx_filename = NULL;
18724 int __pyx_clineno = 0;
18725 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxNavierStokes3D", 0);
18734 __pyx_t_1 = ((__pyx_v_f_mass->nd > 3) != 0);
18744 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4270, __pyx_L1_error)
18745 __Pyx_GOTREF(__pyx_t_3);
18747 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
18748 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
18749 if (likely(__pyx_t_4)) {
18750 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
18751 __Pyx_INCREF(__pyx_t_4);
18752 __Pyx_INCREF(
function);
18753 __Pyx_DECREF_SET(__pyx_t_3,
function);
18756 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
18757 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
18758 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4270, __pyx_L1_error)
18759 __Pyx_GOTREF(__pyx_t_2);
18760 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18761 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
18789 calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_bc_f_umom->data), ((
double *)__pyx_v_bc_f_vmom->data), ((
double *)__pyx_v_bc_f_wmom->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_f_umom->data), ((
double *)__pyx_v_f_vmom->data), ((
double *)__pyx_v_f_wmom->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_mass_dw->data), ((
double *)__pyx_v_df_umom_dp->data), ((
double *)__pyx_v_df_umom_du->data), ((
double *)__pyx_v_df_umom_dv->data), ((
double *)__pyx_v_df_umom_dw->data), ((
double *)__pyx_v_df_vmom_dp->data), ((
double *)__pyx_v_df_vmom_du->data), ((
double *)__pyx_v_df_vmom_dv->data), ((
double *)__pyx_v_df_vmom_dw->data), ((
double *)__pyx_v_df_wmom_dp->data), ((
double *)__pyx_v_df_wmom_du->data), ((
double *)__pyx_v_df_wmom_dv->data), ((
double *)__pyx_v_df_wmom_dw->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_flux_wmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_mass_dw->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_umom_du->data), ((
double *)__pyx_v_dflux_umom_dv->data), ((
double *)__pyx_v_dflux_umom_dw->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_vmom_du->data), ((
double *)__pyx_v_dflux_vmom_dv->data), ((
double *)__pyx_v_dflux_vmom_dw->data), ((
double *)__pyx_v_dflux_wmom_dp->data), ((
double *)__pyx_v_dflux_wmom_du->data), ((
double *)__pyx_v_dflux_wmom_dv->data), ((
double *)__pyx_v_dflux_wmom_dw->data), ((
double *)__pyx_v_velocity->data));
18802 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18805 __Pyx_XDECREF(__pyx_t_2);
18806 __Pyx_XDECREF(__pyx_t_3);
18807 __Pyx_XDECREF(__pyx_t_4);
18808 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxNavierStokes3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
18811 __Pyx_XGIVEREF(__pyx_r);
18812 __Pyx_RefNannyFinishContext();
18825 static PyObject *__pyx_pw_14cnumericalFlux_103calculateExteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18826 static PyMethodDef __pyx_mdef_14cnumericalFlux_103calculateExteriorNumericalAdvectiveFluxRusanov = {
"calculateExteriorNumericalAdvectiveFluxRusanov", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_103calculateExteriorNumericalAdvectiveFluxRusanov, METH_VARARGS|METH_KEYWORDS, 0};
18827 static PyObject *__pyx_pw_14cnumericalFlux_103calculateExteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18828 double __pyx_v_safetyFactor;
18829 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
18830 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
18831 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
18832 PyArrayObject *__pyx_v_isDOFBoundary = 0;
18833 PyArrayObject *__pyx_v_inflowFlag = 0;
18834 PyArrayObject *__pyx_v_n = 0;
18835 PyArrayObject *__pyx_v_bc_u = 0;
18836 PyArrayObject *__pyx_v_bc_f = 0;
18837 PyArrayObject *__pyx_v_bc_df = 0;
18838 PyArrayObject *__pyx_v_u = 0;
18839 PyArrayObject *__pyx_v_f = 0;
18840 PyArrayObject *__pyx_v_df = 0;
18841 PyArrayObject *__pyx_v_df_element = 0;
18842 PyArrayObject *__pyx_v_flux = 0;
18843 PyArrayObject *__pyx_v_dflux = 0;
18844 int __pyx_lineno = 0;
18845 const char *__pyx_filename = NULL;
18846 int __pyx_clineno = 0;
18847 PyObject *__pyx_r = 0;
18848 __Pyx_RefNannyDeclarations
18849 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxRusanov (wrapper)", 0);
18851 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__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_df_element,&__pyx_n_s_flux,&__pyx_n_s_dflux,0};
18852 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18853 if (unlikely(__pyx_kwds)) {
18854 Py_ssize_t kw_args;
18855 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18856 switch (pos_args) {
18857 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18858 CYTHON_FALLTHROUGH;
18859 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18860 CYTHON_FALLTHROUGH;
18861 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18862 CYTHON_FALLTHROUGH;
18863 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18864 CYTHON_FALLTHROUGH;
18865 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18866 CYTHON_FALLTHROUGH;
18867 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18868 CYTHON_FALLTHROUGH;
18869 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18870 CYTHON_FALLTHROUGH;
18871 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18872 CYTHON_FALLTHROUGH;
18873 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18874 CYTHON_FALLTHROUGH;
18875 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18876 CYTHON_FALLTHROUGH;
18877 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18878 CYTHON_FALLTHROUGH;
18879 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18880 CYTHON_FALLTHROUGH;
18881 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18882 CYTHON_FALLTHROUGH;
18883 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18884 CYTHON_FALLTHROUGH;
18885 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18886 CYTHON_FALLTHROUGH;
18887 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18888 CYTHON_FALLTHROUGH;
18890 default:
goto __pyx_L5_argtuple_error;
18892 kw_args = PyDict_Size(__pyx_kwds);
18893 switch (pos_args) {
18895 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
18896 else goto __pyx_L5_argtuple_error;
18897 CYTHON_FALLTHROUGH;
18899 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
18901 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 1); __PYX_ERR(0, 4328, __pyx_L3_error)
18903 CYTHON_FALLTHROUGH;
18905 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
18907 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 2); __PYX_ERR(0, 4328, __pyx_L3_error)
18909 CYTHON_FALLTHROUGH;
18911 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
18913 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 3); __PYX_ERR(0, 4328, __pyx_L3_error)
18915 CYTHON_FALLTHROUGH;
18917 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
18919 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 4); __PYX_ERR(0, 4328, __pyx_L3_error)
18921 CYTHON_FALLTHROUGH;
18923 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
18925 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 5); __PYX_ERR(0, 4328, __pyx_L3_error)
18927 CYTHON_FALLTHROUGH;
18929 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
18931 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 6); __PYX_ERR(0, 4328, __pyx_L3_error)
18933 CYTHON_FALLTHROUGH;
18935 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
18937 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 7); __PYX_ERR(0, 4328, __pyx_L3_error)
18939 CYTHON_FALLTHROUGH;
18941 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
18943 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 8); __PYX_ERR(0, 4328, __pyx_L3_error)
18945 CYTHON_FALLTHROUGH;
18947 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
18949 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 9); __PYX_ERR(0, 4328, __pyx_L3_error)
18951 CYTHON_FALLTHROUGH;
18953 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
18955 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 10); __PYX_ERR(0, 4328, __pyx_L3_error)
18957 CYTHON_FALLTHROUGH;
18959 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
18961 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 11); __PYX_ERR(0, 4328, __pyx_L3_error)
18963 CYTHON_FALLTHROUGH;
18965 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
18967 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 12); __PYX_ERR(0, 4328, __pyx_L3_error)
18969 CYTHON_FALLTHROUGH;
18971 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_element)) != 0)) kw_args--;
18973 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 13); __PYX_ERR(0, 4328, __pyx_L3_error)
18975 CYTHON_FALLTHROUGH;
18977 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
18979 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 14); __PYX_ERR(0, 4328, __pyx_L3_error)
18981 CYTHON_FALLTHROUGH;
18983 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
18985 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, 15); __PYX_ERR(0, 4328, __pyx_L3_error)
18988 if (unlikely(kw_args > 0)) {
18989 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxRusanov") < 0)) __PYX_ERR(0, 4328, __pyx_L3_error)
18991 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
18992 goto __pyx_L5_argtuple_error;
18994 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18995 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18996 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18997 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18998 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18999 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19000 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19001 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19002 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19003 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19004 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19005 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19006 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19007 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19008 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19009 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19011 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4328, __pyx_L3_error)
19012 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
19013 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
19014 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
19015 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
19016 __pyx_v_inflowFlag = ((PyArrayObject *)values[5]);
19017 __pyx_v_n = ((PyArrayObject *)values[6]);
19018 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
19019 __pyx_v_bc_f = ((PyArrayObject *)values[8]);
19020 __pyx_v_bc_df = ((PyArrayObject *)values[9]);
19021 __pyx_v_u = ((PyArrayObject *)values[10]);
19022 __pyx_v_f = ((PyArrayObject *)values[11]);
19023 __pyx_v_df = ((PyArrayObject *)values[12]);
19024 __pyx_v_df_element = ((PyArrayObject *)values[13]);
19025 __pyx_v_flux = ((PyArrayObject *)values[14]);
19026 __pyx_v_dflux = ((PyArrayObject *)values[15]);
19028 goto __pyx_L4_argument_unpacking_done;
19029 __pyx_L5_argtuple_error:;
19030 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanov", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4328, __pyx_L3_error)
19032 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxRusanov", __pyx_clineno, __pyx_lineno, __pyx_filename);
19033 __Pyx_RefNannyFinishContext();
19035 __pyx_L4_argument_unpacking_done:;
19036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4329, __pyx_L1_error)
19037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4330, __pyx_L1_error)
19038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4331, __pyx_L1_error)
19039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4332, __pyx_L1_error)
19040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 4333, __pyx_L1_error)
19041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4334, __pyx_L1_error)
19042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4335, __pyx_L1_error)
19043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 4336, __pyx_L1_error)
19044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 4337, __pyx_L1_error)
19045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4338, __pyx_L1_error)
19046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4339, __pyx_L1_error)
19047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 4340, __pyx_L1_error)
19048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_element), __pyx_ptype_5numpy_ndarray, 1,
"df_element", 0))) __PYX_ERR(0, 4341, __pyx_L1_error)
19049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4342, __pyx_L1_error)
19050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 4343, __pyx_L1_error)
19051 __pyx_r = __pyx_pf_14cnumericalFlux_102calculateExteriorNumericalAdvectiveFluxRusanov(__pyx_self, __pyx_v_safetyFactor, __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_df_element, __pyx_v_flux, __pyx_v_dflux);
19058 __Pyx_RefNannyFinishContext();
19062 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) {
19063 PyObject *__pyx_r = NULL;
19064 __Pyx_RefNannyDeclarations
19066 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxRusanov", 0);
19075 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
19085 calculateExteriorNumericalAdvectiveFluxRusanov(__pyx_v_safetyFactor, (__pyx_v_exteriorElementBoundaries->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_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_df_element->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux->data));
19113 calculateGlobalExteriorNumericalAdvectiveFluxRusanov(__pyx_v_safetyFactor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_df_element->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_df_element->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux->data));
19126 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19127 __Pyx_XGIVEREF(__pyx_r);
19128 __Pyx_RefNannyFinishContext();
19141 static PyObject *__pyx_pw_14cnumericalFlux_105calculateGlobalExteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19142 static PyMethodDef __pyx_mdef_14cnumericalFlux_105calculateGlobalExteriorNumericalAdvectiveFluxRusanov = {
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_105calculateGlobalExteriorNumericalAdvectiveFluxRusanov, METH_VARARGS|METH_KEYWORDS, 0};
19143 static PyObject *__pyx_pw_14cnumericalFlux_105calculateGlobalExteriorNumericalAdvectiveFluxRusanov(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19144 double __pyx_v_safetyFactor;
19145 int __pyx_v_nExteriorElementBoundaries_global;
19146 int __pyx_v_nQuadraturePoints_elementBoundary;
19147 int __pyx_v_nQuadraturePoints_element;
19148 int __pyx_v_nSpace;
19149 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
19150 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
19151 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
19152 PyArrayObject *__pyx_v_isDOFBoundary = 0;
19153 PyArrayObject *__pyx_v_inflowFlag = 0;
19154 PyArrayObject *__pyx_v_n = 0;
19155 PyArrayObject *__pyx_v_bc_u = 0;
19156 PyArrayObject *__pyx_v_bc_f = 0;
19157 PyArrayObject *__pyx_v_bc_df = 0;
19158 PyArrayObject *__pyx_v_u = 0;
19159 PyArrayObject *__pyx_v_f = 0;
19160 PyArrayObject *__pyx_v_df = 0;
19161 PyArrayObject *__pyx_v_df_element = 0;
19162 PyArrayObject *__pyx_v_flux = 0;
19163 PyArrayObject *__pyx_v_dflux = 0;
19164 int __pyx_lineno = 0;
19165 const char *__pyx_filename = NULL;
19166 int __pyx_clineno = 0;
19167 PyObject *__pyx_r = 0;
19168 __Pyx_RefNannyDeclarations
19169 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov (wrapper)", 0);
19171 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nQuadraturePoints_element,&__pyx_n_s_nSpace,&__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_df_element,&__pyx_n_s_flux,&__pyx_n_s_dflux,0};
19172 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19173 if (unlikely(__pyx_kwds)) {
19174 Py_ssize_t kw_args;
19175 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19176 switch (pos_args) {
19177 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19178 CYTHON_FALLTHROUGH;
19179 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19180 CYTHON_FALLTHROUGH;
19181 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19182 CYTHON_FALLTHROUGH;
19183 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19184 CYTHON_FALLTHROUGH;
19185 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19186 CYTHON_FALLTHROUGH;
19187 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19188 CYTHON_FALLTHROUGH;
19189 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19190 CYTHON_FALLTHROUGH;
19191 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19192 CYTHON_FALLTHROUGH;
19193 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19194 CYTHON_FALLTHROUGH;
19195 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19196 CYTHON_FALLTHROUGH;
19197 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19198 CYTHON_FALLTHROUGH;
19199 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19200 CYTHON_FALLTHROUGH;
19201 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19202 CYTHON_FALLTHROUGH;
19203 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19204 CYTHON_FALLTHROUGH;
19205 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19206 CYTHON_FALLTHROUGH;
19207 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19208 CYTHON_FALLTHROUGH;
19209 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19210 CYTHON_FALLTHROUGH;
19211 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19212 CYTHON_FALLTHROUGH;
19213 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19214 CYTHON_FALLTHROUGH;
19215 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19216 CYTHON_FALLTHROUGH;
19218 default:
goto __pyx_L5_argtuple_error;
19220 kw_args = PyDict_Size(__pyx_kwds);
19221 switch (pos_args) {
19223 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
19224 else goto __pyx_L5_argtuple_error;
19225 CYTHON_FALLTHROUGH;
19227 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
19229 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 1); __PYX_ERR(0, 4387, __pyx_L3_error)
19231 CYTHON_FALLTHROUGH;
19233 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
19235 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 2); __PYX_ERR(0, 4387, __pyx_L3_error)
19237 CYTHON_FALLTHROUGH;
19239 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_element)) != 0)) kw_args--;
19241 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 3); __PYX_ERR(0, 4387, __pyx_L3_error)
19243 CYTHON_FALLTHROUGH;
19245 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
19247 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 4); __PYX_ERR(0, 4387, __pyx_L3_error)
19249 CYTHON_FALLTHROUGH;
19251 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
19253 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 5); __PYX_ERR(0, 4387, __pyx_L3_error)
19255 CYTHON_FALLTHROUGH;
19257 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
19259 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 6); __PYX_ERR(0, 4387, __pyx_L3_error)
19261 CYTHON_FALLTHROUGH;
19263 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
19265 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 7); __PYX_ERR(0, 4387, __pyx_L3_error)
19267 CYTHON_FALLTHROUGH;
19269 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
19271 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 8); __PYX_ERR(0, 4387, __pyx_L3_error)
19273 CYTHON_FALLTHROUGH;
19275 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
19277 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 9); __PYX_ERR(0, 4387, __pyx_L3_error)
19279 CYTHON_FALLTHROUGH;
19281 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
19283 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 10); __PYX_ERR(0, 4387, __pyx_L3_error)
19285 CYTHON_FALLTHROUGH;
19287 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
19289 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 11); __PYX_ERR(0, 4387, __pyx_L3_error)
19291 CYTHON_FALLTHROUGH;
19293 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
19295 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 12); __PYX_ERR(0, 4387, __pyx_L3_error)
19297 CYTHON_FALLTHROUGH;
19299 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
19301 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 13); __PYX_ERR(0, 4387, __pyx_L3_error)
19303 CYTHON_FALLTHROUGH;
19305 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
19307 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 14); __PYX_ERR(0, 4387, __pyx_L3_error)
19309 CYTHON_FALLTHROUGH;
19311 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
19313 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 15); __PYX_ERR(0, 4387, __pyx_L3_error)
19315 CYTHON_FALLTHROUGH;
19317 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
19319 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 16); __PYX_ERR(0, 4387, __pyx_L3_error)
19321 CYTHON_FALLTHROUGH;
19323 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_element)) != 0)) kw_args--;
19325 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 17); __PYX_ERR(0, 4387, __pyx_L3_error)
19327 CYTHON_FALLTHROUGH;
19329 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
19331 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 18); __PYX_ERR(0, 4387, __pyx_L3_error)
19333 CYTHON_FALLTHROUGH;
19335 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
19337 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, 19); __PYX_ERR(0, 4387, __pyx_L3_error)
19340 if (unlikely(kw_args > 0)) {
19341 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov") < 0)) __PYX_ERR(0, 4387, __pyx_L3_error)
19343 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
19344 goto __pyx_L5_argtuple_error;
19346 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19347 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19348 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19349 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19350 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19351 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19352 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19353 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19354 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19355 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19356 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19357 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19358 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19359 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19360 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19361 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19362 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19363 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19364 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19365 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19367 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4387, __pyx_L3_error)
19368 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4388, __pyx_L3_error)
19369 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4389, __pyx_L3_error)
19370 __pyx_v_nQuadraturePoints_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4390, __pyx_L3_error)
19371 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4391, __pyx_L3_error)
19372 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
19373 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
19374 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
19375 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[8]);
19376 __pyx_v_inflowFlag = ((PyArrayObject *)values[9]);
19377 __pyx_v_n = ((PyArrayObject *)values[10]);
19378 __pyx_v_bc_u = ((PyArrayObject *)values[11]);
19379 __pyx_v_bc_f = ((PyArrayObject *)values[12]);
19380 __pyx_v_bc_df = ((PyArrayObject *)values[13]);
19381 __pyx_v_u = ((PyArrayObject *)values[14]);
19382 __pyx_v_f = ((PyArrayObject *)values[15]);
19383 __pyx_v_df = ((PyArrayObject *)values[16]);
19384 __pyx_v_df_element = ((PyArrayObject *)values[17]);
19385 __pyx_v_flux = ((PyArrayObject *)values[18]);
19386 __pyx_v_dflux = ((PyArrayObject *)values[19]);
19388 goto __pyx_L4_argument_unpacking_done;
19389 __pyx_L5_argtuple_error:;
19390 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4387, __pyx_L3_error)
19392 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxRusanov", __pyx_clineno, __pyx_lineno, __pyx_filename);
19393 __Pyx_RefNannyFinishContext();
19395 __pyx_L4_argument_unpacking_done:;
19396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4392, __pyx_L1_error)
19397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4393, __pyx_L1_error)
19398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4394, __pyx_L1_error)
19399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4395, __pyx_L1_error)
19400 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 4396, __pyx_L1_error)
19401 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4397, __pyx_L1_error)
19402 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4398, __pyx_L1_error)
19403 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 4399, __pyx_L1_error)
19404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 4400, __pyx_L1_error)
19405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4401, __pyx_L1_error)
19406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4402, __pyx_L1_error)
19407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 4403, __pyx_L1_error)
19408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_element), __pyx_ptype_5numpy_ndarray, 1,
"df_element", 0))) __PYX_ERR(0, 4404, __pyx_L1_error)
19409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4405, __pyx_L1_error)
19410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 4406, __pyx_L1_error)
19411 __pyx_r = __pyx_pf_14cnumericalFlux_104calculateGlobalExteriorNumericalAdvectiveFluxRusanov(__pyx_self, __pyx_v_safetyFactor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __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_df_element, __pyx_v_flux, __pyx_v_dflux);
19418 __Pyx_RefNannyFinishContext();
19422 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) {
19423 PyObject *__pyx_r = NULL;
19424 __Pyx_RefNannyDeclarations
19425 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanov", 0);
19434 calculateGlobalExteriorNumericalAdvectiveFluxRusanov(__pyx_v_safetyFactor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
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_df_element->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_dflux->data));
19445 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19446 __Pyx_XGIVEREF(__pyx_r);
19447 __Pyx_RefNannyFinishContext();
19460 static PyObject *__pyx_pw_14cnumericalFlux_107calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19461 static PyMethodDef __pyx_mdef_14cnumericalFlux_107calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound = {
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_107calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, METH_VARARGS|METH_KEYWORDS, 0};
19462 static PyObject *__pyx_pw_14cnumericalFlux_107calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19463 double __pyx_v_safetyFactor;
19464 int __pyx_v_nExteriorElementBoundaries_global;
19465 int __pyx_v_nQuadraturePoints_elementBoundary;
19466 int __pyx_v_nQuadraturePoints_element;
19467 int __pyx_v_nSpace;
19468 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
19469 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
19470 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
19471 PyArrayObject *__pyx_v_isDOFBoundary = 0;
19472 PyArrayObject *__pyx_v_inflowFlag = 0;
19473 PyArrayObject *__pyx_v_n = 0;
19474 PyArrayObject *__pyx_v_bc_u = 0;
19475 PyArrayObject *__pyx_v_bc_f = 0;
19476 PyArrayObject *__pyx_v_u = 0;
19477 PyArrayObject *__pyx_v_f = 0;
19478 PyArrayObject *__pyx_v_lambda_bar = 0;
19479 PyArrayObject *__pyx_v_flux = 0;
19480 int __pyx_lineno = 0;
19481 const char *__pyx_filename = NULL;
19482 int __pyx_clineno = 0;
19483 PyObject *__pyx_r = 0;
19484 __Pyx_RefNannyDeclarations
19485 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound (wrapper)", 0);
19487 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nQuadraturePoints_element,&__pyx_n_s_nSpace,&__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_u,&__pyx_n_s_f,&__pyx_n_s_lambda_bar,&__pyx_n_s_flux,0};
19488 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19489 if (unlikely(__pyx_kwds)) {
19490 Py_ssize_t kw_args;
19491 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19492 switch (pos_args) {
19493 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19494 CYTHON_FALLTHROUGH;
19495 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19496 CYTHON_FALLTHROUGH;
19497 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19498 CYTHON_FALLTHROUGH;
19499 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19500 CYTHON_FALLTHROUGH;
19501 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19502 CYTHON_FALLTHROUGH;
19503 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19504 CYTHON_FALLTHROUGH;
19505 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19506 CYTHON_FALLTHROUGH;
19507 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19508 CYTHON_FALLTHROUGH;
19509 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19510 CYTHON_FALLTHROUGH;
19511 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19512 CYTHON_FALLTHROUGH;
19513 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19514 CYTHON_FALLTHROUGH;
19515 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19516 CYTHON_FALLTHROUGH;
19517 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19518 CYTHON_FALLTHROUGH;
19519 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19520 CYTHON_FALLTHROUGH;
19521 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19522 CYTHON_FALLTHROUGH;
19523 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19524 CYTHON_FALLTHROUGH;
19525 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19526 CYTHON_FALLTHROUGH;
19528 default:
goto __pyx_L5_argtuple_error;
19530 kw_args = PyDict_Size(__pyx_kwds);
19531 switch (pos_args) {
19533 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
19534 else goto __pyx_L5_argtuple_error;
19535 CYTHON_FALLTHROUGH;
19537 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
19539 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 1); __PYX_ERR(0, 4427, __pyx_L3_error)
19541 CYTHON_FALLTHROUGH;
19543 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
19545 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 2); __PYX_ERR(0, 4427, __pyx_L3_error)
19547 CYTHON_FALLTHROUGH;
19549 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_element)) != 0)) kw_args--;
19551 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 3); __PYX_ERR(0, 4427, __pyx_L3_error)
19553 CYTHON_FALLTHROUGH;
19555 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
19557 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 4); __PYX_ERR(0, 4427, __pyx_L3_error)
19559 CYTHON_FALLTHROUGH;
19561 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
19563 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 5); __PYX_ERR(0, 4427, __pyx_L3_error)
19565 CYTHON_FALLTHROUGH;
19567 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
19569 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 6); __PYX_ERR(0, 4427, __pyx_L3_error)
19571 CYTHON_FALLTHROUGH;
19573 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
19575 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 7); __PYX_ERR(0, 4427, __pyx_L3_error)
19577 CYTHON_FALLTHROUGH;
19579 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
19581 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 8); __PYX_ERR(0, 4427, __pyx_L3_error)
19583 CYTHON_FALLTHROUGH;
19585 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
19587 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 9); __PYX_ERR(0, 4427, __pyx_L3_error)
19589 CYTHON_FALLTHROUGH;
19591 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
19593 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 10); __PYX_ERR(0, 4427, __pyx_L3_error)
19595 CYTHON_FALLTHROUGH;
19597 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
19599 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 11); __PYX_ERR(0, 4427, __pyx_L3_error)
19601 CYTHON_FALLTHROUGH;
19603 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
19605 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 12); __PYX_ERR(0, 4427, __pyx_L3_error)
19607 CYTHON_FALLTHROUGH;
19609 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
19611 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 13); __PYX_ERR(0, 4427, __pyx_L3_error)
19613 CYTHON_FALLTHROUGH;
19615 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
19617 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 14); __PYX_ERR(0, 4427, __pyx_L3_error)
19619 CYTHON_FALLTHROUGH;
19621 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lambda_bar)) != 0)) kw_args--;
19623 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 15); __PYX_ERR(0, 4427, __pyx_L3_error)
19625 CYTHON_FALLTHROUGH;
19627 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
19629 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, 16); __PYX_ERR(0, 4427, __pyx_L3_error)
19632 if (unlikely(kw_args > 0)) {
19633 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound") < 0)) __PYX_ERR(0, 4427, __pyx_L3_error)
19635 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
19636 goto __pyx_L5_argtuple_error;
19638 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19639 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19640 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19641 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19642 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19643 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19644 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19645 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19646 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19647 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19648 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19649 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19650 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19651 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19652 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19653 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19654 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19656 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4427, __pyx_L3_error)
19657 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4428, __pyx_L3_error)
19658 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4429, __pyx_L3_error)
19659 __pyx_v_nQuadraturePoints_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4430, __pyx_L3_error)
19660 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4431, __pyx_L3_error)
19661 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
19662 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
19663 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
19664 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[8]);
19665 __pyx_v_inflowFlag = ((PyArrayObject *)values[9]);
19666 __pyx_v_n = ((PyArrayObject *)values[10]);
19667 __pyx_v_bc_u = ((PyArrayObject *)values[11]);
19668 __pyx_v_bc_f = ((PyArrayObject *)values[12]);
19669 __pyx_v_u = ((PyArrayObject *)values[13]);
19670 __pyx_v_f = ((PyArrayObject *)values[14]);
19671 __pyx_v_lambda_bar = ((PyArrayObject *)values[15]);
19672 __pyx_v_flux = ((PyArrayObject *)values[16]);
19674 goto __pyx_L4_argument_unpacking_done;
19675 __pyx_L5_argtuple_error:;
19676 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4427, __pyx_L3_error)
19678 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", __pyx_clineno, __pyx_lineno, __pyx_filename);
19679 __Pyx_RefNannyFinishContext();
19681 __pyx_L4_argument_unpacking_done:;
19682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4432, __pyx_L1_error)
19683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4433, __pyx_L1_error)
19684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4434, __pyx_L1_error)
19685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4435, __pyx_L1_error)
19686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 4436, __pyx_L1_error)
19687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4437, __pyx_L1_error)
19688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4438, __pyx_L1_error)
19689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 4439, __pyx_L1_error)
19690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4440, __pyx_L1_error)
19691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4441, __pyx_L1_error)
19692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lambda_bar), __pyx_ptype_5numpy_ndarray, 1,
"lambda_bar", 0))) __PYX_ERR(0, 4442, __pyx_L1_error)
19693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4443, __pyx_L1_error)
19694 __pyx_r = __pyx_pf_14cnumericalFlux_106calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_self, __pyx_v_safetyFactor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __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_u, __pyx_v_f, __pyx_v_lambda_bar, __pyx_v_flux);
19701 __Pyx_RefNannyFinishContext();
19705 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) {
19706 PyObject *__pyx_r = NULL;
19707 __Pyx_RefNannyDeclarations
19708 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 0);
19717 calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_v_safetyFactor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
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_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_lambda_bar->data), ((
double *)__pyx_v_flux->data));
19728 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19729 __Pyx_XGIVEREF(__pyx_r);
19730 __Pyx_RefNannyFinishContext();
19743 static PyObject *__pyx_pw_14cnumericalFlux_109calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19744 static PyMethodDef __pyx_mdef_14cnumericalFlux_109calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound = {
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_109calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, METH_VARARGS|METH_KEYWORDS, 0};
19745 static PyObject *__pyx_pw_14cnumericalFlux_109calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19746 double __pyx_v_safetyFactor;
19747 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
19748 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
19749 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
19750 PyArrayObject *__pyx_v_isDOFBoundary = 0;
19751 PyArrayObject *__pyx_v_inflowFlag = 0;
19752 PyArrayObject *__pyx_v_n = 0;
19753 PyArrayObject *__pyx_v_bc_u = 0;
19754 PyArrayObject *__pyx_v_bc_f = 0;
19755 PyArrayObject *__pyx_v_u = 0;
19756 PyArrayObject *__pyx_v_f = 0;
19757 PyArrayObject *__pyx_v_lambda_bar_element = 0;
19758 PyArrayObject *__pyx_v_flux = 0;
19759 int __pyx_lineno = 0;
19760 const char *__pyx_filename = NULL;
19761 int __pyx_clineno = 0;
19762 PyObject *__pyx_r = 0;
19763 __Pyx_RefNannyDeclarations
19764 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound (wrapper)", 0);
19766 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_safetyFactor,&__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_u,&__pyx_n_s_f,&__pyx_n_s_lambda_bar_element,&__pyx_n_s_flux,0};
19767 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
19768 if (unlikely(__pyx_kwds)) {
19769 Py_ssize_t kw_args;
19770 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19771 switch (pos_args) {
19772 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19773 CYTHON_FALLTHROUGH;
19774 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19775 CYTHON_FALLTHROUGH;
19776 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19777 CYTHON_FALLTHROUGH;
19778 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19779 CYTHON_FALLTHROUGH;
19780 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19781 CYTHON_FALLTHROUGH;
19782 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19783 CYTHON_FALLTHROUGH;
19784 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19785 CYTHON_FALLTHROUGH;
19786 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19787 CYTHON_FALLTHROUGH;
19788 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19789 CYTHON_FALLTHROUGH;
19790 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19791 CYTHON_FALLTHROUGH;
19792 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19793 CYTHON_FALLTHROUGH;
19794 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19795 CYTHON_FALLTHROUGH;
19796 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19797 CYTHON_FALLTHROUGH;
19799 default:
goto __pyx_L5_argtuple_error;
19801 kw_args = PyDict_Size(__pyx_kwds);
19802 switch (pos_args) {
19804 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_safetyFactor)) != 0)) kw_args--;
19805 else goto __pyx_L5_argtuple_error;
19806 CYTHON_FALLTHROUGH;
19808 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
19810 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 1); __PYX_ERR(0, 4461, __pyx_L3_error)
19812 CYTHON_FALLTHROUGH;
19814 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
19816 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 2); __PYX_ERR(0, 4461, __pyx_L3_error)
19818 CYTHON_FALLTHROUGH;
19820 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
19822 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 3); __PYX_ERR(0, 4461, __pyx_L3_error)
19824 CYTHON_FALLTHROUGH;
19826 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
19828 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 4); __PYX_ERR(0, 4461, __pyx_L3_error)
19830 CYTHON_FALLTHROUGH;
19832 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
19834 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 5); __PYX_ERR(0, 4461, __pyx_L3_error)
19836 CYTHON_FALLTHROUGH;
19838 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
19840 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 6); __PYX_ERR(0, 4461, __pyx_L3_error)
19842 CYTHON_FALLTHROUGH;
19844 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
19846 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 7); __PYX_ERR(0, 4461, __pyx_L3_error)
19848 CYTHON_FALLTHROUGH;
19850 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
19852 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 8); __PYX_ERR(0, 4461, __pyx_L3_error)
19854 CYTHON_FALLTHROUGH;
19856 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
19858 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 9); __PYX_ERR(0, 4461, __pyx_L3_error)
19860 CYTHON_FALLTHROUGH;
19862 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
19864 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 10); __PYX_ERR(0, 4461, __pyx_L3_error)
19866 CYTHON_FALLTHROUGH;
19868 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_lambda_bar_element)) != 0)) kw_args--;
19870 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 11); __PYX_ERR(0, 4461, __pyx_L3_error)
19872 CYTHON_FALLTHROUGH;
19874 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
19876 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, 12); __PYX_ERR(0, 4461, __pyx_L3_error)
19879 if (unlikely(kw_args > 0)) {
19880 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound") < 0)) __PYX_ERR(0, 4461, __pyx_L3_error)
19882 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
19883 goto __pyx_L5_argtuple_error;
19885 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19886 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19887 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19888 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19889 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19890 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19891 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19892 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19893 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19894 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19895 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19896 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19897 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19899 __pyx_v_safetyFactor = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_safetyFactor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4461, __pyx_L3_error)
19900 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
19901 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
19902 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
19903 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
19904 __pyx_v_inflowFlag = ((PyArrayObject *)values[5]);
19905 __pyx_v_n = ((PyArrayObject *)values[6]);
19906 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
19907 __pyx_v_bc_f = ((PyArrayObject *)values[8]);
19908 __pyx_v_u = ((PyArrayObject *)values[9]);
19909 __pyx_v_f = ((PyArrayObject *)values[10]);
19910 __pyx_v_lambda_bar_element = ((PyArrayObject *)values[11]);
19911 __pyx_v_flux = ((PyArrayObject *)values[12]);
19913 goto __pyx_L4_argument_unpacking_done;
19914 __pyx_L5_argtuple_error:;
19915 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4461, __pyx_L3_error)
19917 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", __pyx_clineno, __pyx_lineno, __pyx_filename);
19918 __Pyx_RefNannyFinishContext();
19920 __pyx_L4_argument_unpacking_done:;
19921 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4462, __pyx_L1_error)
19922 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4463, __pyx_L1_error)
19923 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4464, __pyx_L1_error)
19924 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4465, __pyx_L1_error)
19925 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 4466, __pyx_L1_error)
19926 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4467, __pyx_L1_error)
19927 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4468, __pyx_L1_error)
19928 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 4469, __pyx_L1_error)
19929 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4470, __pyx_L1_error)
19930 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4471, __pyx_L1_error)
19931 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lambda_bar_element), __pyx_ptype_5numpy_ndarray, 1,
"lambda_bar_element", 0))) __PYX_ERR(0, 4472, __pyx_L1_error)
19932 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4473, __pyx_L1_error)
19933 __pyx_r = __pyx_pf_14cnumericalFlux_108calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_self, __pyx_v_safetyFactor, __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_u, __pyx_v_f, __pyx_v_lambda_bar_element, __pyx_v_flux);
19940 __Pyx_RefNannyFinishContext();
19944 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) {
19945 PyObject *__pyx_r = NULL;
19946 __Pyx_RefNannyDeclarations
19948 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound", 0);
19957 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
19967 calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_v_safetyFactor, (__pyx_v_exteriorElementBoundaries->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_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_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_lambda_bar_element->data), ((
double *)__pyx_v_flux->data));
19995 calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound(__pyx_v_safetyFactor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_lambda_bar_element->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_u->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_lambda_bar_element->data), ((
double *)__pyx_v_flux->data));
20008 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20009 __Pyx_XGIVEREF(__pyx_r);
20010 __Pyx_RefNannyFinishContext();
20023 static PyObject *__pyx_pw_14cnumericalFlux_111calculateExteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20024 static PyMethodDef __pyx_mdef_14cnumericalFlux_111calculateExteriorNumericalDiffusiveFlux = {
"calculateExteriorNumericalDiffusiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_111calculateExteriorNumericalDiffusiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
20025 static PyObject *__pyx_pw_14cnumericalFlux_111calculateExteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20026 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
20027 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
20028 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
20029 PyArrayObject *__pyx_v_isDOFBoundary = 0;
20030 PyArrayObject *__pyx_v_n = 0;
20031 PyArrayObject *__pyx_v_bc_a = 0;
20032 PyArrayObject *__pyx_v_bc_grad_phi = 0;
20033 PyArrayObject *__pyx_v_bc_u = 0;
20034 PyArrayObject *__pyx_v_a = 0;
20035 PyArrayObject *__pyx_v_grad_phi = 0;
20036 PyArrayObject *__pyx_v_u = 0;
20037 PyArrayObject *__pyx_v_penalty = 0;
20038 PyArrayObject *__pyx_v_flux = 0;
20039 int __pyx_v_scale_penalty;
20040 double __pyx_v_penalty_floor;
20041 int __pyx_lineno = 0;
20042 const char *__pyx_filename = NULL;
20043 int __pyx_clineno = 0;
20044 PyObject *__pyx_r = 0;
20045 __Pyx_RefNannyDeclarations
20046 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux (wrapper)", 0);
20048 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__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};
20049 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
20050 if (unlikely(__pyx_kwds)) {
20051 Py_ssize_t kw_args;
20052 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20053 switch (pos_args) {
20054 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20055 CYTHON_FALLTHROUGH;
20056 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20057 CYTHON_FALLTHROUGH;
20058 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20059 CYTHON_FALLTHROUGH;
20060 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20061 CYTHON_FALLTHROUGH;
20062 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20063 CYTHON_FALLTHROUGH;
20064 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20065 CYTHON_FALLTHROUGH;
20066 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20067 CYTHON_FALLTHROUGH;
20068 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20069 CYTHON_FALLTHROUGH;
20070 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20071 CYTHON_FALLTHROUGH;
20072 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20073 CYTHON_FALLTHROUGH;
20074 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20075 CYTHON_FALLTHROUGH;
20076 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20077 CYTHON_FALLTHROUGH;
20078 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20079 CYTHON_FALLTHROUGH;
20080 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20081 CYTHON_FALLTHROUGH;
20082 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20083 CYTHON_FALLTHROUGH;
20085 default:
goto __pyx_L5_argtuple_error;
20087 kw_args = PyDict_Size(__pyx_kwds);
20088 switch (pos_args) {
20090 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
20091 else goto __pyx_L5_argtuple_error;
20092 CYTHON_FALLTHROUGH;
20094 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
20096 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 1); __PYX_ERR(0, 4511, __pyx_L3_error)
20098 CYTHON_FALLTHROUGH;
20100 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
20102 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 2); __PYX_ERR(0, 4511, __pyx_L3_error)
20104 CYTHON_FALLTHROUGH;
20106 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
20108 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 3); __PYX_ERR(0, 4511, __pyx_L3_error)
20110 CYTHON_FALLTHROUGH;
20112 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
20114 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 4); __PYX_ERR(0, 4511, __pyx_L3_error)
20116 CYTHON_FALLTHROUGH;
20118 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
20120 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 5); __PYX_ERR(0, 4511, __pyx_L3_error)
20122 CYTHON_FALLTHROUGH;
20124 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
20126 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 6); __PYX_ERR(0, 4511, __pyx_L3_error)
20128 CYTHON_FALLTHROUGH;
20130 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
20132 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 7); __PYX_ERR(0, 4511, __pyx_L3_error)
20134 CYTHON_FALLTHROUGH;
20136 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
20138 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 8); __PYX_ERR(0, 4511, __pyx_L3_error)
20140 CYTHON_FALLTHROUGH;
20142 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
20144 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 9); __PYX_ERR(0, 4511, __pyx_L3_error)
20146 CYTHON_FALLTHROUGH;
20148 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20150 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 10); __PYX_ERR(0, 4511, __pyx_L3_error)
20152 CYTHON_FALLTHROUGH;
20154 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
20156 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 11); __PYX_ERR(0, 4511, __pyx_L3_error)
20158 CYTHON_FALLTHROUGH;
20160 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
20162 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, 12); __PYX_ERR(0, 4511, __pyx_L3_error)
20164 CYTHON_FALLTHROUGH;
20167 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty);
20168 if (value) { values[13] = value; kw_args--; }
20170 CYTHON_FALLTHROUGH;
20173 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor);
20174 if (value) { values[14] = value; kw_args--; }
20177 if (unlikely(kw_args > 0)) {
20178 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux") < 0)) __PYX_ERR(0, 4511, __pyx_L3_error)
20181 switch (PyTuple_GET_SIZE(__pyx_args)) {
20182 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20183 CYTHON_FALLTHROUGH;
20184 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20185 CYTHON_FALLTHROUGH;
20186 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20187 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20188 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20189 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20190 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20191 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20192 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20193 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20194 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20195 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20196 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20197 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20198 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20200 default:
goto __pyx_L5_argtuple_error;
20203 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
20204 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
20205 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
20206 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
20207 __pyx_v_n = ((PyArrayObject *)values[4]);
20208 __pyx_v_bc_a = ((PyArrayObject *)values[5]);
20209 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[6]);
20210 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
20211 __pyx_v_a = ((PyArrayObject *)values[8]);
20212 __pyx_v_grad_phi = ((PyArrayObject *)values[9]);
20213 __pyx_v_u = ((PyArrayObject *)values[10]);
20214 __pyx_v_penalty = ((PyArrayObject *)values[11]);
20215 __pyx_v_flux = ((PyArrayObject *)values[12]);
20217 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[13]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4524, __pyx_L3_error)
20219 __pyx_v_scale_penalty = ((int)0);
20222 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[14]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4525, __pyx_L3_error)
20224 __pyx_v_penalty_floor = ((double)0.0);
20227 goto __pyx_L4_argument_unpacking_done;
20228 __pyx_L5_argtuple_error:;
20229 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux", 0, 13, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4511, __pyx_L3_error)
20231 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
20232 __Pyx_RefNannyFinishContext();
20234 __pyx_L4_argument_unpacking_done:;
20235 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4511, __pyx_L1_error)
20236 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4512, __pyx_L1_error)
20237 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4513, __pyx_L1_error)
20238 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4514, __pyx_L1_error)
20239 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4515, __pyx_L1_error)
20240 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4516, __pyx_L1_error)
20241 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4517, __pyx_L1_error)
20242 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4518, __pyx_L1_error)
20243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4519, __pyx_L1_error)
20244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4520, __pyx_L1_error)
20245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4521, __pyx_L1_error)
20246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4522, __pyx_L1_error)
20247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4523, __pyx_L1_error)
20248 __pyx_r = __pyx_pf_14cnumericalFlux_110calculateExteriorNumericalDiffusiveFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
20255 __Pyx_RefNannyFinishContext();
20259 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) {
20260 PyObject *__pyx_r = NULL;
20261 __Pyx_RefNannyDeclarations
20262 PyObject *__pyx_t_1 = NULL;
20263 PyObject *__pyx_t_2 = NULL;
20264 PyObject *__pyx_t_3 = NULL;
20265 int __pyx_lineno = 0;
20266 const char *__pyx_filename = NULL;
20267 int __pyx_clineno = 0;
20268 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux", 0);
20277 switch (__pyx_v_grad_phi->nd) {
20287 calculateExteriorNumericalDiffusiveFlux(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
20306 calculateGlobalExteriorNumericalDiffusiveFlux(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
20325 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4566, __pyx_L1_error)
20326 __Pyx_GOTREF(__pyx_t_2);
20328 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
20329 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
20330 if (likely(__pyx_t_3)) {
20331 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20332 __Pyx_INCREF(__pyx_t_3);
20333 __Pyx_INCREF(
function);
20334 __Pyx_DECREF_SET(__pyx_t_2,
function);
20337 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
20338 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20339 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4566, __pyx_L1_error)
20340 __Pyx_GOTREF(__pyx_t_1);
20341 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20342 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20355 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20358 __Pyx_XDECREF(__pyx_t_1);
20359 __Pyx_XDECREF(__pyx_t_2);
20360 __Pyx_XDECREF(__pyx_t_3);
20361 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
20364 __Pyx_XGIVEREF(__pyx_r);
20365 __Pyx_RefNannyFinishContext();
20378 static PyObject *__pyx_pw_14cnumericalFlux_113calculateExteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20379 static PyMethodDef __pyx_mdef_14cnumericalFlux_113calculateExteriorNumericalDiffusiveFlux_sd = {
"calculateExteriorNumericalDiffusiveFlux_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_113calculateExteriorNumericalDiffusiveFlux_sd, METH_VARARGS|METH_KEYWORDS, 0};
20380 static PyObject *__pyx_pw_14cnumericalFlux_113calculateExteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20381 PyArrayObject *__pyx_v_rowptr = 0;
20382 PyArrayObject *__pyx_v_colind = 0;
20383 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
20384 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
20385 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
20386 PyArrayObject *__pyx_v_isDOFBoundary = 0;
20387 PyArrayObject *__pyx_v_n = 0;
20388 PyArrayObject *__pyx_v_bc_a = 0;
20389 PyArrayObject *__pyx_v_bc_grad_phi = 0;
20390 PyArrayObject *__pyx_v_bc_u = 0;
20391 PyArrayObject *__pyx_v_a = 0;
20392 PyArrayObject *__pyx_v_grad_phi = 0;
20393 PyArrayObject *__pyx_v_u = 0;
20394 PyArrayObject *__pyx_v_penalty = 0;
20395 PyArrayObject *__pyx_v_flux = 0;
20396 int __pyx_v_scale_penalty;
20397 double __pyx_v_penalty_floor;
20398 int __pyx_lineno = 0;
20399 const char *__pyx_filename = NULL;
20400 int __pyx_clineno = 0;
20401 PyObject *__pyx_r = 0;
20402 __Pyx_RefNannyDeclarations
20403 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_sd (wrapper)", 0);
20405 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__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};
20406 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
20407 if (unlikely(__pyx_kwds)) {
20408 Py_ssize_t kw_args;
20409 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20410 switch (pos_args) {
20411 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20412 CYTHON_FALLTHROUGH;
20413 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20414 CYTHON_FALLTHROUGH;
20415 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20416 CYTHON_FALLTHROUGH;
20417 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20418 CYTHON_FALLTHROUGH;
20419 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20420 CYTHON_FALLTHROUGH;
20421 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20422 CYTHON_FALLTHROUGH;
20423 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20424 CYTHON_FALLTHROUGH;
20425 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20426 CYTHON_FALLTHROUGH;
20427 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20428 CYTHON_FALLTHROUGH;
20429 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20430 CYTHON_FALLTHROUGH;
20431 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20432 CYTHON_FALLTHROUGH;
20433 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20434 CYTHON_FALLTHROUGH;
20435 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20436 CYTHON_FALLTHROUGH;
20437 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20438 CYTHON_FALLTHROUGH;
20439 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20440 CYTHON_FALLTHROUGH;
20441 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20442 CYTHON_FALLTHROUGH;
20443 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20444 CYTHON_FALLTHROUGH;
20446 default:
goto __pyx_L5_argtuple_error;
20448 kw_args = PyDict_Size(__pyx_kwds);
20449 switch (pos_args) {
20451 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
20452 else goto __pyx_L5_argtuple_error;
20453 CYTHON_FALLTHROUGH;
20455 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
20457 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 1); __PYX_ERR(0, 4567, __pyx_L3_error)
20459 CYTHON_FALLTHROUGH;
20461 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
20463 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 2); __PYX_ERR(0, 4567, __pyx_L3_error)
20465 CYTHON_FALLTHROUGH;
20467 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
20469 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 3); __PYX_ERR(0, 4567, __pyx_L3_error)
20471 CYTHON_FALLTHROUGH;
20473 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
20475 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 4); __PYX_ERR(0, 4567, __pyx_L3_error)
20477 CYTHON_FALLTHROUGH;
20479 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
20481 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 5); __PYX_ERR(0, 4567, __pyx_L3_error)
20483 CYTHON_FALLTHROUGH;
20485 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
20487 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 6); __PYX_ERR(0, 4567, __pyx_L3_error)
20489 CYTHON_FALLTHROUGH;
20491 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
20493 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 7); __PYX_ERR(0, 4567, __pyx_L3_error)
20495 CYTHON_FALLTHROUGH;
20497 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
20499 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 8); __PYX_ERR(0, 4567, __pyx_L3_error)
20501 CYTHON_FALLTHROUGH;
20503 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
20505 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 9); __PYX_ERR(0, 4567, __pyx_L3_error)
20507 CYTHON_FALLTHROUGH;
20509 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
20511 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 10); __PYX_ERR(0, 4567, __pyx_L3_error)
20513 CYTHON_FALLTHROUGH;
20515 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
20517 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 11); __PYX_ERR(0, 4567, __pyx_L3_error)
20519 CYTHON_FALLTHROUGH;
20521 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20523 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 12); __PYX_ERR(0, 4567, __pyx_L3_error)
20525 CYTHON_FALLTHROUGH;
20527 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
20529 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 13); __PYX_ERR(0, 4567, __pyx_L3_error)
20531 CYTHON_FALLTHROUGH;
20533 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
20535 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, 14); __PYX_ERR(0, 4567, __pyx_L3_error)
20537 CYTHON_FALLTHROUGH;
20540 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty);
20541 if (value) { values[15] = value; kw_args--; }
20543 CYTHON_FALLTHROUGH;
20546 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor);
20547 if (value) { values[16] = value; kw_args--; }
20550 if (unlikely(kw_args > 0)) {
20551 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux_sd") < 0)) __PYX_ERR(0, 4567, __pyx_L3_error)
20554 switch (PyTuple_GET_SIZE(__pyx_args)) {
20555 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20556 CYTHON_FALLTHROUGH;
20557 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20558 CYTHON_FALLTHROUGH;
20559 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20560 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20561 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20562 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20563 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20564 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20565 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20566 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20567 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20568 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20569 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20570 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20571 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20572 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20573 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20575 default:
goto __pyx_L5_argtuple_error;
20578 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
20579 __pyx_v_colind = ((PyArrayObject *)values[1]);
20580 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
20581 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
20582 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
20583 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[5]);
20584 __pyx_v_n = ((PyArrayObject *)values[6]);
20585 __pyx_v_bc_a = ((PyArrayObject *)values[7]);
20586 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[8]);
20587 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
20588 __pyx_v_a = ((PyArrayObject *)values[10]);
20589 __pyx_v_grad_phi = ((PyArrayObject *)values[11]);
20590 __pyx_v_u = ((PyArrayObject *)values[12]);
20591 __pyx_v_penalty = ((PyArrayObject *)values[13]);
20592 __pyx_v_flux = ((PyArrayObject *)values[14]);
20594 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[15]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4582, __pyx_L3_error)
20596 __pyx_v_scale_penalty = ((int)0);
20599 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4583, __pyx_L3_error)
20601 __pyx_v_penalty_floor = ((double)0.0);
20604 goto __pyx_L4_argument_unpacking_done;
20605 __pyx_L5_argtuple_error:;
20606 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_sd", 0, 15, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4567, __pyx_L3_error)
20608 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
20609 __Pyx_RefNannyFinishContext();
20611 __pyx_L4_argument_unpacking_done:;
20612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4567, __pyx_L1_error)
20613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4568, __pyx_L1_error)
20614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4569, __pyx_L1_error)
20615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4570, __pyx_L1_error)
20616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4571, __pyx_L1_error)
20617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4572, __pyx_L1_error)
20618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4573, __pyx_L1_error)
20619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4574, __pyx_L1_error)
20620 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4575, __pyx_L1_error)
20621 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4576, __pyx_L1_error)
20622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4577, __pyx_L1_error)
20623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4578, __pyx_L1_error)
20624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4579, __pyx_L1_error)
20625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4580, __pyx_L1_error)
20626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4581, __pyx_L1_error)
20627 __pyx_r = __pyx_pf_14cnumericalFlux_112calculateExteriorNumericalDiffusiveFlux_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
20634 __Pyx_RefNannyFinishContext();
20638 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) {
20639 PyObject *__pyx_r = NULL;
20640 __Pyx_RefNannyDeclarations
20641 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_sd", 0);
20650 switch (__pyx_v_grad_phi->nd) {
20660 calculateExteriorNumericalDiffusiveFlux_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
20679 calculateGlobalExteriorNumericalDiffusiveFlux_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
20701 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20702 __Pyx_XGIVEREF(__pyx_r);
20703 __Pyx_RefNannyFinishContext();
20716 static PyObject *__pyx_pw_14cnumericalFlux_115calculateGlobalExteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20717 static PyMethodDef __pyx_mdef_14cnumericalFlux_115calculateGlobalExteriorNumericalDiffusiveFlux = {
"calculateGlobalExteriorNumericalDiffusiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_115calculateGlobalExteriorNumericalDiffusiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
20718 static PyObject *__pyx_pw_14cnumericalFlux_115calculateGlobalExteriorNumericalDiffusiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20719 int __pyx_v_scale_penalty;
20720 double __pyx_v_penalty_floor;
20721 int __pyx_v_nExteriorElementBoundaries_global;
20722 int __pyx_v_nQuadraturePoints_elementBoundary;
20723 int __pyx_v_nSpace;
20724 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
20725 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
20726 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
20727 PyArrayObject *__pyx_v_isDOFBoundary = 0;
20728 PyArrayObject *__pyx_v_n = 0;
20729 PyArrayObject *__pyx_v_bc_a = 0;
20730 PyArrayObject *__pyx_v_bc_grad_phi = 0;
20731 PyArrayObject *__pyx_v_bc_u = 0;
20732 PyArrayObject *__pyx_v_a = 0;
20733 PyArrayObject *__pyx_v_grad_phi = 0;
20734 PyArrayObject *__pyx_v_u = 0;
20735 PyArrayObject *__pyx_v_penalty = 0;
20736 PyArrayObject *__pyx_v_flux = 0;
20737 int __pyx_lineno = 0;
20738 const char *__pyx_filename = NULL;
20739 int __pyx_clineno = 0;
20740 PyObject *__pyx_r = 0;
20741 __Pyx_RefNannyDeclarations
20742 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux (wrapper)", 0);
20744 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
20745 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
20746 if (unlikely(__pyx_kwds)) {
20747 Py_ssize_t kw_args;
20748 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20749 switch (pos_args) {
20750 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20751 CYTHON_FALLTHROUGH;
20752 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20753 CYTHON_FALLTHROUGH;
20754 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20755 CYTHON_FALLTHROUGH;
20756 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20757 CYTHON_FALLTHROUGH;
20758 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20759 CYTHON_FALLTHROUGH;
20760 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20761 CYTHON_FALLTHROUGH;
20762 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20763 CYTHON_FALLTHROUGH;
20764 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20765 CYTHON_FALLTHROUGH;
20766 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20767 CYTHON_FALLTHROUGH;
20768 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20769 CYTHON_FALLTHROUGH;
20770 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20771 CYTHON_FALLTHROUGH;
20772 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20773 CYTHON_FALLTHROUGH;
20774 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20775 CYTHON_FALLTHROUGH;
20776 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20777 CYTHON_FALLTHROUGH;
20778 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20779 CYTHON_FALLTHROUGH;
20780 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20781 CYTHON_FALLTHROUGH;
20782 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20783 CYTHON_FALLTHROUGH;
20784 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20785 CYTHON_FALLTHROUGH;
20787 default:
goto __pyx_L5_argtuple_error;
20789 kw_args = PyDict_Size(__pyx_kwds);
20790 switch (pos_args) {
20792 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
20793 else goto __pyx_L5_argtuple_error;
20794 CYTHON_FALLTHROUGH;
20796 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
20798 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 1); __PYX_ERR(0, 4627, __pyx_L3_error)
20800 CYTHON_FALLTHROUGH;
20802 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
20804 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 2); __PYX_ERR(0, 4627, __pyx_L3_error)
20806 CYTHON_FALLTHROUGH;
20808 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
20810 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 3); __PYX_ERR(0, 4627, __pyx_L3_error)
20812 CYTHON_FALLTHROUGH;
20814 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
20816 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 4); __PYX_ERR(0, 4627, __pyx_L3_error)
20818 CYTHON_FALLTHROUGH;
20820 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
20822 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 5); __PYX_ERR(0, 4627, __pyx_L3_error)
20824 CYTHON_FALLTHROUGH;
20826 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
20828 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 6); __PYX_ERR(0, 4627, __pyx_L3_error)
20830 CYTHON_FALLTHROUGH;
20832 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
20834 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 7); __PYX_ERR(0, 4627, __pyx_L3_error)
20836 CYTHON_FALLTHROUGH;
20838 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
20840 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 8); __PYX_ERR(0, 4627, __pyx_L3_error)
20842 CYTHON_FALLTHROUGH;
20844 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
20846 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 9); __PYX_ERR(0, 4627, __pyx_L3_error)
20848 CYTHON_FALLTHROUGH;
20850 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
20852 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 10); __PYX_ERR(0, 4627, __pyx_L3_error)
20854 CYTHON_FALLTHROUGH;
20856 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
20858 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 11); __PYX_ERR(0, 4627, __pyx_L3_error)
20860 CYTHON_FALLTHROUGH;
20862 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
20864 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 12); __PYX_ERR(0, 4627, __pyx_L3_error)
20866 CYTHON_FALLTHROUGH;
20868 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
20870 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 13); __PYX_ERR(0, 4627, __pyx_L3_error)
20872 CYTHON_FALLTHROUGH;
20874 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
20876 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 14); __PYX_ERR(0, 4627, __pyx_L3_error)
20878 CYTHON_FALLTHROUGH;
20880 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
20882 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 15); __PYX_ERR(0, 4627, __pyx_L3_error)
20884 CYTHON_FALLTHROUGH;
20886 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
20888 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 16); __PYX_ERR(0, 4627, __pyx_L3_error)
20890 CYTHON_FALLTHROUGH;
20892 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
20894 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, 17); __PYX_ERR(0, 4627, __pyx_L3_error)
20897 if (unlikely(kw_args > 0)) {
20898 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux") < 0)) __PYX_ERR(0, 4627, __pyx_L3_error)
20900 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
20901 goto __pyx_L5_argtuple_error;
20903 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20904 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20905 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20906 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20907 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20908 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20909 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20910 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20911 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20912 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20913 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20914 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20915 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
20916 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
20917 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
20918 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
20919 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
20920 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
20922 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4627, __pyx_L3_error)
20923 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4628, __pyx_L3_error)
20924 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4629, __pyx_L3_error)
20925 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4630, __pyx_L3_error)
20926 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4631, __pyx_L3_error)
20927 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
20928 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
20929 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
20930 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[8]);
20931 __pyx_v_n = ((PyArrayObject *)values[9]);
20932 __pyx_v_bc_a = ((PyArrayObject *)values[10]);
20933 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[11]);
20934 __pyx_v_bc_u = ((PyArrayObject *)values[12]);
20935 __pyx_v_a = ((PyArrayObject *)values[13]);
20936 __pyx_v_grad_phi = ((PyArrayObject *)values[14]);
20937 __pyx_v_u = ((PyArrayObject *)values[15]);
20938 __pyx_v_penalty = ((PyArrayObject *)values[16]);
20939 __pyx_v_flux = ((PyArrayObject *)values[17]);
20941 goto __pyx_L4_argument_unpacking_done;
20942 __pyx_L5_argtuple_error:;
20943 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4627, __pyx_L3_error)
20945 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
20946 __Pyx_RefNannyFinishContext();
20948 __pyx_L4_argument_unpacking_done:;
20949 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4632, __pyx_L1_error)
20950 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4633, __pyx_L1_error)
20951 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4634, __pyx_L1_error)
20952 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4635, __pyx_L1_error)
20953 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4636, __pyx_L1_error)
20954 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4637, __pyx_L1_error)
20955 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4638, __pyx_L1_error)
20956 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4639, __pyx_L1_error)
20957 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4640, __pyx_L1_error)
20958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4641, __pyx_L1_error)
20959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4642, __pyx_L1_error)
20960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4643, __pyx_L1_error)
20961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4644, __pyx_L1_error)
20962 __pyx_r = __pyx_pf_14cnumericalFlux_114calculateGlobalExteriorNumericalDiffusiveFlux(__pyx_self, __pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux);
20969 __Pyx_RefNannyFinishContext();
20973 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) {
20974 PyObject *__pyx_r = NULL;
20975 __Pyx_RefNannyDeclarations
20976 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux", 0);
20985 calculateGlobalExteriorNumericalDiffusiveFlux(__pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
20996 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20997 __Pyx_XGIVEREF(__pyx_r);
20998 __Pyx_RefNannyFinishContext();
21011 static PyObject *__pyx_pw_14cnumericalFlux_117calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21012 static PyMethodDef __pyx_mdef_14cnumericalFlux_117calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd = {
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_117calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd, METH_VARARGS|METH_KEYWORDS, 0};
21013 static PyObject *__pyx_pw_14cnumericalFlux_117calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21014 PyArrayObject *__pyx_v_rowptr = 0;
21015 PyArrayObject *__pyx_v_colind = 0;
21016 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
21017 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21018 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
21019 PyArrayObject *__pyx_v_isDOFBoundary = 0;
21020 PyArrayObject *__pyx_v_n = 0;
21021 PyArrayObject *__pyx_v_bc_a = 0;
21022 PyArrayObject *__pyx_v_bc_grad_phi = 0;
21023 PyArrayObject *__pyx_v_bc_u = 0;
21024 PyArrayObject *__pyx_v_a = 0;
21025 PyArrayObject *__pyx_v_grad_phi = 0;
21026 PyArrayObject *__pyx_v_u = 0;
21027 PyArrayObject *__pyx_v_penalty = 0;
21028 PyArrayObject *__pyx_v_flux = 0;
21029 int __pyx_v_scale_penalty;
21030 double __pyx_v_penalty_floor;
21031 int __pyx_lineno = 0;
21032 const char *__pyx_filename = NULL;
21033 int __pyx_clineno = 0;
21034 PyObject *__pyx_r = 0;
21035 __Pyx_RefNannyDeclarations
21036 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd (wrapper)", 0);
21038 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__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};
21039 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21040 if (unlikely(__pyx_kwds)) {
21041 Py_ssize_t kw_args;
21042 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21043 switch (pos_args) {
21044 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21045 CYTHON_FALLTHROUGH;
21046 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21047 CYTHON_FALLTHROUGH;
21048 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21049 CYTHON_FALLTHROUGH;
21050 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21051 CYTHON_FALLTHROUGH;
21052 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21053 CYTHON_FALLTHROUGH;
21054 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21055 CYTHON_FALLTHROUGH;
21056 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21057 CYTHON_FALLTHROUGH;
21058 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21059 CYTHON_FALLTHROUGH;
21060 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21061 CYTHON_FALLTHROUGH;
21062 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21063 CYTHON_FALLTHROUGH;
21064 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21065 CYTHON_FALLTHROUGH;
21066 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21067 CYTHON_FALLTHROUGH;
21068 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21069 CYTHON_FALLTHROUGH;
21070 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21071 CYTHON_FALLTHROUGH;
21072 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21073 CYTHON_FALLTHROUGH;
21074 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21075 CYTHON_FALLTHROUGH;
21076 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21077 CYTHON_FALLTHROUGH;
21079 default:
goto __pyx_L5_argtuple_error;
21081 kw_args = PyDict_Size(__pyx_kwds);
21082 switch (pos_args) {
21084 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
21085 else goto __pyx_L5_argtuple_error;
21086 CYTHON_FALLTHROUGH;
21088 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
21090 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 1); __PYX_ERR(0, 4664, __pyx_L3_error)
21092 CYTHON_FALLTHROUGH;
21094 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
21096 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 2); __PYX_ERR(0, 4664, __pyx_L3_error)
21098 CYTHON_FALLTHROUGH;
21100 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21102 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 3); __PYX_ERR(0, 4664, __pyx_L3_error)
21104 CYTHON_FALLTHROUGH;
21106 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21108 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 4); __PYX_ERR(0, 4664, __pyx_L3_error)
21110 CYTHON_FALLTHROUGH;
21112 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
21114 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 5); __PYX_ERR(0, 4664, __pyx_L3_error)
21116 CYTHON_FALLTHROUGH;
21118 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
21120 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 6); __PYX_ERR(0, 4664, __pyx_L3_error)
21122 CYTHON_FALLTHROUGH;
21124 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
21126 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 7); __PYX_ERR(0, 4664, __pyx_L3_error)
21128 CYTHON_FALLTHROUGH;
21130 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
21132 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 8); __PYX_ERR(0, 4664, __pyx_L3_error)
21134 CYTHON_FALLTHROUGH;
21136 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
21138 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 9); __PYX_ERR(0, 4664, __pyx_L3_error)
21140 CYTHON_FALLTHROUGH;
21142 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
21144 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 10); __PYX_ERR(0, 4664, __pyx_L3_error)
21146 CYTHON_FALLTHROUGH;
21148 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
21150 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 11); __PYX_ERR(0, 4664, __pyx_L3_error)
21152 CYTHON_FALLTHROUGH;
21154 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21156 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 12); __PYX_ERR(0, 4664, __pyx_L3_error)
21158 CYTHON_FALLTHROUGH;
21160 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
21162 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 13); __PYX_ERR(0, 4664, __pyx_L3_error)
21164 CYTHON_FALLTHROUGH;
21166 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
21168 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 14); __PYX_ERR(0, 4664, __pyx_L3_error)
21170 CYTHON_FALLTHROUGH;
21172 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
21174 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 15); __PYX_ERR(0, 4664, __pyx_L3_error)
21176 CYTHON_FALLTHROUGH;
21178 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
21180 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, 16); __PYX_ERR(0, 4664, __pyx_L3_error)
21183 if (unlikely(kw_args > 0)) {
21184 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd") < 0)) __PYX_ERR(0, 4664, __pyx_L3_error)
21186 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
21187 goto __pyx_L5_argtuple_error;
21189 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21190 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21191 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21192 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21193 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21194 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21195 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21196 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21197 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21198 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21199 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21200 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21201 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21202 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21203 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21204 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21205 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21207 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
21208 __pyx_v_colind = ((PyArrayObject *)values[1]);
21209 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
21210 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
21211 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
21212 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[5]);
21213 __pyx_v_n = ((PyArrayObject *)values[6]);
21214 __pyx_v_bc_a = ((PyArrayObject *)values[7]);
21215 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[8]);
21216 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
21217 __pyx_v_a = ((PyArrayObject *)values[10]);
21218 __pyx_v_grad_phi = ((PyArrayObject *)values[11]);
21219 __pyx_v_u = ((PyArrayObject *)values[12]);
21220 __pyx_v_penalty = ((PyArrayObject *)values[13]);
21221 __pyx_v_flux = ((PyArrayObject *)values[14]);
21222 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[15]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4679, __pyx_L3_error)
21223 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4680, __pyx_L3_error)
21225 goto __pyx_L4_argument_unpacking_done;
21226 __pyx_L5_argtuple_error:;
21227 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4664, __pyx_L3_error)
21229 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
21230 __Pyx_RefNannyFinishContext();
21232 __pyx_L4_argument_unpacking_done:;
21233 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4664, __pyx_L1_error)
21234 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4665, __pyx_L1_error)
21235 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4666, __pyx_L1_error)
21236 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4667, __pyx_L1_error)
21237 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4668, __pyx_L1_error)
21238 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4669, __pyx_L1_error)
21239 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4670, __pyx_L1_error)
21240 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4671, __pyx_L1_error)
21241 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4672, __pyx_L1_error)
21242 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4673, __pyx_L1_error)
21243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4674, __pyx_L1_error)
21244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4675, __pyx_L1_error)
21245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4676, __pyx_L1_error)
21246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4677, __pyx_L1_error)
21247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4678, __pyx_L1_error)
21248 __pyx_r = __pyx_pf_14cnumericalFlux_116calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
21255 __Pyx_RefNannyFinishContext();
21259 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) {
21260 PyObject *__pyx_r = NULL;
21261 __Pyx_RefNannyDeclarations
21263 PyObject *__pyx_t_2 = NULL;
21264 PyObject *__pyx_t_3 = NULL;
21265 PyObject *__pyx_t_4 = NULL;
21266 int __pyx_lineno = 0;
21267 const char *__pyx_filename = NULL;
21268 int __pyx_clineno = 0;
21269 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", 0);
21278 __pyx_t_1 = ((__pyx_v_grad_phi->nd == 3) != 0);
21288 calculateGlobalExteriorNumericalDiffusiveFlux_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
21308 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4703, __pyx_L1_error)
21309 __Pyx_GOTREF(__pyx_t_3);
21311 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
21312 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
21313 if (likely(__pyx_t_4)) {
21314 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
21315 __Pyx_INCREF(__pyx_t_4);
21316 __Pyx_INCREF(
function);
21317 __Pyx_DECREF_SET(__pyx_t_3,
function);
21320 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
21321 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
21322 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4703, __pyx_L1_error)
21323 __Pyx_GOTREF(__pyx_t_2);
21324 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21325 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21338 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21341 __Pyx_XDECREF(__pyx_t_2);
21342 __Pyx_XDECREF(__pyx_t_3);
21343 __Pyx_XDECREF(__pyx_t_4);
21344 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
21347 __Pyx_XGIVEREF(__pyx_r);
21348 __Pyx_RefNannyFinishContext();
21361 static PyObject *__pyx_pw_14cnumericalFlux_119calculateGlobalExteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21362 static PyMethodDef __pyx_mdef_14cnumericalFlux_119calculateGlobalExteriorNumericalDiffusiveFlux_sd = {
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_119calculateGlobalExteriorNumericalDiffusiveFlux_sd, METH_VARARGS|METH_KEYWORDS, 0};
21363 static PyObject *__pyx_pw_14cnumericalFlux_119calculateGlobalExteriorNumericalDiffusiveFlux_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21364 PyArrayObject *__pyx_v_rowptr = 0;
21365 PyArrayObject *__pyx_v_colind = 0;
21366 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
21367 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21368 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
21369 PyArrayObject *__pyx_v_isDOFBoundary = 0;
21370 PyArrayObject *__pyx_v_n = 0;
21371 PyArrayObject *__pyx_v_bc_a = 0;
21372 PyArrayObject *__pyx_v_bc_grad_phi = 0;
21373 PyArrayObject *__pyx_v_bc_u = 0;
21374 PyArrayObject *__pyx_v_a = 0;
21375 PyArrayObject *__pyx_v_grad_phi = 0;
21376 PyArrayObject *__pyx_v_u = 0;
21377 PyArrayObject *__pyx_v_penalty = 0;
21378 PyArrayObject *__pyx_v_flux = 0;
21379 int __pyx_v_scale_penalty;
21380 double __pyx_v_penalty_floor;
21381 int __pyx_lineno = 0;
21382 const char *__pyx_filename = NULL;
21383 int __pyx_clineno = 0;
21384 PyObject *__pyx_r = 0;
21385 __Pyx_RefNannyDeclarations
21386 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd (wrapper)", 0);
21388 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__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};
21389 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21390 if (unlikely(__pyx_kwds)) {
21391 Py_ssize_t kw_args;
21392 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21393 switch (pos_args) {
21394 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21395 CYTHON_FALLTHROUGH;
21396 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21397 CYTHON_FALLTHROUGH;
21398 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21399 CYTHON_FALLTHROUGH;
21400 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21401 CYTHON_FALLTHROUGH;
21402 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21403 CYTHON_FALLTHROUGH;
21404 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21405 CYTHON_FALLTHROUGH;
21406 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21407 CYTHON_FALLTHROUGH;
21408 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21409 CYTHON_FALLTHROUGH;
21410 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21411 CYTHON_FALLTHROUGH;
21412 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21413 CYTHON_FALLTHROUGH;
21414 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21415 CYTHON_FALLTHROUGH;
21416 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21417 CYTHON_FALLTHROUGH;
21418 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21419 CYTHON_FALLTHROUGH;
21420 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21421 CYTHON_FALLTHROUGH;
21422 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21423 CYTHON_FALLTHROUGH;
21424 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21425 CYTHON_FALLTHROUGH;
21426 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21427 CYTHON_FALLTHROUGH;
21429 default:
goto __pyx_L5_argtuple_error;
21431 kw_args = PyDict_Size(__pyx_kwds);
21432 switch (pos_args) {
21434 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
21435 else goto __pyx_L5_argtuple_error;
21436 CYTHON_FALLTHROUGH;
21438 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
21440 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 1); __PYX_ERR(0, 4705, __pyx_L3_error)
21442 CYTHON_FALLTHROUGH;
21444 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
21446 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 2); __PYX_ERR(0, 4705, __pyx_L3_error)
21448 CYTHON_FALLTHROUGH;
21450 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21452 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 3); __PYX_ERR(0, 4705, __pyx_L3_error)
21454 CYTHON_FALLTHROUGH;
21456 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21458 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 4); __PYX_ERR(0, 4705, __pyx_L3_error)
21460 CYTHON_FALLTHROUGH;
21462 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
21464 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 5); __PYX_ERR(0, 4705, __pyx_L3_error)
21466 CYTHON_FALLTHROUGH;
21468 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
21470 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 6); __PYX_ERR(0, 4705, __pyx_L3_error)
21472 CYTHON_FALLTHROUGH;
21474 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
21476 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 7); __PYX_ERR(0, 4705, __pyx_L3_error)
21478 CYTHON_FALLTHROUGH;
21480 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
21482 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 8); __PYX_ERR(0, 4705, __pyx_L3_error)
21484 CYTHON_FALLTHROUGH;
21486 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
21488 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 9); __PYX_ERR(0, 4705, __pyx_L3_error)
21490 CYTHON_FALLTHROUGH;
21492 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
21494 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 10); __PYX_ERR(0, 4705, __pyx_L3_error)
21496 CYTHON_FALLTHROUGH;
21498 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
21500 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 11); __PYX_ERR(0, 4705, __pyx_L3_error)
21502 CYTHON_FALLTHROUGH;
21504 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21506 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 12); __PYX_ERR(0, 4705, __pyx_L3_error)
21508 CYTHON_FALLTHROUGH;
21510 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
21512 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 13); __PYX_ERR(0, 4705, __pyx_L3_error)
21514 CYTHON_FALLTHROUGH;
21516 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
21518 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 14); __PYX_ERR(0, 4705, __pyx_L3_error)
21520 CYTHON_FALLTHROUGH;
21522 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
21524 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 15); __PYX_ERR(0, 4705, __pyx_L3_error)
21526 CYTHON_FALLTHROUGH;
21528 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
21530 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, 16); __PYX_ERR(0, 4705, __pyx_L3_error)
21533 if (unlikely(kw_args > 0)) {
21534 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux_sd") < 0)) __PYX_ERR(0, 4705, __pyx_L3_error)
21536 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
21537 goto __pyx_L5_argtuple_error;
21539 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21540 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21541 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21542 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21543 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21544 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21545 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21546 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21547 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21548 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21549 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21550 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21551 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21552 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21553 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21554 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21555 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21557 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
21558 __pyx_v_colind = ((PyArrayObject *)values[1]);
21559 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
21560 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
21561 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
21562 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[5]);
21563 __pyx_v_n = ((PyArrayObject *)values[6]);
21564 __pyx_v_bc_a = ((PyArrayObject *)values[7]);
21565 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[8]);
21566 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
21567 __pyx_v_a = ((PyArrayObject *)values[10]);
21568 __pyx_v_grad_phi = ((PyArrayObject *)values[11]);
21569 __pyx_v_u = ((PyArrayObject *)values[12]);
21570 __pyx_v_penalty = ((PyArrayObject *)values[13]);
21571 __pyx_v_flux = ((PyArrayObject *)values[14]);
21572 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[15]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4720, __pyx_L3_error)
21573 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4721, __pyx_L3_error)
21575 goto __pyx_L4_argument_unpacking_done;
21576 __pyx_L5_argtuple_error:;
21577 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4705, __pyx_L3_error)
21579 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
21580 __Pyx_RefNannyFinishContext();
21582 __pyx_L4_argument_unpacking_done:;
21583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4705, __pyx_L1_error)
21584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4706, __pyx_L1_error)
21585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4707, __pyx_L1_error)
21586 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4708, __pyx_L1_error)
21587 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4709, __pyx_L1_error)
21588 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4710, __pyx_L1_error)
21589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4711, __pyx_L1_error)
21590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4712, __pyx_L1_error)
21591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4713, __pyx_L1_error)
21592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4714, __pyx_L1_error)
21593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4715, __pyx_L1_error)
21594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4716, __pyx_L1_error)
21595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4717, __pyx_L1_error)
21596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4718, __pyx_L1_error)
21597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4719, __pyx_L1_error)
21598 __pyx_r = __pyx_pf_14cnumericalFlux_118calculateGlobalExteriorNumericalDiffusiveFlux_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux, __pyx_v_scale_penalty, __pyx_v_penalty_floor);
21605 __Pyx_RefNannyFinishContext();
21609 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) {
21610 PyObject *__pyx_r = NULL;
21611 __Pyx_RefNannyDeclarations
21612 int __pyx_lineno = 0;
21613 const char *__pyx_filename = NULL;
21614 int __pyx_clineno = 0;
21615 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_sd", 0);
21624 #ifndef CYTHON_WITHOUT_ASSERTIONS
21625 if (unlikely(!Py_OptimizeFlag)) {
21626 if (unlikely(!((__pyx_v_grad_phi->nd == 3) != 0))) {
21627 PyErr_SetNone(PyExc_AssertionError);
21628 __PYX_ERR(0, 4722, __pyx_L1_error)
21640 calculateGlobalExteriorNumericalDiffusiveFlux_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
21651 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21654 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
21657 __Pyx_XGIVEREF(__pyx_r);
21658 __Pyx_RefNannyFinishContext();
21671 static PyObject *__pyx_pw_14cnumericalFlux_121calculateExteriorNumericalDiffusiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21672 static PyMethodDef __pyx_mdef_14cnumericalFlux_121calculateExteriorNumericalDiffusiveFlux_free = {
"calculateExteriorNumericalDiffusiveFlux_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_121calculateExteriorNumericalDiffusiveFlux_free, METH_VARARGS|METH_KEYWORDS, 0};
21673 static PyObject *__pyx_pw_14cnumericalFlux_121calculateExteriorNumericalDiffusiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21674 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
21675 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21676 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
21677 PyArrayObject *__pyx_v_isDOFBoundary = 0;
21678 PyArrayObject *__pyx_v_n = 0;
21679 PyArrayObject *__pyx_v_bc_a = 0;
21680 PyArrayObject *__pyx_v_bc_grad_phi = 0;
21681 PyArrayObject *__pyx_v_bc_u = 0;
21682 PyArrayObject *__pyx_v_a = 0;
21683 PyArrayObject *__pyx_v_grad_phi = 0;
21684 PyArrayObject *__pyx_v_u = 0;
21685 PyArrayObject *__pyx_v_penalty = 0;
21686 PyArrayObject *__pyx_v_flux = 0;
21687 int __pyx_lineno = 0;
21688 const char *__pyx_filename = NULL;
21689 int __pyx_clineno = 0;
21690 PyObject *__pyx_r = 0;
21691 __Pyx_RefNannyDeclarations
21692 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_free (wrapper)", 0);
21694 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
21695 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
21696 if (unlikely(__pyx_kwds)) {
21697 Py_ssize_t kw_args;
21698 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21699 switch (pos_args) {
21700 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21701 CYTHON_FALLTHROUGH;
21702 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21703 CYTHON_FALLTHROUGH;
21704 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21705 CYTHON_FALLTHROUGH;
21706 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21707 CYTHON_FALLTHROUGH;
21708 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21709 CYTHON_FALLTHROUGH;
21710 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21711 CYTHON_FALLTHROUGH;
21712 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21713 CYTHON_FALLTHROUGH;
21714 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21715 CYTHON_FALLTHROUGH;
21716 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21717 CYTHON_FALLTHROUGH;
21718 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21719 CYTHON_FALLTHROUGH;
21720 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21721 CYTHON_FALLTHROUGH;
21722 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21723 CYTHON_FALLTHROUGH;
21724 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21725 CYTHON_FALLTHROUGH;
21727 default:
goto __pyx_L5_argtuple_error;
21729 kw_args = PyDict_Size(__pyx_kwds);
21730 switch (pos_args) {
21732 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
21733 else goto __pyx_L5_argtuple_error;
21734 CYTHON_FALLTHROUGH;
21736 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21738 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 1); __PYX_ERR(0, 4743, __pyx_L3_error)
21740 CYTHON_FALLTHROUGH;
21742 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21744 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 2); __PYX_ERR(0, 4743, __pyx_L3_error)
21746 CYTHON_FALLTHROUGH;
21748 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
21750 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 3); __PYX_ERR(0, 4743, __pyx_L3_error)
21752 CYTHON_FALLTHROUGH;
21754 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
21756 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 4); __PYX_ERR(0, 4743, __pyx_L3_error)
21758 CYTHON_FALLTHROUGH;
21760 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
21762 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 5); __PYX_ERR(0, 4743, __pyx_L3_error)
21764 CYTHON_FALLTHROUGH;
21766 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
21768 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 6); __PYX_ERR(0, 4743, __pyx_L3_error)
21770 CYTHON_FALLTHROUGH;
21772 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
21774 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 7); __PYX_ERR(0, 4743, __pyx_L3_error)
21776 CYTHON_FALLTHROUGH;
21778 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
21780 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 8); __PYX_ERR(0, 4743, __pyx_L3_error)
21782 CYTHON_FALLTHROUGH;
21784 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
21786 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 9); __PYX_ERR(0, 4743, __pyx_L3_error)
21788 CYTHON_FALLTHROUGH;
21790 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
21792 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 10); __PYX_ERR(0, 4743, __pyx_L3_error)
21794 CYTHON_FALLTHROUGH;
21796 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
21798 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 11); __PYX_ERR(0, 4743, __pyx_L3_error)
21800 CYTHON_FALLTHROUGH;
21802 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
21804 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, 12); __PYX_ERR(0, 4743, __pyx_L3_error)
21807 if (unlikely(kw_args > 0)) {
21808 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux_free") < 0)) __PYX_ERR(0, 4743, __pyx_L3_error)
21810 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
21811 goto __pyx_L5_argtuple_error;
21813 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21814 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21815 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21816 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21817 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21818 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21819 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21820 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21821 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21822 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21823 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21824 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21825 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21827 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
21828 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
21829 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
21830 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
21831 __pyx_v_n = ((PyArrayObject *)values[4]);
21832 __pyx_v_bc_a = ((PyArrayObject *)values[5]);
21833 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[6]);
21834 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
21835 __pyx_v_a = ((PyArrayObject *)values[8]);
21836 __pyx_v_grad_phi = ((PyArrayObject *)values[9]);
21837 __pyx_v_u = ((PyArrayObject *)values[10]);
21838 __pyx_v_penalty = ((PyArrayObject *)values[11]);
21839 __pyx_v_flux = ((PyArrayObject *)values[12]);
21841 goto __pyx_L4_argument_unpacking_done;
21842 __pyx_L5_argtuple_error:;
21843 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4743, __pyx_L3_error)
21845 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
21846 __Pyx_RefNannyFinishContext();
21848 __pyx_L4_argument_unpacking_done:;
21849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4743, __pyx_L1_error)
21850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4744, __pyx_L1_error)
21851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4745, __pyx_L1_error)
21852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4746, __pyx_L1_error)
21853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4747, __pyx_L1_error)
21854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4748, __pyx_L1_error)
21855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4749, __pyx_L1_error)
21856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4750, __pyx_L1_error)
21857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4751, __pyx_L1_error)
21858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4752, __pyx_L1_error)
21859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4753, __pyx_L1_error)
21860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4754, __pyx_L1_error)
21861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4755, __pyx_L1_error)
21862 __pyx_r = __pyx_pf_14cnumericalFlux_120calculateExteriorNumericalDiffusiveFlux_free(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux);
21869 __Pyx_RefNannyFinishContext();
21873 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) {
21874 PyObject *__pyx_r = NULL;
21875 __Pyx_RefNannyDeclarations
21876 PyObject *__pyx_t_1 = NULL;
21877 PyObject *__pyx_t_2 = NULL;
21878 PyObject *__pyx_t_3 = NULL;
21879 int __pyx_lineno = 0;
21880 const char *__pyx_filename = NULL;
21881 int __pyx_clineno = 0;
21882 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_free", 0);
21891 switch (__pyx_v_grad_phi->nd) {
21901 calculateExteriorNumericalDiffusiveFlux_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
21920 calculateGlobalExteriorNumericalDiffusiveFlux_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
21939 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4792, __pyx_L1_error)
21940 __Pyx_GOTREF(__pyx_t_2);
21942 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
21943 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
21944 if (likely(__pyx_t_3)) {
21945 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
21946 __Pyx_INCREF(__pyx_t_3);
21947 __Pyx_INCREF(
function);
21948 __Pyx_DECREF_SET(__pyx_t_2,
function);
21951 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
21952 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
21953 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4792, __pyx_L1_error)
21954 __Pyx_GOTREF(__pyx_t_1);
21955 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21956 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21969 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21972 __Pyx_XDECREF(__pyx_t_1);
21973 __Pyx_XDECREF(__pyx_t_2);
21974 __Pyx_XDECREF(__pyx_t_3);
21975 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
21978 __Pyx_XGIVEREF(__pyx_r);
21979 __Pyx_RefNannyFinishContext();
21992 static PyObject *__pyx_pw_14cnumericalFlux_123calculateExteriorNumericalDiffusiveFlux_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21993 static PyMethodDef __pyx_mdef_14cnumericalFlux_123calculateExteriorNumericalDiffusiveFlux_free_sd = {
"calculateExteriorNumericalDiffusiveFlux_free_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_123calculateExteriorNumericalDiffusiveFlux_free_sd, METH_VARARGS|METH_KEYWORDS, 0};
21994 static PyObject *__pyx_pw_14cnumericalFlux_123calculateExteriorNumericalDiffusiveFlux_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21995 PyArrayObject *__pyx_v_rowptr = 0;
21996 PyArrayObject *__pyx_v_colind = 0;
21997 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
21998 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21999 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
22000 PyArrayObject *__pyx_v_isDOFBoundary = 0;
22001 PyArrayObject *__pyx_v_n = 0;
22002 PyArrayObject *__pyx_v_bc_a = 0;
22003 PyArrayObject *__pyx_v_bc_grad_phi = 0;
22004 PyArrayObject *__pyx_v_bc_u = 0;
22005 PyArrayObject *__pyx_v_a = 0;
22006 PyArrayObject *__pyx_v_grad_phi = 0;
22007 PyArrayObject *__pyx_v_u = 0;
22008 PyArrayObject *__pyx_v_penalty = 0;
22009 PyArrayObject *__pyx_v_flux = 0;
22010 int __pyx_lineno = 0;
22011 const char *__pyx_filename = NULL;
22012 int __pyx_clineno = 0;
22013 PyObject *__pyx_r = 0;
22014 __Pyx_RefNannyDeclarations
22015 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_free_sd (wrapper)", 0);
22017 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
22018 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22019 if (unlikely(__pyx_kwds)) {
22020 Py_ssize_t kw_args;
22021 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22022 switch (pos_args) {
22023 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22024 CYTHON_FALLTHROUGH;
22025 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22026 CYTHON_FALLTHROUGH;
22027 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22028 CYTHON_FALLTHROUGH;
22029 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22030 CYTHON_FALLTHROUGH;
22031 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22032 CYTHON_FALLTHROUGH;
22033 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22034 CYTHON_FALLTHROUGH;
22035 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22036 CYTHON_FALLTHROUGH;
22037 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22038 CYTHON_FALLTHROUGH;
22039 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22040 CYTHON_FALLTHROUGH;
22041 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22042 CYTHON_FALLTHROUGH;
22043 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22044 CYTHON_FALLTHROUGH;
22045 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22046 CYTHON_FALLTHROUGH;
22047 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22048 CYTHON_FALLTHROUGH;
22049 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22050 CYTHON_FALLTHROUGH;
22051 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22052 CYTHON_FALLTHROUGH;
22054 default:
goto __pyx_L5_argtuple_error;
22056 kw_args = PyDict_Size(__pyx_kwds);
22057 switch (pos_args) {
22059 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
22060 else goto __pyx_L5_argtuple_error;
22061 CYTHON_FALLTHROUGH;
22063 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
22065 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 1); __PYX_ERR(0, 4793, __pyx_L3_error)
22067 CYTHON_FALLTHROUGH;
22069 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
22071 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 2); __PYX_ERR(0, 4793, __pyx_L3_error)
22073 CYTHON_FALLTHROUGH;
22075 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
22077 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 3); __PYX_ERR(0, 4793, __pyx_L3_error)
22079 CYTHON_FALLTHROUGH;
22081 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
22083 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 4); __PYX_ERR(0, 4793, __pyx_L3_error)
22085 CYTHON_FALLTHROUGH;
22087 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
22089 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 5); __PYX_ERR(0, 4793, __pyx_L3_error)
22091 CYTHON_FALLTHROUGH;
22093 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
22095 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 6); __PYX_ERR(0, 4793, __pyx_L3_error)
22097 CYTHON_FALLTHROUGH;
22099 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
22101 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 7); __PYX_ERR(0, 4793, __pyx_L3_error)
22103 CYTHON_FALLTHROUGH;
22105 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
22107 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 8); __PYX_ERR(0, 4793, __pyx_L3_error)
22109 CYTHON_FALLTHROUGH;
22111 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
22113 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 9); __PYX_ERR(0, 4793, __pyx_L3_error)
22115 CYTHON_FALLTHROUGH;
22117 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
22119 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 10); __PYX_ERR(0, 4793, __pyx_L3_error)
22121 CYTHON_FALLTHROUGH;
22123 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
22125 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 11); __PYX_ERR(0, 4793, __pyx_L3_error)
22127 CYTHON_FALLTHROUGH;
22129 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22131 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 12); __PYX_ERR(0, 4793, __pyx_L3_error)
22133 CYTHON_FALLTHROUGH;
22135 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
22137 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 13); __PYX_ERR(0, 4793, __pyx_L3_error)
22139 CYTHON_FALLTHROUGH;
22141 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
22143 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, 14); __PYX_ERR(0, 4793, __pyx_L3_error)
22146 if (unlikely(kw_args > 0)) {
22147 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux_free_sd") < 0)) __PYX_ERR(0, 4793, __pyx_L3_error)
22149 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
22150 goto __pyx_L5_argtuple_error;
22152 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22153 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22154 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22155 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22156 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22157 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22158 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22159 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22160 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22161 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22162 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22163 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22164 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22165 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22166 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22168 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
22169 __pyx_v_colind = ((PyArrayObject *)values[1]);
22170 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
22171 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
22172 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
22173 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[5]);
22174 __pyx_v_n = ((PyArrayObject *)values[6]);
22175 __pyx_v_bc_a = ((PyArrayObject *)values[7]);
22176 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[8]);
22177 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
22178 __pyx_v_a = ((PyArrayObject *)values[10]);
22179 __pyx_v_grad_phi = ((PyArrayObject *)values[11]);
22180 __pyx_v_u = ((PyArrayObject *)values[12]);
22181 __pyx_v_penalty = ((PyArrayObject *)values[13]);
22182 __pyx_v_flux = ((PyArrayObject *)values[14]);
22184 goto __pyx_L4_argument_unpacking_done;
22185 __pyx_L5_argtuple_error:;
22186 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4793, __pyx_L3_error)
22188 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
22189 __Pyx_RefNannyFinishContext();
22191 __pyx_L4_argument_unpacking_done:;
22192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4793, __pyx_L1_error)
22193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4794, __pyx_L1_error)
22194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4795, __pyx_L1_error)
22195 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4796, __pyx_L1_error)
22196 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4797, __pyx_L1_error)
22197 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4798, __pyx_L1_error)
22198 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4799, __pyx_L1_error)
22199 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4800, __pyx_L1_error)
22200 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4801, __pyx_L1_error)
22201 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4802, __pyx_L1_error)
22202 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4803, __pyx_L1_error)
22203 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4804, __pyx_L1_error)
22204 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4805, __pyx_L1_error)
22205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4806, __pyx_L1_error)
22206 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4807, __pyx_L1_error)
22207 __pyx_r = __pyx_pf_14cnumericalFlux_122calculateExteriorNumericalDiffusiveFlux_free_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux);
22214 __Pyx_RefNannyFinishContext();
22218 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) {
22219 PyObject *__pyx_r = NULL;
22220 __Pyx_RefNannyDeclarations
22221 PyObject *__pyx_t_1 = NULL;
22222 PyObject *__pyx_t_2 = NULL;
22223 PyObject *__pyx_t_3 = NULL;
22224 int __pyx_lineno = 0;
22225 const char *__pyx_filename = NULL;
22226 int __pyx_clineno = 0;
22227 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_free_sd", 0);
22236 switch (__pyx_v_grad_phi->nd) {
22246 calculateExteriorNumericalDiffusiveFlux_free_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
22265 calculateGlobalExteriorNumericalDiffusiveFlux_free_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
22284 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4848, __pyx_L1_error)
22285 __Pyx_GOTREF(__pyx_t_2);
22287 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
22288 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
22289 if (likely(__pyx_t_3)) {
22290 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
22291 __Pyx_INCREF(__pyx_t_3);
22292 __Pyx_INCREF(
function);
22293 __Pyx_DECREF_SET(__pyx_t_2,
function);
22296 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_0);
22297 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
22298 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4848, __pyx_L1_error)
22299 __Pyx_GOTREF(__pyx_t_1);
22300 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22301 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22314 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22317 __Pyx_XDECREF(__pyx_t_1);
22318 __Pyx_XDECREF(__pyx_t_2);
22319 __Pyx_XDECREF(__pyx_t_3);
22320 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
22323 __Pyx_XGIVEREF(__pyx_r);
22324 __Pyx_RefNannyFinishContext();
22337 static PyObject *__pyx_pw_14cnumericalFlux_125calculateGlobalExteriorNumericalDiffusiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22338 static PyMethodDef __pyx_mdef_14cnumericalFlux_125calculateGlobalExteriorNumericalDiffusiveFlux_free = {
"calculateGlobalExteriorNumericalDiffusiveFlux_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_125calculateGlobalExteriorNumericalDiffusiveFlux_free, METH_VARARGS|METH_KEYWORDS, 0};
22339 static PyObject *__pyx_pw_14cnumericalFlux_125calculateGlobalExteriorNumericalDiffusiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22340 int __pyx_v_nExteriorElementBoundaries_global;
22341 int __pyx_v_nQuadraturePoints_elementBoundary;
22342 int __pyx_v_nSpace;
22343 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
22344 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
22345 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
22346 PyArrayObject *__pyx_v_isDOFBoundary = 0;
22347 PyArrayObject *__pyx_v_n = 0;
22348 PyArrayObject *__pyx_v_bc_a = 0;
22349 PyArrayObject *__pyx_v_bc_grad_phi = 0;
22350 PyArrayObject *__pyx_v_bc_u = 0;
22351 PyArrayObject *__pyx_v_a = 0;
22352 PyArrayObject *__pyx_v_grad_phi = 0;
22353 PyArrayObject *__pyx_v_u = 0;
22354 PyArrayObject *__pyx_v_penalty = 0;
22355 PyArrayObject *__pyx_v_flux = 0;
22356 int __pyx_lineno = 0;
22357 const char *__pyx_filename = NULL;
22358 int __pyx_clineno = 0;
22359 PyObject *__pyx_r = 0;
22360 __Pyx_RefNannyDeclarations
22361 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_free (wrapper)", 0);
22363 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
22364 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22365 if (unlikely(__pyx_kwds)) {
22366 Py_ssize_t kw_args;
22367 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22368 switch (pos_args) {
22369 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22370 CYTHON_FALLTHROUGH;
22371 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22372 CYTHON_FALLTHROUGH;
22373 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22374 CYTHON_FALLTHROUGH;
22375 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22376 CYTHON_FALLTHROUGH;
22377 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22378 CYTHON_FALLTHROUGH;
22379 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22380 CYTHON_FALLTHROUGH;
22381 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22382 CYTHON_FALLTHROUGH;
22383 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22384 CYTHON_FALLTHROUGH;
22385 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22386 CYTHON_FALLTHROUGH;
22387 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22388 CYTHON_FALLTHROUGH;
22389 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22390 CYTHON_FALLTHROUGH;
22391 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22392 CYTHON_FALLTHROUGH;
22393 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22394 CYTHON_FALLTHROUGH;
22395 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22396 CYTHON_FALLTHROUGH;
22397 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22398 CYTHON_FALLTHROUGH;
22399 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22400 CYTHON_FALLTHROUGH;
22402 default:
goto __pyx_L5_argtuple_error;
22404 kw_args = PyDict_Size(__pyx_kwds);
22405 switch (pos_args) {
22407 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
22408 else goto __pyx_L5_argtuple_error;
22409 CYTHON_FALLTHROUGH;
22411 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
22413 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 1); __PYX_ERR(0, 4849, __pyx_L3_error)
22415 CYTHON_FALLTHROUGH;
22417 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
22419 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 2); __PYX_ERR(0, 4849, __pyx_L3_error)
22421 CYTHON_FALLTHROUGH;
22423 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
22425 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 3); __PYX_ERR(0, 4849, __pyx_L3_error)
22427 CYTHON_FALLTHROUGH;
22429 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
22431 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 4); __PYX_ERR(0, 4849, __pyx_L3_error)
22433 CYTHON_FALLTHROUGH;
22435 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
22437 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 5); __PYX_ERR(0, 4849, __pyx_L3_error)
22439 CYTHON_FALLTHROUGH;
22441 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
22443 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 6); __PYX_ERR(0, 4849, __pyx_L3_error)
22445 CYTHON_FALLTHROUGH;
22447 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
22449 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 7); __PYX_ERR(0, 4849, __pyx_L3_error)
22451 CYTHON_FALLTHROUGH;
22453 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
22455 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 8); __PYX_ERR(0, 4849, __pyx_L3_error)
22457 CYTHON_FALLTHROUGH;
22459 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
22461 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 9); __PYX_ERR(0, 4849, __pyx_L3_error)
22463 CYTHON_FALLTHROUGH;
22465 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
22467 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 10); __PYX_ERR(0, 4849, __pyx_L3_error)
22469 CYTHON_FALLTHROUGH;
22471 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
22473 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 11); __PYX_ERR(0, 4849, __pyx_L3_error)
22475 CYTHON_FALLTHROUGH;
22477 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
22479 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 12); __PYX_ERR(0, 4849, __pyx_L3_error)
22481 CYTHON_FALLTHROUGH;
22483 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22485 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 13); __PYX_ERR(0, 4849, __pyx_L3_error)
22487 CYTHON_FALLTHROUGH;
22489 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
22491 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 14); __PYX_ERR(0, 4849, __pyx_L3_error)
22493 CYTHON_FALLTHROUGH;
22495 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
22497 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, 15); __PYX_ERR(0, 4849, __pyx_L3_error)
22500 if (unlikely(kw_args > 0)) {
22501 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux_free") < 0)) __PYX_ERR(0, 4849, __pyx_L3_error)
22503 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
22504 goto __pyx_L5_argtuple_error;
22506 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22507 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22508 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22509 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22510 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22511 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22512 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22513 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22514 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22515 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22516 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22517 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22518 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22519 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22520 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22521 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22523 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4849, __pyx_L3_error)
22524 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4850, __pyx_L3_error)
22525 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4851, __pyx_L3_error)
22526 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
22527 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
22528 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
22529 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
22530 __pyx_v_n = ((PyArrayObject *)values[7]);
22531 __pyx_v_bc_a = ((PyArrayObject *)values[8]);
22532 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[9]);
22533 __pyx_v_bc_u = ((PyArrayObject *)values[10]);
22534 __pyx_v_a = ((PyArrayObject *)values[11]);
22535 __pyx_v_grad_phi = ((PyArrayObject *)values[12]);
22536 __pyx_v_u = ((PyArrayObject *)values[13]);
22537 __pyx_v_penalty = ((PyArrayObject *)values[14]);
22538 __pyx_v_flux = ((PyArrayObject *)values[15]);
22540 goto __pyx_L4_argument_unpacking_done;
22541 __pyx_L5_argtuple_error:;
22542 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4849, __pyx_L3_error)
22544 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
22545 __Pyx_RefNannyFinishContext();
22547 __pyx_L4_argument_unpacking_done:;
22548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4852, __pyx_L1_error)
22549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4853, __pyx_L1_error)
22550 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4854, __pyx_L1_error)
22551 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4855, __pyx_L1_error)
22552 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4856, __pyx_L1_error)
22553 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4857, __pyx_L1_error)
22554 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4858, __pyx_L1_error)
22555 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4859, __pyx_L1_error)
22556 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4860, __pyx_L1_error)
22557 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4861, __pyx_L1_error)
22558 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4862, __pyx_L1_error)
22559 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4863, __pyx_L1_error)
22560 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4864, __pyx_L1_error)
22561 __pyx_r = __pyx_pf_14cnumericalFlux_124calculateGlobalExteriorNumericalDiffusiveFlux_free(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux);
22568 __Pyx_RefNannyFinishContext();
22572 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) {
22573 PyObject *__pyx_r = NULL;
22574 __Pyx_RefNannyDeclarations
22575 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_free", 0);
22584 calculateGlobalExteriorNumericalDiffusiveFlux_free(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
22595 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22596 __Pyx_XGIVEREF(__pyx_r);
22597 __Pyx_RefNannyFinishContext();
22610 static PyObject *__pyx_pw_14cnumericalFlux_127calculateGlobalExteriorNumericalDiffusiveFlux_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22611 static PyMethodDef __pyx_mdef_14cnumericalFlux_127calculateGlobalExteriorNumericalDiffusiveFlux_free_sd = {
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_127calculateGlobalExteriorNumericalDiffusiveFlux_free_sd, METH_VARARGS|METH_KEYWORDS, 0};
22612 static PyObject *__pyx_pw_14cnumericalFlux_127calculateGlobalExteriorNumericalDiffusiveFlux_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22613 int __pyx_v_nExteriorElementBoundaries_global;
22614 int __pyx_v_nQuadraturePoints_elementBoundary;
22615 int __pyx_v_nSpace;
22616 PyArrayObject *__pyx_v_rowptr = 0;
22617 PyArrayObject *__pyx_v_colind = 0;
22618 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
22619 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
22620 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
22621 PyArrayObject *__pyx_v_isDOFBoundary = 0;
22622 PyArrayObject *__pyx_v_n = 0;
22623 PyArrayObject *__pyx_v_bc_a = 0;
22624 PyArrayObject *__pyx_v_bc_grad_phi = 0;
22625 PyArrayObject *__pyx_v_bc_u = 0;
22626 PyArrayObject *__pyx_v_a = 0;
22627 PyArrayObject *__pyx_v_grad_phi = 0;
22628 PyArrayObject *__pyx_v_u = 0;
22629 PyArrayObject *__pyx_v_penalty = 0;
22630 PyArrayObject *__pyx_v_flux = 0;
22631 int __pyx_lineno = 0;
22632 const char *__pyx_filename = NULL;
22633 int __pyx_clineno = 0;
22634 PyObject *__pyx_r = 0;
22635 __Pyx_RefNannyDeclarations
22636 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd (wrapper)", 0);
22638 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_u,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_u,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
22639 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22640 if (unlikely(__pyx_kwds)) {
22641 Py_ssize_t kw_args;
22642 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22643 switch (pos_args) {
22644 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22645 CYTHON_FALLTHROUGH;
22646 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22647 CYTHON_FALLTHROUGH;
22648 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22649 CYTHON_FALLTHROUGH;
22650 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22651 CYTHON_FALLTHROUGH;
22652 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22653 CYTHON_FALLTHROUGH;
22654 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22655 CYTHON_FALLTHROUGH;
22656 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22657 CYTHON_FALLTHROUGH;
22658 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22659 CYTHON_FALLTHROUGH;
22660 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22661 CYTHON_FALLTHROUGH;
22662 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22663 CYTHON_FALLTHROUGH;
22664 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22665 CYTHON_FALLTHROUGH;
22666 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22667 CYTHON_FALLTHROUGH;
22668 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22669 CYTHON_FALLTHROUGH;
22670 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22671 CYTHON_FALLTHROUGH;
22672 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22673 CYTHON_FALLTHROUGH;
22674 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22675 CYTHON_FALLTHROUGH;
22676 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22677 CYTHON_FALLTHROUGH;
22678 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22679 CYTHON_FALLTHROUGH;
22681 default:
goto __pyx_L5_argtuple_error;
22683 kw_args = PyDict_Size(__pyx_kwds);
22684 switch (pos_args) {
22686 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
22687 else goto __pyx_L5_argtuple_error;
22688 CYTHON_FALLTHROUGH;
22690 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
22692 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 1); __PYX_ERR(0, 4881, __pyx_L3_error)
22694 CYTHON_FALLTHROUGH;
22696 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
22698 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 2); __PYX_ERR(0, 4881, __pyx_L3_error)
22700 CYTHON_FALLTHROUGH;
22702 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
22704 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 3); __PYX_ERR(0, 4881, __pyx_L3_error)
22706 CYTHON_FALLTHROUGH;
22708 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
22710 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 4); __PYX_ERR(0, 4881, __pyx_L3_error)
22712 CYTHON_FALLTHROUGH;
22714 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
22716 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 5); __PYX_ERR(0, 4881, __pyx_L3_error)
22718 CYTHON_FALLTHROUGH;
22720 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
22722 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 6); __PYX_ERR(0, 4881, __pyx_L3_error)
22724 CYTHON_FALLTHROUGH;
22726 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
22728 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 7); __PYX_ERR(0, 4881, __pyx_L3_error)
22730 CYTHON_FALLTHROUGH;
22732 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
22734 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 8); __PYX_ERR(0, 4881, __pyx_L3_error)
22736 CYTHON_FALLTHROUGH;
22738 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
22740 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 9); __PYX_ERR(0, 4881, __pyx_L3_error)
22742 CYTHON_FALLTHROUGH;
22744 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
22746 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 10); __PYX_ERR(0, 4881, __pyx_L3_error)
22748 CYTHON_FALLTHROUGH;
22750 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
22752 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 11); __PYX_ERR(0, 4881, __pyx_L3_error)
22754 CYTHON_FALLTHROUGH;
22756 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
22758 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 12); __PYX_ERR(0, 4881, __pyx_L3_error)
22760 CYTHON_FALLTHROUGH;
22762 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
22764 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 13); __PYX_ERR(0, 4881, __pyx_L3_error)
22766 CYTHON_FALLTHROUGH;
22768 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
22770 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 14); __PYX_ERR(0, 4881, __pyx_L3_error)
22772 CYTHON_FALLTHROUGH;
22774 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
22776 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 15); __PYX_ERR(0, 4881, __pyx_L3_error)
22778 CYTHON_FALLTHROUGH;
22780 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
22782 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 16); __PYX_ERR(0, 4881, __pyx_L3_error)
22784 CYTHON_FALLTHROUGH;
22786 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
22788 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, 17); __PYX_ERR(0, 4881, __pyx_L3_error)
22791 if (unlikely(kw_args > 0)) {
22792 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd") < 0)) __PYX_ERR(0, 4881, __pyx_L3_error)
22794 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
22795 goto __pyx_L5_argtuple_error;
22797 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22798 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22799 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22800 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22801 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22802 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22803 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22804 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22805 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22806 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22807 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22808 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22809 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22810 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22811 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22812 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22813 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
22814 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
22816 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4881, __pyx_L3_error)
22817 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4882, __pyx_L3_error)
22818 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4883, __pyx_L3_error)
22819 __pyx_v_rowptr = ((PyArrayObject *)values[3]);
22820 __pyx_v_colind = ((PyArrayObject *)values[4]);
22821 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
22822 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
22823 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
22824 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[8]);
22825 __pyx_v_n = ((PyArrayObject *)values[9]);
22826 __pyx_v_bc_a = ((PyArrayObject *)values[10]);
22827 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[11]);
22828 __pyx_v_bc_u = ((PyArrayObject *)values[12]);
22829 __pyx_v_a = ((PyArrayObject *)values[13]);
22830 __pyx_v_grad_phi = ((PyArrayObject *)values[14]);
22831 __pyx_v_u = ((PyArrayObject *)values[15]);
22832 __pyx_v_penalty = ((PyArrayObject *)values[16]);
22833 __pyx_v_flux = ((PyArrayObject *)values[17]);
22835 goto __pyx_L4_argument_unpacking_done;
22836 __pyx_L5_argtuple_error:;
22837 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4881, __pyx_L3_error)
22839 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
22840 __Pyx_RefNannyFinishContext();
22842 __pyx_L4_argument_unpacking_done:;
22843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4884, __pyx_L1_error)
22844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4885, __pyx_L1_error)
22845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4886, __pyx_L1_error)
22846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4887, __pyx_L1_error)
22847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4888, __pyx_L1_error)
22848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4889, __pyx_L1_error)
22849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4890, __pyx_L1_error)
22850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 4891, __pyx_L1_error)
22851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 4892, __pyx_L1_error)
22852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 4893, __pyx_L1_error)
22853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4894, __pyx_L1_error)
22854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4895, __pyx_L1_error)
22855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4896, __pyx_L1_error)
22856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4897, __pyx_L1_error)
22857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 4898, __pyx_L1_error)
22858 __pyx_r = __pyx_pf_14cnumericalFlux_126calculateGlobalExteriorNumericalDiffusiveFlux_free_sd(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_u, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_u, __pyx_v_penalty, __pyx_v_flux);
22865 __Pyx_RefNannyFinishContext();
22869 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) {
22870 PyObject *__pyx_r = NULL;
22871 __Pyx_RefNannyDeclarations
22872 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_free_sd", 0);
22881 calculateGlobalExteriorNumericalDiffusiveFlux_free_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_u->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));
22892 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22893 __Pyx_XGIVEREF(__pyx_r);
22894 __Pyx_RefNannyFinishContext();
22907 static PyObject *__pyx_pw_14cnumericalFlux_129updateExteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22908 static PyMethodDef __pyx_mdef_14cnumericalFlux_129updateExteriorNumericalDiffusiveFluxJacobian = {
"updateExteriorNumericalDiffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_129updateExteriorNumericalDiffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
22909 static PyObject *__pyx_pw_14cnumericalFlux_129updateExteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22910 PyArrayObject *__pyx_v_l2g = 0;
22911 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
22912 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
22913 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
22914 PyArrayObject *__pyx_v_isDOFBoundary = 0;
22915 PyArrayObject *__pyx_v_n = 0;
22916 PyArrayObject *__pyx_v_a = 0;
22917 PyArrayObject *__pyx_v_da = 0;
22918 PyArrayObject *__pyx_v_grad_phi = 0;
22919 PyArrayObject *__pyx_v_dphi = 0;
22920 PyArrayObject *__pyx_v_v = 0;
22921 PyArrayObject *__pyx_v_grad_v = 0;
22922 PyArrayObject *__pyx_v_penalty = 0;
22923 PyArrayObject *__pyx_v_fluxJacobian = 0;
22924 int __pyx_v_scale_penalty;
22925 double __pyx_v_penalty_floor;
22926 int __pyx_lineno = 0;
22927 const char *__pyx_filename = NULL;
22928 int __pyx_clineno = 0;
22929 PyObject *__pyx_r = 0;
22930 __Pyx_RefNannyDeclarations
22931 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian (wrapper)", 0);
22933 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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};
22934 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
22935 if (unlikely(__pyx_kwds)) {
22936 Py_ssize_t kw_args;
22937 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22938 switch (pos_args) {
22939 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
22940 CYTHON_FALLTHROUGH;
22941 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
22942 CYTHON_FALLTHROUGH;
22943 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
22944 CYTHON_FALLTHROUGH;
22945 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
22946 CYTHON_FALLTHROUGH;
22947 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
22948 CYTHON_FALLTHROUGH;
22949 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
22950 CYTHON_FALLTHROUGH;
22951 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
22952 CYTHON_FALLTHROUGH;
22953 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
22954 CYTHON_FALLTHROUGH;
22955 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
22956 CYTHON_FALLTHROUGH;
22957 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
22958 CYTHON_FALLTHROUGH;
22959 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
22960 CYTHON_FALLTHROUGH;
22961 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
22962 CYTHON_FALLTHROUGH;
22963 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22964 CYTHON_FALLTHROUGH;
22965 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22966 CYTHON_FALLTHROUGH;
22967 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22968 CYTHON_FALLTHROUGH;
22969 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22970 CYTHON_FALLTHROUGH;
22972 default:
goto __pyx_L5_argtuple_error;
22974 kw_args = PyDict_Size(__pyx_kwds);
22975 switch (pos_args) {
22977 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
22978 else goto __pyx_L5_argtuple_error;
22979 CYTHON_FALLTHROUGH;
22981 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
22983 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 1); __PYX_ERR(0, 4917, __pyx_L3_error)
22985 CYTHON_FALLTHROUGH;
22987 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
22989 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 2); __PYX_ERR(0, 4917, __pyx_L3_error)
22991 CYTHON_FALLTHROUGH;
22993 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
22995 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 3); __PYX_ERR(0, 4917, __pyx_L3_error)
22997 CYTHON_FALLTHROUGH;
22999 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
23001 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 4); __PYX_ERR(0, 4917, __pyx_L3_error)
23003 CYTHON_FALLTHROUGH;
23005 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
23007 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 5); __PYX_ERR(0, 4917, __pyx_L3_error)
23009 CYTHON_FALLTHROUGH;
23011 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
23013 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 6); __PYX_ERR(0, 4917, __pyx_L3_error)
23015 CYTHON_FALLTHROUGH;
23017 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
23019 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 7); __PYX_ERR(0, 4917, __pyx_L3_error)
23021 CYTHON_FALLTHROUGH;
23023 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
23025 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 8); __PYX_ERR(0, 4917, __pyx_L3_error)
23027 CYTHON_FALLTHROUGH;
23029 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
23031 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 9); __PYX_ERR(0, 4917, __pyx_L3_error)
23033 CYTHON_FALLTHROUGH;
23035 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23037 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 10); __PYX_ERR(0, 4917, __pyx_L3_error)
23039 CYTHON_FALLTHROUGH;
23041 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
23043 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 11); __PYX_ERR(0, 4917, __pyx_L3_error)
23045 CYTHON_FALLTHROUGH;
23047 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
23049 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 12); __PYX_ERR(0, 4917, __pyx_L3_error)
23051 CYTHON_FALLTHROUGH;
23053 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
23055 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 13); __PYX_ERR(0, 4917, __pyx_L3_error)
23057 CYTHON_FALLTHROUGH;
23059 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
23061 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 14); __PYX_ERR(0, 4917, __pyx_L3_error)
23063 CYTHON_FALLTHROUGH;
23065 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
23067 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, 15); __PYX_ERR(0, 4917, __pyx_L3_error)
23070 if (unlikely(kw_args > 0)) {
23071 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian") < 0)) __PYX_ERR(0, 4917, __pyx_L3_error)
23073 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
23074 goto __pyx_L5_argtuple_error;
23076 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23077 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23078 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23079 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23080 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23081 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23082 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23083 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23084 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23085 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23086 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23087 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23088 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23089 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23090 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23091 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23093 __pyx_v_l2g = ((PyArrayObject *)values[0]);
23094 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
23095 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
23096 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
23097 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
23098 __pyx_v_n = ((PyArrayObject *)values[5]);
23099 __pyx_v_a = ((PyArrayObject *)values[6]);
23100 __pyx_v_da = ((PyArrayObject *)values[7]);
23101 __pyx_v_grad_phi = ((PyArrayObject *)values[8]);
23102 __pyx_v_dphi = ((PyArrayObject *)values[9]);
23103 __pyx_v_v = ((PyArrayObject *)values[10]);
23104 __pyx_v_grad_v = ((PyArrayObject *)values[11]);
23105 __pyx_v_penalty = ((PyArrayObject *)values[12]);
23106 __pyx_v_fluxJacobian = ((PyArrayObject *)values[13]);
23107 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[14]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4931, __pyx_L3_error)
23108 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[15]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4932, __pyx_L3_error)
23110 goto __pyx_L4_argument_unpacking_done;
23111 __pyx_L5_argtuple_error:;
23112 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4917, __pyx_L3_error)
23114 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
23115 __Pyx_RefNannyFinishContext();
23117 __pyx_L4_argument_unpacking_done:;
23118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4917, __pyx_L1_error)
23119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4918, __pyx_L1_error)
23120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4919, __pyx_L1_error)
23121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4920, __pyx_L1_error)
23122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4921, __pyx_L1_error)
23123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4922, __pyx_L1_error)
23124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4923, __pyx_L1_error)
23125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 4924, __pyx_L1_error)
23126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4925, __pyx_L1_error)
23127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 4926, __pyx_L1_error)
23128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4927, __pyx_L1_error)
23129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4928, __pyx_L1_error)
23130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4929, __pyx_L1_error)
23131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 4930, __pyx_L1_error)
23132 __pyx_r = __pyx_pf_14cnumericalFlux_128updateExteriorNumericalDiffusiveFluxJacobian(__pyx_self, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
23139 __Pyx_RefNannyFinishContext();
23143 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) {
23144 PyObject *__pyx_r = NULL;
23145 __Pyx_RefNannyDeclarations
23146 PyObject *__pyx_t_1 = NULL;
23147 PyObject *__pyx_t_2 = NULL;
23148 PyObject *__pyx_t_3 = NULL;
23149 int __pyx_lineno = 0;
23150 const char *__pyx_filename = NULL;
23151 int __pyx_clineno = 0;
23152 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian", 0);
23161 switch (__pyx_v_grad_v->nd) {
23171 updateExteriorNumericalDiffusiveFluxJacobian(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__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_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
23190 updateGlobalExteriorNumericalDiffusiveFluxJacobian(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
23209 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4977, __pyx_L1_error)
23210 __Pyx_GOTREF(__pyx_t_2);
23212 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
23213 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
23214 if (likely(__pyx_t_3)) {
23215 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
23216 __Pyx_INCREF(__pyx_t_3);
23217 __Pyx_INCREF(
function);
23218 __Pyx_DECREF_SET(__pyx_t_2,
function);
23221 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
23222 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
23223 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4977, __pyx_L1_error)
23224 __Pyx_GOTREF(__pyx_t_1);
23225 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23226 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23239 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23242 __Pyx_XDECREF(__pyx_t_1);
23243 __Pyx_XDECREF(__pyx_t_2);
23244 __Pyx_XDECREF(__pyx_t_3);
23245 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
23248 __Pyx_XGIVEREF(__pyx_r);
23249 __Pyx_RefNannyFinishContext();
23262 static PyObject *__pyx_pw_14cnumericalFlux_131updateGlobalExteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23263 static PyMethodDef __pyx_mdef_14cnumericalFlux_131updateGlobalExteriorNumericalDiffusiveFluxJacobian = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_131updateGlobalExteriorNumericalDiffusiveFluxJacobian, METH_VARARGS|METH_KEYWORDS, 0};
23264 static PyObject *__pyx_pw_14cnumericalFlux_131updateGlobalExteriorNumericalDiffusiveFluxJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23265 int __pyx_v_scale_penalty;
23266 double __pyx_v_penalty_floor;
23267 int __pyx_v_nExteriorElementBoundaries_global;
23268 int __pyx_v_nQuadraturePoints_elementBoundary;
23269 int __pyx_v_nDOF_trial_element;
23270 int __pyx_v_nSpace;
23271 PyArrayObject *__pyx_v_l2g = 0;
23272 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
23273 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
23274 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
23275 PyArrayObject *__pyx_v_isDOFBoundary = 0;
23276 PyArrayObject *__pyx_v_n = 0;
23277 PyArrayObject *__pyx_v_a = 0;
23278 PyArrayObject *__pyx_v_da = 0;
23279 PyArrayObject *__pyx_v_grad_phi = 0;
23280 PyArrayObject *__pyx_v_dphi = 0;
23281 PyArrayObject *__pyx_v_v = 0;
23282 PyArrayObject *__pyx_v_grad_v = 0;
23283 PyArrayObject *__pyx_v_penalty = 0;
23284 PyArrayObject *__pyx_v_fluxJacobian = 0;
23285 int __pyx_lineno = 0;
23286 const char *__pyx_filename = NULL;
23287 int __pyx_clineno = 0;
23288 PyObject *__pyx_r = 0;
23289 __Pyx_RefNannyDeclarations
23290 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian (wrapper)", 0);
23292 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
23293 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
23294 if (unlikely(__pyx_kwds)) {
23295 Py_ssize_t kw_args;
23296 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23297 switch (pos_args) {
23298 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23299 CYTHON_FALLTHROUGH;
23300 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23301 CYTHON_FALLTHROUGH;
23302 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23303 CYTHON_FALLTHROUGH;
23304 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23305 CYTHON_FALLTHROUGH;
23306 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23307 CYTHON_FALLTHROUGH;
23308 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23309 CYTHON_FALLTHROUGH;
23310 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23311 CYTHON_FALLTHROUGH;
23312 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23313 CYTHON_FALLTHROUGH;
23314 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23315 CYTHON_FALLTHROUGH;
23316 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23317 CYTHON_FALLTHROUGH;
23318 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23319 CYTHON_FALLTHROUGH;
23320 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23321 CYTHON_FALLTHROUGH;
23322 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23323 CYTHON_FALLTHROUGH;
23324 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23325 CYTHON_FALLTHROUGH;
23326 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23327 CYTHON_FALLTHROUGH;
23328 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23329 CYTHON_FALLTHROUGH;
23330 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23331 CYTHON_FALLTHROUGH;
23332 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23333 CYTHON_FALLTHROUGH;
23334 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23335 CYTHON_FALLTHROUGH;
23336 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23337 CYTHON_FALLTHROUGH;
23339 default:
goto __pyx_L5_argtuple_error;
23341 kw_args = PyDict_Size(__pyx_kwds);
23342 switch (pos_args) {
23344 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
23345 else goto __pyx_L5_argtuple_error;
23346 CYTHON_FALLTHROUGH;
23348 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
23350 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 1); __PYX_ERR(0, 4978, __pyx_L3_error)
23352 CYTHON_FALLTHROUGH;
23354 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
23356 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 2); __PYX_ERR(0, 4978, __pyx_L3_error)
23358 CYTHON_FALLTHROUGH;
23360 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
23362 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 3); __PYX_ERR(0, 4978, __pyx_L3_error)
23364 CYTHON_FALLTHROUGH;
23366 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
23368 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 4); __PYX_ERR(0, 4978, __pyx_L3_error)
23370 CYTHON_FALLTHROUGH;
23372 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
23374 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 5); __PYX_ERR(0, 4978, __pyx_L3_error)
23376 CYTHON_FALLTHROUGH;
23378 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
23380 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 6); __PYX_ERR(0, 4978, __pyx_L3_error)
23382 CYTHON_FALLTHROUGH;
23384 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
23386 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 7); __PYX_ERR(0, 4978, __pyx_L3_error)
23388 CYTHON_FALLTHROUGH;
23390 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
23392 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 8); __PYX_ERR(0, 4978, __pyx_L3_error)
23394 CYTHON_FALLTHROUGH;
23396 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
23398 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 9); __PYX_ERR(0, 4978, __pyx_L3_error)
23400 CYTHON_FALLTHROUGH;
23402 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
23404 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 10); __PYX_ERR(0, 4978, __pyx_L3_error)
23406 CYTHON_FALLTHROUGH;
23408 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
23410 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 11); __PYX_ERR(0, 4978, __pyx_L3_error)
23412 CYTHON_FALLTHROUGH;
23414 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
23416 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 12); __PYX_ERR(0, 4978, __pyx_L3_error)
23418 CYTHON_FALLTHROUGH;
23420 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
23422 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 13); __PYX_ERR(0, 4978, __pyx_L3_error)
23424 CYTHON_FALLTHROUGH;
23426 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
23428 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 14); __PYX_ERR(0, 4978, __pyx_L3_error)
23430 CYTHON_FALLTHROUGH;
23432 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
23434 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 15); __PYX_ERR(0, 4978, __pyx_L3_error)
23436 CYTHON_FALLTHROUGH;
23438 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23440 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 16); __PYX_ERR(0, 4978, __pyx_L3_error)
23442 CYTHON_FALLTHROUGH;
23444 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
23446 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 17); __PYX_ERR(0, 4978, __pyx_L3_error)
23448 CYTHON_FALLTHROUGH;
23450 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
23452 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 18); __PYX_ERR(0, 4978, __pyx_L3_error)
23454 CYTHON_FALLTHROUGH;
23456 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
23458 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, 19); __PYX_ERR(0, 4978, __pyx_L3_error)
23461 if (unlikely(kw_args > 0)) {
23462 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian") < 0)) __PYX_ERR(0, 4978, __pyx_L3_error)
23464 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
23465 goto __pyx_L5_argtuple_error;
23467 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23468 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23469 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23470 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23471 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23472 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23473 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23474 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23475 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23476 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23477 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23478 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23479 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23480 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23481 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23482 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23483 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23484 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23485 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23486 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23488 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4978, __pyx_L3_error)
23489 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4979, __pyx_L3_error)
23490 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4980, __pyx_L3_error)
23491 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4981, __pyx_L3_error)
23492 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4982, __pyx_L3_error)
23493 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4983, __pyx_L3_error)
23494 __pyx_v_l2g = ((PyArrayObject *)values[6]);
23495 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[7]);
23496 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
23497 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
23498 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[10]);
23499 __pyx_v_n = ((PyArrayObject *)values[11]);
23500 __pyx_v_a = ((PyArrayObject *)values[12]);
23501 __pyx_v_da = ((PyArrayObject *)values[13]);
23502 __pyx_v_grad_phi = ((PyArrayObject *)values[14]);
23503 __pyx_v_dphi = ((PyArrayObject *)values[15]);
23504 __pyx_v_v = ((PyArrayObject *)values[16]);
23505 __pyx_v_grad_v = ((PyArrayObject *)values[17]);
23506 __pyx_v_penalty = ((PyArrayObject *)values[18]);
23507 __pyx_v_fluxJacobian = ((PyArrayObject *)values[19]);
23509 goto __pyx_L4_argument_unpacking_done;
23510 __pyx_L5_argtuple_error:;
23511 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4978, __pyx_L3_error)
23513 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
23514 __Pyx_RefNannyFinishContext();
23516 __pyx_L4_argument_unpacking_done:;
23517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4984, __pyx_L1_error)
23518 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4985, __pyx_L1_error)
23519 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4986, __pyx_L1_error)
23520 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4987, __pyx_L1_error)
23521 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 4988, __pyx_L1_error)
23522 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4989, __pyx_L1_error)
23523 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4990, __pyx_L1_error)
23524 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 4991, __pyx_L1_error)
23525 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4992, __pyx_L1_error)
23526 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 4993, __pyx_L1_error)
23527 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4994, __pyx_L1_error)
23528 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4995, __pyx_L1_error)
23529 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 4996, __pyx_L1_error)
23530 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 4997, __pyx_L1_error)
23531 __pyx_r = __pyx_pf_14cnumericalFlux_130updateGlobalExteriorNumericalDiffusiveFluxJacobian(__pyx_self, __pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
23538 __Pyx_RefNannyFinishContext();
23542 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) {
23543 PyObject *__pyx_r = NULL;
23544 __Pyx_RefNannyDeclarations
23545 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian", 0);
23554 updateGlobalExteriorNumericalDiffusiveFluxJacobian(__pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
23565 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23566 __Pyx_XGIVEREF(__pyx_r);
23567 __Pyx_RefNannyFinishContext();
23580 static PyObject *__pyx_pw_14cnumericalFlux_133updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23581 static PyMethodDef __pyx_mdef_14cnumericalFlux_133updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_133updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
23582 static PyObject *__pyx_pw_14cnumericalFlux_133updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23583 int __pyx_v_scale_penalty;
23584 double __pyx_v_penalty_floor;
23585 int __pyx_v_nExteriorElementBoundaries_global;
23586 int __pyx_v_nQuadraturePoints_elementBoundary;
23587 int __pyx_v_nDOF_trial_element;
23588 int __pyx_v_nSpace;
23589 PyArrayObject *__pyx_v_rowptr = 0;
23590 PyArrayObject *__pyx_v_colind = 0;
23591 PyArrayObject *__pyx_v_l2g = 0;
23592 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
23593 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
23594 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
23595 PyArrayObject *__pyx_v_isDOFBoundary = 0;
23596 PyArrayObject *__pyx_v_n = 0;
23597 PyArrayObject *__pyx_v_a = 0;
23598 PyArrayObject *__pyx_v_da = 0;
23599 PyArrayObject *__pyx_v_grad_phi = 0;
23600 PyArrayObject *__pyx_v_dphi = 0;
23601 PyArrayObject *__pyx_v_v = 0;
23602 PyArrayObject *__pyx_v_grad_v = 0;
23603 PyArrayObject *__pyx_v_penalty = 0;
23604 PyArrayObject *__pyx_v_fluxJacobian = 0;
23605 int __pyx_lineno = 0;
23606 const char *__pyx_filename = NULL;
23607 int __pyx_clineno = 0;
23608 PyObject *__pyx_r = 0;
23609 __Pyx_RefNannyDeclarations
23610 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd (wrapper)", 0);
23612 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
23613 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
23614 if (unlikely(__pyx_kwds)) {
23615 Py_ssize_t kw_args;
23616 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23617 switch (pos_args) {
23618 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23619 CYTHON_FALLTHROUGH;
23620 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23621 CYTHON_FALLTHROUGH;
23622 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23623 CYTHON_FALLTHROUGH;
23624 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23625 CYTHON_FALLTHROUGH;
23626 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23627 CYTHON_FALLTHROUGH;
23628 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23629 CYTHON_FALLTHROUGH;
23630 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23631 CYTHON_FALLTHROUGH;
23632 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23633 CYTHON_FALLTHROUGH;
23634 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23635 CYTHON_FALLTHROUGH;
23636 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23637 CYTHON_FALLTHROUGH;
23638 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23639 CYTHON_FALLTHROUGH;
23640 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23641 CYTHON_FALLTHROUGH;
23642 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23643 CYTHON_FALLTHROUGH;
23644 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23645 CYTHON_FALLTHROUGH;
23646 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23647 CYTHON_FALLTHROUGH;
23648 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23649 CYTHON_FALLTHROUGH;
23650 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23651 CYTHON_FALLTHROUGH;
23652 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23653 CYTHON_FALLTHROUGH;
23654 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23655 CYTHON_FALLTHROUGH;
23656 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23657 CYTHON_FALLTHROUGH;
23658 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23659 CYTHON_FALLTHROUGH;
23660 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23661 CYTHON_FALLTHROUGH;
23663 default:
goto __pyx_L5_argtuple_error;
23665 kw_args = PyDict_Size(__pyx_kwds);
23666 switch (pos_args) {
23668 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
23669 else goto __pyx_L5_argtuple_error;
23670 CYTHON_FALLTHROUGH;
23672 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
23674 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 1); __PYX_ERR(0, 5018, __pyx_L3_error)
23676 CYTHON_FALLTHROUGH;
23678 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
23680 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 2); __PYX_ERR(0, 5018, __pyx_L3_error)
23682 CYTHON_FALLTHROUGH;
23684 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
23686 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 3); __PYX_ERR(0, 5018, __pyx_L3_error)
23688 CYTHON_FALLTHROUGH;
23690 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
23692 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 4); __PYX_ERR(0, 5018, __pyx_L3_error)
23694 CYTHON_FALLTHROUGH;
23696 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
23698 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 5); __PYX_ERR(0, 5018, __pyx_L3_error)
23700 CYTHON_FALLTHROUGH;
23702 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
23704 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 6); __PYX_ERR(0, 5018, __pyx_L3_error)
23706 CYTHON_FALLTHROUGH;
23708 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
23710 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 7); __PYX_ERR(0, 5018, __pyx_L3_error)
23712 CYTHON_FALLTHROUGH;
23714 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
23716 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 8); __PYX_ERR(0, 5018, __pyx_L3_error)
23718 CYTHON_FALLTHROUGH;
23720 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
23722 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 9); __PYX_ERR(0, 5018, __pyx_L3_error)
23724 CYTHON_FALLTHROUGH;
23726 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
23728 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 10); __PYX_ERR(0, 5018, __pyx_L3_error)
23730 CYTHON_FALLTHROUGH;
23732 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
23734 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 11); __PYX_ERR(0, 5018, __pyx_L3_error)
23736 CYTHON_FALLTHROUGH;
23738 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
23740 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 12); __PYX_ERR(0, 5018, __pyx_L3_error)
23742 CYTHON_FALLTHROUGH;
23744 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
23746 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 13); __PYX_ERR(0, 5018, __pyx_L3_error)
23748 CYTHON_FALLTHROUGH;
23750 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
23752 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 14); __PYX_ERR(0, 5018, __pyx_L3_error)
23754 CYTHON_FALLTHROUGH;
23756 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
23758 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 15); __PYX_ERR(0, 5018, __pyx_L3_error)
23760 CYTHON_FALLTHROUGH;
23762 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
23764 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 16); __PYX_ERR(0, 5018, __pyx_L3_error)
23766 CYTHON_FALLTHROUGH;
23768 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
23770 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 17); __PYX_ERR(0, 5018, __pyx_L3_error)
23772 CYTHON_FALLTHROUGH;
23774 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23776 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 18); __PYX_ERR(0, 5018, __pyx_L3_error)
23778 CYTHON_FALLTHROUGH;
23780 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
23782 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 19); __PYX_ERR(0, 5018, __pyx_L3_error)
23784 CYTHON_FALLTHROUGH;
23786 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
23788 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 20); __PYX_ERR(0, 5018, __pyx_L3_error)
23790 CYTHON_FALLTHROUGH;
23792 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
23794 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, 21); __PYX_ERR(0, 5018, __pyx_L3_error)
23797 if (unlikely(kw_args > 0)) {
23798 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd") < 0)) __PYX_ERR(0, 5018, __pyx_L3_error)
23800 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
23801 goto __pyx_L5_argtuple_error;
23803 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23804 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23805 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23806 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23807 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23808 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23809 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23810 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23811 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23812 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23813 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23814 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23815 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23816 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23817 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
23818 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
23819 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
23820 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
23821 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
23822 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
23823 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
23824 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
23826 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5018, __pyx_L3_error)
23827 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5019, __pyx_L3_error)
23828 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5020, __pyx_L3_error)
23829 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5021, __pyx_L3_error)
23830 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5022, __pyx_L3_error)
23831 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5023, __pyx_L3_error)
23832 __pyx_v_rowptr = ((PyArrayObject *)values[6]);
23833 __pyx_v_colind = ((PyArrayObject *)values[7]);
23834 __pyx_v_l2g = ((PyArrayObject *)values[8]);
23835 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[9]);
23836 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[10]);
23837 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[11]);
23838 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[12]);
23839 __pyx_v_n = ((PyArrayObject *)values[13]);
23840 __pyx_v_a = ((PyArrayObject *)values[14]);
23841 __pyx_v_da = ((PyArrayObject *)values[15]);
23842 __pyx_v_grad_phi = ((PyArrayObject *)values[16]);
23843 __pyx_v_dphi = ((PyArrayObject *)values[17]);
23844 __pyx_v_v = ((PyArrayObject *)values[18]);
23845 __pyx_v_grad_v = ((PyArrayObject *)values[19]);
23846 __pyx_v_penalty = ((PyArrayObject *)values[20]);
23847 __pyx_v_fluxJacobian = ((PyArrayObject *)values[21]);
23849 goto __pyx_L4_argument_unpacking_done;
23850 __pyx_L5_argtuple_error:;
23851 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5018, __pyx_L3_error)
23853 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
23854 __Pyx_RefNannyFinishContext();
23856 __pyx_L4_argument_unpacking_done:;
23857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 5024, __pyx_L1_error)
23858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 5025, __pyx_L1_error)
23859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5026, __pyx_L1_error)
23860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5027, __pyx_L1_error)
23861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5028, __pyx_L1_error)
23862 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5029, __pyx_L1_error)
23863 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5030, __pyx_L1_error)
23864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5031, __pyx_L1_error)
23865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5032, __pyx_L1_error)
23866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5033, __pyx_L1_error)
23867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 5034, __pyx_L1_error)
23868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5035, __pyx_L1_error)
23869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5036, __pyx_L1_error)
23870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 5037, __pyx_L1_error)
23871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 5038, __pyx_L1_error)
23872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 5039, __pyx_L1_error)
23873 __pyx_r = __pyx_pf_14cnumericalFlux_132updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(__pyx_self, __pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
23880 __Pyx_RefNannyFinishContext();
23884 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) {
23885 PyObject *__pyx_r = NULL;
23886 __Pyx_RefNannyDeclarations
23887 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd", 0);
23896 updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
23907 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23908 __Pyx_XGIVEREF(__pyx_r);
23909 __Pyx_RefNannyFinishContext();
23922 static PyObject *__pyx_pw_14cnumericalFlux_135updateExteriorNumericalDiffusiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23923 static PyMethodDef __pyx_mdef_14cnumericalFlux_135updateExteriorNumericalDiffusiveFluxJacobian_free = {
"updateExteriorNumericalDiffusiveFluxJacobian_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_135updateExteriorNumericalDiffusiveFluxJacobian_free, METH_VARARGS|METH_KEYWORDS, 0};
23924 static PyObject *__pyx_pw_14cnumericalFlux_135updateExteriorNumericalDiffusiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23925 PyArrayObject *__pyx_v_l2g = 0;
23926 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
23927 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
23928 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
23929 PyArrayObject *__pyx_v_isDOFBoundary = 0;
23930 PyArrayObject *__pyx_v_n = 0;
23931 PyArrayObject *__pyx_v_a = 0;
23932 PyArrayObject *__pyx_v_da = 0;
23933 PyArrayObject *__pyx_v_grad_phi = 0;
23934 PyArrayObject *__pyx_v_dphi = 0;
23935 PyArrayObject *__pyx_v_v = 0;
23936 PyArrayObject *__pyx_v_grad_v = 0;
23937 PyArrayObject *__pyx_v_penalty = 0;
23938 PyArrayObject *__pyx_v_fluxJacobian = 0;
23939 int __pyx_lineno = 0;
23940 const char *__pyx_filename = NULL;
23941 int __pyx_clineno = 0;
23942 PyObject *__pyx_r = 0;
23943 __Pyx_RefNannyDeclarations
23944 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_free (wrapper)", 0);
23946 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
23947 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
23948 if (unlikely(__pyx_kwds)) {
23949 Py_ssize_t kw_args;
23950 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23951 switch (pos_args) {
23952 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
23953 CYTHON_FALLTHROUGH;
23954 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
23955 CYTHON_FALLTHROUGH;
23956 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
23957 CYTHON_FALLTHROUGH;
23958 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
23959 CYTHON_FALLTHROUGH;
23960 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
23961 CYTHON_FALLTHROUGH;
23962 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
23963 CYTHON_FALLTHROUGH;
23964 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
23965 CYTHON_FALLTHROUGH;
23966 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
23967 CYTHON_FALLTHROUGH;
23968 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
23969 CYTHON_FALLTHROUGH;
23970 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
23971 CYTHON_FALLTHROUGH;
23972 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23973 CYTHON_FALLTHROUGH;
23974 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23975 CYTHON_FALLTHROUGH;
23976 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23977 CYTHON_FALLTHROUGH;
23978 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23979 CYTHON_FALLTHROUGH;
23981 default:
goto __pyx_L5_argtuple_error;
23983 kw_args = PyDict_Size(__pyx_kwds);
23984 switch (pos_args) {
23986 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
23987 else goto __pyx_L5_argtuple_error;
23988 CYTHON_FALLTHROUGH;
23990 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
23992 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 1); __PYX_ERR(0, 5062, __pyx_L3_error)
23994 CYTHON_FALLTHROUGH;
23996 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
23998 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 2); __PYX_ERR(0, 5062, __pyx_L3_error)
24000 CYTHON_FALLTHROUGH;
24002 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
24004 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 3); __PYX_ERR(0, 5062, __pyx_L3_error)
24006 CYTHON_FALLTHROUGH;
24008 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
24010 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 4); __PYX_ERR(0, 5062, __pyx_L3_error)
24012 CYTHON_FALLTHROUGH;
24014 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24016 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 5); __PYX_ERR(0, 5062, __pyx_L3_error)
24018 CYTHON_FALLTHROUGH;
24020 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
24022 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 6); __PYX_ERR(0, 5062, __pyx_L3_error)
24024 CYTHON_FALLTHROUGH;
24026 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
24028 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 7); __PYX_ERR(0, 5062, __pyx_L3_error)
24030 CYTHON_FALLTHROUGH;
24032 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
24034 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 8); __PYX_ERR(0, 5062, __pyx_L3_error)
24036 CYTHON_FALLTHROUGH;
24038 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
24040 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 9); __PYX_ERR(0, 5062, __pyx_L3_error)
24042 CYTHON_FALLTHROUGH;
24044 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
24046 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 10); __PYX_ERR(0, 5062, __pyx_L3_error)
24048 CYTHON_FALLTHROUGH;
24050 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
24052 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 11); __PYX_ERR(0, 5062, __pyx_L3_error)
24054 CYTHON_FALLTHROUGH;
24056 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
24058 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 12); __PYX_ERR(0, 5062, __pyx_L3_error)
24060 CYTHON_FALLTHROUGH;
24062 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
24064 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, 13); __PYX_ERR(0, 5062, __pyx_L3_error)
24067 if (unlikely(kw_args > 0)) {
24068 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian_free") < 0)) __PYX_ERR(0, 5062, __pyx_L3_error)
24070 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
24071 goto __pyx_L5_argtuple_error;
24073 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24074 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24075 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24076 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24077 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24078 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24079 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24080 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24081 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24082 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24083 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24084 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24085 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24086 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24088 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24089 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
24090 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
24091 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
24092 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
24093 __pyx_v_n = ((PyArrayObject *)values[5]);
24094 __pyx_v_a = ((PyArrayObject *)values[6]);
24095 __pyx_v_da = ((PyArrayObject *)values[7]);
24096 __pyx_v_grad_phi = ((PyArrayObject *)values[8]);
24097 __pyx_v_dphi = ((PyArrayObject *)values[9]);
24098 __pyx_v_v = ((PyArrayObject *)values[10]);
24099 __pyx_v_grad_v = ((PyArrayObject *)values[11]);
24100 __pyx_v_penalty = ((PyArrayObject *)values[12]);
24101 __pyx_v_fluxJacobian = ((PyArrayObject *)values[13]);
24103 goto __pyx_L4_argument_unpacking_done;
24104 __pyx_L5_argtuple_error:;
24105 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5062, __pyx_L3_error)
24107 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
24108 __Pyx_RefNannyFinishContext();
24110 __pyx_L4_argument_unpacking_done:;
24111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5062, __pyx_L1_error)
24112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5063, __pyx_L1_error)
24113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5064, __pyx_L1_error)
24114 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5065, __pyx_L1_error)
24115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5066, __pyx_L1_error)
24116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5067, __pyx_L1_error)
24117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5068, __pyx_L1_error)
24118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5069, __pyx_L1_error)
24119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 5070, __pyx_L1_error)
24120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5071, __pyx_L1_error)
24121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5072, __pyx_L1_error)
24122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 5073, __pyx_L1_error)
24123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 5074, __pyx_L1_error)
24124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 5075, __pyx_L1_error)
24125 __pyx_r = __pyx_pf_14cnumericalFlux_134updateExteriorNumericalDiffusiveFluxJacobian_free(__pyx_self, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
24132 __Pyx_RefNannyFinishContext();
24136 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) {
24137 PyObject *__pyx_r = NULL;
24138 __Pyx_RefNannyDeclarations
24139 PyObject *__pyx_t_1 = NULL;
24140 PyObject *__pyx_t_2 = NULL;
24141 PyObject *__pyx_t_3 = NULL;
24142 int __pyx_lineno = 0;
24143 const char *__pyx_filename = NULL;
24144 int __pyx_clineno = 0;
24145 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_free", 0);
24154 switch (__pyx_v_grad_v->nd) {
24164 updateExteriorNumericalDiffusiveFluxJacobian_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__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_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
24183 updateGlobalExteriorNumericalDiffusiveFluxJacobian_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
24202 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5116, __pyx_L1_error)
24203 __Pyx_GOTREF(__pyx_t_2);
24205 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
24206 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24207 if (likely(__pyx_t_3)) {
24208 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24209 __Pyx_INCREF(__pyx_t_3);
24210 __Pyx_INCREF(
function);
24211 __Pyx_DECREF_SET(__pyx_t_2,
function);
24214 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_1);
24215 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24216 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5116, __pyx_L1_error)
24217 __Pyx_GOTREF(__pyx_t_1);
24218 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24219 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24232 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24235 __Pyx_XDECREF(__pyx_t_1);
24236 __Pyx_XDECREF(__pyx_t_2);
24237 __Pyx_XDECREF(__pyx_t_3);
24238 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
24241 __Pyx_XGIVEREF(__pyx_r);
24242 __Pyx_RefNannyFinishContext();
24255 static PyObject *__pyx_pw_14cnumericalFlux_137updateGlobalExteriorNumericalDiffusiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24256 static PyMethodDef __pyx_mdef_14cnumericalFlux_137updateGlobalExteriorNumericalDiffusiveFluxJacobian_free = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_137updateGlobalExteriorNumericalDiffusiveFluxJacobian_free, METH_VARARGS|METH_KEYWORDS, 0};
24257 static PyObject *__pyx_pw_14cnumericalFlux_137updateGlobalExteriorNumericalDiffusiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24258 int __pyx_v_nExteriorElementBoundaries_global;
24259 int __pyx_v_nQuadraturePoints_elementBoundary;
24260 int __pyx_v_nDOF_trial_element;
24261 int __pyx_v_nSpace;
24262 PyArrayObject *__pyx_v_l2g = 0;
24263 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
24264 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
24265 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
24266 PyArrayObject *__pyx_v_isDOFBoundary = 0;
24267 PyArrayObject *__pyx_v_n = 0;
24268 PyArrayObject *__pyx_v_a = 0;
24269 PyArrayObject *__pyx_v_da = 0;
24270 PyArrayObject *__pyx_v_grad_phi = 0;
24271 PyArrayObject *__pyx_v_dphi = 0;
24272 PyArrayObject *__pyx_v_v = 0;
24273 PyArrayObject *__pyx_v_grad_v = 0;
24274 PyArrayObject *__pyx_v_penalty = 0;
24275 PyArrayObject *__pyx_v_fluxJacobian = 0;
24276 int __pyx_lineno = 0;
24277 const char *__pyx_filename = NULL;
24278 int __pyx_clineno = 0;
24279 PyObject *__pyx_r = 0;
24280 __Pyx_RefNannyDeclarations
24281 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free (wrapper)", 0);
24283 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
24284 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
24285 if (unlikely(__pyx_kwds)) {
24286 Py_ssize_t kw_args;
24287 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24288 switch (pos_args) {
24289 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24290 CYTHON_FALLTHROUGH;
24291 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24292 CYTHON_FALLTHROUGH;
24293 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24294 CYTHON_FALLTHROUGH;
24295 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24296 CYTHON_FALLTHROUGH;
24297 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24298 CYTHON_FALLTHROUGH;
24299 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24300 CYTHON_FALLTHROUGH;
24301 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24302 CYTHON_FALLTHROUGH;
24303 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24304 CYTHON_FALLTHROUGH;
24305 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24306 CYTHON_FALLTHROUGH;
24307 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24308 CYTHON_FALLTHROUGH;
24309 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24310 CYTHON_FALLTHROUGH;
24311 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24312 CYTHON_FALLTHROUGH;
24313 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24314 CYTHON_FALLTHROUGH;
24315 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24316 CYTHON_FALLTHROUGH;
24317 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24318 CYTHON_FALLTHROUGH;
24319 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24320 CYTHON_FALLTHROUGH;
24321 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24322 CYTHON_FALLTHROUGH;
24323 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24324 CYTHON_FALLTHROUGH;
24326 default:
goto __pyx_L5_argtuple_error;
24328 kw_args = PyDict_Size(__pyx_kwds);
24329 switch (pos_args) {
24331 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
24332 else goto __pyx_L5_argtuple_error;
24333 CYTHON_FALLTHROUGH;
24335 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
24337 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 1); __PYX_ERR(0, 5117, __pyx_L3_error)
24339 CYTHON_FALLTHROUGH;
24341 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
24343 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 2); __PYX_ERR(0, 5117, __pyx_L3_error)
24345 CYTHON_FALLTHROUGH;
24347 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
24349 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 3); __PYX_ERR(0, 5117, __pyx_L3_error)
24351 CYTHON_FALLTHROUGH;
24353 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24355 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 4); __PYX_ERR(0, 5117, __pyx_L3_error)
24357 CYTHON_FALLTHROUGH;
24359 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
24361 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 5); __PYX_ERR(0, 5117, __pyx_L3_error)
24363 CYTHON_FALLTHROUGH;
24365 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
24367 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 6); __PYX_ERR(0, 5117, __pyx_L3_error)
24369 CYTHON_FALLTHROUGH;
24371 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
24373 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 7); __PYX_ERR(0, 5117, __pyx_L3_error)
24375 CYTHON_FALLTHROUGH;
24377 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
24379 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 8); __PYX_ERR(0, 5117, __pyx_L3_error)
24381 CYTHON_FALLTHROUGH;
24383 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24385 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 9); __PYX_ERR(0, 5117, __pyx_L3_error)
24387 CYTHON_FALLTHROUGH;
24389 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
24391 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 10); __PYX_ERR(0, 5117, __pyx_L3_error)
24393 CYTHON_FALLTHROUGH;
24395 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
24397 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 11); __PYX_ERR(0, 5117, __pyx_L3_error)
24399 CYTHON_FALLTHROUGH;
24401 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
24403 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 12); __PYX_ERR(0, 5117, __pyx_L3_error)
24405 CYTHON_FALLTHROUGH;
24407 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
24409 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 13); __PYX_ERR(0, 5117, __pyx_L3_error)
24411 CYTHON_FALLTHROUGH;
24413 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
24415 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 14); __PYX_ERR(0, 5117, __pyx_L3_error)
24417 CYTHON_FALLTHROUGH;
24419 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
24421 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 15); __PYX_ERR(0, 5117, __pyx_L3_error)
24423 CYTHON_FALLTHROUGH;
24425 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
24427 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 16); __PYX_ERR(0, 5117, __pyx_L3_error)
24429 CYTHON_FALLTHROUGH;
24431 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
24433 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, 17); __PYX_ERR(0, 5117, __pyx_L3_error)
24436 if (unlikely(kw_args > 0)) {
24437 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free") < 0)) __PYX_ERR(0, 5117, __pyx_L3_error)
24439 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
24440 goto __pyx_L5_argtuple_error;
24442 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24443 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24444 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24445 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24446 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24447 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24448 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24449 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24450 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24451 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24452 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24453 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24454 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24455 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24456 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24457 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24458 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24459 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24461 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5117, __pyx_L3_error)
24462 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5118, __pyx_L3_error)
24463 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5119, __pyx_L3_error)
24464 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5120, __pyx_L3_error)
24465 __pyx_v_l2g = ((PyArrayObject *)values[4]);
24466 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
24467 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
24468 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
24469 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[8]);
24470 __pyx_v_n = ((PyArrayObject *)values[9]);
24471 __pyx_v_a = ((PyArrayObject *)values[10]);
24472 __pyx_v_da = ((PyArrayObject *)values[11]);
24473 __pyx_v_grad_phi = ((PyArrayObject *)values[12]);
24474 __pyx_v_dphi = ((PyArrayObject *)values[13]);
24475 __pyx_v_v = ((PyArrayObject *)values[14]);
24476 __pyx_v_grad_v = ((PyArrayObject *)values[15]);
24477 __pyx_v_penalty = ((PyArrayObject *)values[16]);
24478 __pyx_v_fluxJacobian = ((PyArrayObject *)values[17]);
24480 goto __pyx_L4_argument_unpacking_done;
24481 __pyx_L5_argtuple_error:;
24482 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5117, __pyx_L3_error)
24484 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
24485 __Pyx_RefNannyFinishContext();
24487 __pyx_L4_argument_unpacking_done:;
24488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5121, __pyx_L1_error)
24489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5122, __pyx_L1_error)
24490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5123, __pyx_L1_error)
24491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5124, __pyx_L1_error)
24492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5125, __pyx_L1_error)
24493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5126, __pyx_L1_error)
24494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5127, __pyx_L1_error)
24495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5128, __pyx_L1_error)
24496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 5129, __pyx_L1_error)
24497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5130, __pyx_L1_error)
24498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5131, __pyx_L1_error)
24499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 5132, __pyx_L1_error)
24500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 5133, __pyx_L1_error)
24501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 5134, __pyx_L1_error)
24502 __pyx_r = __pyx_pf_14cnumericalFlux_136updateGlobalExteriorNumericalDiffusiveFluxJacobian_free(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
24509 __Pyx_RefNannyFinishContext();
24513 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) {
24514 PyObject *__pyx_r = NULL;
24515 __Pyx_RefNannyDeclarations
24516 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free", 0);
24525 updateGlobalExteriorNumericalDiffusiveFluxJacobian_free(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
24536 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24537 __Pyx_XGIVEREF(__pyx_r);
24538 __Pyx_RefNannyFinishContext();
24551 static PyObject *__pyx_pw_14cnumericalFlux_139updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24552 static PyMethodDef __pyx_mdef_14cnumericalFlux_139updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_139updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd, METH_VARARGS|METH_KEYWORDS, 0};
24553 static PyObject *__pyx_pw_14cnumericalFlux_139updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24554 int __pyx_v_nExteriorElementBoundaries_global;
24555 int __pyx_v_nQuadraturePoints_elementBoundary;
24556 int __pyx_v_nDOF_trial_element;
24557 int __pyx_v_nSpace;
24558 PyArrayObject *__pyx_v_rowptr = 0;
24559 PyArrayObject *__pyx_v_colind = 0;
24560 PyArrayObject *__pyx_v_l2g = 0;
24561 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
24562 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
24563 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
24564 PyArrayObject *__pyx_v_isDOFBoundary = 0;
24565 PyArrayObject *__pyx_v_n = 0;
24566 PyArrayObject *__pyx_v_a = 0;
24567 PyArrayObject *__pyx_v_da = 0;
24568 PyArrayObject *__pyx_v_grad_phi = 0;
24569 PyArrayObject *__pyx_v_dphi = 0;
24570 PyArrayObject *__pyx_v_v = 0;
24571 PyArrayObject *__pyx_v_grad_v = 0;
24572 PyArrayObject *__pyx_v_penalty = 0;
24573 PyArrayObject *__pyx_v_fluxJacobian = 0;
24574 int __pyx_lineno = 0;
24575 const char *__pyx_filename = NULL;
24576 int __pyx_clineno = 0;
24577 PyObject *__pyx_r = 0;
24578 __Pyx_RefNannyDeclarations
24579 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd (wrapper)", 0);
24581 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__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,0};
24582 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
24583 if (unlikely(__pyx_kwds)) {
24584 Py_ssize_t kw_args;
24585 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24586 switch (pos_args) {
24587 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
24588 CYTHON_FALLTHROUGH;
24589 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
24590 CYTHON_FALLTHROUGH;
24591 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24592 CYTHON_FALLTHROUGH;
24593 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24594 CYTHON_FALLTHROUGH;
24595 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24596 CYTHON_FALLTHROUGH;
24597 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24598 CYTHON_FALLTHROUGH;
24599 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24600 CYTHON_FALLTHROUGH;
24601 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24602 CYTHON_FALLTHROUGH;
24603 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24604 CYTHON_FALLTHROUGH;
24605 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24606 CYTHON_FALLTHROUGH;
24607 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24608 CYTHON_FALLTHROUGH;
24609 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24610 CYTHON_FALLTHROUGH;
24611 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24612 CYTHON_FALLTHROUGH;
24613 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24614 CYTHON_FALLTHROUGH;
24615 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24616 CYTHON_FALLTHROUGH;
24617 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24618 CYTHON_FALLTHROUGH;
24619 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24620 CYTHON_FALLTHROUGH;
24621 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24622 CYTHON_FALLTHROUGH;
24623 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24624 CYTHON_FALLTHROUGH;
24625 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24626 CYTHON_FALLTHROUGH;
24628 default:
goto __pyx_L5_argtuple_error;
24630 kw_args = PyDict_Size(__pyx_kwds);
24631 switch (pos_args) {
24633 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
24634 else goto __pyx_L5_argtuple_error;
24635 CYTHON_FALLTHROUGH;
24637 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
24639 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 1); __PYX_ERR(0, 5153, __pyx_L3_error)
24641 CYTHON_FALLTHROUGH;
24643 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
24645 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 2); __PYX_ERR(0, 5153, __pyx_L3_error)
24647 CYTHON_FALLTHROUGH;
24649 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
24651 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 3); __PYX_ERR(0, 5153, __pyx_L3_error)
24653 CYTHON_FALLTHROUGH;
24655 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
24657 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 4); __PYX_ERR(0, 5153, __pyx_L3_error)
24659 CYTHON_FALLTHROUGH;
24661 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
24663 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 5); __PYX_ERR(0, 5153, __pyx_L3_error)
24665 CYTHON_FALLTHROUGH;
24667 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24669 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 6); __PYX_ERR(0, 5153, __pyx_L3_error)
24671 CYTHON_FALLTHROUGH;
24673 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
24675 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 7); __PYX_ERR(0, 5153, __pyx_L3_error)
24677 CYTHON_FALLTHROUGH;
24679 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
24681 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 8); __PYX_ERR(0, 5153, __pyx_L3_error)
24683 CYTHON_FALLTHROUGH;
24685 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
24687 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 9); __PYX_ERR(0, 5153, __pyx_L3_error)
24689 CYTHON_FALLTHROUGH;
24691 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
24693 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 10); __PYX_ERR(0, 5153, __pyx_L3_error)
24695 CYTHON_FALLTHROUGH;
24697 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24699 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 11); __PYX_ERR(0, 5153, __pyx_L3_error)
24701 CYTHON_FALLTHROUGH;
24703 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
24705 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 12); __PYX_ERR(0, 5153, __pyx_L3_error)
24707 CYTHON_FALLTHROUGH;
24709 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
24711 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 13); __PYX_ERR(0, 5153, __pyx_L3_error)
24713 CYTHON_FALLTHROUGH;
24715 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
24717 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 14); __PYX_ERR(0, 5153, __pyx_L3_error)
24719 CYTHON_FALLTHROUGH;
24721 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
24723 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 15); __PYX_ERR(0, 5153, __pyx_L3_error)
24725 CYTHON_FALLTHROUGH;
24727 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
24729 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 16); __PYX_ERR(0, 5153, __pyx_L3_error)
24731 CYTHON_FALLTHROUGH;
24733 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
24735 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 17); __PYX_ERR(0, 5153, __pyx_L3_error)
24737 CYTHON_FALLTHROUGH;
24739 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
24741 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 18); __PYX_ERR(0, 5153, __pyx_L3_error)
24743 CYTHON_FALLTHROUGH;
24745 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
24747 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, 19); __PYX_ERR(0, 5153, __pyx_L3_error)
24750 if (unlikely(kw_args > 0)) {
24751 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd") < 0)) __PYX_ERR(0, 5153, __pyx_L3_error)
24753 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
24754 goto __pyx_L5_argtuple_error;
24756 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24757 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24758 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24759 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24760 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24761 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24762 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24763 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24764 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24765 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24766 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24767 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24768 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
24769 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
24770 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
24771 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
24772 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
24773 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
24774 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
24775 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
24777 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5153, __pyx_L3_error)
24778 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5154, __pyx_L3_error)
24779 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5155, __pyx_L3_error)
24780 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5156, __pyx_L3_error)
24781 __pyx_v_rowptr = ((PyArrayObject *)values[4]);
24782 __pyx_v_colind = ((PyArrayObject *)values[5]);
24783 __pyx_v_l2g = ((PyArrayObject *)values[6]);
24784 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[7]);
24785 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
24786 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
24787 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[10]);
24788 __pyx_v_n = ((PyArrayObject *)values[11]);
24789 __pyx_v_a = ((PyArrayObject *)values[12]);
24790 __pyx_v_da = ((PyArrayObject *)values[13]);
24791 __pyx_v_grad_phi = ((PyArrayObject *)values[14]);
24792 __pyx_v_dphi = ((PyArrayObject *)values[15]);
24793 __pyx_v_v = ((PyArrayObject *)values[16]);
24794 __pyx_v_grad_v = ((PyArrayObject *)values[17]);
24795 __pyx_v_penalty = ((PyArrayObject *)values[18]);
24796 __pyx_v_fluxJacobian = ((PyArrayObject *)values[19]);
24798 goto __pyx_L4_argument_unpacking_done;
24799 __pyx_L5_argtuple_error:;
24800 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5153, __pyx_L3_error)
24802 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
24803 __Pyx_RefNannyFinishContext();
24805 __pyx_L4_argument_unpacking_done:;
24806 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 5157, __pyx_L1_error)
24807 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 5158, __pyx_L1_error)
24808 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5159, __pyx_L1_error)
24809 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5160, __pyx_L1_error)
24810 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5161, __pyx_L1_error)
24811 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5162, __pyx_L1_error)
24812 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5163, __pyx_L1_error)
24813 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5164, __pyx_L1_error)
24814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5165, __pyx_L1_error)
24815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5166, __pyx_L1_error)
24816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 5167, __pyx_L1_error)
24817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5168, __pyx_L1_error)
24818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5169, __pyx_L1_error)
24819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 5170, __pyx_L1_error)
24820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 5171, __pyx_L1_error)
24821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 5172, __pyx_L1_error)
24822 __pyx_r = __pyx_pf_14cnumericalFlux_138updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __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);
24829 __Pyx_RefNannyFinishContext();
24833 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) {
24834 PyObject *__pyx_r = NULL;
24835 __Pyx_RefNannyDeclarations
24836 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd", 0);
24845 updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->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));
24856 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24857 __Pyx_XGIVEREF(__pyx_r);
24858 __Pyx_RefNannyFinishContext();
24871 static PyObject *__pyx_pw_14cnumericalFlux_141calculateGlobalExteriorNumericalAdvectiveFlux_NoBC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24872 static PyMethodDef __pyx_mdef_14cnumericalFlux_141calculateGlobalExteriorNumericalAdvectiveFlux_NoBC = {
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_141calculateGlobalExteriorNumericalAdvectiveFlux_NoBC, METH_VARARGS|METH_KEYWORDS, 0};
24873 static PyObject *__pyx_pw_14cnumericalFlux_141calculateGlobalExteriorNumericalAdvectiveFlux_NoBC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24874 int __pyx_v_nExteriorElementBoundaries_global;
24875 int __pyx_v_nQuadraturePoints_elementBoundary;
24876 int __pyx_v_nSpace;
24877 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
24878 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
24879 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
24880 PyArrayObject *__pyx_v_inflowFlag = 0;
24881 PyArrayObject *__pyx_v_n = 0;
24882 PyArrayObject *__pyx_v_f = 0;
24883 PyArrayObject *__pyx_v_df = 0;
24884 PyArrayObject *__pyx_v_flux = 0;
24885 PyArrayObject *__pyx_v_dflux_left = 0;
24886 int __pyx_lineno = 0;
24887 const char *__pyx_filename = NULL;
24888 int __pyx_clineno = 0;
24889 PyObject *__pyx_r = 0;
24890 __Pyx_RefNannyDeclarations
24891 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC (wrapper)", 0);
24893 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__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};
24894 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
24895 if (unlikely(__pyx_kwds)) {
24896 Py_ssize_t kw_args;
24897 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24898 switch (pos_args) {
24899 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
24900 CYTHON_FALLTHROUGH;
24901 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
24902 CYTHON_FALLTHROUGH;
24903 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
24904 CYTHON_FALLTHROUGH;
24905 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
24906 CYTHON_FALLTHROUGH;
24907 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
24908 CYTHON_FALLTHROUGH;
24909 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
24910 CYTHON_FALLTHROUGH;
24911 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
24912 CYTHON_FALLTHROUGH;
24913 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
24914 CYTHON_FALLTHROUGH;
24915 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24916 CYTHON_FALLTHROUGH;
24917 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24918 CYTHON_FALLTHROUGH;
24919 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24920 CYTHON_FALLTHROUGH;
24921 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24922 CYTHON_FALLTHROUGH;
24924 default:
goto __pyx_L5_argtuple_error;
24926 kw_args = PyDict_Size(__pyx_kwds);
24927 switch (pos_args) {
24929 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
24930 else goto __pyx_L5_argtuple_error;
24931 CYTHON_FALLTHROUGH;
24933 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
24935 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 1); __PYX_ERR(0, 5193, __pyx_L3_error)
24937 CYTHON_FALLTHROUGH;
24939 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
24941 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 2); __PYX_ERR(0, 5193, __pyx_L3_error)
24943 CYTHON_FALLTHROUGH;
24945 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
24947 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 3); __PYX_ERR(0, 5193, __pyx_L3_error)
24949 CYTHON_FALLTHROUGH;
24951 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
24953 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 4); __PYX_ERR(0, 5193, __pyx_L3_error)
24955 CYTHON_FALLTHROUGH;
24957 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
24959 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 5); __PYX_ERR(0, 5193, __pyx_L3_error)
24961 CYTHON_FALLTHROUGH;
24963 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
24965 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 6); __PYX_ERR(0, 5193, __pyx_L3_error)
24967 CYTHON_FALLTHROUGH;
24969 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
24971 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 7); __PYX_ERR(0, 5193, __pyx_L3_error)
24973 CYTHON_FALLTHROUGH;
24975 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
24977 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 8); __PYX_ERR(0, 5193, __pyx_L3_error)
24979 CYTHON_FALLTHROUGH;
24981 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
24983 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 9); __PYX_ERR(0, 5193, __pyx_L3_error)
24985 CYTHON_FALLTHROUGH;
24987 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
24989 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 10); __PYX_ERR(0, 5193, __pyx_L3_error)
24991 CYTHON_FALLTHROUGH;
24993 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
24995 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, 11); __PYX_ERR(0, 5193, __pyx_L3_error)
24998 if (unlikely(kw_args > 0)) {
24999 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC") < 0)) __PYX_ERR(0, 5193, __pyx_L3_error)
25001 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
25002 goto __pyx_L5_argtuple_error;
25004 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25005 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25006 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25007 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25008 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25009 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25010 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25011 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25012 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25013 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25014 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25015 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25017 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5193, __pyx_L3_error)
25018 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5194, __pyx_L3_error)
25019 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5195, __pyx_L3_error)
25020 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
25021 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
25022 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
25023 __pyx_v_inflowFlag = ((PyArrayObject *)values[6]);
25024 __pyx_v_n = ((PyArrayObject *)values[7]);
25025 __pyx_v_f = ((PyArrayObject *)values[8]);
25026 __pyx_v_df = ((PyArrayObject *)values[9]);
25027 __pyx_v_flux = ((PyArrayObject *)values[10]);
25028 __pyx_v_dflux_left = ((PyArrayObject *)values[11]);
25030 goto __pyx_L4_argument_unpacking_done;
25031 __pyx_L5_argtuple_error:;
25032 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5193, __pyx_L3_error)
25034 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", __pyx_clineno, __pyx_lineno, __pyx_filename);
25035 __Pyx_RefNannyFinishContext();
25037 __pyx_L4_argument_unpacking_done:;
25038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5196, __pyx_L1_error)
25039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5197, __pyx_L1_error)
25040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5198, __pyx_L1_error)
25041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 5199, __pyx_L1_error)
25042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5200, __pyx_L1_error)
25043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5201, __pyx_L1_error)
25044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5202, __pyx_L1_error)
25045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5203, __pyx_L1_error)
25046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 5204, __pyx_L1_error)
25047 __pyx_r = __pyx_pf_14cnumericalFlux_140calculateGlobalExteriorNumericalAdvectiveFlux_NoBC(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __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);
25054 __Pyx_RefNannyFinishContext();
25058 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) {
25059 PyObject *__pyx_r = NULL;
25060 __Pyx_RefNannyDeclarations
25061 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_NoBC", 0);
25070 calculateGlobalExteriorNumericalAdvectiveFlux_NoBC(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
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));
25081 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25082 __Pyx_XGIVEREF(__pyx_r);
25083 __Pyx_RefNannyFinishContext();
25096 static PyObject *__pyx_pw_14cnumericalFlux_143calculateGlobalExteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25097 static PyMethodDef __pyx_mdef_14cnumericalFlux_143calculateGlobalExteriorNumericalAdvectiveFlux = {
"calculateGlobalExteriorNumericalAdvectiveFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_143calculateGlobalExteriorNumericalAdvectiveFlux, METH_VARARGS|METH_KEYWORDS, 0};
25098 static PyObject *__pyx_pw_14cnumericalFlux_143calculateGlobalExteriorNumericalAdvectiveFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25099 int __pyx_v_nExteriorElementBoundaries_global;
25100 int __pyx_v_nQuadraturePoints_elementBoundary;
25101 int __pyx_v_nSpace;
25102 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
25103 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
25104 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
25105 PyArrayObject *__pyx_v_isDOFBoundary = 0;
25106 PyArrayObject *__pyx_v_inflowFlag = 0;
25107 PyArrayObject *__pyx_v_n = 0;
25108 PyArrayObject *__pyx_v_bc_u = 0;
25109 PyArrayObject *__pyx_v_bc_f = 0;
25110 PyArrayObject *__pyx_v_bc_df = 0;
25111 PyArrayObject *__pyx_v_u = 0;
25112 PyArrayObject *__pyx_v_f = 0;
25113 PyArrayObject *__pyx_v_df = 0;
25114 PyArrayObject *__pyx_v_flux = 0;
25115 PyArrayObject *__pyx_v_dflux = 0;
25116 int __pyx_lineno = 0;
25117 const char *__pyx_filename = NULL;
25118 int __pyx_clineno = 0;
25119 PyObject *__pyx_r = 0;
25120 __Pyx_RefNannyDeclarations
25121 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux (wrapper)", 0);
25123 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__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};
25124 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25125 if (unlikely(__pyx_kwds)) {
25126 Py_ssize_t kw_args;
25127 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25128 switch (pos_args) {
25129 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25130 CYTHON_FALLTHROUGH;
25131 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25132 CYTHON_FALLTHROUGH;
25133 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25134 CYTHON_FALLTHROUGH;
25135 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25136 CYTHON_FALLTHROUGH;
25137 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25138 CYTHON_FALLTHROUGH;
25139 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25140 CYTHON_FALLTHROUGH;
25141 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25142 CYTHON_FALLTHROUGH;
25143 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25144 CYTHON_FALLTHROUGH;
25145 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25146 CYTHON_FALLTHROUGH;
25147 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25148 CYTHON_FALLTHROUGH;
25149 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25150 CYTHON_FALLTHROUGH;
25151 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25152 CYTHON_FALLTHROUGH;
25153 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25154 CYTHON_FALLTHROUGH;
25155 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25156 CYTHON_FALLTHROUGH;
25157 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25158 CYTHON_FALLTHROUGH;
25159 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25160 CYTHON_FALLTHROUGH;
25161 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25162 CYTHON_FALLTHROUGH;
25164 default:
goto __pyx_L5_argtuple_error;
25166 kw_args = PyDict_Size(__pyx_kwds);
25167 switch (pos_args) {
25169 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
25170 else goto __pyx_L5_argtuple_error;
25171 CYTHON_FALLTHROUGH;
25173 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
25175 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 1); __PYX_ERR(0, 5217, __pyx_L3_error)
25177 CYTHON_FALLTHROUGH;
25179 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
25181 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 2); __PYX_ERR(0, 5217, __pyx_L3_error)
25183 CYTHON_FALLTHROUGH;
25185 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
25187 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 3); __PYX_ERR(0, 5217, __pyx_L3_error)
25189 CYTHON_FALLTHROUGH;
25191 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
25193 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 4); __PYX_ERR(0, 5217, __pyx_L3_error)
25195 CYTHON_FALLTHROUGH;
25197 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
25199 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 5); __PYX_ERR(0, 5217, __pyx_L3_error)
25201 CYTHON_FALLTHROUGH;
25203 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
25205 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 6); __PYX_ERR(0, 5217, __pyx_L3_error)
25207 CYTHON_FALLTHROUGH;
25209 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
25211 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 7); __PYX_ERR(0, 5217, __pyx_L3_error)
25213 CYTHON_FALLTHROUGH;
25215 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25217 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 8); __PYX_ERR(0, 5217, __pyx_L3_error)
25219 CYTHON_FALLTHROUGH;
25221 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
25223 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 9); __PYX_ERR(0, 5217, __pyx_L3_error)
25225 CYTHON_FALLTHROUGH;
25227 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
25229 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 10); __PYX_ERR(0, 5217, __pyx_L3_error)
25231 CYTHON_FALLTHROUGH;
25233 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
25235 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 11); __PYX_ERR(0, 5217, __pyx_L3_error)
25237 CYTHON_FALLTHROUGH;
25239 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25241 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 12); __PYX_ERR(0, 5217, __pyx_L3_error)
25243 CYTHON_FALLTHROUGH;
25245 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25247 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 13); __PYX_ERR(0, 5217, __pyx_L3_error)
25249 CYTHON_FALLTHROUGH;
25251 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25253 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 14); __PYX_ERR(0, 5217, __pyx_L3_error)
25255 CYTHON_FALLTHROUGH;
25257 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
25259 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 15); __PYX_ERR(0, 5217, __pyx_L3_error)
25261 CYTHON_FALLTHROUGH;
25263 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
25265 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, 16); __PYX_ERR(0, 5217, __pyx_L3_error)
25268 if (unlikely(kw_args > 0)) {
25269 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFlux") < 0)) __PYX_ERR(0, 5217, __pyx_L3_error)
25271 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
25272 goto __pyx_L5_argtuple_error;
25274 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25275 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25276 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25277 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25278 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25279 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25280 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25281 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25282 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25283 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25284 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25285 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25286 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25287 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25288 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25289 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25290 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25292 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5217, __pyx_L3_error)
25293 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5218, __pyx_L3_error)
25294 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5219, __pyx_L3_error)
25295 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
25296 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
25297 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
25298 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
25299 __pyx_v_inflowFlag = ((PyArrayObject *)values[7]);
25300 __pyx_v_n = ((PyArrayObject *)values[8]);
25301 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
25302 __pyx_v_bc_f = ((PyArrayObject *)values[10]);
25303 __pyx_v_bc_df = ((PyArrayObject *)values[11]);
25304 __pyx_v_u = ((PyArrayObject *)values[12]);
25305 __pyx_v_f = ((PyArrayObject *)values[13]);
25306 __pyx_v_df = ((PyArrayObject *)values[14]);
25307 __pyx_v_flux = ((PyArrayObject *)values[15]);
25308 __pyx_v_dflux = ((PyArrayObject *)values[16]);
25310 goto __pyx_L4_argument_unpacking_done;
25311 __pyx_L5_argtuple_error:;
25312 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5217, __pyx_L3_error)
25314 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
25315 __Pyx_RefNannyFinishContext();
25317 __pyx_L4_argument_unpacking_done:;
25318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5220, __pyx_L1_error)
25319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5221, __pyx_L1_error)
25320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5222, __pyx_L1_error)
25321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5223, __pyx_L1_error)
25322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 5224, __pyx_L1_error)
25323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5225, __pyx_L1_error)
25324 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 5226, __pyx_L1_error)
25325 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5227, __pyx_L1_error)
25326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 5228, __pyx_L1_error)
25327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5229, __pyx_L1_error)
25328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5230, __pyx_L1_error)
25329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5231, __pyx_L1_error)
25330 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5232, __pyx_L1_error)
25331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 5233, __pyx_L1_error)
25332 __pyx_r = __pyx_pf_14cnumericalFlux_142calculateGlobalExteriorNumericalAdvectiveFlux(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __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);
25339 __Pyx_RefNannyFinishContext();
25343 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) {
25344 PyObject *__pyx_r = NULL;
25345 __Pyx_RefNannyDeclarations
25346 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux", 0);
25355 calculateGlobalExteriorNumericalAdvectiveFlux(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
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));
25366 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25367 __Pyx_XGIVEREF(__pyx_r);
25368 __Pyx_RefNannyFinishContext();
25381 static PyObject *__pyx_pw_14cnumericalFlux_145calculateExteriorNumericalAdvectiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25382 static PyMethodDef __pyx_mdef_14cnumericalFlux_145calculateExteriorNumericalAdvectiveFlux_free = {
"calculateExteriorNumericalAdvectiveFlux_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_145calculateExteriorNumericalAdvectiveFlux_free, METH_VARARGS|METH_KEYWORDS, 0};
25383 static PyObject *__pyx_pw_14cnumericalFlux_145calculateExteriorNumericalAdvectiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25384 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
25385 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
25386 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
25387 PyArrayObject *__pyx_v_isDOFBoundary = 0;
25388 PyArrayObject *__pyx_v_inflowFlag = 0;
25389 PyArrayObject *__pyx_v_n = 0;
25390 PyArrayObject *__pyx_v_bc_u = 0;
25391 PyArrayObject *__pyx_v_bc_f = 0;
25392 PyArrayObject *__pyx_v_bc_df = 0;
25393 PyArrayObject *__pyx_v_u = 0;
25394 PyArrayObject *__pyx_v_f = 0;
25395 PyArrayObject *__pyx_v_df = 0;
25396 PyArrayObject *__pyx_v_flux = 0;
25397 PyArrayObject *__pyx_v_dflux = 0;
25398 int __pyx_lineno = 0;
25399 const char *__pyx_filename = NULL;
25400 int __pyx_clineno = 0;
25401 PyObject *__pyx_r = 0;
25402 __Pyx_RefNannyDeclarations
25403 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_free (wrapper)", 0);
25405 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};
25406 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25407 if (unlikely(__pyx_kwds)) {
25408 Py_ssize_t kw_args;
25409 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25410 switch (pos_args) {
25411 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25412 CYTHON_FALLTHROUGH;
25413 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25414 CYTHON_FALLTHROUGH;
25415 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25416 CYTHON_FALLTHROUGH;
25417 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25418 CYTHON_FALLTHROUGH;
25419 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25420 CYTHON_FALLTHROUGH;
25421 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25422 CYTHON_FALLTHROUGH;
25423 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25424 CYTHON_FALLTHROUGH;
25425 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25426 CYTHON_FALLTHROUGH;
25427 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25428 CYTHON_FALLTHROUGH;
25429 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25430 CYTHON_FALLTHROUGH;
25431 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25432 CYTHON_FALLTHROUGH;
25433 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25434 CYTHON_FALLTHROUGH;
25435 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25436 CYTHON_FALLTHROUGH;
25437 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25438 CYTHON_FALLTHROUGH;
25440 default:
goto __pyx_L5_argtuple_error;
25442 kw_args = PyDict_Size(__pyx_kwds);
25443 switch (pos_args) {
25445 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
25446 else goto __pyx_L5_argtuple_error;
25447 CYTHON_FALLTHROUGH;
25449 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
25451 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 1); __PYX_ERR(0, 5251, __pyx_L3_error)
25453 CYTHON_FALLTHROUGH;
25455 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
25457 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 2); __PYX_ERR(0, 5251, __pyx_L3_error)
25459 CYTHON_FALLTHROUGH;
25461 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
25463 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 3); __PYX_ERR(0, 5251, __pyx_L3_error)
25465 CYTHON_FALLTHROUGH;
25467 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
25469 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 4); __PYX_ERR(0, 5251, __pyx_L3_error)
25471 CYTHON_FALLTHROUGH;
25473 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25475 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 5); __PYX_ERR(0, 5251, __pyx_L3_error)
25477 CYTHON_FALLTHROUGH;
25479 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
25481 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 6); __PYX_ERR(0, 5251, __pyx_L3_error)
25483 CYTHON_FALLTHROUGH;
25485 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
25487 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 7); __PYX_ERR(0, 5251, __pyx_L3_error)
25489 CYTHON_FALLTHROUGH;
25491 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
25493 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 8); __PYX_ERR(0, 5251, __pyx_L3_error)
25495 CYTHON_FALLTHROUGH;
25497 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25499 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 9); __PYX_ERR(0, 5251, __pyx_L3_error)
25501 CYTHON_FALLTHROUGH;
25503 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25505 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 10); __PYX_ERR(0, 5251, __pyx_L3_error)
25507 CYTHON_FALLTHROUGH;
25509 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25511 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 11); __PYX_ERR(0, 5251, __pyx_L3_error)
25513 CYTHON_FALLTHROUGH;
25515 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
25517 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 12); __PYX_ERR(0, 5251, __pyx_L3_error)
25519 CYTHON_FALLTHROUGH;
25521 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
25523 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, 13); __PYX_ERR(0, 5251, __pyx_L3_error)
25526 if (unlikely(kw_args > 0)) {
25527 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFlux_free") < 0)) __PYX_ERR(0, 5251, __pyx_L3_error)
25529 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
25530 goto __pyx_L5_argtuple_error;
25532 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25533 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25534 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25535 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25536 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25537 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25538 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25539 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25540 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25541 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25542 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25543 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25544 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25545 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25547 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
25548 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
25549 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
25550 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
25551 __pyx_v_inflowFlag = ((PyArrayObject *)values[4]);
25552 __pyx_v_n = ((PyArrayObject *)values[5]);
25553 __pyx_v_bc_u = ((PyArrayObject *)values[6]);
25554 __pyx_v_bc_f = ((PyArrayObject *)values[7]);
25555 __pyx_v_bc_df = ((PyArrayObject *)values[8]);
25556 __pyx_v_u = ((PyArrayObject *)values[9]);
25557 __pyx_v_f = ((PyArrayObject *)values[10]);
25558 __pyx_v_df = ((PyArrayObject *)values[11]);
25559 __pyx_v_flux = ((PyArrayObject *)values[12]);
25560 __pyx_v_dflux = ((PyArrayObject *)values[13]);
25562 goto __pyx_L4_argument_unpacking_done;
25563 __pyx_L5_argtuple_error:;
25564 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_free", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5251, __pyx_L3_error)
25566 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFlux_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
25567 __Pyx_RefNannyFinishContext();
25569 __pyx_L4_argument_unpacking_done:;
25570 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5251, __pyx_L1_error)
25571 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5252, __pyx_L1_error)
25572 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5253, __pyx_L1_error)
25573 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5254, __pyx_L1_error)
25574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 5255, __pyx_L1_error)
25575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5256, __pyx_L1_error)
25576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 5257, __pyx_L1_error)
25577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5258, __pyx_L1_error)
25578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 5259, __pyx_L1_error)
25579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5260, __pyx_L1_error)
25580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5261, __pyx_L1_error)
25581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5262, __pyx_L1_error)
25582 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5263, __pyx_L1_error)
25583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 5264, __pyx_L1_error)
25584 __pyx_r = __pyx_pf_14cnumericalFlux_144calculateExteriorNumericalAdvectiveFlux_free(__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);
25591 __Pyx_RefNannyFinishContext();
25595 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) {
25596 PyObject *__pyx_r = NULL;
25597 __Pyx_RefNannyDeclarations
25599 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_free", 0);
25608 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
25618 calculateExteriorNumericalAdvectiveFlux_free((__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));
25646 calculateGlobalExteriorNumericalAdvectiveFlux_free((__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));
25659 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25660 __Pyx_XGIVEREF(__pyx_r);
25661 __Pyx_RefNannyFinishContext();
25674 static PyObject *__pyx_pw_14cnumericalFlux_147calculateGlobalExteriorNumericalAdvectiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25675 static PyMethodDef __pyx_mdef_14cnumericalFlux_147calculateGlobalExteriorNumericalAdvectiveFlux_free = {
"calculateGlobalExteriorNumericalAdvectiveFlux_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_147calculateGlobalExteriorNumericalAdvectiveFlux_free, METH_VARARGS|METH_KEYWORDS, 0};
25676 static PyObject *__pyx_pw_14cnumericalFlux_147calculateGlobalExteriorNumericalAdvectiveFlux_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25677 int __pyx_v_nExteriorElementBoundaries_global;
25678 int __pyx_v_nQuadraturePoints_elementBoundary;
25679 int __pyx_v_nSpace;
25680 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
25681 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
25682 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
25683 PyArrayObject *__pyx_v_isDOFBoundary = 0;
25684 PyArrayObject *__pyx_v_inflowFlag = 0;
25685 PyArrayObject *__pyx_v_n = 0;
25686 PyArrayObject *__pyx_v_bc_u = 0;
25687 PyArrayObject *__pyx_v_bc_f = 0;
25688 PyArrayObject *__pyx_v_bc_df = 0;
25689 PyArrayObject *__pyx_v_u = 0;
25690 PyArrayObject *__pyx_v_f = 0;
25691 PyArrayObject *__pyx_v_df = 0;
25692 PyArrayObject *__pyx_v_flux = 0;
25693 PyArrayObject *__pyx_v_dflux = 0;
25694 int __pyx_lineno = 0;
25695 const char *__pyx_filename = NULL;
25696 int __pyx_clineno = 0;
25697 PyObject *__pyx_r = 0;
25698 __Pyx_RefNannyDeclarations
25699 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_free (wrapper)", 0);
25701 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__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};
25702 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25703 if (unlikely(__pyx_kwds)) {
25704 Py_ssize_t kw_args;
25705 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25706 switch (pos_args) {
25707 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25708 CYTHON_FALLTHROUGH;
25709 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25710 CYTHON_FALLTHROUGH;
25711 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25712 CYTHON_FALLTHROUGH;
25713 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25714 CYTHON_FALLTHROUGH;
25715 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25716 CYTHON_FALLTHROUGH;
25717 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25718 CYTHON_FALLTHROUGH;
25719 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25720 CYTHON_FALLTHROUGH;
25721 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25722 CYTHON_FALLTHROUGH;
25723 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25724 CYTHON_FALLTHROUGH;
25725 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25726 CYTHON_FALLTHROUGH;
25727 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25728 CYTHON_FALLTHROUGH;
25729 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25730 CYTHON_FALLTHROUGH;
25731 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25732 CYTHON_FALLTHROUGH;
25733 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25734 CYTHON_FALLTHROUGH;
25735 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25736 CYTHON_FALLTHROUGH;
25737 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25738 CYTHON_FALLTHROUGH;
25739 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25740 CYTHON_FALLTHROUGH;
25742 default:
goto __pyx_L5_argtuple_error;
25744 kw_args = PyDict_Size(__pyx_kwds);
25745 switch (pos_args) {
25747 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
25748 else goto __pyx_L5_argtuple_error;
25749 CYTHON_FALLTHROUGH;
25751 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
25753 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 1); __PYX_ERR(0, 5303, __pyx_L3_error)
25755 CYTHON_FALLTHROUGH;
25757 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
25759 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 2); __PYX_ERR(0, 5303, __pyx_L3_error)
25761 CYTHON_FALLTHROUGH;
25763 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
25765 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 3); __PYX_ERR(0, 5303, __pyx_L3_error)
25767 CYTHON_FALLTHROUGH;
25769 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
25771 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 4); __PYX_ERR(0, 5303, __pyx_L3_error)
25773 CYTHON_FALLTHROUGH;
25775 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
25777 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 5); __PYX_ERR(0, 5303, __pyx_L3_error)
25779 CYTHON_FALLTHROUGH;
25781 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
25783 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 6); __PYX_ERR(0, 5303, __pyx_L3_error)
25785 CYTHON_FALLTHROUGH;
25787 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
25789 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 7); __PYX_ERR(0, 5303, __pyx_L3_error)
25791 CYTHON_FALLTHROUGH;
25793 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
25795 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 8); __PYX_ERR(0, 5303, __pyx_L3_error)
25797 CYTHON_FALLTHROUGH;
25799 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
25801 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 9); __PYX_ERR(0, 5303, __pyx_L3_error)
25803 CYTHON_FALLTHROUGH;
25805 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
25807 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 10); __PYX_ERR(0, 5303, __pyx_L3_error)
25809 CYTHON_FALLTHROUGH;
25811 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
25813 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 11); __PYX_ERR(0, 5303, __pyx_L3_error)
25815 CYTHON_FALLTHROUGH;
25817 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
25819 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 12); __PYX_ERR(0, 5303, __pyx_L3_error)
25821 CYTHON_FALLTHROUGH;
25823 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25825 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 13); __PYX_ERR(0, 5303, __pyx_L3_error)
25827 CYTHON_FALLTHROUGH;
25829 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
25831 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 14); __PYX_ERR(0, 5303, __pyx_L3_error)
25833 CYTHON_FALLTHROUGH;
25835 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
25837 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 15); __PYX_ERR(0, 5303, __pyx_L3_error)
25839 CYTHON_FALLTHROUGH;
25841 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
25843 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, 16); __PYX_ERR(0, 5303, __pyx_L3_error)
25846 if (unlikely(kw_args > 0)) {
25847 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFlux_free") < 0)) __PYX_ERR(0, 5303, __pyx_L3_error)
25849 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
25850 goto __pyx_L5_argtuple_error;
25852 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25853 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25854 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25855 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25856 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25857 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25858 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25859 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25860 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25861 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25862 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25863 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25864 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25865 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25866 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25867 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
25868 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
25870 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5303, __pyx_L3_error)
25871 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5304, __pyx_L3_error)
25872 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5305, __pyx_L3_error)
25873 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
25874 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
25875 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
25876 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
25877 __pyx_v_inflowFlag = ((PyArrayObject *)values[7]);
25878 __pyx_v_n = ((PyArrayObject *)values[8]);
25879 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
25880 __pyx_v_bc_f = ((PyArrayObject *)values[10]);
25881 __pyx_v_bc_df = ((PyArrayObject *)values[11]);
25882 __pyx_v_u = ((PyArrayObject *)values[12]);
25883 __pyx_v_f = ((PyArrayObject *)values[13]);
25884 __pyx_v_df = ((PyArrayObject *)values[14]);
25885 __pyx_v_flux = ((PyArrayObject *)values[15]);
25886 __pyx_v_dflux = ((PyArrayObject *)values[16]);
25888 goto __pyx_L4_argument_unpacking_done;
25889 __pyx_L5_argtuple_error:;
25890 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5303, __pyx_L3_error)
25892 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
25893 __Pyx_RefNannyFinishContext();
25895 __pyx_L4_argument_unpacking_done:;
25896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5306, __pyx_L1_error)
25897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5307, __pyx_L1_error)
25898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5308, __pyx_L1_error)
25899 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5309, __pyx_L1_error)
25900 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 5310, __pyx_L1_error)
25901 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5311, __pyx_L1_error)
25902 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 5312, __pyx_L1_error)
25903 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5313, __pyx_L1_error)
25904 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 5314, __pyx_L1_error)
25905 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5315, __pyx_L1_error)
25906 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5316, __pyx_L1_error)
25907 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5317, __pyx_L1_error)
25908 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5318, __pyx_L1_error)
25909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 5319, __pyx_L1_error)
25910 __pyx_r = __pyx_pf_14cnumericalFlux_146calculateGlobalExteriorNumericalAdvectiveFlux_free(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __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);
25917 __Pyx_RefNannyFinishContext();
25921 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) {
25922 PyObject *__pyx_r = NULL;
25923 __Pyx_RefNannyDeclarations
25924 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_free", 0);
25933 calculateGlobalExteriorNumericalAdvectiveFlux_free(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
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));
25944 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25945 __Pyx_XGIVEREF(__pyx_r);
25946 __Pyx_RefNannyFinishContext();
25959 static PyObject *__pyx_pw_14cnumericalFlux_149calculateExteriorNumericalAdvectiveFluxStokesP2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25960 static PyMethodDef __pyx_mdef_14cnumericalFlux_149calculateExteriorNumericalAdvectiveFluxStokesP2D = {
"calculateExteriorNumericalAdvectiveFluxStokesP2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_149calculateExteriorNumericalAdvectiveFluxStokesP2D, METH_VARARGS|METH_KEYWORDS, 0};
25961 static PyObject *__pyx_pw_14cnumericalFlux_149calculateExteriorNumericalAdvectiveFluxStokesP2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25962 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
25963 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
25964 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
25965 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
25966 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
25967 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
25968 PyArrayObject *__pyx_v_n = 0;
25969 PyArrayObject *__pyx_v_bc_f = 0;
25970 PyArrayObject *__pyx_v_bc_fpu = 0;
25971 PyArrayObject *__pyx_v_bc_fpv = 0;
25972 PyArrayObject *__pyx_v_f = 0;
25973 PyArrayObject *__pyx_v_fpu = 0;
25974 PyArrayObject *__pyx_v_fpv = 0;
25975 PyArrayObject *__pyx_v_df_du = 0;
25976 PyArrayObject *__pyx_v_df_dv = 0;
25977 PyArrayObject *__pyx_v_dfpu_dp = 0;
25978 PyArrayObject *__pyx_v_dfpv_dp = 0;
25979 PyArrayObject *__pyx_v_flux = 0;
25980 PyArrayObject *__pyx_v_fluxpu = 0;
25981 PyArrayObject *__pyx_v_fluxpv = 0;
25982 PyArrayObject *__pyx_v_dflux_du = 0;
25983 PyArrayObject *__pyx_v_dflux_dv = 0;
25984 PyArrayObject *__pyx_v_dfluxpu_dp = 0;
25985 PyArrayObject *__pyx_v_dfluxpv_dp = 0;
25986 int __pyx_lineno = 0;
25987 const char *__pyx_filename = NULL;
25988 int __pyx_clineno = 0;
25989 PyObject *__pyx_r = 0;
25990 __Pyx_RefNannyDeclarations
25991 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokesP2D (wrapper)", 0);
25993 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_f,&__pyx_n_s_bc_fpu,&__pyx_n_s_bc_fpv,&__pyx_n_s_f,&__pyx_n_s_fpu,&__pyx_n_s_fpv,&__pyx_n_s_df_du,&__pyx_n_s_df_dv,&__pyx_n_s_dfpu_dp,&__pyx_n_s_dfpv_dp,&__pyx_n_s_flux,&__pyx_n_s_fluxpu,&__pyx_n_s_fluxpv,&__pyx_n_s_dflux_du,&__pyx_n_s_dflux_dv,&__pyx_n_s_dfluxpu_dp,&__pyx_n_s_dfluxpv_dp,0};
25994 PyObject* values[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25995 if (unlikely(__pyx_kwds)) {
25996 Py_ssize_t kw_args;
25997 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25998 switch (pos_args) {
25999 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26000 CYTHON_FALLTHROUGH;
26001 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26002 CYTHON_FALLTHROUGH;
26003 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26004 CYTHON_FALLTHROUGH;
26005 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26006 CYTHON_FALLTHROUGH;
26007 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26008 CYTHON_FALLTHROUGH;
26009 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26010 CYTHON_FALLTHROUGH;
26011 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26012 CYTHON_FALLTHROUGH;
26013 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26014 CYTHON_FALLTHROUGH;
26015 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26016 CYTHON_FALLTHROUGH;
26017 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26018 CYTHON_FALLTHROUGH;
26019 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26020 CYTHON_FALLTHROUGH;
26021 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26022 CYTHON_FALLTHROUGH;
26023 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26024 CYTHON_FALLTHROUGH;
26025 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26026 CYTHON_FALLTHROUGH;
26027 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26028 CYTHON_FALLTHROUGH;
26029 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26030 CYTHON_FALLTHROUGH;
26031 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26032 CYTHON_FALLTHROUGH;
26033 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26034 CYTHON_FALLTHROUGH;
26035 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26036 CYTHON_FALLTHROUGH;
26037 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26038 CYTHON_FALLTHROUGH;
26039 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26040 CYTHON_FALLTHROUGH;
26041 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26042 CYTHON_FALLTHROUGH;
26043 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26044 CYTHON_FALLTHROUGH;
26045 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26046 CYTHON_FALLTHROUGH;
26048 default:
goto __pyx_L5_argtuple_error;
26050 kw_args = PyDict_Size(__pyx_kwds);
26051 switch (pos_args) {
26053 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
26054 else goto __pyx_L5_argtuple_error;
26055 CYTHON_FALLTHROUGH;
26057 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
26059 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 1); __PYX_ERR(0, 5337, __pyx_L3_error)
26061 CYTHON_FALLTHROUGH;
26063 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
26065 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 2); __PYX_ERR(0, 5337, __pyx_L3_error)
26067 CYTHON_FALLTHROUGH;
26069 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
26071 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 3); __PYX_ERR(0, 5337, __pyx_L3_error)
26073 CYTHON_FALLTHROUGH;
26075 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
26077 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 4); __PYX_ERR(0, 5337, __pyx_L3_error)
26079 CYTHON_FALLTHROUGH;
26081 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
26083 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 5); __PYX_ERR(0, 5337, __pyx_L3_error)
26085 CYTHON_FALLTHROUGH;
26087 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26089 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 6); __PYX_ERR(0, 5337, __pyx_L3_error)
26091 CYTHON_FALLTHROUGH;
26093 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
26095 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 7); __PYX_ERR(0, 5337, __pyx_L3_error)
26097 CYTHON_FALLTHROUGH;
26099 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpu)) != 0)) kw_args--;
26101 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 8); __PYX_ERR(0, 5337, __pyx_L3_error)
26103 CYTHON_FALLTHROUGH;
26105 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpv)) != 0)) kw_args--;
26107 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 9); __PYX_ERR(0, 5337, __pyx_L3_error)
26109 CYTHON_FALLTHROUGH;
26111 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26113 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 10); __PYX_ERR(0, 5337, __pyx_L3_error)
26115 CYTHON_FALLTHROUGH;
26117 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpu)) != 0)) kw_args--;
26119 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 11); __PYX_ERR(0, 5337, __pyx_L3_error)
26121 CYTHON_FALLTHROUGH;
26123 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpv)) != 0)) kw_args--;
26125 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 12); __PYX_ERR(0, 5337, __pyx_L3_error)
26127 CYTHON_FALLTHROUGH;
26129 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_du)) != 0)) kw_args--;
26131 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 13); __PYX_ERR(0, 5337, __pyx_L3_error)
26133 CYTHON_FALLTHROUGH;
26135 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dv)) != 0)) kw_args--;
26137 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 14); __PYX_ERR(0, 5337, __pyx_L3_error)
26139 CYTHON_FALLTHROUGH;
26141 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpu_dp)) != 0)) kw_args--;
26143 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 15); __PYX_ERR(0, 5337, __pyx_L3_error)
26145 CYTHON_FALLTHROUGH;
26147 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpv_dp)) != 0)) kw_args--;
26149 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 16); __PYX_ERR(0, 5337, __pyx_L3_error)
26151 CYTHON_FALLTHROUGH;
26153 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
26155 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 17); __PYX_ERR(0, 5337, __pyx_L3_error)
26157 CYTHON_FALLTHROUGH;
26159 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpu)) != 0)) kw_args--;
26161 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 18); __PYX_ERR(0, 5337, __pyx_L3_error)
26163 CYTHON_FALLTHROUGH;
26165 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpv)) != 0)) kw_args--;
26167 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 19); __PYX_ERR(0, 5337, __pyx_L3_error)
26169 CYTHON_FALLTHROUGH;
26171 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_du)) != 0)) kw_args--;
26173 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 20); __PYX_ERR(0, 5337, __pyx_L3_error)
26175 CYTHON_FALLTHROUGH;
26177 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dv)) != 0)) kw_args--;
26179 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 21); __PYX_ERR(0, 5337, __pyx_L3_error)
26181 CYTHON_FALLTHROUGH;
26183 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpu_dp)) != 0)) kw_args--;
26185 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 22); __PYX_ERR(0, 5337, __pyx_L3_error)
26187 CYTHON_FALLTHROUGH;
26189 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpv_dp)) != 0)) kw_args--;
26191 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, 23); __PYX_ERR(0, 5337, __pyx_L3_error)
26194 if (unlikely(kw_args > 0)) {
26195 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxStokesP2D") < 0)) __PYX_ERR(0, 5337, __pyx_L3_error)
26197 }
else if (PyTuple_GET_SIZE(__pyx_args) != 24) {
26198 goto __pyx_L5_argtuple_error;
26200 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26201 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26202 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26203 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26204 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26205 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26206 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26207 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26208 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26209 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26210 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26211 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26212 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26213 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26214 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26215 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26216 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26217 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26218 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26219 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26220 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26221 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26222 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26223 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26225 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
26226 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
26227 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
26228 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
26229 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
26230 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
26231 __pyx_v_n = ((PyArrayObject *)values[6]);
26232 __pyx_v_bc_f = ((PyArrayObject *)values[7]);
26233 __pyx_v_bc_fpu = ((PyArrayObject *)values[8]);
26234 __pyx_v_bc_fpv = ((PyArrayObject *)values[9]);
26235 __pyx_v_f = ((PyArrayObject *)values[10]);
26236 __pyx_v_fpu = ((PyArrayObject *)values[11]);
26237 __pyx_v_fpv = ((PyArrayObject *)values[12]);
26238 __pyx_v_df_du = ((PyArrayObject *)values[13]);
26239 __pyx_v_df_dv = ((PyArrayObject *)values[14]);
26240 __pyx_v_dfpu_dp = ((PyArrayObject *)values[15]);
26241 __pyx_v_dfpv_dp = ((PyArrayObject *)values[16]);
26242 __pyx_v_flux = ((PyArrayObject *)values[17]);
26243 __pyx_v_fluxpu = ((PyArrayObject *)values[18]);
26244 __pyx_v_fluxpv = ((PyArrayObject *)values[19]);
26245 __pyx_v_dflux_du = ((PyArrayObject *)values[20]);
26246 __pyx_v_dflux_dv = ((PyArrayObject *)values[21]);
26247 __pyx_v_dfluxpu_dp = ((PyArrayObject *)values[22]);
26248 __pyx_v_dfluxpv_dp = ((PyArrayObject *)values[23]);
26250 goto __pyx_L4_argument_unpacking_done;
26251 __pyx_L5_argtuple_error:;
26252 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 1, 24, 24, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5337, __pyx_L3_error)
26254 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxStokesP2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
26255 __Pyx_RefNannyFinishContext();
26257 __pyx_L4_argument_unpacking_done:;
26258 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5337, __pyx_L1_error)
26259 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5338, __pyx_L1_error)
26260 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5339, __pyx_L1_error)
26261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5340, __pyx_L1_error)
26262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5341, __pyx_L1_error)
26263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5342, __pyx_L1_error)
26264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5343, __pyx_L1_error)
26265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5344, __pyx_L1_error)
26266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpu), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpu", 0))) __PYX_ERR(0, 5345, __pyx_L1_error)
26267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpv), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpv", 0))) __PYX_ERR(0, 5346, __pyx_L1_error)
26268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5347, __pyx_L1_error)
26269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpu), __pyx_ptype_5numpy_ndarray, 1,
"fpu", 0))) __PYX_ERR(0, 5348, __pyx_L1_error)
26270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpv), __pyx_ptype_5numpy_ndarray, 1,
"fpv", 0))) __PYX_ERR(0, 5349, __pyx_L1_error)
26271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_du), __pyx_ptype_5numpy_ndarray, 1,
"df_du", 0))) __PYX_ERR(0, 5350, __pyx_L1_error)
26272 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_dv", 0))) __PYX_ERR(0, 5351, __pyx_L1_error)
26273 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpu_dp", 0))) __PYX_ERR(0, 5352, __pyx_L1_error)
26274 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpv_dp", 0))) __PYX_ERR(0, 5353, __pyx_L1_error)
26275 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5354, __pyx_L1_error)
26276 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpu), __pyx_ptype_5numpy_ndarray, 1,
"fluxpu", 0))) __PYX_ERR(0, 5355, __pyx_L1_error)
26277 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpv), __pyx_ptype_5numpy_ndarray, 1,
"fluxpv", 0))) __PYX_ERR(0, 5356, __pyx_L1_error)
26278 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_du", 0))) __PYX_ERR(0, 5357, __pyx_L1_error)
26279 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dv", 0))) __PYX_ERR(0, 5358, __pyx_L1_error)
26280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpu_dp", 0))) __PYX_ERR(0, 5359, __pyx_L1_error)
26281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpv_dp", 0))) __PYX_ERR(0, 5360, __pyx_L1_error)
26282 __pyx_r = __pyx_pf_14cnumericalFlux_148calculateExteriorNumericalAdvectiveFluxStokesP2D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_f, __pyx_v_bc_fpu, __pyx_v_bc_fpv, __pyx_v_f, __pyx_v_fpu, __pyx_v_fpv, __pyx_v_df_du, __pyx_v_df_dv, __pyx_v_dfpu_dp, __pyx_v_dfpv_dp, __pyx_v_flux, __pyx_v_fluxpu, __pyx_v_fluxpv, __pyx_v_dflux_du, __pyx_v_dflux_dv, __pyx_v_dfluxpu_dp, __pyx_v_dfluxpv_dp);
26289 __Pyx_RefNannyFinishContext();
26293 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) {
26294 PyObject *__pyx_r = NULL;
26295 __Pyx_RefNannyDeclarations
26297 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokesP2D", 0);
26306 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
26316 calculateExteriorNumericalAdvectiveFluxStokesP2D((__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_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data));
26344 calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D((__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_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data));
26357 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26358 __Pyx_XGIVEREF(__pyx_r);
26359 __Pyx_RefNannyFinishContext();
26372 static PyObject *__pyx_pw_14cnumericalFlux_151calculateExteriorNumericalAdvectiveFluxNavierStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26373 static PyMethodDef __pyx_mdef_14cnumericalFlux_151calculateExteriorNumericalAdvectiveFluxNavierStokes2D = {
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_151calculateExteriorNumericalAdvectiveFluxNavierStokes2D, METH_VARARGS|METH_KEYWORDS, 0};
26374 static PyObject *__pyx_pw_14cnumericalFlux_151calculateExteriorNumericalAdvectiveFluxNavierStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26375 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
26376 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
26377 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
26378 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
26379 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
26380 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
26381 PyArrayObject *__pyx_v_n = 0;
26382 PyArrayObject *__pyx_v_bc_p = 0;
26383 PyArrayObject *__pyx_v_bc_f_mass = 0;
26384 PyArrayObject *__pyx_v_bc_f_umom = 0;
26385 PyArrayObject *__pyx_v_bc_f_vmom = 0;
26386 PyArrayObject *__pyx_v_p = 0;
26387 PyArrayObject *__pyx_v_dm_umom = 0;
26388 PyArrayObject *__pyx_v_f_mass = 0;
26389 PyArrayObject *__pyx_v_f_umom = 0;
26390 PyArrayObject *__pyx_v_f_vmom = 0;
26391 PyArrayObject *__pyx_v_df_mass_du = 0;
26392 PyArrayObject *__pyx_v_df_mass_dv = 0;
26393 PyArrayObject *__pyx_v_df_umom_dp = 0;
26394 PyArrayObject *__pyx_v_df_umom_du = 0;
26395 PyArrayObject *__pyx_v_df_umom_dv = 0;
26396 PyArrayObject *__pyx_v_df_vmom_dp = 0;
26397 PyArrayObject *__pyx_v_df_vmom_du = 0;
26398 PyArrayObject *__pyx_v_df_vmom_dv = 0;
26399 PyArrayObject *__pyx_v_flux_mass = 0;
26400 PyArrayObject *__pyx_v_flux_umom = 0;
26401 PyArrayObject *__pyx_v_flux_vmom = 0;
26402 PyArrayObject *__pyx_v_dflux_mass_dp = 0;
26403 PyArrayObject *__pyx_v_dflux_mass_du = 0;
26404 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
26405 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
26406 PyArrayObject *__pyx_v_dflux_umom_du = 0;
26407 PyArrayObject *__pyx_v_dflux_umom_dv = 0;
26408 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
26409 PyArrayObject *__pyx_v_dflux_vmom_du = 0;
26410 PyArrayObject *__pyx_v_dflux_vmom_dv = 0;
26411 PyArrayObject *__pyx_v_velocity = 0;
26412 int __pyx_lineno = 0;
26413 const char *__pyx_filename = NULL;
26414 int __pyx_clineno = 0;
26415 PyObject *__pyx_r = 0;
26416 __Pyx_RefNannyDeclarations
26417 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D (wrapper)", 0);
26419 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_bc_f_umom,&__pyx_n_s_bc_f_vmom,&__pyx_n_s_p,&__pyx_n_s_dm_umom,&__pyx_n_s_f_mass,&__pyx_n_s_f_umom,&__pyx_n_s_f_vmom,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_umom_dp,&__pyx_n_s_df_umom_du,&__pyx_n_s_df_umom_dv,&__pyx_n_s_df_vmom_dp,&__pyx_n_s_df_vmom_du,&__pyx_n_s_df_vmom_dv,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_dflux_mass_dp,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_umom_du,&__pyx_n_s_dflux_umom_dv,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_vmom_du,&__pyx_n_s_dflux_vmom_dv,&__pyx_n_s_velocity,0};
26420 PyObject* values[37] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26421 if (unlikely(__pyx_kwds)) {
26422 Py_ssize_t kw_args;
26423 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26424 switch (pos_args) {
26425 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
26426 CYTHON_FALLTHROUGH;
26427 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
26428 CYTHON_FALLTHROUGH;
26429 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
26430 CYTHON_FALLTHROUGH;
26431 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
26432 CYTHON_FALLTHROUGH;
26433 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
26434 CYTHON_FALLTHROUGH;
26435 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
26436 CYTHON_FALLTHROUGH;
26437 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
26438 CYTHON_FALLTHROUGH;
26439 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
26440 CYTHON_FALLTHROUGH;
26441 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
26442 CYTHON_FALLTHROUGH;
26443 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
26444 CYTHON_FALLTHROUGH;
26445 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
26446 CYTHON_FALLTHROUGH;
26447 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
26448 CYTHON_FALLTHROUGH;
26449 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
26450 CYTHON_FALLTHROUGH;
26451 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26452 CYTHON_FALLTHROUGH;
26453 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26454 CYTHON_FALLTHROUGH;
26455 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26456 CYTHON_FALLTHROUGH;
26457 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26458 CYTHON_FALLTHROUGH;
26459 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26460 CYTHON_FALLTHROUGH;
26461 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26462 CYTHON_FALLTHROUGH;
26463 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26464 CYTHON_FALLTHROUGH;
26465 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26466 CYTHON_FALLTHROUGH;
26467 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26468 CYTHON_FALLTHROUGH;
26469 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26470 CYTHON_FALLTHROUGH;
26471 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26472 CYTHON_FALLTHROUGH;
26473 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26474 CYTHON_FALLTHROUGH;
26475 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26476 CYTHON_FALLTHROUGH;
26477 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26478 CYTHON_FALLTHROUGH;
26479 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26480 CYTHON_FALLTHROUGH;
26481 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26482 CYTHON_FALLTHROUGH;
26483 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26484 CYTHON_FALLTHROUGH;
26485 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26486 CYTHON_FALLTHROUGH;
26487 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26488 CYTHON_FALLTHROUGH;
26489 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26490 CYTHON_FALLTHROUGH;
26491 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26492 CYTHON_FALLTHROUGH;
26493 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26494 CYTHON_FALLTHROUGH;
26495 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26496 CYTHON_FALLTHROUGH;
26497 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26498 CYTHON_FALLTHROUGH;
26500 default:
goto __pyx_L5_argtuple_error;
26502 kw_args = PyDict_Size(__pyx_kwds);
26503 switch (pos_args) {
26505 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
26506 else goto __pyx_L5_argtuple_error;
26507 CYTHON_FALLTHROUGH;
26509 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
26511 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 1); __PYX_ERR(0, 5418, __pyx_L3_error)
26513 CYTHON_FALLTHROUGH;
26515 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
26517 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 2); __PYX_ERR(0, 5418, __pyx_L3_error)
26519 CYTHON_FALLTHROUGH;
26521 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
26523 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 3); __PYX_ERR(0, 5418, __pyx_L3_error)
26525 CYTHON_FALLTHROUGH;
26527 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
26529 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 4); __PYX_ERR(0, 5418, __pyx_L3_error)
26531 CYTHON_FALLTHROUGH;
26533 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
26535 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 5); __PYX_ERR(0, 5418, __pyx_L3_error)
26537 CYTHON_FALLTHROUGH;
26539 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
26541 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 6); __PYX_ERR(0, 5418, __pyx_L3_error)
26543 CYTHON_FALLTHROUGH;
26545 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
26547 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 7); __PYX_ERR(0, 5418, __pyx_L3_error)
26549 CYTHON_FALLTHROUGH;
26551 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
26553 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 8); __PYX_ERR(0, 5418, __pyx_L3_error)
26555 CYTHON_FALLTHROUGH;
26557 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_umom)) != 0)) kw_args--;
26559 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 9); __PYX_ERR(0, 5418, __pyx_L3_error)
26561 CYTHON_FALLTHROUGH;
26563 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_vmom)) != 0)) kw_args--;
26565 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 10); __PYX_ERR(0, 5418, __pyx_L3_error)
26567 CYTHON_FALLTHROUGH;
26569 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
26571 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 11); __PYX_ERR(0, 5418, __pyx_L3_error)
26573 CYTHON_FALLTHROUGH;
26575 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm_umom)) != 0)) kw_args--;
26577 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 12); __PYX_ERR(0, 5418, __pyx_L3_error)
26579 CYTHON_FALLTHROUGH;
26581 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
26583 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 13); __PYX_ERR(0, 5418, __pyx_L3_error)
26585 CYTHON_FALLTHROUGH;
26587 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_umom)) != 0)) kw_args--;
26589 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 14); __PYX_ERR(0, 5418, __pyx_L3_error)
26591 CYTHON_FALLTHROUGH;
26593 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_vmom)) != 0)) kw_args--;
26595 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 15); __PYX_ERR(0, 5418, __pyx_L3_error)
26597 CYTHON_FALLTHROUGH;
26599 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
26601 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 16); __PYX_ERR(0, 5418, __pyx_L3_error)
26603 CYTHON_FALLTHROUGH;
26605 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
26607 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 17); __PYX_ERR(0, 5418, __pyx_L3_error)
26609 CYTHON_FALLTHROUGH;
26611 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dp)) != 0)) kw_args--;
26613 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 18); __PYX_ERR(0, 5418, __pyx_L3_error)
26615 CYTHON_FALLTHROUGH;
26617 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_du)) != 0)) kw_args--;
26619 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 19); __PYX_ERR(0, 5418, __pyx_L3_error)
26621 CYTHON_FALLTHROUGH;
26623 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dv)) != 0)) kw_args--;
26625 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 20); __PYX_ERR(0, 5418, __pyx_L3_error)
26627 CYTHON_FALLTHROUGH;
26629 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dp)) != 0)) kw_args--;
26631 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 21); __PYX_ERR(0, 5418, __pyx_L3_error)
26633 CYTHON_FALLTHROUGH;
26635 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_du)) != 0)) kw_args--;
26637 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 22); __PYX_ERR(0, 5418, __pyx_L3_error)
26639 CYTHON_FALLTHROUGH;
26641 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dv)) != 0)) kw_args--;
26643 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 23); __PYX_ERR(0, 5418, __pyx_L3_error)
26645 CYTHON_FALLTHROUGH;
26647 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
26649 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 24); __PYX_ERR(0, 5418, __pyx_L3_error)
26651 CYTHON_FALLTHROUGH;
26653 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
26655 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 25); __PYX_ERR(0, 5418, __pyx_L3_error)
26657 CYTHON_FALLTHROUGH;
26659 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
26661 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 26); __PYX_ERR(0, 5418, __pyx_L3_error)
26663 CYTHON_FALLTHROUGH;
26665 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dp)) != 0)) kw_args--;
26667 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 27); __PYX_ERR(0, 5418, __pyx_L3_error)
26669 CYTHON_FALLTHROUGH;
26671 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
26673 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 28); __PYX_ERR(0, 5418, __pyx_L3_error)
26675 CYTHON_FALLTHROUGH;
26677 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
26679 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 29); __PYX_ERR(0, 5418, __pyx_L3_error)
26681 CYTHON_FALLTHROUGH;
26683 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
26685 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 30); __PYX_ERR(0, 5418, __pyx_L3_error)
26687 CYTHON_FALLTHROUGH;
26689 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_du)) != 0)) kw_args--;
26691 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 31); __PYX_ERR(0, 5418, __pyx_L3_error)
26693 CYTHON_FALLTHROUGH;
26695 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dv)) != 0)) kw_args--;
26697 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 32); __PYX_ERR(0, 5418, __pyx_L3_error)
26699 CYTHON_FALLTHROUGH;
26701 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
26703 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 33); __PYX_ERR(0, 5418, __pyx_L3_error)
26705 CYTHON_FALLTHROUGH;
26707 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_du)) != 0)) kw_args--;
26709 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 34); __PYX_ERR(0, 5418, __pyx_L3_error)
26711 CYTHON_FALLTHROUGH;
26713 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dv)) != 0)) kw_args--;
26715 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 35); __PYX_ERR(0, 5418, __pyx_L3_error)
26717 CYTHON_FALLTHROUGH;
26719 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
26721 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, 36); __PYX_ERR(0, 5418, __pyx_L3_error)
26724 if (unlikely(kw_args > 0)) {
26725 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D") < 0)) __PYX_ERR(0, 5418, __pyx_L3_error)
26727 }
else if (PyTuple_GET_SIZE(__pyx_args) != 37) {
26728 goto __pyx_L5_argtuple_error;
26730 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26731 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26732 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26733 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26734 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26735 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26736 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26737 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26738 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26739 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26740 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26741 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26742 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26743 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26744 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26745 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26746 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26747 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26748 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26749 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26750 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26751 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26752 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26753 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26754 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
26755 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
26756 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
26757 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
26758 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
26759 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
26760 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
26761 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
26762 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
26763 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
26764 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
26765 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
26766 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
26768 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
26769 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
26770 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
26771 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
26772 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
26773 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
26774 __pyx_v_n = ((PyArrayObject *)values[6]);
26775 __pyx_v_bc_p = ((PyArrayObject *)values[7]);
26776 __pyx_v_bc_f_mass = ((PyArrayObject *)values[8]);
26777 __pyx_v_bc_f_umom = ((PyArrayObject *)values[9]);
26778 __pyx_v_bc_f_vmom = ((PyArrayObject *)values[10]);
26779 __pyx_v_p = ((PyArrayObject *)values[11]);
26780 __pyx_v_dm_umom = ((PyArrayObject *)values[12]);
26781 __pyx_v_f_mass = ((PyArrayObject *)values[13]);
26782 __pyx_v_f_umom = ((PyArrayObject *)values[14]);
26783 __pyx_v_f_vmom = ((PyArrayObject *)values[15]);
26784 __pyx_v_df_mass_du = ((PyArrayObject *)values[16]);
26785 __pyx_v_df_mass_dv = ((PyArrayObject *)values[17]);
26786 __pyx_v_df_umom_dp = ((PyArrayObject *)values[18]);
26787 __pyx_v_df_umom_du = ((PyArrayObject *)values[19]);
26788 __pyx_v_df_umom_dv = ((PyArrayObject *)values[20]);
26789 __pyx_v_df_vmom_dp = ((PyArrayObject *)values[21]);
26790 __pyx_v_df_vmom_du = ((PyArrayObject *)values[22]);
26791 __pyx_v_df_vmom_dv = ((PyArrayObject *)values[23]);
26792 __pyx_v_flux_mass = ((PyArrayObject *)values[24]);
26793 __pyx_v_flux_umom = ((PyArrayObject *)values[25]);
26794 __pyx_v_flux_vmom = ((PyArrayObject *)values[26]);
26795 __pyx_v_dflux_mass_dp = ((PyArrayObject *)values[27]);
26796 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[28]);
26797 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[29]);
26798 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[30]);
26799 __pyx_v_dflux_umom_du = ((PyArrayObject *)values[31]);
26800 __pyx_v_dflux_umom_dv = ((PyArrayObject *)values[32]);
26801 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[33]);
26802 __pyx_v_dflux_vmom_du = ((PyArrayObject *)values[34]);
26803 __pyx_v_dflux_vmom_dv = ((PyArrayObject *)values[35]);
26804 __pyx_v_velocity = ((PyArrayObject *)values[36]);
26806 goto __pyx_L4_argument_unpacking_done;
26807 __pyx_L5_argtuple_error:;
26808 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 37, 37, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5418, __pyx_L3_error)
26810 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxNavierStokes2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
26811 __Pyx_RefNannyFinishContext();
26813 __pyx_L4_argument_unpacking_done:;
26814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5418, __pyx_L1_error)
26815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5419, __pyx_L1_error)
26816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5420, __pyx_L1_error)
26817 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5421, __pyx_L1_error)
26818 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5422, __pyx_L1_error)
26819 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5423, __pyx_L1_error)
26820 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5424, __pyx_L1_error)
26821 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 5425, __pyx_L1_error)
26822 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 5426, __pyx_L1_error)
26823 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_umom", 0))) __PYX_ERR(0, 5427, __pyx_L1_error)
26824 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_vmom", 0))) __PYX_ERR(0, 5428, __pyx_L1_error)
26825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5429, __pyx_L1_error)
26826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm_umom), __pyx_ptype_5numpy_ndarray, 1,
"dm_umom", 0))) __PYX_ERR(0, 5430, __pyx_L1_error)
26827 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 5431, __pyx_L1_error)
26828 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"f_umom", 0))) __PYX_ERR(0, 5432, __pyx_L1_error)
26829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"f_vmom", 0))) __PYX_ERR(0, 5433, __pyx_L1_error)
26830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 5434, __pyx_L1_error)
26831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 5435, __pyx_L1_error)
26832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dp", 0))) __PYX_ERR(0, 5436, __pyx_L1_error)
26833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_du", 0))) __PYX_ERR(0, 5437, __pyx_L1_error)
26834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dv", 0))) __PYX_ERR(0, 5438, __pyx_L1_error)
26835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dp", 0))) __PYX_ERR(0, 5439, __pyx_L1_error)
26836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_du", 0))) __PYX_ERR(0, 5440, __pyx_L1_error)
26837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dv", 0))) __PYX_ERR(0, 5441, __pyx_L1_error)
26838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 5442, __pyx_L1_error)
26839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 5443, __pyx_L1_error)
26840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 5444, __pyx_L1_error)
26841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dp", 0))) __PYX_ERR(0, 5445, __pyx_L1_error)
26842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 5446, __pyx_L1_error)
26843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 5447, __pyx_L1_error)
26844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 5448, __pyx_L1_error)
26845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_du", 0))) __PYX_ERR(0, 5449, __pyx_L1_error)
26846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dv", 0))) __PYX_ERR(0, 5450, __pyx_L1_error)
26847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 5451, __pyx_L1_error)
26848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_du", 0))) __PYX_ERR(0, 5452, __pyx_L1_error)
26849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dv", 0))) __PYX_ERR(0, 5453, __pyx_L1_error)
26850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5454, __pyx_L1_error)
26851 __pyx_r = __pyx_pf_14cnumericalFlux_150calculateExteriorNumericalAdvectiveFluxNavierStokes2D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_bc_f_umom, __pyx_v_bc_f_vmom, __pyx_v_p, __pyx_v_dm_umom, __pyx_v_f_mass, __pyx_v_f_umom, __pyx_v_f_vmom, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_umom_dp, __pyx_v_df_umom_du, __pyx_v_df_umom_dv, __pyx_v_df_vmom_dp, __pyx_v_df_vmom_du, __pyx_v_df_vmom_dv, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_dflux_mass_dp, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_umom_dp, __pyx_v_dflux_umom_du, __pyx_v_dflux_umom_dv, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_vmom_du, __pyx_v_dflux_vmom_dv, __pyx_v_velocity);
26858 __Pyx_RefNannyFinishContext();
26862 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) {
26863 PyObject *__pyx_r = NULL;
26864 __Pyx_RefNannyDeclarations
26866 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxNavierStokes2D", 0);
26875 __pyx_t_1 = ((__pyx_v_f_mass->nd > 3) != 0);
26885 calculateExteriorNumericalAdvectiveFluxNavierStokes2D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), (__pyx_v_f_mass->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_bc_f_umom->data), ((
double *)__pyx_v_bc_f_vmom->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_f_umom->data), ((
double *)__pyx_v_f_vmom->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_umom_du->data), ((
double *)__pyx_v_df_umom_dv->data), ((
double *)__pyx_v_df_vmom_du->data), ((
double *)__pyx_v_df_vmom_dv->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_umom_du->data), ((
double *)__pyx_v_dflux_umom_dv->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_vmom_du->data), ((
double *)__pyx_v_dflux_vmom_dv->data));
26913 calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_bc_f_umom->data), ((
double *)__pyx_v_bc_f_vmom->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_dm_umom->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_f_umom->data), ((
double *)__pyx_v_f_vmom->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_umom_dp->data), ((
double *)__pyx_v_df_umom_du->data), ((
double *)__pyx_v_df_umom_dv->data), ((
double *)__pyx_v_df_vmom_dp->data), ((
double *)__pyx_v_df_vmom_du->data), ((
double *)__pyx_v_df_vmom_dv->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_dflux_mass_dp->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_umom_du->data), ((
double *)__pyx_v_dflux_umom_dv->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_vmom_du->data), ((
double *)__pyx_v_dflux_vmom_dv->data), ((
double *)__pyx_v_velocity->data));
26926 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26927 __Pyx_XGIVEREF(__pyx_r);
26928 __Pyx_RefNannyFinishContext();
26941 static PyObject *__pyx_pw_14cnumericalFlux_153calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26942 static PyMethodDef __pyx_mdef_14cnumericalFlux_153calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D = {
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_153calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D, METH_VARARGS|METH_KEYWORDS, 0};
26943 static PyObject *__pyx_pw_14cnumericalFlux_153calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26944 int __pyx_v_nExteriorElementBoundaries_global;
26945 int __pyx_v_nQuadraturePoints_elementBoundary;
26946 int __pyx_v_nSpace;
26947 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
26948 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
26949 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
26950 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
26951 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
26952 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
26953 PyArrayObject *__pyx_v_n = 0;
26954 PyArrayObject *__pyx_v_bc_p = 0;
26955 PyArrayObject *__pyx_v_bc_f_mass = 0;
26956 PyArrayObject *__pyx_v_bc_f_umom = 0;
26957 PyArrayObject *__pyx_v_bc_f_vmom = 0;
26958 PyArrayObject *__pyx_v_p = 0;
26959 PyArrayObject *__pyx_v_oneByRho = 0;
26960 PyArrayObject *__pyx_v_f_mass = 0;
26961 PyArrayObject *__pyx_v_f_umom = 0;
26962 PyArrayObject *__pyx_v_f_vmom = 0;
26963 PyArrayObject *__pyx_v_df_mass_du = 0;
26964 PyArrayObject *__pyx_v_df_mass_dv = 0;
26965 PyArrayObject *__pyx_v_df_umom_dp = 0;
26966 PyArrayObject *__pyx_v_df_umom_du = 0;
26967 PyArrayObject *__pyx_v_df_umom_dv = 0;
26968 PyArrayObject *__pyx_v_df_vmom_dp = 0;
26969 PyArrayObject *__pyx_v_df_vmom_du = 0;
26970 PyArrayObject *__pyx_v_df_vmom_dv = 0;
26971 PyArrayObject *__pyx_v_flux_mass = 0;
26972 PyArrayObject *__pyx_v_flux_umom = 0;
26973 PyArrayObject *__pyx_v_flux_vmom = 0;
26974 PyArrayObject *__pyx_v_dflux_mass_dp = 0;
26975 PyArrayObject *__pyx_v_dflux_mass_du = 0;
26976 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
26977 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
26978 PyArrayObject *__pyx_v_dflux_umom_du = 0;
26979 PyArrayObject *__pyx_v_dflux_umom_dv = 0;
26980 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
26981 PyArrayObject *__pyx_v_dflux_vmom_du = 0;
26982 PyArrayObject *__pyx_v_dflux_vmom_dv = 0;
26983 PyArrayObject *__pyx_v_velocity = 0;
26984 int __pyx_lineno = 0;
26985 const char *__pyx_filename = NULL;
26986 int __pyx_clineno = 0;
26987 PyObject *__pyx_r = 0;
26988 __Pyx_RefNannyDeclarations
26989 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D (wrapper)", 0);
26991 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_bc_f_umom,&__pyx_n_s_bc_f_vmom,&__pyx_n_s_p,&__pyx_n_s_oneByRho,&__pyx_n_s_f_mass,&__pyx_n_s_f_umom,&__pyx_n_s_f_vmom,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_umom_dp,&__pyx_n_s_df_umom_du,&__pyx_n_s_df_umom_dv,&__pyx_n_s_df_vmom_dp,&__pyx_n_s_df_vmom_du,&__pyx_n_s_df_vmom_dv,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_dflux_mass_dp,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_umom_du,&__pyx_n_s_dflux_umom_dv,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_vmom_du,&__pyx_n_s_dflux_vmom_dv,&__pyx_n_s_velocity,0};
26992 PyObject* values[40] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26993 if (unlikely(__pyx_kwds)) {
26994 Py_ssize_t kw_args;
26995 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26996 switch (pos_args) {
26997 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
26998 CYTHON_FALLTHROUGH;
26999 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
27000 CYTHON_FALLTHROUGH;
27001 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
27002 CYTHON_FALLTHROUGH;
27003 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
27004 CYTHON_FALLTHROUGH;
27005 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
27006 CYTHON_FALLTHROUGH;
27007 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
27008 CYTHON_FALLTHROUGH;
27009 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
27010 CYTHON_FALLTHROUGH;
27011 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
27012 CYTHON_FALLTHROUGH;
27013 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
27014 CYTHON_FALLTHROUGH;
27015 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
27016 CYTHON_FALLTHROUGH;
27017 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
27018 CYTHON_FALLTHROUGH;
27019 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
27020 CYTHON_FALLTHROUGH;
27021 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
27022 CYTHON_FALLTHROUGH;
27023 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
27024 CYTHON_FALLTHROUGH;
27025 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
27026 CYTHON_FALLTHROUGH;
27027 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
27028 CYTHON_FALLTHROUGH;
27029 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
27030 CYTHON_FALLTHROUGH;
27031 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
27032 CYTHON_FALLTHROUGH;
27033 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
27034 CYTHON_FALLTHROUGH;
27035 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
27036 CYTHON_FALLTHROUGH;
27037 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
27038 CYTHON_FALLTHROUGH;
27039 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
27040 CYTHON_FALLTHROUGH;
27041 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27042 CYTHON_FALLTHROUGH;
27043 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27044 CYTHON_FALLTHROUGH;
27045 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27046 CYTHON_FALLTHROUGH;
27047 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27048 CYTHON_FALLTHROUGH;
27049 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27050 CYTHON_FALLTHROUGH;
27051 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27052 CYTHON_FALLTHROUGH;
27053 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27054 CYTHON_FALLTHROUGH;
27055 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27056 CYTHON_FALLTHROUGH;
27057 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27058 CYTHON_FALLTHROUGH;
27059 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27060 CYTHON_FALLTHROUGH;
27061 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27062 CYTHON_FALLTHROUGH;
27063 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27064 CYTHON_FALLTHROUGH;
27065 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27066 CYTHON_FALLTHROUGH;
27067 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27068 CYTHON_FALLTHROUGH;
27069 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27070 CYTHON_FALLTHROUGH;
27071 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27072 CYTHON_FALLTHROUGH;
27073 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27074 CYTHON_FALLTHROUGH;
27075 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27076 CYTHON_FALLTHROUGH;
27078 default:
goto __pyx_L5_argtuple_error;
27080 kw_args = PyDict_Size(__pyx_kwds);
27081 switch (pos_args) {
27083 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
27084 else goto __pyx_L5_argtuple_error;
27085 CYTHON_FALLTHROUGH;
27087 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
27089 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 1); __PYX_ERR(0, 5533, __pyx_L3_error)
27091 CYTHON_FALLTHROUGH;
27093 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
27095 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 2); __PYX_ERR(0, 5533, __pyx_L3_error)
27097 CYTHON_FALLTHROUGH;
27099 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
27101 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 3); __PYX_ERR(0, 5533, __pyx_L3_error)
27103 CYTHON_FALLTHROUGH;
27105 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
27107 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 4); __PYX_ERR(0, 5533, __pyx_L3_error)
27109 CYTHON_FALLTHROUGH;
27111 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
27113 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 5); __PYX_ERR(0, 5533, __pyx_L3_error)
27115 CYTHON_FALLTHROUGH;
27117 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
27119 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 6); __PYX_ERR(0, 5533, __pyx_L3_error)
27121 CYTHON_FALLTHROUGH;
27123 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
27125 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 7); __PYX_ERR(0, 5533, __pyx_L3_error)
27127 CYTHON_FALLTHROUGH;
27129 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
27131 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 8); __PYX_ERR(0, 5533, __pyx_L3_error)
27133 CYTHON_FALLTHROUGH;
27135 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27137 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 9); __PYX_ERR(0, 5533, __pyx_L3_error)
27139 CYTHON_FALLTHROUGH;
27141 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
27143 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 10); __PYX_ERR(0, 5533, __pyx_L3_error)
27145 CYTHON_FALLTHROUGH;
27147 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
27149 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 11); __PYX_ERR(0, 5533, __pyx_L3_error)
27151 CYTHON_FALLTHROUGH;
27153 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_umom)) != 0)) kw_args--;
27155 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 12); __PYX_ERR(0, 5533, __pyx_L3_error)
27157 CYTHON_FALLTHROUGH;
27159 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_vmom)) != 0)) kw_args--;
27161 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 13); __PYX_ERR(0, 5533, __pyx_L3_error)
27163 CYTHON_FALLTHROUGH;
27165 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
27167 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 14); __PYX_ERR(0, 5533, __pyx_L3_error)
27169 CYTHON_FALLTHROUGH;
27171 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_oneByRho)) != 0)) kw_args--;
27173 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 15); __PYX_ERR(0, 5533, __pyx_L3_error)
27175 CYTHON_FALLTHROUGH;
27177 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
27179 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 16); __PYX_ERR(0, 5533, __pyx_L3_error)
27181 CYTHON_FALLTHROUGH;
27183 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_umom)) != 0)) kw_args--;
27185 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 17); __PYX_ERR(0, 5533, __pyx_L3_error)
27187 CYTHON_FALLTHROUGH;
27189 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_vmom)) != 0)) kw_args--;
27191 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 18); __PYX_ERR(0, 5533, __pyx_L3_error)
27193 CYTHON_FALLTHROUGH;
27195 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
27197 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 19); __PYX_ERR(0, 5533, __pyx_L3_error)
27199 CYTHON_FALLTHROUGH;
27201 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
27203 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 20); __PYX_ERR(0, 5533, __pyx_L3_error)
27205 CYTHON_FALLTHROUGH;
27207 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dp)) != 0)) kw_args--;
27209 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 21); __PYX_ERR(0, 5533, __pyx_L3_error)
27211 CYTHON_FALLTHROUGH;
27213 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_du)) != 0)) kw_args--;
27215 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 22); __PYX_ERR(0, 5533, __pyx_L3_error)
27217 CYTHON_FALLTHROUGH;
27219 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dv)) != 0)) kw_args--;
27221 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 23); __PYX_ERR(0, 5533, __pyx_L3_error)
27223 CYTHON_FALLTHROUGH;
27225 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dp)) != 0)) kw_args--;
27227 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 24); __PYX_ERR(0, 5533, __pyx_L3_error)
27229 CYTHON_FALLTHROUGH;
27231 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_du)) != 0)) kw_args--;
27233 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 25); __PYX_ERR(0, 5533, __pyx_L3_error)
27235 CYTHON_FALLTHROUGH;
27237 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dv)) != 0)) kw_args--;
27239 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 26); __PYX_ERR(0, 5533, __pyx_L3_error)
27241 CYTHON_FALLTHROUGH;
27243 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
27245 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 27); __PYX_ERR(0, 5533, __pyx_L3_error)
27247 CYTHON_FALLTHROUGH;
27249 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
27251 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 28); __PYX_ERR(0, 5533, __pyx_L3_error)
27253 CYTHON_FALLTHROUGH;
27255 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
27257 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 29); __PYX_ERR(0, 5533, __pyx_L3_error)
27259 CYTHON_FALLTHROUGH;
27261 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dp)) != 0)) kw_args--;
27263 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 30); __PYX_ERR(0, 5533, __pyx_L3_error)
27265 CYTHON_FALLTHROUGH;
27267 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
27269 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 31); __PYX_ERR(0, 5533, __pyx_L3_error)
27271 CYTHON_FALLTHROUGH;
27273 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
27275 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 32); __PYX_ERR(0, 5533, __pyx_L3_error)
27277 CYTHON_FALLTHROUGH;
27279 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
27281 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 33); __PYX_ERR(0, 5533, __pyx_L3_error)
27283 CYTHON_FALLTHROUGH;
27285 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_du)) != 0)) kw_args--;
27287 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 34); __PYX_ERR(0, 5533, __pyx_L3_error)
27289 CYTHON_FALLTHROUGH;
27291 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dv)) != 0)) kw_args--;
27293 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 35); __PYX_ERR(0, 5533, __pyx_L3_error)
27295 CYTHON_FALLTHROUGH;
27297 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
27299 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 36); __PYX_ERR(0, 5533, __pyx_L3_error)
27301 CYTHON_FALLTHROUGH;
27303 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_du)) != 0)) kw_args--;
27305 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 37); __PYX_ERR(0, 5533, __pyx_L3_error)
27307 CYTHON_FALLTHROUGH;
27309 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dv)) != 0)) kw_args--;
27311 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 38); __PYX_ERR(0, 5533, __pyx_L3_error)
27313 CYTHON_FALLTHROUGH;
27315 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
27317 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, 39); __PYX_ERR(0, 5533, __pyx_L3_error)
27320 if (unlikely(kw_args > 0)) {
27321 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D") < 0)) __PYX_ERR(0, 5533, __pyx_L3_error)
27323 }
else if (PyTuple_GET_SIZE(__pyx_args) != 40) {
27324 goto __pyx_L5_argtuple_error;
27326 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27327 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27328 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27329 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27330 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27331 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27332 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27333 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27334 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27335 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27336 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27337 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27338 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27339 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27340 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27341 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27342 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27343 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27344 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
27345 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
27346 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
27347 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
27348 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
27349 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
27350 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
27351 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
27352 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
27353 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
27354 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
27355 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
27356 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
27357 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
27358 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
27359 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
27360 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
27361 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
27362 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
27363 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
27364 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
27365 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
27367 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5533, __pyx_L3_error)
27368 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5534, __pyx_L3_error)
27369 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5535, __pyx_L3_error)
27370 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
27371 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
27372 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
27373 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[6]);
27374 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[7]);
27375 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[8]);
27376 __pyx_v_n = ((PyArrayObject *)values[9]);
27377 __pyx_v_bc_p = ((PyArrayObject *)values[10]);
27378 __pyx_v_bc_f_mass = ((PyArrayObject *)values[11]);
27379 __pyx_v_bc_f_umom = ((PyArrayObject *)values[12]);
27380 __pyx_v_bc_f_vmom = ((PyArrayObject *)values[13]);
27381 __pyx_v_p = ((PyArrayObject *)values[14]);
27382 __pyx_v_oneByRho = ((PyArrayObject *)values[15]);
27383 __pyx_v_f_mass = ((PyArrayObject *)values[16]);
27384 __pyx_v_f_umom = ((PyArrayObject *)values[17]);
27385 __pyx_v_f_vmom = ((PyArrayObject *)values[18]);
27386 __pyx_v_df_mass_du = ((PyArrayObject *)values[19]);
27387 __pyx_v_df_mass_dv = ((PyArrayObject *)values[20]);
27388 __pyx_v_df_umom_dp = ((PyArrayObject *)values[21]);
27389 __pyx_v_df_umom_du = ((PyArrayObject *)values[22]);
27390 __pyx_v_df_umom_dv = ((PyArrayObject *)values[23]);
27391 __pyx_v_df_vmom_dp = ((PyArrayObject *)values[24]);
27392 __pyx_v_df_vmom_du = ((PyArrayObject *)values[25]);
27393 __pyx_v_df_vmom_dv = ((PyArrayObject *)values[26]);
27394 __pyx_v_flux_mass = ((PyArrayObject *)values[27]);
27395 __pyx_v_flux_umom = ((PyArrayObject *)values[28]);
27396 __pyx_v_flux_vmom = ((PyArrayObject *)values[29]);
27397 __pyx_v_dflux_mass_dp = ((PyArrayObject *)values[30]);
27398 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[31]);
27399 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[32]);
27400 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[33]);
27401 __pyx_v_dflux_umom_du = ((PyArrayObject *)values[34]);
27402 __pyx_v_dflux_umom_dv = ((PyArrayObject *)values[35]);
27403 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[36]);
27404 __pyx_v_dflux_vmom_du = ((PyArrayObject *)values[37]);
27405 __pyx_v_dflux_vmom_dv = ((PyArrayObject *)values[38]);
27406 __pyx_v_velocity = ((PyArrayObject *)values[39]);
27408 goto __pyx_L4_argument_unpacking_done;
27409 __pyx_L5_argtuple_error:;
27410 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 1, 40, 40, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5533, __pyx_L3_error)
27412 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
27413 __Pyx_RefNannyFinishContext();
27415 __pyx_L4_argument_unpacking_done:;
27416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5536, __pyx_L1_error)
27417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5537, __pyx_L1_error)
27418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5538, __pyx_L1_error)
27419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5539, __pyx_L1_error)
27420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5540, __pyx_L1_error)
27421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5541, __pyx_L1_error)
27422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5542, __pyx_L1_error)
27423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 5543, __pyx_L1_error)
27424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 5544, __pyx_L1_error)
27425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_umom", 0))) __PYX_ERR(0, 5545, __pyx_L1_error)
27426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_vmom", 0))) __PYX_ERR(0, 5546, __pyx_L1_error)
27427 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5547, __pyx_L1_error)
27428 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_oneByRho), __pyx_ptype_5numpy_ndarray, 1,
"oneByRho", 0))) __PYX_ERR(0, 5548, __pyx_L1_error)
27429 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 5549, __pyx_L1_error)
27430 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"f_umom", 0))) __PYX_ERR(0, 5550, __pyx_L1_error)
27431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"f_vmom", 0))) __PYX_ERR(0, 5551, __pyx_L1_error)
27432 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 5552, __pyx_L1_error)
27433 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 5553, __pyx_L1_error)
27434 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dp", 0))) __PYX_ERR(0, 5554, __pyx_L1_error)
27435 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_du", 0))) __PYX_ERR(0, 5555, __pyx_L1_error)
27436 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dv", 0))) __PYX_ERR(0, 5556, __pyx_L1_error)
27437 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dp", 0))) __PYX_ERR(0, 5557, __pyx_L1_error)
27438 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_du", 0))) __PYX_ERR(0, 5558, __pyx_L1_error)
27439 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dv", 0))) __PYX_ERR(0, 5559, __pyx_L1_error)
27440 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 5560, __pyx_L1_error)
27441 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 5561, __pyx_L1_error)
27442 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 5562, __pyx_L1_error)
27443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dp", 0))) __PYX_ERR(0, 5563, __pyx_L1_error)
27444 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 5564, __pyx_L1_error)
27445 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 5565, __pyx_L1_error)
27446 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 5566, __pyx_L1_error)
27447 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_du", 0))) __PYX_ERR(0, 5567, __pyx_L1_error)
27448 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dv", 0))) __PYX_ERR(0, 5568, __pyx_L1_error)
27449 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 5569, __pyx_L1_error)
27450 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_du", 0))) __PYX_ERR(0, 5570, __pyx_L1_error)
27451 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dv", 0))) __PYX_ERR(0, 5571, __pyx_L1_error)
27452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5572, __pyx_L1_error)
27453 __pyx_r = __pyx_pf_14cnumericalFlux_152calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_bc_f_umom, __pyx_v_bc_f_vmom, __pyx_v_p, __pyx_v_oneByRho, __pyx_v_f_mass, __pyx_v_f_umom, __pyx_v_f_vmom, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_umom_dp, __pyx_v_df_umom_du, __pyx_v_df_umom_dv, __pyx_v_df_vmom_dp, __pyx_v_df_vmom_du, __pyx_v_df_vmom_dv, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_dflux_mass_dp, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_umom_dp, __pyx_v_dflux_umom_du, __pyx_v_dflux_umom_dv, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_vmom_du, __pyx_v_dflux_vmom_dv, __pyx_v_velocity);
27460 __Pyx_RefNannyFinishContext();
27464 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) {
27465 PyObject *__pyx_r = NULL;
27466 __Pyx_RefNannyDeclarations
27467 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D", 0);
27476 calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_bc_f_umom->data), ((
double *)__pyx_v_bc_f_vmom->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_oneByRho->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_f_umom->data), ((
double *)__pyx_v_f_vmom->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_umom_dp->data), ((
double *)__pyx_v_df_umom_du->data), ((
double *)__pyx_v_df_umom_dv->data), ((
double *)__pyx_v_df_vmom_dp->data), ((
double *)__pyx_v_df_vmom_du->data), ((
double *)__pyx_v_df_vmom_dv->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_dflux_mass_dp->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_umom_du->data), ((
double *)__pyx_v_dflux_umom_dv->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_vmom_du->data), ((
double *)__pyx_v_dflux_vmom_dv->data), ((
double *)__pyx_v_velocity->data));
27487 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27488 __Pyx_XGIVEREF(__pyx_r);
27489 __Pyx_RefNannyFinishContext();
27502 static PyObject *__pyx_pw_14cnumericalFlux_155calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27503 static PyMethodDef __pyx_mdef_14cnumericalFlux_155calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D = {
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_155calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D, METH_VARARGS|METH_KEYWORDS, 0};
27504 static PyObject *__pyx_pw_14cnumericalFlux_155calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27505 int __pyx_v_nExteriorElementBoundaries_global;
27506 int __pyx_v_nQuadraturePoints_elementBoundary;
27507 int __pyx_v_nSpace;
27508 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
27509 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
27510 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
27511 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
27512 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
27513 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
27514 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
27515 PyArrayObject *__pyx_v_n = 0;
27516 PyArrayObject *__pyx_v_bc_p = 0;
27517 PyArrayObject *__pyx_v_bc_f_mass = 0;
27518 PyArrayObject *__pyx_v_bc_f_umom = 0;
27519 PyArrayObject *__pyx_v_bc_f_vmom = 0;
27520 PyArrayObject *__pyx_v_bc_f_wmom = 0;
27521 PyArrayObject *__pyx_v_p = 0;
27522 PyArrayObject *__pyx_v_f_mass = 0;
27523 PyArrayObject *__pyx_v_f_umom = 0;
27524 PyArrayObject *__pyx_v_f_vmom = 0;
27525 PyArrayObject *__pyx_v_f_wmom = 0;
27526 PyArrayObject *__pyx_v_df_mass_du = 0;
27527 PyArrayObject *__pyx_v_df_mass_dv = 0;
27528 PyArrayObject *__pyx_v_df_mass_dw = 0;
27529 PyArrayObject *__pyx_v_df_umom_dp = 0;
27530 PyArrayObject *__pyx_v_df_umom_du = 0;
27531 PyArrayObject *__pyx_v_df_umom_dv = 0;
27532 PyArrayObject *__pyx_v_df_umom_dw = 0;
27533 PyArrayObject *__pyx_v_df_vmom_dp = 0;
27534 PyArrayObject *__pyx_v_df_vmom_du = 0;
27535 PyArrayObject *__pyx_v_df_vmom_dv = 0;
27536 PyArrayObject *__pyx_v_df_vmom_dw = 0;
27537 PyArrayObject *__pyx_v_df_wmom_dp = 0;
27538 PyArrayObject *__pyx_v_df_wmom_du = 0;
27539 PyArrayObject *__pyx_v_df_wmom_dv = 0;
27540 PyArrayObject *__pyx_v_df_wmom_dw = 0;
27541 PyArrayObject *__pyx_v_flux_mass = 0;
27542 PyArrayObject *__pyx_v_flux_umom = 0;
27543 PyArrayObject *__pyx_v_flux_vmom = 0;
27544 PyArrayObject *__pyx_v_flux_wmom = 0;
27545 PyArrayObject *__pyx_v_dflux_mass_du = 0;
27546 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
27547 PyArrayObject *__pyx_v_dflux_mass_dw = 0;
27548 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
27549 PyArrayObject *__pyx_v_dflux_umom_du = 0;
27550 PyArrayObject *__pyx_v_dflux_umom_dv = 0;
27551 PyArrayObject *__pyx_v_dflux_umom_dw = 0;
27552 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
27553 PyArrayObject *__pyx_v_dflux_vmom_du = 0;
27554 PyArrayObject *__pyx_v_dflux_vmom_dv = 0;
27555 PyArrayObject *__pyx_v_dflux_vmom_dw = 0;
27556 PyArrayObject *__pyx_v_dflux_wmom_dp = 0;
27557 PyArrayObject *__pyx_v_dflux_wmom_du = 0;
27558 PyArrayObject *__pyx_v_dflux_wmom_dv = 0;
27559 PyArrayObject *__pyx_v_dflux_wmom_dw = 0;
27560 PyArrayObject *__pyx_v_velocity = 0;
27561 int __pyx_lineno = 0;
27562 const char *__pyx_filename = NULL;
27563 int __pyx_clineno = 0;
27564 PyObject *__pyx_r = 0;
27565 __Pyx_RefNannyDeclarations
27566 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D (wrapper)", 0);
27568 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_bc_f_umom,&__pyx_n_s_bc_f_vmom,&__pyx_n_s_bc_f_wmom,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_f_umom,&__pyx_n_s_f_vmom,&__pyx_n_s_f_wmom,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_mass_dw,&__pyx_n_s_df_umom_dp,&__pyx_n_s_df_umom_du,&__pyx_n_s_df_umom_dv,&__pyx_n_s_df_umom_dw,&__pyx_n_s_df_vmom_dp,&__pyx_n_s_df_vmom_du,&__pyx_n_s_df_vmom_dv,&__pyx_n_s_df_vmom_dw,&__pyx_n_s_df_wmom_dp,&__pyx_n_s_df_wmom_du,&__pyx_n_s_df_wmom_dv,&__pyx_n_s_df_wmom_dw,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_flux_wmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_mass_dw,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_umom_du,&__pyx_n_s_dflux_umom_dv,&__pyx_n_s_dflux_umom_dw,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_vmom_du,&__pyx_n_s_dflux_vmom_dv,&__pyx_n_s_dflux_vmom_dw,&__pyx_n_s_dflux_wmom_dp,&__pyx_n_s_dflux_wmom_du,&__pyx_n_s_dflux_wmom_dv,&__pyx_n_s_dflux_wmom_dw,&__pyx_n_s_velocity,0};
27569 PyObject* values[56] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
27570 if (unlikely(__pyx_kwds)) {
27571 Py_ssize_t kw_args;
27572 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27573 switch (pos_args) {
27574 case 56: values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
27575 CYTHON_FALLTHROUGH;
27576 case 55: values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
27577 CYTHON_FALLTHROUGH;
27578 case 54: values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
27579 CYTHON_FALLTHROUGH;
27580 case 53: values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
27581 CYTHON_FALLTHROUGH;
27582 case 52: values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
27583 CYTHON_FALLTHROUGH;
27584 case 51: values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
27585 CYTHON_FALLTHROUGH;
27586 case 50: values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
27587 CYTHON_FALLTHROUGH;
27588 case 49: values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
27589 CYTHON_FALLTHROUGH;
27590 case 48: values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
27591 CYTHON_FALLTHROUGH;
27592 case 47: values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
27593 CYTHON_FALLTHROUGH;
27594 case 46: values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
27595 CYTHON_FALLTHROUGH;
27596 case 45: values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
27597 CYTHON_FALLTHROUGH;
27598 case 44: values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
27599 CYTHON_FALLTHROUGH;
27600 case 43: values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
27601 CYTHON_FALLTHROUGH;
27602 case 42: values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
27603 CYTHON_FALLTHROUGH;
27604 case 41: values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
27605 CYTHON_FALLTHROUGH;
27606 case 40: values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
27607 CYTHON_FALLTHROUGH;
27608 case 39: values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
27609 CYTHON_FALLTHROUGH;
27610 case 38: values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
27611 CYTHON_FALLTHROUGH;
27612 case 37: values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
27613 CYTHON_FALLTHROUGH;
27614 case 36: values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
27615 CYTHON_FALLTHROUGH;
27616 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
27617 CYTHON_FALLTHROUGH;
27618 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
27619 CYTHON_FALLTHROUGH;
27620 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
27621 CYTHON_FALLTHROUGH;
27622 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
27623 CYTHON_FALLTHROUGH;
27624 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
27625 CYTHON_FALLTHROUGH;
27626 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
27627 CYTHON_FALLTHROUGH;
27628 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
27629 CYTHON_FALLTHROUGH;
27630 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
27631 CYTHON_FALLTHROUGH;
27632 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
27633 CYTHON_FALLTHROUGH;
27634 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
27635 CYTHON_FALLTHROUGH;
27636 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
27637 CYTHON_FALLTHROUGH;
27638 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
27639 CYTHON_FALLTHROUGH;
27640 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
27641 CYTHON_FALLTHROUGH;
27642 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
27643 CYTHON_FALLTHROUGH;
27644 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
27645 CYTHON_FALLTHROUGH;
27646 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
27647 CYTHON_FALLTHROUGH;
27648 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
27649 CYTHON_FALLTHROUGH;
27650 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
27651 CYTHON_FALLTHROUGH;
27652 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
27653 CYTHON_FALLTHROUGH;
27654 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
27655 CYTHON_FALLTHROUGH;
27656 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
27657 CYTHON_FALLTHROUGH;
27658 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
27659 CYTHON_FALLTHROUGH;
27660 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27661 CYTHON_FALLTHROUGH;
27662 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27663 CYTHON_FALLTHROUGH;
27664 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27665 CYTHON_FALLTHROUGH;
27666 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27667 CYTHON_FALLTHROUGH;
27668 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27669 CYTHON_FALLTHROUGH;
27670 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27671 CYTHON_FALLTHROUGH;
27672 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27673 CYTHON_FALLTHROUGH;
27674 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27675 CYTHON_FALLTHROUGH;
27676 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27677 CYTHON_FALLTHROUGH;
27678 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27679 CYTHON_FALLTHROUGH;
27680 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27681 CYTHON_FALLTHROUGH;
27682 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27683 CYTHON_FALLTHROUGH;
27684 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27685 CYTHON_FALLTHROUGH;
27687 default:
goto __pyx_L5_argtuple_error;
27689 kw_args = PyDict_Size(__pyx_kwds);
27690 switch (pos_args) {
27692 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
27693 else goto __pyx_L5_argtuple_error;
27694 CYTHON_FALLTHROUGH;
27696 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
27698 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 1); __PYX_ERR(0, 5613, __pyx_L3_error)
27700 CYTHON_FALLTHROUGH;
27702 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
27704 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 2); __PYX_ERR(0, 5613, __pyx_L3_error)
27706 CYTHON_FALLTHROUGH;
27708 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
27710 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 3); __PYX_ERR(0, 5613, __pyx_L3_error)
27712 CYTHON_FALLTHROUGH;
27714 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
27716 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 4); __PYX_ERR(0, 5613, __pyx_L3_error)
27718 CYTHON_FALLTHROUGH;
27720 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
27722 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 5); __PYX_ERR(0, 5613, __pyx_L3_error)
27724 CYTHON_FALLTHROUGH;
27726 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
27728 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 6); __PYX_ERR(0, 5613, __pyx_L3_error)
27730 CYTHON_FALLTHROUGH;
27732 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
27734 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 7); __PYX_ERR(0, 5613, __pyx_L3_error)
27736 CYTHON_FALLTHROUGH;
27738 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
27740 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 8); __PYX_ERR(0, 5613, __pyx_L3_error)
27742 CYTHON_FALLTHROUGH;
27744 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
27746 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 9); __PYX_ERR(0, 5613, __pyx_L3_error)
27748 CYTHON_FALLTHROUGH;
27750 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27752 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 10); __PYX_ERR(0, 5613, __pyx_L3_error)
27754 CYTHON_FALLTHROUGH;
27756 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
27758 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 11); __PYX_ERR(0, 5613, __pyx_L3_error)
27760 CYTHON_FALLTHROUGH;
27762 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
27764 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 12); __PYX_ERR(0, 5613, __pyx_L3_error)
27766 CYTHON_FALLTHROUGH;
27768 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_umom)) != 0)) kw_args--;
27770 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 13); __PYX_ERR(0, 5613, __pyx_L3_error)
27772 CYTHON_FALLTHROUGH;
27774 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_vmom)) != 0)) kw_args--;
27776 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 14); __PYX_ERR(0, 5613, __pyx_L3_error)
27778 CYTHON_FALLTHROUGH;
27780 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_wmom)) != 0)) kw_args--;
27782 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 15); __PYX_ERR(0, 5613, __pyx_L3_error)
27784 CYTHON_FALLTHROUGH;
27786 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
27788 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 16); __PYX_ERR(0, 5613, __pyx_L3_error)
27790 CYTHON_FALLTHROUGH;
27792 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
27794 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 17); __PYX_ERR(0, 5613, __pyx_L3_error)
27796 CYTHON_FALLTHROUGH;
27798 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_umom)) != 0)) kw_args--;
27800 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 18); __PYX_ERR(0, 5613, __pyx_L3_error)
27802 CYTHON_FALLTHROUGH;
27804 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_vmom)) != 0)) kw_args--;
27806 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 19); __PYX_ERR(0, 5613, __pyx_L3_error)
27808 CYTHON_FALLTHROUGH;
27810 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_wmom)) != 0)) kw_args--;
27812 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 20); __PYX_ERR(0, 5613, __pyx_L3_error)
27814 CYTHON_FALLTHROUGH;
27816 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
27818 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 21); __PYX_ERR(0, 5613, __pyx_L3_error)
27820 CYTHON_FALLTHROUGH;
27822 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
27824 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 22); __PYX_ERR(0, 5613, __pyx_L3_error)
27826 CYTHON_FALLTHROUGH;
27828 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dw)) != 0)) kw_args--;
27830 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 23); __PYX_ERR(0, 5613, __pyx_L3_error)
27832 CYTHON_FALLTHROUGH;
27834 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dp)) != 0)) kw_args--;
27836 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 24); __PYX_ERR(0, 5613, __pyx_L3_error)
27838 CYTHON_FALLTHROUGH;
27840 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_du)) != 0)) kw_args--;
27842 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 25); __PYX_ERR(0, 5613, __pyx_L3_error)
27844 CYTHON_FALLTHROUGH;
27846 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dv)) != 0)) kw_args--;
27848 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 26); __PYX_ERR(0, 5613, __pyx_L3_error)
27850 CYTHON_FALLTHROUGH;
27852 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_umom_dw)) != 0)) kw_args--;
27854 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 27); __PYX_ERR(0, 5613, __pyx_L3_error)
27856 CYTHON_FALLTHROUGH;
27858 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dp)) != 0)) kw_args--;
27860 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 28); __PYX_ERR(0, 5613, __pyx_L3_error)
27862 CYTHON_FALLTHROUGH;
27864 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_du)) != 0)) kw_args--;
27866 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 29); __PYX_ERR(0, 5613, __pyx_L3_error)
27868 CYTHON_FALLTHROUGH;
27870 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dv)) != 0)) kw_args--;
27872 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 30); __PYX_ERR(0, 5613, __pyx_L3_error)
27874 CYTHON_FALLTHROUGH;
27876 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_vmom_dw)) != 0)) kw_args--;
27878 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 31); __PYX_ERR(0, 5613, __pyx_L3_error)
27880 CYTHON_FALLTHROUGH;
27882 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dp)) != 0)) kw_args--;
27884 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 32); __PYX_ERR(0, 5613, __pyx_L3_error)
27886 CYTHON_FALLTHROUGH;
27888 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_du)) != 0)) kw_args--;
27890 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 33); __PYX_ERR(0, 5613, __pyx_L3_error)
27892 CYTHON_FALLTHROUGH;
27894 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dv)) != 0)) kw_args--;
27896 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 34); __PYX_ERR(0, 5613, __pyx_L3_error)
27898 CYTHON_FALLTHROUGH;
27900 if (likely((values[35] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_wmom_dw)) != 0)) kw_args--;
27902 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 35); __PYX_ERR(0, 5613, __pyx_L3_error)
27904 CYTHON_FALLTHROUGH;
27906 if (likely((values[36] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
27908 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 36); __PYX_ERR(0, 5613, __pyx_L3_error)
27910 CYTHON_FALLTHROUGH;
27912 if (likely((values[37] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
27914 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 37); __PYX_ERR(0, 5613, __pyx_L3_error)
27916 CYTHON_FALLTHROUGH;
27918 if (likely((values[38] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
27920 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 38); __PYX_ERR(0, 5613, __pyx_L3_error)
27922 CYTHON_FALLTHROUGH;
27924 if (likely((values[39] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_wmom)) != 0)) kw_args--;
27926 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 39); __PYX_ERR(0, 5613, __pyx_L3_error)
27928 CYTHON_FALLTHROUGH;
27930 if (likely((values[40] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
27932 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 40); __PYX_ERR(0, 5613, __pyx_L3_error)
27934 CYTHON_FALLTHROUGH;
27936 if (likely((values[41] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
27938 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 41); __PYX_ERR(0, 5613, __pyx_L3_error)
27940 CYTHON_FALLTHROUGH;
27942 if (likely((values[42] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dw)) != 0)) kw_args--;
27944 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 42); __PYX_ERR(0, 5613, __pyx_L3_error)
27946 CYTHON_FALLTHROUGH;
27948 if (likely((values[43] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
27950 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 43); __PYX_ERR(0, 5613, __pyx_L3_error)
27952 CYTHON_FALLTHROUGH;
27954 if (likely((values[44] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_du)) != 0)) kw_args--;
27956 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 44); __PYX_ERR(0, 5613, __pyx_L3_error)
27958 CYTHON_FALLTHROUGH;
27960 if (likely((values[45] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dv)) != 0)) kw_args--;
27962 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 45); __PYX_ERR(0, 5613, __pyx_L3_error)
27964 CYTHON_FALLTHROUGH;
27966 if (likely((values[46] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dw)) != 0)) kw_args--;
27968 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 46); __PYX_ERR(0, 5613, __pyx_L3_error)
27970 CYTHON_FALLTHROUGH;
27972 if (likely((values[47] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
27974 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 47); __PYX_ERR(0, 5613, __pyx_L3_error)
27976 CYTHON_FALLTHROUGH;
27978 if (likely((values[48] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_du)) != 0)) kw_args--;
27980 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 48); __PYX_ERR(0, 5613, __pyx_L3_error)
27982 CYTHON_FALLTHROUGH;
27984 if (likely((values[49] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dv)) != 0)) kw_args--;
27986 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 49); __PYX_ERR(0, 5613, __pyx_L3_error)
27988 CYTHON_FALLTHROUGH;
27990 if (likely((values[50] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dw)) != 0)) kw_args--;
27992 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 50); __PYX_ERR(0, 5613, __pyx_L3_error)
27994 CYTHON_FALLTHROUGH;
27996 if (likely((values[51] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dp)) != 0)) kw_args--;
27998 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 51); __PYX_ERR(0, 5613, __pyx_L3_error)
28000 CYTHON_FALLTHROUGH;
28002 if (likely((values[52] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_du)) != 0)) kw_args--;
28004 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 52); __PYX_ERR(0, 5613, __pyx_L3_error)
28006 CYTHON_FALLTHROUGH;
28008 if (likely((values[53] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dv)) != 0)) kw_args--;
28010 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 53); __PYX_ERR(0, 5613, __pyx_L3_error)
28012 CYTHON_FALLTHROUGH;
28014 if (likely((values[54] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dw)) != 0)) kw_args--;
28016 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 54); __PYX_ERR(0, 5613, __pyx_L3_error)
28018 CYTHON_FALLTHROUGH;
28020 if (likely((values[55] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
28022 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, 55); __PYX_ERR(0, 5613, __pyx_L3_error)
28025 if (unlikely(kw_args > 0)) {
28026 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D") < 0)) __PYX_ERR(0, 5613, __pyx_L3_error)
28028 }
else if (PyTuple_GET_SIZE(__pyx_args) != 56) {
28029 goto __pyx_L5_argtuple_error;
28031 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28032 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28033 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28034 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28035 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28036 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28037 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28038 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28039 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28040 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28041 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28042 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28043 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28044 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28045 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28046 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28047 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28048 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28049 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
28050 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
28051 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
28052 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
28053 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
28054 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
28055 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
28056 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
28057 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
28058 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
28059 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
28060 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
28061 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
28062 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
28063 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
28064 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
28065 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
28066 values[35] = PyTuple_GET_ITEM(__pyx_args, 35);
28067 values[36] = PyTuple_GET_ITEM(__pyx_args, 36);
28068 values[37] = PyTuple_GET_ITEM(__pyx_args, 37);
28069 values[38] = PyTuple_GET_ITEM(__pyx_args, 38);
28070 values[39] = PyTuple_GET_ITEM(__pyx_args, 39);
28071 values[40] = PyTuple_GET_ITEM(__pyx_args, 40);
28072 values[41] = PyTuple_GET_ITEM(__pyx_args, 41);
28073 values[42] = PyTuple_GET_ITEM(__pyx_args, 42);
28074 values[43] = PyTuple_GET_ITEM(__pyx_args, 43);
28075 values[44] = PyTuple_GET_ITEM(__pyx_args, 44);
28076 values[45] = PyTuple_GET_ITEM(__pyx_args, 45);
28077 values[46] = PyTuple_GET_ITEM(__pyx_args, 46);
28078 values[47] = PyTuple_GET_ITEM(__pyx_args, 47);
28079 values[48] = PyTuple_GET_ITEM(__pyx_args, 48);
28080 values[49] = PyTuple_GET_ITEM(__pyx_args, 49);
28081 values[50] = PyTuple_GET_ITEM(__pyx_args, 50);
28082 values[51] = PyTuple_GET_ITEM(__pyx_args, 51);
28083 values[52] = PyTuple_GET_ITEM(__pyx_args, 52);
28084 values[53] = PyTuple_GET_ITEM(__pyx_args, 53);
28085 values[54] = PyTuple_GET_ITEM(__pyx_args, 54);
28086 values[55] = PyTuple_GET_ITEM(__pyx_args, 55);
28088 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5613, __pyx_L3_error)
28089 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5614, __pyx_L3_error)
28090 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5615, __pyx_L3_error)
28091 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
28092 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
28093 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
28094 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[6]);
28095 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[7]);
28096 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[8]);
28097 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[9]);
28098 __pyx_v_n = ((PyArrayObject *)values[10]);
28099 __pyx_v_bc_p = ((PyArrayObject *)values[11]);
28100 __pyx_v_bc_f_mass = ((PyArrayObject *)values[12]);
28101 __pyx_v_bc_f_umom = ((PyArrayObject *)values[13]);
28102 __pyx_v_bc_f_vmom = ((PyArrayObject *)values[14]);
28103 __pyx_v_bc_f_wmom = ((PyArrayObject *)values[15]);
28104 __pyx_v_p = ((PyArrayObject *)values[16]);
28105 __pyx_v_f_mass = ((PyArrayObject *)values[17]);
28106 __pyx_v_f_umom = ((PyArrayObject *)values[18]);
28107 __pyx_v_f_vmom = ((PyArrayObject *)values[19]);
28108 __pyx_v_f_wmom = ((PyArrayObject *)values[20]);
28109 __pyx_v_df_mass_du = ((PyArrayObject *)values[21]);
28110 __pyx_v_df_mass_dv = ((PyArrayObject *)values[22]);
28111 __pyx_v_df_mass_dw = ((PyArrayObject *)values[23]);
28112 __pyx_v_df_umom_dp = ((PyArrayObject *)values[24]);
28113 __pyx_v_df_umom_du = ((PyArrayObject *)values[25]);
28114 __pyx_v_df_umom_dv = ((PyArrayObject *)values[26]);
28115 __pyx_v_df_umom_dw = ((PyArrayObject *)values[27]);
28116 __pyx_v_df_vmom_dp = ((PyArrayObject *)values[28]);
28117 __pyx_v_df_vmom_du = ((PyArrayObject *)values[29]);
28118 __pyx_v_df_vmom_dv = ((PyArrayObject *)values[30]);
28119 __pyx_v_df_vmom_dw = ((PyArrayObject *)values[31]);
28120 __pyx_v_df_wmom_dp = ((PyArrayObject *)values[32]);
28121 __pyx_v_df_wmom_du = ((PyArrayObject *)values[33]);
28122 __pyx_v_df_wmom_dv = ((PyArrayObject *)values[34]);
28123 __pyx_v_df_wmom_dw = ((PyArrayObject *)values[35]);
28124 __pyx_v_flux_mass = ((PyArrayObject *)values[36]);
28125 __pyx_v_flux_umom = ((PyArrayObject *)values[37]);
28126 __pyx_v_flux_vmom = ((PyArrayObject *)values[38]);
28127 __pyx_v_flux_wmom = ((PyArrayObject *)values[39]);
28128 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[40]);
28129 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[41]);
28130 __pyx_v_dflux_mass_dw = ((PyArrayObject *)values[42]);
28131 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[43]);
28132 __pyx_v_dflux_umom_du = ((PyArrayObject *)values[44]);
28133 __pyx_v_dflux_umom_dv = ((PyArrayObject *)values[45]);
28134 __pyx_v_dflux_umom_dw = ((PyArrayObject *)values[46]);
28135 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[47]);
28136 __pyx_v_dflux_vmom_du = ((PyArrayObject *)values[48]);
28137 __pyx_v_dflux_vmom_dv = ((PyArrayObject *)values[49]);
28138 __pyx_v_dflux_vmom_dw = ((PyArrayObject *)values[50]);
28139 __pyx_v_dflux_wmom_dp = ((PyArrayObject *)values[51]);
28140 __pyx_v_dflux_wmom_du = ((PyArrayObject *)values[52]);
28141 __pyx_v_dflux_wmom_dv = ((PyArrayObject *)values[53]);
28142 __pyx_v_dflux_wmom_dw = ((PyArrayObject *)values[54]);
28143 __pyx_v_velocity = ((PyArrayObject *)values[55]);
28145 goto __pyx_L4_argument_unpacking_done;
28146 __pyx_L5_argtuple_error:;
28147 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 1, 56, 56, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5613, __pyx_L3_error)
28149 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
28150 __Pyx_RefNannyFinishContext();
28152 __pyx_L4_argument_unpacking_done:;
28153 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5616, __pyx_L1_error)
28154 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5617, __pyx_L1_error)
28155 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5618, __pyx_L1_error)
28156 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5619, __pyx_L1_error)
28157 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5620, __pyx_L1_error)
28158 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5621, __pyx_L1_error)
28159 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 5622, __pyx_L1_error)
28160 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5623, __pyx_L1_error)
28161 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 5624, __pyx_L1_error)
28162 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 5625, __pyx_L1_error)
28163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_umom", 0))) __PYX_ERR(0, 5626, __pyx_L1_error)
28164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_vmom", 0))) __PYX_ERR(0, 5627, __pyx_L1_error)
28165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_wmom), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_wmom", 0))) __PYX_ERR(0, 5628, __pyx_L1_error)
28166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 5629, __pyx_L1_error)
28167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 5630, __pyx_L1_error)
28168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_umom), __pyx_ptype_5numpy_ndarray, 1,
"f_umom", 0))) __PYX_ERR(0, 5631, __pyx_L1_error)
28169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_vmom), __pyx_ptype_5numpy_ndarray, 1,
"f_vmom", 0))) __PYX_ERR(0, 5632, __pyx_L1_error)
28170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_wmom), __pyx_ptype_5numpy_ndarray, 1,
"f_wmom", 0))) __PYX_ERR(0, 5633, __pyx_L1_error)
28171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 5634, __pyx_L1_error)
28172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 5635, __pyx_L1_error)
28173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dw", 0))) __PYX_ERR(0, 5636, __pyx_L1_error)
28174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dp", 0))) __PYX_ERR(0, 5637, __pyx_L1_error)
28175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_du", 0))) __PYX_ERR(0, 5638, __pyx_L1_error)
28176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dv", 0))) __PYX_ERR(0, 5639, __pyx_L1_error)
28177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_umom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_umom_dw", 0))) __PYX_ERR(0, 5640, __pyx_L1_error)
28178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dp", 0))) __PYX_ERR(0, 5641, __pyx_L1_error)
28179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_du", 0))) __PYX_ERR(0, 5642, __pyx_L1_error)
28180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dv", 0))) __PYX_ERR(0, 5643, __pyx_L1_error)
28181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_vmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_vmom_dw", 0))) __PYX_ERR(0, 5644, __pyx_L1_error)
28182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dp", 0))) __PYX_ERR(0, 5645, __pyx_L1_error)
28183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_du), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_du", 0))) __PYX_ERR(0, 5646, __pyx_L1_error)
28184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dv", 0))) __PYX_ERR(0, 5647, __pyx_L1_error)
28185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_wmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_wmom_dw", 0))) __PYX_ERR(0, 5648, __pyx_L1_error)
28186 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 5649, __pyx_L1_error)
28187 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 5650, __pyx_L1_error)
28188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 5651, __pyx_L1_error)
28189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_wmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_wmom", 0))) __PYX_ERR(0, 5652, __pyx_L1_error)
28190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 5653, __pyx_L1_error)
28191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 5654, __pyx_L1_error)
28192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dw", 0))) __PYX_ERR(0, 5655, __pyx_L1_error)
28193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 5656, __pyx_L1_error)
28194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_du", 0))) __PYX_ERR(0, 5657, __pyx_L1_error)
28195 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dv", 0))) __PYX_ERR(0, 5658, __pyx_L1_error)
28196 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dw", 0))) __PYX_ERR(0, 5659, __pyx_L1_error)
28197 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 5660, __pyx_L1_error)
28198 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_du", 0))) __PYX_ERR(0, 5661, __pyx_L1_error)
28199 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dv", 0))) __PYX_ERR(0, 5662, __pyx_L1_error)
28200 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dw", 0))) __PYX_ERR(0, 5663, __pyx_L1_error)
28201 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dp", 0))) __PYX_ERR(0, 5664, __pyx_L1_error)
28202 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_du", 0))) __PYX_ERR(0, 5665, __pyx_L1_error)
28203 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dv", 0))) __PYX_ERR(0, 5666, __pyx_L1_error)
28204 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dw", 0))) __PYX_ERR(0, 5667, __pyx_L1_error)
28205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5668, __pyx_L1_error)
28206 __pyx_r = __pyx_pf_14cnumericalFlux_154calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_bc_f_umom, __pyx_v_bc_f_vmom, __pyx_v_bc_f_wmom, __pyx_v_p, __pyx_v_f_mass, __pyx_v_f_umom, __pyx_v_f_vmom, __pyx_v_f_wmom, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_mass_dw, __pyx_v_df_umom_dp, __pyx_v_df_umom_du, __pyx_v_df_umom_dv, __pyx_v_df_umom_dw, __pyx_v_df_vmom_dp, __pyx_v_df_vmom_du, __pyx_v_df_vmom_dv, __pyx_v_df_vmom_dw, __pyx_v_df_wmom_dp, __pyx_v_df_wmom_du, __pyx_v_df_wmom_dv, __pyx_v_df_wmom_dw, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_flux_wmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_mass_dw, __pyx_v_dflux_umom_dp, __pyx_v_dflux_umom_du, __pyx_v_dflux_umom_dv, __pyx_v_dflux_umom_dw, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_vmom_du, __pyx_v_dflux_vmom_dv, __pyx_v_dflux_vmom_dw, __pyx_v_dflux_wmom_dp, __pyx_v_dflux_wmom_du, __pyx_v_dflux_wmom_dv, __pyx_v_dflux_wmom_dw, __pyx_v_velocity);
28213 __Pyx_RefNannyFinishContext();
28217 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) {
28218 PyObject *__pyx_r = NULL;
28219 __Pyx_RefNannyDeclarations
28220 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D", 0);
28229 calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_bc_f_umom->data), ((
double *)__pyx_v_bc_f_vmom->data), ((
double *)__pyx_v_bc_f_wmom->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_f_umom->data), ((
double *)__pyx_v_f_vmom->data), ((
double *)__pyx_v_f_wmom->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_mass_dw->data), ((
double *)__pyx_v_df_umom_dp->data), ((
double *)__pyx_v_df_umom_du->data), ((
double *)__pyx_v_df_umom_dv->data), ((
double *)__pyx_v_df_umom_dw->data), ((
double *)__pyx_v_df_vmom_dp->data), ((
double *)__pyx_v_df_vmom_du->data), ((
double *)__pyx_v_df_vmom_dv->data), ((
double *)__pyx_v_df_vmom_dw->data), ((
double *)__pyx_v_df_wmom_dp->data), ((
double *)__pyx_v_df_wmom_du->data), ((
double *)__pyx_v_df_wmom_dv->data), ((
double *)__pyx_v_df_wmom_dw->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_flux_wmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_mass_dw->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_umom_du->data), ((
double *)__pyx_v_dflux_umom_dv->data), ((
double *)__pyx_v_dflux_umom_dw->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_vmom_du->data), ((
double *)__pyx_v_dflux_vmom_dv->data), ((
double *)__pyx_v_dflux_vmom_dw->data), ((
double *)__pyx_v_dflux_wmom_dp->data), ((
double *)__pyx_v_dflux_wmom_du->data), ((
double *)__pyx_v_dflux_wmom_dv->data), ((
double *)__pyx_v_dflux_wmom_dw->data), ((
double *)__pyx_v_velocity->data));
28240 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28241 __Pyx_XGIVEREF(__pyx_r);
28242 __Pyx_RefNannyFinishContext();
28255 static PyObject *__pyx_pw_14cnumericalFlux_157calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28256 static PyMethodDef __pyx_mdef_14cnumericalFlux_157calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D = {
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_157calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D, METH_VARARGS|METH_KEYWORDS, 0};
28257 static PyObject *__pyx_pw_14cnumericalFlux_157calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28258 int __pyx_v_nExteriorElementBoundaries_global;
28259 int __pyx_v_nQuadraturePoints_elementBoundary;
28260 int __pyx_v_nSpace;
28261 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
28262 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28263 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28264 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
28265 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
28266 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
28267 PyArrayObject *__pyx_v_n = 0;
28268 PyArrayObject *__pyx_v_bc_f = 0;
28269 PyArrayObject *__pyx_v_bc_fpu = 0;
28270 PyArrayObject *__pyx_v_bc_fpv = 0;
28271 PyArrayObject *__pyx_v_f = 0;
28272 PyArrayObject *__pyx_v_fpu = 0;
28273 PyArrayObject *__pyx_v_fpv = 0;
28274 PyArrayObject *__pyx_v_df_du = 0;
28275 PyArrayObject *__pyx_v_df_dv = 0;
28276 PyArrayObject *__pyx_v_dfpu_dp = 0;
28277 PyArrayObject *__pyx_v_dfpv_dp = 0;
28278 PyArrayObject *__pyx_v_flux = 0;
28279 PyArrayObject *__pyx_v_fluxpu = 0;
28280 PyArrayObject *__pyx_v_fluxpv = 0;
28281 PyArrayObject *__pyx_v_dflux_du = 0;
28282 PyArrayObject *__pyx_v_dflux_dv = 0;
28283 PyArrayObject *__pyx_v_dfluxpu_dp = 0;
28284 PyArrayObject *__pyx_v_dfluxpv_dp = 0;
28285 int __pyx_lineno = 0;
28286 const char *__pyx_filename = NULL;
28287 int __pyx_clineno = 0;
28288 PyObject *__pyx_r = 0;
28289 __Pyx_RefNannyDeclarations
28290 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D (wrapper)", 0);
28292 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_f,&__pyx_n_s_bc_fpu,&__pyx_n_s_bc_fpv,&__pyx_n_s_f,&__pyx_n_s_fpu,&__pyx_n_s_fpv,&__pyx_n_s_df_du,&__pyx_n_s_df_dv,&__pyx_n_s_dfpu_dp,&__pyx_n_s_dfpv_dp,&__pyx_n_s_flux,&__pyx_n_s_fluxpu,&__pyx_n_s_fluxpv,&__pyx_n_s_dflux_du,&__pyx_n_s_dflux_dv,&__pyx_n_s_dfluxpu_dp,&__pyx_n_s_dfluxpv_dp,0};
28293 PyObject* values[27] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28294 if (unlikely(__pyx_kwds)) {
28295 Py_ssize_t kw_args;
28296 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28297 switch (pos_args) {
28298 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
28299 CYTHON_FALLTHROUGH;
28300 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
28301 CYTHON_FALLTHROUGH;
28302 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
28303 CYTHON_FALLTHROUGH;
28304 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
28305 CYTHON_FALLTHROUGH;
28306 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
28307 CYTHON_FALLTHROUGH;
28308 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
28309 CYTHON_FALLTHROUGH;
28310 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
28311 CYTHON_FALLTHROUGH;
28312 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
28313 CYTHON_FALLTHROUGH;
28314 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
28315 CYTHON_FALLTHROUGH;
28316 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28317 CYTHON_FALLTHROUGH;
28318 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28319 CYTHON_FALLTHROUGH;
28320 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28321 CYTHON_FALLTHROUGH;
28322 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28323 CYTHON_FALLTHROUGH;
28324 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28325 CYTHON_FALLTHROUGH;
28326 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28327 CYTHON_FALLTHROUGH;
28328 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28329 CYTHON_FALLTHROUGH;
28330 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28331 CYTHON_FALLTHROUGH;
28332 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28333 CYTHON_FALLTHROUGH;
28334 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28335 CYTHON_FALLTHROUGH;
28336 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28337 CYTHON_FALLTHROUGH;
28338 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28339 CYTHON_FALLTHROUGH;
28340 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28341 CYTHON_FALLTHROUGH;
28342 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28343 CYTHON_FALLTHROUGH;
28344 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28345 CYTHON_FALLTHROUGH;
28346 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28347 CYTHON_FALLTHROUGH;
28348 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28349 CYTHON_FALLTHROUGH;
28350 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28351 CYTHON_FALLTHROUGH;
28353 default:
goto __pyx_L5_argtuple_error;
28355 kw_args = PyDict_Size(__pyx_kwds);
28356 switch (pos_args) {
28358 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
28359 else goto __pyx_L5_argtuple_error;
28360 CYTHON_FALLTHROUGH;
28362 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
28364 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 1); __PYX_ERR(0, 5725, __pyx_L3_error)
28366 CYTHON_FALLTHROUGH;
28368 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
28370 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 2); __PYX_ERR(0, 5725, __pyx_L3_error)
28372 CYTHON_FALLTHROUGH;
28374 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
28376 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 3); __PYX_ERR(0, 5725, __pyx_L3_error)
28378 CYTHON_FALLTHROUGH;
28380 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28382 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 4); __PYX_ERR(0, 5725, __pyx_L3_error)
28384 CYTHON_FALLTHROUGH;
28386 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28388 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 5); __PYX_ERR(0, 5725, __pyx_L3_error)
28390 CYTHON_FALLTHROUGH;
28392 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
28394 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 6); __PYX_ERR(0, 5725, __pyx_L3_error)
28396 CYTHON_FALLTHROUGH;
28398 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
28400 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 7); __PYX_ERR(0, 5725, __pyx_L3_error)
28402 CYTHON_FALLTHROUGH;
28404 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
28406 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 8); __PYX_ERR(0, 5725, __pyx_L3_error)
28408 CYTHON_FALLTHROUGH;
28410 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
28412 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 9); __PYX_ERR(0, 5725, __pyx_L3_error)
28414 CYTHON_FALLTHROUGH;
28416 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
28418 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 10); __PYX_ERR(0, 5725, __pyx_L3_error)
28420 CYTHON_FALLTHROUGH;
28422 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpu)) != 0)) kw_args--;
28424 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 11); __PYX_ERR(0, 5725, __pyx_L3_error)
28426 CYTHON_FALLTHROUGH;
28428 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpv)) != 0)) kw_args--;
28430 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 12); __PYX_ERR(0, 5725, __pyx_L3_error)
28432 CYTHON_FALLTHROUGH;
28434 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28436 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 13); __PYX_ERR(0, 5725, __pyx_L3_error)
28438 CYTHON_FALLTHROUGH;
28440 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpu)) != 0)) kw_args--;
28442 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 14); __PYX_ERR(0, 5725, __pyx_L3_error)
28444 CYTHON_FALLTHROUGH;
28446 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpv)) != 0)) kw_args--;
28448 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 15); __PYX_ERR(0, 5725, __pyx_L3_error)
28450 CYTHON_FALLTHROUGH;
28452 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_du)) != 0)) kw_args--;
28454 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 16); __PYX_ERR(0, 5725, __pyx_L3_error)
28456 CYTHON_FALLTHROUGH;
28458 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dv)) != 0)) kw_args--;
28460 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 17); __PYX_ERR(0, 5725, __pyx_L3_error)
28462 CYTHON_FALLTHROUGH;
28464 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpu_dp)) != 0)) kw_args--;
28466 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 18); __PYX_ERR(0, 5725, __pyx_L3_error)
28468 CYTHON_FALLTHROUGH;
28470 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpv_dp)) != 0)) kw_args--;
28472 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 19); __PYX_ERR(0, 5725, __pyx_L3_error)
28474 CYTHON_FALLTHROUGH;
28476 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
28478 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 20); __PYX_ERR(0, 5725, __pyx_L3_error)
28480 CYTHON_FALLTHROUGH;
28482 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpu)) != 0)) kw_args--;
28484 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 21); __PYX_ERR(0, 5725, __pyx_L3_error)
28486 CYTHON_FALLTHROUGH;
28488 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpv)) != 0)) kw_args--;
28490 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 22); __PYX_ERR(0, 5725, __pyx_L3_error)
28492 CYTHON_FALLTHROUGH;
28494 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_du)) != 0)) kw_args--;
28496 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 23); __PYX_ERR(0, 5725, __pyx_L3_error)
28498 CYTHON_FALLTHROUGH;
28500 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dv)) != 0)) kw_args--;
28502 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 24); __PYX_ERR(0, 5725, __pyx_L3_error)
28504 CYTHON_FALLTHROUGH;
28506 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpu_dp)) != 0)) kw_args--;
28508 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 25); __PYX_ERR(0, 5725, __pyx_L3_error)
28510 CYTHON_FALLTHROUGH;
28512 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpv_dp)) != 0)) kw_args--;
28514 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, 26); __PYX_ERR(0, 5725, __pyx_L3_error)
28517 if (unlikely(kw_args > 0)) {
28518 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D") < 0)) __PYX_ERR(0, 5725, __pyx_L3_error)
28520 }
else if (PyTuple_GET_SIZE(__pyx_args) != 27) {
28521 goto __pyx_L5_argtuple_error;
28523 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28524 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28525 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28526 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28527 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28528 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28529 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28530 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28531 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28532 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28533 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28534 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28535 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28536 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28537 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28538 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28539 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28540 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28541 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
28542 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
28543 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
28544 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
28545 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
28546 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
28547 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
28548 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
28549 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
28551 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5725, __pyx_L3_error)
28552 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5726, __pyx_L3_error)
28553 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5727, __pyx_L3_error)
28554 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
28555 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
28556 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
28557 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[6]);
28558 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[7]);
28559 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[8]);
28560 __pyx_v_n = ((PyArrayObject *)values[9]);
28561 __pyx_v_bc_f = ((PyArrayObject *)values[10]);
28562 __pyx_v_bc_fpu = ((PyArrayObject *)values[11]);
28563 __pyx_v_bc_fpv = ((PyArrayObject *)values[12]);
28564 __pyx_v_f = ((PyArrayObject *)values[13]);
28565 __pyx_v_fpu = ((PyArrayObject *)values[14]);
28566 __pyx_v_fpv = ((PyArrayObject *)values[15]);
28567 __pyx_v_df_du = ((PyArrayObject *)values[16]);
28568 __pyx_v_df_dv = ((PyArrayObject *)values[17]);
28569 __pyx_v_dfpu_dp = ((PyArrayObject *)values[18]);
28570 __pyx_v_dfpv_dp = ((PyArrayObject *)values[19]);
28571 __pyx_v_flux = ((PyArrayObject *)values[20]);
28572 __pyx_v_fluxpu = ((PyArrayObject *)values[21]);
28573 __pyx_v_fluxpv = ((PyArrayObject *)values[22]);
28574 __pyx_v_dflux_du = ((PyArrayObject *)values[23]);
28575 __pyx_v_dflux_dv = ((PyArrayObject *)values[24]);
28576 __pyx_v_dfluxpu_dp = ((PyArrayObject *)values[25]);
28577 __pyx_v_dfluxpv_dp = ((PyArrayObject *)values[26]);
28579 goto __pyx_L4_argument_unpacking_done;
28580 __pyx_L5_argtuple_error:;
28581 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 1, 27, 27, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5725, __pyx_L3_error)
28583 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
28584 __Pyx_RefNannyFinishContext();
28586 __pyx_L4_argument_unpacking_done:;
28587 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5728, __pyx_L1_error)
28588 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5729, __pyx_L1_error)
28589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5730, __pyx_L1_error)
28590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5731, __pyx_L1_error)
28591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5732, __pyx_L1_error)
28592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5733, __pyx_L1_error)
28593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5734, __pyx_L1_error)
28594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5735, __pyx_L1_error)
28595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpu), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpu", 0))) __PYX_ERR(0, 5736, __pyx_L1_error)
28596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpv), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpv", 0))) __PYX_ERR(0, 5737, __pyx_L1_error)
28597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5738, __pyx_L1_error)
28598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpu), __pyx_ptype_5numpy_ndarray, 1,
"fpu", 0))) __PYX_ERR(0, 5739, __pyx_L1_error)
28599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpv), __pyx_ptype_5numpy_ndarray, 1,
"fpv", 0))) __PYX_ERR(0, 5740, __pyx_L1_error)
28600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_du), __pyx_ptype_5numpy_ndarray, 1,
"df_du", 0))) __PYX_ERR(0, 5741, __pyx_L1_error)
28601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_dv", 0))) __PYX_ERR(0, 5742, __pyx_L1_error)
28602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpu_dp", 0))) __PYX_ERR(0, 5743, __pyx_L1_error)
28603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpv_dp", 0))) __PYX_ERR(0, 5744, __pyx_L1_error)
28604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5745, __pyx_L1_error)
28605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpu), __pyx_ptype_5numpy_ndarray, 1,
"fluxpu", 0))) __PYX_ERR(0, 5746, __pyx_L1_error)
28606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpv), __pyx_ptype_5numpy_ndarray, 1,
"fluxpv", 0))) __PYX_ERR(0, 5747, __pyx_L1_error)
28607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_du", 0))) __PYX_ERR(0, 5748, __pyx_L1_error)
28608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dv", 0))) __PYX_ERR(0, 5749, __pyx_L1_error)
28609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpu_dp", 0))) __PYX_ERR(0, 5750, __pyx_L1_error)
28610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpv_dp", 0))) __PYX_ERR(0, 5751, __pyx_L1_error)
28611 __pyx_r = __pyx_pf_14cnumericalFlux_156calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_f, __pyx_v_bc_fpu, __pyx_v_bc_fpv, __pyx_v_f, __pyx_v_fpu, __pyx_v_fpv, __pyx_v_df_du, __pyx_v_df_dv, __pyx_v_dfpu_dp, __pyx_v_dfpv_dp, __pyx_v_flux, __pyx_v_fluxpu, __pyx_v_fluxpv, __pyx_v_dflux_du, __pyx_v_dflux_dv, __pyx_v_dfluxpu_dp, __pyx_v_dfluxpv_dp);
28618 __Pyx_RefNannyFinishContext();
28622 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) {
28623 PyObject *__pyx_r = NULL;
28624 __Pyx_RefNannyDeclarations
28625 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D", 0);
28634 calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data));
28645 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28646 __Pyx_XGIVEREF(__pyx_r);
28647 __Pyx_RefNannyFinishContext();
28660 static PyObject *__pyx_pw_14cnumericalFlux_159calculateExteriorNumericalAdvectiveFluxStokesP3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28661 static PyMethodDef __pyx_mdef_14cnumericalFlux_159calculateExteriorNumericalAdvectiveFluxStokesP3D = {
"calculateExteriorNumericalAdvectiveFluxStokesP3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_159calculateExteriorNumericalAdvectiveFluxStokesP3D, METH_VARARGS|METH_KEYWORDS, 0};
28662 static PyObject *__pyx_pw_14cnumericalFlux_159calculateExteriorNumericalAdvectiveFluxStokesP3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28663 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
28664 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28665 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28666 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
28667 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
28668 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
28669 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
28670 PyArrayObject *__pyx_v_n = 0;
28671 PyArrayObject *__pyx_v_bc_f = 0;
28672 PyArrayObject *__pyx_v_bc_fpu = 0;
28673 PyArrayObject *__pyx_v_bc_fpv = 0;
28674 PyArrayObject *__pyx_v_bc_fpw = 0;
28675 PyArrayObject *__pyx_v_f = 0;
28676 PyArrayObject *__pyx_v_fpu = 0;
28677 PyArrayObject *__pyx_v_fpv = 0;
28678 PyArrayObject *__pyx_v_fpw = 0;
28679 PyArrayObject *__pyx_v_df_du = 0;
28680 PyArrayObject *__pyx_v_df_dv = 0;
28681 PyArrayObject *__pyx_v_df_dw = 0;
28682 PyArrayObject *__pyx_v_dfpu_dp = 0;
28683 PyArrayObject *__pyx_v_dfpv_dp = 0;
28684 PyArrayObject *__pyx_v_dfpw_dp = 0;
28685 PyArrayObject *__pyx_v_flux = 0;
28686 PyArrayObject *__pyx_v_fluxpu = 0;
28687 PyArrayObject *__pyx_v_fluxpv = 0;
28688 PyArrayObject *__pyx_v_fluxpw = 0;
28689 PyArrayObject *__pyx_v_dflux_du = 0;
28690 PyArrayObject *__pyx_v_dflux_dv = 0;
28691 PyArrayObject *__pyx_v_dflux_dw = 0;
28692 PyArrayObject *__pyx_v_dfluxpu_dp = 0;
28693 PyArrayObject *__pyx_v_dfluxpv_dp = 0;
28694 PyArrayObject *__pyx_v_dfluxpw_dp = 0;
28695 int __pyx_lineno = 0;
28696 const char *__pyx_filename = NULL;
28697 int __pyx_clineno = 0;
28698 PyObject *__pyx_r = 0;
28699 __Pyx_RefNannyDeclarations
28700 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokesP3D (wrapper)", 0);
28702 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_f,&__pyx_n_s_bc_fpu,&__pyx_n_s_bc_fpv,&__pyx_n_s_bc_fpw,&__pyx_n_s_f,&__pyx_n_s_fpu,&__pyx_n_s_fpv,&__pyx_n_s_fpw,&__pyx_n_s_df_du,&__pyx_n_s_df_dv,&__pyx_n_s_df_dw,&__pyx_n_s_dfpu_dp,&__pyx_n_s_dfpv_dp,&__pyx_n_s_dfpw_dp,&__pyx_n_s_flux,&__pyx_n_s_fluxpu,&__pyx_n_s_fluxpv,&__pyx_n_s_fluxpw,&__pyx_n_s_dflux_du,&__pyx_n_s_dflux_dv,&__pyx_n_s_dflux_dw,&__pyx_n_s_dfluxpu_dp,&__pyx_n_s_dfluxpv_dp,&__pyx_n_s_dfluxpw_dp,0};
28703 PyObject* values[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
28704 if (unlikely(__pyx_kwds)) {
28705 Py_ssize_t kw_args;
28706 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28707 switch (pos_args) {
28708 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
28709 CYTHON_FALLTHROUGH;
28710 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
28711 CYTHON_FALLTHROUGH;
28712 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
28713 CYTHON_FALLTHROUGH;
28714 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
28715 CYTHON_FALLTHROUGH;
28716 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
28717 CYTHON_FALLTHROUGH;
28718 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
28719 CYTHON_FALLTHROUGH;
28720 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
28721 CYTHON_FALLTHROUGH;
28722 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
28723 CYTHON_FALLTHROUGH;
28724 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
28725 CYTHON_FALLTHROUGH;
28726 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
28727 CYTHON_FALLTHROUGH;
28728 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
28729 CYTHON_FALLTHROUGH;
28730 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
28731 CYTHON_FALLTHROUGH;
28732 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
28733 CYTHON_FALLTHROUGH;
28734 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
28735 CYTHON_FALLTHROUGH;
28736 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28737 CYTHON_FALLTHROUGH;
28738 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28739 CYTHON_FALLTHROUGH;
28740 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28741 CYTHON_FALLTHROUGH;
28742 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28743 CYTHON_FALLTHROUGH;
28744 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28745 CYTHON_FALLTHROUGH;
28746 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28747 CYTHON_FALLTHROUGH;
28748 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28749 CYTHON_FALLTHROUGH;
28750 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28751 CYTHON_FALLTHROUGH;
28752 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28753 CYTHON_FALLTHROUGH;
28754 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28755 CYTHON_FALLTHROUGH;
28756 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28757 CYTHON_FALLTHROUGH;
28758 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28759 CYTHON_FALLTHROUGH;
28760 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28761 CYTHON_FALLTHROUGH;
28762 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28763 CYTHON_FALLTHROUGH;
28764 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28765 CYTHON_FALLTHROUGH;
28766 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28767 CYTHON_FALLTHROUGH;
28768 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28769 CYTHON_FALLTHROUGH;
28770 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28771 CYTHON_FALLTHROUGH;
28773 default:
goto __pyx_L5_argtuple_error;
28775 kw_args = PyDict_Size(__pyx_kwds);
28776 switch (pos_args) {
28778 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
28779 else goto __pyx_L5_argtuple_error;
28780 CYTHON_FALLTHROUGH;
28782 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28784 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 1); __PYX_ERR(0, 5779, __pyx_L3_error)
28786 CYTHON_FALLTHROUGH;
28788 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28790 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 2); __PYX_ERR(0, 5779, __pyx_L3_error)
28792 CYTHON_FALLTHROUGH;
28794 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
28796 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 3); __PYX_ERR(0, 5779, __pyx_L3_error)
28798 CYTHON_FALLTHROUGH;
28800 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
28802 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 4); __PYX_ERR(0, 5779, __pyx_L3_error)
28804 CYTHON_FALLTHROUGH;
28806 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
28808 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 5); __PYX_ERR(0, 5779, __pyx_L3_error)
28810 CYTHON_FALLTHROUGH;
28812 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
28814 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 6); __PYX_ERR(0, 5779, __pyx_L3_error)
28816 CYTHON_FALLTHROUGH;
28818 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
28820 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 7); __PYX_ERR(0, 5779, __pyx_L3_error)
28822 CYTHON_FALLTHROUGH;
28824 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
28826 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 8); __PYX_ERR(0, 5779, __pyx_L3_error)
28828 CYTHON_FALLTHROUGH;
28830 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpu)) != 0)) kw_args--;
28832 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 9); __PYX_ERR(0, 5779, __pyx_L3_error)
28834 CYTHON_FALLTHROUGH;
28836 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpv)) != 0)) kw_args--;
28838 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 10); __PYX_ERR(0, 5779, __pyx_L3_error)
28840 CYTHON_FALLTHROUGH;
28842 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpw)) != 0)) kw_args--;
28844 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 11); __PYX_ERR(0, 5779, __pyx_L3_error)
28846 CYTHON_FALLTHROUGH;
28848 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28850 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 12); __PYX_ERR(0, 5779, __pyx_L3_error)
28852 CYTHON_FALLTHROUGH;
28854 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpu)) != 0)) kw_args--;
28856 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 13); __PYX_ERR(0, 5779, __pyx_L3_error)
28858 CYTHON_FALLTHROUGH;
28860 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpv)) != 0)) kw_args--;
28862 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 14); __PYX_ERR(0, 5779, __pyx_L3_error)
28864 CYTHON_FALLTHROUGH;
28866 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpw)) != 0)) kw_args--;
28868 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 15); __PYX_ERR(0, 5779, __pyx_L3_error)
28870 CYTHON_FALLTHROUGH;
28872 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_du)) != 0)) kw_args--;
28874 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 16); __PYX_ERR(0, 5779, __pyx_L3_error)
28876 CYTHON_FALLTHROUGH;
28878 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dv)) != 0)) kw_args--;
28880 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 17); __PYX_ERR(0, 5779, __pyx_L3_error)
28882 CYTHON_FALLTHROUGH;
28884 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dw)) != 0)) kw_args--;
28886 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 18); __PYX_ERR(0, 5779, __pyx_L3_error)
28888 CYTHON_FALLTHROUGH;
28890 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpu_dp)) != 0)) kw_args--;
28892 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 19); __PYX_ERR(0, 5779, __pyx_L3_error)
28894 CYTHON_FALLTHROUGH;
28896 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpv_dp)) != 0)) kw_args--;
28898 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 20); __PYX_ERR(0, 5779, __pyx_L3_error)
28900 CYTHON_FALLTHROUGH;
28902 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpw_dp)) != 0)) kw_args--;
28904 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 21); __PYX_ERR(0, 5779, __pyx_L3_error)
28906 CYTHON_FALLTHROUGH;
28908 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
28910 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 22); __PYX_ERR(0, 5779, __pyx_L3_error)
28912 CYTHON_FALLTHROUGH;
28914 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpu)) != 0)) kw_args--;
28916 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 23); __PYX_ERR(0, 5779, __pyx_L3_error)
28918 CYTHON_FALLTHROUGH;
28920 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpv)) != 0)) kw_args--;
28922 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 24); __PYX_ERR(0, 5779, __pyx_L3_error)
28924 CYTHON_FALLTHROUGH;
28926 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpw)) != 0)) kw_args--;
28928 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 25); __PYX_ERR(0, 5779, __pyx_L3_error)
28930 CYTHON_FALLTHROUGH;
28932 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_du)) != 0)) kw_args--;
28934 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 26); __PYX_ERR(0, 5779, __pyx_L3_error)
28936 CYTHON_FALLTHROUGH;
28938 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dv)) != 0)) kw_args--;
28940 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 27); __PYX_ERR(0, 5779, __pyx_L3_error)
28942 CYTHON_FALLTHROUGH;
28944 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dw)) != 0)) kw_args--;
28946 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 28); __PYX_ERR(0, 5779, __pyx_L3_error)
28948 CYTHON_FALLTHROUGH;
28950 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpu_dp)) != 0)) kw_args--;
28952 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 29); __PYX_ERR(0, 5779, __pyx_L3_error)
28954 CYTHON_FALLTHROUGH;
28956 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpv_dp)) != 0)) kw_args--;
28958 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 30); __PYX_ERR(0, 5779, __pyx_L3_error)
28960 CYTHON_FALLTHROUGH;
28962 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpw_dp)) != 0)) kw_args--;
28964 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, 31); __PYX_ERR(0, 5779, __pyx_L3_error)
28967 if (unlikely(kw_args > 0)) {
28968 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFluxStokesP3D") < 0)) __PYX_ERR(0, 5779, __pyx_L3_error)
28970 }
else if (PyTuple_GET_SIZE(__pyx_args) != 32) {
28971 goto __pyx_L5_argtuple_error;
28973 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28974 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28975 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28976 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28977 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28978 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28979 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28980 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28981 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
28982 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
28983 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
28984 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
28985 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
28986 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
28987 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
28988 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
28989 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
28990 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
28991 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
28992 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
28993 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
28994 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
28995 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
28996 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
28997 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
28998 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
28999 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
29000 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
29001 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
29002 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
29003 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
29004 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
29006 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
29007 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29008 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29009 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
29010 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
29011 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
29012 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[6]);
29013 __pyx_v_n = ((PyArrayObject *)values[7]);
29014 __pyx_v_bc_f = ((PyArrayObject *)values[8]);
29015 __pyx_v_bc_fpu = ((PyArrayObject *)values[9]);
29016 __pyx_v_bc_fpv = ((PyArrayObject *)values[10]);
29017 __pyx_v_bc_fpw = ((PyArrayObject *)values[11]);
29018 __pyx_v_f = ((PyArrayObject *)values[12]);
29019 __pyx_v_fpu = ((PyArrayObject *)values[13]);
29020 __pyx_v_fpv = ((PyArrayObject *)values[14]);
29021 __pyx_v_fpw = ((PyArrayObject *)values[15]);
29022 __pyx_v_df_du = ((PyArrayObject *)values[16]);
29023 __pyx_v_df_dv = ((PyArrayObject *)values[17]);
29024 __pyx_v_df_dw = ((PyArrayObject *)values[18]);
29025 __pyx_v_dfpu_dp = ((PyArrayObject *)values[19]);
29026 __pyx_v_dfpv_dp = ((PyArrayObject *)values[20]);
29027 __pyx_v_dfpw_dp = ((PyArrayObject *)values[21]);
29028 __pyx_v_flux = ((PyArrayObject *)values[22]);
29029 __pyx_v_fluxpu = ((PyArrayObject *)values[23]);
29030 __pyx_v_fluxpv = ((PyArrayObject *)values[24]);
29031 __pyx_v_fluxpw = ((PyArrayObject *)values[25]);
29032 __pyx_v_dflux_du = ((PyArrayObject *)values[26]);
29033 __pyx_v_dflux_dv = ((PyArrayObject *)values[27]);
29034 __pyx_v_dflux_dw = ((PyArrayObject *)values[28]);
29035 __pyx_v_dfluxpu_dp = ((PyArrayObject *)values[29]);
29036 __pyx_v_dfluxpv_dp = ((PyArrayObject *)values[30]);
29037 __pyx_v_dfluxpw_dp = ((PyArrayObject *)values[31]);
29039 goto __pyx_L4_argument_unpacking_done;
29040 __pyx_L5_argtuple_error:;
29041 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 1, 32, 32, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5779, __pyx_L3_error)
29043 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFluxStokesP3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
29044 __Pyx_RefNannyFinishContext();
29046 __pyx_L4_argument_unpacking_done:;
29047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5779, __pyx_L1_error)
29048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5780, __pyx_L1_error)
29049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5781, __pyx_L1_error)
29050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5782, __pyx_L1_error)
29051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5783, __pyx_L1_error)
29052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5784, __pyx_L1_error)
29053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 5785, __pyx_L1_error)
29054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5786, __pyx_L1_error)
29055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5787, __pyx_L1_error)
29056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpu), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpu", 0))) __PYX_ERR(0, 5788, __pyx_L1_error)
29057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpv), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpv", 0))) __PYX_ERR(0, 5789, __pyx_L1_error)
29058 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpw), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpw", 0))) __PYX_ERR(0, 5790, __pyx_L1_error)
29059 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5791, __pyx_L1_error)
29060 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpu), __pyx_ptype_5numpy_ndarray, 1,
"fpu", 0))) __PYX_ERR(0, 5792, __pyx_L1_error)
29061 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpv), __pyx_ptype_5numpy_ndarray, 1,
"fpv", 0))) __PYX_ERR(0, 5793, __pyx_L1_error)
29062 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpw), __pyx_ptype_5numpy_ndarray, 1,
"fpw", 0))) __PYX_ERR(0, 5794, __pyx_L1_error)
29063 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_du), __pyx_ptype_5numpy_ndarray, 1,
"df_du", 0))) __PYX_ERR(0, 5795, __pyx_L1_error)
29064 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_dv", 0))) __PYX_ERR(0, 5796, __pyx_L1_error)
29065 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_dw", 0))) __PYX_ERR(0, 5797, __pyx_L1_error)
29066 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpu_dp", 0))) __PYX_ERR(0, 5798, __pyx_L1_error)
29067 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpv_dp", 0))) __PYX_ERR(0, 5799, __pyx_L1_error)
29068 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpw_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpw_dp", 0))) __PYX_ERR(0, 5800, __pyx_L1_error)
29069 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5801, __pyx_L1_error)
29070 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpu), __pyx_ptype_5numpy_ndarray, 1,
"fluxpu", 0))) __PYX_ERR(0, 5802, __pyx_L1_error)
29071 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpv), __pyx_ptype_5numpy_ndarray, 1,
"fluxpv", 0))) __PYX_ERR(0, 5803, __pyx_L1_error)
29072 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpw), __pyx_ptype_5numpy_ndarray, 1,
"fluxpw", 0))) __PYX_ERR(0, 5804, __pyx_L1_error)
29073 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_du", 0))) __PYX_ERR(0, 5805, __pyx_L1_error)
29074 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dv", 0))) __PYX_ERR(0, 5806, __pyx_L1_error)
29075 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dw", 0))) __PYX_ERR(0, 5807, __pyx_L1_error)
29076 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpu_dp", 0))) __PYX_ERR(0, 5808, __pyx_L1_error)
29077 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpv_dp", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
29078 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpw_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpw_dp", 0))) __PYX_ERR(0, 5810, __pyx_L1_error)
29079 __pyx_r = __pyx_pf_14cnumericalFlux_158calculateExteriorNumericalAdvectiveFluxStokesP3D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_f, __pyx_v_bc_fpu, __pyx_v_bc_fpv, __pyx_v_bc_fpw, __pyx_v_f, __pyx_v_fpu, __pyx_v_fpv, __pyx_v_fpw, __pyx_v_df_du, __pyx_v_df_dv, __pyx_v_df_dw, __pyx_v_dfpu_dp, __pyx_v_dfpv_dp, __pyx_v_dfpw_dp, __pyx_v_flux, __pyx_v_fluxpu, __pyx_v_fluxpv, __pyx_v_fluxpw, __pyx_v_dflux_du, __pyx_v_dflux_dv, __pyx_v_dflux_dw, __pyx_v_dfluxpu_dp, __pyx_v_dfluxpv_dp, __pyx_v_dfluxpw_dp);
29086 __Pyx_RefNannyFinishContext();
29090 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) {
29091 PyObject *__pyx_r = NULL;
29092 __Pyx_RefNannyDeclarations
29094 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFluxStokesP3D", 0);
29103 __pyx_t_1 = ((__pyx_v_f->nd > 3) != 0);
29113 calculateExteriorNumericalAdvectiveFluxStokesP3D((__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_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_bc_fpw->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_fpw->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_df_dw->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_dfpw_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_fluxpw->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dflux_dw->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data), ((
double *)__pyx_v_dfluxpw_dp->data));
29141 calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D((__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_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_bc_fpw->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_fpw->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_df_dw->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_dfpw_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_fluxpw->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dflux_dw->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data), ((
double *)__pyx_v_dfluxpw_dp->data));
29154 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29155 __Pyx_XGIVEREF(__pyx_r);
29156 __Pyx_RefNannyFinishContext();
29169 static PyObject *__pyx_pw_14cnumericalFlux_161calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29170 static PyMethodDef __pyx_mdef_14cnumericalFlux_161calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D = {
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_161calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D, METH_VARARGS|METH_KEYWORDS, 0};
29171 static PyObject *__pyx_pw_14cnumericalFlux_161calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29172 int __pyx_v_nExteriorElementBoundaries_global;
29173 int __pyx_v_nQuadraturePoints_elementBoundary;
29174 int __pyx_v_nSpace;
29175 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29176 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29177 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29178 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
29179 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
29180 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
29181 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
29182 PyArrayObject *__pyx_v_n = 0;
29183 PyArrayObject *__pyx_v_bc_f = 0;
29184 PyArrayObject *__pyx_v_bc_fpu = 0;
29185 PyArrayObject *__pyx_v_bc_fpv = 0;
29186 PyArrayObject *__pyx_v_bc_fpw = 0;
29187 PyArrayObject *__pyx_v_f = 0;
29188 PyArrayObject *__pyx_v_fpu = 0;
29189 PyArrayObject *__pyx_v_fpv = 0;
29190 PyArrayObject *__pyx_v_fpw = 0;
29191 PyArrayObject *__pyx_v_df_du = 0;
29192 PyArrayObject *__pyx_v_df_dv = 0;
29193 PyArrayObject *__pyx_v_df_dw = 0;
29194 PyArrayObject *__pyx_v_dfpu_dp = 0;
29195 PyArrayObject *__pyx_v_dfpv_dp = 0;
29196 PyArrayObject *__pyx_v_dfpw_dp = 0;
29197 PyArrayObject *__pyx_v_flux = 0;
29198 PyArrayObject *__pyx_v_fluxpu = 0;
29199 PyArrayObject *__pyx_v_fluxpv = 0;
29200 PyArrayObject *__pyx_v_fluxpw = 0;
29201 PyArrayObject *__pyx_v_dflux_du = 0;
29202 PyArrayObject *__pyx_v_dflux_dv = 0;
29203 PyArrayObject *__pyx_v_dflux_dw = 0;
29204 PyArrayObject *__pyx_v_dfluxpu_dp = 0;
29205 PyArrayObject *__pyx_v_dfluxpv_dp = 0;
29206 PyArrayObject *__pyx_v_dfluxpw_dp = 0;
29207 int __pyx_lineno = 0;
29208 const char *__pyx_filename = NULL;
29209 int __pyx_clineno = 0;
29210 PyObject *__pyx_r = 0;
29211 __Pyx_RefNannyDeclarations
29212 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D (wrapper)", 0);
29214 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_f,&__pyx_n_s_bc_fpu,&__pyx_n_s_bc_fpv,&__pyx_n_s_bc_fpw,&__pyx_n_s_f,&__pyx_n_s_fpu,&__pyx_n_s_fpv,&__pyx_n_s_fpw,&__pyx_n_s_df_du,&__pyx_n_s_df_dv,&__pyx_n_s_df_dw,&__pyx_n_s_dfpu_dp,&__pyx_n_s_dfpv_dp,&__pyx_n_s_dfpw_dp,&__pyx_n_s_flux,&__pyx_n_s_fluxpu,&__pyx_n_s_fluxpv,&__pyx_n_s_fluxpw,&__pyx_n_s_dflux_du,&__pyx_n_s_dflux_dv,&__pyx_n_s_dflux_dw,&__pyx_n_s_dfluxpu_dp,&__pyx_n_s_dfluxpv_dp,&__pyx_n_s_dfluxpw_dp,0};
29215 PyObject* values[35] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
29216 if (unlikely(__pyx_kwds)) {
29217 Py_ssize_t kw_args;
29218 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29219 switch (pos_args) {
29220 case 35: values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
29221 CYTHON_FALLTHROUGH;
29222 case 34: values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
29223 CYTHON_FALLTHROUGH;
29224 case 33: values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
29225 CYTHON_FALLTHROUGH;
29226 case 32: values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
29227 CYTHON_FALLTHROUGH;
29228 case 31: values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
29229 CYTHON_FALLTHROUGH;
29230 case 30: values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
29231 CYTHON_FALLTHROUGH;
29232 case 29: values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
29233 CYTHON_FALLTHROUGH;
29234 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
29235 CYTHON_FALLTHROUGH;
29236 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
29237 CYTHON_FALLTHROUGH;
29238 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
29239 CYTHON_FALLTHROUGH;
29240 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
29241 CYTHON_FALLTHROUGH;
29242 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
29243 CYTHON_FALLTHROUGH;
29244 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
29245 CYTHON_FALLTHROUGH;
29246 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
29247 CYTHON_FALLTHROUGH;
29248 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
29249 CYTHON_FALLTHROUGH;
29250 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
29251 CYTHON_FALLTHROUGH;
29252 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
29253 CYTHON_FALLTHROUGH;
29254 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29255 CYTHON_FALLTHROUGH;
29256 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29257 CYTHON_FALLTHROUGH;
29258 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29259 CYTHON_FALLTHROUGH;
29260 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29261 CYTHON_FALLTHROUGH;
29262 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29263 CYTHON_FALLTHROUGH;
29264 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29265 CYTHON_FALLTHROUGH;
29266 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29267 CYTHON_FALLTHROUGH;
29268 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29269 CYTHON_FALLTHROUGH;
29270 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29271 CYTHON_FALLTHROUGH;
29272 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29273 CYTHON_FALLTHROUGH;
29274 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29275 CYTHON_FALLTHROUGH;
29276 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29277 CYTHON_FALLTHROUGH;
29278 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29279 CYTHON_FALLTHROUGH;
29280 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29281 CYTHON_FALLTHROUGH;
29282 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29283 CYTHON_FALLTHROUGH;
29284 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29285 CYTHON_FALLTHROUGH;
29286 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29287 CYTHON_FALLTHROUGH;
29288 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29289 CYTHON_FALLTHROUGH;
29291 default:
goto __pyx_L5_argtuple_error;
29293 kw_args = PyDict_Size(__pyx_kwds);
29294 switch (pos_args) {
29296 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
29297 else goto __pyx_L5_argtuple_error;
29298 CYTHON_FALLTHROUGH;
29300 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
29302 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 1); __PYX_ERR(0, 5884, __pyx_L3_error)
29304 CYTHON_FALLTHROUGH;
29306 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
29308 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 2); __PYX_ERR(0, 5884, __pyx_L3_error)
29310 CYTHON_FALLTHROUGH;
29312 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
29314 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 3); __PYX_ERR(0, 5884, __pyx_L3_error)
29316 CYTHON_FALLTHROUGH;
29318 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29320 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 4); __PYX_ERR(0, 5884, __pyx_L3_error)
29322 CYTHON_FALLTHROUGH;
29324 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29326 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 5); __PYX_ERR(0, 5884, __pyx_L3_error)
29328 CYTHON_FALLTHROUGH;
29330 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
29332 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 6); __PYX_ERR(0, 5884, __pyx_L3_error)
29334 CYTHON_FALLTHROUGH;
29336 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
29338 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 7); __PYX_ERR(0, 5884, __pyx_L3_error)
29340 CYTHON_FALLTHROUGH;
29342 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
29344 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 8); __PYX_ERR(0, 5884, __pyx_L3_error)
29346 CYTHON_FALLTHROUGH;
29348 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
29350 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 9); __PYX_ERR(0, 5884, __pyx_L3_error)
29352 CYTHON_FALLTHROUGH;
29354 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
29356 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 10); __PYX_ERR(0, 5884, __pyx_L3_error)
29358 CYTHON_FALLTHROUGH;
29360 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
29362 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 11); __PYX_ERR(0, 5884, __pyx_L3_error)
29364 CYTHON_FALLTHROUGH;
29366 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpu)) != 0)) kw_args--;
29368 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 12); __PYX_ERR(0, 5884, __pyx_L3_error)
29370 CYTHON_FALLTHROUGH;
29372 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpv)) != 0)) kw_args--;
29374 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 13); __PYX_ERR(0, 5884, __pyx_L3_error)
29376 CYTHON_FALLTHROUGH;
29378 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fpw)) != 0)) kw_args--;
29380 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 14); __PYX_ERR(0, 5884, __pyx_L3_error)
29382 CYTHON_FALLTHROUGH;
29384 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
29386 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 15); __PYX_ERR(0, 5884, __pyx_L3_error)
29388 CYTHON_FALLTHROUGH;
29390 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpu)) != 0)) kw_args--;
29392 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 16); __PYX_ERR(0, 5884, __pyx_L3_error)
29394 CYTHON_FALLTHROUGH;
29396 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpv)) != 0)) kw_args--;
29398 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 17); __PYX_ERR(0, 5884, __pyx_L3_error)
29400 CYTHON_FALLTHROUGH;
29402 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fpw)) != 0)) kw_args--;
29404 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 18); __PYX_ERR(0, 5884, __pyx_L3_error)
29406 CYTHON_FALLTHROUGH;
29408 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_du)) != 0)) kw_args--;
29410 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 19); __PYX_ERR(0, 5884, __pyx_L3_error)
29412 CYTHON_FALLTHROUGH;
29414 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dv)) != 0)) kw_args--;
29416 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 20); __PYX_ERR(0, 5884, __pyx_L3_error)
29418 CYTHON_FALLTHROUGH;
29420 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_dw)) != 0)) kw_args--;
29422 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 21); __PYX_ERR(0, 5884, __pyx_L3_error)
29424 CYTHON_FALLTHROUGH;
29426 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpu_dp)) != 0)) kw_args--;
29428 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 22); __PYX_ERR(0, 5884, __pyx_L3_error)
29430 CYTHON_FALLTHROUGH;
29432 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpv_dp)) != 0)) kw_args--;
29434 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 23); __PYX_ERR(0, 5884, __pyx_L3_error)
29436 CYTHON_FALLTHROUGH;
29438 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfpw_dp)) != 0)) kw_args--;
29440 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 24); __PYX_ERR(0, 5884, __pyx_L3_error)
29442 CYTHON_FALLTHROUGH;
29444 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
29446 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 25); __PYX_ERR(0, 5884, __pyx_L3_error)
29448 CYTHON_FALLTHROUGH;
29450 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpu)) != 0)) kw_args--;
29452 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 26); __PYX_ERR(0, 5884, __pyx_L3_error)
29454 CYTHON_FALLTHROUGH;
29456 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpv)) != 0)) kw_args--;
29458 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 27); __PYX_ERR(0, 5884, __pyx_L3_error)
29460 CYTHON_FALLTHROUGH;
29462 if (likely((values[28] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxpw)) != 0)) kw_args--;
29464 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 28); __PYX_ERR(0, 5884, __pyx_L3_error)
29466 CYTHON_FALLTHROUGH;
29468 if (likely((values[29] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_du)) != 0)) kw_args--;
29470 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 29); __PYX_ERR(0, 5884, __pyx_L3_error)
29472 CYTHON_FALLTHROUGH;
29474 if (likely((values[30] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dv)) != 0)) kw_args--;
29476 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 30); __PYX_ERR(0, 5884, __pyx_L3_error)
29478 CYTHON_FALLTHROUGH;
29480 if (likely((values[31] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_dw)) != 0)) kw_args--;
29482 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 31); __PYX_ERR(0, 5884, __pyx_L3_error)
29484 CYTHON_FALLTHROUGH;
29486 if (likely((values[32] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpu_dp)) != 0)) kw_args--;
29488 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 32); __PYX_ERR(0, 5884, __pyx_L3_error)
29490 CYTHON_FALLTHROUGH;
29492 if (likely((values[33] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpv_dp)) != 0)) kw_args--;
29494 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 33); __PYX_ERR(0, 5884, __pyx_L3_error)
29496 CYTHON_FALLTHROUGH;
29498 if (likely((values[34] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxpw_dp)) != 0)) kw_args--;
29500 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, 34); __PYX_ERR(0, 5884, __pyx_L3_error)
29503 if (unlikely(kw_args > 0)) {
29504 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D") < 0)) __PYX_ERR(0, 5884, __pyx_L3_error)
29506 }
else if (PyTuple_GET_SIZE(__pyx_args) != 35) {
29507 goto __pyx_L5_argtuple_error;
29509 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29510 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29511 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29512 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29513 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29514 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29515 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29516 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29517 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29518 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29519 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29520 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29521 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29522 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29523 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
29524 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
29525 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
29526 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
29527 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
29528 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
29529 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
29530 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
29531 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
29532 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
29533 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
29534 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
29535 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
29536 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
29537 values[28] = PyTuple_GET_ITEM(__pyx_args, 28);
29538 values[29] = PyTuple_GET_ITEM(__pyx_args, 29);
29539 values[30] = PyTuple_GET_ITEM(__pyx_args, 30);
29540 values[31] = PyTuple_GET_ITEM(__pyx_args, 31);
29541 values[32] = PyTuple_GET_ITEM(__pyx_args, 32);
29542 values[33] = PyTuple_GET_ITEM(__pyx_args, 33);
29543 values[34] = PyTuple_GET_ITEM(__pyx_args, 34);
29545 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5884, __pyx_L3_error)
29546 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5885, __pyx_L3_error)
29547 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5886, __pyx_L3_error)
29548 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
29549 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
29550 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
29551 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[6]);
29552 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[7]);
29553 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[8]);
29554 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[9]);
29555 __pyx_v_n = ((PyArrayObject *)values[10]);
29556 __pyx_v_bc_f = ((PyArrayObject *)values[11]);
29557 __pyx_v_bc_fpu = ((PyArrayObject *)values[12]);
29558 __pyx_v_bc_fpv = ((PyArrayObject *)values[13]);
29559 __pyx_v_bc_fpw = ((PyArrayObject *)values[14]);
29560 __pyx_v_f = ((PyArrayObject *)values[15]);
29561 __pyx_v_fpu = ((PyArrayObject *)values[16]);
29562 __pyx_v_fpv = ((PyArrayObject *)values[17]);
29563 __pyx_v_fpw = ((PyArrayObject *)values[18]);
29564 __pyx_v_df_du = ((PyArrayObject *)values[19]);
29565 __pyx_v_df_dv = ((PyArrayObject *)values[20]);
29566 __pyx_v_df_dw = ((PyArrayObject *)values[21]);
29567 __pyx_v_dfpu_dp = ((PyArrayObject *)values[22]);
29568 __pyx_v_dfpv_dp = ((PyArrayObject *)values[23]);
29569 __pyx_v_dfpw_dp = ((PyArrayObject *)values[24]);
29570 __pyx_v_flux = ((PyArrayObject *)values[25]);
29571 __pyx_v_fluxpu = ((PyArrayObject *)values[26]);
29572 __pyx_v_fluxpv = ((PyArrayObject *)values[27]);
29573 __pyx_v_fluxpw = ((PyArrayObject *)values[28]);
29574 __pyx_v_dflux_du = ((PyArrayObject *)values[29]);
29575 __pyx_v_dflux_dv = ((PyArrayObject *)values[30]);
29576 __pyx_v_dflux_dw = ((PyArrayObject *)values[31]);
29577 __pyx_v_dfluxpu_dp = ((PyArrayObject *)values[32]);
29578 __pyx_v_dfluxpv_dp = ((PyArrayObject *)values[33]);
29579 __pyx_v_dfluxpw_dp = ((PyArrayObject *)values[34]);
29581 goto __pyx_L4_argument_unpacking_done;
29582 __pyx_L5_argtuple_error:;
29583 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 1, 35, 35, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5884, __pyx_L3_error)
29585 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
29586 __Pyx_RefNannyFinishContext();
29588 __pyx_L4_argument_unpacking_done:;
29589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5887, __pyx_L1_error)
29590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5888, __pyx_L1_error)
29591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5889, __pyx_L1_error)
29592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 5890, __pyx_L1_error)
29593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 5891, __pyx_L1_error)
29594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 5892, __pyx_L1_error)
29595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 5893, __pyx_L1_error)
29596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5894, __pyx_L1_error)
29597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5895, __pyx_L1_error)
29598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpu), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpu", 0))) __PYX_ERR(0, 5896, __pyx_L1_error)
29599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpv), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpv", 0))) __PYX_ERR(0, 5897, __pyx_L1_error)
29600 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fpw), __pyx_ptype_5numpy_ndarray, 1,
"bc_fpw", 0))) __PYX_ERR(0, 5898, __pyx_L1_error)
29601 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5899, __pyx_L1_error)
29602 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpu), __pyx_ptype_5numpy_ndarray, 1,
"fpu", 0))) __PYX_ERR(0, 5900, __pyx_L1_error)
29603 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpv), __pyx_ptype_5numpy_ndarray, 1,
"fpv", 0))) __PYX_ERR(0, 5901, __pyx_L1_error)
29604 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fpw), __pyx_ptype_5numpy_ndarray, 1,
"fpw", 0))) __PYX_ERR(0, 5902, __pyx_L1_error)
29605 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_du), __pyx_ptype_5numpy_ndarray, 1,
"df_du", 0))) __PYX_ERR(0, 5903, __pyx_L1_error)
29606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_dv", 0))) __PYX_ERR(0, 5904, __pyx_L1_error)
29607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_dw", 0))) __PYX_ERR(0, 5905, __pyx_L1_error)
29608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpu_dp", 0))) __PYX_ERR(0, 5906, __pyx_L1_error)
29609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpv_dp", 0))) __PYX_ERR(0, 5907, __pyx_L1_error)
29610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfpw_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfpw_dp", 0))) __PYX_ERR(0, 5908, __pyx_L1_error)
29611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5909, __pyx_L1_error)
29612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpu), __pyx_ptype_5numpy_ndarray, 1,
"fluxpu", 0))) __PYX_ERR(0, 5910, __pyx_L1_error)
29613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpv), __pyx_ptype_5numpy_ndarray, 1,
"fluxpv", 0))) __PYX_ERR(0, 5911, __pyx_L1_error)
29614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxpw), __pyx_ptype_5numpy_ndarray, 1,
"fluxpw", 0))) __PYX_ERR(0, 5912, __pyx_L1_error)
29615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_du", 0))) __PYX_ERR(0, 5913, __pyx_L1_error)
29616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dv", 0))) __PYX_ERR(0, 5914, __pyx_L1_error)
29617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_dw", 0))) __PYX_ERR(0, 5915, __pyx_L1_error)
29618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpu_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpu_dp", 0))) __PYX_ERR(0, 5916, __pyx_L1_error)
29619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpv_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpv_dp", 0))) __PYX_ERR(0, 5917, __pyx_L1_error)
29620 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxpw_dp), __pyx_ptype_5numpy_ndarray, 1,
"dfluxpw_dp", 0))) __PYX_ERR(0, 5918, __pyx_L1_error)
29621 __pyx_r = __pyx_pf_14cnumericalFlux_160calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_f, __pyx_v_bc_fpu, __pyx_v_bc_fpv, __pyx_v_bc_fpw, __pyx_v_f, __pyx_v_fpu, __pyx_v_fpv, __pyx_v_fpw, __pyx_v_df_du, __pyx_v_df_dv, __pyx_v_df_dw, __pyx_v_dfpu_dp, __pyx_v_dfpv_dp, __pyx_v_dfpw_dp, __pyx_v_flux, __pyx_v_fluxpu, __pyx_v_fluxpv, __pyx_v_fluxpw, __pyx_v_dflux_du, __pyx_v_dflux_dv, __pyx_v_dflux_dw, __pyx_v_dfluxpu_dp, __pyx_v_dfluxpv_dp, __pyx_v_dfluxpw_dp);
29628 __Pyx_RefNannyFinishContext();
29632 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) {
29633 PyObject *__pyx_r = NULL;
29634 __Pyx_RefNannyDeclarations
29635 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D", 0);
29644 calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_f->data), ((
double *)__pyx_v_bc_fpu->data), ((
double *)__pyx_v_bc_fpv->data), ((
double *)__pyx_v_bc_fpw->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_fpu->data), ((
double *)__pyx_v_fpv->data), ((
double *)__pyx_v_fpw->data), ((
double *)__pyx_v_df_du->data), ((
double *)__pyx_v_df_dv->data), ((
double *)__pyx_v_df_dw->data), ((
double *)__pyx_v_dfpu_dp->data), ((
double *)__pyx_v_dfpv_dp->data), ((
double *)__pyx_v_dfpw_dp->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_fluxpu->data), ((
double *)__pyx_v_fluxpv->data), ((
double *)__pyx_v_fluxpw->data), ((
double *)__pyx_v_dflux_du->data), ((
double *)__pyx_v_dflux_dv->data), ((
double *)__pyx_v_dflux_dw->data), ((
double *)__pyx_v_dfluxpu_dp->data), ((
double *)__pyx_v_dfluxpv_dp->data), ((
double *)__pyx_v_dfluxpw_dp->data));
29655 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29656 __Pyx_XGIVEREF(__pyx_r);
29657 __Pyx_RefNannyFinishContext();
29670 static PyObject *__pyx_pw_14cnumericalFlux_163calculateExteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29671 static PyMethodDef __pyx_mdef_14cnumericalFlux_163calculateExteriorNumericalAdvectiveFlux_average = {
"calculateExteriorNumericalAdvectiveFlux_average", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_163calculateExteriorNumericalAdvectiveFlux_average, METH_VARARGS|METH_KEYWORDS, 0};
29672 static PyObject *__pyx_pw_14cnumericalFlux_163calculateExteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29673 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29674 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29675 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29676 PyArrayObject *__pyx_v_isDOFBoundary = 0;
29677 PyArrayObject *__pyx_v_inflowFlag = 0;
29678 PyArrayObject *__pyx_v_n = 0;
29679 PyArrayObject *__pyx_v_bc_u = 0;
29680 PyArrayObject *__pyx_v_bc_f = 0;
29681 PyArrayObject *__pyx_v_bc_df = 0;
29682 PyArrayObject *__pyx_v_u = 0;
29683 PyArrayObject *__pyx_v_f = 0;
29684 PyArrayObject *__pyx_v_df = 0;
29685 PyArrayObject *__pyx_v_flux = 0;
29686 PyArrayObject *__pyx_v_dflux = 0;
29687 int __pyx_lineno = 0;
29688 const char *__pyx_filename = NULL;
29689 int __pyx_clineno = 0;
29690 PyObject *__pyx_r = 0;
29691 __Pyx_RefNannyDeclarations
29692 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_average (wrapper)", 0);
29694 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};
29695 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
29696 if (unlikely(__pyx_kwds)) {
29697 Py_ssize_t kw_args;
29698 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29699 switch (pos_args) {
29700 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29701 CYTHON_FALLTHROUGH;
29702 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29703 CYTHON_FALLTHROUGH;
29704 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29705 CYTHON_FALLTHROUGH;
29706 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29707 CYTHON_FALLTHROUGH;
29708 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29709 CYTHON_FALLTHROUGH;
29710 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29711 CYTHON_FALLTHROUGH;
29712 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29713 CYTHON_FALLTHROUGH;
29714 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29715 CYTHON_FALLTHROUGH;
29716 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29717 CYTHON_FALLTHROUGH;
29718 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29719 CYTHON_FALLTHROUGH;
29720 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29721 CYTHON_FALLTHROUGH;
29722 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29723 CYTHON_FALLTHROUGH;
29724 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29725 CYTHON_FALLTHROUGH;
29726 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29727 CYTHON_FALLTHROUGH;
29729 default:
goto __pyx_L5_argtuple_error;
29731 kw_args = PyDict_Size(__pyx_kwds);
29732 switch (pos_args) {
29734 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
29735 else goto __pyx_L5_argtuple_error;
29736 CYTHON_FALLTHROUGH;
29738 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29740 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 1); __PYX_ERR(0, 5954, __pyx_L3_error)
29742 CYTHON_FALLTHROUGH;
29744 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29746 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 2); __PYX_ERR(0, 5954, __pyx_L3_error)
29748 CYTHON_FALLTHROUGH;
29750 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
29752 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 3); __PYX_ERR(0, 5954, __pyx_L3_error)
29754 CYTHON_FALLTHROUGH;
29756 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
29758 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 4); __PYX_ERR(0, 5954, __pyx_L3_error)
29760 CYTHON_FALLTHROUGH;
29762 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
29764 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 5); __PYX_ERR(0, 5954, __pyx_L3_error)
29766 CYTHON_FALLTHROUGH;
29768 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
29770 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 6); __PYX_ERR(0, 5954, __pyx_L3_error)
29772 CYTHON_FALLTHROUGH;
29774 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
29776 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 7); __PYX_ERR(0, 5954, __pyx_L3_error)
29778 CYTHON_FALLTHROUGH;
29780 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
29782 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 8); __PYX_ERR(0, 5954, __pyx_L3_error)
29784 CYTHON_FALLTHROUGH;
29786 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
29788 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 9); __PYX_ERR(0, 5954, __pyx_L3_error)
29790 CYTHON_FALLTHROUGH;
29792 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
29794 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 10); __PYX_ERR(0, 5954, __pyx_L3_error)
29796 CYTHON_FALLTHROUGH;
29798 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
29800 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 11); __PYX_ERR(0, 5954, __pyx_L3_error)
29802 CYTHON_FALLTHROUGH;
29804 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
29806 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 12); __PYX_ERR(0, 5954, __pyx_L3_error)
29808 CYTHON_FALLTHROUGH;
29810 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
29812 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, 13); __PYX_ERR(0, 5954, __pyx_L3_error)
29815 if (unlikely(kw_args > 0)) {
29816 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalAdvectiveFlux_average") < 0)) __PYX_ERR(0, 5954, __pyx_L3_error)
29818 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
29819 goto __pyx_L5_argtuple_error;
29821 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29822 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29823 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29824 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29825 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29826 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29827 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
29828 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
29829 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
29830 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
29831 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
29832 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
29833 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
29834 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
29836 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
29837 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29838 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29839 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[3]);
29840 __pyx_v_inflowFlag = ((PyArrayObject *)values[4]);
29841 __pyx_v_n = ((PyArrayObject *)values[5]);
29842 __pyx_v_bc_u = ((PyArrayObject *)values[6]);
29843 __pyx_v_bc_f = ((PyArrayObject *)values[7]);
29844 __pyx_v_bc_df = ((PyArrayObject *)values[8]);
29845 __pyx_v_u = ((PyArrayObject *)values[9]);
29846 __pyx_v_f = ((PyArrayObject *)values[10]);
29847 __pyx_v_df = ((PyArrayObject *)values[11]);
29848 __pyx_v_flux = ((PyArrayObject *)values[12]);
29849 __pyx_v_dflux = ((PyArrayObject *)values[13]);
29851 goto __pyx_L4_argument_unpacking_done;
29852 __pyx_L5_argtuple_error:;
29853 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalAdvectiveFlux_average", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5954, __pyx_L3_error)
29855 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFlux_average", __pyx_clineno, __pyx_lineno, __pyx_filename);
29856 __Pyx_RefNannyFinishContext();
29858 __pyx_L4_argument_unpacking_done:;
29859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5954, __pyx_L1_error)
29860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5955, __pyx_L1_error)
29861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5956, __pyx_L1_error)
29862 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5957, __pyx_L1_error)
29863 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 5958, __pyx_L1_error)
29864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5959, __pyx_L1_error)
29865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 5960, __pyx_L1_error)
29866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 5961, __pyx_L1_error)
29867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 5962, __pyx_L1_error)
29868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 5963, __pyx_L1_error)
29869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 5964, __pyx_L1_error)
29870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 5965, __pyx_L1_error)
29871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5966, __pyx_L1_error)
29872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 5967, __pyx_L1_error)
29873 __pyx_r = __pyx_pf_14cnumericalFlux_162calculateExteriorNumericalAdvectiveFlux_average(__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);
29880 __Pyx_RefNannyFinishContext();
29884 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) {
29885 PyObject *__pyx_r = NULL;
29886 __Pyx_RefNannyDeclarations
29887 PyObject *__pyx_t_1 = NULL;
29888 PyObject *__pyx_t_2 = NULL;
29890 int __pyx_lineno = 0;
29891 const char *__pyx_filename = NULL;
29892 int __pyx_clineno = 0;
29893 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalAdvectiveFlux_average", 0);
29902 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_f), __pyx_n_s_dim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5968, __pyx_L1_error)
29903 __Pyx_GOTREF(__pyx_t_1);
29904 __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_3, Py_GT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5968, __pyx_L1_error)
29905 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29906 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 5968, __pyx_L1_error)
29907 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
29917 calculateExteriorNumericalAdvectiveFlux_average((__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));
29945 calculateGlobalExteriorNumericalAdvectiveFlux_average((__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));
29958 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29961 __Pyx_XDECREF(__pyx_t_1);
29962 __Pyx_XDECREF(__pyx_t_2);
29963 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalAdvectiveFlux_average", __pyx_clineno, __pyx_lineno, __pyx_filename);
29966 __Pyx_XGIVEREF(__pyx_r);
29967 __Pyx_RefNannyFinishContext();
29980 static PyObject *__pyx_pw_14cnumericalFlux_165calculateGlobalExteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29981 static PyMethodDef __pyx_mdef_14cnumericalFlux_165calculateGlobalExteriorNumericalAdvectiveFlux_average = {
"calculateGlobalExteriorNumericalAdvectiveFlux_average", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_165calculateGlobalExteriorNumericalAdvectiveFlux_average, METH_VARARGS|METH_KEYWORDS, 0};
29982 static PyObject *__pyx_pw_14cnumericalFlux_165calculateGlobalExteriorNumericalAdvectiveFlux_average(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29983 int __pyx_v_nExteriorElementBoundaries_global;
29984 int __pyx_v_nQuadraturePoints_elementBoundary;
29985 int __pyx_v_nSpace;
29986 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29987 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29988 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29989 PyArrayObject *__pyx_v_isDOFBoundary = 0;
29990 PyArrayObject *__pyx_v_inflowFlag = 0;
29991 PyArrayObject *__pyx_v_n = 0;
29992 PyArrayObject *__pyx_v_bc_u = 0;
29993 PyArrayObject *__pyx_v_bc_f = 0;
29994 PyArrayObject *__pyx_v_bc_df = 0;
29995 PyArrayObject *__pyx_v_u = 0;
29996 PyArrayObject *__pyx_v_f = 0;
29997 PyArrayObject *__pyx_v_df = 0;
29998 PyArrayObject *__pyx_v_flux = 0;
29999 PyArrayObject *__pyx_v_dflux = 0;
30000 int __pyx_lineno = 0;
30001 const char *__pyx_filename = NULL;
30002 int __pyx_clineno = 0;
30003 PyObject *__pyx_r = 0;
30004 __Pyx_RefNannyDeclarations
30005 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_average (wrapper)", 0);
30007 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__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};
30008 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
30009 if (unlikely(__pyx_kwds)) {
30010 Py_ssize_t kw_args;
30011 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30012 switch (pos_args) {
30013 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30014 CYTHON_FALLTHROUGH;
30015 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30016 CYTHON_FALLTHROUGH;
30017 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30018 CYTHON_FALLTHROUGH;
30019 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30020 CYTHON_FALLTHROUGH;
30021 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30022 CYTHON_FALLTHROUGH;
30023 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30024 CYTHON_FALLTHROUGH;
30025 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30026 CYTHON_FALLTHROUGH;
30027 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30028 CYTHON_FALLTHROUGH;
30029 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30030 CYTHON_FALLTHROUGH;
30031 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30032 CYTHON_FALLTHROUGH;
30033 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30034 CYTHON_FALLTHROUGH;
30035 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30036 CYTHON_FALLTHROUGH;
30037 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30038 CYTHON_FALLTHROUGH;
30039 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30040 CYTHON_FALLTHROUGH;
30041 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30042 CYTHON_FALLTHROUGH;
30043 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30044 CYTHON_FALLTHROUGH;
30045 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30046 CYTHON_FALLTHROUGH;
30048 default:
goto __pyx_L5_argtuple_error;
30050 kw_args = PyDict_Size(__pyx_kwds);
30051 switch (pos_args) {
30053 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
30054 else goto __pyx_L5_argtuple_error;
30055 CYTHON_FALLTHROUGH;
30057 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
30059 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 1); __PYX_ERR(0, 6005, __pyx_L3_error)
30061 CYTHON_FALLTHROUGH;
30063 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
30065 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 2); __PYX_ERR(0, 6005, __pyx_L3_error)
30067 CYTHON_FALLTHROUGH;
30069 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30071 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 3); __PYX_ERR(0, 6005, __pyx_L3_error)
30073 CYTHON_FALLTHROUGH;
30075 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30077 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 4); __PYX_ERR(0, 6005, __pyx_L3_error)
30079 CYTHON_FALLTHROUGH;
30081 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30083 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 5); __PYX_ERR(0, 6005, __pyx_L3_error)
30085 CYTHON_FALLTHROUGH;
30087 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
30089 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 6); __PYX_ERR(0, 6005, __pyx_L3_error)
30091 CYTHON_FALLTHROUGH;
30093 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
30095 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 7); __PYX_ERR(0, 6005, __pyx_L3_error)
30097 CYTHON_FALLTHROUGH;
30099 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
30101 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 8); __PYX_ERR(0, 6005, __pyx_L3_error)
30103 CYTHON_FALLTHROUGH;
30105 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
30107 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 9); __PYX_ERR(0, 6005, __pyx_L3_error)
30109 CYTHON_FALLTHROUGH;
30111 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f)) != 0)) kw_args--;
30113 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 10); __PYX_ERR(0, 6005, __pyx_L3_error)
30115 CYTHON_FALLTHROUGH;
30117 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_df)) != 0)) kw_args--;
30119 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 11); __PYX_ERR(0, 6005, __pyx_L3_error)
30121 CYTHON_FALLTHROUGH;
30123 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30125 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 12); __PYX_ERR(0, 6005, __pyx_L3_error)
30127 CYTHON_FALLTHROUGH;
30129 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
30131 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 13); __PYX_ERR(0, 6005, __pyx_L3_error)
30133 CYTHON_FALLTHROUGH;
30135 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
30137 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 14); __PYX_ERR(0, 6005, __pyx_L3_error)
30139 CYTHON_FALLTHROUGH;
30141 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
30143 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 15); __PYX_ERR(0, 6005, __pyx_L3_error)
30145 CYTHON_FALLTHROUGH;
30147 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
30149 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, 16); __PYX_ERR(0, 6005, __pyx_L3_error)
30152 if (unlikely(kw_args > 0)) {
30153 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFlux_average") < 0)) __PYX_ERR(0, 6005, __pyx_L3_error)
30155 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
30156 goto __pyx_L5_argtuple_error;
30158 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30159 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30160 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30161 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30162 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30163 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30164 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30165 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30166 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30167 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30168 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30169 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30170 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30171 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30172 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30173 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30174 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
30176 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6005, __pyx_L3_error)
30177 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6006, __pyx_L3_error)
30178 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6007, __pyx_L3_error)
30179 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
30180 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
30181 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
30182 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
30183 __pyx_v_inflowFlag = ((PyArrayObject *)values[7]);
30184 __pyx_v_n = ((PyArrayObject *)values[8]);
30185 __pyx_v_bc_u = ((PyArrayObject *)values[9]);
30186 __pyx_v_bc_f = ((PyArrayObject *)values[10]);
30187 __pyx_v_bc_df = ((PyArrayObject *)values[11]);
30188 __pyx_v_u = ((PyArrayObject *)values[12]);
30189 __pyx_v_f = ((PyArrayObject *)values[13]);
30190 __pyx_v_df = ((PyArrayObject *)values[14]);
30191 __pyx_v_flux = ((PyArrayObject *)values[15]);
30192 __pyx_v_dflux = ((PyArrayObject *)values[16]);
30194 goto __pyx_L4_argument_unpacking_done;
30195 __pyx_L5_argtuple_error:;
30196 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6005, __pyx_L3_error)
30198 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux_average", __pyx_clineno, __pyx_lineno, __pyx_filename);
30199 __Pyx_RefNannyFinishContext();
30201 __pyx_L4_argument_unpacking_done:;
30202 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6008, __pyx_L1_error)
30203 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6009, __pyx_L1_error)
30204 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6010, __pyx_L1_error)
30205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6011, __pyx_L1_error)
30206 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 6012, __pyx_L1_error)
30207 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6013, __pyx_L1_error)
30208 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 6014, __pyx_L1_error)
30209 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f), __pyx_ptype_5numpy_ndarray, 1,
"bc_f", 0))) __PYX_ERR(0, 6015, __pyx_L1_error)
30210 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_df), __pyx_ptype_5numpy_ndarray, 1,
"bc_df", 0))) __PYX_ERR(0, 6016, __pyx_L1_error)
30211 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6017, __pyx_L1_error)
30212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 6018, __pyx_L1_error)
30213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 6019, __pyx_L1_error)
30214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6020, __pyx_L1_error)
30215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 6021, __pyx_L1_error)
30216 __pyx_r = __pyx_pf_14cnumericalFlux_164calculateGlobalExteriorNumericalAdvectiveFlux_average(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __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);
30223 __Pyx_RefNannyFinishContext();
30227 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) {
30228 PyObject *__pyx_r = NULL;
30229 __Pyx_RefNannyDeclarations
30230 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_average", 0);
30239 calculateGlobalExteriorNumericalAdvectiveFlux_average(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
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));
30250 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30251 __Pyx_XGIVEREF(__pyx_r);
30252 __Pyx_RefNannyFinishContext();
30265 static PyObject *__pyx_pw_14cnumericalFlux_167updateExteriorNumericalAdvectiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30266 static PyMethodDef __pyx_mdef_14cnumericalFlux_167updateExteriorNumericalAdvectiveFluxJacobian_free = {
"updateExteriorNumericalAdvectiveFluxJacobian_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_167updateExteriorNumericalAdvectiveFluxJacobian_free, METH_VARARGS|METH_KEYWORDS, 0};
30267 static PyObject *__pyx_pw_14cnumericalFlux_167updateExteriorNumericalAdvectiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30268 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30269 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
30270 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
30271 PyArrayObject *__pyx_v_inflowFlag = 0;
30272 PyArrayObject *__pyx_v_dflux_left = 0;
30273 PyArrayObject *__pyx_v_v = 0;
30274 PyArrayObject *__pyx_v_fluxJacobian = 0;
30275 int __pyx_lineno = 0;
30276 const char *__pyx_filename = NULL;
30277 int __pyx_clineno = 0;
30278 PyObject *__pyx_r = 0;
30279 __Pyx_RefNannyDeclarations
30280 __Pyx_RefNannySetupContext(
"updateExteriorNumericalAdvectiveFluxJacobian_free (wrapper)", 0);
30282 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};
30283 PyObject* values[7] = {0,0,0,0,0,0,0};
30284 if (unlikely(__pyx_kwds)) {
30285 Py_ssize_t kw_args;
30286 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30287 switch (pos_args) {
30288 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30289 CYTHON_FALLTHROUGH;
30290 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30291 CYTHON_FALLTHROUGH;
30292 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30293 CYTHON_FALLTHROUGH;
30294 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30295 CYTHON_FALLTHROUGH;
30296 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30297 CYTHON_FALLTHROUGH;
30298 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30299 CYTHON_FALLTHROUGH;
30300 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30301 CYTHON_FALLTHROUGH;
30303 default:
goto __pyx_L5_argtuple_error;
30305 kw_args = PyDict_Size(__pyx_kwds);
30306 switch (pos_args) {
30308 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30309 else goto __pyx_L5_argtuple_error;
30310 CYTHON_FALLTHROUGH;
30312 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30314 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 1); __PYX_ERR(0, 6039, __pyx_L3_error)
30316 CYTHON_FALLTHROUGH;
30318 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30320 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 2); __PYX_ERR(0, 6039, __pyx_L3_error)
30322 CYTHON_FALLTHROUGH;
30324 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
30326 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 3); __PYX_ERR(0, 6039, __pyx_L3_error)
30328 CYTHON_FALLTHROUGH;
30330 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
30332 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 4); __PYX_ERR(0, 6039, __pyx_L3_error)
30334 CYTHON_FALLTHROUGH;
30336 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30338 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 5); __PYX_ERR(0, 6039, __pyx_L3_error)
30340 CYTHON_FALLTHROUGH;
30342 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
30344 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, 6); __PYX_ERR(0, 6039, __pyx_L3_error)
30347 if (unlikely(kw_args > 0)) {
30348 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalAdvectiveFluxJacobian_free") < 0)) __PYX_ERR(0, 6039, __pyx_L3_error)
30350 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
30351 goto __pyx_L5_argtuple_error;
30353 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30354 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30355 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30356 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30357 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30358 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30359 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30361 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
30362 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
30363 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
30364 __pyx_v_inflowFlag = ((PyArrayObject *)values[3]);
30365 __pyx_v_dflux_left = ((PyArrayObject *)values[4]);
30366 __pyx_v_v = ((PyArrayObject *)values[5]);
30367 __pyx_v_fluxJacobian = ((PyArrayObject *)values[6]);
30369 goto __pyx_L4_argument_unpacking_done;
30370 __pyx_L5_argtuple_error:;
30371 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6039, __pyx_L3_error)
30373 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalAdvectiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
30374 __Pyx_RefNannyFinishContext();
30376 __pyx_L4_argument_unpacking_done:;
30377 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6039, __pyx_L1_error)
30378 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6040, __pyx_L1_error)
30379 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6041, __pyx_L1_error)
30380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 6042, __pyx_L1_error)
30381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 6043, __pyx_L1_error)
30382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6044, __pyx_L1_error)
30383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6045, __pyx_L1_error)
30384 __pyx_r = __pyx_pf_14cnumericalFlux_166updateExteriorNumericalAdvectiveFluxJacobian_free(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_dflux_left, __pyx_v_v, __pyx_v_fluxJacobian);
30391 __Pyx_RefNannyFinishContext();
30395 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) {
30396 PyObject *__pyx_r = NULL;
30397 __Pyx_RefNannyDeclarations
30398 PyObject *__pyx_t_1 = NULL;
30399 PyObject *__pyx_t_2 = NULL;
30401 int __pyx_lineno = 0;
30402 const char *__pyx_filename = NULL;
30403 int __pyx_clineno = 0;
30404 __Pyx_RefNannySetupContext(
"updateExteriorNumericalAdvectiveFluxJacobian_free", 0);
30413 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_v), __pyx_n_s_dim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6046, __pyx_L1_error)
30414 __Pyx_GOTREF(__pyx_t_1);
30415 __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_4, 4, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6046, __pyx_L1_error)
30416 __Pyx_GOTREF(__pyx_t_2);
30417 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30418 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 6046, __pyx_L1_error)
30419 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
30429 updateExteriorNumericalAdvectiveFluxJacobian_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->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_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
30448 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_v), __pyx_n_s_dim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6058, __pyx_L1_error)
30449 __Pyx_GOTREF(__pyx_t_2);
30450 __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_t_2, __pyx_int_3, 3, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6058, __pyx_L1_error)
30451 __Pyx_GOTREF(__pyx_t_1);
30452 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
30453 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 6058, __pyx_L1_error)
30454 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
30464 updateGlobalExteriorNumericalAdvectiveFluxJacobian_free((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->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_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
30485 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30488 __Pyx_XDECREF(__pyx_t_1);
30489 __Pyx_XDECREF(__pyx_t_2);
30490 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalAdvectiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
30493 __Pyx_XGIVEREF(__pyx_r);
30494 __Pyx_RefNannyFinishContext();
30507 static PyObject *__pyx_pw_14cnumericalFlux_169updateGlobalExteriorNumericalAdvectiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30508 static PyMethodDef __pyx_mdef_14cnumericalFlux_169updateGlobalExteriorNumericalAdvectiveFluxJacobian_free = {
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_169updateGlobalExteriorNumericalAdvectiveFluxJacobian_free, METH_VARARGS|METH_KEYWORDS, 0};
30509 static PyObject *__pyx_pw_14cnumericalFlux_169updateGlobalExteriorNumericalAdvectiveFluxJacobian_free(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30510 int __pyx_v_nExteriorElementBoundaries_global;
30511 int __pyx_v_nQuadraturePoints_elementBoundary;
30512 int __pyx_v_nDOF_trial_element;
30513 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30514 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
30515 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
30516 PyArrayObject *__pyx_v_inflowFlag = 0;
30517 PyArrayObject *__pyx_v_dflux_left = 0;
30518 PyArrayObject *__pyx_v_v = 0;
30519 PyArrayObject *__pyx_v_fluxJacobian = 0;
30520 int __pyx_lineno = 0;
30521 const char *__pyx_filename = NULL;
30522 int __pyx_clineno = 0;
30523 PyObject *__pyx_r = 0;
30524 __Pyx_RefNannyDeclarations
30525 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free (wrapper)", 0);
30527 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__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};
30528 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
30529 if (unlikely(__pyx_kwds)) {
30530 Py_ssize_t kw_args;
30531 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30532 switch (pos_args) {
30533 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30534 CYTHON_FALLTHROUGH;
30535 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30536 CYTHON_FALLTHROUGH;
30537 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30538 CYTHON_FALLTHROUGH;
30539 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30540 CYTHON_FALLTHROUGH;
30541 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30542 CYTHON_FALLTHROUGH;
30543 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30544 CYTHON_FALLTHROUGH;
30545 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30546 CYTHON_FALLTHROUGH;
30547 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30548 CYTHON_FALLTHROUGH;
30549 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30550 CYTHON_FALLTHROUGH;
30551 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30552 CYTHON_FALLTHROUGH;
30554 default:
goto __pyx_L5_argtuple_error;
30556 kw_args = PyDict_Size(__pyx_kwds);
30557 switch (pos_args) {
30559 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
30560 else goto __pyx_L5_argtuple_error;
30561 CYTHON_FALLTHROUGH;
30563 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
30565 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 1); __PYX_ERR(0, 6069, __pyx_L3_error)
30567 CYTHON_FALLTHROUGH;
30569 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
30571 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 2); __PYX_ERR(0, 6069, __pyx_L3_error)
30573 CYTHON_FALLTHROUGH;
30575 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30577 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 3); __PYX_ERR(0, 6069, __pyx_L3_error)
30579 CYTHON_FALLTHROUGH;
30581 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30583 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 4); __PYX_ERR(0, 6069, __pyx_L3_error)
30585 CYTHON_FALLTHROUGH;
30587 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30589 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 5); __PYX_ERR(0, 6069, __pyx_L3_error)
30591 CYTHON_FALLTHROUGH;
30593 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
30595 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 6); __PYX_ERR(0, 6069, __pyx_L3_error)
30597 CYTHON_FALLTHROUGH;
30599 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_left)) != 0)) kw_args--;
30601 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 7); __PYX_ERR(0, 6069, __pyx_L3_error)
30603 CYTHON_FALLTHROUGH;
30605 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30607 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 8); __PYX_ERR(0, 6069, __pyx_L3_error)
30609 CYTHON_FALLTHROUGH;
30611 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
30613 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, 9); __PYX_ERR(0, 6069, __pyx_L3_error)
30616 if (unlikely(kw_args > 0)) {
30617 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free") < 0)) __PYX_ERR(0, 6069, __pyx_L3_error)
30619 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
30620 goto __pyx_L5_argtuple_error;
30622 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30623 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30624 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30625 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30626 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30627 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30628 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30629 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30630 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30631 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30633 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6069, __pyx_L3_error)
30634 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6070, __pyx_L3_error)
30635 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6071, __pyx_L3_error)
30636 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
30637 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
30638 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
30639 __pyx_v_inflowFlag = ((PyArrayObject *)values[6]);
30640 __pyx_v_dflux_left = ((PyArrayObject *)values[7]);
30641 __pyx_v_v = ((PyArrayObject *)values[8]);
30642 __pyx_v_fluxJacobian = ((PyArrayObject *)values[9]);
30644 goto __pyx_L4_argument_unpacking_done;
30645 __pyx_L5_argtuple_error:;
30646 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6069, __pyx_L3_error)
30648 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", __pyx_clineno, __pyx_lineno, __pyx_filename);
30649 __Pyx_RefNannyFinishContext();
30651 __pyx_L4_argument_unpacking_done:;
30652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6072, __pyx_L1_error)
30653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6073, __pyx_L1_error)
30654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6074, __pyx_L1_error)
30655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 6075, __pyx_L1_error)
30656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_left), __pyx_ptype_5numpy_ndarray, 1,
"dflux_left", 0))) __PYX_ERR(0, 6076, __pyx_L1_error)
30657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6077, __pyx_L1_error)
30658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6078, __pyx_L1_error)
30659 __pyx_r = __pyx_pf_14cnumericalFlux_168updateGlobalExteriorNumericalAdvectiveFluxJacobian_free(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_inflowFlag, __pyx_v_dflux_left, __pyx_v_v, __pyx_v_fluxJacobian);
30666 __Pyx_RefNannyFinishContext();
30670 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) {
30671 PyObject *__pyx_r = NULL;
30672 __Pyx_RefNannyDeclarations
30673 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalAdvectiveFluxJacobian_free", 0);
30682 updateGlobalExteriorNumericalAdvectiveFluxJacobian_free(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_inflowFlag->data), ((
double *)__pyx_v_dflux_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
30693 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30694 __Pyx_XGIVEREF(__pyx_r);
30695 __Pyx_RefNannyFinishContext();
30708 static PyObject *__pyx_pw_14cnumericalFlux_171calculateExteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30709 static PyMethodDef __pyx_mdef_14cnumericalFlux_171calculateExteriorNumericalDiffusiveFlux_LDG_upwind = {
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_171calculateExteriorNumericalDiffusiveFlux_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
30710 static PyObject *__pyx_pw_14cnumericalFlux_171calculateExteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30711 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30712 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
30713 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
30714 PyArrayObject *__pyx_v_n = 0;
30715 PyArrayObject *__pyx_v_u = 0;
30716 PyArrayObject *__pyx_v_a = 0;
30717 PyArrayObject *__pyx_v_phi_bc = 0;
30718 PyArrayObject *__pyx_v_phi = 0;
30719 PyArrayObject *__pyx_v_V = 0;
30720 PyArrayObject *__pyx_v_penalty = 0;
30721 PyArrayObject *__pyx_v_flux = 0;
30722 int __pyx_lineno = 0;
30723 const char *__pyx_filename = NULL;
30724 int __pyx_clineno = 0;
30725 PyObject *__pyx_r = 0;
30726 __Pyx_RefNannyDeclarations
30727 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind (wrapper)", 0);
30729 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_a,&__pyx_n_s_phi_bc,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
30730 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
30731 if (unlikely(__pyx_kwds)) {
30732 Py_ssize_t kw_args;
30733 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30734 switch (pos_args) {
30735 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30736 CYTHON_FALLTHROUGH;
30737 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30738 CYTHON_FALLTHROUGH;
30739 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30740 CYTHON_FALLTHROUGH;
30741 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30742 CYTHON_FALLTHROUGH;
30743 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30744 CYTHON_FALLTHROUGH;
30745 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30746 CYTHON_FALLTHROUGH;
30747 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30748 CYTHON_FALLTHROUGH;
30749 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30750 CYTHON_FALLTHROUGH;
30751 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30752 CYTHON_FALLTHROUGH;
30753 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30754 CYTHON_FALLTHROUGH;
30755 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30756 CYTHON_FALLTHROUGH;
30758 default:
goto __pyx_L5_argtuple_error;
30760 kw_args = PyDict_Size(__pyx_kwds);
30761 switch (pos_args) {
30763 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30764 else goto __pyx_L5_argtuple_error;
30765 CYTHON_FALLTHROUGH;
30767 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30769 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 1); __PYX_ERR(0, 6089, __pyx_L3_error)
30771 CYTHON_FALLTHROUGH;
30773 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30775 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 2); __PYX_ERR(0, 6089, __pyx_L3_error)
30777 CYTHON_FALLTHROUGH;
30779 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
30781 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 3); __PYX_ERR(0, 6089, __pyx_L3_error)
30783 CYTHON_FALLTHROUGH;
30785 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
30787 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 4); __PYX_ERR(0, 6089, __pyx_L3_error)
30789 CYTHON_FALLTHROUGH;
30791 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
30793 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 5); __PYX_ERR(0, 6089, __pyx_L3_error)
30795 CYTHON_FALLTHROUGH;
30797 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_bc)) != 0)) kw_args--;
30799 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 6); __PYX_ERR(0, 6089, __pyx_L3_error)
30801 CYTHON_FALLTHROUGH;
30803 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
30805 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 7); __PYX_ERR(0, 6089, __pyx_L3_error)
30807 CYTHON_FALLTHROUGH;
30809 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
30811 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 8); __PYX_ERR(0, 6089, __pyx_L3_error)
30813 CYTHON_FALLTHROUGH;
30815 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
30817 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 9); __PYX_ERR(0, 6089, __pyx_L3_error)
30819 CYTHON_FALLTHROUGH;
30821 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
30823 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, 10); __PYX_ERR(0, 6089, __pyx_L3_error)
30826 if (unlikely(kw_args > 0)) {
30827 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind") < 0)) __PYX_ERR(0, 6089, __pyx_L3_error)
30829 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
30830 goto __pyx_L5_argtuple_error;
30832 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30833 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30834 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30835 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30836 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30837 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30838 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30839 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30840 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30841 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30842 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30844 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
30845 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
30846 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
30847 __pyx_v_n = ((PyArrayObject *)values[3]);
30848 __pyx_v_u = ((PyArrayObject *)values[4]);
30849 __pyx_v_a = ((PyArrayObject *)values[5]);
30850 __pyx_v_phi_bc = ((PyArrayObject *)values[6]);
30851 __pyx_v_phi = ((PyArrayObject *)values[7]);
30852 __pyx_v_V = ((PyArrayObject *)values[8]);
30853 __pyx_v_penalty = ((PyArrayObject *)values[9]);
30854 __pyx_v_flux = ((PyArrayObject *)values[10]);
30856 goto __pyx_L4_argument_unpacking_done;
30857 __pyx_L5_argtuple_error:;
30858 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6089, __pyx_L3_error)
30860 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
30861 __Pyx_RefNannyFinishContext();
30863 __pyx_L4_argument_unpacking_done:;
30864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6089, __pyx_L1_error)
30865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6090, __pyx_L1_error)
30866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6091, __pyx_L1_error)
30867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6092, __pyx_L1_error)
30868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6093, __pyx_L1_error)
30869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6094, __pyx_L1_error)
30870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_bc), __pyx_ptype_5numpy_ndarray, 1,
"phi_bc", 0))) __PYX_ERR(0, 6095, __pyx_L1_error)
30871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6096, __pyx_L1_error)
30872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6097, __pyx_L1_error)
30873 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6098, __pyx_L1_error)
30874 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6099, __pyx_L1_error)
30875 __pyx_r = __pyx_pf_14cnumericalFlux_170calculateExteriorNumericalDiffusiveFlux_LDG_upwind(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi_bc, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
30882 __Pyx_RefNannyFinishContext();
30886 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) {
30887 PyObject *__pyx_r = NULL;
30888 __Pyx_RefNannyDeclarations
30890 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind", 0);
30899 __pyx_t_1 = ((__pyx_v_n->nd > 3) != 0);
30909 calculateExteriorNumericalDiffusiveFlux_LDG_upwind((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
30937 calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_V->dimensions[1]), (__pyx_v_V->dimensions[2]), (__pyx_v_V->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
30950 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30951 __Pyx_XGIVEREF(__pyx_r);
30952 __Pyx_RefNannyFinishContext();
30965 static PyObject *__pyx_pw_14cnumericalFlux_173calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30966 static PyMethodDef __pyx_mdef_14cnumericalFlux_173calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd = {
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_173calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
30967 static PyObject *__pyx_pw_14cnumericalFlux_173calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30968 PyArrayObject *__pyx_v_rowptr = 0;
30969 PyArrayObject *__pyx_v_colind = 0;
30970 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30971 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
30972 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
30973 PyArrayObject *__pyx_v_n = 0;
30974 PyArrayObject *__pyx_v_u = 0;
30975 PyArrayObject *__pyx_v_a = 0;
30976 PyArrayObject *__pyx_v_phi_bc = 0;
30977 PyArrayObject *__pyx_v_phi = 0;
30978 PyArrayObject *__pyx_v_V = 0;
30979 PyArrayObject *__pyx_v_penalty = 0;
30980 PyArrayObject *__pyx_v_flux = 0;
30981 int __pyx_lineno = 0;
30982 const char *__pyx_filename = NULL;
30983 int __pyx_clineno = 0;
30984 PyObject *__pyx_r = 0;
30985 __Pyx_RefNannyDeclarations
30986 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd (wrapper)", 0);
30988 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_a,&__pyx_n_s_phi_bc,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
30989 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
30990 if (unlikely(__pyx_kwds)) {
30991 Py_ssize_t kw_args;
30992 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30993 switch (pos_args) {
30994 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30995 CYTHON_FALLTHROUGH;
30996 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30997 CYTHON_FALLTHROUGH;
30998 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30999 CYTHON_FALLTHROUGH;
31000 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31001 CYTHON_FALLTHROUGH;
31002 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31003 CYTHON_FALLTHROUGH;
31004 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31005 CYTHON_FALLTHROUGH;
31006 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31007 CYTHON_FALLTHROUGH;
31008 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31009 CYTHON_FALLTHROUGH;
31010 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31011 CYTHON_FALLTHROUGH;
31012 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31013 CYTHON_FALLTHROUGH;
31014 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31015 CYTHON_FALLTHROUGH;
31016 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31017 CYTHON_FALLTHROUGH;
31018 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31019 CYTHON_FALLTHROUGH;
31021 default:
goto __pyx_L5_argtuple_error;
31023 kw_args = PyDict_Size(__pyx_kwds);
31024 switch (pos_args) {
31026 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
31027 else goto __pyx_L5_argtuple_error;
31028 CYTHON_FALLTHROUGH;
31030 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
31032 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 1); __PYX_ERR(0, 6132, __pyx_L3_error)
31034 CYTHON_FALLTHROUGH;
31036 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31038 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 2); __PYX_ERR(0, 6132, __pyx_L3_error)
31040 CYTHON_FALLTHROUGH;
31042 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31044 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 3); __PYX_ERR(0, 6132, __pyx_L3_error)
31046 CYTHON_FALLTHROUGH;
31048 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31050 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 4); __PYX_ERR(0, 6132, __pyx_L3_error)
31052 CYTHON_FALLTHROUGH;
31054 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31056 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 5); __PYX_ERR(0, 6132, __pyx_L3_error)
31058 CYTHON_FALLTHROUGH;
31060 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31062 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 6); __PYX_ERR(0, 6132, __pyx_L3_error)
31064 CYTHON_FALLTHROUGH;
31066 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31068 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 7); __PYX_ERR(0, 6132, __pyx_L3_error)
31070 CYTHON_FALLTHROUGH;
31072 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_bc)) != 0)) kw_args--;
31074 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 8); __PYX_ERR(0, 6132, __pyx_L3_error)
31076 CYTHON_FALLTHROUGH;
31078 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
31080 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 9); __PYX_ERR(0, 6132, __pyx_L3_error)
31082 CYTHON_FALLTHROUGH;
31084 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
31086 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 10); __PYX_ERR(0, 6132, __pyx_L3_error)
31088 CYTHON_FALLTHROUGH;
31090 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
31092 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 11); __PYX_ERR(0, 6132, __pyx_L3_error)
31094 CYTHON_FALLTHROUGH;
31096 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
31098 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, 12); __PYX_ERR(0, 6132, __pyx_L3_error)
31101 if (unlikely(kw_args > 0)) {
31102 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd") < 0)) __PYX_ERR(0, 6132, __pyx_L3_error)
31104 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
31105 goto __pyx_L5_argtuple_error;
31107 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31108 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31109 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31110 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31111 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31112 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31113 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31114 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31115 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31116 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31117 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31118 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31119 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31121 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
31122 __pyx_v_colind = ((PyArrayObject *)values[1]);
31123 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
31124 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
31125 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
31126 __pyx_v_n = ((PyArrayObject *)values[5]);
31127 __pyx_v_u = ((PyArrayObject *)values[6]);
31128 __pyx_v_a = ((PyArrayObject *)values[7]);
31129 __pyx_v_phi_bc = ((PyArrayObject *)values[8]);
31130 __pyx_v_phi = ((PyArrayObject *)values[9]);
31131 __pyx_v_V = ((PyArrayObject *)values[10]);
31132 __pyx_v_penalty = ((PyArrayObject *)values[11]);
31133 __pyx_v_flux = ((PyArrayObject *)values[12]);
31135 goto __pyx_L4_argument_unpacking_done;
31136 __pyx_L5_argtuple_error:;
31137 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6132, __pyx_L3_error)
31139 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31140 __Pyx_RefNannyFinishContext();
31142 __pyx_L4_argument_unpacking_done:;
31143 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6132, __pyx_L1_error)
31144 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6133, __pyx_L1_error)
31145 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6134, __pyx_L1_error)
31146 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6135, __pyx_L1_error)
31147 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6136, __pyx_L1_error)
31148 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6137, __pyx_L1_error)
31149 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6138, __pyx_L1_error)
31150 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6139, __pyx_L1_error)
31151 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_bc), __pyx_ptype_5numpy_ndarray, 1,
"phi_bc", 0))) __PYX_ERR(0, 6140, __pyx_L1_error)
31152 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6141, __pyx_L1_error)
31153 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6142, __pyx_L1_error)
31154 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6143, __pyx_L1_error)
31155 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6144, __pyx_L1_error)
31156 __pyx_r = __pyx_pf_14cnumericalFlux_172calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi_bc, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
31163 __Pyx_RefNannyFinishContext();
31167 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) {
31168 PyObject *__pyx_r = NULL;
31169 __Pyx_RefNannyDeclarations
31171 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 0);
31180 __pyx_t_1 = ((__pyx_v_n->nd > 3) != 0);
31190 calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
31218 calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_V->dimensions[1]), (__pyx_v_V->dimensions[2]), (__pyx_v_V->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
31231 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31232 __Pyx_XGIVEREF(__pyx_r);
31233 __Pyx_RefNannyFinishContext();
31246 static PyObject *__pyx_pw_14cnumericalFlux_175calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31247 static PyMethodDef __pyx_mdef_14cnumericalFlux_175calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind = {
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_175calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
31248 static PyObject *__pyx_pw_14cnumericalFlux_175calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31249 int __pyx_v_nExteriorElementBoundaries_global;
31250 int __pyx_v_nElementBoundaries_element;
31251 int __pyx_v_nQuadraturePoints_elementBoundary;
31252 int __pyx_v_nSpace;
31253 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
31254 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31255 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31256 PyArrayObject *__pyx_v_n = 0;
31257 PyArrayObject *__pyx_v_u = 0;
31258 PyArrayObject *__pyx_v_a = 0;
31259 PyArrayObject *__pyx_v_phi_bc = 0;
31260 PyArrayObject *__pyx_v_phi = 0;
31261 PyArrayObject *__pyx_v_V = 0;
31262 PyArrayObject *__pyx_v_penalty = 0;
31263 PyArrayObject *__pyx_v_flux = 0;
31264 int __pyx_lineno = 0;
31265 const char *__pyx_filename = NULL;
31266 int __pyx_clineno = 0;
31267 PyObject *__pyx_r = 0;
31268 __Pyx_RefNannyDeclarations
31269 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind (wrapper)", 0);
31271 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_a,&__pyx_n_s_phi_bc,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
31272 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31273 if (unlikely(__pyx_kwds)) {
31274 Py_ssize_t kw_args;
31275 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31276 switch (pos_args) {
31277 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31278 CYTHON_FALLTHROUGH;
31279 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31280 CYTHON_FALLTHROUGH;
31281 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31282 CYTHON_FALLTHROUGH;
31283 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31284 CYTHON_FALLTHROUGH;
31285 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31286 CYTHON_FALLTHROUGH;
31287 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31288 CYTHON_FALLTHROUGH;
31289 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31290 CYTHON_FALLTHROUGH;
31291 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31292 CYTHON_FALLTHROUGH;
31293 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31294 CYTHON_FALLTHROUGH;
31295 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31296 CYTHON_FALLTHROUGH;
31297 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31298 CYTHON_FALLTHROUGH;
31299 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31300 CYTHON_FALLTHROUGH;
31301 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31302 CYTHON_FALLTHROUGH;
31303 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31304 CYTHON_FALLTHROUGH;
31305 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31306 CYTHON_FALLTHROUGH;
31308 default:
goto __pyx_L5_argtuple_error;
31310 kw_args = PyDict_Size(__pyx_kwds);
31311 switch (pos_args) {
31313 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
31314 else goto __pyx_L5_argtuple_error;
31315 CYTHON_FALLTHROUGH;
31317 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
31319 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 1); __PYX_ERR(0, 6181, __pyx_L3_error)
31321 CYTHON_FALLTHROUGH;
31323 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
31325 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 2); __PYX_ERR(0, 6181, __pyx_L3_error)
31327 CYTHON_FALLTHROUGH;
31329 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
31331 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 3); __PYX_ERR(0, 6181, __pyx_L3_error)
31333 CYTHON_FALLTHROUGH;
31335 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31337 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 4); __PYX_ERR(0, 6181, __pyx_L3_error)
31339 CYTHON_FALLTHROUGH;
31341 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31343 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 5); __PYX_ERR(0, 6181, __pyx_L3_error)
31345 CYTHON_FALLTHROUGH;
31347 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31349 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 6); __PYX_ERR(0, 6181, __pyx_L3_error)
31351 CYTHON_FALLTHROUGH;
31353 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31355 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 7); __PYX_ERR(0, 6181, __pyx_L3_error)
31357 CYTHON_FALLTHROUGH;
31359 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31361 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 8); __PYX_ERR(0, 6181, __pyx_L3_error)
31363 CYTHON_FALLTHROUGH;
31365 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31367 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 9); __PYX_ERR(0, 6181, __pyx_L3_error)
31369 CYTHON_FALLTHROUGH;
31371 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_bc)) != 0)) kw_args--;
31373 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 10); __PYX_ERR(0, 6181, __pyx_L3_error)
31375 CYTHON_FALLTHROUGH;
31377 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
31379 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 11); __PYX_ERR(0, 6181, __pyx_L3_error)
31381 CYTHON_FALLTHROUGH;
31383 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
31385 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 12); __PYX_ERR(0, 6181, __pyx_L3_error)
31387 CYTHON_FALLTHROUGH;
31389 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
31391 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 13); __PYX_ERR(0, 6181, __pyx_L3_error)
31393 CYTHON_FALLTHROUGH;
31395 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
31397 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, 14); __PYX_ERR(0, 6181, __pyx_L3_error)
31400 if (unlikely(kw_args > 0)) {
31401 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind") < 0)) __PYX_ERR(0, 6181, __pyx_L3_error)
31403 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
31404 goto __pyx_L5_argtuple_error;
31406 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31407 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31408 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31409 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31410 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31411 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31412 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31413 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31414 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31415 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31416 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31417 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31418 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31419 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31420 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31422 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6181, __pyx_L3_error)
31423 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6182, __pyx_L3_error)
31424 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6183, __pyx_L3_error)
31425 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6184, __pyx_L3_error)
31426 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
31427 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
31428 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
31429 __pyx_v_n = ((PyArrayObject *)values[7]);
31430 __pyx_v_u = ((PyArrayObject *)values[8]);
31431 __pyx_v_a = ((PyArrayObject *)values[9]);
31432 __pyx_v_phi_bc = ((PyArrayObject *)values[10]);
31433 __pyx_v_phi = ((PyArrayObject *)values[11]);
31434 __pyx_v_V = ((PyArrayObject *)values[12]);
31435 __pyx_v_penalty = ((PyArrayObject *)values[13]);
31436 __pyx_v_flux = ((PyArrayObject *)values[14]);
31438 goto __pyx_L4_argument_unpacking_done;
31439 __pyx_L5_argtuple_error:;
31440 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6181, __pyx_L3_error)
31442 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
31443 __Pyx_RefNannyFinishContext();
31445 __pyx_L4_argument_unpacking_done:;
31446 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6185, __pyx_L1_error)
31447 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6186, __pyx_L1_error)
31448 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6187, __pyx_L1_error)
31449 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6188, __pyx_L1_error)
31450 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6189, __pyx_L1_error)
31451 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6190, __pyx_L1_error)
31452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_bc), __pyx_ptype_5numpy_ndarray, 1,
"phi_bc", 0))) __PYX_ERR(0, 6191, __pyx_L1_error)
31453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6192, __pyx_L1_error)
31454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6193, __pyx_L1_error)
31455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6194, __pyx_L1_error)
31456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6195, __pyx_L1_error)
31457 __pyx_r = __pyx_pf_14cnumericalFlux_174calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi_bc, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
31464 __Pyx_RefNannyFinishContext();
31468 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) {
31469 PyObject *__pyx_r = NULL;
31470 __Pyx_RefNannyDeclarations
31471 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind", 0);
31480 calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
31491 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31492 __Pyx_XGIVEREF(__pyx_r);
31493 __Pyx_RefNannyFinishContext();
31506 static PyObject *__pyx_pw_14cnumericalFlux_177calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31507 static PyMethodDef __pyx_mdef_14cnumericalFlux_177calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd = {
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_177calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
31508 static PyObject *__pyx_pw_14cnumericalFlux_177calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31509 int __pyx_v_nExteriorElementBoundaries_global;
31510 int __pyx_v_nElementBoundaries_element;
31511 int __pyx_v_nQuadraturePoints_elementBoundary;
31512 int __pyx_v_nSpace;
31513 PyArrayObject *__pyx_v_rowptr = 0;
31514 PyArrayObject *__pyx_v_colind = 0;
31515 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
31516 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31517 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31518 PyArrayObject *__pyx_v_n = 0;
31519 PyArrayObject *__pyx_v_u = 0;
31520 PyArrayObject *__pyx_v_a = 0;
31521 PyArrayObject *__pyx_v_phi_bc = 0;
31522 PyArrayObject *__pyx_v_phi = 0;
31523 PyArrayObject *__pyx_v_V = 0;
31524 PyArrayObject *__pyx_v_penalty = 0;
31525 PyArrayObject *__pyx_v_flux = 0;
31526 int __pyx_lineno = 0;
31527 const char *__pyx_filename = NULL;
31528 int __pyx_clineno = 0;
31529 PyObject *__pyx_r = 0;
31530 __Pyx_RefNannyDeclarations
31531 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd (wrapper)", 0);
31533 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_u,&__pyx_n_s_a,&__pyx_n_s_phi_bc,&__pyx_n_s_phi,&__pyx_n_s_V,&__pyx_n_s_penalty,&__pyx_n_s_flux,0};
31534 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31535 if (unlikely(__pyx_kwds)) {
31536 Py_ssize_t kw_args;
31537 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31538 switch (pos_args) {
31539 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31540 CYTHON_FALLTHROUGH;
31541 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31542 CYTHON_FALLTHROUGH;
31543 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31544 CYTHON_FALLTHROUGH;
31545 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31546 CYTHON_FALLTHROUGH;
31547 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31548 CYTHON_FALLTHROUGH;
31549 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31550 CYTHON_FALLTHROUGH;
31551 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31552 CYTHON_FALLTHROUGH;
31553 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31554 CYTHON_FALLTHROUGH;
31555 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31556 CYTHON_FALLTHROUGH;
31557 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31558 CYTHON_FALLTHROUGH;
31559 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31560 CYTHON_FALLTHROUGH;
31561 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31562 CYTHON_FALLTHROUGH;
31563 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31564 CYTHON_FALLTHROUGH;
31565 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31566 CYTHON_FALLTHROUGH;
31567 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31568 CYTHON_FALLTHROUGH;
31569 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31570 CYTHON_FALLTHROUGH;
31571 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31572 CYTHON_FALLTHROUGH;
31574 default:
goto __pyx_L5_argtuple_error;
31576 kw_args = PyDict_Size(__pyx_kwds);
31577 switch (pos_args) {
31579 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
31580 else goto __pyx_L5_argtuple_error;
31581 CYTHON_FALLTHROUGH;
31583 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
31585 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 1); __PYX_ERR(0, 6211, __pyx_L3_error)
31587 CYTHON_FALLTHROUGH;
31589 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
31591 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 2); __PYX_ERR(0, 6211, __pyx_L3_error)
31593 CYTHON_FALLTHROUGH;
31595 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
31597 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 3); __PYX_ERR(0, 6211, __pyx_L3_error)
31599 CYTHON_FALLTHROUGH;
31601 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
31603 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 4); __PYX_ERR(0, 6211, __pyx_L3_error)
31605 CYTHON_FALLTHROUGH;
31607 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
31609 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 5); __PYX_ERR(0, 6211, __pyx_L3_error)
31611 CYTHON_FALLTHROUGH;
31613 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31615 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 6); __PYX_ERR(0, 6211, __pyx_L3_error)
31617 CYTHON_FALLTHROUGH;
31619 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31621 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 7); __PYX_ERR(0, 6211, __pyx_L3_error)
31623 CYTHON_FALLTHROUGH;
31625 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31627 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 8); __PYX_ERR(0, 6211, __pyx_L3_error)
31629 CYTHON_FALLTHROUGH;
31631 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31633 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 9); __PYX_ERR(0, 6211, __pyx_L3_error)
31635 CYTHON_FALLTHROUGH;
31637 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
31639 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 10); __PYX_ERR(0, 6211, __pyx_L3_error)
31641 CYTHON_FALLTHROUGH;
31643 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31645 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 11); __PYX_ERR(0, 6211, __pyx_L3_error)
31647 CYTHON_FALLTHROUGH;
31649 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_bc)) != 0)) kw_args--;
31651 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 12); __PYX_ERR(0, 6211, __pyx_L3_error)
31653 CYTHON_FALLTHROUGH;
31655 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
31657 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 13); __PYX_ERR(0, 6211, __pyx_L3_error)
31659 CYTHON_FALLTHROUGH;
31661 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
31663 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 14); __PYX_ERR(0, 6211, __pyx_L3_error)
31665 CYTHON_FALLTHROUGH;
31667 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
31669 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 15); __PYX_ERR(0, 6211, __pyx_L3_error)
31671 CYTHON_FALLTHROUGH;
31673 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
31675 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, 16); __PYX_ERR(0, 6211, __pyx_L3_error)
31678 if (unlikely(kw_args > 0)) {
31679 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd") < 0)) __PYX_ERR(0, 6211, __pyx_L3_error)
31681 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
31682 goto __pyx_L5_argtuple_error;
31684 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31685 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31686 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31687 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31688 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31689 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31690 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31691 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31692 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31693 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31694 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31695 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31696 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31697 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31698 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31699 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
31700 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
31702 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6211, __pyx_L3_error)
31703 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6212, __pyx_L3_error)
31704 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6213, __pyx_L3_error)
31705 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6214, __pyx_L3_error)
31706 __pyx_v_rowptr = ((PyArrayObject *)values[4]);
31707 __pyx_v_colind = ((PyArrayObject *)values[5]);
31708 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[6]);
31709 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[7]);
31710 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[8]);
31711 __pyx_v_n = ((PyArrayObject *)values[9]);
31712 __pyx_v_u = ((PyArrayObject *)values[10]);
31713 __pyx_v_a = ((PyArrayObject *)values[11]);
31714 __pyx_v_phi_bc = ((PyArrayObject *)values[12]);
31715 __pyx_v_phi = ((PyArrayObject *)values[13]);
31716 __pyx_v_V = ((PyArrayObject *)values[14]);
31717 __pyx_v_penalty = ((PyArrayObject *)values[15]);
31718 __pyx_v_flux = ((PyArrayObject *)values[16]);
31720 goto __pyx_L4_argument_unpacking_done;
31721 __pyx_L5_argtuple_error:;
31722 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6211, __pyx_L3_error)
31724 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
31725 __Pyx_RefNannyFinishContext();
31727 __pyx_L4_argument_unpacking_done:;
31728 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6215, __pyx_L1_error)
31729 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6216, __pyx_L1_error)
31730 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6217, __pyx_L1_error)
31731 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6218, __pyx_L1_error)
31732 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6219, __pyx_L1_error)
31733 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6220, __pyx_L1_error)
31734 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6221, __pyx_L1_error)
31735 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6222, __pyx_L1_error)
31736 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_bc), __pyx_ptype_5numpy_ndarray, 1,
"phi_bc", 0))) __PYX_ERR(0, 6223, __pyx_L1_error)
31737 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 6224, __pyx_L1_error)
31738 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6225, __pyx_L1_error)
31739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6226, __pyx_L1_error)
31740 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6227, __pyx_L1_error)
31741 __pyx_r = __pyx_pf_14cnumericalFlux_176calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_u, __pyx_v_a, __pyx_v_phi_bc, __pyx_v_phi, __pyx_v_V, __pyx_v_penalty, __pyx_v_flux);
31748 __Pyx_RefNannyFinishContext();
31752 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) {
31753 PyObject *__pyx_r = NULL;
31754 __Pyx_RefNannyDeclarations
31755 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd", 0);
31764 calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_flux->data));
31775 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31776 __Pyx_XGIVEREF(__pyx_r);
31777 __Pyx_RefNannyFinishContext();
31790 static PyObject *__pyx_pw_14cnumericalFlux_179updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31791 static PyMethodDef __pyx_mdef_14cnumericalFlux_179updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind = {
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_179updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
31792 static PyObject *__pyx_pw_14cnumericalFlux_179updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31793 PyArrayObject *__pyx_v_isDiffusiveFluxBoundary = 0;
31794 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
31795 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31796 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31797 PyArrayObject *__pyx_v_n = 0;
31798 PyArrayObject *__pyx_v_a = 0;
31799 PyArrayObject *__pyx_v_da = 0;
31800 PyArrayObject *__pyx_v_dphi = 0;
31801 PyArrayObject *__pyx_v_V = 0;
31802 PyArrayObject *__pyx_v_DV = 0;
31803 PyArrayObject *__pyx_v_DV_eb = 0;
31804 PyArrayObject *__pyx_v_v = 0;
31805 PyArrayObject *__pyx_v_penalty = 0;
31806 PyArrayObject *__pyx_v_fluxJacobian = 0;
31807 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
31808 int __pyx_lineno = 0;
31809 const char *__pyx_filename = NULL;
31810 int __pyx_clineno = 0;
31811 PyObject *__pyx_r = 0;
31812 __Pyx_RefNannyDeclarations
31813 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind (wrapper)", 0);
31815 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDiffusiveFluxBoundary,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,&__pyx_n_s_fluxJacobian_eb,0};
31816 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
31817 if (unlikely(__pyx_kwds)) {
31818 Py_ssize_t kw_args;
31819 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31820 switch (pos_args) {
31821 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31822 CYTHON_FALLTHROUGH;
31823 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31824 CYTHON_FALLTHROUGH;
31825 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31826 CYTHON_FALLTHROUGH;
31827 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31828 CYTHON_FALLTHROUGH;
31829 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31830 CYTHON_FALLTHROUGH;
31831 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31832 CYTHON_FALLTHROUGH;
31833 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31834 CYTHON_FALLTHROUGH;
31835 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31836 CYTHON_FALLTHROUGH;
31837 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31838 CYTHON_FALLTHROUGH;
31839 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31840 CYTHON_FALLTHROUGH;
31841 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31842 CYTHON_FALLTHROUGH;
31843 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31844 CYTHON_FALLTHROUGH;
31845 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31846 CYTHON_FALLTHROUGH;
31847 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31848 CYTHON_FALLTHROUGH;
31849 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31850 CYTHON_FALLTHROUGH;
31852 default:
goto __pyx_L5_argtuple_error;
31854 kw_args = PyDict_Size(__pyx_kwds);
31855 switch (pos_args) {
31857 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDiffusiveFluxBoundary)) != 0)) kw_args--;
31858 else goto __pyx_L5_argtuple_error;
31859 CYTHON_FALLTHROUGH;
31861 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31863 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 1); __PYX_ERR(0, 6245, __pyx_L3_error)
31865 CYTHON_FALLTHROUGH;
31867 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31869 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 2); __PYX_ERR(0, 6245, __pyx_L3_error)
31871 CYTHON_FALLTHROUGH;
31873 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31875 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 3); __PYX_ERR(0, 6245, __pyx_L3_error)
31877 CYTHON_FALLTHROUGH;
31879 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31881 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 4); __PYX_ERR(0, 6245, __pyx_L3_error)
31883 CYTHON_FALLTHROUGH;
31885 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
31887 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 5); __PYX_ERR(0, 6245, __pyx_L3_error)
31889 CYTHON_FALLTHROUGH;
31891 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
31893 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 6); __PYX_ERR(0, 6245, __pyx_L3_error)
31895 CYTHON_FALLTHROUGH;
31897 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
31899 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 7); __PYX_ERR(0, 6245, __pyx_L3_error)
31901 CYTHON_FALLTHROUGH;
31903 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
31905 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 8); __PYX_ERR(0, 6245, __pyx_L3_error)
31907 CYTHON_FALLTHROUGH;
31909 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
31911 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 9); __PYX_ERR(0, 6245, __pyx_L3_error)
31913 CYTHON_FALLTHROUGH;
31915 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
31917 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 10); __PYX_ERR(0, 6245, __pyx_L3_error)
31919 CYTHON_FALLTHROUGH;
31921 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
31923 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 11); __PYX_ERR(0, 6245, __pyx_L3_error)
31925 CYTHON_FALLTHROUGH;
31927 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
31929 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 12); __PYX_ERR(0, 6245, __pyx_L3_error)
31931 CYTHON_FALLTHROUGH;
31933 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
31935 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 13); __PYX_ERR(0, 6245, __pyx_L3_error)
31937 CYTHON_FALLTHROUGH;
31939 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
31941 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, 14); __PYX_ERR(0, 6245, __pyx_L3_error)
31944 if (unlikely(kw_args > 0)) {
31945 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind") < 0)) __PYX_ERR(0, 6245, __pyx_L3_error)
31947 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
31948 goto __pyx_L5_argtuple_error;
31950 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31951 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31952 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31953 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31954 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31955 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31956 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31957 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31958 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31959 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31960 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
31961 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
31962 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
31963 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
31964 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
31966 __pyx_v_isDiffusiveFluxBoundary = ((PyArrayObject *)values[0]);
31967 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
31968 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
31969 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
31970 __pyx_v_n = ((PyArrayObject *)values[4]);
31971 __pyx_v_a = ((PyArrayObject *)values[5]);
31972 __pyx_v_da = ((PyArrayObject *)values[6]);
31973 __pyx_v_dphi = ((PyArrayObject *)values[7]);
31974 __pyx_v_V = ((PyArrayObject *)values[8]);
31975 __pyx_v_DV = ((PyArrayObject *)values[9]);
31976 __pyx_v_DV_eb = ((PyArrayObject *)values[10]);
31977 __pyx_v_v = ((PyArrayObject *)values[11]);
31978 __pyx_v_penalty = ((PyArrayObject *)values[12]);
31979 __pyx_v_fluxJacobian = ((PyArrayObject *)values[13]);
31980 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[14]);
31982 goto __pyx_L4_argument_unpacking_done;
31983 __pyx_L5_argtuple_error:;
31984 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6245, __pyx_L3_error)
31986 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
31987 __Pyx_RefNannyFinishContext();
31989 __pyx_L4_argument_unpacking_done:;
31990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDiffusiveFluxBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDiffusiveFluxBoundary", 0))) __PYX_ERR(0, 6245, __pyx_L1_error)
31991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6246, __pyx_L1_error)
31992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6247, __pyx_L1_error)
31993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6248, __pyx_L1_error)
31994 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6249, __pyx_L1_error)
31995 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6250, __pyx_L1_error)
31996 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6251, __pyx_L1_error)
31997 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6252, __pyx_L1_error)
31998 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6253, __pyx_L1_error)
31999 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 6254, __pyx_L1_error)
32000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 6255, __pyx_L1_error)
32001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6256, __pyx_L1_error)
32002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6257, __pyx_L1_error)
32003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6258, __pyx_L1_error)
32004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 6259, __pyx_L1_error)
32005 __pyx_r = __pyx_pf_14cnumericalFlux_178updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(__pyx_self, __pyx_v_isDiffusiveFluxBoundary, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian, __pyx_v_fluxJacobian_eb);
32012 __Pyx_RefNannyFinishContext();
32016 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) {
32017 PyObject *__pyx_r = NULL;
32018 __Pyx_RefNannyDeclarations
32020 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 0);
32029 __pyx_t_1 = ((__pyx_v_n->nd > 3) != 0);
32039 updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
32067 updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_DV->dimensions[1]), (__pyx_v_DV->dimensions[2]), (__pyx_v_DV->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
32080 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32081 __Pyx_XGIVEREF(__pyx_r);
32082 __Pyx_RefNannyFinishContext();
32095 static PyObject *__pyx_pw_14cnumericalFlux_181updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32096 static PyMethodDef __pyx_mdef_14cnumericalFlux_181updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd = {
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_181updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
32097 static PyObject *__pyx_pw_14cnumericalFlux_181updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32098 PyArrayObject *__pyx_v_isDiffusiveFluxBoundary = 0;
32099 PyArrayObject *__pyx_v_rowptr = 0;
32100 PyArrayObject *__pyx_v_colind = 0;
32101 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
32102 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
32103 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
32104 PyArrayObject *__pyx_v_n = 0;
32105 PyArrayObject *__pyx_v_a = 0;
32106 PyArrayObject *__pyx_v_da = 0;
32107 PyArrayObject *__pyx_v_dphi = 0;
32108 PyArrayObject *__pyx_v_V = 0;
32109 PyArrayObject *__pyx_v_DV = 0;
32110 PyArrayObject *__pyx_v_DV_eb = 0;
32111 PyArrayObject *__pyx_v_v = 0;
32112 PyArrayObject *__pyx_v_penalty = 0;
32113 PyArrayObject *__pyx_v_fluxJacobian = 0;
32114 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
32115 int __pyx_lineno = 0;
32116 const char *__pyx_filename = NULL;
32117 int __pyx_clineno = 0;
32118 PyObject *__pyx_r = 0;
32119 __Pyx_RefNannyDeclarations
32120 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd (wrapper)", 0);
32122 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDiffusiveFluxBoundary,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian,&__pyx_n_s_fluxJacobian_eb,0};
32123 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32124 if (unlikely(__pyx_kwds)) {
32125 Py_ssize_t kw_args;
32126 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32127 switch (pos_args) {
32128 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32129 CYTHON_FALLTHROUGH;
32130 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32131 CYTHON_FALLTHROUGH;
32132 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32133 CYTHON_FALLTHROUGH;
32134 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32135 CYTHON_FALLTHROUGH;
32136 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32137 CYTHON_FALLTHROUGH;
32138 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32139 CYTHON_FALLTHROUGH;
32140 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32141 CYTHON_FALLTHROUGH;
32142 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32143 CYTHON_FALLTHROUGH;
32144 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32145 CYTHON_FALLTHROUGH;
32146 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32147 CYTHON_FALLTHROUGH;
32148 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32149 CYTHON_FALLTHROUGH;
32150 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32151 CYTHON_FALLTHROUGH;
32152 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32153 CYTHON_FALLTHROUGH;
32154 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32155 CYTHON_FALLTHROUGH;
32156 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32157 CYTHON_FALLTHROUGH;
32158 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32159 CYTHON_FALLTHROUGH;
32160 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32161 CYTHON_FALLTHROUGH;
32163 default:
goto __pyx_L5_argtuple_error;
32165 kw_args = PyDict_Size(__pyx_kwds);
32166 switch (pos_args) {
32168 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDiffusiveFluxBoundary)) != 0)) kw_args--;
32169 else goto __pyx_L5_argtuple_error;
32170 CYTHON_FALLTHROUGH;
32172 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
32174 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 1); __PYX_ERR(0, 6303, __pyx_L3_error)
32176 CYTHON_FALLTHROUGH;
32178 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
32180 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 2); __PYX_ERR(0, 6303, __pyx_L3_error)
32182 CYTHON_FALLTHROUGH;
32184 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
32186 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 3); __PYX_ERR(0, 6303, __pyx_L3_error)
32188 CYTHON_FALLTHROUGH;
32190 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
32192 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 4); __PYX_ERR(0, 6303, __pyx_L3_error)
32194 CYTHON_FALLTHROUGH;
32196 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
32198 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 5); __PYX_ERR(0, 6303, __pyx_L3_error)
32200 CYTHON_FALLTHROUGH;
32202 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32204 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 6); __PYX_ERR(0, 6303, __pyx_L3_error)
32206 CYTHON_FALLTHROUGH;
32208 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
32210 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 7); __PYX_ERR(0, 6303, __pyx_L3_error)
32212 CYTHON_FALLTHROUGH;
32214 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
32216 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 8); __PYX_ERR(0, 6303, __pyx_L3_error)
32218 CYTHON_FALLTHROUGH;
32220 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
32222 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 9); __PYX_ERR(0, 6303, __pyx_L3_error)
32224 CYTHON_FALLTHROUGH;
32226 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
32228 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 10); __PYX_ERR(0, 6303, __pyx_L3_error)
32230 CYTHON_FALLTHROUGH;
32232 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
32234 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 11); __PYX_ERR(0, 6303, __pyx_L3_error)
32236 CYTHON_FALLTHROUGH;
32238 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
32240 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 12); __PYX_ERR(0, 6303, __pyx_L3_error)
32242 CYTHON_FALLTHROUGH;
32244 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32246 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 13); __PYX_ERR(0, 6303, __pyx_L3_error)
32248 CYTHON_FALLTHROUGH;
32250 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
32252 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 14); __PYX_ERR(0, 6303, __pyx_L3_error)
32254 CYTHON_FALLTHROUGH;
32256 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
32258 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 15); __PYX_ERR(0, 6303, __pyx_L3_error)
32260 CYTHON_FALLTHROUGH;
32262 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
32264 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, 16); __PYX_ERR(0, 6303, __pyx_L3_error)
32267 if (unlikely(kw_args > 0)) {
32268 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd") < 0)) __PYX_ERR(0, 6303, __pyx_L3_error)
32270 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
32271 goto __pyx_L5_argtuple_error;
32273 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32274 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32275 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32276 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32277 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32278 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32279 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32280 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32281 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32282 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32283 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32284 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32285 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32286 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32287 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32288 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32289 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32291 __pyx_v_isDiffusiveFluxBoundary = ((PyArrayObject *)values[0]);
32292 __pyx_v_rowptr = ((PyArrayObject *)values[1]);
32293 __pyx_v_colind = ((PyArrayObject *)values[2]);
32294 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
32295 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
32296 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
32297 __pyx_v_n = ((PyArrayObject *)values[6]);
32298 __pyx_v_a = ((PyArrayObject *)values[7]);
32299 __pyx_v_da = ((PyArrayObject *)values[8]);
32300 __pyx_v_dphi = ((PyArrayObject *)values[9]);
32301 __pyx_v_V = ((PyArrayObject *)values[10]);
32302 __pyx_v_DV = ((PyArrayObject *)values[11]);
32303 __pyx_v_DV_eb = ((PyArrayObject *)values[12]);
32304 __pyx_v_v = ((PyArrayObject *)values[13]);
32305 __pyx_v_penalty = ((PyArrayObject *)values[14]);
32306 __pyx_v_fluxJacobian = ((PyArrayObject *)values[15]);
32307 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[16]);
32309 goto __pyx_L4_argument_unpacking_done;
32310 __pyx_L5_argtuple_error:;
32311 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6303, __pyx_L3_error)
32313 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
32314 __Pyx_RefNannyFinishContext();
32316 __pyx_L4_argument_unpacking_done:;
32317 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDiffusiveFluxBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDiffusiveFluxBoundary", 0))) __PYX_ERR(0, 6303, __pyx_L1_error)
32318 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6304, __pyx_L1_error)
32319 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6305, __pyx_L1_error)
32320 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6306, __pyx_L1_error)
32321 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6307, __pyx_L1_error)
32322 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6308, __pyx_L1_error)
32323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6309, __pyx_L1_error)
32324 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6310, __pyx_L1_error)
32325 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6311, __pyx_L1_error)
32326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6312, __pyx_L1_error)
32327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6313, __pyx_L1_error)
32328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 6314, __pyx_L1_error)
32329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 6315, __pyx_L1_error)
32330 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6316, __pyx_L1_error)
32331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6317, __pyx_L1_error)
32332 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6318, __pyx_L1_error)
32333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 6319, __pyx_L1_error)
32334 __pyx_r = __pyx_pf_14cnumericalFlux_180updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(__pyx_self, __pyx_v_isDiffusiveFluxBoundary, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian, __pyx_v_fluxJacobian_eb);
32341 __Pyx_RefNannyFinishContext();
32345 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) {
32346 PyObject *__pyx_r = NULL;
32347 __Pyx_RefNannyDeclarations
32349 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 0);
32358 __pyx_t_1 = ((__pyx_v_n->nd > 3) != 0);
32368 updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_n->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
32396 updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_DV->dimensions[1]), (__pyx_v_DV->dimensions[2]), (__pyx_v_DV->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
32409 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32410 __Pyx_XGIVEREF(__pyx_r);
32411 __Pyx_RefNannyFinishContext();
32424 static PyObject *__pyx_pw_14cnumericalFlux_183updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32425 static PyMethodDef __pyx_mdef_14cnumericalFlux_183updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_183updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind, METH_VARARGS|METH_KEYWORDS, 0};
32426 static PyObject *__pyx_pw_14cnumericalFlux_183updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32427 PyArrayObject *__pyx_v_isDiffusiveFluxBoundary = 0;
32428 int __pyx_v_nExteriorElementBoundaries_global;
32429 int __pyx_v_nElementBoundaries_element;
32430 int __pyx_v_nQuadraturePoints_elementBoundary;
32431 int __pyx_v_nDOF_trial_element;
32432 int __pyx_v_nSpace;
32433 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
32434 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
32435 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
32436 PyArrayObject *__pyx_v_n = 0;
32437 PyArrayObject *__pyx_v_a = 0;
32438 PyArrayObject *__pyx_v_da = 0;
32439 PyArrayObject *__pyx_v_dphi = 0;
32440 PyArrayObject *__pyx_v_V = 0;
32441 PyArrayObject *__pyx_v_DV = 0;
32442 PyArrayObject *__pyx_v_DV_eb = 0;
32443 PyArrayObject *__pyx_v_v = 0;
32444 PyArrayObject *__pyx_v_penalty = 0;
32445 PyArrayObject *__pyx_v_fluxJacobian_exterior = 0;
32446 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
32447 int __pyx_lineno = 0;
32448 const char *__pyx_filename = NULL;
32449 int __pyx_clineno = 0;
32450 PyObject *__pyx_r = 0;
32451 __Pyx_RefNannyDeclarations
32452 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind (wrapper)", 0);
32454 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDiffusiveFluxBoundary,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian_exterior,&__pyx_n_s_fluxJacobian_eb,0};
32455 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32456 if (unlikely(__pyx_kwds)) {
32457 Py_ssize_t kw_args;
32458 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32459 switch (pos_args) {
32460 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32461 CYTHON_FALLTHROUGH;
32462 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32463 CYTHON_FALLTHROUGH;
32464 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32465 CYTHON_FALLTHROUGH;
32466 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32467 CYTHON_FALLTHROUGH;
32468 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32469 CYTHON_FALLTHROUGH;
32470 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32471 CYTHON_FALLTHROUGH;
32472 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32473 CYTHON_FALLTHROUGH;
32474 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32475 CYTHON_FALLTHROUGH;
32476 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32477 CYTHON_FALLTHROUGH;
32478 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32479 CYTHON_FALLTHROUGH;
32480 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32481 CYTHON_FALLTHROUGH;
32482 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32483 CYTHON_FALLTHROUGH;
32484 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32485 CYTHON_FALLTHROUGH;
32486 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32487 CYTHON_FALLTHROUGH;
32488 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32489 CYTHON_FALLTHROUGH;
32490 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32491 CYTHON_FALLTHROUGH;
32492 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32493 CYTHON_FALLTHROUGH;
32494 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32495 CYTHON_FALLTHROUGH;
32496 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32497 CYTHON_FALLTHROUGH;
32498 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32499 CYTHON_FALLTHROUGH;
32501 default:
goto __pyx_L5_argtuple_error;
32503 kw_args = PyDict_Size(__pyx_kwds);
32504 switch (pos_args) {
32506 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDiffusiveFluxBoundary)) != 0)) kw_args--;
32507 else goto __pyx_L5_argtuple_error;
32508 CYTHON_FALLTHROUGH;
32510 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
32512 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 1); __PYX_ERR(0, 6366, __pyx_L3_error)
32514 CYTHON_FALLTHROUGH;
32516 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
32518 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 2); __PYX_ERR(0, 6366, __pyx_L3_error)
32520 CYTHON_FALLTHROUGH;
32522 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
32524 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 3); __PYX_ERR(0, 6366, __pyx_L3_error)
32526 CYTHON_FALLTHROUGH;
32528 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
32530 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 4); __PYX_ERR(0, 6366, __pyx_L3_error)
32532 CYTHON_FALLTHROUGH;
32534 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
32536 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 5); __PYX_ERR(0, 6366, __pyx_L3_error)
32538 CYTHON_FALLTHROUGH;
32540 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
32542 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 6); __PYX_ERR(0, 6366, __pyx_L3_error)
32544 CYTHON_FALLTHROUGH;
32546 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
32548 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 7); __PYX_ERR(0, 6366, __pyx_L3_error)
32550 CYTHON_FALLTHROUGH;
32552 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
32554 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 8); __PYX_ERR(0, 6366, __pyx_L3_error)
32556 CYTHON_FALLTHROUGH;
32558 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32560 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 9); __PYX_ERR(0, 6366, __pyx_L3_error)
32562 CYTHON_FALLTHROUGH;
32564 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
32566 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 10); __PYX_ERR(0, 6366, __pyx_L3_error)
32568 CYTHON_FALLTHROUGH;
32570 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
32572 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 11); __PYX_ERR(0, 6366, __pyx_L3_error)
32574 CYTHON_FALLTHROUGH;
32576 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
32578 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 12); __PYX_ERR(0, 6366, __pyx_L3_error)
32580 CYTHON_FALLTHROUGH;
32582 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
32584 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 13); __PYX_ERR(0, 6366, __pyx_L3_error)
32586 CYTHON_FALLTHROUGH;
32588 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
32590 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 14); __PYX_ERR(0, 6366, __pyx_L3_error)
32592 CYTHON_FALLTHROUGH;
32594 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
32596 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 15); __PYX_ERR(0, 6366, __pyx_L3_error)
32598 CYTHON_FALLTHROUGH;
32600 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32602 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 16); __PYX_ERR(0, 6366, __pyx_L3_error)
32604 CYTHON_FALLTHROUGH;
32606 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
32608 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 17); __PYX_ERR(0, 6366, __pyx_L3_error)
32610 CYTHON_FALLTHROUGH;
32612 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_exterior)) != 0)) kw_args--;
32614 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 18); __PYX_ERR(0, 6366, __pyx_L3_error)
32616 CYTHON_FALLTHROUGH;
32618 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
32620 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, 19); __PYX_ERR(0, 6366, __pyx_L3_error)
32623 if (unlikely(kw_args > 0)) {
32624 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind") < 0)) __PYX_ERR(0, 6366, __pyx_L3_error)
32626 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
32627 goto __pyx_L5_argtuple_error;
32629 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32630 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32631 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32632 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32633 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32634 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32635 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32636 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32637 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32638 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32639 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32640 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32641 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32642 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32643 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32644 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32645 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32646 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32647 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32648 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32650 __pyx_v_isDiffusiveFluxBoundary = ((PyArrayObject *)values[0]);
32651 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6367, __pyx_L3_error)
32652 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6368, __pyx_L3_error)
32653 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6369, __pyx_L3_error)
32654 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6370, __pyx_L3_error)
32655 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6371, __pyx_L3_error)
32656 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[6]);
32657 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[7]);
32658 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[8]);
32659 __pyx_v_n = ((PyArrayObject *)values[9]);
32660 __pyx_v_a = ((PyArrayObject *)values[10]);
32661 __pyx_v_da = ((PyArrayObject *)values[11]);
32662 __pyx_v_dphi = ((PyArrayObject *)values[12]);
32663 __pyx_v_V = ((PyArrayObject *)values[13]);
32664 __pyx_v_DV = ((PyArrayObject *)values[14]);
32665 __pyx_v_DV_eb = ((PyArrayObject *)values[15]);
32666 __pyx_v_v = ((PyArrayObject *)values[16]);
32667 __pyx_v_penalty = ((PyArrayObject *)values[17]);
32668 __pyx_v_fluxJacobian_exterior = ((PyArrayObject *)values[18]);
32669 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[19]);
32671 goto __pyx_L4_argument_unpacking_done;
32672 __pyx_L5_argtuple_error:;
32673 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6366, __pyx_L3_error)
32675 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", __pyx_clineno, __pyx_lineno, __pyx_filename);
32676 __Pyx_RefNannyFinishContext();
32678 __pyx_L4_argument_unpacking_done:;
32679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDiffusiveFluxBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDiffusiveFluxBoundary", 0))) __PYX_ERR(0, 6366, __pyx_L1_error)
32680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6372, __pyx_L1_error)
32681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6373, __pyx_L1_error)
32682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6374, __pyx_L1_error)
32683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6375, __pyx_L1_error)
32684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6376, __pyx_L1_error)
32685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6377, __pyx_L1_error)
32686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6378, __pyx_L1_error)
32687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6379, __pyx_L1_error)
32688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 6380, __pyx_L1_error)
32689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 6381, __pyx_L1_error)
32690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6382, __pyx_L1_error)
32691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6383, __pyx_L1_error)
32692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_exterior), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_exterior", 0))) __PYX_ERR(0, 6384, __pyx_L1_error)
32693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 6385, __pyx_L1_error)
32694 __pyx_r = __pyx_pf_14cnumericalFlux_182updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(__pyx_self, __pyx_v_isDiffusiveFluxBoundary, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian_exterior, __pyx_v_fluxJacobian_eb);
32701 __Pyx_RefNannyFinishContext();
32705 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) {
32706 PyObject *__pyx_r = NULL;
32707 __Pyx_RefNannyDeclarations
32708 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind", 0);
32717 updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian_exterior->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
32728 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32729 __Pyx_XGIVEREF(__pyx_r);
32730 __Pyx_RefNannyFinishContext();
32743 static PyObject *__pyx_pw_14cnumericalFlux_185updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32744 static PyMethodDef __pyx_mdef_14cnumericalFlux_185updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd = {
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_185updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, METH_VARARGS|METH_KEYWORDS, 0};
32745 static PyObject *__pyx_pw_14cnumericalFlux_185updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32746 PyArrayObject *__pyx_v_isDiffusiveFluxBoundary = 0;
32747 int __pyx_v_nExteriorElementBoundaries_global;
32748 int __pyx_v_nElementBoundaries_element;
32749 int __pyx_v_nQuadraturePoints_elementBoundary;
32750 int __pyx_v_nDOF_trial_element;
32751 int __pyx_v_nSpace;
32752 PyArrayObject *__pyx_v_rowptr = 0;
32753 PyArrayObject *__pyx_v_colind = 0;
32754 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
32755 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
32756 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
32757 PyArrayObject *__pyx_v_n = 0;
32758 PyArrayObject *__pyx_v_a = 0;
32759 PyArrayObject *__pyx_v_da = 0;
32760 PyArrayObject *__pyx_v_dphi = 0;
32761 PyArrayObject *__pyx_v_V = 0;
32762 PyArrayObject *__pyx_v_DV = 0;
32763 PyArrayObject *__pyx_v_DV_eb = 0;
32764 PyArrayObject *__pyx_v_v = 0;
32765 PyArrayObject *__pyx_v_penalty = 0;
32766 PyArrayObject *__pyx_v_fluxJacobian_exterior = 0;
32767 PyArrayObject *__pyx_v_fluxJacobian_eb = 0;
32768 int __pyx_lineno = 0;
32769 const char *__pyx_filename = NULL;
32770 int __pyx_clineno = 0;
32771 PyObject *__pyx_r = 0;
32772 __Pyx_RefNannyDeclarations
32773 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd (wrapper)", 0);
32775 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDiffusiveFluxBoundary,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_V,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_v,&__pyx_n_s_penalty,&__pyx_n_s_fluxJacobian_exterior,&__pyx_n_s_fluxJacobian_eb,0};
32776 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32777 if (unlikely(__pyx_kwds)) {
32778 Py_ssize_t kw_args;
32779 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32780 switch (pos_args) {
32781 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32782 CYTHON_FALLTHROUGH;
32783 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32784 CYTHON_FALLTHROUGH;
32785 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32786 CYTHON_FALLTHROUGH;
32787 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32788 CYTHON_FALLTHROUGH;
32789 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32790 CYTHON_FALLTHROUGH;
32791 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32792 CYTHON_FALLTHROUGH;
32793 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32794 CYTHON_FALLTHROUGH;
32795 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32796 CYTHON_FALLTHROUGH;
32797 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32798 CYTHON_FALLTHROUGH;
32799 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32800 CYTHON_FALLTHROUGH;
32801 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32802 CYTHON_FALLTHROUGH;
32803 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32804 CYTHON_FALLTHROUGH;
32805 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32806 CYTHON_FALLTHROUGH;
32807 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32808 CYTHON_FALLTHROUGH;
32809 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32810 CYTHON_FALLTHROUGH;
32811 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32812 CYTHON_FALLTHROUGH;
32813 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32814 CYTHON_FALLTHROUGH;
32815 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32816 CYTHON_FALLTHROUGH;
32817 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32818 CYTHON_FALLTHROUGH;
32819 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32820 CYTHON_FALLTHROUGH;
32821 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32822 CYTHON_FALLTHROUGH;
32823 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32824 CYTHON_FALLTHROUGH;
32826 default:
goto __pyx_L5_argtuple_error;
32828 kw_args = PyDict_Size(__pyx_kwds);
32829 switch (pos_args) {
32831 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDiffusiveFluxBoundary)) != 0)) kw_args--;
32832 else goto __pyx_L5_argtuple_error;
32833 CYTHON_FALLTHROUGH;
32835 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
32837 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 1); __PYX_ERR(0, 6406, __pyx_L3_error)
32839 CYTHON_FALLTHROUGH;
32841 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
32843 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 2); __PYX_ERR(0, 6406, __pyx_L3_error)
32845 CYTHON_FALLTHROUGH;
32847 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
32849 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 3); __PYX_ERR(0, 6406, __pyx_L3_error)
32851 CYTHON_FALLTHROUGH;
32853 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
32855 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 4); __PYX_ERR(0, 6406, __pyx_L3_error)
32857 CYTHON_FALLTHROUGH;
32859 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
32861 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 5); __PYX_ERR(0, 6406, __pyx_L3_error)
32863 CYTHON_FALLTHROUGH;
32865 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
32867 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 6); __PYX_ERR(0, 6406, __pyx_L3_error)
32869 CYTHON_FALLTHROUGH;
32871 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
32873 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 7); __PYX_ERR(0, 6406, __pyx_L3_error)
32875 CYTHON_FALLTHROUGH;
32877 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
32879 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 8); __PYX_ERR(0, 6406, __pyx_L3_error)
32881 CYTHON_FALLTHROUGH;
32883 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
32885 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 9); __PYX_ERR(0, 6406, __pyx_L3_error)
32887 CYTHON_FALLTHROUGH;
32889 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
32891 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 10); __PYX_ERR(0, 6406, __pyx_L3_error)
32893 CYTHON_FALLTHROUGH;
32895 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32897 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 11); __PYX_ERR(0, 6406, __pyx_L3_error)
32899 CYTHON_FALLTHROUGH;
32901 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
32903 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 12); __PYX_ERR(0, 6406, __pyx_L3_error)
32905 CYTHON_FALLTHROUGH;
32907 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
32909 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 13); __PYX_ERR(0, 6406, __pyx_L3_error)
32911 CYTHON_FALLTHROUGH;
32913 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
32915 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 14); __PYX_ERR(0, 6406, __pyx_L3_error)
32917 CYTHON_FALLTHROUGH;
32919 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
32921 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 15); __PYX_ERR(0, 6406, __pyx_L3_error)
32923 CYTHON_FALLTHROUGH;
32925 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
32927 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 16); __PYX_ERR(0, 6406, __pyx_L3_error)
32929 CYTHON_FALLTHROUGH;
32931 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
32933 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 17); __PYX_ERR(0, 6406, __pyx_L3_error)
32935 CYTHON_FALLTHROUGH;
32937 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32939 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 18); __PYX_ERR(0, 6406, __pyx_L3_error)
32941 CYTHON_FALLTHROUGH;
32943 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
32945 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 19); __PYX_ERR(0, 6406, __pyx_L3_error)
32947 CYTHON_FALLTHROUGH;
32949 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_exterior)) != 0)) kw_args--;
32951 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 20); __PYX_ERR(0, 6406, __pyx_L3_error)
32953 CYTHON_FALLTHROUGH;
32955 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian_eb)) != 0)) kw_args--;
32957 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, 21); __PYX_ERR(0, 6406, __pyx_L3_error)
32960 if (unlikely(kw_args > 0)) {
32961 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd") < 0)) __PYX_ERR(0, 6406, __pyx_L3_error)
32963 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
32964 goto __pyx_L5_argtuple_error;
32966 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32967 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32968 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32969 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32970 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32971 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32972 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32973 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32974 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32975 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32976 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32977 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32978 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32979 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32980 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
32981 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
32982 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
32983 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
32984 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
32985 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
32986 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
32987 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
32989 __pyx_v_isDiffusiveFluxBoundary = ((PyArrayObject *)values[0]);
32990 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6407, __pyx_L3_error)
32991 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6408, __pyx_L3_error)
32992 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6409, __pyx_L3_error)
32993 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6410, __pyx_L3_error)
32994 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6411, __pyx_L3_error)
32995 __pyx_v_rowptr = ((PyArrayObject *)values[6]);
32996 __pyx_v_colind = ((PyArrayObject *)values[7]);
32997 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[8]);
32998 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[9]);
32999 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[10]);
33000 __pyx_v_n = ((PyArrayObject *)values[11]);
33001 __pyx_v_a = ((PyArrayObject *)values[12]);
33002 __pyx_v_da = ((PyArrayObject *)values[13]);
33003 __pyx_v_dphi = ((PyArrayObject *)values[14]);
33004 __pyx_v_V = ((PyArrayObject *)values[15]);
33005 __pyx_v_DV = ((PyArrayObject *)values[16]);
33006 __pyx_v_DV_eb = ((PyArrayObject *)values[17]);
33007 __pyx_v_v = ((PyArrayObject *)values[18]);
33008 __pyx_v_penalty = ((PyArrayObject *)values[19]);
33009 __pyx_v_fluxJacobian_exterior = ((PyArrayObject *)values[20]);
33010 __pyx_v_fluxJacobian_eb = ((PyArrayObject *)values[21]);
33012 goto __pyx_L4_argument_unpacking_done;
33013 __pyx_L5_argtuple_error:;
33014 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6406, __pyx_L3_error)
33016 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
33017 __Pyx_RefNannyFinishContext();
33019 __pyx_L4_argument_unpacking_done:;
33020 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDiffusiveFluxBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDiffusiveFluxBoundary", 0))) __PYX_ERR(0, 6406, __pyx_L1_error)
33021 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6412, __pyx_L1_error)
33022 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6413, __pyx_L1_error)
33023 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6414, __pyx_L1_error)
33024 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6415, __pyx_L1_error)
33025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6416, __pyx_L1_error)
33026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6417, __pyx_L1_error)
33027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6418, __pyx_L1_error)
33028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6419, __pyx_L1_error)
33029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6420, __pyx_L1_error)
33030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6421, __pyx_L1_error)
33031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 6422, __pyx_L1_error)
33032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 6423, __pyx_L1_error)
33033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6424, __pyx_L1_error)
33034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6425, __pyx_L1_error)
33035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_exterior), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_exterior", 0))) __PYX_ERR(0, 6426, __pyx_L1_error)
33036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian_eb", 0))) __PYX_ERR(0, 6427, __pyx_L1_error)
33037 __pyx_r = __pyx_pf_14cnumericalFlux_184updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(__pyx_self, __pyx_v_isDiffusiveFluxBoundary, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_a, __pyx_v_da, __pyx_v_dphi, __pyx_v_V, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_v, __pyx_v_penalty, __pyx_v_fluxJacobian_exterior, __pyx_v_fluxJacobian_eb);
33044 __Pyx_RefNannyFinishContext();
33048 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) {
33049 PyObject *__pyx_r = NULL;
33050 __Pyx_RefNannyDeclarations
33051 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd", 0);
33060 updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd(((
int *)__pyx_v_isDiffusiveFluxBoundary->data), __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->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_dphi->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_fluxJacobian_exterior->data), ((
double *)__pyx_v_fluxJacobian_eb->data));
33071 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33072 __Pyx_XGIVEREF(__pyx_r);
33073 __Pyx_RefNannyFinishContext();
33086 static PyObject *__pyx_pw_14cnumericalFlux_187calculateExteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33087 static PyMethodDef __pyx_mdef_14cnumericalFlux_187calculateExteriorLesaintRaviartNumericalFlux = {
"calculateExteriorLesaintRaviartNumericalFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_187calculateExteriorLesaintRaviartNumericalFlux, METH_VARARGS|METH_KEYWORDS, 0};
33088 static PyObject *__pyx_pw_14cnumericalFlux_187calculateExteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33089 int __pyx_v_speedEvalFlag;
33090 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
33091 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
33092 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
33093 PyArrayObject *__pyx_v_isDOFBoundary = 0;
33094 PyArrayObject *__pyx_v_inflowFlag = 0;
33095 PyArrayObject *__pyx_v_n = 0;
33096 PyArrayObject *__pyx_v_bc_u = 0;
33097 PyArrayObject *__pyx_v_bc_H = 0;
33098 PyArrayObject *__pyx_v_bc_dH = 0;
33099 PyArrayObject *__pyx_v_u = 0;
33100 PyArrayObject *__pyx_v_H = 0;
33101 PyArrayObject *__pyx_v_dH = 0;
33102 PyArrayObject *__pyx_v_flux = 0;
33103 PyArrayObject *__pyx_v_dflux = 0;
33104 int __pyx_lineno = 0;
33105 const char *__pyx_filename = NULL;
33106 int __pyx_clineno = 0;
33107 PyObject *__pyx_r = 0;
33108 __Pyx_RefNannyDeclarations
33109 __Pyx_RefNannySetupContext(
"calculateExteriorLesaintRaviartNumericalFlux (wrapper)", 0);
33111 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_speedEvalFlag,&__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_H,&__pyx_n_s_bc_dH,&__pyx_n_s_u,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_flux,&__pyx_n_s_dflux,0};
33112 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33113 if (unlikely(__pyx_kwds)) {
33114 Py_ssize_t kw_args;
33115 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33116 switch (pos_args) {
33117 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33118 CYTHON_FALLTHROUGH;
33119 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33120 CYTHON_FALLTHROUGH;
33121 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33122 CYTHON_FALLTHROUGH;
33123 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33124 CYTHON_FALLTHROUGH;
33125 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33126 CYTHON_FALLTHROUGH;
33127 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33128 CYTHON_FALLTHROUGH;
33129 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33130 CYTHON_FALLTHROUGH;
33131 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33132 CYTHON_FALLTHROUGH;
33133 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33134 CYTHON_FALLTHROUGH;
33135 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33136 CYTHON_FALLTHROUGH;
33137 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33138 CYTHON_FALLTHROUGH;
33139 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33140 CYTHON_FALLTHROUGH;
33141 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33142 CYTHON_FALLTHROUGH;
33143 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33144 CYTHON_FALLTHROUGH;
33145 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33146 CYTHON_FALLTHROUGH;
33148 default:
goto __pyx_L5_argtuple_error;
33150 kw_args = PyDict_Size(__pyx_kwds);
33151 switch (pos_args) {
33153 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speedEvalFlag)) != 0)) kw_args--;
33154 else goto __pyx_L5_argtuple_error;
33155 CYTHON_FALLTHROUGH;
33157 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
33159 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 1); __PYX_ERR(0, 6450, __pyx_L3_error)
33161 CYTHON_FALLTHROUGH;
33163 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
33165 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 2); __PYX_ERR(0, 6450, __pyx_L3_error)
33167 CYTHON_FALLTHROUGH;
33169 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
33171 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 3); __PYX_ERR(0, 6450, __pyx_L3_error)
33173 CYTHON_FALLTHROUGH;
33175 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
33177 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 4); __PYX_ERR(0, 6450, __pyx_L3_error)
33179 CYTHON_FALLTHROUGH;
33181 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
33183 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 5); __PYX_ERR(0, 6450, __pyx_L3_error)
33185 CYTHON_FALLTHROUGH;
33187 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
33189 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 6); __PYX_ERR(0, 6450, __pyx_L3_error)
33191 CYTHON_FALLTHROUGH;
33193 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
33195 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 7); __PYX_ERR(0, 6450, __pyx_L3_error)
33197 CYTHON_FALLTHROUGH;
33199 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_H)) != 0)) kw_args--;
33201 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 8); __PYX_ERR(0, 6450, __pyx_L3_error)
33203 CYTHON_FALLTHROUGH;
33205 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dH)) != 0)) kw_args--;
33207 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 9); __PYX_ERR(0, 6450, __pyx_L3_error)
33209 CYTHON_FALLTHROUGH;
33211 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
33213 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 10); __PYX_ERR(0, 6450, __pyx_L3_error)
33215 CYTHON_FALLTHROUGH;
33217 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
33219 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 11); __PYX_ERR(0, 6450, __pyx_L3_error)
33221 CYTHON_FALLTHROUGH;
33223 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
33225 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 12); __PYX_ERR(0, 6450, __pyx_L3_error)
33227 CYTHON_FALLTHROUGH;
33229 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
33231 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 13); __PYX_ERR(0, 6450, __pyx_L3_error)
33233 CYTHON_FALLTHROUGH;
33235 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
33237 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, 14); __PYX_ERR(0, 6450, __pyx_L3_error)
33240 if (unlikely(kw_args > 0)) {
33241 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorLesaintRaviartNumericalFlux") < 0)) __PYX_ERR(0, 6450, __pyx_L3_error)
33243 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
33244 goto __pyx_L5_argtuple_error;
33246 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33247 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33248 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33249 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33250 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33251 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33252 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33253 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33254 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33255 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33256 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33257 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33258 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33259 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33260 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33262 __pyx_v_speedEvalFlag = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_speedEvalFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6450, __pyx_L3_error)
33263 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
33264 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
33265 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
33266 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
33267 __pyx_v_inflowFlag = ((PyArrayObject *)values[5]);
33268 __pyx_v_n = ((PyArrayObject *)values[6]);
33269 __pyx_v_bc_u = ((PyArrayObject *)values[7]);
33270 __pyx_v_bc_H = ((PyArrayObject *)values[8]);
33271 __pyx_v_bc_dH = ((PyArrayObject *)values[9]);
33272 __pyx_v_u = ((PyArrayObject *)values[10]);
33273 __pyx_v_H = ((PyArrayObject *)values[11]);
33274 __pyx_v_dH = ((PyArrayObject *)values[12]);
33275 __pyx_v_flux = ((PyArrayObject *)values[13]);
33276 __pyx_v_dflux = ((PyArrayObject *)values[14]);
33278 goto __pyx_L4_argument_unpacking_done;
33279 __pyx_L5_argtuple_error:;
33280 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorLesaintRaviartNumericalFlux", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6450, __pyx_L3_error)
33282 __Pyx_AddTraceback(
"cnumericalFlux.calculateExteriorLesaintRaviartNumericalFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
33283 __Pyx_RefNannyFinishContext();
33285 __pyx_L4_argument_unpacking_done:;
33286 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6451, __pyx_L1_error)
33287 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6452, __pyx_L1_error)
33288 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6453, __pyx_L1_error)
33289 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6454, __pyx_L1_error)
33290 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 6455, __pyx_L1_error)
33291 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6456, __pyx_L1_error)
33292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 6457, __pyx_L1_error)
33293 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_H), __pyx_ptype_5numpy_ndarray, 1,
"bc_H", 0))) __PYX_ERR(0, 6458, __pyx_L1_error)
33294 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dH), __pyx_ptype_5numpy_ndarray, 1,
"bc_dH", 0))) __PYX_ERR(0, 6459, __pyx_L1_error)
33295 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6460, __pyx_L1_error)
33296 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 6461, __pyx_L1_error)
33297 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 6462, __pyx_L1_error)
33298 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6463, __pyx_L1_error)
33299 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 6464, __pyx_L1_error)
33300 __pyx_r = __pyx_pf_14cnumericalFlux_186calculateExteriorLesaintRaviartNumericalFlux(__pyx_self, __pyx_v_speedEvalFlag, __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_H, __pyx_v_bc_dH, __pyx_v_u, __pyx_v_H, __pyx_v_dH, __pyx_v_flux, __pyx_v_dflux);
33307 __Pyx_RefNannyFinishContext();
33311 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) {
33312 PyObject *__pyx_r = NULL;
33313 __Pyx_RefNannyDeclarations
33315 __Pyx_RefNannySetupContext(
"calculateExteriorLesaintRaviartNumericalFlux", 0);
33324 __pyx_t_1 = ((__pyx_v_dH->nd > 3) != 0);
33334 calculateExteriorLesaintRaviartNumericalFlux((__pyx_v_elementBoundaryElements->dimensions[0]), (__pyx_v_dH->dimensions[1]), (__pyx_v_dH->dimensions[2]), (__pyx_v_dH->dimensions[3]), __pyx_v_speedEvalFlag, ((
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_H->data), ((
double *)__pyx_v_bc_dH->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->data));
33362 calculateGlobalExteriorLesaintRaviartNumericalFlux((__pyx_v_elementBoundaryElements->dimensions[0]), (__pyx_v_dH->dimensions[1]), (__pyx_v_dH->dimensions[2]), __pyx_v_speedEvalFlag, ((
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_H->data), ((
double *)__pyx_v_bc_dH->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->data));
33375 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33376 __Pyx_XGIVEREF(__pyx_r);
33377 __Pyx_RefNannyFinishContext();
33390 static PyObject *__pyx_pw_14cnumericalFlux_189calculateGlobalExteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33391 static PyMethodDef __pyx_mdef_14cnumericalFlux_189calculateGlobalExteriorLesaintRaviartNumericalFlux = {
"calculateGlobalExteriorLesaintRaviartNumericalFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_189calculateGlobalExteriorLesaintRaviartNumericalFlux, METH_VARARGS|METH_KEYWORDS, 0};
33392 static PyObject *__pyx_pw_14cnumericalFlux_189calculateGlobalExteriorLesaintRaviartNumericalFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33393 int __pyx_v_nExteriorElementBoundaries_global;
33394 int __pyx_v_nQuadraturePoints_elementBoundary;
33395 int __pyx_v_nSpace;
33396 int __pyx_v_speedEvalFlag;
33397 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
33398 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
33399 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
33400 PyArrayObject *__pyx_v_isDOFBoundary = 0;
33401 PyArrayObject *__pyx_v_inflowFlag = 0;
33402 PyArrayObject *__pyx_v_n = 0;
33403 PyArrayObject *__pyx_v_bc_u = 0;
33404 PyArrayObject *__pyx_v_bc_H = 0;
33405 PyArrayObject *__pyx_v_bc_dH = 0;
33406 PyArrayObject *__pyx_v_u = 0;
33407 PyArrayObject *__pyx_v_H = 0;
33408 PyArrayObject *__pyx_v_dH = 0;
33409 PyArrayObject *__pyx_v_flux = 0;
33410 PyArrayObject *__pyx_v_dflux = 0;
33411 int __pyx_lineno = 0;
33412 const char *__pyx_filename = NULL;
33413 int __pyx_clineno = 0;
33414 PyObject *__pyx_r = 0;
33415 __Pyx_RefNannyDeclarations
33416 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorLesaintRaviartNumericalFlux (wrapper)", 0);
33418 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_speedEvalFlag,&__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_H,&__pyx_n_s_bc_dH,&__pyx_n_s_u,&__pyx_n_s_H,&__pyx_n_s_dH,&__pyx_n_s_flux,&__pyx_n_s_dflux,0};
33419 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33420 if (unlikely(__pyx_kwds)) {
33421 Py_ssize_t kw_args;
33422 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33423 switch (pos_args) {
33424 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33425 CYTHON_FALLTHROUGH;
33426 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33427 CYTHON_FALLTHROUGH;
33428 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33429 CYTHON_FALLTHROUGH;
33430 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33431 CYTHON_FALLTHROUGH;
33432 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33433 CYTHON_FALLTHROUGH;
33434 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33435 CYTHON_FALLTHROUGH;
33436 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33437 CYTHON_FALLTHROUGH;
33438 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33439 CYTHON_FALLTHROUGH;
33440 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33441 CYTHON_FALLTHROUGH;
33442 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33443 CYTHON_FALLTHROUGH;
33444 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33445 CYTHON_FALLTHROUGH;
33446 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33447 CYTHON_FALLTHROUGH;
33448 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33449 CYTHON_FALLTHROUGH;
33450 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33451 CYTHON_FALLTHROUGH;
33452 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33453 CYTHON_FALLTHROUGH;
33454 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33455 CYTHON_FALLTHROUGH;
33456 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33457 CYTHON_FALLTHROUGH;
33458 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33459 CYTHON_FALLTHROUGH;
33461 default:
goto __pyx_L5_argtuple_error;
33463 kw_args = PyDict_Size(__pyx_kwds);
33464 switch (pos_args) {
33466 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
33467 else goto __pyx_L5_argtuple_error;
33468 CYTHON_FALLTHROUGH;
33470 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
33472 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 1); __PYX_ERR(0, 6504, __pyx_L3_error)
33474 CYTHON_FALLTHROUGH;
33476 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
33478 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 2); __PYX_ERR(0, 6504, __pyx_L3_error)
33480 CYTHON_FALLTHROUGH;
33482 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_speedEvalFlag)) != 0)) kw_args--;
33484 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 3); __PYX_ERR(0, 6504, __pyx_L3_error)
33486 CYTHON_FALLTHROUGH;
33488 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
33490 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 4); __PYX_ERR(0, 6504, __pyx_L3_error)
33492 CYTHON_FALLTHROUGH;
33494 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
33496 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 5); __PYX_ERR(0, 6504, __pyx_L3_error)
33498 CYTHON_FALLTHROUGH;
33500 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
33502 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 6); __PYX_ERR(0, 6504, __pyx_L3_error)
33504 CYTHON_FALLTHROUGH;
33506 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
33508 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 7); __PYX_ERR(0, 6504, __pyx_L3_error)
33510 CYTHON_FALLTHROUGH;
33512 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inflowFlag)) != 0)) kw_args--;
33514 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 8); __PYX_ERR(0, 6504, __pyx_L3_error)
33516 CYTHON_FALLTHROUGH;
33518 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
33520 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 9); __PYX_ERR(0, 6504, __pyx_L3_error)
33522 CYTHON_FALLTHROUGH;
33524 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_u)) != 0)) kw_args--;
33526 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 10); __PYX_ERR(0, 6504, __pyx_L3_error)
33528 CYTHON_FALLTHROUGH;
33530 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_H)) != 0)) kw_args--;
33532 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 11); __PYX_ERR(0, 6504, __pyx_L3_error)
33534 CYTHON_FALLTHROUGH;
33536 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dH)) != 0)) kw_args--;
33538 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 12); __PYX_ERR(0, 6504, __pyx_L3_error)
33540 CYTHON_FALLTHROUGH;
33542 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
33544 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 13); __PYX_ERR(0, 6504, __pyx_L3_error)
33546 CYTHON_FALLTHROUGH;
33548 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
33550 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 14); __PYX_ERR(0, 6504, __pyx_L3_error)
33552 CYTHON_FALLTHROUGH;
33554 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
33556 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 15); __PYX_ERR(0, 6504, __pyx_L3_error)
33558 CYTHON_FALLTHROUGH;
33560 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
33562 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 16); __PYX_ERR(0, 6504, __pyx_L3_error)
33564 CYTHON_FALLTHROUGH;
33566 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux)) != 0)) kw_args--;
33568 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, 17); __PYX_ERR(0, 6504, __pyx_L3_error)
33571 if (unlikely(kw_args > 0)) {
33572 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorLesaintRaviartNumericalFlux") < 0)) __PYX_ERR(0, 6504, __pyx_L3_error)
33574 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
33575 goto __pyx_L5_argtuple_error;
33577 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33578 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33579 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33580 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33581 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33582 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33583 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33584 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33585 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33586 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33587 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33588 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33589 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33590 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33591 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33592 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33593 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33594 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33596 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6504, __pyx_L3_error)
33597 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6505, __pyx_L3_error)
33598 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6506, __pyx_L3_error)
33599 __pyx_v_speedEvalFlag = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_speedEvalFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6507, __pyx_L3_error)
33600 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
33601 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
33602 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
33603 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[7]);
33604 __pyx_v_inflowFlag = ((PyArrayObject *)values[8]);
33605 __pyx_v_n = ((PyArrayObject *)values[9]);
33606 __pyx_v_bc_u = ((PyArrayObject *)values[10]);
33607 __pyx_v_bc_H = ((PyArrayObject *)values[11]);
33608 __pyx_v_bc_dH = ((PyArrayObject *)values[12]);
33609 __pyx_v_u = ((PyArrayObject *)values[13]);
33610 __pyx_v_H = ((PyArrayObject *)values[14]);
33611 __pyx_v_dH = ((PyArrayObject *)values[15]);
33612 __pyx_v_flux = ((PyArrayObject *)values[16]);
33613 __pyx_v_dflux = ((PyArrayObject *)values[17]);
33615 goto __pyx_L4_argument_unpacking_done;
33616 __pyx_L5_argtuple_error:;
33617 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6504, __pyx_L3_error)
33619 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorLesaintRaviartNumericalFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
33620 __Pyx_RefNannyFinishContext();
33622 __pyx_L4_argument_unpacking_done:;
33623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6508, __pyx_L1_error)
33624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6509, __pyx_L1_error)
33625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6510, __pyx_L1_error)
33626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6511, __pyx_L1_error)
33627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inflowFlag), __pyx_ptype_5numpy_ndarray, 1,
"inflowFlag", 0))) __PYX_ERR(0, 6512, __pyx_L1_error)
33628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6513, __pyx_L1_error)
33629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_u), __pyx_ptype_5numpy_ndarray, 1,
"bc_u", 0))) __PYX_ERR(0, 6514, __pyx_L1_error)
33630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_H), __pyx_ptype_5numpy_ndarray, 1,
"bc_H", 0))) __PYX_ERR(0, 6515, __pyx_L1_error)
33631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dH), __pyx_ptype_5numpy_ndarray, 1,
"bc_dH", 0))) __PYX_ERR(0, 6516, __pyx_L1_error)
33632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6517, __pyx_L1_error)
33633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 6518, __pyx_L1_error)
33634 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 6519, __pyx_L1_error)
33635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 6520, __pyx_L1_error)
33636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux), __pyx_ptype_5numpy_ndarray, 1,
"dflux", 0))) __PYX_ERR(0, 6521, __pyx_L1_error)
33637 __pyx_r = __pyx_pf_14cnumericalFlux_188calculateGlobalExteriorLesaintRaviartNumericalFlux(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_speedEvalFlag, __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_H, __pyx_v_bc_dH, __pyx_v_u, __pyx_v_H, __pyx_v_dH, __pyx_v_flux, __pyx_v_dflux);
33644 __Pyx_RefNannyFinishContext();
33648 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) {
33649 PyObject *__pyx_r = NULL;
33650 __Pyx_RefNannyDeclarations
33651 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorLesaintRaviartNumericalFlux", 0);
33660 calculateGlobalExteriorLesaintRaviartNumericalFlux(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_speedEvalFlag, ((
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_H->data), ((
double *)__pyx_v_bc_dH->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->data));
33671 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33672 __Pyx_XGIVEREF(__pyx_r);
33673 __Pyx_RefNannyFinishContext();
33686 static PyObject *__pyx_pw_14cnumericalFlux_191calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33687 static PyMethodDef __pyx_mdef_14cnumericalFlux_191calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC = {
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_191calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC, METH_VARARGS|METH_KEYWORDS, 0};
33688 static PyObject *__pyx_pw_14cnumericalFlux_191calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33689 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
33690 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
33691 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
33692 PyArrayObject *__pyx_v_isDOFBoundary_sw = 0;
33693 PyArrayObject *__pyx_v_isDOFBoundary_psiw = 0;
33694 PyArrayObject *__pyx_v_n = 0;
33695 PyArrayObject *__pyx_v_bc_sw = 0;
33696 PyArrayObject *__pyx_v_bc_psiw = 0;
33697 PyArrayObject *__pyx_v_bc_fw = 0;
33698 PyArrayObject *__pyx_v_bc_dfw_dsw = 0;
33699 PyArrayObject *__pyx_v_bc_dfw_dpsiw = 0;
33700 PyArrayObject *__pyx_v_bc_fn = 0;
33701 PyArrayObject *__pyx_v_bc_dfn_dsw = 0;
33702 PyArrayObject *__pyx_v_bc_dfn_dpsiw = 0;
33703 PyArrayObject *__pyx_v_sw = 0;
33704 PyArrayObject *__pyx_v_psiw = 0;
33705 PyArrayObject *__pyx_v_fw = 0;
33706 PyArrayObject *__pyx_v_dfw_dsw = 0;
33707 PyArrayObject *__pyx_v_dfw_dpsiw = 0;
33708 PyArrayObject *__pyx_v_fn = 0;
33709 PyArrayObject *__pyx_v_dfn_dsw = 0;
33710 PyArrayObject *__pyx_v_dfn_dpsiw = 0;
33711 PyArrayObject *__pyx_v_fluxw = 0;
33712 PyArrayObject *__pyx_v_dfluxw_dsw = 0;
33713 PyArrayObject *__pyx_v_dfluxw_dpsiw = 0;
33714 PyArrayObject *__pyx_v_fluxn = 0;
33715 PyArrayObject *__pyx_v_dfluxn_dsw = 0;
33716 PyArrayObject *__pyx_v_dfluxn_dpsiw = 0;
33717 int __pyx_lineno = 0;
33718 const char *__pyx_filename = NULL;
33719 int __pyx_clineno = 0;
33720 PyObject *__pyx_r = 0;
33721 __Pyx_RefNannyDeclarations
33722 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC (wrapper)", 0);
33724 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_sw,&__pyx_n_s_isDOFBoundary_psiw,&__pyx_n_s_n,&__pyx_n_s_bc_sw,&__pyx_n_s_bc_psiw,&__pyx_n_s_bc_fw,&__pyx_n_s_bc_dfw_dsw,&__pyx_n_s_bc_dfw_dpsiw,&__pyx_n_s_bc_fn,&__pyx_n_s_bc_dfn_dsw,&__pyx_n_s_bc_dfn_dpsiw,&__pyx_n_s_sw,&__pyx_n_s_psiw,&__pyx_n_s_fw,&__pyx_n_s_dfw_dsw,&__pyx_n_s_dfw_dpsiw,&__pyx_n_s_fn,&__pyx_n_s_dfn_dsw,&__pyx_n_s_dfn_dpsiw,&__pyx_n_s_fluxw,&__pyx_n_s_dfluxw_dsw,&__pyx_n_s_dfluxw_dpsiw,&__pyx_n_s_fluxn,&__pyx_n_s_dfluxn_dsw,&__pyx_n_s_dfluxn_dpsiw,0};
33725 PyObject* values[28] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
33726 if (unlikely(__pyx_kwds)) {
33727 Py_ssize_t kw_args;
33728 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33729 switch (pos_args) {
33730 case 28: values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33731 CYTHON_FALLTHROUGH;
33732 case 27: values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33733 CYTHON_FALLTHROUGH;
33734 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33735 CYTHON_FALLTHROUGH;
33736 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33737 CYTHON_FALLTHROUGH;
33738 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33739 CYTHON_FALLTHROUGH;
33740 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33741 CYTHON_FALLTHROUGH;
33742 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33743 CYTHON_FALLTHROUGH;
33744 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33745 CYTHON_FALLTHROUGH;
33746 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33747 CYTHON_FALLTHROUGH;
33748 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33749 CYTHON_FALLTHROUGH;
33750 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33751 CYTHON_FALLTHROUGH;
33752 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33753 CYTHON_FALLTHROUGH;
33754 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33755 CYTHON_FALLTHROUGH;
33756 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33757 CYTHON_FALLTHROUGH;
33758 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33759 CYTHON_FALLTHROUGH;
33760 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33761 CYTHON_FALLTHROUGH;
33762 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33763 CYTHON_FALLTHROUGH;
33764 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33765 CYTHON_FALLTHROUGH;
33766 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33767 CYTHON_FALLTHROUGH;
33768 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33769 CYTHON_FALLTHROUGH;
33770 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33771 CYTHON_FALLTHROUGH;
33772 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33773 CYTHON_FALLTHROUGH;
33774 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33775 CYTHON_FALLTHROUGH;
33776 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33777 CYTHON_FALLTHROUGH;
33778 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33779 CYTHON_FALLTHROUGH;
33780 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33781 CYTHON_FALLTHROUGH;
33782 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33783 CYTHON_FALLTHROUGH;
33784 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33785 CYTHON_FALLTHROUGH;
33787 default:
goto __pyx_L5_argtuple_error;
33789 kw_args = PyDict_Size(__pyx_kwds);
33790 switch (pos_args) {
33792 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
33793 else goto __pyx_L5_argtuple_error;
33794 CYTHON_FALLTHROUGH;
33796 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
33798 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 1); __PYX_ERR(0, 6540, __pyx_L3_error)
33800 CYTHON_FALLTHROUGH;
33802 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
33804 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 2); __PYX_ERR(0, 6540, __pyx_L3_error)
33806 CYTHON_FALLTHROUGH;
33808 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_sw)) != 0)) kw_args--;
33810 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 3); __PYX_ERR(0, 6540, __pyx_L3_error)
33812 CYTHON_FALLTHROUGH;
33814 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_psiw)) != 0)) kw_args--;
33816 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 4); __PYX_ERR(0, 6540, __pyx_L3_error)
33818 CYTHON_FALLTHROUGH;
33820 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
33822 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 5); __PYX_ERR(0, 6540, __pyx_L3_error)
33824 CYTHON_FALLTHROUGH;
33826 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_sw)) != 0)) kw_args--;
33828 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 6); __PYX_ERR(0, 6540, __pyx_L3_error)
33830 CYTHON_FALLTHROUGH;
33832 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psiw)) != 0)) kw_args--;
33834 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 7); __PYX_ERR(0, 6540, __pyx_L3_error)
33836 CYTHON_FALLTHROUGH;
33838 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fw)) != 0)) kw_args--;
33840 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 8); __PYX_ERR(0, 6540, __pyx_L3_error)
33842 CYTHON_FALLTHROUGH;
33844 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dfw_dsw)) != 0)) kw_args--;
33846 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 9); __PYX_ERR(0, 6540, __pyx_L3_error)
33848 CYTHON_FALLTHROUGH;
33850 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dfw_dpsiw)) != 0)) kw_args--;
33852 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 10); __PYX_ERR(0, 6540, __pyx_L3_error)
33854 CYTHON_FALLTHROUGH;
33856 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_fn)) != 0)) kw_args--;
33858 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 11); __PYX_ERR(0, 6540, __pyx_L3_error)
33860 CYTHON_FALLTHROUGH;
33862 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dfn_dsw)) != 0)) kw_args--;
33864 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 12); __PYX_ERR(0, 6540, __pyx_L3_error)
33866 CYTHON_FALLTHROUGH;
33868 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_dfn_dpsiw)) != 0)) kw_args--;
33870 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 13); __PYX_ERR(0, 6540, __pyx_L3_error)
33872 CYTHON_FALLTHROUGH;
33874 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sw)) != 0)) kw_args--;
33876 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 14); __PYX_ERR(0, 6540, __pyx_L3_error)
33878 CYTHON_FALLTHROUGH;
33880 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psiw)) != 0)) kw_args--;
33882 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 15); __PYX_ERR(0, 6540, __pyx_L3_error)
33884 CYTHON_FALLTHROUGH;
33886 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fw)) != 0)) kw_args--;
33888 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 16); __PYX_ERR(0, 6540, __pyx_L3_error)
33890 CYTHON_FALLTHROUGH;
33892 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfw_dsw)) != 0)) kw_args--;
33894 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 17); __PYX_ERR(0, 6540, __pyx_L3_error)
33896 CYTHON_FALLTHROUGH;
33898 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfw_dpsiw)) != 0)) kw_args--;
33900 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 18); __PYX_ERR(0, 6540, __pyx_L3_error)
33902 CYTHON_FALLTHROUGH;
33904 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fn)) != 0)) kw_args--;
33906 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 19); __PYX_ERR(0, 6540, __pyx_L3_error)
33908 CYTHON_FALLTHROUGH;
33910 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfn_dsw)) != 0)) kw_args--;
33912 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 20); __PYX_ERR(0, 6540, __pyx_L3_error)
33914 CYTHON_FALLTHROUGH;
33916 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfn_dpsiw)) != 0)) kw_args--;
33918 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 21); __PYX_ERR(0, 6540, __pyx_L3_error)
33920 CYTHON_FALLTHROUGH;
33922 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxw)) != 0)) kw_args--;
33924 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 22); __PYX_ERR(0, 6540, __pyx_L3_error)
33926 CYTHON_FALLTHROUGH;
33928 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxw_dsw)) != 0)) kw_args--;
33930 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 23); __PYX_ERR(0, 6540, __pyx_L3_error)
33932 CYTHON_FALLTHROUGH;
33934 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxw_dpsiw)) != 0)) kw_args--;
33936 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 24); __PYX_ERR(0, 6540, __pyx_L3_error)
33938 CYTHON_FALLTHROUGH;
33940 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxn)) != 0)) kw_args--;
33942 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 25); __PYX_ERR(0, 6540, __pyx_L3_error)
33944 CYTHON_FALLTHROUGH;
33946 if (likely((values[26] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxn_dsw)) != 0)) kw_args--;
33948 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 26); __PYX_ERR(0, 6540, __pyx_L3_error)
33950 CYTHON_FALLTHROUGH;
33952 if (likely((values[27] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dfluxn_dpsiw)) != 0)) kw_args--;
33954 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, 27); __PYX_ERR(0, 6540, __pyx_L3_error)
33957 if (unlikely(kw_args > 0)) {
33958 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC") < 0)) __PYX_ERR(0, 6540, __pyx_L3_error)
33960 }
else if (PyTuple_GET_SIZE(__pyx_args) != 28) {
33961 goto __pyx_L5_argtuple_error;
33963 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33964 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33965 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33966 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33967 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33968 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33969 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33970 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33971 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33972 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
33973 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
33974 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
33975 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
33976 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
33977 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
33978 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
33979 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
33980 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
33981 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
33982 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
33983 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
33984 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
33985 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
33986 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
33987 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
33988 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
33989 values[26] = PyTuple_GET_ITEM(__pyx_args, 26);
33990 values[27] = PyTuple_GET_ITEM(__pyx_args, 27);
33992 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
33993 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
33994 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
33995 __pyx_v_isDOFBoundary_sw = ((PyArrayObject *)values[3]);
33996 __pyx_v_isDOFBoundary_psiw = ((PyArrayObject *)values[4]);
33997 __pyx_v_n = ((PyArrayObject *)values[5]);
33998 __pyx_v_bc_sw = ((PyArrayObject *)values[6]);
33999 __pyx_v_bc_psiw = ((PyArrayObject *)values[7]);
34000 __pyx_v_bc_fw = ((PyArrayObject *)values[8]);
34001 __pyx_v_bc_dfw_dsw = ((PyArrayObject *)values[9]);
34002 __pyx_v_bc_dfw_dpsiw = ((PyArrayObject *)values[10]);
34003 __pyx_v_bc_fn = ((PyArrayObject *)values[11]);
34004 __pyx_v_bc_dfn_dsw = ((PyArrayObject *)values[12]);
34005 __pyx_v_bc_dfn_dpsiw = ((PyArrayObject *)values[13]);
34006 __pyx_v_sw = ((PyArrayObject *)values[14]);
34007 __pyx_v_psiw = ((PyArrayObject *)values[15]);
34008 __pyx_v_fw = ((PyArrayObject *)values[16]);
34009 __pyx_v_dfw_dsw = ((PyArrayObject *)values[17]);
34010 __pyx_v_dfw_dpsiw = ((PyArrayObject *)values[18]);
34011 __pyx_v_fn = ((PyArrayObject *)values[19]);
34012 __pyx_v_dfn_dsw = ((PyArrayObject *)values[20]);
34013 __pyx_v_dfn_dpsiw = ((PyArrayObject *)values[21]);
34014 __pyx_v_fluxw = ((PyArrayObject *)values[22]);
34015 __pyx_v_dfluxw_dsw = ((PyArrayObject *)values[23]);
34016 __pyx_v_dfluxw_dpsiw = ((PyArrayObject *)values[24]);
34017 __pyx_v_fluxn = ((PyArrayObject *)values[25]);
34018 __pyx_v_dfluxn_dsw = ((PyArrayObject *)values[26]);
34019 __pyx_v_dfluxn_dpsiw = ((PyArrayObject *)values[27]);
34021 goto __pyx_L4_argument_unpacking_done;
34022 __pyx_L5_argtuple_error:;
34023 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 1, 28, 28, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6540, __pyx_L3_error)
34025 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
34026 __Pyx_RefNannyFinishContext();
34028 __pyx_L4_argument_unpacking_done:;
34029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6540, __pyx_L1_error)
34030 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6541, __pyx_L1_error)
34031 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6542, __pyx_L1_error)
34032 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_sw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_sw", 0))) __PYX_ERR(0, 6543, __pyx_L1_error)
34033 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_psiw), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_psiw", 0))) __PYX_ERR(0, 6544, __pyx_L1_error)
34034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6545, __pyx_L1_error)
34035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_sw), __pyx_ptype_5numpy_ndarray, 1,
"bc_sw", 0))) __PYX_ERR(0, 6546, __pyx_L1_error)
34036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psiw), __pyx_ptype_5numpy_ndarray, 1,
"bc_psiw", 0))) __PYX_ERR(0, 6547, __pyx_L1_error)
34037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fw), __pyx_ptype_5numpy_ndarray, 1,
"bc_fw", 0))) __PYX_ERR(0, 6548, __pyx_L1_error)
34038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dfw_dsw), __pyx_ptype_5numpy_ndarray, 1,
"bc_dfw_dsw", 0))) __PYX_ERR(0, 6549, __pyx_L1_error)
34039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dfw_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"bc_dfw_dpsiw", 0))) __PYX_ERR(0, 6550, __pyx_L1_error)
34040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_fn), __pyx_ptype_5numpy_ndarray, 1,
"bc_fn", 0))) __PYX_ERR(0, 6551, __pyx_L1_error)
34041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dfn_dsw), __pyx_ptype_5numpy_ndarray, 1,
"bc_dfn_dsw", 0))) __PYX_ERR(0, 6552, __pyx_L1_error)
34042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_dfn_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"bc_dfn_dpsiw", 0))) __PYX_ERR(0, 6553, __pyx_L1_error)
34043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sw), __pyx_ptype_5numpy_ndarray, 1,
"sw", 0))) __PYX_ERR(0, 6554, __pyx_L1_error)
34044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psiw), __pyx_ptype_5numpy_ndarray, 1,
"psiw", 0))) __PYX_ERR(0, 6555, __pyx_L1_error)
34045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fw), __pyx_ptype_5numpy_ndarray, 1,
"fw", 0))) __PYX_ERR(0, 6556, __pyx_L1_error)
34046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfw_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dfw_dsw", 0))) __PYX_ERR(0, 6557, __pyx_L1_error)
34047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfw_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dfw_dpsiw", 0))) __PYX_ERR(0, 6558, __pyx_L1_error)
34048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fn), __pyx_ptype_5numpy_ndarray, 1,
"fn", 0))) __PYX_ERR(0, 6559, __pyx_L1_error)
34049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfn_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dfn_dsw", 0))) __PYX_ERR(0, 6560, __pyx_L1_error)
34050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfn_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dfn_dpsiw", 0))) __PYX_ERR(0, 6561, __pyx_L1_error)
34051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxw), __pyx_ptype_5numpy_ndarray, 1,
"fluxw", 0))) __PYX_ERR(0, 6562, __pyx_L1_error)
34052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxw_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dfluxw_dsw", 0))) __PYX_ERR(0, 6563, __pyx_L1_error)
34053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxw_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dfluxw_dpsiw", 0))) __PYX_ERR(0, 6564, __pyx_L1_error)
34054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxn), __pyx_ptype_5numpy_ndarray, 1,
"fluxn", 0))) __PYX_ERR(0, 6565, __pyx_L1_error)
34055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxn_dsw), __pyx_ptype_5numpy_ndarray, 1,
"dfluxn_dsw", 0))) __PYX_ERR(0, 6566, __pyx_L1_error)
34056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dfluxn_dpsiw), __pyx_ptype_5numpy_ndarray, 1,
"dfluxn_dpsiw", 0))) __PYX_ERR(0, 6567, __pyx_L1_error)
34057 __pyx_r = __pyx_pf_14cnumericalFlux_190calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_sw, __pyx_v_isDOFBoundary_psiw, __pyx_v_n, __pyx_v_bc_sw, __pyx_v_bc_psiw, __pyx_v_bc_fw, __pyx_v_bc_dfw_dsw, __pyx_v_bc_dfw_dpsiw, __pyx_v_bc_fn, __pyx_v_bc_dfn_dsw, __pyx_v_bc_dfn_dpsiw, __pyx_v_sw, __pyx_v_psiw, __pyx_v_fw, __pyx_v_dfw_dsw, __pyx_v_dfw_dpsiw, __pyx_v_fn, __pyx_v_dfn_dsw, __pyx_v_dfn_dpsiw, __pyx_v_fluxw, __pyx_v_dfluxw_dsw, __pyx_v_dfluxw_dpsiw, __pyx_v_fluxn, __pyx_v_dfluxn_dsw, __pyx_v_dfluxn_dpsiw);
34064 __Pyx_RefNannyFinishContext();
34068 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) {
34069 PyObject *__pyx_r = NULL;
34070 __Pyx_RefNannyDeclarations
34072 PyObject *__pyx_t_2 = NULL;
34073 PyObject *__pyx_t_3 = NULL;
34074 PyObject *__pyx_t_4 = NULL;
34075 int __pyx_lineno = 0;
34076 const char *__pyx_filename = NULL;
34077 int __pyx_clineno = 0;
34078 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", 0);
34087 __pyx_t_1 = ((__pyx_v_fw->nd == 3) != 0);
34097 calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_fw->dimensions[1]), (__pyx_v_fw->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_sw->data), ((
int *)__pyx_v_isDOFBoundary_psiw->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_sw->data), ((
double *)__pyx_v_bc_psiw->data), ((
double *)__pyx_v_bc_fw->data), ((
double *)__pyx_v_bc_dfw_dsw->data), ((
double *)__pyx_v_bc_dfw_dpsiw->data), ((
double *)__pyx_v_bc_fn->data), ((
double *)__pyx_v_bc_dfn_dsw->data), ((
double *)__pyx_v_bc_dfn_dpsiw->data), ((
double *)__pyx_v_sw->data), ((
double *)__pyx_v_psiw->data), ((
double *)__pyx_v_fw->data), ((
double *)__pyx_v_dfw_dsw->data), ((
double *)__pyx_v_dfw_dpsiw->data), ((
double *)__pyx_v_fn->data), ((
double *)__pyx_v_dfn_dsw->data), ((
double *)__pyx_v_dfn_dpsiw->data), ((
double *)__pyx_v_fluxw->data), ((
double *)__pyx_v_dfluxw_dsw->data), ((
double *)__pyx_v_dfluxw_dpsiw->data), ((
double *)__pyx_v_fluxn->data), ((
double *)__pyx_v_dfluxn_dsw->data), ((
double *)__pyx_v_dfluxn_dpsiw->data));
34117 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6601, __pyx_L1_error)
34118 __Pyx_GOTREF(__pyx_t_3);
34120 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
34121 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
34122 if (likely(__pyx_t_4)) {
34123 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
34124 __Pyx_INCREF(__pyx_t_4);
34125 __Pyx_INCREF(
function);
34126 __Pyx_DECREF_SET(__pyx_t_3,
function);
34129 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
34130 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
34131 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6601, __pyx_L1_error)
34132 __Pyx_GOTREF(__pyx_t_2);
34133 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
34134 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
34147 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34150 __Pyx_XDECREF(__pyx_t_2);
34151 __Pyx_XDECREF(__pyx_t_3);
34152 __Pyx_XDECREF(__pyx_t_4);
34153 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC", __pyx_clineno, __pyx_lineno, __pyx_filename);
34156 __Pyx_XGIVEREF(__pyx_r);
34157 __Pyx_RefNannyFinishContext();
34170 static PyObject *__pyx_pw_14cnumericalFlux_193calculateGlobalExteriorNumericalFluxDarcySplitPressure(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34171 static PyMethodDef __pyx_mdef_14cnumericalFlux_193calculateGlobalExteriorNumericalFluxDarcySplitPressure = {
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_193calculateGlobalExteriorNumericalFluxDarcySplitPressure, METH_VARARGS|METH_KEYWORDS, 0};
34172 static PyObject *__pyx_pw_14cnumericalFlux_193calculateGlobalExteriorNumericalFluxDarcySplitPressure(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34173 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
34174 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
34175 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
34176 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
34177 PyArrayObject *__pyx_v_n = 0;
34178 PyArrayObject *__pyx_v_bc_a = 0;
34179 PyArrayObject *__pyx_v_bc_grad_phi = 0;
34180 PyArrayObject *__pyx_v_bc_psi_w = 0;
34181 PyArrayObject *__pyx_v_bc_psi_n = 0;
34182 PyArrayObject *__pyx_v_a = 0;
34183 PyArrayObject *__pyx_v_grad_phi = 0;
34184 PyArrayObject *__pyx_v_psi_w = 0;
34185 PyArrayObject *__pyx_v_psi_n = 0;
34186 PyArrayObject *__pyx_v_penalty = 0;
34187 PyArrayObject *__pyx_v_diffusiveFlux = 0;
34188 int __pyx_lineno = 0;
34189 const char *__pyx_filename = NULL;
34190 int __pyx_clineno = 0;
34191 PyObject *__pyx_r = 0;
34192 __Pyx_RefNannyDeclarations
34193 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure (wrapper)", 0);
34195 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_penalty,&__pyx_n_s_diffusiveFlux,0};
34196 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
34197 if (unlikely(__pyx_kwds)) {
34198 Py_ssize_t kw_args;
34199 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34200 switch (pos_args) {
34201 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34202 CYTHON_FALLTHROUGH;
34203 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34204 CYTHON_FALLTHROUGH;
34205 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34206 CYTHON_FALLTHROUGH;
34207 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34208 CYTHON_FALLTHROUGH;
34209 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34210 CYTHON_FALLTHROUGH;
34211 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34212 CYTHON_FALLTHROUGH;
34213 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34214 CYTHON_FALLTHROUGH;
34215 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34216 CYTHON_FALLTHROUGH;
34217 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34218 CYTHON_FALLTHROUGH;
34219 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34220 CYTHON_FALLTHROUGH;
34221 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34222 CYTHON_FALLTHROUGH;
34223 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34224 CYTHON_FALLTHROUGH;
34225 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34226 CYTHON_FALLTHROUGH;
34227 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34228 CYTHON_FALLTHROUGH;
34229 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34230 CYTHON_FALLTHROUGH;
34232 default:
goto __pyx_L5_argtuple_error;
34234 kw_args = PyDict_Size(__pyx_kwds);
34235 switch (pos_args) {
34237 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
34238 else goto __pyx_L5_argtuple_error;
34239 CYTHON_FALLTHROUGH;
34241 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
34243 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 1); __PYX_ERR(0, 6602, __pyx_L3_error)
34245 CYTHON_FALLTHROUGH;
34247 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
34249 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 2); __PYX_ERR(0, 6602, __pyx_L3_error)
34251 CYTHON_FALLTHROUGH;
34253 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
34255 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 3); __PYX_ERR(0, 6602, __pyx_L3_error)
34257 CYTHON_FALLTHROUGH;
34259 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
34261 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 4); __PYX_ERR(0, 6602, __pyx_L3_error)
34263 CYTHON_FALLTHROUGH;
34265 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
34267 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 5); __PYX_ERR(0, 6602, __pyx_L3_error)
34269 CYTHON_FALLTHROUGH;
34271 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
34273 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 6); __PYX_ERR(0, 6602, __pyx_L3_error)
34275 CYTHON_FALLTHROUGH;
34277 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
34279 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 7); __PYX_ERR(0, 6602, __pyx_L3_error)
34281 CYTHON_FALLTHROUGH;
34283 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
34285 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 8); __PYX_ERR(0, 6602, __pyx_L3_error)
34287 CYTHON_FALLTHROUGH;
34289 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
34291 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 9); __PYX_ERR(0, 6602, __pyx_L3_error)
34293 CYTHON_FALLTHROUGH;
34295 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
34297 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 10); __PYX_ERR(0, 6602, __pyx_L3_error)
34299 CYTHON_FALLTHROUGH;
34301 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
34303 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 11); __PYX_ERR(0, 6602, __pyx_L3_error)
34305 CYTHON_FALLTHROUGH;
34307 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
34309 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 12); __PYX_ERR(0, 6602, __pyx_L3_error)
34311 CYTHON_FALLTHROUGH;
34313 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
34315 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 13); __PYX_ERR(0, 6602, __pyx_L3_error)
34317 CYTHON_FALLTHROUGH;
34319 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
34321 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, 14); __PYX_ERR(0, 6602, __pyx_L3_error)
34324 if (unlikely(kw_args > 0)) {
34325 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcySplitPressure") < 0)) __PYX_ERR(0, 6602, __pyx_L3_error)
34327 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
34328 goto __pyx_L5_argtuple_error;
34330 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34331 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34332 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34333 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34334 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34335 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34336 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34337 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34338 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34339 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34340 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34341 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34342 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34343 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34344 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34346 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
34347 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
34348 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
34349 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[3]);
34350 __pyx_v_n = ((PyArrayObject *)values[4]);
34351 __pyx_v_bc_a = ((PyArrayObject *)values[5]);
34352 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[6]);
34353 __pyx_v_bc_psi_w = ((PyArrayObject *)values[7]);
34354 __pyx_v_bc_psi_n = ((PyArrayObject *)values[8]);
34355 __pyx_v_a = ((PyArrayObject *)values[9]);
34356 __pyx_v_grad_phi = ((PyArrayObject *)values[10]);
34357 __pyx_v_psi_w = ((PyArrayObject *)values[11]);
34358 __pyx_v_psi_n = ((PyArrayObject *)values[12]);
34359 __pyx_v_penalty = ((PyArrayObject *)values[13]);
34360 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[14]);
34362 goto __pyx_L4_argument_unpacking_done;
34363 __pyx_L5_argtuple_error:;
34364 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6602, __pyx_L3_error)
34366 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcySplitPressure", __pyx_clineno, __pyx_lineno, __pyx_filename);
34367 __Pyx_RefNannyFinishContext();
34369 __pyx_L4_argument_unpacking_done:;
34370 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6602, __pyx_L1_error)
34371 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6603, __pyx_L1_error)
34372 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6604, __pyx_L1_error)
34373 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 6605, __pyx_L1_error)
34374 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6606, __pyx_L1_error)
34375 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 6607, __pyx_L1_error)
34376 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 6608, __pyx_L1_error)
34377 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 6609, __pyx_L1_error)
34378 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 6610, __pyx_L1_error)
34379 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6611, __pyx_L1_error)
34380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 6612, __pyx_L1_error)
34381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 6613, __pyx_L1_error)
34382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 6614, __pyx_L1_error)
34383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6615, __pyx_L1_error)
34384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 6616, __pyx_L1_error)
34385 __pyx_r = __pyx_pf_14cnumericalFlux_192calculateGlobalExteriorNumericalFluxDarcySplitPressure(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_u, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_psi_w, __pyx_v_bc_psi_n, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_penalty, __pyx_v_diffusiveFlux);
34392 __Pyx_RefNannyFinishContext();
34396 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) {
34397 PyObject *__pyx_r = NULL;
34398 __Pyx_RefNannyDeclarations
34400 PyObject *__pyx_t_2 = NULL;
34401 PyObject *__pyx_t_3 = NULL;
34402 PyObject *__pyx_t_4 = NULL;
34403 int __pyx_lineno = 0;
34404 const char *__pyx_filename = NULL;
34405 int __pyx_clineno = 0;
34406 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure", 0);
34415 __pyx_t_1 = ((__pyx_v_grad_phi->nd == 3) != 0);
34425 calculateGlobalExteriorNumericalFluxDarcySplitPressure((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_diffusiveFlux->data));
34445 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6637, __pyx_L1_error)
34446 __Pyx_GOTREF(__pyx_t_3);
34448 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
34449 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
34450 if (likely(__pyx_t_4)) {
34451 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
34452 __Pyx_INCREF(__pyx_t_4);
34453 __Pyx_INCREF(
function);
34454 __Pyx_DECREF_SET(__pyx_t_3,
function);
34457 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
34458 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
34459 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6637, __pyx_L1_error)
34460 __Pyx_GOTREF(__pyx_t_2);
34461 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
34462 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
34475 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34478 __Pyx_XDECREF(__pyx_t_2);
34479 __Pyx_XDECREF(__pyx_t_3);
34480 __Pyx_XDECREF(__pyx_t_4);
34481 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcySplitPressure", __pyx_clineno, __pyx_lineno, __pyx_filename);
34484 __Pyx_XGIVEREF(__pyx_r);
34485 __Pyx_RefNannyFinishContext();
34498 static PyObject *__pyx_pw_14cnumericalFlux_195calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34499 static PyMethodDef __pyx_mdef_14cnumericalFlux_195calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd = {
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_195calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd, METH_VARARGS|METH_KEYWORDS, 0};
34500 static PyObject *__pyx_pw_14cnumericalFlux_195calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34501 PyArrayObject *__pyx_v_rowptr = 0;
34502 PyArrayObject *__pyx_v_colind = 0;
34503 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
34504 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
34505 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
34506 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
34507 PyArrayObject *__pyx_v_n = 0;
34508 PyArrayObject *__pyx_v_bc_a = 0;
34509 PyArrayObject *__pyx_v_bc_grad_phi = 0;
34510 PyArrayObject *__pyx_v_bc_psi_w = 0;
34511 PyArrayObject *__pyx_v_bc_psi_n = 0;
34512 PyArrayObject *__pyx_v_a = 0;
34513 PyArrayObject *__pyx_v_grad_phi = 0;
34514 PyArrayObject *__pyx_v_psi_w = 0;
34515 PyArrayObject *__pyx_v_psi_n = 0;
34516 PyArrayObject *__pyx_v_penalty = 0;
34517 PyArrayObject *__pyx_v_diffusiveFlux = 0;
34518 int __pyx_lineno = 0;
34519 const char *__pyx_filename = NULL;
34520 int __pyx_clineno = 0;
34521 PyObject *__pyx_r = 0;
34522 __Pyx_RefNannyDeclarations
34523 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd (wrapper)", 0);
34525 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_n,&__pyx_n_s_bc_a,&__pyx_n_s_bc_grad_phi,&__pyx_n_s_bc_psi_w,&__pyx_n_s_bc_psi_n,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_psi_w,&__pyx_n_s_psi_n,&__pyx_n_s_penalty,&__pyx_n_s_diffusiveFlux,0};
34526 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
34527 if (unlikely(__pyx_kwds)) {
34528 Py_ssize_t kw_args;
34529 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34530 switch (pos_args) {
34531 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34532 CYTHON_FALLTHROUGH;
34533 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34534 CYTHON_FALLTHROUGH;
34535 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34536 CYTHON_FALLTHROUGH;
34537 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34538 CYTHON_FALLTHROUGH;
34539 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34540 CYTHON_FALLTHROUGH;
34541 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34542 CYTHON_FALLTHROUGH;
34543 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34544 CYTHON_FALLTHROUGH;
34545 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34546 CYTHON_FALLTHROUGH;
34547 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34548 CYTHON_FALLTHROUGH;
34549 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34550 CYTHON_FALLTHROUGH;
34551 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34552 CYTHON_FALLTHROUGH;
34553 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34554 CYTHON_FALLTHROUGH;
34555 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34556 CYTHON_FALLTHROUGH;
34557 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34558 CYTHON_FALLTHROUGH;
34559 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34560 CYTHON_FALLTHROUGH;
34561 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34562 CYTHON_FALLTHROUGH;
34563 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34564 CYTHON_FALLTHROUGH;
34566 default:
goto __pyx_L5_argtuple_error;
34568 kw_args = PyDict_Size(__pyx_kwds);
34569 switch (pos_args) {
34571 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
34572 else goto __pyx_L5_argtuple_error;
34573 CYTHON_FALLTHROUGH;
34575 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
34577 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 1); __PYX_ERR(0, 6638, __pyx_L3_error)
34579 CYTHON_FALLTHROUGH;
34581 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
34583 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 2); __PYX_ERR(0, 6638, __pyx_L3_error)
34585 CYTHON_FALLTHROUGH;
34587 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
34589 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 3); __PYX_ERR(0, 6638, __pyx_L3_error)
34591 CYTHON_FALLTHROUGH;
34593 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
34595 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 4); __PYX_ERR(0, 6638, __pyx_L3_error)
34597 CYTHON_FALLTHROUGH;
34599 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
34601 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 5); __PYX_ERR(0, 6638, __pyx_L3_error)
34603 CYTHON_FALLTHROUGH;
34605 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
34607 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 6); __PYX_ERR(0, 6638, __pyx_L3_error)
34609 CYTHON_FALLTHROUGH;
34611 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_a)) != 0)) kw_args--;
34613 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 7); __PYX_ERR(0, 6638, __pyx_L3_error)
34615 CYTHON_FALLTHROUGH;
34617 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_grad_phi)) != 0)) kw_args--;
34619 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 8); __PYX_ERR(0, 6638, __pyx_L3_error)
34621 CYTHON_FALLTHROUGH;
34623 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_w)) != 0)) kw_args--;
34625 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 9); __PYX_ERR(0, 6638, __pyx_L3_error)
34627 CYTHON_FALLTHROUGH;
34629 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_psi_n)) != 0)) kw_args--;
34631 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 10); __PYX_ERR(0, 6638, __pyx_L3_error)
34633 CYTHON_FALLTHROUGH;
34635 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
34637 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 11); __PYX_ERR(0, 6638, __pyx_L3_error)
34639 CYTHON_FALLTHROUGH;
34641 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
34643 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 12); __PYX_ERR(0, 6638, __pyx_L3_error)
34645 CYTHON_FALLTHROUGH;
34647 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_w)) != 0)) kw_args--;
34649 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 13); __PYX_ERR(0, 6638, __pyx_L3_error)
34651 CYTHON_FALLTHROUGH;
34653 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi_n)) != 0)) kw_args--;
34655 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 14); __PYX_ERR(0, 6638, __pyx_L3_error)
34657 CYTHON_FALLTHROUGH;
34659 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
34661 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 15); __PYX_ERR(0, 6638, __pyx_L3_error)
34663 CYTHON_FALLTHROUGH;
34665 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
34667 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, 16); __PYX_ERR(0, 6638, __pyx_L3_error)
34670 if (unlikely(kw_args > 0)) {
34671 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd") < 0)) __PYX_ERR(0, 6638, __pyx_L3_error)
34673 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
34674 goto __pyx_L5_argtuple_error;
34676 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34677 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34678 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34679 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34680 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34681 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34682 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34683 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34684 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34685 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34686 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34687 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34688 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34689 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34690 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34691 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34692 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34694 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
34695 __pyx_v_colind = ((PyArrayObject *)values[1]);
34696 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
34697 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
34698 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
34699 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[5]);
34700 __pyx_v_n = ((PyArrayObject *)values[6]);
34701 __pyx_v_bc_a = ((PyArrayObject *)values[7]);
34702 __pyx_v_bc_grad_phi = ((PyArrayObject *)values[8]);
34703 __pyx_v_bc_psi_w = ((PyArrayObject *)values[9]);
34704 __pyx_v_bc_psi_n = ((PyArrayObject *)values[10]);
34705 __pyx_v_a = ((PyArrayObject *)values[11]);
34706 __pyx_v_grad_phi = ((PyArrayObject *)values[12]);
34707 __pyx_v_psi_w = ((PyArrayObject *)values[13]);
34708 __pyx_v_psi_n = ((PyArrayObject *)values[14]);
34709 __pyx_v_penalty = ((PyArrayObject *)values[15]);
34710 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[16]);
34712 goto __pyx_L4_argument_unpacking_done;
34713 __pyx_L5_argtuple_error:;
34714 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6638, __pyx_L3_error)
34716 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
34717 __Pyx_RefNannyFinishContext();
34719 __pyx_L4_argument_unpacking_done:;
34720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
34721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6639, __pyx_L1_error)
34722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6640, __pyx_L1_error)
34723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6641, __pyx_L1_error)
34724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6642, __pyx_L1_error)
34725 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 6643, __pyx_L1_error)
34726 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6644, __pyx_L1_error)
34727 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_a), __pyx_ptype_5numpy_ndarray, 1,
"bc_a", 0))) __PYX_ERR(0, 6645, __pyx_L1_error)
34728 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"bc_grad_phi", 0))) __PYX_ERR(0, 6646, __pyx_L1_error)
34729 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_w", 0))) __PYX_ERR(0, 6647, __pyx_L1_error)
34730 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"bc_psi_n", 0))) __PYX_ERR(0, 6648, __pyx_L1_error)
34731 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6649, __pyx_L1_error)
34732 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 6650, __pyx_L1_error)
34733 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_w), __pyx_ptype_5numpy_ndarray, 1,
"psi_w", 0))) __PYX_ERR(0, 6651, __pyx_L1_error)
34734 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi_n), __pyx_ptype_5numpy_ndarray, 1,
"psi_n", 0))) __PYX_ERR(0, 6652, __pyx_L1_error)
34735 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6653, __pyx_L1_error)
34736 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 6654, __pyx_L1_error)
34737 __pyx_r = __pyx_pf_14cnumericalFlux_194calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_u, __pyx_v_n, __pyx_v_bc_a, __pyx_v_bc_grad_phi, __pyx_v_bc_psi_w, __pyx_v_bc_psi_n, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_psi_w, __pyx_v_psi_n, __pyx_v_penalty, __pyx_v_diffusiveFlux);
34744 __Pyx_RefNannyFinishContext();
34748 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) {
34749 PyObject *__pyx_r = NULL;
34750 __Pyx_RefNannyDeclarations
34752 PyObject *__pyx_t_2 = NULL;
34753 PyObject *__pyx_t_3 = NULL;
34754 PyObject *__pyx_t_4 = NULL;
34755 int __pyx_lineno = 0;
34756 const char *__pyx_filename = NULL;
34757 int __pyx_clineno = 0;
34758 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", 0);
34767 __pyx_t_1 = ((__pyx_v_grad_phi->nd == 3) != 0);
34777 calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_a->data), ((
double *)__pyx_v_bc_grad_phi->data), ((
double *)__pyx_v_bc_psi_w->data), ((
double *)__pyx_v_bc_psi_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_psi_w->data), ((
double *)__pyx_v_psi_n->data), ((
double *)__pyx_v_penalty->data), ((
double *)__pyx_v_diffusiveFlux->data));
34797 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6677, __pyx_L1_error)
34798 __Pyx_GOTREF(__pyx_t_3);
34800 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
34801 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
34802 if (likely(__pyx_t_4)) {
34803 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
34804 __Pyx_INCREF(__pyx_t_4);
34805 __Pyx_INCREF(
function);
34806 __Pyx_DECREF_SET(__pyx_t_3,
function);
34809 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
34810 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
34811 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6677, __pyx_L1_error)
34812 __Pyx_GOTREF(__pyx_t_2);
34813 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
34814 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
34827 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34830 __Pyx_XDECREF(__pyx_t_2);
34831 __Pyx_XDECREF(__pyx_t_3);
34832 __Pyx_XDECREF(__pyx_t_4);
34833 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
34836 __Pyx_XGIVEREF(__pyx_r);
34837 __Pyx_RefNannyFinishContext();
34850 static PyObject *__pyx_pw_14cnumericalFlux_197updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34851 static PyMethodDef __pyx_mdef_14cnumericalFlux_197updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd = {
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_197updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
34852 static PyObject *__pyx_pw_14cnumericalFlux_197updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34853 PyArrayObject *__pyx_v_rowptr = 0;
34854 PyArrayObject *__pyx_v_colind = 0;
34855 PyArrayObject *__pyx_v_l2g = 0;
34856 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
34857 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
34858 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
34859 PyArrayObject *__pyx_v_isDOFBoundary = 0;
34860 PyArrayObject *__pyx_v_fluxBoundaryFlag = 0;
34861 PyArrayObject *__pyx_v_n = 0;
34862 PyArrayObject *__pyx_v_a = 0;
34863 PyArrayObject *__pyx_v_da = 0;
34864 PyArrayObject *__pyx_v_grad_phi = 0;
34865 PyArrayObject *__pyx_v_dphi = 0;
34866 PyArrayObject *__pyx_v_v = 0;
34867 PyArrayObject *__pyx_v_grad_v = 0;
34868 PyArrayObject *__pyx_v_penalty = 0;
34869 PyArrayObject *__pyx_v_fluxJacobian = 0;
34870 int __pyx_v_scale_penalty;
34871 double __pyx_v_penalty_floor;
34872 int __pyx_lineno = 0;
34873 const char *__pyx_filename = NULL;
34874 int __pyx_clineno = 0;
34875 PyObject *__pyx_r = 0;
34876 __Pyx_RefNannyDeclarations
34877 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd (wrapper)", 0);
34879 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_fluxBoundaryFlag,&__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};
34880 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
34881 if (unlikely(__pyx_kwds)) {
34882 Py_ssize_t kw_args;
34883 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34884 switch (pos_args) {
34885 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
34886 CYTHON_FALLTHROUGH;
34887 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
34888 CYTHON_FALLTHROUGH;
34889 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
34890 CYTHON_FALLTHROUGH;
34891 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
34892 CYTHON_FALLTHROUGH;
34893 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
34894 CYTHON_FALLTHROUGH;
34895 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
34896 CYTHON_FALLTHROUGH;
34897 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
34898 CYTHON_FALLTHROUGH;
34899 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
34900 CYTHON_FALLTHROUGH;
34901 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
34902 CYTHON_FALLTHROUGH;
34903 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
34904 CYTHON_FALLTHROUGH;
34905 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
34906 CYTHON_FALLTHROUGH;
34907 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
34908 CYTHON_FALLTHROUGH;
34909 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
34910 CYTHON_FALLTHROUGH;
34911 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34912 CYTHON_FALLTHROUGH;
34913 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34914 CYTHON_FALLTHROUGH;
34915 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34916 CYTHON_FALLTHROUGH;
34917 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34918 CYTHON_FALLTHROUGH;
34919 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34920 CYTHON_FALLTHROUGH;
34921 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34922 CYTHON_FALLTHROUGH;
34924 default:
goto __pyx_L5_argtuple_error;
34926 kw_args = PyDict_Size(__pyx_kwds);
34927 switch (pos_args) {
34929 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
34930 else goto __pyx_L5_argtuple_error;
34931 CYTHON_FALLTHROUGH;
34933 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
34935 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 1); __PYX_ERR(0, 6678, __pyx_L3_error)
34937 CYTHON_FALLTHROUGH;
34939 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
34941 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 2); __PYX_ERR(0, 6678, __pyx_L3_error)
34943 CYTHON_FALLTHROUGH;
34945 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
34947 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 3); __PYX_ERR(0, 6678, __pyx_L3_error)
34949 CYTHON_FALLTHROUGH;
34951 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
34953 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 4); __PYX_ERR(0, 6678, __pyx_L3_error)
34955 CYTHON_FALLTHROUGH;
34957 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
34959 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 5); __PYX_ERR(0, 6678, __pyx_L3_error)
34961 CYTHON_FALLTHROUGH;
34963 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
34965 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 6); __PYX_ERR(0, 6678, __pyx_L3_error)
34967 CYTHON_FALLTHROUGH;
34969 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag)) != 0)) kw_args--;
34971 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 7); __PYX_ERR(0, 6678, __pyx_L3_error)
34973 CYTHON_FALLTHROUGH;
34975 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
34977 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 8); __PYX_ERR(0, 6678, __pyx_L3_error)
34979 CYTHON_FALLTHROUGH;
34981 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
34983 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 9); __PYX_ERR(0, 6678, __pyx_L3_error)
34985 CYTHON_FALLTHROUGH;
34987 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
34989 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 10); __PYX_ERR(0, 6678, __pyx_L3_error)
34991 CYTHON_FALLTHROUGH;
34993 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
34995 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 11); __PYX_ERR(0, 6678, __pyx_L3_error)
34997 CYTHON_FALLTHROUGH;
34999 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
35001 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 12); __PYX_ERR(0, 6678, __pyx_L3_error)
35003 CYTHON_FALLTHROUGH;
35005 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35007 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 13); __PYX_ERR(0, 6678, __pyx_L3_error)
35009 CYTHON_FALLTHROUGH;
35011 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
35013 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 14); __PYX_ERR(0, 6678, __pyx_L3_error)
35015 CYTHON_FALLTHROUGH;
35017 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
35019 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 15); __PYX_ERR(0, 6678, __pyx_L3_error)
35021 CYTHON_FALLTHROUGH;
35023 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
35025 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 16); __PYX_ERR(0, 6678, __pyx_L3_error)
35027 CYTHON_FALLTHROUGH;
35029 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
35031 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 17); __PYX_ERR(0, 6678, __pyx_L3_error)
35033 CYTHON_FALLTHROUGH;
35035 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
35037 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, 18); __PYX_ERR(0, 6678, __pyx_L3_error)
35040 if (unlikely(kw_args > 0)) {
35041 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd") < 0)) __PYX_ERR(0, 6678, __pyx_L3_error)
35043 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
35044 goto __pyx_L5_argtuple_error;
35046 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35047 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35048 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35049 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35050 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35051 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35052 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35053 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35054 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35055 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35056 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35057 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35058 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35059 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35060 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35061 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35062 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35063 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35064 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35066 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
35067 __pyx_v_colind = ((PyArrayObject *)values[1]);
35068 __pyx_v_l2g = ((PyArrayObject *)values[2]);
35069 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
35070 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
35071 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
35072 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[6]);
35073 __pyx_v_fluxBoundaryFlag = ((PyArrayObject *)values[7]);
35074 __pyx_v_n = ((PyArrayObject *)values[8]);
35075 __pyx_v_a = ((PyArrayObject *)values[9]);
35076 __pyx_v_da = ((PyArrayObject *)values[10]);
35077 __pyx_v_grad_phi = ((PyArrayObject *)values[11]);
35078 __pyx_v_dphi = ((PyArrayObject *)values[12]);
35079 __pyx_v_v = ((PyArrayObject *)values[13]);
35080 __pyx_v_grad_v = ((PyArrayObject *)values[14]);
35081 __pyx_v_penalty = ((PyArrayObject *)values[15]);
35082 __pyx_v_fluxJacobian = ((PyArrayObject *)values[16]);
35083 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[17]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6695, __pyx_L3_error)
35084 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[18]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6696, __pyx_L3_error)
35086 goto __pyx_L4_argument_unpacking_done;
35087 __pyx_L5_argtuple_error:;
35088 __Pyx_RaiseArgtupleInvalid(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6678, __pyx_L3_error)
35090 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35091 __Pyx_RefNannyFinishContext();
35093 __pyx_L4_argument_unpacking_done:;
35094 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6678, __pyx_L1_error)
35095 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6679, __pyx_L1_error)
35096 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 6680, __pyx_L1_error)
35097 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6681, __pyx_L1_error)
35098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6682, __pyx_L1_error)
35099 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6683, __pyx_L1_error)
35100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6684, __pyx_L1_error)
35101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryFlag), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryFlag", 0))) __PYX_ERR(0, 6685, __pyx_L1_error)
35102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6686, __pyx_L1_error)
35103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6687, __pyx_L1_error)
35104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6688, __pyx_L1_error)
35105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 6689, __pyx_L1_error)
35106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6690, __pyx_L1_error)
35107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6691, __pyx_L1_error)
35108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 6692, __pyx_L1_error)
35109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6693, __pyx_L1_error)
35110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6694, __pyx_L1_error)
35111 __pyx_r = __pyx_pf_14cnumericalFlux_196updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_fluxBoundaryFlag, __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);
35118 __Pyx_RefNannyFinishContext();
35122 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) {
35123 PyObject *__pyx_r = NULL;
35124 __Pyx_RefNannyDeclarations
35126 PyObject *__pyx_t_2 = NULL;
35127 PyObject *__pyx_t_3 = NULL;
35128 PyObject *__pyx_t_4 = NULL;
35129 int __pyx_lineno = 0;
35130 const char *__pyx_filename = NULL;
35131 int __pyx_clineno = 0;
35132 __Pyx_RefNannySetupContext(
"updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 0);
35141 __pyx_t_1 = ((__pyx_v_grad_v->nd == 4) != 0);
35151 updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_v->dimensions[1]), (__pyx_v_grad_v->dimensions[2]), (__pyx_v_grad_v->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_fluxBoundaryFlag->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));
35171 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_exit);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6722, __pyx_L1_error)
35172 __Pyx_GOTREF(__pyx_t_3);
35174 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
35175 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
35176 if (likely(__pyx_t_4)) {
35177 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
35178 __Pyx_INCREF(__pyx_t_4);
35179 __Pyx_INCREF(
function);
35180 __Pyx_DECREF_SET(__pyx_t_3,
function);
35183 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_1);
35184 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
35185 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6722, __pyx_L1_error)
35186 __Pyx_GOTREF(__pyx_t_2);
35187 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35188 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35201 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35204 __Pyx_XDECREF(__pyx_t_2);
35205 __Pyx_XDECREF(__pyx_t_3);
35206 __Pyx_XDECREF(__pyx_t_4);
35207 __Pyx_AddTraceback(
"cnumericalFlux.updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35210 __Pyx_XGIVEREF(__pyx_r);
35211 __Pyx_RefNannyFinishContext();
35224 static PyObject *__pyx_pw_14cnumericalFlux_199updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35225 static PyMethodDef __pyx_mdef_14cnumericalFlux_199updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd = {
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_199updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
35226 static PyObject *__pyx_pw_14cnumericalFlux_199updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35227 int __pyx_v_scale_penalty;
35228 double __pyx_v_penalty_floor;
35229 int __pyx_v_nExteriorElementBoundaries_global;
35230 int __pyx_v_nQuadraturePoints_elementBoundary;
35231 int __pyx_v_nDOF_trial_element;
35232 int __pyx_v_nSpace;
35233 PyArrayObject *__pyx_v_rowptr = 0;
35234 PyArrayObject *__pyx_v_colind = 0;
35235 PyArrayObject *__pyx_v_l2g = 0;
35236 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35237 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35238 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35239 PyArrayObject *__pyx_v_isDOFBoundary = 0;
35240 PyArrayObject *__pyx_v_fluxBoundaryFlag = 0;
35241 PyArrayObject *__pyx_v_n = 0;
35242 PyArrayObject *__pyx_v_a = 0;
35243 PyArrayObject *__pyx_v_da = 0;
35244 PyArrayObject *__pyx_v_grad_phi = 0;
35245 PyArrayObject *__pyx_v_dphi = 0;
35246 PyArrayObject *__pyx_v_v = 0;
35247 PyArrayObject *__pyx_v_grad_v = 0;
35248 PyArrayObject *__pyx_v_penalty = 0;
35249 PyArrayObject *__pyx_v_fluxJacobian = 0;
35250 int __pyx_lineno = 0;
35251 const char *__pyx_filename = NULL;
35252 int __pyx_clineno = 0;
35253 PyObject *__pyx_r = 0;
35254 __Pyx_RefNannyDeclarations
35255 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd (wrapper)", 0);
35257 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_scale_penalty,&__pyx_n_s_penalty_floor,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_fluxBoundaryFlag,&__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,0};
35258 PyObject* values[23] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
35259 if (unlikely(__pyx_kwds)) {
35260 Py_ssize_t kw_args;
35261 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35262 switch (pos_args) {
35263 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
35264 CYTHON_FALLTHROUGH;
35265 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
35266 CYTHON_FALLTHROUGH;
35267 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35268 CYTHON_FALLTHROUGH;
35269 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35270 CYTHON_FALLTHROUGH;
35271 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35272 CYTHON_FALLTHROUGH;
35273 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35274 CYTHON_FALLTHROUGH;
35275 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35276 CYTHON_FALLTHROUGH;
35277 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35278 CYTHON_FALLTHROUGH;
35279 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35280 CYTHON_FALLTHROUGH;
35281 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35282 CYTHON_FALLTHROUGH;
35283 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35284 CYTHON_FALLTHROUGH;
35285 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35286 CYTHON_FALLTHROUGH;
35287 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35288 CYTHON_FALLTHROUGH;
35289 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35290 CYTHON_FALLTHROUGH;
35291 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35292 CYTHON_FALLTHROUGH;
35293 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35294 CYTHON_FALLTHROUGH;
35295 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35296 CYTHON_FALLTHROUGH;
35297 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35298 CYTHON_FALLTHROUGH;
35299 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35300 CYTHON_FALLTHROUGH;
35301 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35302 CYTHON_FALLTHROUGH;
35303 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35304 CYTHON_FALLTHROUGH;
35305 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35306 CYTHON_FALLTHROUGH;
35307 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35308 CYTHON_FALLTHROUGH;
35310 default:
goto __pyx_L5_argtuple_error;
35312 kw_args = PyDict_Size(__pyx_kwds);
35313 switch (pos_args) {
35315 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_penalty)) != 0)) kw_args--;
35316 else goto __pyx_L5_argtuple_error;
35317 CYTHON_FALLTHROUGH;
35319 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty_floor)) != 0)) kw_args--;
35321 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 1); __PYX_ERR(0, 6723, __pyx_L3_error)
35323 CYTHON_FALLTHROUGH;
35325 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
35327 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 2); __PYX_ERR(0, 6723, __pyx_L3_error)
35329 CYTHON_FALLTHROUGH;
35331 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
35333 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 3); __PYX_ERR(0, 6723, __pyx_L3_error)
35335 CYTHON_FALLTHROUGH;
35337 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
35339 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 4); __PYX_ERR(0, 6723, __pyx_L3_error)
35341 CYTHON_FALLTHROUGH;
35343 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
35345 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 5); __PYX_ERR(0, 6723, __pyx_L3_error)
35347 CYTHON_FALLTHROUGH;
35349 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
35351 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 6); __PYX_ERR(0, 6723, __pyx_L3_error)
35353 CYTHON_FALLTHROUGH;
35355 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
35357 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 7); __PYX_ERR(0, 6723, __pyx_L3_error)
35359 CYTHON_FALLTHROUGH;
35361 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
35363 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 8); __PYX_ERR(0, 6723, __pyx_L3_error)
35365 CYTHON_FALLTHROUGH;
35367 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35369 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 9); __PYX_ERR(0, 6723, __pyx_L3_error)
35371 CYTHON_FALLTHROUGH;
35373 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35375 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 10); __PYX_ERR(0, 6723, __pyx_L3_error)
35377 CYTHON_FALLTHROUGH;
35379 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35381 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 11); __PYX_ERR(0, 6723, __pyx_L3_error)
35383 CYTHON_FALLTHROUGH;
35385 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
35387 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 12); __PYX_ERR(0, 6723, __pyx_L3_error)
35389 CYTHON_FALLTHROUGH;
35391 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryFlag)) != 0)) kw_args--;
35393 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 13); __PYX_ERR(0, 6723, __pyx_L3_error)
35395 CYTHON_FALLTHROUGH;
35397 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
35399 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 14); __PYX_ERR(0, 6723, __pyx_L3_error)
35401 CYTHON_FALLTHROUGH;
35403 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
35405 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 15); __PYX_ERR(0, 6723, __pyx_L3_error)
35407 CYTHON_FALLTHROUGH;
35409 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
35411 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 16); __PYX_ERR(0, 6723, __pyx_L3_error)
35413 CYTHON_FALLTHROUGH;
35415 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
35417 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 17); __PYX_ERR(0, 6723, __pyx_L3_error)
35419 CYTHON_FALLTHROUGH;
35421 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
35423 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 18); __PYX_ERR(0, 6723, __pyx_L3_error)
35425 CYTHON_FALLTHROUGH;
35427 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
35429 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 19); __PYX_ERR(0, 6723, __pyx_L3_error)
35431 CYTHON_FALLTHROUGH;
35433 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
35435 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 20); __PYX_ERR(0, 6723, __pyx_L3_error)
35437 CYTHON_FALLTHROUGH;
35439 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_penalty)) != 0)) kw_args--;
35441 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 21); __PYX_ERR(0, 6723, __pyx_L3_error)
35443 CYTHON_FALLTHROUGH;
35445 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
35447 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, 22); __PYX_ERR(0, 6723, __pyx_L3_error)
35450 if (unlikely(kw_args > 0)) {
35451 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd") < 0)) __PYX_ERR(0, 6723, __pyx_L3_error)
35453 }
else if (PyTuple_GET_SIZE(__pyx_args) != 23) {
35454 goto __pyx_L5_argtuple_error;
35456 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35457 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35458 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35459 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35460 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35461 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35462 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35463 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35464 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35465 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35466 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35467 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35468 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35469 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35470 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35471 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35472 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35473 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35474 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35475 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35476 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35477 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
35478 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
35480 __pyx_v_scale_penalty = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_scale_penalty == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6723, __pyx_L3_error)
35481 __pyx_v_penalty_floor = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_penalty_floor == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6724, __pyx_L3_error)
35482 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6725, __pyx_L3_error)
35483 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6726, __pyx_L3_error)
35484 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6727, __pyx_L3_error)
35485 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6728, __pyx_L3_error)
35486 __pyx_v_rowptr = ((PyArrayObject *)values[6]);
35487 __pyx_v_colind = ((PyArrayObject *)values[7]);
35488 __pyx_v_l2g = ((PyArrayObject *)values[8]);
35489 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[9]);
35490 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[10]);
35491 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[11]);
35492 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[12]);
35493 __pyx_v_fluxBoundaryFlag = ((PyArrayObject *)values[13]);
35494 __pyx_v_n = ((PyArrayObject *)values[14]);
35495 __pyx_v_a = ((PyArrayObject *)values[15]);
35496 __pyx_v_da = ((PyArrayObject *)values[16]);
35497 __pyx_v_grad_phi = ((PyArrayObject *)values[17]);
35498 __pyx_v_dphi = ((PyArrayObject *)values[18]);
35499 __pyx_v_v = ((PyArrayObject *)values[19]);
35500 __pyx_v_grad_v = ((PyArrayObject *)values[20]);
35501 __pyx_v_penalty = ((PyArrayObject *)values[21]);
35502 __pyx_v_fluxJacobian = ((PyArrayObject *)values[22]);
35504 goto __pyx_L4_argument_unpacking_done;
35505 __pyx_L5_argtuple_error:;
35506 __Pyx_RaiseArgtupleInvalid(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 1, 23, 23, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6723, __pyx_L3_error)
35508 __Pyx_AddTraceback(
"cnumericalFlux.updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
35509 __Pyx_RefNannyFinishContext();
35511 __pyx_L4_argument_unpacking_done:;
35512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6729, __pyx_L1_error)
35513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6730, __pyx_L1_error)
35514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 6731, __pyx_L1_error)
35515 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6732, __pyx_L1_error)
35516 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6733, __pyx_L1_error)
35517 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6734, __pyx_L1_error)
35518 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6735, __pyx_L1_error)
35519 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryFlag), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryFlag", 0))) __PYX_ERR(0, 6736, __pyx_L1_error)
35520 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6737, __pyx_L1_error)
35521 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6738, __pyx_L1_error)
35522 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6739, __pyx_L1_error)
35523 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 6740, __pyx_L1_error)
35524 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 6741, __pyx_L1_error)
35525 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6742, __pyx_L1_error)
35526 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 6743, __pyx_L1_error)
35527 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_penalty), __pyx_ptype_5numpy_ndarray, 1,
"penalty", 0))) __PYX_ERR(0, 6744, __pyx_L1_error)
35528 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6745, __pyx_L1_error)
35529 __pyx_r = __pyx_pf_14cnumericalFlux_198updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(__pyx_self, __pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary, __pyx_v_fluxBoundaryFlag, __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);
35536 __Pyx_RefNannyFinishContext();
35540 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) {
35541 PyObject *__pyx_r = NULL;
35542 __Pyx_RefNannyDeclarations
35543 __Pyx_RefNannySetupContext(
"updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd", 0);
35552 updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd(__pyx_v_scale_penalty, __pyx_v_penalty_floor, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_fluxBoundaryFlag->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));
35563 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35564 __Pyx_XGIVEREF(__pyx_r);
35565 __Pyx_RefNannyFinishContext();
35578 static PyObject *__pyx_pw_14cnumericalFlux_201calculateGlobalExteriorNumericalAdvectiveFluxStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35579 static PyMethodDef __pyx_mdef_14cnumericalFlux_201calculateGlobalExteriorNumericalAdvectiveFluxStokes2D = {
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_201calculateGlobalExteriorNumericalAdvectiveFluxStokes2D, METH_VARARGS|METH_KEYWORDS, 0};
35580 static PyObject *__pyx_pw_14cnumericalFlux_201calculateGlobalExteriorNumericalAdvectiveFluxStokes2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35581 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35582 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35583 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35584 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
35585 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
35586 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
35587 PyArrayObject *__pyx_v_n = 0;
35588 PyArrayObject *__pyx_v_bc_p = 0;
35589 PyArrayObject *__pyx_v_bc_f_mass = 0;
35590 PyArrayObject *__pyx_v_p = 0;
35591 PyArrayObject *__pyx_v_f_mass = 0;
35592 PyArrayObject *__pyx_v_df_mass_du = 0;
35593 PyArrayObject *__pyx_v_df_mass_dv = 0;
35594 PyArrayObject *__pyx_v_flux_mass = 0;
35595 PyArrayObject *__pyx_v_flux_umom = 0;
35596 PyArrayObject *__pyx_v_flux_vmom = 0;
35597 PyArrayObject *__pyx_v_dflux_mass_du = 0;
35598 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
35599 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
35600 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
35601 PyArrayObject *__pyx_v_velocity = 0;
35602 int __pyx_lineno = 0;
35603 const char *__pyx_filename = NULL;
35604 int __pyx_clineno = 0;
35605 PyObject *__pyx_r = 0;
35606 __Pyx_RefNannyDeclarations
35607 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D (wrapper)", 0);
35609 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_velocity,0};
35610 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
35611 if (unlikely(__pyx_kwds)) {
35612 Py_ssize_t kw_args;
35613 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35614 switch (pos_args) {
35615 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35616 CYTHON_FALLTHROUGH;
35617 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35618 CYTHON_FALLTHROUGH;
35619 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35620 CYTHON_FALLTHROUGH;
35621 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35622 CYTHON_FALLTHROUGH;
35623 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35624 CYTHON_FALLTHROUGH;
35625 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35626 CYTHON_FALLTHROUGH;
35627 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35628 CYTHON_FALLTHROUGH;
35629 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35630 CYTHON_FALLTHROUGH;
35631 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35632 CYTHON_FALLTHROUGH;
35633 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35634 CYTHON_FALLTHROUGH;
35635 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35636 CYTHON_FALLTHROUGH;
35637 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35638 CYTHON_FALLTHROUGH;
35639 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35640 CYTHON_FALLTHROUGH;
35641 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35642 CYTHON_FALLTHROUGH;
35643 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35644 CYTHON_FALLTHROUGH;
35645 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35646 CYTHON_FALLTHROUGH;
35647 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35648 CYTHON_FALLTHROUGH;
35649 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35650 CYTHON_FALLTHROUGH;
35651 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35652 CYTHON_FALLTHROUGH;
35653 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35654 CYTHON_FALLTHROUGH;
35655 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35656 CYTHON_FALLTHROUGH;
35658 default:
goto __pyx_L5_argtuple_error;
35660 kw_args = PyDict_Size(__pyx_kwds);
35661 switch (pos_args) {
35663 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35664 else goto __pyx_L5_argtuple_error;
35665 CYTHON_FALLTHROUGH;
35667 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35669 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 1); __PYX_ERR(0, 6769, __pyx_L3_error)
35671 CYTHON_FALLTHROUGH;
35673 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35675 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 2); __PYX_ERR(0, 6769, __pyx_L3_error)
35677 CYTHON_FALLTHROUGH;
35679 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
35681 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 3); __PYX_ERR(0, 6769, __pyx_L3_error)
35683 CYTHON_FALLTHROUGH;
35685 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
35687 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 4); __PYX_ERR(0, 6769, __pyx_L3_error)
35689 CYTHON_FALLTHROUGH;
35691 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
35693 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 5); __PYX_ERR(0, 6769, __pyx_L3_error)
35695 CYTHON_FALLTHROUGH;
35697 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
35699 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 6); __PYX_ERR(0, 6769, __pyx_L3_error)
35701 CYTHON_FALLTHROUGH;
35703 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
35705 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 7); __PYX_ERR(0, 6769, __pyx_L3_error)
35707 CYTHON_FALLTHROUGH;
35709 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
35711 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 8); __PYX_ERR(0, 6769, __pyx_L3_error)
35713 CYTHON_FALLTHROUGH;
35715 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
35717 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 9); __PYX_ERR(0, 6769, __pyx_L3_error)
35719 CYTHON_FALLTHROUGH;
35721 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
35723 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 10); __PYX_ERR(0, 6769, __pyx_L3_error)
35725 CYTHON_FALLTHROUGH;
35727 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
35729 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 11); __PYX_ERR(0, 6769, __pyx_L3_error)
35731 CYTHON_FALLTHROUGH;
35733 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
35735 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 12); __PYX_ERR(0, 6769, __pyx_L3_error)
35737 CYTHON_FALLTHROUGH;
35739 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
35741 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 13); __PYX_ERR(0, 6769, __pyx_L3_error)
35743 CYTHON_FALLTHROUGH;
35745 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
35747 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 14); __PYX_ERR(0, 6769, __pyx_L3_error)
35749 CYTHON_FALLTHROUGH;
35751 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
35753 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 15); __PYX_ERR(0, 6769, __pyx_L3_error)
35755 CYTHON_FALLTHROUGH;
35757 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
35759 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 16); __PYX_ERR(0, 6769, __pyx_L3_error)
35761 CYTHON_FALLTHROUGH;
35763 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
35765 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 17); __PYX_ERR(0, 6769, __pyx_L3_error)
35767 CYTHON_FALLTHROUGH;
35769 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
35771 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 18); __PYX_ERR(0, 6769, __pyx_L3_error)
35773 CYTHON_FALLTHROUGH;
35775 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
35777 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 19); __PYX_ERR(0, 6769, __pyx_L3_error)
35779 CYTHON_FALLTHROUGH;
35781 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
35783 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, 20); __PYX_ERR(0, 6769, __pyx_L3_error)
35786 if (unlikely(kw_args > 0)) {
35787 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D") < 0)) __PYX_ERR(0, 6769, __pyx_L3_error)
35789 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
35790 goto __pyx_L5_argtuple_error;
35792 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35793 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35794 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35795 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35796 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35797 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35798 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35799 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35800 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35801 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35802 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35803 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35804 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35805 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35806 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35807 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35808 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35809 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35810 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35811 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35812 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35814 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
35815 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
35816 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
35817 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
35818 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
35819 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
35820 __pyx_v_n = ((PyArrayObject *)values[6]);
35821 __pyx_v_bc_p = ((PyArrayObject *)values[7]);
35822 __pyx_v_bc_f_mass = ((PyArrayObject *)values[8]);
35823 __pyx_v_p = ((PyArrayObject *)values[9]);
35824 __pyx_v_f_mass = ((PyArrayObject *)values[10]);
35825 __pyx_v_df_mass_du = ((PyArrayObject *)values[11]);
35826 __pyx_v_df_mass_dv = ((PyArrayObject *)values[12]);
35827 __pyx_v_flux_mass = ((PyArrayObject *)values[13]);
35828 __pyx_v_flux_umom = ((PyArrayObject *)values[14]);
35829 __pyx_v_flux_vmom = ((PyArrayObject *)values[15]);
35830 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[16]);
35831 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[17]);
35832 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[18]);
35833 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[19]);
35834 __pyx_v_velocity = ((PyArrayObject *)values[20]);
35836 goto __pyx_L4_argument_unpacking_done;
35837 __pyx_L5_argtuple_error:;
35838 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6769, __pyx_L3_error)
35840 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
35841 __Pyx_RefNannyFinishContext();
35843 __pyx_L4_argument_unpacking_done:;
35844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6769, __pyx_L1_error)
35845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6770, __pyx_L1_error)
35846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6771, __pyx_L1_error)
35847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 6772, __pyx_L1_error)
35848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 6773, __pyx_L1_error)
35849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 6774, __pyx_L1_error)
35850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6775, __pyx_L1_error)
35851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 6776, __pyx_L1_error)
35852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 6777, __pyx_L1_error)
35853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6778, __pyx_L1_error)
35854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 6779, __pyx_L1_error)
35855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 6780, __pyx_L1_error)
35856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 6781, __pyx_L1_error)
35857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 6782, __pyx_L1_error)
35858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 6783, __pyx_L1_error)
35859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 6784, __pyx_L1_error)
35860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 6785, __pyx_L1_error)
35861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 6786, __pyx_L1_error)
35862 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 6787, __pyx_L1_error)
35863 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 6788, __pyx_L1_error)
35864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 6789, __pyx_L1_error)
35865 __pyx_r = __pyx_pf_14cnumericalFlux_200calculateGlobalExteriorNumericalAdvectiveFluxStokes2D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_p, __pyx_v_f_mass, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_umom_dp, __pyx_v_dflux_vmom_dp, __pyx_v_velocity);
35872 __Pyx_RefNannyFinishContext();
35876 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) {
35877 PyObject *__pyx_r = NULL;
35878 __Pyx_RefNannyDeclarations
35879 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes2D", 0);
35888 calculateGlobalExteriorNumericalAdvectiveFluxStokes2D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_velocity->data));
35899 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35900 __Pyx_XGIVEREF(__pyx_r);
35901 __Pyx_RefNannyFinishContext();
35914 static PyObject *__pyx_pw_14cnumericalFlux_203calculateGlobalExteriorNumericalAdvectiveFluxStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35915 static PyMethodDef __pyx_mdef_14cnumericalFlux_203calculateGlobalExteriorNumericalAdvectiveFluxStokes3D = {
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_203calculateGlobalExteriorNumericalAdvectiveFluxStokes3D, METH_VARARGS|METH_KEYWORDS, 0};
35916 static PyObject *__pyx_pw_14cnumericalFlux_203calculateGlobalExteriorNumericalAdvectiveFluxStokes3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35917 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35918 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35919 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35920 PyArrayObject *__pyx_v_isDOFBoundary_p = 0;
35921 PyArrayObject *__pyx_v_isDOFBoundary_u = 0;
35922 PyArrayObject *__pyx_v_isDOFBoundary_v = 0;
35923 PyArrayObject *__pyx_v_isDOFBoundary_w = 0;
35924 PyArrayObject *__pyx_v_n = 0;
35925 PyArrayObject *__pyx_v_bc_p = 0;
35926 PyArrayObject *__pyx_v_bc_f_mass = 0;
35927 PyArrayObject *__pyx_v_p = 0;
35928 PyArrayObject *__pyx_v_f_mass = 0;
35929 PyArrayObject *__pyx_v_df_mass_du = 0;
35930 PyArrayObject *__pyx_v_df_mass_dv = 0;
35931 PyArrayObject *__pyx_v_df_mass_dw = 0;
35932 PyArrayObject *__pyx_v_flux_mass = 0;
35933 PyArrayObject *__pyx_v_flux_umom = 0;
35934 PyArrayObject *__pyx_v_flux_vmom = 0;
35935 PyArrayObject *__pyx_v_flux_wmom = 0;
35936 PyArrayObject *__pyx_v_dflux_mass_du = 0;
35937 PyArrayObject *__pyx_v_dflux_mass_dv = 0;
35938 PyArrayObject *__pyx_v_dflux_mass_dw = 0;
35939 PyArrayObject *__pyx_v_dflux_umom_dp = 0;
35940 PyArrayObject *__pyx_v_dflux_vmom_dp = 0;
35941 PyArrayObject *__pyx_v_dflux_wmom_dp = 0;
35942 PyArrayObject *__pyx_v_velocity = 0;
35943 int __pyx_lineno = 0;
35944 const char *__pyx_filename = NULL;
35945 int __pyx_clineno = 0;
35946 PyObject *__pyx_r = 0;
35947 __Pyx_RefNannyDeclarations
35948 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D (wrapper)", 0);
35950 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isDOFBoundary_p,&__pyx_n_s_isDOFBoundary_u,&__pyx_n_s_isDOFBoundary_v,&__pyx_n_s_isDOFBoundary_w,&__pyx_n_s_n,&__pyx_n_s_bc_p,&__pyx_n_s_bc_f_mass,&__pyx_n_s_p,&__pyx_n_s_f_mass,&__pyx_n_s_df_mass_du,&__pyx_n_s_df_mass_dv,&__pyx_n_s_df_mass_dw,&__pyx_n_s_flux_mass,&__pyx_n_s_flux_umom,&__pyx_n_s_flux_vmom,&__pyx_n_s_flux_wmom,&__pyx_n_s_dflux_mass_du,&__pyx_n_s_dflux_mass_dv,&__pyx_n_s_dflux_mass_dw,&__pyx_n_s_dflux_umom_dp,&__pyx_n_s_dflux_vmom_dp,&__pyx_n_s_dflux_wmom_dp,&__pyx_n_s_velocity,0};
35951 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
35952 if (unlikely(__pyx_kwds)) {
35953 Py_ssize_t kw_args;
35954 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35955 switch (pos_args) {
35956 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
35957 CYTHON_FALLTHROUGH;
35958 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
35959 CYTHON_FALLTHROUGH;
35960 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
35961 CYTHON_FALLTHROUGH;
35962 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
35963 CYTHON_FALLTHROUGH;
35964 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
35965 CYTHON_FALLTHROUGH;
35966 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
35967 CYTHON_FALLTHROUGH;
35968 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
35969 CYTHON_FALLTHROUGH;
35970 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
35971 CYTHON_FALLTHROUGH;
35972 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
35973 CYTHON_FALLTHROUGH;
35974 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
35975 CYTHON_FALLTHROUGH;
35976 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
35977 CYTHON_FALLTHROUGH;
35978 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
35979 CYTHON_FALLTHROUGH;
35980 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
35981 CYTHON_FALLTHROUGH;
35982 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
35983 CYTHON_FALLTHROUGH;
35984 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
35985 CYTHON_FALLTHROUGH;
35986 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
35987 CYTHON_FALLTHROUGH;
35988 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
35989 CYTHON_FALLTHROUGH;
35990 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
35991 CYTHON_FALLTHROUGH;
35992 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
35993 CYTHON_FALLTHROUGH;
35994 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
35995 CYTHON_FALLTHROUGH;
35996 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
35997 CYTHON_FALLTHROUGH;
35998 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35999 CYTHON_FALLTHROUGH;
36000 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36001 CYTHON_FALLTHROUGH;
36002 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36003 CYTHON_FALLTHROUGH;
36004 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36005 CYTHON_FALLTHROUGH;
36006 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36007 CYTHON_FALLTHROUGH;
36009 default:
goto __pyx_L5_argtuple_error;
36011 kw_args = PyDict_Size(__pyx_kwds);
36012 switch (pos_args) {
36014 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
36015 else goto __pyx_L5_argtuple_error;
36016 CYTHON_FALLTHROUGH;
36018 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
36020 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 1); __PYX_ERR(0, 6814, __pyx_L3_error)
36022 CYTHON_FALLTHROUGH;
36024 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
36026 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 2); __PYX_ERR(0, 6814, __pyx_L3_error)
36028 CYTHON_FALLTHROUGH;
36030 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_p)) != 0)) kw_args--;
36032 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 3); __PYX_ERR(0, 6814, __pyx_L3_error)
36034 CYTHON_FALLTHROUGH;
36036 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_u)) != 0)) kw_args--;
36038 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 4); __PYX_ERR(0, 6814, __pyx_L3_error)
36040 CYTHON_FALLTHROUGH;
36042 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_v)) != 0)) kw_args--;
36044 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 5); __PYX_ERR(0, 6814, __pyx_L3_error)
36046 CYTHON_FALLTHROUGH;
36048 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary_w)) != 0)) kw_args--;
36050 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 6); __PYX_ERR(0, 6814, __pyx_L3_error)
36052 CYTHON_FALLTHROUGH;
36054 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
36056 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 7); __PYX_ERR(0, 6814, __pyx_L3_error)
36058 CYTHON_FALLTHROUGH;
36060 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_p)) != 0)) kw_args--;
36062 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 8); __PYX_ERR(0, 6814, __pyx_L3_error)
36064 CYTHON_FALLTHROUGH;
36066 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bc_f_mass)) != 0)) kw_args--;
36068 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 9); __PYX_ERR(0, 6814, __pyx_L3_error)
36070 CYTHON_FALLTHROUGH;
36072 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
36074 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 10); __PYX_ERR(0, 6814, __pyx_L3_error)
36076 CYTHON_FALLTHROUGH;
36078 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f_mass)) != 0)) kw_args--;
36080 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 11); __PYX_ERR(0, 6814, __pyx_L3_error)
36082 CYTHON_FALLTHROUGH;
36084 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_du)) != 0)) kw_args--;
36086 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 12); __PYX_ERR(0, 6814, __pyx_L3_error)
36088 CYTHON_FALLTHROUGH;
36090 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dv)) != 0)) kw_args--;
36092 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 13); __PYX_ERR(0, 6814, __pyx_L3_error)
36094 CYTHON_FALLTHROUGH;
36096 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df_mass_dw)) != 0)) kw_args--;
36098 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 14); __PYX_ERR(0, 6814, __pyx_L3_error)
36100 CYTHON_FALLTHROUGH;
36102 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_mass)) != 0)) kw_args--;
36104 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 15); __PYX_ERR(0, 6814, __pyx_L3_error)
36106 CYTHON_FALLTHROUGH;
36108 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_umom)) != 0)) kw_args--;
36110 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 16); __PYX_ERR(0, 6814, __pyx_L3_error)
36112 CYTHON_FALLTHROUGH;
36114 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_vmom)) != 0)) kw_args--;
36116 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 17); __PYX_ERR(0, 6814, __pyx_L3_error)
36118 CYTHON_FALLTHROUGH;
36120 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_wmom)) != 0)) kw_args--;
36122 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 18); __PYX_ERR(0, 6814, __pyx_L3_error)
36124 CYTHON_FALLTHROUGH;
36126 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_du)) != 0)) kw_args--;
36128 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 19); __PYX_ERR(0, 6814, __pyx_L3_error)
36130 CYTHON_FALLTHROUGH;
36132 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dv)) != 0)) kw_args--;
36134 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 20); __PYX_ERR(0, 6814, __pyx_L3_error)
36136 CYTHON_FALLTHROUGH;
36138 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_mass_dw)) != 0)) kw_args--;
36140 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 21); __PYX_ERR(0, 6814, __pyx_L3_error)
36142 CYTHON_FALLTHROUGH;
36144 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_umom_dp)) != 0)) kw_args--;
36146 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 22); __PYX_ERR(0, 6814, __pyx_L3_error)
36148 CYTHON_FALLTHROUGH;
36150 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_vmom_dp)) != 0)) kw_args--;
36152 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 23); __PYX_ERR(0, 6814, __pyx_L3_error)
36154 CYTHON_FALLTHROUGH;
36156 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dflux_wmom_dp)) != 0)) kw_args--;
36158 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 24); __PYX_ERR(0, 6814, __pyx_L3_error)
36160 CYTHON_FALLTHROUGH;
36162 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
36164 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, 25); __PYX_ERR(0, 6814, __pyx_L3_error)
36167 if (unlikely(kw_args > 0)) {
36168 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D") < 0)) __PYX_ERR(0, 6814, __pyx_L3_error)
36170 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
36171 goto __pyx_L5_argtuple_error;
36173 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36174 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36175 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36176 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36177 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36178 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36179 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36180 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36181 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36182 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36183 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36184 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36185 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36186 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36187 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
36188 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
36189 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
36190 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
36191 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
36192 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
36193 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
36194 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
36195 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
36196 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
36197 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
36198 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
36200 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
36201 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
36202 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
36203 __pyx_v_isDOFBoundary_p = ((PyArrayObject *)values[3]);
36204 __pyx_v_isDOFBoundary_u = ((PyArrayObject *)values[4]);
36205 __pyx_v_isDOFBoundary_v = ((PyArrayObject *)values[5]);
36206 __pyx_v_isDOFBoundary_w = ((PyArrayObject *)values[6]);
36207 __pyx_v_n = ((PyArrayObject *)values[7]);
36208 __pyx_v_bc_p = ((PyArrayObject *)values[8]);
36209 __pyx_v_bc_f_mass = ((PyArrayObject *)values[9]);
36210 __pyx_v_p = ((PyArrayObject *)values[10]);
36211 __pyx_v_f_mass = ((PyArrayObject *)values[11]);
36212 __pyx_v_df_mass_du = ((PyArrayObject *)values[12]);
36213 __pyx_v_df_mass_dv = ((PyArrayObject *)values[13]);
36214 __pyx_v_df_mass_dw = ((PyArrayObject *)values[14]);
36215 __pyx_v_flux_mass = ((PyArrayObject *)values[15]);
36216 __pyx_v_flux_umom = ((PyArrayObject *)values[16]);
36217 __pyx_v_flux_vmom = ((PyArrayObject *)values[17]);
36218 __pyx_v_flux_wmom = ((PyArrayObject *)values[18]);
36219 __pyx_v_dflux_mass_du = ((PyArrayObject *)values[19]);
36220 __pyx_v_dflux_mass_dv = ((PyArrayObject *)values[20]);
36221 __pyx_v_dflux_mass_dw = ((PyArrayObject *)values[21]);
36222 __pyx_v_dflux_umom_dp = ((PyArrayObject *)values[22]);
36223 __pyx_v_dflux_vmom_dp = ((PyArrayObject *)values[23]);
36224 __pyx_v_dflux_wmom_dp = ((PyArrayObject *)values[24]);
36225 __pyx_v_velocity = ((PyArrayObject *)values[25]);
36227 goto __pyx_L4_argument_unpacking_done;
36228 __pyx_L5_argtuple_error:;
36229 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6814, __pyx_L3_error)
36231 __Pyx_AddTraceback(
"cnumericalFlux.calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
36232 __Pyx_RefNannyFinishContext();
36234 __pyx_L4_argument_unpacking_done:;
36235 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6814, __pyx_L1_error)
36236 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6815, __pyx_L1_error)
36237 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6816, __pyx_L1_error)
36238 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_p), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_p", 0))) __PYX_ERR(0, 6817, __pyx_L1_error)
36239 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_u), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_u", 0))) __PYX_ERR(0, 6818, __pyx_L1_error)
36240 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_v), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_v", 0))) __PYX_ERR(0, 6819, __pyx_L1_error)
36241 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary_w), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary_w", 0))) __PYX_ERR(0, 6820, __pyx_L1_error)
36242 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6821, __pyx_L1_error)
36243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_p), __pyx_ptype_5numpy_ndarray, 1,
"bc_p", 0))) __PYX_ERR(0, 6822, __pyx_L1_error)
36244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bc_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"bc_f_mass", 0))) __PYX_ERR(0, 6823, __pyx_L1_error)
36245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 6824, __pyx_L1_error)
36246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f_mass), __pyx_ptype_5numpy_ndarray, 1,
"f_mass", 0))) __PYX_ERR(0, 6825, __pyx_L1_error)
36247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_du", 0))) __PYX_ERR(0, 6826, __pyx_L1_error)
36248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dv", 0))) __PYX_ERR(0, 6827, __pyx_L1_error)
36249 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"df_mass_dw", 0))) __PYX_ERR(0, 6828, __pyx_L1_error)
36250 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_mass), __pyx_ptype_5numpy_ndarray, 1,
"flux_mass", 0))) __PYX_ERR(0, 6829, __pyx_L1_error)
36251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_umom), __pyx_ptype_5numpy_ndarray, 1,
"flux_umom", 0))) __PYX_ERR(0, 6830, __pyx_L1_error)
36252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_vmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_vmom", 0))) __PYX_ERR(0, 6831, __pyx_L1_error)
36253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_wmom), __pyx_ptype_5numpy_ndarray, 1,
"flux_wmom", 0))) __PYX_ERR(0, 6832, __pyx_L1_error)
36254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_du), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_du", 0))) __PYX_ERR(0, 6833, __pyx_L1_error)
36255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dv), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dv", 0))) __PYX_ERR(0, 6834, __pyx_L1_error)
36256 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_mass_dw), __pyx_ptype_5numpy_ndarray, 1,
"dflux_mass_dw", 0))) __PYX_ERR(0, 6835, __pyx_L1_error)
36257 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_umom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_umom_dp", 0))) __PYX_ERR(0, 6836, __pyx_L1_error)
36258 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_vmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_vmom_dp", 0))) __PYX_ERR(0, 6837, __pyx_L1_error)
36259 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dflux_wmom_dp), __pyx_ptype_5numpy_ndarray, 1,
"dflux_wmom_dp", 0))) __PYX_ERR(0, 6838, __pyx_L1_error)
36260 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 6839, __pyx_L1_error)
36261 __pyx_r = __pyx_pf_14cnumericalFlux_202calculateGlobalExteriorNumericalAdvectiveFluxStokes3D(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isDOFBoundary_p, __pyx_v_isDOFBoundary_u, __pyx_v_isDOFBoundary_v, __pyx_v_isDOFBoundary_w, __pyx_v_n, __pyx_v_bc_p, __pyx_v_bc_f_mass, __pyx_v_p, __pyx_v_f_mass, __pyx_v_df_mass_du, __pyx_v_df_mass_dv, __pyx_v_df_mass_dw, __pyx_v_flux_mass, __pyx_v_flux_umom, __pyx_v_flux_vmom, __pyx_v_flux_wmom, __pyx_v_dflux_mass_du, __pyx_v_dflux_mass_dv, __pyx_v_dflux_mass_dw, __pyx_v_dflux_umom_dp, __pyx_v_dflux_vmom_dp, __pyx_v_dflux_wmom_dp, __pyx_v_velocity);
36268 __Pyx_RefNannyFinishContext();
36272 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) {
36273 PyObject *__pyx_r = NULL;
36274 __Pyx_RefNannyDeclarations
36275 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorNumericalAdvectiveFluxStokes3D", 0);
36284 calculateGlobalExteriorNumericalAdvectiveFluxStokes3D((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f_mass->dimensions[1]), (__pyx_v_f_mass->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isDOFBoundary_p->data), ((
int *)__pyx_v_isDOFBoundary_u->data), ((
int *)__pyx_v_isDOFBoundary_v->data), ((
int *)__pyx_v_isDOFBoundary_w->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_bc_p->data), ((
double *)__pyx_v_bc_f_mass->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_f_mass->data), ((
double *)__pyx_v_df_mass_du->data), ((
double *)__pyx_v_df_mass_dv->data), ((
double *)__pyx_v_df_mass_dw->data), ((
double *)__pyx_v_flux_mass->data), ((
double *)__pyx_v_flux_umom->data), ((
double *)__pyx_v_flux_vmom->data), ((
double *)__pyx_v_flux_wmom->data), ((
double *)__pyx_v_dflux_mass_du->data), ((
double *)__pyx_v_dflux_mass_dv->data), ((
double *)__pyx_v_dflux_mass_dw->data), ((
double *)__pyx_v_dflux_umom_dp->data), ((
double *)__pyx_v_dflux_vmom_dp->data), ((
double *)__pyx_v_dflux_wmom_dp->data), ((
double *)__pyx_v_velocity->data));
36295 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36296 __Pyx_XGIVEREF(__pyx_r);
36297 __Pyx_RefNannyFinishContext();
36310 static PyObject *__pyx_pw_14cnumericalFlux_205applySeepageFace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36311 static PyMethodDef __pyx_mdef_14cnumericalFlux_205applySeepageFace = {
"applySeepageFace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_205applySeepageFace, METH_VARARGS|METH_KEYWORDS, 0};
36312 static PyObject *__pyx_pw_14cnumericalFlux_205applySeepageFace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36313 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
36314 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
36315 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
36316 PyArrayObject *__pyx_v_isSeepageFace = 0;
36317 PyArrayObject *__pyx_v_isDOFBoundary = 0;
36318 double __pyx_v_epsFact;
36319 PyArrayObject *__pyx_v_elementDiameters = 0;
36320 PyArrayObject *__pyx_v_g = 0;
36321 PyArrayObject *__pyx_v_n = 0;
36322 PyArrayObject *__pyx_v_grad_u = 0;
36323 PyArrayObject *__pyx_v_u = 0;
36324 PyArrayObject *__pyx_v_advectiveFlux = 0;
36325 PyArrayObject *__pyx_v_diffusiveFlux = 0;
36326 int __pyx_lineno = 0;
36327 const char *__pyx_filename = NULL;
36328 int __pyx_clineno = 0;
36329 PyObject *__pyx_r = 0;
36330 __Pyx_RefNannyDeclarations
36331 __Pyx_RefNannySetupContext(
"applySeepageFace (wrapper)", 0);
36333 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isSeepageFace,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_epsFact,&__pyx_n_s_elementDiameters,&__pyx_n_s_g,&__pyx_n_s_n,&__pyx_n_s_grad_u,&__pyx_n_s_u,&__pyx_n_s_advectiveFlux,&__pyx_n_s_diffusiveFlux,0};
36334 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
36335 if (unlikely(__pyx_kwds)) {
36336 Py_ssize_t kw_args;
36337 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36338 switch (pos_args) {
36339 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36340 CYTHON_FALLTHROUGH;
36341 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36342 CYTHON_FALLTHROUGH;
36343 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36344 CYTHON_FALLTHROUGH;
36345 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36346 CYTHON_FALLTHROUGH;
36347 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36348 CYTHON_FALLTHROUGH;
36349 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36350 CYTHON_FALLTHROUGH;
36351 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36352 CYTHON_FALLTHROUGH;
36353 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36354 CYTHON_FALLTHROUGH;
36355 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36356 CYTHON_FALLTHROUGH;
36357 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36358 CYTHON_FALLTHROUGH;
36359 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36360 CYTHON_FALLTHROUGH;
36361 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36362 CYTHON_FALLTHROUGH;
36363 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36364 CYTHON_FALLTHROUGH;
36366 default:
goto __pyx_L5_argtuple_error;
36368 kw_args = PyDict_Size(__pyx_kwds);
36369 switch (pos_args) {
36371 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
36372 else goto __pyx_L5_argtuple_error;
36373 CYTHON_FALLTHROUGH;
36375 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
36377 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 1); __PYX_ERR(0, 6869, __pyx_L3_error)
36379 CYTHON_FALLTHROUGH;
36381 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
36383 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 2); __PYX_ERR(0, 6869, __pyx_L3_error)
36385 CYTHON_FALLTHROUGH;
36387 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isSeepageFace)) != 0)) kw_args--;
36389 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 3); __PYX_ERR(0, 6869, __pyx_L3_error)
36391 CYTHON_FALLTHROUGH;
36393 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
36395 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 4); __PYX_ERR(0, 6869, __pyx_L3_error)
36397 CYTHON_FALLTHROUGH;
36399 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
36401 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 5); __PYX_ERR(0, 6869, __pyx_L3_error)
36403 CYTHON_FALLTHROUGH;
36405 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameters)) != 0)) kw_args--;
36407 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 6); __PYX_ERR(0, 6869, __pyx_L3_error)
36409 CYTHON_FALLTHROUGH;
36411 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
36413 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 7); __PYX_ERR(0, 6869, __pyx_L3_error)
36415 CYTHON_FALLTHROUGH;
36417 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
36419 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 8); __PYX_ERR(0, 6869, __pyx_L3_error)
36421 CYTHON_FALLTHROUGH;
36423 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
36425 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 9); __PYX_ERR(0, 6869, __pyx_L3_error)
36427 CYTHON_FALLTHROUGH;
36429 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
36431 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 10); __PYX_ERR(0, 6869, __pyx_L3_error)
36433 CYTHON_FALLTHROUGH;
36435 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux)) != 0)) kw_args--;
36437 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 11); __PYX_ERR(0, 6869, __pyx_L3_error)
36439 CYTHON_FALLTHROUGH;
36441 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
36443 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, 12); __PYX_ERR(0, 6869, __pyx_L3_error)
36446 if (unlikely(kw_args > 0)) {
36447 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"applySeepageFace") < 0)) __PYX_ERR(0, 6869, __pyx_L3_error)
36449 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
36450 goto __pyx_L5_argtuple_error;
36452 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36453 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36454 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36455 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36456 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36457 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36458 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36459 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36460 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36461 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36462 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36463 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36464 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36466 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
36467 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
36468 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
36469 __pyx_v_isSeepageFace = ((PyArrayObject *)values[3]);
36470 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[4]);
36471 __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_epsFact == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6874, __pyx_L3_error)
36472 __pyx_v_elementDiameters = ((PyArrayObject *)values[6]);
36473 __pyx_v_g = ((PyArrayObject *)values[7]);
36474 __pyx_v_n = ((PyArrayObject *)values[8]);
36475 __pyx_v_grad_u = ((PyArrayObject *)values[9]);
36476 __pyx_v_u = ((PyArrayObject *)values[10]);
36477 __pyx_v_advectiveFlux = ((PyArrayObject *)values[11]);
36478 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[12]);
36480 goto __pyx_L4_argument_unpacking_done;
36481 __pyx_L5_argtuple_error:;
36482 __Pyx_RaiseArgtupleInvalid(
"applySeepageFace", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6869, __pyx_L3_error)
36484 __Pyx_AddTraceback(
"cnumericalFlux.applySeepageFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
36485 __Pyx_RefNannyFinishContext();
36487 __pyx_L4_argument_unpacking_done:;
36488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6869, __pyx_L1_error)
36489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6870, __pyx_L1_error)
36490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6871, __pyx_L1_error)
36491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isSeepageFace), __pyx_ptype_5numpy_ndarray, 1,
"isSeepageFace", 0))) __PYX_ERR(0, 6872, __pyx_L1_error)
36492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6873, __pyx_L1_error)
36493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameters), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameters", 0))) __PYX_ERR(0, 6875, __pyx_L1_error)
36494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6876, __pyx_L1_error)
36495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6877, __pyx_L1_error)
36496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 6878, __pyx_L1_error)
36497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6879, __pyx_L1_error)
36498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"advectiveFlux", 0))) __PYX_ERR(0, 6880, __pyx_L1_error)
36499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 6881, __pyx_L1_error)
36500 __pyx_r = __pyx_pf_14cnumericalFlux_204applySeepageFace(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isSeepageFace, __pyx_v_isDOFBoundary, __pyx_v_epsFact, __pyx_v_elementDiameters, __pyx_v_g, __pyx_v_n, __pyx_v_grad_u, __pyx_v_u, __pyx_v_advectiveFlux, __pyx_v_diffusiveFlux);
36507 __Pyx_RefNannyFinishContext();
36511 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) {
36512 PyObject *__pyx_r = NULL;
36513 __Pyx_RefNannyDeclarations
36514 PyObject *__pyx_t_1 = NULL;
36515 PyObject *__pyx_t_2 = NULL;
36517 int __pyx_lineno = 0;
36518 const char *__pyx_filename = NULL;
36519 int __pyx_clineno = 0;
36520 __Pyx_RefNannySetupContext(
"applySeepageFace", 0);
36529 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_n_s_sape);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6882, __pyx_L1_error)
36530 __Pyx_GOTREF(__pyx_t_1);
36531 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6882, __pyx_L1_error)
36532 __Pyx_GOTREF(__pyx_t_2);
36533 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36534 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_t_2);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6882, __pyx_L1_error)
36535 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
36544 applySeepageFace(__pyx_t_3, (__pyx_v_grad_u->dimensions[1]), (__pyx_v_grad_u->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isSeepageFace->data), ((
int *)__pyx_v_isDOFBoundary->data), __pyx_v_epsFact, ((
double *)__pyx_v_elementDiameters->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_advectiveFlux->data), ((
double *)__pyx_v_diffusiveFlux->data));
36555 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36558 __Pyx_XDECREF(__pyx_t_1);
36559 __Pyx_XDECREF(__pyx_t_2);
36560 __Pyx_AddTraceback(
"cnumericalFlux.applySeepageFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
36563 __Pyx_XGIVEREF(__pyx_r);
36564 __Pyx_RefNannyFinishContext();
36577 static PyObject *__pyx_pw_14cnumericalFlux_207applySeepageFaceJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36578 static PyMethodDef __pyx_mdef_14cnumericalFlux_207applySeepageFaceJacobian = {
"applySeepageFaceJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_14cnumericalFlux_207applySeepageFaceJacobian, METH_VARARGS|METH_KEYWORDS, 0};
36579 static PyObject *__pyx_pw_14cnumericalFlux_207applySeepageFaceJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36580 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
36581 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
36582 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
36583 PyArrayObject *__pyx_v_isSeepageFace = 0;
36584 double __pyx_v_epsFact;
36585 PyArrayObject *__pyx_v_elementDiameters = 0;
36586 PyArrayObject *__pyx_v_g = 0;
36587 PyArrayObject *__pyx_v_n = 0;
36588 PyArrayObject *__pyx_v_grad_u = 0;
36589 PyArrayObject *__pyx_v_u = 0;
36590 PyArrayObject *__pyx_v_advectiveFlux = 0;
36591 PyArrayObject *__pyx_v_diffusiveFlux = 0;
36592 PyArrayObject *__pyx_v_v = 0;
36593 PyArrayObject *__pyx_v_fluxJacobian = 0;
36594 int __pyx_lineno = 0;
36595 const char *__pyx_filename = NULL;
36596 int __pyx_clineno = 0;
36597 PyObject *__pyx_r = 0;
36598 __Pyx_RefNannyDeclarations
36599 __Pyx_RefNannySetupContext(
"applySeepageFaceJacobian (wrapper)", 0);
36601 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_isSeepageFace,&__pyx_n_s_epsFact,&__pyx_n_s_elementDiameters,&__pyx_n_s_g,&__pyx_n_s_n,&__pyx_n_s_grad_u,&__pyx_n_s_u,&__pyx_n_s_advectiveFlux,&__pyx_n_s_diffusiveFlux,&__pyx_n_s_v,&__pyx_n_s_fluxJacobian,0};
36602 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
36603 if (unlikely(__pyx_kwds)) {
36604 Py_ssize_t kw_args;
36605 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36606 switch (pos_args) {
36607 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36608 CYTHON_FALLTHROUGH;
36609 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36610 CYTHON_FALLTHROUGH;
36611 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36612 CYTHON_FALLTHROUGH;
36613 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36614 CYTHON_FALLTHROUGH;
36615 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36616 CYTHON_FALLTHROUGH;
36617 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36618 CYTHON_FALLTHROUGH;
36619 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36620 CYTHON_FALLTHROUGH;
36621 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36622 CYTHON_FALLTHROUGH;
36623 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36624 CYTHON_FALLTHROUGH;
36625 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36626 CYTHON_FALLTHROUGH;
36627 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36628 CYTHON_FALLTHROUGH;
36629 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36630 CYTHON_FALLTHROUGH;
36631 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36632 CYTHON_FALLTHROUGH;
36633 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36634 CYTHON_FALLTHROUGH;
36636 default:
goto __pyx_L5_argtuple_error;
36638 kw_args = PyDict_Size(__pyx_kwds);
36639 switch (pos_args) {
36641 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
36642 else goto __pyx_L5_argtuple_error;
36643 CYTHON_FALLTHROUGH;
36645 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
36647 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 1); __PYX_ERR(0, 6898, __pyx_L3_error)
36649 CYTHON_FALLTHROUGH;
36651 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
36653 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 2); __PYX_ERR(0, 6898, __pyx_L3_error)
36655 CYTHON_FALLTHROUGH;
36657 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isSeepageFace)) != 0)) kw_args--;
36659 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 3); __PYX_ERR(0, 6898, __pyx_L3_error)
36661 CYTHON_FALLTHROUGH;
36663 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
36665 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 4); __PYX_ERR(0, 6898, __pyx_L3_error)
36667 CYTHON_FALLTHROUGH;
36669 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameters)) != 0)) kw_args--;
36671 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 5); __PYX_ERR(0, 6898, __pyx_L3_error)
36673 CYTHON_FALLTHROUGH;
36675 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
36677 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 6); __PYX_ERR(0, 6898, __pyx_L3_error)
36679 CYTHON_FALLTHROUGH;
36681 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
36683 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 7); __PYX_ERR(0, 6898, __pyx_L3_error)
36685 CYTHON_FALLTHROUGH;
36687 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
36689 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 8); __PYX_ERR(0, 6898, __pyx_L3_error)
36691 CYTHON_FALLTHROUGH;
36693 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
36695 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 9); __PYX_ERR(0, 6898, __pyx_L3_error)
36697 CYTHON_FALLTHROUGH;
36699 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveFlux)) != 0)) kw_args--;
36701 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 10); __PYX_ERR(0, 6898, __pyx_L3_error)
36703 CYTHON_FALLTHROUGH;
36705 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusiveFlux)) != 0)) kw_args--;
36707 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 11); __PYX_ERR(0, 6898, __pyx_L3_error)
36709 CYTHON_FALLTHROUGH;
36711 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
36713 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 12); __PYX_ERR(0, 6898, __pyx_L3_error)
36715 CYTHON_FALLTHROUGH;
36717 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxJacobian)) != 0)) kw_args--;
36719 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, 13); __PYX_ERR(0, 6898, __pyx_L3_error)
36722 if (unlikely(kw_args > 0)) {
36723 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"applySeepageFaceJacobian") < 0)) __PYX_ERR(0, 6898, __pyx_L3_error)
36725 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
36726 goto __pyx_L5_argtuple_error;
36728 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36729 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36730 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36731 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36732 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36733 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36734 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36735 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
36736 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
36737 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
36738 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
36739 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
36740 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
36741 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
36743 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
36744 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
36745 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
36746 __pyx_v_isSeepageFace = ((PyArrayObject *)values[3]);
36747 __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_epsFact == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6902, __pyx_L3_error)
36748 __pyx_v_elementDiameters = ((PyArrayObject *)values[5]);
36749 __pyx_v_g = ((PyArrayObject *)values[6]);
36750 __pyx_v_n = ((PyArrayObject *)values[7]);
36751 __pyx_v_grad_u = ((PyArrayObject *)values[8]);
36752 __pyx_v_u = ((PyArrayObject *)values[9]);
36753 __pyx_v_advectiveFlux = ((PyArrayObject *)values[10]);
36754 __pyx_v_diffusiveFlux = ((PyArrayObject *)values[11]);
36755 __pyx_v_v = ((PyArrayObject *)values[12]);
36756 __pyx_v_fluxJacobian = ((PyArrayObject *)values[13]);
36758 goto __pyx_L4_argument_unpacking_done;
36759 __pyx_L5_argtuple_error:;
36760 __Pyx_RaiseArgtupleInvalid(
"applySeepageFaceJacobian", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6898, __pyx_L3_error)
36762 __Pyx_AddTraceback(
"cnumericalFlux.applySeepageFaceJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
36763 __Pyx_RefNannyFinishContext();
36765 __pyx_L4_argument_unpacking_done:;
36766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6898, __pyx_L1_error)
36767 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6899, __pyx_L1_error)
36768 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6900, __pyx_L1_error)
36769 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isSeepageFace), __pyx_ptype_5numpy_ndarray, 1,
"isSeepageFace", 0))) __PYX_ERR(0, 6901, __pyx_L1_error)
36770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameters), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameters", 0))) __PYX_ERR(0, 6903, __pyx_L1_error)
36771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_g), __pyx_ptype_5numpy_ndarray, 1,
"g", 0))) __PYX_ERR(0, 6904, __pyx_L1_error)
36772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6905, __pyx_L1_error)
36773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 6906, __pyx_L1_error)
36774 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6907, __pyx_L1_error)
36775 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"advectiveFlux", 0))) __PYX_ERR(0, 6908, __pyx_L1_error)
36776 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusiveFlux), __pyx_ptype_5numpy_ndarray, 1,
"diffusiveFlux", 0))) __PYX_ERR(0, 6909, __pyx_L1_error)
36777 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6910, __pyx_L1_error)
36778 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"fluxJacobian", 0))) __PYX_ERR(0, 6911, __pyx_L1_error)
36779 __pyx_r = __pyx_pf_14cnumericalFlux_206applySeepageFaceJacobian(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_isSeepageFace, __pyx_v_epsFact, __pyx_v_elementDiameters, __pyx_v_g, __pyx_v_n, __pyx_v_grad_u, __pyx_v_u, __pyx_v_advectiveFlux, __pyx_v_diffusiveFlux, __pyx_v_v, __pyx_v_fluxJacobian);
36786 __Pyx_RefNannyFinishContext();
36790 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) {
36791 PyObject *__pyx_r = NULL;
36792 __Pyx_RefNannyDeclarations
36793 __Pyx_RefNannySetupContext(
"applySeepageFaceJacobian", 0);
36802 applySeepageFaceJacobian((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), (__pyx_v_fluxJacobian->dimensions[2]), (__pyx_v_grad_u->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_isSeepageFace->data), __pyx_v_epsFact, ((
double *)__pyx_v_elementDiameters->data), ((
double *)__pyx_v_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_advectiveFlux->data), ((
double *)__pyx_v_diffusiveFlux->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_fluxJacobian->data));
36813 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36814 __Pyx_XGIVEREF(__pyx_r);
36815 __Pyx_RefNannyFinishContext();
36827 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
36828 PyObject *__pyx_r = NULL;
36829 __Pyx_RefNannyDeclarations
36830 PyObject *__pyx_t_1 = NULL;
36831 int __pyx_lineno = 0;
36832 const char *__pyx_filename = NULL;
36833 int __pyx_clineno = 0;
36834 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
36843 __Pyx_XDECREF(__pyx_r);
36844 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 736, __pyx_L1_error)
36845 __Pyx_GOTREF(__pyx_t_1);
36846 __pyx_r = __pyx_t_1;
36860 __Pyx_XDECREF(__pyx_t_1);
36861 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
36864 __Pyx_XGIVEREF(__pyx_r);
36865 __Pyx_RefNannyFinishContext();
36877 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
36878 PyObject *__pyx_r = NULL;
36879 __Pyx_RefNannyDeclarations
36880 PyObject *__pyx_t_1 = NULL;
36881 int __pyx_lineno = 0;
36882 const char *__pyx_filename = NULL;
36883 int __pyx_clineno = 0;
36884 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
36893 __Pyx_XDECREF(__pyx_r);
36894 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 739, __pyx_L1_error)
36895 __Pyx_GOTREF(__pyx_t_1);
36896 __pyx_r = __pyx_t_1;
36910 __Pyx_XDECREF(__pyx_t_1);
36911 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
36914 __Pyx_XGIVEREF(__pyx_r);
36915 __Pyx_RefNannyFinishContext();
36927 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
36928 PyObject *__pyx_r = NULL;
36929 __Pyx_RefNannyDeclarations
36930 PyObject *__pyx_t_1 = NULL;
36931 int __pyx_lineno = 0;
36932 const char *__pyx_filename = NULL;
36933 int __pyx_clineno = 0;
36934 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
36943 __Pyx_XDECREF(__pyx_r);
36944 __pyx_t_1 = PyArray_MultiIterNew(3, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 742, __pyx_L1_error)
36945 __Pyx_GOTREF(__pyx_t_1);
36946 __pyx_r = __pyx_t_1;
36960 __Pyx_XDECREF(__pyx_t_1);
36961 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
36964 __Pyx_XGIVEREF(__pyx_r);
36965 __Pyx_RefNannyFinishContext();
36977 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
36978 PyObject *__pyx_r = NULL;
36979 __Pyx_RefNannyDeclarations
36980 PyObject *__pyx_t_1 = NULL;
36981 int __pyx_lineno = 0;
36982 const char *__pyx_filename = NULL;
36983 int __pyx_clineno = 0;
36984 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
36993 __Pyx_XDECREF(__pyx_r);
36994 __pyx_t_1 = PyArray_MultiIterNew(4, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 745, __pyx_L1_error)
36995 __Pyx_GOTREF(__pyx_t_1);
36996 __pyx_r = __pyx_t_1;
37010 __Pyx_XDECREF(__pyx_t_1);
37011 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
37014 __Pyx_XGIVEREF(__pyx_r);
37015 __Pyx_RefNannyFinishContext();
37027 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
37028 PyObject *__pyx_r = NULL;
37029 __Pyx_RefNannyDeclarations
37030 PyObject *__pyx_t_1 = NULL;
37031 int __pyx_lineno = 0;
37032 const char *__pyx_filename = NULL;
37033 int __pyx_clineno = 0;
37034 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
37043 __Pyx_XDECREF(__pyx_r);
37044 __pyx_t_1 = PyArray_MultiIterNew(5, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d), ((
void *)__pyx_v_e));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 748, __pyx_L1_error)
37045 __Pyx_GOTREF(__pyx_t_1);
37046 __pyx_r = __pyx_t_1;
37060 __Pyx_XDECREF(__pyx_t_1);
37061 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
37064 __Pyx_XGIVEREF(__pyx_r);
37065 __Pyx_RefNannyFinishContext();
37077 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
37078 PyObject *__pyx_r = NULL;
37079 __Pyx_RefNannyDeclarations
37081 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
37090 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
37100 __Pyx_XDECREF(__pyx_r);
37101 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
37102 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
37122 __Pyx_XDECREF(__pyx_r);
37123 __Pyx_INCREF(__pyx_empty_tuple);
37124 __pyx_r = __pyx_empty_tuple;
37138 __Pyx_XGIVEREF(__pyx_r);
37139 __Pyx_RefNannyFinishContext();
37151 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
37152 __Pyx_RefNannyDeclarations
37153 __Pyx_RefNannySetupContext(
"set_array_base", 0);
37162 Py_INCREF(__pyx_v_base);
37171 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
37182 __Pyx_RefNannyFinishContext();
37193 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
37194 PyObject *__pyx_v_base;
37195 PyObject *__pyx_r = NULL;
37196 __Pyx_RefNannyDeclarations
37198 __Pyx_RefNannySetupContext(
"get_array_base", 0);
37207 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
37216 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
37226 __Pyx_XDECREF(__pyx_r);
37227 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37246 __Pyx_XDECREF(__pyx_r);
37247 __Pyx_INCREF(((PyObject *)__pyx_v_base));
37248 __pyx_r = ((PyObject *)__pyx_v_base);
37261 __Pyx_XGIVEREF(__pyx_r);
37262 __Pyx_RefNannyFinishContext();
37274 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
37276 __Pyx_RefNannyDeclarations
37277 PyObject *__pyx_t_1 = NULL;
37278 PyObject *__pyx_t_2 = NULL;
37279 PyObject *__pyx_t_3 = NULL;
37281 PyObject *__pyx_t_5 = NULL;
37282 PyObject *__pyx_t_6 = NULL;
37283 PyObject *__pyx_t_7 = NULL;
37284 PyObject *__pyx_t_8 = NULL;
37285 int __pyx_lineno = 0;
37286 const char *__pyx_filename = NULL;
37287 int __pyx_clineno = 0;
37288 __Pyx_RefNannySetupContext(
"import_array", 0);
37298 __Pyx_PyThreadState_declare
37299 __Pyx_PyThreadState_assign
37300 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
37301 __Pyx_XGOTREF(__pyx_t_1);
37302 __Pyx_XGOTREF(__pyx_t_2);
37303 __Pyx_XGOTREF(__pyx_t_3);
37313 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 943, __pyx_L3_error)
37323 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
37324 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
37325 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
37326 goto __pyx_L8_try_end;
37336 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
37338 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
37339 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 944, __pyx_L5_except_error)
37340 __Pyx_GOTREF(__pyx_t_5);
37341 __Pyx_GOTREF(__pyx_t_6);
37342 __Pyx_GOTREF(__pyx_t_7);
37351 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple_, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 945, __pyx_L5_except_error)
37352 __Pyx_GOTREF(__pyx_t_8);
37353 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
37354 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37355 __PYX_ERR(1, 945, __pyx_L5_except_error)
37357 goto __pyx_L5_except_error;
37358 __pyx_L5_except_error:;
37367 __Pyx_XGIVEREF(__pyx_t_1);
37368 __Pyx_XGIVEREF(__pyx_t_2);
37369 __Pyx_XGIVEREF(__pyx_t_3);
37370 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
37371 goto __pyx_L1_error;
37387 __Pyx_XDECREF(__pyx_t_5);
37388 __Pyx_XDECREF(__pyx_t_6);
37389 __Pyx_XDECREF(__pyx_t_7);
37390 __Pyx_XDECREF(__pyx_t_8);
37391 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
37394 __Pyx_RefNannyFinishContext();
37406 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
37408 __Pyx_RefNannyDeclarations
37409 PyObject *__pyx_t_1 = NULL;
37410 PyObject *__pyx_t_2 = NULL;
37411 PyObject *__pyx_t_3 = NULL;
37413 PyObject *__pyx_t_5 = NULL;
37414 PyObject *__pyx_t_6 = NULL;
37415 PyObject *__pyx_t_7 = NULL;
37416 PyObject *__pyx_t_8 = NULL;
37417 int __pyx_lineno = 0;
37418 const char *__pyx_filename = NULL;
37419 int __pyx_clineno = 0;
37420 __Pyx_RefNannySetupContext(
"import_umath", 0);
37430 __Pyx_PyThreadState_declare
37431 __Pyx_PyThreadState_assign
37432 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
37433 __Pyx_XGOTREF(__pyx_t_1);
37434 __Pyx_XGOTREF(__pyx_t_2);
37435 __Pyx_XGOTREF(__pyx_t_3);
37445 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 949, __pyx_L3_error)
37455 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
37456 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
37457 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
37458 goto __pyx_L8_try_end;
37468 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
37470 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
37471 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 950, __pyx_L5_except_error)
37472 __Pyx_GOTREF(__pyx_t_5);
37473 __Pyx_GOTREF(__pyx_t_6);
37474 __Pyx_GOTREF(__pyx_t_7);
37483 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 951, __pyx_L5_except_error)
37484 __Pyx_GOTREF(__pyx_t_8);
37485 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
37486 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37487 __PYX_ERR(1, 951, __pyx_L5_except_error)
37489 goto __pyx_L5_except_error;
37490 __pyx_L5_except_error:;
37499 __Pyx_XGIVEREF(__pyx_t_1);
37500 __Pyx_XGIVEREF(__pyx_t_2);
37501 __Pyx_XGIVEREF(__pyx_t_3);
37502 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
37503 goto __pyx_L1_error;
37519 __Pyx_XDECREF(__pyx_t_5);
37520 __Pyx_XDECREF(__pyx_t_6);
37521 __Pyx_XDECREF(__pyx_t_7);
37522 __Pyx_XDECREF(__pyx_t_8);
37523 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
37526 __Pyx_RefNannyFinishContext();
37538 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
37540 __Pyx_RefNannyDeclarations
37541 PyObject *__pyx_t_1 = NULL;
37542 PyObject *__pyx_t_2 = NULL;
37543 PyObject *__pyx_t_3 = NULL;
37545 PyObject *__pyx_t_5 = NULL;
37546 PyObject *__pyx_t_6 = NULL;
37547 PyObject *__pyx_t_7 = NULL;
37548 PyObject *__pyx_t_8 = NULL;
37549 int __pyx_lineno = 0;
37550 const char *__pyx_filename = NULL;
37551 int __pyx_clineno = 0;
37552 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
37562 __Pyx_PyThreadState_declare
37563 __Pyx_PyThreadState_assign
37564 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
37565 __Pyx_XGOTREF(__pyx_t_1);
37566 __Pyx_XGOTREF(__pyx_t_2);
37567 __Pyx_XGOTREF(__pyx_t_3);
37577 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 955, __pyx_L3_error)
37587 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
37588 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
37589 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
37590 goto __pyx_L8_try_end;
37600 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
37602 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
37603 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 956, __pyx_L5_except_error)
37604 __Pyx_GOTREF(__pyx_t_5);
37605 __Pyx_GOTREF(__pyx_t_6);
37606 __Pyx_GOTREF(__pyx_t_7);
37615 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 957, __pyx_L5_except_error)
37616 __Pyx_GOTREF(__pyx_t_8);
37617 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
37618 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37619 __PYX_ERR(1, 957, __pyx_L5_except_error)
37621 goto __pyx_L5_except_error;
37622 __pyx_L5_except_error:;
37631 __Pyx_XGIVEREF(__pyx_t_1);
37632 __Pyx_XGIVEREF(__pyx_t_2);
37633 __Pyx_XGIVEREF(__pyx_t_3);
37634 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
37635 goto __pyx_L1_error;
37651 __Pyx_XDECREF(__pyx_t_5);
37652 __Pyx_XDECREF(__pyx_t_6);
37653 __Pyx_XDECREF(__pyx_t_7);
37654 __Pyx_XDECREF(__pyx_t_8);
37655 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
37658 __Pyx_RefNannyFinishContext();
37670 static CYTHON_INLINE
int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
37672 __Pyx_RefNannyDeclarations
37673 __Pyx_RefNannySetupContext(
"is_timedelta64_object", 0);
37682 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
37695 __Pyx_RefNannyFinishContext();
37707 static CYTHON_INLINE
int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
37709 __Pyx_RefNannyDeclarations
37710 __Pyx_RefNannySetupContext(
"is_datetime64_object", 0);
37719 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
37732 __Pyx_RefNannyFinishContext();
37744 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
37745 npy_datetime __pyx_r;
37754 __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
37778 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
37779 npy_timedelta __pyx_r;
37788 __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
37812 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
37813 NPY_DATETIMEUNIT __pyx_r;
37820 __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
37836 static PyMethodDef __pyx_methods[] = {
37840 #if PY_MAJOR_VERSION >= 3
37841 #if CYTHON_PEP489_MULTI_PHASE_INIT
37842 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
37843 static int __pyx_pymod_exec_cnumericalFlux(PyObject* module);
37844 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
37845 {Py_mod_create, (
void*)__pyx_pymod_create},
37846 {Py_mod_exec, (
void*)__pyx_pymod_exec_cnumericalFlux},
37851 static struct PyModuleDef __pyx_moduledef = {
37852 PyModuleDef_HEAD_INIT,
37855 #if CYTHON_PEP489_MULTI_PHASE_INIT
37861 #if CYTHON_PEP489_MULTI_PHASE_INIT
37862 __pyx_moduledef_slots,
37871 #ifndef CYTHON_SMALL_CODE
37872 #if defined(__clang__)
37873 #define CYTHON_SMALL_CODE
37874 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
37875 #define CYTHON_SMALL_CODE __attribute__((cold))
37877 #define CYTHON_SMALL_CODE
37881 static __Pyx_StringTabEntry __pyx_string_tab[] = {
37882 {&__pyx_n_s_DV, __pyx_k_DV,
sizeof(__pyx_k_DV), 0, 0, 1, 1},
37883 {&__pyx_n_s_DV_eb, __pyx_k_DV_eb,
sizeof(__pyx_k_DV_eb), 0, 0, 1, 1},
37884 {&__pyx_n_s_H, __pyx_k_H,
sizeof(__pyx_k_H), 0, 0, 1, 1},
37885 {&__pyx_n_s_H_element, __pyx_k_H_element,
sizeof(__pyx_k_H_element), 0, 0, 1, 1},
37886 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
37887 {&__pyx_n_s_K, __pyx_k_K,
sizeof(__pyx_k_K), 0, 0, 1, 1},
37888 {&__pyx_n_s_K_rho_g, __pyx_k_K_rho_g,
sizeof(__pyx_k_K_rho_g), 0, 0, 1, 1},
37889 {&__pyx_n_s_V, __pyx_k_V,
sizeof(__pyx_k_V), 0, 0, 1, 1},
37890 {&__pyx_n_s_a, __pyx_k_a,
sizeof(__pyx_k_a), 0, 0, 1, 1},
37891 {&__pyx_n_s_aHat, __pyx_k_aHat,
sizeof(__pyx_k_aHat), 0, 0, 1, 1},
37892 {&__pyx_n_s_aSplit, __pyx_k_aSplit,
sizeof(__pyx_k_aSplit), 0, 0, 1, 1},
37893 {&__pyx_n_s_aTilde, __pyx_k_aTilde,
sizeof(__pyx_k_aTilde), 0, 0, 1, 1},
37894 {&__pyx_n_s_a_mm, __pyx_k_a_mm,
sizeof(__pyx_k_a_mm), 0, 0, 1, 1},
37895 {&__pyx_n_s_a_mw, __pyx_k_a_mw,
sizeof(__pyx_k_a_mw), 0, 0, 1, 1},
37896 {&__pyx_n_s_a_nn, __pyx_k_a_nn,
sizeof(__pyx_k_a_nn), 0, 0, 1, 1},
37897 {&__pyx_n_s_a_wm, __pyx_k_a_wm,
sizeof(__pyx_k_a_wm), 0, 0, 1, 1},
37898 {&__pyx_n_s_a_ww, __pyx_k_a_ww,
sizeof(__pyx_k_a_ww), 0, 0, 1, 1},
37899 {&__pyx_n_s_advectiveFlux, __pyx_k_advectiveFlux,
sizeof(__pyx_k_advectiveFlux), 0, 0, 1, 1},
37900 {&__pyx_n_s_advectiveFlux_m, __pyx_k_advectiveFlux_m,
sizeof(__pyx_k_advectiveFlux_m), 0, 0, 1, 1},
37901 {&__pyx_n_s_applySeepageFace, __pyx_k_applySeepageFace,
sizeof(__pyx_k_applySeepageFace), 0, 0, 1, 1},
37902 {&__pyx_n_s_applySeepageFaceJacobian, __pyx_k_applySeepageFaceJacobian,
sizeof(__pyx_k_applySeepageFaceJacobian), 0, 0, 1, 1},
37903 {&__pyx_n_s_bc_H, __pyx_k_bc_H,
sizeof(__pyx_k_bc_H), 0, 0, 1, 1},
37904 {&__pyx_n_s_bc_a, __pyx_k_bc_a,
sizeof(__pyx_k_bc_a), 0, 0, 1, 1},
37905 {&__pyx_n_s_bc_a_mm, __pyx_k_bc_a_mm,
sizeof(__pyx_k_bc_a_mm), 0, 0, 1, 1},
37906 {&__pyx_n_s_bc_a_mw, __pyx_k_bc_a_mw,
sizeof(__pyx_k_bc_a_mw), 0, 0, 1, 1},
37907 {&__pyx_n_s_bc_a_nn, __pyx_k_bc_a_nn,
sizeof(__pyx_k_bc_a_nn), 0, 0, 1, 1},
37908 {&__pyx_n_s_bc_a_wm, __pyx_k_bc_a_wm,
sizeof(__pyx_k_bc_a_wm), 0, 0, 1, 1},
37909 {&__pyx_n_s_bc_a_ww, __pyx_k_bc_a_ww,
sizeof(__pyx_k_bc_a_ww), 0, 0, 1, 1},
37910 {&__pyx_n_s_bc_dH, __pyx_k_bc_dH,
sizeof(__pyx_k_bc_dH), 0, 0, 1, 1},
37911 {&__pyx_n_s_bc_df, __pyx_k_bc_df,
sizeof(__pyx_k_bc_df), 0, 0, 1, 1},
37912 {&__pyx_n_s_bc_dfn_dpsiw, __pyx_k_bc_dfn_dpsiw,
sizeof(__pyx_k_bc_dfn_dpsiw), 0, 0, 1, 1},
37913 {&__pyx_n_s_bc_dfn_dsw, __pyx_k_bc_dfn_dsw,
sizeof(__pyx_k_bc_dfn_dsw), 0, 0, 1, 1},
37914 {&__pyx_n_s_bc_dfw_dpsiw, __pyx_k_bc_dfw_dpsiw,
sizeof(__pyx_k_bc_dfw_dpsiw), 0, 0, 1, 1},
37915 {&__pyx_n_s_bc_dfw_dsw, __pyx_k_bc_dfw_dsw,
sizeof(__pyx_k_bc_dfw_dsw), 0, 0, 1, 1},
37916 {&__pyx_n_s_bc_f, __pyx_k_bc_f,
sizeof(__pyx_k_bc_f), 0, 0, 1, 1},
37917 {&__pyx_n_s_bc_f_m, __pyx_k_bc_f_m,
sizeof(__pyx_k_bc_f_m), 0, 0, 1, 1},
37918 {&__pyx_n_s_bc_f_mass, __pyx_k_bc_f_mass,
sizeof(__pyx_k_bc_f_mass), 0, 0, 1, 1},
37919 {&__pyx_n_s_bc_f_umom, __pyx_k_bc_f_umom,
sizeof(__pyx_k_bc_f_umom), 0, 0, 1, 1},
37920 {&__pyx_n_s_bc_f_vmom, __pyx_k_bc_f_vmom,
sizeof(__pyx_k_bc_f_vmom), 0, 0, 1, 1},
37921 {&__pyx_n_s_bc_f_wmom, __pyx_k_bc_f_wmom,
sizeof(__pyx_k_bc_f_wmom), 0, 0, 1, 1},
37922 {&__pyx_n_s_bc_fn, __pyx_k_bc_fn,
sizeof(__pyx_k_bc_fn), 0, 0, 1, 1},
37923 {&__pyx_n_s_bc_fpu, __pyx_k_bc_fpu,
sizeof(__pyx_k_bc_fpu), 0, 0, 1, 1},
37924 {&__pyx_n_s_bc_fpv, __pyx_k_bc_fpv,
sizeof(__pyx_k_bc_fpv), 0, 0, 1, 1},
37925 {&__pyx_n_s_bc_fpw, __pyx_k_bc_fpw,
sizeof(__pyx_k_bc_fpw), 0, 0, 1, 1},
37926 {&__pyx_n_s_bc_fw, __pyx_k_bc_fw,
sizeof(__pyx_k_bc_fw), 0, 0, 1, 1},
37927 {&__pyx_n_s_bc_grad_phi, __pyx_k_bc_grad_phi,
sizeof(__pyx_k_bc_grad_phi), 0, 0, 1, 1},
37928 {&__pyx_n_s_bc_grad_phi_m, __pyx_k_bc_grad_phi_m,
sizeof(__pyx_k_bc_grad_phi_m), 0, 0, 1, 1},
37929 {&__pyx_n_s_bc_grad_phi_n, __pyx_k_bc_grad_phi_n,
sizeof(__pyx_k_bc_grad_phi_n), 0, 0, 1, 1},
37930 {&__pyx_n_s_bc_grad_phi_w, __pyx_k_bc_grad_phi_w,
sizeof(__pyx_k_bc_grad_phi_w), 0, 0, 1, 1},
37931 {&__pyx_n_s_bc_p, __pyx_k_bc_p,
sizeof(__pyx_k_bc_p), 0, 0, 1, 1},
37932 {&__pyx_n_s_bc_psi_c, __pyx_k_bc_psi_c,
sizeof(__pyx_k_bc_psi_c), 0, 0, 1, 1},
37933 {&__pyx_n_s_bc_psi_n, __pyx_k_bc_psi_n,
sizeof(__pyx_k_bc_psi_n), 0, 0, 1, 1},
37934 {&__pyx_n_s_bc_psi_w, __pyx_k_bc_psi_w,
sizeof(__pyx_k_bc_psi_w), 0, 0, 1, 1},
37935 {&__pyx_n_s_bc_psiw, __pyx_k_bc_psiw,
sizeof(__pyx_k_bc_psiw), 0, 0, 1, 1},
37936 {&__pyx_n_s_bc_s_w, __pyx_k_bc_s_w,
sizeof(__pyx_k_bc_s_w), 0, 0, 1, 1},
37937 {&__pyx_n_s_bc_sw, __pyx_k_bc_sw,
sizeof(__pyx_k_bc_sw), 0, 0, 1, 1},
37938 {&__pyx_n_s_bc_u, __pyx_k_bc_u,
sizeof(__pyx_k_bc_u), 0, 0, 1, 1},
37939 {&__pyx_n_s_bc_u_m, __pyx_k_bc_u_m,
sizeof(__pyx_k_bc_u_m), 0, 0, 1, 1},
37940 {&__pyx_n_s_bc_u_w, __pyx_k_bc_u_w,
sizeof(__pyx_k_bc_u_w), 0, 0, 1, 1},
37941 {&__pyx_n_s_bc_v, __pyx_k_bc_v,
sizeof(__pyx_k_bc_v), 0, 0, 1, 1},
37942 {&__pyx_n_s_bc_w, __pyx_k_bc_w,
sizeof(__pyx_k_bc_w), 0, 0, 1, 1},
37943 {&__pyx_n_s_calculateDiffusionMatrixSplittin, __pyx_k_calculateDiffusionMatrixSplittin,
sizeof(__pyx_k_calculateDiffusionMatrixSplittin), 0, 0, 1, 1},
37944 {&__pyx_n_s_calculateExteriorLesaintRaviartN, __pyx_k_calculateExteriorLesaintRaviartN,
sizeof(__pyx_k_calculateExteriorLesaintRaviartN), 0, 0, 1, 1},
37945 {&__pyx_n_s_calculateExteriorNumericalAdvect, __pyx_k_calculateExteriorNumericalAdvect,
sizeof(__pyx_k_calculateExteriorNumericalAdvect), 0, 0, 1, 1},
37946 {&__pyx_n_s_calculateExteriorNumericalAdvect_10, __pyx_k_calculateExteriorNumericalAdvect_10,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_10), 0, 0, 1, 1},
37947 {&__pyx_n_s_calculateExteriorNumericalAdvect_11, __pyx_k_calculateExteriorNumericalAdvect_11,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_11), 0, 0, 1, 1},
37948 {&__pyx_n_s_calculateExteriorNumericalAdvect_12, __pyx_k_calculateExteriorNumericalAdvect_12,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_12), 0, 0, 1, 1},
37949 {&__pyx_n_s_calculateExteriorNumericalAdvect_2, __pyx_k_calculateExteriorNumericalAdvect_2,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_2), 0, 0, 1, 1},
37950 {&__pyx_n_s_calculateExteriorNumericalAdvect_3, __pyx_k_calculateExteriorNumericalAdvect_3,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_3), 0, 0, 1, 1},
37951 {&__pyx_n_s_calculateExteriorNumericalAdvect_4, __pyx_k_calculateExteriorNumericalAdvect_4,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_4), 0, 0, 1, 1},
37952 {&__pyx_n_s_calculateExteriorNumericalAdvect_5, __pyx_k_calculateExteriorNumericalAdvect_5,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_5), 0, 0, 1, 1},
37953 {&__pyx_n_s_calculateExteriorNumericalAdvect_6, __pyx_k_calculateExteriorNumericalAdvect_6,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_6), 0, 0, 1, 1},
37954 {&__pyx_n_s_calculateExteriorNumericalAdvect_7, __pyx_k_calculateExteriorNumericalAdvect_7,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_7), 0, 0, 1, 1},
37955 {&__pyx_n_s_calculateExteriorNumericalAdvect_8, __pyx_k_calculateExteriorNumericalAdvect_8,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_8), 0, 0, 1, 1},
37956 {&__pyx_n_s_calculateExteriorNumericalAdvect_9, __pyx_k_calculateExteriorNumericalAdvect_9,
sizeof(__pyx_k_calculateExteriorNumericalAdvect_9), 0, 0, 1, 1},
37957 {&__pyx_n_s_calculateExteriorNumericalDiffus, __pyx_k_calculateExteriorNumericalDiffus,
sizeof(__pyx_k_calculateExteriorNumericalDiffus), 0, 0, 1, 1},
37958 {&__pyx_n_s_calculateExteriorNumericalDiffus_2, __pyx_k_calculateExteriorNumericalDiffus_2,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_2), 0, 0, 1, 1},
37959 {&__pyx_n_s_calculateExteriorNumericalDiffus_3, __pyx_k_calculateExteriorNumericalDiffus_3,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_3), 0, 0, 1, 1},
37960 {&__pyx_n_s_calculateExteriorNumericalDiffus_4, __pyx_k_calculateExteriorNumericalDiffus_4,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_4), 0, 0, 1, 1},
37961 {&__pyx_n_s_calculateExteriorNumericalDiffus_5, __pyx_k_calculateExteriorNumericalDiffus_5,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_5), 0, 0, 1, 1},
37962 {&__pyx_n_s_calculateExteriorNumericalDiffus_6, __pyx_k_calculateExteriorNumericalDiffus_6,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_6), 0, 0, 1, 1},
37963 {&__pyx_n_s_calculateExteriorNumericalDiffus_7, __pyx_k_calculateExteriorNumericalDiffus_7,
sizeof(__pyx_k_calculateExteriorNumericalDiffus_7), 0, 0, 1, 1},
37964 {&__pyx_n_s_calculateExteriorNumericalFluxJa, __pyx_k_calculateExteriorNumericalFluxJa,
sizeof(__pyx_k_calculateExteriorNumericalFluxJa), 0, 0, 1, 1},
37965 {&__pyx_n_s_calculateExteriorNumericalFluxRi, __pyx_k_calculateExteriorNumericalFluxRi,
sizeof(__pyx_k_calculateExteriorNumericalFluxRi), 0, 0, 1, 1},
37966 {&__pyx_n_s_calculateExteriorNumericalFluxSh, __pyx_k_calculateExteriorNumericalFluxSh,
sizeof(__pyx_k_calculateExteriorNumericalFluxSh), 0, 0, 1, 1},
37967 {&__pyx_n_s_calculateExteriorNumericalFluxSh_2, __pyx_k_calculateExteriorNumericalFluxSh_2,
sizeof(__pyx_k_calculateExteriorNumericalFluxSh_2), 0, 0, 1, 1},
37968 {&__pyx_n_s_calculateExteriorNumericalFluxSh_3, __pyx_k_calculateExteriorNumericalFluxSh_3,
sizeof(__pyx_k_calculateExteriorNumericalFluxSh_3), 0, 0, 1, 1},
37969 {&__pyx_n_s_calculateGlobalExteriorInflowNum, __pyx_k_calculateGlobalExteriorInflowNum,
sizeof(__pyx_k_calculateGlobalExteriorInflowNum), 0, 0, 1, 1},
37970 {&__pyx_n_s_calculateGlobalExteriorLesaintRa, __pyx_k_calculateGlobalExteriorLesaintRa,
sizeof(__pyx_k_calculateGlobalExteriorLesaintRa), 0, 0, 1, 1},
37971 {&__pyx_n_s_calculateGlobalExteriorNumerical, __pyx_k_calculateGlobalExteriorNumerical,
sizeof(__pyx_k_calculateGlobalExteriorNumerical), 0, 0, 1, 1},
37972 {&__pyx_n_s_calculateGlobalExteriorNumerical_10, __pyx_k_calculateGlobalExteriorNumerical_10,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_10), 0, 0, 1, 1},
37973 {&__pyx_n_s_calculateGlobalExteriorNumerical_11, __pyx_k_calculateGlobalExteriorNumerical_11,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_11), 0, 0, 1, 1},
37974 {&__pyx_n_s_calculateGlobalExteriorNumerical_12, __pyx_k_calculateGlobalExteriorNumerical_12,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_12), 0, 0, 1, 1},
37975 {&__pyx_n_s_calculateGlobalExteriorNumerical_13, __pyx_k_calculateGlobalExteriorNumerical_13,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_13), 0, 0, 1, 1},
37976 {&__pyx_n_s_calculateGlobalExteriorNumerical_14, __pyx_k_calculateGlobalExteriorNumerical_14,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_14), 0, 0, 1, 1},
37977 {&__pyx_n_s_calculateGlobalExteriorNumerical_15, __pyx_k_calculateGlobalExteriorNumerical_15,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_15), 0, 0, 1, 1},
37978 {&__pyx_n_s_calculateGlobalExteriorNumerical_16, __pyx_k_calculateGlobalExteriorNumerical_16,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_16), 0, 0, 1, 1},
37979 {&__pyx_n_s_calculateGlobalExteriorNumerical_17, __pyx_k_calculateGlobalExteriorNumerical_17,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_17), 0, 0, 1, 1},
37980 {&__pyx_n_s_calculateGlobalExteriorNumerical_18, __pyx_k_calculateGlobalExteriorNumerical_18,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_18), 0, 0, 1, 1},
37981 {&__pyx_n_s_calculateGlobalExteriorNumerical_19, __pyx_k_calculateGlobalExteriorNumerical_19,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_19), 0, 0, 1, 1},
37982 {&__pyx_n_s_calculateGlobalExteriorNumerical_2, __pyx_k_calculateGlobalExteriorNumerical_2,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_2), 0, 0, 1, 1},
37983 {&__pyx_n_s_calculateGlobalExteriorNumerical_20, __pyx_k_calculateGlobalExteriorNumerical_20,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_20), 0, 0, 1, 1},
37984 {&__pyx_n_s_calculateGlobalExteriorNumerical_21, __pyx_k_calculateGlobalExteriorNumerical_21,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_21), 0, 0, 1, 1},
37985 {&__pyx_n_s_calculateGlobalExteriorNumerical_22, __pyx_k_calculateGlobalExteriorNumerical_22,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_22), 0, 0, 1, 1},
37986 {&__pyx_n_s_calculateGlobalExteriorNumerical_23, __pyx_k_calculateGlobalExteriorNumerical_23,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_23), 0, 0, 1, 1},
37987 {&__pyx_n_s_calculateGlobalExteriorNumerical_24, __pyx_k_calculateGlobalExteriorNumerical_24,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_24), 0, 0, 1, 1},
37988 {&__pyx_n_s_calculateGlobalExteriorNumerical_25, __pyx_k_calculateGlobalExteriorNumerical_25,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_25), 0, 0, 1, 1},
37989 {&__pyx_n_s_calculateGlobalExteriorNumerical_26, __pyx_k_calculateGlobalExteriorNumerical_26,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_26), 0, 0, 1, 1},
37990 {&__pyx_n_s_calculateGlobalExteriorNumerical_27, __pyx_k_calculateGlobalExteriorNumerical_27,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_27), 0, 0, 1, 1},
37991 {&__pyx_n_s_calculateGlobalExteriorNumerical_28, __pyx_k_calculateGlobalExteriorNumerical_28,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_28), 0, 0, 1, 1},
37992 {&__pyx_n_s_calculateGlobalExteriorNumerical_29, __pyx_k_calculateGlobalExteriorNumerical_29,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_29), 0, 0, 1, 1},
37993 {&__pyx_n_s_calculateGlobalExteriorNumerical_3, __pyx_k_calculateGlobalExteriorNumerical_3,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_3), 0, 0, 1, 1},
37994 {&__pyx_n_s_calculateGlobalExteriorNumerical_30, __pyx_k_calculateGlobalExteriorNumerical_30,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_30), 0, 0, 1, 1},
37995 {&__pyx_n_s_calculateGlobalExteriorNumerical_31, __pyx_k_calculateGlobalExteriorNumerical_31,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_31), 0, 0, 1, 1},
37996 {&__pyx_n_s_calculateGlobalExteriorNumerical_32, __pyx_k_calculateGlobalExteriorNumerical_32,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_32), 0, 0, 1, 1},
37997 {&__pyx_n_s_calculateGlobalExteriorNumerical_33, __pyx_k_calculateGlobalExteriorNumerical_33,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_33), 0, 0, 1, 1},
37998 {&__pyx_n_s_calculateGlobalExteriorNumerical_34, __pyx_k_calculateGlobalExteriorNumerical_34,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_34), 0, 0, 1, 1},
37999 {&__pyx_n_s_calculateGlobalExteriorNumerical_4, __pyx_k_calculateGlobalExteriorNumerical_4,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_4), 0, 0, 1, 1},
38000 {&__pyx_n_s_calculateGlobalExteriorNumerical_5, __pyx_k_calculateGlobalExteriorNumerical_5,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_5), 0, 0, 1, 1},
38001 {&__pyx_n_s_calculateGlobalExteriorNumerical_6, __pyx_k_calculateGlobalExteriorNumerical_6,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_6), 0, 0, 1, 1},
38002 {&__pyx_n_s_calculateGlobalExteriorNumerical_7, __pyx_k_calculateGlobalExteriorNumerical_7,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_7), 0, 0, 1, 1},
38003 {&__pyx_n_s_calculateGlobalExteriorNumerical_8, __pyx_k_calculateGlobalExteriorNumerical_8,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_8), 0, 0, 1, 1},
38004 {&__pyx_n_s_calculateGlobalExteriorNumerical_9, __pyx_k_calculateGlobalExteriorNumerical_9,
sizeof(__pyx_k_calculateGlobalExteriorNumerical_9), 0, 0, 1, 1},
38005 {&__pyx_n_s_calculateInteriorChengShuNumeric, __pyx_k_calculateInteriorChengShuNumeric,
sizeof(__pyx_k_calculateInteriorChengShuNumeric), 0, 0, 1, 1},
38006 {&__pyx_n_s_calculateInteriorLesaintRaviartN, __pyx_k_calculateInteriorLesaintRaviartN,
sizeof(__pyx_k_calculateInteriorLesaintRaviartN), 0, 0, 1, 1},
38007 {&__pyx_n_s_calculateInteriorNumericalAdvect, __pyx_k_calculateInteriorNumericalAdvect,
sizeof(__pyx_k_calculateInteriorNumericalAdvect), 0, 0, 1, 1},
38008 {&__pyx_n_s_calculateInteriorNumericalAdvect_2, __pyx_k_calculateInteriorNumericalAdvect_2,
sizeof(__pyx_k_calculateInteriorNumericalAdvect_2), 0, 0, 1, 1},
38009 {&__pyx_n_s_calculateInteriorNumericalAdvect_3, __pyx_k_calculateInteriorNumericalAdvect_3,
sizeof(__pyx_k_calculateInteriorNumericalAdvect_3), 0, 0, 1, 1},
38010 {&__pyx_n_s_calculateInteriorNumericalAdvect_4, __pyx_k_calculateInteriorNumericalAdvect_4,
sizeof(__pyx_k_calculateInteriorNumericalAdvect_4), 0, 0, 1, 1},
38011 {&__pyx_n_s_calculateInteriorNumericalAdvect_5, __pyx_k_calculateInteriorNumericalAdvect_5,
sizeof(__pyx_k_calculateInteriorNumericalAdvect_5), 0, 0, 1, 1},
38012 {&__pyx_n_s_calculateInteriorNumericalDiffus, __pyx_k_calculateInteriorNumericalDiffus,
sizeof(__pyx_k_calculateInteriorNumericalDiffus), 0, 0, 1, 1},
38013 {&__pyx_n_s_calculateInteriorNumericalDiffus_2, __pyx_k_calculateInteriorNumericalDiffus_2,
sizeof(__pyx_k_calculateInteriorNumericalDiffus_2), 0, 0, 1, 1},
38014 {&__pyx_n_s_calculateInteriorNumericalDiffus_3, __pyx_k_calculateInteriorNumericalDiffus_3,
sizeof(__pyx_k_calculateInteriorNumericalDiffus_3), 0, 0, 1, 1},
38015 {&__pyx_n_s_calculateInteriorNumericalDiffus_4, __pyx_k_calculateInteriorNumericalDiffus_4,
sizeof(__pyx_k_calculateInteriorNumericalDiffus_4), 0, 0, 1, 1},
38016 {&__pyx_n_s_calculateInteriorNumericalFluxSh, __pyx_k_calculateInteriorNumericalFluxSh,
sizeof(__pyx_k_calculateInteriorNumericalFluxSh), 0, 0, 1, 1},
38017 {&__pyx_n_s_calculateInteriorNumericalFluxSh_2, __pyx_k_calculateInteriorNumericalFluxSh_2,
sizeof(__pyx_k_calculateInteriorNumericalFluxSh_2), 0, 0, 1, 1},
38018 {&__pyx_n_s_calculateInteriorNumericalFluxSh_3, __pyx_k_calculateInteriorNumericalFluxSh_3,
sizeof(__pyx_k_calculateInteriorNumericalFluxSh_3), 0, 0, 1, 1},
38019 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
38020 {&__pyx_n_s_cnumericalFlux, __pyx_k_cnumericalFlux,
sizeof(__pyx_k_cnumericalFlux), 0, 0, 1, 1},
38021 {&__pyx_n_s_colind, __pyx_k_colind,
sizeof(__pyx_k_colind), 0, 0, 1, 1},
38022 {&__pyx_n_s_colind_mm, __pyx_k_colind_mm,
sizeof(__pyx_k_colind_mm), 0, 0, 1, 1},
38023 {&__pyx_n_s_colind_mw, __pyx_k_colind_mw,
sizeof(__pyx_k_colind_mw), 0, 0, 1, 1},
38024 {&__pyx_n_s_colind_nn, __pyx_k_colind_nn,
sizeof(__pyx_k_colind_nn), 0, 0, 1, 1},
38025 {&__pyx_n_s_colind_wm, __pyx_k_colind_wm,
sizeof(__pyx_k_colind_wm), 0, 0, 1, 1},
38026 {&__pyx_n_s_colind_ww, __pyx_k_colind_ww,
sizeof(__pyx_k_colind_ww), 0, 0, 1, 1},
38027 {&__pyx_n_s_dH, __pyx_k_dH,
sizeof(__pyx_k_dH), 0, 0, 1, 1},
38028 {&__pyx_n_s_dH_element, __pyx_k_dH_element,
sizeof(__pyx_k_dH_element), 0, 0, 1, 1},
38029 {&__pyx_n_s_dK, __pyx_k_dK,
sizeof(__pyx_k_dK), 0, 0, 1, 1},
38030 {&__pyx_n_s_dK_rho_g, __pyx_k_dK_rho_g,
sizeof(__pyx_k_dK_rho_g), 0, 0, 1, 1},
38031 {&__pyx_n_s_da, __pyx_k_da,
sizeof(__pyx_k_da), 0, 0, 1, 1},
38032 {&__pyx_n_s_da_mm_dm, __pyx_k_da_mm_dm,
sizeof(__pyx_k_da_mm_dm), 0, 0, 1, 1},
38033 {&__pyx_n_s_da_mm_dw, __pyx_k_da_mm_dw,
sizeof(__pyx_k_da_mm_dw), 0, 0, 1, 1},
38034 {&__pyx_n_s_da_mw_dm, __pyx_k_da_mw_dm,
sizeof(__pyx_k_da_mw_dm), 0, 0, 1, 1},
38035 {&__pyx_n_s_da_mw_dw, __pyx_k_da_mw_dw,
sizeof(__pyx_k_da_mw_dw), 0, 0, 1, 1},
38036 {&__pyx_n_s_da_nn_dn, __pyx_k_da_nn_dn,
sizeof(__pyx_k_da_nn_dn), 0, 0, 1, 1},
38037 {&__pyx_n_s_da_nn_dw, __pyx_k_da_nn_dw,
sizeof(__pyx_k_da_nn_dw), 0, 0, 1, 1},
38038 {&__pyx_n_s_da_wm_dm, __pyx_k_da_wm_dm,
sizeof(__pyx_k_da_wm_dm), 0, 0, 1, 1},
38039 {&__pyx_n_s_da_wm_dw, __pyx_k_da_wm_dw,
sizeof(__pyx_k_da_wm_dw), 0, 0, 1, 1},
38040 {&__pyx_n_s_da_ww_dn, __pyx_k_da_ww_dn,
sizeof(__pyx_k_da_ww_dn), 0, 0, 1, 1},
38041 {&__pyx_n_s_da_ww_dw, __pyx_k_da_ww_dw,
sizeof(__pyx_k_da_ww_dw), 0, 0, 1, 1},
38042 {&__pyx_n_s_dadvectiveFlux_m_dw, __pyx_k_dadvectiveFlux_m_dw,
sizeof(__pyx_k_dadvectiveFlux_m_dw), 0, 0, 1, 1},
38043 {&__pyx_n_s_df, __pyx_k_df,
sizeof(__pyx_k_df), 0, 0, 1, 1},
38044 {&__pyx_n_s_df_du, __pyx_k_df_du,
sizeof(__pyx_k_df_du), 0, 0, 1, 1},
38045 {&__pyx_n_s_df_dv, __pyx_k_df_dv,
sizeof(__pyx_k_df_dv), 0, 0, 1, 1},
38046 {&__pyx_n_s_df_dw, __pyx_k_df_dw,
sizeof(__pyx_k_df_dw), 0, 0, 1, 1},
38047 {&__pyx_n_s_df_element, __pyx_k_df_element,
sizeof(__pyx_k_df_element), 0, 0, 1, 1},
38048 {&__pyx_n_s_df_m_dw, __pyx_k_df_m_dw,
sizeof(__pyx_k_df_m_dw), 0, 0, 1, 1},
38049 {&__pyx_n_s_df_mass_du, __pyx_k_df_mass_du,
sizeof(__pyx_k_df_mass_du), 0, 0, 1, 1},
38050 {&__pyx_n_s_df_mass_dv, __pyx_k_df_mass_dv,
sizeof(__pyx_k_df_mass_dv), 0, 0, 1, 1},
38051 {&__pyx_n_s_df_mass_dw, __pyx_k_df_mass_dw,
sizeof(__pyx_k_df_mass_dw), 0, 0, 1, 1},
38052 {&__pyx_n_s_df_umom_dp, __pyx_k_df_umom_dp,
sizeof(__pyx_k_df_umom_dp), 0, 0, 1, 1},
38053 {&__pyx_n_s_df_umom_du, __pyx_k_df_umom_du,
sizeof(__pyx_k_df_umom_du), 0, 0, 1, 1},
38054 {&__pyx_n_s_df_umom_dv, __pyx_k_df_umom_dv,
sizeof(__pyx_k_df_umom_dv), 0, 0, 1, 1},
38055 {&__pyx_n_s_df_umom_dw, __pyx_k_df_umom_dw,
sizeof(__pyx_k_df_umom_dw), 0, 0, 1, 1},
38056 {&__pyx_n_s_df_vmom_dp, __pyx_k_df_vmom_dp,
sizeof(__pyx_k_df_vmom_dp), 0, 0, 1, 1},
38057 {&__pyx_n_s_df_vmom_du, __pyx_k_df_vmom_du,
sizeof(__pyx_k_df_vmom_du), 0, 0, 1, 1},
38058 {&__pyx_n_s_df_vmom_dv, __pyx_k_df_vmom_dv,
sizeof(__pyx_k_df_vmom_dv), 0, 0, 1, 1},
38059 {&__pyx_n_s_df_vmom_dw, __pyx_k_df_vmom_dw,
sizeof(__pyx_k_df_vmom_dw), 0, 0, 1, 1},
38060 {&__pyx_n_s_df_wmom_dp, __pyx_k_df_wmom_dp,
sizeof(__pyx_k_df_wmom_dp), 0, 0, 1, 1},
38061 {&__pyx_n_s_df_wmom_du, __pyx_k_df_wmom_du,
sizeof(__pyx_k_df_wmom_du), 0, 0, 1, 1},
38062 {&__pyx_n_s_df_wmom_dv, __pyx_k_df_wmom_dv,
sizeof(__pyx_k_df_wmom_dv), 0, 0, 1, 1},
38063 {&__pyx_n_s_df_wmom_dw, __pyx_k_df_wmom_dw,
sizeof(__pyx_k_df_wmom_dw), 0, 0, 1, 1},
38064 {&__pyx_n_s_dflux, __pyx_k_dflux,
sizeof(__pyx_k_dflux), 0, 0, 1, 1},
38065 {&__pyx_n_s_dflux_du, __pyx_k_dflux_du,
sizeof(__pyx_k_dflux_du), 0, 0, 1, 1},
38066 {&__pyx_n_s_dflux_dv, __pyx_k_dflux_dv,
sizeof(__pyx_k_dflux_dv), 0, 0, 1, 1},
38067 {&__pyx_n_s_dflux_dw, __pyx_k_dflux_dw,
sizeof(__pyx_k_dflux_dw), 0, 0, 1, 1},
38068 {&__pyx_n_s_dflux_left, __pyx_k_dflux_left,
sizeof(__pyx_k_dflux_left), 0, 0, 1, 1},
38069 {&__pyx_n_s_dflux_mass_dp, __pyx_k_dflux_mass_dp,
sizeof(__pyx_k_dflux_mass_dp), 0, 0, 1, 1},
38070 {&__pyx_n_s_dflux_mass_du, __pyx_k_dflux_mass_du,
sizeof(__pyx_k_dflux_mass_du), 0, 0, 1, 1},
38071 {&__pyx_n_s_dflux_mass_dv, __pyx_k_dflux_mass_dv,
sizeof(__pyx_k_dflux_mass_dv), 0, 0, 1, 1},
38072 {&__pyx_n_s_dflux_mass_dw, __pyx_k_dflux_mass_dw,
sizeof(__pyx_k_dflux_mass_dw), 0, 0, 1, 1},
38073 {&__pyx_n_s_dflux_right, __pyx_k_dflux_right,
sizeof(__pyx_k_dflux_right), 0, 0, 1, 1},
38074 {&__pyx_n_s_dflux_umom_dp, __pyx_k_dflux_umom_dp,
sizeof(__pyx_k_dflux_umom_dp), 0, 0, 1, 1},
38075 {&__pyx_n_s_dflux_umom_du, __pyx_k_dflux_umom_du,
sizeof(__pyx_k_dflux_umom_du), 0, 0, 1, 1},
38076 {&__pyx_n_s_dflux_umom_dv, __pyx_k_dflux_umom_dv,
sizeof(__pyx_k_dflux_umom_dv), 0, 0, 1, 1},
38077 {&__pyx_n_s_dflux_umom_dw, __pyx_k_dflux_umom_dw,
sizeof(__pyx_k_dflux_umom_dw), 0, 0, 1, 1},
38078 {&__pyx_n_s_dflux_vmom_dp, __pyx_k_dflux_vmom_dp,
sizeof(__pyx_k_dflux_vmom_dp), 0, 0, 1, 1},
38079 {&__pyx_n_s_dflux_vmom_du, __pyx_k_dflux_vmom_du,
sizeof(__pyx_k_dflux_vmom_du), 0, 0, 1, 1},
38080 {&__pyx_n_s_dflux_vmom_dv, __pyx_k_dflux_vmom_dv,
sizeof(__pyx_k_dflux_vmom_dv), 0, 0, 1, 1},
38081 {&__pyx_n_s_dflux_vmom_dw, __pyx_k_dflux_vmom_dw,
sizeof(__pyx_k_dflux_vmom_dw), 0, 0, 1, 1},
38082 {&__pyx_n_s_dflux_wmom_dp, __pyx_k_dflux_wmom_dp,
sizeof(__pyx_k_dflux_wmom_dp), 0, 0, 1, 1},
38083 {&__pyx_n_s_dflux_wmom_du, __pyx_k_dflux_wmom_du,
sizeof(__pyx_k_dflux_wmom_du), 0, 0, 1, 1},
38084 {&__pyx_n_s_dflux_wmom_dv, __pyx_k_dflux_wmom_dv,
sizeof(__pyx_k_dflux_wmom_dv), 0, 0, 1, 1},
38085 {&__pyx_n_s_dflux_wmom_dw, __pyx_k_dflux_wmom_dw,
sizeof(__pyx_k_dflux_wmom_dw), 0, 0, 1, 1},
38086 {&__pyx_n_s_dfluxn_dpsiw, __pyx_k_dfluxn_dpsiw,
sizeof(__pyx_k_dfluxn_dpsiw), 0, 0, 1, 1},
38087 {&__pyx_n_s_dfluxn_dsw, __pyx_k_dfluxn_dsw,
sizeof(__pyx_k_dfluxn_dsw), 0, 0, 1, 1},
38088 {&__pyx_n_s_dfluxpu_dp, __pyx_k_dfluxpu_dp,
sizeof(__pyx_k_dfluxpu_dp), 0, 0, 1, 1},
38089 {&__pyx_n_s_dfluxpv_dp, __pyx_k_dfluxpv_dp,
sizeof(__pyx_k_dfluxpv_dp), 0, 0, 1, 1},
38090 {&__pyx_n_s_dfluxpw_dp, __pyx_k_dfluxpw_dp,
sizeof(__pyx_k_dfluxpw_dp), 0, 0, 1, 1},
38091 {&__pyx_n_s_dfluxw_dpsiw, __pyx_k_dfluxw_dpsiw,
sizeof(__pyx_k_dfluxw_dpsiw), 0, 0, 1, 1},
38092 {&__pyx_n_s_dfluxw_dsw, __pyx_k_dfluxw_dsw,
sizeof(__pyx_k_dfluxw_dsw), 0, 0, 1, 1},
38093 {&__pyx_n_s_dfn_dpsiw, __pyx_k_dfn_dpsiw,
sizeof(__pyx_k_dfn_dpsiw), 0, 0, 1, 1},
38094 {&__pyx_n_s_dfn_dsw, __pyx_k_dfn_dsw,
sizeof(__pyx_k_dfn_dsw), 0, 0, 1, 1},
38095 {&__pyx_n_s_dfpu_dp, __pyx_k_dfpu_dp,
sizeof(__pyx_k_dfpu_dp), 0, 0, 1, 1},
38096 {&__pyx_n_s_dfpv_dp, __pyx_k_dfpv_dp,
sizeof(__pyx_k_dfpv_dp), 0, 0, 1, 1},
38097 {&__pyx_n_s_dfpw_dp, __pyx_k_dfpw_dp,
sizeof(__pyx_k_dfpw_dp), 0, 0, 1, 1},
38098 {&__pyx_n_s_dfw_dpsiw, __pyx_k_dfw_dpsiw,
sizeof(__pyx_k_dfw_dpsiw), 0, 0, 1, 1},
38099 {&__pyx_n_s_dfw_dsw, __pyx_k_dfw_dsw,
sizeof(__pyx_k_dfw_dsw), 0, 0, 1, 1},
38100 {&__pyx_n_s_diffusiveFlux, __pyx_k_diffusiveFlux,
sizeof(__pyx_k_diffusiveFlux), 0, 0, 1, 1},
38101 {&__pyx_n_s_diffusiveFlux_mm, __pyx_k_diffusiveFlux_mm,
sizeof(__pyx_k_diffusiveFlux_mm), 0, 0, 1, 1},
38102 {&__pyx_n_s_diffusiveFlux_mw, __pyx_k_diffusiveFlux_mw,
sizeof(__pyx_k_diffusiveFlux_mw), 0, 0, 1, 1},
38103 {&__pyx_n_s_diffusiveFlux_nn, __pyx_k_diffusiveFlux_nn,
sizeof(__pyx_k_diffusiveFlux_nn), 0, 0, 1, 1},
38104 {&__pyx_n_s_diffusiveFlux_wm, __pyx_k_diffusiveFlux_wm,
sizeof(__pyx_k_diffusiveFlux_wm), 0, 0, 1, 1},
38105 {&__pyx_n_s_diffusiveFlux_ww, __pyx_k_diffusiveFlux_ww,
sizeof(__pyx_k_diffusiveFlux_ww), 0, 0, 1, 1},
38106 {&__pyx_n_s_dim, __pyx_k_dim,
sizeof(__pyx_k_dim), 0, 0, 1, 1},
38107 {&__pyx_n_s_dm_umom, __pyx_k_dm_umom,
sizeof(__pyx_k_dm_umom), 0, 0, 1, 1},
38108 {&__pyx_n_s_dphi, __pyx_k_dphi,
sizeof(__pyx_k_dphi), 0, 0, 1, 1},
38109 {&__pyx_n_s_dphi_m_m, __pyx_k_dphi_m_m,
sizeof(__pyx_k_dphi_m_m), 0, 0, 1, 1},
38110 {&__pyx_n_s_dphi_m_w, __pyx_k_dphi_m_w,
sizeof(__pyx_k_dphi_m_w), 0, 0, 1, 1},
38111 {&__pyx_n_s_dphi_n_n, __pyx_k_dphi_n_n,
sizeof(__pyx_k_dphi_n_n), 0, 0, 1, 1},
38112 {&__pyx_n_s_dphi_n_w, __pyx_k_dphi_n_w,
sizeof(__pyx_k_dphi_n_w), 0, 0, 1, 1},
38113 {&__pyx_n_s_dphi_w_m, __pyx_k_dphi_w_m,
sizeof(__pyx_k_dphi_w_m), 0, 0, 1, 1},
38114 {&__pyx_n_s_dphi_w_n, __pyx_k_dphi_w_n,
sizeof(__pyx_k_dphi_w_n), 0, 0, 1, 1},
38115 {&__pyx_n_s_dphi_w_w, __pyx_k_dphi_w_w,
sizeof(__pyx_k_dphi_w_w), 0, 0, 1, 1},
38116 {&__pyx_n_s_dpsi_n_dpsic, __pyx_k_dpsi_n_dpsic,
sizeof(__pyx_k_dpsi_n_dpsic), 0, 0, 1, 1},
38117 {&__pyx_n_s_dpsi_n_dpsiw, __pyx_k_dpsi_n_dpsiw,
sizeof(__pyx_k_dpsi_n_dpsiw), 0, 0, 1, 1},
38118 {&__pyx_n_s_dpsi_n_dsw, __pyx_k_dpsi_n_dsw,
sizeof(__pyx_k_dpsi_n_dsw), 0, 0, 1, 1},
38119 {&__pyx_n_s_dstress_u_u, __pyx_k_dstress_u_u,
sizeof(__pyx_k_dstress_u_u), 0, 0, 1, 1},
38120 {&__pyx_n_s_dstress_u_v, __pyx_k_dstress_u_v,
sizeof(__pyx_k_dstress_u_v), 0, 0, 1, 1},
38121 {&__pyx_n_s_dstress_u_w, __pyx_k_dstress_u_w,
sizeof(__pyx_k_dstress_u_w), 0, 0, 1, 1},
38122 {&__pyx_n_s_dstress_v_u, __pyx_k_dstress_v_u,
sizeof(__pyx_k_dstress_v_u), 0, 0, 1, 1},
38123 {&__pyx_n_s_dstress_v_v, __pyx_k_dstress_v_v,
sizeof(__pyx_k_dstress_v_v), 0, 0, 1, 1},
38124 {&__pyx_n_s_dstress_v_w, __pyx_k_dstress_v_w,
sizeof(__pyx_k_dstress_v_w), 0, 0, 1, 1},
38125 {&__pyx_n_s_dstress_w_u, __pyx_k_dstress_w_u,
sizeof(__pyx_k_dstress_w_u), 0, 0, 1, 1},
38126 {&__pyx_n_s_dstress_w_v, __pyx_k_dstress_w_v,
sizeof(__pyx_k_dstress_w_v), 0, 0, 1, 1},
38127 {&__pyx_n_s_dstress_w_w, __pyx_k_dstress_w_w,
sizeof(__pyx_k_dstress_w_w), 0, 0, 1, 1},
38128 {&__pyx_n_s_eb_aHat, __pyx_k_eb_aHat,
sizeof(__pyx_k_eb_aHat), 0, 0, 1, 1},
38129 {&__pyx_n_s_eb_aTilde, __pyx_k_eb_aTilde,
sizeof(__pyx_k_eb_aTilde), 0, 0, 1, 1},
38130 {&__pyx_n_s_ebq_a, __pyx_k_ebq_a,
sizeof(__pyx_k_ebq_a), 0, 0, 1, 1},
38131 {&__pyx_n_s_elementBoundaryElements, __pyx_k_elementBoundaryElements,
sizeof(__pyx_k_elementBoundaryElements), 0, 0, 1, 1},
38132 {&__pyx_n_s_elementBoundaryLocalElementBound, __pyx_k_elementBoundaryLocalElementBound,
sizeof(__pyx_k_elementBoundaryLocalElementBound), 0, 0, 1, 1},
38133 {&__pyx_n_s_elementDiameters, __pyx_k_elementDiameters,
sizeof(__pyx_k_elementDiameters), 0, 0, 1, 1},
38134 {&__pyx_n_s_epsFact, __pyx_k_epsFact,
sizeof(__pyx_k_epsFact), 0, 0, 1, 1},
38135 {&__pyx_n_s_exit, __pyx_k_exit,
sizeof(__pyx_k_exit), 0, 0, 1, 1},
38136 {&__pyx_n_s_exteriorElementBoundaries, __pyx_k_exteriorElementBoundaries,
sizeof(__pyx_k_exteriorElementBoundaries), 0, 0, 1, 1},
38137 {&__pyx_n_s_f, __pyx_k_f,
sizeof(__pyx_k_f), 0, 0, 1, 1},
38138 {&__pyx_n_s_f_m, __pyx_k_f_m,
sizeof(__pyx_k_f_m), 0, 0, 1, 1},
38139 {&__pyx_n_s_f_mass, __pyx_k_f_mass,
sizeof(__pyx_k_f_mass), 0, 0, 1, 1},
38140 {&__pyx_n_s_f_umom, __pyx_k_f_umom,
sizeof(__pyx_k_f_umom), 0, 0, 1, 1},
38141 {&__pyx_n_s_f_vmom, __pyx_k_f_vmom,
sizeof(__pyx_k_f_vmom), 0, 0, 1, 1},
38142 {&__pyx_n_s_f_wmom, __pyx_k_f_wmom,
sizeof(__pyx_k_f_wmom), 0, 0, 1, 1},
38143 {&__pyx_n_s_flux, __pyx_k_flux,
sizeof(__pyx_k_flux), 0, 0, 1, 1},
38144 {&__pyx_n_s_fluxBoundaryFlag, __pyx_k_fluxBoundaryFlag,
sizeof(__pyx_k_fluxBoundaryFlag), 0, 0, 1, 1},
38145 {&__pyx_n_s_fluxBoundaryFlag_un, __pyx_k_fluxBoundaryFlag_un,
sizeof(__pyx_k_fluxBoundaryFlag_un), 0, 0, 1, 1},
38146 {&__pyx_n_s_fluxBoundaryFlag_uw, __pyx_k_fluxBoundaryFlag_uw,
sizeof(__pyx_k_fluxBoundaryFlag_uw), 0, 0, 1, 1},
38147 {&__pyx_n_s_fluxJacobian, __pyx_k_fluxJacobian,
sizeof(__pyx_k_fluxJacobian), 0, 0, 1, 1},
38148 {&__pyx_n_s_fluxJacobian_2sided, __pyx_k_fluxJacobian_2sided,
sizeof(__pyx_k_fluxJacobian_2sided), 0, 0, 1, 1},
38149 {&__pyx_n_s_fluxJacobian_eb, __pyx_k_fluxJacobian_eb,
sizeof(__pyx_k_fluxJacobian_eb), 0, 0, 1, 1},
38150 {&__pyx_n_s_fluxJacobian_exterior, __pyx_k_fluxJacobian_exterior,
sizeof(__pyx_k_fluxJacobian_exterior), 0, 0, 1, 1},
38151 {&__pyx_n_s_fluxJacobian_mm, __pyx_k_fluxJacobian_mm,
sizeof(__pyx_k_fluxJacobian_mm), 0, 0, 1, 1},
38152 {&__pyx_n_s_fluxJacobian_mw, __pyx_k_fluxJacobian_mw,
sizeof(__pyx_k_fluxJacobian_mw), 0, 0, 1, 1},
38153 {&__pyx_n_s_fluxJacobian_nn, __pyx_k_fluxJacobian_nn,
sizeof(__pyx_k_fluxJacobian_nn), 0, 0, 1, 1},
38154 {&__pyx_n_s_fluxJacobian_nw, __pyx_k_fluxJacobian_nw,
sizeof(__pyx_k_fluxJacobian_nw), 0, 0, 1, 1},
38155 {&__pyx_n_s_fluxJacobian_u_u, __pyx_k_fluxJacobian_u_u,
sizeof(__pyx_k_fluxJacobian_u_u), 0, 0, 1, 1},
38156 {&__pyx_n_s_fluxJacobian_u_v, __pyx_k_fluxJacobian_u_v,
sizeof(__pyx_k_fluxJacobian_u_v), 0, 0, 1, 1},
38157 {&__pyx_n_s_fluxJacobian_u_w, __pyx_k_fluxJacobian_u_w,
sizeof(__pyx_k_fluxJacobian_u_w), 0, 0, 1, 1},
38158 {&__pyx_n_s_fluxJacobian_v_u, __pyx_k_fluxJacobian_v_u,
sizeof(__pyx_k_fluxJacobian_v_u), 0, 0, 1, 1},
38159 {&__pyx_n_s_fluxJacobian_v_v, __pyx_k_fluxJacobian_v_v,
sizeof(__pyx_k_fluxJacobian_v_v), 0, 0, 1, 1},
38160 {&__pyx_n_s_fluxJacobian_v_w, __pyx_k_fluxJacobian_v_w,
sizeof(__pyx_k_fluxJacobian_v_w), 0, 0, 1, 1},
38161 {&__pyx_n_s_fluxJacobian_w_u, __pyx_k_fluxJacobian_w_u,
sizeof(__pyx_k_fluxJacobian_w_u), 0, 0, 1, 1},
38162 {&__pyx_n_s_fluxJacobian_w_v, __pyx_k_fluxJacobian_w_v,
sizeof(__pyx_k_fluxJacobian_w_v), 0, 0, 1, 1},
38163 {&__pyx_n_s_fluxJacobian_w_w, __pyx_k_fluxJacobian_w_w,
sizeof(__pyx_k_fluxJacobian_w_w), 0, 0, 1, 1},
38164 {&__pyx_n_s_fluxJacobian_wm, __pyx_k_fluxJacobian_wm,
sizeof(__pyx_k_fluxJacobian_wm), 0, 0, 1, 1},
38165 {&__pyx_n_s_fluxJacobian_wn, __pyx_k_fluxJacobian_wn,
sizeof(__pyx_k_fluxJacobian_wn), 0, 0, 1, 1},
38166 {&__pyx_n_s_fluxJacobian_ww, __pyx_k_fluxJacobian_ww,
sizeof(__pyx_k_fluxJacobian_ww), 0, 0, 1, 1},
38167 {&__pyx_n_s_flux_h, __pyx_k_flux_h,
sizeof(__pyx_k_flux_h), 0, 0, 1, 1},
38168 {&__pyx_n_s_flux_hu, __pyx_k_flux_hu,
sizeof(__pyx_k_flux_hu), 0, 0, 1, 1},
38169 {&__pyx_n_s_flux_hv, __pyx_k_flux_hv,
sizeof(__pyx_k_flux_hv), 0, 0, 1, 1},
38170 {&__pyx_n_s_flux_mass, __pyx_k_flux_mass,
sizeof(__pyx_k_flux_mass), 0, 0, 1, 1},
38171 {&__pyx_n_s_flux_umom, __pyx_k_flux_umom,
sizeof(__pyx_k_flux_umom), 0, 0, 1, 1},
38172 {&__pyx_n_s_flux_vmom, __pyx_k_flux_vmom,
sizeof(__pyx_k_flux_vmom), 0, 0, 1, 1},
38173 {&__pyx_n_s_flux_wmom, __pyx_k_flux_wmom,
sizeof(__pyx_k_flux_wmom), 0, 0, 1, 1},
38174 {&__pyx_n_s_fluxn, __pyx_k_fluxn,
sizeof(__pyx_k_fluxn), 0, 0, 1, 1},
38175 {&__pyx_n_s_fluxpu, __pyx_k_fluxpu,
sizeof(__pyx_k_fluxpu), 0, 0, 1, 1},
38176 {&__pyx_n_s_fluxpv, __pyx_k_fluxpv,
sizeof(__pyx_k_fluxpv), 0, 0, 1, 1},
38177 {&__pyx_n_s_fluxpw, __pyx_k_fluxpw,
sizeof(__pyx_k_fluxpw), 0, 0, 1, 1},
38178 {&__pyx_n_s_fluxw, __pyx_k_fluxw,
sizeof(__pyx_k_fluxw), 0, 0, 1, 1},
38179 {&__pyx_n_s_fn, __pyx_k_fn,
sizeof(__pyx_k_fn), 0, 0, 1, 1},
38180 {&__pyx_n_s_fpu, __pyx_k_fpu,
sizeof(__pyx_k_fpu), 0, 0, 1, 1},
38181 {&__pyx_n_s_fpv, __pyx_k_fpv,
sizeof(__pyx_k_fpv), 0, 0, 1, 1},
38182 {&__pyx_n_s_fpw, __pyx_k_fpw,
sizeof(__pyx_k_fpw), 0, 0, 1, 1},
38183 {&__pyx_n_s_fw, __pyx_k_fw,
sizeof(__pyx_k_fw), 0, 0, 1, 1},
38184 {&__pyx_n_s_g, __pyx_k_g,
sizeof(__pyx_k_g), 0, 0, 1, 1},
38185 {&__pyx_n_s_grad_phi, __pyx_k_grad_phi,
sizeof(__pyx_k_grad_phi), 0, 0, 1, 1},
38186 {&__pyx_n_s_grad_phi_m, __pyx_k_grad_phi_m,
sizeof(__pyx_k_grad_phi_m), 0, 0, 1, 1},
38187 {&__pyx_n_s_grad_phi_n, __pyx_k_grad_phi_n,
sizeof(__pyx_k_grad_phi_n), 0, 0, 1, 1},
38188 {&__pyx_n_s_grad_phi_w, __pyx_k_grad_phi_w,
sizeof(__pyx_k_grad_phi_w), 0, 0, 1, 1},
38189 {&__pyx_n_s_grad_psi, __pyx_k_grad_psi,
sizeof(__pyx_k_grad_psi), 0, 0, 1, 1},
38190 {&__pyx_n_s_grad_u, __pyx_k_grad_u,
sizeof(__pyx_k_grad_u), 0, 0, 1, 1},
38191 {&__pyx_n_s_grad_v, __pyx_k_grad_v,
sizeof(__pyx_k_grad_v), 0, 0, 1, 1},
38192 {&__pyx_n_s_h, __pyx_k_h,
sizeof(__pyx_k_h), 0, 0, 1, 1},
38193 {&__pyx_n_s_h_eps, __pyx_k_h_eps,
sizeof(__pyx_k_h_eps), 0, 0, 1, 1},
38194 {&__pyx_n_s_h_lq, __pyx_k_h_lq,
sizeof(__pyx_k_h_lq), 0, 0, 1, 1},
38195 {&__pyx_n_s_h_lv, __pyx_k_h_lv,
sizeof(__pyx_k_h_lv), 0, 0, 1, 1},
38196 {&__pyx_n_s_h_rq, __pyx_k_h_rq,
sizeof(__pyx_k_h_rq), 0, 0, 1, 1},
38197 {&__pyx_n_s_h_rv, __pyx_k_h_rv,
sizeof(__pyx_k_h_rv), 0, 0, 1, 1},
38198 {&__pyx_n_s_hu, __pyx_k_hu,
sizeof(__pyx_k_hu), 0, 0, 1, 1},
38199 {&__pyx_n_s_hu_lq, __pyx_k_hu_lq,
sizeof(__pyx_k_hu_lq), 0, 0, 1, 1},
38200 {&__pyx_n_s_hu_lv, __pyx_k_hu_lv,
sizeof(__pyx_k_hu_lv), 0, 0, 1, 1},
38201 {&__pyx_n_s_hu_rq, __pyx_k_hu_rq,
sizeof(__pyx_k_hu_rq), 0, 0, 1, 1},
38202 {&__pyx_n_s_hu_rv, __pyx_k_hu_rv,
sizeof(__pyx_k_hu_rv), 0, 0, 1, 1},
38203 {&__pyx_n_s_hv, __pyx_k_hv,
sizeof(__pyx_k_hv), 0, 0, 1, 1},
38204 {&__pyx_n_s_hv_lq, __pyx_k_hv_lq,
sizeof(__pyx_k_hv_lq), 0, 0, 1, 1},
38205 {&__pyx_n_s_hv_rq, __pyx_k_hv_rq,
sizeof(__pyx_k_hv_rq), 0, 0, 1, 1},
38206 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
38207 {&__pyx_n_s_inflowFlag, __pyx_k_inflowFlag,
sizeof(__pyx_k_inflowFlag), 0, 0, 1, 1},
38208 {&__pyx_n_s_inflowFlux, __pyx_k_inflowFlux,
sizeof(__pyx_k_inflowFlux), 0, 0, 1, 1},
38209 {&__pyx_n_s_interiorElementBoundaries, __pyx_k_interiorElementBoundaries,
sizeof(__pyx_k_interiorElementBoundaries), 0, 0, 1, 1},
38210 {&__pyx_n_s_isDOFBoundary, __pyx_k_isDOFBoundary,
sizeof(__pyx_k_isDOFBoundary), 0, 0, 1, 1},
38211 {&__pyx_n_s_isDOFBoundary_p, __pyx_k_isDOFBoundary_p,
sizeof(__pyx_k_isDOFBoundary_p), 0, 0, 1, 1},
38212 {&__pyx_n_s_isDOFBoundary_psiw, __pyx_k_isDOFBoundary_psiw,
sizeof(__pyx_k_isDOFBoundary_psiw), 0, 0, 1, 1},
38213 {&__pyx_n_s_isDOFBoundary_sw, __pyx_k_isDOFBoundary_sw,
sizeof(__pyx_k_isDOFBoundary_sw), 0, 0, 1, 1},
38214 {&__pyx_n_s_isDOFBoundary_u, __pyx_k_isDOFBoundary_u,
sizeof(__pyx_k_isDOFBoundary_u), 0, 0, 1, 1},
38215 {&__pyx_n_s_isDOFBoundary_um, __pyx_k_isDOFBoundary_um,
sizeof(__pyx_k_isDOFBoundary_um), 0, 0, 1, 1},
38216 {&__pyx_n_s_isDOFBoundary_un, __pyx_k_isDOFBoundary_un,
sizeof(__pyx_k_isDOFBoundary_un), 0, 0, 1, 1},
38217 {&__pyx_n_s_isDOFBoundary_uw, __pyx_k_isDOFBoundary_uw,
sizeof(__pyx_k_isDOFBoundary_uw), 0, 0, 1, 1},
38218 {&__pyx_n_s_isDOFBoundary_v, __pyx_k_isDOFBoundary_v,
sizeof(__pyx_k_isDOFBoundary_v), 0, 0, 1, 1},
38219 {&__pyx_n_s_isDOFBoundary_w, __pyx_k_isDOFBoundary_w,
sizeof(__pyx_k_isDOFBoundary_w), 0, 0, 1, 1},
38220 {&__pyx_n_s_isDiffusiveFluxBoundary, __pyx_k_isDiffusiveFluxBoundary,
sizeof(__pyx_k_isDiffusiveFluxBoundary), 0, 0, 1, 1},
38221 {&__pyx_n_s_isSeepageFace, __pyx_k_isSeepageFace,
sizeof(__pyx_k_isSeepageFace), 0, 0, 1, 1},
38222 {&__pyx_n_s_isStressBoundary_u, __pyx_k_isStressBoundary_u,
sizeof(__pyx_k_isStressBoundary_u), 0, 0, 1, 1},
38223 {&__pyx_n_s_isStressBoundary_v, __pyx_k_isStressBoundary_v,
sizeof(__pyx_k_isStressBoundary_v), 0, 0, 1, 1},
38224 {&__pyx_n_s_isStressBoundary_w, __pyx_k_isStressBoundary_w,
sizeof(__pyx_k_isStressBoundary_w), 0, 0, 1, 1},
38225 {&__pyx_n_s_l2g, __pyx_k_l2g,
sizeof(__pyx_k_l2g), 0, 0, 1, 1},
38226 {&__pyx_n_s_lambda_bar, __pyx_k_lambda_bar,
sizeof(__pyx_k_lambda_bar), 0, 0, 1, 1},
38227 {&__pyx_n_s_lambda_bar_element, __pyx_k_lambda_bar_element,
sizeof(__pyx_k_lambda_bar_element), 0, 0, 1, 1},
38228 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
38229 {&__pyx_n_s_n, __pyx_k_n,
sizeof(__pyx_k_n), 0, 0, 1, 1},
38230 {&__pyx_n_s_nDOF_trial_element, __pyx_k_nDOF_trial_element,
sizeof(__pyx_k_nDOF_trial_element), 0, 0, 1, 1},
38231 {&__pyx_n_s_nElementBoundaries_element, __pyx_k_nElementBoundaries_element,
sizeof(__pyx_k_nElementBoundaries_element), 0, 0, 1, 1},
38232 {&__pyx_n_s_nExteriorElementBoundaries_globa, __pyx_k_nExteriorElementBoundaries_globa,
sizeof(__pyx_k_nExteriorElementBoundaries_globa), 0, 0, 1, 1},
38233 {&__pyx_n_s_nQuadraturePoints_element, __pyx_k_nQuadraturePoints_element,
sizeof(__pyx_k_nQuadraturePoints_element), 0, 0, 1, 1},
38234 {&__pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_k_nQuadraturePoints_elementBoundar,
sizeof(__pyx_k_nQuadraturePoints_elementBoundar), 0, 0, 1, 1},
38235 {&__pyx_n_s_nSpace, __pyx_k_nSpace,
sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
38236 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
38237 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
38238 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
38239 {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to,
sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0},
38240 {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor,
sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0},
38241 {&__pyx_n_s_oneByRho, __pyx_k_oneByRho,
sizeof(__pyx_k_oneByRho), 0, 0, 1, 1},
38242 {&__pyx_n_s_p, __pyx_k_p,
sizeof(__pyx_k_p), 0, 0, 1, 1},
38243 {&__pyx_n_s_penalty, __pyx_k_penalty,
sizeof(__pyx_k_penalty), 0, 0, 1, 1},
38244 {&__pyx_n_s_penalty_floor, __pyx_k_penalty_floor,
sizeof(__pyx_k_penalty_floor), 0, 0, 1, 1},
38245 {&__pyx_n_s_penalty_m, __pyx_k_penalty_m,
sizeof(__pyx_k_penalty_m), 0, 0, 1, 1},
38246 {&__pyx_n_s_penalty_n, __pyx_k_penalty_n,
sizeof(__pyx_k_penalty_n), 0, 0, 1, 1},
38247 {&__pyx_n_s_penalty_w, __pyx_k_penalty_w,
sizeof(__pyx_k_penalty_w), 0, 0, 1, 1},
38248 {&__pyx_n_s_phi, __pyx_k_phi,
sizeof(__pyx_k_phi), 0, 0, 1, 1},
38249 {&__pyx_n_s_phi_bc, __pyx_k_phi_bc,
sizeof(__pyx_k_phi_bc), 0, 0, 1, 1},
38250 {&__pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_k_proteus_cnumericalFlux_pyx,
sizeof(__pyx_k_proteus_cnumericalFlux_pyx), 0, 0, 1, 0},
38251 {&__pyx_n_s_psi_c, __pyx_k_psi_c,
sizeof(__pyx_k_psi_c), 0, 0, 1, 1},
38252 {&__pyx_n_s_psi_n, __pyx_k_psi_n,
sizeof(__pyx_k_psi_n), 0, 0, 1, 1},
38253 {&__pyx_n_s_psi_w, __pyx_k_psi_w,
sizeof(__pyx_k_psi_w), 0, 0, 1, 1},
38254 {&__pyx_n_s_psiw, __pyx_k_psiw,
sizeof(__pyx_k_psiw), 0, 0, 1, 1},
38255 {&__pyx_n_s_q_a, __pyx_k_q_a,
sizeof(__pyx_k_q_a), 0, 0, 1, 1},
38256 {&__pyx_n_s_rowptr, __pyx_k_rowptr,
sizeof(__pyx_k_rowptr), 0, 0, 1, 1},
38257 {&__pyx_n_s_rowptr_mm, __pyx_k_rowptr_mm,
sizeof(__pyx_k_rowptr_mm), 0, 0, 1, 1},
38258 {&__pyx_n_s_rowptr_mw, __pyx_k_rowptr_mw,
sizeof(__pyx_k_rowptr_mw), 0, 0, 1, 1},
38259 {&__pyx_n_s_rowptr_nn, __pyx_k_rowptr_nn,
sizeof(__pyx_k_rowptr_nn), 0, 0, 1, 1},
38260 {&__pyx_n_s_rowptr_wm, __pyx_k_rowptr_wm,
sizeof(__pyx_k_rowptr_wm), 0, 0, 1, 1},
38261 {&__pyx_n_s_rowptr_ww, __pyx_k_rowptr_ww,
sizeof(__pyx_k_rowptr_ww), 0, 0, 1, 1},
38262 {&__pyx_n_s_s_w, __pyx_k_s_w,
sizeof(__pyx_k_s_w), 0, 0, 1, 1},
38263 {&__pyx_n_s_safetyFactor, __pyx_k_safetyFactor,
sizeof(__pyx_k_safetyFactor), 0, 0, 1, 1},
38264 {&__pyx_n_s_sahpe, __pyx_k_sahpe,
sizeof(__pyx_k_sahpe), 0, 0, 1, 1},
38265 {&__pyx_n_s_sape, __pyx_k_sape,
sizeof(__pyx_k_sape), 0, 0, 1, 1},
38266 {&__pyx_n_s_scale_penalty, __pyx_k_scale_penalty,
sizeof(__pyx_k_scale_penalty), 0, 0, 1, 1},
38267 {&__pyx_n_s_setInflowFlux, __pyx_k_setInflowFlux,
sizeof(__pyx_k_setInflowFlux), 0, 0, 1, 1},
38268 {&__pyx_n_s_sigma, __pyx_k_sigma,
sizeof(__pyx_k_sigma), 0, 0, 1, 1},
38269 {&__pyx_n_s_sonicFlux, __pyx_k_sonicFlux,
sizeof(__pyx_k_sonicFlux), 0, 0, 1, 1},
38270 {&__pyx_n_s_sonicPoint, __pyx_k_sonicPoint,
sizeof(__pyx_k_sonicPoint), 0, 0, 1, 1},
38271 {&__pyx_n_s_speedEvalFlag, __pyx_k_speedEvalFlag,
sizeof(__pyx_k_speedEvalFlag), 0, 0, 1, 1},
38272 {&__pyx_n_s_stressFlux_u, __pyx_k_stressFlux_u,
sizeof(__pyx_k_stressFlux_u), 0, 0, 1, 1},
38273 {&__pyx_n_s_stressFlux_v, __pyx_k_stressFlux_v,
sizeof(__pyx_k_stressFlux_v), 0, 0, 1, 1},
38274 {&__pyx_n_s_stressFlux_w, __pyx_k_stressFlux_w,
sizeof(__pyx_k_stressFlux_w), 0, 0, 1, 1},
38275 {&__pyx_n_s_sw, __pyx_k_sw,
sizeof(__pyx_k_sw), 0, 0, 1, 1},
38276 {&__pyx_n_s_sys, __pyx_k_sys,
sizeof(__pyx_k_sys), 0, 0, 1, 1},
38277 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
38278 {&__pyx_n_s_tol_u, __pyx_k_tol_u,
sizeof(__pyx_k_tol_u), 0, 0, 1, 1},
38279 {&__pyx_n_s_u, __pyx_k_u,
sizeof(__pyx_k_u), 0, 0, 1, 1},
38280 {&__pyx_n_s_u_m, __pyx_k_u_m,
sizeof(__pyx_k_u_m), 0, 0, 1, 1},
38281 {&__pyx_n_s_u_w, __pyx_k_u_w,
sizeof(__pyx_k_u_w), 0, 0, 1, 1},
38282 {&__pyx_n_s_updateExteriorNumericalAdvective, __pyx_k_updateExteriorNumericalAdvective,
sizeof(__pyx_k_updateExteriorNumericalAdvective), 0, 0, 1, 1},
38283 {&__pyx_n_s_updateExteriorNumericalAdvective_2, __pyx_k_updateExteriorNumericalAdvective_2,
sizeof(__pyx_k_updateExteriorNumericalAdvective_2), 0, 0, 1, 1},
38284 {&__pyx_n_s_updateExteriorNumericalDiffusive, __pyx_k_updateExteriorNumericalDiffusive,
sizeof(__pyx_k_updateExteriorNumericalDiffusive), 0, 0, 1, 1},
38285 {&__pyx_n_s_updateExteriorNumericalDiffusive_2, __pyx_k_updateExteriorNumericalDiffusive_2,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_2), 0, 0, 1, 1},
38286 {&__pyx_n_s_updateExteriorNumericalDiffusive_3, __pyx_k_updateExteriorNumericalDiffusive_3,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_3), 0, 0, 1, 1},
38287 {&__pyx_n_s_updateExteriorNumericalDiffusive_4, __pyx_k_updateExteriorNumericalDiffusive_4,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_4), 0, 0, 1, 1},
38288 {&__pyx_n_s_updateExteriorNumericalDiffusive_5, __pyx_k_updateExteriorNumericalDiffusive_5,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_5), 0, 0, 1, 1},
38289 {&__pyx_n_s_updateExteriorNumericalDiffusive_6, __pyx_k_updateExteriorNumericalDiffusive_6,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_6), 0, 0, 1, 1},
38290 {&__pyx_n_s_updateExteriorNumericalDiffusive_7, __pyx_k_updateExteriorNumericalDiffusive_7,
sizeof(__pyx_k_updateExteriorNumericalDiffusive_7), 0, 0, 1, 1},
38291 {&__pyx_n_s_updateExteriorNumericalStressFlu, __pyx_k_updateExteriorNumericalStressFlu,
sizeof(__pyx_k_updateExteriorNumericalStressFlu), 0, 0, 1, 1},
38292 {&__pyx_n_s_updateGlobalExteriorNumericalAdv, __pyx_k_updateGlobalExteriorNumericalAdv,
sizeof(__pyx_k_updateGlobalExteriorNumericalAdv), 0, 0, 1, 1},
38293 {&__pyx_n_s_updateGlobalExteriorNumericalAdv_2, __pyx_k_updateGlobalExteriorNumericalAdv_2,
sizeof(__pyx_k_updateGlobalExteriorNumericalAdv_2), 0, 0, 1, 1},
38294 {&__pyx_n_s_updateGlobalExteriorNumericalDif, __pyx_k_updateGlobalExteriorNumericalDif,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif), 0, 0, 1, 1},
38295 {&__pyx_n_s_updateGlobalExteriorNumericalDif_2, __pyx_k_updateGlobalExteriorNumericalDif_2,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_2), 0, 0, 1, 1},
38296 {&__pyx_n_s_updateGlobalExteriorNumericalDif_3, __pyx_k_updateGlobalExteriorNumericalDif_3,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_3), 0, 0, 1, 1},
38297 {&__pyx_n_s_updateGlobalExteriorNumericalDif_4, __pyx_k_updateGlobalExteriorNumericalDif_4,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_4), 0, 0, 1, 1},
38298 {&__pyx_n_s_updateGlobalExteriorNumericalDif_5, __pyx_k_updateGlobalExteriorNumericalDif_5,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_5), 0, 0, 1, 1},
38299 {&__pyx_n_s_updateGlobalExteriorNumericalDif_6, __pyx_k_updateGlobalExteriorNumericalDif_6,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_6), 0, 0, 1, 1},
38300 {&__pyx_n_s_updateGlobalExteriorNumericalDif_7, __pyx_k_updateGlobalExteriorNumericalDif_7,
sizeof(__pyx_k_updateGlobalExteriorNumericalDif_7), 0, 0, 1, 1},
38301 {&__pyx_n_s_updateInteriorNumericalAdvective, __pyx_k_updateInteriorNumericalAdvective,
sizeof(__pyx_k_updateInteriorNumericalAdvective), 0, 0, 1, 1},
38302 {&__pyx_n_s_updateInteriorNumericalDiffusive, __pyx_k_updateInteriorNumericalDiffusive,
sizeof(__pyx_k_updateInteriorNumericalDiffusive), 0, 0, 1, 1},
38303 {&__pyx_n_s_updateInteriorNumericalDiffusive_2, __pyx_k_updateInteriorNumericalDiffusive_2,
sizeof(__pyx_k_updateInteriorNumericalDiffusive_2), 0, 0, 1, 1},
38304 {&__pyx_n_s_updateInteriorNumericalDiffusive_3, __pyx_k_updateInteriorNumericalDiffusive_3,
sizeof(__pyx_k_updateInteriorNumericalDiffusive_3), 0, 0, 1, 1},
38305 {&__pyx_n_s_updateInteriorNumericalDiffusive_4, __pyx_k_updateInteriorNumericalDiffusive_4,
sizeof(__pyx_k_updateInteriorNumericalDiffusive_4), 0, 0, 1, 1},
38306 {&__pyx_n_s_updateInteriorTwoSidedNumericalF, __pyx_k_updateInteriorTwoSidedNumericalF,
sizeof(__pyx_k_updateInteriorTwoSidedNumericalF), 0, 0, 1, 1},
38307 {&__pyx_n_s_v, __pyx_k_v,
sizeof(__pyx_k_v), 0, 0, 1, 1},
38308 {&__pyx_n_s_velocity, __pyx_k_velocity,
sizeof(__pyx_k_velocity), 0, 0, 1, 1},
38309 {&__pyx_n_s_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 0, 1, 1},
38310 {0, 0, 0, 0, 0, 0, 0}
38312 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
38313 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(1, 945, __pyx_L1_error)
38319 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
38320 __Pyx_RefNannyDeclarations
38321 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
38330 __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 945, __pyx_L1_error)
38331 __Pyx_GOTREF(__pyx_tuple_);
38332 __Pyx_GIVEREF(__pyx_tuple_);
38341 __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 951, __pyx_L1_error)
38342 __Pyx_GOTREF(__pyx_tuple__2);
38343 __Pyx_GIVEREF(__pyx_tuple__2);
38352 __pyx_tuple__3 = PyTuple_Pack(9, __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);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 2147, __pyx_L1_error)
38353 __Pyx_GOTREF(__pyx_tuple__3);
38354 __Pyx_GIVEREF(__pyx_tuple__3);
38355 __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalAdvect, 2147, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 2147, __pyx_L1_error)
38364 __pyx_tuple__5 = PyTuple_Pack(11, __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);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 2170, __pyx_L1_error)
38365 __Pyx_GOTREF(__pyx_tuple__5);
38366 __Pyx_GIVEREF(__pyx_tuple__5);
38367 __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__5, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorLesaintRaviartN, 2170, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 2170, __pyx_L1_error)
38376 __pyx_tuple__7 = PyTuple_Pack(12, __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);
if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 2196, __pyx_L1_error)
38377 __Pyx_GOTREF(__pyx_tuple__7);
38378 __Pyx_GIVEREF(__pyx_tuple__7);
38379 __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalAdvect_2, 2196, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 2196, __pyx_L1_error)
38388 __pyx_tuple__9 = PyTuple_Pack(12, __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);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 2224, __pyx_L1_error)
38389 __Pyx_GOTREF(__pyx_tuple__9);
38390 __Pyx_GIVEREF(__pyx_tuple__9);
38391 __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalAdvect_3, 2224, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 2224, __pyx_L1_error)
38400 __pyx_tuple__11 = PyTuple_Pack(11, __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);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 2254, __pyx_L1_error)
38401 __Pyx_GOTREF(__pyx_tuple__11);
38402 __Pyx_GIVEREF(__pyx_tuple__11);
38403 __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalDiffus, 2254, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 2254, __pyx_L1_error)
38412 __pyx_tuple__13 = PyTuple_Pack(15, __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);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 2280, __pyx_L1_error)
38413 __Pyx_GOTREF(__pyx_tuple__13);
38414 __Pyx_GIVEREF(__pyx_tuple__13);
38415 __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorNumericalDiffusive, 2280, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 2280, __pyx_L1_error)
38424 __pyx_tuple__15 = PyTuple_Pack(10, __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);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 2317, __pyx_L1_error)
38425 __Pyx_GOTREF(__pyx_tuple__15);
38426 __Pyx_GIVEREF(__pyx_tuple__15);
38427 __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalAdvect_4, 2317, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 2317, __pyx_L1_error)
38436 __pyx_tuple__17 = PyTuple_Pack(7, __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);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 2342, __pyx_L1_error)
38437 __Pyx_GOTREF(__pyx_tuple__17);
38438 __Pyx_GIVEREF(__pyx_tuple__17);
38439 __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorNumericalAdvective, 2342, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 2342, __pyx_L1_error)
38448 __pyx_tuple__19 = PyTuple_Pack(10, __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);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 2361, __pyx_L1_error)
38449 __Pyx_GOTREF(__pyx_tuple__19);
38450 __Pyx_GIVEREF(__pyx_tuple__19);
38451 __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalAdvect_5, 2361, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 2361, __pyx_L1_error)
38460 __pyx_tuple__21 = PyTuple_Pack(9, __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);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 2386, __pyx_L1_error)
38461 __Pyx_GOTREF(__pyx_tuple__21);
38462 __Pyx_GIVEREF(__pyx_tuple__21);
38463 __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect, 2386, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 2386, __pyx_L1_error)
38472 __pyx_tuple__23 = PyTuple_Pack(14, __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);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 2424, __pyx_L1_error)
38473 __Pyx_GOTREF(__pyx_tuple__23);
38474 __Pyx_GIVEREF(__pyx_tuple__23);
38475 __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_2, 2424, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 2424, __pyx_L1_error)
38484 __pyx_tuple__25 = PyTuple_Pack(7, __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);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 2477, __pyx_L1_error)
38485 __Pyx_GOTREF(__pyx_tuple__25);
38486 __Pyx_GIVEREF(__pyx_tuple__25);
38487 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalAdvective, 2477, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 2477, __pyx_L1_error)
38496 __pyx_tuple__27 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 2508, __pyx_L1_error)
38497 __Pyx_GOTREF(__pyx_tuple__27);
38498 __Pyx_GIVEREF(__pyx_tuple__27);
38499 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalDiffus_2, 2508, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 2508, __pyx_L1_error)
38508 __pyx_tuple__29 = PyTuple_Pack(14, __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_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 2533, __pyx_L1_error)
38509 __Pyx_GOTREF(__pyx_tuple__29);
38510 __Pyx_GIVEREF(__pyx_tuple__29);
38511 __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorNumericalDiffusive_2, 2533, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 2533, __pyx_L1_error)
38520 __pyx_tuple__31 = PyTuple_Pack(3, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_inflowFlux, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 2568, __pyx_L1_error)
38521 __Pyx_GOTREF(__pyx_tuple__31);
38522 __Pyx_GIVEREF(__pyx_tuple__31);
38523 __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_setInflowFlux, 2568, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 2568, __pyx_L1_error)
38532 __pyx_tuple__33 = PyTuple_Pack(7, __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_2sided);
if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 2576, __pyx_L1_error)
38533 __Pyx_GOTREF(__pyx_tuple__33);
38534 __Pyx_GIVEREF(__pyx_tuple__33);
38535 __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorTwoSidedNumericalF, 2576, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 2576, __pyx_L1_error)
38544 __pyx_tuple__35 = PyTuple_Pack(10, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_inflowFlag, __pyx_n_s_inflowFlux, __pyx_n_s_n, __pyx_n_s_f, __pyx_n_s_df, __pyx_n_s_flux, __pyx_n_s_dflux_left);
if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 2595, __pyx_L1_error)
38545 __Pyx_GOTREF(__pyx_tuple__35);
38546 __Pyx_GIVEREF(__pyx_tuple__35);
38547 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorInflowNum, 2595, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 2595, __pyx_L1_error)
38556 __pyx_tuple__37 = PyTuple_Pack(10, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __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);
if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 2618, __pyx_L1_error)
38557 __Pyx_GOTREF(__pyx_tuple__37);
38558 __Pyx_GIVEREF(__pyx_tuple__37);
38559 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalAdv, 2618, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 2618, __pyx_L1_error)
38568 __pyx_tuple__39 = PyTuple_Pack(13, __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_H_element, __pyx_n_s_dH_element, __pyx_n_s_flux, __pyx_n_s_dflux_left, __pyx_n_s_dflux_right);
if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 2638, __pyx_L1_error)
38569 __Pyx_GOTREF(__pyx_tuple__39);
38570 __Pyx_GIVEREF(__pyx_tuple__39);
38571 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorChengShuNumeric, 2638, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 2638, __pyx_L1_error)
38580 __pyx_tuple__41 = PyTuple_Pack(30, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_um, __pyx_n_s_n, __pyx_n_s_bc_f_m, __pyx_n_s_bc_a_wm, __pyx_n_s_bc_a_mw, __pyx_n_s_bc_a_mm, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_m, __pyx_n_s_bc_u_w, __pyx_n_s_bc_u_m, __pyx_n_s_f_m, __pyx_n_s_df_m_dw, __pyx_n_s_a_wm, __pyx_n_s_a_mw, __pyx_n_s_a_mm, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_m, __pyx_n_s_u_w, __pyx_n_s_u_m, __pyx_n_s_penalty_w, __pyx_n_s_penalty_m, __pyx_n_s_advectiveFlux_m, __pyx_n_s_dadvectiveFlux_m_dw, __pyx_n_s_diffusiveFlux_wm, __pyx_n_s_diffusiveFlux_mw, __pyx_n_s_diffusiveFlux_mm);
if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 2669, __pyx_L1_error)
38581 __Pyx_GOTREF(__pyx_tuple__41);
38582 __Pyx_GIVEREF(__pyx_tuple__41);
38583 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical, 2669, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 2669, __pyx_L1_error)
38592 __pyx_tuple__43 = PyTuple_Pack(34, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_um, __pyx_n_s_n, __pyx_n_s_f_m, __pyx_n_s_df_m_dw, __pyx_n_s_a_wm, __pyx_n_s_da_wm_dw, __pyx_n_s_da_wm_dm, __pyx_n_s_a_mw, __pyx_n_s_da_mw_dw, __pyx_n_s_da_mw_dm, __pyx_n_s_a_mm, __pyx_n_s_da_mm_dw, __pyx_n_s_da_mm_dm, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_m, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_m, __pyx_n_s_dphi_m_w, __pyx_n_s_dphi_m_m, __pyx_n_s_u_w, __pyx_n_s_u_m, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_m, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wm, __pyx_n_s_fluxJacobian_mw, __pyx_n_s_fluxJacobian_mm);
if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 2732, __pyx_L1_error)
38593 __Pyx_GOTREF(__pyx_tuple__43);
38594 __Pyx_GIVEREF(__pyx_tuple__43);
38595 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_2, 2732, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 2732, __pyx_L1_error)
38604 __pyx_tuple__45 = PyTuple_Pack(31, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_isStressBoundary_u, __pyx_n_s_isStressBoundary_v, __pyx_n_s_isStressBoundary_w, __pyx_n_s_n, __pyx_n_s_dstress_u_u, __pyx_n_s_dstress_u_v, __pyx_n_s_dstress_u_w, __pyx_n_s_dstress_v_u, __pyx_n_s_dstress_v_v, __pyx_n_s_dstress_v_w, __pyx_n_s_dstress_w_u, __pyx_n_s_dstress_w_v, __pyx_n_s_dstress_w_w, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian_u_u, __pyx_n_s_fluxJacobian_u_v, __pyx_n_s_fluxJacobian_u_w, __pyx_n_s_fluxJacobian_v_u, __pyx_n_s_fluxJacobian_v_v, __pyx_n_s_fluxJacobian_v_w, __pyx_n_s_fluxJacobian_w_u, __pyx_n_s_fluxJacobian_w_v, __pyx_n_s_fluxJacobian_w_w);
if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 2804, __pyx_L1_error)
38605 __Pyx_GOTREF(__pyx_tuple__45);
38606 __Pyx_GIVEREF(__pyx_tuple__45);
38607 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(31, 0, 31, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalStressFlu, 2804, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 2804, __pyx_L1_error)
38616 __pyx_tuple__47 = PyTuple_Pack(12, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_isSeepageFace, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_u, __pyx_n_s_K, __pyx_n_s_grad_psi, __pyx_n_s_u, __pyx_n_s_K_rho_g, __pyx_n_s_penalty, __pyx_n_s_diffusiveFlux);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 2870, __pyx_L1_error)
38617 __Pyx_GOTREF(__pyx_tuple__47);
38618 __Pyx_GIVEREF(__pyx_tuple__47);
38619 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalFluxRi, 2870, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 2870, __pyx_L1_error)
38628 __pyx_tuple__49 = PyTuple_Pack(14, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_u, __pyx_n_s_K, __pyx_n_s_dK, __pyx_n_s_grad_psi, __pyx_n_s_grad_v, __pyx_n_s_u, __pyx_n_s_dK_rho_g, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 2897, __pyx_L1_error)
38629 __Pyx_GOTREF(__pyx_tuple__49);
38630 __Pyx_GIVEREF(__pyx_tuple__49);
38631 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalFluxJa, 2897, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 2897, __pyx_L1_error)
38640 __pyx_tuple__51 = PyTuple_Pack(21, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 2929, __pyx_L1_error)
38641 __Pyx_GOTREF(__pyx_tuple__51);
38642 __Pyx_GIVEREF(__pyx_tuple__51);
38643 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_3, 2929, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 2929, __pyx_L1_error)
38652 __pyx_tuple__53 = PyTuple_Pack(13, __pyx_n_s_rowptr, __pyx_n_s_colind, __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);
if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 2976, __pyx_L1_error)
38653 __Pyx_GOTREF(__pyx_tuple__53);
38654 __Pyx_GIVEREF(__pyx_tuple__53);
38655 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalDiffus_3, 2976, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 2976, __pyx_L1_error)
38664 __pyx_tuple__55 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __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);
if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 3007, __pyx_L1_error)
38665 __Pyx_GOTREF(__pyx_tuple__55);
38666 __Pyx_GIVEREF(__pyx_tuple__55);
38667 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__55, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorNumericalDiffusive_3, 3007, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 3007, __pyx_L1_error)
38676 __pyx_tuple__57 = PyTuple_Pack(18, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 3046, __pyx_L1_error)
38677 __Pyx_GOTREF(__pyx_tuple__57);
38678 __Pyx_GIVEREF(__pyx_tuple__57);
38679 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive, 3046, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 3046, __pyx_L1_error)
38688 __pyx_tuple__59 = PyTuple_Pack(16, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 3113, __pyx_L1_error)
38689 __Pyx_GOTREF(__pyx_tuple__59);
38690 __Pyx_GIVEREF(__pyx_tuple__59);
38691 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_2, 3113, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 3113, __pyx_L1_error)
38700 __pyx_tuple__61 = PyTuple_Pack(12, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 3174, __pyx_L1_error)
38701 __Pyx_GOTREF(__pyx_tuple__61);
38702 __Pyx_GIVEREF(__pyx_tuple__61);
38703 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalDiffus_4, 3174, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 3174, __pyx_L1_error)
38712 __pyx_tuple__63 = PyTuple_Pack(16, __pyx_n_s_rowptr, __pyx_n_s_colind, __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_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 3202, __pyx_L1_error)
38713 __Pyx_GOTREF(__pyx_tuple__63);
38714 __Pyx_GIVEREF(__pyx_tuple__63);
38715 __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateInteriorNumericalDiffusive_4, 3202, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 3202, __pyx_L1_error)
38724 __pyx_tuple__65 = PyTuple_Pack(10, __pyx_n_s_aSplit, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_ebq_a, __pyx_n_s_q_a, __pyx_n_s_eb_aHat, __pyx_n_s_eb_aTilde, __pyx_n_s_aHat, __pyx_n_s_aTilde);
if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 3240, __pyx_L1_error)
38725 __Pyx_GOTREF(__pyx_tuple__65);
38726 __Pyx_GIVEREF(__pyx_tuple__65);
38727 __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateDiffusionMatrixSplittin, 3240, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 3240, __pyx_L1_error)
38736 __pyx_tuple__67 = PyTuple_Pack(36, __pyx_n_s_rowptr_wm, __pyx_n_s_colind_wm, __pyx_n_s_rowptr_mw, __pyx_n_s_colind_mw, __pyx_n_s_rowptr_mm, __pyx_n_s_colind_mm, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_um, __pyx_n_s_n, __pyx_n_s_bc_f_m, __pyx_n_s_bc_a_wm, __pyx_n_s_bc_a_mw, __pyx_n_s_bc_a_mm, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_m, __pyx_n_s_bc_u_w, __pyx_n_s_bc_u_m, __pyx_n_s_f_m, __pyx_n_s_df_m_dw, __pyx_n_s_a_wm, __pyx_n_s_a_mw, __pyx_n_s_a_mm, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_m, __pyx_n_s_u_w, __pyx_n_s_u_m, __pyx_n_s_penalty_w, __pyx_n_s_penalty_m, __pyx_n_s_advectiveFlux_m, __pyx_n_s_dadvectiveFlux_m_dw, __pyx_n_s_diffusiveFlux_wm, __pyx_n_s_diffusiveFlux_mw, __pyx_n_s_diffusiveFlux_mm);
if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 3264, __pyx_L1_error)
38737 __Pyx_GOTREF(__pyx_tuple__67);
38738 __Pyx_GIVEREF(__pyx_tuple__67);
38739 __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(36, 0, 36, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_3, 3264, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 3264, __pyx_L1_error)
38748 __pyx_tuple__69 = PyTuple_Pack(40, __pyx_n_s_rowptr_wm, __pyx_n_s_colind_wm, __pyx_n_s_rowptr_mw, __pyx_n_s_colind_mw, __pyx_n_s_rowptr_mm, __pyx_n_s_colind_mm, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_um, __pyx_n_s_n, __pyx_n_s_f_m, __pyx_n_s_df_m_dw, __pyx_n_s_a_wm, __pyx_n_s_da_wm_dw, __pyx_n_s_da_wm_dm, __pyx_n_s_a_mw, __pyx_n_s_da_mw_dw, __pyx_n_s_da_mw_dm, __pyx_n_s_a_mm, __pyx_n_s_da_mm_dw, __pyx_n_s_da_mm_dm, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_m, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_m, __pyx_n_s_dphi_m_w, __pyx_n_s_dphi_m_m, __pyx_n_s_u_w, __pyx_n_s_u_m, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_m, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wm, __pyx_n_s_fluxJacobian_mw, __pyx_n_s_fluxJacobian_mm);
if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 3339, __pyx_L1_error)
38749 __Pyx_GOTREF(__pyx_tuple__69);
38750 __Pyx_GIVEREF(__pyx_tuple__69);
38751 __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(40, 0, 40, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_4, 3339, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 3339, __pyx_L1_error)
38760 __pyx_tuple__71 = PyTuple_Pack(26, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_bc_a_ww, __pyx_n_s_bc_a_nn, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_n, __pyx_n_s_bc_s_w, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_n, __pyx_n_s_a_ww, __pyx_n_s_a_nn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_s_w, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_diffusiveFlux_ww, __pyx_n_s_diffusiveFlux_nn);
if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 3423, __pyx_L1_error)
38761 __Pyx_GOTREF(__pyx_tuple__71);
38762 __Pyx_GIVEREF(__pyx_tuple__71);
38763 __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_5, 3423, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 3423, __pyx_L1_error)
38772 __pyx_tuple__73 = PyTuple_Pack(30, __pyx_n_s_rowptr_ww, __pyx_n_s_colind_ww, __pyx_n_s_rowptr_nn, __pyx_n_s_colind_nn, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_bc_a_ww, __pyx_n_s_bc_a_nn, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_n, __pyx_n_s_bc_s_w, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_n, __pyx_n_s_a_ww, __pyx_n_s_a_nn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_s_w, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_diffusiveFlux_ww, __pyx_n_s_diffusiveFlux_nn);
if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 3478, __pyx_L1_error)
38773 __Pyx_GOTREF(__pyx_tuple__73);
38774 __Pyx_GIVEREF(__pyx_tuple__73);
38775 __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_6, 3478, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 3478, __pyx_L1_error)
38784 __pyx_tuple__75 = PyTuple_Pack(34, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_a_ww, __pyx_n_s_da_ww_dw, __pyx_n_s_da_ww_dn, __pyx_n_s_a_nn, __pyx_n_s_da_nn_dw, __pyx_n_s_da_nn_dn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_n, __pyx_n_s_dphi_n_w, __pyx_n_s_dphi_n_n, __pyx_n_s_s_w, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_dpsi_n_dsw, __pyx_n_s_dpsi_n_dpsiw, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wn, __pyx_n_s_fluxJacobian_nw, __pyx_n_s_fluxJacobian_nn);
if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 3541, __pyx_L1_error)
38785 __Pyx_GOTREF(__pyx_tuple__75);
38786 __Pyx_GIVEREF(__pyx_tuple__75);
38787 __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_7, 3541, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 3541, __pyx_L1_error)
38796 __pyx_tuple__77 = PyTuple_Pack(38, __pyx_n_s_rowptr_ww, __pyx_n_s_colind_ww, __pyx_n_s_rowptr_nn, __pyx_n_s_colind_nn, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_a_ww, __pyx_n_s_da_ww_dw, __pyx_n_s_da_ww_dn, __pyx_n_s_a_nn, __pyx_n_s_da_nn_dw, __pyx_n_s_da_nn_dn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_n, __pyx_n_s_dphi_n_w, __pyx_n_s_dphi_n_n, __pyx_n_s_s_w, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_dpsi_n_dsw, __pyx_n_s_dpsi_n_dpsiw, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wn, __pyx_n_s_fluxJacobian_nw, __pyx_n_s_fluxJacobian_nn);
if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 3613, __pyx_L1_error)
38797 __Pyx_GOTREF(__pyx_tuple__77);
38798 __Pyx_GIVEREF(__pyx_tuple__77);
38799 __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_8, 3613, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 3613, __pyx_L1_error)
38808 __pyx_tuple__79 = PyTuple_Pack(26, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_bc_a_ww, __pyx_n_s_bc_a_nn, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_n, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_c, __pyx_n_s_bc_psi_n, __pyx_n_s_a_ww, __pyx_n_s_a_nn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_psi_w, __pyx_n_s_psi_c, __pyx_n_s_psi_n, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_diffusiveFlux_ww, __pyx_n_s_diffusiveFlux_nn);
if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 3693, __pyx_L1_error)
38809 __Pyx_GOTREF(__pyx_tuple__79);
38810 __Pyx_GIVEREF(__pyx_tuple__79);
38811 __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_9, 3693, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 3693, __pyx_L1_error)
38820 __pyx_tuple__81 = PyTuple_Pack(30, __pyx_n_s_rowptr_ww, __pyx_n_s_colind_ww, __pyx_n_s_rowptr_nn, __pyx_n_s_colind_nn, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_bc_a_ww, __pyx_n_s_bc_a_nn, __pyx_n_s_bc_grad_phi_w, __pyx_n_s_bc_grad_phi_n, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_c, __pyx_n_s_bc_psi_n, __pyx_n_s_a_ww, __pyx_n_s_a_nn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_psi_w, __pyx_n_s_psi_c, __pyx_n_s_psi_n, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_diffusiveFlux_ww, __pyx_n_s_diffusiveFlux_nn);
if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 3748, __pyx_L1_error)
38821 __Pyx_GOTREF(__pyx_tuple__81);
38822 __Pyx_GIVEREF(__pyx_tuple__81);
38823 __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(30, 0, 30, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_10, 3748, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 3748, __pyx_L1_error)
38832 __pyx_tuple__83 = PyTuple_Pack(34, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_a_ww, __pyx_n_s_da_ww_dw, __pyx_n_s_da_ww_dn, __pyx_n_s_a_nn, __pyx_n_s_da_nn_dw, __pyx_n_s_da_nn_dn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_n, __pyx_n_s_dphi_n_w, __pyx_n_s_dphi_n_n, __pyx_n_s_psi_w, __pyx_n_s_psi_c, __pyx_n_s_psi_n, __pyx_n_s_dpsi_n_dpsiw, __pyx_n_s_dpsi_n_dpsic, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wn, __pyx_n_s_fluxJacobian_nw, __pyx_n_s_fluxJacobian_nn);
if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 3811, __pyx_L1_error)
38833 __Pyx_GOTREF(__pyx_tuple__83);
38834 __Pyx_GIVEREF(__pyx_tuple__83);
38835 __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(34, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_11, 3811, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 3811, __pyx_L1_error)
38844 __pyx_tuple__85 = PyTuple_Pack(38, __pyx_n_s_rowptr_ww, __pyx_n_s_colind_ww, __pyx_n_s_rowptr_nn, __pyx_n_s_colind_nn, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_uw, __pyx_n_s_isDOFBoundary_un, __pyx_n_s_fluxBoundaryFlag_uw, __pyx_n_s_fluxBoundaryFlag_un, __pyx_n_s_n, __pyx_n_s_a_ww, __pyx_n_s_da_ww_dw, __pyx_n_s_da_ww_dn, __pyx_n_s_a_nn, __pyx_n_s_da_nn_dw, __pyx_n_s_da_nn_dn, __pyx_n_s_grad_phi_w, __pyx_n_s_grad_phi_n, __pyx_n_s_dphi_w_w, __pyx_n_s_dphi_w_n, __pyx_n_s_dphi_n_w, __pyx_n_s_dphi_n_n, __pyx_n_s_psi_w, __pyx_n_s_psi_c, __pyx_n_s_psi_n, __pyx_n_s_dpsi_n_dpsiw, __pyx_n_s_dpsi_n_dpsic, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_penalty_w, __pyx_n_s_penalty_n, __pyx_n_s_fluxJacobian_ww, __pyx_n_s_fluxJacobian_wn, __pyx_n_s_fluxJacobian_nw, __pyx_n_s_fluxJacobian_nn);
if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 3883, __pyx_L1_error)
38845 __Pyx_GOTREF(__pyx_tuple__85);
38846 __Pyx_GIVEREF(__pyx_tuple__85);
38847 __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(38, 0, 38, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_12, 3883, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 3883, __pyx_L1_error)
38856 __pyx_tuple__87 = PyTuple_Pack(11, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_flux_h, __pyx_n_s_flux_hu);
if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 3964, __pyx_L1_error)
38857 __Pyx_GOTREF(__pyx_tuple__87);
38858 __Pyx_GIVEREF(__pyx_tuple__87);
38859 __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalFluxSh, 3964, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 3964, __pyx_L1_error)
38868 __pyx_tuple__89 = PyTuple_Pack(11, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_n, __pyx_n_s_h_lv, __pyx_n_s_hu_lv, __pyx_n_s_h_rv, __pyx_n_s_hu_rv, __pyx_n_s_flux_h, __pyx_n_s_flux_hu);
if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 3989, __pyx_L1_error)
38869 __Pyx_GOTREF(__pyx_tuple__89);
38870 __Pyx_GIVEREF(__pyx_tuple__89);
38871 __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalFluxSh, 3989, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 3989, __pyx_L1_error)
38880 __pyx_tuple__91 = PyTuple_Pack(13, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_hv, __pyx_n_s_flux_h, __pyx_n_s_flux_hu, __pyx_n_s_flux_hv);
if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 4012, __pyx_L1_error)
38881 __Pyx_GOTREF(__pyx_tuple__91);
38882 __Pyx_GIVEREF(__pyx_tuple__91);
38883 __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalFluxSh_2, 4012, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 4012, __pyx_L1_error)
38892 __pyx_tuple__93 = PyTuple_Pack(14, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_n, __pyx_n_s_h_lq, __pyx_n_s_hu_lq, __pyx_n_s_hv_lq, __pyx_n_s_h_rq, __pyx_n_s_hu_rq, __pyx_n_s_hv_rq, __pyx_n_s_flux_h, __pyx_n_s_flux_hu, __pyx_n_s_flux_hv);
if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 4041, __pyx_L1_error)
38893 __Pyx_GOTREF(__pyx_tuple__93);
38894 __Pyx_GIVEREF(__pyx_tuple__93);
38895 __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalFluxSh_2, 4041, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 4041, __pyx_L1_error)
38904 __pyx_tuple__95 = PyTuple_Pack(11, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_h, __pyx_n_s_hu, __pyx_n_s_flux_h, __pyx_n_s_flux_hu);
if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 4070, __pyx_L1_error)
38905 __Pyx_GOTREF(__pyx_tuple__95);
38906 __Pyx_GIVEREF(__pyx_tuple__95);
38907 __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateInteriorNumericalFluxSh_3, 4070, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 4070, __pyx_L1_error)
38916 __pyx_tuple__97 = PyTuple_Pack(11, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_h_eps, __pyx_n_s_tol_u, __pyx_n_s_g, __pyx_n_s_n, __pyx_n_s_h_lv, __pyx_n_s_hu_lv, __pyx_n_s_h_rv, __pyx_n_s_hu_rv, __pyx_n_s_flux_h, __pyx_n_s_flux_hu);
if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 4095, __pyx_L1_error)
38917 __Pyx_GOTREF(__pyx_tuple__97);
38918 __Pyx_GIVEREF(__pyx_tuple__97);
38919 __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalFluxSh_3, 4095, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 4095, __pyx_L1_error)
38928 __pyx_tuple__99 = PyTuple_Pack(18, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_u, __pyx_n_s_bc_v, __pyx_n_s_bc_w, __pyx_n_s_sigma, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_penalty, __pyx_n_s_stressFlux_u, __pyx_n_s_stressFlux_v, __pyx_n_s_stressFlux_w);
if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 4118, __pyx_L1_error)
38929 __Pyx_GOTREF(__pyx_tuple__99);
38930 __Pyx_GIVEREF(__pyx_tuple__99);
38931 __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_13, 4118, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 4118, __pyx_L1_error)
38940 __pyx_tuple__101 = PyTuple_Pack(29, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_mass_dw, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_flux_wmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_mass_dw, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_wmom_dp, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 4158, __pyx_L1_error)
38941 __Pyx_GOTREF(__pyx_tuple__101);
38942 __Pyx_GIVEREF(__pyx_tuple__101);
38943 __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(29, 0, 29, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_4, 4158, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 4158, __pyx_L1_error)
38952 __pyx_tuple__103 = PyTuple_Pack(53, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_bc_f_umom, __pyx_n_s_bc_f_vmom, __pyx_n_s_bc_f_wmom, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_f_umom, __pyx_n_s_f_vmom, __pyx_n_s_f_wmom, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_mass_dw, __pyx_n_s_df_umom_dp, __pyx_n_s_df_umom_du, __pyx_n_s_df_umom_dv, __pyx_n_s_df_umom_dw, __pyx_n_s_df_vmom_dp, __pyx_n_s_df_vmom_du, __pyx_n_s_df_vmom_dv, __pyx_n_s_df_vmom_dw, __pyx_n_s_df_wmom_dp, __pyx_n_s_df_wmom_du, __pyx_n_s_df_wmom_dv, __pyx_n_s_df_wmom_dw, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_flux_wmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_mass_dw, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_umom_du, __pyx_n_s_dflux_umom_dv, __pyx_n_s_dflux_umom_dw, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_vmom_du, __pyx_n_s_dflux_vmom_dv, __pyx_n_s_dflux_vmom_dw, __pyx_n_s_dflux_wmom_dp, __pyx_n_s_dflux_wmom_du, __pyx_n_s_dflux_wmom_dv, __pyx_n_s_dflux_wmom_dw, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 4216, __pyx_L1_error)
38953 __Pyx_GOTREF(__pyx_tuple__103);
38954 __Pyx_GIVEREF(__pyx_tuple__103);
38955 __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(53, 0, 53, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_5, 4216, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 4216, __pyx_L1_error)
38964 __pyx_tuple__105 = PyTuple_Pack(16, __pyx_n_s_safetyFactor, __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_df_element, __pyx_n_s_flux, __pyx_n_s_dflux);
if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 4328, __pyx_L1_error)
38965 __Pyx_GOTREF(__pyx_tuple__105);
38966 __Pyx_GIVEREF(__pyx_tuple__105);
38967 __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_6, 4328, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 4328, __pyx_L1_error)
38976 __pyx_tuple__107 = PyTuple_Pack(20, __pyx_n_s_safetyFactor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace, __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_df_element, __pyx_n_s_flux, __pyx_n_s_dflux);
if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 4387, __pyx_L1_error)
38977 __Pyx_GOTREF(__pyx_tuple__107);
38978 __Pyx_GIVEREF(__pyx_tuple__107);
38979 __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_14, 4387, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 4387, __pyx_L1_error)
38988 __pyx_tuple__109 = PyTuple_Pack(17, __pyx_n_s_safetyFactor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace, __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_u, __pyx_n_s_f, __pyx_n_s_lambda_bar, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 4427, __pyx_L1_error)
38989 __Pyx_GOTREF(__pyx_tuple__109);
38990 __Pyx_GIVEREF(__pyx_tuple__109);
38991 __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_15, 4427, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 4427, __pyx_L1_error)
39000 __pyx_tuple__111 = PyTuple_Pack(13, __pyx_n_s_safetyFactor, __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_u, __pyx_n_s_f, __pyx_n_s_lambda_bar_element, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 4461, __pyx_L1_error)
39001 __Pyx_GOTREF(__pyx_tuple__111);
39002 __Pyx_GIVEREF(__pyx_tuple__111);
39003 __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_7, 4461, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 4461, __pyx_L1_error)
39012 __pyx_tuple__113 = PyTuple_Pack(15, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __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);
if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 4511, __pyx_L1_error)
39013 __Pyx_GOTREF(__pyx_tuple__113);
39014 __Pyx_GIVEREF(__pyx_tuple__113);
39015 __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus, 4511, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 4511, __pyx_L1_error)
39024 __pyx_tuple__115 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __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);
if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 4567, __pyx_L1_error)
39025 __Pyx_GOTREF(__pyx_tuple__115);
39026 __Pyx_GIVEREF(__pyx_tuple__115);
39027 __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_2, 4567, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 4567, __pyx_L1_error)
39036 __pyx_tuple__117 = PyTuple_Pack(18, __pyx_n_s_scale_penalty, __pyx_n_s_penalty_floor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 4627, __pyx_L1_error)
39037 __Pyx_GOTREF(__pyx_tuple__117);
39038 __Pyx_GIVEREF(__pyx_tuple__117);
39039 __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_16, 4627, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 4627, __pyx_L1_error)
39048 __pyx_tuple__119 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __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);
if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 4664, __pyx_L1_error)
39049 __Pyx_GOTREF(__pyx_tuple__119);
39050 __Pyx_GIVEREF(__pyx_tuple__119);
39051 __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_3, 4664, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 4664, __pyx_L1_error)
39060 __pyx_tuple__121 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __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);
if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 4705, __pyx_L1_error)
39061 __Pyx_GOTREF(__pyx_tuple__121);
39062 __Pyx_GIVEREF(__pyx_tuple__121);
39063 __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_17, 4705, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 4705, __pyx_L1_error)
39072 __pyx_tuple__123 = PyTuple_Pack(13, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 4743, __pyx_L1_error)
39073 __Pyx_GOTREF(__pyx_tuple__123);
39074 __Pyx_GIVEREF(__pyx_tuple__123);
39075 __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_4, 4743, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 4743, __pyx_L1_error)
39084 __pyx_tuple__125 = PyTuple_Pack(15, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 4793, __pyx_L1_error)
39085 __Pyx_GOTREF(__pyx_tuple__125);
39086 __Pyx_GIVEREF(__pyx_tuple__125);
39087 __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_5, 4793, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 4793, __pyx_L1_error)
39096 __pyx_tuple__127 = PyTuple_Pack(16, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 4849, __pyx_L1_error)
39097 __Pyx_GOTREF(__pyx_tuple__127);
39098 __Pyx_GIVEREF(__pyx_tuple__127);
39099 __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_18, 4849, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 4849, __pyx_L1_error)
39108 __pyx_tuple__129 = PyTuple_Pack(18, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_u, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_u, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 4881, __pyx_L1_error)
39109 __Pyx_GOTREF(__pyx_tuple__129);
39110 __Pyx_GIVEREF(__pyx_tuple__129);
39111 __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_19, 4881, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 4881, __pyx_L1_error)
39120 __pyx_tuple__131 = PyTuple_Pack(16, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 4917, __pyx_L1_error)
39121 __Pyx_GOTREF(__pyx_tuple__131);
39122 __Pyx_GIVEREF(__pyx_tuple__131);
39123 __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_3, 4917, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 4917, __pyx_L1_error)
39132 __pyx_tuple__133 = PyTuple_Pack(20, __pyx_n_s_scale_penalty, __pyx_n_s_penalty_floor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 4978, __pyx_L1_error)
39133 __Pyx_GOTREF(__pyx_tuple__133);
39134 __Pyx_GIVEREF(__pyx_tuple__133);
39135 __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif, 4978, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 4978, __pyx_L1_error)
39144 __pyx_tuple__135 = PyTuple_Pack(22, __pyx_n_s_scale_penalty, __pyx_n_s_penalty_floor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 5018, __pyx_L1_error)
39145 __Pyx_GOTREF(__pyx_tuple__135);
39146 __Pyx_GIVEREF(__pyx_tuple__135);
39147 __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_2, 5018, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 5018, __pyx_L1_error)
39156 __pyx_tuple__137 = PyTuple_Pack(14, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 5062, __pyx_L1_error)
39157 __Pyx_GOTREF(__pyx_tuple__137);
39158 __Pyx_GIVEREF(__pyx_tuple__137);
39159 __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_4, 5062, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 5062, __pyx_L1_error)
39168 __pyx_tuple__139 = PyTuple_Pack(18, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 5117, __pyx_L1_error)
39169 __Pyx_GOTREF(__pyx_tuple__139);
39170 __Pyx_GIVEREF(__pyx_tuple__139);
39171 __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_3, 5117, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 5117, __pyx_L1_error)
39180 __pyx_tuple__141 = PyTuple_Pack(20, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __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);
if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 5153, __pyx_L1_error)
39181 __Pyx_GOTREF(__pyx_tuple__141);
39182 __Pyx_GIVEREF(__pyx_tuple__141);
39183 __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_4, 5153, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 5153, __pyx_L1_error)
39192 __pyx_tuple__143 = PyTuple_Pack(12, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __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);
if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 5193, __pyx_L1_error)
39193 __Pyx_GOTREF(__pyx_tuple__143);
39194 __Pyx_GIVEREF(__pyx_tuple__143);
39195 __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_20, 5193, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 5193, __pyx_L1_error)
39204 __pyx_tuple__145 = PyTuple_Pack(17, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __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);
if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 5217, __pyx_L1_error)
39205 __Pyx_GOTREF(__pyx_tuple__145);
39206 __Pyx_GIVEREF(__pyx_tuple__145);
39207 __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_21, 5217, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 5217, __pyx_L1_error)
39216 __pyx_tuple__147 = PyTuple_Pack(14, __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);
if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 5251, __pyx_L1_error)
39217 __Pyx_GOTREF(__pyx_tuple__147);
39218 __Pyx_GIVEREF(__pyx_tuple__147);
39219 __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_8, 5251, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 5251, __pyx_L1_error)
39228 __pyx_tuple__149 = PyTuple_Pack(17, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __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);
if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 5303, __pyx_L1_error)
39229 __Pyx_GOTREF(__pyx_tuple__149);
39230 __Pyx_GIVEREF(__pyx_tuple__149);
39231 __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_22, 5303, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 5303, __pyx_L1_error)
39240 __pyx_tuple__151 = PyTuple_Pack(24, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_f, __pyx_n_s_bc_fpu, __pyx_n_s_bc_fpv, __pyx_n_s_f, __pyx_n_s_fpu, __pyx_n_s_fpv, __pyx_n_s_df_du, __pyx_n_s_df_dv, __pyx_n_s_dfpu_dp, __pyx_n_s_dfpv_dp, __pyx_n_s_flux, __pyx_n_s_fluxpu, __pyx_n_s_fluxpv, __pyx_n_s_dflux_du, __pyx_n_s_dflux_dv, __pyx_n_s_dfluxpu_dp, __pyx_n_s_dfluxpv_dp);
if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 5337, __pyx_L1_error)
39241 __Pyx_GOTREF(__pyx_tuple__151);
39242 __Pyx_GIVEREF(__pyx_tuple__151);
39243 __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(24, 0, 24, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_9, 5337, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 5337, __pyx_L1_error)
39252 __pyx_tuple__153 = PyTuple_Pack(37, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_bc_f_umom, __pyx_n_s_bc_f_vmom, __pyx_n_s_p, __pyx_n_s_dm_umom, __pyx_n_s_f_mass, __pyx_n_s_f_umom, __pyx_n_s_f_vmom, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_umom_dp, __pyx_n_s_df_umom_du, __pyx_n_s_df_umom_dv, __pyx_n_s_df_vmom_dp, __pyx_n_s_df_vmom_du, __pyx_n_s_df_vmom_dv, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_dflux_mass_dp, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_umom_du, __pyx_n_s_dflux_umom_dv, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_vmom_du, __pyx_n_s_dflux_vmom_dv, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 5418, __pyx_L1_error)
39253 __Pyx_GOTREF(__pyx_tuple__153);
39254 __Pyx_GIVEREF(__pyx_tuple__153);
39255 __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(37, 0, 37, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_10, 5418, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 5418, __pyx_L1_error)
39264 __pyx_tuple__155 = PyTuple_Pack(40, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_bc_f_umom, __pyx_n_s_bc_f_vmom, __pyx_n_s_p, __pyx_n_s_oneByRho, __pyx_n_s_f_mass, __pyx_n_s_f_umom, __pyx_n_s_f_vmom, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_umom_dp, __pyx_n_s_df_umom_du, __pyx_n_s_df_umom_dv, __pyx_n_s_df_vmom_dp, __pyx_n_s_df_vmom_du, __pyx_n_s_df_vmom_dv, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_dflux_mass_dp, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_umom_du, __pyx_n_s_dflux_umom_dv, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_vmom_du, __pyx_n_s_dflux_vmom_dv, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 5533, __pyx_L1_error)
39265 __Pyx_GOTREF(__pyx_tuple__155);
39266 __Pyx_GIVEREF(__pyx_tuple__155);
39267 __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(40, 0, 40, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_23, 5533, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 5533, __pyx_L1_error)
39276 __pyx_tuple__157 = PyTuple_Pack(56, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_bc_f_umom, __pyx_n_s_bc_f_vmom, __pyx_n_s_bc_f_wmom, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_f_umom, __pyx_n_s_f_vmom, __pyx_n_s_f_wmom, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_mass_dw, __pyx_n_s_df_umom_dp, __pyx_n_s_df_umom_du, __pyx_n_s_df_umom_dv, __pyx_n_s_df_umom_dw, __pyx_n_s_df_vmom_dp, __pyx_n_s_df_vmom_du, __pyx_n_s_df_vmom_dv, __pyx_n_s_df_vmom_dw, __pyx_n_s_df_wmom_dp, __pyx_n_s_df_wmom_du, __pyx_n_s_df_wmom_dv, __pyx_n_s_df_wmom_dw, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_flux_wmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_mass_dw, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_umom_du, __pyx_n_s_dflux_umom_dv, __pyx_n_s_dflux_umom_dw, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_vmom_du, __pyx_n_s_dflux_vmom_dv, __pyx_n_s_dflux_vmom_dw, __pyx_n_s_dflux_wmom_dp, __pyx_n_s_dflux_wmom_du, __pyx_n_s_dflux_wmom_dv, __pyx_n_s_dflux_wmom_dw, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 5613, __pyx_L1_error)
39277 __Pyx_GOTREF(__pyx_tuple__157);
39278 __Pyx_GIVEREF(__pyx_tuple__157);
39279 __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(56, 0, 56, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_24, 5613, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 5613, __pyx_L1_error)
39288 __pyx_tuple__159 = PyTuple_Pack(27, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_f, __pyx_n_s_bc_fpu, __pyx_n_s_bc_fpv, __pyx_n_s_f, __pyx_n_s_fpu, __pyx_n_s_fpv, __pyx_n_s_df_du, __pyx_n_s_df_dv, __pyx_n_s_dfpu_dp, __pyx_n_s_dfpv_dp, __pyx_n_s_flux, __pyx_n_s_fluxpu, __pyx_n_s_fluxpv, __pyx_n_s_dflux_du, __pyx_n_s_dflux_dv, __pyx_n_s_dfluxpu_dp, __pyx_n_s_dfluxpv_dp);
if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 5725, __pyx_L1_error)
39289 __Pyx_GOTREF(__pyx_tuple__159);
39290 __Pyx_GIVEREF(__pyx_tuple__159);
39291 __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(27, 0, 27, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_25, 5725, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(0, 5725, __pyx_L1_error)
39300 __pyx_tuple__161 = PyTuple_Pack(32, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_f, __pyx_n_s_bc_fpu, __pyx_n_s_bc_fpv, __pyx_n_s_bc_fpw, __pyx_n_s_f, __pyx_n_s_fpu, __pyx_n_s_fpv, __pyx_n_s_fpw, __pyx_n_s_df_du, __pyx_n_s_df_dv, __pyx_n_s_df_dw, __pyx_n_s_dfpu_dp, __pyx_n_s_dfpv_dp, __pyx_n_s_dfpw_dp, __pyx_n_s_flux, __pyx_n_s_fluxpu, __pyx_n_s_fluxpv, __pyx_n_s_fluxpw, __pyx_n_s_dflux_du, __pyx_n_s_dflux_dv, __pyx_n_s_dflux_dw, __pyx_n_s_dfluxpu_dp, __pyx_n_s_dfluxpv_dp, __pyx_n_s_dfluxpw_dp);
if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 5779, __pyx_L1_error)
39301 __Pyx_GOTREF(__pyx_tuple__161);
39302 __Pyx_GIVEREF(__pyx_tuple__161);
39303 __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(32, 0, 32, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_11, 5779, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 5779, __pyx_L1_error)
39312 __pyx_tuple__163 = PyTuple_Pack(35, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_f, __pyx_n_s_bc_fpu, __pyx_n_s_bc_fpv, __pyx_n_s_bc_fpw, __pyx_n_s_f, __pyx_n_s_fpu, __pyx_n_s_fpv, __pyx_n_s_fpw, __pyx_n_s_df_du, __pyx_n_s_df_dv, __pyx_n_s_df_dw, __pyx_n_s_dfpu_dp, __pyx_n_s_dfpv_dp, __pyx_n_s_dfpw_dp, __pyx_n_s_flux, __pyx_n_s_fluxpu, __pyx_n_s_fluxpv, __pyx_n_s_fluxpw, __pyx_n_s_dflux_du, __pyx_n_s_dflux_dv, __pyx_n_s_dflux_dw, __pyx_n_s_dfluxpu_dp, __pyx_n_s_dfluxpv_dp, __pyx_n_s_dfluxpw_dp);
if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 5884, __pyx_L1_error)
39313 __Pyx_GOTREF(__pyx_tuple__163);
39314 __Pyx_GIVEREF(__pyx_tuple__163);
39315 __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(35, 0, 35, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_26, 5884, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 5884, __pyx_L1_error)
39324 __pyx_tuple__165 = PyTuple_Pack(14, __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);
if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 5954, __pyx_L1_error)
39325 __Pyx_GOTREF(__pyx_tuple__165);
39326 __Pyx_GIVEREF(__pyx_tuple__165);
39327 __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalAdvect_12, 5954, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(0, 5954, __pyx_L1_error)
39336 __pyx_tuple__167 = PyTuple_Pack(17, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __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);
if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 6005, __pyx_L1_error)
39337 __Pyx_GOTREF(__pyx_tuple__167);
39338 __Pyx_GIVEREF(__pyx_tuple__167);
39339 __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_27, 6005, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 6005, __pyx_L1_error)
39348 __pyx_tuple__169 = PyTuple_Pack(7, __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);
if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 6039, __pyx_L1_error)
39349 __Pyx_GOTREF(__pyx_tuple__169);
39350 __Pyx_GIVEREF(__pyx_tuple__169);
39351 __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalAdvective_2, 6039, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 6039, __pyx_L1_error)
39360 __pyx_tuple__171 = PyTuple_Pack(10, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __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);
if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 6069, __pyx_L1_error)
39361 __Pyx_GOTREF(__pyx_tuple__171);
39362 __Pyx_GIVEREF(__pyx_tuple__171);
39363 __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalAdv_2, 6069, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 6069, __pyx_L1_error)
39372 __pyx_tuple__173 = PyTuple_Pack(11, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi_bc, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 6089, __pyx_L1_error)
39373 __Pyx_GOTREF(__pyx_tuple__173);
39374 __Pyx_GIVEREF(__pyx_tuple__173);
39375 __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_6, 6089, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 6089, __pyx_L1_error)
39384 __pyx_tuple__175 = PyTuple_Pack(13, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi_bc, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 6132, __pyx_L1_error)
39385 __Pyx_GOTREF(__pyx_tuple__175);
39386 __Pyx_GIVEREF(__pyx_tuple__175);
39387 __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorNumericalDiffus_7, 6132, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 6132, __pyx_L1_error)
39396 __pyx_tuple__177 = PyTuple_Pack(15, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi_bc, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 6181, __pyx_L1_error)
39397 __Pyx_GOTREF(__pyx_tuple__177);
39398 __Pyx_GIVEREF(__pyx_tuple__177);
39399 __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_28, 6181, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 6181, __pyx_L1_error)
39408 __pyx_tuple__179 = PyTuple_Pack(17, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_u, __pyx_n_s_a, __pyx_n_s_phi_bc, __pyx_n_s_phi, __pyx_n_s_V, __pyx_n_s_penalty, __pyx_n_s_flux);
if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 6211, __pyx_L1_error)
39409 __Pyx_GOTREF(__pyx_tuple__179);
39410 __Pyx_GIVEREF(__pyx_tuple__179);
39411 __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_29, 6211, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 6211, __pyx_L1_error)
39420 __pyx_tuple__181 = PyTuple_Pack(15, __pyx_n_s_isDiffusiveFluxBoundary, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 6245, __pyx_L1_error)
39421 __Pyx_GOTREF(__pyx_tuple__181);
39422 __Pyx_GIVEREF(__pyx_tuple__181);
39423 __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_5, 6245, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 6245, __pyx_L1_error)
39432 __pyx_tuple__183 = PyTuple_Pack(17, __pyx_n_s_isDiffusiveFluxBoundary, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 6303, __pyx_L1_error)
39433 __Pyx_GOTREF(__pyx_tuple__183);
39434 __Pyx_GIVEREF(__pyx_tuple__183);
39435 __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_6, 6303, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 6303, __pyx_L1_error)
39444 __pyx_tuple__185 = PyTuple_Pack(20, __pyx_n_s_isDiffusiveFluxBoundary, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian_exterior, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 6366, __pyx_L1_error)
39445 __Pyx_GOTREF(__pyx_tuple__185);
39446 __Pyx_GIVEREF(__pyx_tuple__185);
39447 __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(20, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_5, 6366, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 6366, __pyx_L1_error)
39456 __pyx_tuple__187 = PyTuple_Pack(22, __pyx_n_s_isDiffusiveFluxBoundary, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_V, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_v, __pyx_n_s_penalty, __pyx_n_s_fluxJacobian_exterior, __pyx_n_s_fluxJacobian_eb);
if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 6406, __pyx_L1_error)
39457 __Pyx_GOTREF(__pyx_tuple__187);
39458 __Pyx_GIVEREF(__pyx_tuple__187);
39459 __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(22, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_6, 6406, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 6406, __pyx_L1_error)
39468 __pyx_tuple__189 = PyTuple_Pack(15, __pyx_n_s_speedEvalFlag, __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_H, __pyx_n_s_bc_dH, __pyx_n_s_u, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_flux, __pyx_n_s_dflux);
if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 6450, __pyx_L1_error)
39469 __Pyx_GOTREF(__pyx_tuple__189);
39470 __Pyx_GIVEREF(__pyx_tuple__189);
39471 __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateExteriorLesaintRaviartN, 6450, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 6450, __pyx_L1_error)
39480 __pyx_tuple__191 = PyTuple_Pack(18, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_speedEvalFlag, __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_H, __pyx_n_s_bc_dH, __pyx_n_s_u, __pyx_n_s_H, __pyx_n_s_dH, __pyx_n_s_flux, __pyx_n_s_dflux);
if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 6504, __pyx_L1_error)
39481 __Pyx_GOTREF(__pyx_tuple__191);
39482 __Pyx_GIVEREF(__pyx_tuple__191);
39483 __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorLesaintRa, 6504, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 6504, __pyx_L1_error)
39492 __pyx_tuple__193 = PyTuple_Pack(28, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_sw, __pyx_n_s_isDOFBoundary_psiw, __pyx_n_s_n, __pyx_n_s_bc_sw, __pyx_n_s_bc_psiw, __pyx_n_s_bc_fw, __pyx_n_s_bc_dfw_dsw, __pyx_n_s_bc_dfw_dpsiw, __pyx_n_s_bc_fn, __pyx_n_s_bc_dfn_dsw, __pyx_n_s_bc_dfn_dpsiw, __pyx_n_s_sw, __pyx_n_s_psiw, __pyx_n_s_fw, __pyx_n_s_dfw_dsw, __pyx_n_s_dfw_dpsiw, __pyx_n_s_fn, __pyx_n_s_dfn_dsw, __pyx_n_s_dfn_dpsiw, __pyx_n_s_fluxw, __pyx_n_s_dfluxw_dsw, __pyx_n_s_dfluxw_dpsiw, __pyx_n_s_fluxn, __pyx_n_s_dfluxn_dsw, __pyx_n_s_dfluxn_dpsiw);
if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 6540, __pyx_L1_error)
39493 __Pyx_GOTREF(__pyx_tuple__193);
39494 __Pyx_GIVEREF(__pyx_tuple__193);
39495 __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(28, 0, 28, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_30, 6540, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 6540, __pyx_L1_error)
39504 __pyx_tuple__195 = PyTuple_Pack(15, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_n, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_penalty, __pyx_n_s_diffusiveFlux);
if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 6602, __pyx_L1_error)
39505 __Pyx_GOTREF(__pyx_tuple__195);
39506 __Pyx_GIVEREF(__pyx_tuple__195);
39507 __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_31, 6602, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 6602, __pyx_L1_error)
39516 __pyx_tuple__197 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_n, __pyx_n_s_bc_a, __pyx_n_s_bc_grad_phi, __pyx_n_s_bc_psi_w, __pyx_n_s_bc_psi_n, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_psi_w, __pyx_n_s_psi_n, __pyx_n_s_penalty, __pyx_n_s_diffusiveFlux);
if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 6638, __pyx_L1_error)
39517 __Pyx_GOTREF(__pyx_tuple__197);
39518 __Pyx_GIVEREF(__pyx_tuple__197);
39519 __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_32, 6638, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 6638, __pyx_L1_error)
39528 __pyx_tuple__199 = PyTuple_Pack(19, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_fluxBoundaryFlag, __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);
if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 6678, __pyx_L1_error)
39529 __Pyx_GOTREF(__pyx_tuple__199);
39530 __Pyx_GIVEREF(__pyx_tuple__199);
39531 __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateExteriorNumericalDiffusive_7, 6678, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 6678, __pyx_L1_error)
39540 __pyx_tuple__201 = PyTuple_Pack(23, __pyx_n_s_scale_penalty, __pyx_n_s_penalty_floor, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary, __pyx_n_s_fluxBoundaryFlag, __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);
if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 6723, __pyx_L1_error)
39541 __Pyx_GOTREF(__pyx_tuple__201);
39542 __Pyx_GIVEREF(__pyx_tuple__201);
39543 __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(23, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_updateGlobalExteriorNumericalDif_7, 6723, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 6723, __pyx_L1_error)
39552 __pyx_tuple__203 = PyTuple_Pack(21, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 6769, __pyx_L1_error)
39553 __Pyx_GOTREF(__pyx_tuple__203);
39554 __Pyx_GIVEREF(__pyx_tuple__203);
39555 __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(21, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_33, 6769, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 6769, __pyx_L1_error)
39564 __pyx_tuple__205 = PyTuple_Pack(26, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isDOFBoundary_p, __pyx_n_s_isDOFBoundary_u, __pyx_n_s_isDOFBoundary_v, __pyx_n_s_isDOFBoundary_w, __pyx_n_s_n, __pyx_n_s_bc_p, __pyx_n_s_bc_f_mass, __pyx_n_s_p, __pyx_n_s_f_mass, __pyx_n_s_df_mass_du, __pyx_n_s_df_mass_dv, __pyx_n_s_df_mass_dw, __pyx_n_s_flux_mass, __pyx_n_s_flux_umom, __pyx_n_s_flux_vmom, __pyx_n_s_flux_wmom, __pyx_n_s_dflux_mass_du, __pyx_n_s_dflux_mass_dv, __pyx_n_s_dflux_mass_dw, __pyx_n_s_dflux_umom_dp, __pyx_n_s_dflux_vmom_dp, __pyx_n_s_dflux_wmom_dp, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 6814, __pyx_L1_error)
39565 __Pyx_GOTREF(__pyx_tuple__205);
39566 __Pyx_GIVEREF(__pyx_tuple__205);
39567 __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_calculateGlobalExteriorNumerical_34, 6814, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 6814, __pyx_L1_error)
39576 __pyx_tuple__207 = PyTuple_Pack(13, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isSeepageFace, __pyx_n_s_isDOFBoundary, __pyx_n_s_epsFact, __pyx_n_s_elementDiameters, __pyx_n_s_g, __pyx_n_s_n, __pyx_n_s_grad_u, __pyx_n_s_u, __pyx_n_s_advectiveFlux, __pyx_n_s_diffusiveFlux);
if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 6869, __pyx_L1_error)
39577 __Pyx_GOTREF(__pyx_tuple__207);
39578 __Pyx_GIVEREF(__pyx_tuple__207);
39579 __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(13, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_applySeepageFace, 6869, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 6869, __pyx_L1_error)
39588 __pyx_tuple__209 = PyTuple_Pack(14, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_isSeepageFace, __pyx_n_s_epsFact, __pyx_n_s_elementDiameters, __pyx_n_s_g, __pyx_n_s_n, __pyx_n_s_grad_u, __pyx_n_s_u, __pyx_n_s_advectiveFlux, __pyx_n_s_diffusiveFlux, __pyx_n_s_v, __pyx_n_s_fluxJacobian);
if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 6898, __pyx_L1_error)
39589 __Pyx_GOTREF(__pyx_tuple__209);
39590 __Pyx_GIVEREF(__pyx_tuple__209);
39591 __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(14, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cnumericalFlux_pyx, __pyx_n_s_applySeepageFaceJacobian, 6898, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 6898, __pyx_L1_error)
39592 __Pyx_RefNannyFinishContext();
39595 __Pyx_RefNannyFinishContext();
39599 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
39600 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
39601 __pyx_int_0 = PyInt_FromLong(0);
if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
39602 __pyx_int_1 = PyInt_FromLong(1);
if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
39603 __pyx_int_3 = PyInt_FromLong(3);
if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
39604 __pyx_int_4 = PyInt_FromLong(4);
if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
39610 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
39611 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
39612 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
39613 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
39614 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
39615 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
39616 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
39618 static int __Pyx_modinit_global_init_code(
void) {
39619 __Pyx_RefNannyDeclarations
39620 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
39622 __Pyx_RefNannyFinishContext();
39626 static int __Pyx_modinit_variable_export_code(
void) {
39627 __Pyx_RefNannyDeclarations
39628 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
39630 __Pyx_RefNannyFinishContext();
39634 static int __Pyx_modinit_function_export_code(
void) {
39635 __Pyx_RefNannyDeclarations
39636 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
39638 __Pyx_RefNannyFinishContext();
39642 static int __Pyx_modinit_type_init_code(
void) {
39643 __Pyx_RefNannyDeclarations
39644 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
39646 __Pyx_RefNannyFinishContext();
39650 static int __Pyx_modinit_type_import_code(
void) {
39651 __Pyx_RefNannyDeclarations
39652 PyObject *__pyx_t_1 = NULL;
39653 int __pyx_lineno = 0;
39654 const char *__pyx_filename = NULL;
39655 int __pyx_clineno = 0;
39656 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
39658 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
39659 __Pyx_GOTREF(__pyx_t_1);
39660 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
39661 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
39662 sizeof(PyTypeObject),
39664 sizeof(PyHeapTypeObject),
39666 __Pyx_ImportType_CheckSize_Warn);
39667 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
39668 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39669 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 200, __pyx_L1_error)
39670 __Pyx_GOTREF(__pyx_t_1);
39671 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
39672 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(1, 200, __pyx_L1_error)
39673 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
39674 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(1, 223, __pyx_L1_error)
39675 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
39676 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(1, 227, __pyx_L1_error)
39677 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
39678 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(1, 239, __pyx_L1_error)
39679 __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1,
"numpy",
"generic",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39680 if (!__pyx_ptype_5numpy_generic) __PYX_ERR(1, 771, __pyx_L1_error)
39681 __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1,
"numpy",
"number",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39682 if (!__pyx_ptype_5numpy_number) __PYX_ERR(1, 773, __pyx_L1_error)
39683 __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1,
"numpy",
"integer",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39684 if (!__pyx_ptype_5numpy_integer) __PYX_ERR(1, 775, __pyx_L1_error)
39685 __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"signedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39686 if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(1, 777, __pyx_L1_error)
39687 __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"unsignedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39688 if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(1, 779, __pyx_L1_error)
39689 __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1,
"numpy",
"inexact",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39690 if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(1, 781, __pyx_L1_error)
39691 __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"floating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39692 if (!__pyx_ptype_5numpy_floating) __PYX_ERR(1, 783, __pyx_L1_error)
39693 __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"complexfloating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39694 if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(1, 785, __pyx_L1_error)
39695 __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flexible",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39696 if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(1, 787, __pyx_L1_error)
39697 __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1,
"numpy",
"character",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
39698 if (!__pyx_ptype_5numpy_character) __PYX_ERR(1, 789, __pyx_L1_error)
39699 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
39700 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(1, 827, __pyx_L1_error)
39701 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39702 __Pyx_RefNannyFinishContext();
39705 __Pyx_XDECREF(__pyx_t_1);
39706 __Pyx_RefNannyFinishContext();
39710 static int __Pyx_modinit_variable_import_code(
void) {
39711 __Pyx_RefNannyDeclarations
39712 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
39714 __Pyx_RefNannyFinishContext();
39718 static int __Pyx_modinit_function_import_code(
void) {
39719 __Pyx_RefNannyDeclarations
39720 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
39722 __Pyx_RefNannyFinishContext();
39727 #ifndef CYTHON_NO_PYINIT_EXPORT
39728 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
39729 #elif PY_MAJOR_VERSION < 3
39731 #define __Pyx_PyMODINIT_FUNC extern "C" void
39733 #define __Pyx_PyMODINIT_FUNC void
39737 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
39739 #define __Pyx_PyMODINIT_FUNC PyObject *
39744 #if PY_MAJOR_VERSION < 3
39745 __Pyx_PyMODINIT_FUNC initcnumericalFlux(
void) CYTHON_SMALL_CODE;
39746 __Pyx_PyMODINIT_FUNC initcnumericalFlux(
void)
39748 __Pyx_PyMODINIT_FUNC PyInit_cnumericalFlux(
void) CYTHON_SMALL_CODE;
39749 __Pyx_PyMODINIT_FUNC PyInit_cnumericalFlux(
void)
39750 #if CYTHON_PEP489_MULTI_PHASE_INIT
39752 return PyModuleDef_Init(&__pyx_moduledef);
39754 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
39755 #if PY_VERSION_HEX >= 0x030700A1
39756 static PY_INT64_T main_interpreter_id = -1;
39757 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
39758 if (main_interpreter_id == -1) {
39759 main_interpreter_id = current_id;
39760 return (unlikely(current_id == -1)) ? -1 : 0;
39761 }
else if (unlikely(main_interpreter_id != current_id))
39763 static PyInterpreterState *main_interpreter = NULL;
39764 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
39765 if (!main_interpreter) {
39766 main_interpreter = current_interpreter;
39767 }
else if (unlikely(main_interpreter != current_interpreter))
39772 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
39777 static CYTHON_SMALL_CODE
int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict,
const char* from_name,
const char* to_name,
int allow_none) {
39778 PyObject *value = PyObject_GetAttrString(spec, from_name);
39780 if (likely(value)) {
39781 if (allow_none || value != Py_None) {
39782 result = PyDict_SetItemString(moddict, to_name, value);
39785 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
39792 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
39793 PyObject *module = NULL, *moddict, *modname;
39794 if (__Pyx_check_single_interpreter())
39797 return __Pyx_NewRef(__pyx_m);
39798 modname = PyObject_GetAttrString(spec,
"name");
39799 if (unlikely(!modname))
goto bad;
39800 module = PyModule_NewObject(modname);
39801 Py_DECREF(modname);
39802 if (unlikely(!module))
goto bad;
39803 moddict = PyModule_GetDict(module);
39804 if (unlikely(!moddict))
goto bad;
39805 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
39806 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
39807 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
39808 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
39811 Py_XDECREF(module);
39816 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_cnumericalFlux(PyObject *__pyx_pyinit_module)
39820 PyObject *__pyx_t_1 = NULL;
39821 PyObject *__pyx_t_2 = NULL;
39822 int __pyx_lineno = 0;
39823 const char *__pyx_filename = NULL;
39824 int __pyx_clineno = 0;
39825 __Pyx_RefNannyDeclarations
39826 #if CYTHON_PEP489_MULTI_PHASE_INIT
39828 if (__pyx_m == __pyx_pyinit_module)
return 0;
39829 PyErr_SetString(PyExc_RuntimeError,
"Module 'cnumericalFlux' has already been imported. Re-initialisation is not supported.");
39832 #elif PY_MAJOR_VERSION >= 3
39833 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
39835 #if CYTHON_REFNANNY
39836 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
39837 if (!__Pyx_RefNanny) {
39839 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
39840 if (!__Pyx_RefNanny)
39841 Py_FatalError(
"failed to import 'refnanny' module");
39844 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_cnumericalFlux(void)", 0);
39845 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39846 #ifdef __Pxy_PyFrame_Initialize_Offsets
39847 __Pxy_PyFrame_Initialize_Offsets();
39849 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
39850 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
39851 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
39852 #ifdef __Pyx_CyFunction_USED
39853 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39855 #ifdef __Pyx_FusedFunction_USED
39856 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39858 #ifdef __Pyx_Coroutine_USED
39859 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39861 #ifdef __Pyx_Generator_USED
39862 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39864 #ifdef __Pyx_AsyncGen_USED
39865 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39867 #ifdef __Pyx_StopAsyncIteration_USED
39868 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39872 #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
39873 PyEval_InitThreads();
39876 #if CYTHON_PEP489_MULTI_PHASE_INIT
39877 __pyx_m = __pyx_pyinit_module;
39878 Py_INCREF(__pyx_m);
39880 #if PY_MAJOR_VERSION < 3
39881 __pyx_m = Py_InitModule4(
"cnumericalFlux", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
39883 __pyx_m = PyModule_Create(&__pyx_moduledef);
39885 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
39887 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
39888 Py_INCREF(__pyx_d);
39889 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
39890 Py_INCREF(__pyx_b);
39891 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
39892 Py_INCREF(__pyx_cython_runtime);
39893 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
39895 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39896 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
39897 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39899 if (__pyx_module_is_main_cnumericalFlux) {
39900 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39902 #if PY_MAJOR_VERSION >= 3
39904 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
39905 if (!PyDict_GetItemString(modules,
"cnumericalFlux")) {
39906 if (unlikely(PyDict_SetItemString(modules,
"cnumericalFlux", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
39911 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39913 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39915 (void)__Pyx_modinit_global_init_code();
39916 (void)__Pyx_modinit_variable_export_code();
39917 (void)__Pyx_modinit_function_export_code();
39918 (void)__Pyx_modinit_type_init_code();
39919 if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
39920 (void)__Pyx_modinit_variable_import_code();
39921 (void)__Pyx_modinit_function_import_code();
39923 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
39924 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
39933 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
39934 __Pyx_GOTREF(__pyx_t_1);
39935 __Pyx_INCREF(__pyx_n_s_exit);
39936 __Pyx_GIVEREF(__pyx_n_s_exit);
39937 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_exit);
39938 __pyx_t_2 = __Pyx_Import(__pyx_n_s_sys, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2, __pyx_L1_error)
39939 __Pyx_GOTREF(__pyx_t_2);
39940 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39941 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_exit);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
39942 __Pyx_GOTREF(__pyx_t_1);
39943 if (PyDict_SetItem(__pyx_d, __pyx_n_s_exit, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
39944 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39945 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39954 __pyx_t_2 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3, __pyx_L1_error)
39955 __Pyx_GOTREF(__pyx_t_2);
39956 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_2) < 0) __PYX_ERR(0, 3, __pyx_L1_error)
39957 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39966 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_1calculateInteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2147, __pyx_L1_error)
39967 __Pyx_GOTREF(__pyx_t_2);
39968 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalAdvect, __pyx_t_2) < 0) __PYX_ERR(0, 2147, __pyx_L1_error)
39969 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39978 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_3calculateInteriorLesaintRaviartNumericalFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2170, __pyx_L1_error)
39979 __Pyx_GOTREF(__pyx_t_2);
39980 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorLesaintRaviartN, __pyx_t_2) < 0) __PYX_ERR(0, 2170, __pyx_L1_error)
39981 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39990 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_5calculateInteriorNumericalAdvectiveFluxConvexOneSonicPoint, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2196, __pyx_L1_error)
39991 __Pyx_GOTREF(__pyx_t_2);
39992 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalAdvect_2, __pyx_t_2) < 0) __PYX_ERR(0, 2196, __pyx_L1_error)
39993 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40002 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_7calculateInteriorNumericalAdvectiveFluxRusanov, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2224, __pyx_L1_error)
40003 __Pyx_GOTREF(__pyx_t_2);
40004 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalAdvect_3, __pyx_t_2) < 0) __PYX_ERR(0, 2224, __pyx_L1_error)
40005 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40014 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_9calculateInteriorNumericalDiffusiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
40015 __Pyx_GOTREF(__pyx_t_2);
40016 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalDiffus, __pyx_t_2) < 0) __PYX_ERR(0, 2254, __pyx_L1_error)
40017 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40026 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_11updateInteriorNumericalDiffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2280, __pyx_L1_error)
40027 __Pyx_GOTREF(__pyx_t_2);
40028 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorNumericalDiffusive, __pyx_t_2) < 0) __PYX_ERR(0, 2280, __pyx_L1_error)
40029 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40038 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_13calculateInteriorNumericalAdvectiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2317, __pyx_L1_error)
40039 __Pyx_GOTREF(__pyx_t_2);
40040 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalAdvect_4, __pyx_t_2) < 0) __PYX_ERR(0, 2317, __pyx_L1_error)
40041 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40050 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_15updateInteriorNumericalAdvectiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2342, __pyx_L1_error)
40051 __Pyx_GOTREF(__pyx_t_2);
40052 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorNumericalAdvective, __pyx_t_2) < 0) __PYX_ERR(0, 2342, __pyx_L1_error)
40053 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40062 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_17calculateInteriorNumericalAdvectiveFlux_average, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2361, __pyx_L1_error)
40063 __Pyx_GOTREF(__pyx_t_2);
40064 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalAdvect_5, __pyx_t_2) < 0) __PYX_ERR(0, 2361, __pyx_L1_error)
40065 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40074 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_19calculateExteriorNumericalAdvectiveFlux_NoBC, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2386, __pyx_L1_error)
40075 __Pyx_GOTREF(__pyx_t_2);
40076 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect, __pyx_t_2) < 0) __PYX_ERR(0, 2386, __pyx_L1_error)
40077 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40086 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_21calculateExteriorNumericalAdvectiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2424, __pyx_L1_error)
40087 __Pyx_GOTREF(__pyx_t_2);
40088 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_2, __pyx_t_2) < 0) __PYX_ERR(0, 2424, __pyx_L1_error)
40089 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40098 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_23updateExteriorNumericalAdvectiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2477, __pyx_L1_error)
40099 __Pyx_GOTREF(__pyx_t_2);
40100 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalAdvective, __pyx_t_2) < 0) __PYX_ERR(0, 2477, __pyx_L1_error)
40101 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40110 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_25calculateInteriorNumericalDiffusiveFlux_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2508, __pyx_L1_error)
40111 __Pyx_GOTREF(__pyx_t_2);
40112 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalDiffus_2, __pyx_t_2) < 0) __PYX_ERR(0, 2508, __pyx_L1_error)
40113 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40122 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_27updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2533, __pyx_L1_error)
40123 __Pyx_GOTREF(__pyx_t_2);
40124 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorNumericalDiffusive_2, __pyx_t_2) < 0) __PYX_ERR(0, 2533, __pyx_L1_error)
40125 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40134 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_29setInflowFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2568, __pyx_L1_error)
40135 __Pyx_GOTREF(__pyx_t_2);
40136 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setInflowFlux, __pyx_t_2) < 0) __PYX_ERR(0, 2568, __pyx_L1_error)
40137 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40146 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_31updateInteriorTwoSidedNumericalFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2576, __pyx_L1_error)
40147 __Pyx_GOTREF(__pyx_t_2);
40148 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorTwoSidedNumericalF, __pyx_t_2) < 0) __PYX_ERR(0, 2576, __pyx_L1_error)
40149 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40158 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_33calculateGlobalExteriorInflowNumericalAdvectiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2595, __pyx_L1_error)
40159 __Pyx_GOTREF(__pyx_t_2);
40160 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorInflowNum, __pyx_t_2) < 0) __PYX_ERR(0, 2595, __pyx_L1_error)
40161 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40170 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_35updateGlobalExteriorNumericalAdvectiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2618, __pyx_L1_error)
40171 __Pyx_GOTREF(__pyx_t_2);
40172 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalAdv, __pyx_t_2) < 0) __PYX_ERR(0, 2618, __pyx_L1_error)
40173 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40182 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_37calculateInteriorChengShuNumericalFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2638, __pyx_L1_error)
40183 __Pyx_GOTREF(__pyx_t_2);
40184 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorChengShuNumeric, __pyx_t_2) < 0) __PYX_ERR(0, 2638, __pyx_L1_error)
40185 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40194 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_39calculateGlobalExteriorNumericalFluxDarcyFCFF, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2669, __pyx_L1_error)
40195 __Pyx_GOTREF(__pyx_t_2);
40196 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical, __pyx_t_2) < 0) __PYX_ERR(0, 2669, __pyx_L1_error)
40197 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40206 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_41calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2732, __pyx_L1_error)
40207 __Pyx_GOTREF(__pyx_t_2);
40208 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_2, __pyx_t_2) < 0) __PYX_ERR(0, 2732, __pyx_L1_error)
40209 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40218 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_43updateExteriorNumericalStressFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2804, __pyx_L1_error)
40219 __Pyx_GOTREF(__pyx_t_2);
40220 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalStressFlu, __pyx_t_2) < 0) __PYX_ERR(0, 2804, __pyx_L1_error)
40221 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40230 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_45calculateExteriorNumericalFluxRichards_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2870, __pyx_L1_error)
40231 __Pyx_GOTREF(__pyx_t_2);
40232 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalFluxRi, __pyx_t_2) < 0) __PYX_ERR(0, 2870, __pyx_L1_error)
40233 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40242 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_47calculateExteriorNumericalFluxJacobianRichards_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2897, __pyx_L1_error)
40243 __Pyx_GOTREF(__pyx_t_2);
40244 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalFluxJa, __pyx_t_2) < 0) __PYX_ERR(0, 2897, __pyx_L1_error)
40245 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40254 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_49calculateExteriorNumericalAdvectiveFluxStokes2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2929, __pyx_L1_error)
40255 __Pyx_GOTREF(__pyx_t_2);
40256 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_3, __pyx_t_2) < 0) __PYX_ERR(0, 2929, __pyx_L1_error)
40257 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40266 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_51calculateInteriorNumericalDiffusiveFlux_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2976, __pyx_L1_error)
40267 __Pyx_GOTREF(__pyx_t_2);
40268 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalDiffus_3, __pyx_t_2) < 0) __PYX_ERR(0, 2976, __pyx_L1_error)
40269 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40278 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_53updateInteriorNumericalDiffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3007, __pyx_L1_error)
40279 __Pyx_GOTREF(__pyx_t_2);
40280 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorNumericalDiffusive_3, __pyx_t_2) < 0) __PYX_ERR(0, 3007, __pyx_L1_error)
40281 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40290 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_55updateExteriorNumericalDiffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3046, __pyx_L1_error)
40291 __Pyx_GOTREF(__pyx_t_2);
40292 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive, __pyx_t_2) < 0) __PYX_ERR(0, 3046, __pyx_L1_error)
40293 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40302 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_57updateExteriorNumericalDiffusiveFluxJacobian_free_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3113, __pyx_L1_error)
40303 __Pyx_GOTREF(__pyx_t_2);
40304 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_2, __pyx_t_2) < 0) __PYX_ERR(0, 3113, __pyx_L1_error)
40305 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40314 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_59calculateInteriorNumericalDiffusiveFlux_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3174, __pyx_L1_error)
40315 __Pyx_GOTREF(__pyx_t_2);
40316 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalDiffus_4, __pyx_t_2) < 0) __PYX_ERR(0, 3174, __pyx_L1_error)
40317 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40326 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_61updateInteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3202, __pyx_L1_error)
40327 __Pyx_GOTREF(__pyx_t_2);
40328 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorNumericalDiffusive_4, __pyx_t_2) < 0) __PYX_ERR(0, 3202, __pyx_L1_error)
40329 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40338 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_63calculateDiffusionMatrixSplittings_LDG_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3240, __pyx_L1_error)
40339 __Pyx_GOTREF(__pyx_t_2);
40340 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateDiffusionMatrixSplittin, __pyx_t_2) < 0) __PYX_ERR(0, 3240, __pyx_L1_error)
40341 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40350 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_65calculateGlobalExteriorNumericalFluxDarcyFCFF_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3264, __pyx_L1_error)
40351 __Pyx_GOTREF(__pyx_t_2);
40352 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_3, __pyx_t_2) < 0) __PYX_ERR(0, 3264, __pyx_L1_error)
40353 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40362 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_67calculateGlobalExteriorNumericalFluxDarcyFCFF_diffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3339, __pyx_L1_error)
40363 __Pyx_GOTREF(__pyx_t_2);
40364 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_4, __pyx_t_2) < 0) __PYX_ERR(0, 3339, __pyx_L1_error)
40365 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40374 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_69calculateGlobalExteriorNumericalFluxDarcyFC, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3423, __pyx_L1_error)
40375 __Pyx_GOTREF(__pyx_t_2);
40376 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_5, __pyx_t_2) < 0) __PYX_ERR(0, 3423, __pyx_L1_error)
40377 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40386 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_71calculateGlobalExteriorNumericalFluxDarcyFC_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3478, __pyx_L1_error)
40387 __Pyx_GOTREF(__pyx_t_2);
40388 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_6, __pyx_t_2) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
40389 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40398 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_73calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3541, __pyx_L1_error)
40399 __Pyx_GOTREF(__pyx_t_2);
40400 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_7, __pyx_t_2) < 0) __PYX_ERR(0, 3541, __pyx_L1_error)
40401 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40410 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_75calculateGlobalExteriorNumericalFluxDarcyFC_diffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3613, __pyx_L1_error)
40411 __Pyx_GOTREF(__pyx_t_2);
40412 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_8, __pyx_t_2) < 0) __PYX_ERR(0, 3613, __pyx_L1_error)
40413 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40422 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_77calculateGlobalExteriorNumericalFluxDarcyFCPP, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3693, __pyx_L1_error)
40423 __Pyx_GOTREF(__pyx_t_2);
40424 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_9, __pyx_t_2) < 0) __PYX_ERR(0, 3693, __pyx_L1_error)
40425 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40434 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_79calculateGlobalExteriorNumericalFluxDarcyFCPP_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3748, __pyx_L1_error)
40435 __Pyx_GOTREF(__pyx_t_2);
40436 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_10, __pyx_t_2) < 0) __PYX_ERR(0, 3748, __pyx_L1_error)
40437 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40446 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_81calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3811, __pyx_L1_error)
40447 __Pyx_GOTREF(__pyx_t_2);
40448 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_11, __pyx_t_2) < 0) __PYX_ERR(0, 3811, __pyx_L1_error)
40449 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40458 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_83calculateGlobalExteriorNumericalFluxDarcyFCPP_diffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3883, __pyx_L1_error)
40459 __Pyx_GOTREF(__pyx_t_2);
40460 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_12, __pyx_t_2) < 0) __PYX_ERR(0, 3883, __pyx_L1_error)
40461 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40470 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_85calculateInteriorNumericalFluxShallowWater_1D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3964, __pyx_L1_error)
40471 __Pyx_GOTREF(__pyx_t_2);
40472 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalFluxSh, __pyx_t_2) < 0) __PYX_ERR(0, 3964, __pyx_L1_error)
40473 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40482 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_87calculateExteriorNumericalFluxShallowWater_1D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3989, __pyx_L1_error)
40483 __Pyx_GOTREF(__pyx_t_2);
40484 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalFluxSh, __pyx_t_2) < 0) __PYX_ERR(0, 3989, __pyx_L1_error)
40485 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40494 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_89calculateInteriorNumericalFluxShallowWater_2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4012, __pyx_L1_error)
40495 __Pyx_GOTREF(__pyx_t_2);
40496 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalFluxSh_2, __pyx_t_2) < 0) __PYX_ERR(0, 4012, __pyx_L1_error)
40497 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40506 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_91calculateExteriorNumericalFluxShallowWater_2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4041, __pyx_L1_error)
40507 __Pyx_GOTREF(__pyx_t_2);
40508 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalFluxSh_2, __pyx_t_2) < 0) __PYX_ERR(0, 4041, __pyx_L1_error)
40509 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40518 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_93calculateInteriorNumericalFluxShallowWaterHLL_1D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4070, __pyx_L1_error)
40519 __Pyx_GOTREF(__pyx_t_2);
40520 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalFluxSh_3, __pyx_t_2) < 0) __PYX_ERR(0, 4070, __pyx_L1_error)
40521 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40530 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_95calculateExteriorNumericalFluxShallowWaterHLL_1D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4095, __pyx_L1_error)
40531 __Pyx_GOTREF(__pyx_t_2);
40532 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalFluxSh_3, __pyx_t_2) < 0) __PYX_ERR(0, 4095, __pyx_L1_error)
40533 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40542 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_97calculateGlobalExteriorNumericalStressFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4118, __pyx_L1_error)
40543 __Pyx_GOTREF(__pyx_t_2);
40544 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_13, __pyx_t_2) < 0) __PYX_ERR(0, 4118, __pyx_L1_error)
40545 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40554 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_99calculateExteriorNumericalAdvectiveFluxStokes3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4158, __pyx_L1_error)
40555 __Pyx_GOTREF(__pyx_t_2);
40556 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_4, __pyx_t_2) < 0) __PYX_ERR(0, 4158, __pyx_L1_error)
40557 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40566 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_101calculateExteriorNumericalAdvectiveFluxNavierStokes3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4216, __pyx_L1_error)
40567 __Pyx_GOTREF(__pyx_t_2);
40568 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_5, __pyx_t_2) < 0) __PYX_ERR(0, 4216, __pyx_L1_error)
40569 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40578 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_103calculateExteriorNumericalAdvectiveFluxRusanov, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4328, __pyx_L1_error)
40579 __Pyx_GOTREF(__pyx_t_2);
40580 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_6, __pyx_t_2) < 0) __PYX_ERR(0, 4328, __pyx_L1_error)
40581 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40590 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_105calculateGlobalExteriorNumericalAdvectiveFluxRusanov, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4387, __pyx_L1_error)
40591 __Pyx_GOTREF(__pyx_t_2);
40592 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_14, __pyx_t_2) < 0) __PYX_ERR(0, 4387, __pyx_L1_error)
40593 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40602 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_107calculateGlobalExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4427, __pyx_L1_error)
40603 __Pyx_GOTREF(__pyx_t_2);
40604 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_15, __pyx_t_2) < 0) __PYX_ERR(0, 4427, __pyx_L1_error)
40605 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40614 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_109calculateExteriorNumericalAdvectiveFluxRusanovWithEigenvalueBound, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4461, __pyx_L1_error)
40615 __Pyx_GOTREF(__pyx_t_2);
40616 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_7, __pyx_t_2) < 0) __PYX_ERR(0, 4461, __pyx_L1_error)
40617 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40626 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_111calculateExteriorNumericalDiffusiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4511, __pyx_L1_error)
40627 __Pyx_GOTREF(__pyx_t_2);
40628 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus, __pyx_t_2) < 0) __PYX_ERR(0, 4511, __pyx_L1_error)
40629 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40638 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_113calculateExteriorNumericalDiffusiveFlux_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4567, __pyx_L1_error)
40639 __Pyx_GOTREF(__pyx_t_2);
40640 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_2, __pyx_t_2) < 0) __PYX_ERR(0, 4567, __pyx_L1_error)
40641 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40650 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_115calculateGlobalExteriorNumericalDiffusiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4627, __pyx_L1_error)
40651 __Pyx_GOTREF(__pyx_t_2);
40652 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_16, __pyx_t_2) < 0) __PYX_ERR(0, 4627, __pyx_L1_error)
40653 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40662 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_117calculateExteriorNumericalDiffusiveFluxWithUpwinding_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4664, __pyx_L1_error)
40663 __Pyx_GOTREF(__pyx_t_2);
40664 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_3, __pyx_t_2) < 0) __PYX_ERR(0, 4664, __pyx_L1_error)
40665 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40674 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_119calculateGlobalExteriorNumericalDiffusiveFlux_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4705, __pyx_L1_error)
40675 __Pyx_GOTREF(__pyx_t_2);
40676 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_17, __pyx_t_2) < 0) __PYX_ERR(0, 4705, __pyx_L1_error)
40677 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40686 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_121calculateExteriorNumericalDiffusiveFlux_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4743, __pyx_L1_error)
40687 __Pyx_GOTREF(__pyx_t_2);
40688 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_4, __pyx_t_2) < 0) __PYX_ERR(0, 4743, __pyx_L1_error)
40689 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40698 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_123calculateExteriorNumericalDiffusiveFlux_free_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4793, __pyx_L1_error)
40699 __Pyx_GOTREF(__pyx_t_2);
40700 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_5, __pyx_t_2) < 0) __PYX_ERR(0, 4793, __pyx_L1_error)
40701 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40710 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_125calculateGlobalExteriorNumericalDiffusiveFlux_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4849, __pyx_L1_error)
40711 __Pyx_GOTREF(__pyx_t_2);
40712 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_18, __pyx_t_2) < 0) __PYX_ERR(0, 4849, __pyx_L1_error)
40713 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40722 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_127calculateGlobalExteriorNumericalDiffusiveFlux_free_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4881, __pyx_L1_error)
40723 __Pyx_GOTREF(__pyx_t_2);
40724 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_19, __pyx_t_2) < 0) __PYX_ERR(0, 4881, __pyx_L1_error)
40725 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40734 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_129updateExteriorNumericalDiffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4917, __pyx_L1_error)
40735 __Pyx_GOTREF(__pyx_t_2);
40736 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_3, __pyx_t_2) < 0) __PYX_ERR(0, 4917, __pyx_L1_error)
40737 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40746 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_131updateGlobalExteriorNumericalDiffusiveFluxJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4978, __pyx_L1_error)
40747 __Pyx_GOTREF(__pyx_t_2);
40748 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif, __pyx_t_2) < 0) __PYX_ERR(0, 4978, __pyx_L1_error)
40749 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40758 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_133updateGlobalExteriorNumericalDiffusiveFluxJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5018, __pyx_L1_error)
40759 __Pyx_GOTREF(__pyx_t_2);
40760 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_2, __pyx_t_2) < 0) __PYX_ERR(0, 5018, __pyx_L1_error)
40761 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40770 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_135updateExteriorNumericalDiffusiveFluxJacobian_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5062, __pyx_L1_error)
40771 __Pyx_GOTREF(__pyx_t_2);
40772 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_4, __pyx_t_2) < 0) __PYX_ERR(0, 5062, __pyx_L1_error)
40773 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40782 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_137updateGlobalExteriorNumericalDiffusiveFluxJacobian_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5117, __pyx_L1_error)
40783 __Pyx_GOTREF(__pyx_t_2);
40784 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_3, __pyx_t_2) < 0) __PYX_ERR(0, 5117, __pyx_L1_error)
40785 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40794 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_139updateGlobalExteriorNumericalDiffusiveFluxJacobian_free_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5153, __pyx_L1_error)
40795 __Pyx_GOTREF(__pyx_t_2);
40796 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_4, __pyx_t_2) < 0) __PYX_ERR(0, 5153, __pyx_L1_error)
40797 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40806 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_141calculateGlobalExteriorNumericalAdvectiveFlux_NoBC, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5193, __pyx_L1_error)
40807 __Pyx_GOTREF(__pyx_t_2);
40808 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_20, __pyx_t_2) < 0) __PYX_ERR(0, 5193, __pyx_L1_error)
40809 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40818 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_143calculateGlobalExteriorNumericalAdvectiveFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5217, __pyx_L1_error)
40819 __Pyx_GOTREF(__pyx_t_2);
40820 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_21, __pyx_t_2) < 0) __PYX_ERR(0, 5217, __pyx_L1_error)
40821 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40830 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_145calculateExteriorNumericalAdvectiveFlux_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5251, __pyx_L1_error)
40831 __Pyx_GOTREF(__pyx_t_2);
40832 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_8, __pyx_t_2) < 0) __PYX_ERR(0, 5251, __pyx_L1_error)
40833 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40842 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_147calculateGlobalExteriorNumericalAdvectiveFlux_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5303, __pyx_L1_error)
40843 __Pyx_GOTREF(__pyx_t_2);
40844 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_22, __pyx_t_2) < 0) __PYX_ERR(0, 5303, __pyx_L1_error)
40845 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40854 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_149calculateExteriorNumericalAdvectiveFluxStokesP2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5337, __pyx_L1_error)
40855 __Pyx_GOTREF(__pyx_t_2);
40856 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_9, __pyx_t_2) < 0) __PYX_ERR(0, 5337, __pyx_L1_error)
40857 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40866 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_151calculateExteriorNumericalAdvectiveFluxNavierStokes2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5418, __pyx_L1_error)
40867 __Pyx_GOTREF(__pyx_t_2);
40868 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_10, __pyx_t_2) < 0) __PYX_ERR(0, 5418, __pyx_L1_error)
40869 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40878 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_153calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5533, __pyx_L1_error)
40879 __Pyx_GOTREF(__pyx_t_2);
40880 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_23, __pyx_t_2) < 0) __PYX_ERR(0, 5533, __pyx_L1_error)
40881 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40890 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_155calculateGlobalExteriorNumericalAdvectiveFluxNavierStokes3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5613, __pyx_L1_error)
40891 __Pyx_GOTREF(__pyx_t_2);
40892 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_24, __pyx_t_2) < 0) __PYX_ERR(0, 5613, __pyx_L1_error)
40893 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40902 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_157calculateGlobalExteriorNumericalAdvectiveFluxStokesP2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5725, __pyx_L1_error)
40903 __Pyx_GOTREF(__pyx_t_2);
40904 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_25, __pyx_t_2) < 0) __PYX_ERR(0, 5725, __pyx_L1_error)
40905 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40914 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_159calculateExteriorNumericalAdvectiveFluxStokesP3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5779, __pyx_L1_error)
40915 __Pyx_GOTREF(__pyx_t_2);
40916 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_11, __pyx_t_2) < 0) __PYX_ERR(0, 5779, __pyx_L1_error)
40917 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40926 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_161calculateGlobalExteriorNumericalAdvectiveFluxStokesP3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5884, __pyx_L1_error)
40927 __Pyx_GOTREF(__pyx_t_2);
40928 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_26, __pyx_t_2) < 0) __PYX_ERR(0, 5884, __pyx_L1_error)
40929 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40938 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_163calculateExteriorNumericalAdvectiveFlux_average, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5954, __pyx_L1_error)
40939 __Pyx_GOTREF(__pyx_t_2);
40940 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalAdvect_12, __pyx_t_2) < 0) __PYX_ERR(0, 5954, __pyx_L1_error)
40941 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40950 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_165calculateGlobalExteriorNumericalAdvectiveFlux_average, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6005, __pyx_L1_error)
40951 __Pyx_GOTREF(__pyx_t_2);
40952 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_27, __pyx_t_2) < 0) __PYX_ERR(0, 6005, __pyx_L1_error)
40953 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40962 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_167updateExteriorNumericalAdvectiveFluxJacobian_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6039, __pyx_L1_error)
40963 __Pyx_GOTREF(__pyx_t_2);
40964 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalAdvective_2, __pyx_t_2) < 0) __PYX_ERR(0, 6039, __pyx_L1_error)
40965 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40974 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_169updateGlobalExteriorNumericalAdvectiveFluxJacobian_free, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6069, __pyx_L1_error)
40975 __Pyx_GOTREF(__pyx_t_2);
40976 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalAdv_2, __pyx_t_2) < 0) __PYX_ERR(0, 6069, __pyx_L1_error)
40977 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40986 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_171calculateExteriorNumericalDiffusiveFlux_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6089, __pyx_L1_error)
40987 __Pyx_GOTREF(__pyx_t_2);
40988 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_6, __pyx_t_2) < 0) __PYX_ERR(0, 6089, __pyx_L1_error)
40989 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40998 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_173calculateExteriorNumericalDiffusiveFlux_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6132, __pyx_L1_error)
40999 __Pyx_GOTREF(__pyx_t_2);
41000 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalDiffus_7, __pyx_t_2) < 0) __PYX_ERR(0, 6132, __pyx_L1_error)
41001 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41010 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_175calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6181, __pyx_L1_error)
41011 __Pyx_GOTREF(__pyx_t_2);
41012 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_28, __pyx_t_2) < 0) __PYX_ERR(0, 6181, __pyx_L1_error)
41013 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41022 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_177calculateGlobalExteriorNumericalDiffusiveFlux_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6211, __pyx_L1_error)
41023 __Pyx_GOTREF(__pyx_t_2);
41024 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_29, __pyx_t_2) < 0) __PYX_ERR(0, 6211, __pyx_L1_error)
41025 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41034 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_179updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6245, __pyx_L1_error)
41035 __Pyx_GOTREF(__pyx_t_2);
41036 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_5, __pyx_t_2) < 0) __PYX_ERR(0, 6245, __pyx_L1_error)
41037 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41046 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_181updateExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6303, __pyx_L1_error)
41047 __Pyx_GOTREF(__pyx_t_2);
41048 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_6, __pyx_t_2) < 0) __PYX_ERR(0, 6303, __pyx_L1_error)
41049 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41058 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_183updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6366, __pyx_L1_error)
41059 __Pyx_GOTREF(__pyx_t_2);
41060 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_5, __pyx_t_2) < 0) __PYX_ERR(0, 6366, __pyx_L1_error)
41061 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41070 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_185updateGlobalExteriorNumericalDiffusiveFluxJacobian_LDG_upwind_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6406, __pyx_L1_error)
41071 __Pyx_GOTREF(__pyx_t_2);
41072 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_6, __pyx_t_2) < 0) __PYX_ERR(0, 6406, __pyx_L1_error)
41073 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41082 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_187calculateExteriorLesaintRaviartNumericalFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6450, __pyx_L1_error)
41083 __Pyx_GOTREF(__pyx_t_2);
41084 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorLesaintRaviartN, __pyx_t_2) < 0) __PYX_ERR(0, 6450, __pyx_L1_error)
41085 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41094 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_189calculateGlobalExteriorLesaintRaviartNumericalFlux, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6504, __pyx_L1_error)
41095 __Pyx_GOTREF(__pyx_t_2);
41096 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorLesaintRa, __pyx_t_2) < 0) __PYX_ERR(0, 6504, __pyx_L1_error)
41097 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41106 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_191calculateGlobalExteriorNumericalAdvectiveFlux_DarcyFC, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6540, __pyx_L1_error)
41107 __Pyx_GOTREF(__pyx_t_2);
41108 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_30, __pyx_t_2) < 0) __PYX_ERR(0, 6540, __pyx_L1_error)
41109 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41118 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_193calculateGlobalExteriorNumericalFluxDarcySplitPressure, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6602, __pyx_L1_error)
41119 __Pyx_GOTREF(__pyx_t_2);
41120 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_31, __pyx_t_2) < 0) __PYX_ERR(0, 6602, __pyx_L1_error)
41121 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41130 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_195calculateGlobalExteriorNumericalFluxDarcySplitPressure_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6638, __pyx_L1_error)
41131 __Pyx_GOTREF(__pyx_t_2);
41132 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_32, __pyx_t_2) < 0) __PYX_ERR(0, 6638, __pyx_L1_error)
41133 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41142 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_197updateExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6678, __pyx_L1_error)
41143 __Pyx_GOTREF(__pyx_t_2);
41144 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorNumericalDiffusive_7, __pyx_t_2) < 0) __PYX_ERR(0, 6678, __pyx_L1_error)
41145 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41154 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_199updateGlobalExteriorNumericalDiffusiveFluxWithUpwindingJacobian_sd, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6723, __pyx_L1_error)
41155 __Pyx_GOTREF(__pyx_t_2);
41156 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalExteriorNumericalDif_7, __pyx_t_2) < 0) __PYX_ERR(0, 6723, __pyx_L1_error)
41157 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41166 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_201calculateGlobalExteriorNumericalAdvectiveFluxStokes2D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6769, __pyx_L1_error)
41167 __Pyx_GOTREF(__pyx_t_2);
41168 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_33, __pyx_t_2) < 0) __PYX_ERR(0, 6769, __pyx_L1_error)
41169 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41178 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_203calculateGlobalExteriorNumericalAdvectiveFluxStokes3D, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6814, __pyx_L1_error)
41179 __Pyx_GOTREF(__pyx_t_2);
41180 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorNumerical_34, __pyx_t_2) < 0) __PYX_ERR(0, 6814, __pyx_L1_error)
41181 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41190 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_205applySeepageFace, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6869, __pyx_L1_error)
41191 __Pyx_GOTREF(__pyx_t_2);
41192 if (PyDict_SetItem(__pyx_d, __pyx_n_s_applySeepageFace, __pyx_t_2) < 0) __PYX_ERR(0, 6869, __pyx_L1_error)
41193 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41202 __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_14cnumericalFlux_207applySeepageFaceJacobian, NULL, __pyx_n_s_cnumericalFlux);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6898, __pyx_L1_error)
41203 __Pyx_GOTREF(__pyx_t_2);
41204 if (PyDict_SetItem(__pyx_d, __pyx_n_s_applySeepageFaceJacobian, __pyx_t_2) < 0) __PYX_ERR(0, 6898, __pyx_L1_error)
41205 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41212 __pyx_t_2 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
41213 __Pyx_GOTREF(__pyx_t_2);
41214 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
41215 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41229 __Pyx_XDECREF(__pyx_t_1);
41230 __Pyx_XDECREF(__pyx_t_2);
41233 __Pyx_AddTraceback(
"init cnumericalFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
41236 }
else if (!PyErr_Occurred()) {
41237 PyErr_SetString(PyExc_ImportError,
"init cnumericalFlux");
41240 __Pyx_RefNannyFinishContext();
41241 #if CYTHON_PEP489_MULTI_PHASE_INIT
41242 return (__pyx_m != NULL) ? 0 : -1;
41243 #elif PY_MAJOR_VERSION >= 3
41252 #if CYTHON_REFNANNY
41253 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
41254 PyObject *m = NULL, *p = NULL;
41256 m = PyImport_ImportModule(modname);
41258 p = PyObject_GetAttrString(m,
"RefNannyAPI");
41260 r = PyLong_AsVoidPtr(p);
41264 return (__Pyx_RefNannyAPIStruct *)
r;
41269 static void __Pyx_RaiseArgtupleInvalid(
41270 const char* func_name,
41272 Py_ssize_t num_min,
41273 Py_ssize_t num_max,
41274 Py_ssize_t num_found)
41276 Py_ssize_t num_expected;
41277 const char *more_or_less;
41278 if (num_found < num_min) {
41279 num_expected = num_min;
41280 more_or_less =
"at least";
41282 num_expected = num_max;
41283 more_or_less =
"at most";
41286 more_or_less =
"exactly";
41288 PyErr_Format(PyExc_TypeError,
41289 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
41290 func_name, more_or_less, num_expected,
41291 (num_expected == 1) ?
"" :
"s", num_found);
41295 static void __Pyx_RaiseDoubleKeywordsError(
41296 const char* func_name,
41299 PyErr_Format(PyExc_TypeError,
41300 #
if PY_MAJOR_VERSION >= 3
41301 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
41303 "%s() got multiple values for keyword argument '%s'", func_name,
41304 PyString_AsString(kw_name));
41309 static int __Pyx_ParseOptionalKeywords(
41311 PyObject **argnames[],
41313 PyObject *values[],
41314 Py_ssize_t num_pos_args,
41315 const char* function_name)
41317 PyObject *key = 0, *value = 0;
41318 Py_ssize_t
pos = 0;
41320 PyObject*** first_kw_arg = argnames + num_pos_args;
41321 while (PyDict_Next(kwds, &
pos, &key, &value)) {
41322 name = first_kw_arg;
41323 while (*name && (**name != key)) name++;
41325 values[name-argnames] = value;
41328 name = first_kw_arg;
41329 #if PY_MAJOR_VERSION < 3
41330 if (likely(PyString_Check(key))) {
41332 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
41333 && _PyString_Eq(**name, key)) {
41334 values[name-argnames] = value;
41339 if (*name)
continue;
41341 PyObject*** argname = argnames;
41342 while (argname != first_kw_arg) {
41343 if ((**argname == key) || (
41344 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
41345 && _PyString_Eq(**argname, key))) {
41346 goto arg_passed_twice;
41353 if (likely(PyUnicode_Check(key))) {
41355 int cmp = (**name == key) ? 0 :
41356 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
41357 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
41359 PyUnicode_Compare(**name, key);
41360 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
41362 values[name-argnames] = value;
41367 if (*name)
continue;
41369 PyObject*** argname = argnames;
41370 while (argname != first_kw_arg) {
41371 int cmp = (**argname == key) ? 0 :
41372 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
41373 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
41375 PyUnicode_Compare(**argname, key);
41376 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
41377 if (cmp == 0)
goto arg_passed_twice;
41382 goto invalid_keyword_type;
41384 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
41386 goto invalid_keyword;
41391 __Pyx_RaiseDoubleKeywordsError(function_name, key);
41393 invalid_keyword_type:
41394 PyErr_Format(PyExc_TypeError,
41395 "%.200s() keywords must be strings", function_name);
41398 PyErr_Format(PyExc_TypeError,
41399 #
if PY_MAJOR_VERSION < 3
41400 "%.200s() got an unexpected keyword argument '%.200s'",
41401 function_name, PyString_AsString(key));
41403 "%s() got an unexpected keyword argument '%U'",
41404 function_name, key);
41411 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
41413 if (unlikely(!type)) {
41414 PyErr_SetString(PyExc_SystemError,
"Missing type object");
41418 #if PY_MAJOR_VERSION == 2
41419 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
41423 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
41425 PyErr_Format(PyExc_TypeError,
41426 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
41427 name, type->tp_name, Py_TYPE(obj)->tp_name);
41432 #if CYTHON_USE_TYPE_SLOTS
41433 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
41434 PyTypeObject* tp = Py_TYPE(obj);
41435 if (likely(tp->tp_getattro))
41436 return tp->tp_getattro(obj, attr_name);
41437 #if PY_MAJOR_VERSION < 3
41438 if (likely(tp->tp_getattr))
41439 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
41441 return PyObject_GetAttr(obj, attr_name);
41446 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
41448 if (!j)
return NULL;
41449 r = PyObject_GetItem(o, j);
41453 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
41454 CYTHON_NCP_UNUSED
int wraparound,
41455 CYTHON_NCP_UNUSED
int boundscheck) {
41456 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
41457 Py_ssize_t wrapped_i = i;
41458 if (wraparound & unlikely(i < 0)) {
41459 wrapped_i += PyList_GET_SIZE(o);
41461 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
41462 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
41466 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
41468 return PySequence_GetItem(o, i);
41471 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
41472 CYTHON_NCP_UNUSED
int wraparound,
41473 CYTHON_NCP_UNUSED
int boundscheck) {
41474 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
41475 Py_ssize_t wrapped_i = i;
41476 if (wraparound & unlikely(i < 0)) {
41477 wrapped_i += PyTuple_GET_SIZE(o);
41479 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
41480 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
41484 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
41486 return PySequence_GetItem(o, i);
41489 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list,
41490 CYTHON_NCP_UNUSED
int wraparound,
41491 CYTHON_NCP_UNUSED
int boundscheck) {
41492 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
41493 if (is_list || PyList_CheckExact(o)) {
41494 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
41495 if ((!boundscheck) || (likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o))))) {
41496 PyObject *
r = PyList_GET_ITEM(o,
n);
41501 else if (PyTuple_CheckExact(o)) {
41502 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
41503 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyTuple_GET_SIZE(o)))) {
41504 PyObject *
r = PyTuple_GET_ITEM(o,
n);
41509 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
41510 if (likely(m && m->sq_item)) {
41511 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
41512 Py_ssize_t l = m->sq_length(o);
41513 if (likely(l >= 0)) {
41516 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
41521 return m->sq_item(o, i);
41525 if (is_list || PySequence_Check(o)) {
41526 return PySequence_GetItem(o, i);
41529 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
41533 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
41534 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
41535 if (unlikely(!result)) {
41536 PyErr_Format(PyExc_NameError,
41537 #
if PY_MAJOR_VERSION >= 3
41538 "name '%U' is not defined", name);
41540 "name '%.200s' is not defined", PyString_AS_STRING(name));
41547 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
41548 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
41549 PyObject *dict = Py_TYPE(obj)->tp_dict;
41550 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
41552 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
41553 PyObject **dictptr = NULL;
41554 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
41556 #if CYTHON_COMPILING_IN_CPYTHON
41557 dictptr = (likely(offset > 0)) ? (PyObject **) ((
char *)obj + offset) : _PyObject_GetDictPtr(obj);
41559 dictptr = _PyObject_GetDictPtr(obj);
41562 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
41564 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
41565 PyObject *dict = Py_TYPE(obj)->tp_dict;
41566 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
41568 return obj_dict_version == __Pyx_get_object_dict_version(obj);
41573 #if CYTHON_USE_DICT_VERSIONS
41574 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
41576 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
41580 #if !CYTHON_AVOID_BORROWED_REFS
41581 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
41582 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
41583 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
41584 if (likely(result)) {
41585 return __Pyx_NewRef(result);
41586 }
else if (unlikely(PyErr_Occurred())) {
41590 result = PyDict_GetItem(__pyx_d, name);
41591 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
41592 if (likely(result)) {
41593 return __Pyx_NewRef(result);
41597 result = PyObject_GetItem(__pyx_d, name);
41598 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
41599 if (likely(result)) {
41600 return __Pyx_NewRef(result);
41604 return __Pyx_GetBuiltinName(name);
41608 #if CYTHON_FAST_PYCCALL
41609 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
41610 PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
41611 PyCFunction meth = PyCFunction_GET_FUNCTION(func);
41612 PyObject *
self = PyCFunction_GET_SELF(func);
41613 int flags = PyCFunction_GET_FLAGS(func);
41614 assert(PyCFunction_Check(func));
41615 assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
41616 assert(nargs >= 0);
41617 assert(nargs == 0 || args != NULL);
41621 assert(!PyErr_Occurred());
41622 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
41623 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self, args, nargs, NULL);
41625 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self, args, nargs);
41631 #if CYTHON_FAST_PYCALL
41632 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
41633 PyObject *globals) {
41635 PyThreadState *tstate = __Pyx_PyThreadState_Current;
41636 PyObject **fastlocals;
41639 assert(globals != NULL);
41644 assert(tstate != NULL);
41645 f = PyFrame_New(tstate, co, globals, NULL);
41649 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
41650 for (i = 0; i < na; i++) {
41652 fastlocals[i] = *args++;
41654 result = PyEval_EvalFrameEx(
f,0);
41655 ++tstate->recursion_depth;
41657 --tstate->recursion_depth;
41660 #if 1 || PY_VERSION_HEX < 0x030600B1
41661 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
41662 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
41663 PyObject *globals = PyFunction_GET_GLOBALS(func);
41664 PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
41666 #if PY_MAJOR_VERSION >= 3
41669 PyObject *kwtuple, **k;
41674 assert(kwargs == NULL || PyDict_Check(kwargs));
41675 nk = kwargs ? PyDict_Size(kwargs) : 0;
41676 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
41680 #
if PY_MAJOR_VERSION >= 3
41681 co->co_kwonlyargcount == 0 &&
41683 likely(kwargs == NULL || nk == 0) &&
41684 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
41685 if (argdefs == NULL && co->co_argcount == nargs) {
41686 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
41689 else if (nargs == 0 && argdefs != NULL
41690 && co->co_argcount == Py_SIZE(argdefs)) {
41693 args = &PyTuple_GET_ITEM(argdefs, 0);
41694 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
41698 if (kwargs != NULL) {
41700 kwtuple = PyTuple_New(2 * nk);
41701 if (kwtuple == NULL) {
41705 k = &PyTuple_GET_ITEM(kwtuple, 0);
41707 while (PyDict_Next(kwargs, &
pos, &k[i], &k[i+1])) {
41718 closure = PyFunction_GET_CLOSURE(func);
41719 #if PY_MAJOR_VERSION >= 3
41720 kwdefs = PyFunction_GET_KW_DEFAULTS(func);
41722 if (argdefs != NULL) {
41723 d = &PyTuple_GET_ITEM(argdefs, 0);
41724 nd = Py_SIZE(argdefs);
41730 #if PY_MAJOR_VERSION >= 3
41731 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
41734 d, (
int)nd, kwdefs, closure);
41736 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
41739 d, (
int)nd, closure);
41741 Py_XDECREF(kwtuple);
41743 Py_LeaveRecursiveCall();
41750 #if CYTHON_COMPILING_IN_CPYTHON
41751 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
41753 ternaryfunc call = Py_TYPE(func)->tp_call;
41754 if (unlikely(!call))
41755 return PyObject_Call(func, arg, kw);
41756 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
41758 result = (*call)(func, arg, kw);
41759 Py_LeaveRecursiveCall();
41760 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
41763 "NULL result without error in PyObject_Call");
41770 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2) {
41771 PyObject *args, *result = NULL;
41772 #if CYTHON_FAST_PYCALL
41773 if (PyFunction_Check(
function)) {
41774 PyObject *args[2] = {arg1, arg2};
41775 return __Pyx_PyFunction_FastCall(
function, args, 2);
41778 #if CYTHON_FAST_PYCCALL
41779 if (__Pyx_PyFastCFunction_Check(
function)) {
41780 PyObject *args[2] = {arg1, arg2};
41781 return __Pyx_PyCFunction_FastCall(
function, args, 2);
41784 args = PyTuple_New(2);
41785 if (unlikely(!args))
goto done;
41787 PyTuple_SET_ITEM(args, 0, arg1);
41789 PyTuple_SET_ITEM(args, 1, arg2);
41790 Py_INCREF(
function);
41791 result = __Pyx_PyObject_Call(
function, args, NULL);
41793 Py_DECREF(
function);
41799 #if CYTHON_COMPILING_IN_CPYTHON
41800 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
41801 PyObject *
self, *result;
41803 cfunc = PyCFunction_GET_FUNCTION(func);
41804 self = PyCFunction_GET_SELF(func);
41805 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
41807 result = cfunc(
self, arg);
41808 Py_LeaveRecursiveCall();
41809 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
41812 "NULL result without error in PyObject_Call");
41819 #if CYTHON_COMPILING_IN_CPYTHON
41820 static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
41822 PyObject *args = PyTuple_New(1);
41823 if (unlikely(!args))
return NULL;
41825 PyTuple_SET_ITEM(args, 0, arg);
41826 result = __Pyx_PyObject_Call(func, args, NULL);
41830 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
41831 #if CYTHON_FAST_PYCALL
41832 if (PyFunction_Check(func)) {
41833 return __Pyx_PyFunction_FastCall(func, &arg, 1);
41836 if (likely(PyCFunction_Check(func))) {
41837 if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
41838 return __Pyx_PyObject_CallMethO(func, arg);
41839 #if CYTHON_FAST_PYCCALL
41840 }
else if (__Pyx_PyFastCFunction_Check(func)) {
41841 return __Pyx_PyCFunction_FastCall(func, &arg, 1);
41845 return __Pyx__PyObject_CallOneArg(func, arg);
41848 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
41850 PyObject *args = PyTuple_Pack(1, arg);
41851 if (unlikely(!args))
return NULL;
41852 result = __Pyx_PyObject_Call(func, args, NULL);
41859 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval, CYTHON_UNUSED
long inplace) {
41863 #if PY_MAJOR_VERSION < 3
41864 if (likely(PyInt_CheckExact(op1))) {
41865 const long b = intval;
41866 long a = PyInt_AS_LONG(op1);
41867 if (a == b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
41870 #if CYTHON_USE_PYLONG_INTERNALS
41871 if (likely(PyLong_CheckExact(op1))) {
41873 unsigned long uintval;
41874 Py_ssize_t size = Py_SIZE(op1);
41875 const digit* digits = ((PyLongObject*)op1)->ob_digit;
41877 if (size == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
41878 }
else if (intval < 0) {
41887 uintval = (
unsigned long) intval;
41888 #if PyLong_SHIFT * 4 < SIZEOF_LONG*8
41889 if (uintval >> (PyLong_SHIFT * 4)) {
41890 unequal = (size != 5) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
41891 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
41894 #if PyLong_SHIFT * 3 < SIZEOF_LONG*8
41895 if (uintval >> (PyLong_SHIFT * 3)) {
41896 unequal = (size != 4) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
41897 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
41900 #if PyLong_SHIFT * 2 < SIZEOF_LONG*8
41901 if (uintval >> (PyLong_SHIFT * 2)) {
41902 unequal = (size != 3) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
41903 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
41906 #if PyLong_SHIFT * 1 < SIZEOF_LONG*8
41907 if (uintval >> (PyLong_SHIFT * 1)) {
41908 unequal = (size != 2) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
41909 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
41912 unequal = (size != 1) || (((
unsigned long) digits[0]) != (uintval & (
unsigned long) PyLong_MASK));
41913 if (unequal == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
41916 if (PyFloat_CheckExact(op1)) {
41917 const long b = intval;
41918 double a = PyFloat_AS_DOUBLE(op1);
41919 if ((
double)a == (
double)b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
41922 PyObject_RichCompare(op1, op2, Py_EQ));
41926 #if CYTHON_USE_EXC_INFO_STACK
41927 static _PyErr_StackItem *
41928 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
41930 _PyErr_StackItem *exc_info = tstate->exc_info;
41931 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
41932 exc_info->previous_item != NULL)
41934 exc_info = exc_info->previous_item;
41941 #if CYTHON_FAST_THREAD_STATE
41942 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
41943 #if CYTHON_USE_EXC_INFO_STACK
41944 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
41945 *type = exc_info->exc_type;
41946 *value = exc_info->exc_value;
41947 *tb = exc_info->exc_traceback;
41949 *type = tstate->exc_type;
41950 *value = tstate->exc_value;
41951 *tb = tstate->exc_traceback;
41954 Py_XINCREF(*value);
41957 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
41958 PyObject *tmp_type, *tmp_value, *tmp_tb;
41959 #if CYTHON_USE_EXC_INFO_STACK
41960 _PyErr_StackItem *exc_info = tstate->exc_info;
41961 tmp_type = exc_info->exc_type;
41962 tmp_value = exc_info->exc_value;
41963 tmp_tb = exc_info->exc_traceback;
41964 exc_info->exc_type = type;
41965 exc_info->exc_value = value;
41966 exc_info->exc_traceback = tb;
41968 tmp_type = tstate->exc_type;
41969 tmp_value = tstate->exc_value;
41970 tmp_tb = tstate->exc_traceback;
41971 tstate->exc_type = type;
41972 tstate->exc_value = value;
41973 tstate->exc_traceback = tb;
41975 Py_XDECREF(tmp_type);
41976 Py_XDECREF(tmp_value);
41977 Py_XDECREF(tmp_tb);
41982 #if CYTHON_FAST_THREAD_STATE
41983 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
41985 n = PyTuple_GET_SIZE(tuple);
41986 #if PY_MAJOR_VERSION >= 3
41987 for (i=0; i<
n; i++) {
41988 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
41991 for (i=0; i<
n; i++) {
41992 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
41996 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
41997 PyObject *exc_type = tstate->curexc_type;
41998 if (exc_type == err)
return 1;
41999 if (unlikely(!exc_type))
return 0;
42000 if (unlikely(PyTuple_Check(err)))
42001 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
42002 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
42007 #if CYTHON_FAST_THREAD_STATE
42008 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
42010 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
42013 PyObject *local_type, *local_value, *local_tb;
42014 #if CYTHON_FAST_THREAD_STATE
42015 PyObject *tmp_type, *tmp_value, *tmp_tb;
42016 local_type = tstate->curexc_type;
42017 local_value = tstate->curexc_value;
42018 local_tb = tstate->curexc_traceback;
42019 tstate->curexc_type = 0;
42020 tstate->curexc_value = 0;
42021 tstate->curexc_traceback = 0;
42023 PyErr_Fetch(&local_type, &local_value, &local_tb);
42025 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
42026 #if CYTHON_FAST_THREAD_STATE
42027 if (unlikely(tstate->curexc_type))
42029 if (unlikely(PyErr_Occurred()))
42032 #if PY_MAJOR_VERSION >= 3
42034 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
42038 Py_XINCREF(local_tb);
42039 Py_XINCREF(local_type);
42040 Py_XINCREF(local_value);
42041 *type = local_type;
42042 *value = local_value;
42044 #if CYTHON_FAST_THREAD_STATE
42045 #if CYTHON_USE_EXC_INFO_STACK
42047 _PyErr_StackItem *exc_info = tstate->exc_info;
42048 tmp_type = exc_info->exc_type;
42049 tmp_value = exc_info->exc_value;
42050 tmp_tb = exc_info->exc_traceback;
42051 exc_info->exc_type = local_type;
42052 exc_info->exc_value = local_value;
42053 exc_info->exc_traceback = local_tb;
42056 tmp_type = tstate->exc_type;
42057 tmp_value = tstate->exc_value;
42058 tmp_tb = tstate->exc_traceback;
42059 tstate->exc_type = local_type;
42060 tstate->exc_value = local_value;
42061 tstate->exc_traceback = local_tb;
42063 Py_XDECREF(tmp_type);
42064 Py_XDECREF(tmp_value);
42065 Py_XDECREF(tmp_tb);
42067 PyErr_SetExcInfo(local_type, local_value, local_tb);
42074 Py_XDECREF(local_type);
42075 Py_XDECREF(local_value);
42076 Py_XDECREF(local_tb);
42081 #if CYTHON_FAST_THREAD_STATE
42082 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
42083 PyObject *tmp_type, *tmp_value, *tmp_tb;
42084 tmp_type = tstate->curexc_type;
42085 tmp_value = tstate->curexc_value;
42086 tmp_tb = tstate->curexc_traceback;
42087 tstate->curexc_type = type;
42088 tstate->curexc_value = value;
42089 tstate->curexc_traceback = tb;
42090 Py_XDECREF(tmp_type);
42091 Py_XDECREF(tmp_value);
42092 Py_XDECREF(tmp_tb);
42094 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
42095 *type = tstate->curexc_type;
42096 *value = tstate->curexc_value;
42097 *tb = tstate->curexc_traceback;
42098 tstate->curexc_type = 0;
42099 tstate->curexc_value = 0;
42100 tstate->curexc_traceback = 0;
42105 #if PY_MAJOR_VERSION < 3
42106 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
42107 CYTHON_UNUSED PyObject *cause) {
42108 __Pyx_PyThreadState_declare
42110 if (!value || value == Py_None)
42114 if (!tb || tb == Py_None)
42118 if (!PyTraceBack_Check(tb)) {
42119 PyErr_SetString(PyExc_TypeError,
42120 "raise: arg 3 must be a traceback or None");
42124 if (PyType_Check(type)) {
42125 #if CYTHON_COMPILING_IN_PYPY
42127 Py_INCREF(Py_None);
42131 PyErr_NormalizeException(&type, &value, &tb);
42134 PyErr_SetString(PyExc_TypeError,
42135 "instance exception may not have a separate value");
42139 type = (PyObject*) Py_TYPE(type);
42141 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
42142 PyErr_SetString(PyExc_TypeError,
42143 "raise: exception class must be a subclass of BaseException");
42147 __Pyx_PyThreadState_assign
42148 __Pyx_ErrRestore(type, value, tb);
42157 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
42158 PyObject* owned_instance = NULL;
42159 if (tb == Py_None) {
42161 }
else if (tb && !PyTraceBack_Check(tb)) {
42162 PyErr_SetString(PyExc_TypeError,
42163 "raise: arg 3 must be a traceback or None");
42166 if (value == Py_None)
42168 if (PyExceptionInstance_Check(type)) {
42170 PyErr_SetString(PyExc_TypeError,
42171 "instance exception may not have a separate value");
42175 type = (PyObject*) Py_TYPE(value);
42176 }
else if (PyExceptionClass_Check(type)) {
42177 PyObject *instance_class = NULL;
42178 if (value && PyExceptionInstance_Check(value)) {
42179 instance_class = (PyObject*) Py_TYPE(value);
42180 if (instance_class != type) {
42181 int is_subclass = PyObject_IsSubclass(instance_class, type);
42182 if (!is_subclass) {
42183 instance_class = NULL;
42184 }
else if (unlikely(is_subclass == -1)) {
42187 type = instance_class;
42191 if (!instance_class) {
42194 args = PyTuple_New(0);
42195 else if (PyTuple_Check(value)) {
42199 args = PyTuple_Pack(1, value);
42202 owned_instance = PyObject_Call(type, args, NULL);
42204 if (!owned_instance)
42206 value = owned_instance;
42207 if (!PyExceptionInstance_Check(value)) {
42208 PyErr_Format(PyExc_TypeError,
42209 "calling %R should have returned an instance of "
42210 "BaseException, not %R",
42211 type, Py_TYPE(value));
42216 PyErr_SetString(PyExc_TypeError,
42217 "raise: exception class must be a subclass of BaseException");
42221 PyObject *fixed_cause;
42222 if (cause == Py_None) {
42223 fixed_cause = NULL;
42224 }
else if (PyExceptionClass_Check(cause)) {
42225 fixed_cause = PyObject_CallObject(cause, NULL);
42226 if (fixed_cause == NULL)
42228 }
else if (PyExceptionInstance_Check(cause)) {
42229 fixed_cause = cause;
42230 Py_INCREF(fixed_cause);
42232 PyErr_SetString(PyExc_TypeError,
42233 "exception causes must derive from "
42237 PyException_SetCause(value, fixed_cause);
42239 PyErr_SetObject(type, value);
42241 #if CYTHON_COMPILING_IN_PYPY
42242 PyObject *tmp_type, *tmp_value, *tmp_tb;
42243 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
42245 PyErr_Restore(tmp_type, tmp_value, tb);
42246 Py_XDECREF(tmp_tb);
42248 PyThreadState *tstate = __Pyx_PyThreadState_Current;
42249 PyObject* tmp_tb = tstate->curexc_traceback;
42250 if (tb != tmp_tb) {
42252 tstate->curexc_traceback = tb;
42253 Py_XDECREF(tmp_tb);
42258 Py_XDECREF(owned_instance);
42264 #ifndef __PYX_HAVE_RT_ImportType
42265 #define __PYX_HAVE_RT_ImportType
42266 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
42267 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
42269 PyObject *result = 0;
42271 Py_ssize_t basicsize;
42272 #ifdef Py_LIMITED_API
42273 PyObject *py_basicsize;
42275 result = PyObject_GetAttrString(module, class_name);
42278 if (!PyType_Check(result)) {
42279 PyErr_Format(PyExc_TypeError,
42280 "%.200s.%.200s is not a type object",
42281 module_name, class_name);
42284 #ifndef Py_LIMITED_API
42285 basicsize = ((PyTypeObject *)result)->tp_basicsize;
42287 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
42290 basicsize = PyLong_AsSsize_t(py_basicsize);
42291 Py_DECREF(py_basicsize);
42293 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
42296 if ((
size_t)basicsize < size) {
42297 PyErr_Format(PyExc_ValueError,
42298 "%.200s.%.200s size changed, may indicate binary incompatibility. "
42299 "Expected %zd from C header, got %zd from PyObject",
42300 module_name, class_name, size, basicsize);
42303 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
42304 PyErr_Format(PyExc_ValueError,
42305 "%.200s.%.200s size changed, may indicate binary incompatibility. "
42306 "Expected %zd from C header, got %zd from PyObject",
42307 module_name, class_name, size, basicsize);
42310 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
42311 PyOS_snprintf(warning,
sizeof(warning),
42312 "%s.%s size changed, may indicate binary incompatibility. "
42313 "Expected %zd from C header, got %zd from PyObject",
42314 module_name, class_name, size, basicsize);
42315 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
42317 return (PyTypeObject *)result;
42319 Py_XDECREF(result);
42325 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
42326 PyObject *empty_list = 0;
42327 PyObject *module = 0;
42328 PyObject *global_dict = 0;
42329 PyObject *empty_dict = 0;
42331 #if PY_MAJOR_VERSION < 3
42332 PyObject *py_import;
42333 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
42340 empty_list = PyList_New(0);
42345 global_dict = PyModule_GetDict(__pyx_m);
42348 empty_dict = PyDict_New();
42352 #if PY_MAJOR_VERSION >= 3
42354 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
42355 module = PyImport_ImportModuleLevelObject(
42356 name, global_dict, empty_dict, list, 1);
42358 if (!PyErr_ExceptionMatches(PyExc_ImportError))
42367 #if PY_MAJOR_VERSION < 3
42368 PyObject *py_level = PyInt_FromLong(level);
42371 module = PyObject_CallFunctionObjArgs(py_import,
42372 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
42373 Py_DECREF(py_level);
42375 module = PyImport_ImportModuleLevelObject(
42376 name, global_dict, empty_dict, list, level);
42381 #if PY_MAJOR_VERSION < 3
42382 Py_XDECREF(py_import);
42384 Py_XDECREF(empty_list);
42385 Py_XDECREF(empty_dict);
42390 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
42391 PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
42392 if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
42393 PyErr_Format(PyExc_ImportError,
42394 #
if PY_MAJOR_VERSION < 3
42395 "cannot import name %.230s", PyString_AS_STRING(name));
42397 "cannot import name %S", name);
42404 #ifndef CYTHON_CLINE_IN_TRACEBACK
42405 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
42406 PyObject *use_cline;
42407 PyObject *ptype, *pvalue, *ptraceback;
42408 #if CYTHON_COMPILING_IN_CPYTHON
42409 PyObject **cython_runtime_dict;
42411 if (unlikely(!__pyx_cython_runtime)) {
42414 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
42415 #if CYTHON_COMPILING_IN_CPYTHON
42416 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
42417 if (likely(cython_runtime_dict)) {
42418 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
42419 use_cline, *cython_runtime_dict,
42420 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
42424 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
42425 if (use_cline_obj) {
42426 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
42427 Py_DECREF(use_cline_obj);
42435 (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
42437 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
42440 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
42446 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
42447 int start = 0, mid = 0, end = count - 1;
42448 if (end >= 0 && code_line > entries[end].code_line) {
42451 while (start < end) {
42452 mid = start + (end - start) / 2;
42453 if (code_line < entries[mid].code_line) {
42455 }
else if (code_line > entries[mid].code_line) {
42461 if (code_line <= entries[mid].code_line) {
42467 static PyCodeObject *__pyx_find_code_object(
int code_line) {
42468 PyCodeObject* code_object;
42470 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
42473 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
42474 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
42477 code_object = __pyx_code_cache.entries[
pos].code_object;
42478 Py_INCREF(code_object);
42479 return code_object;
42481 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
42483 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
42484 if (unlikely(!code_line)) {
42487 if (unlikely(!entries)) {
42488 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
42489 if (likely(entries)) {
42490 __pyx_code_cache.entries = entries;
42491 __pyx_code_cache.max_count = 64;
42492 __pyx_code_cache.count = 1;
42493 entries[0].code_line = code_line;
42494 entries[0].code_object = code_object;
42495 Py_INCREF(code_object);
42499 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
42500 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
42501 PyCodeObject* tmp = entries[
pos].code_object;
42502 entries[
pos].code_object = code_object;
42506 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
42507 int new_max = __pyx_code_cache.max_count + 64;
42508 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
42509 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
42510 if (unlikely(!entries)) {
42513 __pyx_code_cache.entries = entries;
42514 __pyx_code_cache.max_count = new_max;
42516 for (i=__pyx_code_cache.count; i>
pos; i--) {
42517 entries[i] = entries[i-1];
42519 entries[
pos].code_line = code_line;
42520 entries[
pos].code_object = code_object;
42521 __pyx_code_cache.count++;
42522 Py_INCREF(code_object);
42526 #include "compile.h"
42527 #include "frameobject.h"
42528 #include "traceback.h"
42529 #if PY_VERSION_HEX >= 0x030b00a6
42530 #ifndef Py_BUILD_CORE
42531 #define Py_BUILD_CORE 1
42533 #include "internal/pycore_frame.h"
42535 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
42536 const char *funcname,
int c_line,
42537 int py_line,
const char *filename) {
42538 PyCodeObject *py_code = NULL;
42539 PyObject *py_funcname = NULL;
42540 #if PY_MAJOR_VERSION < 3
42541 PyObject *py_srcfile = NULL;
42542 py_srcfile = PyString_FromString(filename);
42543 if (!py_srcfile)
goto bad;
42546 #if PY_MAJOR_VERSION < 3
42547 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
42548 if (!py_funcname)
goto bad;
42550 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
42551 if (!py_funcname)
goto bad;
42552 funcname = PyUnicode_AsUTF8(py_funcname);
42553 if (!funcname)
goto bad;
42557 #if PY_MAJOR_VERSION < 3
42558 py_funcname = PyString_FromString(funcname);
42559 if (!py_funcname)
goto bad;
42562 #if PY_MAJOR_VERSION < 3
42563 py_code = __Pyx_PyCode_New(
42580 Py_DECREF(py_srcfile);
42582 py_code = PyCode_NewEmpty(filename, funcname, py_line);
42584 Py_XDECREF(py_funcname);
42587 Py_XDECREF(py_funcname);
42588 #if PY_MAJOR_VERSION < 3
42589 Py_XDECREF(py_srcfile);
42593 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
42594 int py_line,
const char *filename) {
42595 PyCodeObject *py_code = 0;
42596 PyFrameObject *py_frame = 0;
42597 PyThreadState *tstate = __Pyx_PyThreadState_Current;
42598 PyObject *ptype, *pvalue, *ptraceback;
42600 c_line = __Pyx_CLineForTraceback(tstate, c_line);
42602 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
42604 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
42605 py_code = __Pyx_CreateCodeObjectForTraceback(
42606 funcname, c_line, py_line, filename);
42611 Py_XDECREF(pvalue);
42612 Py_XDECREF(ptraceback);
42615 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
42616 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
42618 py_frame = PyFrame_New(
42624 if (!py_frame)
goto bad;
42625 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
42626 PyTraceBack_Here(py_frame);
42628 Py_XDECREF(py_code);
42629 Py_XDECREF(py_frame);
42633 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
42634 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
42635 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
42636 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
42637 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
42639 func_type value = func_value;\
42640 if (sizeof(target_type) < sizeof(func_type)) {\
42641 if (unlikely(value != (func_type) (target_type) value)) {\
42642 func_type zero = 0;\
42643 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
42644 return (target_type) -1;\
42645 if (is_unsigned && unlikely(value < zero))\
42646 goto raise_neg_overflow;\
42648 goto raise_overflow;\
42651 return (target_type) value;\
42655 #if CYTHON_CCOMPLEX
42657 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
42658 return ::std::complex< float >(x, y);
42661 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
42662 return x + y*(__pyx_t_float_complex)_Complex_I;
42666 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
42667 __pyx_t_float_complex
z;
42675 #if CYTHON_CCOMPLEX
42677 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42678 return (a.real == b.real) && (a.imag == b.imag);
42680 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42681 __pyx_t_float_complex
z;
42682 z.real = a.real + b.real;
42683 z.imag = a.imag + b.imag;
42686 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42687 __pyx_t_float_complex
z;
42688 z.real = a.real - b.real;
42689 z.imag = a.imag - b.imag;
42692 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42693 __pyx_t_float_complex
z;
42694 z.real = a.real * b.real - a.imag * b.imag;
42695 z.imag = a.real * b.imag + a.imag * b.real;
42699 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42701 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
42702 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
42703 if (b.real == 0 && b.imag == 0) {
42704 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
42706 float r = b.imag / b.real;
42707 float s = (float)(1.0) / (b.real + b.imag *
r);
42708 return __pyx_t_float_complex_from_parts(
42709 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
42712 float r = b.real / b.imag;
42713 float s = (float)(1.0) / (b.imag + b.real *
r);
42714 return __pyx_t_float_complex_from_parts(
42715 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
42719 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42721 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
42723 float denom = b.real * b.real + b.imag * b.imag;
42724 return __pyx_t_float_complex_from_parts(
42725 (a.real * b.real + a.imag * b.imag) / denom,
42726 (a.imag * b.real - a.real * b.imag) / denom);
42730 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
42731 __pyx_t_float_complex
z;
42736 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
42737 return (a.real == 0) && (a.imag == 0);
42739 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
42740 __pyx_t_float_complex
z;
42746 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
42747 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
42748 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
42750 return hypotf(
z.real,
z.imag);
42753 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
42754 __pyx_t_float_complex
z;
42755 float r, lnr, theta, z_r, z_theta;
42756 if (b.imag == 0 && b.real == (
int)b.real) {
42758 float denom = a.real * a.real + a.imag * a.imag;
42759 a.real = a.real / denom;
42760 a.imag = -a.imag / denom;
42763 switch ((
int)b.real) {
42771 return __Pyx_c_prod_float(a, a);
42773 z = __Pyx_c_prod_float(a, a);
42774 return __Pyx_c_prod_float(
z, a);
42776 z = __Pyx_c_prod_float(a, a);
42777 return __Pyx_c_prod_float(
z,
z);
42783 }
else if (b.imag == 0) {
42784 z.real = powf(a.real, b.real);
42787 }
else if (a.real > 0) {
42792 theta = atan2f(0.0, -1.0);
42795 r = __Pyx_c_abs_float(a);
42796 theta = atan2f(a.imag, a.real);
42799 z_r = expf(lnr * b.real - theta * b.imag);
42800 z_theta = theta * b.real + lnr * b.imag;
42801 z.real = z_r * cosf(z_theta);
42802 z.imag = z_r * sinf(z_theta);
42809 #if CYTHON_CCOMPLEX
42811 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
42812 return ::std::complex< double >(x, y);
42815 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
42816 return x + y*(__pyx_t_double_complex)_Complex_I;
42820 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
42821 __pyx_t_double_complex
z;
42829 #if CYTHON_CCOMPLEX
42831 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42832 return (a.real == b.real) && (a.imag == b.imag);
42834 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42835 __pyx_t_double_complex
z;
42836 z.real = a.real + b.real;
42837 z.imag = a.imag + b.imag;
42840 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42841 __pyx_t_double_complex
z;
42842 z.real = a.real - b.real;
42843 z.imag = a.imag - b.imag;
42846 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42847 __pyx_t_double_complex
z;
42848 z.real = a.real * b.real - a.imag * b.imag;
42849 z.imag = a.real * b.imag + a.imag * b.real;
42853 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42855 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
42856 }
else if (fabs(b.real) >= fabs(b.imag)) {
42857 if (b.real == 0 && b.imag == 0) {
42858 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
42860 double r = b.imag / b.real;
42861 double s = (double)(1.0) / (b.real + b.imag *
r);
42862 return __pyx_t_double_complex_from_parts(
42863 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
42866 double r = b.real / b.imag;
42867 double s = (double)(1.0) / (b.imag + b.real *
r);
42868 return __pyx_t_double_complex_from_parts(
42869 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
42873 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42875 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
42877 double denom = b.real * b.real + b.imag * b.imag;
42878 return __pyx_t_double_complex_from_parts(
42879 (a.real * b.real + a.imag * b.imag) / denom,
42880 (a.imag * b.real - a.real * b.imag) / denom);
42884 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
42885 __pyx_t_double_complex
z;
42890 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
42891 return (a.real == 0) && (a.imag == 0);
42893 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
42894 __pyx_t_double_complex
z;
42900 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
42901 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
42902 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
42904 return hypot(
z.real,
z.imag);
42907 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
42908 __pyx_t_double_complex
z;
42909 double r, lnr, theta, z_r, z_theta;
42910 if (b.imag == 0 && b.real == (
int)b.real) {
42912 double denom = a.real * a.real + a.imag * a.imag;
42913 a.real = a.real / denom;
42914 a.imag = -a.imag / denom;
42917 switch ((
int)b.real) {
42925 return __Pyx_c_prod_double(a, a);
42927 z = __Pyx_c_prod_double(a, a);
42928 return __Pyx_c_prod_double(
z, a);
42930 z = __Pyx_c_prod_double(a, a);
42931 return __Pyx_c_prod_double(
z,
z);
42937 }
else if (b.imag == 0) {
42938 z.real = pow(a.real, b.real);
42941 }
else if (a.real > 0) {
42946 theta = atan2(0.0, -1.0);
42949 r = __Pyx_c_abs_double(a);
42950 theta = atan2(a.imag, a.real);
42953 z_r = exp(lnr * b.real - theta * b.imag);
42954 z_theta = theta * b.real + lnr * b.imag;
42955 z.real = z_r * cos(z_theta);
42956 z.imag = z_r * sin(z_theta);
42963 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
42964 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
42965 #pragma GCC diagnostic push
42966 #pragma GCC diagnostic ignored "-Wconversion"
42968 const int neg_one = (int) -1, const_zero = (
int) 0;
42969 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
42970 #pragma GCC diagnostic pop
42972 const int is_unsigned = neg_one > const_zero;
42973 #if PY_MAJOR_VERSION < 3
42974 if (likely(PyInt_Check(x))) {
42975 if (
sizeof(
int) <
sizeof(long)) {
42976 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
42978 long val = PyInt_AS_LONG(x);
42979 if (is_unsigned && unlikely(val < 0)) {
42980 goto raise_neg_overflow;
42986 if (likely(PyLong_Check(x))) {
42988 #if CYTHON_USE_PYLONG_INTERNALS
42989 const digit* digits = ((PyLongObject*)x)->ob_digit;
42990 switch (Py_SIZE(x)) {
42991 case 0:
return (
int) 0;
42992 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
42994 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
42995 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
42996 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
42997 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
42998 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
43003 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
43004 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43005 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43006 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
43007 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
43012 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
43013 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43014 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43015 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
43016 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
43022 #if CYTHON_COMPILING_IN_CPYTHON
43023 if (unlikely(Py_SIZE(x) < 0)) {
43024 goto raise_neg_overflow;
43028 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
43029 if (unlikely(result < 0))
43031 if (unlikely(result == 1))
43032 goto raise_neg_overflow;
43035 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
43036 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
43037 #ifdef HAVE_LONG_LONG
43038 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
43039 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
43043 #if CYTHON_USE_PYLONG_INTERNALS
43044 const digit* digits = ((PyLongObject*)x)->ob_digit;
43045 switch (Py_SIZE(x)) {
43046 case 0:
return (
int) 0;
43047 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
43048 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
43050 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
43051 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
43052 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43053 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
43054 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
43059 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
43060 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
43061 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43062 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
43063 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
43068 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
43069 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43070 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43071 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
43072 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
43077 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
43078 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43079 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43080 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
43081 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
43086 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
43087 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43088 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43089 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
43090 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
43095 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
43096 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43097 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43098 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
43099 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
43105 if (
sizeof(
int) <=
sizeof(long)) {
43106 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
43107 #ifdef HAVE_LONG_LONG
43108 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
43109 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
43114 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
43115 PyErr_SetString(PyExc_RuntimeError,
43116 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
43119 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
43120 #if PY_MAJOR_VERSION < 3
43121 if (likely(
v) && !PyLong_Check(
v)) {
43123 v = PyNumber_Long(tmp);
43128 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
43129 unsigned char *bytes = (
unsigned char *)&val;
43130 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
43131 bytes,
sizeof(val),
43132 is_little, !is_unsigned);
43142 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
43143 if (!tmp)
return (
int) -1;
43144 val = __Pyx_PyInt_As_int(tmp);
43149 PyErr_SetString(PyExc_OverflowError,
43150 "value too large to convert to int");
43152 raise_neg_overflow:
43153 PyErr_SetString(PyExc_OverflowError,
43154 "can't convert negative value to int");
43159 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
43160 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
43161 #pragma GCC diagnostic push
43162 #pragma GCC diagnostic ignored "-Wconversion"
43164 const long neg_one = (long) -1, const_zero = (
long) 0;
43165 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
43166 #pragma GCC diagnostic pop
43168 const int is_unsigned = neg_one > const_zero;
43170 if (
sizeof(
long) <
sizeof(long)) {
43171 return PyInt_FromLong((
long) value);
43172 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
43173 return PyLong_FromUnsignedLong((
unsigned long) value);
43174 #ifdef HAVE_LONG_LONG
43175 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
43176 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
43180 if (
sizeof(
long) <=
sizeof(
long)) {
43181 return PyInt_FromLong((
long) value);
43182 #ifdef HAVE_LONG_LONG
43183 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
43184 return PyLong_FromLongLong((PY_LONG_LONG) value);
43189 int one = 1;
int little = (int)*(
unsigned char *)&one;
43190 unsigned char *bytes = (
unsigned char *)&value;
43191 return _PyLong_FromByteArray(bytes,
sizeof(
long),
43192 little, !is_unsigned);
43197 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
43198 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
43199 #pragma GCC diagnostic push
43200 #pragma GCC diagnostic ignored "-Wconversion"
43202 const long neg_one = (long) -1, const_zero = (
long) 0;
43203 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
43204 #pragma GCC diagnostic pop
43206 const int is_unsigned = neg_one > const_zero;
43207 #if PY_MAJOR_VERSION < 3
43208 if (likely(PyInt_Check(x))) {
43209 if (
sizeof(
long) <
sizeof(long)) {
43210 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
43212 long val = PyInt_AS_LONG(x);
43213 if (is_unsigned && unlikely(val < 0)) {
43214 goto raise_neg_overflow;
43220 if (likely(PyLong_Check(x))) {
43222 #if CYTHON_USE_PYLONG_INTERNALS
43223 const digit* digits = ((PyLongObject*)x)->ob_digit;
43224 switch (Py_SIZE(x)) {
43225 case 0:
return (
long) 0;
43226 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
43228 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
43229 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
43230 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43231 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
43232 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
43237 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
43238 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43239 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43240 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
43241 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
43246 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
43247 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43248 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43249 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
43250 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
43256 #if CYTHON_COMPILING_IN_CPYTHON
43257 if (unlikely(Py_SIZE(x) < 0)) {
43258 goto raise_neg_overflow;
43262 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
43263 if (unlikely(result < 0))
43265 if (unlikely(result == 1))
43266 goto raise_neg_overflow;
43269 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
43270 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
43271 #ifdef HAVE_LONG_LONG
43272 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
43273 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
43277 #if CYTHON_USE_PYLONG_INTERNALS
43278 const digit* digits = ((PyLongObject*)x)->ob_digit;
43279 switch (Py_SIZE(x)) {
43280 case 0:
return (
long) 0;
43281 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
43282 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
43284 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
43285 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
43286 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43287 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
43288 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
43293 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
43294 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
43295 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43296 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
43297 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
43302 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
43303 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43304 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43305 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
43306 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
43311 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
43312 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
43313 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43314 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
43315 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
43320 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
43321 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43322 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43323 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
43324 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
43329 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
43330 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
43331 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
43332 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
43333 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
43339 if (
sizeof(
long) <=
sizeof(long)) {
43340 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
43341 #ifdef HAVE_LONG_LONG
43342 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
43343 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
43348 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
43349 PyErr_SetString(PyExc_RuntimeError,
43350 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
43353 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
43354 #if PY_MAJOR_VERSION < 3
43355 if (likely(
v) && !PyLong_Check(
v)) {
43357 v = PyNumber_Long(tmp);
43362 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
43363 unsigned char *bytes = (
unsigned char *)&val;
43364 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
43365 bytes,
sizeof(val),
43366 is_little, !is_unsigned);
43376 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
43377 if (!tmp)
return (
long) -1;
43378 val = __Pyx_PyInt_As_long(tmp);
43383 PyErr_SetString(PyExc_OverflowError,
43384 "value too large to convert to long");
43386 raise_neg_overflow:
43387 PyErr_SetString(PyExc_OverflowError,
43388 "can't convert negative value to long");
43393 #if CYTHON_COMPILING_IN_CPYTHON
43394 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
43400 return b == &PyBaseObject_Type;
43402 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
43404 if (a == b)
return 1;
43408 n = PyTuple_GET_SIZE(mro);
43409 for (i = 0; i <
n; i++) {
43410 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
43415 return __Pyx_InBases(a, b);
43417 #if PY_MAJOR_VERSION == 2
43418 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
43419 PyObject *exception, *value, *tb;
43421 __Pyx_PyThreadState_declare
43422 __Pyx_PyThreadState_assign
43423 __Pyx_ErrFetch(&exception, &value, &tb);
43424 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
43425 if (unlikely(res == -1)) {
43426 PyErr_WriteUnraisable(err);
43430 res = PyObject_IsSubclass(err, exc_type2);
43431 if (unlikely(res == -1)) {
43432 PyErr_WriteUnraisable(err);
43436 __Pyx_ErrRestore(exception, value, tb);
43440 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
43441 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
43443 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
43448 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
43450 assert(PyExceptionClass_Check(exc_type));
43451 n = PyTuple_GET_SIZE(tuple);
43452 #if PY_MAJOR_VERSION >= 3
43453 for (i=0; i<
n; i++) {
43454 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
43457 for (i=0; i<
n; i++) {
43458 PyObject *t = PyTuple_GET_ITEM(tuple, i);
43459 #if PY_MAJOR_VERSION < 3
43460 if (likely(exc_type == t))
return 1;
43462 if (likely(PyExceptionClass_Check(t))) {
43463 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
43469 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
43470 if (likely(err == exc_type))
return 1;
43471 if (likely(PyExceptionClass_Check(err))) {
43472 if (likely(PyExceptionClass_Check(exc_type))) {
43473 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
43474 }
else if (likely(PyTuple_Check(exc_type))) {
43475 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
43479 return PyErr_GivenExceptionMatches(err, exc_type);
43481 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
43482 assert(PyExceptionClass_Check(exc_type1));
43483 assert(PyExceptionClass_Check(exc_type2));
43484 if (likely(err == exc_type1 || err == exc_type2))
return 1;
43485 if (likely(PyExceptionClass_Check(err))) {
43486 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
43488 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
43493 static int __Pyx_check_binary_version(
void) {
43495 int same=1, i, found_dot;
43496 const char* rt_from_call = Py_GetVersion();
43497 PyOS_snprintf(ctversion, 5,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
43499 for (i = 0; i < 4; i++) {
43500 if (!ctversion[i]) {
43501 same = (rt_from_call[i] <
'0' || rt_from_call[i] >
'9');
43504 if (rt_from_call[i] != ctversion[i]) {
43510 char rtversion[5] = {
'\0'};
43512 for (i=0; i<4; ++i) {
43513 if (rt_from_call[i] ==
'.') {
43514 if (found_dot)
break;
43516 }
else if (rt_from_call[i] <
'0' || rt_from_call[i] >
'9') {
43519 rtversion[i] = rt_from_call[i];
43521 PyOS_snprintf(message,
sizeof(message),
43522 "compiletime version %s of module '%.100s' "
43523 "does not match runtime version %s",
43524 ctversion, __Pyx_MODULE_NAME, rtversion);
43525 return PyErr_WarnEx(NULL, message, 1);
43531 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
43533 #if PY_MAJOR_VERSION < 3
43534 if (t->is_unicode) {
43535 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
43536 }
else if (t->intern) {
43537 *t->p = PyString_InternFromString(t->s);
43539 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
43542 if (t->is_unicode | t->is_str) {
43544 *t->p = PyUnicode_InternFromString(t->s);
43545 }
else if (t->encoding) {
43546 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
43548 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
43551 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
43556 if (PyObject_Hash(*t->p) == -1)
43563 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
43564 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
43566 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
43568 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
43570 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
43571 #if !CYTHON_PEP393_ENABLED
43572 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
43574 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
43575 if (!defenc)
return NULL;
43576 defenc_c = PyBytes_AS_STRING(defenc);
43577 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
43579 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
43581 for (
c = defenc_c;
c < end;
c++) {
43582 if ((
unsigned char) (*
c) >= 128) {
43583 PyUnicode_AsASCIIString(o);
43589 *length = PyBytes_GET_SIZE(defenc);
43593 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
43594 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
43595 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
43596 if (likely(PyUnicode_IS_ASCII(o))) {
43597 *length = PyUnicode_GET_LENGTH(o);
43598 return PyUnicode_AsUTF8(o);
43600 PyUnicode_AsASCIIString(o);
43604 return PyUnicode_AsUTF8AndSize(o, length);
43609 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
43610 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
43612 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
43613 __Pyx_sys_getdefaultencoding_not_ascii &&
43615 PyUnicode_Check(o)) {
43616 return __Pyx_PyUnicode_AsStringAndSize(o, length);
43619 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
43620 if (PyByteArray_Check(o)) {
43621 *length = PyByteArray_GET_SIZE(o);
43622 return PyByteArray_AS_STRING(o);
43627 int r = PyBytes_AsStringAndSize(o, &result, length);
43628 if (unlikely(
r < 0)) {
43635 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
43636 int is_true = x == Py_True;
43637 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
43638 else return PyObject_IsTrue(x);
43640 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
43642 if (unlikely(!x))
return -1;
43643 retval = __Pyx_PyObject_IsTrue(x);
43647 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
43648 #if PY_MAJOR_VERSION >= 3
43649 if (PyLong_Check(result)) {
43650 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
43651 "__int__ returned non-int (type %.200s). "
43652 "The ability to return an instance of a strict subclass of int "
43653 "is deprecated, and may be removed in a future version of Python.",
43654 Py_TYPE(result)->tp_name)) {
43661 PyErr_Format(PyExc_TypeError,
43662 "__%.4s__ returned non-%.4s (type %.200s)",
43663 type_name, type_name, Py_TYPE(result)->tp_name);
43667 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
43668 #if CYTHON_USE_TYPE_SLOTS
43669 PyNumberMethods *m;
43671 const char *name = NULL;
43672 PyObject *res = NULL;
43673 #if PY_MAJOR_VERSION < 3
43674 if (likely(PyInt_Check(x) || PyLong_Check(x)))
43676 if (likely(PyLong_Check(x)))
43678 return __Pyx_NewRef(x);
43679 #if CYTHON_USE_TYPE_SLOTS
43680 m = Py_TYPE(x)->tp_as_number;
43681 #if PY_MAJOR_VERSION < 3
43682 if (m && m->nb_int) {
43684 res = m->nb_int(x);
43686 else if (m && m->nb_long) {
43688 res = m->nb_long(x);
43691 if (likely(m && m->nb_int)) {
43693 res = m->nb_int(x);
43697 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
43698 res = PyNumber_Int(x);
43702 #if PY_MAJOR_VERSION < 3
43703 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
43705 if (unlikely(!PyLong_CheckExact(res))) {
43707 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
43710 else if (!PyErr_Occurred()) {
43711 PyErr_SetString(PyExc_TypeError,
43712 "an integer is required");
43716 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
43719 #if PY_MAJOR_VERSION < 3
43720 if (likely(PyInt_CheckExact(b))) {
43721 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
43722 return PyInt_AS_LONG(b);
43724 return PyInt_AsSsize_t(b);
43727 if (likely(PyLong_CheckExact(b))) {
43728 #if CYTHON_USE_PYLONG_INTERNALS
43729 const digit* digits = ((PyLongObject*)b)->ob_digit;
43730 const Py_ssize_t size = Py_SIZE(b);
43731 if (likely(__Pyx_sst_abs(size) <= 1)) {
43732 ival = likely(size) ? digits[0] : 0;
43733 if (size == -1) ival = -ival;
43738 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
43739 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
43743 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
43744 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
43748 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
43749 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
43753 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
43754 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
43758 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
43759 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
43763 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
43764 return -(Py_ssize_t) (((((((((
size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
43770 return PyLong_AsSsize_t(b);
43772 x = PyNumber_Index(b);
43774 ival = PyInt_AsSsize_t(x);
43778 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
43779 if (
sizeof(Py_hash_t) ==
sizeof(Py_ssize_t)) {
43780 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
43781 #if PY_MAJOR_VERSION < 3
43782 }
else if (likely(PyInt_CheckExact(o))) {
43783 return PyInt_AS_LONG(o);
43788 x = PyNumber_Index(o);
43790 ival = PyInt_AsLong(x);
43795 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
43796 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
43798 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
43799 return PyInt_FromSize_t(ival);