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__cpostprocessing
694 #define __PYX_HAVE_API__cpostprocessing
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/cpostprocessing.pyx",
944 #define IS_UNSIGNED(type) (((type) -1) > 0)
945 struct __Pyx_StructField_;
946 #define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
949 struct __Pyx_StructField_* fields;
957 typedef struct __Pyx_StructField_ {
958 __Pyx_TypeInfo* type;
963 __Pyx_StructField* field;
964 size_t parent_offset;
965 } __Pyx_BufFmt_StackElem;
967 __Pyx_StructField root;
968 __Pyx_BufFmt_StackElem* head;
970 size_t new_count, enc_count;
971 size_t struct_alignment;
977 } __Pyx_BufFmt_Context;
987 typedef npy_int8 __pyx_t_5numpy_int8_t;
996 typedef npy_int16 __pyx_t_5numpy_int16_t;
1005 typedef npy_int32 __pyx_t_5numpy_int32_t;
1014 typedef npy_int64 __pyx_t_5numpy_int64_t;
1023 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1032 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1041 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1050 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1059 typedef npy_float32 __pyx_t_5numpy_float32_t;
1068 typedef npy_float64 __pyx_t_5numpy_float64_t;
1077 typedef npy_long __pyx_t_5numpy_int_t;
1086 typedef npy_longlong __pyx_t_5numpy_long_t;
1095 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1104 typedef npy_ulong __pyx_t_5numpy_uint_t;
1113 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1122 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1131 typedef npy_intp __pyx_t_5numpy_intp_t;
1140 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1149 typedef npy_double __pyx_t_5numpy_float_t;
1158 typedef npy_double __pyx_t_5numpy_double_t;
1167 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1171 typedef ::std::complex< float > __pyx_t_float_complex;
1173 typedef float _Complex __pyx_t_float_complex;
1176 typedef struct {
float real, imag; } __pyx_t_float_complex;
1178 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1183 typedef ::std::complex< double > __pyx_t_double_complex;
1185 typedef double _Complex __pyx_t_double_complex;
1188 typedef struct {
double real, imag; } __pyx_t_double_complex;
1190 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1194 struct __pyx_obj_15cpostprocessing_NodeStarFactor;
1203 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1212 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1221 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1230 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1239 struct __pyx_obj_15cpostprocessing_NodeStarFactor {
1247 #ifndef CYTHON_REFNANNY
1248 #define CYTHON_REFNANNY 0
1252 void (*INCREF)(
void*, PyObject*, int);
1253 void (*DECREF)(
void*, PyObject*, int);
1254 void (*GOTREF)(
void*, PyObject*, int);
1255 void (*GIVEREF)(
void*, PyObject*, int);
1256 void* (*SetupContext)(
const char*, int,
const char*);
1257 void (*FinishContext)(
void**);
1258 } __Pyx_RefNannyAPIStruct;
1259 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1260 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
1261 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1263 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1265 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1266 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1267 PyGILState_Release(__pyx_gilstate_save);\
1269 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1272 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1273 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1275 #define __Pyx_RefNannyFinishContext()\
1276 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1277 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1278 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1279 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1280 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1281 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1282 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1283 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1284 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1286 #define __Pyx_RefNannyDeclarations
1287 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1288 #define __Pyx_RefNannyFinishContext()
1289 #define __Pyx_INCREF(r) Py_INCREF(r)
1290 #define __Pyx_DECREF(r) Py_DECREF(r)
1291 #define __Pyx_GOTREF(r)
1292 #define __Pyx_GIVEREF(r)
1293 #define __Pyx_XINCREF(r) Py_XINCREF(r)
1294 #define __Pyx_XDECREF(r) Py_XDECREF(r)
1295 #define __Pyx_XGOTREF(r)
1296 #define __Pyx_XGIVEREF(r)
1298 #define __Pyx_XDECREF_SET(r, v) do {\
1299 PyObject *tmp = (PyObject *) r;\
1300 r = v; __Pyx_XDECREF(tmp);\
1302 #define __Pyx_DECREF_SET(r, v) do {\
1303 PyObject *tmp = (PyObject *) r;\
1304 r = v; __Pyx_DECREF(tmp);\
1306 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1307 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1310 #if CYTHON_USE_TYPE_SLOTS
1311 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1313 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1317 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1320 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
1321 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1324 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
1327 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1328 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1329 const char* function_name);
1332 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1333 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1334 __Pyx__ArgTypeTest(obj, type, name, exact))
1335 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
1338 #if CYTHON_COMPILING_IN_CPYTHON
1339 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1341 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1345 #if CYTHON_FAST_THREAD_STATE
1346 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1347 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1348 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1350 #define __Pyx_PyThreadState_declare
1351 #define __Pyx_PyThreadState_assign
1352 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1356 #if CYTHON_FAST_THREAD_STATE
1357 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1358 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1359 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1360 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1361 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1362 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1363 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1364 #if CYTHON_COMPILING_IN_CPYTHON
1365 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1367 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1370 #define __Pyx_PyErr_Clear() PyErr_Clear()
1371 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1372 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1373 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1374 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1375 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1376 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1377 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1381 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1384 static CYTHON_INLINE
int __Pyx_Is_Little_Endian(
void);
1387 static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx,
const char* ts);
1388 static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
1389 __Pyx_BufFmt_StackElem* stack,
1390 __Pyx_TypeInfo* type);
1393 #define __Pyx_GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)\
1394 ((obj == Py_None || obj == NULL) ?\
1395 (__Pyx_ZeroBuffer(buf), 0) :\
1396 __Pyx__GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack))
1397 static int __Pyx__GetBufferAndValidate(Py_buffer* buf, PyObject* obj,
1398 __Pyx_TypeInfo* dtype,
int flags,
int nd,
int cast, __Pyx_BufFmt_StackElem* stack);
1399 static void __Pyx_ZeroBuffer(Py_buffer* buf);
1400 static CYTHON_INLINE
void __Pyx_SafeReleaseBuffer(Py_buffer* info);
1401 static Py_ssize_t __Pyx_minusones[] = { -1, -1, -1, -1, -1, -1, -1, -1 };
1402 static Py_ssize_t __Pyx_zeros[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
1405 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1406 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1407 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1408 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1409 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1410 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1411 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1412 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1413 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1414 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1415 int wraparound,
int boundscheck);
1416 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1417 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1418 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1419 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1420 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1421 int wraparound,
int boundscheck);
1422 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1423 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1424 int is_list,
int wraparound,
int boundscheck);
1427 #if CYTHON_USE_TYPE_SLOTS
1428 static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
1430 #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
1434 static void __Pyx_RaiseBufferIndexError(
int axis);
1436 #define __Pyx_BufPtrStrided2d(type, buf, i0, s0, i1, s1) (type)((char*)buf + i0 * s0 + i1 * s1)
1438 #if CYTHON_USE_EXC_INFO_STACK
1439 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1443 #if CYTHON_FAST_THREAD_STATE
1444 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1445 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1446 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1447 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1449 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1450 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1454 #if CYTHON_FAST_THREAD_STATE
1455 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1456 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1458 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1462 #if CYTHON_FAST_THREAD_STATE
1463 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1464 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1466 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1470 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1471 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
1473 #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
1477 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1478 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
1480 #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
1484 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);
1487 static int __Pyx_setup_reduce(PyObject* type_obj);
1490 #ifndef __PYX_HAVE_RT_ImportType_proto
1491 #define __PYX_HAVE_RT_ImportType_proto
1492 enum __Pyx_ImportType_CheckSize {
1493 __Pyx_ImportType_CheckSize_Error = 0,
1494 __Pyx_ImportType_CheckSize_Warn = 1,
1495 __Pyx_ImportType_CheckSize_Ignore = 2
1497 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
1501 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
1504 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
1505 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
1506 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
1507 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
1508 (version_var) = __PYX_GET_DICT_VERSION(dict);\
1509 (cache_var) = (value);
1510 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
1511 static PY_UINT64_T __pyx_dict_version = 0;\
1512 static PyObject *__pyx_dict_cached_value = NULL;\
1513 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
1514 (VAR) = __pyx_dict_cached_value;\
1516 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1517 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
1520 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
1521 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
1522 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
1524 #define __PYX_GET_DICT_VERSION(dict) (0)
1525 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
1526 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
1530 #ifdef CYTHON_CLINE_IN_TRACEBACK
1531 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1533 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1538 PyCodeObject* code_object;
1540 } __Pyx_CodeObjectCacheEntry;
1541 struct __Pyx_CodeObjectCache {
1544 __Pyx_CodeObjectCacheEntry* entries;
1546 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1547 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1548 static PyCodeObject *__pyx_find_code_object(
int code_line);
1549 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1552 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1553 int py_line,
const char *filename);
1557 Py_ssize_t shape, strides, suboffsets;
1558 } __Pyx_Buf_DimInfo;
1564 __Pyx_Buffer *rcbuffer;
1566 __Pyx_Buf_DimInfo diminfo[8];
1567 } __Pyx_LocalBuf_ND;
1569 #if PY_MAJOR_VERSION < 3
1570 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags);
1571 static void __Pyx_ReleaseBuffer(Py_buffer *view);
1573 #define __Pyx_GetBuffer PyObject_GetBuffer
1574 #define __Pyx_ReleaseBuffer PyBuffer_Release
1579 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
1580 #define __Pyx_HAS_GCC_DIAGNOSTIC
1586 #define __Pyx_CREAL(z) ((z).real())
1587 #define __Pyx_CIMAG(z) ((z).imag())
1589 #define __Pyx_CREAL(z) (__real__(z))
1590 #define __Pyx_CIMAG(z) (__imag__(z))
1593 #define __Pyx_CREAL(z) ((z).real)
1594 #define __Pyx_CIMAG(z) ((z).imag)
1596 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
1597 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
1598 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1599 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1601 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
1602 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
1607 #define __Pyx_c_eq_float(a, b) ((a)==(b))
1608 #define __Pyx_c_sum_float(a, b) ((a)+(b))
1609 #define __Pyx_c_diff_float(a, b) ((a)-(b))
1610 #define __Pyx_c_prod_float(a, b) ((a)*(b))
1611 #define __Pyx_c_quot_float(a, b) ((a)/(b))
1612 #define __Pyx_c_neg_float(a) (-(a))
1614 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
1615 #define __Pyx_c_conj_float(z) (::std::conj(z))
1617 #define __Pyx_c_abs_float(z) (::std::abs(z))
1618 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
1621 #define __Pyx_c_is_zero_float(z) ((z)==0)
1622 #define __Pyx_c_conj_float(z) (conjf(z))
1624 #define __Pyx_c_abs_float(z) (cabsf(z))
1625 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
1629 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
1630 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
1631 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
1632 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
1633 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
1634 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
1635 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
1636 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
1638 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
1639 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
1645 #define __Pyx_c_eq_double(a, b) ((a)==(b))
1646 #define __Pyx_c_sum_double(a, b) ((a)+(b))
1647 #define __Pyx_c_diff_double(a, b) ((a)-(b))
1648 #define __Pyx_c_prod_double(a, b) ((a)*(b))
1649 #define __Pyx_c_quot_double(a, b) ((a)/(b))
1650 #define __Pyx_c_neg_double(a) (-(a))
1652 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
1653 #define __Pyx_c_conj_double(z) (::std::conj(z))
1655 #define __Pyx_c_abs_double(z) (::std::abs(z))
1656 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
1659 #define __Pyx_c_is_zero_double(z) ((z)==0)
1660 #define __Pyx_c_conj_double(z) (conj(z))
1662 #define __Pyx_c_abs_double(z) (cabs(z))
1663 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
1667 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
1668 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
1669 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
1670 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
1671 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
1672 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
1673 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
1674 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
1676 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
1677 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
1682 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
1685 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value);
1688 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value);
1691 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
1694 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
1697 #if CYTHON_COMPILING_IN_CPYTHON
1698 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1699 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1700 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1701 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1703 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1704 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1705 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1707 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1710 static int __Pyx_check_binary_version(
void);
1713 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1725 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
1738 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
1739 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
1740 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
1741 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
1742 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
1743 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
1744 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
1745 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
1746 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
1747 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
1748 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
1749 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
1750 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
1751 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
1752 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1757 static PyTypeObject *__pyx_ptype_15cpostprocessing_NodeStarFactor = 0;
1758 static __Pyx_TypeInfo __Pyx_TypeInfo_int = {
"int", NULL,
sizeof(int), { 0 }, 0, IS_UNSIGNED(
int) ?
'U' :
'I', IS_UNSIGNED(
int), 0 };
1759 #define __Pyx_MODULE_NAME "cpostprocessing"
1760 extern int __pyx_module_is_main_cpostprocessing;
1761 int __pyx_module_is_main_cpostprocessing = 0;
1764 static PyObject *__pyx_builtin_range;
1765 static PyObject *__pyx_builtin_TypeError;
1766 static PyObject *__pyx_builtin_ImportError;
1767 static const char __pyx_k_I[] =
"I";
1768 static const char __pyx_k_a[] =
"a";
1769 static const char __pyx_k_f[] =
"f";
1770 static const char __pyx_k_k[] =
"k";
1771 static const char __pyx_k_n[] =
"n";
1772 static const char __pyx_k_r[] =
"r";
1773 static const char __pyx_k_u[] =
"u";
1774 static const char __pyx_k_w[] =
"w";
1775 static const char __pyx_k_x[] =
"x";
1776 static const char __pyx_k_dS[] =
"dS";
1777 static const char __pyx_k_dx[] =
"dx";
1778 static const char __pyx_k_mt[] =
"mt";
1779 static const char __pyx_k_np[] =
"np";
1780 static const char __pyx_k_ebN[] =
"ebN";
1781 static const char __pyx_k_phi[] =
"phi";
1782 static const char __pyx_k_q_v[] =
"q_v";
1783 static const char __pyx_k_detJ[] =
"detJ";
1784 static const char __pyx_k_flux[] =
"flux";
1785 static const char __pyx_k_main[] =
"__main__";
1786 static const char __pyx_k_name[] =
"__name__";
1787 static const char __pyx_k_pwcV[] =
"pwcV";
1788 static const char __pyx_k_pwcW[] =
"pwcW";
1789 static const char __pyx_k_size[] =
"size";
1790 static const char __pyx_k_test[] =
"__test__";
1791 static const char __pyx_k_alpha[] =
"alpha";
1792 static const char __pyx_k_ebq_n[] =
"ebq_n";
1793 static const char __pyx_k_ebq_v[] =
"ebq_v";
1794 static const char __pyx_k_gradu[] =
"gradu";
1795 static const char __pyx_k_numpy[] =
"numpy";
1796 static const char __pyx_k_range[] =
"range";
1797 static const char __pyx_k_vdofs[] =
"vdofs";
1798 static const char __pyx_k_colind[] =
"colind";
1799 static const char __pyx_k_degree[] =
"degree";
1800 static const char __pyx_k_ebqe_v[] =
"ebqe_v";
1801 static const char __pyx_k_import[] =
"__import__";
1802 static const char __pyx_k_nSpace[] =
"nSpace";
1803 static const char __pyx_k_quad_a[] =
"quad_a";
1804 static const char __pyx_k_quad_f[] =
"quad_f";
1805 static const char __pyx_k_reduce[] =
"__reduce__";
1806 static const char __pyx_k_rowptr[] =
"rowptr";
1807 static const char __pyx_k_v_ebqe[] =
"v_ebqe";
1808 static const char __pyx_k_w_dS_f[] =
"w_dS_f";
1809 static const char __pyx_k_w_dV_m[] =
"w_dV_m";
1810 static const char __pyx_k_w_dV_r[] =
"w_dV_r";
1811 static const char __pyx_k_x_ebqe[] =
"x_ebqe";
1812 static const char __pyx_k_gradphi[] =
"gradphi";
1813 static const char __pyx_k_nPoints[] =
"nPoints";
1814 static const char __pyx_k_q_vdofs[] =
"q_vdofs";
1815 static const char __pyx_k_getstate[] =
"__getstate__";
1816 static const char __pyx_k_grad_phi[] =
"grad_phi";
1817 static const char __pyx_k_p1_vdofs[] =
"p1_vdofs";
1818 static const char __pyx_k_residual[] =
"residual";
1819 static const char __pyx_k_rt0vdofs[] =
"rt0vdofs";
1820 static const char __pyx_k_setstate[] =
"__setstate__";
1821 static const char __pyx_k_vAverage[] =
"vAverage";
1822 static const char __pyx_k_velocity[] =
"velocity";
1823 static const char __pyx_k_TypeError[] =
"TypeError";
1824 static const char __pyx_k_abs_det_J[] =
"abs_det_J";
1825 static const char __pyx_k_dofMapl2g[] =
"dofMapl2g";
1826 static const char __pyx_k_edgeFlags[] =
"edgeFlags";
1827 static const char __pyx_k_nodeArray[] =
"nodeArray";
1828 static const char __pyx_k_reduce_ex[] =
"__reduce_ex__";
1829 static const char __pyx_k_v_element[] =
"v_element";
1830 static const char __pyx_k_x_element[] =
"x_element";
1831 static const char __pyx_k_q_velocity[] =
"q_velocity";
1832 static const char __pyx_k_sqrt_det_g[] =
"sqrt_det_g";
1833 static const char __pyx_k_updateCoef[] =
"updateCoef";
1834 static const char __pyx_k_ImportError[] =
"ImportError";
1835 static const char __pyx_k_alphaFactor[] =
"alphaFactor";
1836 static const char __pyx_k_subdomain_U[] =
"subdomain_U";
1837 static const char __pyx_k_buildBDM2rhs[] =
"buildBDM2rhs";
1838 static const char __pyx_k_ebq_velocity[] =
"ebq_velocity";
1839 static const char __pyx_k_elementNodes[] =
"elementNodes";
1840 static const char __pyx_k_max_nN_owned[] =
"max_nN_owned";
1841 static const char __pyx_k_nNodes_owned[] =
"nNodes_owned";
1842 static const char __pyx_k_permutations[] =
"permutations";
1843 static const char __pyx_k_q_basis_vals[] =
"q_basis_vals";
1844 static const char __pyx_k_rt0potential[] =
"rt0potential";
1845 static const char __pyx_k_ebqe_velocity[] =
"ebqe_velocity";
1846 static const char __pyx_k_internalNodes[] =
"internalNodes";
1847 static const char __pyx_k_nElements_dof[] =
"nElements_dof";
1848 static const char __pyx_k_nVDOF_element[] =
"nVDOF_element";
1849 static const char __pyx_k_reduce_cython[] =
"__reduce_cython__";
1850 static const char __pyx_k_vConservative[] =
"vConservative";
1851 static const char __pyx_k_BDMmat_element[] =
"BDMmat_element";
1852 static const char __pyx_k_NodeStarFactor[] =
"NodeStarFactor";
1853 static const char __pyx_k_fluxCorrection[] =
"fluxCorrection";
1854 static const char __pyx_k_nElements_node[] =
"nElements_node";
1855 static const char __pyx_k_nVDOFs_element[] =
"nVDOFs_element";
1856 static const char __pyx_k_nodeStarFactor[] =
"nodeStarFactor";
1857 static const char __pyx_k_w_int_div_free[] =
"w_int_div_free";
1858 static const char __pyx_k_cpostprocessing[] =
"cpostprocessing";
1859 static const char __pyx_k_diffusionTensor[] =
"diffusionTensor";
1860 static const char __pyx_k_dofStarElements[] =
"dofStarElements";
1861 static const char __pyx_k_ebq_global_flux[] =
"ebq_global_flux";
1862 static const char __pyx_k_ebq_v_par_local[] =
"ebq_v_par_local";
1863 static const char __pyx_k_elementResidual[] =
"elementResidual";
1864 static const char __pyx_k_piola_trial_fun[] =
"piola_trial_fun";
1865 static const char __pyx_k_setstate_cython[] =
"__setstate_cython__";
1866 static const char __pyx_k_nFreeDOF_element[] =
"nFreeDOF_element";
1867 static const char __pyx_k_nodeStarElements[] =
"nodeStarElements";
1868 static const char __pyx_k_rt0vdofs_element[] =
"rt0vdofs_element";
1869 static const char __pyx_k_velocity_element[] =
"velocity_element";
1870 static const char __pyx_k_w_int_test_grads[] =
"w_int_test_grads";
1871 static const char __pyx_k_advectiveVelocity[] =
"advectiveVelocity";
1872 static const char __pyx_k_elementNodesArray[] =
"elementNodesArray";
1873 static const char __pyx_k_element_locations[] =
"element_locations";
1874 static const char __pyx_k_fluxBoundaryNodes[] =
"fluxBoundaryNodes";
1875 static const char __pyx_k_freeLocal_element[] =
"freeLocal_element";
1876 static const char __pyx_k_nQuadraturePoints[] =
"nQuadraturePoints";
1877 static const char __pyx_k_sunWheelerGSsweep[] =
"sunWheelerGSsweep";
1878 static const char __pyx_k_u_elementBoundary[] =
"u_elementBoundary";
1879 static const char __pyx_k_v_elementBoundary[] =
"v_elementBoundary";
1880 static const char __pyx_k_x_elementBoundary[] =
"x_elementBoundary";
1881 static const char __pyx_k_addAverageToParVec[] =
"addAverageToParVec";
1882 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
1883 static const char __pyx_k_elementBarycenters[] =
"elementBarycenters";
1884 static const char __pyx_k_elementResidualPWL[] =
"elementResidualPWL";
1885 static const char __pyx_k_nDOF_trial_element[] =
"nDOF_trial_element";
1886 static const char __pyx_k_nElementBoundaries[] =
"nElementBoundaries";
1887 static const char __pyx_k_w_interior_divfree[] =
"w_interior_divfree";
1888 static const char __pyx_k_aElementQuadWeights[] =
"aElementQuadWeights";
1889 static const char __pyx_k_ebq_global_velocity[] =
"ebq_global_velocity";
1890 static const char __pyx_k_ebq_velocityAverage[] =
"ebq_velocityAverage";
1891 static const char __pyx_k_BDMmatPivots_element[] =
"BDMmatPivots_element";
1892 static const char __pyx_k_conservationResidual[] =
"conservationResidual";
1893 static const char __pyx_k_flux_elementBoundary[] =
"flux_elementBoundary";
1894 static const char __pyx_k_w_interior_gradients[] =
"w_interior_gradients";
1895 static const char __pyx_k_fluxElementBoundaries[] =
"fluxElementBoundaries";
1896 static const char __pyx_k_nodeStarElementsArray[] =
"nodeStarElementsArray";
1897 static const char __pyx_k_vConservative_element[] =
"vConservative_element";
1898 static const char __pyx_k_elementBoundariesArray[] =
"elementBoundariesArray";
1899 static const char __pyx_k_dofStarElementNeighbors[] =
"dofStarElementNeighbors";
1900 static const char __pyx_k_elementBoundaryElements[] =
"elementBoundaryElements";
1901 static const char __pyx_k_computeFluxCorrectionPWC[] =
"computeFluxCorrectionPWC";
1902 static const char __pyx_k_nodeStarElementNeighbors[] =
"nodeStarElementNeighbors";
1903 static const char __pyx_k_solveLocalBDM1projection[] =
"solveLocalBDM1projection";
1904 static const char __pyx_k_solveLocalBDM2projection[] =
"solveLocalBDM2projection";
1905 static const char __pyx_k_v_elementBoundary_global[] =
"v_elementBoundary_global";
1906 static const char __pyx_k_x_elementBoundary_global[] =
"x_elementBoundary_global";
1907 static const char __pyx_k_exteriorElementBoundaries[] =
"exteriorElementBoundaries";
1908 static const char __pyx_k_interiorElementBoundaries[] =
"interiorElementBoundaries";
1909 static const char __pyx_k_skipflag_elementBoundaries[] =
"skipflag_elementBoundaries";
1910 static const char __pyx_k_uQuadratureWeights_element[] =
"uQuadratureWeights_element";
1911 static const char __pyx_k_calculateElementResidualPWL[] =
"calculateElementResidualPWL";
1912 static const char __pyx_k_getElementRT0velocityValues[] =
"getElementRT0velocityValues";
1913 static const char __pyx_k_proteus_cpostprocessing_pyx[] =
"proteus/cpostprocessing.pyx";
1914 static const char __pyx_k_calculateConservationFluxPWL[] =
"calculateConservationFluxPWL";
1915 static const char __pyx_k_elementBoundaryElementsArray[] =
"elementBoundaryElementsArray";
1916 static const char __pyx_k_fluxCorrectionVelocityUpdate[] =
"fluxCorrectionVelocityUpdate";
1917 static const char __pyx_k_subdomain_U_copy_global2local[] =
"_subdomain_U_copy_global2local";
1918 static const char __pyx_k_subdomain_U_copy_local2global[] =
"_subdomain_U_copy_local2global";
1919 static const char __pyx_k_exteriorElementBoundariesArray[] =
"exteriorElementBoundariesArray";
1920 static const char __pyx_k_nodeStarElementsNeighborsArray[] =
"nodeStarElementsNeighborsArray";
1921 static const char __pyx_k_postProcessRT0velocityFromP1nc[] =
"postProcessRT0velocityFromP1nc";
1922 static const char __pyx_k_exteriorElementBoundariesToSkip[] =
"exteriorElementBoundariesToSkip";
1923 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
1924 static const char __pyx_k_postProcessRT0potentialFromP1nc[] =
"postProcessRT0potentialFromP1nc";
1925 static const char __pyx_k_buildLocalBDM1projectionMatrices[] =
"buildLocalBDM1projectionMatrices";
1926 static const char __pyx_k_buildLocalBDM2projectionMatrices[] =
"buildLocalBDM2projectionMatrices";
1927 static const char __pyx_k_calculateConservationFluxPWL_noN[] =
"calculateConservationFluxPWL_noNeumannFix";
1928 static const char __pyx_k_calculateConservationFluxPWL_opt[] =
"calculateConservationFluxPWL_opt";
1929 static const char __pyx_k_calculateConservationJacobianPWL[] =
"calculateConservationJacobianPWL";
1930 static const char __pyx_k_calculateConservationResidualGlo[] =
"calculateConservationResidualGlobalBoundaries";
1931 static const char __pyx_k_calculateConservationResidualPWL[] =
"calculateConservationResidualPWL";
1932 static const char __pyx_k_copyElementBoundaryVelocityToPar[] =
"copyElementBoundaryVelocityToParVec";
1933 static const char __pyx_k_copyParVecToElementBoundaryVeloc[] =
"copyParVecToElementBoundaryVelocity";
1934 static const char __pyx_k_elementBoundaryLocalElementBound[] =
"elementBoundaryLocalElementBoundaries";
1935 static const char __pyx_k_elementBoundaryQuadratureWeights[] =
"elementBoundaryQuadratureWeights";
1936 static const char __pyx_k_factorLocalBDM1projectionMatrice[] =
"factorLocalBDM1projectionMatrices";
1937 static const char __pyx_k_factorLocalBDM2projectionMatrice[] =
"factorLocalBDM2projectionMatrices";
1938 static const char __pyx_k_getElementBDM1velocityValuesLagr[] =
"getElementBDM1velocityValuesLagrangeRep";
1939 static const char __pyx_k_getElementBDM2velocityValuesLagr[] =
"getElementBDM2velocityValuesLagrangeRep";
1940 static const char __pyx_k_getElementBoundaryBDM1velocityVa[] =
"getElementBoundaryBDM1velocityValuesLagrangeRep";
1941 static const char __pyx_k_getElementBoundaryRT0velocityVal[] =
"getElementBoundaryRT0velocityValues";
1942 static const char __pyx_k_getElementLDGvelocityValuesLagra[] =
"getElementLDGvelocityValuesLagrangeRep";
1943 static const char __pyx_k_getElementRT0velocityValuesFluxR[] =
"getElementRT0velocityValuesFluxRep";
1944 static const char __pyx_k_getGlobalElementBoundaryBDM1velo[] =
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep";
1945 static const char __pyx_k_getGlobalElementBoundaryRT0veloc[] =
"getGlobalElementBoundaryRT0velocityValues";
1946 static const char __pyx_k_getGlobalExteriorElementBoundary[] =
"getGlobalExteriorElementBoundaryRT0velocityValues";
1947 static const char __pyx_k_getRT0velocityValuesFluxRep_arbi[] =
"getRT0velocityValuesFluxRep_arbitraryElementMembership";
1948 static const char __pyx_k_no_default___reduce___due_to_non[] =
"no default __reduce__ due to non-trivial __cinit__";
1949 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
1950 static const char __pyx_k_postProcessRT0velocityFromP1nc_s[] =
"postProcessRT0velocityFromP1nc_sd";
1951 static const char __pyx_k_projectElementBoundaryFluxToRT0f[] =
"projectElementBoundaryFluxToRT0fluxRep";
1952 static const char __pyx_k_projectElementBoundaryVelocityTo[] =
"projectElementBoundaryVelocityToRT0fluxRep";
1953 static const char __pyx_k_solveLocalBDM1projectionFromFlux[] =
"solveLocalBDM1projectionFromFlux";
1954 static const char __pyx_k_uQuadratureWeights_elementBounda[] =
"uQuadratureWeights_elementBoundary";
1955 static const char __pyx_k_updateAdvectiveVelocityPointEval[] =
"updateAdvectiveVelocityPointEval";
1956 static const char __pyx_k_updateDiffusiveVelocityPointEval[] =
"updateDiffusiveVelocityPointEval";
1957 static const char __pyx_k_updateRT0velocityWithAveragedPot[] =
"updateRT0velocityWithAveragedPotentialP1nc";
1958 static const char __pyx_k_updateSelectedExteriorElementBou[] =
"updateSelectedExteriorElementBoundaryFlux";
1959 static const char __pyx_k_postProcessRT0potentialFromP1nc_2[] =
"postProcessRT0potentialFromP1nc_sd";
1960 static const char __pyx_k_calculateConservationJacobianPWL_2[] =
"calculateConservationJacobianPWL_opt";
1961 static const char __pyx_k_calculateConservationJacobianPWL_3[] =
"calculateConservationJacobianPWL_interiorBoundaries";
1962 static const char __pyx_k_calculateConservationResidualPWL_2[] =
"calculateConservationResidualPWL_opt";
1963 static const char __pyx_k_calculateConservationResidualPWL_3[] =
"calculateConservationResidualPWL_primative";
1964 static const char __pyx_k_calculateConservationResidualPWL_4[] =
"calculateConservationResidualPWL_interiorBoundaries";
1965 static const char __pyx_k_getElementBoundaryRT0velocityVal_2[] =
"getElementBoundaryRT0velocityValuesFluxRep";
1966 static const char __pyx_k_getGlobalElementBoundaryRT0veloc_2[] =
"getGlobalElementBoundaryRT0velocityValuesFluxRep";
1967 static const char __pyx_k_getGlobalExteriorElementBoundary_2[] =
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep";
1968 static const char __pyx_k_getGlobalExteriorElementBoundary_3[] =
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep";
1969 static const char __pyx_k_updateDiffusiveVelocityPointEval_2[] =
"updateDiffusiveVelocityPointEval_sd";
1970 static const char __pyx_k_updateRT0velocityWithAveragedPot_2[] =
"updateRT0velocityWithAveragedPotentialP1nc_sd";
1971 static PyObject *__pyx_n_s_BDMmatPivots_element;
1972 static PyObject *__pyx_n_s_BDMmat_element;
1973 static PyObject *__pyx_n_s_I;
1974 static PyObject *__pyx_n_s_ImportError;
1975 static PyObject *__pyx_n_s_NodeStarFactor;
1976 static PyObject *__pyx_n_s_TypeError;
1977 static PyObject *__pyx_n_s_a;
1978 static PyObject *__pyx_n_s_aElementQuadWeights;
1979 static PyObject *__pyx_n_s_abs_det_J;
1980 static PyObject *__pyx_n_s_addAverageToParVec;
1981 static PyObject *__pyx_n_s_advectiveVelocity;
1982 static PyObject *__pyx_n_s_alpha;
1983 static PyObject *__pyx_n_s_alphaFactor;
1984 static PyObject *__pyx_n_s_buildBDM2rhs;
1985 static PyObject *__pyx_n_s_buildLocalBDM1projectionMatrices;
1986 static PyObject *__pyx_n_s_buildLocalBDM2projectionMatrices;
1987 static PyObject *__pyx_n_s_calculateConservationFluxPWL;
1988 static PyObject *__pyx_n_s_calculateConservationFluxPWL_noN;
1989 static PyObject *__pyx_n_s_calculateConservationFluxPWL_opt;
1990 static PyObject *__pyx_n_s_calculateConservationJacobianPWL;
1991 static PyObject *__pyx_n_s_calculateConservationJacobianPWL_2;
1992 static PyObject *__pyx_n_s_calculateConservationJacobianPWL_3;
1993 static PyObject *__pyx_n_s_calculateConservationResidualGlo;
1994 static PyObject *__pyx_n_s_calculateConservationResidualPWL;
1995 static PyObject *__pyx_n_s_calculateConservationResidualPWL_2;
1996 static PyObject *__pyx_n_s_calculateConservationResidualPWL_3;
1997 static PyObject *__pyx_n_s_calculateConservationResidualPWL_4;
1998 static PyObject *__pyx_n_s_calculateElementResidualPWL;
1999 static PyObject *__pyx_n_s_cline_in_traceback;
2000 static PyObject *__pyx_n_s_colind;
2001 static PyObject *__pyx_n_s_computeFluxCorrectionPWC;
2002 static PyObject *__pyx_n_s_conservationResidual;
2003 static PyObject *__pyx_n_s_copyElementBoundaryVelocityToPar;
2004 static PyObject *__pyx_n_s_copyParVecToElementBoundaryVeloc;
2005 static PyObject *__pyx_n_s_cpostprocessing;
2006 static PyObject *__pyx_n_s_dS;
2007 static PyObject *__pyx_n_s_degree;
2008 static PyObject *__pyx_n_s_detJ;
2009 static PyObject *__pyx_n_s_diffusionTensor;
2010 static PyObject *__pyx_n_s_dofMapl2g;
2011 static PyObject *__pyx_n_s_dofStarElementNeighbors;
2012 static PyObject *__pyx_n_s_dofStarElements;
2013 static PyObject *__pyx_n_s_dx;
2014 static PyObject *__pyx_n_s_ebN;
2015 static PyObject *__pyx_n_s_ebq_global_flux;
2016 static PyObject *__pyx_n_s_ebq_global_velocity;
2017 static PyObject *__pyx_n_s_ebq_n;
2018 static PyObject *__pyx_n_s_ebq_v;
2019 static PyObject *__pyx_n_s_ebq_v_par_local;
2020 static PyObject *__pyx_n_s_ebq_velocity;
2021 static PyObject *__pyx_n_s_ebq_velocityAverage;
2022 static PyObject *__pyx_n_s_ebqe_v;
2023 static PyObject *__pyx_n_s_ebqe_velocity;
2024 static PyObject *__pyx_n_s_edgeFlags;
2025 static PyObject *__pyx_n_s_elementBarycenters;
2026 static PyObject *__pyx_n_s_elementBoundariesArray;
2027 static PyObject *__pyx_n_s_elementBoundaryElements;
2028 static PyObject *__pyx_n_s_elementBoundaryElementsArray;
2029 static PyObject *__pyx_n_s_elementBoundaryLocalElementBound;
2030 static PyObject *__pyx_n_s_elementBoundaryQuadratureWeights;
2031 static PyObject *__pyx_n_s_elementNodes;
2032 static PyObject *__pyx_n_s_elementNodesArray;
2033 static PyObject *__pyx_n_s_elementResidual;
2034 static PyObject *__pyx_n_s_elementResidualPWL;
2035 static PyObject *__pyx_n_s_element_locations;
2036 static PyObject *__pyx_n_s_exteriorElementBoundaries;
2037 static PyObject *__pyx_n_s_exteriorElementBoundariesArray;
2038 static PyObject *__pyx_n_s_exteriorElementBoundariesToSkip;
2039 static PyObject *__pyx_n_s_f;
2040 static PyObject *__pyx_n_s_factorLocalBDM1projectionMatrice;
2041 static PyObject *__pyx_n_s_factorLocalBDM2projectionMatrice;
2042 static PyObject *__pyx_n_s_flux;
2043 static PyObject *__pyx_n_s_fluxBoundaryNodes;
2044 static PyObject *__pyx_n_s_fluxCorrection;
2045 static PyObject *__pyx_n_s_fluxCorrectionVelocityUpdate;
2046 static PyObject *__pyx_n_s_fluxElementBoundaries;
2047 static PyObject *__pyx_n_s_flux_elementBoundary;
2048 static PyObject *__pyx_n_s_freeLocal_element;
2049 static PyObject *__pyx_n_s_getElementBDM1velocityValuesLagr;
2050 static PyObject *__pyx_n_s_getElementBDM2velocityValuesLagr;
2051 static PyObject *__pyx_n_s_getElementBoundaryBDM1velocityVa;
2052 static PyObject *__pyx_n_s_getElementBoundaryRT0velocityVal;
2053 static PyObject *__pyx_n_s_getElementBoundaryRT0velocityVal_2;
2054 static PyObject *__pyx_n_s_getElementLDGvelocityValuesLagra;
2055 static PyObject *__pyx_n_s_getElementRT0velocityValues;
2056 static PyObject *__pyx_n_s_getElementRT0velocityValuesFluxR;
2057 static PyObject *__pyx_n_s_getGlobalElementBoundaryBDM1velo;
2058 static PyObject *__pyx_n_s_getGlobalElementBoundaryRT0veloc;
2059 static PyObject *__pyx_n_s_getGlobalElementBoundaryRT0veloc_2;
2060 static PyObject *__pyx_n_s_getGlobalExteriorElementBoundary;
2061 static PyObject *__pyx_n_s_getGlobalExteriorElementBoundary_2;
2062 static PyObject *__pyx_n_s_getGlobalExteriorElementBoundary_3;
2063 static PyObject *__pyx_n_s_getRT0velocityValuesFluxRep_arbi;
2064 static PyObject *__pyx_n_s_getstate;
2065 static PyObject *__pyx_n_s_grad_phi;
2066 static PyObject *__pyx_n_s_gradphi;
2067 static PyObject *__pyx_n_s_gradu;
2068 static PyObject *__pyx_n_s_import;
2069 static PyObject *__pyx_n_s_interiorElementBoundaries;
2070 static PyObject *__pyx_n_s_internalNodes;
2071 static PyObject *__pyx_n_s_k;
2072 static PyObject *__pyx_n_s_main;
2073 static PyObject *__pyx_n_s_max_nN_owned;
2074 static PyObject *__pyx_n_s_mt;
2075 static PyObject *__pyx_n_s_n;
2076 static PyObject *__pyx_n_s_nDOF_trial_element;
2077 static PyObject *__pyx_n_s_nElementBoundaries;
2078 static PyObject *__pyx_n_s_nElements_dof;
2079 static PyObject *__pyx_n_s_nElements_node;
2080 static PyObject *__pyx_n_s_nFreeDOF_element;
2081 static PyObject *__pyx_n_s_nNodes_owned;
2082 static PyObject *__pyx_n_s_nPoints;
2083 static PyObject *__pyx_n_s_nQuadraturePoints;
2084 static PyObject *__pyx_n_s_nSpace;
2085 static PyObject *__pyx_n_s_nVDOF_element;
2086 static PyObject *__pyx_n_s_nVDOFs_element;
2087 static PyObject *__pyx_n_s_name;
2088 static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
2089 static PyObject *__pyx_n_s_nodeArray;
2090 static PyObject *__pyx_n_s_nodeStarElementNeighbors;
2091 static PyObject *__pyx_n_s_nodeStarElements;
2092 static PyObject *__pyx_n_s_nodeStarElementsArray;
2093 static PyObject *__pyx_n_s_nodeStarElementsNeighborsArray;
2094 static PyObject *__pyx_n_s_nodeStarFactor;
2095 static PyObject *__pyx_n_s_np;
2096 static PyObject *__pyx_n_s_numpy;
2097 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2098 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2099 static PyObject *__pyx_n_s_p1_vdofs;
2100 static PyObject *__pyx_n_s_permutations;
2101 static PyObject *__pyx_n_s_phi;
2102 static PyObject *__pyx_n_s_piola_trial_fun;
2103 static PyObject *__pyx_n_s_postProcessRT0potentialFromP1nc;
2104 static PyObject *__pyx_n_s_postProcessRT0potentialFromP1nc_2;
2105 static PyObject *__pyx_n_s_postProcessRT0velocityFromP1nc;
2106 static PyObject *__pyx_n_s_postProcessRT0velocityFromP1nc_s;
2107 static PyObject *__pyx_n_s_projectElementBoundaryFluxToRT0f;
2108 static PyObject *__pyx_n_s_projectElementBoundaryVelocityTo;
2109 static PyObject *__pyx_kp_s_proteus_cpostprocessing_pyx;
2110 static PyObject *__pyx_n_s_pwcV;
2111 static PyObject *__pyx_n_s_pwcW;
2112 static PyObject *__pyx_n_s_q_basis_vals;
2113 static PyObject *__pyx_n_s_q_v;
2114 static PyObject *__pyx_n_s_q_vdofs;
2115 static PyObject *__pyx_n_s_q_velocity;
2116 static PyObject *__pyx_n_s_quad_a;
2117 static PyObject *__pyx_n_s_quad_f;
2118 static PyObject *__pyx_n_s_r;
2119 static PyObject *__pyx_n_s_range;
2120 static PyObject *__pyx_n_s_reduce;
2121 static PyObject *__pyx_n_s_reduce_cython;
2122 static PyObject *__pyx_n_s_reduce_ex;
2123 static PyObject *__pyx_n_s_residual;
2124 static PyObject *__pyx_n_s_rowptr;
2125 static PyObject *__pyx_n_s_rt0potential;
2126 static PyObject *__pyx_n_s_rt0vdofs;
2127 static PyObject *__pyx_n_s_rt0vdofs_element;
2128 static PyObject *__pyx_n_s_setstate;
2129 static PyObject *__pyx_n_s_setstate_cython;
2130 static PyObject *__pyx_n_s_size;
2131 static PyObject *__pyx_n_s_skipflag_elementBoundaries;
2132 static PyObject *__pyx_n_s_solveLocalBDM1projection;
2133 static PyObject *__pyx_n_s_solveLocalBDM1projectionFromFlux;
2134 static PyObject *__pyx_n_s_solveLocalBDM2projection;
2135 static PyObject *__pyx_n_s_sqrt_det_g;
2136 static PyObject *__pyx_n_s_subdomain_U;
2137 static PyObject *__pyx_n_s_subdomain_U_copy_global2local;
2138 static PyObject *__pyx_n_s_subdomain_U_copy_local2global;
2139 static PyObject *__pyx_n_s_sunWheelerGSsweep;
2140 static PyObject *__pyx_n_s_test;
2141 static PyObject *__pyx_n_s_u;
2142 static PyObject *__pyx_n_s_uQuadratureWeights_element;
2143 static PyObject *__pyx_n_s_uQuadratureWeights_elementBounda;
2144 static PyObject *__pyx_n_s_u_elementBoundary;
2145 static PyObject *__pyx_n_s_updateAdvectiveVelocityPointEval;
2146 static PyObject *__pyx_n_s_updateCoef;
2147 static PyObject *__pyx_n_s_updateDiffusiveVelocityPointEval;
2148 static PyObject *__pyx_n_s_updateDiffusiveVelocityPointEval_2;
2149 static PyObject *__pyx_n_s_updateRT0velocityWithAveragedPot;
2150 static PyObject *__pyx_n_s_updateRT0velocityWithAveragedPot_2;
2151 static PyObject *__pyx_n_s_updateSelectedExteriorElementBou;
2152 static PyObject *__pyx_n_s_vAverage;
2153 static PyObject *__pyx_n_s_vConservative;
2154 static PyObject *__pyx_n_s_vConservative_element;
2155 static PyObject *__pyx_n_s_v_ebqe;
2156 static PyObject *__pyx_n_s_v_element;
2157 static PyObject *__pyx_n_s_v_elementBoundary;
2158 static PyObject *__pyx_n_s_v_elementBoundary_global;
2159 static PyObject *__pyx_n_s_vdofs;
2160 static PyObject *__pyx_n_s_velocity;
2161 static PyObject *__pyx_n_s_velocity_element;
2162 static PyObject *__pyx_n_s_w;
2163 static PyObject *__pyx_n_s_w_dS_f;
2164 static PyObject *__pyx_n_s_w_dV_m;
2165 static PyObject *__pyx_n_s_w_dV_r;
2166 static PyObject *__pyx_n_s_w_int_div_free;
2167 static PyObject *__pyx_n_s_w_int_test_grads;
2168 static PyObject *__pyx_n_s_w_interior_divfree;
2169 static PyObject *__pyx_n_s_w_interior_gradients;
2170 static PyObject *__pyx_n_s_x;
2171 static PyObject *__pyx_n_s_x_ebqe;
2172 static PyObject *__pyx_n_s_x_element;
2173 static PyObject *__pyx_n_s_x_elementBoundary;
2174 static PyObject *__pyx_n_s_x_elementBoundary_global;
2175 static PyObject *__pyx_pf_15cpostprocessing_postProcessRT0velocityFromP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nFreeDOF_element, PyArrayObject *__pyx_v_freeLocal_element, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_quad_f, PyArrayObject *__pyx_v_w_dV_r, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_w_dV_m, PyArrayObject *__pyx_v_mt);
2176 static PyObject *__pyx_pf_15cpostprocessing_2postProcessRT0velocityFromP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_nFreeDOF_element, PyArrayObject *__pyx_v_freeLocal_element, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_quad_f, PyArrayObject *__pyx_v_w_dV_r, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_w_dV_m, PyArrayObject *__pyx_v_mt);
2177 static PyObject *__pyx_pf_15cpostprocessing_4updateRT0velocityWithAveragedPotentialP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_gradphi, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_rt0vdofs_element);
2178 static PyObject *__pyx_pf_15cpostprocessing_6updateRT0velocityWithAveragedPotentialP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_gradphi, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_rt0vdofs_element);
2179 static PyObject *__pyx_pf_15cpostprocessing_8getElementRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x_element, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element);
2180 static PyObject *__pyx_pf_15cpostprocessing_10getElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary);
2181 static PyObject *__pyx_pf_15cpostprocessing_12getGlobalElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global);
2182 static PyObject *__pyx_pf_15cpostprocessing_14getGlobalExteriorElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global);
2183 static PyObject *__pyx_pf_15cpostprocessing_16postProcessRT0potentialFromP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_uQuadratureWeights_element, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_aElementQuadWeights, PyArrayObject *__pyx_v_detJ, CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_u_elementBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_rt0potential);
2184 static PyObject *__pyx_pf_15cpostprocessing_18postProcessRT0potentialFromP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_uQuadratureWeights_element, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_aElementQuadWeights, PyArrayObject *__pyx_v_detJ, CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_u_elementBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_rt0potential);
2185 static PyObject *__pyx_pf_15cpostprocessing_20buildLocalBDM1projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_BDMmat_element);
2186 static PyObject *__pyx_pf_15cpostprocessing_22buildLocalBDM2projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_degree, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_q_basis_vals, PyArrayObject *__pyx_v_w_int_test_grads, PyArrayObject *__pyx_v_w_int_div_free, PyArrayObject *__pyx_v_piola_trial_fun, PyArrayObject *__pyx_v_edgeFlags, PyArrayObject *__pyx_v_BDMmat_element);
2187 static PyObject *__pyx_pf_15cpostprocessing_24factorLocalBDM1projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element);
2188 static PyObject *__pyx_pf_15cpostprocessing_26factorLocalBDM2projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element);
2189 static PyObject *__pyx_pf_15cpostprocessing_28solveLocalBDM1projection(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_vdofs);
2190 static PyObject *__pyx_pf_15cpostprocessing_30solveLocalBDM2projection(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_w_interior_gradients, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_velocity, PyArrayObject *__pyx_v_q_vdofs);
2191 static PyObject *__pyx_pf_15cpostprocessing_32buildBDM2rhs(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_w_interior_gradients, PyArrayObject *__pyx_v_w_interior_divfree, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_velocity, PyArrayObject *__pyx_v_q_vdofs, PyArrayObject *__pyx_v_edgeFlags);
2192 static PyObject *__pyx_pf_15cpostprocessing_34solveLocalBDM1projectionFromFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundariesArray, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_global_flux, PyArrayObject *__pyx_v_q_vdofs);
2193 static PyObject *__pyx_pf_15cpostprocessing_36getElementBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_q_velocity);
2194 static PyObject *__pyx_pf_15cpostprocessing_38getElementBDM2velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_q_velocity);
2195 static PyObject *__pyx_pf_15cpostprocessing_40getElementLDGvelocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_vdofs, PyArrayObject *__pyx_v_q_velocity);
2196 static PyObject *__pyx_pf_15cpostprocessing_42getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebqe_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebqe_velocity);
2197 static PyObject *__pyx_pf_15cpostprocessing_44getGlobalElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebqe_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebq_global_velocity);
2198 static PyObject *__pyx_pf_15cpostprocessing_46getElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebq_velocity);
2199 static PyObject *__pyx_pf_15cpostprocessing_48projectElementBoundaryVelocityToRT0fluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_v_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element);
2200 static PyObject *__pyx_pf_15cpostprocessing_50projectElementBoundaryFluxToRT0fluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights, PyArrayObject *__pyx_v_flux_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element);
2201 static PyObject *__pyx_pf_15cpostprocessing_52getElementRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_element, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element);
2202 static PyObject *__pyx_pf_15cpostprocessing_54getElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary);
2203 static PyObject *__pyx_pf_15cpostprocessing_56getGlobalElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global);
2204 static PyObject *__pyx_pf_15cpostprocessing_58getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_ebqe, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_ebqe);
2205 static PyObject *__pyx_pf_15cpostprocessing_60getRT0velocityValuesFluxRep_arbitraryElementMembership(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_element_locations, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element);
2206 static PyObject *__pyx_pf_15cpostprocessing_62fluxCorrectionVelocityUpdate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_fluxCorrection, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_velocity_element);
2207 static PyObject *__pyx_pf_15cpostprocessing_64computeFluxCorrectionPWC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_pwcW, PyArrayObject *__pyx_v_pwcV, PyArrayObject *__pyx_v_fluxCorrection);
2208 static PyObject *__pyx_pf_15cpostprocessing_66sunWheelerGSsweep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_alphaFactor, PyArrayObject *__pyx_v_fluxCorrection, PyArrayObject *__pyx_v_conservationResidual);
2209 static int __pyx_pf_15cpostprocessing_14NodeStarFactor___cinit__(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_nodeStarElementsArray, PyArrayObject *__pyx_v_nodeStarElementsNeighborsArray);
2210 static void __pyx_pf_15cpostprocessing_14NodeStarFactor_2__dealloc__(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self);
2211 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_4setU(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self,
double __pyx_v_val);
2212 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_6copyData(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_other);
2213 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_8__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self);
2214 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_10__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2215 static PyObject *__pyx_pf_15cpostprocessing_68calculateConservationResidualPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_dofMapl2g, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element);
2216 static PyObject *__pyx_pf_15cpostprocessing_70calculateConservationJacobianPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_dofMapl2g, PyArrayObject *__pyx_v_dofStarElements, PyArrayObject *__pyx_v_dofStarElementNeighbors, PyArrayObject *__pyx_v_nElements_dof, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_fluxBoundaryNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2217 static PyObject *__pyx_pf_15cpostprocessing_72calculateConservationFluxPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxBoundaryNodes,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2218 static PyObject *__pyx_pf_15cpostprocessing_74calculateConservationFluxPWL_noNeumannFix(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nElements_node,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2219 static PyObject *__pyx_pf_15cpostprocessing_76calculateConservationResidualPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element);
2220 static PyObject *__pyx_pf_15cpostprocessing_78calculateConservationResidualPWL_primative(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_skipflag_elementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative);
2221 static PyObject *__pyx_pf_15cpostprocessing_80calculateConservationJacobianPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_fluxBoundaryNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2222 static PyObject *__pyx_pf_15cpostprocessing_82calculateConservationFluxPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxBoundaryNodes,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2223 static PyObject *__pyx_pf_15cpostprocessing_84calculateConservationResidualPWL_interiorBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element);
2224 static PyObject *__pyx_pf_15cpostprocessing_86calculateConservationJacobianPWL_interiorBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor);
2225 static PyObject *__pyx_pf_15cpostprocessing_88_subdomain_U_copy_global2local(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_max_nN_owned, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_subdomain_U);
2226 static PyObject *__pyx_pf_15cpostprocessing_90_subdomain_U_copy_local2global(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_max_nN_owned, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_subdomain_U);
2227 static PyObject *__pyx_pf_15cpostprocessing_92calculateConservationResidualGlobalBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundariesToSkip, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual);
2228 static PyObject *__pyx_pf_15cpostprocessing_94updateSelectedExteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_skipflag_elementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_residual);
2229 static PyObject *__pyx_pf_15cpostprocessing_96updateAdvectiveVelocityPointEval(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_advectiveVelocity, PyArrayObject *__pyx_v_velocity);
2230 static PyObject *__pyx_pf_15cpostprocessing_98updateDiffusiveVelocityPointEval(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_diffusionTensor, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2231 static PyObject *__pyx_pf_15cpostprocessing_100updateDiffusiveVelocityPointEval_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_diffusionTensor, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2232 static PyObject *__pyx_pf_15cpostprocessing_102calculateElementResidualPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_elementResidualPWL);
2233 static PyObject *__pyx_pf_15cpostprocessing_104copyElementBoundaryVelocityToParVec(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local);
2234 static PyObject *__pyx_pf_15cpostprocessing_106addAverageToParVec(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocityAverage, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local);
2235 static PyObject *__pyx_pf_15cpostprocessing_108copyParVecToElementBoundaryVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local);
2236 static PyObject *__pyx_tp_new_15cpostprocessing_NodeStarFactor(PyTypeObject *t, PyObject *a, PyObject *k);
2237 static PyObject *__pyx_tuple_;
2238 static PyObject *__pyx_tuple__2;
2239 static PyObject *__pyx_tuple__3;
2240 static PyObject *__pyx_tuple__4;
2241 static PyObject *__pyx_tuple__5;
2242 static PyObject *__pyx_tuple__7;
2243 static PyObject *__pyx_tuple__9;
2244 static PyObject *__pyx_tuple__11;
2245 static PyObject *__pyx_tuple__13;
2246 static PyObject *__pyx_tuple__15;
2247 static PyObject *__pyx_tuple__17;
2248 static PyObject *__pyx_tuple__19;
2249 static PyObject *__pyx_tuple__21;
2250 static PyObject *__pyx_tuple__23;
2251 static PyObject *__pyx_tuple__25;
2252 static PyObject *__pyx_tuple__27;
2253 static PyObject *__pyx_tuple__29;
2254 static PyObject *__pyx_tuple__31;
2255 static PyObject *__pyx_tuple__33;
2256 static PyObject *__pyx_tuple__35;
2257 static PyObject *__pyx_tuple__37;
2258 static PyObject *__pyx_tuple__39;
2259 static PyObject *__pyx_tuple__41;
2260 static PyObject *__pyx_tuple__43;
2261 static PyObject *__pyx_tuple__45;
2262 static PyObject *__pyx_tuple__47;
2263 static PyObject *__pyx_tuple__49;
2264 static PyObject *__pyx_tuple__51;
2265 static PyObject *__pyx_tuple__53;
2266 static PyObject *__pyx_tuple__55;
2267 static PyObject *__pyx_tuple__57;
2268 static PyObject *__pyx_tuple__59;
2269 static PyObject *__pyx_tuple__61;
2270 static PyObject *__pyx_tuple__63;
2271 static PyObject *__pyx_tuple__65;
2272 static PyObject *__pyx_tuple__67;
2273 static PyObject *__pyx_tuple__69;
2274 static PyObject *__pyx_tuple__71;
2275 static PyObject *__pyx_tuple__73;
2276 static PyObject *__pyx_tuple__75;
2277 static PyObject *__pyx_tuple__77;
2278 static PyObject *__pyx_tuple__79;
2279 static PyObject *__pyx_tuple__81;
2280 static PyObject *__pyx_tuple__83;
2281 static PyObject *__pyx_tuple__85;
2282 static PyObject *__pyx_tuple__87;
2283 static PyObject *__pyx_tuple__89;
2284 static PyObject *__pyx_tuple__91;
2285 static PyObject *__pyx_tuple__93;
2286 static PyObject *__pyx_tuple__95;
2287 static PyObject *__pyx_tuple__97;
2288 static PyObject *__pyx_tuple__99;
2289 static PyObject *__pyx_codeobj__6;
2290 static PyObject *__pyx_codeobj__8;
2291 static PyObject *__pyx_tuple__101;
2292 static PyObject *__pyx_tuple__103;
2293 static PyObject *__pyx_tuple__105;
2294 static PyObject *__pyx_tuple__107;
2295 static PyObject *__pyx_tuple__109;
2296 static PyObject *__pyx_tuple__111;
2297 static PyObject *__pyx_tuple__113;
2298 static PyObject *__pyx_codeobj__10;
2299 static PyObject *__pyx_codeobj__12;
2300 static PyObject *__pyx_codeobj__14;
2301 static PyObject *__pyx_codeobj__16;
2302 static PyObject *__pyx_codeobj__18;
2303 static PyObject *__pyx_codeobj__20;
2304 static PyObject *__pyx_codeobj__22;
2305 static PyObject *__pyx_codeobj__24;
2306 static PyObject *__pyx_codeobj__26;
2307 static PyObject *__pyx_codeobj__28;
2308 static PyObject *__pyx_codeobj__30;
2309 static PyObject *__pyx_codeobj__32;
2310 static PyObject *__pyx_codeobj__34;
2311 static PyObject *__pyx_codeobj__36;
2312 static PyObject *__pyx_codeobj__38;
2313 static PyObject *__pyx_codeobj__40;
2314 static PyObject *__pyx_codeobj__42;
2315 static PyObject *__pyx_codeobj__44;
2316 static PyObject *__pyx_codeobj__46;
2317 static PyObject *__pyx_codeobj__48;
2318 static PyObject *__pyx_codeobj__50;
2319 static PyObject *__pyx_codeobj__52;
2320 static PyObject *__pyx_codeobj__54;
2321 static PyObject *__pyx_codeobj__56;
2322 static PyObject *__pyx_codeobj__58;
2323 static PyObject *__pyx_codeobj__60;
2324 static PyObject *__pyx_codeobj__62;
2325 static PyObject *__pyx_codeobj__64;
2326 static PyObject *__pyx_codeobj__66;
2327 static PyObject *__pyx_codeobj__68;
2328 static PyObject *__pyx_codeobj__70;
2329 static PyObject *__pyx_codeobj__72;
2330 static PyObject *__pyx_codeobj__74;
2331 static PyObject *__pyx_codeobj__76;
2332 static PyObject *__pyx_codeobj__78;
2333 static PyObject *__pyx_codeobj__80;
2334 static PyObject *__pyx_codeobj__82;
2335 static PyObject *__pyx_codeobj__84;
2336 static PyObject *__pyx_codeobj__86;
2337 static PyObject *__pyx_codeobj__88;
2338 static PyObject *__pyx_codeobj__90;
2339 static PyObject *__pyx_codeobj__92;
2340 static PyObject *__pyx_codeobj__94;
2341 static PyObject *__pyx_codeobj__96;
2342 static PyObject *__pyx_codeobj__98;
2343 static PyObject *__pyx_codeobj__100;
2344 static PyObject *__pyx_codeobj__102;
2345 static PyObject *__pyx_codeobj__104;
2346 static PyObject *__pyx_codeobj__106;
2347 static PyObject *__pyx_codeobj__108;
2348 static PyObject *__pyx_codeobj__110;
2349 static PyObject *__pyx_codeobj__112;
2350 static PyObject *__pyx_codeobj__114;
2362 static PyObject *__pyx_pw_15cpostprocessing_1postProcessRT0velocityFromP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
2363 static PyMethodDef __pyx_mdef_15cpostprocessing_1postProcessRT0velocityFromP1nc = {
"postProcessRT0velocityFromP1nc", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_1postProcessRT0velocityFromP1nc, METH_VARARGS|METH_KEYWORDS, 0};
2364 static PyObject *__pyx_pw_15cpostprocessing_1postProcessRT0velocityFromP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2365 PyArrayObject *__pyx_v_nFreeDOF_element = 0;
2366 PyArrayObject *__pyx_v_freeLocal_element = 0;
2367 PyArrayObject *__pyx_v_detJ = 0;
2368 PyArrayObject *__pyx_v_sqrt_det_g = 0;
2369 PyArrayObject *__pyx_v_n = 0;
2370 PyArrayObject *__pyx_v_elementBarycenters = 0;
2371 PyArrayObject *__pyx_v_quad_a = 0;
2372 PyArrayObject *__pyx_v_quad_f = 0;
2373 PyArrayObject *__pyx_v_w_dV_r = 0;
2374 PyArrayObject *__pyx_v_u = 0;
2375 PyArrayObject *__pyx_v_gradu = 0;
2376 PyArrayObject *__pyx_v_a = 0;
2377 PyArrayObject *__pyx_v_f = 0;
2378 PyArrayObject *__pyx_v_r = 0;
2379 PyArrayObject *__pyx_v_rt0vdofs = 0;
2380 PyArrayObject *__pyx_v_w_dV_m = 0;
2381 PyArrayObject *__pyx_v_mt = 0;
2382 int __pyx_lineno = 0;
2383 const char *__pyx_filename = NULL;
2384 int __pyx_clineno = 0;
2385 PyObject *__pyx_r = 0;
2386 __Pyx_RefNannyDeclarations
2387 __Pyx_RefNannySetupContext(
"postProcessRT0velocityFromP1nc (wrapper)", 0);
2389 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nFreeDOF_element,&__pyx_n_s_freeLocal_element,&__pyx_n_s_detJ,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_n,&__pyx_n_s_elementBarycenters,&__pyx_n_s_quad_a,&__pyx_n_s_quad_f,&__pyx_n_s_w_dV_r,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_rt0vdofs,&__pyx_n_s_w_dV_m,&__pyx_n_s_mt,0};
2390 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
2399 values[15] = (PyObject *)((PyArrayObject *)Py_None);
2408 values[16] = (PyObject *)((PyArrayObject *)Py_None);
2409 if (unlikely(__pyx_kwds)) {
2411 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2413 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
2415 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
2417 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
2419 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
2421 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
2423 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
2425 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
2427 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
2429 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
2431 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
2433 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
2435 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2437 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2439 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2441 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2443 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2445 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2448 default:
goto __pyx_L5_argtuple_error;
2450 kw_args = PyDict_Size(__pyx_kwds);
2453 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element)) != 0)) kw_args--;
2454 else goto __pyx_L5_argtuple_error;
2457 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_element)) != 0)) kw_args--;
2459 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 1); __PYX_ERR(0, 6, __pyx_L3_error)
2463 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
2465 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 2); __PYX_ERR(0, 6, __pyx_L3_error)
2469 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
2471 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 3); __PYX_ERR(0, 6, __pyx_L3_error)
2475 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
2477 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 4); __PYX_ERR(0, 6, __pyx_L3_error)
2481 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBarycenters)) != 0)) kw_args--;
2483 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 5); __PYX_ERR(0, 6, __pyx_L3_error)
2487 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_a)) != 0)) kw_args--;
2489 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 6); __PYX_ERR(0, 6, __pyx_L3_error)
2493 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_f)) != 0)) kw_args--;
2495 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 7); __PYX_ERR(0, 6, __pyx_L3_error)
2499 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV_r)) != 0)) kw_args--;
2501 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 8); __PYX_ERR(0, 6, __pyx_L3_error)
2505 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
2507 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 9); __PYX_ERR(0, 6, __pyx_L3_error)
2511 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
2513 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 10); __PYX_ERR(0, 6, __pyx_L3_error)
2517 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
2519 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 11); __PYX_ERR(0, 6, __pyx_L3_error)
2523 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
2525 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 12); __PYX_ERR(0, 6, __pyx_L3_error)
2529 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
2531 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 13); __PYX_ERR(0, 6, __pyx_L3_error)
2535 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs)) != 0)) kw_args--;
2537 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, 14); __PYX_ERR(0, 6, __pyx_L3_error)
2542 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV_m);
2543 if (value) { values[15] = value; kw_args--; }
2548 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt);
2549 if (value) { values[16] = value; kw_args--; }
2552 if (unlikely(kw_args > 0)) {
2553 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"postProcessRT0velocityFromP1nc") < 0)) __PYX_ERR(0, 6, __pyx_L3_error)
2556 switch (PyTuple_GET_SIZE(__pyx_args)) {
2557 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
2559 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
2561 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
2562 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
2563 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
2564 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
2565 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
2566 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
2567 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
2568 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
2569 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
2570 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2571 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2572 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2573 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2574 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2575 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2577 default:
goto __pyx_L5_argtuple_error;
2580 __pyx_v_nFreeDOF_element = ((PyArrayObject *)values[0]);
2581 __pyx_v_freeLocal_element = ((PyArrayObject *)values[1]);
2582 __pyx_v_detJ = ((PyArrayObject *)values[2]);
2583 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[3]);
2584 __pyx_v_n = ((PyArrayObject *)values[4]);
2585 __pyx_v_elementBarycenters = ((PyArrayObject *)values[5]);
2586 __pyx_v_quad_a = ((PyArrayObject *)values[6]);
2587 __pyx_v_quad_f = ((PyArrayObject *)values[7]);
2588 __pyx_v_w_dV_r = ((PyArrayObject *)values[8]);
2589 __pyx_v_u = ((PyArrayObject *)values[9]);
2590 __pyx_v_gradu = ((PyArrayObject *)values[10]);
2591 __pyx_v_a = ((PyArrayObject *)values[11]);
2592 __pyx_v_f = ((PyArrayObject *)values[12]);
2593 __pyx_v_r = ((PyArrayObject *)values[13]);
2594 __pyx_v_rt0vdofs = ((PyArrayObject *)values[14]);
2595 __pyx_v_w_dV_m = ((PyArrayObject *)values[15]);
2596 __pyx_v_mt = ((PyArrayObject *)values[16]);
2598 goto __pyx_L4_argument_unpacking_done;
2599 __pyx_L5_argtuple_error:;
2600 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc", 0, 15, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6, __pyx_L3_error)
2602 __Pyx_AddTraceback(
"cpostprocessing.postProcessRT0velocityFromP1nc", __pyx_clineno, __pyx_lineno, __pyx_filename);
2603 __Pyx_RefNannyFinishContext();
2605 __pyx_L4_argument_unpacking_done:;
2606 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element", 0))) __PYX_ERR(0, 6, __pyx_L1_error)
2607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_element), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_element", 0))) __PYX_ERR(0, 7, __pyx_L1_error)
2608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 8, __pyx_L1_error)
2609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 9, __pyx_L1_error)
2610 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 10, __pyx_L1_error)
2611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBarycenters), __pyx_ptype_5numpy_ndarray, 1,
"elementBarycenters", 0))) __PYX_ERR(0, 11, __pyx_L1_error)
2612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_a), __pyx_ptype_5numpy_ndarray, 1,
"quad_a", 0))) __PYX_ERR(0, 12, __pyx_L1_error)
2613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_f), __pyx_ptype_5numpy_ndarray, 1,
"quad_f", 0))) __PYX_ERR(0, 13, __pyx_L1_error)
2614 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV_r), __pyx_ptype_5numpy_ndarray, 1,
"w_dV_r", 0))) __PYX_ERR(0, 14, __pyx_L1_error)
2615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 15, __pyx_L1_error)
2616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 16, __pyx_L1_error)
2617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 17, __pyx_L1_error)
2618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 18, __pyx_L1_error)
2619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 19, __pyx_L1_error)
2620 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs", 0))) __PYX_ERR(0, 20, __pyx_L1_error)
2621 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV_m), __pyx_ptype_5numpy_ndarray, 1,
"w_dV_m", 0))) __PYX_ERR(0, 21, __pyx_L1_error)
2622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 22, __pyx_L1_error)
2623 __pyx_r = __pyx_pf_15cpostprocessing_postProcessRT0velocityFromP1nc(__pyx_self, __pyx_v_nFreeDOF_element, __pyx_v_freeLocal_element, __pyx_v_detJ, __pyx_v_sqrt_det_g, __pyx_v_n, __pyx_v_elementBarycenters, __pyx_v_quad_a, __pyx_v_quad_f, __pyx_v_w_dV_r, __pyx_v_u, __pyx_v_gradu, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_rt0vdofs, __pyx_v_w_dV_m, __pyx_v_mt);
2638 __Pyx_RefNannyFinishContext();
2642 static PyObject *__pyx_pf_15cpostprocessing_postProcessRT0velocityFromP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nFreeDOF_element, PyArrayObject *__pyx_v_freeLocal_element, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_quad_f, PyArrayObject *__pyx_v_w_dV_r, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_w_dV_m, PyArrayObject *__pyx_v_mt) {
2643 PyObject *__pyx_r = NULL;
2644 __Pyx_RefNannyDeclarations
2648 __Pyx_RefNannySetupContext(
"postProcessRT0velocityFromP1nc", 0);
2657 __pyx_t_2 = (((PyObject *)__pyx_v_mt) != Py_None);
2658 __pyx_t_3 = (__pyx_t_2 != 0);
2661 __pyx_t_1 = __pyx_t_3;
2662 goto __pyx_L4_bool_binop_done;
2664 __pyx_t_3 = (((PyObject *)__pyx_v_w_dV_m) != Py_None);
2665 __pyx_t_2 = (__pyx_t_3 != 0);
2666 __pyx_t_1 = __pyx_t_2;
2667 __pyx_L4_bool_binop_done:;
2677 postProcessRT0velocityFromP1nc((__pyx_v_gradu->dimensions[0]), (__pyx_v_gradu->dimensions[1]), (__pyx_v_w_dV_r->dimensions[2]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_gradu->dimensions[2]), ((
int *)__pyx_v_nFreeDOF_element->data), ((
int *)__pyx_v_freeLocal_element->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_quad_f->data), ((
double *)__pyx_v_w_dV_r->data), ((
double *)__pyx_v_w_dV_m->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_mt->data), ((
double *)__pyx_v_rt0vdofs->data));
2705 postProcessRT0velocityFromP1ncNoMass((__pyx_v_gradu->dimensions[0]), (__pyx_v_gradu->dimensions[1]), (__pyx_v_w_dV_r->dimensions[2]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_gradu->dimensions[2]), ((
int *)__pyx_v_nFreeDOF_element->data), ((
int *)__pyx_v_freeLocal_element->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_quad_f->data), ((
double *)__pyx_v_w_dV_r->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_rt0vdofs->data));
2718 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2719 __Pyx_XGIVEREF(__pyx_r);
2720 __Pyx_RefNannyFinishContext();
2733 static PyObject *__pyx_pw_15cpostprocessing_3postProcessRT0velocityFromP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
2734 static PyMethodDef __pyx_mdef_15cpostprocessing_3postProcessRT0velocityFromP1nc_sd = {
"postProcessRT0velocityFromP1nc_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_3postProcessRT0velocityFromP1nc_sd, METH_VARARGS|METH_KEYWORDS, 0};
2735 static PyObject *__pyx_pw_15cpostprocessing_3postProcessRT0velocityFromP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2736 PyArrayObject *__pyx_v_rowptr = 0;
2737 PyArrayObject *__pyx_v_colind = 0;
2738 PyArrayObject *__pyx_v_nFreeDOF_element = 0;
2739 PyArrayObject *__pyx_v_freeLocal_element = 0;
2740 PyArrayObject *__pyx_v_detJ = 0;
2741 PyArrayObject *__pyx_v_sqrt_det_g = 0;
2742 PyArrayObject *__pyx_v_n = 0;
2743 PyArrayObject *__pyx_v_elementBarycenters = 0;
2744 PyArrayObject *__pyx_v_quad_a = 0;
2745 PyArrayObject *__pyx_v_quad_f = 0;
2746 PyArrayObject *__pyx_v_w_dV_r = 0;
2747 PyArrayObject *__pyx_v_u = 0;
2748 PyArrayObject *__pyx_v_gradu = 0;
2749 PyArrayObject *__pyx_v_a = 0;
2750 PyArrayObject *__pyx_v_f = 0;
2751 PyArrayObject *__pyx_v_r = 0;
2752 PyArrayObject *__pyx_v_rt0vdofs = 0;
2753 PyArrayObject *__pyx_v_w_dV_m = 0;
2754 PyArrayObject *__pyx_v_mt = 0;
2755 int __pyx_lineno = 0;
2756 const char *__pyx_filename = NULL;
2757 int __pyx_clineno = 0;
2758 PyObject *__pyx_r = 0;
2759 __Pyx_RefNannyDeclarations
2760 __Pyx_RefNannySetupContext(
"postProcessRT0velocityFromP1nc_sd (wrapper)", 0);
2762 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_nFreeDOF_element,&__pyx_n_s_freeLocal_element,&__pyx_n_s_detJ,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_n,&__pyx_n_s_elementBarycenters,&__pyx_n_s_quad_a,&__pyx_n_s_quad_f,&__pyx_n_s_w_dV_r,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_rt0vdofs,&__pyx_n_s_w_dV_m,&__pyx_n_s_mt,0};
2763 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
2772 values[17] = (PyObject *)((PyArrayObject *)Py_None);
2781 values[18] = (PyObject *)((PyArrayObject *)Py_None);
2782 if (unlikely(__pyx_kwds)) {
2784 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2786 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
2788 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
2790 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
2792 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
2794 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
2796 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
2798 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
2800 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
2802 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
2804 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
2806 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
2808 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
2810 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
2812 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2814 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2816 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2818 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2820 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2822 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2825 default:
goto __pyx_L5_argtuple_error;
2827 kw_args = PyDict_Size(__pyx_kwds);
2830 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
2831 else goto __pyx_L5_argtuple_error;
2834 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
2836 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 1); __PYX_ERR(0, 70, __pyx_L3_error)
2840 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element)) != 0)) kw_args--;
2842 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 2); __PYX_ERR(0, 70, __pyx_L3_error)
2846 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_element)) != 0)) kw_args--;
2848 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 3); __PYX_ERR(0, 70, __pyx_L3_error)
2852 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
2854 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 4); __PYX_ERR(0, 70, __pyx_L3_error)
2858 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
2860 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 5); __PYX_ERR(0, 70, __pyx_L3_error)
2864 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
2866 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 6); __PYX_ERR(0, 70, __pyx_L3_error)
2870 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBarycenters)) != 0)) kw_args--;
2872 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 7); __PYX_ERR(0, 70, __pyx_L3_error)
2876 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_a)) != 0)) kw_args--;
2878 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 8); __PYX_ERR(0, 70, __pyx_L3_error)
2882 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_f)) != 0)) kw_args--;
2884 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 9); __PYX_ERR(0, 70, __pyx_L3_error)
2888 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV_r)) != 0)) kw_args--;
2890 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 10); __PYX_ERR(0, 70, __pyx_L3_error)
2894 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
2896 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 11); __PYX_ERR(0, 70, __pyx_L3_error)
2900 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
2902 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 12); __PYX_ERR(0, 70, __pyx_L3_error)
2906 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
2908 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 13); __PYX_ERR(0, 70, __pyx_L3_error)
2912 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
2914 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 14); __PYX_ERR(0, 70, __pyx_L3_error)
2918 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
2920 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 15); __PYX_ERR(0, 70, __pyx_L3_error)
2924 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs)) != 0)) kw_args--;
2926 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, 16); __PYX_ERR(0, 70, __pyx_L3_error)
2931 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV_m);
2932 if (value) { values[17] = value; kw_args--; }
2937 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt);
2938 if (value) { values[18] = value; kw_args--; }
2941 if (unlikely(kw_args > 0)) {
2942 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"postProcessRT0velocityFromP1nc_sd") < 0)) __PYX_ERR(0, 70, __pyx_L3_error)
2945 switch (PyTuple_GET_SIZE(__pyx_args)) {
2946 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
2948 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
2950 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
2951 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
2952 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
2953 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
2954 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
2955 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
2956 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
2957 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
2958 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
2959 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
2960 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
2961 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2962 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2963 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2964 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2965 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2966 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2968 default:
goto __pyx_L5_argtuple_error;
2971 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
2972 __pyx_v_colind = ((PyArrayObject *)values[1]);
2973 __pyx_v_nFreeDOF_element = ((PyArrayObject *)values[2]);
2974 __pyx_v_freeLocal_element = ((PyArrayObject *)values[3]);
2975 __pyx_v_detJ = ((PyArrayObject *)values[4]);
2976 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[5]);
2977 __pyx_v_n = ((PyArrayObject *)values[6]);
2978 __pyx_v_elementBarycenters = ((PyArrayObject *)values[7]);
2979 __pyx_v_quad_a = ((PyArrayObject *)values[8]);
2980 __pyx_v_quad_f = ((PyArrayObject *)values[9]);
2981 __pyx_v_w_dV_r = ((PyArrayObject *)values[10]);
2982 __pyx_v_u = ((PyArrayObject *)values[11]);
2983 __pyx_v_gradu = ((PyArrayObject *)values[12]);
2984 __pyx_v_a = ((PyArrayObject *)values[13]);
2985 __pyx_v_f = ((PyArrayObject *)values[14]);
2986 __pyx_v_r = ((PyArrayObject *)values[15]);
2987 __pyx_v_rt0vdofs = ((PyArrayObject *)values[16]);
2988 __pyx_v_w_dV_m = ((PyArrayObject *)values[17]);
2989 __pyx_v_mt = ((PyArrayObject *)values[18]);
2991 goto __pyx_L4_argument_unpacking_done;
2992 __pyx_L5_argtuple_error:;
2993 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0velocityFromP1nc_sd", 0, 17, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 70, __pyx_L3_error)
2995 __Pyx_AddTraceback(
"cpostprocessing.postProcessRT0velocityFromP1nc_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
2996 __Pyx_RefNannyFinishContext();
2998 __pyx_L4_argument_unpacking_done:;
2999 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 70, __pyx_L1_error)
3000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 71, __pyx_L1_error)
3001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element", 0))) __PYX_ERR(0, 72, __pyx_L1_error)
3002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_element), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_element", 0))) __PYX_ERR(0, 73, __pyx_L1_error)
3003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 74, __pyx_L1_error)
3004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 75, __pyx_L1_error)
3005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 76, __pyx_L1_error)
3006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBarycenters), __pyx_ptype_5numpy_ndarray, 1,
"elementBarycenters", 0))) __PYX_ERR(0, 77, __pyx_L1_error)
3007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_a), __pyx_ptype_5numpy_ndarray, 1,
"quad_a", 0))) __PYX_ERR(0, 78, __pyx_L1_error)
3008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_f), __pyx_ptype_5numpy_ndarray, 1,
"quad_f", 0))) __PYX_ERR(0, 79, __pyx_L1_error)
3009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV_r), __pyx_ptype_5numpy_ndarray, 1,
"w_dV_r", 0))) __PYX_ERR(0, 80, __pyx_L1_error)
3010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 81, __pyx_L1_error)
3011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 82, __pyx_L1_error)
3012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 83, __pyx_L1_error)
3013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 84, __pyx_L1_error)
3014 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 85, __pyx_L1_error)
3015 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs", 0))) __PYX_ERR(0, 86, __pyx_L1_error)
3016 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV_m), __pyx_ptype_5numpy_ndarray, 1,
"w_dV_m", 0))) __PYX_ERR(0, 87, __pyx_L1_error)
3017 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 88, __pyx_L1_error)
3018 __pyx_r = __pyx_pf_15cpostprocessing_2postProcessRT0velocityFromP1nc_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_nFreeDOF_element, __pyx_v_freeLocal_element, __pyx_v_detJ, __pyx_v_sqrt_det_g, __pyx_v_n, __pyx_v_elementBarycenters, __pyx_v_quad_a, __pyx_v_quad_f, __pyx_v_w_dV_r, __pyx_v_u, __pyx_v_gradu, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_rt0vdofs, __pyx_v_w_dV_m, __pyx_v_mt);
3033 __Pyx_RefNannyFinishContext();
3037 static PyObject *__pyx_pf_15cpostprocessing_2postProcessRT0velocityFromP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_nFreeDOF_element, PyArrayObject *__pyx_v_freeLocal_element, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_quad_f, PyArrayObject *__pyx_v_w_dV_r, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_w_dV_m, PyArrayObject *__pyx_v_mt) {
3038 PyObject *__pyx_r = NULL;
3039 __Pyx_RefNannyDeclarations
3043 __Pyx_RefNannySetupContext(
"postProcessRT0velocityFromP1nc_sd", 0);
3052 __pyx_t_2 = (((PyObject *)__pyx_v_mt) == Py_None);
3053 __pyx_t_3 = (__pyx_t_2 != 0);
3056 __pyx_t_1 = __pyx_t_3;
3057 goto __pyx_L4_bool_binop_done;
3059 __pyx_t_3 = (((PyObject *)__pyx_v_w_dV_m) != Py_None);
3060 __pyx_t_2 = (__pyx_t_3 != 0);
3061 __pyx_t_1 = __pyx_t_2;
3062 __pyx_L4_bool_binop_done:;
3072 postProcessRT0velocityFromP1nc_sd((__pyx_v_gradu->dimensions[0]), (__pyx_v_gradu->dimensions[1]), (__pyx_v_w_dV_r->dimensions[2]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_gradu->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_nFreeDOF_element->data), ((
int *)__pyx_v_freeLocal_element->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_quad_f->data), ((
double *)__pyx_v_w_dV_r->data), ((
double *)__pyx_v_w_dV_m->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_mt->data), ((
double *)__pyx_v_rt0vdofs->data));
3100 postProcessRT0velocityFromP1ncNoMass_sd((__pyx_v_gradu->dimensions[0]), (__pyx_v_gradu->dimensions[1]), (__pyx_v_w_dV_r->dimensions[2]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_gradu->dimensions[2]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_nFreeDOF_element->data), ((
int *)__pyx_v_freeLocal_element->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_quad_f->data), ((
double *)__pyx_v_w_dV_r->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_rt0vdofs->data));
3113 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3114 __Pyx_XGIVEREF(__pyx_r);
3115 __Pyx_RefNannyFinishContext();
3128 static PyObject *__pyx_pw_15cpostprocessing_5updateRT0velocityWithAveragedPotentialP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3129 static PyMethodDef __pyx_mdef_15cpostprocessing_5updateRT0velocityWithAveragedPotentialP1nc = {
"updateRT0velocityWithAveragedPotentialP1nc", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_5updateRT0velocityWithAveragedPotentialP1nc, METH_VARARGS|METH_KEYWORDS, 0};
3130 static PyObject *__pyx_pw_15cpostprocessing_5updateRT0velocityWithAveragedPotentialP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3131 PyArrayObject *__pyx_v_detJ = 0;
3132 PyArrayObject *__pyx_v_quad_a = 0;
3133 PyArrayObject *__pyx_v_phi = 0;
3134 PyArrayObject *__pyx_v_gradphi = 0;
3135 PyArrayObject *__pyx_v_a = 0;
3136 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3137 int __pyx_lineno = 0;
3138 const char *__pyx_filename = NULL;
3139 int __pyx_clineno = 0;
3140 PyObject *__pyx_r = 0;
3141 __Pyx_RefNannyDeclarations
3142 __Pyx_RefNannySetupContext(
"updateRT0velocityWithAveragedPotentialP1nc (wrapper)", 0);
3144 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_detJ,&__pyx_n_s_quad_a,&__pyx_n_s_phi,&__pyx_n_s_gradphi,&__pyx_n_s_a,&__pyx_n_s_rt0vdofs_element,0};
3145 PyObject* values[6] = {0,0,0,0,0,0};
3146 if (unlikely(__pyx_kwds)) {
3148 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3150 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3152 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3154 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3156 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3158 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3160 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3163 default:
goto __pyx_L5_argtuple_error;
3165 kw_args = PyDict_Size(__pyx_kwds);
3168 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
3169 else goto __pyx_L5_argtuple_error;
3172 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_a)) != 0)) kw_args--;
3174 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, 1); __PYX_ERR(0, 140, __pyx_L3_error)
3178 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
3180 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, 2); __PYX_ERR(0, 140, __pyx_L3_error)
3184 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradphi)) != 0)) kw_args--;
3186 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, 3); __PYX_ERR(0, 140, __pyx_L3_error)
3190 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3192 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, 4); __PYX_ERR(0, 140, __pyx_L3_error)
3196 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3198 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, 5); __PYX_ERR(0, 140, __pyx_L3_error)
3201 if (unlikely(kw_args > 0)) {
3202 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateRT0velocityWithAveragedPotentialP1nc") < 0)) __PYX_ERR(0, 140, __pyx_L3_error)
3204 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
3205 goto __pyx_L5_argtuple_error;
3207 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3208 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3209 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3210 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3211 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3212 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3214 __pyx_v_detJ = ((PyArrayObject *)values[0]);
3215 __pyx_v_quad_a = ((PyArrayObject *)values[1]);
3216 __pyx_v_phi = ((PyArrayObject *)values[2]);
3217 __pyx_v_gradphi = ((PyArrayObject *)values[3]);
3218 __pyx_v_a = ((PyArrayObject *)values[4]);
3219 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[5]);
3221 goto __pyx_L4_argument_unpacking_done;
3222 __pyx_L5_argtuple_error:;
3223 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 140, __pyx_L3_error)
3225 __Pyx_AddTraceback(
"cpostprocessing.updateRT0velocityWithAveragedPotentialP1nc", __pyx_clineno, __pyx_lineno, __pyx_filename);
3226 __Pyx_RefNannyFinishContext();
3228 __pyx_L4_argument_unpacking_done:;
3229 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 140, __pyx_L1_error)
3230 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_a), __pyx_ptype_5numpy_ndarray, 1,
"quad_a", 0))) __PYX_ERR(0, 141, __pyx_L1_error)
3231 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 142, __pyx_L1_error)
3232 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradphi), __pyx_ptype_5numpy_ndarray, 1,
"gradphi", 0))) __PYX_ERR(0, 143, __pyx_L1_error)
3233 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 144, __pyx_L1_error)
3234 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 145, __pyx_L1_error)
3235 __pyx_r = __pyx_pf_15cpostprocessing_4updateRT0velocityWithAveragedPotentialP1nc(__pyx_self, __pyx_v_detJ, __pyx_v_quad_a, __pyx_v_phi, __pyx_v_gradphi, __pyx_v_a, __pyx_v_rt0vdofs_element);
3242 __Pyx_RefNannyFinishContext();
3246 static PyObject *__pyx_pf_15cpostprocessing_4updateRT0velocityWithAveragedPotentialP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_gradphi, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_rt0vdofs_element) {
3247 PyObject *__pyx_r = NULL;
3248 __Pyx_RefNannyDeclarations
3249 __Pyx_RefNannySetupContext(
"updateRT0velocityWithAveragedPotentialP1nc", 0);
3258 updateRT0velocityWithAveragedPotentialP1nc((__pyx_v_a->dimensions[0]), (__pyx_v_a->dimensions[1]), (__pyx_v_gradphi->dimensions[(__pyx_v_gradphi->nd - 1)]), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_gradphi->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_rt0vdofs_element->data));
3269 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3270 __Pyx_XGIVEREF(__pyx_r);
3271 __Pyx_RefNannyFinishContext();
3284 static PyObject *__pyx_pw_15cpostprocessing_7updateRT0velocityWithAveragedPotentialP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3285 static PyMethodDef __pyx_mdef_15cpostprocessing_7updateRT0velocityWithAveragedPotentialP1nc_sd = {
"updateRT0velocityWithAveragedPotentialP1nc_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_7updateRT0velocityWithAveragedPotentialP1nc_sd, METH_VARARGS|METH_KEYWORDS, 0};
3286 static PyObject *__pyx_pw_15cpostprocessing_7updateRT0velocityWithAveragedPotentialP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3287 PyArrayObject *__pyx_v_rowptr = 0;
3288 PyArrayObject *__pyx_v_colind = 0;
3289 PyArrayObject *__pyx_v_detJ = 0;
3290 PyArrayObject *__pyx_v_quad_a = 0;
3291 PyArrayObject *__pyx_v_phi = 0;
3292 PyArrayObject *__pyx_v_gradphi = 0;
3293 PyArrayObject *__pyx_v_a = 0;
3294 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3295 int __pyx_lineno = 0;
3296 const char *__pyx_filename = NULL;
3297 int __pyx_clineno = 0;
3298 PyObject *__pyx_r = 0;
3299 __Pyx_RefNannyDeclarations
3300 __Pyx_RefNannySetupContext(
"updateRT0velocityWithAveragedPotentialP1nc_sd (wrapper)", 0);
3302 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_detJ,&__pyx_n_s_quad_a,&__pyx_n_s_phi,&__pyx_n_s_gradphi,&__pyx_n_s_a,&__pyx_n_s_rt0vdofs_element,0};
3303 PyObject* values[8] = {0,0,0,0,0,0,0,0};
3304 if (unlikely(__pyx_kwds)) {
3306 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3308 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3310 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3312 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3314 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3316 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3318 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3320 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3322 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3325 default:
goto __pyx_L5_argtuple_error;
3327 kw_args = PyDict_Size(__pyx_kwds);
3330 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
3331 else goto __pyx_L5_argtuple_error;
3334 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
3336 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 1); __PYX_ERR(0, 156, __pyx_L3_error)
3340 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
3342 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 2); __PYX_ERR(0, 156, __pyx_L3_error)
3346 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_quad_a)) != 0)) kw_args--;
3348 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 3); __PYX_ERR(0, 156, __pyx_L3_error)
3352 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
3354 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 4); __PYX_ERR(0, 156, __pyx_L3_error)
3358 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradphi)) != 0)) kw_args--;
3360 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 5); __PYX_ERR(0, 156, __pyx_L3_error)
3364 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3366 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 6); __PYX_ERR(0, 156, __pyx_L3_error)
3370 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3372 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, 7); __PYX_ERR(0, 156, __pyx_L3_error)
3375 if (unlikely(kw_args > 0)) {
3376 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateRT0velocityWithAveragedPotentialP1nc_sd") < 0)) __PYX_ERR(0, 156, __pyx_L3_error)
3378 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
3379 goto __pyx_L5_argtuple_error;
3381 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3382 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3383 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3384 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3385 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3386 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3387 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3388 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3390 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
3391 __pyx_v_colind = ((PyArrayObject *)values[1]);
3392 __pyx_v_detJ = ((PyArrayObject *)values[2]);
3393 __pyx_v_quad_a = ((PyArrayObject *)values[3]);
3394 __pyx_v_phi = ((PyArrayObject *)values[4]);
3395 __pyx_v_gradphi = ((PyArrayObject *)values[5]);
3396 __pyx_v_a = ((PyArrayObject *)values[6]);
3397 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[7]);
3399 goto __pyx_L4_argument_unpacking_done;
3400 __pyx_L5_argtuple_error:;
3401 __Pyx_RaiseArgtupleInvalid(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 156, __pyx_L3_error)
3403 __Pyx_AddTraceback(
"cpostprocessing.updateRT0velocityWithAveragedPotentialP1nc_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
3404 __Pyx_RefNannyFinishContext();
3406 __pyx_L4_argument_unpacking_done:;
3407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 156, __pyx_L1_error)
3408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 157, __pyx_L1_error)
3409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 158, __pyx_L1_error)
3410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_quad_a), __pyx_ptype_5numpy_ndarray, 1,
"quad_a", 0))) __PYX_ERR(0, 159, __pyx_L1_error)
3411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 160, __pyx_L1_error)
3412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradphi), __pyx_ptype_5numpy_ndarray, 1,
"gradphi", 0))) __PYX_ERR(0, 161, __pyx_L1_error)
3413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 162, __pyx_L1_error)
3414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 163, __pyx_L1_error)
3415 __pyx_r = __pyx_pf_15cpostprocessing_6updateRT0velocityWithAveragedPotentialP1nc_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_detJ, __pyx_v_quad_a, __pyx_v_phi, __pyx_v_gradphi, __pyx_v_a, __pyx_v_rt0vdofs_element);
3422 __Pyx_RefNannyFinishContext();
3426 static PyObject *__pyx_pf_15cpostprocessing_6updateRT0velocityWithAveragedPotentialP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_detJ, PyArrayObject *__pyx_v_quad_a, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_gradphi, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_rt0vdofs_element) {
3427 PyObject *__pyx_r = NULL;
3428 __Pyx_RefNannyDeclarations
3429 __Pyx_RefNannySetupContext(
"updateRT0velocityWithAveragedPotentialP1nc_sd", 0);
3438 updateRT0velocityWithAveragedPotentialP1nc_sd((__pyx_v_a->dimensions[0]), (__pyx_v_a->dimensions[1]), (__pyx_v_gradphi->dimensions[(__pyx_v_gradphi->nd - 1)]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_quad_a->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_gradphi->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_rt0vdofs_element->data));
3449 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3450 __Pyx_XGIVEREF(__pyx_r);
3451 __Pyx_RefNannyFinishContext();
3464 static PyObject *__pyx_pw_15cpostprocessing_9getElementRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3465 static PyMethodDef __pyx_mdef_15cpostprocessing_9getElementRT0velocityValues = {
"getElementRT0velocityValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_9getElementRT0velocityValues, METH_VARARGS|METH_KEYWORDS, 0};
3466 static PyObject *__pyx_pw_15cpostprocessing_9getElementRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3467 PyArrayObject *__pyx_v_x_element = 0;
3468 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3469 PyArrayObject *__pyx_v_v_element = 0;
3470 int __pyx_lineno = 0;
3471 const char *__pyx_filename = NULL;
3472 int __pyx_clineno = 0;
3473 PyObject *__pyx_r = 0;
3474 __Pyx_RefNannyDeclarations
3475 __Pyx_RefNannySetupContext(
"getElementRT0velocityValues (wrapper)", 0);
3477 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x_element,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_element,0};
3478 PyObject* values[3] = {0,0,0};
3479 if (unlikely(__pyx_kwds)) {
3481 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3483 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3485 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3487 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3490 default:
goto __pyx_L5_argtuple_error;
3492 kw_args = PyDict_Size(__pyx_kwds);
3495 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_element)) != 0)) kw_args--;
3496 else goto __pyx_L5_argtuple_error;
3499 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3501 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValues", 1, 3, 3, 1); __PYX_ERR(0, 176, __pyx_L3_error)
3505 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_element)) != 0)) kw_args--;
3507 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValues", 1, 3, 3, 2); __PYX_ERR(0, 176, __pyx_L3_error)
3510 if (unlikely(kw_args > 0)) {
3511 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementRT0velocityValues") < 0)) __PYX_ERR(0, 176, __pyx_L3_error)
3513 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3514 goto __pyx_L5_argtuple_error;
3516 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3517 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3518 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3520 __pyx_v_x_element = ((PyArrayObject *)values[0]);
3521 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[1]);
3522 __pyx_v_v_element = ((PyArrayObject *)values[2]);
3524 goto __pyx_L4_argument_unpacking_done;
3525 __pyx_L5_argtuple_error:;
3526 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValues", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 176, __pyx_L3_error)
3528 __Pyx_AddTraceback(
"cpostprocessing.getElementRT0velocityValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
3529 __Pyx_RefNannyFinishContext();
3531 __pyx_L4_argument_unpacking_done:;
3532 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_element), __pyx_ptype_5numpy_ndarray, 1,
"x_element", 0))) __PYX_ERR(0, 176, __pyx_L1_error)
3533 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 177, __pyx_L1_error)
3534 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_element), __pyx_ptype_5numpy_ndarray, 1,
"v_element", 0))) __PYX_ERR(0, 178, __pyx_L1_error)
3535 __pyx_r = __pyx_pf_15cpostprocessing_8getElementRT0velocityValues(__pyx_self, __pyx_v_x_element, __pyx_v_rt0vdofs_element, __pyx_v_v_element);
3542 __Pyx_RefNannyFinishContext();
3546 static PyObject *__pyx_pf_15cpostprocessing_8getElementRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x_element, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element) {
3547 PyObject *__pyx_r = NULL;
3548 __Pyx_RefNannyDeclarations
3549 __Pyx_RefNannySetupContext(
"getElementRT0velocityValues", 0);
3558 getElementRT0velocityValues((__pyx_v_v_element->dimensions[0]), (__pyx_v_v_element->dimensions[1]), (__pyx_v_v_element->dimensions[2]), ((
double *)__pyx_v_x_element->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_element->data));
3569 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3570 __Pyx_XGIVEREF(__pyx_r);
3571 __Pyx_RefNannyFinishContext();
3584 static PyObject *__pyx_pw_15cpostprocessing_11getElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3585 static PyMethodDef __pyx_mdef_15cpostprocessing_11getElementBoundaryRT0velocityValues = {
"getElementBoundaryRT0velocityValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_11getElementBoundaryRT0velocityValues, METH_VARARGS|METH_KEYWORDS, 0};
3586 static PyObject *__pyx_pw_15cpostprocessing_11getElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3587 PyArrayObject *__pyx_v_x_elementBoundary = 0;
3588 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3589 PyArrayObject *__pyx_v_v_elementBoundary = 0;
3590 int __pyx_lineno = 0;
3591 const char *__pyx_filename = NULL;
3592 int __pyx_clineno = 0;
3593 PyObject *__pyx_r = 0;
3594 __Pyx_RefNannyDeclarations
3595 __Pyx_RefNannySetupContext(
"getElementBoundaryRT0velocityValues (wrapper)", 0);
3597 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x_elementBoundary,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_elementBoundary,0};
3598 PyObject* values[3] = {0,0,0};
3599 if (unlikely(__pyx_kwds)) {
3601 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3603 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3605 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3607 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3610 default:
goto __pyx_L5_argtuple_error;
3612 kw_args = PyDict_Size(__pyx_kwds);
3615 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary)) != 0)) kw_args--;
3616 else goto __pyx_L5_argtuple_error;
3619 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3621 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValues", 1, 3, 3, 1); __PYX_ERR(0, 186, __pyx_L3_error)
3625 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary)) != 0)) kw_args--;
3627 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValues", 1, 3, 3, 2); __PYX_ERR(0, 186, __pyx_L3_error)
3630 if (unlikely(kw_args > 0)) {
3631 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementBoundaryRT0velocityValues") < 0)) __PYX_ERR(0, 186, __pyx_L3_error)
3633 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3634 goto __pyx_L5_argtuple_error;
3636 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3637 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3638 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3640 __pyx_v_x_elementBoundary = ((PyArrayObject *)values[0]);
3641 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[1]);
3642 __pyx_v_v_elementBoundary = ((PyArrayObject *)values[2]);
3644 goto __pyx_L4_argument_unpacking_done;
3645 __pyx_L5_argtuple_error:;
3646 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValues", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 186, __pyx_L3_error)
3648 __Pyx_AddTraceback(
"cpostprocessing.getElementBoundaryRT0velocityValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
3649 __Pyx_RefNannyFinishContext();
3651 __pyx_L4_argument_unpacking_done:;
3652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary", 0))) __PYX_ERR(0, 186, __pyx_L1_error)
3653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 187, __pyx_L1_error)
3654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary", 0))) __PYX_ERR(0, 188, __pyx_L1_error)
3655 __pyx_r = __pyx_pf_15cpostprocessing_10getElementBoundaryRT0velocityValues(__pyx_self, __pyx_v_x_elementBoundary, __pyx_v_rt0vdofs_element, __pyx_v_v_elementBoundary);
3662 __Pyx_RefNannyFinishContext();
3666 static PyObject *__pyx_pf_15cpostprocessing_10getElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary) {
3667 PyObject *__pyx_r = NULL;
3668 __Pyx_RefNannyDeclarations
3669 __Pyx_RefNannySetupContext(
"getElementBoundaryRT0velocityValues", 0);
3678 getElementBoundaryRT0velocityValues((__pyx_v_v_elementBoundary->dimensions[0]), (__pyx_v_v_elementBoundary->dimensions[1]), (__pyx_v_v_elementBoundary->dimensions[2]), (__pyx_v_v_elementBoundary->dimensions[3]), ((
double *)__pyx_v_x_elementBoundary->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_elementBoundary->data));
3689 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3690 __Pyx_XGIVEREF(__pyx_r);
3691 __Pyx_RefNannyFinishContext();
3704 static PyObject *__pyx_pw_15cpostprocessing_13getGlobalElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3705 static PyMethodDef __pyx_mdef_15cpostprocessing_13getGlobalElementBoundaryRT0velocityValues = {
"getGlobalElementBoundaryRT0velocityValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_13getGlobalElementBoundaryRT0velocityValues, METH_VARARGS|METH_KEYWORDS, 0};
3706 static PyObject *__pyx_pw_15cpostprocessing_13getGlobalElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3707 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
3708 PyArrayObject *__pyx_v_x_elementBoundary_global = 0;
3709 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3710 PyArrayObject *__pyx_v_v_elementBoundary_global = 0;
3711 int __pyx_lineno = 0;
3712 const char *__pyx_filename = NULL;
3713 int __pyx_clineno = 0;
3714 PyObject *__pyx_r = 0;
3715 __Pyx_RefNannyDeclarations
3716 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryRT0velocityValues (wrapper)", 0);
3718 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_x_elementBoundary_global,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_elementBoundary_global,0};
3719 PyObject* values[4] = {0,0,0,0};
3720 if (unlikely(__pyx_kwds)) {
3722 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3724 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3726 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3728 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3730 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3733 default:
goto __pyx_L5_argtuple_error;
3735 kw_args = PyDict_Size(__pyx_kwds);
3738 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
3739 else goto __pyx_L5_argtuple_error;
3742 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary_global)) != 0)) kw_args--;
3744 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValues", 1, 4, 4, 1); __PYX_ERR(0, 197, __pyx_L3_error)
3748 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3750 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValues", 1, 4, 4, 2); __PYX_ERR(0, 197, __pyx_L3_error)
3754 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary_global)) != 0)) kw_args--;
3756 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValues", 1, 4, 4, 3); __PYX_ERR(0, 197, __pyx_L3_error)
3759 if (unlikely(kw_args > 0)) {
3760 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalElementBoundaryRT0velocityValues") < 0)) __PYX_ERR(0, 197, __pyx_L3_error)
3762 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
3763 goto __pyx_L5_argtuple_error;
3765 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3766 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3767 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3768 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3770 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
3771 __pyx_v_x_elementBoundary_global = ((PyArrayObject *)values[1]);
3772 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[2]);
3773 __pyx_v_v_elementBoundary_global = ((PyArrayObject *)values[3]);
3775 goto __pyx_L4_argument_unpacking_done;
3776 __pyx_L5_argtuple_error:;
3777 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 197, __pyx_L3_error)
3779 __Pyx_AddTraceback(
"cpostprocessing.getGlobalElementBoundaryRT0velocityValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
3780 __Pyx_RefNannyFinishContext();
3782 __pyx_L4_argument_unpacking_done:;
3783 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 197, __pyx_L1_error)
3784 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary_global", 0))) __PYX_ERR(0, 198, __pyx_L1_error)
3785 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 199, __pyx_L1_error)
3786 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary_global", 0))) __PYX_ERR(0, 200, __pyx_L1_error)
3787 __pyx_r = __pyx_pf_15cpostprocessing_12getGlobalElementBoundaryRT0velocityValues(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_x_elementBoundary_global, __pyx_v_rt0vdofs_element, __pyx_v_v_elementBoundary_global);
3794 __Pyx_RefNannyFinishContext();
3798 static PyObject *__pyx_pf_15cpostprocessing_12getGlobalElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global) {
3799 PyObject *__pyx_r = NULL;
3800 __Pyx_RefNannyDeclarations
3801 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryRT0velocityValues", 0);
3810 getGlobalElementBoundaryRT0velocityValues((__pyx_v_v_elementBoundary_global->dimensions[0]), (__pyx_v_v_elementBoundary_global->dimensions[1]), (__pyx_v_v_elementBoundary_global->dimensions[2]), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
double *)__pyx_v_x_elementBoundary_global->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_elementBoundary_global->data));
3821 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3822 __Pyx_XGIVEREF(__pyx_r);
3823 __Pyx_RefNannyFinishContext();
3836 static PyObject *__pyx_pw_15cpostprocessing_15getGlobalExteriorElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3837 static PyMethodDef __pyx_mdef_15cpostprocessing_15getGlobalExteriorElementBoundaryRT0velocityValues = {
"getGlobalExteriorElementBoundaryRT0velocityValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_15getGlobalExteriorElementBoundaryRT0velocityValues, METH_VARARGS|METH_KEYWORDS, 0};
3838 static PyObject *__pyx_pw_15cpostprocessing_15getGlobalExteriorElementBoundaryRT0velocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3839 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
3840 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
3841 PyArrayObject *__pyx_v_x_elementBoundary_global = 0;
3842 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
3843 PyArrayObject *__pyx_v_v_elementBoundary_global = 0;
3844 int __pyx_lineno = 0;
3845 const char *__pyx_filename = NULL;
3846 int __pyx_clineno = 0;
3847 PyObject *__pyx_r = 0;
3848 __Pyx_RefNannyDeclarations
3849 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryRT0velocityValues (wrapper)", 0);
3851 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_x_elementBoundary_global,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_elementBoundary_global,0};
3852 PyObject* values[5] = {0,0,0,0,0};
3853 if (unlikely(__pyx_kwds)) {
3855 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3857 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3859 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3861 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3863 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3865 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3868 default:
goto __pyx_L5_argtuple_error;
3870 kw_args = PyDict_Size(__pyx_kwds);
3873 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
3874 else goto __pyx_L5_argtuple_error;
3877 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
3879 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValues", 1, 5, 5, 1); __PYX_ERR(0, 209, __pyx_L3_error)
3883 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary_global)) != 0)) kw_args--;
3885 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValues", 1, 5, 5, 2); __PYX_ERR(0, 209, __pyx_L3_error)
3889 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
3891 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValues", 1, 5, 5, 3); __PYX_ERR(0, 209, __pyx_L3_error)
3895 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary_global)) != 0)) kw_args--;
3897 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValues", 1, 5, 5, 4); __PYX_ERR(0, 209, __pyx_L3_error)
3900 if (unlikely(kw_args > 0)) {
3901 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalExteriorElementBoundaryRT0velocityValues") < 0)) __PYX_ERR(0, 209, __pyx_L3_error)
3903 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
3904 goto __pyx_L5_argtuple_error;
3906 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3907 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3908 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3909 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3910 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3912 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
3913 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
3914 __pyx_v_x_elementBoundary_global = ((PyArrayObject *)values[2]);
3915 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[3]);
3916 __pyx_v_v_elementBoundary_global = ((PyArrayObject *)values[4]);
3918 goto __pyx_L4_argument_unpacking_done;
3919 __pyx_L5_argtuple_error:;
3920 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 209, __pyx_L3_error)
3922 __Pyx_AddTraceback(
"cpostprocessing.getGlobalExteriorElementBoundaryRT0velocityValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
3923 __Pyx_RefNannyFinishContext();
3925 __pyx_L4_argument_unpacking_done:;
3926 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 209, __pyx_L1_error)
3927 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 210, __pyx_L1_error)
3928 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary_global", 0))) __PYX_ERR(0, 211, __pyx_L1_error)
3929 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 212, __pyx_L1_error)
3930 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary_global", 0))) __PYX_ERR(0, 213, __pyx_L1_error)
3931 __pyx_r = __pyx_pf_15cpostprocessing_14getGlobalExteriorElementBoundaryRT0velocityValues(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_x_elementBoundary_global, __pyx_v_rt0vdofs_element, __pyx_v_v_elementBoundary_global);
3938 __Pyx_RefNannyFinishContext();
3942 static PyObject *__pyx_pf_15cpostprocessing_14getGlobalExteriorElementBoundaryRT0velocityValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global) {
3943 PyObject *__pyx_r = NULL;
3944 __Pyx_RefNannyDeclarations
3945 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryRT0velocityValues", 0);
3954 getGlobalExteriorElementBoundaryRT0velocityValues((__pyx_v_exteriorElementBoundariesArray->dimensions[0]), (__pyx_v_v_elementBoundary_global->dimensions[1]), (__pyx_v_v_elementBoundary_global->dimensions[2]), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_x_elementBoundary_global->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_elementBoundary_global->data));
3965 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3966 __Pyx_XGIVEREF(__pyx_r);
3967 __Pyx_RefNannyFinishContext();
3980 static PyObject *__pyx_pw_15cpostprocessing_17postProcessRT0potentialFromP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3981 static PyMethodDef __pyx_mdef_15cpostprocessing_17postProcessRT0potentialFromP1nc = {
"postProcessRT0potentialFromP1nc", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_17postProcessRT0potentialFromP1nc, METH_VARARGS|METH_KEYWORDS, 0};
3982 static PyObject *__pyx_pw_15cpostprocessing_17postProcessRT0potentialFromP1nc(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3983 PyArrayObject *__pyx_v_uQuadratureWeights_element = 0;
3984 PyArrayObject *__pyx_v_elementBarycenters = 0;
3985 PyArrayObject *__pyx_v_aElementQuadWeights = 0;
3986 PyArrayObject *__pyx_v_detJ = 0;
3987 CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary = 0;
3988 PyArrayObject *__pyx_v_x = 0;
3989 PyArrayObject *__pyx_v_u = 0;
3990 PyArrayObject *__pyx_v_gradu = 0;
3991 PyArrayObject *__pyx_v_x_elementBoundary = 0;
3992 PyArrayObject *__pyx_v_u_elementBoundary = 0;
3993 PyArrayObject *__pyx_v_n = 0;
3994 PyArrayObject *__pyx_v_a = 0;
3995 PyArrayObject *__pyx_v_f = 0;
3996 PyArrayObject *__pyx_v_r = 0;
3997 PyArrayObject *__pyx_v_rt0vdofs = 0;
3998 PyArrayObject *__pyx_v_rt0potential = 0;
3999 int __pyx_lineno = 0;
4000 const char *__pyx_filename = NULL;
4001 int __pyx_clineno = 0;
4002 PyObject *__pyx_r = 0;
4003 __Pyx_RefNannyDeclarations
4004 __Pyx_RefNannySetupContext(
"postProcessRT0potentialFromP1nc (wrapper)", 0);
4006 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_uQuadratureWeights_element,&__pyx_n_s_elementBarycenters,&__pyx_n_s_aElementQuadWeights,&__pyx_n_s_detJ,&__pyx_n_s_uQuadratureWeights_elementBounda,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_x_elementBoundary,&__pyx_n_s_u_elementBoundary,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_rt0vdofs,&__pyx_n_s_rt0potential,0};
4007 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
4008 if (unlikely(__pyx_kwds)) {
4010 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4012 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4014 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4016 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4018 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4020 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4022 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4024 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4026 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4028 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4030 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4032 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4034 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4036 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4038 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4040 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4042 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4045 default:
goto __pyx_L5_argtuple_error;
4047 kw_args = PyDict_Size(__pyx_kwds);
4050 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uQuadratureWeights_element)) != 0)) kw_args--;
4051 else goto __pyx_L5_argtuple_error;
4054 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBarycenters)) != 0)) kw_args--;
4056 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 1); __PYX_ERR(0, 223, __pyx_L3_error)
4060 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aElementQuadWeights)) != 0)) kw_args--;
4062 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 2); __PYX_ERR(0, 223, __pyx_L3_error)
4066 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
4068 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 3); __PYX_ERR(0, 223, __pyx_L3_error)
4072 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uQuadratureWeights_elementBounda)) != 0)) kw_args--;
4074 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 4); __PYX_ERR(0, 223, __pyx_L3_error)
4078 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
4080 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 5); __PYX_ERR(0, 223, __pyx_L3_error)
4084 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4086 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 6); __PYX_ERR(0, 223, __pyx_L3_error)
4090 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
4092 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 7); __PYX_ERR(0, 223, __pyx_L3_error)
4096 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary)) != 0)) kw_args--;
4098 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 8); __PYX_ERR(0, 223, __pyx_L3_error)
4102 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_elementBoundary)) != 0)) kw_args--;
4104 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 9); __PYX_ERR(0, 223, __pyx_L3_error)
4108 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4110 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 10); __PYX_ERR(0, 223, __pyx_L3_error)
4114 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4116 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 11); __PYX_ERR(0, 223, __pyx_L3_error)
4120 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4122 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 12); __PYX_ERR(0, 223, __pyx_L3_error)
4126 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
4128 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 13); __PYX_ERR(0, 223, __pyx_L3_error)
4132 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs)) != 0)) kw_args--;
4134 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 14); __PYX_ERR(0, 223, __pyx_L3_error)
4138 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0potential)) != 0)) kw_args--;
4140 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, 15); __PYX_ERR(0, 223, __pyx_L3_error)
4143 if (unlikely(kw_args > 0)) {
4144 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"postProcessRT0potentialFromP1nc") < 0)) __PYX_ERR(0, 223, __pyx_L3_error)
4146 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
4147 goto __pyx_L5_argtuple_error;
4149 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4150 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4151 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4152 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4153 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4154 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4155 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4156 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4157 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4158 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4159 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4160 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4161 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4162 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4163 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4164 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4166 __pyx_v_uQuadratureWeights_element = ((PyArrayObject *)values[0]);
4167 __pyx_v_elementBarycenters = ((PyArrayObject *)values[1]);
4168 __pyx_v_aElementQuadWeights = ((PyArrayObject *)values[2]);
4169 __pyx_v_detJ = ((PyArrayObject *)values[3]);
4170 __pyx_v_uQuadratureWeights_elementBoundary = ((PyArrayObject *)values[4]);
4171 __pyx_v_x = ((PyArrayObject *)values[5]);
4172 __pyx_v_u = ((PyArrayObject *)values[6]);
4173 __pyx_v_gradu = ((PyArrayObject *)values[7]);
4174 __pyx_v_x_elementBoundary = ((PyArrayObject *)values[8]);
4175 __pyx_v_u_elementBoundary = ((PyArrayObject *)values[9]);
4176 __pyx_v_n = ((PyArrayObject *)values[10]);
4177 __pyx_v_a = ((PyArrayObject *)values[11]);
4178 __pyx_v_f = ((PyArrayObject *)values[12]);
4179 __pyx_v_r = ((PyArrayObject *)values[13]);
4180 __pyx_v_rt0vdofs = ((PyArrayObject *)values[14]);
4181 __pyx_v_rt0potential = ((PyArrayObject *)values[15]);
4183 goto __pyx_L4_argument_unpacking_done;
4184 __pyx_L5_argtuple_error:;
4185 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 223, __pyx_L3_error)
4187 __Pyx_AddTraceback(
"cpostprocessing.postProcessRT0potentialFromP1nc", __pyx_clineno, __pyx_lineno, __pyx_filename);
4188 __Pyx_RefNannyFinishContext();
4190 __pyx_L4_argument_unpacking_done:;
4191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uQuadratureWeights_element), __pyx_ptype_5numpy_ndarray, 1,
"uQuadratureWeights_element", 0))) __PYX_ERR(0, 223, __pyx_L1_error)
4192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBarycenters), __pyx_ptype_5numpy_ndarray, 1,
"elementBarycenters", 0))) __PYX_ERR(0, 224, __pyx_L1_error)
4193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_aElementQuadWeights), __pyx_ptype_5numpy_ndarray, 1,
"aElementQuadWeights", 0))) __PYX_ERR(0, 225, __pyx_L1_error)
4194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 226, __pyx_L1_error)
4195 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uQuadratureWeights_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"uQuadratureWeights_elementBoundary", 0))) __PYX_ERR(0, 227, __pyx_L1_error)
4196 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 228, __pyx_L1_error)
4197 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 229, __pyx_L1_error)
4198 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 230, __pyx_L1_error)
4199 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary", 0))) __PYX_ERR(0, 231, __pyx_L1_error)
4200 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"u_elementBoundary", 0))) __PYX_ERR(0, 232, __pyx_L1_error)
4201 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 233, __pyx_L1_error)
4202 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 234, __pyx_L1_error)
4203 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 235, __pyx_L1_error)
4204 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 236, __pyx_L1_error)
4205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs", 0))) __PYX_ERR(0, 237, __pyx_L1_error)
4206 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0potential), __pyx_ptype_5numpy_ndarray, 1,
"rt0potential", 0))) __PYX_ERR(0, 238, __pyx_L1_error)
4207 __pyx_r = __pyx_pf_15cpostprocessing_16postProcessRT0potentialFromP1nc(__pyx_self, __pyx_v_uQuadratureWeights_element, __pyx_v_elementBarycenters, __pyx_v_aElementQuadWeights, __pyx_v_detJ, __pyx_v_uQuadratureWeights_elementBoundary, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_x_elementBoundary, __pyx_v_u_elementBoundary, __pyx_v_n, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_rt0vdofs, __pyx_v_rt0potential);
4214 __Pyx_RefNannyFinishContext();
4218 static PyObject *__pyx_pf_15cpostprocessing_16postProcessRT0potentialFromP1nc(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_uQuadratureWeights_element, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_aElementQuadWeights, PyArrayObject *__pyx_v_detJ, CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_u_elementBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_rt0potential) {
4219 PyObject *__pyx_r = NULL;
4220 __Pyx_RefNannyDeclarations
4221 __Pyx_RefNannySetupContext(
"postProcessRT0potentialFromP1nc", 0);
4230 postProcessRT0potentialFromP1nc((__pyx_v_u->dimensions[0]), (__pyx_v_u->dimensions[1]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->dimensions[3]), ((
double *)__pyx_v_uQuadratureWeights_element->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_aElementQuadWeights->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_uQuadratureWeights_element->data), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_x_elementBoundary->data), ((
double *)__pyx_v_u_elementBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_rt0vdofs->data), ((
double *)__pyx_v_rt0potential->data));
4241 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4242 __Pyx_XGIVEREF(__pyx_r);
4243 __Pyx_RefNannyFinishContext();
4256 static PyObject *__pyx_pw_15cpostprocessing_19postProcessRT0potentialFromP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4257 static PyMethodDef __pyx_mdef_15cpostprocessing_19postProcessRT0potentialFromP1nc_sd = {
"postProcessRT0potentialFromP1nc_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_19postProcessRT0potentialFromP1nc_sd, METH_VARARGS|METH_KEYWORDS, 0};
4258 static PyObject *__pyx_pw_15cpostprocessing_19postProcessRT0potentialFromP1nc_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4259 PyArrayObject *__pyx_v_rowptr = 0;
4260 PyArrayObject *__pyx_v_colind = 0;
4261 PyArrayObject *__pyx_v_uQuadratureWeights_element = 0;
4262 PyArrayObject *__pyx_v_elementBarycenters = 0;
4263 PyArrayObject *__pyx_v_aElementQuadWeights = 0;
4264 PyArrayObject *__pyx_v_detJ = 0;
4265 CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary = 0;
4266 PyArrayObject *__pyx_v_x = 0;
4267 PyArrayObject *__pyx_v_u = 0;
4268 PyArrayObject *__pyx_v_gradu = 0;
4269 PyArrayObject *__pyx_v_x_elementBoundary = 0;
4270 PyArrayObject *__pyx_v_u_elementBoundary = 0;
4271 PyArrayObject *__pyx_v_n = 0;
4272 PyArrayObject *__pyx_v_a = 0;
4273 PyArrayObject *__pyx_v_f = 0;
4274 PyArrayObject *__pyx_v_r = 0;
4275 PyArrayObject *__pyx_v_rt0vdofs = 0;
4276 PyArrayObject *__pyx_v_rt0potential = 0;
4277 int __pyx_lineno = 0;
4278 const char *__pyx_filename = NULL;
4279 int __pyx_clineno = 0;
4280 PyObject *__pyx_r = 0;
4281 __Pyx_RefNannyDeclarations
4282 __Pyx_RefNannySetupContext(
"postProcessRT0potentialFromP1nc_sd (wrapper)", 0);
4284 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_uQuadratureWeights_element,&__pyx_n_s_elementBarycenters,&__pyx_n_s_aElementQuadWeights,&__pyx_n_s_detJ,&__pyx_n_s_uQuadratureWeights_elementBounda,&__pyx_n_s_x,&__pyx_n_s_u,&__pyx_n_s_gradu,&__pyx_n_s_x_elementBoundary,&__pyx_n_s_u_elementBoundary,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_f,&__pyx_n_s_r,&__pyx_n_s_rt0vdofs,&__pyx_n_s_rt0potential,0};
4285 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
4286 if (unlikely(__pyx_kwds)) {
4288 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4290 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4292 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4294 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4296 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4298 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4300 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4302 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4304 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4306 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4308 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4310 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4312 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4314 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4316 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4318 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4320 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4322 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4324 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4327 default:
goto __pyx_L5_argtuple_error;
4329 kw_args = PyDict_Size(__pyx_kwds);
4332 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
4333 else goto __pyx_L5_argtuple_error;
4336 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
4338 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 1); __PYX_ERR(0, 261, __pyx_L3_error)
4342 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uQuadratureWeights_element)) != 0)) kw_args--;
4344 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 2); __PYX_ERR(0, 261, __pyx_L3_error)
4348 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBarycenters)) != 0)) kw_args--;
4350 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 3); __PYX_ERR(0, 261, __pyx_L3_error)
4354 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aElementQuadWeights)) != 0)) kw_args--;
4356 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 4); __PYX_ERR(0, 261, __pyx_L3_error)
4360 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_detJ)) != 0)) kw_args--;
4362 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 5); __PYX_ERR(0, 261, __pyx_L3_error)
4366 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uQuadratureWeights_elementBounda)) != 0)) kw_args--;
4368 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 6); __PYX_ERR(0, 261, __pyx_L3_error)
4372 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
4374 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 7); __PYX_ERR(0, 261, __pyx_L3_error)
4378 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
4380 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 8); __PYX_ERR(0, 261, __pyx_L3_error)
4384 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_gradu)) != 0)) kw_args--;
4386 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 9); __PYX_ERR(0, 261, __pyx_L3_error)
4390 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary)) != 0)) kw_args--;
4392 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 10); __PYX_ERR(0, 261, __pyx_L3_error)
4396 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u_elementBoundary)) != 0)) kw_args--;
4398 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 11); __PYX_ERR(0, 261, __pyx_L3_error)
4402 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
4404 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 12); __PYX_ERR(0, 261, __pyx_L3_error)
4408 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4410 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 13); __PYX_ERR(0, 261, __pyx_L3_error)
4414 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
4416 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 14); __PYX_ERR(0, 261, __pyx_L3_error)
4420 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
4422 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 15); __PYX_ERR(0, 261, __pyx_L3_error)
4426 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs)) != 0)) kw_args--;
4428 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 16); __PYX_ERR(0, 261, __pyx_L3_error)
4432 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0potential)) != 0)) kw_args--;
4434 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, 17); __PYX_ERR(0, 261, __pyx_L3_error)
4437 if (unlikely(kw_args > 0)) {
4438 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"postProcessRT0potentialFromP1nc_sd") < 0)) __PYX_ERR(0, 261, __pyx_L3_error)
4440 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
4441 goto __pyx_L5_argtuple_error;
4443 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4444 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4445 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4446 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4447 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4448 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4449 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4450 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4451 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4452 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4453 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4454 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4455 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
4456 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
4457 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
4458 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
4459 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
4460 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
4462 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
4463 __pyx_v_colind = ((PyArrayObject *)values[1]);
4464 __pyx_v_uQuadratureWeights_element = ((PyArrayObject *)values[2]);
4465 __pyx_v_elementBarycenters = ((PyArrayObject *)values[3]);
4466 __pyx_v_aElementQuadWeights = ((PyArrayObject *)values[4]);
4467 __pyx_v_detJ = ((PyArrayObject *)values[5]);
4468 __pyx_v_uQuadratureWeights_elementBoundary = ((PyArrayObject *)values[6]);
4469 __pyx_v_x = ((PyArrayObject *)values[7]);
4470 __pyx_v_u = ((PyArrayObject *)values[8]);
4471 __pyx_v_gradu = ((PyArrayObject *)values[9]);
4472 __pyx_v_x_elementBoundary = ((PyArrayObject *)values[10]);
4473 __pyx_v_u_elementBoundary = ((PyArrayObject *)values[11]);
4474 __pyx_v_n = ((PyArrayObject *)values[12]);
4475 __pyx_v_a = ((PyArrayObject *)values[13]);
4476 __pyx_v_f = ((PyArrayObject *)values[14]);
4477 __pyx_v_r = ((PyArrayObject *)values[15]);
4478 __pyx_v_rt0vdofs = ((PyArrayObject *)values[16]);
4479 __pyx_v_rt0potential = ((PyArrayObject *)values[17]);
4481 goto __pyx_L4_argument_unpacking_done;
4482 __pyx_L5_argtuple_error:;
4483 __Pyx_RaiseArgtupleInvalid(
"postProcessRT0potentialFromP1nc_sd", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 261, __pyx_L3_error)
4485 __Pyx_AddTraceback(
"cpostprocessing.postProcessRT0potentialFromP1nc_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
4486 __Pyx_RefNannyFinishContext();
4488 __pyx_L4_argument_unpacking_done:;
4489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 261, __pyx_L1_error)
4490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 262, __pyx_L1_error)
4491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uQuadratureWeights_element), __pyx_ptype_5numpy_ndarray, 1,
"uQuadratureWeights_element", 0))) __PYX_ERR(0, 263, __pyx_L1_error)
4492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBarycenters), __pyx_ptype_5numpy_ndarray, 1,
"elementBarycenters", 0))) __PYX_ERR(0, 264, __pyx_L1_error)
4493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_aElementQuadWeights), __pyx_ptype_5numpy_ndarray, 1,
"aElementQuadWeights", 0))) __PYX_ERR(0, 265, __pyx_L1_error)
4494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_detJ), __pyx_ptype_5numpy_ndarray, 1,
"detJ", 0))) __PYX_ERR(0, 266, __pyx_L1_error)
4495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uQuadratureWeights_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"uQuadratureWeights_elementBoundary", 0))) __PYX_ERR(0, 267, __pyx_L1_error)
4496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 268, __pyx_L1_error)
4497 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 269, __pyx_L1_error)
4498 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gradu), __pyx_ptype_5numpy_ndarray, 1,
"gradu", 0))) __PYX_ERR(0, 270, __pyx_L1_error)
4499 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary", 0))) __PYX_ERR(0, 271, __pyx_L1_error)
4500 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"u_elementBoundary", 0))) __PYX_ERR(0, 272, __pyx_L1_error)
4501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 273, __pyx_L1_error)
4502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 274, __pyx_L1_error)
4503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 275, __pyx_L1_error)
4504 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 276, __pyx_L1_error)
4505 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs", 0))) __PYX_ERR(0, 277, __pyx_L1_error)
4506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0potential), __pyx_ptype_5numpy_ndarray, 1,
"rt0potential", 0))) __PYX_ERR(0, 278, __pyx_L1_error)
4507 __pyx_r = __pyx_pf_15cpostprocessing_18postProcessRT0potentialFromP1nc_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_uQuadratureWeights_element, __pyx_v_elementBarycenters, __pyx_v_aElementQuadWeights, __pyx_v_detJ, __pyx_v_uQuadratureWeights_elementBoundary, __pyx_v_x, __pyx_v_u, __pyx_v_gradu, __pyx_v_x_elementBoundary, __pyx_v_u_elementBoundary, __pyx_v_n, __pyx_v_a, __pyx_v_f, __pyx_v_r, __pyx_v_rt0vdofs, __pyx_v_rt0potential);
4514 __Pyx_RefNannyFinishContext();
4518 static PyObject *__pyx_pf_15cpostprocessing_18postProcessRT0potentialFromP1nc_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_uQuadratureWeights_element, PyArrayObject *__pyx_v_elementBarycenters, PyArrayObject *__pyx_v_aElementQuadWeights, PyArrayObject *__pyx_v_detJ, CYTHON_UNUSED PyArrayObject *__pyx_v_uQuadratureWeights_elementBoundary, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_gradu, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_u_elementBoundary, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_rt0vdofs, PyArrayObject *__pyx_v_rt0potential) {
4519 PyObject *__pyx_r = NULL;
4520 __Pyx_RefNannyDeclarations
4521 __Pyx_RefNannySetupContext(
"postProcessRT0potentialFromP1nc_sd", 0);
4530 postProcessRT0potentialFromP1nc_sd((__pyx_v_u->dimensions[0]), (__pyx_v_u->dimensions[1]), (__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), ((
double *)__pyx_v_uQuadratureWeights_element->data), ((
double *)__pyx_v_elementBarycenters->data), ((
double *)__pyx_v_aElementQuadWeights->data), ((
double *)__pyx_v_detJ->data), ((
double *)__pyx_v_uQuadratureWeights_element->data), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_gradu->data), ((
double *)__pyx_v_x_elementBoundary->data), ((
double *)__pyx_v_u_elementBoundary->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_rt0vdofs->data), ((
double *)__pyx_v_rt0potential->data));
4541 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4542 __Pyx_XGIVEREF(__pyx_r);
4543 __Pyx_RefNannyFinishContext();
4556 static PyObject *__pyx_pw_15cpostprocessing_21buildLocalBDM1projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4557 static PyMethodDef __pyx_mdef_15cpostprocessing_21buildLocalBDM1projectionMatrices = {
"buildLocalBDM1projectionMatrices", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_21buildLocalBDM1projectionMatrices, METH_VARARGS|METH_KEYWORDS, 0};
4558 static PyObject *__pyx_pw_15cpostprocessing_21buildLocalBDM1projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4559 PyArrayObject *__pyx_v_w_dS_f = 0;
4560 PyArrayObject *__pyx_v_ebq_n = 0;
4561 PyArrayObject *__pyx_v_ebq_v = 0;
4562 PyArrayObject *__pyx_v_BDMmat_element = 0;
4563 int __pyx_lineno = 0;
4564 const char *__pyx_filename = NULL;
4565 int __pyx_clineno = 0;
4566 PyObject *__pyx_r = 0;
4567 __Pyx_RefNannyDeclarations
4568 __Pyx_RefNannySetupContext(
"buildLocalBDM1projectionMatrices (wrapper)", 0);
4570 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_n,&__pyx_n_s_ebq_v,&__pyx_n_s_BDMmat_element,0};
4571 PyObject* values[4] = {0,0,0,0};
4572 if (unlikely(__pyx_kwds)) {
4574 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4576 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4578 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4580 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4582 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4585 default:
goto __pyx_L5_argtuple_error;
4587 kw_args = PyDict_Size(__pyx_kwds);
4590 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
4591 else goto __pyx_L5_argtuple_error;
4594 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_n)) != 0)) kw_args--;
4596 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM1projectionMatrices", 1, 4, 4, 1); __PYX_ERR(0, 303, __pyx_L3_error)
4600 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v)) != 0)) kw_args--;
4602 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM1projectionMatrices", 1, 4, 4, 2); __PYX_ERR(0, 303, __pyx_L3_error)
4606 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
4608 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM1projectionMatrices", 1, 4, 4, 3); __PYX_ERR(0, 303, __pyx_L3_error)
4611 if (unlikely(kw_args > 0)) {
4612 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"buildLocalBDM1projectionMatrices") < 0)) __PYX_ERR(0, 303, __pyx_L3_error)
4614 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
4615 goto __pyx_L5_argtuple_error;
4617 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4618 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4619 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4620 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4622 __pyx_v_w_dS_f = ((PyArrayObject *)values[0]);
4623 __pyx_v_ebq_n = ((PyArrayObject *)values[1]);
4624 __pyx_v_ebq_v = ((PyArrayObject *)values[2]);
4625 __pyx_v_BDMmat_element = ((PyArrayObject *)values[3]);
4627 goto __pyx_L4_argument_unpacking_done;
4628 __pyx_L5_argtuple_error:;
4629 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM1projectionMatrices", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 303, __pyx_L3_error)
4631 __Pyx_AddTraceback(
"cpostprocessing.buildLocalBDM1projectionMatrices", __pyx_clineno, __pyx_lineno, __pyx_filename);
4632 __Pyx_RefNannyFinishContext();
4634 __pyx_L4_argument_unpacking_done:;
4635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 303, __pyx_L1_error)
4636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_n), __pyx_ptype_5numpy_ndarray, 1,
"ebq_n", 0))) __PYX_ERR(0, 304, __pyx_L1_error)
4637 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v", 0))) __PYX_ERR(0, 305, __pyx_L1_error)
4638 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 306, __pyx_L1_error)
4639 __pyx_r = __pyx_pf_15cpostprocessing_20buildLocalBDM1projectionMatrices(__pyx_self, __pyx_v_w_dS_f, __pyx_v_ebq_n, __pyx_v_ebq_v, __pyx_v_BDMmat_element);
4646 __Pyx_RefNannyFinishContext();
4650 static PyObject *__pyx_pf_15cpostprocessing_20buildLocalBDM1projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_BDMmat_element) {
4651 PyObject *__pyx_r = NULL;
4652 __Pyx_RefNannyDeclarations
4653 __Pyx_RefNannySetupContext(
"buildLocalBDM1projectionMatrices", 0);
4662 buildLocalBDM1projectionMatrices((__pyx_v_ebq_n->dimensions[0]), (__pyx_v_ebq_n->dimensions[1]), (__pyx_v_ebq_n->dimensions[2]), (__pyx_v_ebq_n->dimensions[3]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_ebq_v->dimensions[3]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_n->data), ((
double *)__pyx_v_ebq_v->data), ((
double *)__pyx_v_BDMmat_element->data));
4673 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4674 __Pyx_XGIVEREF(__pyx_r);
4675 __Pyx_RefNannyFinishContext();
4688 static PyObject *__pyx_pw_15cpostprocessing_23buildLocalBDM2projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4689 static PyMethodDef __pyx_mdef_15cpostprocessing_23buildLocalBDM2projectionMatrices = {
"buildLocalBDM2projectionMatrices", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_23buildLocalBDM2projectionMatrices, METH_VARARGS|METH_KEYWORDS, 0};
4690 static PyObject *__pyx_pw_15cpostprocessing_23buildLocalBDM2projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4692 PyArrayObject *__pyx_v_w_dS_f = 0;
4693 PyArrayObject *__pyx_v_ebq_n = 0;
4694 PyArrayObject *__pyx_v_ebq_v = 0;
4695 PyArrayObject *__pyx_v_q_basis_vals = 0;
4696 PyArrayObject *__pyx_v_w_int_test_grads = 0;
4697 PyArrayObject *__pyx_v_w_int_div_free = 0;
4698 PyArrayObject *__pyx_v_piola_trial_fun = 0;
4699 PyArrayObject *__pyx_v_edgeFlags = 0;
4700 PyArrayObject *__pyx_v_BDMmat_element = 0;
4701 int __pyx_lineno = 0;
4702 const char *__pyx_filename = NULL;
4703 int __pyx_clineno = 0;
4704 PyObject *__pyx_r = 0;
4705 __Pyx_RefNannyDeclarations
4706 __Pyx_RefNannySetupContext(
"buildLocalBDM2projectionMatrices (wrapper)", 0);
4708 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_degree,&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_n,&__pyx_n_s_ebq_v,&__pyx_n_s_q_basis_vals,&__pyx_n_s_w_int_test_grads,&__pyx_n_s_w_int_div_free,&__pyx_n_s_piola_trial_fun,&__pyx_n_s_edgeFlags,&__pyx_n_s_BDMmat_element,0};
4709 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
4710 if (unlikely(__pyx_kwds)) {
4712 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4714 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4716 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4718 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4720 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4722 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4724 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4726 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4728 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4730 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4732 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4735 default:
goto __pyx_L5_argtuple_error;
4737 kw_args = PyDict_Size(__pyx_kwds);
4740 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_degree)) != 0)) kw_args--;
4741 else goto __pyx_L5_argtuple_error;
4744 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
4746 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 1); __PYX_ERR(0, 319, __pyx_L3_error)
4750 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_n)) != 0)) kw_args--;
4752 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 2); __PYX_ERR(0, 319, __pyx_L3_error)
4756 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v)) != 0)) kw_args--;
4758 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 3); __PYX_ERR(0, 319, __pyx_L3_error)
4762 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_basis_vals)) != 0)) kw_args--;
4764 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 4); __PYX_ERR(0, 319, __pyx_L3_error)
4768 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_int_test_grads)) != 0)) kw_args--;
4770 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 5); __PYX_ERR(0, 319, __pyx_L3_error)
4774 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_int_div_free)) != 0)) kw_args--;
4776 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 6); __PYX_ERR(0, 319, __pyx_L3_error)
4780 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_piola_trial_fun)) != 0)) kw_args--;
4782 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 7); __PYX_ERR(0, 319, __pyx_L3_error)
4786 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_edgeFlags)) != 0)) kw_args--;
4788 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 8); __PYX_ERR(0, 319, __pyx_L3_error)
4792 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
4794 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, 9); __PYX_ERR(0, 319, __pyx_L3_error)
4797 if (unlikely(kw_args > 0)) {
4798 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"buildLocalBDM2projectionMatrices") < 0)) __PYX_ERR(0, 319, __pyx_L3_error)
4800 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
4801 goto __pyx_L5_argtuple_error;
4803 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4804 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4805 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4806 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4807 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4808 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4809 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4810 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4811 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4812 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4814 __pyx_v_degree = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_degree == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 319, __pyx_L3_error)
4815 __pyx_v_w_dS_f = ((PyArrayObject *)values[1]);
4816 __pyx_v_ebq_n = ((PyArrayObject *)values[2]);
4817 __pyx_v_ebq_v = ((PyArrayObject *)values[3]);
4818 __pyx_v_q_basis_vals = ((PyArrayObject *)values[4]);
4819 __pyx_v_w_int_test_grads = ((PyArrayObject *)values[5]);
4820 __pyx_v_w_int_div_free = ((PyArrayObject *)values[6]);
4821 __pyx_v_piola_trial_fun = ((PyArrayObject *)values[7]);
4822 __pyx_v_edgeFlags = ((PyArrayObject *)values[8]);
4823 __pyx_v_BDMmat_element = ((PyArrayObject *)values[9]);
4825 goto __pyx_L4_argument_unpacking_done;
4826 __pyx_L5_argtuple_error:;
4827 __Pyx_RaiseArgtupleInvalid(
"buildLocalBDM2projectionMatrices", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 319, __pyx_L3_error)
4829 __Pyx_AddTraceback(
"cpostprocessing.buildLocalBDM2projectionMatrices", __pyx_clineno, __pyx_lineno, __pyx_filename);
4830 __Pyx_RefNannyFinishContext();
4832 __pyx_L4_argument_unpacking_done:;
4833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 320, __pyx_L1_error)
4834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_n), __pyx_ptype_5numpy_ndarray, 1,
"ebq_n", 0))) __PYX_ERR(0, 321, __pyx_L1_error)
4835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v", 0))) __PYX_ERR(0, 322, __pyx_L1_error)
4836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_basis_vals), __pyx_ptype_5numpy_ndarray, 1,
"q_basis_vals", 0))) __PYX_ERR(0, 323, __pyx_L1_error)
4837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_int_test_grads), __pyx_ptype_5numpy_ndarray, 1,
"w_int_test_grads", 0))) __PYX_ERR(0, 324, __pyx_L1_error)
4838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_int_div_free), __pyx_ptype_5numpy_ndarray, 1,
"w_int_div_free", 0))) __PYX_ERR(0, 325, __pyx_L1_error)
4839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_piola_trial_fun), __pyx_ptype_5numpy_ndarray, 1,
"piola_trial_fun", 0))) __PYX_ERR(0, 326, __pyx_L1_error)
4840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_edgeFlags), __pyx_ptype_5numpy_ndarray, 1,
"edgeFlags", 0))) __PYX_ERR(0, 327, __pyx_L1_error)
4841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 328, __pyx_L1_error)
4842 __pyx_r = __pyx_pf_15cpostprocessing_22buildLocalBDM2projectionMatrices(__pyx_self, __pyx_v_degree, __pyx_v_w_dS_f, __pyx_v_ebq_n, __pyx_v_ebq_v, __pyx_v_q_basis_vals, __pyx_v_w_int_test_grads, __pyx_v_w_int_div_free, __pyx_v_piola_trial_fun, __pyx_v_edgeFlags, __pyx_v_BDMmat_element);
4849 __Pyx_RefNannyFinishContext();
4853 static PyObject *__pyx_pf_15cpostprocessing_22buildLocalBDM2projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_degree, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_q_basis_vals, PyArrayObject *__pyx_v_w_int_test_grads, PyArrayObject *__pyx_v_w_int_div_free, PyArrayObject *__pyx_v_piola_trial_fun, PyArrayObject *__pyx_v_edgeFlags, PyArrayObject *__pyx_v_BDMmat_element) {
4854 PyObject *__pyx_r = NULL;
4855 __Pyx_RefNannyDeclarations
4856 __Pyx_RefNannySetupContext(
"buildLocalBDM2projectionMatrices", 0);
4865 buildLocalBDM2projectionMatrices(__pyx_v_degree, (__pyx_v_ebq_n->dimensions[0]), (__pyx_v_ebq_n->dimensions[1]), (__pyx_v_ebq_n->dimensions[2]), (__pyx_v_q_basis_vals->dimensions[1]), (__pyx_v_ebq_n->dimensions[3]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_ebq_v->dimensions[3]), (__pyx_v_w_int_test_grads->dimensions[2]), (__pyx_v_BDMmat_element->dimensions[1]), ((
int *)__pyx_v_edgeFlags->data), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_n->data), ((
double *)__pyx_v_ebq_v->data), ((
double *)__pyx_v_BDMmat_element->data), ((
double *)__pyx_v_q_basis_vals->data), ((
double *)__pyx_v_w_int_test_grads->data), ((
double *)__pyx_v_w_int_div_free->data), ((
double *)__pyx_v_piola_trial_fun->data));
4876 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4877 __Pyx_XGIVEREF(__pyx_r);
4878 __Pyx_RefNannyFinishContext();
4891 static PyObject *__pyx_pw_15cpostprocessing_25factorLocalBDM1projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4892 static PyMethodDef __pyx_mdef_15cpostprocessing_25factorLocalBDM1projectionMatrices = {
"factorLocalBDM1projectionMatrices", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_25factorLocalBDM1projectionMatrices, METH_VARARGS|METH_KEYWORDS, 0};
4893 static PyObject *__pyx_pw_15cpostprocessing_25factorLocalBDM1projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4894 PyArrayObject *__pyx_v_BDMmat_element = 0;
4895 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
4896 int __pyx_lineno = 0;
4897 const char *__pyx_filename = NULL;
4898 int __pyx_clineno = 0;
4899 PyObject *__pyx_r = 0;
4900 __Pyx_RefNannyDeclarations
4901 __Pyx_RefNannySetupContext(
"factorLocalBDM1projectionMatrices (wrapper)", 0);
4903 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,0};
4904 PyObject* values[2] = {0,0};
4905 if (unlikely(__pyx_kwds)) {
4907 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4909 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4911 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4914 default:
goto __pyx_L5_argtuple_error;
4916 kw_args = PyDict_Size(__pyx_kwds);
4919 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
4920 else goto __pyx_L5_argtuple_error;
4923 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
4925 __Pyx_RaiseArgtupleInvalid(
"factorLocalBDM1projectionMatrices", 1, 2, 2, 1); __PYX_ERR(0, 349, __pyx_L3_error)
4928 if (unlikely(kw_args > 0)) {
4929 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"factorLocalBDM1projectionMatrices") < 0)) __PYX_ERR(0, 349, __pyx_L3_error)
4931 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
4932 goto __pyx_L5_argtuple_error;
4934 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4935 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4937 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
4938 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
4940 goto __pyx_L4_argument_unpacking_done;
4941 __pyx_L5_argtuple_error:;
4942 __Pyx_RaiseArgtupleInvalid(
"factorLocalBDM1projectionMatrices", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 349, __pyx_L3_error)
4944 __Pyx_AddTraceback(
"cpostprocessing.factorLocalBDM1projectionMatrices", __pyx_clineno, __pyx_lineno, __pyx_filename);
4945 __Pyx_RefNannyFinishContext();
4947 __pyx_L4_argument_unpacking_done:;
4948 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 349, __pyx_L1_error)
4949 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 350, __pyx_L1_error)
4950 __pyx_r = __pyx_pf_15cpostprocessing_24factorLocalBDM1projectionMatrices(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element);
4957 __Pyx_RefNannyFinishContext();
4961 static PyObject *__pyx_pf_15cpostprocessing_24factorLocalBDM1projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element) {
4962 PyObject *__pyx_r = NULL;
4963 __Pyx_RefNannyDeclarations
4964 __Pyx_RefNannySetupContext(
"factorLocalBDM1projectionMatrices", 0);
4973 factorLocalBDM1projectionMatrices((__pyx_v_BDMmat_element->dimensions[0]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data));
4984 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4985 __Pyx_XGIVEREF(__pyx_r);
4986 __Pyx_RefNannyFinishContext();
4999 static PyObject *__pyx_pw_15cpostprocessing_27factorLocalBDM2projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5000 static PyMethodDef __pyx_mdef_15cpostprocessing_27factorLocalBDM2projectionMatrices = {
"factorLocalBDM2projectionMatrices", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_27factorLocalBDM2projectionMatrices, METH_VARARGS|METH_KEYWORDS, 0};
5001 static PyObject *__pyx_pw_15cpostprocessing_27factorLocalBDM2projectionMatrices(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5002 PyArrayObject *__pyx_v_BDMmat_element = 0;
5003 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
5004 int __pyx_lineno = 0;
5005 const char *__pyx_filename = NULL;
5006 int __pyx_clineno = 0;
5007 PyObject *__pyx_r = 0;
5008 __Pyx_RefNannyDeclarations
5009 __Pyx_RefNannySetupContext(
"factorLocalBDM2projectionMatrices (wrapper)", 0);
5011 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,0};
5012 PyObject* values[2] = {0,0};
5013 if (unlikely(__pyx_kwds)) {
5015 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5017 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5019 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5022 default:
goto __pyx_L5_argtuple_error;
5024 kw_args = PyDict_Size(__pyx_kwds);
5027 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
5028 else goto __pyx_L5_argtuple_error;
5031 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
5033 __Pyx_RaiseArgtupleInvalid(
"factorLocalBDM2projectionMatrices", 1, 2, 2, 1); __PYX_ERR(0, 356, __pyx_L3_error)
5036 if (unlikely(kw_args > 0)) {
5037 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"factorLocalBDM2projectionMatrices") < 0)) __PYX_ERR(0, 356, __pyx_L3_error)
5039 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
5040 goto __pyx_L5_argtuple_error;
5042 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5043 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5045 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
5046 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
5048 goto __pyx_L4_argument_unpacking_done;
5049 __pyx_L5_argtuple_error:;
5050 __Pyx_RaiseArgtupleInvalid(
"factorLocalBDM2projectionMatrices", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 356, __pyx_L3_error)
5052 __Pyx_AddTraceback(
"cpostprocessing.factorLocalBDM2projectionMatrices", __pyx_clineno, __pyx_lineno, __pyx_filename);
5053 __Pyx_RefNannyFinishContext();
5055 __pyx_L4_argument_unpacking_done:;
5056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 356, __pyx_L1_error)
5057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 357, __pyx_L1_error)
5058 __pyx_r = __pyx_pf_15cpostprocessing_26factorLocalBDM2projectionMatrices(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element);
5065 __Pyx_RefNannyFinishContext();
5069 static PyObject *__pyx_pf_15cpostprocessing_26factorLocalBDM2projectionMatrices(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element) {
5070 PyObject *__pyx_r = NULL;
5071 __Pyx_RefNannyDeclarations
5072 __Pyx_RefNannySetupContext(
"factorLocalBDM2projectionMatrices", 0);
5081 factorLocalBDM2projectionMatrices((__pyx_v_BDMmat_element->dimensions[0]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data));
5092 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5093 __Pyx_XGIVEREF(__pyx_r);
5094 __Pyx_RefNannyFinishContext();
5107 static PyObject *__pyx_pw_15cpostprocessing_29solveLocalBDM1projection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5108 static PyMethodDef __pyx_mdef_15cpostprocessing_29solveLocalBDM1projection = {
"solveLocalBDM1projection", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_29solveLocalBDM1projection, METH_VARARGS|METH_KEYWORDS, 0};
5109 static PyObject *__pyx_pw_15cpostprocessing_29solveLocalBDM1projection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5110 PyArrayObject *__pyx_v_BDMmat_element = 0;
5111 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
5112 PyArrayObject *__pyx_v_w_dS_f = 0;
5113 PyArrayObject *__pyx_v_ebq_n = 0;
5114 PyArrayObject *__pyx_v_ebq_velocity = 0;
5115 PyArrayObject *__pyx_v_q_vdofs = 0;
5116 int __pyx_lineno = 0;
5117 const char *__pyx_filename = NULL;
5118 int __pyx_clineno = 0;
5119 PyObject *__pyx_r = 0;
5120 __Pyx_RefNannyDeclarations
5121 __Pyx_RefNannySetupContext(
"solveLocalBDM1projection (wrapper)", 0);
5123 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_n,&__pyx_n_s_ebq_velocity,&__pyx_n_s_q_vdofs,0};
5124 PyObject* values[6] = {0,0,0,0,0,0};
5125 if (unlikely(__pyx_kwds)) {
5127 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5129 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5131 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5133 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5135 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5137 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5139 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5142 default:
goto __pyx_L5_argtuple_error;
5144 kw_args = PyDict_Size(__pyx_kwds);
5147 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
5148 else goto __pyx_L5_argtuple_error;
5151 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
5153 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, 1); __PYX_ERR(0, 363, __pyx_L3_error)
5157 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
5159 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, 2); __PYX_ERR(0, 363, __pyx_L3_error)
5163 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_n)) != 0)) kw_args--;
5165 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, 3); __PYX_ERR(0, 363, __pyx_L3_error)
5169 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
5171 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, 4); __PYX_ERR(0, 363, __pyx_L3_error)
5175 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_vdofs)) != 0)) kw_args--;
5177 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, 5); __PYX_ERR(0, 363, __pyx_L3_error)
5180 if (unlikely(kw_args > 0)) {
5181 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"solveLocalBDM1projection") < 0)) __PYX_ERR(0, 363, __pyx_L3_error)
5183 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
5184 goto __pyx_L5_argtuple_error;
5186 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5187 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5188 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5189 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5190 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5191 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5193 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
5194 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
5195 __pyx_v_w_dS_f = ((PyArrayObject *)values[2]);
5196 __pyx_v_ebq_n = ((PyArrayObject *)values[3]);
5197 __pyx_v_ebq_velocity = ((PyArrayObject *)values[4]);
5198 __pyx_v_q_vdofs = ((PyArrayObject *)values[5]);
5200 goto __pyx_L4_argument_unpacking_done;
5201 __pyx_L5_argtuple_error:;
5202 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projection", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 363, __pyx_L3_error)
5204 __Pyx_AddTraceback(
"cpostprocessing.solveLocalBDM1projection", __pyx_clineno, __pyx_lineno, __pyx_filename);
5205 __Pyx_RefNannyFinishContext();
5207 __pyx_L4_argument_unpacking_done:;
5208 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 363, __pyx_L1_error)
5209 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 364, __pyx_L1_error)
5210 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 365, __pyx_L1_error)
5211 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_n), __pyx_ptype_5numpy_ndarray, 1,
"ebq_n", 0))) __PYX_ERR(0, 366, __pyx_L1_error)
5212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 367, __pyx_L1_error)
5213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"q_vdofs", 0))) __PYX_ERR(0, 368, __pyx_L1_error)
5214 __pyx_r = __pyx_pf_15cpostprocessing_28solveLocalBDM1projection(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element, __pyx_v_w_dS_f, __pyx_v_ebq_n, __pyx_v_ebq_velocity, __pyx_v_q_vdofs);
5221 __Pyx_RefNannyFinishContext();
5225 static PyObject *__pyx_pf_15cpostprocessing_28solveLocalBDM1projection(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_vdofs) {
5226 PyObject *__pyx_r = NULL;
5227 __Pyx_RefNannyDeclarations
5228 __Pyx_RefNannySetupContext(
"solveLocalBDM1projection", 0);
5237 solveLocalBDM1projection((__pyx_v_ebq_n->dimensions[0]), (__pyx_v_ebq_n->dimensions[1]), (__pyx_v_ebq_n->dimensions[2]), (__pyx_v_ebq_n->dimensions[3]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_n->data), ((
double *)__pyx_v_ebq_velocity->data), ((
double *)__pyx_v_q_vdofs->data));
5248 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5249 __Pyx_XGIVEREF(__pyx_r);
5250 __Pyx_RefNannyFinishContext();
5263 static PyObject *__pyx_pw_15cpostprocessing_31solveLocalBDM2projection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5264 static PyMethodDef __pyx_mdef_15cpostprocessing_31solveLocalBDM2projection = {
"solveLocalBDM2projection", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_31solveLocalBDM2projection, METH_VARARGS|METH_KEYWORDS, 0};
5265 static PyObject *__pyx_pw_15cpostprocessing_31solveLocalBDM2projection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5266 PyArrayObject *__pyx_v_BDMmat_element = 0;
5267 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
5268 PyArrayObject *__pyx_v_w_dS_f = 0;
5269 PyArrayObject *__pyx_v_ebq_n = 0;
5270 PyArrayObject *__pyx_v_w_interior_gradients = 0;
5271 PyArrayObject *__pyx_v_ebq_velocity = 0;
5272 PyArrayObject *__pyx_v_q_velocity = 0;
5273 PyArrayObject *__pyx_v_q_vdofs = 0;
5274 int __pyx_lineno = 0;
5275 const char *__pyx_filename = NULL;
5276 int __pyx_clineno = 0;
5277 PyObject *__pyx_r = 0;
5278 __Pyx_RefNannyDeclarations
5279 __Pyx_RefNannySetupContext(
"solveLocalBDM2projection (wrapper)", 0);
5281 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_n,&__pyx_n_s_w_interior_gradients,&__pyx_n_s_ebq_velocity,&__pyx_n_s_q_velocity,&__pyx_n_s_q_vdofs,0};
5282 PyObject* values[8] = {0,0,0,0,0,0,0,0};
5283 if (unlikely(__pyx_kwds)) {
5285 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5287 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5289 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5291 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5293 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5295 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5297 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5299 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5301 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5304 default:
goto __pyx_L5_argtuple_error;
5306 kw_args = PyDict_Size(__pyx_kwds);
5309 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
5310 else goto __pyx_L5_argtuple_error;
5313 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
5315 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 1); __PYX_ERR(0, 382, __pyx_L3_error)
5319 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
5321 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 2); __PYX_ERR(0, 382, __pyx_L3_error)
5325 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_n)) != 0)) kw_args--;
5327 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 3); __PYX_ERR(0, 382, __pyx_L3_error)
5331 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_interior_gradients)) != 0)) kw_args--;
5333 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 4); __PYX_ERR(0, 382, __pyx_L3_error)
5337 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
5339 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 5); __PYX_ERR(0, 382, __pyx_L3_error)
5343 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_velocity)) != 0)) kw_args--;
5345 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 6); __PYX_ERR(0, 382, __pyx_L3_error)
5349 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_vdofs)) != 0)) kw_args--;
5351 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, 7); __PYX_ERR(0, 382, __pyx_L3_error)
5354 if (unlikely(kw_args > 0)) {
5355 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"solveLocalBDM2projection") < 0)) __PYX_ERR(0, 382, __pyx_L3_error)
5357 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
5358 goto __pyx_L5_argtuple_error;
5360 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5361 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5362 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5363 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5364 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5365 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5366 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5367 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5369 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
5370 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
5371 __pyx_v_w_dS_f = ((PyArrayObject *)values[2]);
5372 __pyx_v_ebq_n = ((PyArrayObject *)values[3]);
5373 __pyx_v_w_interior_gradients = ((PyArrayObject *)values[4]);
5374 __pyx_v_ebq_velocity = ((PyArrayObject *)values[5]);
5375 __pyx_v_q_velocity = ((PyArrayObject *)values[6]);
5376 __pyx_v_q_vdofs = ((PyArrayObject *)values[7]);
5378 goto __pyx_L4_argument_unpacking_done;
5379 __pyx_L5_argtuple_error:;
5380 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM2projection", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 382, __pyx_L3_error)
5382 __Pyx_AddTraceback(
"cpostprocessing.solveLocalBDM2projection", __pyx_clineno, __pyx_lineno, __pyx_filename);
5383 __Pyx_RefNannyFinishContext();
5385 __pyx_L4_argument_unpacking_done:;
5386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 382, __pyx_L1_error)
5387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 383, __pyx_L1_error)
5388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 384, __pyx_L1_error)
5389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_n), __pyx_ptype_5numpy_ndarray, 1,
"ebq_n", 0))) __PYX_ERR(0, 385, __pyx_L1_error)
5390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_interior_gradients), __pyx_ptype_5numpy_ndarray, 1,
"w_interior_gradients", 0))) __PYX_ERR(0, 386, __pyx_L1_error)
5391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 387, __pyx_L1_error)
5392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_velocity), __pyx_ptype_5numpy_ndarray, 1,
"q_velocity", 0))) __PYX_ERR(0, 388, __pyx_L1_error)
5393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"q_vdofs", 0))) __PYX_ERR(0, 389, __pyx_L1_error)
5394 __pyx_r = __pyx_pf_15cpostprocessing_30solveLocalBDM2projection(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element, __pyx_v_w_dS_f, __pyx_v_ebq_n, __pyx_v_w_interior_gradients, __pyx_v_ebq_velocity, __pyx_v_q_velocity, __pyx_v_q_vdofs);
5401 __Pyx_RefNannyFinishContext();
5405 static PyObject *__pyx_pf_15cpostprocessing_30solveLocalBDM2projection(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_w_interior_gradients, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_velocity, PyArrayObject *__pyx_v_q_vdofs) {
5406 PyObject *__pyx_r = NULL;
5407 __Pyx_RefNannyDeclarations
5408 __Pyx_RefNannySetupContext(
"solveLocalBDM2projection", 0);
5417 solveLocalBDM2projection((__pyx_v_ebq_n->dimensions[0]), (__pyx_v_ebq_n->dimensions[1]), (__pyx_v_ebq_n->dimensions[2]), (__pyx_v_ebq_n->dimensions[3]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_n->data), ((
double *)__pyx_v_w_interior_gradients->data), ((
double *)__pyx_v_q_velocity->data), ((
double *)__pyx_v_ebq_velocity->data), ((
double *)__pyx_v_q_vdofs->data));
5428 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5429 __Pyx_XGIVEREF(__pyx_r);
5430 __Pyx_RefNannyFinishContext();
5443 static PyObject *__pyx_pw_15cpostprocessing_33buildBDM2rhs(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5444 static PyMethodDef __pyx_mdef_15cpostprocessing_33buildBDM2rhs = {
"buildBDM2rhs", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_33buildBDM2rhs, METH_VARARGS|METH_KEYWORDS, 0};
5445 static PyObject *__pyx_pw_15cpostprocessing_33buildBDM2rhs(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5446 PyArrayObject *__pyx_v_BDMmat_element = 0;
5447 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
5448 PyArrayObject *__pyx_v_w_dS_f = 0;
5449 PyArrayObject *__pyx_v_ebq_n = 0;
5450 PyArrayObject *__pyx_v_w_interior_gradients = 0;
5451 PyArrayObject *__pyx_v_w_interior_divfree = 0;
5452 PyArrayObject *__pyx_v_ebq_velocity = 0;
5453 PyArrayObject *__pyx_v_q_velocity = 0;
5454 PyArrayObject *__pyx_v_q_vdofs = 0;
5455 PyArrayObject *__pyx_v_edgeFlags = 0;
5456 int __pyx_lineno = 0;
5457 const char *__pyx_filename = NULL;
5458 int __pyx_clineno = 0;
5459 PyObject *__pyx_r = 0;
5460 __Pyx_RefNannyDeclarations
5461 __Pyx_RefNannySetupContext(
"buildBDM2rhs (wrapper)", 0);
5463 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_n,&__pyx_n_s_w_interior_gradients,&__pyx_n_s_w_interior_divfree,&__pyx_n_s_ebq_velocity,&__pyx_n_s_q_velocity,&__pyx_n_s_q_vdofs,&__pyx_n_s_edgeFlags,0};
5464 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
5465 if (unlikely(__pyx_kwds)) {
5467 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5469 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5471 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5473 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5475 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5477 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5479 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5481 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5483 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5485 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5487 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5490 default:
goto __pyx_L5_argtuple_error;
5492 kw_args = PyDict_Size(__pyx_kwds);
5495 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
5496 else goto __pyx_L5_argtuple_error;
5499 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
5501 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 1); __PYX_ERR(0, 405, __pyx_L3_error)
5505 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
5507 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 2); __PYX_ERR(0, 405, __pyx_L3_error)
5511 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_n)) != 0)) kw_args--;
5513 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 3); __PYX_ERR(0, 405, __pyx_L3_error)
5517 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_interior_gradients)) != 0)) kw_args--;
5519 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 4); __PYX_ERR(0, 405, __pyx_L3_error)
5523 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_interior_divfree)) != 0)) kw_args--;
5525 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 5); __PYX_ERR(0, 405, __pyx_L3_error)
5529 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
5531 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 6); __PYX_ERR(0, 405, __pyx_L3_error)
5535 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_velocity)) != 0)) kw_args--;
5537 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 7); __PYX_ERR(0, 405, __pyx_L3_error)
5541 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_vdofs)) != 0)) kw_args--;
5543 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 8); __PYX_ERR(0, 405, __pyx_L3_error)
5547 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_edgeFlags)) != 0)) kw_args--;
5549 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, 9); __PYX_ERR(0, 405, __pyx_L3_error)
5552 if (unlikely(kw_args > 0)) {
5553 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"buildBDM2rhs") < 0)) __PYX_ERR(0, 405, __pyx_L3_error)
5555 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
5556 goto __pyx_L5_argtuple_error;
5558 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5559 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5560 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5561 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5562 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5563 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5564 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5565 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5566 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5567 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5569 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
5570 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
5571 __pyx_v_w_dS_f = ((PyArrayObject *)values[2]);
5572 __pyx_v_ebq_n = ((PyArrayObject *)values[3]);
5573 __pyx_v_w_interior_gradients = ((PyArrayObject *)values[4]);
5574 __pyx_v_w_interior_divfree = ((PyArrayObject *)values[5]);
5575 __pyx_v_ebq_velocity = ((PyArrayObject *)values[6]);
5576 __pyx_v_q_velocity = ((PyArrayObject *)values[7]);
5577 __pyx_v_q_vdofs = ((PyArrayObject *)values[8]);
5578 __pyx_v_edgeFlags = ((PyArrayObject *)values[9]);
5580 goto __pyx_L4_argument_unpacking_done;
5581 __pyx_L5_argtuple_error:;
5582 __Pyx_RaiseArgtupleInvalid(
"buildBDM2rhs", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 405, __pyx_L3_error)
5584 __Pyx_AddTraceback(
"cpostprocessing.buildBDM2rhs", __pyx_clineno, __pyx_lineno, __pyx_filename);
5585 __Pyx_RefNannyFinishContext();
5587 __pyx_L4_argument_unpacking_done:;
5588 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 405, __pyx_L1_error)
5589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 406, __pyx_L1_error)
5590 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 407, __pyx_L1_error)
5591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_n), __pyx_ptype_5numpy_ndarray, 1,
"ebq_n", 0))) __PYX_ERR(0, 408, __pyx_L1_error)
5592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_interior_gradients), __pyx_ptype_5numpy_ndarray, 1,
"w_interior_gradients", 0))) __PYX_ERR(0, 409, __pyx_L1_error)
5593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_interior_divfree), __pyx_ptype_5numpy_ndarray, 1,
"w_interior_divfree", 0))) __PYX_ERR(0, 410, __pyx_L1_error)
5594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 411, __pyx_L1_error)
5595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_velocity), __pyx_ptype_5numpy_ndarray, 1,
"q_velocity", 0))) __PYX_ERR(0, 412, __pyx_L1_error)
5596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"q_vdofs", 0))) __PYX_ERR(0, 413, __pyx_L1_error)
5597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_edgeFlags), __pyx_ptype_5numpy_ndarray, 1,
"edgeFlags", 0))) __PYX_ERR(0, 414, __pyx_L1_error)
5598 __pyx_r = __pyx_pf_15cpostprocessing_32buildBDM2rhs(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element, __pyx_v_w_dS_f, __pyx_v_ebq_n, __pyx_v_w_interior_gradients, __pyx_v_w_interior_divfree, __pyx_v_ebq_velocity, __pyx_v_q_velocity, __pyx_v_q_vdofs, __pyx_v_edgeFlags);
5605 __Pyx_RefNannyFinishContext();
5609 static PyObject *__pyx_pf_15cpostprocessing_32buildBDM2rhs(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_n, PyArrayObject *__pyx_v_w_interior_gradients, PyArrayObject *__pyx_v_w_interior_divfree, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_q_velocity, PyArrayObject *__pyx_v_q_vdofs, PyArrayObject *__pyx_v_edgeFlags) {
5610 PyObject *__pyx_r = NULL;
5611 __Pyx_RefNannyDeclarations
5612 __Pyx_RefNannySetupContext(
"buildBDM2rhs", 0);
5621 buildBDM2rhs((__pyx_v_ebq_n->dimensions[0]), (__pyx_v_ebq_n->dimensions[1]), (__pyx_v_ebq_n->dimensions[2]), (__pyx_v_q_velocity->dimensions[1]), (__pyx_v_ebq_n->dimensions[3]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_BDMmat_element->dimensions[1]), (__pyx_v_w_interior_gradients->dimensions[2]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data), ((
int *)__pyx_v_edgeFlags->data), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_n->data), ((
double *)__pyx_v_w_interior_gradients->data), ((
double *)__pyx_v_w_interior_divfree->data), ((
double *)__pyx_v_ebq_velocity->data), ((
double *)__pyx_v_q_velocity->data), ((
double *)__pyx_v_q_vdofs->data));
5632 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5633 __Pyx_XGIVEREF(__pyx_r);
5634 __Pyx_RefNannyFinishContext();
5647 static PyObject *__pyx_pw_15cpostprocessing_35solveLocalBDM1projectionFromFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5648 static PyMethodDef __pyx_mdef_15cpostprocessing_35solveLocalBDM1projectionFromFlux = {
"solveLocalBDM1projectionFromFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_35solveLocalBDM1projectionFromFlux, METH_VARARGS|METH_KEYWORDS, 0};
5649 static PyObject *__pyx_pw_15cpostprocessing_35solveLocalBDM1projectionFromFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5650 PyArrayObject *__pyx_v_BDMmat_element = 0;
5651 PyArrayObject *__pyx_v_BDMmatPivots_element = 0;
5652 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
5653 PyArrayObject *__pyx_v_elementBoundariesArray = 0;
5654 PyArrayObject *__pyx_v_w_dS_f = 0;
5655 PyArrayObject *__pyx_v_ebq_global_flux = 0;
5656 PyArrayObject *__pyx_v_q_vdofs = 0;
5657 int __pyx_lineno = 0;
5658 const char *__pyx_filename = NULL;
5659 int __pyx_clineno = 0;
5660 PyObject *__pyx_r = 0;
5661 __Pyx_RefNannyDeclarations
5662 __Pyx_RefNannySetupContext(
"solveLocalBDM1projectionFromFlux (wrapper)", 0);
5664 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_BDMmat_element,&__pyx_n_s_BDMmatPivots_element,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundariesArray,&__pyx_n_s_w_dS_f,&__pyx_n_s_ebq_global_flux,&__pyx_n_s_q_vdofs,0};
5665 PyObject* values[7] = {0,0,0,0,0,0,0};
5666 if (unlikely(__pyx_kwds)) {
5668 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5670 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5672 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5674 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5676 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5678 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5680 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5682 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5685 default:
goto __pyx_L5_argtuple_error;
5687 kw_args = PyDict_Size(__pyx_kwds);
5690 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmat_element)) != 0)) kw_args--;
5691 else goto __pyx_L5_argtuple_error;
5694 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_BDMmatPivots_element)) != 0)) kw_args--;
5696 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 1); __PYX_ERR(0, 434, __pyx_L3_error)
5700 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
5702 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 2); __PYX_ERR(0, 434, __pyx_L3_error)
5706 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundariesArray)) != 0)) kw_args--;
5708 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 3); __PYX_ERR(0, 434, __pyx_L3_error)
5712 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS_f)) != 0)) kw_args--;
5714 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 4); __PYX_ERR(0, 434, __pyx_L3_error)
5718 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_global_flux)) != 0)) kw_args--;
5720 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 5); __PYX_ERR(0, 434, __pyx_L3_error)
5724 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_vdofs)) != 0)) kw_args--;
5726 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, 6); __PYX_ERR(0, 434, __pyx_L3_error)
5729 if (unlikely(kw_args > 0)) {
5730 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"solveLocalBDM1projectionFromFlux") < 0)) __PYX_ERR(0, 434, __pyx_L3_error)
5732 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
5733 goto __pyx_L5_argtuple_error;
5735 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5736 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5737 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5738 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5739 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5740 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5741 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5743 __pyx_v_BDMmat_element = ((PyArrayObject *)values[0]);
5744 __pyx_v_BDMmatPivots_element = ((PyArrayObject *)values[1]);
5745 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
5746 __pyx_v_elementBoundariesArray = ((PyArrayObject *)values[3]);
5747 __pyx_v_w_dS_f = ((PyArrayObject *)values[4]);
5748 __pyx_v_ebq_global_flux = ((PyArrayObject *)values[5]);
5749 __pyx_v_q_vdofs = ((PyArrayObject *)values[6]);
5751 goto __pyx_L4_argument_unpacking_done;
5752 __pyx_L5_argtuple_error:;
5753 __Pyx_RaiseArgtupleInvalid(
"solveLocalBDM1projectionFromFlux", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 434, __pyx_L3_error)
5755 __Pyx_AddTraceback(
"cpostprocessing.solveLocalBDM1projectionFromFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
5756 __Pyx_RefNannyFinishContext();
5758 __pyx_L4_argument_unpacking_done:;
5759 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmat_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmat_element", 0))) __PYX_ERR(0, 434, __pyx_L1_error)
5760 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_BDMmatPivots_element), __pyx_ptype_5numpy_ndarray, 1,
"BDMmatPivots_element", 0))) __PYX_ERR(0, 435, __pyx_L1_error)
5761 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 436, __pyx_L1_error)
5762 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundariesArray", 0))) __PYX_ERR(0, 437, __pyx_L1_error)
5763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS_f), __pyx_ptype_5numpy_ndarray, 1,
"w_dS_f", 0))) __PYX_ERR(0, 438, __pyx_L1_error)
5764 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_global_flux), __pyx_ptype_5numpy_ndarray, 1,
"ebq_global_flux", 0))) __PYX_ERR(0, 439, __pyx_L1_error)
5765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"q_vdofs", 0))) __PYX_ERR(0, 440, __pyx_L1_error)
5766 __pyx_r = __pyx_pf_15cpostprocessing_34solveLocalBDM1projectionFromFlux(__pyx_self, __pyx_v_BDMmat_element, __pyx_v_BDMmatPivots_element, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundariesArray, __pyx_v_w_dS_f, __pyx_v_ebq_global_flux, __pyx_v_q_vdofs);
5773 __Pyx_RefNannyFinishContext();
5777 static PyObject *__pyx_pf_15cpostprocessing_34solveLocalBDM1projectionFromFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_BDMmat_element, PyArrayObject *__pyx_v_BDMmatPivots_element, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundariesArray, PyArrayObject *__pyx_v_w_dS_f, PyArrayObject *__pyx_v_ebq_global_flux, PyArrayObject *__pyx_v_q_vdofs) {
5778 PyObject *__pyx_r = NULL;
5779 __Pyx_RefNannyDeclarations
5780 __Pyx_RefNannySetupContext(
"solveLocalBDM1projectionFromFlux", 0);
5789 solveLocalBDM1projectionFromFlux((__pyx_v_w_dS_f->dimensions[0]), (__pyx_v_w_dS_f->dimensions[1]), (__pyx_v_w_dS_f->dimensions[2]), (__pyx_v_w_dS_f->dimensions[3]), (__pyx_v_BDMmat_element->dimensions[1]), ((
double *)__pyx_v_BDMmat_element->data), ((
int *)__pyx_v_BDMmatPivots_element->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundariesArray->data), ((
double *)__pyx_v_w_dS_f->data), ((
double *)__pyx_v_ebq_global_flux->data), ((
double *)__pyx_v_q_vdofs->data));
5800 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5801 __Pyx_XGIVEREF(__pyx_r);
5802 __Pyx_RefNannyFinishContext();
5815 static PyObject *__pyx_pw_15cpostprocessing_37getElementBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5816 static PyMethodDef __pyx_mdef_15cpostprocessing_37getElementBDM1velocityValuesLagrangeRep = {
"getElementBDM1velocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_37getElementBDM1velocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
5817 static PyObject *__pyx_pw_15cpostprocessing_37getElementBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5818 PyArrayObject *__pyx_v_q_v = 0;
5819 PyArrayObject *__pyx_v_p1_vdofs = 0;
5820 PyArrayObject *__pyx_v_q_velocity = 0;
5821 int __pyx_lineno = 0;
5822 const char *__pyx_filename = NULL;
5823 int __pyx_clineno = 0;
5824 PyObject *__pyx_r = 0;
5825 __Pyx_RefNannyDeclarations
5826 __Pyx_RefNannySetupContext(
"getElementBDM1velocityValuesLagrangeRep (wrapper)", 0);
5828 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_q_v,&__pyx_n_s_p1_vdofs,&__pyx_n_s_q_velocity,0};
5829 PyObject* values[3] = {0,0,0};
5830 if (unlikely(__pyx_kwds)) {
5832 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5834 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5836 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5838 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5841 default:
goto __pyx_L5_argtuple_error;
5843 kw_args = PyDict_Size(__pyx_kwds);
5846 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_v)) != 0)) kw_args--;
5847 else goto __pyx_L5_argtuple_error;
5850 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1_vdofs)) != 0)) kw_args--;
5852 __Pyx_RaiseArgtupleInvalid(
"getElementBDM1velocityValuesLagrangeRep", 1, 3, 3, 1); __PYX_ERR(0, 454, __pyx_L3_error)
5856 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_velocity)) != 0)) kw_args--;
5858 __Pyx_RaiseArgtupleInvalid(
"getElementBDM1velocityValuesLagrangeRep", 1, 3, 3, 2); __PYX_ERR(0, 454, __pyx_L3_error)
5861 if (unlikely(kw_args > 0)) {
5862 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementBDM1velocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 454, __pyx_L3_error)
5864 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
5865 goto __pyx_L5_argtuple_error;
5867 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5868 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5869 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5871 __pyx_v_q_v = ((PyArrayObject *)values[0]);
5872 __pyx_v_p1_vdofs = ((PyArrayObject *)values[1]);
5873 __pyx_v_q_velocity = ((PyArrayObject *)values[2]);
5875 goto __pyx_L4_argument_unpacking_done;
5876 __pyx_L5_argtuple_error:;
5877 __Pyx_RaiseArgtupleInvalid(
"getElementBDM1velocityValuesLagrangeRep", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 454, __pyx_L3_error)
5879 __Pyx_AddTraceback(
"cpostprocessing.getElementBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
5880 __Pyx_RefNannyFinishContext();
5882 __pyx_L4_argument_unpacking_done:;
5883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_v), __pyx_ptype_5numpy_ndarray, 1,
"q_v", 0))) __PYX_ERR(0, 454, __pyx_L1_error)
5884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p1_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"p1_vdofs", 0))) __PYX_ERR(0, 455, __pyx_L1_error)
5885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_velocity), __pyx_ptype_5numpy_ndarray, 1,
"q_velocity", 0))) __PYX_ERR(0, 456, __pyx_L1_error)
5886 __pyx_r = __pyx_pf_15cpostprocessing_36getElementBDM1velocityValuesLagrangeRep(__pyx_self, __pyx_v_q_v, __pyx_v_p1_vdofs, __pyx_v_q_velocity);
5893 __Pyx_RefNannyFinishContext();
5897 static PyObject *__pyx_pf_15cpostprocessing_36getElementBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_q_velocity) {
5898 int __pyx_v_nVDOFs_element;
5899 PyObject *__pyx_r = NULL;
5900 __Pyx_RefNannyDeclarations
5902 int __pyx_lineno = 0;
5903 const char *__pyx_filename = NULL;
5904 int __pyx_clineno = 0;
5905 __Pyx_RefNannySetupContext(
"getElementBDM1velocityValuesLagrangeRep", 0);
5914 __pyx_v_nVDOFs_element = ((__pyx_v_q_velocity->dimensions[2]) * ((__pyx_v_q_velocity->dimensions[2]) + 1));
5923 __pyx_t_1 = ((__pyx_v_p1_vdofs->nd > 1) != 0);
5933 #ifndef CYTHON_WITHOUT_ASSERTIONS
5934 if (unlikely(!Py_OptimizeFlag)) {
5935 if (unlikely(!((__pyx_v_nVDOFs_element == (__pyx_v_p1_vdofs->dimensions[1])) != 0))) {
5936 PyErr_SetNone(PyExc_AssertionError);
5937 __PYX_ERR(0, 460, __pyx_L1_error)
5958 getElementBDM1velocityValuesLagrangeRep((__pyx_v_q_velocity->dimensions[0]), (__pyx_v_q_velocity->dimensions[1]), (__pyx_v_q_velocity->dimensions[2]), (__pyx_v_q_v->dimensions[2]), __pyx_v_nVDOFs_element, ((
double *)__pyx_v_q_v->data), ((
double *)__pyx_v_p1_vdofs->data), ((
double *)__pyx_v_q_velocity->data));
5969 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5972 __Pyx_AddTraceback(
"cpostprocessing.getElementBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
5975 __Pyx_XGIVEREF(__pyx_r);
5976 __Pyx_RefNannyFinishContext();
5989 static PyObject *__pyx_pw_15cpostprocessing_39getElementBDM2velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5990 static PyMethodDef __pyx_mdef_15cpostprocessing_39getElementBDM2velocityValuesLagrangeRep = {
"getElementBDM2velocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_39getElementBDM2velocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
5991 static PyObject *__pyx_pw_15cpostprocessing_39getElementBDM2velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5992 PyArrayObject *__pyx_v_q_v = 0;
5993 PyArrayObject *__pyx_v_p1_vdofs = 0;
5994 PyArrayObject *__pyx_v_q_velocity = 0;
5995 int __pyx_lineno = 0;
5996 const char *__pyx_filename = NULL;
5997 int __pyx_clineno = 0;
5998 PyObject *__pyx_r = 0;
5999 __Pyx_RefNannyDeclarations
6000 __Pyx_RefNannySetupContext(
"getElementBDM2velocityValuesLagrangeRep (wrapper)", 0);
6002 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_q_v,&__pyx_n_s_p1_vdofs,&__pyx_n_s_q_velocity,0};
6003 PyObject* values[3] = {0,0,0};
6004 if (unlikely(__pyx_kwds)) {
6006 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6008 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6010 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6012 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6015 default:
goto __pyx_L5_argtuple_error;
6017 kw_args = PyDict_Size(__pyx_kwds);
6020 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_v)) != 0)) kw_args--;
6021 else goto __pyx_L5_argtuple_error;
6024 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1_vdofs)) != 0)) kw_args--;
6026 __Pyx_RaiseArgtupleInvalid(
"getElementBDM2velocityValuesLagrangeRep", 1, 3, 3, 1); __PYX_ERR(0, 470, __pyx_L3_error)
6030 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_velocity)) != 0)) kw_args--;
6032 __Pyx_RaiseArgtupleInvalid(
"getElementBDM2velocityValuesLagrangeRep", 1, 3, 3, 2); __PYX_ERR(0, 470, __pyx_L3_error)
6035 if (unlikely(kw_args > 0)) {
6036 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementBDM2velocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 470, __pyx_L3_error)
6038 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
6039 goto __pyx_L5_argtuple_error;
6041 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6042 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6043 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6045 __pyx_v_q_v = ((PyArrayObject *)values[0]);
6046 __pyx_v_p1_vdofs = ((PyArrayObject *)values[1]);
6047 __pyx_v_q_velocity = ((PyArrayObject *)values[2]);
6049 goto __pyx_L4_argument_unpacking_done;
6050 __pyx_L5_argtuple_error:;
6051 __Pyx_RaiseArgtupleInvalid(
"getElementBDM2velocityValuesLagrangeRep", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 470, __pyx_L3_error)
6053 __Pyx_AddTraceback(
"cpostprocessing.getElementBDM2velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6054 __Pyx_RefNannyFinishContext();
6056 __pyx_L4_argument_unpacking_done:;
6057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_v), __pyx_ptype_5numpy_ndarray, 1,
"q_v", 0))) __PYX_ERR(0, 470, __pyx_L1_error)
6058 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p1_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"p1_vdofs", 0))) __PYX_ERR(0, 471, __pyx_L1_error)
6059 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_velocity), __pyx_ptype_5numpy_ndarray, 1,
"q_velocity", 0))) __PYX_ERR(0, 472, __pyx_L1_error)
6060 __pyx_r = __pyx_pf_15cpostprocessing_38getElementBDM2velocityValuesLagrangeRep(__pyx_self, __pyx_v_q_v, __pyx_v_p1_vdofs, __pyx_v_q_velocity);
6067 __Pyx_RefNannyFinishContext();
6071 static PyObject *__pyx_pf_15cpostprocessing_38getElementBDM2velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_q_velocity) {
6072 long __pyx_v_nVDOFs_element;
6073 PyObject *__pyx_r = NULL;
6074 __Pyx_RefNannyDeclarations
6076 int __pyx_lineno = 0;
6077 const char *__pyx_filename = NULL;
6078 int __pyx_clineno = 0;
6079 __Pyx_RefNannySetupContext(
"getElementBDM2velocityValuesLagrangeRep", 0);
6088 __pyx_t_1 = (((__pyx_v_q_velocity->dimensions[2]) == 2) != 0);
6098 __pyx_v_nVDOFs_element = 12;
6117 __pyx_t_1 = (((__pyx_v_q_velocity->dimensions[2]) == 3) != 0);
6127 __pyx_v_nVDOFs_element = 30;
6146 __pyx_t_1 = ((__pyx_v_p1_vdofs->nd > 1) != 0);
6156 #ifndef CYTHON_WITHOUT_ASSERTIONS
6157 if (unlikely(!Py_OptimizeFlag)) {
6158 if (unlikely(!((__pyx_v_nVDOFs_element == (__pyx_v_p1_vdofs->dimensions[1])) != 0))) {
6159 PyErr_SetNone(PyExc_AssertionError);
6160 __PYX_ERR(0, 481, __pyx_L1_error)
6181 getElementBDM2velocityValuesLagrangeRep((__pyx_v_q_velocity->dimensions[0]), (__pyx_v_q_velocity->dimensions[1]), (__pyx_v_q_velocity->dimensions[2]), (__pyx_v_q_v->dimensions[2]), __pyx_v_nVDOFs_element, ((
double *)__pyx_v_q_v->data), ((
double *)__pyx_v_p1_vdofs->data), ((
double *)__pyx_v_q_velocity->data));
6192 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6195 __Pyx_AddTraceback(
"cpostprocessing.getElementBDM2velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6198 __Pyx_XGIVEREF(__pyx_r);
6199 __Pyx_RefNannyFinishContext();
6212 static PyObject *__pyx_pw_15cpostprocessing_41getElementLDGvelocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6213 static PyMethodDef __pyx_mdef_15cpostprocessing_41getElementLDGvelocityValuesLagrangeRep = {
"getElementLDGvelocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_41getElementLDGvelocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
6214 static PyObject *__pyx_pw_15cpostprocessing_41getElementLDGvelocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6215 PyArrayObject *__pyx_v_q_v = 0;
6216 PyArrayObject *__pyx_v_vdofs = 0;
6217 PyArrayObject *__pyx_v_q_velocity = 0;
6218 int __pyx_lineno = 0;
6219 const char *__pyx_filename = NULL;
6220 int __pyx_clineno = 0;
6221 PyObject *__pyx_r = 0;
6222 __Pyx_RefNannyDeclarations
6223 __Pyx_RefNannySetupContext(
"getElementLDGvelocityValuesLagrangeRep (wrapper)", 0);
6225 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_q_v,&__pyx_n_s_vdofs,&__pyx_n_s_q_velocity,0};
6226 PyObject* values[3] = {0,0,0};
6227 if (unlikely(__pyx_kwds)) {
6229 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6231 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6233 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6235 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6238 default:
goto __pyx_L5_argtuple_error;
6240 kw_args = PyDict_Size(__pyx_kwds);
6243 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_v)) != 0)) kw_args--;
6244 else goto __pyx_L5_argtuple_error;
6247 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vdofs)) != 0)) kw_args--;
6249 __Pyx_RaiseArgtupleInvalid(
"getElementLDGvelocityValuesLagrangeRep", 1, 3, 3, 1); __PYX_ERR(0, 492, __pyx_L3_error)
6253 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_q_velocity)) != 0)) kw_args--;
6255 __Pyx_RaiseArgtupleInvalid(
"getElementLDGvelocityValuesLagrangeRep", 1, 3, 3, 2); __PYX_ERR(0, 492, __pyx_L3_error)
6258 if (unlikely(kw_args > 0)) {
6259 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementLDGvelocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 492, __pyx_L3_error)
6261 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
6262 goto __pyx_L5_argtuple_error;
6264 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6265 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6266 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6268 __pyx_v_q_v = ((PyArrayObject *)values[0]);
6269 __pyx_v_vdofs = ((PyArrayObject *)values[1]);
6270 __pyx_v_q_velocity = ((PyArrayObject *)values[2]);
6272 goto __pyx_L4_argument_unpacking_done;
6273 __pyx_L5_argtuple_error:;
6274 __Pyx_RaiseArgtupleInvalid(
"getElementLDGvelocityValuesLagrangeRep", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 492, __pyx_L3_error)
6276 __Pyx_AddTraceback(
"cpostprocessing.getElementLDGvelocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6277 __Pyx_RefNannyFinishContext();
6279 __pyx_L4_argument_unpacking_done:;
6280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_v), __pyx_ptype_5numpy_ndarray, 1,
"q_v", 0))) __PYX_ERR(0, 492, __pyx_L1_error)
6281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"vdofs", 0))) __PYX_ERR(0, 493, __pyx_L1_error)
6282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_q_velocity), __pyx_ptype_5numpy_ndarray, 1,
"q_velocity", 0))) __PYX_ERR(0, 494, __pyx_L1_error)
6283 __pyx_r = __pyx_pf_15cpostprocessing_40getElementLDGvelocityValuesLagrangeRep(__pyx_self, __pyx_v_q_v, __pyx_v_vdofs, __pyx_v_q_velocity);
6290 __Pyx_RefNannyFinishContext();
6294 static PyObject *__pyx_pf_15cpostprocessing_40getElementLDGvelocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_q_v, PyArrayObject *__pyx_v_vdofs, PyArrayObject *__pyx_v_q_velocity) {
6295 int __pyx_v_nVDOF_element;
6296 int __pyx_v_nDOF_trial_element;
6297 PyObject *__pyx_r = NULL;
6298 __Pyx_RefNannyDeclarations
6300 int __pyx_lineno = 0;
6301 const char *__pyx_filename = NULL;
6302 int __pyx_clineno = 0;
6303 __Pyx_RefNannySetupContext(
"getElementLDGvelocityValuesLagrangeRep", 0);
6312 __pyx_v_nVDOF_element = (__pyx_v_vdofs->dimensions[1]);
6321 __pyx_v_nDOF_trial_element = (__pyx_v_q_v->dimensions[2]);
6330 __pyx_t_1 = ((__pyx_v_vdofs->nd > 1) != 0);
6340 #ifndef CYTHON_WITHOUT_ASSERTIONS
6341 if (unlikely(!Py_OptimizeFlag)) {
6342 if (unlikely(!((__pyx_v_nVDOF_element == ((__pyx_v_q_v->dimensions[2]) * (__pyx_v_q_velocity->dimensions[2]))) != 0))) {
6343 PyErr_SetNone(PyExc_AssertionError);
6344 __PYX_ERR(0, 498, __pyx_L1_error)
6365 getElementLDGvelocityValuesLagrangeRep((__pyx_v_q_velocity->dimensions[0]), (__pyx_v_q_velocity->dimensions[1]), (__pyx_v_q_velocity->dimensions[2]), __pyx_v_nDOF_trial_element, __pyx_v_nVDOF_element, ((
double *)__pyx_v_q_v->data), ((
double *)__pyx_v_vdofs->data), ((
double *)__pyx_v_q_velocity->data));
6376 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6379 __Pyx_AddTraceback(
"cpostprocessing.getElementLDGvelocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6382 __Pyx_XGIVEREF(__pyx_r);
6383 __Pyx_RefNannyFinishContext();
6396 static PyObject *__pyx_pw_15cpostprocessing_43getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6397 static PyMethodDef __pyx_mdef_15cpostprocessing_43getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep = {
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_43getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
6398 static PyObject *__pyx_pw_15cpostprocessing_43getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6399 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
6400 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
6401 PyArrayObject *__pyx_v_ebqe_v = 0;
6402 PyArrayObject *__pyx_v_p1_vdofs = 0;
6403 PyArrayObject *__pyx_v_ebqe_velocity = 0;
6404 int __pyx_lineno = 0;
6405 const char *__pyx_filename = NULL;
6406 int __pyx_clineno = 0;
6407 PyObject *__pyx_r = 0;
6408 __Pyx_RefNannyDeclarations
6409 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep (wrapper)", 0);
6411 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_ebqe_v,&__pyx_n_s_p1_vdofs,&__pyx_n_s_ebqe_velocity,0};
6412 PyObject* values[5] = {0,0,0,0,0};
6413 if (unlikely(__pyx_kwds)) {
6415 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6417 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6419 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6421 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6423 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6425 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6428 default:
goto __pyx_L5_argtuple_error;
6430 kw_args = PyDict_Size(__pyx_kwds);
6433 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
6434 else goto __pyx_L5_argtuple_error;
6437 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
6439 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 1); __PYX_ERR(0, 508, __pyx_L3_error)
6443 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_v)) != 0)) kw_args--;
6445 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 2); __PYX_ERR(0, 508, __pyx_L3_error)
6449 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1_vdofs)) != 0)) kw_args--;
6451 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 3); __PYX_ERR(0, 508, __pyx_L3_error)
6455 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_velocity)) != 0)) kw_args--;
6457 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 4); __PYX_ERR(0, 508, __pyx_L3_error)
6460 if (unlikely(kw_args > 0)) {
6461 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 508, __pyx_L3_error)
6463 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
6464 goto __pyx_L5_argtuple_error;
6466 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6467 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6468 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6469 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6470 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6472 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
6473 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[1]);
6474 __pyx_v_ebqe_v = ((PyArrayObject *)values[2]);
6475 __pyx_v_p1_vdofs = ((PyArrayObject *)values[3]);
6476 __pyx_v_ebqe_velocity = ((PyArrayObject *)values[4]);
6478 goto __pyx_L4_argument_unpacking_done;
6479 __pyx_L5_argtuple_error:;
6480 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 508, __pyx_L3_error)
6482 __Pyx_AddTraceback(
"cpostprocessing.getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6483 __Pyx_RefNannyFinishContext();
6485 __pyx_L4_argument_unpacking_done:;
6486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 508, __pyx_L1_error)
6487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 509, __pyx_L1_error)
6488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_v), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_v", 0))) __PYX_ERR(0, 510, __pyx_L1_error)
6489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p1_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"p1_vdofs", 0))) __PYX_ERR(0, 511, __pyx_L1_error)
6490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_velocity", 0))) __PYX_ERR(0, 512, __pyx_L1_error)
6491 __pyx_r = __pyx_pf_15cpostprocessing_42getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_exteriorElementBoundariesArray, __pyx_v_ebqe_v, __pyx_v_p1_vdofs, __pyx_v_ebqe_velocity);
6498 __Pyx_RefNannyFinishContext();
6502 static PyObject *__pyx_pf_15cpostprocessing_42getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebqe_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebqe_velocity) {
6503 int __pyx_v_nVDOFs_element;
6504 PyObject *__pyx_r = NULL;
6505 __Pyx_RefNannyDeclarations
6507 int __pyx_lineno = 0;
6508 const char *__pyx_filename = NULL;
6509 int __pyx_clineno = 0;
6510 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", 0);
6519 __pyx_v_nVDOFs_element = ((__pyx_v_ebqe_velocity->dimensions[2]) * ((__pyx_v_ebqe_velocity->dimensions[2]) + 1));
6528 __pyx_t_1 = ((__pyx_v_p1_vdofs->nd > 1) != 0);
6538 #ifndef CYTHON_WITHOUT_ASSERTIONS
6539 if (unlikely(!Py_OptimizeFlag)) {
6540 if (unlikely(!((__pyx_v_nVDOFs_element == (__pyx_v_p1_vdofs->dimensions[1])) != 0))) {
6541 PyErr_SetNone(PyExc_AssertionError);
6542 __PYX_ERR(0, 515, __pyx_L1_error)
6563 getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep((__pyx_v_ebqe_velocity->dimensions[0]), (__pyx_v_ebqe_velocity->dimensions[1]), (__pyx_v_ebqe_velocity->dimensions[2]), (__pyx_v_ebqe_v->dimensions[2]), __pyx_v_nVDOFs_element, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_ebqe_v->data), ((
double *)__pyx_v_p1_vdofs->data), ((
double *)__pyx_v_ebqe_velocity->data));
6574 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6577 __Pyx_AddTraceback(
"cpostprocessing.getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6580 __Pyx_XGIVEREF(__pyx_r);
6581 __Pyx_RefNannyFinishContext();
6594 static PyObject *__pyx_pw_15cpostprocessing_45getGlobalElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6595 static PyMethodDef __pyx_mdef_15cpostprocessing_45getGlobalElementBoundaryBDM1velocityValuesLagrangeRep = {
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_45getGlobalElementBoundaryBDM1velocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
6596 static PyObject *__pyx_pw_15cpostprocessing_45getGlobalElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6597 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
6598 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
6599 PyArrayObject *__pyx_v_ebqe_v = 0;
6600 PyArrayObject *__pyx_v_p1_vdofs = 0;
6601 PyArrayObject *__pyx_v_ebq_global_velocity = 0;
6602 int __pyx_lineno = 0;
6603 const char *__pyx_filename = NULL;
6604 int __pyx_clineno = 0;
6605 PyObject *__pyx_r = 0;
6606 __Pyx_RefNannyDeclarations
6607 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep (wrapper)", 0);
6609 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_ebqe_v,&__pyx_n_s_p1_vdofs,&__pyx_n_s_ebq_global_velocity,0};
6610 PyObject* values[5] = {0,0,0,0,0};
6611 if (unlikely(__pyx_kwds)) {
6613 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6615 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6617 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6619 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6621 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6623 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6626 default:
goto __pyx_L5_argtuple_error;
6628 kw_args = PyDict_Size(__pyx_kwds);
6631 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
6632 else goto __pyx_L5_argtuple_error;
6635 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
6637 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 1); __PYX_ERR(0, 527, __pyx_L3_error)
6641 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_v)) != 0)) kw_args--;
6643 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 2); __PYX_ERR(0, 527, __pyx_L3_error)
6647 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1_vdofs)) != 0)) kw_args--;
6649 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 3); __PYX_ERR(0, 527, __pyx_L3_error)
6653 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_global_velocity)) != 0)) kw_args--;
6655 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 4); __PYX_ERR(0, 527, __pyx_L3_error)
6658 if (unlikely(kw_args > 0)) {
6659 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 527, __pyx_L3_error)
6661 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
6662 goto __pyx_L5_argtuple_error;
6664 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6665 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6666 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6667 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6668 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6670 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
6671 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[1]);
6672 __pyx_v_ebqe_v = ((PyArrayObject *)values[2]);
6673 __pyx_v_p1_vdofs = ((PyArrayObject *)values[3]);
6674 __pyx_v_ebq_global_velocity = ((PyArrayObject *)values[4]);
6676 goto __pyx_L4_argument_unpacking_done;
6677 __pyx_L5_argtuple_error:;
6678 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 527, __pyx_L3_error)
6680 __Pyx_AddTraceback(
"cpostprocessing.getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6681 __Pyx_RefNannyFinishContext();
6683 __pyx_L4_argument_unpacking_done:;
6684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 527, __pyx_L1_error)
6685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 528, __pyx_L1_error)
6686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_v), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_v", 0))) __PYX_ERR(0, 529, __pyx_L1_error)
6687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p1_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"p1_vdofs", 0))) __PYX_ERR(0, 530, __pyx_L1_error)
6688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_global_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_global_velocity", 0))) __PYX_ERR(0, 531, __pyx_L1_error)
6689 __pyx_r = __pyx_pf_15cpostprocessing_44getGlobalElementBoundaryBDM1velocityValuesLagrangeRep(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_exteriorElementBoundariesArray, __pyx_v_ebqe_v, __pyx_v_p1_vdofs, __pyx_v_ebq_global_velocity);
6696 __Pyx_RefNannyFinishContext();
6700 static PyObject *__pyx_pf_15cpostprocessing_44getGlobalElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebqe_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebq_global_velocity) {
6701 int __pyx_v_nVDOFs_element;
6702 PyObject *__pyx_r = NULL;
6703 __Pyx_RefNannyDeclarations
6705 int __pyx_lineno = 0;
6706 const char *__pyx_filename = NULL;
6707 int __pyx_clineno = 0;
6708 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", 0);
6717 __pyx_v_nVDOFs_element = ((__pyx_v_ebq_global_velocity->dimensions[2]) * ((__pyx_v_ebq_global_velocity->dimensions[2]) + 1));
6726 __pyx_t_1 = ((__pyx_v_p1_vdofs->nd > 1) != 0);
6736 #ifndef CYTHON_WITHOUT_ASSERTIONS
6737 if (unlikely(!Py_OptimizeFlag)) {
6738 if (unlikely(!((__pyx_v_nVDOFs_element == (__pyx_v_p1_vdofs->dimensions[1])) != 0))) {
6739 PyErr_SetNone(PyExc_AssertionError);
6740 __PYX_ERR(0, 534, __pyx_L1_error)
6761 getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep((__pyx_v_ebqe_v->dimensions[0]), (__pyx_v_ebq_global_velocity->dimensions[1]), (__pyx_v_ebq_global_velocity->dimensions[2]), (__pyx_v_ebqe_v->dimensions[2]), __pyx_v_nVDOFs_element, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_ebqe_v->data), ((
double *)__pyx_v_p1_vdofs->data), ((
double *)__pyx_v_ebq_global_velocity->data));
6772 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6775 __Pyx_AddTraceback(
"cpostprocessing.getGlobalElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6778 __Pyx_XGIVEREF(__pyx_r);
6779 __Pyx_RefNannyFinishContext();
6792 static PyObject *__pyx_pw_15cpostprocessing_47getElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6793 static PyMethodDef __pyx_mdef_15cpostprocessing_47getElementBoundaryBDM1velocityValuesLagrangeRep = {
"getElementBoundaryBDM1velocityValuesLagrangeRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_47getElementBoundaryBDM1velocityValuesLagrangeRep, METH_VARARGS|METH_KEYWORDS, 0};
6794 static PyObject *__pyx_pw_15cpostprocessing_47getElementBoundaryBDM1velocityValuesLagrangeRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6795 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
6796 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
6797 PyArrayObject *__pyx_v_ebq_v = 0;
6798 PyArrayObject *__pyx_v_p1_vdofs = 0;
6799 PyArrayObject *__pyx_v_ebq_velocity = 0;
6800 int __pyx_lineno = 0;
6801 const char *__pyx_filename = NULL;
6802 int __pyx_clineno = 0;
6803 PyObject *__pyx_r = 0;
6804 __Pyx_RefNannyDeclarations
6805 __Pyx_RefNannySetupContext(
"getElementBoundaryBDM1velocityValuesLagrangeRep (wrapper)", 0);
6807 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_ebq_v,&__pyx_n_s_p1_vdofs,&__pyx_n_s_ebq_velocity,0};
6808 PyObject* values[5] = {0,0,0,0,0};
6809 if (unlikely(__pyx_kwds)) {
6811 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6813 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6815 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6817 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6819 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6821 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6824 default:
goto __pyx_L5_argtuple_error;
6826 kw_args = PyDict_Size(__pyx_kwds);
6829 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
6830 else goto __pyx_L5_argtuple_error;
6833 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
6835 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 1); __PYX_ERR(0, 546, __pyx_L3_error)
6839 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v)) != 0)) kw_args--;
6841 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 2); __PYX_ERR(0, 546, __pyx_L3_error)
6845 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p1_vdofs)) != 0)) kw_args--;
6847 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 3); __PYX_ERR(0, 546, __pyx_L3_error)
6851 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
6853 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, 4); __PYX_ERR(0, 546, __pyx_L3_error)
6856 if (unlikely(kw_args > 0)) {
6857 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementBoundaryBDM1velocityValuesLagrangeRep") < 0)) __PYX_ERR(0, 546, __pyx_L3_error)
6859 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
6860 goto __pyx_L5_argtuple_error;
6862 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6863 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6864 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6865 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6866 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6868 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
6869 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[1]);
6870 __pyx_v_ebq_v = ((PyArrayObject *)values[2]);
6871 __pyx_v_p1_vdofs = ((PyArrayObject *)values[3]);
6872 __pyx_v_ebq_velocity = ((PyArrayObject *)values[4]);
6874 goto __pyx_L4_argument_unpacking_done;
6875 __pyx_L5_argtuple_error:;
6876 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 546, __pyx_L3_error)
6878 __Pyx_AddTraceback(
"cpostprocessing.getElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6879 __Pyx_RefNannyFinishContext();
6881 __pyx_L4_argument_unpacking_done:;
6882 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 546, __pyx_L1_error)
6883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 547, __pyx_L1_error)
6884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v", 0))) __PYX_ERR(0, 548, __pyx_L1_error)
6885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p1_vdofs), __pyx_ptype_5numpy_ndarray, 1,
"p1_vdofs", 0))) __PYX_ERR(0, 549, __pyx_L1_error)
6886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 550, __pyx_L1_error)
6887 __pyx_r = __pyx_pf_15cpostprocessing_46getElementBoundaryBDM1velocityValuesLagrangeRep(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_exteriorElementBoundariesArray, __pyx_v_ebq_v, __pyx_v_p1_vdofs, __pyx_v_ebq_velocity);
6894 __Pyx_RefNannyFinishContext();
6898 static PyObject *__pyx_pf_15cpostprocessing_46getElementBoundaryBDM1velocityValuesLagrangeRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_ebq_v, PyArrayObject *__pyx_v_p1_vdofs, PyArrayObject *__pyx_v_ebq_velocity) {
6899 int __pyx_v_nVDOFs_element;
6900 PyObject *__pyx_r = NULL;
6901 __Pyx_RefNannyDeclarations
6903 int __pyx_lineno = 0;
6904 const char *__pyx_filename = NULL;
6905 int __pyx_clineno = 0;
6906 __Pyx_RefNannySetupContext(
"getElementBoundaryBDM1velocityValuesLagrangeRep", 0);
6915 __pyx_v_nVDOFs_element = ((__pyx_v_ebq_velocity->dimensions[3]) * ((__pyx_v_ebq_velocity->dimensions[3]) + 1));
6924 __pyx_t_1 = ((__pyx_v_p1_vdofs->nd > 1) != 0);
6934 #ifndef CYTHON_WITHOUT_ASSERTIONS
6935 if (unlikely(!Py_OptimizeFlag)) {
6936 if (unlikely(!((__pyx_v_nVDOFs_element == (__pyx_v_p1_vdofs->dimensions[1])) != 0))) {
6937 PyErr_SetNone(PyExc_AssertionError);
6938 __PYX_ERR(0, 553, __pyx_L1_error)
6950 getElementBoundaryBDM1velocityValuesLagrangeRep((__pyx_v_ebq_velocity->dimensions[0]), (__pyx_v_ebq_velocity->dimensions[1]), (__pyx_v_ebq_velocity->dimensions[2]), (__pyx_v_ebq_velocity->dimensions[3]), (__pyx_v_ebq_v->dimensions[2]), __pyx_v_nVDOFs_element, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_ebq_v->data), ((
double *)__pyx_v_p1_vdofs->data), ((
double *)__pyx_v_ebq_velocity->data));
6970 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6973 __Pyx_AddTraceback(
"cpostprocessing.getElementBoundaryBDM1velocityValuesLagrangeRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
6976 __Pyx_XGIVEREF(__pyx_r);
6977 __Pyx_RefNannyFinishContext();
6990 static PyObject *__pyx_pw_15cpostprocessing_49projectElementBoundaryVelocityToRT0fluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6991 static PyMethodDef __pyx_mdef_15cpostprocessing_49projectElementBoundaryVelocityToRT0fluxRep = {
"projectElementBoundaryVelocityToRT0fluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_49projectElementBoundaryVelocityToRT0fluxRep, METH_VARARGS|METH_KEYWORDS, 0};
6992 static PyObject *__pyx_pw_15cpostprocessing_49projectElementBoundaryVelocityToRT0fluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6993 PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights = 0;
6994 PyArrayObject *__pyx_v_n = 0;
6995 PyArrayObject *__pyx_v_v_elementBoundary = 0;
6996 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
6997 int __pyx_lineno = 0;
6998 const char *__pyx_filename = NULL;
6999 int __pyx_clineno = 0;
7000 PyObject *__pyx_r = 0;
7001 __Pyx_RefNannyDeclarations
7002 __Pyx_RefNannySetupContext(
"projectElementBoundaryVelocityToRT0fluxRep (wrapper)", 0);
7004 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryQuadratureWeights,&__pyx_n_s_n,&__pyx_n_s_v_elementBoundary,&__pyx_n_s_rt0vdofs_element,0};
7005 PyObject* values[4] = {0,0,0,0};
7006 if (unlikely(__pyx_kwds)) {
7008 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7010 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7012 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7014 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7016 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7019 default:
goto __pyx_L5_argtuple_error;
7021 kw_args = PyDict_Size(__pyx_kwds);
7024 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryQuadratureWeights)) != 0)) kw_args--;
7025 else goto __pyx_L5_argtuple_error;
7028 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
7030 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryVelocityToRT0fluxRep", 1, 4, 4, 1); __PYX_ERR(0, 566, __pyx_L3_error)
7034 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary)) != 0)) kw_args--;
7036 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryVelocityToRT0fluxRep", 1, 4, 4, 2); __PYX_ERR(0, 566, __pyx_L3_error)
7040 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7042 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryVelocityToRT0fluxRep", 1, 4, 4, 3); __PYX_ERR(0, 566, __pyx_L3_error)
7045 if (unlikely(kw_args > 0)) {
7046 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"projectElementBoundaryVelocityToRT0fluxRep") < 0)) __PYX_ERR(0, 566, __pyx_L3_error)
7048 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
7049 goto __pyx_L5_argtuple_error;
7051 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7052 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7053 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7054 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7056 __pyx_v_elementBoundaryQuadratureWeights = ((PyArrayObject *)values[0]);
7057 __pyx_v_n = ((PyArrayObject *)values[1]);
7058 __pyx_v_v_elementBoundary = ((PyArrayObject *)values[2]);
7059 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[3]);
7061 goto __pyx_L4_argument_unpacking_done;
7062 __pyx_L5_argtuple_error:;
7063 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryVelocityToRT0fluxRep", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 566, __pyx_L3_error)
7065 __Pyx_AddTraceback(
"cpostprocessing.projectElementBoundaryVelocityToRT0fluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7066 __Pyx_RefNannyFinishContext();
7068 __pyx_L4_argument_unpacking_done:;
7069 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryQuadratureWeights), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryQuadratureWeights", 0))) __PYX_ERR(0, 566, __pyx_L1_error)
7070 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 567, __pyx_L1_error)
7071 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary", 0))) __PYX_ERR(0, 568, __pyx_L1_error)
7072 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 569, __pyx_L1_error)
7073 __pyx_r = __pyx_pf_15cpostprocessing_48projectElementBoundaryVelocityToRT0fluxRep(__pyx_self, __pyx_v_elementBoundaryQuadratureWeights, __pyx_v_n, __pyx_v_v_elementBoundary, __pyx_v_rt0vdofs_element);
7080 __Pyx_RefNannyFinishContext();
7084 static PyObject *__pyx_pf_15cpostprocessing_48projectElementBoundaryVelocityToRT0fluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_v_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element) {
7085 PyObject *__pyx_r = NULL;
7086 __Pyx_RefNannyDeclarations
7087 __Pyx_RefNannySetupContext(
"projectElementBoundaryVelocityToRT0fluxRep", 0);
7096 projectElementBoundaryVelocityToRT0fluxRep((__pyx_v_n->dimensions[0]), (__pyx_v_n->dimensions[1]), (__pyx_v_n->dimensions[2]), (__pyx_v_n->dimensions[3]), ((
double *)__pyx_v_elementBoundaryQuadratureWeights->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_v_elementBoundary->data), ((
double *)__pyx_v_rt0vdofs_element->data));
7107 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7108 __Pyx_XGIVEREF(__pyx_r);
7109 __Pyx_RefNannyFinishContext();
7122 static PyObject *__pyx_pw_15cpostprocessing_51projectElementBoundaryFluxToRT0fluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7123 static PyMethodDef __pyx_mdef_15cpostprocessing_51projectElementBoundaryFluxToRT0fluxRep = {
"projectElementBoundaryFluxToRT0fluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_51projectElementBoundaryFluxToRT0fluxRep, METH_VARARGS|METH_KEYWORDS, 0};
7124 static PyObject *__pyx_pw_15cpostprocessing_51projectElementBoundaryFluxToRT0fluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7125 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
7126 PyArrayObject *__pyx_v_elementBoundariesArray = 0;
7127 PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights = 0;
7128 PyArrayObject *__pyx_v_flux_elementBoundary = 0;
7129 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7130 int __pyx_lineno = 0;
7131 const char *__pyx_filename = NULL;
7132 int __pyx_clineno = 0;
7133 PyObject *__pyx_r = 0;
7134 __Pyx_RefNannyDeclarations
7135 __Pyx_RefNannySetupContext(
"projectElementBoundaryFluxToRT0fluxRep (wrapper)", 0);
7137 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundariesArray,&__pyx_n_s_elementBoundaryQuadratureWeights,&__pyx_n_s_flux_elementBoundary,&__pyx_n_s_rt0vdofs_element,0};
7138 PyObject* values[5] = {0,0,0,0,0};
7139 if (unlikely(__pyx_kwds)) {
7141 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7143 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7145 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7147 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7149 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7151 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7154 default:
goto __pyx_L5_argtuple_error;
7156 kw_args = PyDict_Size(__pyx_kwds);
7159 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
7160 else goto __pyx_L5_argtuple_error;
7163 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundariesArray)) != 0)) kw_args--;
7165 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryFluxToRT0fluxRep", 1, 5, 5, 1); __PYX_ERR(0, 579, __pyx_L3_error)
7169 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryQuadratureWeights)) != 0)) kw_args--;
7171 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryFluxToRT0fluxRep", 1, 5, 5, 2); __PYX_ERR(0, 579, __pyx_L3_error)
7175 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux_elementBoundary)) != 0)) kw_args--;
7177 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryFluxToRT0fluxRep", 1, 5, 5, 3); __PYX_ERR(0, 579, __pyx_L3_error)
7181 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7183 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryFluxToRT0fluxRep", 1, 5, 5, 4); __PYX_ERR(0, 579, __pyx_L3_error)
7186 if (unlikely(kw_args > 0)) {
7187 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"projectElementBoundaryFluxToRT0fluxRep") < 0)) __PYX_ERR(0, 579, __pyx_L3_error)
7189 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
7190 goto __pyx_L5_argtuple_error;
7192 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7193 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7194 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7195 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7196 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7198 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
7199 __pyx_v_elementBoundariesArray = ((PyArrayObject *)values[1]);
7200 __pyx_v_elementBoundaryQuadratureWeights = ((PyArrayObject *)values[2]);
7201 __pyx_v_flux_elementBoundary = ((PyArrayObject *)values[3]);
7202 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[4]);
7204 goto __pyx_L4_argument_unpacking_done;
7205 __pyx_L5_argtuple_error:;
7206 __Pyx_RaiseArgtupleInvalid(
"projectElementBoundaryFluxToRT0fluxRep", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 579, __pyx_L3_error)
7208 __Pyx_AddTraceback(
"cpostprocessing.projectElementBoundaryFluxToRT0fluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7209 __Pyx_RefNannyFinishContext();
7211 __pyx_L4_argument_unpacking_done:;
7212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 579, __pyx_L1_error)
7213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundariesArray", 0))) __PYX_ERR(0, 580, __pyx_L1_error)
7214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryQuadratureWeights), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryQuadratureWeights", 0))) __PYX_ERR(0, 581, __pyx_L1_error)
7215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"flux_elementBoundary", 0))) __PYX_ERR(0, 582, __pyx_L1_error)
7216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 583, __pyx_L1_error)
7217 __pyx_r = __pyx_pf_15cpostprocessing_50projectElementBoundaryFluxToRT0fluxRep(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundariesArray, __pyx_v_elementBoundaryQuadratureWeights, __pyx_v_flux_elementBoundary, __pyx_v_rt0vdofs_element);
7224 __Pyx_RefNannyFinishContext();
7228 static PyObject *__pyx_pf_15cpostprocessing_50projectElementBoundaryFluxToRT0fluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryQuadratureWeights, PyArrayObject *__pyx_v_flux_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element) {
7229 PyObject *__pyx_r = NULL;
7230 __Pyx_RefNannyDeclarations
7231 __Pyx_RefNannySetupContext(
"projectElementBoundaryFluxToRT0fluxRep", 0);
7240 projectElementBoundaryFluxToRT0fluxRep((__pyx_v_elementBoundaryQuadratureWeights->dimensions[0]), (__pyx_v_elementBoundaryQuadratureWeights->dimensions[1]), (__pyx_v_elementBoundaryQuadratureWeights->dimensions[2]), (__pyx_v_rt0vdofs_element->dimensions[1]), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundariesArray->data), ((
double *)__pyx_v_elementBoundaryQuadratureWeights->data), ((
double *)__pyx_v_flux_elementBoundary->data), ((
double *)__pyx_v_rt0vdofs_element->data));
7251 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7252 __Pyx_XGIVEREF(__pyx_r);
7253 __Pyx_RefNannyFinishContext();
7266 static PyObject *__pyx_pw_15cpostprocessing_53getElementRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7267 static PyMethodDef __pyx_mdef_15cpostprocessing_53getElementRT0velocityValuesFluxRep = {
"getElementRT0velocityValuesFluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_53getElementRT0velocityValuesFluxRep, METH_VARARGS|METH_KEYWORDS, 0};
7268 static PyObject *__pyx_pw_15cpostprocessing_53getElementRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7269 PyArrayObject *__pyx_v_nodeArray = 0;
7270 PyArrayObject *__pyx_v_elementNodesArray = 0;
7271 PyArrayObject *__pyx_v_abs_det_J = 0;
7272 PyArrayObject *__pyx_v_x_element = 0;
7273 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7274 PyArrayObject *__pyx_v_v_element = 0;
7275 int __pyx_lineno = 0;
7276 const char *__pyx_filename = NULL;
7277 int __pyx_clineno = 0;
7278 PyObject *__pyx_r = 0;
7279 __Pyx_RefNannyDeclarations
7280 __Pyx_RefNannySetupContext(
"getElementRT0velocityValuesFluxRep (wrapper)", 0);
7282 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nodeArray,&__pyx_n_s_elementNodesArray,&__pyx_n_s_abs_det_J,&__pyx_n_s_x_element,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_element,0};
7283 PyObject* values[6] = {0,0,0,0,0,0};
7284 if (unlikely(__pyx_kwds)) {
7286 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7288 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7290 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7292 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7294 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7296 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7298 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7301 default:
goto __pyx_L5_argtuple_error;
7303 kw_args = PyDict_Size(__pyx_kwds);
7306 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
7307 else goto __pyx_L5_argtuple_error;
7310 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
7312 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, 1); __PYX_ERR(0, 594, __pyx_L3_error)
7316 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
7318 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, 2); __PYX_ERR(0, 594, __pyx_L3_error)
7322 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_element)) != 0)) kw_args--;
7324 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, 3); __PYX_ERR(0, 594, __pyx_L3_error)
7328 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7330 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, 4); __PYX_ERR(0, 594, __pyx_L3_error)
7334 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_element)) != 0)) kw_args--;
7336 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, 5); __PYX_ERR(0, 594, __pyx_L3_error)
7339 if (unlikely(kw_args > 0)) {
7340 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementRT0velocityValuesFluxRep") < 0)) __PYX_ERR(0, 594, __pyx_L3_error)
7342 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
7343 goto __pyx_L5_argtuple_error;
7345 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7346 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7347 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7348 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7349 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7350 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7352 __pyx_v_nodeArray = ((PyArrayObject *)values[0]);
7353 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
7354 __pyx_v_abs_det_J = ((PyArrayObject *)values[2]);
7355 __pyx_v_x_element = ((PyArrayObject *)values[3]);
7356 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[4]);
7357 __pyx_v_v_element = ((PyArrayObject *)values[5]);
7359 goto __pyx_L4_argument_unpacking_done;
7360 __pyx_L5_argtuple_error:;
7361 __Pyx_RaiseArgtupleInvalid(
"getElementRT0velocityValuesFluxRep", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 594, __pyx_L3_error)
7363 __Pyx_AddTraceback(
"cpostprocessing.getElementRT0velocityValuesFluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7364 __Pyx_RefNannyFinishContext();
7366 __pyx_L4_argument_unpacking_done:;
7367 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 594, __pyx_L1_error)
7368 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 595, __pyx_L1_error)
7369 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 596, __pyx_L1_error)
7370 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_element), __pyx_ptype_5numpy_ndarray, 1,
"x_element", 0))) __PYX_ERR(0, 597, __pyx_L1_error)
7371 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 598, __pyx_L1_error)
7372 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_element), __pyx_ptype_5numpy_ndarray, 1,
"v_element", 0))) __PYX_ERR(0, 599, __pyx_L1_error)
7373 __pyx_r = __pyx_pf_15cpostprocessing_52getElementRT0velocityValuesFluxRep(__pyx_self, __pyx_v_nodeArray, __pyx_v_elementNodesArray, __pyx_v_abs_det_J, __pyx_v_x_element, __pyx_v_rt0vdofs_element, __pyx_v_v_element);
7380 __Pyx_RefNannyFinishContext();
7384 static PyObject *__pyx_pf_15cpostprocessing_52getElementRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_element, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element) {
7385 PyObject *__pyx_r = NULL;
7386 __Pyx_RefNannyDeclarations
7387 __Pyx_RefNannySetupContext(
"getElementRT0velocityValuesFluxRep", 0);
7396 getElementRT0velocityValuesFluxRep((__pyx_v_v_element->dimensions[0]), (__pyx_v_elementNodesArray->dimensions[1]), (__pyx_v_v_element->dimensions[1]), (__pyx_v_v_element->dimensions[2]), (__pyx_v_abs_det_J->dimensions[1]), ((
double *)__pyx_v_nodeArray->data), ((
int *)__pyx_v_elementNodesArray->data), ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_x_element->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_element->data));
7407 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7408 __Pyx_XGIVEREF(__pyx_r);
7409 __Pyx_RefNannyFinishContext();
7422 static PyObject *__pyx_pw_15cpostprocessing_55getElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7423 static PyMethodDef __pyx_mdef_15cpostprocessing_55getElementBoundaryRT0velocityValuesFluxRep = {
"getElementBoundaryRT0velocityValuesFluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_55getElementBoundaryRT0velocityValuesFluxRep, METH_VARARGS|METH_KEYWORDS, 0};
7424 static PyObject *__pyx_pw_15cpostprocessing_55getElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7425 PyArrayObject *__pyx_v_nodeArray = 0;
7426 PyArrayObject *__pyx_v_elementNodesArray = 0;
7427 PyArrayObject *__pyx_v_abs_det_J = 0;
7428 PyArrayObject *__pyx_v_x_elementBoundary = 0;
7429 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7430 PyArrayObject *__pyx_v_v_elementBoundary = 0;
7431 int __pyx_lineno = 0;
7432 const char *__pyx_filename = NULL;
7433 int __pyx_clineno = 0;
7434 PyObject *__pyx_r = 0;
7435 __Pyx_RefNannyDeclarations
7436 __Pyx_RefNannySetupContext(
"getElementBoundaryRT0velocityValuesFluxRep (wrapper)", 0);
7438 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nodeArray,&__pyx_n_s_elementNodesArray,&__pyx_n_s_abs_det_J,&__pyx_n_s_x_elementBoundary,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_elementBoundary,0};
7439 PyObject* values[6] = {0,0,0,0,0,0};
7440 if (unlikely(__pyx_kwds)) {
7442 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7444 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7446 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7448 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7450 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7452 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7454 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7457 default:
goto __pyx_L5_argtuple_error;
7459 kw_args = PyDict_Size(__pyx_kwds);
7462 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
7463 else goto __pyx_L5_argtuple_error;
7466 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
7468 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, 1); __PYX_ERR(0, 612, __pyx_L3_error)
7472 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
7474 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, 2); __PYX_ERR(0, 612, __pyx_L3_error)
7478 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary)) != 0)) kw_args--;
7480 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, 3); __PYX_ERR(0, 612, __pyx_L3_error)
7484 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7486 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, 4); __PYX_ERR(0, 612, __pyx_L3_error)
7490 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary)) != 0)) kw_args--;
7492 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, 5); __PYX_ERR(0, 612, __pyx_L3_error)
7495 if (unlikely(kw_args > 0)) {
7496 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getElementBoundaryRT0velocityValuesFluxRep") < 0)) __PYX_ERR(0, 612, __pyx_L3_error)
7498 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
7499 goto __pyx_L5_argtuple_error;
7501 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7502 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7503 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7504 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7505 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7506 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7508 __pyx_v_nodeArray = ((PyArrayObject *)values[0]);
7509 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
7510 __pyx_v_abs_det_J = ((PyArrayObject *)values[2]);
7511 __pyx_v_x_elementBoundary = ((PyArrayObject *)values[3]);
7512 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[4]);
7513 __pyx_v_v_elementBoundary = ((PyArrayObject *)values[5]);
7515 goto __pyx_L4_argument_unpacking_done;
7516 __pyx_L5_argtuple_error:;
7517 __Pyx_RaiseArgtupleInvalid(
"getElementBoundaryRT0velocityValuesFluxRep", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 612, __pyx_L3_error)
7519 __Pyx_AddTraceback(
"cpostprocessing.getElementBoundaryRT0velocityValuesFluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7520 __Pyx_RefNannyFinishContext();
7522 __pyx_L4_argument_unpacking_done:;
7523 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 612, __pyx_L1_error)
7524 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 613, __pyx_L1_error)
7525 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 614, __pyx_L1_error)
7526 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary", 0))) __PYX_ERR(0, 615, __pyx_L1_error)
7527 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 616, __pyx_L1_error)
7528 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary", 0))) __PYX_ERR(0, 617, __pyx_L1_error)
7529 __pyx_r = __pyx_pf_15cpostprocessing_54getElementBoundaryRT0velocityValuesFluxRep(__pyx_self, __pyx_v_nodeArray, __pyx_v_elementNodesArray, __pyx_v_abs_det_J, __pyx_v_x_elementBoundary, __pyx_v_rt0vdofs_element, __pyx_v_v_elementBoundary);
7536 __Pyx_RefNannyFinishContext();
7540 static PyObject *__pyx_pf_15cpostprocessing_54getElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_elementBoundary, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary) {
7541 PyObject *__pyx_r = NULL;
7542 __Pyx_RefNannyDeclarations
7543 __Pyx_RefNannySetupContext(
"getElementBoundaryRT0velocityValuesFluxRep", 0);
7552 getElementBoundaryRT0velocityValuesFluxRep((__pyx_v_v_elementBoundary->dimensions[0]), (__pyx_v_v_elementBoundary->dimensions[1]), (__pyx_v_v_elementBoundary->dimensions[2]), (__pyx_v_v_elementBoundary->dimensions[3]), (__pyx_v_abs_det_J->dimensions[1]), ((
double *)__pyx_v_nodeArray->data), ((
int *)__pyx_v_elementNodesArray->data), ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_x_elementBoundary->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_elementBoundary->data));
7563 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7564 __Pyx_XGIVEREF(__pyx_r);
7565 __Pyx_RefNannyFinishContext();
7578 static PyObject *__pyx_pw_15cpostprocessing_57getGlobalElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7579 static PyMethodDef __pyx_mdef_15cpostprocessing_57getGlobalElementBoundaryRT0velocityValuesFluxRep = {
"getGlobalElementBoundaryRT0velocityValuesFluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_57getGlobalElementBoundaryRT0velocityValuesFluxRep, METH_VARARGS|METH_KEYWORDS, 0};
7580 static PyObject *__pyx_pw_15cpostprocessing_57getGlobalElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7581 PyArrayObject *__pyx_v_nodeArray = 0;
7582 PyArrayObject *__pyx_v_elementNodesArray = 0;
7583 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
7584 PyArrayObject *__pyx_v_abs_det_J = 0;
7585 PyArrayObject *__pyx_v_x_elementBoundary_global = 0;
7586 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7587 PyArrayObject *__pyx_v_v_elementBoundary_global = 0;
7588 int __pyx_lineno = 0;
7589 const char *__pyx_filename = NULL;
7590 int __pyx_clineno = 0;
7591 PyObject *__pyx_r = 0;
7592 __Pyx_RefNannyDeclarations
7593 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryRT0velocityValuesFluxRep (wrapper)", 0);
7595 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nodeArray,&__pyx_n_s_elementNodesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_abs_det_J,&__pyx_n_s_x_elementBoundary_global,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_elementBoundary_global,0};
7596 PyObject* values[7] = {0,0,0,0,0,0,0};
7597 if (unlikely(__pyx_kwds)) {
7599 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7601 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7603 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7605 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7607 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7609 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7611 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7613 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7616 default:
goto __pyx_L5_argtuple_error;
7618 kw_args = PyDict_Size(__pyx_kwds);
7621 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
7622 else goto __pyx_L5_argtuple_error;
7625 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
7627 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 1); __PYX_ERR(0, 630, __pyx_L3_error)
7631 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
7633 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 2); __PYX_ERR(0, 630, __pyx_L3_error)
7637 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
7639 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 3); __PYX_ERR(0, 630, __pyx_L3_error)
7643 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_elementBoundary_global)) != 0)) kw_args--;
7645 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 4); __PYX_ERR(0, 630, __pyx_L3_error)
7649 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7651 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 5); __PYX_ERR(0, 630, __pyx_L3_error)
7655 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_elementBoundary_global)) != 0)) kw_args--;
7657 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, 6); __PYX_ERR(0, 630, __pyx_L3_error)
7660 if (unlikely(kw_args > 0)) {
7661 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalElementBoundaryRT0velocityValuesFluxRep") < 0)) __PYX_ERR(0, 630, __pyx_L3_error)
7663 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
7664 goto __pyx_L5_argtuple_error;
7666 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7667 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7668 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7669 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7670 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7671 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7672 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7674 __pyx_v_nodeArray = ((PyArrayObject *)values[0]);
7675 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
7676 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
7677 __pyx_v_abs_det_J = ((PyArrayObject *)values[3]);
7678 __pyx_v_x_elementBoundary_global = ((PyArrayObject *)values[4]);
7679 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[5]);
7680 __pyx_v_v_elementBoundary_global = ((PyArrayObject *)values[6]);
7682 goto __pyx_L4_argument_unpacking_done;
7683 __pyx_L5_argtuple_error:;
7684 __Pyx_RaiseArgtupleInvalid(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 630, __pyx_L3_error)
7686 __Pyx_AddTraceback(
"cpostprocessing.getGlobalElementBoundaryRT0velocityValuesFluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7687 __Pyx_RefNannyFinishContext();
7689 __pyx_L4_argument_unpacking_done:;
7690 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 630, __pyx_L1_error)
7691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 631, __pyx_L1_error)
7692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 632, __pyx_L1_error)
7693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 633, __pyx_L1_error)
7694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"x_elementBoundary_global", 0))) __PYX_ERR(0, 634, __pyx_L1_error)
7695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 635, __pyx_L1_error)
7696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_elementBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"v_elementBoundary_global", 0))) __PYX_ERR(0, 636, __pyx_L1_error)
7697 __pyx_r = __pyx_pf_15cpostprocessing_56getGlobalElementBoundaryRT0velocityValuesFluxRep(__pyx_self, __pyx_v_nodeArray, __pyx_v_elementNodesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_abs_det_J, __pyx_v_x_elementBoundary_global, __pyx_v_rt0vdofs_element, __pyx_v_v_elementBoundary_global);
7704 __Pyx_RefNannyFinishContext();
7708 static PyObject *__pyx_pf_15cpostprocessing_56getGlobalElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_elementBoundary_global, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_elementBoundary_global) {
7709 PyObject *__pyx_r = NULL;
7710 __Pyx_RefNannyDeclarations
7711 __Pyx_RefNannySetupContext(
"getGlobalElementBoundaryRT0velocityValuesFluxRep", 0);
7720 getGlobalElementBoundaryRT0velocityValuesFluxRep((__pyx_v_v_elementBoundary_global->dimensions[0]), (__pyx_v_v_elementBoundary_global->dimensions[1]), (__pyx_v_v_elementBoundary_global->dimensions[2]), (__pyx_v_abs_det_J->dimensions[1]), ((
double *)__pyx_v_nodeArray->data), ((
int *)__pyx_v_elementNodesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_x_elementBoundary_global->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_elementBoundary_global->data));
7731 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7732 __Pyx_XGIVEREF(__pyx_r);
7733 __Pyx_RefNannyFinishContext();
7746 static PyObject *__pyx_pw_15cpostprocessing_59getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7747 static PyMethodDef __pyx_mdef_15cpostprocessing_59getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep = {
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_59getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep, METH_VARARGS|METH_KEYWORDS, 0};
7748 static PyObject *__pyx_pw_15cpostprocessing_59getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7749 PyArrayObject *__pyx_v_nodeArray = 0;
7750 PyArrayObject *__pyx_v_elementNodesArray = 0;
7751 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
7752 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
7753 PyArrayObject *__pyx_v_abs_det_J = 0;
7754 PyArrayObject *__pyx_v_x_ebqe = 0;
7755 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7756 PyArrayObject *__pyx_v_v_ebqe = 0;
7757 int __pyx_lineno = 0;
7758 const char *__pyx_filename = NULL;
7759 int __pyx_clineno = 0;
7760 PyObject *__pyx_r = 0;
7761 __Pyx_RefNannyDeclarations
7762 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep (wrapper)", 0);
7764 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nodeArray,&__pyx_n_s_elementNodesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_abs_det_J,&__pyx_n_s_x_ebqe,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_ebqe,0};
7765 PyObject* values[8] = {0,0,0,0,0,0,0,0};
7766 if (unlikely(__pyx_kwds)) {
7768 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7770 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7772 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7774 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7776 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7778 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7780 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7782 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7784 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7787 default:
goto __pyx_L5_argtuple_error;
7789 kw_args = PyDict_Size(__pyx_kwds);
7792 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
7793 else goto __pyx_L5_argtuple_error;
7796 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
7798 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 1); __PYX_ERR(0, 649, __pyx_L3_error)
7802 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
7804 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 2); __PYX_ERR(0, 649, __pyx_L3_error)
7808 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
7810 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 3); __PYX_ERR(0, 649, __pyx_L3_error)
7814 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
7816 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 4); __PYX_ERR(0, 649, __pyx_L3_error)
7820 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x_ebqe)) != 0)) kw_args--;
7822 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 5); __PYX_ERR(0, 649, __pyx_L3_error)
7826 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7828 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 6); __PYX_ERR(0, 649, __pyx_L3_error)
7832 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_ebqe)) != 0)) kw_args--;
7834 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, 7); __PYX_ERR(0, 649, __pyx_L3_error)
7837 if (unlikely(kw_args > 0)) {
7838 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep") < 0)) __PYX_ERR(0, 649, __pyx_L3_error)
7840 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
7841 goto __pyx_L5_argtuple_error;
7843 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7844 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7845 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7846 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7847 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7848 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7849 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7850 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7852 __pyx_v_nodeArray = ((PyArrayObject *)values[0]);
7853 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
7854 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
7855 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[3]);
7856 __pyx_v_abs_det_J = ((PyArrayObject *)values[4]);
7857 __pyx_v_x_ebqe = ((PyArrayObject *)values[5]);
7858 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[6]);
7859 __pyx_v_v_ebqe = ((PyArrayObject *)values[7]);
7861 goto __pyx_L4_argument_unpacking_done;
7862 __pyx_L5_argtuple_error:;
7863 __Pyx_RaiseArgtupleInvalid(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 649, __pyx_L3_error)
7865 __Pyx_AddTraceback(
"cpostprocessing.getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", __pyx_clineno, __pyx_lineno, __pyx_filename);
7866 __Pyx_RefNannyFinishContext();
7868 __pyx_L4_argument_unpacking_done:;
7869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 649, __pyx_L1_error)
7870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 650, __pyx_L1_error)
7871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 651, __pyx_L1_error)
7872 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 652, __pyx_L1_error)
7873 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 653, __pyx_L1_error)
7874 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x_ebqe), __pyx_ptype_5numpy_ndarray, 1,
"x_ebqe", 0))) __PYX_ERR(0, 654, __pyx_L1_error)
7875 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 655, __pyx_L1_error)
7876 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_ebqe), __pyx_ptype_5numpy_ndarray, 1,
"v_ebqe", 0))) __PYX_ERR(0, 656, __pyx_L1_error)
7877 __pyx_r = __pyx_pf_15cpostprocessing_58getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep(__pyx_self, __pyx_v_nodeArray, __pyx_v_elementNodesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_exteriorElementBoundariesArray, __pyx_v_abs_det_J, __pyx_v_x_ebqe, __pyx_v_rt0vdofs_element, __pyx_v_v_ebqe);
7884 __Pyx_RefNannyFinishContext();
7888 static PyObject *__pyx_pf_15cpostprocessing_58getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x_ebqe, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_ebqe) {
7889 PyObject *__pyx_r = NULL;
7890 __Pyx_RefNannyDeclarations
7891 __Pyx_RefNannySetupContext(
"getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep", 0);
7900 getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep((__pyx_v_v_ebqe->dimensions[0]), (__pyx_v_v_ebqe->dimensions[1]), (__pyx_v_v_ebqe->dimensions[2]), (__pyx_v_abs_det_J->dimensions[1]), ((
double *)__pyx_v_nodeArray->data), ((
int *)__pyx_v_elementNodesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_x_ebqe->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_ebqe->data));
7911 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7912 __Pyx_XGIVEREF(__pyx_r);
7913 __Pyx_RefNannyFinishContext();
7926 static PyObject *__pyx_pw_15cpostprocessing_61getRT0velocityValuesFluxRep_arbitraryElementMembership(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7927 static PyMethodDef __pyx_mdef_15cpostprocessing_61getRT0velocityValuesFluxRep_arbitraryElementMembership = {
"getRT0velocityValuesFluxRep_arbitraryElementMembership", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_61getRT0velocityValuesFluxRep_arbitraryElementMembership, METH_VARARGS|METH_KEYWORDS, 0};
7928 static PyObject *__pyx_pw_15cpostprocessing_61getRT0velocityValuesFluxRep_arbitraryElementMembership(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7929 PyArrayObject *__pyx_v_nodeArray = 0;
7930 PyArrayObject *__pyx_v_elementNodesArray = 0;
7931 PyArrayObject *__pyx_v_abs_det_J = 0;
7932 PyArrayObject *__pyx_v_x = 0;
7933 PyArrayObject *__pyx_v_element_locations = 0;
7934 PyArrayObject *__pyx_v_rt0vdofs_element = 0;
7935 PyArrayObject *__pyx_v_v_element = 0;
7936 int __pyx_lineno = 0;
7937 const char *__pyx_filename = NULL;
7938 int __pyx_clineno = 0;
7939 PyObject *__pyx_r = 0;
7940 __Pyx_RefNannyDeclarations
7941 __Pyx_RefNannySetupContext(
"getRT0velocityValuesFluxRep_arbitraryElementMembership (wrapper)", 0);
7943 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nodeArray,&__pyx_n_s_elementNodesArray,&__pyx_n_s_abs_det_J,&__pyx_n_s_x,&__pyx_n_s_element_locations,&__pyx_n_s_rt0vdofs_element,&__pyx_n_s_v_element,0};
7944 PyObject* values[7] = {0,0,0,0,0,0,0};
7945 if (unlikely(__pyx_kwds)) {
7947 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7949 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7951 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7953 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7955 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7957 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7959 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7961 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7964 default:
goto __pyx_L5_argtuple_error;
7966 kw_args = PyDict_Size(__pyx_kwds);
7969 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
7970 else goto __pyx_L5_argtuple_error;
7973 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
7975 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 1); __PYX_ERR(0, 670, __pyx_L3_error)
7979 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
7981 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 2); __PYX_ERR(0, 670, __pyx_L3_error)
7985 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7987 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 3); __PYX_ERR(0, 670, __pyx_L3_error)
7991 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element_locations)) != 0)) kw_args--;
7993 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 4); __PYX_ERR(0, 670, __pyx_L3_error)
7997 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rt0vdofs_element)) != 0)) kw_args--;
7999 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 5); __PYX_ERR(0, 670, __pyx_L3_error)
8003 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_element)) != 0)) kw_args--;
8005 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, 6); __PYX_ERR(0, 670, __pyx_L3_error)
8008 if (unlikely(kw_args > 0)) {
8009 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getRT0velocityValuesFluxRep_arbitraryElementMembership") < 0)) __PYX_ERR(0, 670, __pyx_L3_error)
8011 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
8012 goto __pyx_L5_argtuple_error;
8014 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8015 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8016 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8017 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8018 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8019 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8020 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8022 __pyx_v_nodeArray = ((PyArrayObject *)values[0]);
8023 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
8024 __pyx_v_abs_det_J = ((PyArrayObject *)values[2]);
8025 __pyx_v_x = ((PyArrayObject *)values[3]);
8026 __pyx_v_element_locations = ((PyArrayObject *)values[4]);
8027 __pyx_v_rt0vdofs_element = ((PyArrayObject *)values[5]);
8028 __pyx_v_v_element = ((PyArrayObject *)values[6]);
8030 goto __pyx_L4_argument_unpacking_done;
8031 __pyx_L5_argtuple_error:;
8032 __Pyx_RaiseArgtupleInvalid(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 670, __pyx_L3_error)
8034 __Pyx_AddTraceback(
"cpostprocessing.getRT0velocityValuesFluxRep_arbitraryElementMembership", __pyx_clineno, __pyx_lineno, __pyx_filename);
8035 __Pyx_RefNannyFinishContext();
8037 __pyx_L4_argument_unpacking_done:;
8038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 670, __pyx_L1_error)
8039 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 671, __pyx_L1_error)
8040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 672, __pyx_L1_error)
8041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 673, __pyx_L1_error)
8042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element_locations), __pyx_ptype_5numpy_ndarray, 1,
"element_locations", 0))) __PYX_ERR(0, 674, __pyx_L1_error)
8043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rt0vdofs_element), __pyx_ptype_5numpy_ndarray, 1,
"rt0vdofs_element", 0))) __PYX_ERR(0, 675, __pyx_L1_error)
8044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_element), __pyx_ptype_5numpy_ndarray, 1,
"v_element", 0))) __PYX_ERR(0, 676, __pyx_L1_error)
8045 __pyx_r = __pyx_pf_15cpostprocessing_60getRT0velocityValuesFluxRep_arbitraryElementMembership(__pyx_self, __pyx_v_nodeArray, __pyx_v_elementNodesArray, __pyx_v_abs_det_J, __pyx_v_x, __pyx_v_element_locations, __pyx_v_rt0vdofs_element, __pyx_v_v_element);
8052 __Pyx_RefNannyFinishContext();
8056 static PyObject *__pyx_pf_15cpostprocessing_60getRT0velocityValuesFluxRep_arbitraryElementMembership(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_element_locations, PyArrayObject *__pyx_v_rt0vdofs_element, PyArrayObject *__pyx_v_v_element) {
8057 int __pyx_v_nPoints;
8058 PyObject *__pyx_r = NULL;
8059 __Pyx_RefNannyDeclarations
8060 PyObject *__pyx_t_1 = NULL;
8061 PyObject *__pyx_t_2 = NULL;
8062 PyObject *__pyx_t_3 = NULL;
8064 int __pyx_lineno = 0;
8065 const char *__pyx_filename = NULL;
8066 int __pyx_clineno = 0;
8067 __Pyx_RefNannySetupContext(
"getRT0velocityValuesFluxRep_arbitraryElementMembership", 0);
8076 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_x), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 677, __pyx_L1_error)
8077 __Pyx_GOTREF(__pyx_t_1);
8078 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_x->dimensions[(__pyx_v_x->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 677, __pyx_L1_error)
8079 __Pyx_GOTREF(__pyx_t_2);
8080 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 677, __pyx_L1_error)
8081 __Pyx_GOTREF(__pyx_t_3);
8082 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8083 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8084 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L1_error)
8085 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8086 __pyx_v_nPoints = __pyx_t_4;
8095 getRT0velocityValuesFluxRep_arbitraryElementMembership((__pyx_v_elementNodesArray->dimensions[0]), (__pyx_v_elementNodesArray->dimensions[1]), __pyx_v_nPoints, (__pyx_v_v_element->dimensions[1]), (__pyx_v_abs_det_J->dimensions[1]), ((
double *)__pyx_v_nodeArray->data), ((
int *)__pyx_v_elementNodesArray->data), ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_x->data), ((
int *)__pyx_v_element_locations->data), ((
double *)__pyx_v_rt0vdofs_element->data), ((
double *)__pyx_v_v_element->data));
8106 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8109 __Pyx_XDECREF(__pyx_t_1);
8110 __Pyx_XDECREF(__pyx_t_2);
8111 __Pyx_XDECREF(__pyx_t_3);
8112 __Pyx_AddTraceback(
"cpostprocessing.getRT0velocityValuesFluxRep_arbitraryElementMembership", __pyx_clineno, __pyx_lineno, __pyx_filename);
8115 __Pyx_XGIVEREF(__pyx_r);
8116 __Pyx_RefNannyFinishContext();
8129 static PyObject *__pyx_pw_15cpostprocessing_63fluxCorrectionVelocityUpdate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8130 static PyMethodDef __pyx_mdef_15cpostprocessing_63fluxCorrectionVelocityUpdate = {
"fluxCorrectionVelocityUpdate", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_63fluxCorrectionVelocityUpdate, METH_VARARGS|METH_KEYWORDS, 0};
8131 static PyObject *__pyx_pw_15cpostprocessing_63fluxCorrectionVelocityUpdate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8132 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
8133 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
8134 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
8135 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
8136 PyArrayObject *__pyx_v_dS = 0;
8137 PyArrayObject *__pyx_v_n = 0;
8138 PyArrayObject *__pyx_v_fluxCorrection = 0;
8139 PyArrayObject *__pyx_v_velocity = 0;
8140 PyArrayObject *__pyx_v_velocity_element = 0;
8141 int __pyx_lineno = 0;
8142 const char *__pyx_filename = NULL;
8143 int __pyx_clineno = 0;
8144 PyObject *__pyx_r = 0;
8145 __Pyx_RefNannyDeclarations
8146 __Pyx_RefNannySetupContext(
"fluxCorrectionVelocityUpdate (wrapper)", 0);
8148 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_dS,&__pyx_n_s_n,&__pyx_n_s_fluxCorrection,&__pyx_n_s_velocity,&__pyx_n_s_velocity_element,0};
8149 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
8150 if (unlikely(__pyx_kwds)) {
8152 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8154 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8156 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8158 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8160 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8162 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8164 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8166 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8168 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8170 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8173 default:
goto __pyx_L5_argtuple_error;
8175 kw_args = PyDict_Size(__pyx_kwds);
8178 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
8179 else goto __pyx_L5_argtuple_error;
8182 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
8184 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 1); __PYX_ERR(0, 691, __pyx_L3_error)
8188 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
8190 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 2); __PYX_ERR(0, 691, __pyx_L3_error)
8194 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
8196 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 3); __PYX_ERR(0, 691, __pyx_L3_error)
8200 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
8202 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 4); __PYX_ERR(0, 691, __pyx_L3_error)
8206 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8208 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 5); __PYX_ERR(0, 691, __pyx_L3_error)
8212 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxCorrection)) != 0)) kw_args--;
8214 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 6); __PYX_ERR(0, 691, __pyx_L3_error)
8218 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
8220 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 7); __PYX_ERR(0, 691, __pyx_L3_error)
8224 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity_element)) != 0)) kw_args--;
8226 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, 8); __PYX_ERR(0, 691, __pyx_L3_error)
8229 if (unlikely(kw_args > 0)) {
8230 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"fluxCorrectionVelocityUpdate") < 0)) __PYX_ERR(0, 691, __pyx_L3_error)
8232 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
8233 goto __pyx_L5_argtuple_error;
8235 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8236 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8237 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8238 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8239 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8240 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8241 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8242 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8243 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8245 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
8246 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
8247 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
8248 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
8249 __pyx_v_dS = ((PyArrayObject *)values[4]);
8250 __pyx_v_n = ((PyArrayObject *)values[5]);
8251 __pyx_v_fluxCorrection = ((PyArrayObject *)values[6]);
8252 __pyx_v_velocity = ((PyArrayObject *)values[7]);
8253 __pyx_v_velocity_element = ((PyArrayObject *)values[8]);
8255 goto __pyx_L4_argument_unpacking_done;
8256 __pyx_L5_argtuple_error:;
8257 __Pyx_RaiseArgtupleInvalid(
"fluxCorrectionVelocityUpdate", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 691, __pyx_L3_error)
8259 __Pyx_AddTraceback(
"cpostprocessing.fluxCorrectionVelocityUpdate", __pyx_clineno, __pyx_lineno, __pyx_filename);
8260 __Pyx_RefNannyFinishContext();
8262 __pyx_L4_argument_unpacking_done:;
8263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 691, __pyx_L1_error)
8264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 692, __pyx_L1_error)
8265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 693, __pyx_L1_error)
8266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 694, __pyx_L1_error)
8267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 695, __pyx_L1_error)
8268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 696, __pyx_L1_error)
8269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxCorrection), __pyx_ptype_5numpy_ndarray, 1,
"fluxCorrection", 0))) __PYX_ERR(0, 697, __pyx_L1_error)
8270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 698, __pyx_L1_error)
8271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity_element), __pyx_ptype_5numpy_ndarray, 1,
"velocity_element", 0))) __PYX_ERR(0, 699, __pyx_L1_error)
8272 __pyx_r = __pyx_pf_15cpostprocessing_62fluxCorrectionVelocityUpdate(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_dS, __pyx_v_n, __pyx_v_fluxCorrection, __pyx_v_velocity, __pyx_v_velocity_element);
8279 __Pyx_RefNannyFinishContext();
8283 static PyObject *__pyx_pf_15cpostprocessing_62fluxCorrectionVelocityUpdate(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_fluxCorrection, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_velocity_element) {
8284 PyObject *__pyx_r = NULL;
8285 __Pyx_RefNannyDeclarations
8286 __Pyx_RefNannySetupContext(
"fluxCorrectionVelocityUpdate", 0);
8295 fluxCorrectionVelocityUpdate((__pyx_v_dS->dimensions[0]), (__pyx_v_velocity->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_dS->dimensions[1]), (__pyx_v_dS->dimensions[2]), (__pyx_v_velocity->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_fluxCorrection->data), ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_velocity_element->data));
8306 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8307 __Pyx_XGIVEREF(__pyx_r);
8308 __Pyx_RefNannyFinishContext();
8321 static PyObject *__pyx_pw_15cpostprocessing_65computeFluxCorrectionPWC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8322 static PyMethodDef __pyx_mdef_15cpostprocessing_65computeFluxCorrectionPWC = {
"computeFluxCorrectionPWC", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_65computeFluxCorrectionPWC, METH_VARARGS|METH_KEYWORDS, 0};
8323 static PyObject *__pyx_pw_15cpostprocessing_65computeFluxCorrectionPWC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8324 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
8325 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
8326 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
8327 PyArrayObject *__pyx_v_pwcW = 0;
8328 PyArrayObject *__pyx_v_pwcV = 0;
8329 PyArrayObject *__pyx_v_fluxCorrection = 0;
8330 int __pyx_lineno = 0;
8331 const char *__pyx_filename = NULL;
8332 int __pyx_clineno = 0;
8333 PyObject *__pyx_r = 0;
8334 __Pyx_RefNannyDeclarations
8335 __Pyx_RefNannySetupContext(
"computeFluxCorrectionPWC (wrapper)", 0);
8337 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_pwcW,&__pyx_n_s_pwcV,&__pyx_n_s_fluxCorrection,0};
8338 PyObject* values[6] = {0,0,0,0,0,0};
8339 if (unlikely(__pyx_kwds)) {
8341 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8343 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8345 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8347 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8349 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8351 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8353 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8356 default:
goto __pyx_L5_argtuple_error;
8358 kw_args = PyDict_Size(__pyx_kwds);
8361 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
8362 else goto __pyx_L5_argtuple_error;
8365 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
8367 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, 1); __PYX_ERR(0, 717, __pyx_L3_error)
8371 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
8373 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, 2); __PYX_ERR(0, 717, __pyx_L3_error)
8377 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pwcW)) != 0)) kw_args--;
8379 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, 3); __PYX_ERR(0, 717, __pyx_L3_error)
8383 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pwcV)) != 0)) kw_args--;
8385 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, 4); __PYX_ERR(0, 717, __pyx_L3_error)
8389 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxCorrection)) != 0)) kw_args--;
8391 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, 5); __PYX_ERR(0, 717, __pyx_L3_error)
8394 if (unlikely(kw_args > 0)) {
8395 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"computeFluxCorrectionPWC") < 0)) __PYX_ERR(0, 717, __pyx_L3_error)
8397 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
8398 goto __pyx_L5_argtuple_error;
8400 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8401 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8402 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8403 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8404 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8405 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8407 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
8408 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
8409 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
8410 __pyx_v_pwcW = ((PyArrayObject *)values[3]);
8411 __pyx_v_pwcV = ((PyArrayObject *)values[4]);
8412 __pyx_v_fluxCorrection = ((PyArrayObject *)values[5]);
8414 goto __pyx_L4_argument_unpacking_done;
8415 __pyx_L5_argtuple_error:;
8416 __Pyx_RaiseArgtupleInvalid(
"computeFluxCorrectionPWC", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 717, __pyx_L3_error)
8418 __Pyx_AddTraceback(
"cpostprocessing.computeFluxCorrectionPWC", __pyx_clineno, __pyx_lineno, __pyx_filename);
8419 __Pyx_RefNannyFinishContext();
8421 __pyx_L4_argument_unpacking_done:;
8422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 717, __pyx_L1_error)
8423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 718, __pyx_L1_error)
8424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 719, __pyx_L1_error)
8425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pwcW), __pyx_ptype_5numpy_ndarray, 1,
"pwcW", 0))) __PYX_ERR(0, 720, __pyx_L1_error)
8426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pwcV), __pyx_ptype_5numpy_ndarray, 1,
"pwcV", 0))) __PYX_ERR(0, 721, __pyx_L1_error)
8427 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxCorrection), __pyx_ptype_5numpy_ndarray, 1,
"fluxCorrection", 0))) __PYX_ERR(0, 722, __pyx_L1_error)
8428 __pyx_r = __pyx_pf_15cpostprocessing_64computeFluxCorrectionPWC(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_pwcW, __pyx_v_pwcV, __pyx_v_fluxCorrection);
8435 __Pyx_RefNannyFinishContext();
8439 static PyObject *__pyx_pf_15cpostprocessing_64computeFluxCorrectionPWC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_pwcW, PyArrayObject *__pyx_v_pwcV, PyArrayObject *__pyx_v_fluxCorrection) {
8440 PyObject *__pyx_r = NULL;
8441 __Pyx_RefNannyDeclarations
8442 __Pyx_RefNannySetupContext(
"computeFluxCorrectionPWC", 0);
8451 computeFluxCorrectionPWC((__pyx_v_elementBoundaryElements->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
double *)__pyx_v_pwcW->data), ((
double *)__pyx_v_pwcV->data), ((
double *)__pyx_v_fluxCorrection->data));
8462 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8463 __Pyx_XGIVEREF(__pyx_r);
8464 __Pyx_RefNannyFinishContext();
8477 static PyObject *__pyx_pw_15cpostprocessing_67sunWheelerGSsweep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8478 static PyMethodDef __pyx_mdef_15cpostprocessing_67sunWheelerGSsweep = {
"sunWheelerGSsweep", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_67sunWheelerGSsweep, METH_VARARGS|METH_KEYWORDS, 0};
8479 static PyObject *__pyx_pw_15cpostprocessing_67sunWheelerGSsweep(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8480 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
8481 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
8482 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
8483 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
8484 PyArrayObject *__pyx_v_dS = 0;
8485 PyArrayObject *__pyx_v_n = 0;
8486 PyArrayObject *__pyx_v_sqrt_det_g = 0;
8487 PyArrayObject *__pyx_v_alphaFactor = 0;
8488 PyArrayObject *__pyx_v_fluxCorrection = 0;
8489 PyArrayObject *__pyx_v_conservationResidual = 0;
8490 int __pyx_lineno = 0;
8491 const char *__pyx_filename = NULL;
8492 int __pyx_clineno = 0;
8493 PyObject *__pyx_r = 0;
8494 __Pyx_RefNannyDeclarations
8495 __Pyx_RefNannySetupContext(
"sunWheelerGSsweep (wrapper)", 0);
8497 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_dS,&__pyx_n_s_n,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_alphaFactor,&__pyx_n_s_fluxCorrection,&__pyx_n_s_conservationResidual,0};
8498 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
8499 if (unlikely(__pyx_kwds)) {
8501 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8503 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8505 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8507 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8509 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8511 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8513 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8515 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8517 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8519 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8521 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8524 default:
goto __pyx_L5_argtuple_error;
8526 kw_args = PyDict_Size(__pyx_kwds);
8529 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
8530 else goto __pyx_L5_argtuple_error;
8533 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
8535 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 1); __PYX_ERR(0, 733, __pyx_L3_error)
8539 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
8541 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 2); __PYX_ERR(0, 733, __pyx_L3_error)
8545 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
8547 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 3); __PYX_ERR(0, 733, __pyx_L3_error)
8551 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
8553 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 4); __PYX_ERR(0, 733, __pyx_L3_error)
8557 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
8559 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 5); __PYX_ERR(0, 733, __pyx_L3_error)
8563 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
8565 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 6); __PYX_ERR(0, 733, __pyx_L3_error)
8569 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alphaFactor)) != 0)) kw_args--;
8571 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 7); __PYX_ERR(0, 733, __pyx_L3_error)
8575 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxCorrection)) != 0)) kw_args--;
8577 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 8); __PYX_ERR(0, 733, __pyx_L3_error)
8581 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
8583 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, 9); __PYX_ERR(0, 733, __pyx_L3_error)
8586 if (unlikely(kw_args > 0)) {
8587 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"sunWheelerGSsweep") < 0)) __PYX_ERR(0, 733, __pyx_L3_error)
8589 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
8590 goto __pyx_L5_argtuple_error;
8592 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8593 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8594 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8595 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8596 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8597 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
8598 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
8599 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
8600 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
8601 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
8603 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
8604 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
8605 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
8606 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
8607 __pyx_v_dS = ((PyArrayObject *)values[4]);
8608 __pyx_v_n = ((PyArrayObject *)values[5]);
8609 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[6]);
8610 __pyx_v_alphaFactor = ((PyArrayObject *)values[7]);
8611 __pyx_v_fluxCorrection = ((PyArrayObject *)values[8]);
8612 __pyx_v_conservationResidual = ((PyArrayObject *)values[9]);
8614 goto __pyx_L4_argument_unpacking_done;
8615 __pyx_L5_argtuple_error:;
8616 __Pyx_RaiseArgtupleInvalid(
"sunWheelerGSsweep", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 733, __pyx_L3_error)
8618 __Pyx_AddTraceback(
"cpostprocessing.sunWheelerGSsweep", __pyx_clineno, __pyx_lineno, __pyx_filename);
8619 __Pyx_RefNannyFinishContext();
8621 __pyx_L4_argument_unpacking_done:;
8622 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 733, __pyx_L1_error)
8623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 734, __pyx_L1_error)
8624 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 735, __pyx_L1_error)
8625 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 736, __pyx_L1_error)
8626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 737, __pyx_L1_error)
8627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 738, __pyx_L1_error)
8628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 739, __pyx_L1_error)
8629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alphaFactor), __pyx_ptype_5numpy_ndarray, 1,
"alphaFactor", 0))) __PYX_ERR(0, 740, __pyx_L1_error)
8630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxCorrection), __pyx_ptype_5numpy_ndarray, 1,
"fluxCorrection", 0))) __PYX_ERR(0, 741, __pyx_L1_error)
8631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 742, __pyx_L1_error)
8632 __pyx_r = __pyx_pf_15cpostprocessing_66sunWheelerGSsweep(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_dS, __pyx_v_n, __pyx_v_sqrt_det_g, __pyx_v_alphaFactor, __pyx_v_fluxCorrection, __pyx_v_conservationResidual);
8639 __Pyx_RefNannyFinishContext();
8643 static PyObject *__pyx_pf_15cpostprocessing_66sunWheelerGSsweep(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_alphaFactor, PyArrayObject *__pyx_v_fluxCorrection, PyArrayObject *__pyx_v_conservationResidual) {
8644 PyObject *__pyx_r = NULL;
8645 __Pyx_RefNannyDeclarations
8646 __Pyx_RefNannySetupContext(
"sunWheelerGSsweep", 0);
8655 sunWheelerGSsweep((__pyx_v_conservationResidual->dimensions[0]), (__pyx_v_elementBoundaryElements->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_dS->dimensions[1]), (__pyx_v_dS->dimensions[2]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_alphaFactor->data), ((
double *)__pyx_v_fluxCorrection->data), ((
double *)__pyx_v_conservationResidual->data));
8666 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8667 __Pyx_XGIVEREF(__pyx_r);
8668 __Pyx_RefNannyFinishContext();
8681 static int __pyx_pw_15cpostprocessing_14NodeStarFactor_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8682 static int __pyx_pw_15cpostprocessing_14NodeStarFactor_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8683 PyArrayObject *__pyx_v_nElements_node = 0;
8684 PyArrayObject *__pyx_v_nodeStarElementsArray = 0;
8685 PyArrayObject *__pyx_v_nodeStarElementsNeighborsArray = 0;
8686 int __pyx_lineno = 0;
8687 const char *__pyx_filename = NULL;
8688 int __pyx_clineno = 0;
8690 __Pyx_RefNannyDeclarations
8691 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
8693 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_node,&__pyx_n_s_nodeStarElementsArray,&__pyx_n_s_nodeStarElementsNeighborsArray,0};
8694 PyObject* values[3] = {0,0,0};
8695 if (unlikely(__pyx_kwds)) {
8697 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8699 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8701 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8703 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8706 default:
goto __pyx_L5_argtuple_error;
8708 kw_args = PyDict_Size(__pyx_kwds);
8711 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
8712 else goto __pyx_L5_argtuple_error;
8715 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementsArray)) != 0)) kw_args--;
8717 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 1, 3, 3, 1); __PYX_ERR(0, 764, __pyx_L3_error)
8721 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementsNeighborsArray)) != 0)) kw_args--;
8723 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 1, 3, 3, 2); __PYX_ERR(0, 764, __pyx_L3_error)
8726 if (unlikely(kw_args > 0)) {
8727 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(0, 764, __pyx_L3_error)
8729 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
8730 goto __pyx_L5_argtuple_error;
8732 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8733 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8734 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8736 __pyx_v_nElements_node = ((PyArrayObject *)values[0]);
8737 __pyx_v_nodeStarElementsArray = ((PyArrayObject *)values[1]);
8738 __pyx_v_nodeStarElementsNeighborsArray = ((PyArrayObject *)values[2]);
8740 goto __pyx_L4_argument_unpacking_done;
8741 __pyx_L5_argtuple_error:;
8742 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 764, __pyx_L3_error)
8744 __Pyx_AddTraceback(
"cpostprocessing.NodeStarFactor.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8745 __Pyx_RefNannyFinishContext();
8747 __pyx_L4_argument_unpacking_done:;
8748 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 765, __pyx_L1_error)
8749 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementsArray", 0))) __PYX_ERR(0, 766, __pyx_L1_error)
8750 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementsNeighborsArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementsNeighborsArray", 0))) __PYX_ERR(0, 767, __pyx_L1_error)
8751 __pyx_r = __pyx_pf_15cpostprocessing_14NodeStarFactor___cinit__(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self), __pyx_v_nElements_node, __pyx_v_nodeStarElementsArray, __pyx_v_nodeStarElementsNeighborsArray);
8758 __Pyx_RefNannyFinishContext();
8762 static int __pyx_pf_15cpostprocessing_14NodeStarFactor___cinit__(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_nodeStarElementsArray, PyArrayObject *__pyx_v_nodeStarElementsNeighborsArray) {
8765 __Pyx_RefNannyDeclarations
8766 int __pyx_lineno = 0;
8767 const char *__pyx_filename = NULL;
8768 int __pyx_clineno = 0;
8769 __Pyx_RefNannySetupContext(
"__cinit__", 0);
8787 __pyx_v_rval =
nodeStar_init((__pyx_v_nodeStarElementsArray->dimensions[0]), (__pyx_v_nodeStarElementsArray->dimensions[1]), (__pyx_v_nElements_node->dimensions[0]), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_nodeStarElementsArray->data), ((
int *)__pyx_v_nodeStarElementsNeighborsArray->data), (&__pyx_v_self->nsf.N), (&__pyx_v_self->nsf.subdomain_dim), (&__pyx_v_self->nsf.subdomain_L), (&__pyx_v_self->nsf.subdomain_R), (&__pyx_v_self->nsf.subdomain_U), (&__pyx_v_self->nsf.subdomain_pivots), (&__pyx_v_self->nsf.subdomain_column_pivots));
8796 #ifndef CYTHON_WITHOUT_ASSERTIONS
8797 if (unlikely(!Py_OptimizeFlag)) {
8798 if (unlikely(!((__pyx_v_rval == 0) != 0))) {
8799 PyErr_SetNone(PyExc_AssertionError);
8800 __PYX_ERR(0, 782, __pyx_L1_error)
8817 __Pyx_AddTraceback(
"cpostprocessing.NodeStarFactor.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8820 __Pyx_RefNannyFinishContext();
8833 static void __pyx_pw_15cpostprocessing_14NodeStarFactor_3__dealloc__(PyObject *__pyx_v_self);
8834 static void __pyx_pw_15cpostprocessing_14NodeStarFactor_3__dealloc__(PyObject *__pyx_v_self) {
8835 __Pyx_RefNannyDeclarations
8836 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
8837 __pyx_pf_15cpostprocessing_14NodeStarFactor_2__dealloc__(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self));
8840 __Pyx_RefNannyFinishContext();
8843 static void __pyx_pf_15cpostprocessing_14NodeStarFactor_2__dealloc__(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self) {
8844 __Pyx_RefNannyDeclarations
8845 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
8854 (void)(
nodeStar_free(__pyx_v_self->nsf.N, __pyx_v_self->nsf.subdomain_dim, __pyx_v_self->nsf.subdomain_L, __pyx_v_self->nsf.subdomain_R, __pyx_v_self->nsf.subdomain_U, __pyx_v_self->nsf.subdomain_pivots, __pyx_v_self->nsf.subdomain_column_pivots));
8865 __Pyx_RefNannyFinishContext();
8877 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_5setU(PyObject *__pyx_v_self, PyObject *__pyx_arg_val);
8878 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_5setU(PyObject *__pyx_v_self, PyObject *__pyx_arg_val) {
8880 int __pyx_lineno = 0;
8881 const char *__pyx_filename = NULL;
8882 int __pyx_clineno = 0;
8883 PyObject *__pyx_r = 0;
8884 __Pyx_RefNannyDeclarations
8885 __Pyx_RefNannySetupContext(
"setU (wrapper)", 0);
8886 assert(__pyx_arg_val); {
8887 __pyx_v_val = __pyx_PyFloat_AsDouble(__pyx_arg_val);
if (unlikely((__pyx_v_val == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 794, __pyx_L3_error)
8889 goto __pyx_L4_argument_unpacking_done;
8891 __Pyx_AddTraceback(
"cpostprocessing.NodeStarFactor.setU", __pyx_clineno, __pyx_lineno, __pyx_filename);
8892 __Pyx_RefNannyFinishContext();
8894 __pyx_L4_argument_unpacking_done:;
8895 __pyx_r = __pyx_pf_15cpostprocessing_14NodeStarFactor_4setU(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self), ((
double)__pyx_v_val));
8898 __Pyx_RefNannyFinishContext();
8902 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_4setU(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self,
double __pyx_v_val) {
8905 PyObject *__pyx_r = NULL;
8906 __Pyx_RefNannyDeclarations
8913 __Pyx_RefNannySetupContext(
"setU", 0);
8922 __pyx_t_1 = __pyx_v_self->nsf.N;
8923 __pyx_t_2 = __pyx_t_1;
8924 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
8925 __pyx_v_I = __pyx_t_3;
8934 __pyx_t_4 = (__pyx_v_self->nsf.subdomain_dim[__pyx_v_I]);
8935 __pyx_t_5 = __pyx_t_4;
8936 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
8937 __pyx_v_i = __pyx_t_6;
8946 ((__pyx_v_self->nsf.subdomain_U[__pyx_v_I])[__pyx_v_i]) = __pyx_v_val;
8959 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8960 __Pyx_XGIVEREF(__pyx_r);
8961 __Pyx_RefNannyFinishContext();
8974 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_7copyData(PyObject *__pyx_v_self, PyObject *__pyx_v_other);
8975 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_7copyData(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
8976 int __pyx_lineno = 0;
8977 const char *__pyx_filename = NULL;
8978 int __pyx_clineno = 0;
8979 PyObject *__pyx_r = 0;
8980 __Pyx_RefNannyDeclarations
8981 __Pyx_RefNannySetupContext(
"copyData (wrapper)", 0);
8982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"other", 0))) __PYX_ERR(0, 802, __pyx_L1_error)
8983 __pyx_r = __pyx_pf_15cpostprocessing_14NodeStarFactor_6copyData(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self), ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_other));
8990 __Pyx_RefNannyFinishContext();
8994 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_6copyData(
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_other) {
8995 PyObject *__pyx_r = NULL;
8996 __Pyx_RefNannyDeclarations
8997 __Pyx_RefNannySetupContext(
"copyData", 0);
9006 (void)(
nodeStar_copy(__pyx_v_other->nsf.N, __pyx_v_other->nsf.subdomain_dim, __pyx_v_other->nsf.subdomain_L, __pyx_v_other->nsf.subdomain_R, __pyx_v_other->nsf.subdomain_U, __pyx_v_other->nsf.subdomain_pivots, __pyx_v_other->nsf.subdomain_column_pivots, (&__pyx_v_self->nsf.N), (&__pyx_v_self->nsf.subdomain_dim), (&__pyx_v_self->nsf.subdomain_L), (&__pyx_v_self->nsf.subdomain_R), (&__pyx_v_self->nsf.subdomain_U), (&__pyx_v_self->nsf.subdomain_pivots), (&__pyx_v_self->nsf.subdomain_column_pivots)));
9017 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9018 __Pyx_XGIVEREF(__pyx_r);
9019 __Pyx_RefNannyFinishContext();
9030 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
9031 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
9032 PyObject *__pyx_r = 0;
9033 __Pyx_RefNannyDeclarations
9034 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
9035 __pyx_r = __pyx_pf_15cpostprocessing_14NodeStarFactor_8__reduce_cython__(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self));
9038 __Pyx_RefNannyFinishContext();
9042 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_8__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self) {
9043 PyObject *__pyx_r = NULL;
9044 __Pyx_RefNannyDeclarations
9045 PyObject *__pyx_t_1 = NULL;
9046 int __pyx_lineno = 0;
9047 const char *__pyx_filename = NULL;
9048 int __pyx_clineno = 0;
9049 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
9057 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
9058 __Pyx_GOTREF(__pyx_t_1);
9059 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
9060 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9061 __PYX_ERR(1, 2, __pyx_L1_error)
9071 __Pyx_XDECREF(__pyx_t_1);
9072 __Pyx_AddTraceback(
"cpostprocessing.NodeStarFactor.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9074 __Pyx_XGIVEREF(__pyx_r);
9075 __Pyx_RefNannyFinishContext();
9087 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
9088 static PyObject *__pyx_pw_15cpostprocessing_14NodeStarFactor_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
9089 PyObject *__pyx_r = 0;
9090 __Pyx_RefNannyDeclarations
9091 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
9092 __pyx_r = __pyx_pf_15cpostprocessing_14NodeStarFactor_10__setstate_cython__(((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
9095 __Pyx_RefNannyFinishContext();
9099 static PyObject *__pyx_pf_15cpostprocessing_14NodeStarFactor_10__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
9100 PyObject *__pyx_r = NULL;
9101 __Pyx_RefNannyDeclarations
9102 PyObject *__pyx_t_1 = NULL;
9103 int __pyx_lineno = 0;
9104 const char *__pyx_filename = NULL;
9105 int __pyx_clineno = 0;
9106 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
9113 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
9114 __Pyx_GOTREF(__pyx_t_1);
9115 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
9116 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9117 __PYX_ERR(1, 4, __pyx_L1_error)
9128 __Pyx_XDECREF(__pyx_t_1);
9129 __Pyx_AddTraceback(
"cpostprocessing.NodeStarFactor.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9131 __Pyx_XGIVEREF(__pyx_r);
9132 __Pyx_RefNannyFinishContext();
9145 static PyObject *__pyx_pw_15cpostprocessing_69calculateConservationResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9146 static PyMethodDef __pyx_mdef_15cpostprocessing_69calculateConservationResidualPWL = {
"calculateConservationResidualPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_69calculateConservationResidualPWL, METH_VARARGS|METH_KEYWORDS, 0};
9147 static PyObject *__pyx_pw_15cpostprocessing_69calculateConservationResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9148 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
9149 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
9150 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9151 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9152 PyArrayObject *__pyx_v_elementNodes = 0;
9153 PyArrayObject *__pyx_v_dofMapl2g = 0;
9154 PyArrayObject *__pyx_v_nodeStarElements = 0;
9155 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
9156 PyArrayObject *__pyx_v_nElements_node = 0;
9157 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
9158 PyArrayObject *__pyx_v_elementResidual = 0;
9159 PyArrayObject *__pyx_v_vAverage = 0;
9160 PyArrayObject *__pyx_v_dx = 0;
9161 PyArrayObject *__pyx_v_w = 0;
9162 PyArrayObject *__pyx_v_n = 0;
9163 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
9164 PyArrayObject *__pyx_v_conservationResidual = 0;
9165 PyArrayObject *__pyx_v_vConservative = 0;
9166 PyArrayObject *__pyx_v_vConservative_element = 0;
9167 int __pyx_lineno = 0;
9168 const char *__pyx_filename = NULL;
9169 int __pyx_clineno = 0;
9170 PyObject *__pyx_r = 0;
9171 __Pyx_RefNannyDeclarations
9172 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL (wrapper)", 0);
9174 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_dofMapl2g,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nElements_node,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_elementResidual,&__pyx_n_s_vAverage,&__pyx_n_s_dx,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,&__pyx_n_s_conservationResidual,&__pyx_n_s_vConservative,&__pyx_n_s_vConservative_element,0};
9175 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9176 if (unlikely(__pyx_kwds)) {
9178 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9180 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
9182 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
9184 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9186 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9188 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9190 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9192 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9194 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9196 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9198 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9200 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9202 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9204 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9206 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9208 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9210 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9212 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9214 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9216 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9219 default:
goto __pyx_L5_argtuple_error;
9221 kw_args = PyDict_Size(__pyx_kwds);
9224 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
9225 else goto __pyx_L5_argtuple_error;
9228 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
9230 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 1); __PYX_ERR(0, 818, __pyx_L3_error)
9234 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
9236 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 2); __PYX_ERR(0, 818, __pyx_L3_error)
9240 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
9242 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 3); __PYX_ERR(0, 818, __pyx_L3_error)
9246 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
9248 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 4); __PYX_ERR(0, 818, __pyx_L3_error)
9252 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dofMapl2g)) != 0)) kw_args--;
9254 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 5); __PYX_ERR(0, 818, __pyx_L3_error)
9258 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
9260 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 6); __PYX_ERR(0, 818, __pyx_L3_error)
9264 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
9266 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 7); __PYX_ERR(0, 818, __pyx_L3_error)
9270 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
9272 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 8); __PYX_ERR(0, 818, __pyx_L3_error)
9276 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
9278 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 9); __PYX_ERR(0, 818, __pyx_L3_error)
9282 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
9284 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 10); __PYX_ERR(0, 818, __pyx_L3_error)
9288 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
9290 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 11); __PYX_ERR(0, 818, __pyx_L3_error)
9294 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dx)) != 0)) kw_args--;
9296 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 12); __PYX_ERR(0, 818, __pyx_L3_error)
9300 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
9302 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 13); __PYX_ERR(0, 818, __pyx_L3_error)
9306 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
9308 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 14); __PYX_ERR(0, 818, __pyx_L3_error)
9312 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
9314 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 15); __PYX_ERR(0, 818, __pyx_L3_error)
9318 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
9320 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 16); __PYX_ERR(0, 818, __pyx_L3_error)
9324 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative)) != 0)) kw_args--;
9326 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 17); __PYX_ERR(0, 818, __pyx_L3_error)
9330 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative_element)) != 0)) kw_args--;
9332 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, 18); __PYX_ERR(0, 818, __pyx_L3_error)
9335 if (unlikely(kw_args > 0)) {
9336 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualPWL") < 0)) __PYX_ERR(0, 818, __pyx_L3_error)
9338 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
9339 goto __pyx_L5_argtuple_error;
9341 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9342 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9343 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9344 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9345 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9346 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9347 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9348 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9349 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9350 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9351 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9352 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9353 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9354 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9355 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9356 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
9357 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
9358 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
9359 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
9361 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
9362 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
9363 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
9364 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
9365 __pyx_v_elementNodes = ((PyArrayObject *)values[4]);
9366 __pyx_v_dofMapl2g = ((PyArrayObject *)values[5]);
9367 __pyx_v_nodeStarElements = ((PyArrayObject *)values[6]);
9368 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[7]);
9369 __pyx_v_nElements_node = ((PyArrayObject *)values[8]);
9370 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[9]);
9371 __pyx_v_elementResidual = ((PyArrayObject *)values[10]);
9372 __pyx_v_vAverage = ((PyArrayObject *)values[11]);
9373 __pyx_v_dx = ((PyArrayObject *)values[12]);
9374 __pyx_v_w = ((PyArrayObject *)values[13]);
9375 __pyx_v_n = ((PyArrayObject *)values[14]);
9376 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[15]);
9377 __pyx_v_conservationResidual = ((PyArrayObject *)values[16]);
9378 __pyx_v_vConservative = ((PyArrayObject *)values[17]);
9379 __pyx_v_vConservative_element = ((PyArrayObject *)values[18]);
9381 goto __pyx_L4_argument_unpacking_done;
9382 __pyx_L5_argtuple_error:;
9383 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 818, __pyx_L3_error)
9385 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
9386 __Pyx_RefNannyFinishContext();
9388 __pyx_L4_argument_unpacking_done:;
9389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 818, __pyx_L1_error)
9390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 819, __pyx_L1_error)
9391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 820, __pyx_L1_error)
9392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 821, __pyx_L1_error)
9393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 822, __pyx_L1_error)
9394 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dofMapl2g), __pyx_ptype_5numpy_ndarray, 1,
"dofMapl2g", 0))) __PYX_ERR(0, 823, __pyx_L1_error)
9395 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 824, __pyx_L1_error)
9396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 825, __pyx_L1_error)
9397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 826, __pyx_L1_error)
9398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 827, __pyx_L1_error)
9399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 828, __pyx_L1_error)
9400 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 829, __pyx_L1_error)
9401 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dx), __pyx_ptype_5numpy_ndarray, 1,
"dx", 0))) __PYX_ERR(0, 830, __pyx_L1_error)
9402 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 831, __pyx_L1_error)
9403 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 832, __pyx_L1_error)
9404 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 833, __pyx_L1_error)
9405 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 834, __pyx_L1_error)
9406 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative), __pyx_ptype_5numpy_ndarray, 1,
"vConservative", 0))) __PYX_ERR(0, 835, __pyx_L1_error)
9407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative_element), __pyx_ptype_5numpy_ndarray, 1,
"vConservative_element", 0))) __PYX_ERR(0, 836, __pyx_L1_error)
9408 __pyx_r = __pyx_pf_15cpostprocessing_68calculateConservationResidualPWL(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_dofMapl2g, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nElements_node, __pyx_v_fluxElementBoundaries, __pyx_v_elementResidual, __pyx_v_vAverage, __pyx_v_dx, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor, __pyx_v_conservationResidual, __pyx_v_vConservative, __pyx_v_vConservative_element);
9415 __Pyx_RefNannyFinishContext();
9419 static PyObject *__pyx_pf_15cpostprocessing_68calculateConservationResidualPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_dofMapl2g, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element) {
9420 PyObject *__pyx_r = NULL;
9421 __Pyx_RefNannyDeclarations
9422 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL", 0);
9431 calculateConservationResidualPWL((__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_dofMapl2g->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_dofMapl2g->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_dx->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf), ((
double *)__pyx_v_conservationResidual->data), ((
double *)__pyx_v_vConservative->data), ((
double *)__pyx_v_vConservative_element->data));
9442 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9443 __Pyx_XGIVEREF(__pyx_r);
9444 __Pyx_RefNannyFinishContext();
9457 static PyObject *__pyx_pw_15cpostprocessing_71calculateConservationJacobianPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9458 static PyMethodDef __pyx_mdef_15cpostprocessing_71calculateConservationJacobianPWL = {
"calculateConservationJacobianPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_71calculateConservationJacobianPWL, METH_VARARGS|METH_KEYWORDS, 0};
9459 static PyObject *__pyx_pw_15cpostprocessing_71calculateConservationJacobianPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9460 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
9461 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
9462 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9463 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9464 PyArrayObject *__pyx_v_elementNodes = 0;
9465 PyArrayObject *__pyx_v_dofMapl2g = 0;
9466 PyArrayObject *__pyx_v_dofStarElements = 0;
9467 PyArrayObject *__pyx_v_dofStarElementNeighbors = 0;
9468 PyArrayObject *__pyx_v_nElements_dof = 0;
9469 PyArrayObject *__pyx_v_internalNodes = 0;
9470 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
9471 PyArrayObject *__pyx_v_fluxBoundaryNodes = 0;
9472 PyArrayObject *__pyx_v_w = 0;
9473 PyArrayObject *__pyx_v_n = 0;
9474 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
9475 int __pyx_lineno = 0;
9476 const char *__pyx_filename = NULL;
9477 int __pyx_clineno = 0;
9478 PyObject *__pyx_r = 0;
9479 __Pyx_RefNannyDeclarations
9480 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL (wrapper)", 0);
9482 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_dofMapl2g,&__pyx_n_s_dofStarElements,&__pyx_n_s_dofStarElementNeighbors,&__pyx_n_s_nElements_dof,&__pyx_n_s_internalNodes,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_fluxBoundaryNodes,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,0};
9483 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9484 if (unlikely(__pyx_kwds)) {
9486 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9488 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9490 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9492 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9494 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9496 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9498 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9500 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9502 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9504 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9506 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9508 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9510 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9512 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9514 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9516 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9519 default:
goto __pyx_L5_argtuple_error;
9521 kw_args = PyDict_Size(__pyx_kwds);
9524 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
9525 else goto __pyx_L5_argtuple_error;
9528 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
9530 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 1); __PYX_ERR(0, 873, __pyx_L3_error)
9534 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
9536 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 2); __PYX_ERR(0, 873, __pyx_L3_error)
9540 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
9542 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 3); __PYX_ERR(0, 873, __pyx_L3_error)
9546 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
9548 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 4); __PYX_ERR(0, 873, __pyx_L3_error)
9552 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dofMapl2g)) != 0)) kw_args--;
9554 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 5); __PYX_ERR(0, 873, __pyx_L3_error)
9558 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dofStarElements)) != 0)) kw_args--;
9560 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 6); __PYX_ERR(0, 873, __pyx_L3_error)
9564 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dofStarElementNeighbors)) != 0)) kw_args--;
9566 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 7); __PYX_ERR(0, 873, __pyx_L3_error)
9570 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_dof)) != 0)) kw_args--;
9572 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 8); __PYX_ERR(0, 873, __pyx_L3_error)
9576 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
9578 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 9); __PYX_ERR(0, 873, __pyx_L3_error)
9582 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
9584 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 10); __PYX_ERR(0, 873, __pyx_L3_error)
9588 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryNodes)) != 0)) kw_args--;
9590 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 11); __PYX_ERR(0, 873, __pyx_L3_error)
9594 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
9596 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 12); __PYX_ERR(0, 873, __pyx_L3_error)
9600 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
9602 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 13); __PYX_ERR(0, 873, __pyx_L3_error)
9606 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
9608 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, 14); __PYX_ERR(0, 873, __pyx_L3_error)
9611 if (unlikely(kw_args > 0)) {
9612 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationJacobianPWL") < 0)) __PYX_ERR(0, 873, __pyx_L3_error)
9614 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
9615 goto __pyx_L5_argtuple_error;
9617 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9618 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9619 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9620 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9621 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9622 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9623 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9624 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9625 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9626 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
9627 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
9628 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
9629 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
9630 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
9631 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
9633 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
9634 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
9635 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
9636 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
9637 __pyx_v_elementNodes = ((PyArrayObject *)values[4]);
9638 __pyx_v_dofMapl2g = ((PyArrayObject *)values[5]);
9639 __pyx_v_dofStarElements = ((PyArrayObject *)values[6]);
9640 __pyx_v_dofStarElementNeighbors = ((PyArrayObject *)values[7]);
9641 __pyx_v_nElements_dof = ((PyArrayObject *)values[8]);
9642 __pyx_v_internalNodes = ((PyArrayObject *)values[9]);
9643 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[10]);
9644 __pyx_v_fluxBoundaryNodes = ((PyArrayObject *)values[11]);
9645 __pyx_v_w = ((PyArrayObject *)values[12]);
9646 __pyx_v_n = ((PyArrayObject *)values[13]);
9647 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[14]);
9649 goto __pyx_L4_argument_unpacking_done;
9650 __pyx_L5_argtuple_error:;
9651 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 873, __pyx_L3_error)
9653 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationJacobianPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
9654 __Pyx_RefNannyFinishContext();
9656 __pyx_L4_argument_unpacking_done:;
9657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 873, __pyx_L1_error)
9658 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 874, __pyx_L1_error)
9659 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 875, __pyx_L1_error)
9660 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 876, __pyx_L1_error)
9661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 877, __pyx_L1_error)
9662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dofMapl2g), __pyx_ptype_5numpy_ndarray, 1,
"dofMapl2g", 0))) __PYX_ERR(0, 878, __pyx_L1_error)
9663 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dofStarElements), __pyx_ptype_5numpy_ndarray, 1,
"dofStarElements", 0))) __PYX_ERR(0, 879, __pyx_L1_error)
9664 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dofStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"dofStarElementNeighbors", 0))) __PYX_ERR(0, 880, __pyx_L1_error)
9665 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_dof), __pyx_ptype_5numpy_ndarray, 1,
"nElements_dof", 0))) __PYX_ERR(0, 881, __pyx_L1_error)
9666 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 882, __pyx_L1_error)
9667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 883, __pyx_L1_error)
9668 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryNodes), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryNodes", 0))) __PYX_ERR(0, 884, __pyx_L1_error)
9669 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 885, __pyx_L1_error)
9670 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 886, __pyx_L1_error)
9671 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 887, __pyx_L1_error)
9672 __pyx_r = __pyx_pf_15cpostprocessing_70calculateConservationJacobianPWL(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_dofMapl2g, __pyx_v_dofStarElements, __pyx_v_dofStarElementNeighbors, __pyx_v_nElements_dof, __pyx_v_internalNodes, __pyx_v_fluxElementBoundaries, __pyx_v_fluxBoundaryNodes, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor);
9679 __Pyx_RefNannyFinishContext();
9683 static PyObject *__pyx_pf_15cpostprocessing_70calculateConservationJacobianPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_dofMapl2g, PyArrayObject *__pyx_v_dofStarElements, PyArrayObject *__pyx_v_dofStarElementNeighbors, PyArrayObject *__pyx_v_nElements_dof, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_fluxBoundaryNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
9684 PyObject *__pyx_r = NULL;
9685 __Pyx_RefNannyDeclarations
9686 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL", 0);
9695 calculateConservationJacobianPWL((__pyx_v_nElements_dof->dimensions[0]), (__pyx_v_internalNodes->dimensions[0]), (__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_dofMapl2g->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_dofMapl2g->data), ((
int *)__pyx_v_dofStarElements->data), ((
int *)__pyx_v_dofStarElementNeighbors->data), ((
int *)__pyx_v_nElements_dof->data), ((
int *)__pyx_v_internalNodes->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
int *)__pyx_v_fluxBoundaryNodes->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf));
9706 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9707 __Pyx_XGIVEREF(__pyx_r);
9708 __Pyx_RefNannyFinishContext();
9721 static PyObject *__pyx_pw_15cpostprocessing_73calculateConservationFluxPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9722 static PyMethodDef __pyx_mdef_15cpostprocessing_73calculateConservationFluxPWL = {
"calculateConservationFluxPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_73calculateConservationFluxPWL, METH_VARARGS|METH_KEYWORDS, 0};
9723 static PyObject *__pyx_pw_15cpostprocessing_73calculateConservationFluxPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9724 PyArrayObject *__pyx_v_nElements_node = 0;
9725 PyArrayObject *__pyx_v_internalNodes = 0;
9726 PyArrayObject *__pyx_v_fluxBoundaryNodes = 0;
9727 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
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(
"calculateConservationFluxPWL (wrapper)", 0);
9735 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_node,&__pyx_n_s_internalNodes,&__pyx_n_s_fluxBoundaryNodes,&__pyx_n_s_nodeStarFactor,0};
9736 PyObject* values[4] = {0,0,0,0};
9737 if (unlikely(__pyx_kwds)) {
9739 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9741 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9743 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9745 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9747 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9750 default:
goto __pyx_L5_argtuple_error;
9752 kw_args = PyDict_Size(__pyx_kwds);
9755 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
9756 else goto __pyx_L5_argtuple_error;
9759 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
9761 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 4, 4, 1); __PYX_ERR(0, 914, __pyx_L3_error)
9765 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryNodes)) != 0)) kw_args--;
9767 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 4, 4, 2); __PYX_ERR(0, 914, __pyx_L3_error)
9771 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
9773 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 4, 4, 3); __PYX_ERR(0, 914, __pyx_L3_error)
9776 if (unlikely(kw_args > 0)) {
9777 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationFluxPWL") < 0)) __PYX_ERR(0, 914, __pyx_L3_error)
9779 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
9780 goto __pyx_L5_argtuple_error;
9782 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9783 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9784 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9785 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9787 __pyx_v_nElements_node = ((PyArrayObject *)values[0]);
9788 __pyx_v_internalNodes = ((PyArrayObject *)values[1]);
9789 __pyx_v_fluxBoundaryNodes = ((PyArrayObject *)values[2]);
9790 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[3]);
9792 goto __pyx_L4_argument_unpacking_done;
9793 __pyx_L5_argtuple_error:;
9794 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 914, __pyx_L3_error)
9796 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationFluxPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
9797 __Pyx_RefNannyFinishContext();
9799 __pyx_L4_argument_unpacking_done:;
9800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 914, __pyx_L1_error)
9801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 915, __pyx_L1_error)
9802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryNodes), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryNodes", 0))) __PYX_ERR(0, 916, __pyx_L1_error)
9803 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 917, __pyx_L1_error)
9804 __pyx_r = __pyx_pf_15cpostprocessing_72calculateConservationFluxPWL(__pyx_self, __pyx_v_nElements_node, __pyx_v_internalNodes, __pyx_v_fluxBoundaryNodes, __pyx_v_nodeStarFactor);
9811 __Pyx_RefNannyFinishContext();
9815 static PyObject *__pyx_pf_15cpostprocessing_72calculateConservationFluxPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxBoundaryNodes,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
9816 PyObject *__pyx_r = NULL;
9817 __Pyx_RefNannyDeclarations
9818 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL", 0);
9827 calculateConservationFluxPWL((__pyx_v_nElements_node->dimensions[0]), (__pyx_v_internalNodes->dimensions[0]), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_internalNodes->data), ((
int *)__pyx_v_fluxBoundaryNodes->data), (&__pyx_v_nodeStarFactor->nsf));
9838 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9839 __Pyx_XGIVEREF(__pyx_r);
9840 __Pyx_RefNannyFinishContext();
9853 static PyObject *__pyx_pw_15cpostprocessing_75calculateConservationFluxPWL_noNeumannFix(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9854 static PyMethodDef __pyx_mdef_15cpostprocessing_75calculateConservationFluxPWL_noNeumannFix = {
"calculateConservationFluxPWL_noNeumannFix", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_75calculateConservationFluxPWL_noNeumannFix, METH_VARARGS|METH_KEYWORDS, 0};
9855 static PyObject *__pyx_pw_15cpostprocessing_75calculateConservationFluxPWL_noNeumannFix(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9856 PyArrayObject *__pyx_v_nElements_node = 0;
9857 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
9858 int __pyx_lineno = 0;
9859 const char *__pyx_filename = NULL;
9860 int __pyx_clineno = 0;
9861 PyObject *__pyx_r = 0;
9862 __Pyx_RefNannyDeclarations
9863 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL_noNeumannFix (wrapper)", 0);
9865 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_node,&__pyx_n_s_nodeStarFactor,0};
9866 PyObject* values[2] = {0,0};
9867 if (unlikely(__pyx_kwds)) {
9869 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9871 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9873 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9876 default:
goto __pyx_L5_argtuple_error;
9878 kw_args = PyDict_Size(__pyx_kwds);
9881 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
9882 else goto __pyx_L5_argtuple_error;
9885 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
9887 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_noNeumannFix", 1, 2, 2, 1); __PYX_ERR(0, 925, __pyx_L3_error)
9890 if (unlikely(kw_args > 0)) {
9891 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationFluxPWL_noNeumannFix") < 0)) __PYX_ERR(0, 925, __pyx_L3_error)
9893 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
9894 goto __pyx_L5_argtuple_error;
9896 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9897 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9899 __pyx_v_nElements_node = ((PyArrayObject *)values[0]);
9900 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[1]);
9902 goto __pyx_L4_argument_unpacking_done;
9903 __pyx_L5_argtuple_error:;
9904 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_noNeumannFix", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 925, __pyx_L3_error)
9906 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationFluxPWL_noNeumannFix", __pyx_clineno, __pyx_lineno, __pyx_filename);
9907 __Pyx_RefNannyFinishContext();
9909 __pyx_L4_argument_unpacking_done:;
9910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 925, __pyx_L1_error)
9911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 926, __pyx_L1_error)
9912 __pyx_r = __pyx_pf_15cpostprocessing_74calculateConservationFluxPWL_noNeumannFix(__pyx_self, __pyx_v_nElements_node, __pyx_v_nodeStarFactor);
9919 __Pyx_RefNannyFinishContext();
9923 static PyObject *__pyx_pf_15cpostprocessing_74calculateConservationFluxPWL_noNeumannFix(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nElements_node,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
9924 PyObject *__pyx_r = NULL;
9925 __Pyx_RefNannyDeclarations
9926 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL_noNeumannFix", 0);
9946 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9947 __Pyx_XGIVEREF(__pyx_r);
9948 __Pyx_RefNannyFinishContext();
9961 static PyObject *__pyx_pw_15cpostprocessing_77calculateConservationResidualPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9962 static PyMethodDef __pyx_mdef_15cpostprocessing_77calculateConservationResidualPWL_opt = {
"calculateConservationResidualPWL_opt", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_77calculateConservationResidualPWL_opt, METH_VARARGS|METH_KEYWORDS, 0};
9963 static PyObject *__pyx_pw_15cpostprocessing_77calculateConservationResidualPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9964 int __pyx_v_nNodes_owned;
9965 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
9966 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
9967 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
9968 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
9969 PyArrayObject *__pyx_v_elementNodes = 0;
9970 PyArrayObject *__pyx_v_nodeStarElements = 0;
9971 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
9972 PyArrayObject *__pyx_v_nElements_node = 0;
9973 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
9974 PyArrayObject *__pyx_v_elementResidual = 0;
9975 PyArrayObject *__pyx_v_vAverage = 0;
9976 PyArrayObject *__pyx_v_dx = 0;
9977 PyArrayObject *__pyx_v_w = 0;
9978 PyArrayObject *__pyx_v_n = 0;
9979 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
9980 PyArrayObject *__pyx_v_conservationResidual = 0;
9981 PyArrayObject *__pyx_v_vConservative = 0;
9982 PyArrayObject *__pyx_v_vConservative_element = 0;
9983 int __pyx_lineno = 0;
9984 const char *__pyx_filename = NULL;
9985 int __pyx_clineno = 0;
9986 PyObject *__pyx_r = 0;
9987 __Pyx_RefNannyDeclarations
9988 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_opt (wrapper)", 0);
9990 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNodes_owned,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nElements_node,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_elementResidual,&__pyx_n_s_vAverage,&__pyx_n_s_dx,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,&__pyx_n_s_conservationResidual,&__pyx_n_s_vConservative,&__pyx_n_s_vConservative_element,0};
9991 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
9992 if (unlikely(__pyx_kwds)) {
9994 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9996 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
9998 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
10000 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
10001 CYTHON_FALLTHROUGH;
10002 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10003 CYTHON_FALLTHROUGH;
10004 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10005 CYTHON_FALLTHROUGH;
10006 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10007 CYTHON_FALLTHROUGH;
10008 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10009 CYTHON_FALLTHROUGH;
10010 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10011 CYTHON_FALLTHROUGH;
10012 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10013 CYTHON_FALLTHROUGH;
10014 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10015 CYTHON_FALLTHROUGH;
10016 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10017 CYTHON_FALLTHROUGH;
10018 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10019 CYTHON_FALLTHROUGH;
10020 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10021 CYTHON_FALLTHROUGH;
10022 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10023 CYTHON_FALLTHROUGH;
10024 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10025 CYTHON_FALLTHROUGH;
10026 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10027 CYTHON_FALLTHROUGH;
10028 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10029 CYTHON_FALLTHROUGH;
10030 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10031 CYTHON_FALLTHROUGH;
10032 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10033 CYTHON_FALLTHROUGH;
10035 default:
goto __pyx_L5_argtuple_error;
10037 kw_args = PyDict_Size(__pyx_kwds);
10038 switch (pos_args) {
10040 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_owned)) != 0)) kw_args--;
10041 else goto __pyx_L5_argtuple_error;
10042 CYTHON_FALLTHROUGH;
10044 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10046 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 1); __PYX_ERR(0, 931, __pyx_L3_error)
10048 CYTHON_FALLTHROUGH;
10050 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
10052 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 2); __PYX_ERR(0, 931, __pyx_L3_error)
10054 CYTHON_FALLTHROUGH;
10056 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10058 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 3); __PYX_ERR(0, 931, __pyx_L3_error)
10060 CYTHON_FALLTHROUGH;
10062 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10064 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 4); __PYX_ERR(0, 931, __pyx_L3_error)
10066 CYTHON_FALLTHROUGH;
10068 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
10070 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 5); __PYX_ERR(0, 931, __pyx_L3_error)
10072 CYTHON_FALLTHROUGH;
10074 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
10076 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 6); __PYX_ERR(0, 931, __pyx_L3_error)
10078 CYTHON_FALLTHROUGH;
10080 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
10082 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 7); __PYX_ERR(0, 931, __pyx_L3_error)
10084 CYTHON_FALLTHROUGH;
10086 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
10088 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 8); __PYX_ERR(0, 931, __pyx_L3_error)
10090 CYTHON_FALLTHROUGH;
10092 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
10094 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 9); __PYX_ERR(0, 931, __pyx_L3_error)
10096 CYTHON_FALLTHROUGH;
10098 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
10100 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 10); __PYX_ERR(0, 931, __pyx_L3_error)
10102 CYTHON_FALLTHROUGH;
10104 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
10106 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 11); __PYX_ERR(0, 931, __pyx_L3_error)
10108 CYTHON_FALLTHROUGH;
10110 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dx)) != 0)) kw_args--;
10112 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 12); __PYX_ERR(0, 931, __pyx_L3_error)
10114 CYTHON_FALLTHROUGH;
10116 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
10118 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 13); __PYX_ERR(0, 931, __pyx_L3_error)
10120 CYTHON_FALLTHROUGH;
10122 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10124 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 14); __PYX_ERR(0, 931, __pyx_L3_error)
10126 CYTHON_FALLTHROUGH;
10128 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
10130 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 15); __PYX_ERR(0, 931, __pyx_L3_error)
10132 CYTHON_FALLTHROUGH;
10134 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
10136 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 16); __PYX_ERR(0, 931, __pyx_L3_error)
10138 CYTHON_FALLTHROUGH;
10140 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative)) != 0)) kw_args--;
10142 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 17); __PYX_ERR(0, 931, __pyx_L3_error)
10144 CYTHON_FALLTHROUGH;
10146 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative_element)) != 0)) kw_args--;
10148 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, 18); __PYX_ERR(0, 931, __pyx_L3_error)
10151 if (unlikely(kw_args > 0)) {
10152 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualPWL_opt") < 0)) __PYX_ERR(0, 931, __pyx_L3_error)
10154 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
10155 goto __pyx_L5_argtuple_error;
10157 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10158 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10159 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10160 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10161 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10162 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10163 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10164 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10165 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10166 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10167 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10168 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10169 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10170 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10171 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10172 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10173 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
10174 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
10175 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
10177 __pyx_v_nNodes_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNodes_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 931, __pyx_L3_error)
10178 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
10179 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
10180 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
10181 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
10182 __pyx_v_elementNodes = ((PyArrayObject *)values[5]);
10183 __pyx_v_nodeStarElements = ((PyArrayObject *)values[6]);
10184 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[7]);
10185 __pyx_v_nElements_node = ((PyArrayObject *)values[8]);
10186 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[9]);
10187 __pyx_v_elementResidual = ((PyArrayObject *)values[10]);
10188 __pyx_v_vAverage = ((PyArrayObject *)values[11]);
10189 __pyx_v_dx = ((PyArrayObject *)values[12]);
10190 __pyx_v_w = ((PyArrayObject *)values[13]);
10191 __pyx_v_n = ((PyArrayObject *)values[14]);
10192 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[15]);
10193 __pyx_v_conservationResidual = ((PyArrayObject *)values[16]);
10194 __pyx_v_vConservative = ((PyArrayObject *)values[17]);
10195 __pyx_v_vConservative_element = ((PyArrayObject *)values[18]);
10197 goto __pyx_L4_argument_unpacking_done;
10198 __pyx_L5_argtuple_error:;
10199 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_opt", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 931, __pyx_L3_error)
10201 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualPWL_opt", __pyx_clineno, __pyx_lineno, __pyx_filename);
10202 __Pyx_RefNannyFinishContext();
10204 __pyx_L4_argument_unpacking_done:;
10205 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 932, __pyx_L1_error)
10206 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 933, __pyx_L1_error)
10207 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 934, __pyx_L1_error)
10208 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 935, __pyx_L1_error)
10209 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 936, __pyx_L1_error)
10210 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 937, __pyx_L1_error)
10211 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 938, __pyx_L1_error)
10212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 939, __pyx_L1_error)
10213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 940, __pyx_L1_error)
10214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 941, __pyx_L1_error)
10215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 942, __pyx_L1_error)
10216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dx), __pyx_ptype_5numpy_ndarray, 1,
"dx", 0))) __PYX_ERR(0, 943, __pyx_L1_error)
10217 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 944, __pyx_L1_error)
10218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 945, __pyx_L1_error)
10219 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 946, __pyx_L1_error)
10220 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 947, __pyx_L1_error)
10221 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative), __pyx_ptype_5numpy_ndarray, 1,
"vConservative", 0))) __PYX_ERR(0, 948, __pyx_L1_error)
10222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative_element), __pyx_ptype_5numpy_ndarray, 1,
"vConservative_element", 0))) __PYX_ERR(0, 949, __pyx_L1_error)
10223 __pyx_r = __pyx_pf_15cpostprocessing_76calculateConservationResidualPWL_opt(__pyx_self, __pyx_v_nNodes_owned, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nElements_node, __pyx_v_fluxElementBoundaries, __pyx_v_elementResidual, __pyx_v_vAverage, __pyx_v_dx, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor, __pyx_v_conservationResidual, __pyx_v_vConservative, __pyx_v_vConservative_element);
10230 __Pyx_RefNannyFinishContext();
10234 static PyObject *__pyx_pf_15cpostprocessing_76calculateConservationResidualPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element) {
10235 PyObject *__pyx_r = NULL;
10236 __Pyx_RefNannyDeclarations
10237 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_opt", 0);
10246 calculateConservationResidualPWL_opt(__pyx_v_nNodes_owned, (__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_dx->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf), ((
double *)__pyx_v_conservationResidual->data), ((
double *)__pyx_v_vConservative->data), ((
double *)__pyx_v_vConservative_element->data));
10257 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10258 __Pyx_XGIVEREF(__pyx_r);
10259 __Pyx_RefNannyFinishContext();
10272 static PyObject *__pyx_pw_15cpostprocessing_79calculateConservationResidualPWL_primative(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10273 static PyMethodDef __pyx_mdef_15cpostprocessing_79calculateConservationResidualPWL_primative = {
"calculateConservationResidualPWL_primative", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_79calculateConservationResidualPWL_primative, METH_VARARGS|METH_KEYWORDS, 0};
10274 static PyObject *__pyx_pw_15cpostprocessing_79calculateConservationResidualPWL_primative(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10275 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
10276 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
10277 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10278 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10279 PyArrayObject *__pyx_v_skipflag_elementBoundaries = 0;
10280 PyArrayObject *__pyx_v_elementResidual = 0;
10281 PyArrayObject *__pyx_v_dx = 0;
10282 PyArrayObject *__pyx_v_n = 0;
10283 PyArrayObject *__pyx_v_conservationResidual = 0;
10284 PyArrayObject *__pyx_v_vConservative = 0;
10285 int __pyx_lineno = 0;
10286 const char *__pyx_filename = NULL;
10287 int __pyx_clineno = 0;
10288 PyObject *__pyx_r = 0;
10289 __Pyx_RefNannyDeclarations
10290 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_primative (wrapper)", 0);
10292 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_skipflag_elementBoundaries,&__pyx_n_s_elementResidual,&__pyx_n_s_dx,&__pyx_n_s_n,&__pyx_n_s_conservationResidual,&__pyx_n_s_vConservative,0};
10293 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
10294 if (unlikely(__pyx_kwds)) {
10295 Py_ssize_t kw_args;
10296 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10297 switch (pos_args) {
10298 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10299 CYTHON_FALLTHROUGH;
10300 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10301 CYTHON_FALLTHROUGH;
10302 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10303 CYTHON_FALLTHROUGH;
10304 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10305 CYTHON_FALLTHROUGH;
10306 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10307 CYTHON_FALLTHROUGH;
10308 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10309 CYTHON_FALLTHROUGH;
10310 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10311 CYTHON_FALLTHROUGH;
10312 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10313 CYTHON_FALLTHROUGH;
10314 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10315 CYTHON_FALLTHROUGH;
10316 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10317 CYTHON_FALLTHROUGH;
10319 default:
goto __pyx_L5_argtuple_error;
10321 kw_args = PyDict_Size(__pyx_kwds);
10322 switch (pos_args) {
10324 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10325 else goto __pyx_L5_argtuple_error;
10326 CYTHON_FALLTHROUGH;
10328 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
10330 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 1); __PYX_ERR(0, 977, __pyx_L3_error)
10332 CYTHON_FALLTHROUGH;
10334 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10336 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 2); __PYX_ERR(0, 977, __pyx_L3_error)
10338 CYTHON_FALLTHROUGH;
10340 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10342 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 3); __PYX_ERR(0, 977, __pyx_L3_error)
10344 CYTHON_FALLTHROUGH;
10346 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_skipflag_elementBoundaries)) != 0)) kw_args--;
10348 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 4); __PYX_ERR(0, 977, __pyx_L3_error)
10350 CYTHON_FALLTHROUGH;
10352 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
10354 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 5); __PYX_ERR(0, 977, __pyx_L3_error)
10356 CYTHON_FALLTHROUGH;
10358 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dx)) != 0)) kw_args--;
10360 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 6); __PYX_ERR(0, 977, __pyx_L3_error)
10362 CYTHON_FALLTHROUGH;
10364 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10366 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 7); __PYX_ERR(0, 977, __pyx_L3_error)
10368 CYTHON_FALLTHROUGH;
10370 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
10372 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 8); __PYX_ERR(0, 977, __pyx_L3_error)
10374 CYTHON_FALLTHROUGH;
10376 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative)) != 0)) kw_args--;
10378 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, 9); __PYX_ERR(0, 977, __pyx_L3_error)
10381 if (unlikely(kw_args > 0)) {
10382 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualPWL_primative") < 0)) __PYX_ERR(0, 977, __pyx_L3_error)
10384 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
10385 goto __pyx_L5_argtuple_error;
10387 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10388 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10389 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10390 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10391 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10392 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10393 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10394 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10395 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10396 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10398 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
10399 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
10400 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
10401 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
10402 __pyx_v_skipflag_elementBoundaries = ((PyArrayObject *)values[4]);
10403 __pyx_v_elementResidual = ((PyArrayObject *)values[5]);
10404 __pyx_v_dx = ((PyArrayObject *)values[6]);
10405 __pyx_v_n = ((PyArrayObject *)values[7]);
10406 __pyx_v_conservationResidual = ((PyArrayObject *)values[8]);
10407 __pyx_v_vConservative = ((PyArrayObject *)values[9]);
10409 goto __pyx_L4_argument_unpacking_done;
10410 __pyx_L5_argtuple_error:;
10411 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_primative", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 977, __pyx_L3_error)
10413 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualPWL_primative", __pyx_clineno, __pyx_lineno, __pyx_filename);
10414 __Pyx_RefNannyFinishContext();
10416 __pyx_L4_argument_unpacking_done:;
10417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 977, __pyx_L1_error)
10418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 978, __pyx_L1_error)
10419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 979, __pyx_L1_error)
10420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 980, __pyx_L1_error)
10421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_skipflag_elementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"skipflag_elementBoundaries", 0))) __PYX_ERR(0, 981, __pyx_L1_error)
10422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 982, __pyx_L1_error)
10423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dx), __pyx_ptype_5numpy_ndarray, 1,
"dx", 0))) __PYX_ERR(0, 983, __pyx_L1_error)
10424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 984, __pyx_L1_error)
10425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 985, __pyx_L1_error)
10426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative), __pyx_ptype_5numpy_ndarray, 1,
"vConservative", 0))) __PYX_ERR(0, 986, __pyx_L1_error)
10427 __pyx_r = __pyx_pf_15cpostprocessing_78calculateConservationResidualPWL_primative(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_skipflag_elementBoundaries, __pyx_v_elementResidual, __pyx_v_dx, __pyx_v_n, __pyx_v_conservationResidual, __pyx_v_vConservative);
10434 __Pyx_RefNannyFinishContext();
10438 static PyObject *__pyx_pf_15cpostprocessing_78calculateConservationResidualPWL_primative(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_skipflag_elementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative) {
10439 PyObject *__pyx_r = NULL;
10440 __Pyx_RefNannyDeclarations
10441 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_primative", 0);
10450 calculateConservationResidualPWL_primative((__pyx_v_dx->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_dx->dimensions[1]), (__pyx_v_dx->dimensions[2]), (__pyx_v_elementResidual->dimensions[1]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_skipflag_elementBoundaries->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_dx->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_conservationResidual->data), ((
double *)__pyx_v_vConservative->data));
10461 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10462 __Pyx_XGIVEREF(__pyx_r);
10463 __Pyx_RefNannyFinishContext();
10476 static PyObject *__pyx_pw_15cpostprocessing_81calculateConservationJacobianPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10477 static PyMethodDef __pyx_mdef_15cpostprocessing_81calculateConservationJacobianPWL_opt = {
"calculateConservationJacobianPWL_opt", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_81calculateConservationJacobianPWL_opt, METH_VARARGS|METH_KEYWORDS, 0};
10478 static PyObject *__pyx_pw_15cpostprocessing_81calculateConservationJacobianPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10479 int __pyx_v_nNodes_owned;
10480 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
10481 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
10482 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10483 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10484 PyArrayObject *__pyx_v_elementNodes = 0;
10485 PyArrayObject *__pyx_v_nodeStarElements = 0;
10486 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
10487 PyArrayObject *__pyx_v_nElements_node = 0;
10488 PyArrayObject *__pyx_v_internalNodes = 0;
10489 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
10490 PyArrayObject *__pyx_v_fluxBoundaryNodes = 0;
10491 PyArrayObject *__pyx_v_w = 0;
10492 PyArrayObject *__pyx_v_n = 0;
10493 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
10494 int __pyx_lineno = 0;
10495 const char *__pyx_filename = NULL;
10496 int __pyx_clineno = 0;
10497 PyObject *__pyx_r = 0;
10498 __Pyx_RefNannyDeclarations
10499 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL_opt (wrapper)", 0);
10501 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNodes_owned,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nElements_node,&__pyx_n_s_internalNodes,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_fluxBoundaryNodes,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,0};
10502 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
10503 if (unlikely(__pyx_kwds)) {
10504 Py_ssize_t kw_args;
10505 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10506 switch (pos_args) {
10507 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10508 CYTHON_FALLTHROUGH;
10509 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10510 CYTHON_FALLTHROUGH;
10511 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10512 CYTHON_FALLTHROUGH;
10513 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10514 CYTHON_FALLTHROUGH;
10515 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10516 CYTHON_FALLTHROUGH;
10517 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10518 CYTHON_FALLTHROUGH;
10519 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10520 CYTHON_FALLTHROUGH;
10521 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10522 CYTHON_FALLTHROUGH;
10523 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10524 CYTHON_FALLTHROUGH;
10525 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10526 CYTHON_FALLTHROUGH;
10527 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10528 CYTHON_FALLTHROUGH;
10529 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10530 CYTHON_FALLTHROUGH;
10531 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10532 CYTHON_FALLTHROUGH;
10533 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10534 CYTHON_FALLTHROUGH;
10535 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10536 CYTHON_FALLTHROUGH;
10538 default:
goto __pyx_L5_argtuple_error;
10540 kw_args = PyDict_Size(__pyx_kwds);
10541 switch (pos_args) {
10543 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_owned)) != 0)) kw_args--;
10544 else goto __pyx_L5_argtuple_error;
10545 CYTHON_FALLTHROUGH;
10547 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10549 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 1); __PYX_ERR(0, 1005, __pyx_L3_error)
10551 CYTHON_FALLTHROUGH;
10553 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
10555 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 2); __PYX_ERR(0, 1005, __pyx_L3_error)
10557 CYTHON_FALLTHROUGH;
10559 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10561 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 3); __PYX_ERR(0, 1005, __pyx_L3_error)
10563 CYTHON_FALLTHROUGH;
10565 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10567 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 4); __PYX_ERR(0, 1005, __pyx_L3_error)
10569 CYTHON_FALLTHROUGH;
10571 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
10573 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 5); __PYX_ERR(0, 1005, __pyx_L3_error)
10575 CYTHON_FALLTHROUGH;
10577 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
10579 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 6); __PYX_ERR(0, 1005, __pyx_L3_error)
10581 CYTHON_FALLTHROUGH;
10583 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
10585 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 7); __PYX_ERR(0, 1005, __pyx_L3_error)
10587 CYTHON_FALLTHROUGH;
10589 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
10591 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 8); __PYX_ERR(0, 1005, __pyx_L3_error)
10593 CYTHON_FALLTHROUGH;
10595 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
10597 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 9); __PYX_ERR(0, 1005, __pyx_L3_error)
10599 CYTHON_FALLTHROUGH;
10601 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
10603 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 10); __PYX_ERR(0, 1005, __pyx_L3_error)
10605 CYTHON_FALLTHROUGH;
10607 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryNodes)) != 0)) kw_args--;
10609 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 11); __PYX_ERR(0, 1005, __pyx_L3_error)
10611 CYTHON_FALLTHROUGH;
10613 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
10615 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 12); __PYX_ERR(0, 1005, __pyx_L3_error)
10617 CYTHON_FALLTHROUGH;
10619 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
10621 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 13); __PYX_ERR(0, 1005, __pyx_L3_error)
10623 CYTHON_FALLTHROUGH;
10625 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
10627 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, 14); __PYX_ERR(0, 1005, __pyx_L3_error)
10630 if (unlikely(kw_args > 0)) {
10631 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationJacobianPWL_opt") < 0)) __PYX_ERR(0, 1005, __pyx_L3_error)
10633 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
10634 goto __pyx_L5_argtuple_error;
10636 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10637 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10638 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10639 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10640 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10641 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10642 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10643 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10644 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10645 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10646 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10647 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10648 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10649 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10650 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10652 __pyx_v_nNodes_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNodes_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1005, __pyx_L3_error)
10653 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
10654 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
10655 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
10656 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
10657 __pyx_v_elementNodes = ((PyArrayObject *)values[5]);
10658 __pyx_v_nodeStarElements = ((PyArrayObject *)values[6]);
10659 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[7]);
10660 __pyx_v_nElements_node = ((PyArrayObject *)values[8]);
10661 __pyx_v_internalNodes = ((PyArrayObject *)values[9]);
10662 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[10]);
10663 __pyx_v_fluxBoundaryNodes = ((PyArrayObject *)values[11]);
10664 __pyx_v_w = ((PyArrayObject *)values[12]);
10665 __pyx_v_n = ((PyArrayObject *)values[13]);
10666 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[14]);
10668 goto __pyx_L4_argument_unpacking_done;
10669 __pyx_L5_argtuple_error:;
10670 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_opt", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1005, __pyx_L3_error)
10672 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationJacobianPWL_opt", __pyx_clineno, __pyx_lineno, __pyx_filename);
10673 __Pyx_RefNannyFinishContext();
10675 __pyx_L4_argument_unpacking_done:;
10676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 1006, __pyx_L1_error)
10677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 1007, __pyx_L1_error)
10678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 1008, __pyx_L1_error)
10679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 1009, __pyx_L1_error)
10680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 1010, __pyx_L1_error)
10681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 1011, __pyx_L1_error)
10682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 1012, __pyx_L1_error)
10683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 1013, __pyx_L1_error)
10684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 1014, __pyx_L1_error)
10685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 1015, __pyx_L1_error)
10686 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryNodes), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryNodes", 0))) __PYX_ERR(0, 1016, __pyx_L1_error)
10687 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 1017, __pyx_L1_error)
10688 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 1018, __pyx_L1_error)
10689 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1019, __pyx_L1_error)
10690 __pyx_r = __pyx_pf_15cpostprocessing_80calculateConservationJacobianPWL_opt(__pyx_self, __pyx_v_nNodes_owned, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nElements_node, __pyx_v_internalNodes, __pyx_v_fluxElementBoundaries, __pyx_v_fluxBoundaryNodes, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor);
10697 __Pyx_RefNannyFinishContext();
10701 static PyObject *__pyx_pf_15cpostprocessing_80calculateConservationJacobianPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_fluxBoundaryNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
10702 PyObject *__pyx_r = NULL;
10703 __Pyx_RefNannyDeclarations
10704 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL_opt", 0);
10713 calculateConservationJacobianPWL_opt(__pyx_v_nNodes_owned, (__pyx_v_nElements_node->dimensions[0]), (__pyx_v_internalNodes->dimensions[0]), (__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_internalNodes->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
int *)__pyx_v_fluxBoundaryNodes->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf));
10724 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10725 __Pyx_XGIVEREF(__pyx_r);
10726 __Pyx_RefNannyFinishContext();
10739 static PyObject *__pyx_pw_15cpostprocessing_83calculateConservationFluxPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10740 static PyMethodDef __pyx_mdef_15cpostprocessing_83calculateConservationFluxPWL_opt = {
"calculateConservationFluxPWL_opt", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_83calculateConservationFluxPWL_opt, METH_VARARGS|METH_KEYWORDS, 0};
10741 static PyObject *__pyx_pw_15cpostprocessing_83calculateConservationFluxPWL_opt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10742 int __pyx_v_nNodes_owned;
10743 PyArrayObject *__pyx_v_nElements_node = 0;
10744 PyArrayObject *__pyx_v_internalNodes = 0;
10745 PyArrayObject *__pyx_v_fluxBoundaryNodes = 0;
10746 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
10747 int __pyx_lineno = 0;
10748 const char *__pyx_filename = NULL;
10749 int __pyx_clineno = 0;
10750 PyObject *__pyx_r = 0;
10751 __Pyx_RefNannyDeclarations
10752 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL_opt (wrapper)", 0);
10754 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNodes_owned,&__pyx_n_s_nElements_node,&__pyx_n_s_internalNodes,&__pyx_n_s_fluxBoundaryNodes,&__pyx_n_s_nodeStarFactor,0};
10755 PyObject* values[5] = {0,0,0,0,0};
10756 if (unlikely(__pyx_kwds)) {
10757 Py_ssize_t kw_args;
10758 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10759 switch (pos_args) {
10760 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10761 CYTHON_FALLTHROUGH;
10762 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10763 CYTHON_FALLTHROUGH;
10764 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10765 CYTHON_FALLTHROUGH;
10766 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10767 CYTHON_FALLTHROUGH;
10768 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10769 CYTHON_FALLTHROUGH;
10771 default:
goto __pyx_L5_argtuple_error;
10773 kw_args = PyDict_Size(__pyx_kwds);
10774 switch (pos_args) {
10776 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_owned)) != 0)) kw_args--;
10777 else goto __pyx_L5_argtuple_error;
10778 CYTHON_FALLTHROUGH;
10780 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
10782 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_opt", 1, 5, 5, 1); __PYX_ERR(0, 1045, __pyx_L3_error)
10784 CYTHON_FALLTHROUGH;
10786 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
10788 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_opt", 1, 5, 5, 2); __PYX_ERR(0, 1045, __pyx_L3_error)
10790 CYTHON_FALLTHROUGH;
10792 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxBoundaryNodes)) != 0)) kw_args--;
10794 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_opt", 1, 5, 5, 3); __PYX_ERR(0, 1045, __pyx_L3_error)
10796 CYTHON_FALLTHROUGH;
10798 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
10800 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_opt", 1, 5, 5, 4); __PYX_ERR(0, 1045, __pyx_L3_error)
10803 if (unlikely(kw_args > 0)) {
10804 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationFluxPWL_opt") < 0)) __PYX_ERR(0, 1045, __pyx_L3_error)
10806 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
10807 goto __pyx_L5_argtuple_error;
10809 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10810 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10811 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10812 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10813 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10815 __pyx_v_nNodes_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNodes_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1045, __pyx_L3_error)
10816 __pyx_v_nElements_node = ((PyArrayObject *)values[1]);
10817 __pyx_v_internalNodes = ((PyArrayObject *)values[2]);
10818 __pyx_v_fluxBoundaryNodes = ((PyArrayObject *)values[3]);
10819 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[4]);
10821 goto __pyx_L4_argument_unpacking_done;
10822 __pyx_L5_argtuple_error:;
10823 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL_opt", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1045, __pyx_L3_error)
10825 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationFluxPWL_opt", __pyx_clineno, __pyx_lineno, __pyx_filename);
10826 __Pyx_RefNannyFinishContext();
10828 __pyx_L4_argument_unpacking_done:;
10829 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 1046, __pyx_L1_error)
10830 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 1047, __pyx_L1_error)
10831 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxBoundaryNodes), __pyx_ptype_5numpy_ndarray, 1,
"fluxBoundaryNodes", 0))) __PYX_ERR(0, 1048, __pyx_L1_error)
10832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1049, __pyx_L1_error)
10833 __pyx_r = __pyx_pf_15cpostprocessing_82calculateConservationFluxPWL_opt(__pyx_self, __pyx_v_nNodes_owned, __pyx_v_nElements_node, __pyx_v_internalNodes, __pyx_v_fluxBoundaryNodes, __pyx_v_nodeStarFactor);
10840 __Pyx_RefNannyFinishContext();
10844 static PyObject *__pyx_pf_15cpostprocessing_82calculateConservationFluxPWL_opt(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_owned, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_fluxBoundaryNodes,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
10845 PyObject *__pyx_r = NULL;
10846 __Pyx_RefNannyDeclarations
10847 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL_opt", 0);
10856 calculateConservationFluxPWL_opt(__pyx_v_nNodes_owned, (__pyx_v_nElements_node->dimensions[0]), (__pyx_v_internalNodes->dimensions[0]), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_internalNodes->data), ((
int *)__pyx_v_fluxBoundaryNodes->data), (&__pyx_v_nodeStarFactor->nsf));
10867 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10868 __Pyx_XGIVEREF(__pyx_r);
10869 __Pyx_RefNannyFinishContext();
10882 static PyObject *__pyx_pw_15cpostprocessing_85calculateConservationResidualPWL_interiorBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10883 static PyMethodDef __pyx_mdef_15cpostprocessing_85calculateConservationResidualPWL_interiorBoundaries = {
"calculateConservationResidualPWL_interiorBoundaries", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_85calculateConservationResidualPWL_interiorBoundaries, METH_VARARGS|METH_KEYWORDS, 0};
10884 static PyObject *__pyx_pw_15cpostprocessing_85calculateConservationResidualPWL_interiorBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10885 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
10886 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
10887 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
10888 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
10889 PyArrayObject *__pyx_v_elementNodes = 0;
10890 PyArrayObject *__pyx_v_nodeStarElements = 0;
10891 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
10892 PyArrayObject *__pyx_v_nElements_node = 0;
10893 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
10894 PyArrayObject *__pyx_v_elementResidual = 0;
10895 PyArrayObject *__pyx_v_vAverage = 0;
10896 PyArrayObject *__pyx_v_dx = 0;
10897 PyArrayObject *__pyx_v_w = 0;
10898 PyArrayObject *__pyx_v_n = 0;
10899 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
10900 PyArrayObject *__pyx_v_conservationResidual = 0;
10901 PyArrayObject *__pyx_v_vConservative = 0;
10902 PyArrayObject *__pyx_v_vConservative_element = 0;
10903 int __pyx_lineno = 0;
10904 const char *__pyx_filename = NULL;
10905 int __pyx_clineno = 0;
10906 PyObject *__pyx_r = 0;
10907 __Pyx_RefNannyDeclarations
10908 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_interiorBoundaries (wrapper)", 0);
10910 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nElements_node,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_elementResidual,&__pyx_n_s_vAverage,&__pyx_n_s_dx,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,&__pyx_n_s_conservationResidual,&__pyx_n_s_vConservative,&__pyx_n_s_vConservative_element,0};
10911 PyObject* values[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
10912 if (unlikely(__pyx_kwds)) {
10913 Py_ssize_t kw_args;
10914 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10915 switch (pos_args) {
10916 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
10917 CYTHON_FALLTHROUGH;
10918 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
10919 CYTHON_FALLTHROUGH;
10920 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
10921 CYTHON_FALLTHROUGH;
10922 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
10923 CYTHON_FALLTHROUGH;
10924 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
10925 CYTHON_FALLTHROUGH;
10926 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
10927 CYTHON_FALLTHROUGH;
10928 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
10929 CYTHON_FALLTHROUGH;
10930 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
10931 CYTHON_FALLTHROUGH;
10932 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
10933 CYTHON_FALLTHROUGH;
10934 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
10935 CYTHON_FALLTHROUGH;
10936 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
10937 CYTHON_FALLTHROUGH;
10938 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
10939 CYTHON_FALLTHROUGH;
10940 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
10941 CYTHON_FALLTHROUGH;
10942 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
10943 CYTHON_FALLTHROUGH;
10944 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10945 CYTHON_FALLTHROUGH;
10946 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10947 CYTHON_FALLTHROUGH;
10948 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10949 CYTHON_FALLTHROUGH;
10950 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10951 CYTHON_FALLTHROUGH;
10953 default:
goto __pyx_L5_argtuple_error;
10955 kw_args = PyDict_Size(__pyx_kwds);
10956 switch (pos_args) {
10958 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
10959 else goto __pyx_L5_argtuple_error;
10960 CYTHON_FALLTHROUGH;
10962 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
10964 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 1); __PYX_ERR(0, 1058, __pyx_L3_error)
10966 CYTHON_FALLTHROUGH;
10968 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
10970 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 2); __PYX_ERR(0, 1058, __pyx_L3_error)
10972 CYTHON_FALLTHROUGH;
10974 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
10976 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 3); __PYX_ERR(0, 1058, __pyx_L3_error)
10978 CYTHON_FALLTHROUGH;
10980 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
10982 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 4); __PYX_ERR(0, 1058, __pyx_L3_error)
10984 CYTHON_FALLTHROUGH;
10986 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
10988 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 5); __PYX_ERR(0, 1058, __pyx_L3_error)
10990 CYTHON_FALLTHROUGH;
10992 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
10994 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 6); __PYX_ERR(0, 1058, __pyx_L3_error)
10996 CYTHON_FALLTHROUGH;
10998 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
11000 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 7); __PYX_ERR(0, 1058, __pyx_L3_error)
11002 CYTHON_FALLTHROUGH;
11004 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
11006 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 8); __PYX_ERR(0, 1058, __pyx_L3_error)
11008 CYTHON_FALLTHROUGH;
11010 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
11012 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 9); __PYX_ERR(0, 1058, __pyx_L3_error)
11014 CYTHON_FALLTHROUGH;
11016 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
11018 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 10); __PYX_ERR(0, 1058, __pyx_L3_error)
11020 CYTHON_FALLTHROUGH;
11022 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dx)) != 0)) kw_args--;
11024 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 11); __PYX_ERR(0, 1058, __pyx_L3_error)
11026 CYTHON_FALLTHROUGH;
11028 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
11030 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 12); __PYX_ERR(0, 1058, __pyx_L3_error)
11032 CYTHON_FALLTHROUGH;
11034 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
11036 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 13); __PYX_ERR(0, 1058, __pyx_L3_error)
11038 CYTHON_FALLTHROUGH;
11040 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
11042 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 14); __PYX_ERR(0, 1058, __pyx_L3_error)
11044 CYTHON_FALLTHROUGH;
11046 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
11048 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 15); __PYX_ERR(0, 1058, __pyx_L3_error)
11050 CYTHON_FALLTHROUGH;
11052 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative)) != 0)) kw_args--;
11054 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 16); __PYX_ERR(0, 1058, __pyx_L3_error)
11056 CYTHON_FALLTHROUGH;
11058 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative_element)) != 0)) kw_args--;
11060 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, 17); __PYX_ERR(0, 1058, __pyx_L3_error)
11063 if (unlikely(kw_args > 0)) {
11064 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualPWL_interiorBoundaries") < 0)) __PYX_ERR(0, 1058, __pyx_L3_error)
11066 }
else if (PyTuple_GET_SIZE(__pyx_args) != 18) {
11067 goto __pyx_L5_argtuple_error;
11069 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11070 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11071 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11072 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11073 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11074 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11075 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11076 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11077 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11078 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11079 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11080 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11081 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
11082 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
11083 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
11084 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
11085 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
11086 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
11088 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
11089 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
11090 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
11091 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
11092 __pyx_v_elementNodes = ((PyArrayObject *)values[4]);
11093 __pyx_v_nodeStarElements = ((PyArrayObject *)values[5]);
11094 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[6]);
11095 __pyx_v_nElements_node = ((PyArrayObject *)values[7]);
11096 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[8]);
11097 __pyx_v_elementResidual = ((PyArrayObject *)values[9]);
11098 __pyx_v_vAverage = ((PyArrayObject *)values[10]);
11099 __pyx_v_dx = ((PyArrayObject *)values[11]);
11100 __pyx_v_w = ((PyArrayObject *)values[12]);
11101 __pyx_v_n = ((PyArrayObject *)values[13]);
11102 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[14]);
11103 __pyx_v_conservationResidual = ((PyArrayObject *)values[15]);
11104 __pyx_v_vConservative = ((PyArrayObject *)values[16]);
11105 __pyx_v_vConservative_element = ((PyArrayObject *)values[17]);
11107 goto __pyx_L4_argument_unpacking_done;
11108 __pyx_L5_argtuple_error:;
11109 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL_interiorBoundaries", 1, 18, 18, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1058, __pyx_L3_error)
11111 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualPWL_interiorBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
11112 __Pyx_RefNannyFinishContext();
11114 __pyx_L4_argument_unpacking_done:;
11115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 1058, __pyx_L1_error)
11116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 1059, __pyx_L1_error)
11117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 1060, __pyx_L1_error)
11118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 1061, __pyx_L1_error)
11119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 1062, __pyx_L1_error)
11120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 1063, __pyx_L1_error)
11121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 1064, __pyx_L1_error)
11122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 1065, __pyx_L1_error)
11123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 1066, __pyx_L1_error)
11124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 1067, __pyx_L1_error)
11125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 1068, __pyx_L1_error)
11126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dx), __pyx_ptype_5numpy_ndarray, 1,
"dx", 0))) __PYX_ERR(0, 1069, __pyx_L1_error)
11127 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 1070, __pyx_L1_error)
11128 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 1071, __pyx_L1_error)
11129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1072, __pyx_L1_error)
11130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 1073, __pyx_L1_error)
11131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative), __pyx_ptype_5numpy_ndarray, 1,
"vConservative", 0))) __PYX_ERR(0, 1074, __pyx_L1_error)
11132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative_element), __pyx_ptype_5numpy_ndarray, 1,
"vConservative_element", 0))) __PYX_ERR(0, 1075, __pyx_L1_error)
11133 __pyx_r = __pyx_pf_15cpostprocessing_84calculateConservationResidualPWL_interiorBoundaries(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nElements_node, __pyx_v_fluxElementBoundaries, __pyx_v_elementResidual, __pyx_v_vAverage, __pyx_v_dx, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor, __pyx_v_conservationResidual, __pyx_v_vConservative, __pyx_v_vConservative_element);
11140 __Pyx_RefNannyFinishContext();
11144 static PyObject *__pyx_pf_15cpostprocessing_84calculateConservationResidualPWL_interiorBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_dx, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element) {
11145 PyObject *__pyx_r = NULL;
11146 __Pyx_RefNannyDeclarations
11147 int __pyx_lineno = 0;
11148 const char *__pyx_filename = NULL;
11149 int __pyx_clineno = 0;
11150 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL_interiorBoundaries", 0);
11159 #ifndef CYTHON_WITHOUT_ASSERTIONS
11160 if (unlikely(!Py_OptimizeFlag)) {
11161 if (unlikely(!(((__pyx_v_fluxElementBoundaries->dimensions[0]) == (__pyx_v_elementBoundaryLocalElementBoundaries->dimensions[0])) != 0))) {
11162 PyErr_SetNone(PyExc_AssertionError);
11163 __PYX_ERR(0, 1076, __pyx_L1_error)
11175 calculateConservationResidualPWL_interiorBoundaries((__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_dx->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf), ((
double *)__pyx_v_conservationResidual->data), ((
double *)__pyx_v_vConservative->data), ((
double *)__pyx_v_vConservative_element->data));
11186 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11189 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualPWL_interiorBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
11192 __Pyx_XGIVEREF(__pyx_r);
11193 __Pyx_RefNannyFinishContext();
11206 static PyObject *__pyx_pw_15cpostprocessing_87calculateConservationJacobianPWL_interiorBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11207 static PyMethodDef __pyx_mdef_15cpostprocessing_87calculateConservationJacobianPWL_interiorBoundaries = {
"calculateConservationJacobianPWL_interiorBoundaries", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_87calculateConservationJacobianPWL_interiorBoundaries, METH_VARARGS|METH_KEYWORDS, 0};
11208 static PyObject *__pyx_pw_15cpostprocessing_87calculateConservationJacobianPWL_interiorBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11209 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
11210 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
11211 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
11212 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
11213 PyArrayObject *__pyx_v_elementNodes = 0;
11214 PyArrayObject *__pyx_v_nodeStarElements = 0;
11215 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
11216 PyArrayObject *__pyx_v_nElements_node = 0;
11217 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
11218 PyArrayObject *__pyx_v_w = 0;
11219 PyArrayObject *__pyx_v_n = 0;
11220 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
11221 int __pyx_lineno = 0;
11222 const char *__pyx_filename = NULL;
11223 int __pyx_clineno = 0;
11224 PyObject *__pyx_r = 0;
11225 __Pyx_RefNannyDeclarations
11226 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL_interiorBoundaries (wrapper)", 0);
11228 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nElements_node,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_w,&__pyx_n_s_n,&__pyx_n_s_nodeStarFactor,0};
11229 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
11230 if (unlikely(__pyx_kwds)) {
11231 Py_ssize_t kw_args;
11232 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11233 switch (pos_args) {
11234 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11235 CYTHON_FALLTHROUGH;
11236 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11237 CYTHON_FALLTHROUGH;
11238 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11239 CYTHON_FALLTHROUGH;
11240 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11241 CYTHON_FALLTHROUGH;
11242 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11243 CYTHON_FALLTHROUGH;
11244 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11245 CYTHON_FALLTHROUGH;
11246 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11247 CYTHON_FALLTHROUGH;
11248 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11249 CYTHON_FALLTHROUGH;
11250 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11251 CYTHON_FALLTHROUGH;
11252 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11253 CYTHON_FALLTHROUGH;
11254 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11255 CYTHON_FALLTHROUGH;
11256 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11257 CYTHON_FALLTHROUGH;
11259 default:
goto __pyx_L5_argtuple_error;
11261 kw_args = PyDict_Size(__pyx_kwds);
11262 switch (pos_args) {
11264 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
11265 else goto __pyx_L5_argtuple_error;
11266 CYTHON_FALLTHROUGH;
11268 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
11270 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 1); __PYX_ERR(0, 1103, __pyx_L3_error)
11272 CYTHON_FALLTHROUGH;
11274 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
11276 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 2); __PYX_ERR(0, 1103, __pyx_L3_error)
11278 CYTHON_FALLTHROUGH;
11280 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
11282 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 3); __PYX_ERR(0, 1103, __pyx_L3_error)
11284 CYTHON_FALLTHROUGH;
11286 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
11288 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 4); __PYX_ERR(0, 1103, __pyx_L3_error)
11290 CYTHON_FALLTHROUGH;
11292 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
11294 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 5); __PYX_ERR(0, 1103, __pyx_L3_error)
11296 CYTHON_FALLTHROUGH;
11298 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
11300 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 6); __PYX_ERR(0, 1103, __pyx_L3_error)
11302 CYTHON_FALLTHROUGH;
11304 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
11306 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 7); __PYX_ERR(0, 1103, __pyx_L3_error)
11308 CYTHON_FALLTHROUGH;
11310 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
11312 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 8); __PYX_ERR(0, 1103, __pyx_L3_error)
11314 CYTHON_FALLTHROUGH;
11316 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
11318 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 9); __PYX_ERR(0, 1103, __pyx_L3_error)
11320 CYTHON_FALLTHROUGH;
11322 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
11324 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 10); __PYX_ERR(0, 1103, __pyx_L3_error)
11326 CYTHON_FALLTHROUGH;
11328 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
11330 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, 11); __PYX_ERR(0, 1103, __pyx_L3_error)
11333 if (unlikely(kw_args > 0)) {
11334 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationJacobianPWL_interiorBoundaries") < 0)) __PYX_ERR(0, 1103, __pyx_L3_error)
11336 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
11337 goto __pyx_L5_argtuple_error;
11339 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11340 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11341 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11342 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11343 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11344 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11345 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11346 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11347 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11348 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11349 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
11350 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
11352 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
11353 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
11354 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
11355 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
11356 __pyx_v_elementNodes = ((PyArrayObject *)values[4]);
11357 __pyx_v_nodeStarElements = ((PyArrayObject *)values[5]);
11358 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[6]);
11359 __pyx_v_nElements_node = ((PyArrayObject *)values[7]);
11360 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[8]);
11361 __pyx_v_w = ((PyArrayObject *)values[9]);
11362 __pyx_v_n = ((PyArrayObject *)values[10]);
11363 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[11]);
11365 goto __pyx_L4_argument_unpacking_done;
11366 __pyx_L5_argtuple_error:;
11367 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL_interiorBoundaries", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1103, __pyx_L3_error)
11369 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationJacobianPWL_interiorBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
11370 __Pyx_RefNannyFinishContext();
11372 __pyx_L4_argument_unpacking_done:;
11373 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 1103, __pyx_L1_error)
11374 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 1104, __pyx_L1_error)
11375 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 1105, __pyx_L1_error)
11376 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 1106, __pyx_L1_error)
11377 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 1107, __pyx_L1_error)
11378 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 1108, __pyx_L1_error)
11379 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 1109, __pyx_L1_error)
11380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 1110, __pyx_L1_error)
11381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 1111, __pyx_L1_error)
11382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 1112, __pyx_L1_error)
11383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 1113, __pyx_L1_error)
11384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1114, __pyx_L1_error)
11385 __pyx_r = __pyx_pf_15cpostprocessing_86calculateConservationJacobianPWL_interiorBoundaries(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nElements_node, __pyx_v_fluxElementBoundaries, __pyx_v_w, __pyx_v_n, __pyx_v_nodeStarFactor);
11392 __Pyx_RefNannyFinishContext();
11396 static PyObject *__pyx_pf_15cpostprocessing_86calculateConservationJacobianPWL_interiorBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements, PyArrayObject *__pyx_v_nodeStarElementNeighbors, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_n,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor) {
11397 PyObject *__pyx_r = NULL;
11398 __Pyx_RefNannyDeclarations
11399 int __pyx_lineno = 0;
11400 const char *__pyx_filename = NULL;
11401 int __pyx_clineno = 0;
11402 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL_interiorBoundaries", 0);
11411 #ifndef CYTHON_WITHOUT_ASSERTIONS
11412 if (unlikely(!Py_OptimizeFlag)) {
11413 if (unlikely(!(((__pyx_v_fluxElementBoundaries->dimensions[0]) == (__pyx_v_elementBoundaryLocalElementBoundaries->dimensions[0])) != 0))) {
11414 PyErr_SetNone(PyExc_AssertionError);
11415 __PYX_ERR(0, 1115, __pyx_L1_error)
11427 calculateConservationJacobianPWL_interiorBoundaries((__pyx_v_nElements_node->dimensions[0]), (__pyx_v_w->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), (__pyx_v_n->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_n->data), (&__pyx_v_nodeStarFactor->nsf));
11438 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11441 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationJacobianPWL_interiorBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
11444 __Pyx_XGIVEREF(__pyx_r);
11445 __Pyx_RefNannyFinishContext();
11458 static PyObject *__pyx_pw_15cpostprocessing_89_subdomain_U_copy_global2local(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11459 static PyMethodDef __pyx_mdef_15cpostprocessing_89_subdomain_U_copy_global2local = {
"_subdomain_U_copy_global2local", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_89_subdomain_U_copy_global2local, METH_VARARGS|METH_KEYWORDS, 0};
11460 static PyObject *__pyx_pw_15cpostprocessing_89_subdomain_U_copy_global2local(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11461 int __pyx_v_max_nN_owned;
11462 PyArrayObject *__pyx_v_elementNodes = 0;
11463 PyArrayObject *__pyx_v_nodeStarElements = 0;
11464 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
11465 PyArrayObject *__pyx_v_subdomain_U = 0;
11466 int __pyx_lineno = 0;
11467 const char *__pyx_filename = NULL;
11468 int __pyx_clineno = 0;
11469 PyObject *__pyx_r = 0;
11470 __Pyx_RefNannyDeclarations
11471 __Pyx_RefNannySetupContext(
"_subdomain_U_copy_global2local (wrapper)", 0);
11473 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_max_nN_owned,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarFactor,&__pyx_n_s_subdomain_U,0};
11474 PyObject* values[5] = {0,0,0,0,0};
11475 if (unlikely(__pyx_kwds)) {
11476 Py_ssize_t kw_args;
11477 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11478 switch (pos_args) {
11479 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11480 CYTHON_FALLTHROUGH;
11481 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11482 CYTHON_FALLTHROUGH;
11483 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11484 CYTHON_FALLTHROUGH;
11485 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11486 CYTHON_FALLTHROUGH;
11487 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11488 CYTHON_FALLTHROUGH;
11490 default:
goto __pyx_L5_argtuple_error;
11492 kw_args = PyDict_Size(__pyx_kwds);
11493 switch (pos_args) {
11495 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_nN_owned)) != 0)) kw_args--;
11496 else goto __pyx_L5_argtuple_error;
11497 CYTHON_FALLTHROUGH;
11499 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
11501 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_global2local", 1, 5, 5, 1); __PYX_ERR(0, 1137, __pyx_L3_error)
11503 CYTHON_FALLTHROUGH;
11505 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
11507 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_global2local", 1, 5, 5, 2); __PYX_ERR(0, 1137, __pyx_L3_error)
11509 CYTHON_FALLTHROUGH;
11511 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
11513 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_global2local", 1, 5, 5, 3); __PYX_ERR(0, 1137, __pyx_L3_error)
11515 CYTHON_FALLTHROUGH;
11517 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_subdomain_U)) != 0)) kw_args--;
11519 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_global2local", 1, 5, 5, 4); __PYX_ERR(0, 1137, __pyx_L3_error)
11522 if (unlikely(kw_args > 0)) {
11523 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"_subdomain_U_copy_global2local") < 0)) __PYX_ERR(0, 1137, __pyx_L3_error)
11525 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
11526 goto __pyx_L5_argtuple_error;
11528 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11529 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11530 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11531 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11532 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11534 __pyx_v_max_nN_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_max_nN_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L3_error)
11535 __pyx_v_elementNodes = ((PyArrayObject *)values[1]);
11536 __pyx_v_nodeStarElements = ((PyArrayObject *)values[2]);
11537 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[3]);
11538 __pyx_v_subdomain_U = ((PyArrayObject *)values[4]);
11540 goto __pyx_L4_argument_unpacking_done;
11541 __pyx_L5_argtuple_error:;
11542 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_global2local", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1137, __pyx_L3_error)
11544 __Pyx_AddTraceback(
"cpostprocessing._subdomain_U_copy_global2local", __pyx_clineno, __pyx_lineno, __pyx_filename);
11545 __Pyx_RefNannyFinishContext();
11547 __pyx_L4_argument_unpacking_done:;
11548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 1138, __pyx_L1_error)
11549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 1139, __pyx_L1_error)
11550 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1140, __pyx_L1_error)
11551 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_subdomain_U), __pyx_ptype_5numpy_ndarray, 1,
"subdomain_U", 0))) __PYX_ERR(0, 1141, __pyx_L1_error)
11552 __pyx_r = __pyx_pf_15cpostprocessing_88_subdomain_U_copy_global2local(__pyx_self, __pyx_v_max_nN_owned, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarFactor, __pyx_v_subdomain_U);
11559 __Pyx_RefNannyFinishContext();
11563 static PyObject *__pyx_pf_15cpostprocessing_88_subdomain_U_copy_global2local(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_max_nN_owned, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_subdomain_U) {
11564 PyObject *__pyx_r = NULL;
11565 __Pyx_RefNannyDeclarations
11566 __Pyx_RefNannySetupContext(
"_subdomain_U_copy_global2local", 0);
11575 subdomain_U_copy_global2local(__pyx_v_max_nN_owned, (__pyx_v_subdomain_U->dimensions[0]), (__pyx_v_subdomain_U->dimensions[1]), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), (&__pyx_v_nodeStarFactor->nsf), ((
double *)__pyx_v_subdomain_U->data));
11586 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11587 __Pyx_XGIVEREF(__pyx_r);
11588 __Pyx_RefNannyFinishContext();
11601 static PyObject *__pyx_pw_15cpostprocessing_91_subdomain_U_copy_local2global(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11602 static PyMethodDef __pyx_mdef_15cpostprocessing_91_subdomain_U_copy_local2global = {
"_subdomain_U_copy_local2global", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_91_subdomain_U_copy_local2global, METH_VARARGS|METH_KEYWORDS, 0};
11603 static PyObject *__pyx_pw_15cpostprocessing_91_subdomain_U_copy_local2global(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11604 int __pyx_v_max_nN_owned;
11605 PyArrayObject *__pyx_v_elementNodes = 0;
11606 PyArrayObject *__pyx_v_nodeStarElements = 0;
11607 struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor = 0;
11608 PyArrayObject *__pyx_v_subdomain_U = 0;
11609 int __pyx_lineno = 0;
11610 const char *__pyx_filename = NULL;
11611 int __pyx_clineno = 0;
11612 PyObject *__pyx_r = 0;
11613 __Pyx_RefNannyDeclarations
11614 __Pyx_RefNannySetupContext(
"_subdomain_U_copy_local2global (wrapper)", 0);
11616 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_max_nN_owned,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarFactor,&__pyx_n_s_subdomain_U,0};
11617 PyObject* values[5] = {0,0,0,0,0};
11618 if (unlikely(__pyx_kwds)) {
11619 Py_ssize_t kw_args;
11620 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11621 switch (pos_args) {
11622 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11623 CYTHON_FALLTHROUGH;
11624 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11625 CYTHON_FALLTHROUGH;
11626 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11627 CYTHON_FALLTHROUGH;
11628 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11629 CYTHON_FALLTHROUGH;
11630 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11631 CYTHON_FALLTHROUGH;
11633 default:
goto __pyx_L5_argtuple_error;
11635 kw_args = PyDict_Size(__pyx_kwds);
11636 switch (pos_args) {
11638 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_nN_owned)) != 0)) kw_args--;
11639 else goto __pyx_L5_argtuple_error;
11640 CYTHON_FALLTHROUGH;
11642 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
11644 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_local2global", 1, 5, 5, 1); __PYX_ERR(0, 1150, __pyx_L3_error)
11646 CYTHON_FALLTHROUGH;
11648 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
11650 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_local2global", 1, 5, 5, 2); __PYX_ERR(0, 1150, __pyx_L3_error)
11652 CYTHON_FALLTHROUGH;
11654 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarFactor)) != 0)) kw_args--;
11656 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_local2global", 1, 5, 5, 3); __PYX_ERR(0, 1150, __pyx_L3_error)
11658 CYTHON_FALLTHROUGH;
11660 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_subdomain_U)) != 0)) kw_args--;
11662 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_local2global", 1, 5, 5, 4); __PYX_ERR(0, 1150, __pyx_L3_error)
11665 if (unlikely(kw_args > 0)) {
11666 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"_subdomain_U_copy_local2global") < 0)) __PYX_ERR(0, 1150, __pyx_L3_error)
11668 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
11669 goto __pyx_L5_argtuple_error;
11671 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11672 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11673 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11674 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11675 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11677 __pyx_v_max_nN_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_max_nN_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1150, __pyx_L3_error)
11678 __pyx_v_elementNodes = ((PyArrayObject *)values[1]);
11679 __pyx_v_nodeStarElements = ((PyArrayObject *)values[2]);
11680 __pyx_v_nodeStarFactor = ((
struct __pyx_obj_15cpostprocessing_NodeStarFactor *)values[3]);
11681 __pyx_v_subdomain_U = ((PyArrayObject *)values[4]);
11683 goto __pyx_L4_argument_unpacking_done;
11684 __pyx_L5_argtuple_error:;
11685 __Pyx_RaiseArgtupleInvalid(
"_subdomain_U_copy_local2global", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1150, __pyx_L3_error)
11687 __Pyx_AddTraceback(
"cpostprocessing._subdomain_U_copy_local2global", __pyx_clineno, __pyx_lineno, __pyx_filename);
11688 __Pyx_RefNannyFinishContext();
11690 __pyx_L4_argument_unpacking_done:;
11691 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 1151, __pyx_L1_error)
11692 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 1152, __pyx_L1_error)
11693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarFactor), __pyx_ptype_15cpostprocessing_NodeStarFactor, 1,
"nodeStarFactor", 0))) __PYX_ERR(0, 1153, __pyx_L1_error)
11694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_subdomain_U), __pyx_ptype_5numpy_ndarray, 1,
"subdomain_U", 0))) __PYX_ERR(0, 1154, __pyx_L1_error)
11695 __pyx_r = __pyx_pf_15cpostprocessing_90_subdomain_U_copy_local2global(__pyx_self, __pyx_v_max_nN_owned, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarFactor, __pyx_v_subdomain_U);
11702 __Pyx_RefNannyFinishContext();
11706 static PyObject *__pyx_pf_15cpostprocessing_90_subdomain_U_copy_local2global(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_max_nN_owned, PyArrayObject *__pyx_v_elementNodes, PyArrayObject *__pyx_v_nodeStarElements,
struct __pyx_obj_15cpostprocessing_NodeStarFactor *__pyx_v_nodeStarFactor, PyArrayObject *__pyx_v_subdomain_U) {
11707 PyObject *__pyx_r = NULL;
11708 __Pyx_RefNannyDeclarations
11709 __Pyx_RefNannySetupContext(
"_subdomain_U_copy_local2global", 0);
11718 subdomain_U_copy_local2global(__pyx_v_max_nN_owned, (__pyx_v_subdomain_U->dimensions[0]), (__pyx_v_subdomain_U->dimensions[1]), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), (&__pyx_v_nodeStarFactor->nsf), ((
double *)__pyx_v_subdomain_U->data));
11729 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11730 __Pyx_XGIVEREF(__pyx_r);
11731 __Pyx_RefNannyFinishContext();
11744 static PyObject *__pyx_pw_15cpostprocessing_93calculateConservationResidualGlobalBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11745 static PyMethodDef __pyx_mdef_15cpostprocessing_93calculateConservationResidualGlobalBoundaries = {
"calculateConservationResidualGlobalBoundaries", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_93calculateConservationResidualGlobalBoundaries, METH_VARARGS|METH_KEYWORDS, 0};
11746 static PyObject *__pyx_pw_15cpostprocessing_93calculateConservationResidualGlobalBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11747 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
11748 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
11749 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
11750 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
11751 PyArrayObject *__pyx_v_exteriorElementBoundariesToSkip = 0;
11752 PyArrayObject *__pyx_v_dS = 0;
11753 PyArrayObject *__pyx_v_n = 0;
11754 PyArrayObject *__pyx_v_elementResidual = 0;
11755 PyArrayObject *__pyx_v_velocity = 0;
11756 PyArrayObject *__pyx_v_conservationResidual = 0;
11757 int __pyx_lineno = 0;
11758 const char *__pyx_filename = NULL;
11759 int __pyx_clineno = 0;
11760 PyObject *__pyx_r = 0;
11761 __Pyx_RefNannyDeclarations
11762 __Pyx_RefNannySetupContext(
"calculateConservationResidualGlobalBoundaries (wrapper)", 0);
11764 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_exteriorElementBoundariesToSkip,&__pyx_n_s_dS,&__pyx_n_s_n,&__pyx_n_s_elementResidual,&__pyx_n_s_velocity,&__pyx_n_s_conservationResidual,0};
11765 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
11766 if (unlikely(__pyx_kwds)) {
11767 Py_ssize_t kw_args;
11768 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11769 switch (pos_args) {
11770 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11771 CYTHON_FALLTHROUGH;
11772 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11773 CYTHON_FALLTHROUGH;
11774 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11775 CYTHON_FALLTHROUGH;
11776 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11777 CYTHON_FALLTHROUGH;
11778 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11779 CYTHON_FALLTHROUGH;
11780 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11781 CYTHON_FALLTHROUGH;
11782 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11783 CYTHON_FALLTHROUGH;
11784 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11785 CYTHON_FALLTHROUGH;
11786 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11787 CYTHON_FALLTHROUGH;
11788 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11789 CYTHON_FALLTHROUGH;
11791 default:
goto __pyx_L5_argtuple_error;
11793 kw_args = PyDict_Size(__pyx_kwds);
11794 switch (pos_args) {
11796 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
11797 else goto __pyx_L5_argtuple_error;
11798 CYTHON_FALLTHROUGH;
11800 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
11802 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 1); __PYX_ERR(0, 1163, __pyx_L3_error)
11804 CYTHON_FALLTHROUGH;
11806 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
11808 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 2); __PYX_ERR(0, 1163, __pyx_L3_error)
11810 CYTHON_FALLTHROUGH;
11812 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
11814 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 3); __PYX_ERR(0, 1163, __pyx_L3_error)
11816 CYTHON_FALLTHROUGH;
11818 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesToSkip)) != 0)) kw_args--;
11820 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 4); __PYX_ERR(0, 1163, __pyx_L3_error)
11822 CYTHON_FALLTHROUGH;
11824 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
11826 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 5); __PYX_ERR(0, 1163, __pyx_L3_error)
11828 CYTHON_FALLTHROUGH;
11830 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
11832 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 6); __PYX_ERR(0, 1163, __pyx_L3_error)
11834 CYTHON_FALLTHROUGH;
11836 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
11838 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 7); __PYX_ERR(0, 1163, __pyx_L3_error)
11840 CYTHON_FALLTHROUGH;
11842 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
11844 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 8); __PYX_ERR(0, 1163, __pyx_L3_error)
11846 CYTHON_FALLTHROUGH;
11848 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
11850 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, 9); __PYX_ERR(0, 1163, __pyx_L3_error)
11853 if (unlikely(kw_args > 0)) {
11854 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualGlobalBoundaries") < 0)) __PYX_ERR(0, 1163, __pyx_L3_error)
11856 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
11857 goto __pyx_L5_argtuple_error;
11859 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11860 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11861 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11862 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11863 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11864 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11865 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11866 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
11867 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
11868 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
11870 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
11871 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
11872 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
11873 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
11874 __pyx_v_exteriorElementBoundariesToSkip = ((PyArrayObject *)values[4]);
11875 __pyx_v_dS = ((PyArrayObject *)values[5]);
11876 __pyx_v_n = ((PyArrayObject *)values[6]);
11877 __pyx_v_elementResidual = ((PyArrayObject *)values[7]);
11878 __pyx_v_velocity = ((PyArrayObject *)values[8]);
11879 __pyx_v_conservationResidual = ((PyArrayObject *)values[9]);
11881 goto __pyx_L4_argument_unpacking_done;
11882 __pyx_L5_argtuple_error:;
11883 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1163, __pyx_L3_error)
11885 __Pyx_AddTraceback(
"cpostprocessing.calculateConservationResidualGlobalBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
11886 __Pyx_RefNannyFinishContext();
11888 __pyx_L4_argument_unpacking_done:;
11889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 1163, __pyx_L1_error)
11890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 1164, __pyx_L1_error)
11891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 1165, __pyx_L1_error)
11892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 1166, __pyx_L1_error)
11893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesToSkip), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesToSkip", 0))) __PYX_ERR(0, 1167, __pyx_L1_error)
11894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 1168, __pyx_L1_error)
11895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 1169, __pyx_L1_error)
11896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 1170, __pyx_L1_error)
11897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 1171, __pyx_L1_error)
11898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 1172, __pyx_L1_error)
11899 __pyx_r = __pyx_pf_15cpostprocessing_92calculateConservationResidualGlobalBoundaries(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_exteriorElementBoundariesToSkip, __pyx_v_dS, __pyx_v_n, __pyx_v_elementResidual, __pyx_v_velocity, __pyx_v_conservationResidual);
11906 __Pyx_RefNannyFinishContext();
11910 static PyObject *__pyx_pf_15cpostprocessing_92calculateConservationResidualGlobalBoundaries(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundariesToSkip, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual) {
11911 PyObject *__pyx_r = NULL;
11912 __Pyx_RefNannyDeclarations
11913 __Pyx_RefNannySetupContext(
"calculateConservationResidualGlobalBoundaries", 0);
11922 calculateConservationResidualGlobalBoundaries((__pyx_v_conservationResidual->dimensions[0]), (__pyx_v_interiorElementBoundaries->dimensions[0]), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_dS->dimensions[1]), (__pyx_v_dS->dimensions[2]), (__pyx_v_elementResidual->dimensions[1]), (__pyx_v_velocity->dimensions[2]), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundariesToSkip->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_conservationResidual->data));
11933 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11934 __Pyx_XGIVEREF(__pyx_r);
11935 __Pyx_RefNannyFinishContext();
11948 static PyObject *__pyx_pw_15cpostprocessing_95updateSelectedExteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11949 static PyMethodDef __pyx_mdef_15cpostprocessing_95updateSelectedExteriorElementBoundaryFlux = {
"updateSelectedExteriorElementBoundaryFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_95updateSelectedExteriorElementBoundaryFlux, METH_VARARGS|METH_KEYWORDS, 0};
11950 static PyObject *__pyx_pw_15cpostprocessing_95updateSelectedExteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11951 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
11952 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
11953 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
11954 PyArrayObject *__pyx_v_skipflag_elementBoundaries = 0;
11955 PyArrayObject *__pyx_v_flux = 0;
11956 PyArrayObject *__pyx_v_w = 0;
11957 PyArrayObject *__pyx_v_residual = 0;
11958 int __pyx_lineno = 0;
11959 const char *__pyx_filename = NULL;
11960 int __pyx_clineno = 0;
11961 PyObject *__pyx_r = 0;
11962 __Pyx_RefNannyDeclarations
11963 __Pyx_RefNannySetupContext(
"updateSelectedExteriorElementBoundaryFlux (wrapper)", 0);
11965 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_skipflag_elementBoundaries,&__pyx_n_s_flux,&__pyx_n_s_w,&__pyx_n_s_residual,0};
11966 PyObject* values[7] = {0,0,0,0,0,0,0};
11967 if (unlikely(__pyx_kwds)) {
11968 Py_ssize_t kw_args;
11969 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11970 switch (pos_args) {
11971 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
11972 CYTHON_FALLTHROUGH;
11973 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
11974 CYTHON_FALLTHROUGH;
11975 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
11976 CYTHON_FALLTHROUGH;
11977 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11978 CYTHON_FALLTHROUGH;
11979 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11980 CYTHON_FALLTHROUGH;
11981 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11982 CYTHON_FALLTHROUGH;
11983 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11984 CYTHON_FALLTHROUGH;
11986 default:
goto __pyx_L5_argtuple_error;
11988 kw_args = PyDict_Size(__pyx_kwds);
11989 switch (pos_args) {
11991 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
11992 else goto __pyx_L5_argtuple_error;
11993 CYTHON_FALLTHROUGH;
11995 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
11997 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 1); __PYX_ERR(0, 1191, __pyx_L3_error)
11999 CYTHON_FALLTHROUGH;
12001 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
12003 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 2); __PYX_ERR(0, 1191, __pyx_L3_error)
12005 CYTHON_FALLTHROUGH;
12007 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_skipflag_elementBoundaries)) != 0)) kw_args--;
12009 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 3); __PYX_ERR(0, 1191, __pyx_L3_error)
12011 CYTHON_FALLTHROUGH;
12013 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
12015 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 4); __PYX_ERR(0, 1191, __pyx_L3_error)
12017 CYTHON_FALLTHROUGH;
12019 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
12021 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 5); __PYX_ERR(0, 1191, __pyx_L3_error)
12023 CYTHON_FALLTHROUGH;
12025 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
12027 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, 6); __PYX_ERR(0, 1191, __pyx_L3_error)
12030 if (unlikely(kw_args > 0)) {
12031 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateSelectedExteriorElementBoundaryFlux") < 0)) __PYX_ERR(0, 1191, __pyx_L3_error)
12033 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
12034 goto __pyx_L5_argtuple_error;
12036 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12037 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12038 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12039 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12040 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12041 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12042 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
12044 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
12045 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
12046 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
12047 __pyx_v_skipflag_elementBoundaries = ((PyArrayObject *)values[3]);
12048 __pyx_v_flux = ((PyArrayObject *)values[4]);
12049 __pyx_v_w = ((PyArrayObject *)values[5]);
12050 __pyx_v_residual = ((PyArrayObject *)values[6]);
12052 goto __pyx_L4_argument_unpacking_done;
12053 __pyx_L5_argtuple_error:;
12054 __Pyx_RaiseArgtupleInvalid(
"updateSelectedExteriorElementBoundaryFlux", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1191, __pyx_L3_error)
12056 __Pyx_AddTraceback(
"cpostprocessing.updateSelectedExteriorElementBoundaryFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
12057 __Pyx_RefNannyFinishContext();
12059 __pyx_L4_argument_unpacking_done:;
12060 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 1191, __pyx_L1_error)
12061 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 1192, __pyx_L1_error)
12062 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 1193, __pyx_L1_error)
12063 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_skipflag_elementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"skipflag_elementBoundaries", 0))) __PYX_ERR(0, 1194, __pyx_L1_error)
12064 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 1195, __pyx_L1_error)
12065 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 1196, __pyx_L1_error)
12066 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 1197, __pyx_L1_error)
12067 __pyx_r = __pyx_pf_15cpostprocessing_94updateSelectedExteriorElementBoundaryFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_skipflag_elementBoundaries, __pyx_v_flux, __pyx_v_w, __pyx_v_residual);
12074 __Pyx_RefNannyFinishContext();
12078 static PyObject *__pyx_pf_15cpostprocessing_94updateSelectedExteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_skipflag_elementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_residual) {
12079 PyObject *__pyx_r = NULL;
12080 __Pyx_RefNannyDeclarations
12081 __Pyx_RefNannySetupContext(
"updateSelectedExteriorElementBoundaryFlux", 0);
12090 updateSelectedExteriorElementBoundaryFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w->dimensions[1]), (__pyx_v_w->dimensions[2]), (__pyx_v_w->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_skipflag_elementBoundaries->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_residual->data));
12101 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12102 __Pyx_XGIVEREF(__pyx_r);
12103 __Pyx_RefNannyFinishContext();
12116 static PyObject *__pyx_pw_15cpostprocessing_97updateAdvectiveVelocityPointEval(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12117 static PyMethodDef __pyx_mdef_15cpostprocessing_97updateAdvectiveVelocityPointEval = {
"updateAdvectiveVelocityPointEval", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_97updateAdvectiveVelocityPointEval, METH_VARARGS|METH_KEYWORDS, 0};
12118 static PyObject *__pyx_pw_15cpostprocessing_97updateAdvectiveVelocityPointEval(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12119 double __pyx_v_updateCoef;
12120 PyArrayObject *__pyx_v_advectiveVelocity = 0;
12121 PyArrayObject *__pyx_v_velocity = 0;
12122 int __pyx_lineno = 0;
12123 const char *__pyx_filename = NULL;
12124 int __pyx_clineno = 0;
12125 PyObject *__pyx_r = 0;
12126 __Pyx_RefNannyDeclarations
12127 __Pyx_RefNannySetupContext(
"updateAdvectiveVelocityPointEval (wrapper)", 0);
12129 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_updateCoef,&__pyx_n_s_advectiveVelocity,&__pyx_n_s_velocity,0};
12130 PyObject* values[3] = {0,0,0};
12131 if (unlikely(__pyx_kwds)) {
12132 Py_ssize_t kw_args;
12133 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12134 switch (pos_args) {
12135 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12136 CYTHON_FALLTHROUGH;
12137 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12138 CYTHON_FALLTHROUGH;
12139 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12140 CYTHON_FALLTHROUGH;
12142 default:
goto __pyx_L5_argtuple_error;
12144 kw_args = PyDict_Size(__pyx_kwds);
12145 switch (pos_args) {
12147 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_updateCoef)) != 0)) kw_args--;
12148 else goto __pyx_L5_argtuple_error;
12149 CYTHON_FALLTHROUGH;
12151 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_advectiveVelocity)) != 0)) kw_args--;
12153 __Pyx_RaiseArgtupleInvalid(
"updateAdvectiveVelocityPointEval", 1, 3, 3, 1); __PYX_ERR(0, 1210, __pyx_L3_error)
12155 CYTHON_FALLTHROUGH;
12157 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
12159 __Pyx_RaiseArgtupleInvalid(
"updateAdvectiveVelocityPointEval", 1, 3, 3, 2); __PYX_ERR(0, 1210, __pyx_L3_error)
12162 if (unlikely(kw_args > 0)) {
12163 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvectiveVelocityPointEval") < 0)) __PYX_ERR(0, 1210, __pyx_L3_error)
12165 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12166 goto __pyx_L5_argtuple_error;
12168 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12169 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12170 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12172 __pyx_v_updateCoef = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_updateCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
12173 __pyx_v_advectiveVelocity = ((PyArrayObject *)values[1]);
12174 __pyx_v_velocity = ((PyArrayObject *)values[2]);
12176 goto __pyx_L4_argument_unpacking_done;
12177 __pyx_L5_argtuple_error:;
12178 __Pyx_RaiseArgtupleInvalid(
"updateAdvectiveVelocityPointEval", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1210, __pyx_L3_error)
12180 __Pyx_AddTraceback(
"cpostprocessing.updateAdvectiveVelocityPointEval", __pyx_clineno, __pyx_lineno, __pyx_filename);
12181 __Pyx_RefNannyFinishContext();
12183 __pyx_L4_argument_unpacking_done:;
12184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_advectiveVelocity), __pyx_ptype_5numpy_ndarray, 1,
"advectiveVelocity", 0))) __PYX_ERR(0, 1211, __pyx_L1_error)
12185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 1212, __pyx_L1_error)
12186 __pyx_r = __pyx_pf_15cpostprocessing_96updateAdvectiveVelocityPointEval(__pyx_self, __pyx_v_updateCoef, __pyx_v_advectiveVelocity, __pyx_v_velocity);
12193 __Pyx_RefNannyFinishContext();
12197 static PyObject *__pyx_pf_15cpostprocessing_96updateAdvectiveVelocityPointEval(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_advectiveVelocity, PyArrayObject *__pyx_v_velocity) {
12198 int __pyx_v_nPoints;
12199 PyObject *__pyx_r = NULL;
12200 __Pyx_RefNannyDeclarations
12201 PyObject *__pyx_t_1 = NULL;
12202 PyObject *__pyx_t_2 = NULL;
12203 PyObject *__pyx_t_3 = NULL;
12205 int __pyx_lineno = 0;
12206 const char *__pyx_filename = NULL;
12207 int __pyx_clineno = 0;
12208 __Pyx_RefNannySetupContext(
"updateAdvectiveVelocityPointEval", 0);
12217 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_velocity), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1213, __pyx_L1_error)
12218 __Pyx_GOTREF(__pyx_t_1);
12219 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1213, __pyx_L1_error)
12220 __Pyx_GOTREF(__pyx_t_2);
12221 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1213, __pyx_L1_error)
12222 __Pyx_GOTREF(__pyx_t_3);
12223 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12224 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12225 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1213, __pyx_L1_error)
12226 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12227 __pyx_v_nPoints = __pyx_t_4;
12236 postprocessAdvectiveVelocityPointEval(__pyx_v_nPoints, (__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]), __pyx_v_updateCoef, ((
double *)__pyx_v_advectiveVelocity->data), ((
double *)__pyx_v_velocity->data));
12247 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12250 __Pyx_XDECREF(__pyx_t_1);
12251 __Pyx_XDECREF(__pyx_t_2);
12252 __Pyx_XDECREF(__pyx_t_3);
12253 __Pyx_AddTraceback(
"cpostprocessing.updateAdvectiveVelocityPointEval", __pyx_clineno, __pyx_lineno, __pyx_filename);
12256 __Pyx_XGIVEREF(__pyx_r);
12257 __Pyx_RefNannyFinishContext();
12270 static PyObject *__pyx_pw_15cpostprocessing_99updateDiffusiveVelocityPointEval(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12271 static PyMethodDef __pyx_mdef_15cpostprocessing_99updateDiffusiveVelocityPointEval = {
"updateDiffusiveVelocityPointEval", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_99updateDiffusiveVelocityPointEval, METH_VARARGS|METH_KEYWORDS, 0};
12272 static PyObject *__pyx_pw_15cpostprocessing_99updateDiffusiveVelocityPointEval(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12273 double __pyx_v_updateCoef;
12274 PyArrayObject *__pyx_v_diffusionTensor = 0;
12275 PyArrayObject *__pyx_v_grad_phi = 0;
12276 PyArrayObject *__pyx_v_velocity = 0;
12277 int __pyx_lineno = 0;
12278 const char *__pyx_filename = NULL;
12279 int __pyx_clineno = 0;
12280 PyObject *__pyx_r = 0;
12281 __Pyx_RefNannyDeclarations
12282 __Pyx_RefNannySetupContext(
"updateDiffusiveVelocityPointEval (wrapper)", 0);
12284 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_updateCoef,&__pyx_n_s_diffusionTensor,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
12285 PyObject* values[4] = {0,0,0,0};
12286 if (unlikely(__pyx_kwds)) {
12287 Py_ssize_t kw_args;
12288 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12289 switch (pos_args) {
12290 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12291 CYTHON_FALLTHROUGH;
12292 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12293 CYTHON_FALLTHROUGH;
12294 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12295 CYTHON_FALLTHROUGH;
12296 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12297 CYTHON_FALLTHROUGH;
12299 default:
goto __pyx_L5_argtuple_error;
12301 kw_args = PyDict_Size(__pyx_kwds);
12302 switch (pos_args) {
12304 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_updateCoef)) != 0)) kw_args--;
12305 else goto __pyx_L5_argtuple_error;
12306 CYTHON_FALLTHROUGH;
12308 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusionTensor)) != 0)) kw_args--;
12310 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval", 1, 4, 4, 1); __PYX_ERR(0, 1220, __pyx_L3_error)
12312 CYTHON_FALLTHROUGH;
12314 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
12316 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval", 1, 4, 4, 2); __PYX_ERR(0, 1220, __pyx_L3_error)
12318 CYTHON_FALLTHROUGH;
12320 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
12322 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval", 1, 4, 4, 3); __PYX_ERR(0, 1220, __pyx_L3_error)
12325 if (unlikely(kw_args > 0)) {
12326 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusiveVelocityPointEval") < 0)) __PYX_ERR(0, 1220, __pyx_L3_error)
12328 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
12329 goto __pyx_L5_argtuple_error;
12331 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12332 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12333 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12334 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12336 __pyx_v_updateCoef = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_updateCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1220, __pyx_L3_error)
12337 __pyx_v_diffusionTensor = ((PyArrayObject *)values[1]);
12338 __pyx_v_grad_phi = ((PyArrayObject *)values[2]);
12339 __pyx_v_velocity = ((PyArrayObject *)values[3]);
12341 goto __pyx_L4_argument_unpacking_done;
12342 __pyx_L5_argtuple_error:;
12343 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1220, __pyx_L3_error)
12345 __Pyx_AddTraceback(
"cpostprocessing.updateDiffusiveVelocityPointEval", __pyx_clineno, __pyx_lineno, __pyx_filename);
12346 __Pyx_RefNannyFinishContext();
12348 __pyx_L4_argument_unpacking_done:;
12349 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusionTensor), __pyx_ptype_5numpy_ndarray, 1,
"diffusionTensor", 0))) __PYX_ERR(0, 1221, __pyx_L1_error)
12350 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 1222, __pyx_L1_error)
12351 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 1223, __pyx_L1_error)
12352 __pyx_r = __pyx_pf_15cpostprocessing_98updateDiffusiveVelocityPointEval(__pyx_self, __pyx_v_updateCoef, __pyx_v_diffusionTensor, __pyx_v_grad_phi, __pyx_v_velocity);
12359 __Pyx_RefNannyFinishContext();
12363 static PyObject *__pyx_pf_15cpostprocessing_98updateDiffusiveVelocityPointEval(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_diffusionTensor, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
12364 int __pyx_v_nPoints;
12365 PyObject *__pyx_r = NULL;
12366 __Pyx_RefNannyDeclarations
12367 PyObject *__pyx_t_1 = NULL;
12368 PyObject *__pyx_t_2 = NULL;
12369 PyObject *__pyx_t_3 = NULL;
12371 int __pyx_lineno = 0;
12372 const char *__pyx_filename = NULL;
12373 int __pyx_clineno = 0;
12374 __Pyx_RefNannySetupContext(
"updateDiffusiveVelocityPointEval", 0);
12383 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_velocity), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1224, __pyx_L1_error)
12384 __Pyx_GOTREF(__pyx_t_1);
12385 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1224, __pyx_L1_error)
12386 __Pyx_GOTREF(__pyx_t_2);
12387 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1224, __pyx_L1_error)
12388 __Pyx_GOTREF(__pyx_t_3);
12389 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12390 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12391 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1224, __pyx_L1_error)
12392 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12393 __pyx_v_nPoints = __pyx_t_4;
12402 postprocessDiffusiveVelocityPointEval(__pyx_v_nPoints, (__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]), __pyx_v_updateCoef, ((
double *)__pyx_v_diffusionTensor->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
12413 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12416 __Pyx_XDECREF(__pyx_t_1);
12417 __Pyx_XDECREF(__pyx_t_2);
12418 __Pyx_XDECREF(__pyx_t_3);
12419 __Pyx_AddTraceback(
"cpostprocessing.updateDiffusiveVelocityPointEval", __pyx_clineno, __pyx_lineno, __pyx_filename);
12422 __Pyx_XGIVEREF(__pyx_r);
12423 __Pyx_RefNannyFinishContext();
12436 static PyObject *__pyx_pw_15cpostprocessing_101updateDiffusiveVelocityPointEval_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12437 static PyMethodDef __pyx_mdef_15cpostprocessing_101updateDiffusiveVelocityPointEval_sd = {
"updateDiffusiveVelocityPointEval_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_101updateDiffusiveVelocityPointEval_sd, METH_VARARGS|METH_KEYWORDS, 0};
12438 static PyObject *__pyx_pw_15cpostprocessing_101updateDiffusiveVelocityPointEval_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12439 double __pyx_v_updateCoef;
12440 PyArrayObject *__pyx_v_rowptr = 0;
12441 PyArrayObject *__pyx_v_colind = 0;
12442 PyArrayObject *__pyx_v_diffusionTensor = 0;
12443 PyArrayObject *__pyx_v_grad_phi = 0;
12444 PyArrayObject *__pyx_v_velocity = 0;
12445 int __pyx_lineno = 0;
12446 const char *__pyx_filename = NULL;
12447 int __pyx_clineno = 0;
12448 PyObject *__pyx_r = 0;
12449 __Pyx_RefNannyDeclarations
12450 __Pyx_RefNannySetupContext(
"updateDiffusiveVelocityPointEval_sd (wrapper)", 0);
12452 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_updateCoef,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_diffusionTensor,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
12453 PyObject* values[6] = {0,0,0,0,0,0};
12454 if (unlikely(__pyx_kwds)) {
12455 Py_ssize_t kw_args;
12456 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12457 switch (pos_args) {
12458 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12459 CYTHON_FALLTHROUGH;
12460 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12461 CYTHON_FALLTHROUGH;
12462 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12463 CYTHON_FALLTHROUGH;
12464 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12465 CYTHON_FALLTHROUGH;
12466 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12467 CYTHON_FALLTHROUGH;
12468 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12469 CYTHON_FALLTHROUGH;
12471 default:
goto __pyx_L5_argtuple_error;
12473 kw_args = PyDict_Size(__pyx_kwds);
12474 switch (pos_args) {
12476 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_updateCoef)) != 0)) kw_args--;
12477 else goto __pyx_L5_argtuple_error;
12478 CYTHON_FALLTHROUGH;
12480 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
12482 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, 1); __PYX_ERR(0, 1232, __pyx_L3_error)
12484 CYTHON_FALLTHROUGH;
12486 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
12488 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, 2); __PYX_ERR(0, 1232, __pyx_L3_error)
12490 CYTHON_FALLTHROUGH;
12492 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_diffusionTensor)) != 0)) kw_args--;
12494 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, 3); __PYX_ERR(0, 1232, __pyx_L3_error)
12496 CYTHON_FALLTHROUGH;
12498 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
12500 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, 4); __PYX_ERR(0, 1232, __pyx_L3_error)
12502 CYTHON_FALLTHROUGH;
12504 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
12506 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, 5); __PYX_ERR(0, 1232, __pyx_L3_error)
12509 if (unlikely(kw_args > 0)) {
12510 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusiveVelocityPointEval_sd") < 0)) __PYX_ERR(0, 1232, __pyx_L3_error)
12512 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
12513 goto __pyx_L5_argtuple_error;
12515 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12516 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12517 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12518 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12519 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12520 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12522 __pyx_v_updateCoef = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_updateCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1232, __pyx_L3_error)
12523 __pyx_v_rowptr = ((PyArrayObject *)values[1]);
12524 __pyx_v_colind = ((PyArrayObject *)values[2]);
12525 __pyx_v_diffusionTensor = ((PyArrayObject *)values[3]);
12526 __pyx_v_grad_phi = ((PyArrayObject *)values[4]);
12527 __pyx_v_velocity = ((PyArrayObject *)values[5]);
12529 goto __pyx_L4_argument_unpacking_done;
12530 __pyx_L5_argtuple_error:;
12531 __Pyx_RaiseArgtupleInvalid(
"updateDiffusiveVelocityPointEval_sd", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1232, __pyx_L3_error)
12533 __Pyx_AddTraceback(
"cpostprocessing.updateDiffusiveVelocityPointEval_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
12534 __Pyx_RefNannyFinishContext();
12536 __pyx_L4_argument_unpacking_done:;
12537 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 1233, __pyx_L1_error)
12538 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 1234, __pyx_L1_error)
12539 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_diffusionTensor), __pyx_ptype_5numpy_ndarray, 1,
"diffusionTensor", 0))) __PYX_ERR(0, 1235, __pyx_L1_error)
12540 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 1236, __pyx_L1_error)
12541 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 1237, __pyx_L1_error)
12542 __pyx_r = __pyx_pf_15cpostprocessing_100updateDiffusiveVelocityPointEval_sd(__pyx_self, __pyx_v_updateCoef, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_diffusionTensor, __pyx_v_grad_phi, __pyx_v_velocity);
12549 __Pyx_RefNannyFinishContext();
12553 static PyObject *__pyx_pf_15cpostprocessing_100updateDiffusiveVelocityPointEval_sd(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_diffusionTensor, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
12554 int __pyx_v_nPoints;
12555 PyObject *__pyx_r = NULL;
12556 __Pyx_RefNannyDeclarations
12557 PyObject *__pyx_t_1 = NULL;
12558 PyObject *__pyx_t_2 = NULL;
12559 PyObject *__pyx_t_3 = NULL;
12561 int __pyx_lineno = 0;
12562 const char *__pyx_filename = NULL;
12563 int __pyx_clineno = 0;
12564 __Pyx_RefNannySetupContext(
"updateDiffusiveVelocityPointEval_sd", 0);
12573 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_velocity), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1238, __pyx_L1_error)
12574 __Pyx_GOTREF(__pyx_t_1);
12575 __pyx_t_2 = __Pyx_PyInt_From_Py_intptr_t((__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1238, __pyx_L1_error)
12576 __Pyx_GOTREF(__pyx_t_2);
12577 __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1238, __pyx_L1_error)
12578 __Pyx_GOTREF(__pyx_t_3);
12579 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12580 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12581 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L1_error)
12582 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12583 __pyx_v_nPoints = __pyx_t_4;
12592 postprocessDiffusiveVelocityPointEval_sd(__pyx_v_nPoints, (__pyx_v_velocity->dimensions[(__pyx_v_velocity->nd - 1)]), __pyx_v_updateCoef, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_diffusionTensor->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
12603 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12606 __Pyx_XDECREF(__pyx_t_1);
12607 __Pyx_XDECREF(__pyx_t_2);
12608 __Pyx_XDECREF(__pyx_t_3);
12609 __Pyx_AddTraceback(
"cpostprocessing.updateDiffusiveVelocityPointEval_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
12612 __Pyx_XGIVEREF(__pyx_r);
12613 __Pyx_RefNannyFinishContext();
12626 static PyObject *__pyx_pw_15cpostprocessing_103calculateElementResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12627 static PyMethodDef __pyx_mdef_15cpostprocessing_103calculateElementResidualPWL = {
"calculateElementResidualPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_103calculateElementResidualPWL, METH_VARARGS|METH_KEYWORDS, 0};
12628 static PyObject *__pyx_pw_15cpostprocessing_103calculateElementResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12629 PyArrayObject *__pyx_v_alpha = 0;
12630 PyArrayObject *__pyx_v_elementResidual = 0;
12631 PyArrayObject *__pyx_v_elementResidualPWL = 0;
12632 int __pyx_lineno = 0;
12633 const char *__pyx_filename = NULL;
12634 int __pyx_clineno = 0;
12635 PyObject *__pyx_r = 0;
12636 __Pyx_RefNannyDeclarations
12637 __Pyx_RefNannySetupContext(
"calculateElementResidualPWL (wrapper)", 0);
12639 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_alpha,&__pyx_n_s_elementResidual,&__pyx_n_s_elementResidualPWL,0};
12640 PyObject* values[3] = {0,0,0};
12641 if (unlikely(__pyx_kwds)) {
12642 Py_ssize_t kw_args;
12643 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12644 switch (pos_args) {
12645 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12646 CYTHON_FALLTHROUGH;
12647 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12648 CYTHON_FALLTHROUGH;
12649 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12650 CYTHON_FALLTHROUGH;
12652 default:
goto __pyx_L5_argtuple_error;
12654 kw_args = PyDict_Size(__pyx_kwds);
12655 switch (pos_args) {
12657 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_alpha)) != 0)) kw_args--;
12658 else goto __pyx_L5_argtuple_error;
12659 CYTHON_FALLTHROUGH;
12661 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
12663 __Pyx_RaiseArgtupleInvalid(
"calculateElementResidualPWL", 1, 3, 3, 1); __PYX_ERR(0, 1248, __pyx_L3_error)
12665 CYTHON_FALLTHROUGH;
12667 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidualPWL)) != 0)) kw_args--;
12669 __Pyx_RaiseArgtupleInvalid(
"calculateElementResidualPWL", 1, 3, 3, 2); __PYX_ERR(0, 1248, __pyx_L3_error)
12672 if (unlikely(kw_args > 0)) {
12673 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateElementResidualPWL") < 0)) __PYX_ERR(0, 1248, __pyx_L3_error)
12675 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12676 goto __pyx_L5_argtuple_error;
12678 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12679 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12680 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12682 __pyx_v_alpha = ((PyArrayObject *)values[0]);
12683 __pyx_v_elementResidual = ((PyArrayObject *)values[1]);
12684 __pyx_v_elementResidualPWL = ((PyArrayObject *)values[2]);
12686 goto __pyx_L4_argument_unpacking_done;
12687 __pyx_L5_argtuple_error:;
12688 __Pyx_RaiseArgtupleInvalid(
"calculateElementResidualPWL", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1248, __pyx_L3_error)
12690 __Pyx_AddTraceback(
"cpostprocessing.calculateElementResidualPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
12691 __Pyx_RefNannyFinishContext();
12693 __pyx_L4_argument_unpacking_done:;
12694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alpha), __pyx_ptype_5numpy_ndarray, 1,
"alpha", 0))) __PYX_ERR(0, 1248, __pyx_L1_error)
12695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 1249, __pyx_L1_error)
12696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidualPWL), __pyx_ptype_5numpy_ndarray, 1,
"elementResidualPWL", 0))) __PYX_ERR(0, 1250, __pyx_L1_error)
12697 __pyx_r = __pyx_pf_15cpostprocessing_102calculateElementResidualPWL(__pyx_self, __pyx_v_alpha, __pyx_v_elementResidual, __pyx_v_elementResidualPWL);
12704 __Pyx_RefNannyFinishContext();
12708 static PyObject *__pyx_pf_15cpostprocessing_102calculateElementResidualPWL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_alpha, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_elementResidualPWL) {
12709 PyObject *__pyx_r = NULL;
12710 __Pyx_RefNannyDeclarations
12711 __Pyx_RefNannySetupContext(
"calculateElementResidualPWL", 0);
12720 calculateElementResidualPWL((__pyx_v_elementResidual->dimensions[0]), (__pyx_v_elementResidual->dimensions[1]), (__pyx_v_elementResidualPWL->dimensions[1]), ((
double *)__pyx_v_alpha->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_elementResidualPWL->data));
12731 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12732 __Pyx_XGIVEREF(__pyx_r);
12733 __Pyx_RefNannyFinishContext();
12746 static PyObject *__pyx_pw_15cpostprocessing_105copyElementBoundaryVelocityToParVec(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12747 static PyMethodDef __pyx_mdef_15cpostprocessing_105copyElementBoundaryVelocityToParVec = {
"copyElementBoundaryVelocityToParVec", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_105copyElementBoundaryVelocityToParVec, METH_VARARGS|METH_KEYWORDS, 0};
12748 static PyObject *__pyx_pw_15cpostprocessing_105copyElementBoundaryVelocityToParVec(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12749 PyArrayObject *__pyx_v_ebq_velocity = 0;
12750 PyArrayObject *__pyx_v_permutations = 0;
12751 PyArrayObject *__pyx_v_ebq_v_par_local = 0;
12752 int __pyx_lineno = 0;
12753 const char *__pyx_filename = NULL;
12754 int __pyx_clineno = 0;
12755 PyObject *__pyx_r = 0;
12756 __Pyx_RefNannyDeclarations
12757 __Pyx_RefNannySetupContext(
"copyElementBoundaryVelocityToParVec (wrapper)", 0);
12759 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ebq_velocity,&__pyx_n_s_permutations,&__pyx_n_s_ebq_v_par_local,0};
12760 PyObject* values[3] = {0,0,0};
12761 if (unlikely(__pyx_kwds)) {
12762 Py_ssize_t kw_args;
12763 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12764 switch (pos_args) {
12765 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12766 CYTHON_FALLTHROUGH;
12767 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12768 CYTHON_FALLTHROUGH;
12769 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12770 CYTHON_FALLTHROUGH;
12772 default:
goto __pyx_L5_argtuple_error;
12774 kw_args = PyDict_Size(__pyx_kwds);
12775 switch (pos_args) {
12777 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
12778 else goto __pyx_L5_argtuple_error;
12779 CYTHON_FALLTHROUGH;
12781 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
12783 __Pyx_RaiseArgtupleInvalid(
"copyElementBoundaryVelocityToParVec", 1, 3, 3, 1); __PYX_ERR(0, 1258, __pyx_L3_error)
12785 CYTHON_FALLTHROUGH;
12787 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v_par_local)) != 0)) kw_args--;
12789 __Pyx_RaiseArgtupleInvalid(
"copyElementBoundaryVelocityToParVec", 1, 3, 3, 2); __PYX_ERR(0, 1258, __pyx_L3_error)
12792 if (unlikely(kw_args > 0)) {
12793 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyElementBoundaryVelocityToParVec") < 0)) __PYX_ERR(0, 1258, __pyx_L3_error)
12795 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12796 goto __pyx_L5_argtuple_error;
12798 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12799 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12800 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12802 __pyx_v_ebq_velocity = ((PyArrayObject *)values[0]);
12803 __pyx_v_permutations = ((PyArrayObject *)values[1]);
12804 __pyx_v_ebq_v_par_local = ((PyArrayObject *)values[2]);
12806 goto __pyx_L4_argument_unpacking_done;
12807 __pyx_L5_argtuple_error:;
12808 __Pyx_RaiseArgtupleInvalid(
"copyElementBoundaryVelocityToParVec", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1258, __pyx_L3_error)
12810 __Pyx_AddTraceback(
"cpostprocessing.copyElementBoundaryVelocityToParVec", __pyx_clineno, __pyx_lineno, __pyx_filename);
12811 __Pyx_RefNannyFinishContext();
12813 __pyx_L4_argument_unpacking_done:;
12814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 1258, __pyx_L1_error)
12815 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 1259, __pyx_L1_error)
12816 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v_par_local", 0))) __PYX_ERR(0, 1260, __pyx_L1_error)
12817 __pyx_r = __pyx_pf_15cpostprocessing_104copyElementBoundaryVelocityToParVec(__pyx_self, __pyx_v_ebq_velocity, __pyx_v_permutations, __pyx_v_ebq_v_par_local);
12824 __Pyx_RefNannyFinishContext();
12828 static PyObject *__pyx_pf_15cpostprocessing_104copyElementBoundaryVelocityToParVec(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local) {
12832 int __pyx_v_nElementBoundaries;
12833 int __pyx_v_nQuadraturePoints;
12834 int __pyx_v_nSpace;
12835 __Pyx_LocalBuf_ND __pyx_pybuffernd_permutations;
12836 __Pyx_Buffer __pyx_pybuffer_permutations;
12837 PyObject *__pyx_r = NULL;
12838 __Pyx_RefNannyDeclarations
12848 PyObject *__pyx_t_10 = NULL;
12849 PyObject *__pyx_t_11 = NULL;
12850 PyObject *__pyx_t_12 = NULL;
12851 PyObject *__pyx_t_13 = NULL;
12852 Py_ssize_t __pyx_t_14;
12853 Py_ssize_t __pyx_t_15;
12855 PyObject *__pyx_t_17 = NULL;
12856 int __pyx_lineno = 0;
12857 const char *__pyx_filename = NULL;
12858 int __pyx_clineno = 0;
12859 __Pyx_RefNannySetupContext(
"copyElementBoundaryVelocityToParVec", 0);
12860 __pyx_pybuffer_permutations.pybuffer.buf = NULL;
12861 __pyx_pybuffer_permutations.refcount = 0;
12862 __pyx_pybuffernd_permutations.data = NULL;
12863 __pyx_pybuffernd_permutations.rcbuffer = &__pyx_pybuffer_permutations;
12865 __Pyx_BufFmt_StackElem __pyx_stack[1];
12866 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer, (PyObject*)__pyx_v_permutations, &__Pyx_TypeInfo_int, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 1258, __pyx_L1_error)
12868 __pyx_pybuffernd_permutations.diminfo[0].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_permutations.diminfo[0].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_permutations.diminfo[1].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_permutations.diminfo[1].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[1];
12877 __pyx_v_nElementBoundaries = (__pyx_v_ebq_v_par_local->dimensions[0]);
12886 __pyx_v_nQuadraturePoints = (__pyx_v_ebq_v_par_local->dimensions[1]);
12895 __pyx_v_nSpace = (__pyx_v_ebq_v_par_local->dimensions[2]);
12904 __pyx_t_1 = __pyx_v_nElementBoundaries;
12905 __pyx_t_2 = __pyx_t_1;
12906 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
12907 __pyx_v_ebN = __pyx_t_3;
12916 __pyx_t_4 = __pyx_v_nQuadraturePoints;
12917 __pyx_t_5 = __pyx_t_4;
12918 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
12919 __pyx_v_k = __pyx_t_6;
12928 __pyx_t_7 = __pyx_v_nSpace;
12929 __pyx_t_8 = __pyx_t_7;
12930 for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
12931 __pyx_v_I = __pyx_t_9;
12940 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1270, __pyx_L1_error)
12941 __Pyx_GOTREF(__pyx_t_10);
12942 __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_k);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1270, __pyx_L1_error)
12943 __Pyx_GOTREF(__pyx_t_11);
12944 __pyx_t_12 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1270, __pyx_L1_error)
12945 __Pyx_GOTREF(__pyx_t_12);
12946 __pyx_t_13 = PyTuple_New(3);
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1270, __pyx_L1_error)
12947 __Pyx_GOTREF(__pyx_t_13);
12948 __Pyx_GIVEREF(__pyx_t_10);
12949 PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_10);
12950 __Pyx_GIVEREF(__pyx_t_11);
12951 PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_11);
12952 __Pyx_GIVEREF(__pyx_t_12);
12953 PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_12);
12957 __pyx_t_12 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_ebq_velocity), __pyx_t_13);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1270, __pyx_L1_error)
12958 __Pyx_GOTREF(__pyx_t_12);
12959 __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
12960 __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1270, __pyx_L1_error)
12961 __Pyx_GOTREF(__pyx_t_13);
12962 __pyx_t_14 = __pyx_v_ebN;
12963 __pyx_t_15 = __pyx_v_k;
12965 if (__pyx_t_14 < 0) {
12966 __pyx_t_14 += __pyx_pybuffernd_permutations.diminfo[0].shape;
12967 if (unlikely(__pyx_t_14 < 0)) __pyx_t_16 = 0;
12968 }
else if (unlikely(__pyx_t_14 >= __pyx_pybuffernd_permutations.diminfo[0].shape)) __pyx_t_16 = 0;
12969 if (__pyx_t_15 < 0) {
12970 __pyx_t_15 += __pyx_pybuffernd_permutations.diminfo[1].shape;
12971 if (unlikely(__pyx_t_15 < 0)) __pyx_t_16 = 1;
12972 }
else if (unlikely(__pyx_t_15 >= __pyx_pybuffernd_permutations.diminfo[1].shape)) __pyx_t_16 = 1;
12973 if (unlikely(__pyx_t_16 != -1)) {
12974 __Pyx_RaiseBufferIndexError(__pyx_t_16);
12975 __PYX_ERR(0, 1270, __pyx_L1_error)
12977 __pyx_t_11 = __Pyx_PyInt_From_int((*__Pyx_BufPtrStrided2d(
int *, __pyx_pybuffernd_permutations.rcbuffer->pybuffer.buf, __pyx_t_14, __pyx_pybuffernd_permutations.diminfo[0].strides, __pyx_t_15, __pyx_pybuffernd_permutations.diminfo[1].strides)));
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1270, __pyx_L1_error)
12978 __Pyx_GOTREF(__pyx_t_11);
12979 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1270, __pyx_L1_error)
12980 __Pyx_GOTREF(__pyx_t_10);
12981 __pyx_t_17 = PyTuple_New(3);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 1270, __pyx_L1_error)
12982 __Pyx_GOTREF(__pyx_t_17);
12983 __Pyx_GIVEREF(__pyx_t_13);
12984 PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_13);
12985 __Pyx_GIVEREF(__pyx_t_11);
12986 PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_t_11);
12987 __Pyx_GIVEREF(__pyx_t_10);
12988 PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_10);
12992 if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_t_17, __pyx_t_12) < 0)) __PYX_ERR(0, 1270, __pyx_L1_error)
12993 __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
12994 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
13008 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13011 __Pyx_XDECREF(__pyx_t_10);
13012 __Pyx_XDECREF(__pyx_t_11);
13013 __Pyx_XDECREF(__pyx_t_12);
13014 __Pyx_XDECREF(__pyx_t_13);
13015 __Pyx_XDECREF(__pyx_t_17);
13016 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
13017 __Pyx_PyThreadState_declare
13018 __Pyx_PyThreadState_assign
13019 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
13020 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13021 __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}
13022 __Pyx_AddTraceback(
"cpostprocessing.copyElementBoundaryVelocityToParVec", __pyx_clineno, __pyx_lineno, __pyx_filename);
13026 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13028 __Pyx_XGIVEREF(__pyx_r);
13029 __Pyx_RefNannyFinishContext();
13042 static PyObject *__pyx_pw_15cpostprocessing_107addAverageToParVec(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13043 static PyMethodDef __pyx_mdef_15cpostprocessing_107addAverageToParVec = {
"addAverageToParVec", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_107addAverageToParVec, METH_VARARGS|METH_KEYWORDS, 0};
13044 static PyObject *__pyx_pw_15cpostprocessing_107addAverageToParVec(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13045 PyArrayObject *__pyx_v_ebq_velocityAverage = 0;
13046 PyArrayObject *__pyx_v_permutations = 0;
13047 PyArrayObject *__pyx_v_ebq_v_par_local = 0;
13048 int __pyx_lineno = 0;
13049 const char *__pyx_filename = NULL;
13050 int __pyx_clineno = 0;
13051 PyObject *__pyx_r = 0;
13052 __Pyx_RefNannyDeclarations
13053 __Pyx_RefNannySetupContext(
"addAverageToParVec (wrapper)", 0);
13055 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ebq_velocityAverage,&__pyx_n_s_permutations,&__pyx_n_s_ebq_v_par_local,0};
13056 PyObject* values[3] = {0,0,0};
13057 if (unlikely(__pyx_kwds)) {
13058 Py_ssize_t kw_args;
13059 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13060 switch (pos_args) {
13061 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13062 CYTHON_FALLTHROUGH;
13063 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13064 CYTHON_FALLTHROUGH;
13065 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13066 CYTHON_FALLTHROUGH;
13068 default:
goto __pyx_L5_argtuple_error;
13070 kw_args = PyDict_Size(__pyx_kwds);
13071 switch (pos_args) {
13073 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocityAverage)) != 0)) kw_args--;
13074 else goto __pyx_L5_argtuple_error;
13075 CYTHON_FALLTHROUGH;
13077 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
13079 __Pyx_RaiseArgtupleInvalid(
"addAverageToParVec", 1, 3, 3, 1); __PYX_ERR(0, 1272, __pyx_L3_error)
13081 CYTHON_FALLTHROUGH;
13083 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v_par_local)) != 0)) kw_args--;
13085 __Pyx_RaiseArgtupleInvalid(
"addAverageToParVec", 1, 3, 3, 2); __PYX_ERR(0, 1272, __pyx_L3_error)
13088 if (unlikely(kw_args > 0)) {
13089 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"addAverageToParVec") < 0)) __PYX_ERR(0, 1272, __pyx_L3_error)
13091 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
13092 goto __pyx_L5_argtuple_error;
13094 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13095 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13096 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13098 __pyx_v_ebq_velocityAverage = ((PyArrayObject *)values[0]);
13099 __pyx_v_permutations = ((PyArrayObject *)values[1]);
13100 __pyx_v_ebq_v_par_local = ((PyArrayObject *)values[2]);
13102 goto __pyx_L4_argument_unpacking_done;
13103 __pyx_L5_argtuple_error:;
13104 __Pyx_RaiseArgtupleInvalid(
"addAverageToParVec", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1272, __pyx_L3_error)
13106 __Pyx_AddTraceback(
"cpostprocessing.addAverageToParVec", __pyx_clineno, __pyx_lineno, __pyx_filename);
13107 __Pyx_RefNannyFinishContext();
13109 __pyx_L4_argument_unpacking_done:;
13110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocityAverage), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocityAverage", 0))) __PYX_ERR(0, 1272, __pyx_L1_error)
13111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 1273, __pyx_L1_error)
13112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v_par_local", 0))) __PYX_ERR(0, 1274, __pyx_L1_error)
13113 __pyx_r = __pyx_pf_15cpostprocessing_106addAverageToParVec(__pyx_self, __pyx_v_ebq_velocityAverage, __pyx_v_permutations, __pyx_v_ebq_v_par_local);
13120 __Pyx_RefNannyFinishContext();
13124 static PyObject *__pyx_pf_15cpostprocessing_106addAverageToParVec(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocityAverage, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local) {
13128 int __pyx_v_nElementBoundaries;
13129 int __pyx_v_nQuadraturePoints;
13130 int __pyx_v_nSpace;
13131 __Pyx_LocalBuf_ND __pyx_pybuffernd_permutations;
13132 __Pyx_Buffer __pyx_pybuffer_permutations;
13133 PyObject *__pyx_r = NULL;
13134 __Pyx_RefNannyDeclarations
13144 PyObject *__pyx_t_10 = NULL;
13145 Py_ssize_t __pyx_t_11;
13146 Py_ssize_t __pyx_t_12;
13148 PyObject *__pyx_t_14 = NULL;
13149 PyObject *__pyx_t_15 = NULL;
13150 PyObject *__pyx_t_16 = NULL;
13151 PyObject *__pyx_t_17 = NULL;
13152 PyObject *__pyx_t_18 = NULL;
13153 int __pyx_lineno = 0;
13154 const char *__pyx_filename = NULL;
13155 int __pyx_clineno = 0;
13156 __Pyx_RefNannySetupContext(
"addAverageToParVec", 0);
13157 __pyx_pybuffer_permutations.pybuffer.buf = NULL;
13158 __pyx_pybuffer_permutations.refcount = 0;
13159 __pyx_pybuffernd_permutations.data = NULL;
13160 __pyx_pybuffernd_permutations.rcbuffer = &__pyx_pybuffer_permutations;
13162 __Pyx_BufFmt_StackElem __pyx_stack[1];
13163 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer, (PyObject*)__pyx_v_permutations, &__Pyx_TypeInfo_int, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 1272, __pyx_L1_error)
13165 __pyx_pybuffernd_permutations.diminfo[0].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_permutations.diminfo[0].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_permutations.diminfo[1].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_permutations.diminfo[1].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[1];
13174 __pyx_v_nElementBoundaries = (__pyx_v_ebq_v_par_local->dimensions[0]);
13183 __pyx_v_nQuadraturePoints = (__pyx_v_ebq_v_par_local->dimensions[1]);
13192 __pyx_v_nSpace = (__pyx_v_ebq_v_par_local->dimensions[2]);
13201 __pyx_t_1 = __pyx_v_nElementBoundaries;
13202 __pyx_t_2 = __pyx_t_1;
13203 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
13204 __pyx_v_ebN = __pyx_t_3;
13213 __pyx_t_4 = __pyx_v_nQuadraturePoints;
13214 __pyx_t_5 = __pyx_t_4;
13215 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
13216 __pyx_v_k = __pyx_t_6;
13225 __pyx_t_7 = __pyx_v_nSpace;
13226 __pyx_t_8 = __pyx_t_7;
13227 for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
13228 __pyx_v_I = __pyx_t_9;
13237 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1284, __pyx_L1_error)
13238 __Pyx_GOTREF(__pyx_t_10);
13239 __pyx_t_11 = __pyx_v_ebN;
13240 __pyx_t_12 = __pyx_v_k;
13242 if (__pyx_t_11 < 0) {
13243 __pyx_t_11 += __pyx_pybuffernd_permutations.diminfo[0].shape;
13244 if (unlikely(__pyx_t_11 < 0)) __pyx_t_13 = 0;
13245 }
else if (unlikely(__pyx_t_11 >= __pyx_pybuffernd_permutations.diminfo[0].shape)) __pyx_t_13 = 0;
13246 if (__pyx_t_12 < 0) {
13247 __pyx_t_12 += __pyx_pybuffernd_permutations.diminfo[1].shape;
13248 if (unlikely(__pyx_t_12 < 0)) __pyx_t_13 = 1;
13249 }
else if (unlikely(__pyx_t_12 >= __pyx_pybuffernd_permutations.diminfo[1].shape)) __pyx_t_13 = 1;
13250 if (unlikely(__pyx_t_13 != -1)) {
13251 __Pyx_RaiseBufferIndexError(__pyx_t_13);
13252 __PYX_ERR(0, 1284, __pyx_L1_error)
13254 __pyx_t_14 = __Pyx_PyInt_From_int((*__Pyx_BufPtrStrided2d(
int *, __pyx_pybuffernd_permutations.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_permutations.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_permutations.diminfo[1].strides)));
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1284, __pyx_L1_error)
13255 __Pyx_GOTREF(__pyx_t_14);
13256 __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1284, __pyx_L1_error)
13257 __Pyx_GOTREF(__pyx_t_15);
13258 __pyx_t_16 = PyTuple_New(3);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1284, __pyx_L1_error)
13259 __Pyx_GOTREF(__pyx_t_16);
13260 __Pyx_GIVEREF(__pyx_t_10);
13261 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_10);
13262 __Pyx_GIVEREF(__pyx_t_14);
13263 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_14);
13264 __Pyx_GIVEREF(__pyx_t_15);
13265 PyTuple_SET_ITEM(__pyx_t_16, 2, __pyx_t_15);
13269 __pyx_t_15 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_t_16);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1284, __pyx_L1_error)
13270 __Pyx_GOTREF(__pyx_t_15);
13271 __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1284, __pyx_L1_error)
13272 __Pyx_GOTREF(__pyx_t_14);
13273 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_k);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1284, __pyx_L1_error)
13274 __Pyx_GOTREF(__pyx_t_10);
13275 __pyx_t_17 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 1284, __pyx_L1_error)
13276 __Pyx_GOTREF(__pyx_t_17);
13277 __pyx_t_18 = PyTuple_New(3);
if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1284, __pyx_L1_error)
13278 __Pyx_GOTREF(__pyx_t_18);
13279 __Pyx_GIVEREF(__pyx_t_14);
13280 PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_14);
13281 __Pyx_GIVEREF(__pyx_t_10);
13282 PyTuple_SET_ITEM(__pyx_t_18, 1, __pyx_t_10);
13283 __Pyx_GIVEREF(__pyx_t_17);
13284 PyTuple_SET_ITEM(__pyx_t_18, 2, __pyx_t_17);
13288 __pyx_t_17 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_ebq_velocityAverage), __pyx_t_18);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 1284, __pyx_L1_error)
13289 __Pyx_GOTREF(__pyx_t_17);
13290 __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
13291 __pyx_t_18 = PyNumber_InPlaceAdd(__pyx_t_15, __pyx_t_17);
if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1284, __pyx_L1_error)
13292 __Pyx_GOTREF(__pyx_t_18);
13293 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
13294 __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
13295 if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_t_16, __pyx_t_18) < 0)) __PYX_ERR(0, 1284, __pyx_L1_error)
13296 __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
13297 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
13311 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13314 __Pyx_XDECREF(__pyx_t_10);
13315 __Pyx_XDECREF(__pyx_t_14);
13316 __Pyx_XDECREF(__pyx_t_15);
13317 __Pyx_XDECREF(__pyx_t_16);
13318 __Pyx_XDECREF(__pyx_t_17);
13319 __Pyx_XDECREF(__pyx_t_18);
13320 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
13321 __Pyx_PyThreadState_declare
13322 __Pyx_PyThreadState_assign
13323 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
13324 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13325 __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}
13326 __Pyx_AddTraceback(
"cpostprocessing.addAverageToParVec", __pyx_clineno, __pyx_lineno, __pyx_filename);
13330 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13332 __Pyx_XGIVEREF(__pyx_r);
13333 __Pyx_RefNannyFinishContext();
13346 static PyObject *__pyx_pw_15cpostprocessing_109copyParVecToElementBoundaryVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13347 static PyMethodDef __pyx_mdef_15cpostprocessing_109copyParVecToElementBoundaryVelocity = {
"copyParVecToElementBoundaryVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15cpostprocessing_109copyParVecToElementBoundaryVelocity, METH_VARARGS|METH_KEYWORDS, 0};
13348 static PyObject *__pyx_pw_15cpostprocessing_109copyParVecToElementBoundaryVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13349 PyArrayObject *__pyx_v_ebq_velocity = 0;
13350 PyArrayObject *__pyx_v_permutations = 0;
13351 PyArrayObject *__pyx_v_ebq_v_par_local = 0;
13352 int __pyx_lineno = 0;
13353 const char *__pyx_filename = NULL;
13354 int __pyx_clineno = 0;
13355 PyObject *__pyx_r = 0;
13356 __Pyx_RefNannyDeclarations
13357 __Pyx_RefNannySetupContext(
"copyParVecToElementBoundaryVelocity (wrapper)", 0);
13359 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ebq_velocity,&__pyx_n_s_permutations,&__pyx_n_s_ebq_v_par_local,0};
13360 PyObject* values[3] = {0,0,0};
13361 if (unlikely(__pyx_kwds)) {
13362 Py_ssize_t kw_args;
13363 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13364 switch (pos_args) {
13365 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13366 CYTHON_FALLTHROUGH;
13367 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13368 CYTHON_FALLTHROUGH;
13369 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13370 CYTHON_FALLTHROUGH;
13372 default:
goto __pyx_L5_argtuple_error;
13374 kw_args = PyDict_Size(__pyx_kwds);
13375 switch (pos_args) {
13377 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_velocity)) != 0)) kw_args--;
13378 else goto __pyx_L5_argtuple_error;
13379 CYTHON_FALLTHROUGH;
13381 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
13383 __Pyx_RaiseArgtupleInvalid(
"copyParVecToElementBoundaryVelocity", 1, 3, 3, 1); __PYX_ERR(0, 1286, __pyx_L3_error)
13385 CYTHON_FALLTHROUGH;
13387 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_v_par_local)) != 0)) kw_args--;
13389 __Pyx_RaiseArgtupleInvalid(
"copyParVecToElementBoundaryVelocity", 1, 3, 3, 2); __PYX_ERR(0, 1286, __pyx_L3_error)
13392 if (unlikely(kw_args > 0)) {
13393 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyParVecToElementBoundaryVelocity") < 0)) __PYX_ERR(0, 1286, __pyx_L3_error)
13395 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
13396 goto __pyx_L5_argtuple_error;
13398 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13399 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13400 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13402 __pyx_v_ebq_velocity = ((PyArrayObject *)values[0]);
13403 __pyx_v_permutations = ((PyArrayObject *)values[1]);
13404 __pyx_v_ebq_v_par_local = ((PyArrayObject *)values[2]);
13406 goto __pyx_L4_argument_unpacking_done;
13407 __pyx_L5_argtuple_error:;
13408 __Pyx_RaiseArgtupleInvalid(
"copyParVecToElementBoundaryVelocity", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1286, __pyx_L3_error)
13410 __Pyx_AddTraceback(
"cpostprocessing.copyParVecToElementBoundaryVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
13411 __Pyx_RefNannyFinishContext();
13413 __pyx_L4_argument_unpacking_done:;
13414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_velocity), __pyx_ptype_5numpy_ndarray, 1,
"ebq_velocity", 0))) __PYX_ERR(0, 1286, __pyx_L1_error)
13415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 1287, __pyx_L1_error)
13416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_ptype_5numpy_ndarray, 1,
"ebq_v_par_local", 0))) __PYX_ERR(0, 1288, __pyx_L1_error)
13417 __pyx_r = __pyx_pf_15cpostprocessing_108copyParVecToElementBoundaryVelocity(__pyx_self, __pyx_v_ebq_velocity, __pyx_v_permutations, __pyx_v_ebq_v_par_local);
13424 __Pyx_RefNannyFinishContext();
13428 static PyObject *__pyx_pf_15cpostprocessing_108copyParVecToElementBoundaryVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_ebq_velocity, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_ebq_v_par_local) {
13432 int __pyx_v_nElementBoundaries;
13433 int __pyx_v_nQuadraturePoints;
13434 int __pyx_v_nSpace;
13435 __Pyx_LocalBuf_ND __pyx_pybuffernd_permutations;
13436 __Pyx_Buffer __pyx_pybuffer_permutations;
13437 PyObject *__pyx_r = NULL;
13438 __Pyx_RefNannyDeclarations
13448 PyObject *__pyx_t_10 = NULL;
13449 Py_ssize_t __pyx_t_11;
13450 Py_ssize_t __pyx_t_12;
13452 PyObject *__pyx_t_14 = NULL;
13453 PyObject *__pyx_t_15 = NULL;
13454 PyObject *__pyx_t_16 = NULL;
13455 PyObject *__pyx_t_17 = NULL;
13456 int __pyx_lineno = 0;
13457 const char *__pyx_filename = NULL;
13458 int __pyx_clineno = 0;
13459 __Pyx_RefNannySetupContext(
"copyParVecToElementBoundaryVelocity", 0);
13460 __pyx_pybuffer_permutations.pybuffer.buf = NULL;
13461 __pyx_pybuffer_permutations.refcount = 0;
13462 __pyx_pybuffernd_permutations.data = NULL;
13463 __pyx_pybuffernd_permutations.rcbuffer = &__pyx_pybuffer_permutations;
13465 __Pyx_BufFmt_StackElem __pyx_stack[1];
13466 if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer, (PyObject*)__pyx_v_permutations, &__Pyx_TypeInfo_int, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 1286, __pyx_L1_error)
13468 __pyx_pybuffernd_permutations.diminfo[0].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_permutations.diminfo[0].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_permutations.diminfo[1].strides = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_permutations.diminfo[1].shape = __pyx_pybuffernd_permutations.rcbuffer->pybuffer.shape[1];
13477 __pyx_v_nElementBoundaries = (__pyx_v_ebq_v_par_local->dimensions[0]);
13486 __pyx_v_nQuadraturePoints = (__pyx_v_ebq_v_par_local->dimensions[1]);
13495 __pyx_v_nSpace = (__pyx_v_ebq_v_par_local->dimensions[2]);
13504 __pyx_t_1 = __pyx_v_nElementBoundaries;
13505 __pyx_t_2 = __pyx_t_1;
13506 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
13507 __pyx_v_ebN = __pyx_t_3;
13516 __pyx_t_4 = __pyx_v_nQuadraturePoints;
13517 __pyx_t_5 = __pyx_t_4;
13518 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
13519 __pyx_v_k = __pyx_t_6;
13527 __pyx_t_7 = __pyx_v_nSpace;
13528 __pyx_t_8 = __pyx_t_7;
13529 for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
13530 __pyx_v_I = __pyx_t_9;
13537 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1298, __pyx_L1_error)
13538 __Pyx_GOTREF(__pyx_t_10);
13539 __pyx_t_11 = __pyx_v_ebN;
13540 __pyx_t_12 = __pyx_v_k;
13542 if (__pyx_t_11 < 0) {
13543 __pyx_t_11 += __pyx_pybuffernd_permutations.diminfo[0].shape;
13544 if (unlikely(__pyx_t_11 < 0)) __pyx_t_13 = 0;
13545 }
else if (unlikely(__pyx_t_11 >= __pyx_pybuffernd_permutations.diminfo[0].shape)) __pyx_t_13 = 0;
13546 if (__pyx_t_12 < 0) {
13547 __pyx_t_12 += __pyx_pybuffernd_permutations.diminfo[1].shape;
13548 if (unlikely(__pyx_t_12 < 0)) __pyx_t_13 = 1;
13549 }
else if (unlikely(__pyx_t_12 >= __pyx_pybuffernd_permutations.diminfo[1].shape)) __pyx_t_13 = 1;
13550 if (unlikely(__pyx_t_13 != -1)) {
13551 __Pyx_RaiseBufferIndexError(__pyx_t_13);
13552 __PYX_ERR(0, 1298, __pyx_L1_error)
13554 __pyx_t_14 = __Pyx_PyInt_From_int((*__Pyx_BufPtrStrided2d(
int *, __pyx_pybuffernd_permutations.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_permutations.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_permutations.diminfo[1].strides)));
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1298, __pyx_L1_error)
13555 __Pyx_GOTREF(__pyx_t_14);
13556 __pyx_t_15 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1298, __pyx_L1_error)
13557 __Pyx_GOTREF(__pyx_t_15);
13558 __pyx_t_16 = PyTuple_New(3);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1298, __pyx_L1_error)
13559 __Pyx_GOTREF(__pyx_t_16);
13560 __Pyx_GIVEREF(__pyx_t_10);
13561 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_10);
13562 __Pyx_GIVEREF(__pyx_t_14);
13563 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_14);
13564 __Pyx_GIVEREF(__pyx_t_15);
13565 PyTuple_SET_ITEM(__pyx_t_16, 2, __pyx_t_15);
13569 __pyx_t_15 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_ebq_v_par_local), __pyx_t_16);
if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1298, __pyx_L1_error)
13570 __Pyx_GOTREF(__pyx_t_15);
13571 __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
13572 __pyx_t_16 = __Pyx_PyInt_From_int(__pyx_v_ebN);
if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1298, __pyx_L1_error)
13573 __Pyx_GOTREF(__pyx_t_16);
13574 __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_k);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1298, __pyx_L1_error)
13575 __Pyx_GOTREF(__pyx_t_14);
13576 __pyx_t_10 = __Pyx_PyInt_From_int(__pyx_v_I);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1298, __pyx_L1_error)
13577 __Pyx_GOTREF(__pyx_t_10);
13578 __pyx_t_17 = PyTuple_New(3);
if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 1298, __pyx_L1_error)
13579 __Pyx_GOTREF(__pyx_t_17);
13580 __Pyx_GIVEREF(__pyx_t_16);
13581 PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_16);
13582 __Pyx_GIVEREF(__pyx_t_14);
13583 PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_t_14);
13584 __Pyx_GIVEREF(__pyx_t_10);
13585 PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_10);
13589 if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_ebq_velocity), __pyx_t_17, __pyx_t_15) < 0)) __PYX_ERR(0, 1298, __pyx_L1_error)
13590 __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
13591 __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
13605 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13608 __Pyx_XDECREF(__pyx_t_10);
13609 __Pyx_XDECREF(__pyx_t_14);
13610 __Pyx_XDECREF(__pyx_t_15);
13611 __Pyx_XDECREF(__pyx_t_16);
13612 __Pyx_XDECREF(__pyx_t_17);
13613 { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
13614 __Pyx_PyThreadState_declare
13615 __Pyx_PyThreadState_assign
13616 __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
13617 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13618 __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}
13619 __Pyx_AddTraceback(
"cpostprocessing.copyParVecToElementBoundaryVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
13623 __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_permutations.rcbuffer->pybuffer);
13625 __Pyx_XGIVEREF(__pyx_r);
13626 __Pyx_RefNannyFinishContext();
13638 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
13639 PyObject *__pyx_r = NULL;
13640 __Pyx_RefNannyDeclarations
13641 PyObject *__pyx_t_1 = NULL;
13642 int __pyx_lineno = 0;
13643 const char *__pyx_filename = NULL;
13644 int __pyx_clineno = 0;
13645 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
13654 __Pyx_XDECREF(__pyx_r);
13655 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 736, __pyx_L1_error)
13656 __Pyx_GOTREF(__pyx_t_1);
13657 __pyx_r = __pyx_t_1;
13671 __Pyx_XDECREF(__pyx_t_1);
13672 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
13675 __Pyx_XGIVEREF(__pyx_r);
13676 __Pyx_RefNannyFinishContext();
13688 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
13689 PyObject *__pyx_r = NULL;
13690 __Pyx_RefNannyDeclarations
13691 PyObject *__pyx_t_1 = NULL;
13692 int __pyx_lineno = 0;
13693 const char *__pyx_filename = NULL;
13694 int __pyx_clineno = 0;
13695 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
13704 __Pyx_XDECREF(__pyx_r);
13705 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 739, __pyx_L1_error)
13706 __Pyx_GOTREF(__pyx_t_1);
13707 __pyx_r = __pyx_t_1;
13721 __Pyx_XDECREF(__pyx_t_1);
13722 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
13725 __Pyx_XGIVEREF(__pyx_r);
13726 __Pyx_RefNannyFinishContext();
13738 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
13739 PyObject *__pyx_r = NULL;
13740 __Pyx_RefNannyDeclarations
13741 PyObject *__pyx_t_1 = NULL;
13742 int __pyx_lineno = 0;
13743 const char *__pyx_filename = NULL;
13744 int __pyx_clineno = 0;
13745 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
13754 __Pyx_XDECREF(__pyx_r);
13755 __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(2, 742, __pyx_L1_error)
13756 __Pyx_GOTREF(__pyx_t_1);
13757 __pyx_r = __pyx_t_1;
13771 __Pyx_XDECREF(__pyx_t_1);
13772 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
13775 __Pyx_XGIVEREF(__pyx_r);
13776 __Pyx_RefNannyFinishContext();
13788 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) {
13789 PyObject *__pyx_r = NULL;
13790 __Pyx_RefNannyDeclarations
13791 PyObject *__pyx_t_1 = NULL;
13792 int __pyx_lineno = 0;
13793 const char *__pyx_filename = NULL;
13794 int __pyx_clineno = 0;
13795 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
13804 __Pyx_XDECREF(__pyx_r);
13805 __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(2, 745, __pyx_L1_error)
13806 __Pyx_GOTREF(__pyx_t_1);
13807 __pyx_r = __pyx_t_1;
13821 __Pyx_XDECREF(__pyx_t_1);
13822 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
13825 __Pyx_XGIVEREF(__pyx_r);
13826 __Pyx_RefNannyFinishContext();
13838 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) {
13839 PyObject *__pyx_r = NULL;
13840 __Pyx_RefNannyDeclarations
13841 PyObject *__pyx_t_1 = NULL;
13842 int __pyx_lineno = 0;
13843 const char *__pyx_filename = NULL;
13844 int __pyx_clineno = 0;
13845 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
13854 __Pyx_XDECREF(__pyx_r);
13855 __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(2, 748, __pyx_L1_error)
13856 __Pyx_GOTREF(__pyx_t_1);
13857 __pyx_r = __pyx_t_1;
13871 __Pyx_XDECREF(__pyx_t_1);
13872 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
13875 __Pyx_XGIVEREF(__pyx_r);
13876 __Pyx_RefNannyFinishContext();
13888 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
13889 PyObject *__pyx_r = NULL;
13890 __Pyx_RefNannyDeclarations
13892 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
13901 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
13911 __Pyx_XDECREF(__pyx_r);
13912 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
13913 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
13933 __Pyx_XDECREF(__pyx_r);
13934 __Pyx_INCREF(__pyx_empty_tuple);
13935 __pyx_r = __pyx_empty_tuple;
13949 __Pyx_XGIVEREF(__pyx_r);
13950 __Pyx_RefNannyFinishContext();
13962 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
13963 __Pyx_RefNannyDeclarations
13964 __Pyx_RefNannySetupContext(
"set_array_base", 0);
13973 Py_INCREF(__pyx_v_base);
13982 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
13993 __Pyx_RefNannyFinishContext();
14004 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
14005 PyObject *__pyx_v_base;
14006 PyObject *__pyx_r = NULL;
14007 __Pyx_RefNannyDeclarations
14009 __Pyx_RefNannySetupContext(
"get_array_base", 0);
14018 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
14027 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
14037 __Pyx_XDECREF(__pyx_r);
14038 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14057 __Pyx_XDECREF(__pyx_r);
14058 __Pyx_INCREF(((PyObject *)__pyx_v_base));
14059 __pyx_r = ((PyObject *)__pyx_v_base);
14072 __Pyx_XGIVEREF(__pyx_r);
14073 __Pyx_RefNannyFinishContext();
14085 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
14087 __Pyx_RefNannyDeclarations
14088 PyObject *__pyx_t_1 = NULL;
14089 PyObject *__pyx_t_2 = NULL;
14090 PyObject *__pyx_t_3 = NULL;
14092 PyObject *__pyx_t_5 = NULL;
14093 PyObject *__pyx_t_6 = NULL;
14094 PyObject *__pyx_t_7 = NULL;
14095 PyObject *__pyx_t_8 = NULL;
14096 int __pyx_lineno = 0;
14097 const char *__pyx_filename = NULL;
14098 int __pyx_clineno = 0;
14099 __Pyx_RefNannySetupContext(
"import_array", 0);
14109 __Pyx_PyThreadState_declare
14110 __Pyx_PyThreadState_assign
14111 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
14112 __Pyx_XGOTREF(__pyx_t_1);
14113 __Pyx_XGOTREF(__pyx_t_2);
14114 __Pyx_XGOTREF(__pyx_t_3);
14124 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(2, 943, __pyx_L3_error)
14134 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
14135 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
14136 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14137 goto __pyx_L8_try_end;
14147 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
14149 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
14150 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 944, __pyx_L5_except_error)
14151 __Pyx_GOTREF(__pyx_t_5);
14152 __Pyx_GOTREF(__pyx_t_6);
14153 __Pyx_GOTREF(__pyx_t_7);
14162 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__3, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 945, __pyx_L5_except_error)
14163 __Pyx_GOTREF(__pyx_t_8);
14164 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
14165 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14166 __PYX_ERR(2, 945, __pyx_L5_except_error)
14168 goto __pyx_L5_except_error;
14169 __pyx_L5_except_error:;
14178 __Pyx_XGIVEREF(__pyx_t_1);
14179 __Pyx_XGIVEREF(__pyx_t_2);
14180 __Pyx_XGIVEREF(__pyx_t_3);
14181 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
14182 goto __pyx_L1_error;
14198 __Pyx_XDECREF(__pyx_t_5);
14199 __Pyx_XDECREF(__pyx_t_6);
14200 __Pyx_XDECREF(__pyx_t_7);
14201 __Pyx_XDECREF(__pyx_t_8);
14202 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
14205 __Pyx_RefNannyFinishContext();
14217 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
14219 __Pyx_RefNannyDeclarations
14220 PyObject *__pyx_t_1 = NULL;
14221 PyObject *__pyx_t_2 = NULL;
14222 PyObject *__pyx_t_3 = NULL;
14224 PyObject *__pyx_t_5 = NULL;
14225 PyObject *__pyx_t_6 = NULL;
14226 PyObject *__pyx_t_7 = NULL;
14227 PyObject *__pyx_t_8 = NULL;
14228 int __pyx_lineno = 0;
14229 const char *__pyx_filename = NULL;
14230 int __pyx_clineno = 0;
14231 __Pyx_RefNannySetupContext(
"import_umath", 0);
14241 __Pyx_PyThreadState_declare
14242 __Pyx_PyThreadState_assign
14243 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
14244 __Pyx_XGOTREF(__pyx_t_1);
14245 __Pyx_XGOTREF(__pyx_t_2);
14246 __Pyx_XGOTREF(__pyx_t_3);
14256 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(2, 949, __pyx_L3_error)
14266 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
14267 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
14268 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14269 goto __pyx_L8_try_end;
14279 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
14281 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
14282 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 950, __pyx_L5_except_error)
14283 __Pyx_GOTREF(__pyx_t_5);
14284 __Pyx_GOTREF(__pyx_t_6);
14285 __Pyx_GOTREF(__pyx_t_7);
14294 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__4, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 951, __pyx_L5_except_error)
14295 __Pyx_GOTREF(__pyx_t_8);
14296 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
14297 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14298 __PYX_ERR(2, 951, __pyx_L5_except_error)
14300 goto __pyx_L5_except_error;
14301 __pyx_L5_except_error:;
14310 __Pyx_XGIVEREF(__pyx_t_1);
14311 __Pyx_XGIVEREF(__pyx_t_2);
14312 __Pyx_XGIVEREF(__pyx_t_3);
14313 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
14314 goto __pyx_L1_error;
14330 __Pyx_XDECREF(__pyx_t_5);
14331 __Pyx_XDECREF(__pyx_t_6);
14332 __Pyx_XDECREF(__pyx_t_7);
14333 __Pyx_XDECREF(__pyx_t_8);
14334 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
14337 __Pyx_RefNannyFinishContext();
14349 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
14351 __Pyx_RefNannyDeclarations
14352 PyObject *__pyx_t_1 = NULL;
14353 PyObject *__pyx_t_2 = NULL;
14354 PyObject *__pyx_t_3 = NULL;
14356 PyObject *__pyx_t_5 = NULL;
14357 PyObject *__pyx_t_6 = NULL;
14358 PyObject *__pyx_t_7 = NULL;
14359 PyObject *__pyx_t_8 = NULL;
14360 int __pyx_lineno = 0;
14361 const char *__pyx_filename = NULL;
14362 int __pyx_clineno = 0;
14363 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
14373 __Pyx_PyThreadState_declare
14374 __Pyx_PyThreadState_assign
14375 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
14376 __Pyx_XGOTREF(__pyx_t_1);
14377 __Pyx_XGOTREF(__pyx_t_2);
14378 __Pyx_XGOTREF(__pyx_t_3);
14388 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(2, 955, __pyx_L3_error)
14398 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
14399 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
14400 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14401 goto __pyx_L8_try_end;
14411 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
14413 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
14414 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 956, __pyx_L5_except_error)
14415 __Pyx_GOTREF(__pyx_t_5);
14416 __Pyx_GOTREF(__pyx_t_6);
14417 __Pyx_GOTREF(__pyx_t_7);
14426 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__4, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 957, __pyx_L5_except_error)
14427 __Pyx_GOTREF(__pyx_t_8);
14428 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
14429 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14430 __PYX_ERR(2, 957, __pyx_L5_except_error)
14432 goto __pyx_L5_except_error;
14433 __pyx_L5_except_error:;
14442 __Pyx_XGIVEREF(__pyx_t_1);
14443 __Pyx_XGIVEREF(__pyx_t_2);
14444 __Pyx_XGIVEREF(__pyx_t_3);
14445 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
14446 goto __pyx_L1_error;
14462 __Pyx_XDECREF(__pyx_t_5);
14463 __Pyx_XDECREF(__pyx_t_6);
14464 __Pyx_XDECREF(__pyx_t_7);
14465 __Pyx_XDECREF(__pyx_t_8);
14466 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
14469 __Pyx_RefNannyFinishContext();
14481 static CYTHON_INLINE
int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
14483 __Pyx_RefNannyDeclarations
14484 __Pyx_RefNannySetupContext(
"is_timedelta64_object", 0);
14493 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
14506 __Pyx_RefNannyFinishContext();
14518 static CYTHON_INLINE
int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
14520 __Pyx_RefNannyDeclarations
14521 __Pyx_RefNannySetupContext(
"is_datetime64_object", 0);
14530 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
14543 __Pyx_RefNannyFinishContext();
14555 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
14556 npy_datetime __pyx_r;
14565 __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
14589 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
14590 npy_timedelta __pyx_r;
14599 __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
14623 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
14624 NPY_DATETIMEUNIT __pyx_r;
14631 __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
14647 static PyObject *__pyx_tp_new_15cpostprocessing_NodeStarFactor(PyTypeObject *t, PyObject *a, PyObject *k) {
14649 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
14650 o = (*t->tp_alloc)(t, 0);
14652 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
14654 if (unlikely(!o))
return 0;
14655 if (unlikely(__pyx_pw_15cpostprocessing_14NodeStarFactor_1__cinit__(o, a, k) < 0))
goto bad;
14658 Py_DECREF(o); o = 0;
14662 static void __pyx_tp_dealloc_15cpostprocessing_NodeStarFactor(PyObject *o) {
14663 #if CYTHON_USE_TP_FINALIZE
14664 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
14665 if (PyObject_CallFinalizerFromDealloc(o))
return;
14669 PyObject *etype, *eval, *etb;
14670 PyErr_Fetch(&etype, &eval, &etb);
14671 __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
14672 __pyx_pw_15cpostprocessing_14NodeStarFactor_3__dealloc__(o);
14673 __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
14674 PyErr_Restore(etype, eval, etb);
14676 (*Py_TYPE(o)->tp_free)(o);
14679 static PyMethodDef __pyx_methods_15cpostprocessing_NodeStarFactor[] = {
14680 {
"setU", (PyCFunction)__pyx_pw_15cpostprocessing_14NodeStarFactor_5setU, METH_O, 0},
14681 {
"copyData", (PyCFunction)__pyx_pw_15cpostprocessing_14NodeStarFactor_7copyData, METH_O, 0},
14682 {
"__reduce_cython__", (PyCFunction)__pyx_pw_15cpostprocessing_14NodeStarFactor_9__reduce_cython__, METH_NOARGS, 0},
14683 {
"__setstate_cython__", (PyCFunction)__pyx_pw_15cpostprocessing_14NodeStarFactor_11__setstate_cython__, METH_O, 0},
14687 static PyTypeObject __pyx_type_15cpostprocessing_NodeStarFactor = {
14688 PyVarObject_HEAD_INIT(0, 0)
14689 "cpostprocessing.NodeStarFactor",
14690 sizeof(
struct __pyx_obj_15cpostprocessing_NodeStarFactor),
14692 __pyx_tp_dealloc_15cpostprocessing_NodeStarFactor,
14693 #if PY_VERSION_HEX < 0x030800b4
14696 #if PY_VERSION_HEX >= 0x030800b4
14701 #if PY_MAJOR_VERSION < 3
14704 #if PY_MAJOR_VERSION >= 3
14717 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
14725 __pyx_methods_15cpostprocessing_NodeStarFactor,
14735 __pyx_tp_new_15cpostprocessing_NodeStarFactor,
14745 #if PY_VERSION_HEX >= 0x030400a1
14748 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
14751 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
14754 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
14759 static PyMethodDef __pyx_methods[] = {
14763 #if PY_MAJOR_VERSION >= 3
14764 #if CYTHON_PEP489_MULTI_PHASE_INIT
14765 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
14766 static int __pyx_pymod_exec_cpostprocessing(PyObject* module);
14767 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
14768 {Py_mod_create, (
void*)__pyx_pymod_create},
14769 {Py_mod_exec, (
void*)__pyx_pymod_exec_cpostprocessing},
14774 static struct PyModuleDef __pyx_moduledef = {
14775 PyModuleDef_HEAD_INIT,
14778 #if CYTHON_PEP489_MULTI_PHASE_INIT
14784 #if CYTHON_PEP489_MULTI_PHASE_INIT
14785 __pyx_moduledef_slots,
14794 #ifndef CYTHON_SMALL_CODE
14795 #if defined(__clang__)
14796 #define CYTHON_SMALL_CODE
14797 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
14798 #define CYTHON_SMALL_CODE __attribute__((cold))
14800 #define CYTHON_SMALL_CODE
14804 static __Pyx_StringTabEntry __pyx_string_tab[] = {
14805 {&__pyx_n_s_BDMmatPivots_element, __pyx_k_BDMmatPivots_element,
sizeof(__pyx_k_BDMmatPivots_element), 0, 0, 1, 1},
14806 {&__pyx_n_s_BDMmat_element, __pyx_k_BDMmat_element,
sizeof(__pyx_k_BDMmat_element), 0, 0, 1, 1},
14807 {&__pyx_n_s_I, __pyx_k_I,
sizeof(__pyx_k_I), 0, 0, 1, 1},
14808 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
14809 {&__pyx_n_s_NodeStarFactor, __pyx_k_NodeStarFactor,
sizeof(__pyx_k_NodeStarFactor), 0, 0, 1, 1},
14810 {&__pyx_n_s_TypeError, __pyx_k_TypeError,
sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
14811 {&__pyx_n_s_a, __pyx_k_a,
sizeof(__pyx_k_a), 0, 0, 1, 1},
14812 {&__pyx_n_s_aElementQuadWeights, __pyx_k_aElementQuadWeights,
sizeof(__pyx_k_aElementQuadWeights), 0, 0, 1, 1},
14813 {&__pyx_n_s_abs_det_J, __pyx_k_abs_det_J,
sizeof(__pyx_k_abs_det_J), 0, 0, 1, 1},
14814 {&__pyx_n_s_addAverageToParVec, __pyx_k_addAverageToParVec,
sizeof(__pyx_k_addAverageToParVec), 0, 0, 1, 1},
14815 {&__pyx_n_s_advectiveVelocity, __pyx_k_advectiveVelocity,
sizeof(__pyx_k_advectiveVelocity), 0, 0, 1, 1},
14816 {&__pyx_n_s_alpha, __pyx_k_alpha,
sizeof(__pyx_k_alpha), 0, 0, 1, 1},
14817 {&__pyx_n_s_alphaFactor, __pyx_k_alphaFactor,
sizeof(__pyx_k_alphaFactor), 0, 0, 1, 1},
14818 {&__pyx_n_s_buildBDM2rhs, __pyx_k_buildBDM2rhs,
sizeof(__pyx_k_buildBDM2rhs), 0, 0, 1, 1},
14819 {&__pyx_n_s_buildLocalBDM1projectionMatrices, __pyx_k_buildLocalBDM1projectionMatrices,
sizeof(__pyx_k_buildLocalBDM1projectionMatrices), 0, 0, 1, 1},
14820 {&__pyx_n_s_buildLocalBDM2projectionMatrices, __pyx_k_buildLocalBDM2projectionMatrices,
sizeof(__pyx_k_buildLocalBDM2projectionMatrices), 0, 0, 1, 1},
14821 {&__pyx_n_s_calculateConservationFluxPWL, __pyx_k_calculateConservationFluxPWL,
sizeof(__pyx_k_calculateConservationFluxPWL), 0, 0, 1, 1},
14822 {&__pyx_n_s_calculateConservationFluxPWL_noN, __pyx_k_calculateConservationFluxPWL_noN,
sizeof(__pyx_k_calculateConservationFluxPWL_noN), 0, 0, 1, 1},
14823 {&__pyx_n_s_calculateConservationFluxPWL_opt, __pyx_k_calculateConservationFluxPWL_opt,
sizeof(__pyx_k_calculateConservationFluxPWL_opt), 0, 0, 1, 1},
14824 {&__pyx_n_s_calculateConservationJacobianPWL, __pyx_k_calculateConservationJacobianPWL,
sizeof(__pyx_k_calculateConservationJacobianPWL), 0, 0, 1, 1},
14825 {&__pyx_n_s_calculateConservationJacobianPWL_2, __pyx_k_calculateConservationJacobianPWL_2,
sizeof(__pyx_k_calculateConservationJacobianPWL_2), 0, 0, 1, 1},
14826 {&__pyx_n_s_calculateConservationJacobianPWL_3, __pyx_k_calculateConservationJacobianPWL_3,
sizeof(__pyx_k_calculateConservationJacobianPWL_3), 0, 0, 1, 1},
14827 {&__pyx_n_s_calculateConservationResidualGlo, __pyx_k_calculateConservationResidualGlo,
sizeof(__pyx_k_calculateConservationResidualGlo), 0, 0, 1, 1},
14828 {&__pyx_n_s_calculateConservationResidualPWL, __pyx_k_calculateConservationResidualPWL,
sizeof(__pyx_k_calculateConservationResidualPWL), 0, 0, 1, 1},
14829 {&__pyx_n_s_calculateConservationResidualPWL_2, __pyx_k_calculateConservationResidualPWL_2,
sizeof(__pyx_k_calculateConservationResidualPWL_2), 0, 0, 1, 1},
14830 {&__pyx_n_s_calculateConservationResidualPWL_3, __pyx_k_calculateConservationResidualPWL_3,
sizeof(__pyx_k_calculateConservationResidualPWL_3), 0, 0, 1, 1},
14831 {&__pyx_n_s_calculateConservationResidualPWL_4, __pyx_k_calculateConservationResidualPWL_4,
sizeof(__pyx_k_calculateConservationResidualPWL_4), 0, 0, 1, 1},
14832 {&__pyx_n_s_calculateElementResidualPWL, __pyx_k_calculateElementResidualPWL,
sizeof(__pyx_k_calculateElementResidualPWL), 0, 0, 1, 1},
14833 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
14834 {&__pyx_n_s_colind, __pyx_k_colind,
sizeof(__pyx_k_colind), 0, 0, 1, 1},
14835 {&__pyx_n_s_computeFluxCorrectionPWC, __pyx_k_computeFluxCorrectionPWC,
sizeof(__pyx_k_computeFluxCorrectionPWC), 0, 0, 1, 1},
14836 {&__pyx_n_s_conservationResidual, __pyx_k_conservationResidual,
sizeof(__pyx_k_conservationResidual), 0, 0, 1, 1},
14837 {&__pyx_n_s_copyElementBoundaryVelocityToPar, __pyx_k_copyElementBoundaryVelocityToPar,
sizeof(__pyx_k_copyElementBoundaryVelocityToPar), 0, 0, 1, 1},
14838 {&__pyx_n_s_copyParVecToElementBoundaryVeloc, __pyx_k_copyParVecToElementBoundaryVeloc,
sizeof(__pyx_k_copyParVecToElementBoundaryVeloc), 0, 0, 1, 1},
14839 {&__pyx_n_s_cpostprocessing, __pyx_k_cpostprocessing,
sizeof(__pyx_k_cpostprocessing), 0, 0, 1, 1},
14840 {&__pyx_n_s_dS, __pyx_k_dS,
sizeof(__pyx_k_dS), 0, 0, 1, 1},
14841 {&__pyx_n_s_degree, __pyx_k_degree,
sizeof(__pyx_k_degree), 0, 0, 1, 1},
14842 {&__pyx_n_s_detJ, __pyx_k_detJ,
sizeof(__pyx_k_detJ), 0, 0, 1, 1},
14843 {&__pyx_n_s_diffusionTensor, __pyx_k_diffusionTensor,
sizeof(__pyx_k_diffusionTensor), 0, 0, 1, 1},
14844 {&__pyx_n_s_dofMapl2g, __pyx_k_dofMapl2g,
sizeof(__pyx_k_dofMapl2g), 0, 0, 1, 1},
14845 {&__pyx_n_s_dofStarElementNeighbors, __pyx_k_dofStarElementNeighbors,
sizeof(__pyx_k_dofStarElementNeighbors), 0, 0, 1, 1},
14846 {&__pyx_n_s_dofStarElements, __pyx_k_dofStarElements,
sizeof(__pyx_k_dofStarElements), 0, 0, 1, 1},
14847 {&__pyx_n_s_dx, __pyx_k_dx,
sizeof(__pyx_k_dx), 0, 0, 1, 1},
14848 {&__pyx_n_s_ebN, __pyx_k_ebN,
sizeof(__pyx_k_ebN), 0, 0, 1, 1},
14849 {&__pyx_n_s_ebq_global_flux, __pyx_k_ebq_global_flux,
sizeof(__pyx_k_ebq_global_flux), 0, 0, 1, 1},
14850 {&__pyx_n_s_ebq_global_velocity, __pyx_k_ebq_global_velocity,
sizeof(__pyx_k_ebq_global_velocity), 0, 0, 1, 1},
14851 {&__pyx_n_s_ebq_n, __pyx_k_ebq_n,
sizeof(__pyx_k_ebq_n), 0, 0, 1, 1},
14852 {&__pyx_n_s_ebq_v, __pyx_k_ebq_v,
sizeof(__pyx_k_ebq_v), 0, 0, 1, 1},
14853 {&__pyx_n_s_ebq_v_par_local, __pyx_k_ebq_v_par_local,
sizeof(__pyx_k_ebq_v_par_local), 0, 0, 1, 1},
14854 {&__pyx_n_s_ebq_velocity, __pyx_k_ebq_velocity,
sizeof(__pyx_k_ebq_velocity), 0, 0, 1, 1},
14855 {&__pyx_n_s_ebq_velocityAverage, __pyx_k_ebq_velocityAverage,
sizeof(__pyx_k_ebq_velocityAverage), 0, 0, 1, 1},
14856 {&__pyx_n_s_ebqe_v, __pyx_k_ebqe_v,
sizeof(__pyx_k_ebqe_v), 0, 0, 1, 1},
14857 {&__pyx_n_s_ebqe_velocity, __pyx_k_ebqe_velocity,
sizeof(__pyx_k_ebqe_velocity), 0, 0, 1, 1},
14858 {&__pyx_n_s_edgeFlags, __pyx_k_edgeFlags,
sizeof(__pyx_k_edgeFlags), 0, 0, 1, 1},
14859 {&__pyx_n_s_elementBarycenters, __pyx_k_elementBarycenters,
sizeof(__pyx_k_elementBarycenters), 0, 0, 1, 1},
14860 {&__pyx_n_s_elementBoundariesArray, __pyx_k_elementBoundariesArray,
sizeof(__pyx_k_elementBoundariesArray), 0, 0, 1, 1},
14861 {&__pyx_n_s_elementBoundaryElements, __pyx_k_elementBoundaryElements,
sizeof(__pyx_k_elementBoundaryElements), 0, 0, 1, 1},
14862 {&__pyx_n_s_elementBoundaryElementsArray, __pyx_k_elementBoundaryElementsArray,
sizeof(__pyx_k_elementBoundaryElementsArray), 0, 0, 1, 1},
14863 {&__pyx_n_s_elementBoundaryLocalElementBound, __pyx_k_elementBoundaryLocalElementBound,
sizeof(__pyx_k_elementBoundaryLocalElementBound), 0, 0, 1, 1},
14864 {&__pyx_n_s_elementBoundaryQuadratureWeights, __pyx_k_elementBoundaryQuadratureWeights,
sizeof(__pyx_k_elementBoundaryQuadratureWeights), 0, 0, 1, 1},
14865 {&__pyx_n_s_elementNodes, __pyx_k_elementNodes,
sizeof(__pyx_k_elementNodes), 0, 0, 1, 1},
14866 {&__pyx_n_s_elementNodesArray, __pyx_k_elementNodesArray,
sizeof(__pyx_k_elementNodesArray), 0, 0, 1, 1},
14867 {&__pyx_n_s_elementResidual, __pyx_k_elementResidual,
sizeof(__pyx_k_elementResidual), 0, 0, 1, 1},
14868 {&__pyx_n_s_elementResidualPWL, __pyx_k_elementResidualPWL,
sizeof(__pyx_k_elementResidualPWL), 0, 0, 1, 1},
14869 {&__pyx_n_s_element_locations, __pyx_k_element_locations,
sizeof(__pyx_k_element_locations), 0, 0, 1, 1},
14870 {&__pyx_n_s_exteriorElementBoundaries, __pyx_k_exteriorElementBoundaries,
sizeof(__pyx_k_exteriorElementBoundaries), 0, 0, 1, 1},
14871 {&__pyx_n_s_exteriorElementBoundariesArray, __pyx_k_exteriorElementBoundariesArray,
sizeof(__pyx_k_exteriorElementBoundariesArray), 0, 0, 1, 1},
14872 {&__pyx_n_s_exteriorElementBoundariesToSkip, __pyx_k_exteriorElementBoundariesToSkip,
sizeof(__pyx_k_exteriorElementBoundariesToSkip), 0, 0, 1, 1},
14873 {&__pyx_n_s_f, __pyx_k_f,
sizeof(__pyx_k_f), 0, 0, 1, 1},
14874 {&__pyx_n_s_factorLocalBDM1projectionMatrice, __pyx_k_factorLocalBDM1projectionMatrice,
sizeof(__pyx_k_factorLocalBDM1projectionMatrice), 0, 0, 1, 1},
14875 {&__pyx_n_s_factorLocalBDM2projectionMatrice, __pyx_k_factorLocalBDM2projectionMatrice,
sizeof(__pyx_k_factorLocalBDM2projectionMatrice), 0, 0, 1, 1},
14876 {&__pyx_n_s_flux, __pyx_k_flux,
sizeof(__pyx_k_flux), 0, 0, 1, 1},
14877 {&__pyx_n_s_fluxBoundaryNodes, __pyx_k_fluxBoundaryNodes,
sizeof(__pyx_k_fluxBoundaryNodes), 0, 0, 1, 1},
14878 {&__pyx_n_s_fluxCorrection, __pyx_k_fluxCorrection,
sizeof(__pyx_k_fluxCorrection), 0, 0, 1, 1},
14879 {&__pyx_n_s_fluxCorrectionVelocityUpdate, __pyx_k_fluxCorrectionVelocityUpdate,
sizeof(__pyx_k_fluxCorrectionVelocityUpdate), 0, 0, 1, 1},
14880 {&__pyx_n_s_fluxElementBoundaries, __pyx_k_fluxElementBoundaries,
sizeof(__pyx_k_fluxElementBoundaries), 0, 0, 1, 1},
14881 {&__pyx_n_s_flux_elementBoundary, __pyx_k_flux_elementBoundary,
sizeof(__pyx_k_flux_elementBoundary), 0, 0, 1, 1},
14882 {&__pyx_n_s_freeLocal_element, __pyx_k_freeLocal_element,
sizeof(__pyx_k_freeLocal_element), 0, 0, 1, 1},
14883 {&__pyx_n_s_getElementBDM1velocityValuesLagr, __pyx_k_getElementBDM1velocityValuesLagr,
sizeof(__pyx_k_getElementBDM1velocityValuesLagr), 0, 0, 1, 1},
14884 {&__pyx_n_s_getElementBDM2velocityValuesLagr, __pyx_k_getElementBDM2velocityValuesLagr,
sizeof(__pyx_k_getElementBDM2velocityValuesLagr), 0, 0, 1, 1},
14885 {&__pyx_n_s_getElementBoundaryBDM1velocityVa, __pyx_k_getElementBoundaryBDM1velocityVa,
sizeof(__pyx_k_getElementBoundaryBDM1velocityVa), 0, 0, 1, 1},
14886 {&__pyx_n_s_getElementBoundaryRT0velocityVal, __pyx_k_getElementBoundaryRT0velocityVal,
sizeof(__pyx_k_getElementBoundaryRT0velocityVal), 0, 0, 1, 1},
14887 {&__pyx_n_s_getElementBoundaryRT0velocityVal_2, __pyx_k_getElementBoundaryRT0velocityVal_2,
sizeof(__pyx_k_getElementBoundaryRT0velocityVal_2), 0, 0, 1, 1},
14888 {&__pyx_n_s_getElementLDGvelocityValuesLagra, __pyx_k_getElementLDGvelocityValuesLagra,
sizeof(__pyx_k_getElementLDGvelocityValuesLagra), 0, 0, 1, 1},
14889 {&__pyx_n_s_getElementRT0velocityValues, __pyx_k_getElementRT0velocityValues,
sizeof(__pyx_k_getElementRT0velocityValues), 0, 0, 1, 1},
14890 {&__pyx_n_s_getElementRT0velocityValuesFluxR, __pyx_k_getElementRT0velocityValuesFluxR,
sizeof(__pyx_k_getElementRT0velocityValuesFluxR), 0, 0, 1, 1},
14891 {&__pyx_n_s_getGlobalElementBoundaryBDM1velo, __pyx_k_getGlobalElementBoundaryBDM1velo,
sizeof(__pyx_k_getGlobalElementBoundaryBDM1velo), 0, 0, 1, 1},
14892 {&__pyx_n_s_getGlobalElementBoundaryRT0veloc, __pyx_k_getGlobalElementBoundaryRT0veloc,
sizeof(__pyx_k_getGlobalElementBoundaryRT0veloc), 0, 0, 1, 1},
14893 {&__pyx_n_s_getGlobalElementBoundaryRT0veloc_2, __pyx_k_getGlobalElementBoundaryRT0veloc_2,
sizeof(__pyx_k_getGlobalElementBoundaryRT0veloc_2), 0, 0, 1, 1},
14894 {&__pyx_n_s_getGlobalExteriorElementBoundary, __pyx_k_getGlobalExteriorElementBoundary,
sizeof(__pyx_k_getGlobalExteriorElementBoundary), 0, 0, 1, 1},
14895 {&__pyx_n_s_getGlobalExteriorElementBoundary_2, __pyx_k_getGlobalExteriorElementBoundary_2,
sizeof(__pyx_k_getGlobalExteriorElementBoundary_2), 0, 0, 1, 1},
14896 {&__pyx_n_s_getGlobalExteriorElementBoundary_3, __pyx_k_getGlobalExteriorElementBoundary_3,
sizeof(__pyx_k_getGlobalExteriorElementBoundary_3), 0, 0, 1, 1},
14897 {&__pyx_n_s_getRT0velocityValuesFluxRep_arbi, __pyx_k_getRT0velocityValuesFluxRep_arbi,
sizeof(__pyx_k_getRT0velocityValuesFluxRep_arbi), 0, 0, 1, 1},
14898 {&__pyx_n_s_getstate, __pyx_k_getstate,
sizeof(__pyx_k_getstate), 0, 0, 1, 1},
14899 {&__pyx_n_s_grad_phi, __pyx_k_grad_phi,
sizeof(__pyx_k_grad_phi), 0, 0, 1, 1},
14900 {&__pyx_n_s_gradphi, __pyx_k_gradphi,
sizeof(__pyx_k_gradphi), 0, 0, 1, 1},
14901 {&__pyx_n_s_gradu, __pyx_k_gradu,
sizeof(__pyx_k_gradu), 0, 0, 1, 1},
14902 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
14903 {&__pyx_n_s_interiorElementBoundaries, __pyx_k_interiorElementBoundaries,
sizeof(__pyx_k_interiorElementBoundaries), 0, 0, 1, 1},
14904 {&__pyx_n_s_internalNodes, __pyx_k_internalNodes,
sizeof(__pyx_k_internalNodes), 0, 0, 1, 1},
14905 {&__pyx_n_s_k, __pyx_k_k,
sizeof(__pyx_k_k), 0, 0, 1, 1},
14906 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
14907 {&__pyx_n_s_max_nN_owned, __pyx_k_max_nN_owned,
sizeof(__pyx_k_max_nN_owned), 0, 0, 1, 1},
14908 {&__pyx_n_s_mt, __pyx_k_mt,
sizeof(__pyx_k_mt), 0, 0, 1, 1},
14909 {&__pyx_n_s_n, __pyx_k_n,
sizeof(__pyx_k_n), 0, 0, 1, 1},
14910 {&__pyx_n_s_nDOF_trial_element, __pyx_k_nDOF_trial_element,
sizeof(__pyx_k_nDOF_trial_element), 0, 0, 1, 1},
14911 {&__pyx_n_s_nElementBoundaries, __pyx_k_nElementBoundaries,
sizeof(__pyx_k_nElementBoundaries), 0, 0, 1, 1},
14912 {&__pyx_n_s_nElements_dof, __pyx_k_nElements_dof,
sizeof(__pyx_k_nElements_dof), 0, 0, 1, 1},
14913 {&__pyx_n_s_nElements_node, __pyx_k_nElements_node,
sizeof(__pyx_k_nElements_node), 0, 0, 1, 1},
14914 {&__pyx_n_s_nFreeDOF_element, __pyx_k_nFreeDOF_element,
sizeof(__pyx_k_nFreeDOF_element), 0, 0, 1, 1},
14915 {&__pyx_n_s_nNodes_owned, __pyx_k_nNodes_owned,
sizeof(__pyx_k_nNodes_owned), 0, 0, 1, 1},
14916 {&__pyx_n_s_nPoints, __pyx_k_nPoints,
sizeof(__pyx_k_nPoints), 0, 0, 1, 1},
14917 {&__pyx_n_s_nQuadraturePoints, __pyx_k_nQuadraturePoints,
sizeof(__pyx_k_nQuadraturePoints), 0, 0, 1, 1},
14918 {&__pyx_n_s_nSpace, __pyx_k_nSpace,
sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
14919 {&__pyx_n_s_nVDOF_element, __pyx_k_nVDOF_element,
sizeof(__pyx_k_nVDOF_element), 0, 0, 1, 1},
14920 {&__pyx_n_s_nVDOFs_element, __pyx_k_nVDOFs_element,
sizeof(__pyx_k_nVDOFs_element), 0, 0, 1, 1},
14921 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
14922 {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non,
sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
14923 {&__pyx_n_s_nodeArray, __pyx_k_nodeArray,
sizeof(__pyx_k_nodeArray), 0, 0, 1, 1},
14924 {&__pyx_n_s_nodeStarElementNeighbors, __pyx_k_nodeStarElementNeighbors,
sizeof(__pyx_k_nodeStarElementNeighbors), 0, 0, 1, 1},
14925 {&__pyx_n_s_nodeStarElements, __pyx_k_nodeStarElements,
sizeof(__pyx_k_nodeStarElements), 0, 0, 1, 1},
14926 {&__pyx_n_s_nodeStarElementsArray, __pyx_k_nodeStarElementsArray,
sizeof(__pyx_k_nodeStarElementsArray), 0, 0, 1, 1},
14927 {&__pyx_n_s_nodeStarElementsNeighborsArray, __pyx_k_nodeStarElementsNeighborsArray,
sizeof(__pyx_k_nodeStarElementsNeighborsArray), 0, 0, 1, 1},
14928 {&__pyx_n_s_nodeStarFactor, __pyx_k_nodeStarFactor,
sizeof(__pyx_k_nodeStarFactor), 0, 0, 1, 1},
14929 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
14930 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
14931 {&__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},
14932 {&__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},
14933 {&__pyx_n_s_p1_vdofs, __pyx_k_p1_vdofs,
sizeof(__pyx_k_p1_vdofs), 0, 0, 1, 1},
14934 {&__pyx_n_s_permutations, __pyx_k_permutations,
sizeof(__pyx_k_permutations), 0, 0, 1, 1},
14935 {&__pyx_n_s_phi, __pyx_k_phi,
sizeof(__pyx_k_phi), 0, 0, 1, 1},
14936 {&__pyx_n_s_piola_trial_fun, __pyx_k_piola_trial_fun,
sizeof(__pyx_k_piola_trial_fun), 0, 0, 1, 1},
14937 {&__pyx_n_s_postProcessRT0potentialFromP1nc, __pyx_k_postProcessRT0potentialFromP1nc,
sizeof(__pyx_k_postProcessRT0potentialFromP1nc), 0, 0, 1, 1},
14938 {&__pyx_n_s_postProcessRT0potentialFromP1nc_2, __pyx_k_postProcessRT0potentialFromP1nc_2,
sizeof(__pyx_k_postProcessRT0potentialFromP1nc_2), 0, 0, 1, 1},
14939 {&__pyx_n_s_postProcessRT0velocityFromP1nc, __pyx_k_postProcessRT0velocityFromP1nc,
sizeof(__pyx_k_postProcessRT0velocityFromP1nc), 0, 0, 1, 1},
14940 {&__pyx_n_s_postProcessRT0velocityFromP1nc_s, __pyx_k_postProcessRT0velocityFromP1nc_s,
sizeof(__pyx_k_postProcessRT0velocityFromP1nc_s), 0, 0, 1, 1},
14941 {&__pyx_n_s_projectElementBoundaryFluxToRT0f, __pyx_k_projectElementBoundaryFluxToRT0f,
sizeof(__pyx_k_projectElementBoundaryFluxToRT0f), 0, 0, 1, 1},
14942 {&__pyx_n_s_projectElementBoundaryVelocityTo, __pyx_k_projectElementBoundaryVelocityTo,
sizeof(__pyx_k_projectElementBoundaryVelocityTo), 0, 0, 1, 1},
14943 {&__pyx_kp_s_proteus_cpostprocessing_pyx, __pyx_k_proteus_cpostprocessing_pyx,
sizeof(__pyx_k_proteus_cpostprocessing_pyx), 0, 0, 1, 0},
14944 {&__pyx_n_s_pwcV, __pyx_k_pwcV,
sizeof(__pyx_k_pwcV), 0, 0, 1, 1},
14945 {&__pyx_n_s_pwcW, __pyx_k_pwcW,
sizeof(__pyx_k_pwcW), 0, 0, 1, 1},
14946 {&__pyx_n_s_q_basis_vals, __pyx_k_q_basis_vals,
sizeof(__pyx_k_q_basis_vals), 0, 0, 1, 1},
14947 {&__pyx_n_s_q_v, __pyx_k_q_v,
sizeof(__pyx_k_q_v), 0, 0, 1, 1},
14948 {&__pyx_n_s_q_vdofs, __pyx_k_q_vdofs,
sizeof(__pyx_k_q_vdofs), 0, 0, 1, 1},
14949 {&__pyx_n_s_q_velocity, __pyx_k_q_velocity,
sizeof(__pyx_k_q_velocity), 0, 0, 1, 1},
14950 {&__pyx_n_s_quad_a, __pyx_k_quad_a,
sizeof(__pyx_k_quad_a), 0, 0, 1, 1},
14951 {&__pyx_n_s_quad_f, __pyx_k_quad_f,
sizeof(__pyx_k_quad_f), 0, 0, 1, 1},
14952 {&__pyx_n_s_r, __pyx_k_r,
sizeof(__pyx_k_r), 0, 0, 1, 1},
14953 {&__pyx_n_s_range, __pyx_k_range,
sizeof(__pyx_k_range), 0, 0, 1, 1},
14954 {&__pyx_n_s_reduce, __pyx_k_reduce,
sizeof(__pyx_k_reduce), 0, 0, 1, 1},
14955 {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython,
sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
14956 {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex,
sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
14957 {&__pyx_n_s_residual, __pyx_k_residual,
sizeof(__pyx_k_residual), 0, 0, 1, 1},
14958 {&__pyx_n_s_rowptr, __pyx_k_rowptr,
sizeof(__pyx_k_rowptr), 0, 0, 1, 1},
14959 {&__pyx_n_s_rt0potential, __pyx_k_rt0potential,
sizeof(__pyx_k_rt0potential), 0, 0, 1, 1},
14960 {&__pyx_n_s_rt0vdofs, __pyx_k_rt0vdofs,
sizeof(__pyx_k_rt0vdofs), 0, 0, 1, 1},
14961 {&__pyx_n_s_rt0vdofs_element, __pyx_k_rt0vdofs_element,
sizeof(__pyx_k_rt0vdofs_element), 0, 0, 1, 1},
14962 {&__pyx_n_s_setstate, __pyx_k_setstate,
sizeof(__pyx_k_setstate), 0, 0, 1, 1},
14963 {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython,
sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
14964 {&__pyx_n_s_size, __pyx_k_size,
sizeof(__pyx_k_size), 0, 0, 1, 1},
14965 {&__pyx_n_s_skipflag_elementBoundaries, __pyx_k_skipflag_elementBoundaries,
sizeof(__pyx_k_skipflag_elementBoundaries), 0, 0, 1, 1},
14966 {&__pyx_n_s_solveLocalBDM1projection, __pyx_k_solveLocalBDM1projection,
sizeof(__pyx_k_solveLocalBDM1projection), 0, 0, 1, 1},
14967 {&__pyx_n_s_solveLocalBDM1projectionFromFlux, __pyx_k_solveLocalBDM1projectionFromFlux,
sizeof(__pyx_k_solveLocalBDM1projectionFromFlux), 0, 0, 1, 1},
14968 {&__pyx_n_s_solveLocalBDM2projection, __pyx_k_solveLocalBDM2projection,
sizeof(__pyx_k_solveLocalBDM2projection), 0, 0, 1, 1},
14969 {&__pyx_n_s_sqrt_det_g, __pyx_k_sqrt_det_g,
sizeof(__pyx_k_sqrt_det_g), 0, 0, 1, 1},
14970 {&__pyx_n_s_subdomain_U, __pyx_k_subdomain_U,
sizeof(__pyx_k_subdomain_U), 0, 0, 1, 1},
14971 {&__pyx_n_s_subdomain_U_copy_global2local, __pyx_k_subdomain_U_copy_global2local,
sizeof(__pyx_k_subdomain_U_copy_global2local), 0, 0, 1, 1},
14972 {&__pyx_n_s_subdomain_U_copy_local2global, __pyx_k_subdomain_U_copy_local2global,
sizeof(__pyx_k_subdomain_U_copy_local2global), 0, 0, 1, 1},
14973 {&__pyx_n_s_sunWheelerGSsweep, __pyx_k_sunWheelerGSsweep,
sizeof(__pyx_k_sunWheelerGSsweep), 0, 0, 1, 1},
14974 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
14975 {&__pyx_n_s_u, __pyx_k_u,
sizeof(__pyx_k_u), 0, 0, 1, 1},
14976 {&__pyx_n_s_uQuadratureWeights_element, __pyx_k_uQuadratureWeights_element,
sizeof(__pyx_k_uQuadratureWeights_element), 0, 0, 1, 1},
14977 {&__pyx_n_s_uQuadratureWeights_elementBounda, __pyx_k_uQuadratureWeights_elementBounda,
sizeof(__pyx_k_uQuadratureWeights_elementBounda), 0, 0, 1, 1},
14978 {&__pyx_n_s_u_elementBoundary, __pyx_k_u_elementBoundary,
sizeof(__pyx_k_u_elementBoundary), 0, 0, 1, 1},
14979 {&__pyx_n_s_updateAdvectiveVelocityPointEval, __pyx_k_updateAdvectiveVelocityPointEval,
sizeof(__pyx_k_updateAdvectiveVelocityPointEval), 0, 0, 1, 1},
14980 {&__pyx_n_s_updateCoef, __pyx_k_updateCoef,
sizeof(__pyx_k_updateCoef), 0, 0, 1, 1},
14981 {&__pyx_n_s_updateDiffusiveVelocityPointEval, __pyx_k_updateDiffusiveVelocityPointEval,
sizeof(__pyx_k_updateDiffusiveVelocityPointEval), 0, 0, 1, 1},
14982 {&__pyx_n_s_updateDiffusiveVelocityPointEval_2, __pyx_k_updateDiffusiveVelocityPointEval_2,
sizeof(__pyx_k_updateDiffusiveVelocityPointEval_2), 0, 0, 1, 1},
14983 {&__pyx_n_s_updateRT0velocityWithAveragedPot, __pyx_k_updateRT0velocityWithAveragedPot,
sizeof(__pyx_k_updateRT0velocityWithAveragedPot), 0, 0, 1, 1},
14984 {&__pyx_n_s_updateRT0velocityWithAveragedPot_2, __pyx_k_updateRT0velocityWithAveragedPot_2,
sizeof(__pyx_k_updateRT0velocityWithAveragedPot_2), 0, 0, 1, 1},
14985 {&__pyx_n_s_updateSelectedExteriorElementBou, __pyx_k_updateSelectedExteriorElementBou,
sizeof(__pyx_k_updateSelectedExteriorElementBou), 0, 0, 1, 1},
14986 {&__pyx_n_s_vAverage, __pyx_k_vAverage,
sizeof(__pyx_k_vAverage), 0, 0, 1, 1},
14987 {&__pyx_n_s_vConservative, __pyx_k_vConservative,
sizeof(__pyx_k_vConservative), 0, 0, 1, 1},
14988 {&__pyx_n_s_vConservative_element, __pyx_k_vConservative_element,
sizeof(__pyx_k_vConservative_element), 0, 0, 1, 1},
14989 {&__pyx_n_s_v_ebqe, __pyx_k_v_ebqe,
sizeof(__pyx_k_v_ebqe), 0, 0, 1, 1},
14990 {&__pyx_n_s_v_element, __pyx_k_v_element,
sizeof(__pyx_k_v_element), 0, 0, 1, 1},
14991 {&__pyx_n_s_v_elementBoundary, __pyx_k_v_elementBoundary,
sizeof(__pyx_k_v_elementBoundary), 0, 0, 1, 1},
14992 {&__pyx_n_s_v_elementBoundary_global, __pyx_k_v_elementBoundary_global,
sizeof(__pyx_k_v_elementBoundary_global), 0, 0, 1, 1},
14993 {&__pyx_n_s_vdofs, __pyx_k_vdofs,
sizeof(__pyx_k_vdofs), 0, 0, 1, 1},
14994 {&__pyx_n_s_velocity, __pyx_k_velocity,
sizeof(__pyx_k_velocity), 0, 0, 1, 1},
14995 {&__pyx_n_s_velocity_element, __pyx_k_velocity_element,
sizeof(__pyx_k_velocity_element), 0, 0, 1, 1},
14996 {&__pyx_n_s_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 0, 1, 1},
14997 {&__pyx_n_s_w_dS_f, __pyx_k_w_dS_f,
sizeof(__pyx_k_w_dS_f), 0, 0, 1, 1},
14998 {&__pyx_n_s_w_dV_m, __pyx_k_w_dV_m,
sizeof(__pyx_k_w_dV_m), 0, 0, 1, 1},
14999 {&__pyx_n_s_w_dV_r, __pyx_k_w_dV_r,
sizeof(__pyx_k_w_dV_r), 0, 0, 1, 1},
15000 {&__pyx_n_s_w_int_div_free, __pyx_k_w_int_div_free,
sizeof(__pyx_k_w_int_div_free), 0, 0, 1, 1},
15001 {&__pyx_n_s_w_int_test_grads, __pyx_k_w_int_test_grads,
sizeof(__pyx_k_w_int_test_grads), 0, 0, 1, 1},
15002 {&__pyx_n_s_w_interior_divfree, __pyx_k_w_interior_divfree,
sizeof(__pyx_k_w_interior_divfree), 0, 0, 1, 1},
15003 {&__pyx_n_s_w_interior_gradients, __pyx_k_w_interior_gradients,
sizeof(__pyx_k_w_interior_gradients), 0, 0, 1, 1},
15004 {&__pyx_n_s_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 0, 1, 1},
15005 {&__pyx_n_s_x_ebqe, __pyx_k_x_ebqe,
sizeof(__pyx_k_x_ebqe), 0, 0, 1, 1},
15006 {&__pyx_n_s_x_element, __pyx_k_x_element,
sizeof(__pyx_k_x_element), 0, 0, 1, 1},
15007 {&__pyx_n_s_x_elementBoundary, __pyx_k_x_elementBoundary,
sizeof(__pyx_k_x_elementBoundary), 0, 0, 1, 1},
15008 {&__pyx_n_s_x_elementBoundary_global, __pyx_k_x_elementBoundary_global,
sizeof(__pyx_k_x_elementBoundary_global), 0, 0, 1, 1},
15009 {0, 0, 0, 0, 0, 0, 0}
15011 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
15012 __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range);
if (!__pyx_builtin_range) __PYX_ERR(0, 797, __pyx_L1_error)
15013 __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError);
if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
15014 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(2, 945, __pyx_L1_error)
15020 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
15021 __Pyx_RefNannyDeclarations
15022 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
15030 __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 2, __pyx_L1_error)
15031 __Pyx_GOTREF(__pyx_tuple_);
15032 __Pyx_GIVEREF(__pyx_tuple_);
15039 __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 4, __pyx_L1_error)
15040 __Pyx_GOTREF(__pyx_tuple__2);
15041 __Pyx_GIVEREF(__pyx_tuple__2);
15050 __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(2, 945, __pyx_L1_error)
15051 __Pyx_GOTREF(__pyx_tuple__3);
15052 __Pyx_GIVEREF(__pyx_tuple__3);
15061 __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__4)) __PYX_ERR(2, 951, __pyx_L1_error)
15062 __Pyx_GOTREF(__pyx_tuple__4);
15063 __Pyx_GIVEREF(__pyx_tuple__4);
15072 __pyx_tuple__5 = PyTuple_Pack(17, __pyx_n_s_nFreeDOF_element, __pyx_n_s_freeLocal_element, __pyx_n_s_detJ, __pyx_n_s_sqrt_det_g, __pyx_n_s_n, __pyx_n_s_elementBarycenters, __pyx_n_s_quad_a, __pyx_n_s_quad_f, __pyx_n_s_w_dV_r, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_rt0vdofs, __pyx_n_s_w_dV_m, __pyx_n_s_mt);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 6, __pyx_L1_error)
15073 __Pyx_GOTREF(__pyx_tuple__5);
15074 __Pyx_GIVEREF(__pyx_tuple__5);
15075 __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(17, 0, 17, 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_cpostprocessing_pyx, __pyx_n_s_postProcessRT0velocityFromP1nc, 6, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 6, __pyx_L1_error)
15084 __pyx_tuple__7 = PyTuple_Pack(19, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_nFreeDOF_element, __pyx_n_s_freeLocal_element, __pyx_n_s_detJ, __pyx_n_s_sqrt_det_g, __pyx_n_s_n, __pyx_n_s_elementBarycenters, __pyx_n_s_quad_a, __pyx_n_s_quad_f, __pyx_n_s_w_dV_r, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_rt0vdofs, __pyx_n_s_w_dV_m, __pyx_n_s_mt);
if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 70, __pyx_L1_error)
15085 __Pyx_GOTREF(__pyx_tuple__7);
15086 __Pyx_GIVEREF(__pyx_tuple__7);
15087 __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 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_cpostprocessing_pyx, __pyx_n_s_postProcessRT0velocityFromP1nc_s, 70, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 70, __pyx_L1_error)
15096 __pyx_tuple__9 = PyTuple_Pack(6, __pyx_n_s_detJ, __pyx_n_s_quad_a, __pyx_n_s_phi, __pyx_n_s_gradphi, __pyx_n_s_a, __pyx_n_s_rt0vdofs_element);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 140, __pyx_L1_error)
15097 __Pyx_GOTREF(__pyx_tuple__9);
15098 __Pyx_GIVEREF(__pyx_tuple__9);
15099 __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_updateRT0velocityWithAveragedPot, 140, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 140, __pyx_L1_error)
15108 __pyx_tuple__11 = PyTuple_Pack(8, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_detJ, __pyx_n_s_quad_a, __pyx_n_s_phi, __pyx_n_s_gradphi, __pyx_n_s_a, __pyx_n_s_rt0vdofs_element);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 156, __pyx_L1_error)
15109 __Pyx_GOTREF(__pyx_tuple__11);
15110 __Pyx_GIVEREF(__pyx_tuple__11);
15111 __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 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_cpostprocessing_pyx, __pyx_n_s_updateRT0velocityWithAveragedPot_2, 156, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 156, __pyx_L1_error)
15120 __pyx_tuple__13 = PyTuple_Pack(3, __pyx_n_s_x_element, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_element);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 176, __pyx_L1_error)
15121 __Pyx_GOTREF(__pyx_tuple__13);
15122 __Pyx_GIVEREF(__pyx_tuple__13);
15123 __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_cpostprocessing_pyx, __pyx_n_s_getElementRT0velocityValues, 176, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 176, __pyx_L1_error)
15132 __pyx_tuple__15 = PyTuple_Pack(3, __pyx_n_s_x_elementBoundary, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_elementBoundary);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 186, __pyx_L1_error)
15133 __Pyx_GOTREF(__pyx_tuple__15);
15134 __Pyx_GIVEREF(__pyx_tuple__15);
15135 __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_cpostprocessing_pyx, __pyx_n_s_getElementBoundaryRT0velocityVal, 186, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 186, __pyx_L1_error)
15144 __pyx_tuple__17 = PyTuple_Pack(4, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_x_elementBoundary_global, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_elementBoundary_global);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 197, __pyx_L1_error)
15145 __Pyx_GOTREF(__pyx_tuple__17);
15146 __Pyx_GIVEREF(__pyx_tuple__17);
15147 __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalElementBoundaryRT0veloc, 197, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 197, __pyx_L1_error)
15156 __pyx_tuple__19 = PyTuple_Pack(5, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_x_elementBoundary_global, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_elementBoundary_global);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 209, __pyx_L1_error)
15157 __Pyx_GOTREF(__pyx_tuple__19);
15158 __Pyx_GIVEREF(__pyx_tuple__19);
15159 __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalExteriorElementBoundary, 209, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 209, __pyx_L1_error)
15168 __pyx_tuple__21 = PyTuple_Pack(16, __pyx_n_s_uQuadratureWeights_element, __pyx_n_s_elementBarycenters, __pyx_n_s_aElementQuadWeights, __pyx_n_s_detJ, __pyx_n_s_uQuadratureWeights_elementBounda, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_x_elementBoundary, __pyx_n_s_u_elementBoundary, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_rt0vdofs, __pyx_n_s_rt0potential);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 223, __pyx_L1_error)
15169 __Pyx_GOTREF(__pyx_tuple__21);
15170 __Pyx_GIVEREF(__pyx_tuple__21);
15171 __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 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_cpostprocessing_pyx, __pyx_n_s_postProcessRT0potentialFromP1nc, 223, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 223, __pyx_L1_error)
15180 __pyx_tuple__23 = PyTuple_Pack(18, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_uQuadratureWeights_element, __pyx_n_s_elementBarycenters, __pyx_n_s_aElementQuadWeights, __pyx_n_s_detJ, __pyx_n_s_uQuadratureWeights_elementBounda, __pyx_n_s_x, __pyx_n_s_u, __pyx_n_s_gradu, __pyx_n_s_x_elementBoundary, __pyx_n_s_u_elementBoundary, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_f, __pyx_n_s_r, __pyx_n_s_rt0vdofs, __pyx_n_s_rt0potential);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 261, __pyx_L1_error)
15181 __Pyx_GOTREF(__pyx_tuple__23);
15182 __Pyx_GIVEREF(__pyx_tuple__23);
15183 __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 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_cpostprocessing_pyx, __pyx_n_s_postProcessRT0potentialFromP1nc_2, 261, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 261, __pyx_L1_error)
15192 __pyx_tuple__25 = PyTuple_Pack(4, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_n, __pyx_n_s_ebq_v, __pyx_n_s_BDMmat_element);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 303, __pyx_L1_error)
15193 __Pyx_GOTREF(__pyx_tuple__25);
15194 __Pyx_GIVEREF(__pyx_tuple__25);
15195 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_buildLocalBDM1projectionMatrices, 303, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 303, __pyx_L1_error)
15204 __pyx_tuple__27 = PyTuple_Pack(10, __pyx_n_s_degree, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_n, __pyx_n_s_ebq_v, __pyx_n_s_q_basis_vals, __pyx_n_s_w_int_test_grads, __pyx_n_s_w_int_div_free, __pyx_n_s_piola_trial_fun, __pyx_n_s_edgeFlags, __pyx_n_s_BDMmat_element);
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 319, __pyx_L1_error)
15205 __Pyx_GOTREF(__pyx_tuple__27);
15206 __Pyx_GIVEREF(__pyx_tuple__27);
15207 __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_cpostprocessing_pyx, __pyx_n_s_buildLocalBDM2projectionMatrices, 319, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 319, __pyx_L1_error)
15216 __pyx_tuple__29 = PyTuple_Pack(2, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 349, __pyx_L1_error)
15217 __Pyx_GOTREF(__pyx_tuple__29);
15218 __Pyx_GIVEREF(__pyx_tuple__29);
15219 __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_cpostprocessing_pyx, __pyx_n_s_factorLocalBDM1projectionMatrice, 349, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 349, __pyx_L1_error)
15228 __pyx_tuple__31 = PyTuple_Pack(2, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element);
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 356, __pyx_L1_error)
15229 __Pyx_GOTREF(__pyx_tuple__31);
15230 __Pyx_GIVEREF(__pyx_tuple__31);
15231 __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_cpostprocessing_pyx, __pyx_n_s_factorLocalBDM2projectionMatrice, 356, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 356, __pyx_L1_error)
15240 __pyx_tuple__33 = PyTuple_Pack(6, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_n, __pyx_n_s_ebq_velocity, __pyx_n_s_q_vdofs);
if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 363, __pyx_L1_error)
15241 __Pyx_GOTREF(__pyx_tuple__33);
15242 __Pyx_GIVEREF(__pyx_tuple__33);
15243 __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_solveLocalBDM1projection, 363, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 363, __pyx_L1_error)
15252 __pyx_tuple__35 = PyTuple_Pack(8, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_n, __pyx_n_s_w_interior_gradients, __pyx_n_s_ebq_velocity, __pyx_n_s_q_velocity, __pyx_n_s_q_vdofs);
if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 382, __pyx_L1_error)
15253 __Pyx_GOTREF(__pyx_tuple__35);
15254 __Pyx_GIVEREF(__pyx_tuple__35);
15255 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 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_cpostprocessing_pyx, __pyx_n_s_solveLocalBDM2projection, 382, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 382, __pyx_L1_error)
15264 __pyx_tuple__37 = PyTuple_Pack(10, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_n, __pyx_n_s_w_interior_gradients, __pyx_n_s_w_interior_divfree, __pyx_n_s_ebq_velocity, __pyx_n_s_q_velocity, __pyx_n_s_q_vdofs, __pyx_n_s_edgeFlags);
if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 405, __pyx_L1_error)
15265 __Pyx_GOTREF(__pyx_tuple__37);
15266 __Pyx_GIVEREF(__pyx_tuple__37);
15267 __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_cpostprocessing_pyx, __pyx_n_s_buildBDM2rhs, 405, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 405, __pyx_L1_error)
15276 __pyx_tuple__39 = PyTuple_Pack(7, __pyx_n_s_BDMmat_element, __pyx_n_s_BDMmatPivots_element, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundariesArray, __pyx_n_s_w_dS_f, __pyx_n_s_ebq_global_flux, __pyx_n_s_q_vdofs);
if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 434, __pyx_L1_error)
15277 __Pyx_GOTREF(__pyx_tuple__39);
15278 __Pyx_GIVEREF(__pyx_tuple__39);
15279 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 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_cpostprocessing_pyx, __pyx_n_s_solveLocalBDM1projectionFromFlux, 434, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 434, __pyx_L1_error)
15288 __pyx_tuple__41 = PyTuple_Pack(4, __pyx_n_s_q_v, __pyx_n_s_p1_vdofs, __pyx_n_s_q_velocity, __pyx_n_s_nVDOFs_element);
if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 454, __pyx_L1_error)
15289 __Pyx_GOTREF(__pyx_tuple__41);
15290 __Pyx_GIVEREF(__pyx_tuple__41);
15291 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_getElementBDM1velocityValuesLagr, 454, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 454, __pyx_L1_error)
15300 __pyx_tuple__43 = PyTuple_Pack(4, __pyx_n_s_q_v, __pyx_n_s_p1_vdofs, __pyx_n_s_q_velocity, __pyx_n_s_nVDOFs_element);
if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 470, __pyx_L1_error)
15301 __Pyx_GOTREF(__pyx_tuple__43);
15302 __Pyx_GIVEREF(__pyx_tuple__43);
15303 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_getElementBDM2velocityValuesLagr, 470, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 470, __pyx_L1_error)
15312 __pyx_tuple__45 = PyTuple_Pack(5, __pyx_n_s_q_v, __pyx_n_s_vdofs, __pyx_n_s_q_velocity, __pyx_n_s_nVDOF_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 492, __pyx_L1_error)
15313 __Pyx_GOTREF(__pyx_tuple__45);
15314 __Pyx_GIVEREF(__pyx_tuple__45);
15315 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_getElementLDGvelocityValuesLagra, 492, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 492, __pyx_L1_error)
15324 __pyx_tuple__47 = PyTuple_Pack(6, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_ebqe_v, __pyx_n_s_p1_vdofs, __pyx_n_s_ebqe_velocity, __pyx_n_s_nVDOFs_element);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 508, __pyx_L1_error)
15325 __Pyx_GOTREF(__pyx_tuple__47);
15326 __Pyx_GIVEREF(__pyx_tuple__47);
15327 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalExteriorElementBoundary_2, 508, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 508, __pyx_L1_error)
15336 __pyx_tuple__49 = PyTuple_Pack(6, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_ebqe_v, __pyx_n_s_p1_vdofs, __pyx_n_s_ebq_global_velocity, __pyx_n_s_nVDOFs_element);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 527, __pyx_L1_error)
15337 __Pyx_GOTREF(__pyx_tuple__49);
15338 __Pyx_GIVEREF(__pyx_tuple__49);
15339 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalElementBoundaryBDM1velo, 527, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 527, __pyx_L1_error)
15348 __pyx_tuple__51 = PyTuple_Pack(6, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_ebq_v, __pyx_n_s_p1_vdofs, __pyx_n_s_ebq_velocity, __pyx_n_s_nVDOFs_element);
if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 546, __pyx_L1_error)
15349 __Pyx_GOTREF(__pyx_tuple__51);
15350 __Pyx_GIVEREF(__pyx_tuple__51);
15351 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_getElementBoundaryBDM1velocityVa, 546, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 546, __pyx_L1_error)
15360 __pyx_tuple__53 = PyTuple_Pack(4, __pyx_n_s_elementBoundaryQuadratureWeights, __pyx_n_s_n, __pyx_n_s_v_elementBoundary, __pyx_n_s_rt0vdofs_element);
if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 566, __pyx_L1_error)
15361 __Pyx_GOTREF(__pyx_tuple__53);
15362 __Pyx_GIVEREF(__pyx_tuple__53);
15363 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_projectElementBoundaryVelocityTo, 566, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 566, __pyx_L1_error)
15372 __pyx_tuple__55 = PyTuple_Pack(5, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundariesArray, __pyx_n_s_elementBoundaryQuadratureWeights, __pyx_n_s_flux_elementBoundary, __pyx_n_s_rt0vdofs_element);
if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 579, __pyx_L1_error)
15373 __Pyx_GOTREF(__pyx_tuple__55);
15374 __Pyx_GIVEREF(__pyx_tuple__55);
15375 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_projectElementBoundaryFluxToRT0f, 579, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 579, __pyx_L1_error)
15384 __pyx_tuple__57 = PyTuple_Pack(6, __pyx_n_s_nodeArray, __pyx_n_s_elementNodesArray, __pyx_n_s_abs_det_J, __pyx_n_s_x_element, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_element);
if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 594, __pyx_L1_error)
15385 __Pyx_GOTREF(__pyx_tuple__57);
15386 __Pyx_GIVEREF(__pyx_tuple__57);
15387 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_getElementRT0velocityValuesFluxR, 594, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 594, __pyx_L1_error)
15396 __pyx_tuple__59 = PyTuple_Pack(6, __pyx_n_s_nodeArray, __pyx_n_s_elementNodesArray, __pyx_n_s_abs_det_J, __pyx_n_s_x_elementBoundary, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_elementBoundary);
if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 612, __pyx_L1_error)
15397 __Pyx_GOTREF(__pyx_tuple__59);
15398 __Pyx_GIVEREF(__pyx_tuple__59);
15399 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_getElementBoundaryRT0velocityVal_2, 612, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 612, __pyx_L1_error)
15408 __pyx_tuple__61 = PyTuple_Pack(7, __pyx_n_s_nodeArray, __pyx_n_s_elementNodesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_abs_det_J, __pyx_n_s_x_elementBoundary_global, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_elementBoundary_global);
if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 630, __pyx_L1_error)
15409 __Pyx_GOTREF(__pyx_tuple__61);
15410 __Pyx_GIVEREF(__pyx_tuple__61);
15411 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalElementBoundaryRT0veloc_2, 630, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 630, __pyx_L1_error)
15420 __pyx_tuple__63 = PyTuple_Pack(8, __pyx_n_s_nodeArray, __pyx_n_s_elementNodesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_abs_det_J, __pyx_n_s_x_ebqe, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_ebqe);
if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 649, __pyx_L1_error)
15421 __Pyx_GOTREF(__pyx_tuple__63);
15422 __Pyx_GIVEREF(__pyx_tuple__63);
15423 __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 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_cpostprocessing_pyx, __pyx_n_s_getGlobalExteriorElementBoundary_3, 649, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 649, __pyx_L1_error)
15432 __pyx_tuple__65 = PyTuple_Pack(8, __pyx_n_s_nodeArray, __pyx_n_s_elementNodesArray, __pyx_n_s_abs_det_J, __pyx_n_s_x, __pyx_n_s_element_locations, __pyx_n_s_rt0vdofs_element, __pyx_n_s_v_element, __pyx_n_s_nPoints);
if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 670, __pyx_L1_error)
15433 __Pyx_GOTREF(__pyx_tuple__65);
15434 __Pyx_GIVEREF(__pyx_tuple__65);
15435 __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 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_cpostprocessing_pyx, __pyx_n_s_getRT0velocityValuesFluxRep_arbi, 670, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 670, __pyx_L1_error)
15444 __pyx_tuple__67 = PyTuple_Pack(9, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_dS, __pyx_n_s_n, __pyx_n_s_fluxCorrection, __pyx_n_s_velocity, __pyx_n_s_velocity_element);
if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 691, __pyx_L1_error)
15445 __Pyx_GOTREF(__pyx_tuple__67);
15446 __Pyx_GIVEREF(__pyx_tuple__67);
15447 __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 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_cpostprocessing_pyx, __pyx_n_s_fluxCorrectionVelocityUpdate, 691, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 691, __pyx_L1_error)
15456 __pyx_tuple__69 = PyTuple_Pack(6, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_pwcW, __pyx_n_s_pwcV, __pyx_n_s_fluxCorrection);
if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 717, __pyx_L1_error)
15457 __Pyx_GOTREF(__pyx_tuple__69);
15458 __Pyx_GIVEREF(__pyx_tuple__69);
15459 __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 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_cpostprocessing_pyx, __pyx_n_s_computeFluxCorrectionPWC, 717, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 717, __pyx_L1_error)
15468 __pyx_tuple__71 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_dS, __pyx_n_s_n, __pyx_n_s_sqrt_det_g, __pyx_n_s_alphaFactor, __pyx_n_s_fluxCorrection, __pyx_n_s_conservationResidual);
if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 733, __pyx_L1_error)
15469 __Pyx_GOTREF(__pyx_tuple__71);
15470 __Pyx_GIVEREF(__pyx_tuple__71);
15471 __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 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_cpostprocessing_pyx, __pyx_n_s_sunWheelerGSsweep, 733, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 733, __pyx_L1_error)
15480 __pyx_tuple__73 = PyTuple_Pack(19, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_dofMapl2g, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nElements_node, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_elementResidual, __pyx_n_s_vAverage, __pyx_n_s_dx, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor, __pyx_n_s_conservationResidual, __pyx_n_s_vConservative, __pyx_n_s_vConservative_element);
if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 818, __pyx_L1_error)
15481 __Pyx_GOTREF(__pyx_tuple__73);
15482 __Pyx_GIVEREF(__pyx_tuple__73);
15483 __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationResidualPWL, 818, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 818, __pyx_L1_error)
15492 __pyx_tuple__75 = PyTuple_Pack(15, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_dofMapl2g, __pyx_n_s_dofStarElements, __pyx_n_s_dofStarElementNeighbors, __pyx_n_s_nElements_dof, __pyx_n_s_internalNodes, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_fluxBoundaryNodes, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 873, __pyx_L1_error)
15493 __Pyx_GOTREF(__pyx_tuple__75);
15494 __Pyx_GIVEREF(__pyx_tuple__75);
15495 __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationJacobianPWL, 873, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 873, __pyx_L1_error)
15504 __pyx_tuple__77 = PyTuple_Pack(4, __pyx_n_s_nElements_node, __pyx_n_s_internalNodes, __pyx_n_s_fluxBoundaryNodes, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 914, __pyx_L1_error)
15505 __Pyx_GOTREF(__pyx_tuple__77);
15506 __Pyx_GIVEREF(__pyx_tuple__77);
15507 __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationFluxPWL, 914, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 914, __pyx_L1_error)
15516 __pyx_tuple__79 = PyTuple_Pack(2, __pyx_n_s_nElements_node, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 925, __pyx_L1_error)
15517 __Pyx_GOTREF(__pyx_tuple__79);
15518 __Pyx_GIVEREF(__pyx_tuple__79);
15519 __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationFluxPWL_noN, 925, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 925, __pyx_L1_error)
15528 __pyx_tuple__81 = PyTuple_Pack(19, __pyx_n_s_nNodes_owned, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nElements_node, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_elementResidual, __pyx_n_s_vAverage, __pyx_n_s_dx, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor, __pyx_n_s_conservationResidual, __pyx_n_s_vConservative, __pyx_n_s_vConservative_element);
if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 931, __pyx_L1_error)
15529 __Pyx_GOTREF(__pyx_tuple__81);
15530 __Pyx_GIVEREF(__pyx_tuple__81);
15531 __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(19, 0, 19, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationResidualPWL_2, 931, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 931, __pyx_L1_error)
15540 __pyx_tuple__83 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_skipflag_elementBoundaries, __pyx_n_s_elementResidual, __pyx_n_s_dx, __pyx_n_s_n, __pyx_n_s_conservationResidual, __pyx_n_s_vConservative);
if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 977, __pyx_L1_error)
15541 __Pyx_GOTREF(__pyx_tuple__83);
15542 __Pyx_GIVEREF(__pyx_tuple__83);
15543 __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationResidualPWL_3, 977, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 977, __pyx_L1_error)
15552 __pyx_tuple__85 = PyTuple_Pack(15, __pyx_n_s_nNodes_owned, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nElements_node, __pyx_n_s_internalNodes, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_fluxBoundaryNodes, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 1005, __pyx_L1_error)
15553 __Pyx_GOTREF(__pyx_tuple__85);
15554 __Pyx_GIVEREF(__pyx_tuple__85);
15555 __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationJacobianPWL_2, 1005, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 1005, __pyx_L1_error)
15564 __pyx_tuple__87 = PyTuple_Pack(5, __pyx_n_s_nNodes_owned, __pyx_n_s_nElements_node, __pyx_n_s_internalNodes, __pyx_n_s_fluxBoundaryNodes, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 1045, __pyx_L1_error)
15565 __Pyx_GOTREF(__pyx_tuple__87);
15566 __Pyx_GIVEREF(__pyx_tuple__87);
15567 __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationFluxPWL_opt, 1045, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 1045, __pyx_L1_error)
15576 __pyx_tuple__89 = PyTuple_Pack(18, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nElements_node, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_elementResidual, __pyx_n_s_vAverage, __pyx_n_s_dx, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor, __pyx_n_s_conservationResidual, __pyx_n_s_vConservative, __pyx_n_s_vConservative_element);
if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 1058, __pyx_L1_error)
15577 __Pyx_GOTREF(__pyx_tuple__89);
15578 __Pyx_GIVEREF(__pyx_tuple__89);
15579 __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(18, 0, 18, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationResidualPWL_4, 1058, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 1058, __pyx_L1_error)
15588 __pyx_tuple__91 = PyTuple_Pack(12, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nElements_node, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_w, __pyx_n_s_n, __pyx_n_s_nodeStarFactor);
if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 1103, __pyx_L1_error)
15589 __Pyx_GOTREF(__pyx_tuple__91);
15590 __Pyx_GIVEREF(__pyx_tuple__91);
15591 __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationJacobianPWL_3, 1103, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 1103, __pyx_L1_error)
15600 __pyx_tuple__93 = PyTuple_Pack(5, __pyx_n_s_max_nN_owned, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarFactor, __pyx_n_s_subdomain_U);
if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 1137, __pyx_L1_error)
15601 __Pyx_GOTREF(__pyx_tuple__93);
15602 __Pyx_GIVEREF(__pyx_tuple__93);
15603 __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_subdomain_U_copy_global2local, 1137, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 1137, __pyx_L1_error)
15612 __pyx_tuple__95 = PyTuple_Pack(5, __pyx_n_s_max_nN_owned, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarFactor, __pyx_n_s_subdomain_U);
if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 1150, __pyx_L1_error)
15613 __Pyx_GOTREF(__pyx_tuple__95);
15614 __Pyx_GIVEREF(__pyx_tuple__95);
15615 __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_subdomain_U_copy_local2global, 1150, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 1150, __pyx_L1_error)
15624 __pyx_tuple__97 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_exteriorElementBoundariesToSkip, __pyx_n_s_dS, __pyx_n_s_n, __pyx_n_s_elementResidual, __pyx_n_s_velocity, __pyx_n_s_conservationResidual);
if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 1163, __pyx_L1_error)
15625 __Pyx_GOTREF(__pyx_tuple__97);
15626 __Pyx_GIVEREF(__pyx_tuple__97);
15627 __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 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_cpostprocessing_pyx, __pyx_n_s_calculateConservationResidualGlo, 1163, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 1163, __pyx_L1_error)
15636 __pyx_tuple__99 = PyTuple_Pack(7, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_skipflag_elementBoundaries, __pyx_n_s_flux, __pyx_n_s_w, __pyx_n_s_residual);
if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 1191, __pyx_L1_error)
15637 __Pyx_GOTREF(__pyx_tuple__99);
15638 __Pyx_GIVEREF(__pyx_tuple__99);
15639 __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 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_cpostprocessing_pyx, __pyx_n_s_updateSelectedExteriorElementBou, 1191, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 1191, __pyx_L1_error)
15648 __pyx_tuple__101 = PyTuple_Pack(4, __pyx_n_s_updateCoef, __pyx_n_s_advectiveVelocity, __pyx_n_s_velocity, __pyx_n_s_nPoints);
if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 1210, __pyx_L1_error)
15649 __Pyx_GOTREF(__pyx_tuple__101);
15650 __Pyx_GIVEREF(__pyx_tuple__101);
15651 __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 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_cpostprocessing_pyx, __pyx_n_s_updateAdvectiveVelocityPointEval, 1210, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 1210, __pyx_L1_error)
15660 __pyx_tuple__103 = PyTuple_Pack(5, __pyx_n_s_updateCoef, __pyx_n_s_diffusionTensor, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nPoints);
if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 1220, __pyx_L1_error)
15661 __Pyx_GOTREF(__pyx_tuple__103);
15662 __Pyx_GIVEREF(__pyx_tuple__103);
15663 __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 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_cpostprocessing_pyx, __pyx_n_s_updateDiffusiveVelocityPointEval, 1220, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 1220, __pyx_L1_error)
15672 __pyx_tuple__105 = PyTuple_Pack(7, __pyx_n_s_updateCoef, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_diffusionTensor, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nPoints);
if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 1232, __pyx_L1_error)
15673 __Pyx_GOTREF(__pyx_tuple__105);
15674 __Pyx_GIVEREF(__pyx_tuple__105);
15675 __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 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_cpostprocessing_pyx, __pyx_n_s_updateDiffusiveVelocityPointEval_2, 1232, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 1232, __pyx_L1_error)
15684 __pyx_tuple__107 = PyTuple_Pack(3, __pyx_n_s_alpha, __pyx_n_s_elementResidual, __pyx_n_s_elementResidualPWL);
if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 1248, __pyx_L1_error)
15685 __Pyx_GOTREF(__pyx_tuple__107);
15686 __Pyx_GIVEREF(__pyx_tuple__107);
15687 __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_cpostprocessing_pyx, __pyx_n_s_calculateElementResidualPWL, 1248, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 1248, __pyx_L1_error)
15696 __pyx_tuple__109 = PyTuple_Pack(9, __pyx_n_s_ebq_velocity, __pyx_n_s_permutations, __pyx_n_s_ebq_v_par_local, __pyx_n_s_ebN, __pyx_n_s_k, __pyx_n_s_I, __pyx_n_s_nElementBoundaries, __pyx_n_s_nQuadraturePoints, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 1258, __pyx_L1_error)
15697 __Pyx_GOTREF(__pyx_tuple__109);
15698 __Pyx_GIVEREF(__pyx_tuple__109);
15699 __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 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_cpostprocessing_pyx, __pyx_n_s_copyElementBoundaryVelocityToPar, 1258, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 1258, __pyx_L1_error)
15708 __pyx_tuple__111 = PyTuple_Pack(9, __pyx_n_s_ebq_velocityAverage, __pyx_n_s_permutations, __pyx_n_s_ebq_v_par_local, __pyx_n_s_ebN, __pyx_n_s_k, __pyx_n_s_I, __pyx_n_s_nElementBoundaries, __pyx_n_s_nQuadraturePoints, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 1272, __pyx_L1_error)
15709 __Pyx_GOTREF(__pyx_tuple__111);
15710 __Pyx_GIVEREF(__pyx_tuple__111);
15711 __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 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_cpostprocessing_pyx, __pyx_n_s_addAverageToParVec, 1272, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 1272, __pyx_L1_error)
15720 __pyx_tuple__113 = PyTuple_Pack(9, __pyx_n_s_ebq_velocity, __pyx_n_s_permutations, __pyx_n_s_ebq_v_par_local, __pyx_n_s_ebN, __pyx_n_s_k, __pyx_n_s_I, __pyx_n_s_nElementBoundaries, __pyx_n_s_nQuadraturePoints, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 1286, __pyx_L1_error)
15721 __Pyx_GOTREF(__pyx_tuple__113);
15722 __Pyx_GIVEREF(__pyx_tuple__113);
15723 __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 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_cpostprocessing_pyx, __pyx_n_s_copyParVecToElementBoundaryVeloc, 1286, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 1286, __pyx_L1_error)
15724 __Pyx_RefNannyFinishContext();
15727 __Pyx_RefNannyFinishContext();
15731 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
15732 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
15738 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
15739 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
15740 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
15741 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
15742 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
15743 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
15744 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
15746 static int __Pyx_modinit_global_init_code(
void) {
15747 __Pyx_RefNannyDeclarations
15748 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
15750 __Pyx_RefNannyFinishContext();
15754 static int __Pyx_modinit_variable_export_code(
void) {
15755 __Pyx_RefNannyDeclarations
15756 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
15758 __Pyx_RefNannyFinishContext();
15762 static int __Pyx_modinit_function_export_code(
void) {
15763 __Pyx_RefNannyDeclarations
15764 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
15766 __Pyx_RefNannyFinishContext();
15770 static int __Pyx_modinit_type_init_code(
void) {
15771 __Pyx_RefNannyDeclarations
15772 int __pyx_lineno = 0;
15773 const char *__pyx_filename = NULL;
15774 int __pyx_clineno = 0;
15775 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
15777 if (PyType_Ready(&__pyx_type_15cpostprocessing_NodeStarFactor) < 0) __PYX_ERR(0, 762, __pyx_L1_error)
15778 #if PY_VERSION_HEX < 0x030800B1
15779 __pyx_type_15cpostprocessing_NodeStarFactor.tp_print = 0;
15781 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_15cpostprocessing_NodeStarFactor.tp_dictoffset && __pyx_type_15cpostprocessing_NodeStarFactor.tp_getattro == PyObject_GenericGetAttr)) {
15782 __pyx_type_15cpostprocessing_NodeStarFactor.tp_getattro = __Pyx_PyObject_GenericGetAttr;
15784 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_NodeStarFactor, (PyObject *)&__pyx_type_15cpostprocessing_NodeStarFactor) < 0) __PYX_ERR(0, 762, __pyx_L1_error)
15785 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_15cpostprocessing_NodeStarFactor) < 0) __PYX_ERR(0, 762, __pyx_L1_error)
15786 __pyx_ptype_15cpostprocessing_NodeStarFactor = &__pyx_type_15cpostprocessing_NodeStarFactor;
15787 __Pyx_RefNannyFinishContext();
15790 __Pyx_RefNannyFinishContext();
15794 static int __Pyx_modinit_type_import_code(
void) {
15795 __Pyx_RefNannyDeclarations
15796 PyObject *__pyx_t_1 = NULL;
15797 int __pyx_lineno = 0;
15798 const char *__pyx_filename = NULL;
15799 int __pyx_clineno = 0;
15800 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
15802 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
15803 __Pyx_GOTREF(__pyx_t_1);
15804 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
15805 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
15806 sizeof(PyTypeObject),
15808 sizeof(PyHeapTypeObject),
15810 __Pyx_ImportType_CheckSize_Warn);
15811 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error)
15812 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15813 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 200, __pyx_L1_error)
15814 __Pyx_GOTREF(__pyx_t_1);
15815 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
15816 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(2, 200, __pyx_L1_error)
15817 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
15818 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(2, 223, __pyx_L1_error)
15819 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
15820 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(2, 227, __pyx_L1_error)
15821 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
15822 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(2, 239, __pyx_L1_error)
15823 __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1,
"numpy",
"generic",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15824 if (!__pyx_ptype_5numpy_generic) __PYX_ERR(2, 771, __pyx_L1_error)
15825 __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1,
"numpy",
"number",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15826 if (!__pyx_ptype_5numpy_number) __PYX_ERR(2, 773, __pyx_L1_error)
15827 __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1,
"numpy",
"integer",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15828 if (!__pyx_ptype_5numpy_integer) __PYX_ERR(2, 775, __pyx_L1_error)
15829 __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"signedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15830 if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(2, 777, __pyx_L1_error)
15831 __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"unsignedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15832 if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(2, 779, __pyx_L1_error)
15833 __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1,
"numpy",
"inexact",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15834 if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(2, 781, __pyx_L1_error)
15835 __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"floating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15836 if (!__pyx_ptype_5numpy_floating) __PYX_ERR(2, 783, __pyx_L1_error)
15837 __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"complexfloating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15838 if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(2, 785, __pyx_L1_error)
15839 __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flexible",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15840 if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(2, 787, __pyx_L1_error)
15841 __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1,
"numpy",
"character",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
15842 if (!__pyx_ptype_5numpy_character) __PYX_ERR(2, 789, __pyx_L1_error)
15843 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
15844 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(2, 827, __pyx_L1_error)
15845 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15846 __Pyx_RefNannyFinishContext();
15849 __Pyx_XDECREF(__pyx_t_1);
15850 __Pyx_RefNannyFinishContext();
15854 static int __Pyx_modinit_variable_import_code(
void) {
15855 __Pyx_RefNannyDeclarations
15856 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
15858 __Pyx_RefNannyFinishContext();
15862 static int __Pyx_modinit_function_import_code(
void) {
15863 __Pyx_RefNannyDeclarations
15864 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
15866 __Pyx_RefNannyFinishContext();
15871 #ifndef CYTHON_NO_PYINIT_EXPORT
15872 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
15873 #elif PY_MAJOR_VERSION < 3
15875 #define __Pyx_PyMODINIT_FUNC extern "C" void
15877 #define __Pyx_PyMODINIT_FUNC void
15881 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
15883 #define __Pyx_PyMODINIT_FUNC PyObject *
15888 #if PY_MAJOR_VERSION < 3
15889 __Pyx_PyMODINIT_FUNC initcpostprocessing(
void) CYTHON_SMALL_CODE;
15890 __Pyx_PyMODINIT_FUNC initcpostprocessing(
void)
15892 __Pyx_PyMODINIT_FUNC PyInit_cpostprocessing(
void) CYTHON_SMALL_CODE;
15893 __Pyx_PyMODINIT_FUNC PyInit_cpostprocessing(
void)
15894 #if CYTHON_PEP489_MULTI_PHASE_INIT
15896 return PyModuleDef_Init(&__pyx_moduledef);
15898 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
15899 #if PY_VERSION_HEX >= 0x030700A1
15900 static PY_INT64_T main_interpreter_id = -1;
15901 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
15902 if (main_interpreter_id == -1) {
15903 main_interpreter_id = current_id;
15904 return (unlikely(current_id == -1)) ? -1 : 0;
15905 }
else if (unlikely(main_interpreter_id != current_id))
15907 static PyInterpreterState *main_interpreter = NULL;
15908 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
15909 if (!main_interpreter) {
15910 main_interpreter = current_interpreter;
15911 }
else if (unlikely(main_interpreter != current_interpreter))
15916 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
15921 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) {
15922 PyObject *value = PyObject_GetAttrString(spec, from_name);
15924 if (likely(value)) {
15925 if (allow_none || value != Py_None) {
15926 result = PyDict_SetItemString(moddict, to_name, value);
15929 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
15936 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
15937 PyObject *module = NULL, *moddict, *modname;
15938 if (__Pyx_check_single_interpreter())
15941 return __Pyx_NewRef(__pyx_m);
15942 modname = PyObject_GetAttrString(spec,
"name");
15943 if (unlikely(!modname))
goto bad;
15944 module = PyModule_NewObject(modname);
15945 Py_DECREF(modname);
15946 if (unlikely(!module))
goto bad;
15947 moddict = PyModule_GetDict(module);
15948 if (unlikely(!moddict))
goto bad;
15949 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
15950 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
15951 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
15952 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
15955 Py_XDECREF(module);
15960 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_cpostprocessing(PyObject *__pyx_pyinit_module)
15964 PyObject *__pyx_t_1 = NULL;
15965 int __pyx_lineno = 0;
15966 const char *__pyx_filename = NULL;
15967 int __pyx_clineno = 0;
15968 __Pyx_RefNannyDeclarations
15969 #if CYTHON_PEP489_MULTI_PHASE_INIT
15971 if (__pyx_m == __pyx_pyinit_module)
return 0;
15972 PyErr_SetString(PyExc_RuntimeError,
"Module 'cpostprocessing' has already been imported. Re-initialisation is not supported.");
15975 #elif PY_MAJOR_VERSION >= 3
15976 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
15978 #if CYTHON_REFNANNY
15979 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
15980 if (!__Pyx_RefNanny) {
15982 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
15983 if (!__Pyx_RefNanny)
15984 Py_FatalError(
"failed to import 'refnanny' module");
15987 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_cpostprocessing(void)", 0);
15988 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
15989 #ifdef __Pxy_PyFrame_Initialize_Offsets
15990 __Pxy_PyFrame_Initialize_Offsets();
15992 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
15993 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
15994 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
15995 #ifdef __Pyx_CyFunction_USED
15996 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
15998 #ifdef __Pyx_FusedFunction_USED
15999 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16001 #ifdef __Pyx_Coroutine_USED
16002 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16004 #ifdef __Pyx_Generator_USED
16005 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16007 #ifdef __Pyx_AsyncGen_USED
16008 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16010 #ifdef __Pyx_StopAsyncIteration_USED
16011 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16015 #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
16016 PyEval_InitThreads();
16019 #if CYTHON_PEP489_MULTI_PHASE_INIT
16020 __pyx_m = __pyx_pyinit_module;
16021 Py_INCREF(__pyx_m);
16023 #if PY_MAJOR_VERSION < 3
16024 __pyx_m = Py_InitModule4(
"cpostprocessing", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
16026 __pyx_m = PyModule_Create(&__pyx_moduledef);
16028 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
16030 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
16031 Py_INCREF(__pyx_d);
16032 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
16033 Py_INCREF(__pyx_b);
16034 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
16035 Py_INCREF(__pyx_cython_runtime);
16036 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
16038 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16039 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
16040 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16042 if (__pyx_module_is_main_cpostprocessing) {
16043 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16045 #if PY_MAJOR_VERSION >= 3
16047 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
16048 if (!PyDict_GetItemString(modules,
"cpostprocessing")) {
16049 if (unlikely(PyDict_SetItemString(modules,
"cpostprocessing", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
16054 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16056 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16058 (void)__Pyx_modinit_global_init_code();
16059 (void)__Pyx_modinit_variable_export_code();
16060 (void)__Pyx_modinit_function_export_code();
16061 if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
16062 if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
16063 (void)__Pyx_modinit_variable_import_code();
16064 (void)__Pyx_modinit_function_import_code();
16066 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
16067 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16076 __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
16077 __Pyx_GOTREF(__pyx_t_1);
16078 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
16079 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16088 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_1postProcessRT0velocityFromP1nc, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
16089 __Pyx_GOTREF(__pyx_t_1);
16090 if (PyDict_SetItem(__pyx_d, __pyx_n_s_postProcessRT0velocityFromP1nc, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
16091 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16100 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_3postProcessRT0velocityFromP1nc_sd, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
16101 __Pyx_GOTREF(__pyx_t_1);
16102 if (PyDict_SetItem(__pyx_d, __pyx_n_s_postProcessRT0velocityFromP1nc_s, __pyx_t_1) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
16103 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16112 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_5updateRT0velocityWithAveragedPotentialP1nc, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error)
16113 __Pyx_GOTREF(__pyx_t_1);
16114 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateRT0velocityWithAveragedPot, __pyx_t_1) < 0) __PYX_ERR(0, 140, __pyx_L1_error)
16115 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16124 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_7updateRT0velocityWithAveragedPotentialP1nc_sd, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
16125 __Pyx_GOTREF(__pyx_t_1);
16126 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateRT0velocityWithAveragedPot_2, __pyx_t_1) < 0) __PYX_ERR(0, 156, __pyx_L1_error)
16127 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16136 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_9getElementRT0velocityValues, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
16137 __Pyx_GOTREF(__pyx_t_1);
16138 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementRT0velocityValues, __pyx_t_1) < 0) __PYX_ERR(0, 176, __pyx_L1_error)
16139 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16148 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_11getElementBoundaryRT0velocityValues, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error)
16149 __Pyx_GOTREF(__pyx_t_1);
16150 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementBoundaryRT0velocityVal, __pyx_t_1) < 0) __PYX_ERR(0, 186, __pyx_L1_error)
16151 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16160 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_13getGlobalElementBoundaryRT0velocityValues, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
16161 __Pyx_GOTREF(__pyx_t_1);
16162 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalElementBoundaryRT0veloc, __pyx_t_1) < 0) __PYX_ERR(0, 197, __pyx_L1_error)
16163 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16172 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_15getGlobalExteriorElementBoundaryRT0velocityValues, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
16173 __Pyx_GOTREF(__pyx_t_1);
16174 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalExteriorElementBoundary, __pyx_t_1) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
16175 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16184 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_17postProcessRT0potentialFromP1nc, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
16185 __Pyx_GOTREF(__pyx_t_1);
16186 if (PyDict_SetItem(__pyx_d, __pyx_n_s_postProcessRT0potentialFromP1nc, __pyx_t_1) < 0) __PYX_ERR(0, 223, __pyx_L1_error)
16187 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16196 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_19postProcessRT0potentialFromP1nc_sd, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error)
16197 __Pyx_GOTREF(__pyx_t_1);
16198 if (PyDict_SetItem(__pyx_d, __pyx_n_s_postProcessRT0potentialFromP1nc_2, __pyx_t_1) < 0) __PYX_ERR(0, 261, __pyx_L1_error)
16199 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16208 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_21buildLocalBDM1projectionMatrices, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
16209 __Pyx_GOTREF(__pyx_t_1);
16210 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildLocalBDM1projectionMatrices, __pyx_t_1) < 0) __PYX_ERR(0, 303, __pyx_L1_error)
16211 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16220 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_23buildLocalBDM2projectionMatrices, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
16221 __Pyx_GOTREF(__pyx_t_1);
16222 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildLocalBDM2projectionMatrices, __pyx_t_1) < 0) __PYX_ERR(0, 319, __pyx_L1_error)
16223 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16232 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_25factorLocalBDM1projectionMatrices, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 349, __pyx_L1_error)
16233 __Pyx_GOTREF(__pyx_t_1);
16234 if (PyDict_SetItem(__pyx_d, __pyx_n_s_factorLocalBDM1projectionMatrice, __pyx_t_1) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
16235 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16244 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_27factorLocalBDM2projectionMatrices, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 356, __pyx_L1_error)
16245 __Pyx_GOTREF(__pyx_t_1);
16246 if (PyDict_SetItem(__pyx_d, __pyx_n_s_factorLocalBDM2projectionMatrice, __pyx_t_1) < 0) __PYX_ERR(0, 356, __pyx_L1_error)
16247 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16256 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_29solveLocalBDM1projection, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error)
16257 __Pyx_GOTREF(__pyx_t_1);
16258 if (PyDict_SetItem(__pyx_d, __pyx_n_s_solveLocalBDM1projection, __pyx_t_1) < 0) __PYX_ERR(0, 363, __pyx_L1_error)
16259 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16268 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_31solveLocalBDM2projection, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 382, __pyx_L1_error)
16269 __Pyx_GOTREF(__pyx_t_1);
16270 if (PyDict_SetItem(__pyx_d, __pyx_n_s_solveLocalBDM2projection, __pyx_t_1) < 0) __PYX_ERR(0, 382, __pyx_L1_error)
16271 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16280 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_33buildBDM2rhs, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 405, __pyx_L1_error)
16281 __Pyx_GOTREF(__pyx_t_1);
16282 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildBDM2rhs, __pyx_t_1) < 0) __PYX_ERR(0, 405, __pyx_L1_error)
16283 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16292 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_35solveLocalBDM1projectionFromFlux, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 434, __pyx_L1_error)
16293 __Pyx_GOTREF(__pyx_t_1);
16294 if (PyDict_SetItem(__pyx_d, __pyx_n_s_solveLocalBDM1projectionFromFlux, __pyx_t_1) < 0) __PYX_ERR(0, 434, __pyx_L1_error)
16295 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16304 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_37getElementBDM1velocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 454, __pyx_L1_error)
16305 __Pyx_GOTREF(__pyx_t_1);
16306 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementBDM1velocityValuesLagr, __pyx_t_1) < 0) __PYX_ERR(0, 454, __pyx_L1_error)
16307 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16316 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_39getElementBDM2velocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 470, __pyx_L1_error)
16317 __Pyx_GOTREF(__pyx_t_1);
16318 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementBDM2velocityValuesLagr, __pyx_t_1) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
16319 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16328 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_41getElementLDGvelocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 492, __pyx_L1_error)
16329 __Pyx_GOTREF(__pyx_t_1);
16330 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementLDGvelocityValuesLagra, __pyx_t_1) < 0) __PYX_ERR(0, 492, __pyx_L1_error)
16331 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16340 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_43getGlobalExteriorElementBoundaryBDM1velocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 508, __pyx_L1_error)
16341 __Pyx_GOTREF(__pyx_t_1);
16342 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalExteriorElementBoundary_2, __pyx_t_1) < 0) __PYX_ERR(0, 508, __pyx_L1_error)
16343 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16352 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_45getGlobalElementBoundaryBDM1velocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 527, __pyx_L1_error)
16353 __Pyx_GOTREF(__pyx_t_1);
16354 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalElementBoundaryBDM1velo, __pyx_t_1) < 0) __PYX_ERR(0, 527, __pyx_L1_error)
16355 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16364 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_47getElementBoundaryBDM1velocityValuesLagrangeRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 546, __pyx_L1_error)
16365 __Pyx_GOTREF(__pyx_t_1);
16366 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementBoundaryBDM1velocityVa, __pyx_t_1) < 0) __PYX_ERR(0, 546, __pyx_L1_error)
16367 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16376 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_49projectElementBoundaryVelocityToRT0fluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 566, __pyx_L1_error)
16377 __Pyx_GOTREF(__pyx_t_1);
16378 if (PyDict_SetItem(__pyx_d, __pyx_n_s_projectElementBoundaryVelocityTo, __pyx_t_1) < 0) __PYX_ERR(0, 566, __pyx_L1_error)
16379 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16388 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_51projectElementBoundaryFluxToRT0fluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
16389 __Pyx_GOTREF(__pyx_t_1);
16390 if (PyDict_SetItem(__pyx_d, __pyx_n_s_projectElementBoundaryFluxToRT0f, __pyx_t_1) < 0) __PYX_ERR(0, 579, __pyx_L1_error)
16391 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16400 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_53getElementRT0velocityValuesFluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __pyx_L1_error)
16401 __Pyx_GOTREF(__pyx_t_1);
16402 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementRT0velocityValuesFluxR, __pyx_t_1) < 0) __PYX_ERR(0, 594, __pyx_L1_error)
16403 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16412 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_55getElementBoundaryRT0velocityValuesFluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error)
16413 __Pyx_GOTREF(__pyx_t_1);
16414 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getElementBoundaryRT0velocityVal_2, __pyx_t_1) < 0) __PYX_ERR(0, 612, __pyx_L1_error)
16415 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16424 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_57getGlobalElementBoundaryRT0velocityValuesFluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
16425 __Pyx_GOTREF(__pyx_t_1);
16426 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalElementBoundaryRT0veloc_2, __pyx_t_1) < 0) __PYX_ERR(0, 630, __pyx_L1_error)
16427 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16436 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_59getGlobalExteriorElementBoundaryRT0velocityValuesFluxRep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error)
16437 __Pyx_GOTREF(__pyx_t_1);
16438 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getGlobalExteriorElementBoundary_3, __pyx_t_1) < 0) __PYX_ERR(0, 649, __pyx_L1_error)
16439 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16448 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_61getRT0velocityValuesFluxRep_arbitraryElementMembership, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 670, __pyx_L1_error)
16449 __Pyx_GOTREF(__pyx_t_1);
16450 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getRT0velocityValuesFluxRep_arbi, __pyx_t_1) < 0) __PYX_ERR(0, 670, __pyx_L1_error)
16451 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16460 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_63fluxCorrectionVelocityUpdate, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error)
16461 __Pyx_GOTREF(__pyx_t_1);
16462 if (PyDict_SetItem(__pyx_d, __pyx_n_s_fluxCorrectionVelocityUpdate, __pyx_t_1) < 0) __PYX_ERR(0, 691, __pyx_L1_error)
16463 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16472 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_65computeFluxCorrectionPWC, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
16473 __Pyx_GOTREF(__pyx_t_1);
16474 if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeFluxCorrectionPWC, __pyx_t_1) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
16475 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16484 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_67sunWheelerGSsweep, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
16485 __Pyx_GOTREF(__pyx_t_1);
16486 if (PyDict_SetItem(__pyx_d, __pyx_n_s_sunWheelerGSsweep, __pyx_t_1) < 0) __PYX_ERR(0, 733, __pyx_L1_error)
16487 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16496 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_69calculateConservationResidualPWL, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 818, __pyx_L1_error)
16497 __Pyx_GOTREF(__pyx_t_1);
16498 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualPWL, __pyx_t_1) < 0) __PYX_ERR(0, 818, __pyx_L1_error)
16499 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16508 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_71calculateConservationJacobianPWL, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 873, __pyx_L1_error)
16509 __Pyx_GOTREF(__pyx_t_1);
16510 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationJacobianPWL, __pyx_t_1) < 0) __PYX_ERR(0, 873, __pyx_L1_error)
16511 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16520 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_73calculateConservationFluxPWL, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error)
16521 __Pyx_GOTREF(__pyx_t_1);
16522 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationFluxPWL, __pyx_t_1) < 0) __PYX_ERR(0, 914, __pyx_L1_error)
16523 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16532 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_75calculateConservationFluxPWL_noNeumannFix, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error)
16533 __Pyx_GOTREF(__pyx_t_1);
16534 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationFluxPWL_noN, __pyx_t_1) < 0) __PYX_ERR(0, 925, __pyx_L1_error)
16535 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16544 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_77calculateConservationResidualPWL_opt, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
16545 __Pyx_GOTREF(__pyx_t_1);
16546 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualPWL_2, __pyx_t_1) < 0) __PYX_ERR(0, 931, __pyx_L1_error)
16547 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16556 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_79calculateConservationResidualPWL_primative, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 977, __pyx_L1_error)
16557 __Pyx_GOTREF(__pyx_t_1);
16558 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualPWL_3, __pyx_t_1) < 0) __PYX_ERR(0, 977, __pyx_L1_error)
16559 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16568 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_81calculateConservationJacobianPWL_opt, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1005, __pyx_L1_error)
16569 __Pyx_GOTREF(__pyx_t_1);
16570 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationJacobianPWL_2, __pyx_t_1) < 0) __PYX_ERR(0, 1005, __pyx_L1_error)
16571 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16580 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_83calculateConservationFluxPWL_opt, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1045, __pyx_L1_error)
16581 __Pyx_GOTREF(__pyx_t_1);
16582 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationFluxPWL_opt, __pyx_t_1) < 0) __PYX_ERR(0, 1045, __pyx_L1_error)
16583 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16592 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_85calculateConservationResidualPWL_interiorBoundaries, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error)
16593 __Pyx_GOTREF(__pyx_t_1);
16594 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualPWL_4, __pyx_t_1) < 0) __PYX_ERR(0, 1058, __pyx_L1_error)
16595 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16604 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_87calculateConservationJacobianPWL_interiorBoundaries, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1103, __pyx_L1_error)
16605 __Pyx_GOTREF(__pyx_t_1);
16606 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationJacobianPWL_3, __pyx_t_1) < 0) __PYX_ERR(0, 1103, __pyx_L1_error)
16607 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16616 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_89_subdomain_U_copy_global2local, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1137, __pyx_L1_error)
16617 __Pyx_GOTREF(__pyx_t_1);
16618 if (PyDict_SetItem(__pyx_d, __pyx_n_s_subdomain_U_copy_global2local, __pyx_t_1) < 0) __PYX_ERR(0, 1137, __pyx_L1_error)
16619 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16628 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_91_subdomain_U_copy_local2global, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1150, __pyx_L1_error)
16629 __Pyx_GOTREF(__pyx_t_1);
16630 if (PyDict_SetItem(__pyx_d, __pyx_n_s_subdomain_U_copy_local2global, __pyx_t_1) < 0) __PYX_ERR(0, 1150, __pyx_L1_error)
16631 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16640 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_93calculateConservationResidualGlobalBoundaries, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1163, __pyx_L1_error)
16641 __Pyx_GOTREF(__pyx_t_1);
16642 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualGlo, __pyx_t_1) < 0) __PYX_ERR(0, 1163, __pyx_L1_error)
16643 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16652 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_95updateSelectedExteriorElementBoundaryFlux, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1191, __pyx_L1_error)
16653 __Pyx_GOTREF(__pyx_t_1);
16654 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateSelectedExteriorElementBou, __pyx_t_1) < 0) __PYX_ERR(0, 1191, __pyx_L1_error)
16655 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16664 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_97updateAdvectiveVelocityPointEval, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1210, __pyx_L1_error)
16665 __Pyx_GOTREF(__pyx_t_1);
16666 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvectiveVelocityPointEval, __pyx_t_1) < 0) __PYX_ERR(0, 1210, __pyx_L1_error)
16667 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16676 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_99updateDiffusiveVelocityPointEval, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1220, __pyx_L1_error)
16677 __Pyx_GOTREF(__pyx_t_1);
16678 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusiveVelocityPointEval, __pyx_t_1) < 0) __PYX_ERR(0, 1220, __pyx_L1_error)
16679 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16688 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_101updateDiffusiveVelocityPointEval_sd, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1232, __pyx_L1_error)
16689 __Pyx_GOTREF(__pyx_t_1);
16690 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusiveVelocityPointEval_2, __pyx_t_1) < 0) __PYX_ERR(0, 1232, __pyx_L1_error)
16691 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16700 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_103calculateElementResidualPWL, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1248, __pyx_L1_error)
16701 __Pyx_GOTREF(__pyx_t_1);
16702 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateElementResidualPWL, __pyx_t_1) < 0) __PYX_ERR(0, 1248, __pyx_L1_error)
16703 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16712 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_105copyElementBoundaryVelocityToParVec, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __pyx_L1_error)
16713 __Pyx_GOTREF(__pyx_t_1);
16714 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyElementBoundaryVelocityToPar, __pyx_t_1) < 0) __PYX_ERR(0, 1258, __pyx_L1_error)
16715 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16724 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_107addAverageToParVec, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1272, __pyx_L1_error)
16725 __Pyx_GOTREF(__pyx_t_1);
16726 if (PyDict_SetItem(__pyx_d, __pyx_n_s_addAverageToParVec, __pyx_t_1) < 0) __PYX_ERR(0, 1272, __pyx_L1_error)
16727 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16736 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15cpostprocessing_109copyParVecToElementBoundaryVelocity, NULL, __pyx_n_s_cpostprocessing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1286, __pyx_L1_error)
16737 __Pyx_GOTREF(__pyx_t_1);
16738 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyParVecToElementBoundaryVeloc, __pyx_t_1) < 0) __PYX_ERR(0, 1286, __pyx_L1_error)
16739 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16746 __pyx_t_1 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
16747 __Pyx_GOTREF(__pyx_t_1);
16748 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16749 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16763 __Pyx_XDECREF(__pyx_t_1);
16766 __Pyx_AddTraceback(
"init cpostprocessing", __pyx_clineno, __pyx_lineno, __pyx_filename);
16769 }
else if (!PyErr_Occurred()) {
16770 PyErr_SetString(PyExc_ImportError,
"init cpostprocessing");
16773 __Pyx_RefNannyFinishContext();
16774 #if CYTHON_PEP489_MULTI_PHASE_INIT
16775 return (__pyx_m != NULL) ? 0 : -1;
16776 #elif PY_MAJOR_VERSION >= 3
16785 #if CYTHON_REFNANNY
16786 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
16787 PyObject *m = NULL, *p = NULL;
16789 m = PyImport_ImportModule(modname);
16791 p = PyObject_GetAttrString(m,
"RefNannyAPI");
16793 r = PyLong_AsVoidPtr(p);
16797 return (__Pyx_RefNannyAPIStruct *)
r;
16802 #if CYTHON_USE_TYPE_SLOTS
16803 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
16804 PyTypeObject* tp = Py_TYPE(obj);
16805 if (likely(tp->tp_getattro))
16806 return tp->tp_getattro(obj, attr_name);
16807 #if PY_MAJOR_VERSION < 3
16808 if (likely(tp->tp_getattr))
16809 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
16811 return PyObject_GetAttr(obj, attr_name);
16816 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
16817 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
16818 if (unlikely(!result)) {
16819 PyErr_Format(PyExc_NameError,
16820 #
if PY_MAJOR_VERSION >= 3
16821 "name '%U' is not defined", name);
16823 "name '%.200s' is not defined", PyString_AS_STRING(name));
16830 static void __Pyx_RaiseArgtupleInvalid(
16831 const char* func_name,
16833 Py_ssize_t num_min,
16834 Py_ssize_t num_max,
16835 Py_ssize_t num_found)
16837 Py_ssize_t num_expected;
16838 const char *more_or_less;
16839 if (num_found < num_min) {
16840 num_expected = num_min;
16841 more_or_less =
"at least";
16843 num_expected = num_max;
16844 more_or_less =
"at most";
16847 more_or_less =
"exactly";
16849 PyErr_Format(PyExc_TypeError,
16850 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
16851 func_name, more_or_less, num_expected,
16852 (num_expected == 1) ?
"" :
"s", num_found);
16856 static void __Pyx_RaiseDoubleKeywordsError(
16857 const char* func_name,
16860 PyErr_Format(PyExc_TypeError,
16861 #
if PY_MAJOR_VERSION >= 3
16862 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
16864 "%s() got multiple values for keyword argument '%s'", func_name,
16865 PyString_AsString(kw_name));
16870 static int __Pyx_ParseOptionalKeywords(
16872 PyObject **argnames[],
16874 PyObject *values[],
16875 Py_ssize_t num_pos_args,
16876 const char* function_name)
16878 PyObject *key = 0, *value = 0;
16879 Py_ssize_t
pos = 0;
16881 PyObject*** first_kw_arg = argnames + num_pos_args;
16882 while (PyDict_Next(kwds, &
pos, &key, &value)) {
16883 name = first_kw_arg;
16884 while (*name && (**name != key)) name++;
16886 values[name-argnames] = value;
16889 name = first_kw_arg;
16890 #if PY_MAJOR_VERSION < 3
16891 if (likely(PyString_Check(key))) {
16893 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
16894 && _PyString_Eq(**name, key)) {
16895 values[name-argnames] = value;
16900 if (*name)
continue;
16902 PyObject*** argname = argnames;
16903 while (argname != first_kw_arg) {
16904 if ((**argname == key) || (
16905 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
16906 && _PyString_Eq(**argname, key))) {
16907 goto arg_passed_twice;
16914 if (likely(PyUnicode_Check(key))) {
16916 int cmp = (**name == key) ? 0 :
16917 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
16918 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
16920 PyUnicode_Compare(**name, key);
16921 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
16923 values[name-argnames] = value;
16928 if (*name)
continue;
16930 PyObject*** argname = argnames;
16931 while (argname != first_kw_arg) {
16932 int cmp = (**argname == key) ? 0 :
16933 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
16934 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
16936 PyUnicode_Compare(**argname, key);
16937 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
16938 if (cmp == 0)
goto arg_passed_twice;
16943 goto invalid_keyword_type;
16945 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
16947 goto invalid_keyword;
16952 __Pyx_RaiseDoubleKeywordsError(function_name, key);
16954 invalid_keyword_type:
16955 PyErr_Format(PyExc_TypeError,
16956 "%.200s() keywords must be strings", function_name);
16959 PyErr_Format(PyExc_TypeError,
16960 #
if PY_MAJOR_VERSION < 3
16961 "%.200s() got an unexpected keyword argument '%.200s'",
16962 function_name, PyString_AsString(key));
16964 "%s() got an unexpected keyword argument '%U'",
16965 function_name, key);
16972 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
16974 if (unlikely(!type)) {
16975 PyErr_SetString(PyExc_SystemError,
"Missing type object");
16979 #if PY_MAJOR_VERSION == 2
16980 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
16984 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
16986 PyErr_Format(PyExc_TypeError,
16987 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
16988 name, type->tp_name, Py_TYPE(obj)->tp_name);
16993 #if CYTHON_COMPILING_IN_CPYTHON
16994 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
16996 ternaryfunc call = Py_TYPE(func)->tp_call;
16997 if (unlikely(!call))
16998 return PyObject_Call(func, arg, kw);
16999 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
17001 result = (*call)(func, arg, kw);
17002 Py_LeaveRecursiveCall();
17003 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
17006 "NULL result without error in PyObject_Call");
17013 #if CYTHON_FAST_THREAD_STATE
17014 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
17015 PyObject *tmp_type, *tmp_value, *tmp_tb;
17016 tmp_type = tstate->curexc_type;
17017 tmp_value = tstate->curexc_value;
17018 tmp_tb = tstate->curexc_traceback;
17019 tstate->curexc_type = type;
17020 tstate->curexc_value = value;
17021 tstate->curexc_traceback = tb;
17022 Py_XDECREF(tmp_type);
17023 Py_XDECREF(tmp_value);
17024 Py_XDECREF(tmp_tb);
17026 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
17027 *type = tstate->curexc_type;
17028 *value = tstate->curexc_value;
17029 *tb = tstate->curexc_traceback;
17030 tstate->curexc_type = 0;
17031 tstate->curexc_value = 0;
17032 tstate->curexc_traceback = 0;
17037 #if PY_MAJOR_VERSION < 3
17038 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
17039 CYTHON_UNUSED PyObject *cause) {
17040 __Pyx_PyThreadState_declare
17042 if (!value || value == Py_None)
17046 if (!tb || tb == Py_None)
17050 if (!PyTraceBack_Check(tb)) {
17051 PyErr_SetString(PyExc_TypeError,
17052 "raise: arg 3 must be a traceback or None");
17056 if (PyType_Check(type)) {
17057 #if CYTHON_COMPILING_IN_PYPY
17059 Py_INCREF(Py_None);
17063 PyErr_NormalizeException(&type, &value, &tb);
17066 PyErr_SetString(PyExc_TypeError,
17067 "instance exception may not have a separate value");
17071 type = (PyObject*) Py_TYPE(type);
17073 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
17074 PyErr_SetString(PyExc_TypeError,
17075 "raise: exception class must be a subclass of BaseException");
17079 __Pyx_PyThreadState_assign
17080 __Pyx_ErrRestore(type, value, tb);
17089 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
17090 PyObject* owned_instance = NULL;
17091 if (tb == Py_None) {
17093 }
else if (tb && !PyTraceBack_Check(tb)) {
17094 PyErr_SetString(PyExc_TypeError,
17095 "raise: arg 3 must be a traceback or None");
17098 if (value == Py_None)
17100 if (PyExceptionInstance_Check(type)) {
17102 PyErr_SetString(PyExc_TypeError,
17103 "instance exception may not have a separate value");
17107 type = (PyObject*) Py_TYPE(value);
17108 }
else if (PyExceptionClass_Check(type)) {
17109 PyObject *instance_class = NULL;
17110 if (value && PyExceptionInstance_Check(value)) {
17111 instance_class = (PyObject*) Py_TYPE(value);
17112 if (instance_class != type) {
17113 int is_subclass = PyObject_IsSubclass(instance_class, type);
17114 if (!is_subclass) {
17115 instance_class = NULL;
17116 }
else if (unlikely(is_subclass == -1)) {
17119 type = instance_class;
17123 if (!instance_class) {
17126 args = PyTuple_New(0);
17127 else if (PyTuple_Check(value)) {
17131 args = PyTuple_Pack(1, value);
17134 owned_instance = PyObject_Call(type, args, NULL);
17136 if (!owned_instance)
17138 value = owned_instance;
17139 if (!PyExceptionInstance_Check(value)) {
17140 PyErr_Format(PyExc_TypeError,
17141 "calling %R should have returned an instance of "
17142 "BaseException, not %R",
17143 type, Py_TYPE(value));
17148 PyErr_SetString(PyExc_TypeError,
17149 "raise: exception class must be a subclass of BaseException");
17153 PyObject *fixed_cause;
17154 if (cause == Py_None) {
17155 fixed_cause = NULL;
17156 }
else if (PyExceptionClass_Check(cause)) {
17157 fixed_cause = PyObject_CallObject(cause, NULL);
17158 if (fixed_cause == NULL)
17160 }
else if (PyExceptionInstance_Check(cause)) {
17161 fixed_cause = cause;
17162 Py_INCREF(fixed_cause);
17164 PyErr_SetString(PyExc_TypeError,
17165 "exception causes must derive from "
17169 PyException_SetCause(value, fixed_cause);
17171 PyErr_SetObject(type, value);
17173 #if CYTHON_COMPILING_IN_PYPY
17174 PyObject *tmp_type, *tmp_value, *tmp_tb;
17175 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
17177 PyErr_Restore(tmp_type, tmp_value, tb);
17178 Py_XDECREF(tmp_tb);
17180 PyThreadState *tstate = __Pyx_PyThreadState_Current;
17181 PyObject* tmp_tb = tstate->curexc_traceback;
17182 if (tb != tmp_tb) {
17184 tstate->curexc_traceback = tb;
17185 Py_XDECREF(tmp_tb);
17190 Py_XDECREF(owned_instance);
17196 static CYTHON_INLINE
int __Pyx_Is_Little_Endian(
void)
17202 S.u32 = 0x01020304;
17203 return S.u8[0] == 4;
17207 static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
17208 __Pyx_BufFmt_StackElem* stack,
17209 __Pyx_TypeInfo* type) {
17210 stack[0].field = &ctx->root;
17211 stack[0].parent_offset = 0;
17212 ctx->root.type = type;
17213 ctx->root.name =
"buffer dtype";
17214 ctx->root.offset = 0;
17216 ctx->head->field = &ctx->root;
17217 ctx->fmt_offset = 0;
17218 ctx->head->parent_offset = 0;
17219 ctx->new_packmode =
'@';
17220 ctx->enc_packmode =
'@';
17221 ctx->new_count = 1;
17222 ctx->enc_count = 0;
17224 ctx->is_complex = 0;
17225 ctx->is_valid_array = 0;
17226 ctx->struct_alignment = 0;
17227 while (type->typegroup ==
'S') {
17229 ctx->head->field = type->fields;
17230 ctx->head->parent_offset = 0;
17231 type = type->fields->type;
17234 static int __Pyx_BufFmt_ParseNumber(
const char** ts) {
17236 const char* t = *ts;
17237 if (*t < '0' || *t >
'9') {
17240 count = *t++ -
'0';
17241 while (*t >=
'0' && *t <=
'9') {
17243 count += *t++ -
'0';
17249 static int __Pyx_BufFmt_ExpectNumber(
const char **ts) {
17250 int number = __Pyx_BufFmt_ParseNumber(ts);
17252 PyErr_Format(PyExc_ValueError,\
17253 "Does not understand character buffer dtype format string ('%c')", **ts);
17256 static void __Pyx_BufFmt_RaiseUnexpectedChar(
char ch) {
17257 PyErr_Format(PyExc_ValueError,
17258 "Unexpected format string character: '%c'", ch);
17260 static const char* __Pyx_BufFmt_DescribeTypeChar(
char ch,
int is_complex) {
17262 case '?':
return "'bool'";
17263 case 'c':
return "'char'";
17264 case 'b':
return "'signed char'";
17265 case 'B':
return "'unsigned char'";
17266 case 'h':
return "'short'";
17267 case 'H':
return "'unsigned short'";
17268 case 'i':
return "'int'";
17269 case 'I':
return "'unsigned int'";
17270 case 'l':
return "'long'";
17271 case 'L':
return "'unsigned long'";
17272 case 'q':
return "'long long'";
17273 case 'Q':
return "'unsigned long long'";
17274 case 'f':
return (is_complex ?
"'complex float'" :
"'float'");
17275 case 'd':
return (is_complex ?
"'complex double'" :
"'double'");
17276 case 'g':
return (is_complex ?
"'complex long double'" :
"'long double'");
17277 case 'T':
return "a struct";
17278 case 'O':
return "Python object";
17279 case 'P':
return "a pointer";
17280 case 's':
case 'p':
return "a string";
17281 case 0:
return "end";
17282 default:
return "unparseable format string";
17285 static size_t __Pyx_BufFmt_TypeCharToStandardSize(
char ch,
int is_complex) {
17287 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
17288 case 'h':
case 'H':
return 2;
17289 case 'i':
case 'I':
case 'l':
case 'L':
return 4;
17290 case 'q':
case 'Q':
return 8;
17291 case 'f':
return (is_complex ? 8 : 4);
17292 case 'd':
return (is_complex ? 16 : 8);
17294 PyErr_SetString(PyExc_ValueError,
"Python does not define a standard format string size for long double ('g')..");
17297 case 'O':
case 'P':
return sizeof(
void*);
17299 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
17303 static size_t __Pyx_BufFmt_TypeCharToNativeSize(
char ch,
int is_complex) {
17305 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
17306 case 'h':
case 'H':
return sizeof(short);
17307 case 'i':
case 'I':
return sizeof(int);
17308 case 'l':
case 'L':
return sizeof(long);
17309 #ifdef HAVE_LONG_LONG
17310 case 'q':
case 'Q':
return sizeof(PY_LONG_LONG);
17312 case 'f':
return sizeof(float) * (is_complex ? 2 : 1);
17313 case 'd':
return sizeof(double) * (is_complex ? 2 : 1);
17314 case 'g':
return sizeof(
long double) * (is_complex ? 2 : 1);
17315 case 'O':
case 'P':
return sizeof(
void*);
17317 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
17322 typedef struct {
char c;
short x; } __Pyx_st_short;
17323 typedef struct {
char c;
int x; } __Pyx_st_int;
17324 typedef struct {
char c;
long x; } __Pyx_st_long;
17325 typedef struct {
char c;
float x; } __Pyx_st_float;
17326 typedef struct {
char c;
double x; } __Pyx_st_double;
17327 typedef struct {
char c;
long double x; } __Pyx_st_longdouble;
17328 typedef struct {
char c;
void *x; } __Pyx_st_void_p;
17329 #ifdef HAVE_LONG_LONG
17330 typedef struct {
char c; PY_LONG_LONG x; } __Pyx_st_longlong;
17332 static size_t __Pyx_BufFmt_TypeCharToAlignment(
char ch, CYTHON_UNUSED
int is_complex) {
17334 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
17335 case 'h':
case 'H':
return sizeof(__Pyx_st_short) -
sizeof(
short);
17336 case 'i':
case 'I':
return sizeof(__Pyx_st_int) -
sizeof(
int);
17337 case 'l':
case 'L':
return sizeof(__Pyx_st_long) -
sizeof(
long);
17338 #ifdef HAVE_LONG_LONG
17339 case 'q':
case 'Q':
return sizeof(__Pyx_st_longlong) -
sizeof(PY_LONG_LONG);
17341 case 'f':
return sizeof(__Pyx_st_float) -
sizeof(
float);
17342 case 'd':
return sizeof(__Pyx_st_double) -
sizeof(
double);
17343 case 'g':
return sizeof(__Pyx_st_longdouble) -
sizeof(
long double);
17344 case 'P':
case 'O':
return sizeof(__Pyx_st_void_p) -
sizeof(
void*);
17346 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
17354 typedef struct {
short x;
char c; } __Pyx_pad_short;
17355 typedef struct {
int x;
char c; } __Pyx_pad_int;
17356 typedef struct {
long x;
char c; } __Pyx_pad_long;
17357 typedef struct {
float x;
char c; } __Pyx_pad_float;
17358 typedef struct {
double x;
char c; } __Pyx_pad_double;
17359 typedef struct {
long double x;
char c; } __Pyx_pad_longdouble;
17360 typedef struct {
void *x;
char c; } __Pyx_pad_void_p;
17361 #ifdef HAVE_LONG_LONG
17362 typedef struct { PY_LONG_LONG x;
char c; } __Pyx_pad_longlong;
17364 static size_t __Pyx_BufFmt_TypeCharToPadding(
char ch, CYTHON_UNUSED
int is_complex) {
17366 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
17367 case 'h':
case 'H':
return sizeof(__Pyx_pad_short) -
sizeof(
short);
17368 case 'i':
case 'I':
return sizeof(__Pyx_pad_int) -
sizeof(
int);
17369 case 'l':
case 'L':
return sizeof(__Pyx_pad_long) -
sizeof(
long);
17370 #ifdef HAVE_LONG_LONG
17371 case 'q':
case 'Q':
return sizeof(__Pyx_pad_longlong) -
sizeof(PY_LONG_LONG);
17373 case 'f':
return sizeof(__Pyx_pad_float) -
sizeof(
float);
17374 case 'd':
return sizeof(__Pyx_pad_double) -
sizeof(
double);
17375 case 'g':
return sizeof(__Pyx_pad_longdouble) -
sizeof(
long double);
17376 case 'P':
case 'O':
return sizeof(__Pyx_pad_void_p) -
sizeof(
void*);
17378 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
17382 static char __Pyx_BufFmt_TypeCharToGroup(
char ch,
int is_complex) {
17386 case 'b':
case 'h':
case 'i':
17387 case 'l':
case 'q':
case 's':
case 'p':
17389 case '?':
case 'B':
case 'H':
case 'I':
case 'L':
case 'Q':
17391 case 'f':
case 'd':
case 'g':
17392 return (is_complex ?
'C' :
'R');
17398 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
17403 static void __Pyx_BufFmt_RaiseExpected(__Pyx_BufFmt_Context* ctx) {
17404 if (ctx->head == NULL || ctx->head->field == &ctx->root) {
17405 const char* expected;
17407 if (ctx->head == NULL) {
17411 expected = ctx->head->field->type->name;
17414 PyErr_Format(PyExc_ValueError,
17415 "Buffer dtype mismatch, expected %s%s%s but got %s",
17416 quote, expected, quote,
17417 __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex));
17419 __Pyx_StructField* field = ctx->head->field;
17420 __Pyx_StructField* parent = (ctx->head - 1)->field;
17421 PyErr_Format(PyExc_ValueError,
17422 "Buffer dtype mismatch, expected '%s' but got %s in '%s.%s'",
17423 field->type->name, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex),
17424 parent->type->name, field->name);
17427 static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
17429 size_t size, offset, arraysize = 1;
17430 if (ctx->enc_type == 0)
return 0;
17431 if (ctx->head->field->type->arraysize[0]) {
17433 if (ctx->enc_type ==
's' || ctx->enc_type ==
'p') {
17434 ctx->is_valid_array = ctx->head->field->type->ndim == 1;
17436 if (ctx->enc_count != ctx->head->field->type->arraysize[0]) {
17437 PyErr_Format(PyExc_ValueError,
17438 "Expected a dimension of size %zu, got %zu",
17439 ctx->head->field->type->arraysize[0], ctx->enc_count);
17443 if (!ctx->is_valid_array) {
17444 PyErr_Format(PyExc_ValueError,
"Expected %d dimensions, got %d",
17445 ctx->head->field->type->ndim, ndim);
17448 for (i = 0; i < ctx->head->field->type->ndim; i++) {
17449 arraysize *= ctx->head->field->type->arraysize[i];
17451 ctx->is_valid_array = 0;
17452 ctx->enc_count = 1;
17454 group = __Pyx_BufFmt_TypeCharToGroup(ctx->enc_type, ctx->is_complex);
17456 __Pyx_StructField* field = ctx->head->field;
17457 __Pyx_TypeInfo* type = field->type;
17458 if (ctx->enc_packmode ==
'@' || ctx->enc_packmode ==
'^') {
17459 size = __Pyx_BufFmt_TypeCharToNativeSize(ctx->enc_type, ctx->is_complex);
17461 size = __Pyx_BufFmt_TypeCharToStandardSize(ctx->enc_type, ctx->is_complex);
17463 if (ctx->enc_packmode ==
'@') {
17464 size_t align_at = __Pyx_BufFmt_TypeCharToAlignment(ctx->enc_type, ctx->is_complex);
17465 size_t align_mod_offset;
17466 if (align_at == 0)
return -1;
17467 align_mod_offset = ctx->fmt_offset % align_at;
17468 if (align_mod_offset > 0) ctx->fmt_offset += align_at - align_mod_offset;
17469 if (ctx->struct_alignment == 0)
17470 ctx->struct_alignment = __Pyx_BufFmt_TypeCharToPadding(ctx->enc_type,
17473 if (type->size != size || type->typegroup != group) {
17474 if (type->typegroup ==
'C' && type->fields != NULL) {
17475 size_t parent_offset = ctx->head->parent_offset + field->offset;
17477 ctx->head->field = type->fields;
17478 ctx->head->parent_offset = parent_offset;
17481 if ((type->typegroup ==
'H' || group ==
'H') && type->size == size) {
17483 __Pyx_BufFmt_RaiseExpected(ctx);
17487 offset = ctx->head->parent_offset + field->offset;
17488 if (ctx->fmt_offset != offset) {
17489 PyErr_Format(PyExc_ValueError,
17490 "Buffer dtype mismatch; next field is at offset %" CYTHON_FORMAT_SSIZE_T
"d but %" CYTHON_FORMAT_SSIZE_T
"d expected",
17491 (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset);
17494 ctx->fmt_offset += size;
17496 ctx->fmt_offset += (arraysize - 1) * size;
17499 if (field == &ctx->root) {
17501 if (ctx->enc_count != 0) {
17502 __Pyx_BufFmt_RaiseExpected(ctx);
17507 ctx->head->field = ++field;
17508 if (field->type == NULL) {
17510 field = ctx->head->field;
17512 }
else if (field->type->typegroup ==
'S') {
17513 size_t parent_offset = ctx->head->parent_offset + field->offset;
17514 if (field->type->fields->type == NULL)
continue;
17515 field = field->type->fields;
17517 ctx->head->field = field;
17518 ctx->head->parent_offset = parent_offset;
17524 }
while (ctx->enc_count);
17526 ctx->is_complex = 0;
17530 __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx,
const char** tsp)
17532 const char *ts = *tsp;
17533 int i = 0,
number, ndim;
17535 if (ctx->new_count != 1) {
17536 PyErr_SetString(PyExc_ValueError,
17537 "Cannot handle repeated arrays in format string");
17540 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17541 ndim = ctx->head->field->type->ndim;
17542 while (*ts && *ts !=
')') {
17544 case ' ':
case '\f':
case '\r':
case '\n':
case '\t':
case '\v':
continue;
17547 number = __Pyx_BufFmt_ExpectNumber(&ts);
17548 if (
number == -1)
return NULL;
17549 if (i < ndim && (
size_t)
number != ctx->head->field->type->arraysize[i])
17550 return PyErr_Format(PyExc_ValueError,
17551 "Expected a dimension of size %zu, got %d",
17552 ctx->head->field->type->arraysize[i],
number);
17553 if (*ts !=
',' && *ts !=
')')
17554 return PyErr_Format(PyExc_ValueError,
17555 "Expected a comma in format string, got '%c'", *ts);
17556 if (*ts ==
',') ts++;
17560 return PyErr_Format(PyExc_ValueError,
"Expected %d dimension(s), got %d",
17561 ctx->head->field->type->ndim, i);
17563 PyErr_SetString(PyExc_ValueError,
17564 "Unexpected end of format string, expected ')'");
17567 ctx->is_valid_array = 1;
17568 ctx->new_count = 1;
17572 static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx,
const char* ts) {
17577 if (ctx->enc_type != 0 && ctx->head == NULL) {
17578 __Pyx_BufFmt_RaiseExpected(ctx);
17581 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17582 if (ctx->head != NULL) {
17583 __Pyx_BufFmt_RaiseExpected(ctx);
17593 if (!__Pyx_Is_Little_Endian()) {
17594 PyErr_SetString(PyExc_ValueError,
"Little-endian buffer not supported on big-endian compiler");
17597 ctx->new_packmode =
'=';
17602 if (__Pyx_Is_Little_Endian()) {
17603 PyErr_SetString(PyExc_ValueError,
"Big-endian buffer not supported on little-endian compiler");
17606 ctx->new_packmode =
'=';
17612 ctx->new_packmode = *ts++;
17616 const char* ts_after_sub;
17617 size_t i, struct_count = ctx->new_count;
17618 size_t struct_alignment = ctx->struct_alignment;
17619 ctx->new_count = 1;
17622 PyErr_SetString(PyExc_ValueError,
"Buffer acquisition: Expected '{' after 'T'");
17625 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17627 ctx->enc_count = 0;
17628 ctx->struct_alignment = 0;
17631 for (i = 0; i != struct_count; ++i) {
17632 ts_after_sub = __Pyx_BufFmt_CheckString(ctx, ts);
17633 if (!ts_after_sub)
return NULL;
17636 if (struct_alignment) ctx->struct_alignment = struct_alignment;
17641 size_t alignment = ctx->struct_alignment;
17643 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17645 if (alignment && ctx->fmt_offset % alignment) {
17646 ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
17651 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17652 ctx->fmt_offset += ctx->new_count;
17653 ctx->new_count = 1;
17654 ctx->enc_count = 0;
17656 ctx->enc_packmode = ctx->new_packmode;
17662 if (*ts !=
'f' && *ts !=
'd' && *ts !=
'g') {
17663 __Pyx_BufFmt_RaiseUnexpectedChar(
'Z');
17666 CYTHON_FALLTHROUGH;
17667 case '?':
case 'c':
case 'b':
case 'B':
case 'h':
case 'H':
case 'i':
case 'I':
17668 case 'l':
case 'L':
case 'q':
case 'Q':
17669 case 'f':
case 'd':
case 'g':
17670 case 'O':
case 'p':
17671 if ((ctx->enc_type == *ts) && (got_Z == ctx->is_complex) &&
17672 (ctx->enc_packmode == ctx->new_packmode) && (!ctx->is_valid_array)) {
17673 ctx->enc_count += ctx->new_count;
17674 ctx->new_count = 1;
17679 CYTHON_FALLTHROUGH;
17681 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
17682 ctx->enc_count = ctx->new_count;
17683 ctx->enc_packmode = ctx->new_packmode;
17684 ctx->enc_type = *ts;
17685 ctx->is_complex = got_Z;
17687 ctx->new_count = 1;
17692 while(*ts !=
':') ++ts;
17696 if (!__pyx_buffmt_parse_array(ctx, &ts))
return NULL;
17700 int number = __Pyx_BufFmt_ExpectNumber(&ts);
17701 if (
number == -1)
return NULL;
17702 ctx->new_count = (size_t)
number;
17709 static CYTHON_INLINE
void __Pyx_SafeReleaseBuffer(Py_buffer* info) {
17710 if (unlikely(info->buf == NULL))
return;
17711 if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL;
17712 __Pyx_ReleaseBuffer(info);
17714 static void __Pyx_ZeroBuffer(Py_buffer* buf) {
17717 buf->strides = __Pyx_zeros;
17718 buf->shape = __Pyx_zeros;
17719 buf->suboffsets = __Pyx_minusones;
17721 static int __Pyx__GetBufferAndValidate(
17722 Py_buffer* buf, PyObject* obj, __Pyx_TypeInfo* dtype,
int flags,
17723 int nd,
int cast, __Pyx_BufFmt_StackElem* stack)
17726 if (unlikely(__Pyx_GetBuffer(obj, buf, flags) == -1)) {
17727 __Pyx_ZeroBuffer(buf);
17730 if (unlikely(buf->ndim != nd)) {
17731 PyErr_Format(PyExc_ValueError,
17732 "Buffer has wrong number of dimensions (expected %d, got %d)",
17737 __Pyx_BufFmt_Context ctx;
17738 __Pyx_BufFmt_Init(&ctx, stack, dtype);
17739 if (!__Pyx_BufFmt_CheckString(&ctx, buf->format))
goto fail;
17741 if (unlikely((
size_t)buf->itemsize != dtype->size)) {
17742 PyErr_Format(PyExc_ValueError,
17743 "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T
"d byte%s) does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T
"d byte%s)",
17744 buf->itemsize, (buf->itemsize > 1) ?
"s" :
"",
17745 dtype->name, (Py_ssize_t)dtype->size, (dtype->size > 1) ?
"s" :
"");
17748 if (buf->suboffsets == NULL) buf->suboffsets = __Pyx_minusones;
17751 __Pyx_SafeReleaseBuffer(buf);
17756 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
17758 if (!j)
return NULL;
17759 r = PyObject_GetItem(o, j);
17763 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
17764 CYTHON_NCP_UNUSED
int wraparound,
17765 CYTHON_NCP_UNUSED
int boundscheck) {
17766 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
17767 Py_ssize_t wrapped_i = i;
17768 if (wraparound & unlikely(i < 0)) {
17769 wrapped_i += PyList_GET_SIZE(o);
17771 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
17772 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
17776 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
17778 return PySequence_GetItem(o, i);
17781 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
17782 CYTHON_NCP_UNUSED
int wraparound,
17783 CYTHON_NCP_UNUSED
int boundscheck) {
17784 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
17785 Py_ssize_t wrapped_i = i;
17786 if (wraparound & unlikely(i < 0)) {
17787 wrapped_i += PyTuple_GET_SIZE(o);
17789 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
17790 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
17794 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
17796 return PySequence_GetItem(o, i);
17799 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list,
17800 CYTHON_NCP_UNUSED
int wraparound,
17801 CYTHON_NCP_UNUSED
int boundscheck) {
17802 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
17803 if (is_list || PyList_CheckExact(o)) {
17804 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
17805 if ((!boundscheck) || (likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o))))) {
17806 PyObject *
r = PyList_GET_ITEM(o,
n);
17811 else if (PyTuple_CheckExact(o)) {
17812 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
17813 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyTuple_GET_SIZE(o)))) {
17814 PyObject *
r = PyTuple_GET_ITEM(o,
n);
17819 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
17820 if (likely(m && m->sq_item)) {
17821 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
17822 Py_ssize_t l = m->sq_length(o);
17823 if (likely(l >= 0)) {
17826 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
17831 return m->sq_item(o, i);
17835 if (is_list || PySequence_Check(o)) {
17836 return PySequence_GetItem(o, i);
17839 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
17843 #if CYTHON_USE_TYPE_SLOTS
17844 static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
17846 Py_ssize_t key_value;
17847 PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
17848 if (unlikely(!(m && m->sq_item))) {
17849 PyErr_Format(PyExc_TypeError,
"'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
17852 key_value = __Pyx_PyIndex_AsSsize_t(index);
17853 if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
17854 return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
17856 if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
17858 PyErr_Format(PyExc_IndexError,
"cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
17862 static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
17863 PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
17864 if (likely(m && m->mp_subscript)) {
17865 return m->mp_subscript(obj, key);
17867 return __Pyx_PyObject_GetIndex(obj, key);
17872 static void __Pyx_RaiseBufferIndexError(
int axis) {
17873 PyErr_Format(PyExc_IndexError,
17874 "Out of bounds on buffer access (axis %d)", axis);
17878 #if CYTHON_USE_EXC_INFO_STACK
17879 static _PyErr_StackItem *
17880 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
17882 _PyErr_StackItem *exc_info = tstate->exc_info;
17883 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
17884 exc_info->previous_item != NULL)
17886 exc_info = exc_info->previous_item;
17893 #if CYTHON_FAST_THREAD_STATE
17894 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
17895 #if CYTHON_USE_EXC_INFO_STACK
17896 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
17897 *type = exc_info->exc_type;
17898 *value = exc_info->exc_value;
17899 *tb = exc_info->exc_traceback;
17901 *type = tstate->exc_type;
17902 *value = tstate->exc_value;
17903 *tb = tstate->exc_traceback;
17906 Py_XINCREF(*value);
17909 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
17910 PyObject *tmp_type, *tmp_value, *tmp_tb;
17911 #if CYTHON_USE_EXC_INFO_STACK
17912 _PyErr_StackItem *exc_info = tstate->exc_info;
17913 tmp_type = exc_info->exc_type;
17914 tmp_value = exc_info->exc_value;
17915 tmp_tb = exc_info->exc_traceback;
17916 exc_info->exc_type = type;
17917 exc_info->exc_value = value;
17918 exc_info->exc_traceback = tb;
17920 tmp_type = tstate->exc_type;
17921 tmp_value = tstate->exc_value;
17922 tmp_tb = tstate->exc_traceback;
17923 tstate->exc_type = type;
17924 tstate->exc_value = value;
17925 tstate->exc_traceback = tb;
17927 Py_XDECREF(tmp_type);
17928 Py_XDECREF(tmp_value);
17929 Py_XDECREF(tmp_tb);
17934 #if CYTHON_FAST_THREAD_STATE
17935 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
17937 n = PyTuple_GET_SIZE(tuple);
17938 #if PY_MAJOR_VERSION >= 3
17939 for (i=0; i<
n; i++) {
17940 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
17943 for (i=0; i<
n; i++) {
17944 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
17948 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
17949 PyObject *exc_type = tstate->curexc_type;
17950 if (exc_type == err)
return 1;
17951 if (unlikely(!exc_type))
return 0;
17952 if (unlikely(PyTuple_Check(err)))
17953 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
17954 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
17959 #if CYTHON_FAST_THREAD_STATE
17960 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
17962 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
17965 PyObject *local_type, *local_value, *local_tb;
17966 #if CYTHON_FAST_THREAD_STATE
17967 PyObject *tmp_type, *tmp_value, *tmp_tb;
17968 local_type = tstate->curexc_type;
17969 local_value = tstate->curexc_value;
17970 local_tb = tstate->curexc_traceback;
17971 tstate->curexc_type = 0;
17972 tstate->curexc_value = 0;
17973 tstate->curexc_traceback = 0;
17975 PyErr_Fetch(&local_type, &local_value, &local_tb);
17977 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
17978 #if CYTHON_FAST_THREAD_STATE
17979 if (unlikely(tstate->curexc_type))
17981 if (unlikely(PyErr_Occurred()))
17984 #if PY_MAJOR_VERSION >= 3
17986 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
17990 Py_XINCREF(local_tb);
17991 Py_XINCREF(local_type);
17992 Py_XINCREF(local_value);
17993 *type = local_type;
17994 *value = local_value;
17996 #if CYTHON_FAST_THREAD_STATE
17997 #if CYTHON_USE_EXC_INFO_STACK
17999 _PyErr_StackItem *exc_info = tstate->exc_info;
18000 tmp_type = exc_info->exc_type;
18001 tmp_value = exc_info->exc_value;
18002 tmp_tb = exc_info->exc_traceback;
18003 exc_info->exc_type = local_type;
18004 exc_info->exc_value = local_value;
18005 exc_info->exc_traceback = local_tb;
18008 tmp_type = tstate->exc_type;
18009 tmp_value = tstate->exc_value;
18010 tmp_tb = tstate->exc_traceback;
18011 tstate->exc_type = local_type;
18012 tstate->exc_value = local_value;
18013 tstate->exc_traceback = local_tb;
18015 Py_XDECREF(tmp_type);
18016 Py_XDECREF(tmp_value);
18017 Py_XDECREF(tmp_tb);
18019 PyErr_SetExcInfo(local_type, local_value, local_tb);
18026 Py_XDECREF(local_type);
18027 Py_XDECREF(local_value);
18028 Py_XDECREF(local_tb);
18033 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
18034 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
18035 PyErr_Format(PyExc_AttributeError,
18036 #
if PY_MAJOR_VERSION >= 3
18037 "'%.50s' object has no attribute '%U'",
18038 tp->tp_name, attr_name);
18040 "'%.50s' object has no attribute '%.400s'",
18041 tp->tp_name, PyString_AS_STRING(attr_name));
18045 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
18047 PyTypeObject *tp = Py_TYPE(obj);
18048 if (unlikely(!PyString_Check(attr_name))) {
18049 return PyObject_GenericGetAttr(obj, attr_name);
18051 assert(!tp->tp_dictoffset);
18052 descr = _PyType_Lookup(tp, attr_name);
18053 if (unlikely(!descr)) {
18054 return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
18057 #if PY_MAJOR_VERSION < 3
18058 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
18061 descrgetfunc
f = Py_TYPE(descr)->tp_descr_get;
18063 PyObject *res =
f(descr, obj, (PyObject *)tp);
18073 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
18074 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
18075 if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
18076 return PyObject_GenericGetAttr(obj, attr_name);
18078 return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
18083 static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(
void) {
18084 __Pyx_PyThreadState_declare
18085 __Pyx_PyThreadState_assign
18086 if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
18087 __Pyx_PyErr_Clear();
18089 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
18091 #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
18092 PyTypeObject* tp = Py_TYPE(obj);
18093 if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
18094 return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
18097 result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
18098 if (unlikely(!result)) {
18099 __Pyx_PyObject_GetAttrStr_ClearAttributeError();
18105 static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
18107 PyObject *name_attr;
18108 name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name);
18109 if (likely(name_attr)) {
18110 ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
18114 if (unlikely(ret < 0)) {
18118 Py_XDECREF(name_attr);
18121 static int __Pyx_setup_reduce(PyObject* type_obj) {
18123 PyObject *object_reduce = NULL;
18124 PyObject *object_getstate = NULL;
18125 PyObject *object_reduce_ex = NULL;
18126 PyObject *reduce = NULL;
18127 PyObject *reduce_ex = NULL;
18128 PyObject *reduce_cython = NULL;
18129 PyObject *setstate = NULL;
18130 PyObject *setstate_cython = NULL;
18131 PyObject *getstate = NULL;
18132 #if CYTHON_USE_PYTYPE_LOOKUP
18133 getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate);
18135 getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate);
18136 if (!getstate && PyErr_Occurred()) {
18141 #if CYTHON_USE_PYTYPE_LOOKUP
18142 object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate);
18144 object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate);
18145 if (!object_getstate && PyErr_Occurred()) {
18149 if (object_getstate != getstate) {
18153 #if CYTHON_USE_PYTYPE_LOOKUP
18154 object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto __PYX_BAD;
18156 object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto __PYX_BAD;
18158 reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex);
if (unlikely(!reduce_ex))
goto __PYX_BAD;
18159 if (reduce_ex == object_reduce_ex) {
18160 #if CYTHON_USE_PYTYPE_LOOKUP
18161 object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto __PYX_BAD;
18163 object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto __PYX_BAD;
18165 reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce);
if (unlikely(!reduce))
goto __PYX_BAD;
18166 if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
18167 reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
18168 if (likely(reduce_cython)) {
18169 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
18170 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
18171 }
else if (reduce == object_reduce || PyErr_Occurred()) {
18174 setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
18175 if (!setstate) PyErr_Clear();
18176 if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
18177 setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
18178 if (likely(setstate_cython)) {
18179 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
18180 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
18181 }
else if (!setstate || PyErr_Occurred()) {
18185 PyType_Modified((PyTypeObject*)type_obj);
18190 if (!PyErr_Occurred())
18191 PyErr_Format(PyExc_RuntimeError,
"Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
18194 #if !CYTHON_USE_PYTYPE_LOOKUP
18195 Py_XDECREF(object_reduce);
18196 Py_XDECREF(object_reduce_ex);
18197 Py_XDECREF(object_getstate);
18198 Py_XDECREF(getstate);
18200 Py_XDECREF(reduce);
18201 Py_XDECREF(reduce_ex);
18202 Py_XDECREF(reduce_cython);
18203 Py_XDECREF(setstate);
18204 Py_XDECREF(setstate_cython);
18209 #ifndef __PYX_HAVE_RT_ImportType
18210 #define __PYX_HAVE_RT_ImportType
18211 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
18212 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
18214 PyObject *result = 0;
18216 Py_ssize_t basicsize;
18217 #ifdef Py_LIMITED_API
18218 PyObject *py_basicsize;
18220 result = PyObject_GetAttrString(module, class_name);
18223 if (!PyType_Check(result)) {
18224 PyErr_Format(PyExc_TypeError,
18225 "%.200s.%.200s is not a type object",
18226 module_name, class_name);
18229 #ifndef Py_LIMITED_API
18230 basicsize = ((PyTypeObject *)result)->tp_basicsize;
18232 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
18235 basicsize = PyLong_AsSsize_t(py_basicsize);
18236 Py_DECREF(py_basicsize);
18238 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
18241 if ((
size_t)basicsize < size) {
18242 PyErr_Format(PyExc_ValueError,
18243 "%.200s.%.200s size changed, may indicate binary incompatibility. "
18244 "Expected %zd from C header, got %zd from PyObject",
18245 module_name, class_name, size, basicsize);
18248 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
18249 PyErr_Format(PyExc_ValueError,
18250 "%.200s.%.200s size changed, may indicate binary incompatibility. "
18251 "Expected %zd from C header, got %zd from PyObject",
18252 module_name, class_name, size, basicsize);
18255 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
18256 PyOS_snprintf(warning,
sizeof(warning),
18257 "%s.%s size changed, may indicate binary incompatibility. "
18258 "Expected %zd from C header, got %zd from PyObject",
18259 module_name, class_name, size, basicsize);
18260 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
18262 return (PyTypeObject *)result;
18264 Py_XDECREF(result);
18270 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
18271 PyObject *empty_list = 0;
18272 PyObject *module = 0;
18273 PyObject *global_dict = 0;
18274 PyObject *empty_dict = 0;
18276 #if PY_MAJOR_VERSION < 3
18277 PyObject *py_import;
18278 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
18285 empty_list = PyList_New(0);
18290 global_dict = PyModule_GetDict(__pyx_m);
18293 empty_dict = PyDict_New();
18297 #if PY_MAJOR_VERSION >= 3
18299 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
18300 module = PyImport_ImportModuleLevelObject(
18301 name, global_dict, empty_dict, list, 1);
18303 if (!PyErr_ExceptionMatches(PyExc_ImportError))
18312 #if PY_MAJOR_VERSION < 3
18313 PyObject *py_level = PyInt_FromLong(level);
18316 module = PyObject_CallFunctionObjArgs(py_import,
18317 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
18318 Py_DECREF(py_level);
18320 module = PyImport_ImportModuleLevelObject(
18321 name, global_dict, empty_dict, list, level);
18326 #if PY_MAJOR_VERSION < 3
18327 Py_XDECREF(py_import);
18329 Py_XDECREF(empty_list);
18330 Py_XDECREF(empty_dict);
18335 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
18336 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
18337 PyObject *dict = Py_TYPE(obj)->tp_dict;
18338 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
18340 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
18341 PyObject **dictptr = NULL;
18342 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
18344 #if CYTHON_COMPILING_IN_CPYTHON
18345 dictptr = (likely(offset > 0)) ? (PyObject **) ((
char *)obj + offset) : _PyObject_GetDictPtr(obj);
18347 dictptr = _PyObject_GetDictPtr(obj);
18350 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
18352 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
18353 PyObject *dict = Py_TYPE(obj)->tp_dict;
18354 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
18356 return obj_dict_version == __Pyx_get_object_dict_version(obj);
18361 #ifndef CYTHON_CLINE_IN_TRACEBACK
18362 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
18363 PyObject *use_cline;
18364 PyObject *ptype, *pvalue, *ptraceback;
18365 #if CYTHON_COMPILING_IN_CPYTHON
18366 PyObject **cython_runtime_dict;
18368 if (unlikely(!__pyx_cython_runtime)) {
18371 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
18372 #if CYTHON_COMPILING_IN_CPYTHON
18373 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
18374 if (likely(cython_runtime_dict)) {
18375 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
18376 use_cline, *cython_runtime_dict,
18377 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
18381 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
18382 if (use_cline_obj) {
18383 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
18384 Py_DECREF(use_cline_obj);
18392 (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
18394 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
18397 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
18403 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
18404 int start = 0, mid = 0, end = count - 1;
18405 if (end >= 0 && code_line > entries[end].code_line) {
18408 while (start < end) {
18409 mid = start + (end - start) / 2;
18410 if (code_line < entries[mid].code_line) {
18412 }
else if (code_line > entries[mid].code_line) {
18418 if (code_line <= entries[mid].code_line) {
18424 static PyCodeObject *__pyx_find_code_object(
int code_line) {
18425 PyCodeObject* code_object;
18427 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
18430 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
18431 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
18434 code_object = __pyx_code_cache.entries[
pos].code_object;
18435 Py_INCREF(code_object);
18436 return code_object;
18438 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
18440 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
18441 if (unlikely(!code_line)) {
18444 if (unlikely(!entries)) {
18445 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
18446 if (likely(entries)) {
18447 __pyx_code_cache.entries = entries;
18448 __pyx_code_cache.max_count = 64;
18449 __pyx_code_cache.count = 1;
18450 entries[0].code_line = code_line;
18451 entries[0].code_object = code_object;
18452 Py_INCREF(code_object);
18456 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
18457 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
18458 PyCodeObject* tmp = entries[
pos].code_object;
18459 entries[
pos].code_object = code_object;
18463 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
18464 int new_max = __pyx_code_cache.max_count + 64;
18465 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
18466 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
18467 if (unlikely(!entries)) {
18470 __pyx_code_cache.entries = entries;
18471 __pyx_code_cache.max_count = new_max;
18473 for (i=__pyx_code_cache.count; i>
pos; i--) {
18474 entries[i] = entries[i-1];
18476 entries[
pos].code_line = code_line;
18477 entries[
pos].code_object = code_object;
18478 __pyx_code_cache.count++;
18479 Py_INCREF(code_object);
18483 #include "compile.h"
18484 #include "frameobject.h"
18485 #include "traceback.h"
18486 #if PY_VERSION_HEX >= 0x030b00a6
18487 #ifndef Py_BUILD_CORE
18488 #define Py_BUILD_CORE 1
18490 #include "internal/pycore_frame.h"
18492 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
18493 const char *funcname,
int c_line,
18494 int py_line,
const char *filename) {
18495 PyCodeObject *py_code = NULL;
18496 PyObject *py_funcname = NULL;
18497 #if PY_MAJOR_VERSION < 3
18498 PyObject *py_srcfile = NULL;
18499 py_srcfile = PyString_FromString(filename);
18500 if (!py_srcfile)
goto bad;
18503 #if PY_MAJOR_VERSION < 3
18504 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
18505 if (!py_funcname)
goto bad;
18507 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
18508 if (!py_funcname)
goto bad;
18509 funcname = PyUnicode_AsUTF8(py_funcname);
18510 if (!funcname)
goto bad;
18514 #if PY_MAJOR_VERSION < 3
18515 py_funcname = PyString_FromString(funcname);
18516 if (!py_funcname)
goto bad;
18519 #if PY_MAJOR_VERSION < 3
18520 py_code = __Pyx_PyCode_New(
18537 Py_DECREF(py_srcfile);
18539 py_code = PyCode_NewEmpty(filename, funcname, py_line);
18541 Py_XDECREF(py_funcname);
18544 Py_XDECREF(py_funcname);
18545 #if PY_MAJOR_VERSION < 3
18546 Py_XDECREF(py_srcfile);
18550 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
18551 int py_line,
const char *filename) {
18552 PyCodeObject *py_code = 0;
18553 PyFrameObject *py_frame = 0;
18554 PyThreadState *tstate = __Pyx_PyThreadState_Current;
18555 PyObject *ptype, *pvalue, *ptraceback;
18557 c_line = __Pyx_CLineForTraceback(tstate, c_line);
18559 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
18561 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
18562 py_code = __Pyx_CreateCodeObjectForTraceback(
18563 funcname, c_line, py_line, filename);
18568 Py_XDECREF(pvalue);
18569 Py_XDECREF(ptraceback);
18572 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
18573 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
18575 py_frame = PyFrame_New(
18581 if (!py_frame)
goto bad;
18582 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
18583 PyTraceBack_Here(py_frame);
18585 Py_XDECREF(py_code);
18586 Py_XDECREF(py_frame);
18589 #if PY_MAJOR_VERSION < 3
18590 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags) {
18591 if (PyObject_CheckBuffer(obj))
return PyObject_GetBuffer(obj, view, flags);
18592 PyErr_Format(PyExc_TypeError,
"'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
18595 static void __Pyx_ReleaseBuffer(Py_buffer *view) {
18596 PyObject *obj = view->obj;
18598 if (PyObject_CheckBuffer(obj)) {
18599 PyBuffer_Release(view);
18610 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
18611 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
18612 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
18613 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
18614 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
18616 func_type value = func_value;\
18617 if (sizeof(target_type) < sizeof(func_type)) {\
18618 if (unlikely(value != (func_type) (target_type) value)) {\
18619 func_type zero = 0;\
18620 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
18621 return (target_type) -1;\
18622 if (is_unsigned && unlikely(value < zero))\
18623 goto raise_neg_overflow;\
18625 goto raise_overflow;\
18628 return (target_type) value;\
18632 #if CYTHON_CCOMPLEX
18634 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
18635 return ::std::complex< float >(x, y);
18638 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
18639 return x + y*(__pyx_t_float_complex)_Complex_I;
18643 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
18644 __pyx_t_float_complex
z;
18652 #if CYTHON_CCOMPLEX
18654 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18655 return (a.real == b.real) && (a.imag == b.imag);
18657 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18658 __pyx_t_float_complex
z;
18659 z.real = a.real + b.real;
18660 z.imag = a.imag + b.imag;
18663 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18664 __pyx_t_float_complex
z;
18665 z.real = a.real - b.real;
18666 z.imag = a.imag - b.imag;
18669 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18670 __pyx_t_float_complex
z;
18671 z.real = a.real * b.real - a.imag * b.imag;
18672 z.imag = a.real * b.imag + a.imag * b.real;
18676 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18678 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
18679 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
18680 if (b.real == 0 && b.imag == 0) {
18681 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
18683 float r = b.imag / b.real;
18684 float s = (float)(1.0) / (b.real + b.imag *
r);
18685 return __pyx_t_float_complex_from_parts(
18686 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
18689 float r = b.real / b.imag;
18690 float s = (float)(1.0) / (b.imag + b.real *
r);
18691 return __pyx_t_float_complex_from_parts(
18692 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
18696 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18698 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
18700 float denom = b.real * b.real + b.imag * b.imag;
18701 return __pyx_t_float_complex_from_parts(
18702 (a.real * b.real + a.imag * b.imag) / denom,
18703 (a.imag * b.real - a.real * b.imag) / denom);
18707 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
18708 __pyx_t_float_complex
z;
18713 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
18714 return (a.real == 0) && (a.imag == 0);
18716 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
18717 __pyx_t_float_complex
z;
18723 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
18724 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
18725 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
18727 return hypotf(
z.real,
z.imag);
18730 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
18731 __pyx_t_float_complex
z;
18732 float r, lnr, theta, z_r, z_theta;
18733 if (b.imag == 0 && b.real == (
int)b.real) {
18735 float denom = a.real * a.real + a.imag * a.imag;
18736 a.real = a.real / denom;
18737 a.imag = -a.imag / denom;
18740 switch ((
int)b.real) {
18748 return __Pyx_c_prod_float(a, a);
18750 z = __Pyx_c_prod_float(a, a);
18751 return __Pyx_c_prod_float(
z, a);
18753 z = __Pyx_c_prod_float(a, a);
18754 return __Pyx_c_prod_float(
z,
z);
18760 }
else if (b.imag == 0) {
18761 z.real = powf(a.real, b.real);
18764 }
else if (a.real > 0) {
18769 theta = atan2f(0.0, -1.0);
18772 r = __Pyx_c_abs_float(a);
18773 theta = atan2f(a.imag, a.real);
18776 z_r = expf(lnr * b.real - theta * b.imag);
18777 z_theta = theta * b.real + lnr * b.imag;
18778 z.real = z_r * cosf(z_theta);
18779 z.imag = z_r * sinf(z_theta);
18786 #if CYTHON_CCOMPLEX
18788 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
18789 return ::std::complex< double >(x, y);
18792 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
18793 return x + y*(__pyx_t_double_complex)_Complex_I;
18797 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
18798 __pyx_t_double_complex
z;
18806 #if CYTHON_CCOMPLEX
18808 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18809 return (a.real == b.real) && (a.imag == b.imag);
18811 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18812 __pyx_t_double_complex
z;
18813 z.real = a.real + b.real;
18814 z.imag = a.imag + b.imag;
18817 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18818 __pyx_t_double_complex
z;
18819 z.real = a.real - b.real;
18820 z.imag = a.imag - b.imag;
18823 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18824 __pyx_t_double_complex
z;
18825 z.real = a.real * b.real - a.imag * b.imag;
18826 z.imag = a.real * b.imag + a.imag * b.real;
18830 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18832 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
18833 }
else if (fabs(b.real) >= fabs(b.imag)) {
18834 if (b.real == 0 && b.imag == 0) {
18835 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
18837 double r = b.imag / b.real;
18838 double s = (double)(1.0) / (b.real + b.imag *
r);
18839 return __pyx_t_double_complex_from_parts(
18840 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
18843 double r = b.real / b.imag;
18844 double s = (double)(1.0) / (b.imag + b.real *
r);
18845 return __pyx_t_double_complex_from_parts(
18846 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
18850 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18852 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
18854 double denom = b.real * b.real + b.imag * b.imag;
18855 return __pyx_t_double_complex_from_parts(
18856 (a.real * b.real + a.imag * b.imag) / denom,
18857 (a.imag * b.real - a.real * b.imag) / denom);
18861 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
18862 __pyx_t_double_complex
z;
18867 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
18868 return (a.real == 0) && (a.imag == 0);
18870 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
18871 __pyx_t_double_complex
z;
18877 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
18878 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
18879 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
18881 return hypot(
z.real,
z.imag);
18884 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
18885 __pyx_t_double_complex
z;
18886 double r, lnr, theta, z_r, z_theta;
18887 if (b.imag == 0 && b.real == (
int)b.real) {
18889 double denom = a.real * a.real + a.imag * a.imag;
18890 a.real = a.real / denom;
18891 a.imag = -a.imag / denom;
18894 switch ((
int)b.real) {
18902 return __Pyx_c_prod_double(a, a);
18904 z = __Pyx_c_prod_double(a, a);
18905 return __Pyx_c_prod_double(
z, a);
18907 z = __Pyx_c_prod_double(a, a);
18908 return __Pyx_c_prod_double(
z,
z);
18914 }
else if (b.imag == 0) {
18915 z.real = pow(a.real, b.real);
18918 }
else if (a.real > 0) {
18923 theta = atan2(0.0, -1.0);
18926 r = __Pyx_c_abs_double(a);
18927 theta = atan2(a.imag, a.real);
18930 z_r = exp(lnr * b.real - theta * b.imag);
18931 z_theta = theta * b.real + lnr * b.imag;
18932 z.real = z_r * cos(z_theta);
18933 z.imag = z_r * sin(z_theta);
18940 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
18941 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
18942 #pragma GCC diagnostic push
18943 #pragma GCC diagnostic ignored "-Wconversion"
18945 const int neg_one = (int) -1, const_zero = (
int) 0;
18946 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
18947 #pragma GCC diagnostic pop
18949 const int is_unsigned = neg_one > const_zero;
18950 #if PY_MAJOR_VERSION < 3
18951 if (likely(PyInt_Check(x))) {
18952 if (
sizeof(
int) <
sizeof(long)) {
18953 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
18955 long val = PyInt_AS_LONG(x);
18956 if (is_unsigned && unlikely(val < 0)) {
18957 goto raise_neg_overflow;
18963 if (likely(PyLong_Check(x))) {
18965 #if CYTHON_USE_PYLONG_INTERNALS
18966 const digit* digits = ((PyLongObject*)x)->ob_digit;
18967 switch (Py_SIZE(x)) {
18968 case 0:
return (
int) 0;
18969 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
18971 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
18972 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
18973 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
18974 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
18975 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
18980 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
18981 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
18982 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
18983 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
18984 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
18989 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
18990 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
18991 __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])))
18992 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
18993 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
18999 #if CYTHON_COMPILING_IN_CPYTHON
19000 if (unlikely(Py_SIZE(x) < 0)) {
19001 goto raise_neg_overflow;
19005 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
19006 if (unlikely(result < 0))
19008 if (unlikely(result == 1))
19009 goto raise_neg_overflow;
19012 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
19013 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
19014 #ifdef HAVE_LONG_LONG
19015 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
19016 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
19020 #if CYTHON_USE_PYLONG_INTERNALS
19021 const digit* digits = ((PyLongObject*)x)->ob_digit;
19022 switch (Py_SIZE(x)) {
19023 case 0:
return (
int) 0;
19024 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
19025 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
19027 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
19028 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19029 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19030 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19031 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19036 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
19037 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19038 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19039 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19040 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19045 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
19046 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19047 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19048 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19049 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
19054 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
19055 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19056 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19057 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19058 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
19063 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
19064 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19065 __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])))
19066 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
19067 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19072 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
19073 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19074 __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])))
19075 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
19076 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
19082 if (
sizeof(
int) <=
sizeof(long)) {
19083 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
19084 #ifdef HAVE_LONG_LONG
19085 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
19086 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
19091 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
19092 PyErr_SetString(PyExc_RuntimeError,
19093 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
19096 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
19097 #if PY_MAJOR_VERSION < 3
19098 if (likely(
v) && !PyLong_Check(
v)) {
19100 v = PyNumber_Long(tmp);
19105 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
19106 unsigned char *bytes = (
unsigned char *)&val;
19107 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
19108 bytes,
sizeof(val),
19109 is_little, !is_unsigned);
19119 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
19120 if (!tmp)
return (
int) -1;
19121 val = __Pyx_PyInt_As_int(tmp);
19126 PyErr_SetString(PyExc_OverflowError,
19127 "value too large to convert to int");
19129 raise_neg_overflow:
19130 PyErr_SetString(PyExc_OverflowError,
19131 "can't convert negative value to int");
19136 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_Py_intptr_t(Py_intptr_t value) {
19137 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19138 #pragma GCC diagnostic push
19139 #pragma GCC diagnostic ignored "-Wconversion"
19141 const Py_intptr_t neg_one = (Py_intptr_t) -1, const_zero = (Py_intptr_t) 0;
19142 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19143 #pragma GCC diagnostic pop
19145 const int is_unsigned = neg_one > const_zero;
19147 if (
sizeof(Py_intptr_t) <
sizeof(long)) {
19148 return PyInt_FromLong((
long) value);
19149 }
else if (
sizeof(Py_intptr_t) <=
sizeof(
unsigned long)) {
19150 return PyLong_FromUnsignedLong((
unsigned long) value);
19151 #ifdef HAVE_LONG_LONG
19152 }
else if (
sizeof(Py_intptr_t) <=
sizeof(
unsigned PY_LONG_LONG)) {
19153 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
19157 if (
sizeof(Py_intptr_t) <=
sizeof(
long)) {
19158 return PyInt_FromLong((
long) value);
19159 #ifdef HAVE_LONG_LONG
19160 }
else if (
sizeof(Py_intptr_t) <=
sizeof(PY_LONG_LONG)) {
19161 return PyLong_FromLongLong((PY_LONG_LONG) value);
19166 int one = 1;
int little = (int)*(
unsigned char *)&one;
19167 unsigned char *bytes = (
unsigned char *)&value;
19168 return _PyLong_FromByteArray(bytes,
sizeof(Py_intptr_t),
19169 little, !is_unsigned);
19174 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value) {
19175 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19176 #pragma GCC diagnostic push
19177 #pragma GCC diagnostic ignored "-Wconversion"
19179 const int neg_one = (int) -1, const_zero = (
int) 0;
19180 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19181 #pragma GCC diagnostic pop
19183 const int is_unsigned = neg_one > const_zero;
19185 if (
sizeof(
int) <
sizeof(long)) {
19186 return PyInt_FromLong((
long) value);
19187 }
else if (
sizeof(
int) <=
sizeof(
unsigned long)) {
19188 return PyLong_FromUnsignedLong((
unsigned long) value);
19189 #ifdef HAVE_LONG_LONG
19190 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
19191 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
19195 if (
sizeof(
int) <=
sizeof(
long)) {
19196 return PyInt_FromLong((
long) value);
19197 #ifdef HAVE_LONG_LONG
19198 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
19199 return PyLong_FromLongLong((PY_LONG_LONG) value);
19204 int one = 1;
int little = (int)*(
unsigned char *)&one;
19205 unsigned char *bytes = (
unsigned char *)&value;
19206 return _PyLong_FromByteArray(bytes,
sizeof(
int),
19207 little, !is_unsigned);
19212 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
19213 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19214 #pragma GCC diagnostic push
19215 #pragma GCC diagnostic ignored "-Wconversion"
19217 const long neg_one = (long) -1, const_zero = (
long) 0;
19218 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19219 #pragma GCC diagnostic pop
19221 const int is_unsigned = neg_one > const_zero;
19223 if (
sizeof(
long) <
sizeof(long)) {
19224 return PyInt_FromLong((
long) value);
19225 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
19226 return PyLong_FromUnsignedLong((
unsigned long) value);
19227 #ifdef HAVE_LONG_LONG
19228 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
19229 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
19233 if (
sizeof(
long) <=
sizeof(
long)) {
19234 return PyInt_FromLong((
long) value);
19235 #ifdef HAVE_LONG_LONG
19236 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
19237 return PyLong_FromLongLong((PY_LONG_LONG) value);
19242 int one = 1;
int little = (int)*(
unsigned char *)&one;
19243 unsigned char *bytes = (
unsigned char *)&value;
19244 return _PyLong_FromByteArray(bytes,
sizeof(
long),
19245 little, !is_unsigned);
19250 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
19251 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19252 #pragma GCC diagnostic push
19253 #pragma GCC diagnostic ignored "-Wconversion"
19255 const long neg_one = (long) -1, const_zero = (
long) 0;
19256 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
19257 #pragma GCC diagnostic pop
19259 const int is_unsigned = neg_one > const_zero;
19260 #if PY_MAJOR_VERSION < 3
19261 if (likely(PyInt_Check(x))) {
19262 if (
sizeof(
long) <
sizeof(long)) {
19263 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
19265 long val = PyInt_AS_LONG(x);
19266 if (is_unsigned && unlikely(val < 0)) {
19267 goto raise_neg_overflow;
19273 if (likely(PyLong_Check(x))) {
19275 #if CYTHON_USE_PYLONG_INTERNALS
19276 const digit* digits = ((PyLongObject*)x)->ob_digit;
19277 switch (Py_SIZE(x)) {
19278 case 0:
return (
long) 0;
19279 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
19281 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
19282 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19283 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19284 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
19285 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
19290 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
19291 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19292 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19293 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
19294 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
19299 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
19300 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19301 __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])))
19302 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
19303 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
19309 #if CYTHON_COMPILING_IN_CPYTHON
19310 if (unlikely(Py_SIZE(x) < 0)) {
19311 goto raise_neg_overflow;
19315 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
19316 if (unlikely(result < 0))
19318 if (unlikely(result == 1))
19319 goto raise_neg_overflow;
19322 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
19323 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
19324 #ifdef HAVE_LONG_LONG
19325 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
19326 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
19330 #if CYTHON_USE_PYLONG_INTERNALS
19331 const digit* digits = ((PyLongObject*)x)->ob_digit;
19332 switch (Py_SIZE(x)) {
19333 case 0:
return (
long) 0;
19334 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
19335 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
19337 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
19338 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19339 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19340 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19341 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19346 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
19347 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
19348 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19349 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19350 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19355 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
19356 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19357 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19358 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19359 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
19364 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
19365 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
19366 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
19367 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19368 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
19373 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
19374 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19375 __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])))
19376 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
19377 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19382 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
19383 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
19384 __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])))
19385 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
19386 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
19392 if (
sizeof(
long) <=
sizeof(long)) {
19393 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
19394 #ifdef HAVE_LONG_LONG
19395 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
19396 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
19401 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
19402 PyErr_SetString(PyExc_RuntimeError,
19403 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
19406 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
19407 #if PY_MAJOR_VERSION < 3
19408 if (likely(
v) && !PyLong_Check(
v)) {
19410 v = PyNumber_Long(tmp);
19415 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
19416 unsigned char *bytes = (
unsigned char *)&val;
19417 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
19418 bytes,
sizeof(val),
19419 is_little, !is_unsigned);
19429 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
19430 if (!tmp)
return (
long) -1;
19431 val = __Pyx_PyInt_As_long(tmp);
19436 PyErr_SetString(PyExc_OverflowError,
19437 "value too large to convert to long");
19439 raise_neg_overflow:
19440 PyErr_SetString(PyExc_OverflowError,
19441 "can't convert negative value to long");
19446 #if CYTHON_COMPILING_IN_CPYTHON
19447 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
19453 return b == &PyBaseObject_Type;
19455 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
19457 if (a == b)
return 1;
19461 n = PyTuple_GET_SIZE(mro);
19462 for (i = 0; i <
n; i++) {
19463 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
19468 return __Pyx_InBases(a, b);
19470 #if PY_MAJOR_VERSION == 2
19471 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
19472 PyObject *exception, *value, *tb;
19474 __Pyx_PyThreadState_declare
19475 __Pyx_PyThreadState_assign
19476 __Pyx_ErrFetch(&exception, &value, &tb);
19477 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
19478 if (unlikely(res == -1)) {
19479 PyErr_WriteUnraisable(err);
19483 res = PyObject_IsSubclass(err, exc_type2);
19484 if (unlikely(res == -1)) {
19485 PyErr_WriteUnraisable(err);
19489 __Pyx_ErrRestore(exception, value, tb);
19493 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
19494 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
19496 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
19501 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
19503 assert(PyExceptionClass_Check(exc_type));
19504 n = PyTuple_GET_SIZE(tuple);
19505 #if PY_MAJOR_VERSION >= 3
19506 for (i=0; i<
n; i++) {
19507 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
19510 for (i=0; i<
n; i++) {
19511 PyObject *t = PyTuple_GET_ITEM(tuple, i);
19512 #if PY_MAJOR_VERSION < 3
19513 if (likely(exc_type == t))
return 1;
19515 if (likely(PyExceptionClass_Check(t))) {
19516 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
19522 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
19523 if (likely(err == exc_type))
return 1;
19524 if (likely(PyExceptionClass_Check(err))) {
19525 if (likely(PyExceptionClass_Check(exc_type))) {
19526 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
19527 }
else if (likely(PyTuple_Check(exc_type))) {
19528 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
19532 return PyErr_GivenExceptionMatches(err, exc_type);
19534 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
19535 assert(PyExceptionClass_Check(exc_type1));
19536 assert(PyExceptionClass_Check(exc_type2));
19537 if (likely(err == exc_type1 || err == exc_type2))
return 1;
19538 if (likely(PyExceptionClass_Check(err))) {
19539 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
19541 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
19546 static int __Pyx_check_binary_version(
void) {
19548 int same=1, i, found_dot;
19549 const char* rt_from_call = Py_GetVersion();
19550 PyOS_snprintf(ctversion, 5,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
19552 for (i = 0; i < 4; i++) {
19553 if (!ctversion[i]) {
19554 same = (rt_from_call[i] <
'0' || rt_from_call[i] >
'9');
19557 if (rt_from_call[i] != ctversion[i]) {
19563 char rtversion[5] = {
'\0'};
19565 for (i=0; i<4; ++i) {
19566 if (rt_from_call[i] ==
'.') {
19567 if (found_dot)
break;
19569 }
else if (rt_from_call[i] <
'0' || rt_from_call[i] >
'9') {
19572 rtversion[i] = rt_from_call[i];
19574 PyOS_snprintf(message,
sizeof(message),
19575 "compiletime version %s of module '%.100s' "
19576 "does not match runtime version %s",
19577 ctversion, __Pyx_MODULE_NAME, rtversion);
19578 return PyErr_WarnEx(NULL, message, 1);
19584 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
19586 #if PY_MAJOR_VERSION < 3
19587 if (t->is_unicode) {
19588 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
19589 }
else if (t->intern) {
19590 *t->p = PyString_InternFromString(t->s);
19592 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
19595 if (t->is_unicode | t->is_str) {
19597 *t->p = PyUnicode_InternFromString(t->s);
19598 }
else if (t->encoding) {
19599 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
19601 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
19604 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
19609 if (PyObject_Hash(*t->p) == -1)
19616 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
19617 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
19619 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
19621 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
19623 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
19624 #if !CYTHON_PEP393_ENABLED
19625 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
19627 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
19628 if (!defenc)
return NULL;
19629 defenc_c = PyBytes_AS_STRING(defenc);
19630 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
19632 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
19634 for (
c = defenc_c;
c < end;
c++) {
19635 if ((
unsigned char) (*
c) >= 128) {
19636 PyUnicode_AsASCIIString(o);
19642 *length = PyBytes_GET_SIZE(defenc);
19646 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
19647 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
19648 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
19649 if (likely(PyUnicode_IS_ASCII(o))) {
19650 *length = PyUnicode_GET_LENGTH(o);
19651 return PyUnicode_AsUTF8(o);
19653 PyUnicode_AsASCIIString(o);
19657 return PyUnicode_AsUTF8AndSize(o, length);
19662 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
19663 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
19665 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
19666 __Pyx_sys_getdefaultencoding_not_ascii &&
19668 PyUnicode_Check(o)) {
19669 return __Pyx_PyUnicode_AsStringAndSize(o, length);
19672 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
19673 if (PyByteArray_Check(o)) {
19674 *length = PyByteArray_GET_SIZE(o);
19675 return PyByteArray_AS_STRING(o);
19680 int r = PyBytes_AsStringAndSize(o, &result, length);
19681 if (unlikely(
r < 0)) {
19688 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
19689 int is_true = x == Py_True;
19690 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
19691 else return PyObject_IsTrue(x);
19693 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
19695 if (unlikely(!x))
return -1;
19696 retval = __Pyx_PyObject_IsTrue(x);
19700 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
19701 #if PY_MAJOR_VERSION >= 3
19702 if (PyLong_Check(result)) {
19703 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
19704 "__int__ returned non-int (type %.200s). "
19705 "The ability to return an instance of a strict subclass of int "
19706 "is deprecated, and may be removed in a future version of Python.",
19707 Py_TYPE(result)->tp_name)) {
19714 PyErr_Format(PyExc_TypeError,
19715 "__%.4s__ returned non-%.4s (type %.200s)",
19716 type_name, type_name, Py_TYPE(result)->tp_name);
19720 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
19721 #if CYTHON_USE_TYPE_SLOTS
19722 PyNumberMethods *m;
19724 const char *name = NULL;
19725 PyObject *res = NULL;
19726 #if PY_MAJOR_VERSION < 3
19727 if (likely(PyInt_Check(x) || PyLong_Check(x)))
19729 if (likely(PyLong_Check(x)))
19731 return __Pyx_NewRef(x);
19732 #if CYTHON_USE_TYPE_SLOTS
19733 m = Py_TYPE(x)->tp_as_number;
19734 #if PY_MAJOR_VERSION < 3
19735 if (m && m->nb_int) {
19737 res = m->nb_int(x);
19739 else if (m && m->nb_long) {
19741 res = m->nb_long(x);
19744 if (likely(m && m->nb_int)) {
19746 res = m->nb_int(x);
19750 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
19751 res = PyNumber_Int(x);
19755 #if PY_MAJOR_VERSION < 3
19756 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
19758 if (unlikely(!PyLong_CheckExact(res))) {
19760 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
19763 else if (!PyErr_Occurred()) {
19764 PyErr_SetString(PyExc_TypeError,
19765 "an integer is required");
19769 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
19772 #if PY_MAJOR_VERSION < 3
19773 if (likely(PyInt_CheckExact(b))) {
19774 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
19775 return PyInt_AS_LONG(b);
19777 return PyInt_AsSsize_t(b);
19780 if (likely(PyLong_CheckExact(b))) {
19781 #if CYTHON_USE_PYLONG_INTERNALS
19782 const digit* digits = ((PyLongObject*)b)->ob_digit;
19783 const Py_ssize_t size = Py_SIZE(b);
19784 if (likely(__Pyx_sst_abs(size) <= 1)) {
19785 ival = likely(size) ? digits[0] : 0;
19786 if (size == -1) ival = -ival;
19791 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
19792 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
19796 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
19797 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
19801 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
19802 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
19806 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
19807 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
19811 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
19812 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]));
19816 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
19817 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]));
19823 return PyLong_AsSsize_t(b);
19825 x = PyNumber_Index(b);
19827 ival = PyInt_AsSsize_t(x);
19831 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
19832 if (
sizeof(Py_hash_t) ==
sizeof(Py_ssize_t)) {
19833 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
19834 #if PY_MAJOR_VERSION < 3
19835 }
else if (likely(PyInt_CheckExact(o))) {
19836 return PyInt_AS_LONG(o);
19841 x = PyNumber_Index(o);
19843 ival = PyInt_AsLong(x);
19848 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
19849 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
19851 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
19852 return PyInt_FromSize_t(ival);