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);