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__cfemIntegrals
694 #define __PYX_HAVE_API__cfemIntegrals
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/cfemIntegrals.pyx",
950 typedef npy_int8 __pyx_t_5numpy_int8_t;
959 typedef npy_int16 __pyx_t_5numpy_int16_t;
968 typedef npy_int32 __pyx_t_5numpy_int32_t;
977 typedef npy_int64 __pyx_t_5numpy_int64_t;
986 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
995 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1004 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1013 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1022 typedef npy_float32 __pyx_t_5numpy_float32_t;
1031 typedef npy_float64 __pyx_t_5numpy_float64_t;
1040 typedef npy_long __pyx_t_5numpy_int_t;
1049 typedef npy_longlong __pyx_t_5numpy_long_t;
1058 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1067 typedef npy_ulong __pyx_t_5numpy_uint_t;
1076 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1085 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1094 typedef npy_intp __pyx_t_5numpy_intp_t;
1103 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1112 typedef npy_double __pyx_t_5numpy_float_t;
1121 typedef npy_double __pyx_t_5numpy_double_t;
1130 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1134 typedef ::std::complex< float > __pyx_t_float_complex;
1136 typedef float _Complex __pyx_t_float_complex;
1139 typedef struct {
float real, imag; } __pyx_t_float_complex;
1141 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1146 typedef ::std::complex< double > __pyx_t_double_complex;
1148 typedef double _Complex __pyx_t_double_complex;
1151 typedef struct {
double real, imag; } __pyx_t_double_complex;
1153 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1165 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1174 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1183 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1192 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1196 #ifndef CYTHON_REFNANNY
1197 #define CYTHON_REFNANNY 0
1201 void (*INCREF)(
void*, PyObject*, int);
1202 void (*DECREF)(
void*, PyObject*, int);
1203 void (*GOTREF)(
void*, PyObject*, int);
1204 void (*GIVEREF)(
void*, PyObject*, int);
1205 void* (*SetupContext)(
const char*, int,
const char*);
1206 void (*FinishContext)(
void**);
1207 } __Pyx_RefNannyAPIStruct;
1208 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1209 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
1210 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1212 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1214 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1215 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1216 PyGILState_Release(__pyx_gilstate_save);\
1218 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1221 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1222 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1224 #define __Pyx_RefNannyFinishContext()\
1225 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1226 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1227 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1228 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1229 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1230 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1231 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1232 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1233 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1235 #define __Pyx_RefNannyDeclarations
1236 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1237 #define __Pyx_RefNannyFinishContext()
1238 #define __Pyx_INCREF(r) Py_INCREF(r)
1239 #define __Pyx_DECREF(r) Py_DECREF(r)
1240 #define __Pyx_GOTREF(r)
1241 #define __Pyx_GIVEREF(r)
1242 #define __Pyx_XINCREF(r) Py_XINCREF(r)
1243 #define __Pyx_XDECREF(r) Py_XDECREF(r)
1244 #define __Pyx_XGOTREF(r)
1245 #define __Pyx_XGIVEREF(r)
1247 #define __Pyx_XDECREF_SET(r, v) do {\
1248 PyObject *tmp = (PyObject *) r;\
1249 r = v; __Pyx_XDECREF(tmp);\
1251 #define __Pyx_DECREF_SET(r, v) do {\
1252 PyObject *tmp = (PyObject *) r;\
1253 r = v; __Pyx_DECREF(tmp);\
1255 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1256 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1259 #if CYTHON_USE_TYPE_SLOTS
1260 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1262 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1266 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1269 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
1270 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1273 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
1276 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1277 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1278 const char* function_name);
1281 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1282 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1283 __Pyx__ArgTypeTest(obj, type, name, exact))
1284 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
1287 #if CYTHON_FAST_PYCALL
1288 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
1289 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
1290 #if 1 || PY_VERSION_HEX < 0x030600B1
1291 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
1293 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
1295 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
1296 (sizeof(char [1 - 2*!(cond)]) - 1)
1297 #ifndef Py_MEMBER_SIZE
1298 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
1300 #if CYTHON_FAST_PYCALL
1301 static size_t __pyx_pyframe_localsplus_offset = 0;
1302 #include "frameobject.h"
1303 #if PY_VERSION_HEX >= 0x030b00a6
1304 #ifndef Py_BUILD_CORE
1305 #define Py_BUILD_CORE 1
1307 #include "internal/pycore_frame.h"
1309 #define __Pxy_PyFrame_Initialize_Offsets()\
1310 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
1311 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
1312 #define __Pyx_PyFrame_GetLocalsplus(frame)\
1313 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1314 #endif // CYTHON_FAST_PYCALL
1318 #if CYTHON_COMPILING_IN_CPYTHON
1319 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1321 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1325 #if CYTHON_COMPILING_IN_CPYTHON
1326 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
1330 #if CYTHON_COMPILING_IN_CPYTHON
1331 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
1333 #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
1337 #if CYTHON_FAST_PYCCALL
1338 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
1340 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
1344 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
1347 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
1350 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
1353 static CYTHON_INLINE
int __Pyx_IterFinish(
void);
1356 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);
1359 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
1362 #if CYTHON_USE_EXC_INFO_STACK
1363 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1367 #if CYTHON_FAST_THREAD_STATE
1368 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1369 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1370 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1372 #define __Pyx_PyThreadState_declare
1373 #define __Pyx_PyThreadState_assign
1374 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1378 #if CYTHON_FAST_THREAD_STATE
1379 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1380 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1381 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1382 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1384 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1385 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1389 #if CYTHON_FAST_THREAD_STATE
1390 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1391 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1393 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1397 #if CYTHON_FAST_THREAD_STATE
1398 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1399 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1401 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1405 #if CYTHON_FAST_THREAD_STATE
1406 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1407 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1408 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1409 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1410 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1411 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1412 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1413 #if CYTHON_COMPILING_IN_CPYTHON
1414 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1416 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1419 #define __Pyx_PyErr_Clear() PyErr_Clear()
1420 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1421 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1422 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1423 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1424 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1425 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1426 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1430 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1433 #ifndef __PYX_HAVE_RT_ImportType_proto
1434 #define __PYX_HAVE_RT_ImportType_proto
1435 enum __Pyx_ImportType_CheckSize {
1436 __Pyx_ImportType_CheckSize_Error = 0,
1437 __Pyx_ImportType_CheckSize_Warn = 1,
1438 __Pyx_ImportType_CheckSize_Ignore = 2
1440 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
1444 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
1447 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
1448 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
1449 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
1450 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
1451 (version_var) = __PYX_GET_DICT_VERSION(dict);\
1452 (cache_var) = (value);
1453 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
1454 static PY_UINT64_T __pyx_dict_version = 0;\
1455 static PyObject *__pyx_dict_cached_value = NULL;\
1456 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
1457 (VAR) = __pyx_dict_cached_value;\
1459 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
1460 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
1463 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
1464 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
1465 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
1467 #define __PYX_GET_DICT_VERSION(dict) (0)
1468 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
1469 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
1473 #ifdef CYTHON_CLINE_IN_TRACEBACK
1474 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1476 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1481 PyCodeObject* code_object;
1483 } __Pyx_CodeObjectCacheEntry;
1484 struct __Pyx_CodeObjectCache {
1487 __Pyx_CodeObjectCacheEntry* entries;
1489 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1490 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1491 static PyCodeObject *__pyx_find_code_object(
int code_line);
1492 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1495 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1496 int py_line,
const char *filename);
1499 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
1500 #define __Pyx_HAS_GCC_DIAGNOSTIC
1504 static int __Pyx_Print(PyObject*, PyObject *,
int);
1505 #if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
1506 static PyObject* __pyx_print = 0;
1507 static PyObject* __pyx_print_kwargs = 0;
1513 #define __Pyx_CREAL(z) ((z).real())
1514 #define __Pyx_CIMAG(z) ((z).imag())
1516 #define __Pyx_CREAL(z) (__real__(z))
1517 #define __Pyx_CIMAG(z) (__imag__(z))
1520 #define __Pyx_CREAL(z) ((z).real)
1521 #define __Pyx_CIMAG(z) ((z).imag)
1523 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
1524 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
1525 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
1526 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
1528 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
1529 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
1534 #define __Pyx_c_eq_float(a, b) ((a)==(b))
1535 #define __Pyx_c_sum_float(a, b) ((a)+(b))
1536 #define __Pyx_c_diff_float(a, b) ((a)-(b))
1537 #define __Pyx_c_prod_float(a, b) ((a)*(b))
1538 #define __Pyx_c_quot_float(a, b) ((a)/(b))
1539 #define __Pyx_c_neg_float(a) (-(a))
1541 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
1542 #define __Pyx_c_conj_float(z) (::std::conj(z))
1544 #define __Pyx_c_abs_float(z) (::std::abs(z))
1545 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
1548 #define __Pyx_c_is_zero_float(z) ((z)==0)
1549 #define __Pyx_c_conj_float(z) (conjf(z))
1551 #define __Pyx_c_abs_float(z) (cabsf(z))
1552 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
1556 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
1557 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
1558 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
1559 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
1560 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
1561 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
1562 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
1563 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
1565 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
1566 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
1572 #define __Pyx_c_eq_double(a, b) ((a)==(b))
1573 #define __Pyx_c_sum_double(a, b) ((a)+(b))
1574 #define __Pyx_c_diff_double(a, b) ((a)-(b))
1575 #define __Pyx_c_prod_double(a, b) ((a)*(b))
1576 #define __Pyx_c_quot_double(a, b) ((a)/(b))
1577 #define __Pyx_c_neg_double(a) (-(a))
1579 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
1580 #define __Pyx_c_conj_double(z) (::std::conj(z))
1582 #define __Pyx_c_abs_double(z) (::std::abs(z))
1583 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
1586 #define __Pyx_c_is_zero_double(z) ((z)==0)
1587 #define __Pyx_c_conj_double(z) (conj(z))
1589 #define __Pyx_c_abs_double(z) (cabs(z))
1590 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
1594 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
1595 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
1596 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
1597 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
1598 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
1599 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
1600 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
1601 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
1603 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
1604 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
1609 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
1612 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value);
1615 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
1618 static int __Pyx_PrintOne(PyObject* stream, PyObject *o);
1621 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
1624 #if CYTHON_COMPILING_IN_CPYTHON
1625 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1626 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1627 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1628 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1630 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1631 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1632 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1634 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1637 static int __Pyx_check_binary_version(
void);
1640 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
1652 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
1665 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
1666 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
1667 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
1668 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
1669 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
1670 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
1671 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
1672 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
1673 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
1674 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
1675 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
1676 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
1677 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
1678 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
1679 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
1682 #define __Pyx_MODULE_NAME "cfemIntegrals"
1683 extern int __pyx_module_is_main_cfemIntegrals;
1684 int __pyx_module_is_main_cfemIntegrals = 0;
1687 static PyObject *__pyx_builtin_range;
1688 static PyObject *__pyx_builtin_ImportError;
1689 static const char __pyx_k_F[] =
"F";
1690 static const char __pyx_k_H[] =
"H";
1691 static const char __pyx_k_V[] =
"V";
1692 static const char __pyx_k_a[] =
"a";
1693 static const char __pyx_k_b[] =
"b";
1694 static const char __pyx_k_f[] =
"f";
1695 static const char __pyx_k_i[] =
"i";
1696 static const char __pyx_k_m[] =
"m";
1697 static const char __pyx_k_n[] =
"n";
1698 static const char __pyx_k_p[] =
"p";
1699 static const char __pyx_k_r[] =
"r";
1700 static const char __pyx_k_s[] =
"s";
1701 static const char __pyx_k_t[] =
"t";
1702 static const char __pyx_k_u[] =
"u";
1703 static const char __pyx_k_v[] =
"v";
1704 static const char __pyx_k_w[] =
"w";
1705 static const char __pyx_k_x[] =
"x";
1706 static const char __pyx_k_DV[] =
"DV";
1707 static const char __pyx_k_dH[] =
"dH";
1708 static const char __pyx_k_dS[] =
"dS";
1709 static const char __pyx_k_dV[] =
"dV";
1710 static const char __pyx_k_dX[] =
"dX";
1711 static const char __pyx_k_da[] =
"da";
1712 static const char __pyx_k_db[] =
"db";
1713 static const char __pyx_k_df[] =
"df";
1714 static const char __pyx_k_dm[] =
"dm";
1715 static const char __pyx_k_dr[] =
"dr";
1716 static const char __pyx_k_mt[] =
"mt";
1717 static const char __pyx_k_nd[] =
"nd";
1718 static const char __pyx_k_ng[] =
"ng";
1719 static const char __pyx_k_np[] =
"np";
1720 static const char __pyx_k_pe[] =
"pe";
1721 static const char __pyx_k_qV[] =
"qV";
1722 static const char __pyx_k_qa[] =
"qa";
1723 static const char __pyx_k_qv[] =
"qv";
1724 static const char __pyx_k_s1[] =
"s1";
1725 static const char __pyx_k_s2[] =
"s2";
1726 static const char __pyx_k_ub[] =
"ub";
1727 static const char __pyx_k_xg[] =
"xg";
1728 static const char __pyx_k_xt[] =
"xt";
1729 static const char __pyx_k_cfl[] =
"cfl";
1730 static const char __pyx_k_dSR[] =
"dSR";
1731 static const char __pyx_k_dVR[] =
"dVR";
1732 static const char __pyx_k_df1[] =
"df1";
1733 static const char __pyx_k_df2[] =
"df2";
1734 static const char __pyx_k_dmt[] =
"dmt";
1735 static const char __pyx_k_dof[] =
"dof";
1736 static const char __pyx_k_end[] =
"end";
1737 static const char __pyx_k_jac[] =
"jac";
1738 static const char __pyx_k_l2g[] =
"l2g";
1739 static const char __pyx_k_phi[] =
"phi";
1740 static const char __pyx_k_psi[] =
"psi";
1741 static const char __pyx_k_qDV[] =
"qDV";
1742 static const char __pyx_k_val[] =
"val";
1743 static const char __pyx_k_dS_u[] =
"dS_u";
1744 static const char __pyx_k_dofs[] =
"dofs";
1745 static const char __pyx_k_dphi[] =
"dphi";
1746 static const char __pyx_k_file[] =
"file";
1747 static const char __pyx_k_flag[] =
"flag";
1748 static const char __pyx_k_flux[] =
"flux";
1749 static const char __pyx_k_main[] =
"__main__";
1750 static const char __pyx_k_name[] =
"__name__";
1751 static const char __pyx_k_test[] =
"__test__";
1752 static const char __pyx_k_w_dS[] =
"w_dS";
1753 static const char __pyx_k_w_dV[] =
"w_dV";
1754 static const char __pyx_k_A_inv[] =
"A_inv";
1755 static const char __pyx_k_DV_eb[] =
"DV_eb";
1756 static const char __pyx_k_db_eb[] =
"db_eb";
1757 static const char __pyx_k_error[] =
"error";
1758 static const char __pyx_k_mJump[] =
"mJump";
1759 static const char __pyx_k_numpy[] =
"numpy";
1760 static const char __pyx_k_print[] =
"print";
1761 static const char __pyx_k_qw_dV[] =
"qw_dV";
1762 static const char __pyx_k_range[] =
"range";
1763 static const char __pyx_k_sigma[] =
"sigma";
1764 static const char __pyx_k_starJ[] =
"starJ";
1765 static const char __pyx_k_starR[] =
"starR";
1766 static const char __pyx_k_starU[] =
"starU";
1767 static const char __pyx_k_vJump[] =
"vJump";
1768 static const char __pyx_k_v_out[] =
"v_out";
1769 static const char __pyx_k_vn_in[] =
"vn_in";
1770 static const char __pyx_k_Hess_v[] =
"Hess_v";
1771 static const char __pyx_k_Hess_w[] =
"Hess_w";
1772 static const char __pyx_k_colind[] =
"colind";
1773 static const char __pyx_k_derror[] =
"derror";
1774 static const char __pyx_k_free_u[] =
"free_u";
1775 static const char __pyx_k_grad_u[] =
"grad_u";
1776 static const char __pyx_k_grad_v[] =
"grad_v";
1777 static const char __pyx_k_grad_w[] =
"grad_w";
1778 static const char __pyx_k_import[] =
"__import__";
1779 static const char __pyx_k_nSpace[] =
"nSpace";
1780 static const char __pyx_k_normal[] =
"normal";
1781 static const char __pyx_k_offset[] =
"offset";
1782 static const char __pyx_k_output[] =
"output";
1783 static const char __pyx_k_phi_bc[] =
"phi_bc";
1784 static const char __pyx_k_qDV_eb[] =
"qDV_eb";
1785 static const char __pyx_k_rowptr[] =
"rowptr";
1786 static const char __pyx_k_stride[] =
"stride";
1787 static const char __pyx_k_vArray[] =
"vArray";
1788 static const char __pyx_k_vXw_dV[] =
"vXw_dV";
1789 static const char __pyx_k_xArray[] =
"xArray";
1790 static const char __pyx_k_dim_dof[] =
"dim_dof";
1791 static const char __pyx_k_ebq_val[] =
"ebq_val";
1792 static const char __pyx_k_epsFact[] =
"epsFact";
1793 static const char __pyx_k_numDiff[] =
"numDiff";
1794 static const char __pyx_k_sResult[] =
"sResult";
1795 static const char __pyx_k_tResult[] =
"tResult";
1796 static const char __pyx_k_vResult[] =
"vResult";
1797 static const char __pyx_k_weights[] =
"weights";
1798 static const char __pyx_k_xiArray[] =
"xiArray";
1799 static const char __pyx_k_xtArray[] =
"xtArray";
1800 static const char __pyx_k_Hess_phi[] =
"Hess_phi";
1801 static const char __pyx_k_ebqe_val[] =
"ebqe_val";
1802 static const char __pyx_k_grad_phi[] =
"grad_phi";
1803 static const char __pyx_k_grad_psi[] =
"grad_psi";
1804 static const char __pyx_k_jacIndex[] =
"jacIndex";
1805 static const char __pyx_k_jacobian[] =
"jacobian";
1806 static const char __pyx_k_mAverage[] =
"mAverage";
1807 static const char __pyx_k_nDOF2set[] =
"nDOF2set";
1808 static const char __pyx_k_offset_r[] =
"offset_r";
1809 static const char __pyx_k_offset_u[] =
"offset_u";
1810 static const char __pyx_k_residual[] =
"residual";
1811 static const char __pyx_k_stride_r[] =
"stride_r";
1812 static const char __pyx_k_stride_u[] =
"stride_u";
1813 static const char __pyx_k_vAverage[] =
"vAverage";
1814 static const char __pyx_k_v_X_w_dS[] =
"v_X_w_dS";
1815 static const char __pyx_k_v_X_w_dV[] =
"v_X_w_dV";
1816 static const char __pyx_k_velocity[] =
"velocity";
1817 static const char __pyx_k_Hess_w_dV[] =
"Hess_w_dV";
1818 static const char __pyx_k_Hessian_u[] =
"Hessian_u";
1819 static const char __pyx_k_Hessian_v[] =
"Hessian_v";
1820 static const char __pyx_k_abs_det_J[] =
"abs_det_J";
1821 static const char __pyx_k_dsigma_xx[] =
"dsigma_xx";
1822 static const char __pyx_k_dsigma_xy[] =
"dsigma_xy";
1823 static const char __pyx_k_dsigma_xz[] =
"dsigma_xz";
1824 static const char __pyx_k_dsigma_yx[] =
"dsigma_yx";
1825 static const char __pyx_k_dsigma_yy[] =
"dsigma_yy";
1826 static const char __pyx_k_dsigma_yz[] =
"dsigma_yz";
1827 static const char __pyx_k_dsigma_zx[] =
"dsigma_zx";
1828 static const char __pyx_k_dsigma_zy[] =
"dsigma_zy";
1829 static const char __pyx_k_dsigma_zz[] =
"dsigma_zz";
1830 static const char __pyx_k_grad_w_dV[] =
"grad_w_dV";
1831 static const char __pyx_k_jac_array[] =
"jac_array";
1832 static const char __pyx_k_nNonzeros[] =
"nNonzeros";
1833 static const char __pyx_k_nodeArray[] =
"nodeArray";
1834 static const char __pyx_k_phi_trace[] =
"phi_trace";
1835 static const char __pyx_k_rho_split[] =
"rho_split";
1836 static const char __pyx_k_tolerance[] =
"tolerance";
1837 static const char __pyx_k_xArrayNew[] =
"xArrayNew";
1838 static const char __pyx_k_Lstar_w_dV[] =
"Lstar_w_dV";
1839 static const char __pyx_k_freeDOFids[] =
"freeDOFids";
1840 static const char __pyx_k_sqrt_det_g[] =
"sqrt_det_g";
1841 static const char __pyx_k_updateCoef[] =
"updateCoef";
1842 static const char __pyx_k_Hessian_psi[] =
"Hessian_psi";
1843 static const char __pyx_k_ImportError[] =
"ImportError";
1844 static const char __pyx_k_abs_det_jac[] =
"abs_det_jac";
1845 static const char __pyx_k_estimate_mt[] =
"estimate_mt";
1846 static const char __pyx_k_freeLocal_r[] =
"freeLocal_r";
1847 static const char __pyx_k_freeLocal_u[] =
"freeLocal_u";
1848 static const char __pyx_k_grad_vArray[] =
"grad_vArray";
1849 static const char __pyx_k_jacobian_eb[] =
"jacobian_eb";
1850 static const char __pyx_k_nComponents[] =
"nComponents";
1851 static const char __pyx_k_nValueArray[] =
"nValueArray";
1852 static const char __pyx_k_colind_dummy[] =
"colind_dummy";
1853 static const char __pyx_k_elementNodes[] =
"elementNodes";
1854 static const char __pyx_k_freeGlobal_r[] =
"freeGlobal_r";
1855 static const char __pyx_k_freeGlobal_u[] =
"freeGlobal_u";
1856 static const char __pyx_k_globalDOFids[] =
"globalDOFids";
1857 static const char __pyx_k_nDOF_element[] =
"nDOF_element";
1858 static const char __pyx_k_nodalAverage[] =
"nodalAverage";
1859 static const char __pyx_k_permutations[] =
"permutations";
1860 static const char __pyx_k_rowptr_dummy[] =
"rowptr_dummy";
1861 static const char __pyx_k_starJacobian[] =
"starJacobian";
1862 static const char __pyx_k_cfemIntegrals[] =
"cfemIntegrals";
1863 static const char __pyx_k_firstBadIndex[] =
"firstBadIndex";
1864 static const char __pyx_k_grad_v_X_w_dS[] =
"grad_v_X_w_dS";
1865 static const char __pyx_k_grad_v_X_w_dV[] =
"grad_v_X_w_dV";
1866 static const char __pyx_k_internalNodes[] =
"internalNodes";
1867 static const char __pyx_k_isDOFBoundary[] =
"isDOFBoundary";
1868 static const char __pyx_k_jacobianArray[] =
"jacobianArray";
1869 static const char __pyx_k_nNodes_global[] =
"nNodes_global";
1870 static const char __pyx_k_nSpace_global[] =
"nSpace_global";
1871 static const char __pyx_k_vConservative[] =
"vConservative";
1872 static const char __pyx_k_v_X_grad_w_dV[] =
"v_X_grad_w_dV";
1873 static const char __pyx_k_weak_residual[] =
"weak_residual";
1874 static const char __pyx_k_Hessian_vArray[] =
"Hessian_vArray";
1875 static const char __pyx_k_ebq_global_val[] =
"ebq_global_val";
1876 static const char __pyx_k_globalJacobian[] =
"globalJacobian";
1877 static const char __pyx_k_globalResidual[] =
"globalResidual";
1878 static const char __pyx_k_mom_flux_vec_u[] =
"mom_flux_vec_u";
1879 static const char __pyx_k_mom_flux_vec_v[] =
"mom_flux_vec_v";
1880 static const char __pyx_k_mom_flux_vec_w[] =
"mom_flux_vec_w";
1881 static const char __pyx_k_nElements_node[] =
"nElements_node";
1882 static const char __pyx_k_nNodes_element[] =
"nNodes_element";
1883 static const char __pyx_k_boundaryNormals[] =
"boundaryNormals";
1884 static const char __pyx_k_calculateCFLADR[] =
"calculateCFLADR";
1885 static const char __pyx_k_dphi_trace_left[] =
"dphi_trace_left";
1886 static const char __pyx_k_elementDiameter[] =
"elementDiameter";
1887 static const char __pyx_k_elementJacobian[] =
"elementJacobian";
1888 static const char __pyx_k_elementResidual[] =
"elementResidual";
1889 static const char __pyx_k_inverseJacobian[] =
"inverseJacobian";
1890 static const char __pyx_k_nNodes_internal[] =
"nNodes_internal";
1891 static const char __pyx_k_nodeStarOffsets[] =
"nodeStarOffsets";
1892 static const char __pyx_k_strong_residual[] =
"strong_residual";
1893 static const char __pyx_k_unitNormalArray[] =
"unitNormalArray";
1894 static const char __pyx_k_updateMass_weak[] =
"updateMass_weak";
1895 static const char __pyx_k_weak_residual_x[] =
"weak_residual_x";
1896 static const char __pyx_k_weak_residual_y[] =
"weak_residual_y";
1897 static const char __pyx_k_weak_residual_z[] =
"weak_residual_z";
1898 static const char __pyx_k_csrRowIndeces_ru[] =
"csrRowIndeces_ru";
1899 static const char __pyx_k_dphi_trace_right[] =
"dphi_trace_right";
1900 static const char __pyx_k_dstrong_residual[] =
"dstrong_residual";
1901 static const char __pyx_k_elementNeighbors[] =
"elementNeighbors";
1902 static const char __pyx_k_nElements_global[] =
"nElements_global";
1903 static const char __pyx_k_nFreeVDOF_global[] =
"nFreeVDOF_global";
1904 static const char __pyx_k_nodeStarElements[] =
"nodeStarElements";
1905 static const char __pyx_k_referenceWeights[] =
"referenceWeights";
1906 static const char __pyx_k_updateFluxValues[] =
"updateFluxValues";
1907 static const char __pyx_k_zeroJacobian_CSR[] =
"zeroJacobian_CSR";
1908 static const char __pyx_k_boundaryJacobians[] =
"boundaryJacobians";
1909 static const char __pyx_k_elementNodesArray[] =
"elementNodesArray";
1910 static const char __pyx_k_metricTensorArray[] =
"metricTensorArray";
1911 static const char __pyx_k_nDOF_test_element[] =
"nDOF_test_element";
1912 static const char __pyx_k_nodeElementsArray[] =
"nodeElementsArray";
1913 static const char __pyx_k_updateMass_strong[] =
"updateMass_strong";
1914 static const char __pyx_k_updateStress_weak[] =
"updateStress_weak";
1915 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
1916 static const char __pyx_k_elementJacobian_eb[] =
"elementJacobian_eb";
1917 static const char __pyx_k_estimate_mt_lowmem[] =
"estimate_mt_lowmem";
1918 static const char __pyx_k_grad_u_X_grad_w_dV[] =
"grad_u_X_grad_w_dV";
1919 static const char __pyx_k_grad_v_X_grad_w_dV[] =
"grad_v_X_grad_w_dV";
1920 static const char __pyx_k_nDOF_trial_element[] =
"nDOF_trial_element";
1921 static const char __pyx_k_nFreeDOF_element_r[] =
"nFreeDOF_element_r";
1922 static const char __pyx_k_nFreeDOF_element_u[] =
"nFreeDOF_element_u";
1923 static const char __pyx_k_nodeElementOffsets[] =
"nodeElementOffsets";
1924 static const char __pyx_k_updateMass_adjoint[] =
"updateMass_adjoint";
1925 static const char __pyx_k_updateSubgridError[] =
"updateSubgridError";
1926 static const char __pyx_k_csrColumnOffsets_ru[] =
"csrColumnOffsets_ru";
1927 static const char __pyx_k_interpolationValues[] =
"interpolationValues";
1928 static const char __pyx_k_updateReaction_weak[] =
"updateReaction_weak";
1929 static const char __pyx_k_conservationResidual[] =
"conservationResidual";
1930 static const char __pyx_k_getCSRrepresentation[] =
"getCSRrepresentation";
1931 static const char __pyx_k_globalJacobian_array[] =
"globalJacobian_array";
1932 static const char __pyx_k_grad_phi_X_grad_w_dV[] =
"grad_phi_X_grad_w_dV";
1933 static const char __pyx_k_inverseJacobianArray[] =
"inverseJacobianArray";
1934 static const char __pyx_k_jacobianInverseArray[] =
"jacobianInverseArray";
1935 static const char __pyx_k_scalarDomainIntegral[] =
"scalarDomainIntegral";
1936 static const char __pyx_k_updateAdvection_weak[] =
"updateAdvection_weak";
1937 static const char __pyx_k_updateDiffusion_weak[] =
"updateDiffusion_weak";
1938 static const char __pyx_k_calculateFlowVelocity[] =
"calculateFlowVelocity";
1939 static const char __pyx_k_fluxElementBoundaries[] =
"fluxElementBoundaries";
1940 static const char __pyx_k_getPermutationsGlobal[] =
"getPermutationsGlobal";
1941 static const char __pyx_k_updateAddJacobian_CSR[] =
"updateAddJacobian_CSR";
1942 static const char __pyx_k_updateReaction_strong[] =
"updateReaction_strong";
1943 static const char __pyx_k_update_f_movingDomain[] =
"update_f_movingDomain";
1944 static const char __pyx_k_vConservative_element[] =
"vConservative_element";
1945 static const char __pyx_k_calculateCFLADR2speeds[] =
"calculateCFLADR2speeds";
1946 static const char __pyx_k_calculateWeightedShape[] =
"calculateWeightedShape";
1947 static const char __pyx_k_csrColumnOffsets_eb_ru[] =
"csrColumnOffsets_eb_ru";
1948 static const char __pyx_k_elementSpatialResidual[] =
"elementSpatialResidual";
1949 static const char __pyx_k_functional_map_element[] =
"functional_map_element";
1950 static const char __pyx_k_jacobian_weak_residual[] =
"jacobian_weak_residual";
1951 static const char __pyx_k_updateAdvection_strong[] =
"updateAdvection_strong";
1952 static const char __pyx_k_updateDiffusion_strong[] =
"updateDiffusion_strong";
1953 static const char __pyx_k_updateHamiltonian_weak[] =
"updateHamiltonian_weak";
1954 static const char __pyx_k_updateReaction_adjoint[] =
"updateReaction_adjoint";
1955 static const char __pyx_k_elementBoundaryElements[] =
"elementBoundaryElements";
1956 static const char __pyx_k_nodeStarJacobianOffsets[] =
"nodeStarJacobianOffsets";
1957 static const char __pyx_k_not_recognized_quitting[] =
" not recognized quitting\n";
1958 static const char __pyx_k_updateAdvection_adjoint[] =
"updateAdvection_adjoint";
1959 static const char __pyx_k_updateDiffusion2_strong[] =
"updateDiffusion2_strong";
1960 static const char __pyx_k_updateDiffusion_adjoint[] =
"updateDiffusion_adjoint";
1961 static const char __pyx_k_updateDiffusion_weak_sd[] =
"updateDiffusion_weak_sd";
1962 static const char __pyx_k_updateMassJacobian_weak[] =
"updateMassJacobian_weak";
1963 static const char __pyx_k_velocityBoundary_global[] =
"velocityBoundary_global";
1964 static const char __pyx_k_jacobianDeterminantArray[] =
"jacobianDeterminantArray";
1965 static const char __pyx_k_nElementBoundaries_owned[] =
"nElementBoundaries_owned";
1966 static const char __pyx_k_nodeStarElementNeighbors[] =
"nodeStarElementNeighbors";
1967 static const char __pyx_k_parametricMaps_getValues[] =
"parametricMaps_getValues";
1968 static const char __pyx_k_updateDiffusion2_adjoint[] =
"updateDiffusion2_adjoint";
1969 static const char __pyx_k_updateHamiltonian_strong[] =
"updateHamiltonian_strong";
1970 static const char __pyx_k_updateNumericalDiffusion[] =
"updateNumericalDiffusion";
1971 static const char __pyx_k_velocityBoundary_element[] =
"velocityBoundary_element";
1972 static const char __pyx_k_exteriorElementBoundaries[] =
"exteriorElementBoundaries";
1973 static const char __pyx_k_interiorElementBoundaries[] =
"interiorElementBoundaries";
1974 static const char __pyx_k_jacobian_weak_residual_eb[] =
"jacobian_weak_residual_eb";
1975 static const char __pyx_k_jacobian_weak_residual_xx[] =
"jacobian_weak_residual_xx";
1976 static const char __pyx_k_jacobian_weak_residual_xy[] =
"jacobian_weak_residual_xy";
1977 static const char __pyx_k_jacobian_weak_residual_xz[] =
"jacobian_weak_residual_xz";
1978 static const char __pyx_k_jacobian_weak_residual_yx[] =
"jacobian_weak_residual_yx";
1979 static const char __pyx_k_jacobian_weak_residual_yy[] =
"jacobian_weak_residual_yy";
1980 static const char __pyx_k_jacobian_weak_residual_yz[] =
"jacobian_weak_residual_yz";
1981 static const char __pyx_k_jacobian_weak_residual_zx[] =
"jacobian_weak_residual_zx";
1982 static const char __pyx_k_jacobian_weak_residual_zy[] =
"jacobian_weak_residual_zy";
1983 static const char __pyx_k_jacobian_weak_residual_zz[] =
"jacobian_weak_residual_zz";
1984 static const char __pyx_k_nElementBoundaries_global[] =
"nElementBoundaries_global";
1985 static const char __pyx_k_nQuadraturePoints_element[] =
"nQuadraturePoints_element";
1986 static const char __pyx_k_nValuesPerQuadraturePoint[] =
"nValuesPerQuadraturePoint";
1987 static const char __pyx_k_proteus_cfemIntegrals_pyx[] =
"proteus/cfemIntegrals.pyx";
1988 static const char __pyx_k_updateDiffusion_strong_sd[] =
"updateDiffusion_strong_sd";
1989 static const char __pyx_k_updateHamiltonian_adjoint[] =
"updateHamiltonian_adjoint";
1990 static const char __pyx_k_updateMassJacobian_strong[] =
"updateMassJacobian_strong";
1991 static const char __pyx_k_updateStressJacobian_weak[] =
"updateStressJacobian_weak";
1992 static const char __pyx_k_computeC0P1InterpolantDGP0[] =
"computeC0P1InterpolantDGP0";
1993 static const char __pyx_k_computeC0P1InterpolantNCP1[] =
"computeC0P1InterpolantNCP1";
1994 static const char __pyx_k_error_copyFromFreeToGlobal[] =
"error copyFromFreeToGlobal = ";
1995 static const char __pyx_k_fluxDomainBoundaryIntegral[] =
"fluxDomainBoundaryIntegral";
1996 static const char __pyx_k_nElementBoundaries_element[] =
"nElementBoundaries_element";
1997 static const char __pyx_k_nExteriorElementBoundaries[] =
"nExteriorElementBoundaries";
1998 static const char __pyx_k_updateDiffusion2_strong_sd[] =
"updateDiffusion2_strong_sd";
1999 static const char __pyx_k_updateDiffusion_adjoint_sd[] =
"updateDiffusion_adjoint_sd";
2000 static const char __pyx_k_updateSubgridErrorJacobian[] =
"updateSubgridErrorJacobian";
2001 static const char __pyx_k_calculateIntegrationWeights[] =
"calculateIntegrationWeights";
2002 static const char __pyx_k_calculateWeightedShapeTrace[] =
"calculateWeightedShapeTrace";
2003 static const char __pyx_k_computeC0P1InterpolantDGP12[] =
"computeC0P1InterpolantDGP12";
2004 static const char __pyx_k_copyLeftElementBoundaryInfo[] =
"copyLeftElementBoundaryInfo";
2005 static const char __pyx_k_elementBoundaryFluxJacobian[] =
"elementBoundaryFluxJacobian";
2006 static const char __pyx_k_updateDiffusion2_adjoint_sd[] =
"updateDiffusion2_adjoint_sd";
2007 static const char __pyx_k_updateDiffusion_weak_lowmem[] =
"updateDiffusion_weak_lowmem";
2008 static const char __pyx_k_updateReactionJacobian_weak[] =
"updateReactionJacobian_weak";
2009 static const char __pyx_k_calculateConservationFluxPWL[] =
"calculateConservationFluxPWL";
2010 static const char __pyx_k_calculateScalarScalarProduct[] =
"calculateScalarScalarProduct";
2011 static const char __pyx_k_calculateTensorScalarProduct[] =
"calculateTensorScalarProduct";
2012 static const char __pyx_k_calculateVectorScalarProduct[] =
"calculateVectorScalarProduct";
2013 static const char __pyx_k_csrColumnOffsets_eb_eNebN_ru[] =
"csrColumnOffsets_eb_eNebN_ru";
2014 static const char __pyx_k_elementBoundaryElementsArray[] =
"elementBoundaryElementsArray";
2015 static const char __pyx_k_elementBoundaryMaterialTypes[] =
"elementBoundaryMaterialTypes";
2016 static const char __pyx_k_updateAdvectionJacobian_weak[] =
"updateAdvectionJacobian_weak";
2017 static const char __pyx_k_updateDiffusionJacobian_weak[] =
"updateDiffusionJacobian_weak";
2018 static const char __pyx_k_calculateConservationResidual[] =
"calculateConservationResidual";
2019 static const char __pyx_k_computeDiffusiveTimeStepLimit[] =
"computeDiffusiveTimeStepLimit";
2020 static const char __pyx_k_parametricMaps_getValuesTrace[] =
"parametricMaps_getValuesTrace";
2021 static const char __pyx_k_scalarHeavisideDomainIntegral[] =
"scalarHeavisideDomainIntegral";
2022 static const char __pyx_k_updateReactionJacobian_strong[] =
"updateReactionJacobian_strong";
2023 static const char __pyx_k_calculateShape_X_weightedShape[] =
"calculateShape_X_weightedShape";
2024 static const char __pyx_k_calculateWeightedShapeHessians[] =
"calculateWeightedShapeHessians";
2025 static const char __pyx_k_elementBoundaryFluxJacobian_eb[] =
"elementBoundaryFluxJacobian_eb";
2026 static const char __pyx_k_exteriorElementBoundariesArray[] =
"exteriorElementBoundariesArray";
2027 static const char __pyx_k_interiorElementBoundariesArray[] =
"interiorElementBoundariesArray";
2028 static const char __pyx_k_parametricMaps_getPermutations[] =
"parametricMaps_getPermutations";
2029 static const char __pyx_k_updateAdvectionJacobian_strong[] =
"updateAdvectionJacobian_strong";
2030 static const char __pyx_k_updateDiffusionJacobian_strong[] =
"updateDiffusionJacobian_strong";
2031 static const char __pyx_k_updateDiffusion_MixedForm_weak[] =
"updateDiffusion_MixedForm_weak";
2032 static const char __pyx_k_updateHamiltonianJacobian_weak[] =
"updateHamiltonianJacobian_weak";
2033 static const char __pyx_k_updateMassJacobian_weak_lowmem[] =
"updateMassJacobian_weak_lowmem";
2034 static const char __pyx_k_updatePotential_MixedForm_weak[] =
"updatePotential_MixedForm_weak";
2035 static const char __pyx_k_calculateConservationResidualDG[] =
"calculateConservationResidualDG";
2036 static const char __pyx_k_calculateExteriorNumericalTrace[] =
"calculateExteriorNumericalTrace_Potential";
2037 static const char __pyx_k_calculateInteriorNumericalTrace[] =
"calculateInteriorNumericalTrace_Potential";
2038 static const char __pyx_k_calculateWeightedShapeGradients[] =
"calculateWeightedShapeGradients";
2039 static const char __pyx_k_error_in_getJacobianValuesTrace[] =
"error in getJacobianValuesTrace...jacobianInverse not sized properly";
2040 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
2041 static const char __pyx_k_parametricMaps_getInverseValues[] =
"parametricMaps_getInverseValues";
2042 static const char __pyx_k_updateDiffusionJacobian2_strong[] =
"updateDiffusionJacobian2_strong";
2043 static const char __pyx_k_updateDiffusionJacobian_weak_sd[] =
"updateDiffusionJacobian_weak_sd";
2044 static const char __pyx_k_updateNumericalDiffusion_lowmem[] =
"updateNumericalDiffusion_lowmem";
2045 static const char __pyx_k_calculateConservationJacobianPWL[] =
"calculateConservationJacobianPWL";
2046 static const char __pyx_k_calculateConservationResidualGlo[] =
"calculateConservationResidualGlobalBoundaries";
2047 static const char __pyx_k_calculateConservationResidualPWL[] =
"calculateConservationResidualPWL";
2048 static const char __pyx_k_calculateDimensionlessNumbersADR[] =
"calculateDimensionlessNumbersADR";
2049 static const char __pyx_k_calculateElementBoundaryIntegrat[] =
"calculateElementBoundaryIntegrationWeights";
2050 static const char __pyx_k_calculateExteriorElementBoundary[] =
"calculateExteriorElementBoundaryStress3D";
2051 static const char __pyx_k_calculateFiniteElementFunctionGr[] =
"calculateFiniteElementFunctionGradientValues";
2052 static const char __pyx_k_calculateFiniteElementFunctionHe[] =
"calculateFiniteElementFunctionHessianValues";
2053 static const char __pyx_k_calculateFiniteElementFunctionVa[] =
"calculateFiniteElementFunctionValues";
2054 static const char __pyx_k_calculateGlobalExteriorElementBo[] =
"calculateGlobalExteriorElementBoundaryIntegrationWeights";
2055 static const char __pyx_k_calculateGradShape_X_weightedGra[] =
"calculateGradShape_X_weightedGradShape";
2056 static const char __pyx_k_calculateGradShape_X_weightedSha[] =
"calculateGradShape_X_weightedShape";
2057 static const char __pyx_k_calculateInteriorElementBoundary[] =
"calculateInteriorElementBoundaryVelocities";
2058 static const char __pyx_k_calculateShape_X_weightedGradSha[] =
"calculateShape_X_weightedGradShape";
2059 static const char __pyx_k_calculateShape_X_weightedShapeGl[] =
"calculateShape_X_weightedShapeGlobalExteriorTrace";
2060 static const char __pyx_k_calculateShape_X_weightedShapeTr[] =
"calculateShape_X_weightedShapeTrace";
2061 static const char __pyx_k_calculateVelocityProjectionMatri[] =
"calculateVelocityProjectionMatrixLDG";
2062 static const char __pyx_k_calculateVelocityQuadrature_Mixe[] =
"calculateVelocityQuadrature_MixedForm";
2063 static const char __pyx_k_calculateWeightedShapeGlobalExte[] =
"calculateWeightedShapeGlobalExteriorTrace";
2064 static const char __pyx_k_checkElementBoundaryAndExteriorE[] =
"checkElementBoundaryAndExteriorElementBoundaryArraysSame";
2065 static const char __pyx_k_checkGlobalElementBoundaryAndExt[] =
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame";
2066 static const char __pyx_k_copyBetweenFreeUnknownsAndGlobal[] =
"copyBetweenFreeUnknownsAndGlobalUnknowns";
2067 static const char __pyx_k_copyExteriorElementBoundaryValue[] =
"copyExteriorElementBoundaryValuesFromElementBoundaryValues";
2068 static const char __pyx_k_copyGlobalElementBoundaryVelocit[] =
"copyGlobalElementBoundaryVelocityToElementBoundary";
2069 static const char __pyx_k_elementBoundaryFluxJacobian_2sid[] =
"elementBoundaryFluxJacobian_2sided";
2070 static const char __pyx_k_elementBoundaryLocalElementBound[] =
"elementBoundaryLocalElementBoundaries";
2071 static const char __pyx_k_error_in_getJacobianValues_jacob[] =
"error in getJacobianValues...jacobian not sized properly";
2072 static const char __pyx_k_fluxDomainBoundaryIntegralFromVe[] =
"fluxDomainBoundaryIntegralFromVector";
2073 static const char __pyx_k_loadBoundaryFluxIntoGlobalElemen[] =
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity";
2074 static const char __pyx_k_metricTensorDeterminantSqrtArray[] =
"metricTensorDeterminantSqrtArray";
2075 static const char __pyx_k_nElementBoundaryQuadraturePoints[] =
"nElementBoundaryQuadraturePoints_elementBoundary";
2076 static const char __pyx_k_nExteriorElementBoundaries_globa[] =
"nExteriorElementBoundaries_global";
2077 static const char __pyx_k_nInteriorElementBoundaries_globa[] =
"nInteriorElementBoundaries_global";
2078 static const char __pyx_k_nQuadraturePoints_elementBoundar[] =
"nQuadraturePoints_elementBoundary";
2079 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
2080 static const char __pyx_k_parametricFiniteElementSpace_get[] =
"parametricFiniteElementSpace_getHessianValues";
2081 static const char __pyx_k_parametricMaps_getInverseValuesG[] =
"parametricMaps_getInverseValuesGlobalExteriorTrace";
2082 static const char __pyx_k_parametricMaps_getInverseValuesT[] =
"parametricMaps_getInverseValuesTrace";
2083 static const char __pyx_k_parametricMaps_getJacobianValues[] =
"parametricMaps_getJacobianValues";
2084 static const char __pyx_k_parametricMaps_getPermutationsGl[] =
"parametricMaps_getPermutationsGlobalExterior";
2085 static const char __pyx_k_parametricMaps_getValuesGlobalEx[] =
"parametricMaps_getValuesGlobalExteriorTrace";
2086 static const char __pyx_k_projectFromNodalInterpolationCon[] =
"projectFromNodalInterpolationConditions";
2087 static const char __pyx_k_scalarSmoothedHeavisideDomainInt[] =
"scalarSmoothedHeavisideDomainIntegral";
2088 static const char __pyx_k_setExteriorGlobalElementBoundary[] =
"setExteriorGlobalElementBoundaryVelocityValues";
2089 static const char __pyx_k_updateAdvectionJacobian_weak_low[] =
"updateAdvectionJacobian_weak_lowmem";
2090 static const char __pyx_k_updateDiffusionJacobian_MixedFor[] =
"updateDiffusionJacobian_MixedForm_weak";
2091 static const char __pyx_k_updateDiffusionJacobian_strong_s[] =
"updateDiffusionJacobian_strong_sd";
2092 static const char __pyx_k_updateDiffusionJacobian_weak_low[] =
"updateDiffusionJacobian_weak_lowmem";
2093 static const char __pyx_k_updateDiffusion_MixedForm_weak_s[] =
"updateDiffusion_MixedForm_weak_sd";
2094 static const char __pyx_k_updateExteriorElementBoundaryAdv[] =
"updateExteriorElementBoundaryAdvectiveVelocity";
2095 static const char __pyx_k_updateExteriorElementBoundaryDif[] =
"updateExteriorElementBoundaryDiffusiveVelocity";
2096 static const char __pyx_k_updateExteriorElementBoundaryFlu[] =
"updateExteriorElementBoundaryFlux";
2097 static const char __pyx_k_updateExteriorElementBoundarySho[] =
"updateExteriorElementBoundaryShockCapturingVelocity";
2098 static const char __pyx_k_updateExteriorElementBoundary_Mi[] =
"updateExteriorElementBoundary_MixedForm_weak";
2099 static const char __pyx_k_updateGlobalJacobianFromElementJ[] =
"updateGlobalJacobianFromElementJacobian_dense";
2100 static const char __pyx_k_updateGlobalJacobianFromExterior[] =
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense";
2101 static const char __pyx_k_updateGlobalJacobianFromInterior[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR";
2102 static const char __pyx_k_updateGlobalResidualFromElementR[] =
"updateGlobalResidualFromElementResidual";
2103 static const char __pyx_k_updateHamiltonianJacobian_strong[] =
"updateHamiltonianJacobian_strong";
2104 static const char __pyx_k_updateHamiltonianJacobian_weak_l[] =
"updateHamiltonianJacobian_weak_lowmem";
2105 static const char __pyx_k_updateInteriorElementBoundaryAdv[] =
"updateInteriorElementBoundaryAdvectiveVelocity";
2106 static const char __pyx_k_updateInteriorElementBoundaryDif[] =
"updateInteriorElementBoundaryDiffusiveVelocity";
2107 static const char __pyx_k_updateInteriorElementBoundaryFlu[] =
"updateInteriorElementBoundaryFlux";
2108 static const char __pyx_k_updateInteriorElementBoundarySho[] =
"updateInteriorElementBoundaryShockCapturingVelocity";
2109 static const char __pyx_k_updateInteriorElementBoundary_Mi[] =
"updateInteriorElementBoundary_MixedForm_weak";
2110 static const char __pyx_k_updateInteriorTwoSidedElementBou[] =
"updateInteriorTwoSidedElementBoundaryFlux";
2111 static const char __pyx_k_updateNumericalDiffusionJacobian[] =
"updateNumericalDiffusionJacobian";
2112 static const char __pyx_k_updatePotential_MixedForm_weakJa[] =
"updatePotential_MixedForm_weakJacobian";
2113 static const char __pyx_k_updateReactionJacobian_weak_lowm[] =
"updateReactionJacobian_weak_lowmem";
2114 static const char __pyx_k_update_f_movingDomain_constantMa[] =
"update_f_movingDomain_constantMass";
2115 static const char __pyx_k_updateDiffusionJacobian2_strong_2[] =
"updateDiffusionJacobian2_strong_sd";
2116 static const char __pyx_k_calculateDimensionlessNumbersADR_2[] =
"calculateDimensionlessNumbersADR_sd";
2117 static const char __pyx_k_calculateExteriorElementBoundary_2[] =
"calculateExteriorElementBoundaryStress2D";
2118 static const char __pyx_k_calculateExteriorElementBoundary_3[] =
"calculateExteriorElementBoundaryVelocities";
2119 static const char __pyx_k_calculateExteriorElementBoundary_4[] =
"calculateExteriorElementBoundaryAverageVelocity";
2120 static const char __pyx_k_calculateFiniteElementFunctionGr_2[] =
"calculateFiniteElementFunctionGradientTensorValues";
2121 static const char __pyx_k_calculateFiniteElementFunctionGr_3[] =
"calculateFiniteElementFunctionGradientValuesTrace";
2122 static const char __pyx_k_calculateFiniteElementFunctionGr_4[] =
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace";
2123 static const char __pyx_k_calculateFiniteElementFunctionVa_2[] =
"calculateFiniteElementFunctionValuesTrace";
2124 static const char __pyx_k_calculateFiniteElementFunctionVa_3[] =
"calculateFiniteElementFunctionValuesGlobalExteriorTrace";
2125 static const char __pyx_k_calculateGradShape_X_weightedSha_2[] =
"calculateGradShape_X_weightedShapeTrace";
2126 static const char __pyx_k_calculateGradShape_X_weightedSha_3[] =
"calculateGradShape_X_weightedShapeGlobalExteriorTrace";
2127 static const char __pyx_k_calculateInteriorElementBoundary_2[] =
"calculateInteriorElementBoundaryAverageVelocity";
2128 static const char __pyx_k_calculateVelocityQuadrature_Mixe_2[] =
"calculateVelocityQuadrature_MixedForm_Jacobian";
2129 static const char __pyx_k_calculateVelocityQuadrature_Mixe_3[] =
"calculateVelocityQuadrature_MixedForm2_sd";
2130 static const char __pyx_k_calculateVelocityQuadrature_Mixe_4[] =
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd";
2131 static const char __pyx_k_copyExteriorElementBoundaryValue_2[] =
"copyExteriorElementBoundaryValuesToElementBoundaryValues";
2132 static const char __pyx_k_copyExteriorElementBoundaryValue_3[] =
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues";
2133 static const char __pyx_k_copyExteriorElementBoundaryValue_4[] =
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues";
2134 static const char __pyx_k_elementBoundaryLocalElementBound_2[] =
"elementBoundaryLocalElementBoundariesArray";
2135 static const char __pyx_k_parametricFiniteElementSpace_get_2[] =
"parametricFiniteElementSpace_getValues";
2136 static const char __pyx_k_parametricFiniteElementSpace_get_3[] =
"parametricFiniteElementSpace_getValuesTrace";
2137 static const char __pyx_k_parametricFiniteElementSpace_get_4[] =
"parametricFiniteElementSpace_getGradientValues";
2138 static const char __pyx_k_parametricFiniteElementSpace_get_5[] =
"parametricFiniteElementSpace_getGradientValuesTrace";
2139 static const char __pyx_k_parametricFiniteElementSpace_get_6[] =
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace";
2140 static const char __pyx_k_parametricFiniteElementSpace_get_7[] =
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace";
2141 static const char __pyx_k_parametricMaps_getJacobianValues_2[] =
"parametricMaps_getJacobianValuesTrace";
2142 static const char __pyx_k_parametricMaps_getJacobianValues_3[] =
"parametricMaps_getJacobianValuesGlobalExteriorTrace";
2143 static const char __pyx_k_parametricMaps_getJacobianValues_4[] =
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain";
2144 static const char __pyx_k_updateDiffusionJacobian_MixedFor_2[] =
"updateDiffusionJacobian_MixedForm_weak_sd";
2145 static const char __pyx_k_updateExteriorElementBoundaryDif_2[] =
"updateExteriorElementBoundaryDiffusiveVelocity_sd";
2146 static const char __pyx_k_updateExteriorElementBoundaryDif_3[] =
"updateExteriorElementBoundaryDiffusionAdjoint";
2147 static const char __pyx_k_updateExteriorElementBoundaryDif_4[] =
"updateExteriorElementBoundaryDiffusionAdjoint_sd";
2148 static const char __pyx_k_updateExteriorElementBoundary_Mi_2[] =
"updateExteriorElementBoundary_MixedForm_weakJacobian";
2149 static const char __pyx_k_updateGlobalJacobianFromElementJ_2[] =
"updateGlobalJacobianFromElementJacobian_eb_dense";
2150 static const char __pyx_k_updateGlobalJacobianFromElementJ_3[] =
"updateGlobalJacobianFromElementJacobian_CSR";
2151 static const char __pyx_k_updateGlobalJacobianFromElementJ_4[] =
"updateGlobalJacobianFromElementJacobian_eb_CSR";
2152 static const char __pyx_k_updateGlobalJacobianFromExterior_2[] =
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense";
2153 static const char __pyx_k_updateGlobalJacobianFromExterior_3[] =
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR";
2154 static const char __pyx_k_updateGlobalJacobianFromExterior_4[] =
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR";
2155 static const char __pyx_k_updateGlobalJacobianFromExterior_5[] =
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense";
2156 static const char __pyx_k_updateGlobalJacobianFromExterior_6[] =
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd";
2157 static const char __pyx_k_updateGlobalJacobianFromExterior_7[] =
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd";
2158 static const char __pyx_k_updateGlobalJacobianFromInterior_2[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense";
2159 static const char __pyx_k_updateGlobalJacobianFromInterior_3[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense";
2160 static const char __pyx_k_updateGlobalJacobianFromInterior_4[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense";
2161 static const char __pyx_k_updateGlobalJacobianFromInterior_5[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR";
2162 static const char __pyx_k_updateGlobalJacobianFromInterior_6[] =
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR";
2163 static const char __pyx_k_updateGlobalJacobianFromInterior_7[] =
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense";
2164 static const char __pyx_k_updateGlobalJacobianFromInterior_8[] =
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd";
2165 static const char __pyx_k_updateGlobalJacobianFromInterior_9[] =
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd";
2166 static const char __pyx_k_updateInteriorElementBoundaryDif_2[] =
"updateInteriorElementBoundaryDiffusiveVelocity_sd";
2167 static const char __pyx_k_updateInteriorElementBoundaryDif_3[] =
"updateInteriorElementBoundaryDiffusionAdjoint";
2168 static const char __pyx_k_updateInteriorElementBoundaryDif_4[] =
"updateInteriorElementBoundaryDiffusionAdjoint_sd";
2169 static const char __pyx_k_updateInteriorElementBoundary_Mi_2[] =
"updateInteriorElementBoundary_MixedForm_weakJacobian";
2170 static const char __pyx_k_updateNumericalDiffusionJacobian_2[] =
"updateNumericalDiffusionJacobian_lowmem";
2171 static PyObject *__pyx_n_s_A_inv;
2172 static PyObject *__pyx_n_s_DV;
2173 static PyObject *__pyx_n_s_DV_eb;
2174 static PyObject *__pyx_n_s_F;
2175 static PyObject *__pyx_n_s_H;
2176 static PyObject *__pyx_n_s_Hess_phi;
2177 static PyObject *__pyx_n_s_Hess_v;
2178 static PyObject *__pyx_n_s_Hess_w;
2179 static PyObject *__pyx_n_s_Hess_w_dV;
2180 static PyObject *__pyx_n_s_Hessian_psi;
2181 static PyObject *__pyx_n_s_Hessian_u;
2182 static PyObject *__pyx_n_s_Hessian_v;
2183 static PyObject *__pyx_n_s_Hessian_vArray;
2184 static PyObject *__pyx_n_s_ImportError;
2185 static PyObject *__pyx_n_s_Lstar_w_dV;
2186 static PyObject *__pyx_n_s_V;
2187 static PyObject *__pyx_n_s_a;
2188 static PyObject *__pyx_n_s_abs_det_J;
2189 static PyObject *__pyx_n_s_abs_det_jac;
2190 static PyObject *__pyx_n_s_b;
2191 static PyObject *__pyx_n_s_boundaryJacobians;
2192 static PyObject *__pyx_n_s_boundaryNormals;
2193 static PyObject *__pyx_n_s_calculateCFLADR;
2194 static PyObject *__pyx_n_s_calculateCFLADR2speeds;
2195 static PyObject *__pyx_n_s_calculateConservationFluxPWL;
2196 static PyObject *__pyx_n_s_calculateConservationJacobianPWL;
2197 static PyObject *__pyx_n_s_calculateConservationResidual;
2198 static PyObject *__pyx_n_s_calculateConservationResidualDG;
2199 static PyObject *__pyx_n_s_calculateConservationResidualGlo;
2200 static PyObject *__pyx_n_s_calculateConservationResidualPWL;
2201 static PyObject *__pyx_n_s_calculateDimensionlessNumbersADR;
2202 static PyObject *__pyx_n_s_calculateDimensionlessNumbersADR_2;
2203 static PyObject *__pyx_n_s_calculateElementBoundaryIntegrat;
2204 static PyObject *__pyx_n_s_calculateExteriorElementBoundary;
2205 static PyObject *__pyx_n_s_calculateExteriorElementBoundary_2;
2206 static PyObject *__pyx_n_s_calculateExteriorElementBoundary_3;
2207 static PyObject *__pyx_n_s_calculateExteriorElementBoundary_4;
2208 static PyObject *__pyx_n_s_calculateExteriorNumericalTrace;
2209 static PyObject *__pyx_n_s_calculateFiniteElementFunctionGr;
2210 static PyObject *__pyx_n_s_calculateFiniteElementFunctionGr_2;
2211 static PyObject *__pyx_n_s_calculateFiniteElementFunctionGr_3;
2212 static PyObject *__pyx_n_s_calculateFiniteElementFunctionGr_4;
2213 static PyObject *__pyx_n_s_calculateFiniteElementFunctionHe;
2214 static PyObject *__pyx_n_s_calculateFiniteElementFunctionVa;
2215 static PyObject *__pyx_n_s_calculateFiniteElementFunctionVa_2;
2216 static PyObject *__pyx_n_s_calculateFiniteElementFunctionVa_3;
2217 static PyObject *__pyx_n_s_calculateFlowVelocity;
2218 static PyObject *__pyx_n_s_calculateGlobalExteriorElementBo;
2219 static PyObject *__pyx_n_s_calculateGradShape_X_weightedGra;
2220 static PyObject *__pyx_n_s_calculateGradShape_X_weightedSha;
2221 static PyObject *__pyx_n_s_calculateGradShape_X_weightedSha_2;
2222 static PyObject *__pyx_n_s_calculateGradShape_X_weightedSha_3;
2223 static PyObject *__pyx_n_s_calculateIntegrationWeights;
2224 static PyObject *__pyx_n_s_calculateInteriorElementBoundary;
2225 static PyObject *__pyx_n_s_calculateInteriorElementBoundary_2;
2226 static PyObject *__pyx_n_s_calculateInteriorNumericalTrace;
2227 static PyObject *__pyx_n_s_calculateScalarScalarProduct;
2228 static PyObject *__pyx_n_s_calculateShape_X_weightedGradSha;
2229 static PyObject *__pyx_n_s_calculateShape_X_weightedShape;
2230 static PyObject *__pyx_n_s_calculateShape_X_weightedShapeGl;
2231 static PyObject *__pyx_n_s_calculateShape_X_weightedShapeTr;
2232 static PyObject *__pyx_n_s_calculateTensorScalarProduct;
2233 static PyObject *__pyx_n_s_calculateVectorScalarProduct;
2234 static PyObject *__pyx_n_s_calculateVelocityProjectionMatri;
2235 static PyObject *__pyx_n_s_calculateVelocityQuadrature_Mixe;
2236 static PyObject *__pyx_n_s_calculateVelocityQuadrature_Mixe_2;
2237 static PyObject *__pyx_n_s_calculateVelocityQuadrature_Mixe_3;
2238 static PyObject *__pyx_n_s_calculateVelocityQuadrature_Mixe_4;
2239 static PyObject *__pyx_n_s_calculateWeightedShape;
2240 static PyObject *__pyx_n_s_calculateWeightedShapeGlobalExte;
2241 static PyObject *__pyx_n_s_calculateWeightedShapeGradients;
2242 static PyObject *__pyx_n_s_calculateWeightedShapeHessians;
2243 static PyObject *__pyx_n_s_calculateWeightedShapeTrace;
2244 static PyObject *__pyx_n_s_cfemIntegrals;
2245 static PyObject *__pyx_n_s_cfl;
2246 static PyObject *__pyx_n_s_checkElementBoundaryAndExteriorE;
2247 static PyObject *__pyx_n_s_checkGlobalElementBoundaryAndExt;
2248 static PyObject *__pyx_n_s_cline_in_traceback;
2249 static PyObject *__pyx_n_s_colind;
2250 static PyObject *__pyx_n_s_colind_dummy;
2251 static PyObject *__pyx_n_s_computeC0P1InterpolantDGP0;
2252 static PyObject *__pyx_n_s_computeC0P1InterpolantDGP12;
2253 static PyObject *__pyx_n_s_computeC0P1InterpolantNCP1;
2254 static PyObject *__pyx_n_s_computeDiffusiveTimeStepLimit;
2255 static PyObject *__pyx_n_s_conservationResidual;
2256 static PyObject *__pyx_n_s_copyBetweenFreeUnknownsAndGlobal;
2257 static PyObject *__pyx_n_s_copyExteriorElementBoundaryValue;
2258 static PyObject *__pyx_n_s_copyExteriorElementBoundaryValue_2;
2259 static PyObject *__pyx_n_s_copyExteriorElementBoundaryValue_3;
2260 static PyObject *__pyx_n_s_copyExteriorElementBoundaryValue_4;
2261 static PyObject *__pyx_n_s_copyGlobalElementBoundaryVelocit;
2262 static PyObject *__pyx_n_s_copyLeftElementBoundaryInfo;
2263 static PyObject *__pyx_n_s_csrColumnOffsets_eb_eNebN_ru;
2264 static PyObject *__pyx_n_s_csrColumnOffsets_eb_ru;
2265 static PyObject *__pyx_n_s_csrColumnOffsets_ru;
2266 static PyObject *__pyx_n_s_csrRowIndeces_ru;
2267 static PyObject *__pyx_n_s_dH;
2268 static PyObject *__pyx_n_s_dS;
2269 static PyObject *__pyx_n_s_dSR;
2270 static PyObject *__pyx_n_s_dS_u;
2271 static PyObject *__pyx_n_s_dV;
2272 static PyObject *__pyx_n_s_dVR;
2273 static PyObject *__pyx_n_s_dX;
2274 static PyObject *__pyx_n_s_da;
2275 static PyObject *__pyx_n_s_db;
2276 static PyObject *__pyx_n_s_db_eb;
2277 static PyObject *__pyx_n_s_derror;
2278 static PyObject *__pyx_n_s_df;
2279 static PyObject *__pyx_n_s_df1;
2280 static PyObject *__pyx_n_s_df2;
2281 static PyObject *__pyx_n_s_dim_dof;
2282 static PyObject *__pyx_n_s_dm;
2283 static PyObject *__pyx_n_s_dmt;
2284 static PyObject *__pyx_n_s_dof;
2285 static PyObject *__pyx_n_s_dofs;
2286 static PyObject *__pyx_n_s_dphi;
2287 static PyObject *__pyx_n_s_dphi_trace_left;
2288 static PyObject *__pyx_n_s_dphi_trace_right;
2289 static PyObject *__pyx_n_s_dr;
2290 static PyObject *__pyx_n_s_dsigma_xx;
2291 static PyObject *__pyx_n_s_dsigma_xy;
2292 static PyObject *__pyx_n_s_dsigma_xz;
2293 static PyObject *__pyx_n_s_dsigma_yx;
2294 static PyObject *__pyx_n_s_dsigma_yy;
2295 static PyObject *__pyx_n_s_dsigma_yz;
2296 static PyObject *__pyx_n_s_dsigma_zx;
2297 static PyObject *__pyx_n_s_dsigma_zy;
2298 static PyObject *__pyx_n_s_dsigma_zz;
2299 static PyObject *__pyx_n_s_dstrong_residual;
2300 static PyObject *__pyx_n_s_ebq_global_val;
2301 static PyObject *__pyx_n_s_ebq_val;
2302 static PyObject *__pyx_n_s_ebqe_val;
2303 static PyObject *__pyx_n_s_elementBoundaryElements;
2304 static PyObject *__pyx_n_s_elementBoundaryElementsArray;
2305 static PyObject *__pyx_n_s_elementBoundaryFluxJacobian;
2306 static PyObject *__pyx_n_s_elementBoundaryFluxJacobian_2sid;
2307 static PyObject *__pyx_n_s_elementBoundaryFluxJacobian_eb;
2308 static PyObject *__pyx_n_s_elementBoundaryLocalElementBound;
2309 static PyObject *__pyx_n_s_elementBoundaryLocalElementBound_2;
2310 static PyObject *__pyx_n_s_elementBoundaryMaterialTypes;
2311 static PyObject *__pyx_n_s_elementDiameter;
2312 static PyObject *__pyx_n_s_elementJacobian;
2313 static PyObject *__pyx_n_s_elementJacobian_eb;
2314 static PyObject *__pyx_n_s_elementNeighbors;
2315 static PyObject *__pyx_n_s_elementNodes;
2316 static PyObject *__pyx_n_s_elementNodesArray;
2317 static PyObject *__pyx_n_s_elementResidual;
2318 static PyObject *__pyx_n_s_elementSpatialResidual;
2319 static PyObject *__pyx_n_s_end;
2320 static PyObject *__pyx_n_s_epsFact;
2321 static PyObject *__pyx_n_s_error;
2322 static PyObject *__pyx_kp_s_error_copyFromFreeToGlobal;
2323 static PyObject *__pyx_kp_s_error_in_getJacobianValuesTrace;
2324 static PyObject *__pyx_kp_s_error_in_getJacobianValues_jacob;
2325 static PyObject *__pyx_n_s_estimate_mt;
2326 static PyObject *__pyx_n_s_estimate_mt_lowmem;
2327 static PyObject *__pyx_n_s_exteriorElementBoundaries;
2328 static PyObject *__pyx_n_s_exteriorElementBoundariesArray;
2329 static PyObject *__pyx_n_s_f;
2330 static PyObject *__pyx_n_s_file;
2331 static PyObject *__pyx_n_s_firstBadIndex;
2332 static PyObject *__pyx_n_s_flag;
2333 static PyObject *__pyx_n_s_flux;
2334 static PyObject *__pyx_n_s_fluxDomainBoundaryIntegral;
2335 static PyObject *__pyx_n_s_fluxDomainBoundaryIntegralFromVe;
2336 static PyObject *__pyx_n_s_fluxElementBoundaries;
2337 static PyObject *__pyx_n_s_freeDOFids;
2338 static PyObject *__pyx_n_s_freeGlobal_r;
2339 static PyObject *__pyx_n_s_freeGlobal_u;
2340 static PyObject *__pyx_n_s_freeLocal_r;
2341 static PyObject *__pyx_n_s_freeLocal_u;
2342 static PyObject *__pyx_n_s_free_u;
2343 static PyObject *__pyx_n_s_functional_map_element;
2344 static PyObject *__pyx_n_s_getCSRrepresentation;
2345 static PyObject *__pyx_n_s_getPermutationsGlobal;
2346 static PyObject *__pyx_n_s_globalDOFids;
2347 static PyObject *__pyx_n_s_globalJacobian;
2348 static PyObject *__pyx_n_s_globalJacobian_array;
2349 static PyObject *__pyx_n_s_globalResidual;
2350 static PyObject *__pyx_n_s_grad_phi;
2351 static PyObject *__pyx_n_s_grad_phi_X_grad_w_dV;
2352 static PyObject *__pyx_n_s_grad_psi;
2353 static PyObject *__pyx_n_s_grad_u;
2354 static PyObject *__pyx_n_s_grad_u_X_grad_w_dV;
2355 static PyObject *__pyx_n_s_grad_v;
2356 static PyObject *__pyx_n_s_grad_vArray;
2357 static PyObject *__pyx_n_s_grad_v_X_grad_w_dV;
2358 static PyObject *__pyx_n_s_grad_v_X_w_dS;
2359 static PyObject *__pyx_n_s_grad_v_X_w_dV;
2360 static PyObject *__pyx_n_s_grad_w;
2361 static PyObject *__pyx_n_s_grad_w_dV;
2362 static PyObject *__pyx_n_s_i;
2363 static PyObject *__pyx_n_s_import;
2364 static PyObject *__pyx_n_s_interiorElementBoundaries;
2365 static PyObject *__pyx_n_s_interiorElementBoundariesArray;
2366 static PyObject *__pyx_n_s_internalNodes;
2367 static PyObject *__pyx_n_s_interpolationValues;
2368 static PyObject *__pyx_n_s_inverseJacobian;
2369 static PyObject *__pyx_n_s_inverseJacobianArray;
2370 static PyObject *__pyx_n_s_isDOFBoundary;
2371 static PyObject *__pyx_n_s_jac;
2372 static PyObject *__pyx_n_s_jacIndex;
2373 static PyObject *__pyx_n_s_jac_array;
2374 static PyObject *__pyx_n_s_jacobian;
2375 static PyObject *__pyx_n_s_jacobianArray;
2376 static PyObject *__pyx_n_s_jacobianDeterminantArray;
2377 static PyObject *__pyx_n_s_jacobianInverseArray;
2378 static PyObject *__pyx_n_s_jacobian_eb;
2379 static PyObject *__pyx_n_s_jacobian_weak_residual;
2380 static PyObject *__pyx_n_s_jacobian_weak_residual_eb;
2381 static PyObject *__pyx_n_s_jacobian_weak_residual_xx;
2382 static PyObject *__pyx_n_s_jacobian_weak_residual_xy;
2383 static PyObject *__pyx_n_s_jacobian_weak_residual_xz;
2384 static PyObject *__pyx_n_s_jacobian_weak_residual_yx;
2385 static PyObject *__pyx_n_s_jacobian_weak_residual_yy;
2386 static PyObject *__pyx_n_s_jacobian_weak_residual_yz;
2387 static PyObject *__pyx_n_s_jacobian_weak_residual_zx;
2388 static PyObject *__pyx_n_s_jacobian_weak_residual_zy;
2389 static PyObject *__pyx_n_s_jacobian_weak_residual_zz;
2390 static PyObject *__pyx_n_s_l2g;
2391 static PyObject *__pyx_n_s_loadBoundaryFluxIntoGlobalElemen;
2392 static PyObject *__pyx_n_s_m;
2393 static PyObject *__pyx_n_s_mAverage;
2394 static PyObject *__pyx_n_s_mJump;
2395 static PyObject *__pyx_n_s_main;
2396 static PyObject *__pyx_n_s_metricTensorArray;
2397 static PyObject *__pyx_n_s_metricTensorDeterminantSqrtArray;
2398 static PyObject *__pyx_n_s_mom_flux_vec_u;
2399 static PyObject *__pyx_n_s_mom_flux_vec_v;
2400 static PyObject *__pyx_n_s_mom_flux_vec_w;
2401 static PyObject *__pyx_n_s_mt;
2402 static PyObject *__pyx_n_s_n;
2403 static PyObject *__pyx_n_s_nComponents;
2404 static PyObject *__pyx_n_s_nDOF2set;
2405 static PyObject *__pyx_n_s_nDOF_element;
2406 static PyObject *__pyx_n_s_nDOF_test_element;
2407 static PyObject *__pyx_n_s_nDOF_trial_element;
2408 static PyObject *__pyx_n_s_nElementBoundaries_element;
2409 static PyObject *__pyx_n_s_nElementBoundaries_global;
2410 static PyObject *__pyx_n_s_nElementBoundaries_owned;
2411 static PyObject *__pyx_n_s_nElementBoundaryQuadraturePoints;
2412 static PyObject *__pyx_n_s_nElements_global;
2413 static PyObject *__pyx_n_s_nElements_node;
2414 static PyObject *__pyx_n_s_nExteriorElementBoundaries;
2415 static PyObject *__pyx_n_s_nExteriorElementBoundaries_globa;
2416 static PyObject *__pyx_n_s_nFreeDOF_element_r;
2417 static PyObject *__pyx_n_s_nFreeDOF_element_u;
2418 static PyObject *__pyx_n_s_nFreeVDOF_global;
2419 static PyObject *__pyx_n_s_nInteriorElementBoundaries_globa;
2420 static PyObject *__pyx_n_s_nNodes_element;
2421 static PyObject *__pyx_n_s_nNodes_global;
2422 static PyObject *__pyx_n_s_nNodes_internal;
2423 static PyObject *__pyx_n_s_nNonzeros;
2424 static PyObject *__pyx_n_s_nQuadraturePoints_element;
2425 static PyObject *__pyx_n_s_nQuadraturePoints_elementBoundar;
2426 static PyObject *__pyx_n_s_nSpace;
2427 static PyObject *__pyx_n_s_nSpace_global;
2428 static PyObject *__pyx_n_s_nValueArray;
2429 static PyObject *__pyx_n_s_nValuesPerQuadraturePoint;
2430 static PyObject *__pyx_n_s_name;
2431 static PyObject *__pyx_n_s_nd;
2432 static PyObject *__pyx_n_s_ng;
2433 static PyObject *__pyx_n_s_nodalAverage;
2434 static PyObject *__pyx_n_s_nodeArray;
2435 static PyObject *__pyx_n_s_nodeElementOffsets;
2436 static PyObject *__pyx_n_s_nodeElementsArray;
2437 static PyObject *__pyx_n_s_nodeStarElementNeighbors;
2438 static PyObject *__pyx_n_s_nodeStarElements;
2439 static PyObject *__pyx_n_s_nodeStarJacobianOffsets;
2440 static PyObject *__pyx_n_s_nodeStarOffsets;
2441 static PyObject *__pyx_n_s_normal;
2442 static PyObject *__pyx_kp_s_not_recognized_quitting;
2443 static PyObject *__pyx_n_s_np;
2444 static PyObject *__pyx_n_s_numDiff;
2445 static PyObject *__pyx_n_s_numpy;
2446 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2447 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2448 static PyObject *__pyx_n_s_offset;
2449 static PyObject *__pyx_n_s_offset_r;
2450 static PyObject *__pyx_n_s_offset_u;
2451 static PyObject *__pyx_n_s_output;
2452 static PyObject *__pyx_n_s_p;
2453 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get;
2454 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_2;
2455 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_3;
2456 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_4;
2457 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_5;
2458 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_6;
2459 static PyObject *__pyx_n_s_parametricFiniteElementSpace_get_7;
2460 static PyObject *__pyx_n_s_parametricMaps_getInverseValues;
2461 static PyObject *__pyx_n_s_parametricMaps_getInverseValuesG;
2462 static PyObject *__pyx_n_s_parametricMaps_getInverseValuesT;
2463 static PyObject *__pyx_n_s_parametricMaps_getJacobianValues;
2464 static PyObject *__pyx_n_s_parametricMaps_getJacobianValues_2;
2465 static PyObject *__pyx_n_s_parametricMaps_getJacobianValues_3;
2466 static PyObject *__pyx_n_s_parametricMaps_getJacobianValues_4;
2467 static PyObject *__pyx_n_s_parametricMaps_getPermutations;
2468 static PyObject *__pyx_n_s_parametricMaps_getPermutationsGl;
2469 static PyObject *__pyx_n_s_parametricMaps_getValues;
2470 static PyObject *__pyx_n_s_parametricMaps_getValuesGlobalEx;
2471 static PyObject *__pyx_n_s_parametricMaps_getValuesTrace;
2472 static PyObject *__pyx_n_s_pe;
2473 static PyObject *__pyx_n_s_permutations;
2474 static PyObject *__pyx_n_s_phi;
2475 static PyObject *__pyx_n_s_phi_bc;
2476 static PyObject *__pyx_n_s_phi_trace;
2477 static PyObject *__pyx_n_s_print;
2478 static PyObject *__pyx_n_s_projectFromNodalInterpolationCon;
2479 static PyObject *__pyx_kp_s_proteus_cfemIntegrals_pyx;
2480 static PyObject *__pyx_n_s_psi;
2481 static PyObject *__pyx_n_s_qDV;
2482 static PyObject *__pyx_n_s_qDV_eb;
2483 static PyObject *__pyx_n_s_qV;
2484 static PyObject *__pyx_n_s_qa;
2485 static PyObject *__pyx_n_s_qv;
2486 static PyObject *__pyx_n_s_qw_dV;
2487 static PyObject *__pyx_n_s_r;
2488 static PyObject *__pyx_n_s_range;
2489 static PyObject *__pyx_n_s_referenceWeights;
2490 static PyObject *__pyx_n_s_residual;
2491 static PyObject *__pyx_n_s_rho_split;
2492 static PyObject *__pyx_n_s_rowptr;
2493 static PyObject *__pyx_n_s_rowptr_dummy;
2494 static PyObject *__pyx_n_s_s;
2495 static PyObject *__pyx_n_s_s1;
2496 static PyObject *__pyx_n_s_s2;
2497 static PyObject *__pyx_n_s_sResult;
2498 static PyObject *__pyx_n_s_scalarDomainIntegral;
2499 static PyObject *__pyx_n_s_scalarHeavisideDomainIntegral;
2500 static PyObject *__pyx_n_s_scalarSmoothedHeavisideDomainInt;
2501 static PyObject *__pyx_n_s_setExteriorGlobalElementBoundary;
2502 static PyObject *__pyx_n_s_sigma;
2503 static PyObject *__pyx_n_s_sqrt_det_g;
2504 static PyObject *__pyx_n_s_starJ;
2505 static PyObject *__pyx_n_s_starJacobian;
2506 static PyObject *__pyx_n_s_starR;
2507 static PyObject *__pyx_n_s_starU;
2508 static PyObject *__pyx_n_s_stride;
2509 static PyObject *__pyx_n_s_stride_r;
2510 static PyObject *__pyx_n_s_stride_u;
2511 static PyObject *__pyx_n_s_strong_residual;
2512 static PyObject *__pyx_n_s_t;
2513 static PyObject *__pyx_n_s_tResult;
2514 static PyObject *__pyx_n_s_test;
2515 static PyObject *__pyx_n_s_tolerance;
2516 static PyObject *__pyx_n_s_u;
2517 static PyObject *__pyx_n_s_ub;
2518 static PyObject *__pyx_n_s_unitNormalArray;
2519 static PyObject *__pyx_n_s_updateAddJacobian_CSR;
2520 static PyObject *__pyx_n_s_updateAdvectionJacobian_strong;
2521 static PyObject *__pyx_n_s_updateAdvectionJacobian_weak;
2522 static PyObject *__pyx_n_s_updateAdvectionJacobian_weak_low;
2523 static PyObject *__pyx_n_s_updateAdvection_adjoint;
2524 static PyObject *__pyx_n_s_updateAdvection_strong;
2525 static PyObject *__pyx_n_s_updateAdvection_weak;
2526 static PyObject *__pyx_n_s_updateCoef;
2527 static PyObject *__pyx_n_s_updateDiffusion2_adjoint;
2528 static PyObject *__pyx_n_s_updateDiffusion2_adjoint_sd;
2529 static PyObject *__pyx_n_s_updateDiffusion2_strong;
2530 static PyObject *__pyx_n_s_updateDiffusion2_strong_sd;
2531 static PyObject *__pyx_n_s_updateDiffusionJacobian2_strong;
2532 static PyObject *__pyx_n_s_updateDiffusionJacobian2_strong_2;
2533 static PyObject *__pyx_n_s_updateDiffusionJacobian_MixedFor;
2534 static PyObject *__pyx_n_s_updateDiffusionJacobian_MixedFor_2;
2535 static PyObject *__pyx_n_s_updateDiffusionJacobian_strong;
2536 static PyObject *__pyx_n_s_updateDiffusionJacobian_strong_s;
2537 static PyObject *__pyx_n_s_updateDiffusionJacobian_weak;
2538 static PyObject *__pyx_n_s_updateDiffusionJacobian_weak_low;
2539 static PyObject *__pyx_n_s_updateDiffusionJacobian_weak_sd;
2540 static PyObject *__pyx_n_s_updateDiffusion_MixedForm_weak;
2541 static PyObject *__pyx_n_s_updateDiffusion_MixedForm_weak_s;
2542 static PyObject *__pyx_n_s_updateDiffusion_adjoint;
2543 static PyObject *__pyx_n_s_updateDiffusion_adjoint_sd;
2544 static PyObject *__pyx_n_s_updateDiffusion_strong;
2545 static PyObject *__pyx_n_s_updateDiffusion_strong_sd;
2546 static PyObject *__pyx_n_s_updateDiffusion_weak;
2547 static PyObject *__pyx_n_s_updateDiffusion_weak_lowmem;
2548 static PyObject *__pyx_n_s_updateDiffusion_weak_sd;
2549 static PyObject *__pyx_n_s_updateExteriorElementBoundaryAdv;
2550 static PyObject *__pyx_n_s_updateExteriorElementBoundaryDif;
2551 static PyObject *__pyx_n_s_updateExteriorElementBoundaryDif_2;
2552 static PyObject *__pyx_n_s_updateExteriorElementBoundaryDif_3;
2553 static PyObject *__pyx_n_s_updateExteriorElementBoundaryDif_4;
2554 static PyObject *__pyx_n_s_updateExteriorElementBoundaryFlu;
2555 static PyObject *__pyx_n_s_updateExteriorElementBoundarySho;
2556 static PyObject *__pyx_n_s_updateExteriorElementBoundary_Mi;
2557 static PyObject *__pyx_n_s_updateExteriorElementBoundary_Mi_2;
2558 static PyObject *__pyx_n_s_updateFluxValues;
2559 static PyObject *__pyx_n_s_updateGlobalJacobianFromElementJ;
2560 static PyObject *__pyx_n_s_updateGlobalJacobianFromElementJ_2;
2561 static PyObject *__pyx_n_s_updateGlobalJacobianFromElementJ_3;
2562 static PyObject *__pyx_n_s_updateGlobalJacobianFromElementJ_4;
2563 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior;
2564 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_2;
2565 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_3;
2566 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_4;
2567 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_5;
2568 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_6;
2569 static PyObject *__pyx_n_s_updateGlobalJacobianFromExterior_7;
2570 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior;
2571 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_2;
2572 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_3;
2573 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_4;
2574 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_5;
2575 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_6;
2576 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_7;
2577 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_8;
2578 static PyObject *__pyx_n_s_updateGlobalJacobianFromInterior_9;
2579 static PyObject *__pyx_n_s_updateGlobalResidualFromElementR;
2580 static PyObject *__pyx_n_s_updateHamiltonianJacobian_strong;
2581 static PyObject *__pyx_n_s_updateHamiltonianJacobian_weak;
2582 static PyObject *__pyx_n_s_updateHamiltonianJacobian_weak_l;
2583 static PyObject *__pyx_n_s_updateHamiltonian_adjoint;
2584 static PyObject *__pyx_n_s_updateHamiltonian_strong;
2585 static PyObject *__pyx_n_s_updateHamiltonian_weak;
2586 static PyObject *__pyx_n_s_updateInteriorElementBoundaryAdv;
2587 static PyObject *__pyx_n_s_updateInteriorElementBoundaryDif;
2588 static PyObject *__pyx_n_s_updateInteriorElementBoundaryDif_2;
2589 static PyObject *__pyx_n_s_updateInteriorElementBoundaryDif_3;
2590 static PyObject *__pyx_n_s_updateInteriorElementBoundaryDif_4;
2591 static PyObject *__pyx_n_s_updateInteriorElementBoundaryFlu;
2592 static PyObject *__pyx_n_s_updateInteriorElementBoundarySho;
2593 static PyObject *__pyx_n_s_updateInteriorElementBoundary_Mi;
2594 static PyObject *__pyx_n_s_updateInteriorElementBoundary_Mi_2;
2595 static PyObject *__pyx_n_s_updateInteriorTwoSidedElementBou;
2596 static PyObject *__pyx_n_s_updateMassJacobian_strong;
2597 static PyObject *__pyx_n_s_updateMassJacobian_weak;
2598 static PyObject *__pyx_n_s_updateMassJacobian_weak_lowmem;
2599 static PyObject *__pyx_n_s_updateMass_adjoint;
2600 static PyObject *__pyx_n_s_updateMass_strong;
2601 static PyObject *__pyx_n_s_updateMass_weak;
2602 static PyObject *__pyx_n_s_updateNumericalDiffusion;
2603 static PyObject *__pyx_n_s_updateNumericalDiffusionJacobian;
2604 static PyObject *__pyx_n_s_updateNumericalDiffusionJacobian_2;
2605 static PyObject *__pyx_n_s_updateNumericalDiffusion_lowmem;
2606 static PyObject *__pyx_n_s_updatePotential_MixedForm_weak;
2607 static PyObject *__pyx_n_s_updatePotential_MixedForm_weakJa;
2608 static PyObject *__pyx_n_s_updateReactionJacobian_strong;
2609 static PyObject *__pyx_n_s_updateReactionJacobian_weak;
2610 static PyObject *__pyx_n_s_updateReactionJacobian_weak_lowm;
2611 static PyObject *__pyx_n_s_updateReaction_adjoint;
2612 static PyObject *__pyx_n_s_updateReaction_strong;
2613 static PyObject *__pyx_n_s_updateReaction_weak;
2614 static PyObject *__pyx_n_s_updateStressJacobian_weak;
2615 static PyObject *__pyx_n_s_updateStress_weak;
2616 static PyObject *__pyx_n_s_updateSubgridError;
2617 static PyObject *__pyx_n_s_updateSubgridErrorJacobian;
2618 static PyObject *__pyx_n_s_update_f_movingDomain;
2619 static PyObject *__pyx_n_s_update_f_movingDomain_constantMa;
2620 static PyObject *__pyx_n_s_v;
2621 static PyObject *__pyx_n_s_vArray;
2622 static PyObject *__pyx_n_s_vAverage;
2623 static PyObject *__pyx_n_s_vConservative;
2624 static PyObject *__pyx_n_s_vConservative_element;
2625 static PyObject *__pyx_n_s_vJump;
2626 static PyObject *__pyx_n_s_vResult;
2627 static PyObject *__pyx_n_s_vXw_dV;
2628 static PyObject *__pyx_n_s_v_X_grad_w_dV;
2629 static PyObject *__pyx_n_s_v_X_w_dS;
2630 static PyObject *__pyx_n_s_v_X_w_dV;
2631 static PyObject *__pyx_n_s_v_out;
2632 static PyObject *__pyx_n_s_val;
2633 static PyObject *__pyx_n_s_velocity;
2634 static PyObject *__pyx_n_s_velocityBoundary_element;
2635 static PyObject *__pyx_n_s_velocityBoundary_global;
2636 static PyObject *__pyx_n_s_vn_in;
2637 static PyObject *__pyx_n_s_w;
2638 static PyObject *__pyx_n_s_w_dS;
2639 static PyObject *__pyx_n_s_w_dV;
2640 static PyObject *__pyx_n_s_weak_residual;
2641 static PyObject *__pyx_n_s_weak_residual_x;
2642 static PyObject *__pyx_n_s_weak_residual_y;
2643 static PyObject *__pyx_n_s_weak_residual_z;
2644 static PyObject *__pyx_n_s_weights;
2645 static PyObject *__pyx_n_s_x;
2646 static PyObject *__pyx_n_s_xArray;
2647 static PyObject *__pyx_n_s_xArrayNew;
2648 static PyObject *__pyx_n_s_xg;
2649 static PyObject *__pyx_n_s_xiArray;
2650 static PyObject *__pyx_n_s_xt;
2651 static PyObject *__pyx_n_s_xtArray;
2652 static PyObject *__pyx_n_s_zeroJacobian_CSR;
2653 static PyObject *__pyx_pf_13cfemIntegrals_parametricFiniteElementSpace_getHessianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_Hessian_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_Hessian_vArray);
2654 static PyObject *__pyx_pf_13cfemIntegrals_2updateDiffusion2_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_strong_residual);
2655 static PyObject *__pyx_pf_13cfemIntegrals_4updateDiffusion2_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_strong_residual);
2656 static PyObject *__pyx_pf_13cfemIntegrals_6updateDiffusionJacobian2_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_Hess_v, PyArrayObject *__pyx_v_dstrong_residual);
2657 static PyObject *__pyx_pf_13cfemIntegrals_8updateDiffusionJacobian2_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_Hess_v, PyArrayObject *__pyx_v_dstrong_residual);
2658 static PyObject *__pyx_pf_13cfemIntegrals_10updateDiffusion2_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2659 static PyObject *__pyx_pf_13cfemIntegrals_12updateDiffusion2_adjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2660 static PyObject *__pyx_pf_13cfemIntegrals_14calculateWeightedShapeHessians(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_Hess_w, PyArrayObject *__pyx_v_Hess_w_dV);
2661 static PyObject *__pyx_pf_13cfemIntegrals_16calculateFiniteElementFunctionHessianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_Hessian_v, PyArrayObject *__pyx_v_Hessian_u);
2662 static PyObject *__pyx_pf_13cfemIntegrals_18updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac);
2663 static PyObject *__pyx_pf_13cfemIntegrals_20updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac);
2664 static PyObject *__pyx_pf_13cfemIntegrals_22updateInteriorTwoSidedElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual);
2665 static PyObject *__pyx_pf_13cfemIntegrals_24calculateCFLADR2speeds(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_df1, PyArrayObject *__pyx_v_df2, PyArrayObject *__pyx_v_cfl);
2666 static PyObject *__pyx_pf_13cfemIntegrals_26checkElementBoundaryAndExteriorElementBoundaryArraysSame(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_tolerance, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_ebq_val, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_firstBadIndex);
2667 static PyObject *__pyx_pf_13cfemIntegrals_28checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_tolerance, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_ebq_global_val, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_firstBadIndex);
2668 static PyObject *__pyx_pf_13cfemIntegrals_30calculateExteriorElementBoundaryStress3D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryMaterialTypes, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_mom_flux_vec_u, PyArrayObject *__pyx_v_mom_flux_vec_v, PyArrayObject *__pyx_v_mom_flux_vec_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_F);
2669 static PyObject *__pyx_pf_13cfemIntegrals_32calculateExteriorElementBoundaryStress2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryMaterialTypes, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_mom_flux_vec_u, PyArrayObject *__pyx_v_mom_flux_vec_v, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_F);
2670 static PyObject *__pyx_pf_13cfemIntegrals_34copyLeftElementBoundaryInfo(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_interiorElementBoundariesArray, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_xg, PyArrayObject *__pyx_v_ng);
2671 static PyObject *__pyx_pf_13cfemIntegrals_36parametricFiniteElementSpace_getValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_vArray);
2672 static PyObject *__pyx_pf_13cfemIntegrals_38parametricFiniteElementSpace_getValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_vArray);
2673 static PyObject *__pyx_pf_13cfemIntegrals_40parametricFiniteElementSpace_getGradientValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray);
2674 static PyObject *__pyx_pf_13cfemIntegrals_42parametricFiniteElementSpace_getGradientValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray);
2675 static PyObject *__pyx_pf_13cfemIntegrals_44parametricMaps_getPermutations(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xiArray, PyArrayObject *__pyx_v_permutations);
2676 static PyObject *__pyx_pf_13cfemIntegrals_46parametricMaps_getPermutationsGlobalExterior(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_xiArray, PyArrayObject *__pyx_v_permutations);
2677 static PyObject *__pyx_pf_13cfemIntegrals_48getPermutationsGlobal(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xArrayNew, PyArrayObject *__pyx_v_permutations);
2678 static PyObject *__pyx_pf_13cfemIntegrals_50parametricMaps_getValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray);
2679 static PyObject *__pyx_pf_13cfemIntegrals_52parametricMaps_getValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray);
2680 static PyObject *__pyx_pf_13cfemIntegrals_54parametricMaps_getInverseValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray);
2681 static PyObject *__pyx_pf_13cfemIntegrals_56parametricMaps_getInverseValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray);
2682 static PyObject *__pyx_pf_13cfemIntegrals_58parametricMaps_getJacobianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianArray, PyArrayObject *__pyx_v_jacobianDeterminantArray, PyArrayObject *__pyx_v_jacobianInverseArray);
2683 static PyObject *__pyx_pf_13cfemIntegrals_60parametricMaps_getJacobianValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray);
2684 static PyObject *__pyx_pf_13cfemIntegrals_62updateMass_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mt, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual);
2685 static PyObject *__pyx_pf_13cfemIntegrals_64updateMassJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2686 static PyObject *__pyx_pf_13cfemIntegrals_66updateMassJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2687 static PyObject *__pyx_pf_13cfemIntegrals_68updateMass_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mt, PyArrayObject *__pyx_v_strong_residual);
2688 static PyObject *__pyx_pf_13cfemIntegrals_70updateMassJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_dstrong_residual);
2689 static PyObject *__pyx_pf_13cfemIntegrals_72updateMass_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2690 static PyObject *__pyx_pf_13cfemIntegrals_74updateAdvection_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2691 static PyObject *__pyx_pf_13cfemIntegrals_76updateAdvectionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2692 static PyObject *__pyx_pf_13cfemIntegrals_78updateAdvectionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2693 static PyObject *__pyx_pf_13cfemIntegrals_80updateAdvection_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual);
2694 static PyObject *__pyx_pf_13cfemIntegrals_82updateAdvectionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual);
2695 static PyObject *__pyx_pf_13cfemIntegrals_84updateAdvection_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2696 static PyObject *__pyx_pf_13cfemIntegrals_86updateHamiltonian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual);
2697 static PyObject *__pyx_pf_13cfemIntegrals_88updateHamiltonianJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2698 static PyObject *__pyx_pf_13cfemIntegrals_90updateHamiltonianJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2699 static PyObject *__pyx_pf_13cfemIntegrals_92updateHamiltonian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual);
2700 static PyObject *__pyx_pf_13cfemIntegrals_94updateHamiltonianJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual);
2701 static PyObject *__pyx_pf_13cfemIntegrals_96updateHamiltonian_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2702 static PyObject *__pyx_pf_13cfemIntegrals_98updateDiffusion_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2703 static PyObject *__pyx_pf_13cfemIntegrals_100updateDiffusion_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2704 static PyObject *__pyx_pf_13cfemIntegrals_102updateDiffusion_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2705 static PyObject *__pyx_pf_13cfemIntegrals_104updateDiffusionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2706 static PyObject *__pyx_pf_13cfemIntegrals_106updateDiffusionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_jacobian_weak_residual);
2707 static PyObject *__pyx_pf_13cfemIntegrals_108updateDiffusionJacobian_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_jacobian_weak_residual);
2708 static PyObject *__pyx_pf_13cfemIntegrals_110updateDiffusion_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual);
2709 static PyObject *__pyx_pf_13cfemIntegrals_112updateDiffusion_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual);
2710 static PyObject *__pyx_pf_13cfemIntegrals_114updateDiffusionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual);
2711 static PyObject *__pyx_pf_13cfemIntegrals_116updateDiffusionJacobian_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual);
2712 static PyObject *__pyx_pf_13cfemIntegrals_118updateDiffusion_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2713 static PyObject *__pyx_pf_13cfemIntegrals_120updateDiffusion_adjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2714 static PyObject *__pyx_pf_13cfemIntegrals_122updateReaction_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual);
2715 static PyObject *__pyx_pf_13cfemIntegrals_124updateReactionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2716 static PyObject *__pyx_pf_13cfemIntegrals_126updateReactionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2717 static PyObject *__pyx_pf_13cfemIntegrals_128updateReaction_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_strong_residual);
2718 static PyObject *__pyx_pf_13cfemIntegrals_130updateReactionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_dstrong_residual);
2719 static PyObject *__pyx_pf_13cfemIntegrals_132updateReaction_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV);
2720 static PyObject *__pyx_pf_13cfemIntegrals_134updateSubgridError(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_error, PyArrayObject *__pyx_v_Lstar_w_dV, PyArrayObject *__pyx_v_weak_residual);
2721 static PyObject *__pyx_pf_13cfemIntegrals_136updateSubgridErrorJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_derror, PyArrayObject *__pyx_v_Lstar_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2722 static PyObject *__pyx_pf_13cfemIntegrals_138updateNumericalDiffusion(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u_X_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2723 static PyObject *__pyx_pf_13cfemIntegrals_140updateNumericalDiffusion_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2724 static PyObject *__pyx_pf_13cfemIntegrals_142updateNumericalDiffusionJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2725 static PyObject *__pyx_pf_13cfemIntegrals_144updateNumericalDiffusionJacobian_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual);
2726 static PyObject *__pyx_pf_13cfemIntegrals_146calculateScalarScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_s1, PyArrayObject *__pyx_v_s2, PyArrayObject *__pyx_v_sResult);
2727 static PyObject *__pyx_pf_13cfemIntegrals_148calculateVectorScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_s, PyArrayObject *__pyx_v_vResult);
2728 static PyObject *__pyx_pf_13cfemIntegrals_150calculateTensorScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_t, PyArrayObject *__pyx_v_s, PyArrayObject *__pyx_v_tResult);
2729 static PyObject *__pyx_pf_13cfemIntegrals_152updateInteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual);
2730 static PyObject *__pyx_pf_13cfemIntegrals_154updateExteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual);
2731 static PyObject *__pyx_pf_13cfemIntegrals_156updateGlobalResidualFromElementResidual(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_globalResidual);
2732 static PyObject *__pyx_pf_13cfemIntegrals_158updateGlobalJacobianFromElementJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementJacobian, PyArrayObject *__pyx_v_globalJacobian);
2733 static PyObject *__pyx_pf_13cfemIntegrals_160updateGlobalJacobianFromElementJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementJacobian_eb, PyArrayObject *__pyx_v_globalJacobian);
2734 static PyObject *__pyx_pf_13cfemIntegrals_162updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac);
2735 static PyObject *__pyx_pf_13cfemIntegrals_164updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_nElements_global,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac);
2736 static PyObject *__pyx_pf_13cfemIntegrals_166updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac);
2737 static PyObject *__pyx_pf_13cfemIntegrals_168updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_nElements_global, CYTHON_UNUSED
int __pyx_v_nExteriorElementBoundaries_global, CYTHON_UNUSED
int __pyx_v_nElementBoundaries_element, CYTHON_UNUSED
int __pyx_v_nQuadraturePoints_elementBoundary, CYTHON_UNUSED
int __pyx_v_nDOF_test_element, CYTHON_UNUSED
int __pyx_v_nDOF_trial_element,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac);
2738 static PyObject *__pyx_pf_13cfemIntegrals_170updateGlobalJacobianFromElementJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_ru, PyArrayObject *__pyx_v_elementJacobian, PyObject *__pyx_v_globalJacobian);
2739 static PyObject *__pyx_pf_13cfemIntegrals_172updateGlobalJacobianFromElementJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementJacobian_eb, PyObject *__pyx_v_globalJacobian);
2740 static PyObject *__pyx_pf_13cfemIntegrals_174updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac);
2741 static PyObject *__pyx_pf_13cfemIntegrals_176updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac);
2742 static PyObject *__pyx_pf_13cfemIntegrals_178updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac);
2743 static PyObject *__pyx_pf_13cfemIntegrals_180updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac);
2744 static PyObject *__pyx_pf_13cfemIntegrals_182calculateWeightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dV);
2745 static PyObject *__pyx_pf_13cfemIntegrals_184calculateWeightedShapeGradients(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_grad_w_dV);
2746 static PyObject *__pyx_pf_13cfemIntegrals_186calculateShape_X_weightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_v_X_w_dV);
2747 static PyObject *__pyx_pf_13cfemIntegrals_188calculateShape_X_weightedGradShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v_X_grad_w_dV);
2748 static PyObject *__pyx_pf_13cfemIntegrals_190calculateGradShape_X_weightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_grad_v_X_w_dV);
2749 static PyObject *__pyx_pf_13cfemIntegrals_192calculateGradShape_X_weightedGradShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV);
2750 static PyObject *__pyx_pf_13cfemIntegrals_194calculateWeightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dSR, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dS);
2751 static PyObject *__pyx_pf_13cfemIntegrals_196calculateShape_X_weightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_v_X_w_dS);
2752 static PyObject *__pyx_pf_13cfemIntegrals_198calculateGradShape_X_weightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_grad_v_X_w_dS);
2753 static PyObject *__pyx_pf_13cfemIntegrals_200calculateIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights);
2754 static PyObject *__pyx_pf_13cfemIntegrals_202calculateElementBoundaryIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights);
2755 static PyObject *__pyx_pf_13cfemIntegrals_204calculateFiniteElementFunctionValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u);
2756 static PyObject *__pyx_pf_13cfemIntegrals_206calculateFiniteElementFunctionGradientValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u);
2757 static PyObject *__pyx_pf_13cfemIntegrals_208calculateFiniteElementFunctionGradientTensorValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_grad_u_X_grad_w_dV);
2758 static PyObject *__pyx_pf_13cfemIntegrals_210calculateFiniteElementFunctionValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u);
2759 static PyObject *__pyx_pf_13cfemIntegrals_212calculateFiniteElementFunctionGradientValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u);
2760 static PyObject *__pyx_pf_13cfemIntegrals_214calculateFlowVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_v);
2761 static PyObject *__pyx_pf_13cfemIntegrals_216updateAddJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_jacIndex,
double __pyx_v_val, PyObject *__pyx_v_jac);
2762 static PyObject *__pyx_pf_13cfemIntegrals_218zeroJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNonzeros, PyObject *__pyx_v_jac);
2763 static PyObject *__pyx_pf_13cfemIntegrals_220calculateInteriorElementBoundaryVelocities(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_vJump, PyArrayObject *__pyx_v_mAverage, PyArrayObject *__pyx_v_mJump);
2764 static PyObject *__pyx_pf_13cfemIntegrals_222calculateExteriorElementBoundaryVelocities(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_vJump, PyArrayObject *__pyx_v_mAverage, PyArrayObject *__pyx_v_mJump);
2765 static PyObject *__pyx_pf_13cfemIntegrals_224calculateConservationResidualPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, 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_nodeStarOffsets, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_starU, PyArrayObject *__pyx_v_dX, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_starR, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element);
2766 static PyObject *__pyx_pf_13cfemIntegrals_226calculateConservationJacobianPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_internal,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, 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_nodeStarOffsets, PyArrayObject *__pyx_v_nodeStarJacobianOffsets, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_starJacobian);
2767 static PyObject *__pyx_pf_13cfemIntegrals_228calculateConservationFluxPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_internal, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_nodeStarOffsets, PyArrayObject *__pyx_v_nodeStarJacobianOffsets, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_starR, PyArrayObject *__pyx_v_starJ, PyArrayObject *__pyx_v_starU);
2768 static PyObject *__pyx_pf_13cfemIntegrals_230setExteriorGlobalElementBoundaryVelocityValues(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_updateFluxValues,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_vn_in, PyArrayObject *__pyx_v_v_out);
2769 static PyObject *__pyx_pf_13cfemIntegrals_232calculateDimensionlessNumbersADR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_pe, PyArrayObject *__pyx_v_cfl);
2770 static PyObject *__pyx_pf_13cfemIntegrals_234calculateDimensionlessNumbersADR_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_pe, PyArrayObject *__pyx_v_cfl);
2771 static PyObject *__pyx_pf_13cfemIntegrals_236calculateCFLADR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_cfl);
2772 static PyObject *__pyx_pf_13cfemIntegrals_238updateInteriorElementBoundaryDiffusiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2773 static PyObject *__pyx_pf_13cfemIntegrals_240updateInteriorElementBoundaryDiffusiveVelocity_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2774 static PyObject *__pyx_pf_13cfemIntegrals_242updateExteriorElementBoundaryDiffusiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2775 static PyObject *__pyx_pf_13cfemIntegrals_244updateExteriorElementBoundaryDiffusiveVelocity_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity);
2776 static PyObject *__pyx_pf_13cfemIntegrals_246updateInteriorElementBoundaryAdvectiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_velocity);
2777 static PyObject *__pyx_pf_13cfemIntegrals_248updateExteriorElementBoundaryAdvectiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_velocity);
2778 static PyObject *__pyx_pf_13cfemIntegrals_250updateInteriorElementBoundaryShockCapturingVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_velocity);
2779 static PyObject *__pyx_pf_13cfemIntegrals_252updateExteriorElementBoundaryShockCapturingVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_velocity);
2780 static PyObject *__pyx_pf_13cfemIntegrals_254calculateInteriorElementBoundaryAverageVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vAverage);
2781 static PyObject *__pyx_pf_13cfemIntegrals_256calculateExteriorElementBoundaryAverageVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vAverage);
2782 static PyObject *__pyx_pf_13cfemIntegrals_258calculateConservationResidualDG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_conservationResidual);
2783 static PyObject *__pyx_pf_13cfemIntegrals_260calculateConservationResidual(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dS_u, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual);
2784 static PyObject *__pyx_pf_13cfemIntegrals_262calculateConservationResidualGlobalBoundaries(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual);
2785 static PyObject *__pyx_pf_13cfemIntegrals_264copyGlobalElementBoundaryVelocityToElementBoundary(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_velocityBoundary_global, PyArrayObject *__pyx_v_velocityBoundary_element);
2786 static PyObject *__pyx_pf_13cfemIntegrals_266loadBoundaryFluxIntoGlobalElementBoundaryVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_flux,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_velocity);
2787 static PyObject *__pyx_pf_13cfemIntegrals_268calculateInteriorNumericalTrace_Potential(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_dphi_trace_right);
2788 static PyObject *__pyx_pf_13cfemIntegrals_270calculateExteriorNumericalTrace_Potential(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_dphi_trace_left);
2789 static PyObject *__pyx_pf_13cfemIntegrals_272updateInteriorElementBoundary_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_b);
2790 static PyObject *__pyx_pf_13cfemIntegrals_274updateInteriorElementBoundary_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_dphi_trace_right, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb);
2791 static PyObject *__pyx_pf_13cfemIntegrals_276updateExteriorElementBoundary_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_b);
2792 static PyObject *__pyx_pf_13cfemIntegrals_278updateExteriorElementBoundary_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb);
2793 static PyObject *__pyx_pf_13cfemIntegrals_280updatePotential_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_b);
2794 static PyObject *__pyx_pf_13cfemIntegrals_282updatePotential_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_db);
2795 static PyObject *__pyx_pf_13cfemIntegrals_284calculateVelocityQuadrature_MixedForm(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_A_inv, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qV);
2796 static PyObject *__pyx_pf_13cfemIntegrals_286calculateVelocityQuadrature_MixedForm_Jacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_A_inv, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb);
2797 static PyObject *__pyx_pf_13cfemIntegrals_288calculateVelocityProjectionMatrixLDG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_vXw_dV, PyArrayObject *__pyx_v_A_inv);
2798 static PyObject *__pyx_pf_13cfemIntegrals_290updateDiffusion_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual);
2799 static PyObject *__pyx_pf_13cfemIntegrals_292updateDiffusionJacobian_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_jacobian_weak_residual, PyArrayObject *__pyx_v_jacobian_weak_residual_eb);
2800 static PyObject *__pyx_pf_13cfemIntegrals_294estimate_mt(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vXw_dV, PyArrayObject *__pyx_v_elementSpatialResidual, PyArrayObject *__pyx_v_mt);
2801 static PyObject *__pyx_pf_13cfemIntegrals_296estimate_mt_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_elementSpatialResidual, PyArrayObject *__pyx_v_mt);
2802 static PyObject *__pyx_pf_13cfemIntegrals_298scalarDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray,
int __pyx_v_nElements_global);
2803 static PyObject *__pyx_pf_13cfemIntegrals_300scalarHeavisideDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray);
2804 static PyObject *__pyx_pf_13cfemIntegrals_302scalarSmoothedHeavisideDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsFact, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray,
int __pyx_v_nElements_global);
2805 static PyObject *__pyx_pf_13cfemIntegrals_304fluxDomainBoundaryIntegral(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElementBoundaries_owned, PyArrayObject *__pyx_v_flag, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_nValueArray);
2806 static PyObject *__pyx_pf_13cfemIntegrals_306fluxDomainBoundaryIntegralFromVector(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElementBoundaries_owned, PyArrayObject *__pyx_v_flag, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_nValueArray, PyArrayObject *__pyx_v_normal);
2807 static PyObject *__pyx_pf_13cfemIntegrals_308copyExteriorElementBoundaryValuesFromElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebq_val, PyArrayObject *__pyx_v_ebqe_val);
2808 static PyObject *__pyx_pf_13cfemIntegrals_310copyExteriorElementBoundaryValuesToElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_ebq_val);
2809 static PyObject *__pyx_pf_13cfemIntegrals_312copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_ebq_global_val);
2810 static PyObject *__pyx_pf_13cfemIntegrals_314copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebq_global_val, PyArrayObject *__pyx_v_ebqe_val);
2811 static PyObject *__pyx_pf_13cfemIntegrals_316computeC0P1InterpolantDGP0(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage, PyObject *__pyx_v_dim_dof);
2812 static PyObject *__pyx_pf_13cfemIntegrals_318computeC0P1InterpolantNCP1(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage);
2813 static PyObject *__pyx_pf_13cfemIntegrals_320computeC0P1InterpolantDGP12(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage);
2814 static PyObject *__pyx_pf_13cfemIntegrals_322parametricFiniteElementSpace_getValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_vArray);
2815 static PyObject *__pyx_pf_13cfemIntegrals_324parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray);
2816 static PyObject *__pyx_pf_13cfemIntegrals_326parametricMaps_getValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray);
2817 static PyObject *__pyx_pf_13cfemIntegrals_328parametricMaps_getInverseValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray);
2818 static PyObject *__pyx_pf_13cfemIntegrals_330parametricMaps_getJacobianValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray);
2819 static PyObject *__pyx_pf_13cfemIntegrals_332parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_xtArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray);
2820 static PyObject *__pyx_pf_13cfemIntegrals_334calculateWeightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_dSR, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dS);
2821 static PyObject *__pyx_pf_13cfemIntegrals_336calculateShape_X_weightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_v_X_w_dS);
2822 static PyObject *__pyx_pf_13cfemIntegrals_338calculateGradShape_X_weightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_grad_v_X_w_dS);
2823 static PyObject *__pyx_pf_13cfemIntegrals_340calculateGlobalExteriorElementBoundaryIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nExteriorElementBoundaries_global, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights);
2824 static PyObject *__pyx_pf_13cfemIntegrals_342calculateFiniteElementFunctionValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u);
2825 static PyObject *__pyx_pf_13cfemIntegrals_344calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u);
2826 static PyObject *__pyx_pf_13cfemIntegrals_346copyBetweenFreeUnknownsAndGlobalUnknowns(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nDOF2set,
int __pyx_v_offset,
int __pyx_v_stride, PyArrayObject *__pyx_v_globalDOFids, PyArrayObject *__pyx_v_freeDOFids, PyArrayObject *__pyx_v_free_u, PyArrayObject *__pyx_v_u);
2827 static PyObject *__pyx_pf_13cfemIntegrals_348updateInteriorElementBoundaryDiffusionAdjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual);
2828 static PyObject *__pyx_pf_13cfemIntegrals_350updateExteriorElementBoundaryDiffusionAdjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_ub, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual);
2829 static PyObject *__pyx_pf_13cfemIntegrals_352updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac);
2830 static PyObject *__pyx_pf_13cfemIntegrals_354updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac);
2831 static PyObject *__pyx_pf_13cfemIntegrals_356updateInteriorElementBoundaryDiffusionAdjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual);
2832 static PyObject *__pyx_pf_13cfemIntegrals_358updateExteriorElementBoundaryDiffusionAdjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_ub, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual);
2833 static PyObject *__pyx_pf_13cfemIntegrals_360updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac);
2834 static PyObject *__pyx_pf_13cfemIntegrals_362updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac);
2835 static PyObject *__pyx_pf_13cfemIntegrals_364updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyObject *__pyx_v_jac);
2836 static PyObject *__pyx_pf_13cfemIntegrals_366updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyObject *__pyx_v_jac);
2837 static PyObject *__pyx_pf_13cfemIntegrals_368update_f_movingDomain(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xt, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_f);
2838 static PyObject *__pyx_pf_13cfemIntegrals_370update_f_movingDomain_constantMass(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xt, PyArrayObject *__pyx_v_f);
2839 static PyObject *__pyx_pf_13cfemIntegrals_372updateStress_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_sigma, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual_x, PyArrayObject *__pyx_v_weak_residual_y, PyArrayObject *__pyx_v_weak_residual_z);
2840 static PyObject *__pyx_pf_13cfemIntegrals_374updateStressJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dsigma_xx, PyArrayObject *__pyx_v_dsigma_xy, PyArrayObject *__pyx_v_dsigma_xz, PyArrayObject *__pyx_v_dsigma_yx, PyArrayObject *__pyx_v_dsigma_yy, PyArrayObject *__pyx_v_dsigma_yz, PyArrayObject *__pyx_v_dsigma_zx, PyArrayObject *__pyx_v_dsigma_zy, PyArrayObject *__pyx_v_dsigma_zz, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual_xx, PyArrayObject *__pyx_v_jacobian_weak_residual_xy, PyArrayObject *__pyx_v_jacobian_weak_residual_xz, PyArrayObject *__pyx_v_jacobian_weak_residual_yx, PyArrayObject *__pyx_v_jacobian_weak_residual_yy, PyArrayObject *__pyx_v_jacobian_weak_residual_yz, PyArrayObject *__pyx_v_jacobian_weak_residual_zx, PyArrayObject *__pyx_v_jacobian_weak_residual_zy, PyArrayObject *__pyx_v_jacobian_weak_residual_zz);
2841 static PyObject *__pyx_pf_13cfemIntegrals_376projectFromNodalInterpolationConditions(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_functional_map_element, PyArrayObject *__pyx_v_interpolationValues, PyArrayObject *__pyx_v_dofs);
2842 static PyObject *__pyx_pf_13cfemIntegrals_378calculateVelocityQuadrature_MixedForm2_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_qa, PyArrayObject *__pyx_v_qw_dV, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qV);
2843 static PyObject *__pyx_pf_13cfemIntegrals_380updateDiffusion_MixedForm_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_residual,
int __pyx_v_rho_split);
2844 static PyObject *__pyx_pf_13cfemIntegrals_382calculateVelocityQuadrature_MixedForm2_Jacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_qa, PyArrayObject *__pyx_v_qw_dV, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb);
2845 static PyObject *__pyx_pf_13cfemIntegrals_384updateDiffusionJacobian_MixedForm_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_jacobian, PyArrayObject *__pyx_v_jacobian_eb);
2846 static PyObject *__pyx_tuple_;
2847 static PyObject *__pyx_tuple__2;
2848 static PyObject *__pyx_tuple__3;
2849 static PyObject *__pyx_tuple__5;
2850 static PyObject *__pyx_tuple__7;
2851 static PyObject *__pyx_tuple__9;
2852 static PyObject *__pyx_tuple__11;
2853 static PyObject *__pyx_tuple__13;
2854 static PyObject *__pyx_tuple__15;
2855 static PyObject *__pyx_tuple__17;
2856 static PyObject *__pyx_tuple__19;
2857 static PyObject *__pyx_tuple__21;
2858 static PyObject *__pyx_tuple__23;
2859 static PyObject *__pyx_tuple__25;
2860 static PyObject *__pyx_tuple__27;
2861 static PyObject *__pyx_tuple__29;
2862 static PyObject *__pyx_tuple__31;
2863 static PyObject *__pyx_tuple__33;
2864 static PyObject *__pyx_tuple__35;
2865 static PyObject *__pyx_tuple__37;
2866 static PyObject *__pyx_tuple__39;
2867 static PyObject *__pyx_tuple__41;
2868 static PyObject *__pyx_tuple__43;
2869 static PyObject *__pyx_tuple__45;
2870 static PyObject *__pyx_tuple__47;
2871 static PyObject *__pyx_tuple__49;
2872 static PyObject *__pyx_tuple__51;
2873 static PyObject *__pyx_tuple__53;
2874 static PyObject *__pyx_tuple__55;
2875 static PyObject *__pyx_tuple__57;
2876 static PyObject *__pyx_tuple__59;
2877 static PyObject *__pyx_tuple__61;
2878 static PyObject *__pyx_tuple__63;
2879 static PyObject *__pyx_tuple__65;
2880 static PyObject *__pyx_tuple__67;
2881 static PyObject *__pyx_tuple__69;
2882 static PyObject *__pyx_tuple__71;
2883 static PyObject *__pyx_tuple__73;
2884 static PyObject *__pyx_tuple__75;
2885 static PyObject *__pyx_tuple__77;
2886 static PyObject *__pyx_tuple__79;
2887 static PyObject *__pyx_tuple__81;
2888 static PyObject *__pyx_tuple__83;
2889 static PyObject *__pyx_tuple__85;
2890 static PyObject *__pyx_tuple__87;
2891 static PyObject *__pyx_tuple__89;
2892 static PyObject *__pyx_tuple__91;
2893 static PyObject *__pyx_tuple__93;
2894 static PyObject *__pyx_tuple__95;
2895 static PyObject *__pyx_tuple__97;
2896 static PyObject *__pyx_tuple__99;
2897 static PyObject *__pyx_codeobj__4;
2898 static PyObject *__pyx_codeobj__6;
2899 static PyObject *__pyx_codeobj__8;
2900 static PyObject *__pyx_tuple__101;
2901 static PyObject *__pyx_tuple__103;
2902 static PyObject *__pyx_tuple__105;
2903 static PyObject *__pyx_tuple__107;
2904 static PyObject *__pyx_tuple__109;
2905 static PyObject *__pyx_tuple__111;
2906 static PyObject *__pyx_tuple__113;
2907 static PyObject *__pyx_tuple__115;
2908 static PyObject *__pyx_tuple__117;
2909 static PyObject *__pyx_tuple__119;
2910 static PyObject *__pyx_tuple__121;
2911 static PyObject *__pyx_tuple__123;
2912 static PyObject *__pyx_tuple__125;
2913 static PyObject *__pyx_tuple__127;
2914 static PyObject *__pyx_tuple__129;
2915 static PyObject *__pyx_tuple__131;
2916 static PyObject *__pyx_tuple__133;
2917 static PyObject *__pyx_tuple__135;
2918 static PyObject *__pyx_tuple__137;
2919 static PyObject *__pyx_tuple__139;
2920 static PyObject *__pyx_tuple__141;
2921 static PyObject *__pyx_tuple__143;
2922 static PyObject *__pyx_tuple__145;
2923 static PyObject *__pyx_tuple__147;
2924 static PyObject *__pyx_tuple__149;
2925 static PyObject *__pyx_tuple__151;
2926 static PyObject *__pyx_tuple__153;
2927 static PyObject *__pyx_tuple__155;
2928 static PyObject *__pyx_tuple__157;
2929 static PyObject *__pyx_tuple__159;
2930 static PyObject *__pyx_tuple__161;
2931 static PyObject *__pyx_tuple__163;
2932 static PyObject *__pyx_tuple__165;
2933 static PyObject *__pyx_tuple__167;
2934 static PyObject *__pyx_tuple__169;
2935 static PyObject *__pyx_tuple__171;
2936 static PyObject *__pyx_tuple__173;
2937 static PyObject *__pyx_tuple__175;
2938 static PyObject *__pyx_tuple__177;
2939 static PyObject *__pyx_tuple__179;
2940 static PyObject *__pyx_tuple__181;
2941 static PyObject *__pyx_tuple__183;
2942 static PyObject *__pyx_tuple__185;
2943 static PyObject *__pyx_tuple__187;
2944 static PyObject *__pyx_tuple__189;
2945 static PyObject *__pyx_tuple__191;
2946 static PyObject *__pyx_tuple__193;
2947 static PyObject *__pyx_tuple__195;
2948 static PyObject *__pyx_tuple__197;
2949 static PyObject *__pyx_tuple__199;
2950 static PyObject *__pyx_tuple__201;
2951 static PyObject *__pyx_tuple__203;
2952 static PyObject *__pyx_tuple__205;
2953 static PyObject *__pyx_tuple__207;
2954 static PyObject *__pyx_tuple__209;
2955 static PyObject *__pyx_tuple__211;
2956 static PyObject *__pyx_tuple__213;
2957 static PyObject *__pyx_tuple__215;
2958 static PyObject *__pyx_tuple__217;
2959 static PyObject *__pyx_tuple__219;
2960 static PyObject *__pyx_tuple__221;
2961 static PyObject *__pyx_tuple__223;
2962 static PyObject *__pyx_tuple__225;
2963 static PyObject *__pyx_tuple__227;
2964 static PyObject *__pyx_tuple__229;
2965 static PyObject *__pyx_tuple__231;
2966 static PyObject *__pyx_tuple__233;
2967 static PyObject *__pyx_tuple__235;
2968 static PyObject *__pyx_tuple__237;
2969 static PyObject *__pyx_tuple__239;
2970 static PyObject *__pyx_tuple__241;
2971 static PyObject *__pyx_tuple__243;
2972 static PyObject *__pyx_tuple__245;
2973 static PyObject *__pyx_tuple__247;
2974 static PyObject *__pyx_tuple__249;
2975 static PyObject *__pyx_tuple__251;
2976 static PyObject *__pyx_tuple__253;
2977 static PyObject *__pyx_tuple__255;
2978 static PyObject *__pyx_tuple__257;
2979 static PyObject *__pyx_tuple__259;
2980 static PyObject *__pyx_tuple__261;
2981 static PyObject *__pyx_tuple__263;
2982 static PyObject *__pyx_tuple__265;
2983 static PyObject *__pyx_tuple__267;
2984 static PyObject *__pyx_tuple__269;
2985 static PyObject *__pyx_tuple__271;
2986 static PyObject *__pyx_tuple__273;
2987 static PyObject *__pyx_tuple__275;
2988 static PyObject *__pyx_tuple__277;
2989 static PyObject *__pyx_tuple__279;
2990 static PyObject *__pyx_tuple__281;
2991 static PyObject *__pyx_tuple__283;
2992 static PyObject *__pyx_tuple__285;
2993 static PyObject *__pyx_tuple__287;
2994 static PyObject *__pyx_tuple__289;
2995 static PyObject *__pyx_tuple__291;
2996 static PyObject *__pyx_tuple__293;
2997 static PyObject *__pyx_tuple__295;
2998 static PyObject *__pyx_tuple__297;
2999 static PyObject *__pyx_tuple__299;
3000 static PyObject *__pyx_tuple__301;
3001 static PyObject *__pyx_tuple__303;
3002 static PyObject *__pyx_tuple__305;
3003 static PyObject *__pyx_tuple__307;
3004 static PyObject *__pyx_tuple__309;
3005 static PyObject *__pyx_tuple__311;
3006 static PyObject *__pyx_tuple__313;
3007 static PyObject *__pyx_tuple__315;
3008 static PyObject *__pyx_tuple__317;
3009 static PyObject *__pyx_tuple__319;
3010 static PyObject *__pyx_tuple__321;
3011 static PyObject *__pyx_tuple__323;
3012 static PyObject *__pyx_tuple__325;
3013 static PyObject *__pyx_tuple__327;
3014 static PyObject *__pyx_tuple__329;
3015 static PyObject *__pyx_tuple__331;
3016 static PyObject *__pyx_tuple__333;
3017 static PyObject *__pyx_tuple__335;
3018 static PyObject *__pyx_tuple__337;
3019 static PyObject *__pyx_tuple__339;
3020 static PyObject *__pyx_tuple__341;
3021 static PyObject *__pyx_tuple__343;
3022 static PyObject *__pyx_tuple__345;
3023 static PyObject *__pyx_tuple__347;
3024 static PyObject *__pyx_tuple__349;
3025 static PyObject *__pyx_tuple__351;
3026 static PyObject *__pyx_tuple__353;
3027 static PyObject *__pyx_tuple__355;
3028 static PyObject *__pyx_tuple__357;
3029 static PyObject *__pyx_tuple__359;
3030 static PyObject *__pyx_tuple__361;
3031 static PyObject *__pyx_tuple__363;
3032 static PyObject *__pyx_tuple__365;
3033 static PyObject *__pyx_tuple__367;
3034 static PyObject *__pyx_tuple__369;
3035 static PyObject *__pyx_tuple__371;
3036 static PyObject *__pyx_tuple__373;
3037 static PyObject *__pyx_tuple__375;
3038 static PyObject *__pyx_tuple__377;
3039 static PyObject *__pyx_tuple__379;
3040 static PyObject *__pyx_tuple__381;
3041 static PyObject *__pyx_tuple__383;
3042 static PyObject *__pyx_tuple__385;
3043 static PyObject *__pyx_tuple__387;
3044 static PyObject *__pyx_codeobj__10;
3045 static PyObject *__pyx_codeobj__12;
3046 static PyObject *__pyx_codeobj__14;
3047 static PyObject *__pyx_codeobj__16;
3048 static PyObject *__pyx_codeobj__18;
3049 static PyObject *__pyx_codeobj__20;
3050 static PyObject *__pyx_codeobj__22;
3051 static PyObject *__pyx_codeobj__24;
3052 static PyObject *__pyx_codeobj__26;
3053 static PyObject *__pyx_codeobj__28;
3054 static PyObject *__pyx_codeobj__30;
3055 static PyObject *__pyx_codeobj__32;
3056 static PyObject *__pyx_codeobj__34;
3057 static PyObject *__pyx_codeobj__36;
3058 static PyObject *__pyx_codeobj__38;
3059 static PyObject *__pyx_codeobj__40;
3060 static PyObject *__pyx_codeobj__42;
3061 static PyObject *__pyx_codeobj__44;
3062 static PyObject *__pyx_codeobj__46;
3063 static PyObject *__pyx_codeobj__48;
3064 static PyObject *__pyx_codeobj__50;
3065 static PyObject *__pyx_codeobj__52;
3066 static PyObject *__pyx_codeobj__54;
3067 static PyObject *__pyx_codeobj__56;
3068 static PyObject *__pyx_codeobj__58;
3069 static PyObject *__pyx_codeobj__60;
3070 static PyObject *__pyx_codeobj__62;
3071 static PyObject *__pyx_codeobj__64;
3072 static PyObject *__pyx_codeobj__66;
3073 static PyObject *__pyx_codeobj__68;
3074 static PyObject *__pyx_codeobj__70;
3075 static PyObject *__pyx_codeobj__72;
3076 static PyObject *__pyx_codeobj__74;
3077 static PyObject *__pyx_codeobj__76;
3078 static PyObject *__pyx_codeobj__78;
3079 static PyObject *__pyx_codeobj__80;
3080 static PyObject *__pyx_codeobj__82;
3081 static PyObject *__pyx_codeobj__84;
3082 static PyObject *__pyx_codeobj__86;
3083 static PyObject *__pyx_codeobj__88;
3084 static PyObject *__pyx_codeobj__90;
3085 static PyObject *__pyx_codeobj__92;
3086 static PyObject *__pyx_codeobj__94;
3087 static PyObject *__pyx_codeobj__96;
3088 static PyObject *__pyx_codeobj__98;
3089 static PyObject *__pyx_codeobj__100;
3090 static PyObject *__pyx_codeobj__102;
3091 static PyObject *__pyx_codeobj__104;
3092 static PyObject *__pyx_codeobj__106;
3093 static PyObject *__pyx_codeobj__108;
3094 static PyObject *__pyx_codeobj__110;
3095 static PyObject *__pyx_codeobj__112;
3096 static PyObject *__pyx_codeobj__114;
3097 static PyObject *__pyx_codeobj__116;
3098 static PyObject *__pyx_codeobj__118;
3099 static PyObject *__pyx_codeobj__120;
3100 static PyObject *__pyx_codeobj__122;
3101 static PyObject *__pyx_codeobj__124;
3102 static PyObject *__pyx_codeobj__126;
3103 static PyObject *__pyx_codeobj__128;
3104 static PyObject *__pyx_codeobj__130;
3105 static PyObject *__pyx_codeobj__132;
3106 static PyObject *__pyx_codeobj__134;
3107 static PyObject *__pyx_codeobj__136;
3108 static PyObject *__pyx_codeobj__138;
3109 static PyObject *__pyx_codeobj__140;
3110 static PyObject *__pyx_codeobj__142;
3111 static PyObject *__pyx_codeobj__144;
3112 static PyObject *__pyx_codeobj__146;
3113 static PyObject *__pyx_codeobj__148;
3114 static PyObject *__pyx_codeobj__150;
3115 static PyObject *__pyx_codeobj__152;
3116 static PyObject *__pyx_codeobj__154;
3117 static PyObject *__pyx_codeobj__156;
3118 static PyObject *__pyx_codeobj__158;
3119 static PyObject *__pyx_codeobj__160;
3120 static PyObject *__pyx_codeobj__162;
3121 static PyObject *__pyx_codeobj__164;
3122 static PyObject *__pyx_codeobj__166;
3123 static PyObject *__pyx_codeobj__168;
3124 static PyObject *__pyx_codeobj__170;
3125 static PyObject *__pyx_codeobj__172;
3126 static PyObject *__pyx_codeobj__174;
3127 static PyObject *__pyx_codeobj__176;
3128 static PyObject *__pyx_codeobj__178;
3129 static PyObject *__pyx_codeobj__180;
3130 static PyObject *__pyx_codeobj__182;
3131 static PyObject *__pyx_codeobj__184;
3132 static PyObject *__pyx_codeobj__186;
3133 static PyObject *__pyx_codeobj__188;
3134 static PyObject *__pyx_codeobj__190;
3135 static PyObject *__pyx_codeobj__192;
3136 static PyObject *__pyx_codeobj__194;
3137 static PyObject *__pyx_codeobj__196;
3138 static PyObject *__pyx_codeobj__198;
3139 static PyObject *__pyx_codeobj__200;
3140 static PyObject *__pyx_codeobj__202;
3141 static PyObject *__pyx_codeobj__204;
3142 static PyObject *__pyx_codeobj__206;
3143 static PyObject *__pyx_codeobj__208;
3144 static PyObject *__pyx_codeobj__210;
3145 static PyObject *__pyx_codeobj__212;
3146 static PyObject *__pyx_codeobj__214;
3147 static PyObject *__pyx_codeobj__216;
3148 static PyObject *__pyx_codeobj__218;
3149 static PyObject *__pyx_codeobj__220;
3150 static PyObject *__pyx_codeobj__222;
3151 static PyObject *__pyx_codeobj__224;
3152 static PyObject *__pyx_codeobj__226;
3153 static PyObject *__pyx_codeobj__228;
3154 static PyObject *__pyx_codeobj__230;
3155 static PyObject *__pyx_codeobj__232;
3156 static PyObject *__pyx_codeobj__234;
3157 static PyObject *__pyx_codeobj__236;
3158 static PyObject *__pyx_codeobj__238;
3159 static PyObject *__pyx_codeobj__240;
3160 static PyObject *__pyx_codeobj__242;
3161 static PyObject *__pyx_codeobj__244;
3162 static PyObject *__pyx_codeobj__246;
3163 static PyObject *__pyx_codeobj__248;
3164 static PyObject *__pyx_codeobj__250;
3165 static PyObject *__pyx_codeobj__252;
3166 static PyObject *__pyx_codeobj__254;
3167 static PyObject *__pyx_codeobj__256;
3168 static PyObject *__pyx_codeobj__258;
3169 static PyObject *__pyx_codeobj__260;
3170 static PyObject *__pyx_codeobj__262;
3171 static PyObject *__pyx_codeobj__264;
3172 static PyObject *__pyx_codeobj__266;
3173 static PyObject *__pyx_codeobj__268;
3174 static PyObject *__pyx_codeobj__270;
3175 static PyObject *__pyx_codeobj__272;
3176 static PyObject *__pyx_codeobj__274;
3177 static PyObject *__pyx_codeobj__276;
3178 static PyObject *__pyx_codeobj__278;
3179 static PyObject *__pyx_codeobj__280;
3180 static PyObject *__pyx_codeobj__282;
3181 static PyObject *__pyx_codeobj__284;
3182 static PyObject *__pyx_codeobj__286;
3183 static PyObject *__pyx_codeobj__288;
3184 static PyObject *__pyx_codeobj__290;
3185 static PyObject *__pyx_codeobj__292;
3186 static PyObject *__pyx_codeobj__294;
3187 static PyObject *__pyx_codeobj__296;
3188 static PyObject *__pyx_codeobj__298;
3189 static PyObject *__pyx_codeobj__300;
3190 static PyObject *__pyx_codeobj__302;
3191 static PyObject *__pyx_codeobj__304;
3192 static PyObject *__pyx_codeobj__306;
3193 static PyObject *__pyx_codeobj__308;
3194 static PyObject *__pyx_codeobj__310;
3195 static PyObject *__pyx_codeobj__312;
3196 static PyObject *__pyx_codeobj__314;
3197 static PyObject *__pyx_codeobj__316;
3198 static PyObject *__pyx_codeobj__318;
3199 static PyObject *__pyx_codeobj__320;
3200 static PyObject *__pyx_codeobj__322;
3201 static PyObject *__pyx_codeobj__324;
3202 static PyObject *__pyx_codeobj__326;
3203 static PyObject *__pyx_codeobj__328;
3204 static PyObject *__pyx_codeobj__330;
3205 static PyObject *__pyx_codeobj__332;
3206 static PyObject *__pyx_codeobj__334;
3207 static PyObject *__pyx_codeobj__336;
3208 static PyObject *__pyx_codeobj__338;
3209 static PyObject *__pyx_codeobj__340;
3210 static PyObject *__pyx_codeobj__342;
3211 static PyObject *__pyx_codeobj__344;
3212 static PyObject *__pyx_codeobj__346;
3213 static PyObject *__pyx_codeobj__348;
3214 static PyObject *__pyx_codeobj__350;
3215 static PyObject *__pyx_codeobj__352;
3216 static PyObject *__pyx_codeobj__354;
3217 static PyObject *__pyx_codeobj__356;
3218 static PyObject *__pyx_codeobj__358;
3219 static PyObject *__pyx_codeobj__360;
3220 static PyObject *__pyx_codeobj__362;
3221 static PyObject *__pyx_codeobj__364;
3222 static PyObject *__pyx_codeobj__366;
3223 static PyObject *__pyx_codeobj__368;
3224 static PyObject *__pyx_codeobj__370;
3225 static PyObject *__pyx_codeobj__372;
3226 static PyObject *__pyx_codeobj__374;
3227 static PyObject *__pyx_codeobj__376;
3228 static PyObject *__pyx_codeobj__378;
3229 static PyObject *__pyx_codeobj__380;
3230 static PyObject *__pyx_codeobj__382;
3231 static PyObject *__pyx_codeobj__384;
3232 static PyObject *__pyx_codeobj__386;
3233 static PyObject *__pyx_codeobj__388;
3245 static PyObject *__pyx_pw_13cfemIntegrals_1parametricFiniteElementSpace_getHessianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3246 static PyMethodDef __pyx_mdef_13cfemIntegrals_1parametricFiniteElementSpace_getHessianValues = {
"parametricFiniteElementSpace_getHessianValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_1parametricFiniteElementSpace_getHessianValues, METH_VARARGS|METH_KEYWORDS, 0};
3247 static PyObject *__pyx_pw_13cfemIntegrals_1parametricFiniteElementSpace_getHessianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3248 PyArrayObject *__pyx_v_Hessian_psi = 0;
3249 PyArrayObject *__pyx_v_inverseJacobianArray = 0;
3250 PyArrayObject *__pyx_v_Hessian_vArray = 0;
3251 int __pyx_lineno = 0;
3252 const char *__pyx_filename = NULL;
3253 int __pyx_clineno = 0;
3254 PyObject *__pyx_r = 0;
3255 __Pyx_RefNannyDeclarations
3256 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getHessianValues (wrapper)", 0);
3258 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_Hessian_psi,&__pyx_n_s_inverseJacobianArray,&__pyx_n_s_Hessian_vArray,0};
3259 PyObject* values[3] = {0,0,0};
3260 if (unlikely(__pyx_kwds)) {
3262 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3264 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3266 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3268 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3271 default:
goto __pyx_L5_argtuple_error;
3273 kw_args = PyDict_Size(__pyx_kwds);
3276 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hessian_psi)) != 0)) kw_args--;
3277 else goto __pyx_L5_argtuple_error;
3280 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobianArray)) != 0)) kw_args--;
3282 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getHessianValues", 1, 3, 3, 1); __PYX_ERR(0, 2296, __pyx_L3_error)
3286 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hessian_vArray)) != 0)) kw_args--;
3288 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getHessianValues", 1, 3, 3, 2); __PYX_ERR(0, 2296, __pyx_L3_error)
3291 if (unlikely(kw_args > 0)) {
3292 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getHessianValues") < 0)) __PYX_ERR(0, 2296, __pyx_L3_error)
3294 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3295 goto __pyx_L5_argtuple_error;
3297 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3298 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3299 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3301 __pyx_v_Hessian_psi = ((PyArrayObject *)values[0]);
3302 __pyx_v_inverseJacobianArray = ((PyArrayObject *)values[1]);
3303 __pyx_v_Hessian_vArray = ((PyArrayObject *)values[2]);
3305 goto __pyx_L4_argument_unpacking_done;
3306 __pyx_L5_argtuple_error:;
3307 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getHessianValues", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2296, __pyx_L3_error)
3309 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getHessianValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
3310 __Pyx_RefNannyFinishContext();
3312 __pyx_L4_argument_unpacking_done:;
3313 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hessian_psi), __pyx_ptype_5numpy_ndarray, 1,
"Hessian_psi", 0))) __PYX_ERR(0, 2296, __pyx_L1_error)
3314 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobianArray), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobianArray", 0))) __PYX_ERR(0, 2297, __pyx_L1_error)
3315 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hessian_vArray), __pyx_ptype_5numpy_ndarray, 1,
"Hessian_vArray", 0))) __PYX_ERR(0, 2298, __pyx_L1_error)
3316 __pyx_r = __pyx_pf_13cfemIntegrals_parametricFiniteElementSpace_getHessianValues(__pyx_self, __pyx_v_Hessian_psi, __pyx_v_inverseJacobianArray, __pyx_v_Hessian_vArray);
3323 __Pyx_RefNannyFinishContext();
3327 static PyObject *__pyx_pf_13cfemIntegrals_parametricFiniteElementSpace_getHessianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_Hessian_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_Hessian_vArray) {
3328 int __pyx_v_nElements_global;
3329 int __pyx_v_nQuadraturePoints_element;
3330 int __pyx_v_nDOF_element;
3331 int __pyx_v_nSpace_global;
3332 PyObject *__pyx_r = NULL;
3333 __Pyx_RefNannyDeclarations
3334 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getHessianValues", 0);
3343 __pyx_v_nElements_global = (__pyx_v_Hessian_vArray->dimensions[0]);
3352 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hessian_vArray->dimensions[1]);
3361 __pyx_v_nDOF_element = (__pyx_v_Hessian_vArray->dimensions[2]);
3370 __pyx_v_nSpace_global = (__pyx_v_Hessian_vArray->dimensions[3]);
3379 parametricFiniteElementSpace_getHessianValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_Hessian_psi->data), ((
double *)__pyx_v_inverseJacobianArray->data), ((
double *)__pyx_v_Hessian_vArray->data));
3390 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3391 __Pyx_XGIVEREF(__pyx_r);
3392 __Pyx_RefNannyFinishContext();
3405 static PyObject *__pyx_pw_13cfemIntegrals_3updateDiffusion2_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3406 static PyMethodDef __pyx_mdef_13cfemIntegrals_3updateDiffusion2_strong = {
"updateDiffusion2_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_3updateDiffusion2_strong, METH_VARARGS|METH_KEYWORDS, 0};
3407 static PyObject *__pyx_pw_13cfemIntegrals_3updateDiffusion2_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3408 PyArrayObject *__pyx_v_a = 0;
3409 PyArrayObject *__pyx_v_Hess_phi = 0;
3410 PyArrayObject *__pyx_v_strong_residual = 0;
3411 int __pyx_lineno = 0;
3412 const char *__pyx_filename = NULL;
3413 int __pyx_clineno = 0;
3414 PyObject *__pyx_r = 0;
3415 __Pyx_RefNannyDeclarations
3416 __Pyx_RefNannySetupContext(
"updateDiffusion2_strong (wrapper)", 0);
3418 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_Hess_phi,&__pyx_n_s_strong_residual,0};
3419 PyObject* values[3] = {0,0,0};
3420 if (unlikely(__pyx_kwds)) {
3422 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3424 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3426 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3428 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3431 default:
goto __pyx_L5_argtuple_error;
3433 kw_args = PyDict_Size(__pyx_kwds);
3436 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3437 else goto __pyx_L5_argtuple_error;
3440 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_phi)) != 0)) kw_args--;
3442 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong", 1, 3, 3, 1); __PYX_ERR(0, 2310, __pyx_L3_error)
3446 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
3448 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong", 1, 3, 3, 2); __PYX_ERR(0, 2310, __pyx_L3_error)
3451 if (unlikely(kw_args > 0)) {
3452 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion2_strong") < 0)) __PYX_ERR(0, 2310, __pyx_L3_error)
3454 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
3455 goto __pyx_L5_argtuple_error;
3457 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3458 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3459 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3461 __pyx_v_a = ((PyArrayObject *)values[0]);
3462 __pyx_v_Hess_phi = ((PyArrayObject *)values[1]);
3463 __pyx_v_strong_residual = ((PyArrayObject *)values[2]);
3465 goto __pyx_L4_argument_unpacking_done;
3466 __pyx_L5_argtuple_error:;
3467 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2310, __pyx_L3_error)
3469 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion2_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
3470 __Pyx_RefNannyFinishContext();
3472 __pyx_L4_argument_unpacking_done:;
3473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2310, __pyx_L1_error)
3474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_phi), __pyx_ptype_5numpy_ndarray, 1,
"Hess_phi", 0))) __PYX_ERR(0, 2311, __pyx_L1_error)
3475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 2312, __pyx_L1_error)
3476 __pyx_r = __pyx_pf_13cfemIntegrals_2updateDiffusion2_strong(__pyx_self, __pyx_v_a, __pyx_v_Hess_phi, __pyx_v_strong_residual);
3483 __Pyx_RefNannyFinishContext();
3487 static PyObject *__pyx_pf_13cfemIntegrals_2updateDiffusion2_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_strong_residual) {
3488 int __pyx_v_nElements_global;
3489 int __pyx_v_nQuadraturePoints_element;
3491 PyObject *__pyx_r = NULL;
3492 __Pyx_RefNannyDeclarations
3493 __Pyx_RefNannySetupContext(
"updateDiffusion2_strong", 0);
3502 __pyx_v_nElements_global = (__pyx_v_Hess_phi->dimensions[0]);
3511 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_phi->dimensions[1]);
3520 __pyx_v_nSpace = (__pyx_v_Hess_phi->dimensions[2]);
3529 updateDiffusion2_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_Hess_phi->data), ((
double *)__pyx_v_strong_residual->data));
3540 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3541 __Pyx_XGIVEREF(__pyx_r);
3542 __Pyx_RefNannyFinishContext();
3555 static PyObject *__pyx_pw_13cfemIntegrals_5updateDiffusion2_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3556 static PyMethodDef __pyx_mdef_13cfemIntegrals_5updateDiffusion2_strong_sd = {
"updateDiffusion2_strong_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_5updateDiffusion2_strong_sd, METH_VARARGS|METH_KEYWORDS, 0};
3557 static PyObject *__pyx_pw_13cfemIntegrals_5updateDiffusion2_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3558 PyArrayObject *__pyx_v_rowptr = 0;
3559 PyArrayObject *__pyx_v_colind = 0;
3560 PyArrayObject *__pyx_v_a = 0;
3561 PyArrayObject *__pyx_v_Hess_phi = 0;
3562 PyArrayObject *__pyx_v_strong_residual = 0;
3563 int __pyx_lineno = 0;
3564 const char *__pyx_filename = NULL;
3565 int __pyx_clineno = 0;
3566 PyObject *__pyx_r = 0;
3567 __Pyx_RefNannyDeclarations
3568 __Pyx_RefNannySetupContext(
"updateDiffusion2_strong_sd (wrapper)", 0);
3570 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_a,&__pyx_n_s_Hess_phi,&__pyx_n_s_strong_residual,0};
3571 PyObject* values[5] = {0,0,0,0,0};
3572 if (unlikely(__pyx_kwds)) {
3574 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3576 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3578 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3580 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3582 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3584 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3587 default:
goto __pyx_L5_argtuple_error;
3589 kw_args = PyDict_Size(__pyx_kwds);
3592 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
3593 else goto __pyx_L5_argtuple_error;
3596 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
3598 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong_sd", 1, 5, 5, 1); __PYX_ERR(0, 2322, __pyx_L3_error)
3602 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3604 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong_sd", 1, 5, 5, 2); __PYX_ERR(0, 2322, __pyx_L3_error)
3608 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_phi)) != 0)) kw_args--;
3610 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong_sd", 1, 5, 5, 3); __PYX_ERR(0, 2322, __pyx_L3_error)
3614 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
3616 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong_sd", 1, 5, 5, 4); __PYX_ERR(0, 2322, __pyx_L3_error)
3619 if (unlikely(kw_args > 0)) {
3620 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion2_strong_sd") < 0)) __PYX_ERR(0, 2322, __pyx_L3_error)
3622 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
3623 goto __pyx_L5_argtuple_error;
3625 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3626 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3627 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3628 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3629 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3631 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
3632 __pyx_v_colind = ((PyArrayObject *)values[1]);
3633 __pyx_v_a = ((PyArrayObject *)values[2]);
3634 __pyx_v_Hess_phi = ((PyArrayObject *)values[3]);
3635 __pyx_v_strong_residual = ((PyArrayObject *)values[4]);
3637 goto __pyx_L4_argument_unpacking_done;
3638 __pyx_L5_argtuple_error:;
3639 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_strong_sd", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2322, __pyx_L3_error)
3641 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion2_strong_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
3642 __Pyx_RefNannyFinishContext();
3644 __pyx_L4_argument_unpacking_done:;
3645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2322, __pyx_L1_error)
3646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2323, __pyx_L1_error)
3647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2324, __pyx_L1_error)
3648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_phi), __pyx_ptype_5numpy_ndarray, 1,
"Hess_phi", 0))) __PYX_ERR(0, 2325, __pyx_L1_error)
3649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 2326, __pyx_L1_error)
3650 __pyx_r = __pyx_pf_13cfemIntegrals_4updateDiffusion2_strong_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_a, __pyx_v_Hess_phi, __pyx_v_strong_residual);
3657 __Pyx_RefNannyFinishContext();
3661 static PyObject *__pyx_pf_13cfemIntegrals_4updateDiffusion2_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_strong_residual) {
3662 int __pyx_v_nElements_global;
3663 int __pyx_v_nQuadraturePoints_element;
3665 PyObject *__pyx_r = NULL;
3666 __Pyx_RefNannyDeclarations
3667 __Pyx_RefNannySetupContext(
"updateDiffusion2_strong_sd", 0);
3676 __pyx_v_nElements_global = (__pyx_v_Hess_phi->dimensions[0]);
3685 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_phi->dimensions[1]);
3694 __pyx_v_nSpace = (__pyx_v_Hess_phi->dimensions[2]);
3703 updateDiffusion2_strong_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_Hess_phi->data), ((
double *)__pyx_v_strong_residual->data));
3714 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3715 __Pyx_XGIVEREF(__pyx_r);
3716 __Pyx_RefNannyFinishContext();
3729 static PyObject *__pyx_pw_13cfemIntegrals_7updateDiffusionJacobian2_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3730 static PyMethodDef __pyx_mdef_13cfemIntegrals_7updateDiffusionJacobian2_strong = {
"updateDiffusionJacobian2_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_7updateDiffusionJacobian2_strong, METH_VARARGS|METH_KEYWORDS, 0};
3731 static PyObject *__pyx_pw_13cfemIntegrals_7updateDiffusionJacobian2_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3732 PyArrayObject *__pyx_v_l2g = 0;
3733 PyArrayObject *__pyx_v_a = 0;
3734 PyArrayObject *__pyx_v_da = 0;
3735 PyArrayObject *__pyx_v_v = 0;
3736 PyArrayObject *__pyx_v_Hess_phi = 0;
3737 PyArrayObject *__pyx_v_dphi = 0;
3738 PyArrayObject *__pyx_v_Hess_v = 0;
3739 PyArrayObject *__pyx_v_dstrong_residual = 0;
3740 int __pyx_lineno = 0;
3741 const char *__pyx_filename = NULL;
3742 int __pyx_clineno = 0;
3743 PyObject *__pyx_r = 0;
3744 __Pyx_RefNannyDeclarations
3745 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian2_strong (wrapper)", 0);
3747 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_v,&__pyx_n_s_Hess_phi,&__pyx_n_s_dphi,&__pyx_n_s_Hess_v,&__pyx_n_s_dstrong_residual,0};
3748 PyObject* values[8] = {0,0,0,0,0,0,0,0};
3749 if (unlikely(__pyx_kwds)) {
3751 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3753 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3755 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3757 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3759 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3761 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3763 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3765 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3767 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3770 default:
goto __pyx_L5_argtuple_error;
3772 kw_args = PyDict_Size(__pyx_kwds);
3775 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
3776 else goto __pyx_L5_argtuple_error;
3779 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
3781 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 1); __PYX_ERR(0, 2338, __pyx_L3_error)
3785 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
3787 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 2); __PYX_ERR(0, 2338, __pyx_L3_error)
3791 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
3793 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 3); __PYX_ERR(0, 2338, __pyx_L3_error)
3797 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_phi)) != 0)) kw_args--;
3799 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 4); __PYX_ERR(0, 2338, __pyx_L3_error)
3803 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
3805 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 5); __PYX_ERR(0, 2338, __pyx_L3_error)
3809 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_v)) != 0)) kw_args--;
3811 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 6); __PYX_ERR(0, 2338, __pyx_L3_error)
3815 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
3817 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, 7); __PYX_ERR(0, 2338, __pyx_L3_error)
3820 if (unlikely(kw_args > 0)) {
3821 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian2_strong") < 0)) __PYX_ERR(0, 2338, __pyx_L3_error)
3823 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
3824 goto __pyx_L5_argtuple_error;
3826 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3827 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3828 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3829 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3830 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3831 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3832 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3833 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3835 __pyx_v_l2g = ((PyArrayObject *)values[0]);
3836 __pyx_v_a = ((PyArrayObject *)values[1]);
3837 __pyx_v_da = ((PyArrayObject *)values[2]);
3838 __pyx_v_v = ((PyArrayObject *)values[3]);
3839 __pyx_v_Hess_phi = ((PyArrayObject *)values[4]);
3840 __pyx_v_dphi = ((PyArrayObject *)values[5]);
3841 __pyx_v_Hess_v = ((PyArrayObject *)values[6]);
3842 __pyx_v_dstrong_residual = ((PyArrayObject *)values[7]);
3844 goto __pyx_L4_argument_unpacking_done;
3845 __pyx_L5_argtuple_error:;
3846 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2338, __pyx_L3_error)
3848 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian2_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
3849 __Pyx_RefNannyFinishContext();
3851 __pyx_L4_argument_unpacking_done:;
3852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2338, __pyx_L1_error)
3853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2339, __pyx_L1_error)
3854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 2340, __pyx_L1_error)
3855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2341, __pyx_L1_error)
3856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_phi), __pyx_ptype_5numpy_ndarray, 1,
"Hess_phi", 0))) __PYX_ERR(0, 2342, __pyx_L1_error)
3857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 2343, __pyx_L1_error)
3858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_v), __pyx_ptype_5numpy_ndarray, 1,
"Hess_v", 0))) __PYX_ERR(0, 2344, __pyx_L1_error)
3859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 2345, __pyx_L1_error)
3860 __pyx_r = __pyx_pf_13cfemIntegrals_6updateDiffusionJacobian2_strong(__pyx_self, __pyx_v_l2g, __pyx_v_a, __pyx_v_da, __pyx_v_v, __pyx_v_Hess_phi, __pyx_v_dphi, __pyx_v_Hess_v, __pyx_v_dstrong_residual);
3867 __Pyx_RefNannyFinishContext();
3871 static PyObject *__pyx_pf_13cfemIntegrals_6updateDiffusionJacobian2_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_Hess_v, PyArrayObject *__pyx_v_dstrong_residual) {
3872 int __pyx_v_nElements_global;
3873 int __pyx_v_nQuadraturePoints_element;
3874 int __pyx_v_nDOF_trial_element;
3876 PyObject *__pyx_r = NULL;
3877 __Pyx_RefNannyDeclarations
3878 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian2_strong", 0);
3887 __pyx_v_nElements_global = (__pyx_v_Hess_v->dimensions[0]);
3896 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_v->dimensions[1]);
3905 __pyx_v_nDOF_trial_element = (__pyx_v_Hess_v->dimensions[2]);
3914 __pyx_v_nSpace = (__pyx_v_Hess_v->dimensions[3]);
3923 updateDiffusionJacobian2_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_Hess_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_Hess_v->data), ((
double *)__pyx_v_dstrong_residual->data));
3934 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3935 __Pyx_XGIVEREF(__pyx_r);
3936 __Pyx_RefNannyFinishContext();
3949 static PyObject *__pyx_pw_13cfemIntegrals_9updateDiffusionJacobian2_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3950 static PyMethodDef __pyx_mdef_13cfemIntegrals_9updateDiffusionJacobian2_strong_sd = {
"updateDiffusionJacobian2_strong_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_9updateDiffusionJacobian2_strong_sd, METH_VARARGS|METH_KEYWORDS, 0};
3951 static PyObject *__pyx_pw_13cfemIntegrals_9updateDiffusionJacobian2_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3952 PyArrayObject *__pyx_v_rowptr = 0;
3953 PyArrayObject *__pyx_v_colind = 0;
3954 PyArrayObject *__pyx_v_l2g = 0;
3955 PyArrayObject *__pyx_v_a = 0;
3956 PyArrayObject *__pyx_v_da = 0;
3957 PyArrayObject *__pyx_v_v = 0;
3958 PyArrayObject *__pyx_v_Hess_phi = 0;
3959 PyArrayObject *__pyx_v_dphi = 0;
3960 PyArrayObject *__pyx_v_Hess_v = 0;
3961 PyArrayObject *__pyx_v_dstrong_residual = 0;
3962 int __pyx_lineno = 0;
3963 const char *__pyx_filename = NULL;
3964 int __pyx_clineno = 0;
3965 PyObject *__pyx_r = 0;
3966 __Pyx_RefNannyDeclarations
3967 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian2_strong_sd (wrapper)", 0);
3969 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_v,&__pyx_n_s_Hess_phi,&__pyx_n_s_dphi,&__pyx_n_s_Hess_v,&__pyx_n_s_dstrong_residual,0};
3970 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
3971 if (unlikely(__pyx_kwds)) {
3973 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
3975 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
3977 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
3979 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
3981 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
3983 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
3985 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
3987 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
3989 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
3991 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3993 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3996 default:
goto __pyx_L5_argtuple_error;
3998 kw_args = PyDict_Size(__pyx_kwds);
4001 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
4002 else goto __pyx_L5_argtuple_error;
4005 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
4007 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 1); __PYX_ERR(0, 2362, __pyx_L3_error)
4011 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
4013 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 2); __PYX_ERR(0, 2362, __pyx_L3_error)
4017 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4019 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 3); __PYX_ERR(0, 2362, __pyx_L3_error)
4023 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
4025 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 4); __PYX_ERR(0, 2362, __pyx_L3_error)
4029 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
4031 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 5); __PYX_ERR(0, 2362, __pyx_L3_error)
4035 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_phi)) != 0)) kw_args--;
4037 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 6); __PYX_ERR(0, 2362, __pyx_L3_error)
4041 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
4043 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 7); __PYX_ERR(0, 2362, __pyx_L3_error)
4047 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_v)) != 0)) kw_args--;
4049 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 8); __PYX_ERR(0, 2362, __pyx_L3_error)
4053 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
4055 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, 9); __PYX_ERR(0, 2362, __pyx_L3_error)
4058 if (unlikely(kw_args > 0)) {
4059 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian2_strong_sd") < 0)) __PYX_ERR(0, 2362, __pyx_L3_error)
4061 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
4062 goto __pyx_L5_argtuple_error;
4064 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4065 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4066 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4067 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4068 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4069 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
4070 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
4071 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
4072 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4073 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4075 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
4076 __pyx_v_colind = ((PyArrayObject *)values[1]);
4077 __pyx_v_l2g = ((PyArrayObject *)values[2]);
4078 __pyx_v_a = ((PyArrayObject *)values[3]);
4079 __pyx_v_da = ((PyArrayObject *)values[4]);
4080 __pyx_v_v = ((PyArrayObject *)values[5]);
4081 __pyx_v_Hess_phi = ((PyArrayObject *)values[6]);
4082 __pyx_v_dphi = ((PyArrayObject *)values[7]);
4083 __pyx_v_Hess_v = ((PyArrayObject *)values[8]);
4084 __pyx_v_dstrong_residual = ((PyArrayObject *)values[9]);
4086 goto __pyx_L4_argument_unpacking_done;
4087 __pyx_L5_argtuple_error:;
4088 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian2_strong_sd", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2362, __pyx_L3_error)
4090 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian2_strong_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
4091 __Pyx_RefNannyFinishContext();
4093 __pyx_L4_argument_unpacking_done:;
4094 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2362, __pyx_L1_error)
4095 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2363, __pyx_L1_error)
4096 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2364, __pyx_L1_error)
4097 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2365, __pyx_L1_error)
4098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 2366, __pyx_L1_error)
4099 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2367, __pyx_L1_error)
4100 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_phi), __pyx_ptype_5numpy_ndarray, 1,
"Hess_phi", 0))) __PYX_ERR(0, 2368, __pyx_L1_error)
4101 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 2369, __pyx_L1_error)
4102 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_v), __pyx_ptype_5numpy_ndarray, 1,
"Hess_v", 0))) __PYX_ERR(0, 2370, __pyx_L1_error)
4103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 2371, __pyx_L1_error)
4104 __pyx_r = __pyx_pf_13cfemIntegrals_8updateDiffusionJacobian2_strong_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_a, __pyx_v_da, __pyx_v_v, __pyx_v_Hess_phi, __pyx_v_dphi, __pyx_v_Hess_v, __pyx_v_dstrong_residual);
4111 __Pyx_RefNannyFinishContext();
4115 static PyObject *__pyx_pf_13cfemIntegrals_8updateDiffusionJacobian2_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_Hess_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_Hess_v, PyArrayObject *__pyx_v_dstrong_residual) {
4116 int __pyx_v_nElements_global;
4117 int __pyx_v_nQuadraturePoints_element;
4118 int __pyx_v_nDOF_trial_element;
4120 PyObject *__pyx_r = NULL;
4121 __Pyx_RefNannyDeclarations
4122 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian2_strong_sd", 0);
4131 __pyx_v_nElements_global = (__pyx_v_Hess_v->dimensions[0]);
4140 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_v->dimensions[1]);
4149 __pyx_v_nDOF_trial_element = (__pyx_v_Hess_v->dimensions[2]);
4158 __pyx_v_nSpace = (__pyx_v_Hess_v->dimensions[3]);
4167 updateDiffusionJacobian2_strong_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_Hess_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_Hess_v->data), ((
double *)__pyx_v_dstrong_residual->data));
4178 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4179 __Pyx_XGIVEREF(__pyx_r);
4180 __Pyx_RefNannyFinishContext();
4193 static PyObject *__pyx_pw_13cfemIntegrals_11updateDiffusion2_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4194 static PyMethodDef __pyx_mdef_13cfemIntegrals_11updateDiffusion2_adjoint = {
"updateDiffusion2_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_11updateDiffusion2_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
4195 static PyObject *__pyx_pw_13cfemIntegrals_11updateDiffusion2_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4196 PyArrayObject *__pyx_v_a = 0;
4197 PyArrayObject *__pyx_v_Hess_w_dV = 0;
4198 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
4199 int __pyx_lineno = 0;
4200 const char *__pyx_filename = NULL;
4201 int __pyx_clineno = 0;
4202 PyObject *__pyx_r = 0;
4203 __Pyx_RefNannyDeclarations
4204 __Pyx_RefNannySetupContext(
"updateDiffusion2_adjoint (wrapper)", 0);
4206 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_Hess_w_dV,&__pyx_n_s_Lstar_w_dV,0};
4207 PyObject* values[3] = {0,0,0};
4208 if (unlikely(__pyx_kwds)) {
4210 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4212 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4214 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4216 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4219 default:
goto __pyx_L5_argtuple_error;
4221 kw_args = PyDict_Size(__pyx_kwds);
4224 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4225 else goto __pyx_L5_argtuple_error;
4228 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_w_dV)) != 0)) kw_args--;
4230 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint", 1, 3, 3, 1); __PYX_ERR(0, 2390, __pyx_L3_error)
4234 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
4236 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint", 1, 3, 3, 2); __PYX_ERR(0, 2390, __pyx_L3_error)
4239 if (unlikely(kw_args > 0)) {
4240 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion2_adjoint") < 0)) __PYX_ERR(0, 2390, __pyx_L3_error)
4242 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
4243 goto __pyx_L5_argtuple_error;
4245 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4246 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4247 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4249 __pyx_v_a = ((PyArrayObject *)values[0]);
4250 __pyx_v_Hess_w_dV = ((PyArrayObject *)values[1]);
4251 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[2]);
4253 goto __pyx_L4_argument_unpacking_done;
4254 __pyx_L5_argtuple_error:;
4255 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2390, __pyx_L3_error)
4257 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion2_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
4258 __Pyx_RefNannyFinishContext();
4260 __pyx_L4_argument_unpacking_done:;
4261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2390, __pyx_L1_error)
4262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Hess_w_dV", 0))) __PYX_ERR(0, 2391, __pyx_L1_error)
4263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 2392, __pyx_L1_error)
4264 __pyx_r = __pyx_pf_13cfemIntegrals_10updateDiffusion2_adjoint(__pyx_self, __pyx_v_a, __pyx_v_Hess_w_dV, __pyx_v_Lstar_w_dV);
4271 __Pyx_RefNannyFinishContext();
4275 static PyObject *__pyx_pf_13cfemIntegrals_10updateDiffusion2_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
4276 int __pyx_v_nElements_global;
4277 int __pyx_v_nQuadraturePoints_element;
4278 int __pyx_v_nDOF_test_element;
4280 PyObject *__pyx_r = NULL;
4281 __Pyx_RefNannyDeclarations
4282 __Pyx_RefNannySetupContext(
"updateDiffusion2_adjoint", 0);
4291 __pyx_v_nElements_global = (__pyx_v_Hess_w_dV->dimensions[0]);
4300 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_w_dV->dimensions[1]);
4309 __pyx_v_nDOF_test_element = (__pyx_v_Hess_w_dV->dimensions[2]);
4318 __pyx_v_nSpace = (__pyx_v_Hess_w_dV->dimensions[3]);
4327 updateDiffusion2_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_Hess_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
4338 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4339 __Pyx_XGIVEREF(__pyx_r);
4340 __Pyx_RefNannyFinishContext();
4353 static PyObject *__pyx_pw_13cfemIntegrals_13updateDiffusion2_adjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4354 static PyMethodDef __pyx_mdef_13cfemIntegrals_13updateDiffusion2_adjoint_sd = {
"updateDiffusion2_adjoint_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_13updateDiffusion2_adjoint_sd, METH_VARARGS|METH_KEYWORDS, 0};
4355 static PyObject *__pyx_pw_13cfemIntegrals_13updateDiffusion2_adjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4356 PyArrayObject *__pyx_v_rowptr = 0;
4357 PyArrayObject *__pyx_v_colind = 0;
4358 PyArrayObject *__pyx_v_a = 0;
4359 PyArrayObject *__pyx_v_Hess_w_dV = 0;
4360 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
4361 int __pyx_lineno = 0;
4362 const char *__pyx_filename = NULL;
4363 int __pyx_clineno = 0;
4364 PyObject *__pyx_r = 0;
4365 __Pyx_RefNannyDeclarations
4366 __Pyx_RefNannySetupContext(
"updateDiffusion2_adjoint_sd (wrapper)", 0);
4368 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_a,&__pyx_n_s_Hess_w_dV,&__pyx_n_s_Lstar_w_dV,0};
4369 PyObject* values[5] = {0,0,0,0,0};
4370 if (unlikely(__pyx_kwds)) {
4372 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4374 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4376 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4378 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4380 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4382 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4385 default:
goto __pyx_L5_argtuple_error;
4387 kw_args = PyDict_Size(__pyx_kwds);
4390 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
4391 else goto __pyx_L5_argtuple_error;
4394 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
4396 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint_sd", 1, 5, 5, 1); __PYX_ERR(0, 2404, __pyx_L3_error)
4400 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
4402 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint_sd", 1, 5, 5, 2); __PYX_ERR(0, 2404, __pyx_L3_error)
4406 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_w_dV)) != 0)) kw_args--;
4408 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint_sd", 1, 5, 5, 3); __PYX_ERR(0, 2404, __pyx_L3_error)
4412 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
4414 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint_sd", 1, 5, 5, 4); __PYX_ERR(0, 2404, __pyx_L3_error)
4417 if (unlikely(kw_args > 0)) {
4418 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion2_adjoint_sd") < 0)) __PYX_ERR(0, 2404, __pyx_L3_error)
4420 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
4421 goto __pyx_L5_argtuple_error;
4423 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4424 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4425 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4426 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4427 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
4429 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
4430 __pyx_v_colind = ((PyArrayObject *)values[1]);
4431 __pyx_v_a = ((PyArrayObject *)values[2]);
4432 __pyx_v_Hess_w_dV = ((PyArrayObject *)values[3]);
4433 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[4]);
4435 goto __pyx_L4_argument_unpacking_done;
4436 __pyx_L5_argtuple_error:;
4437 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion2_adjoint_sd", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2404, __pyx_L3_error)
4439 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion2_adjoint_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
4440 __Pyx_RefNannyFinishContext();
4442 __pyx_L4_argument_unpacking_done:;
4443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 2404, __pyx_L1_error)
4444 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 2405, __pyx_L1_error)
4445 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 2406, __pyx_L1_error)
4446 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Hess_w_dV", 0))) __PYX_ERR(0, 2407, __pyx_L1_error)
4447 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 2408, __pyx_L1_error)
4448 __pyx_r = __pyx_pf_13cfemIntegrals_12updateDiffusion2_adjoint_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_a, __pyx_v_Hess_w_dV, __pyx_v_Lstar_w_dV);
4455 __Pyx_RefNannyFinishContext();
4459 static PyObject *__pyx_pf_13cfemIntegrals_12updateDiffusion2_adjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_Hess_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
4460 int __pyx_v_nElements_global;
4461 int __pyx_v_nQuadraturePoints_element;
4462 int __pyx_v_nDOF_test_element;
4464 PyObject *__pyx_r = NULL;
4465 __Pyx_RefNannyDeclarations
4466 __Pyx_RefNannySetupContext(
"updateDiffusion2_adjoint_sd", 0);
4475 __pyx_v_nElements_global = (__pyx_v_Hess_w_dV->dimensions[0]);
4484 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_w_dV->dimensions[1]);
4493 __pyx_v_nDOF_test_element = (__pyx_v_Hess_w_dV->dimensions[2]);
4502 __pyx_v_nSpace = (__pyx_v_Hess_w_dV->dimensions[3]);
4511 updateDiffusion2_adjoint_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_Hess_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
4522 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4523 __Pyx_XGIVEREF(__pyx_r);
4524 __Pyx_RefNannyFinishContext();
4537 static PyObject *__pyx_pw_13cfemIntegrals_15calculateWeightedShapeHessians(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4538 static PyMethodDef __pyx_mdef_13cfemIntegrals_15calculateWeightedShapeHessians = {
"calculateWeightedShapeHessians", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_15calculateWeightedShapeHessians, METH_VARARGS|METH_KEYWORDS, 0};
4539 static PyObject *__pyx_pw_13cfemIntegrals_15calculateWeightedShapeHessians(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4540 PyArrayObject *__pyx_v_dVR = 0;
4541 PyArrayObject *__pyx_v_abs_det_jac = 0;
4542 PyArrayObject *__pyx_v_Hess_w = 0;
4543 PyArrayObject *__pyx_v_Hess_w_dV = 0;
4544 int __pyx_lineno = 0;
4545 const char *__pyx_filename = NULL;
4546 int __pyx_clineno = 0;
4547 PyObject *__pyx_r = 0;
4548 __Pyx_RefNannyDeclarations
4549 __Pyx_RefNannySetupContext(
"calculateWeightedShapeHessians (wrapper)", 0);
4551 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dVR,&__pyx_n_s_abs_det_jac,&__pyx_n_s_Hess_w,&__pyx_n_s_Hess_w_dV,0};
4552 PyObject* values[4] = {0,0,0,0};
4553 if (unlikely(__pyx_kwds)) {
4555 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4557 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4559 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4561 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4563 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4566 default:
goto __pyx_L5_argtuple_error;
4568 kw_args = PyDict_Size(__pyx_kwds);
4571 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dVR)) != 0)) kw_args--;
4572 else goto __pyx_L5_argtuple_error;
4575 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_jac)) != 0)) kw_args--;
4577 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeHessians", 1, 4, 4, 1); __PYX_ERR(0, 2422, __pyx_L3_error)
4581 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_w)) != 0)) kw_args--;
4583 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeHessians", 1, 4, 4, 2); __PYX_ERR(0, 2422, __pyx_L3_error)
4587 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hess_w_dV)) != 0)) kw_args--;
4589 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeHessians", 1, 4, 4, 3); __PYX_ERR(0, 2422, __pyx_L3_error)
4592 if (unlikely(kw_args > 0)) {
4593 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWeightedShapeHessians") < 0)) __PYX_ERR(0, 2422, __pyx_L3_error)
4595 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
4596 goto __pyx_L5_argtuple_error;
4598 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4599 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4600 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4601 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4603 __pyx_v_dVR = ((PyArrayObject *)values[0]);
4604 __pyx_v_abs_det_jac = ((PyArrayObject *)values[1]);
4605 __pyx_v_Hess_w = ((PyArrayObject *)values[2]);
4606 __pyx_v_Hess_w_dV = ((PyArrayObject *)values[3]);
4608 goto __pyx_L4_argument_unpacking_done;
4609 __pyx_L5_argtuple_error:;
4610 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeHessians", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2422, __pyx_L3_error)
4612 __Pyx_AddTraceback(
"cfemIntegrals.calculateWeightedShapeHessians", __pyx_clineno, __pyx_lineno, __pyx_filename);
4613 __Pyx_RefNannyFinishContext();
4615 __pyx_L4_argument_unpacking_done:;
4616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dVR), __pyx_ptype_5numpy_ndarray, 1,
"dVR", 0))) __PYX_ERR(0, 2422, __pyx_L1_error)
4617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_jac), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_jac", 0))) __PYX_ERR(0, 2423, __pyx_L1_error)
4618 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_w), __pyx_ptype_5numpy_ndarray, 1,
"Hess_w", 0))) __PYX_ERR(0, 2424, __pyx_L1_error)
4619 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hess_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Hess_w_dV", 0))) __PYX_ERR(0, 2425, __pyx_L1_error)
4620 __pyx_r = __pyx_pf_13cfemIntegrals_14calculateWeightedShapeHessians(__pyx_self, __pyx_v_dVR, __pyx_v_abs_det_jac, __pyx_v_Hess_w, __pyx_v_Hess_w_dV);
4627 __Pyx_RefNannyFinishContext();
4631 static PyObject *__pyx_pf_13cfemIntegrals_14calculateWeightedShapeHessians(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_Hess_w, PyArrayObject *__pyx_v_Hess_w_dV) {
4632 int __pyx_v_nElements_global;
4633 int __pyx_v_nQuadraturePoints_element;
4634 int __pyx_v_nDOF_test_element;
4636 PyObject *__pyx_r = NULL;
4637 __Pyx_RefNannyDeclarations
4638 __Pyx_RefNannySetupContext(
"calculateWeightedShapeHessians", 0);
4647 __pyx_v_nElements_global = (__pyx_v_Hess_w_dV->dimensions[0]);
4656 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hess_w_dV->dimensions[1]);
4665 __pyx_v_nDOF_test_element = (__pyx_v_Hess_w_dV->dimensions[2]);
4674 __pyx_v_nSpace = (__pyx_v_Hess_w_dV->dimensions[3]);
4683 calculateWeightedShapeHessians(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dVR->data), ((
double *)__pyx_v_abs_det_jac->data), ((
double *)__pyx_v_Hess_w->data), ((
double *)__pyx_v_Hess_w_dV->data));
4694 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4695 __Pyx_XGIVEREF(__pyx_r);
4696 __Pyx_RefNannyFinishContext();
4709 static PyObject *__pyx_pw_13cfemIntegrals_17calculateFiniteElementFunctionHessianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4710 static PyMethodDef __pyx_mdef_13cfemIntegrals_17calculateFiniteElementFunctionHessianValues = {
"calculateFiniteElementFunctionHessianValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_17calculateFiniteElementFunctionHessianValues, METH_VARARGS|METH_KEYWORDS, 0};
4711 static PyObject *__pyx_pw_13cfemIntegrals_17calculateFiniteElementFunctionHessianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4712 PyArrayObject *__pyx_v_l2g = 0;
4713 PyArrayObject *__pyx_v_dof = 0;
4714 PyArrayObject *__pyx_v_Hessian_v = 0;
4715 PyArrayObject *__pyx_v_Hessian_u = 0;
4716 int __pyx_lineno = 0;
4717 const char *__pyx_filename = NULL;
4718 int __pyx_clineno = 0;
4719 PyObject *__pyx_r = 0;
4720 __Pyx_RefNannyDeclarations
4721 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionHessianValues (wrapper)", 0);
4723 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_Hessian_v,&__pyx_n_s_Hessian_u,0};
4724 PyObject* values[4] = {0,0,0,0};
4725 if (unlikely(__pyx_kwds)) {
4727 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4729 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4731 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4733 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4735 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4738 default:
goto __pyx_L5_argtuple_error;
4740 kw_args = PyDict_Size(__pyx_kwds);
4743 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
4744 else goto __pyx_L5_argtuple_error;
4747 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
4749 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionHessianValues", 1, 4, 4, 1); __PYX_ERR(0, 2438, __pyx_L3_error)
4753 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hessian_v)) != 0)) kw_args--;
4755 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionHessianValues", 1, 4, 4, 2); __PYX_ERR(0, 2438, __pyx_L3_error)
4759 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Hessian_u)) != 0)) kw_args--;
4761 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionHessianValues", 1, 4, 4, 3); __PYX_ERR(0, 2438, __pyx_L3_error)
4764 if (unlikely(kw_args > 0)) {
4765 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionHessianValues") < 0)) __PYX_ERR(0, 2438, __pyx_L3_error)
4767 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
4768 goto __pyx_L5_argtuple_error;
4770 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4771 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4772 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
4773 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
4775 __pyx_v_l2g = ((PyArrayObject *)values[0]);
4776 __pyx_v_dof = ((PyArrayObject *)values[1]);
4777 __pyx_v_Hessian_v = ((PyArrayObject *)values[2]);
4778 __pyx_v_Hessian_u = ((PyArrayObject *)values[3]);
4780 goto __pyx_L4_argument_unpacking_done;
4781 __pyx_L5_argtuple_error:;
4782 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionHessianValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2438, __pyx_L3_error)
4784 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionHessianValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
4785 __Pyx_RefNannyFinishContext();
4787 __pyx_L4_argument_unpacking_done:;
4788 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2438, __pyx_L1_error)
4789 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 2439, __pyx_L1_error)
4790 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hessian_v), __pyx_ptype_5numpy_ndarray, 1,
"Hessian_v", 0))) __PYX_ERR(0, 2440, __pyx_L1_error)
4791 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Hessian_u), __pyx_ptype_5numpy_ndarray, 1,
"Hessian_u", 0))) __PYX_ERR(0, 2441, __pyx_L1_error)
4792 __pyx_r = __pyx_pf_13cfemIntegrals_16calculateFiniteElementFunctionHessianValues(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_Hessian_v, __pyx_v_Hessian_u);
4799 __Pyx_RefNannyFinishContext();
4803 static PyObject *__pyx_pf_13cfemIntegrals_16calculateFiniteElementFunctionHessianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_Hessian_v, PyArrayObject *__pyx_v_Hessian_u) {
4804 int __pyx_v_nElements_global;
4805 int __pyx_v_nQuadraturePoints_element;
4806 int __pyx_v_nDOF_trial_element;
4807 int __pyx_v_nComponents;
4810 PyObject *__pyx_r = NULL;
4811 __Pyx_RefNannyDeclarations
4814 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionHessianValues", 0);
4823 __pyx_v_nElements_global = (__pyx_v_Hessian_v->dimensions[0]);
4832 __pyx_v_nQuadraturePoints_element = (__pyx_v_Hessian_v->dimensions[1]);
4841 __pyx_v_nDOF_trial_element = (__pyx_v_Hessian_v->dimensions[2]);
4850 __pyx_v_nComponents = 1;
4868 __pyx_t_1 = __pyx_v_Hessian_u->nd;
4869 __pyx_v_nd = __pyx_t_1;
4878 __pyx_t_2 = ((__pyx_v_nd == 5) != 0);
4888 __pyx_v_nComponents = (__pyx_v_Hessian_u->dimensions[2]);
4897 __pyx_v_nSpace = (__pyx_v_Hessian_u->dimensions[3]);
4917 __pyx_v_nComponents = 1;
4926 __pyx_v_nSpace = (__pyx_v_Hessian_u->dimensions[2]);
4937 calculateFiniteElementFunctionHessianValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_Hessian_v->data), ((
double *)__pyx_v_Hessian_u->data));
4948 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4949 __Pyx_XGIVEREF(__pyx_r);
4950 __Pyx_RefNannyFinishContext();
4963 static PyObject *__pyx_pw_13cfemIntegrals_19updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
4964 static PyMethodDef __pyx_mdef_13cfemIntegrals_19updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_19updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR, METH_VARARGS|METH_KEYWORDS, 0};
4965 static PyObject *__pyx_pw_13cfemIntegrals_19updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
4966 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
4967 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
4968 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
4969 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
4970 PyArrayObject *__pyx_v_freeLocal_r = 0;
4971 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
4972 PyArrayObject *__pyx_v_freeLocal_u = 0;
4973 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
4974 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
4975 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided = 0;
4976 PyArrayObject *__pyx_v_w_dS = 0;
4977 PyObject *__pyx_v_jac = 0;
4978 int __pyx_lineno = 0;
4979 const char *__pyx_filename = NULL;
4980 int __pyx_clineno = 0;
4981 PyObject *__pyx_r = 0;
4982 __Pyx_RefNannyDeclarations
4983 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR (wrapper)", 0);
4985 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_elementBoundaryFluxJacobian_2sid,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
4986 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
4987 if (unlikely(__pyx_kwds)) {
4989 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4991 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
4993 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
4995 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
4997 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
4999 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5001 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5003 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5005 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5007 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5009 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5011 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5013 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5016 default:
goto __pyx_L5_argtuple_error;
5018 kw_args = PyDict_Size(__pyx_kwds);
5021 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
5022 else goto __pyx_L5_argtuple_error;
5025 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5027 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 1); __PYX_ERR(0, 2463, __pyx_L3_error)
5031 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5033 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 2); __PYX_ERR(0, 2463, __pyx_L3_error)
5037 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
5039 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 3); __PYX_ERR(0, 2463, __pyx_L3_error)
5043 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
5045 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 4); __PYX_ERR(0, 2463, __pyx_L3_error)
5049 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
5051 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 5); __PYX_ERR(0, 2463, __pyx_L3_error)
5055 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
5057 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 6); __PYX_ERR(0, 2463, __pyx_L3_error)
5061 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
5063 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 7); __PYX_ERR(0, 2463, __pyx_L3_error)
5067 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
5069 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 8); __PYX_ERR(0, 2463, __pyx_L3_error)
5073 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_2sid)) != 0)) kw_args--;
5075 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 9); __PYX_ERR(0, 2463, __pyx_L3_error)
5079 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
5081 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 10); __PYX_ERR(0, 2463, __pyx_L3_error)
5085 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
5087 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, 11); __PYX_ERR(0, 2463, __pyx_L3_error)
5090 if (unlikely(kw_args > 0)) {
5091 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR") < 0)) __PYX_ERR(0, 2463, __pyx_L3_error)
5093 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
5094 goto __pyx_L5_argtuple_error;
5096 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5097 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5098 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5099 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5100 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5101 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5102 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5103 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5104 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5105 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5106 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5107 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5109 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
5110 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5111 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5112 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[3]);
5113 __pyx_v_freeLocal_r = ((PyArrayObject *)values[4]);
5114 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[5]);
5115 __pyx_v_freeLocal_u = ((PyArrayObject *)values[6]);
5116 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[7]);
5117 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[8]);
5118 __pyx_v_elementBoundaryFluxJacobian_2sided = ((PyArrayObject *)values[9]);
5119 __pyx_v_w_dS = ((PyArrayObject *)values[10]);
5120 __pyx_v_jac = values[11];
5122 goto __pyx_L4_argument_unpacking_done;
5123 __pyx_L5_argtuple_error:;
5124 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2463, __pyx_L3_error)
5126 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
5127 __Pyx_RefNannyFinishContext();
5129 __pyx_L4_argument_unpacking_done:;
5130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2463, __pyx_L1_error)
5131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2464, __pyx_L1_error)
5132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2465, __pyx_L1_error)
5133 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 2466, __pyx_L1_error)
5134 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 2467, __pyx_L1_error)
5135 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 2468, __pyx_L1_error)
5136 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 2469, __pyx_L1_error)
5137 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 2470, __pyx_L1_error)
5138 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 2471, __pyx_L1_error)
5139 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_2sided), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_2sided", 0))) __PYX_ERR(0, 2472, __pyx_L1_error)
5140 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 2473, __pyx_L1_error)
5141 __pyx_r = __pyx_pf_13cfemIntegrals_18updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_elementBoundaryFluxJacobian_2sided, __pyx_v_w_dS, __pyx_v_jac);
5148 __Pyx_RefNannyFinishContext();
5152 static PyObject *__pyx_pf_13cfemIntegrals_18updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac) {
5153 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
5154 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
5155 PyArrayObject *__pyx_v_jac_array = 0;
5156 int __pyx_v_nInteriorElementBoundaries_global;
5157 int __pyx_v_nElementBoundaries_element;
5158 int __pyx_v_nQuadraturePoints_elementBoundary;
5159 int __pyx_v_nDOF_test_element;
5160 int __pyx_v_nDOF_trial_element;
5161 PyObject *__pyx_r = NULL;
5162 __Pyx_RefNannyDeclarations
5163 PyObject *__pyx_t_1 = NULL;
5164 PyObject *__pyx_t_2 = NULL;
5165 PyObject *__pyx_t_3 = NULL;
5166 PyObject *__pyx_t_4 = NULL;
5167 PyObject *__pyx_t_5 = NULL;
5168 PyObject *(*__pyx_t_6)(PyObject *);
5169 int __pyx_lineno = 0;
5170 const char *__pyx_filename = NULL;
5171 int __pyx_clineno = 0;
5172 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", 0);
5181 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2476, __pyx_L1_error)
5182 __Pyx_GOTREF(__pyx_t_2);
5184 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
5185 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
5186 if (likely(__pyx_t_3)) {
5187 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
5188 __Pyx_INCREF(__pyx_t_3);
5189 __Pyx_INCREF(
function);
5190 __Pyx_DECREF_SET(__pyx_t_2,
function);
5193 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
5194 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
5195 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2476, __pyx_L1_error)
5196 __Pyx_GOTREF(__pyx_t_1);
5197 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5198 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
5199 PyObject* sequence = __pyx_t_1;
5200 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
5201 if (unlikely(size != 3)) {
5202 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
5203 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
5204 __PYX_ERR(0, 2476, __pyx_L1_error)
5206 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
5207 if (likely(PyTuple_CheckExact(sequence))) {
5208 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
5209 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
5210 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
5212 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
5213 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
5214 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
5216 __Pyx_INCREF(__pyx_t_2);
5217 __Pyx_INCREF(__pyx_t_3);
5218 __Pyx_INCREF(__pyx_t_4);
5220 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2476, __pyx_L1_error)
5221 __Pyx_GOTREF(__pyx_t_2);
5222 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2476, __pyx_L1_error)
5223 __Pyx_GOTREF(__pyx_t_3);
5224 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2476, __pyx_L1_error)
5225 __Pyx_GOTREF(__pyx_t_4);
5227 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5229 Py_ssize_t index = -1;
5230 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2476, __pyx_L1_error)
5231 __Pyx_GOTREF(__pyx_t_5);
5232 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5233 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
5234 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
5235 __Pyx_GOTREF(__pyx_t_2);
5236 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
5237 __Pyx_GOTREF(__pyx_t_3);
5238 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
5239 __Pyx_GOTREF(__pyx_t_4);
5240 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 2476, __pyx_L1_error)
5242 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5243 goto __pyx_L4_unpacking_done;
5244 __pyx_L3_unpacking_failed:;
5245 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
5247 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
5248 __PYX_ERR(0, 2476, __pyx_L1_error)
5249 __pyx_L4_unpacking_done:;
5251 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2476, __pyx_L1_error)
5252 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2476, __pyx_L1_error)
5253 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2476, __pyx_L1_error)
5254 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
5256 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
5258 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
5268 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
5277 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
5286 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
5295 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
5304 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian_2sided->dimensions[4]);
5313 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_2sided->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
5324 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5327 __Pyx_XDECREF(__pyx_t_1);
5328 __Pyx_XDECREF(__pyx_t_2);
5329 __Pyx_XDECREF(__pyx_t_3);
5330 __Pyx_XDECREF(__pyx_t_4);
5331 __Pyx_XDECREF(__pyx_t_5);
5332 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
5335 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
5336 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
5337 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
5338 __Pyx_XGIVEREF(__pyx_r);
5339 __Pyx_RefNannyFinishContext();
5352 static PyObject *__pyx_pw_13cfemIntegrals_21updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5353 static PyMethodDef __pyx_mdef_13cfemIntegrals_21updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_21updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense, METH_VARARGS|METH_KEYWORDS, 0};
5354 static PyObject *__pyx_pw_13cfemIntegrals_21updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5355 int __pyx_v_offset_r;
5356 int __pyx_v_stride_r;
5357 int __pyx_v_offset_u;
5358 int __pyx_v_stride_u;
5359 int __pyx_v_nFreeVDOF_global;
5360 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
5361 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5362 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5363 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
5364 PyArrayObject *__pyx_v_freeLocal_r = 0;
5365 PyArrayObject *__pyx_v_freeGlobal_r = 0;
5366 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
5367 PyArrayObject *__pyx_v_freeLocal_u = 0;
5368 PyArrayObject *__pyx_v_freeGlobal_u = 0;
5369 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided = 0;
5370 PyArrayObject *__pyx_v_w_dS = 0;
5371 PyArrayObject *__pyx_v_jac = 0;
5372 int __pyx_lineno = 0;
5373 const char *__pyx_filename = NULL;
5374 int __pyx_clineno = 0;
5375 PyObject *__pyx_r = 0;
5376 __Pyx_RefNannyDeclarations
5377 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense (wrapper)", 0);
5379 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementBoundaryFluxJacobian_2sid,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
5380 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
5381 if (unlikely(__pyx_kwds)) {
5383 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5385 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5387 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5389 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5391 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5393 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5395 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5397 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5399 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5401 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5403 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5405 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5407 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5409 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5411 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5413 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5415 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5417 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5420 default:
goto __pyx_L5_argtuple_error;
5422 kw_args = PyDict_Size(__pyx_kwds);
5425 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
5426 else goto __pyx_L5_argtuple_error;
5429 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
5431 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 1); __PYX_ERR(0, 2499, __pyx_L3_error)
5435 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
5437 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 2); __PYX_ERR(0, 2499, __pyx_L3_error)
5441 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
5443 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 3); __PYX_ERR(0, 2499, __pyx_L3_error)
5447 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
5449 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 4); __PYX_ERR(0, 2499, __pyx_L3_error)
5453 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
5455 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 5); __PYX_ERR(0, 2499, __pyx_L3_error)
5459 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5461 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 6); __PYX_ERR(0, 2499, __pyx_L3_error)
5465 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5467 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 7); __PYX_ERR(0, 2499, __pyx_L3_error)
5471 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
5473 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 8); __PYX_ERR(0, 2499, __pyx_L3_error)
5477 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
5479 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 9); __PYX_ERR(0, 2499, __pyx_L3_error)
5483 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
5485 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 10); __PYX_ERR(0, 2499, __pyx_L3_error)
5489 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
5491 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 11); __PYX_ERR(0, 2499, __pyx_L3_error)
5495 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
5497 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 12); __PYX_ERR(0, 2499, __pyx_L3_error)
5501 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
5503 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 13); __PYX_ERR(0, 2499, __pyx_L3_error)
5507 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_2sid)) != 0)) kw_args--;
5509 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 14); __PYX_ERR(0, 2499, __pyx_L3_error)
5513 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
5515 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 15); __PYX_ERR(0, 2499, __pyx_L3_error)
5519 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
5521 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, 16); __PYX_ERR(0, 2499, __pyx_L3_error)
5524 if (unlikely(kw_args > 0)) {
5525 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense") < 0)) __PYX_ERR(0, 2499, __pyx_L3_error)
5527 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
5528 goto __pyx_L5_argtuple_error;
5530 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5531 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5532 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5533 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5534 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5535 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5536 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
5537 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
5538 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
5539 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
5540 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
5541 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
5542 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
5543 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
5544 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
5545 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
5546 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
5548 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2499, __pyx_L3_error)
5549 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2500, __pyx_L3_error)
5550 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2501, __pyx_L3_error)
5551 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2502, __pyx_L3_error)
5552 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2503, __pyx_L3_error)
5553 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[5]);
5554 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
5555 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
5556 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[8]);
5557 __pyx_v_freeLocal_r = ((PyArrayObject *)values[9]);
5558 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[10]);
5559 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[11]);
5560 __pyx_v_freeLocal_u = ((PyArrayObject *)values[12]);
5561 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[13]);
5562 __pyx_v_elementBoundaryFluxJacobian_2sided = ((PyArrayObject *)values[14]);
5563 __pyx_v_w_dS = ((PyArrayObject *)values[15]);
5564 __pyx_v_jac = ((PyArrayObject *)values[16]);
5566 goto __pyx_L4_argument_unpacking_done;
5567 __pyx_L5_argtuple_error:;
5568 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2499, __pyx_L3_error)
5570 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
5571 __Pyx_RefNannyFinishContext();
5573 __pyx_L4_argument_unpacking_done:;
5574 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2504, __pyx_L1_error)
5575 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2505, __pyx_L1_error)
5576 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2506, __pyx_L1_error)
5577 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 2507, __pyx_L1_error)
5578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 2508, __pyx_L1_error)
5579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 2509, __pyx_L1_error)
5580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 2510, __pyx_L1_error)
5581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 2511, __pyx_L1_error)
5582 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 2512, __pyx_L1_error)
5583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_2sided), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_2sided", 0))) __PYX_ERR(0, 2513, __pyx_L1_error)
5584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 2514, __pyx_L1_error)
5585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 2515, __pyx_L1_error)
5586 __pyx_r = __pyx_pf_13cfemIntegrals_20updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementBoundaryFluxJacobian_2sided, __pyx_v_w_dS, __pyx_v_jac);
5593 __Pyx_RefNannyFinishContext();
5597 static PyObject *__pyx_pf_13cfemIntegrals_20updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_2sided, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac) {
5598 int __pyx_v_nInteriorElementBoundaries_global;
5599 int __pyx_v_nElementBoundaries_element;
5600 int __pyx_v_nQuadraturePoints_elementBoundary;
5601 int __pyx_v_nDOF_test_element;
5602 int __pyx_v_nDOF_trial_element;
5603 PyObject *__pyx_r = NULL;
5604 __Pyx_RefNannyDeclarations
5605 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense", 0);
5614 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
5623 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
5632 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
5641 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
5650 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian_2sided->dimensions[4]);
5659 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_2sided->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
5670 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5671 __Pyx_XGIVEREF(__pyx_r);
5672 __Pyx_RefNannyFinishContext();
5685 static PyObject *__pyx_pw_13cfemIntegrals_23updateInteriorTwoSidedElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5686 static PyMethodDef __pyx_mdef_13cfemIntegrals_23updateInteriorTwoSidedElementBoundaryFlux = {
"updateInteriorTwoSidedElementBoundaryFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_23updateInteriorTwoSidedElementBoundaryFlux, METH_VARARGS|METH_KEYWORDS, 0};
5687 static PyObject *__pyx_pw_13cfemIntegrals_23updateInteriorTwoSidedElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5688 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
5689 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
5690 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
5691 PyArrayObject *__pyx_v_flux = 0;
5692 PyArrayObject *__pyx_v_w_dS = 0;
5693 PyArrayObject *__pyx_v_residual = 0;
5694 int __pyx_lineno = 0;
5695 const char *__pyx_filename = NULL;
5696 int __pyx_clineno = 0;
5697 PyObject *__pyx_r = 0;
5698 __Pyx_RefNannyDeclarations
5699 __Pyx_RefNannySetupContext(
"updateInteriorTwoSidedElementBoundaryFlux (wrapper)", 0);
5701 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_flux,&__pyx_n_s_w_dS,&__pyx_n_s_residual,0};
5702 PyObject* values[6] = {0,0,0,0,0,0};
5703 if (unlikely(__pyx_kwds)) {
5705 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5707 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5709 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5711 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5713 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5715 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5717 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5720 default:
goto __pyx_L5_argtuple_error;
5722 kw_args = PyDict_Size(__pyx_kwds);
5725 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
5726 else goto __pyx_L5_argtuple_error;
5729 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
5731 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, 1); __PYX_ERR(0, 2543, __pyx_L3_error)
5735 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
5737 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, 2); __PYX_ERR(0, 2543, __pyx_L3_error)
5741 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
5743 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, 3); __PYX_ERR(0, 2543, __pyx_L3_error)
5747 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
5749 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, 4); __PYX_ERR(0, 2543, __pyx_L3_error)
5753 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
5755 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, 5); __PYX_ERR(0, 2543, __pyx_L3_error)
5758 if (unlikely(kw_args > 0)) {
5759 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorTwoSidedElementBoundaryFlux") < 0)) __PYX_ERR(0, 2543, __pyx_L3_error)
5761 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
5762 goto __pyx_L5_argtuple_error;
5764 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5765 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5766 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5767 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5768 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5769 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
5771 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
5772 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
5773 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
5774 __pyx_v_flux = ((PyArrayObject *)values[3]);
5775 __pyx_v_w_dS = ((PyArrayObject *)values[4]);
5776 __pyx_v_residual = ((PyArrayObject *)values[5]);
5778 goto __pyx_L4_argument_unpacking_done;
5779 __pyx_L5_argtuple_error:;
5780 __Pyx_RaiseArgtupleInvalid(
"updateInteriorTwoSidedElementBoundaryFlux", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2543, __pyx_L3_error)
5782 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorTwoSidedElementBoundaryFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
5783 __Pyx_RefNannyFinishContext();
5785 __pyx_L4_argument_unpacking_done:;
5786 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 2543, __pyx_L1_error)
5787 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2544, __pyx_L1_error)
5788 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2545, __pyx_L1_error)
5789 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 2546, __pyx_L1_error)
5790 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 2547, __pyx_L1_error)
5791 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 2548, __pyx_L1_error)
5792 __pyx_r = __pyx_pf_13cfemIntegrals_22updateInteriorTwoSidedElementBoundaryFlux(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_flux, __pyx_v_w_dS, __pyx_v_residual);
5799 __Pyx_RefNannyFinishContext();
5803 static PyObject *__pyx_pf_13cfemIntegrals_22updateInteriorTwoSidedElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual) {
5804 int __pyx_v_nInteriorElementBoundaries_global;
5805 int __pyx_v_nElementBoundaries_element;
5806 int __pyx_v_nQuadraturePoints_elementBoundary;
5807 int __pyx_v_nDOF_test_element;
5808 PyObject *__pyx_r = NULL;
5809 __Pyx_RefNannyDeclarations
5810 __Pyx_RefNannySetupContext(
"updateInteriorTwoSidedElementBoundaryFlux", 0);
5819 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
5828 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
5837 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
5846 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
5855 updateInteriorTwoSidedElementBoundaryFlux(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_residual->data));
5866 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5867 __Pyx_XGIVEREF(__pyx_r);
5868 __Pyx_RefNannyFinishContext();
5881 static PyObject *__pyx_pw_13cfemIntegrals_25calculateCFLADR2speeds(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5882 static PyMethodDef __pyx_mdef_13cfemIntegrals_25calculateCFLADR2speeds = {
"calculateCFLADR2speeds", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_25calculateCFLADR2speeds, METH_VARARGS|METH_KEYWORDS, 0};
5883 static PyObject *__pyx_pw_13cfemIntegrals_25calculateCFLADR2speeds(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5884 PyArrayObject *__pyx_v_elementDiameter = 0;
5885 PyArrayObject *__pyx_v_dm = 0;
5886 PyArrayObject *__pyx_v_df1 = 0;
5887 PyArrayObject *__pyx_v_df2 = 0;
5888 PyArrayObject *__pyx_v_cfl = 0;
5889 int __pyx_lineno = 0;
5890 const char *__pyx_filename = NULL;
5891 int __pyx_clineno = 0;
5892 PyObject *__pyx_r = 0;
5893 __Pyx_RefNannyDeclarations
5894 __Pyx_RefNannySetupContext(
"calculateCFLADR2speeds (wrapper)", 0);
5896 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementDiameter,&__pyx_n_s_dm,&__pyx_n_s_df1,&__pyx_n_s_df2,&__pyx_n_s_cfl,0};
5897 PyObject* values[5] = {0,0,0,0,0};
5898 if (unlikely(__pyx_kwds)) {
5900 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5902 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5904 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5906 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5908 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5910 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5913 default:
goto __pyx_L5_argtuple_error;
5915 kw_args = PyDict_Size(__pyx_kwds);
5918 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
5919 else goto __pyx_L5_argtuple_error;
5922 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
5924 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR2speeds", 1, 5, 5, 1); __PYX_ERR(0, 2563, __pyx_L3_error)
5928 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df1)) != 0)) kw_args--;
5930 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR2speeds", 1, 5, 5, 2); __PYX_ERR(0, 2563, __pyx_L3_error)
5934 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df2)) != 0)) kw_args--;
5936 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR2speeds", 1, 5, 5, 3); __PYX_ERR(0, 2563, __pyx_L3_error)
5940 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cfl)) != 0)) kw_args--;
5942 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR2speeds", 1, 5, 5, 4); __PYX_ERR(0, 2563, __pyx_L3_error)
5945 if (unlikely(kw_args > 0)) {
5946 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateCFLADR2speeds") < 0)) __PYX_ERR(0, 2563, __pyx_L3_error)
5948 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
5949 goto __pyx_L5_argtuple_error;
5951 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5952 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5953 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5954 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5955 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5957 __pyx_v_elementDiameter = ((PyArrayObject *)values[0]);
5958 __pyx_v_dm = ((PyArrayObject *)values[1]);
5959 __pyx_v_df1 = ((PyArrayObject *)values[2]);
5960 __pyx_v_df2 = ((PyArrayObject *)values[3]);
5961 __pyx_v_cfl = ((PyArrayObject *)values[4]);
5963 goto __pyx_L4_argument_unpacking_done;
5964 __pyx_L5_argtuple_error:;
5965 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR2speeds", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2563, __pyx_L3_error)
5967 __Pyx_AddTraceback(
"cfemIntegrals.calculateCFLADR2speeds", __pyx_clineno, __pyx_lineno, __pyx_filename);
5968 __Pyx_RefNannyFinishContext();
5970 __pyx_L4_argument_unpacking_done:;
5971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 2563, __pyx_L1_error)
5972 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 2564, __pyx_L1_error)
5973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df1), __pyx_ptype_5numpy_ndarray, 1,
"df1", 0))) __PYX_ERR(0, 2565, __pyx_L1_error)
5974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df2), __pyx_ptype_5numpy_ndarray, 1,
"df2", 0))) __PYX_ERR(0, 2566, __pyx_L1_error)
5975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cfl), __pyx_ptype_5numpy_ndarray, 1,
"cfl", 0))) __PYX_ERR(0, 2567, __pyx_L1_error)
5976 __pyx_r = __pyx_pf_13cfemIntegrals_24calculateCFLADR2speeds(__pyx_self, __pyx_v_elementDiameter, __pyx_v_dm, __pyx_v_df1, __pyx_v_df2, __pyx_v_cfl);
5983 __Pyx_RefNannyFinishContext();
5987 static PyObject *__pyx_pf_13cfemIntegrals_24calculateCFLADR2speeds(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_df1, PyArrayObject *__pyx_v_df2, PyArrayObject *__pyx_v_cfl) {
5988 int __pyx_v_nElements_global;
5989 int __pyx_v_nQuadraturePoints_element;
5991 PyObject *__pyx_r = NULL;
5992 __Pyx_RefNannyDeclarations
5993 __Pyx_RefNannySetupContext(
"calculateCFLADR2speeds", 0);
6002 __pyx_v_nElements_global = (__pyx_v_df1->dimensions[0]);
6011 __pyx_v_nQuadraturePoints_element = (__pyx_v_df1->dimensions[1]);
6020 __pyx_v_nSpace = (__pyx_v_df1->dimensions[2]);
6029 calculateCFLADR2speeds(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_df1->data), ((
double *)__pyx_v_df2->data), ((
double *)__pyx_v_cfl->data));
6040 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6041 __Pyx_XGIVEREF(__pyx_r);
6042 __Pyx_RefNannyFinishContext();
6055 static PyObject *__pyx_pw_13cfemIntegrals_27checkElementBoundaryAndExteriorElementBoundaryArraysSame(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6056 static PyMethodDef __pyx_mdef_13cfemIntegrals_27checkElementBoundaryAndExteriorElementBoundaryArraysSame = {
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_27checkElementBoundaryAndExteriorElementBoundaryArraysSame, METH_VARARGS|METH_KEYWORDS, 0};
6057 static PyObject *__pyx_pw_13cfemIntegrals_27checkElementBoundaryAndExteriorElementBoundaryArraysSame(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6058 double __pyx_v_tolerance;
6059 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
6060 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
6061 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
6062 PyArrayObject *__pyx_v_ebq_val = 0;
6063 PyArrayObject *__pyx_v_ebqe_val = 0;
6064 PyArrayObject *__pyx_v_firstBadIndex = 0;
6065 int __pyx_lineno = 0;
6066 const char *__pyx_filename = NULL;
6067 int __pyx_clineno = 0;
6068 PyObject *__pyx_r = 0;
6069 __Pyx_RefNannyDeclarations
6070 __Pyx_RefNannySetupContext(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame (wrapper)", 0);
6072 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tolerance,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_ebq_val,&__pyx_n_s_ebqe_val,&__pyx_n_s_firstBadIndex,0};
6073 PyObject* values[7] = {0,0,0,0,0,0,0};
6074 if (unlikely(__pyx_kwds)) {
6076 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6078 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6080 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6082 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6084 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6086 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6088 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6090 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6093 default:
goto __pyx_L5_argtuple_error;
6095 kw_args = PyDict_Size(__pyx_kwds);
6098 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--;
6099 else goto __pyx_L5_argtuple_error;
6102 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
6104 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 1); __PYX_ERR(0, 2579, __pyx_L3_error)
6108 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
6110 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 2); __PYX_ERR(0, 2579, __pyx_L3_error)
6114 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
6116 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 3); __PYX_ERR(0, 2579, __pyx_L3_error)
6120 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_val)) != 0)) kw_args--;
6122 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 4); __PYX_ERR(0, 2579, __pyx_L3_error)
6126 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
6128 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 5); __PYX_ERR(0, 2579, __pyx_L3_error)
6132 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_firstBadIndex)) != 0)) kw_args--;
6134 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 6); __PYX_ERR(0, 2579, __pyx_L3_error)
6137 if (unlikely(kw_args > 0)) {
6138 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"checkElementBoundaryAndExteriorElementBoundaryArraysSame") < 0)) __PYX_ERR(0, 2579, __pyx_L3_error)
6140 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
6141 goto __pyx_L5_argtuple_error;
6143 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6144 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6145 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6146 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6147 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6148 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6149 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6151 __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_tolerance == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2579, __pyx_L3_error)
6152 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[1]);
6153 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
6154 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[3]);
6155 __pyx_v_ebq_val = ((PyArrayObject *)values[4]);
6156 __pyx_v_ebqe_val = ((PyArrayObject *)values[5]);
6157 __pyx_v_firstBadIndex = ((PyArrayObject *)values[6]);
6159 goto __pyx_L4_argument_unpacking_done;
6160 __pyx_L5_argtuple_error:;
6161 __Pyx_RaiseArgtupleInvalid(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2579, __pyx_L3_error)
6163 __Pyx_AddTraceback(
"cfemIntegrals.checkElementBoundaryAndExteriorElementBoundaryArraysSame", __pyx_clineno, __pyx_lineno, __pyx_filename);
6164 __Pyx_RefNannyFinishContext();
6166 __pyx_L4_argument_unpacking_done:;
6167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 2580, __pyx_L1_error)
6168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 2581, __pyx_L1_error)
6169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 2582, __pyx_L1_error)
6170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_val", 0))) __PYX_ERR(0, 2583, __pyx_L1_error)
6171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 2584, __pyx_L1_error)
6172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_firstBadIndex), __pyx_ptype_5numpy_ndarray, 1,
"firstBadIndex", 0))) __PYX_ERR(0, 2585, __pyx_L1_error)
6173 __pyx_r = __pyx_pf_13cfemIntegrals_26checkElementBoundaryAndExteriorElementBoundaryArraysSame(__pyx_self, __pyx_v_tolerance, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_ebq_val, __pyx_v_ebqe_val, __pyx_v_firstBadIndex);
6180 __Pyx_RefNannyFinishContext();
6184 static PyObject *__pyx_pf_13cfemIntegrals_26checkElementBoundaryAndExteriorElementBoundaryArraysSame(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_tolerance, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_ebq_val, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_firstBadIndex) {
6186 int __pyx_v_nElementBoundaries_element;
6187 int __pyx_v_nExteriorElementBoundaries_global;
6188 int __pyx_v_nQuadraturePoints_elementBoundary;
6189 int __pyx_v_nValuesPerQuadraturePoint;
6192 PyObject *__pyx_r = NULL;
6193 __Pyx_RefNannyDeclarations
6198 PyObject *__pyx_t_5 = NULL;
6199 int __pyx_lineno = 0;
6200 const char *__pyx_filename = NULL;
6201 int __pyx_clineno = 0;
6202 __Pyx_RefNannySetupContext(
"checkElementBoundaryAndExteriorElementBoundaryArraysSame", 0);
6211 __pyx_v_nElementBoundaries_element = (__pyx_v_ebq_val->dimensions[1]);
6220 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
6229 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebqe_val->dimensions[1]);
6238 __pyx_v_nValuesPerQuadraturePoint = 1;
6247 __pyx_t_1 = __pyx_v_ebqe_val->nd;
6248 __pyx_v_nd = __pyx_t_1;
6257 __pyx_t_2 = ((__pyx_v_nd > 2) != 0);
6267 __pyx_t_1 = __pyx_v_nd;
6268 __pyx_t_3 = __pyx_t_1;
6269 for (__pyx_t_4 = 2; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
6270 __pyx_v_i = __pyx_t_4;
6279 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebqe_val->dimensions[__pyx_v_i]));
6298 __pyx_v_output =
checkElementBoundaryAndExteriorElementBoundaryArraysSame(__pyx_v_nElementBoundaries_element, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, __pyx_v_tolerance, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_ebq_val->data), ((
double *)__pyx_v_ebqe_val->data), ((
int *)__pyx_v_firstBadIndex->data));
6307 __Pyx_XDECREF(__pyx_r);
6308 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_output);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2606, __pyx_L1_error)
6309 __Pyx_GOTREF(__pyx_t_5);
6310 __pyx_r = __pyx_t_5;
6324 __Pyx_XDECREF(__pyx_t_5);
6325 __Pyx_AddTraceback(
"cfemIntegrals.checkElementBoundaryAndExteriorElementBoundaryArraysSame", __pyx_clineno, __pyx_lineno, __pyx_filename);
6328 __Pyx_XGIVEREF(__pyx_r);
6329 __Pyx_RefNannyFinishContext();
6342 static PyObject *__pyx_pw_13cfemIntegrals_29checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6343 static PyMethodDef __pyx_mdef_13cfemIntegrals_29checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame = {
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_29checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame, METH_VARARGS|METH_KEYWORDS, 0};
6344 static PyObject *__pyx_pw_13cfemIntegrals_29checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6345 double __pyx_v_tolerance;
6346 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
6347 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
6348 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
6349 PyArrayObject *__pyx_v_ebq_global_val = 0;
6350 PyArrayObject *__pyx_v_ebqe_val = 0;
6351 PyArrayObject *__pyx_v_firstBadIndex = 0;
6352 int __pyx_lineno = 0;
6353 const char *__pyx_filename = NULL;
6354 int __pyx_clineno = 0;
6355 PyObject *__pyx_r = 0;
6356 __Pyx_RefNannyDeclarations
6357 __Pyx_RefNannySetupContext(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame (wrapper)", 0);
6359 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tolerance,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_ebq_global_val,&__pyx_n_s_ebqe_val,&__pyx_n_s_firstBadIndex,0};
6360 PyObject* values[7] = {0,0,0,0,0,0,0};
6361 if (unlikely(__pyx_kwds)) {
6363 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6365 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6367 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6369 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6371 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6373 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6375 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6377 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6380 default:
goto __pyx_L5_argtuple_error;
6382 kw_args = PyDict_Size(__pyx_kwds);
6385 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--;
6386 else goto __pyx_L5_argtuple_error;
6389 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
6391 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 1); __PYX_ERR(0, 2607, __pyx_L3_error)
6395 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
6397 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 2); __PYX_ERR(0, 2607, __pyx_L3_error)
6401 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
6403 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 3); __PYX_ERR(0, 2607, __pyx_L3_error)
6407 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_global_val)) != 0)) kw_args--;
6409 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 4); __PYX_ERR(0, 2607, __pyx_L3_error)
6413 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
6415 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 5); __PYX_ERR(0, 2607, __pyx_L3_error)
6419 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_firstBadIndex)) != 0)) kw_args--;
6421 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, 6); __PYX_ERR(0, 2607, __pyx_L3_error)
6424 if (unlikely(kw_args > 0)) {
6425 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame") < 0)) __PYX_ERR(0, 2607, __pyx_L3_error)
6427 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
6428 goto __pyx_L5_argtuple_error;
6430 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6431 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6432 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6433 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6434 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6435 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6436 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6438 __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_tolerance == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2607, __pyx_L3_error)
6439 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[1]);
6440 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
6441 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[3]);
6442 __pyx_v_ebq_global_val = ((PyArrayObject *)values[4]);
6443 __pyx_v_ebqe_val = ((PyArrayObject *)values[5]);
6444 __pyx_v_firstBadIndex = ((PyArrayObject *)values[6]);
6446 goto __pyx_L4_argument_unpacking_done;
6447 __pyx_L5_argtuple_error:;
6448 __Pyx_RaiseArgtupleInvalid(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2607, __pyx_L3_error)
6450 __Pyx_AddTraceback(
"cfemIntegrals.checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", __pyx_clineno, __pyx_lineno, __pyx_filename);
6451 __Pyx_RefNannyFinishContext();
6453 __pyx_L4_argument_unpacking_done:;
6454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 2608, __pyx_L1_error)
6455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 2609, __pyx_L1_error)
6456 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 2610, __pyx_L1_error)
6457 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_global_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_global_val", 0))) __PYX_ERR(0, 2611, __pyx_L1_error)
6458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 2612, __pyx_L1_error)
6459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_firstBadIndex), __pyx_ptype_5numpy_ndarray, 1,
"firstBadIndex", 0))) __PYX_ERR(0, 2613, __pyx_L1_error)
6460 __pyx_r = __pyx_pf_13cfemIntegrals_28checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(__pyx_self, __pyx_v_tolerance, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_ebq_global_val, __pyx_v_ebqe_val, __pyx_v_firstBadIndex);
6467 __Pyx_RefNannyFinishContext();
6471 static PyObject *__pyx_pf_13cfemIntegrals_28checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_tolerance, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_ebq_global_val, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_firstBadIndex) {
6472 CYTHON_UNUSED
int __pyx_v_output;
6473 int __pyx_v_nExteriorElementBoundaries_global;
6474 int __pyx_v_nQuadraturePoints_elementBoundary;
6475 int __pyx_v_nValuesPerQuadraturePoint;
6478 PyObject *__pyx_r = NULL;
6479 __Pyx_RefNannyDeclarations
6484 int __pyx_lineno = 0;
6485 const char *__pyx_filename = NULL;
6486 int __pyx_clineno = 0;
6487 __Pyx_RefNannySetupContext(
"checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", 0);
6496 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
6505 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebqe_val->dimensions[1]);
6514 __pyx_v_nValuesPerQuadraturePoint = 1;
6523 __pyx_t_1 = __Pyx_PyInt_As_int(((PyObject *)__pyx_v_ebqe_val));
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2618, __pyx_L1_error)
6524 __pyx_v_nd = __pyx_t_1;
6533 __pyx_t_2 = ((__pyx_v_nd > 2) != 0);
6543 __pyx_t_1 = __pyx_v_nd;
6544 __pyx_t_3 = __pyx_t_1;
6545 for (__pyx_t_4 = 2; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
6546 __pyx_v_i = __pyx_t_4;
6555 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebqe_val->dimensions[__pyx_v_i]));
6574 __pyx_v_output =
checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, __pyx_v_tolerance, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_ebq_global_val->data), ((
double *)__pyx_v_ebqe_val->data), ((
int *)__pyx_v_firstBadIndex->data));
6585 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6588 __Pyx_AddTraceback(
"cfemIntegrals.checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame", __pyx_clineno, __pyx_lineno, __pyx_filename);
6591 __Pyx_XGIVEREF(__pyx_r);
6592 __Pyx_RefNannyFinishContext();
6605 static PyObject *__pyx_pw_13cfemIntegrals_31calculateExteriorElementBoundaryStress3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6606 static PyMethodDef __pyx_mdef_13cfemIntegrals_31calculateExteriorElementBoundaryStress3D = {
"calculateExteriorElementBoundaryStress3D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_31calculateExteriorElementBoundaryStress3D, METH_VARARGS|METH_KEYWORDS, 0};
6607 static PyObject *__pyx_pw_13cfemIntegrals_31calculateExteriorElementBoundaryStress3D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6608 PyArrayObject *__pyx_v_elementBoundaryMaterialTypes = 0;
6609 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6610 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6611 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6612 PyArrayObject *__pyx_v_p = 0;
6613 PyArrayObject *__pyx_v_mom_flux_vec_u = 0;
6614 PyArrayObject *__pyx_v_mom_flux_vec_v = 0;
6615 PyArrayObject *__pyx_v_mom_flux_vec_w = 0;
6616 PyArrayObject *__pyx_v_dS = 0;
6617 PyArrayObject *__pyx_v_n = 0;
6618 PyArrayObject *__pyx_v_F = 0;
6619 int __pyx_lineno = 0;
6620 const char *__pyx_filename = NULL;
6621 int __pyx_clineno = 0;
6622 PyObject *__pyx_r = 0;
6623 __Pyx_RefNannyDeclarations
6624 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryStress3D (wrapper)", 0);
6626 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryMaterialTypes,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_p,&__pyx_n_s_mom_flux_vec_u,&__pyx_n_s_mom_flux_vec_v,&__pyx_n_s_mom_flux_vec_w,&__pyx_n_s_dS,&__pyx_n_s_n,&__pyx_n_s_F,0};
6627 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
6628 if (unlikely(__pyx_kwds)) {
6630 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6632 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6634 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6636 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6638 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6640 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6642 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6644 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6646 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6648 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6650 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6652 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6655 default:
goto __pyx_L5_argtuple_error;
6657 kw_args = PyDict_Size(__pyx_kwds);
6660 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryMaterialTypes)) != 0)) kw_args--;
6661 else goto __pyx_L5_argtuple_error;
6664 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
6666 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 1); __PYX_ERR(0, 2632, __pyx_L3_error)
6670 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6672 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 2); __PYX_ERR(0, 2632, __pyx_L3_error)
6676 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6678 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 3); __PYX_ERR(0, 2632, __pyx_L3_error)
6682 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
6684 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 4); __PYX_ERR(0, 2632, __pyx_L3_error)
6688 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_flux_vec_u)) != 0)) kw_args--;
6690 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 5); __PYX_ERR(0, 2632, __pyx_L3_error)
6694 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_flux_vec_v)) != 0)) kw_args--;
6696 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 6); __PYX_ERR(0, 2632, __pyx_L3_error)
6700 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_flux_vec_w)) != 0)) kw_args--;
6702 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 7); __PYX_ERR(0, 2632, __pyx_L3_error)
6706 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
6708 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 8); __PYX_ERR(0, 2632, __pyx_L3_error)
6712 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
6714 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 9); __PYX_ERR(0, 2632, __pyx_L3_error)
6718 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_F)) != 0)) kw_args--;
6720 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, 10); __PYX_ERR(0, 2632, __pyx_L3_error)
6723 if (unlikely(kw_args > 0)) {
6724 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorElementBoundaryStress3D") < 0)) __PYX_ERR(0, 2632, __pyx_L3_error)
6726 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
6727 goto __pyx_L5_argtuple_error;
6729 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6730 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6731 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6732 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6733 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6734 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6735 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6736 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6737 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6738 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6739 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
6741 __pyx_v_elementBoundaryMaterialTypes = ((PyArrayObject *)values[0]);
6742 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
6743 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
6744 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
6745 __pyx_v_p = ((PyArrayObject *)values[4]);
6746 __pyx_v_mom_flux_vec_u = ((PyArrayObject *)values[5]);
6747 __pyx_v_mom_flux_vec_v = ((PyArrayObject *)values[6]);
6748 __pyx_v_mom_flux_vec_w = ((PyArrayObject *)values[7]);
6749 __pyx_v_dS = ((PyArrayObject *)values[8]);
6750 __pyx_v_n = ((PyArrayObject *)values[9]);
6751 __pyx_v_F = ((PyArrayObject *)values[10]);
6753 goto __pyx_L4_argument_unpacking_done;
6754 __pyx_L5_argtuple_error:;
6755 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress3D", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2632, __pyx_L3_error)
6757 __Pyx_AddTraceback(
"cfemIntegrals.calculateExteriorElementBoundaryStress3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
6758 __Pyx_RefNannyFinishContext();
6760 __pyx_L4_argument_unpacking_done:;
6761 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryMaterialTypes), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryMaterialTypes", 0))) __PYX_ERR(0, 2632, __pyx_L1_error)
6762 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2633, __pyx_L1_error)
6763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2634, __pyx_L1_error)
6764 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2635, __pyx_L1_error)
6765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 2636, __pyx_L1_error)
6766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_flux_vec_u), __pyx_ptype_5numpy_ndarray, 1,
"mom_flux_vec_u", 0))) __PYX_ERR(0, 2637, __pyx_L1_error)
6767 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_flux_vec_v), __pyx_ptype_5numpy_ndarray, 1,
"mom_flux_vec_v", 0))) __PYX_ERR(0, 2638, __pyx_L1_error)
6768 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_flux_vec_w), __pyx_ptype_5numpy_ndarray, 1,
"mom_flux_vec_w", 0))) __PYX_ERR(0, 2639, __pyx_L1_error)
6769 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 2640, __pyx_L1_error)
6770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2641, __pyx_L1_error)
6771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_F), __pyx_ptype_5numpy_ndarray, 1,
"F", 0))) __PYX_ERR(0, 2642, __pyx_L1_error)
6772 __pyx_r = __pyx_pf_13cfemIntegrals_30calculateExteriorElementBoundaryStress3D(__pyx_self, __pyx_v_elementBoundaryMaterialTypes, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_p, __pyx_v_mom_flux_vec_u, __pyx_v_mom_flux_vec_v, __pyx_v_mom_flux_vec_w, __pyx_v_dS, __pyx_v_n, __pyx_v_F);
6779 __Pyx_RefNannyFinishContext();
6783 static PyObject *__pyx_pf_13cfemIntegrals_30calculateExteriorElementBoundaryStress3D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryMaterialTypes, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_mom_flux_vec_u, PyArrayObject *__pyx_v_mom_flux_vec_v, PyArrayObject *__pyx_v_mom_flux_vec_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_F) {
6784 int __pyx_v_nExteriorElementBoundaries_global;
6785 int __pyx_v_nQuadraturePoints_elementBoundary;
6786 PyObject *__pyx_r = NULL;
6787 __Pyx_RefNannyDeclarations
6788 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryStress3D", 0);
6797 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_p->dimensions[0]);
6806 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_p->dimensions[1]);
6815 calculateExteriorElementBoundaryStress3D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_elementBoundaryMaterialTypes->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_mom_flux_vec_u->data), ((
double *)__pyx_v_mom_flux_vec_v->data), ((
double *)__pyx_v_mom_flux_vec_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_F->data));
6826 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6827 __Pyx_XGIVEREF(__pyx_r);
6828 __Pyx_RefNannyFinishContext();
6841 static PyObject *__pyx_pw_13cfemIntegrals_33calculateExteriorElementBoundaryStress2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6842 static PyMethodDef __pyx_mdef_13cfemIntegrals_33calculateExteriorElementBoundaryStress2D = {
"calculateExteriorElementBoundaryStress2D", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_33calculateExteriorElementBoundaryStress2D, METH_VARARGS|METH_KEYWORDS, 0};
6843 static PyObject *__pyx_pw_13cfemIntegrals_33calculateExteriorElementBoundaryStress2D(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6844 PyArrayObject *__pyx_v_elementBoundaryMaterialTypes = 0;
6845 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
6846 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
6847 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
6848 PyArrayObject *__pyx_v_p = 0;
6849 PyArrayObject *__pyx_v_mom_flux_vec_u = 0;
6850 PyArrayObject *__pyx_v_mom_flux_vec_v = 0;
6851 PyArrayObject *__pyx_v_dS = 0;
6852 PyArrayObject *__pyx_v_n = 0;
6853 PyArrayObject *__pyx_v_F = 0;
6854 int __pyx_lineno = 0;
6855 const char *__pyx_filename = NULL;
6856 int __pyx_clineno = 0;
6857 PyObject *__pyx_r = 0;
6858 __Pyx_RefNannyDeclarations
6859 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryStress2D (wrapper)", 0);
6861 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryMaterialTypes,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_p,&__pyx_n_s_mom_flux_vec_u,&__pyx_n_s_mom_flux_vec_v,&__pyx_n_s_dS,&__pyx_n_s_n,&__pyx_n_s_F,0};
6862 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
6863 if (unlikely(__pyx_kwds)) {
6865 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6867 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6869 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6871 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6873 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6875 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6877 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6879 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6881 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6883 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6885 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6888 default:
goto __pyx_L5_argtuple_error;
6890 kw_args = PyDict_Size(__pyx_kwds);
6893 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryMaterialTypes)) != 0)) kw_args--;
6894 else goto __pyx_L5_argtuple_error;
6897 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
6899 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 1); __PYX_ERR(0, 2658, __pyx_L3_error)
6903 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
6905 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 2); __PYX_ERR(0, 2658, __pyx_L3_error)
6909 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
6911 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 3); __PYX_ERR(0, 2658, __pyx_L3_error)
6915 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
6917 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 4); __PYX_ERR(0, 2658, __pyx_L3_error)
6921 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_flux_vec_u)) != 0)) kw_args--;
6923 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 5); __PYX_ERR(0, 2658, __pyx_L3_error)
6927 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mom_flux_vec_v)) != 0)) kw_args--;
6929 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 6); __PYX_ERR(0, 2658, __pyx_L3_error)
6933 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
6935 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 7); __PYX_ERR(0, 2658, __pyx_L3_error)
6939 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
6941 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 8); __PYX_ERR(0, 2658, __pyx_L3_error)
6945 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_F)) != 0)) kw_args--;
6947 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, 9); __PYX_ERR(0, 2658, __pyx_L3_error)
6950 if (unlikely(kw_args > 0)) {
6951 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorElementBoundaryStress2D") < 0)) __PYX_ERR(0, 2658, __pyx_L3_error)
6953 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
6954 goto __pyx_L5_argtuple_error;
6956 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6957 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
6958 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
6959 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
6960 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
6961 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
6962 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
6963 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
6964 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
6965 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
6967 __pyx_v_elementBoundaryMaterialTypes = ((PyArrayObject *)values[0]);
6968 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
6969 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
6970 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
6971 __pyx_v_p = ((PyArrayObject *)values[4]);
6972 __pyx_v_mom_flux_vec_u = ((PyArrayObject *)values[5]);
6973 __pyx_v_mom_flux_vec_v = ((PyArrayObject *)values[6]);
6974 __pyx_v_dS = ((PyArrayObject *)values[7]);
6975 __pyx_v_n = ((PyArrayObject *)values[8]);
6976 __pyx_v_F = ((PyArrayObject *)values[9]);
6978 goto __pyx_L4_argument_unpacking_done;
6979 __pyx_L5_argtuple_error:;
6980 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryStress2D", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2658, __pyx_L3_error)
6982 __Pyx_AddTraceback(
"cfemIntegrals.calculateExteriorElementBoundaryStress2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
6983 __Pyx_RefNannyFinishContext();
6985 __pyx_L4_argument_unpacking_done:;
6986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryMaterialTypes), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryMaterialTypes", 0))) __PYX_ERR(0, 2658, __pyx_L1_error)
6987 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 2659, __pyx_L1_error)
6988 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 2660, __pyx_L1_error)
6989 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 2661, __pyx_L1_error)
6990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_5numpy_ndarray, 1,
"p", 0))) __PYX_ERR(0, 2662, __pyx_L1_error)
6991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_flux_vec_u), __pyx_ptype_5numpy_ndarray, 1,
"mom_flux_vec_u", 0))) __PYX_ERR(0, 2663, __pyx_L1_error)
6992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mom_flux_vec_v), __pyx_ptype_5numpy_ndarray, 1,
"mom_flux_vec_v", 0))) __PYX_ERR(0, 2664, __pyx_L1_error)
6993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 2665, __pyx_L1_error)
6994 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2666, __pyx_L1_error)
6995 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_F), __pyx_ptype_5numpy_ndarray, 1,
"F", 0))) __PYX_ERR(0, 2667, __pyx_L1_error)
6996 __pyx_r = __pyx_pf_13cfemIntegrals_32calculateExteriorElementBoundaryStress2D(__pyx_self, __pyx_v_elementBoundaryMaterialTypes, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_p, __pyx_v_mom_flux_vec_u, __pyx_v_mom_flux_vec_v, __pyx_v_dS, __pyx_v_n, __pyx_v_F);
7003 __Pyx_RefNannyFinishContext();
7007 static PyObject *__pyx_pf_13cfemIntegrals_32calculateExteriorElementBoundaryStress2D(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryMaterialTypes, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_p, PyArrayObject *__pyx_v_mom_flux_vec_u, PyArrayObject *__pyx_v_mom_flux_vec_v, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_F) {
7008 int __pyx_v_nExteriorElementBoundaries_global;
7009 int __pyx_v_nQuadraturePoints_elementBoundary;
7010 PyObject *__pyx_r = NULL;
7011 __Pyx_RefNannyDeclarations
7012 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryStress2D", 0);
7021 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_p->dimensions[0]);
7030 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_p->dimensions[1]);
7039 calculateExteriorElementBoundaryStress2D(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_elementBoundaryMaterialTypes->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_p->data), ((
double *)__pyx_v_mom_flux_vec_u->data), ((
double *)__pyx_v_mom_flux_vec_v->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_F->data));
7050 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7051 __Pyx_XGIVEREF(__pyx_r);
7052 __Pyx_RefNannyFinishContext();
7065 static PyObject *__pyx_pw_13cfemIntegrals_35copyLeftElementBoundaryInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7066 static PyMethodDef __pyx_mdef_13cfemIntegrals_35copyLeftElementBoundaryInfo = {
"copyLeftElementBoundaryInfo", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_35copyLeftElementBoundaryInfo, METH_VARARGS|METH_KEYWORDS, 0};
7067 static PyObject *__pyx_pw_13cfemIntegrals_35copyLeftElementBoundaryInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7068 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
7069 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
7070 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
7071 PyArrayObject *__pyx_v_interiorElementBoundariesArray = 0;
7072 PyArrayObject *__pyx_v_x = 0;
7073 PyArrayObject *__pyx_v_n = 0;
7074 PyArrayObject *__pyx_v_xg = 0;
7075 PyArrayObject *__pyx_v_ng = 0;
7076 int __pyx_lineno = 0;
7077 const char *__pyx_filename = NULL;
7078 int __pyx_clineno = 0;
7079 PyObject *__pyx_r = 0;
7080 __Pyx_RefNannyDeclarations
7081 __Pyx_RefNannySetupContext(
"copyLeftElementBoundaryInfo (wrapper)", 0);
7083 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_interiorElementBoundariesArray,&__pyx_n_s_x,&__pyx_n_s_n,&__pyx_n_s_xg,&__pyx_n_s_ng,0};
7084 PyObject* values[8] = {0,0,0,0,0,0,0,0};
7085 if (unlikely(__pyx_kwds)) {
7087 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7089 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7091 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7093 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7095 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7097 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7099 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7101 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7103 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7106 default:
goto __pyx_L5_argtuple_error;
7108 kw_args = PyDict_Size(__pyx_kwds);
7111 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
7112 else goto __pyx_L5_argtuple_error;
7115 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
7117 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 1); __PYX_ERR(0, 2682, __pyx_L3_error)
7121 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
7123 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 2); __PYX_ERR(0, 2682, __pyx_L3_error)
7127 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundariesArray)) != 0)) kw_args--;
7129 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 3); __PYX_ERR(0, 2682, __pyx_L3_error)
7133 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
7135 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 4); __PYX_ERR(0, 2682, __pyx_L3_error)
7139 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
7141 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 5); __PYX_ERR(0, 2682, __pyx_L3_error)
7145 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xg)) != 0)) kw_args--;
7147 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 6); __PYX_ERR(0, 2682, __pyx_L3_error)
7151 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ng)) != 0)) kw_args--;
7153 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, 7); __PYX_ERR(0, 2682, __pyx_L3_error)
7156 if (unlikely(kw_args > 0)) {
7157 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyLeftElementBoundaryInfo") < 0)) __PYX_ERR(0, 2682, __pyx_L3_error)
7159 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
7160 goto __pyx_L5_argtuple_error;
7162 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7163 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7164 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7165 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7166 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
7167 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
7168 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
7169 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
7171 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[0]);
7172 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[1]);
7173 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[2]);
7174 __pyx_v_interiorElementBoundariesArray = ((PyArrayObject *)values[3]);
7175 __pyx_v_x = ((PyArrayObject *)values[4]);
7176 __pyx_v_n = ((PyArrayObject *)values[5]);
7177 __pyx_v_xg = ((PyArrayObject *)values[6]);
7178 __pyx_v_ng = ((PyArrayObject *)values[7]);
7180 goto __pyx_L4_argument_unpacking_done;
7181 __pyx_L5_argtuple_error:;
7182 __Pyx_RaiseArgtupleInvalid(
"copyLeftElementBoundaryInfo", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2682, __pyx_L3_error)
7184 __Pyx_AddTraceback(
"cfemIntegrals.copyLeftElementBoundaryInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
7185 __Pyx_RefNannyFinishContext();
7187 __pyx_L4_argument_unpacking_done:;
7188 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 2682, __pyx_L1_error)
7189 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 2683, __pyx_L1_error)
7190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 2684, __pyx_L1_error)
7191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundariesArray", 0))) __PYX_ERR(0, 2685, __pyx_L1_error)
7192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_ptype_5numpy_ndarray, 1,
"x", 0))) __PYX_ERR(0, 2686, __pyx_L1_error)
7193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 2687, __pyx_L1_error)
7194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xg), __pyx_ptype_5numpy_ndarray, 1,
"xg", 0))) __PYX_ERR(0, 2688, __pyx_L1_error)
7195 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ng), __pyx_ptype_5numpy_ndarray, 1,
"ng", 0))) __PYX_ERR(0, 2689, __pyx_L1_error)
7196 __pyx_r = __pyx_pf_13cfemIntegrals_34copyLeftElementBoundaryInfo(__pyx_self, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_exteriorElementBoundariesArray, __pyx_v_interiorElementBoundariesArray, __pyx_v_x, __pyx_v_n, __pyx_v_xg, __pyx_v_ng);
7203 __Pyx_RefNannyFinishContext();
7207 static PyObject *__pyx_pf_13cfemIntegrals_34copyLeftElementBoundaryInfo(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_interiorElementBoundariesArray, PyArrayObject *__pyx_v_x, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_xg, PyArrayObject *__pyx_v_ng) {
7208 int __pyx_v_nElementBoundaries_element;
7209 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
7210 int __pyx_v_nSpace_global;
7211 int __pyx_v_nExteriorElementBoundaries_global;
7212 int __pyx_v_nInteriorElementBoundaries_global;
7213 PyObject *__pyx_r = NULL;
7214 __Pyx_RefNannyDeclarations
7215 __Pyx_RefNannySetupContext(
"copyLeftElementBoundaryInfo", 0);
7224 __pyx_v_nElementBoundaries_element = (__pyx_v_n->dimensions[1]);
7233 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_n->dimensions[2]);
7242 __pyx_v_nSpace_global = (__pyx_v_n->dimensions[3]);
7251 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
7260 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundariesArray->dimensions[0]);
7269 copyLeftElementBoundaryInfo(__pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nSpace_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nInteriorElementBoundaries_global, ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_interiorElementBoundariesArray->data), ((
double *)__pyx_v_x->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_xg->data), ((
double *)__pyx_v_ng->data));
7280 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7281 __Pyx_XGIVEREF(__pyx_r);
7282 __Pyx_RefNannyFinishContext();
7295 static PyObject *__pyx_pw_13cfemIntegrals_37parametricFiniteElementSpace_getValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7296 static PyMethodDef __pyx_mdef_13cfemIntegrals_37parametricFiniteElementSpace_getValues = {
"parametricFiniteElementSpace_getValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_37parametricFiniteElementSpace_getValues, METH_VARARGS|METH_KEYWORDS, 0};
7297 static PyObject *__pyx_pw_13cfemIntegrals_37parametricFiniteElementSpace_getValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7298 PyArrayObject *__pyx_v_psi = 0;
7299 PyArrayObject *__pyx_v_vArray = 0;
7300 int __pyx_lineno = 0;
7301 const char *__pyx_filename = NULL;
7302 int __pyx_clineno = 0;
7303 PyObject *__pyx_r = 0;
7304 __Pyx_RefNannyDeclarations
7305 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValues (wrapper)", 0);
7307 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_psi,&__pyx_n_s_vArray,0};
7308 PyObject* values[2] = {0,0};
7309 if (unlikely(__pyx_kwds)) {
7311 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7313 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7315 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7318 default:
goto __pyx_L5_argtuple_error;
7320 kw_args = PyDict_Size(__pyx_kwds);
7323 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
7324 else goto __pyx_L5_argtuple_error;
7327 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vArray)) != 0)) kw_args--;
7329 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValues", 1, 2, 2, 1); __PYX_ERR(0, 2708, __pyx_L3_error)
7332 if (unlikely(kw_args > 0)) {
7333 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getValues") < 0)) __PYX_ERR(0, 2708, __pyx_L3_error)
7335 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
7336 goto __pyx_L5_argtuple_error;
7338 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7339 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7341 __pyx_v_psi = ((PyArrayObject *)values[0]);
7342 __pyx_v_vArray = ((PyArrayObject *)values[1]);
7344 goto __pyx_L4_argument_unpacking_done;
7345 __pyx_L5_argtuple_error:;
7346 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValues", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2708, __pyx_L3_error)
7348 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
7349 __Pyx_RefNannyFinishContext();
7351 __pyx_L4_argument_unpacking_done:;
7352 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 2708, __pyx_L1_error)
7353 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vArray), __pyx_ptype_5numpy_ndarray, 1,
"vArray", 0))) __PYX_ERR(0, 2709, __pyx_L1_error)
7354 __pyx_r = __pyx_pf_13cfemIntegrals_36parametricFiniteElementSpace_getValues(__pyx_self, __pyx_v_psi, __pyx_v_vArray);
7361 __Pyx_RefNannyFinishContext();
7365 static PyObject *__pyx_pf_13cfemIntegrals_36parametricFiniteElementSpace_getValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_vArray) {
7366 int __pyx_v_nElements_global;
7367 int __pyx_v_nQuadraturePoints_element;
7368 int __pyx_v_nDOF_element;
7369 PyObject *__pyx_r = NULL;
7370 __Pyx_RefNannyDeclarations
7371 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValues", 0);
7380 __pyx_v_nElements_global = (__pyx_v_vArray->dimensions[0]);
7389 __pyx_v_nQuadraturePoints_element = (__pyx_v_vArray->dimensions[1]);
7398 __pyx_v_nDOF_element = (__pyx_v_vArray->dimensions[2]);
7407 parametricFiniteElementSpace_getValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, ((
double *)__pyx_v_psi->data), ((
double *)__pyx_v_vArray->data));
7418 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7419 __Pyx_XGIVEREF(__pyx_r);
7420 __Pyx_RefNannyFinishContext();
7433 static PyObject *__pyx_pw_13cfemIntegrals_39parametricFiniteElementSpace_getValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7434 static PyMethodDef __pyx_mdef_13cfemIntegrals_39parametricFiniteElementSpace_getValuesTrace = {
"parametricFiniteElementSpace_getValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_39parametricFiniteElementSpace_getValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
7435 static PyObject *__pyx_pw_13cfemIntegrals_39parametricFiniteElementSpace_getValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7436 PyArrayObject *__pyx_v_psi = 0;
7437 PyArrayObject *__pyx_v_permutations = 0;
7438 PyArrayObject *__pyx_v_vArray = 0;
7439 int __pyx_lineno = 0;
7440 const char *__pyx_filename = NULL;
7441 int __pyx_clineno = 0;
7442 PyObject *__pyx_r = 0;
7443 __Pyx_RefNannyDeclarations
7444 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValuesTrace (wrapper)", 0);
7446 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_psi,&__pyx_n_s_permutations,&__pyx_n_s_vArray,0};
7447 PyObject* values[3] = {0,0,0};
7448 if (unlikely(__pyx_kwds)) {
7450 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7452 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7454 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7456 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7459 default:
goto __pyx_L5_argtuple_error;
7461 kw_args = PyDict_Size(__pyx_kwds);
7464 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
7465 else goto __pyx_L5_argtuple_error;
7468 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
7470 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesTrace", 1, 3, 3, 1); __PYX_ERR(0, 2718, __pyx_L3_error)
7474 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vArray)) != 0)) kw_args--;
7476 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesTrace", 1, 3, 3, 2); __PYX_ERR(0, 2718, __pyx_L3_error)
7479 if (unlikely(kw_args > 0)) {
7480 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getValuesTrace") < 0)) __PYX_ERR(0, 2718, __pyx_L3_error)
7482 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
7483 goto __pyx_L5_argtuple_error;
7485 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7486 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7487 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7489 __pyx_v_psi = ((PyArrayObject *)values[0]);
7490 __pyx_v_permutations = ((PyArrayObject *)values[1]);
7491 __pyx_v_vArray = ((PyArrayObject *)values[2]);
7493 goto __pyx_L4_argument_unpacking_done;
7494 __pyx_L5_argtuple_error:;
7495 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesTrace", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2718, __pyx_L3_error)
7497 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
7498 __Pyx_RefNannyFinishContext();
7500 __pyx_L4_argument_unpacking_done:;
7501 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 2718, __pyx_L1_error)
7502 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 2719, __pyx_L1_error)
7503 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vArray), __pyx_ptype_5numpy_ndarray, 1,
"vArray", 0))) __PYX_ERR(0, 2720, __pyx_L1_error)
7504 __pyx_r = __pyx_pf_13cfemIntegrals_38parametricFiniteElementSpace_getValuesTrace(__pyx_self, __pyx_v_psi, __pyx_v_permutations, __pyx_v_vArray);
7511 __Pyx_RefNannyFinishContext();
7515 static PyObject *__pyx_pf_13cfemIntegrals_38parametricFiniteElementSpace_getValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_vArray) {
7516 int __pyx_v_nElements_global;
7517 int __pyx_v_nElementBoundaries_element;
7518 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
7519 int __pyx_v_nDOF_element;
7520 PyObject *__pyx_r = NULL;
7521 __Pyx_RefNannyDeclarations
7522 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValuesTrace", 0);
7531 __pyx_v_nElements_global = (__pyx_v_vArray->dimensions[0]);
7540 __pyx_v_nElementBoundaries_element = (__pyx_v_vArray->dimensions[1]);
7549 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_vArray->dimensions[2]);
7558 __pyx_v_nDOF_element = (__pyx_v_vArray->dimensions[3]);
7567 parametricFiniteElementSpace_getValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, ((
double *)__pyx_v_psi->data), ((
int *)__pyx_v_permutations->data), ((
double *)__pyx_v_vArray->data));
7578 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7579 __Pyx_XGIVEREF(__pyx_r);
7580 __Pyx_RefNannyFinishContext();
7593 static PyObject *__pyx_pw_13cfemIntegrals_41parametricFiniteElementSpace_getGradientValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7594 static PyMethodDef __pyx_mdef_13cfemIntegrals_41parametricFiniteElementSpace_getGradientValues = {
"parametricFiniteElementSpace_getGradientValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_41parametricFiniteElementSpace_getGradientValues, METH_VARARGS|METH_KEYWORDS, 0};
7595 static PyObject *__pyx_pw_13cfemIntegrals_41parametricFiniteElementSpace_getGradientValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7596 PyArrayObject *__pyx_v_grad_psi = 0;
7597 PyArrayObject *__pyx_v_inverseJacobianArray = 0;
7598 PyArrayObject *__pyx_v_grad_vArray = 0;
7599 int __pyx_lineno = 0;
7600 const char *__pyx_filename = NULL;
7601 int __pyx_clineno = 0;
7602 PyObject *__pyx_r = 0;
7603 __Pyx_RefNannyDeclarations
7604 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValues (wrapper)", 0);
7606 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_psi,&__pyx_n_s_inverseJacobianArray,&__pyx_n_s_grad_vArray,0};
7607 PyObject* values[3] = {0,0,0};
7608 if (unlikely(__pyx_kwds)) {
7610 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7612 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7614 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7616 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7619 default:
goto __pyx_L5_argtuple_error;
7621 kw_args = PyDict_Size(__pyx_kwds);
7624 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
7625 else goto __pyx_L5_argtuple_error;
7628 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobianArray)) != 0)) kw_args--;
7630 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValues", 1, 3, 3, 1); __PYX_ERR(0, 2732, __pyx_L3_error)
7634 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_vArray)) != 0)) kw_args--;
7636 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValues", 1, 3, 3, 2); __PYX_ERR(0, 2732, __pyx_L3_error)
7639 if (unlikely(kw_args > 0)) {
7640 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getGradientValues") < 0)) __PYX_ERR(0, 2732, __pyx_L3_error)
7642 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
7643 goto __pyx_L5_argtuple_error;
7645 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7646 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7647 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7649 __pyx_v_grad_psi = ((PyArrayObject *)values[0]);
7650 __pyx_v_inverseJacobianArray = ((PyArrayObject *)values[1]);
7651 __pyx_v_grad_vArray = ((PyArrayObject *)values[2]);
7653 goto __pyx_L4_argument_unpacking_done;
7654 __pyx_L5_argtuple_error:;
7655 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValues", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2732, __pyx_L3_error)
7657 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getGradientValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
7658 __Pyx_RefNannyFinishContext();
7660 __pyx_L4_argument_unpacking_done:;
7661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2732, __pyx_L1_error)
7662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobianArray), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobianArray", 0))) __PYX_ERR(0, 2733, __pyx_L1_error)
7663 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_vArray), __pyx_ptype_5numpy_ndarray, 1,
"grad_vArray", 0))) __PYX_ERR(0, 2734, __pyx_L1_error)
7664 __pyx_r = __pyx_pf_13cfemIntegrals_40parametricFiniteElementSpace_getGradientValues(__pyx_self, __pyx_v_grad_psi, __pyx_v_inverseJacobianArray, __pyx_v_grad_vArray);
7671 __Pyx_RefNannyFinishContext();
7675 static PyObject *__pyx_pf_13cfemIntegrals_40parametricFiniteElementSpace_getGradientValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray) {
7676 int __pyx_v_nElements_global;
7677 int __pyx_v_nQuadraturePoints_element;
7678 int __pyx_v_nDOF_element;
7679 int __pyx_v_nSpace_global;
7680 PyObject *__pyx_r = NULL;
7681 __Pyx_RefNannyDeclarations
7682 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValues", 0);
7691 __pyx_v_nElements_global = (__pyx_v_grad_vArray->dimensions[0]);
7700 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_vArray->dimensions[1]);
7709 __pyx_v_nDOF_element = (__pyx_v_grad_vArray->dimensions[2]);
7718 __pyx_v_nSpace_global = (__pyx_v_grad_vArray->dimensions[3]);
7727 parametricFiniteElementSpace_getGradientValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_inverseJacobianArray->data), ((
double *)__pyx_v_grad_vArray->data));
7738 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7739 __Pyx_XGIVEREF(__pyx_r);
7740 __Pyx_RefNannyFinishContext();
7753 static PyObject *__pyx_pw_13cfemIntegrals_43parametricFiniteElementSpace_getGradientValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7754 static PyMethodDef __pyx_mdef_13cfemIntegrals_43parametricFiniteElementSpace_getGradientValuesTrace = {
"parametricFiniteElementSpace_getGradientValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_43parametricFiniteElementSpace_getGradientValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
7755 static PyObject *__pyx_pw_13cfemIntegrals_43parametricFiniteElementSpace_getGradientValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7756 PyArrayObject *__pyx_v_grad_psi = 0;
7757 PyArrayObject *__pyx_v_permutations = 0;
7758 PyArrayObject *__pyx_v_inverseJacobianArray = 0;
7759 PyArrayObject *__pyx_v_grad_vArray = 0;
7760 int __pyx_lineno = 0;
7761 const char *__pyx_filename = NULL;
7762 int __pyx_clineno = 0;
7763 PyObject *__pyx_r = 0;
7764 __Pyx_RefNannyDeclarations
7765 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValuesTrace (wrapper)", 0);
7767 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_psi,&__pyx_n_s_permutations,&__pyx_n_s_inverseJacobianArray,&__pyx_n_s_grad_vArray,0};
7768 PyObject* values[4] = {0,0,0,0};
7769 if (unlikely(__pyx_kwds)) {
7771 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7773 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7775 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7777 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7779 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7782 default:
goto __pyx_L5_argtuple_error;
7784 kw_args = PyDict_Size(__pyx_kwds);
7787 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
7788 else goto __pyx_L5_argtuple_error;
7791 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
7793 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesTrace", 1, 4, 4, 1); __PYX_ERR(0, 2746, __pyx_L3_error)
7797 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobianArray)) != 0)) kw_args--;
7799 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesTrace", 1, 4, 4, 2); __PYX_ERR(0, 2746, __pyx_L3_error)
7803 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_vArray)) != 0)) kw_args--;
7805 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesTrace", 1, 4, 4, 3); __PYX_ERR(0, 2746, __pyx_L3_error)
7808 if (unlikely(kw_args > 0)) {
7809 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getGradientValuesTrace") < 0)) __PYX_ERR(0, 2746, __pyx_L3_error)
7811 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
7812 goto __pyx_L5_argtuple_error;
7814 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7815 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7816 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
7817 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
7819 __pyx_v_grad_psi = ((PyArrayObject *)values[0]);
7820 __pyx_v_permutations = ((PyArrayObject *)values[1]);
7821 __pyx_v_inverseJacobianArray = ((PyArrayObject *)values[2]);
7822 __pyx_v_grad_vArray = ((PyArrayObject *)values[3]);
7824 goto __pyx_L4_argument_unpacking_done;
7825 __pyx_L5_argtuple_error:;
7826 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesTrace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2746, __pyx_L3_error)
7828 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getGradientValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
7829 __Pyx_RefNannyFinishContext();
7831 __pyx_L4_argument_unpacking_done:;
7832 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2746, __pyx_L1_error)
7833 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 2747, __pyx_L1_error)
7834 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobianArray), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobianArray", 0))) __PYX_ERR(0, 2748, __pyx_L1_error)
7835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_vArray), __pyx_ptype_5numpy_ndarray, 1,
"grad_vArray", 0))) __PYX_ERR(0, 2749, __pyx_L1_error)
7836 __pyx_r = __pyx_pf_13cfemIntegrals_42parametricFiniteElementSpace_getGradientValuesTrace(__pyx_self, __pyx_v_grad_psi, __pyx_v_permutations, __pyx_v_inverseJacobianArray, __pyx_v_grad_vArray);
7843 __Pyx_RefNannyFinishContext();
7847 static PyObject *__pyx_pf_13cfemIntegrals_42parametricFiniteElementSpace_getGradientValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_permutations, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray) {
7848 int __pyx_v_nElements_global;
7849 int __pyx_v_nElementBoundaries_element;
7850 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
7851 int __pyx_v_nDOF_element;
7852 int __pyx_v_nSpace_global;
7853 PyObject *__pyx_r = NULL;
7854 __Pyx_RefNannyDeclarations
7855 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValuesTrace", 0);
7864 __pyx_v_nElements_global = (__pyx_v_grad_vArray->dimensions[0]);
7873 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_vArray->dimensions[1]);
7882 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_grad_vArray->dimensions[2]);
7891 __pyx_v_nDOF_element = (__pyx_v_grad_vArray->dimensions[3]);
7900 __pyx_v_nSpace_global = (__pyx_v_grad_vArray->dimensions[4]);
7909 parametricFiniteElementSpace_getGradientValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_grad_psi->data), ((
int *)__pyx_v_permutations->data), ((
double *)__pyx_v_inverseJacobianArray->data), ((
double *)__pyx_v_grad_vArray->data));
7920 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7921 __Pyx_XGIVEREF(__pyx_r);
7922 __Pyx_RefNannyFinishContext();
7935 static PyObject *__pyx_pw_13cfemIntegrals_45parametricMaps_getPermutations(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
7936 static PyMethodDef __pyx_mdef_13cfemIntegrals_45parametricMaps_getPermutations = {
"parametricMaps_getPermutations", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_45parametricMaps_getPermutations, METH_VARARGS|METH_KEYWORDS, 0};
7937 static PyObject *__pyx_pw_13cfemIntegrals_45parametricMaps_getPermutations(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
7938 PyArrayObject *__pyx_v_xiArray = 0;
7939 PyArrayObject *__pyx_v_permutations = 0;
7940 int __pyx_lineno = 0;
7941 const char *__pyx_filename = NULL;
7942 int __pyx_clineno = 0;
7943 PyObject *__pyx_r = 0;
7944 __Pyx_RefNannyDeclarations
7945 __Pyx_RefNannySetupContext(
"parametricMaps_getPermutations (wrapper)", 0);
7947 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xiArray,&__pyx_n_s_permutations,0};
7948 PyObject* values[2] = {0,0};
7949 if (unlikely(__pyx_kwds)) {
7951 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
7953 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7955 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7958 default:
goto __pyx_L5_argtuple_error;
7960 kw_args = PyDict_Size(__pyx_kwds);
7963 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xiArray)) != 0)) kw_args--;
7964 else goto __pyx_L5_argtuple_error;
7967 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
7969 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutations", 1, 2, 2, 1); __PYX_ERR(0, 2764, __pyx_L3_error)
7972 if (unlikely(kw_args > 0)) {
7973 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getPermutations") < 0)) __PYX_ERR(0, 2764, __pyx_L3_error)
7975 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
7976 goto __pyx_L5_argtuple_error;
7978 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
7979 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
7981 __pyx_v_xiArray = ((PyArrayObject *)values[0]);
7982 __pyx_v_permutations = ((PyArrayObject *)values[1]);
7984 goto __pyx_L4_argument_unpacking_done;
7985 __pyx_L5_argtuple_error:;
7986 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutations", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2764, __pyx_L3_error)
7988 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getPermutations", __pyx_clineno, __pyx_lineno, __pyx_filename);
7989 __Pyx_RefNannyFinishContext();
7991 __pyx_L4_argument_unpacking_done:;
7992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xiArray), __pyx_ptype_5numpy_ndarray, 1,
"xiArray", 0))) __PYX_ERR(0, 2764, __pyx_L1_error)
7993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 2765, __pyx_L1_error)
7994 __pyx_r = __pyx_pf_13cfemIntegrals_44parametricMaps_getPermutations(__pyx_self, __pyx_v_xiArray, __pyx_v_permutations);
8001 __Pyx_RefNannyFinishContext();
8005 static PyObject *__pyx_pf_13cfemIntegrals_44parametricMaps_getPermutations(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xiArray, PyArrayObject *__pyx_v_permutations) {
8006 int __pyx_v_nElements_global;
8007 int __pyx_v_nElementBoundaries_element;
8008 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
8009 int __pyx_v_nSpace_global;
8010 PyObject *__pyx_r = NULL;
8011 __Pyx_RefNannyDeclarations
8012 __Pyx_RefNannySetupContext(
"parametricMaps_getPermutations", 0);
8021 __pyx_v_nElements_global = (__pyx_v_xiArray->dimensions[0]);
8030 __pyx_v_nElementBoundaries_element = (__pyx_v_xiArray->dimensions[1]);
8039 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_xiArray->dimensions[2]);
8048 __pyx_v_nSpace_global = (__pyx_v_xiArray->dimensions[3]);
8057 parametricMaps_getPermutations(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nSpace_global, ((
double *)__pyx_v_xiArray->data), ((
int *)__pyx_v_permutations->data));
8068 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8069 __Pyx_XGIVEREF(__pyx_r);
8070 __Pyx_RefNannyFinishContext();
8083 static PyObject *__pyx_pw_13cfemIntegrals_47parametricMaps_getPermutationsGlobalExterior(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8084 static PyMethodDef __pyx_mdef_13cfemIntegrals_47parametricMaps_getPermutationsGlobalExterior = {
"parametricMaps_getPermutationsGlobalExterior", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_47parametricMaps_getPermutationsGlobalExterior, METH_VARARGS|METH_KEYWORDS, 0};
8085 static PyObject *__pyx_pw_13cfemIntegrals_47parametricMaps_getPermutationsGlobalExterior(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8086 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
8087 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
8088 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
8089 PyArrayObject *__pyx_v_xiArray = 0;
8090 PyArrayObject *__pyx_v_permutations = 0;
8091 int __pyx_lineno = 0;
8092 const char *__pyx_filename = NULL;
8093 int __pyx_clineno = 0;
8094 PyObject *__pyx_r = 0;
8095 __Pyx_RefNannyDeclarations
8096 __Pyx_RefNannySetupContext(
"parametricMaps_getPermutationsGlobalExterior (wrapper)", 0);
8098 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_xiArray,&__pyx_n_s_permutations,0};
8099 PyObject* values[5] = {0,0,0,0,0};
8100 if (unlikely(__pyx_kwds)) {
8102 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8104 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8106 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8108 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8110 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8112 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8115 default:
goto __pyx_L5_argtuple_error;
8117 kw_args = PyDict_Size(__pyx_kwds);
8120 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
8121 else goto __pyx_L5_argtuple_error;
8124 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
8126 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutationsGlobalExterior", 1, 5, 5, 1); __PYX_ERR(0, 2776, __pyx_L3_error)
8130 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
8132 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutationsGlobalExterior", 1, 5, 5, 2); __PYX_ERR(0, 2776, __pyx_L3_error)
8136 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xiArray)) != 0)) kw_args--;
8138 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutationsGlobalExterior", 1, 5, 5, 3); __PYX_ERR(0, 2776, __pyx_L3_error)
8142 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
8144 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutationsGlobalExterior", 1, 5, 5, 4); __PYX_ERR(0, 2776, __pyx_L3_error)
8147 if (unlikely(kw_args > 0)) {
8148 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getPermutationsGlobalExterior") < 0)) __PYX_ERR(0, 2776, __pyx_L3_error)
8150 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
8151 goto __pyx_L5_argtuple_error;
8153 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8154 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8155 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8156 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8157 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8159 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
8160 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
8161 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
8162 __pyx_v_xiArray = ((PyArrayObject *)values[3]);
8163 __pyx_v_permutations = ((PyArrayObject *)values[4]);
8165 goto __pyx_L4_argument_unpacking_done;
8166 __pyx_L5_argtuple_error:;
8167 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getPermutationsGlobalExterior", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2776, __pyx_L3_error)
8169 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getPermutationsGlobalExterior", __pyx_clineno, __pyx_lineno, __pyx_filename);
8170 __Pyx_RefNannyFinishContext();
8172 __pyx_L4_argument_unpacking_done:;
8173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 2776, __pyx_L1_error)
8174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 2777, __pyx_L1_error)
8175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 2778, __pyx_L1_error)
8176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xiArray), __pyx_ptype_5numpy_ndarray, 1,
"xiArray", 0))) __PYX_ERR(0, 2779, __pyx_L1_error)
8177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 2780, __pyx_L1_error)
8178 __pyx_r = __pyx_pf_13cfemIntegrals_46parametricMaps_getPermutationsGlobalExterior(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_xiArray, __pyx_v_permutations);
8185 __Pyx_RefNannyFinishContext();
8189 static PyObject *__pyx_pf_13cfemIntegrals_46parametricMaps_getPermutationsGlobalExterior(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_xiArray, PyArrayObject *__pyx_v_permutations) {
8190 npy_intp __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
8191 npy_intp __pyx_v_nSpace_global;
8192 npy_intp __pyx_v_nExteriorElementBoundaries_global;
8193 PyObject *__pyx_r = NULL;
8194 __Pyx_RefNannyDeclarations
8195 __Pyx_RefNannySetupContext(
"parametricMaps_getPermutationsGlobalExterior", 0);
8204 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_xiArray->dimensions[1]);
8213 __pyx_v_nSpace_global = (__pyx_v_xiArray->dimensions[2]);
8222 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
8231 parametricMaps_getPermutationsGlobalExterior(__pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nSpace_global, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_xiArray->data), ((
int *)__pyx_v_permutations->data));
8242 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8243 __Pyx_XGIVEREF(__pyx_r);
8244 __Pyx_RefNannyFinishContext();
8257 static PyObject *__pyx_pw_13cfemIntegrals_49getPermutationsGlobal(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8258 static PyMethodDef __pyx_mdef_13cfemIntegrals_49getPermutationsGlobal = {
"getPermutationsGlobal", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_49getPermutationsGlobal, METH_VARARGS|METH_KEYWORDS, 0};
8259 static PyObject *__pyx_pw_13cfemIntegrals_49getPermutationsGlobal(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8260 PyArrayObject *__pyx_v_xArray = 0;
8261 PyArrayObject *__pyx_v_xArrayNew = 0;
8262 PyArrayObject *__pyx_v_permutations = 0;
8263 int __pyx_lineno = 0;
8264 const char *__pyx_filename = NULL;
8265 int __pyx_clineno = 0;
8266 PyObject *__pyx_r = 0;
8267 __Pyx_RefNannyDeclarations
8268 __Pyx_RefNannySetupContext(
"getPermutationsGlobal (wrapper)", 0);
8270 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xArray,&__pyx_n_s_xArrayNew,&__pyx_n_s_permutations,0};
8271 PyObject* values[3] = {0,0,0};
8272 if (unlikely(__pyx_kwds)) {
8274 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8276 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8278 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8280 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8283 default:
goto __pyx_L5_argtuple_error;
8285 kw_args = PyDict_Size(__pyx_kwds);
8288 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
8289 else goto __pyx_L5_argtuple_error;
8292 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArrayNew)) != 0)) kw_args--;
8294 __Pyx_RaiseArgtupleInvalid(
"getPermutationsGlobal", 1, 3, 3, 1); __PYX_ERR(0, 2792, __pyx_L3_error)
8298 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_permutations)) != 0)) kw_args--;
8300 __Pyx_RaiseArgtupleInvalid(
"getPermutationsGlobal", 1, 3, 3, 2); __PYX_ERR(0, 2792, __pyx_L3_error)
8303 if (unlikely(kw_args > 0)) {
8304 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getPermutationsGlobal") < 0)) __PYX_ERR(0, 2792, __pyx_L3_error)
8306 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
8307 goto __pyx_L5_argtuple_error;
8309 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8310 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8311 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8313 __pyx_v_xArray = ((PyArrayObject *)values[0]);
8314 __pyx_v_xArrayNew = ((PyArrayObject *)values[1]);
8315 __pyx_v_permutations = ((PyArrayObject *)values[2]);
8317 goto __pyx_L4_argument_unpacking_done;
8318 __pyx_L5_argtuple_error:;
8319 __Pyx_RaiseArgtupleInvalid(
"getPermutationsGlobal", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2792, __pyx_L3_error)
8321 __Pyx_AddTraceback(
"cfemIntegrals.getPermutationsGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
8322 __Pyx_RefNannyFinishContext();
8324 __pyx_L4_argument_unpacking_done:;
8325 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 2792, __pyx_L1_error)
8326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArrayNew), __pyx_ptype_5numpy_ndarray, 1,
"xArrayNew", 0))) __PYX_ERR(0, 2793, __pyx_L1_error)
8327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_permutations), __pyx_ptype_5numpy_ndarray, 1,
"permutations", 0))) __PYX_ERR(0, 2794, __pyx_L1_error)
8328 __pyx_r = __pyx_pf_13cfemIntegrals_48getPermutationsGlobal(__pyx_self, __pyx_v_xArray, __pyx_v_xArrayNew, __pyx_v_permutations);
8335 __Pyx_RefNannyFinishContext();
8339 static PyObject *__pyx_pf_13cfemIntegrals_48getPermutationsGlobal(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xArrayNew, PyArrayObject *__pyx_v_permutations) {
8340 int __pyx_v_nElementBoundaries_global;
8341 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
8342 PyObject *__pyx_r = NULL;
8343 __Pyx_RefNannyDeclarations
8344 __Pyx_RefNannySetupContext(
"getPermutationsGlobal", 0);
8353 __pyx_v_nElementBoundaries_global = (__pyx_v_xArray->dimensions[0]);
8362 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_xArray->dimensions[1]);
8371 getPermutationsGlobal(__pyx_v_nElementBoundaries_global, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, ((
double *)__pyx_v_xArray->data), ((
double *)__pyx_v_xArrayNew->data), ((
int *)__pyx_v_permutations->data));
8382 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8383 __Pyx_XGIVEREF(__pyx_r);
8384 __Pyx_RefNannyFinishContext();
8397 static PyObject *__pyx_pw_13cfemIntegrals_51parametricMaps_getValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8398 static PyMethodDef __pyx_mdef_13cfemIntegrals_51parametricMaps_getValues = {
"parametricMaps_getValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_51parametricMaps_getValues, METH_VARARGS|METH_KEYWORDS, 0};
8399 static PyObject *__pyx_pw_13cfemIntegrals_51parametricMaps_getValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8400 PyArrayObject *__pyx_v_psi = 0;
8401 PyArrayObject *__pyx_v_l2g = 0;
8402 PyArrayObject *__pyx_v_nodeArray = 0;
8403 PyArrayObject *__pyx_v_xArray = 0;
8404 int __pyx_lineno = 0;
8405 const char *__pyx_filename = NULL;
8406 int __pyx_clineno = 0;
8407 PyObject *__pyx_r = 0;
8408 __Pyx_RefNannyDeclarations
8409 __Pyx_RefNannySetupContext(
"parametricMaps_getValues (wrapper)", 0);
8411 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_psi,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,0};
8412 PyObject* values[4] = {0,0,0,0};
8413 if (unlikely(__pyx_kwds)) {
8415 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8417 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8419 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8421 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8423 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8426 default:
goto __pyx_L5_argtuple_error;
8428 kw_args = PyDict_Size(__pyx_kwds);
8431 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
8432 else goto __pyx_L5_argtuple_error;
8435 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
8437 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValues", 1, 4, 4, 1); __PYX_ERR(0, 2802, __pyx_L3_error)
8441 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
8443 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValues", 1, 4, 4, 2); __PYX_ERR(0, 2802, __pyx_L3_error)
8447 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
8449 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValues", 1, 4, 4, 3); __PYX_ERR(0, 2802, __pyx_L3_error)
8452 if (unlikely(kw_args > 0)) {
8453 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getValues") < 0)) __PYX_ERR(0, 2802, __pyx_L3_error)
8455 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
8456 goto __pyx_L5_argtuple_error;
8458 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8459 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8460 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8461 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8463 __pyx_v_psi = ((PyArrayObject *)values[0]);
8464 __pyx_v_l2g = ((PyArrayObject *)values[1]);
8465 __pyx_v_nodeArray = ((PyArrayObject *)values[2]);
8466 __pyx_v_xArray = ((PyArrayObject *)values[3]);
8468 goto __pyx_L4_argument_unpacking_done;
8469 __pyx_L5_argtuple_error:;
8470 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2802, __pyx_L3_error)
8472 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
8473 __Pyx_RefNannyFinishContext();
8475 __pyx_L4_argument_unpacking_done:;
8476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 2802, __pyx_L1_error)
8477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2803, __pyx_L1_error)
8478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2804, __pyx_L1_error)
8479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 2805, __pyx_L1_error)
8480 __pyx_r = __pyx_pf_13cfemIntegrals_50parametricMaps_getValues(__pyx_self, __pyx_v_psi, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray);
8487 __Pyx_RefNannyFinishContext();
8491 static PyObject *__pyx_pf_13cfemIntegrals_50parametricMaps_getValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray) {
8492 int __pyx_v_nElements_global;
8493 int __pyx_v_nQuadraturePoints_element;
8494 int __pyx_v_nDOF_element;
8495 int __pyx_v_nSpace_global;
8496 PyObject *__pyx_r = NULL;
8497 __Pyx_RefNannyDeclarations
8498 __Pyx_RefNannySetupContext(
"parametricMaps_getValues", 0);
8507 __pyx_v_nElements_global = (__pyx_v_xArray->dimensions[0]);
8516 __pyx_v_nQuadraturePoints_element = (__pyx_v_xArray->dimensions[1]);
8525 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
8534 __pyx_v_nSpace_global = (__pyx_v_xArray->dimensions[2]);
8543 parametricMaps_getValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data));
8554 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8555 __Pyx_XGIVEREF(__pyx_r);
8556 __Pyx_RefNannyFinishContext();
8569 static PyObject *__pyx_pw_13cfemIntegrals_53parametricMaps_getValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8570 static PyMethodDef __pyx_mdef_13cfemIntegrals_53parametricMaps_getValuesTrace = {
"parametricMaps_getValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_53parametricMaps_getValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
8571 static PyObject *__pyx_pw_13cfemIntegrals_53parametricMaps_getValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8572 PyArrayObject *__pyx_v_psi = 0;
8573 PyArrayObject *__pyx_v_l2g = 0;
8574 PyArrayObject *__pyx_v_nodeArray = 0;
8575 PyArrayObject *__pyx_v_xArray = 0;
8576 int __pyx_lineno = 0;
8577 const char *__pyx_filename = NULL;
8578 int __pyx_clineno = 0;
8579 PyObject *__pyx_r = 0;
8580 __Pyx_RefNannyDeclarations
8581 __Pyx_RefNannySetupContext(
"parametricMaps_getValuesTrace (wrapper)", 0);
8583 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_psi,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,0};
8584 PyObject* values[4] = {0,0,0,0};
8585 if (unlikely(__pyx_kwds)) {
8587 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8589 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8591 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8593 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8595 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8598 default:
goto __pyx_L5_argtuple_error;
8600 kw_args = PyDict_Size(__pyx_kwds);
8603 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
8604 else goto __pyx_L5_argtuple_error;
8607 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
8609 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesTrace", 1, 4, 4, 1); __PYX_ERR(0, 2818, __pyx_L3_error)
8613 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
8615 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesTrace", 1, 4, 4, 2); __PYX_ERR(0, 2818, __pyx_L3_error)
8619 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
8621 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesTrace", 1, 4, 4, 3); __PYX_ERR(0, 2818, __pyx_L3_error)
8624 if (unlikely(kw_args > 0)) {
8625 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getValuesTrace") < 0)) __PYX_ERR(0, 2818, __pyx_L3_error)
8627 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
8628 goto __pyx_L5_argtuple_error;
8630 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8631 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8632 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8633 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8635 __pyx_v_psi = ((PyArrayObject *)values[0]);
8636 __pyx_v_l2g = ((PyArrayObject *)values[1]);
8637 __pyx_v_nodeArray = ((PyArrayObject *)values[2]);
8638 __pyx_v_xArray = ((PyArrayObject *)values[3]);
8640 goto __pyx_L4_argument_unpacking_done;
8641 __pyx_L5_argtuple_error:;
8642 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesTrace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2818, __pyx_L3_error)
8644 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
8645 __Pyx_RefNannyFinishContext();
8647 __pyx_L4_argument_unpacking_done:;
8648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 2818, __pyx_L1_error)
8649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2819, __pyx_L1_error)
8650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2820, __pyx_L1_error)
8651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 2821, __pyx_L1_error)
8652 __pyx_r = __pyx_pf_13cfemIntegrals_52parametricMaps_getValuesTrace(__pyx_self, __pyx_v_psi, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray);
8659 __Pyx_RefNannyFinishContext();
8663 static PyObject *__pyx_pf_13cfemIntegrals_52parametricMaps_getValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray) {
8664 int __pyx_v_nElements_global;
8665 int __pyx_v_nElementBoundaries_element;
8666 int __pyx_v_nQuadraturePoints_element;
8667 int __pyx_v_nDOF_element;
8668 int __pyx_v_nSpace_global;
8669 PyObject *__pyx_r = NULL;
8670 __Pyx_RefNannyDeclarations
8671 __Pyx_RefNannySetupContext(
"parametricMaps_getValuesTrace", 0);
8680 __pyx_v_nElements_global = (__pyx_v_xArray->dimensions[0]);
8689 __pyx_v_nElementBoundaries_element = (__pyx_v_xArray->dimensions[1]);
8698 __pyx_v_nQuadraturePoints_element = (__pyx_v_xArray->dimensions[2]);
8707 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
8716 __pyx_v_nSpace_global = (__pyx_v_xArray->dimensions[3]);
8725 parametricMaps_getValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data));
8736 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8737 __Pyx_XGIVEREF(__pyx_r);
8738 __Pyx_RefNannyFinishContext();
8751 static PyObject *__pyx_pw_13cfemIntegrals_55parametricMaps_getInverseValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8752 static PyMethodDef __pyx_mdef_13cfemIntegrals_55parametricMaps_getInverseValues = {
"parametricMaps_getInverseValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_55parametricMaps_getInverseValues, METH_VARARGS|METH_KEYWORDS, 0};
8753 static PyObject *__pyx_pw_13cfemIntegrals_55parametricMaps_getInverseValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8754 PyArrayObject *__pyx_v_inverseJacobian = 0;
8755 PyArrayObject *__pyx_v_l2g = 0;
8756 PyArrayObject *__pyx_v_nodeArray = 0;
8757 PyArrayObject *__pyx_v_xArray = 0;
8758 PyArrayObject *__pyx_v_xiArray = 0;
8759 int __pyx_lineno = 0;
8760 const char *__pyx_filename = NULL;
8761 int __pyx_clineno = 0;
8762 PyObject *__pyx_r = 0;
8763 __Pyx_RefNannyDeclarations
8764 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValues (wrapper)", 0);
8766 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_inverseJacobian,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,&__pyx_n_s_xiArray,0};
8767 PyObject* values[5] = {0,0,0,0,0};
8768 if (unlikely(__pyx_kwds)) {
8770 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8772 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8774 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8776 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8778 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8780 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8783 default:
goto __pyx_L5_argtuple_error;
8785 kw_args = PyDict_Size(__pyx_kwds);
8788 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobian)) != 0)) kw_args--;
8789 else goto __pyx_L5_argtuple_error;
8792 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
8794 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValues", 1, 5, 5, 1); __PYX_ERR(0, 2836, __pyx_L3_error)
8798 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
8800 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValues", 1, 5, 5, 2); __PYX_ERR(0, 2836, __pyx_L3_error)
8804 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
8806 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValues", 1, 5, 5, 3); __PYX_ERR(0, 2836, __pyx_L3_error)
8810 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xiArray)) != 0)) kw_args--;
8812 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValues", 1, 5, 5, 4); __PYX_ERR(0, 2836, __pyx_L3_error)
8815 if (unlikely(kw_args > 0)) {
8816 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getInverseValues") < 0)) __PYX_ERR(0, 2836, __pyx_L3_error)
8818 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
8819 goto __pyx_L5_argtuple_error;
8821 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8822 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8823 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8824 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8825 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8827 __pyx_v_inverseJacobian = ((PyArrayObject *)values[0]);
8828 __pyx_v_l2g = ((PyArrayObject *)values[1]);
8829 __pyx_v_nodeArray = ((PyArrayObject *)values[2]);
8830 __pyx_v_xArray = ((PyArrayObject *)values[3]);
8831 __pyx_v_xiArray = ((PyArrayObject *)values[4]);
8833 goto __pyx_L4_argument_unpacking_done;
8834 __pyx_L5_argtuple_error:;
8835 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2836, __pyx_L3_error)
8837 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getInverseValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
8838 __Pyx_RefNannyFinishContext();
8840 __pyx_L4_argument_unpacking_done:;
8841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobian), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobian", 0))) __PYX_ERR(0, 2836, __pyx_L1_error)
8842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2837, __pyx_L1_error)
8843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2838, __pyx_L1_error)
8844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 2839, __pyx_L1_error)
8845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xiArray), __pyx_ptype_5numpy_ndarray, 1,
"xiArray", 0))) __PYX_ERR(0, 2840, __pyx_L1_error)
8846 __pyx_r = __pyx_pf_13cfemIntegrals_54parametricMaps_getInverseValues(__pyx_self, __pyx_v_inverseJacobian, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray, __pyx_v_xiArray);
8853 __Pyx_RefNannyFinishContext();
8857 static PyObject *__pyx_pf_13cfemIntegrals_54parametricMaps_getInverseValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray) {
8858 int __pyx_v_nElements_global;
8859 int __pyx_v_nQuadraturePoints_element;
8860 int __pyx_v_nDOF_element;
8861 int __pyx_v_nSpace_global;
8862 PyObject *__pyx_r = NULL;
8863 __Pyx_RefNannyDeclarations
8864 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValues", 0);
8873 __pyx_v_nElements_global = (__pyx_v_xArray->dimensions[0]);
8882 __pyx_v_nQuadraturePoints_element = (__pyx_v_xArray->dimensions[1]);
8891 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
8900 __pyx_v_nSpace_global = (__pyx_v_inverseJacobian->dimensions[2]);
8909 parametricMaps_getInverseValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_inverseJacobian->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data), ((
double *)__pyx_v_xiArray->data));
8920 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8921 __Pyx_XGIVEREF(__pyx_r);
8922 __Pyx_RefNannyFinishContext();
8935 static PyObject *__pyx_pw_13cfemIntegrals_57parametricMaps_getInverseValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8936 static PyMethodDef __pyx_mdef_13cfemIntegrals_57parametricMaps_getInverseValuesTrace = {
"parametricMaps_getInverseValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_57parametricMaps_getInverseValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
8937 static PyObject *__pyx_pw_13cfemIntegrals_57parametricMaps_getInverseValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8938 PyArrayObject *__pyx_v_inverseJacobian = 0;
8939 PyArrayObject *__pyx_v_l2g = 0;
8940 PyArrayObject *__pyx_v_nodeArray = 0;
8941 PyArrayObject *__pyx_v_xArray = 0;
8942 PyArrayObject *__pyx_v_xiArray = 0;
8943 int __pyx_lineno = 0;
8944 const char *__pyx_filename = NULL;
8945 int __pyx_clineno = 0;
8946 PyObject *__pyx_r = 0;
8947 __Pyx_RefNannyDeclarations
8948 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValuesTrace (wrapper)", 0);
8950 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_inverseJacobian,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,&__pyx_n_s_xiArray,0};
8951 PyObject* values[5] = {0,0,0,0,0};
8952 if (unlikely(__pyx_kwds)) {
8954 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8956 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8958 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8960 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8962 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8964 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8967 default:
goto __pyx_L5_argtuple_error;
8969 kw_args = PyDict_Size(__pyx_kwds);
8972 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobian)) != 0)) kw_args--;
8973 else goto __pyx_L5_argtuple_error;
8976 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
8978 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesTrace", 1, 5, 5, 1); __PYX_ERR(0, 2854, __pyx_L3_error)
8982 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
8984 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesTrace", 1, 5, 5, 2); __PYX_ERR(0, 2854, __pyx_L3_error)
8988 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
8990 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesTrace", 1, 5, 5, 3); __PYX_ERR(0, 2854, __pyx_L3_error)
8994 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xiArray)) != 0)) kw_args--;
8996 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesTrace", 1, 5, 5, 4); __PYX_ERR(0, 2854, __pyx_L3_error)
8999 if (unlikely(kw_args > 0)) {
9000 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getInverseValuesTrace") < 0)) __PYX_ERR(0, 2854, __pyx_L3_error)
9002 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
9003 goto __pyx_L5_argtuple_error;
9005 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9006 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9007 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9008 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9009 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9011 __pyx_v_inverseJacobian = ((PyArrayObject *)values[0]);
9012 __pyx_v_l2g = ((PyArrayObject *)values[1]);
9013 __pyx_v_nodeArray = ((PyArrayObject *)values[2]);
9014 __pyx_v_xArray = ((PyArrayObject *)values[3]);
9015 __pyx_v_xiArray = ((PyArrayObject *)values[4]);
9017 goto __pyx_L4_argument_unpacking_done;
9018 __pyx_L5_argtuple_error:;
9019 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesTrace", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2854, __pyx_L3_error)
9021 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getInverseValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
9022 __Pyx_RefNannyFinishContext();
9024 __pyx_L4_argument_unpacking_done:;
9025 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobian), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobian", 0))) __PYX_ERR(0, 2854, __pyx_L1_error)
9026 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2855, __pyx_L1_error)
9027 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2856, __pyx_L1_error)
9028 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 2857, __pyx_L1_error)
9029 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xiArray), __pyx_ptype_5numpy_ndarray, 1,
"xiArray", 0))) __PYX_ERR(0, 2858, __pyx_L1_error)
9030 __pyx_r = __pyx_pf_13cfemIntegrals_56parametricMaps_getInverseValuesTrace(__pyx_self, __pyx_v_inverseJacobian, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray, __pyx_v_xiArray);
9037 __Pyx_RefNannyFinishContext();
9041 static PyObject *__pyx_pf_13cfemIntegrals_56parametricMaps_getInverseValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray) {
9042 int __pyx_v_nElements_global;
9043 int __pyx_v_nElementBoundaries_element;
9044 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
9045 int __pyx_v_nDOF_element;
9046 int __pyx_v_nSpace_global;
9047 PyObject *__pyx_r = NULL;
9048 __Pyx_RefNannyDeclarations
9049 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValuesTrace", 0);
9058 __pyx_v_nElements_global = (__pyx_v_xArray->dimensions[0]);
9067 __pyx_v_nElementBoundaries_element = (__pyx_v_xArray->dimensions[1]);
9076 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_xArray->dimensions[2]);
9085 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
9094 __pyx_v_nSpace_global = (__pyx_v_inverseJacobian->dimensions[3]);
9103 parametricMaps_getInverseValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace_global, ((
double *)__pyx_v_inverseJacobian->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data), ((
double *)__pyx_v_xiArray->data));
9114 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9115 __Pyx_XGIVEREF(__pyx_r);
9116 __Pyx_RefNannyFinishContext();
9129 static PyObject *__pyx_pw_13cfemIntegrals_59parametricMaps_getJacobianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9130 static PyMethodDef __pyx_mdef_13cfemIntegrals_59parametricMaps_getJacobianValues = {
"parametricMaps_getJacobianValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_59parametricMaps_getJacobianValues, METH_VARARGS|METH_KEYWORDS, 0};
9131 static PyObject *__pyx_pw_13cfemIntegrals_59parametricMaps_getJacobianValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9132 PyArrayObject *__pyx_v_grad_psi = 0;
9133 PyArrayObject *__pyx_v_l2g = 0;
9134 PyArrayObject *__pyx_v_nodeArray = 0;
9135 PyArrayObject *__pyx_v_jacobianArray = 0;
9136 PyArrayObject *__pyx_v_jacobianDeterminantArray = 0;
9137 PyArrayObject *__pyx_v_jacobianInverseArray = 0;
9138 int __pyx_lineno = 0;
9139 const char *__pyx_filename = NULL;
9140 int __pyx_clineno = 0;
9141 PyObject *__pyx_r = 0;
9142 __Pyx_RefNannyDeclarations
9143 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValues (wrapper)", 0);
9145 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_psi,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_jacobianArray,&__pyx_n_s_jacobianDeterminantArray,&__pyx_n_s_jacobianInverseArray,0};
9146 PyObject* values[6] = {0,0,0,0,0,0};
9147 if (unlikely(__pyx_kwds)) {
9149 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9151 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9153 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9155 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9157 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9159 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9161 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9164 default:
goto __pyx_L5_argtuple_error;
9166 kw_args = PyDict_Size(__pyx_kwds);
9169 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
9170 else goto __pyx_L5_argtuple_error;
9173 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
9175 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, 1); __PYX_ERR(0, 2874, __pyx_L3_error)
9179 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
9181 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, 2); __PYX_ERR(0, 2874, __pyx_L3_error)
9185 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianArray)) != 0)) kw_args--;
9187 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, 3); __PYX_ERR(0, 2874, __pyx_L3_error)
9191 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianDeterminantArray)) != 0)) kw_args--;
9193 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, 4); __PYX_ERR(0, 2874, __pyx_L3_error)
9197 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianInverseArray)) != 0)) kw_args--;
9199 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, 5); __PYX_ERR(0, 2874, __pyx_L3_error)
9202 if (unlikely(kw_args > 0)) {
9203 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getJacobianValues") < 0)) __PYX_ERR(0, 2874, __pyx_L3_error)
9205 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
9206 goto __pyx_L5_argtuple_error;
9208 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9209 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9210 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9211 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9212 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9213 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9215 __pyx_v_grad_psi = ((PyArrayObject *)values[0]);
9216 __pyx_v_l2g = ((PyArrayObject *)values[1]);
9217 __pyx_v_nodeArray = ((PyArrayObject *)values[2]);
9218 __pyx_v_jacobianArray = ((PyArrayObject *)values[3]);
9219 __pyx_v_jacobianDeterminantArray = ((PyArrayObject *)values[4]);
9220 __pyx_v_jacobianInverseArray = ((PyArrayObject *)values[5]);
9222 goto __pyx_L4_argument_unpacking_done;
9223 __pyx_L5_argtuple_error:;
9224 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValues", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2874, __pyx_L3_error)
9226 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
9227 __Pyx_RefNannyFinishContext();
9229 __pyx_L4_argument_unpacking_done:;
9230 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2874, __pyx_L1_error)
9231 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2875, __pyx_L1_error)
9232 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2876, __pyx_L1_error)
9233 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianArray", 0))) __PYX_ERR(0, 2877, __pyx_L1_error)
9234 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianDeterminantArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianDeterminantArray", 0))) __PYX_ERR(0, 2878, __pyx_L1_error)
9235 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianInverseArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianInverseArray", 0))) __PYX_ERR(0, 2879, __pyx_L1_error)
9236 __pyx_r = __pyx_pf_13cfemIntegrals_58parametricMaps_getJacobianValues(__pyx_self, __pyx_v_grad_psi, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_jacobianArray, __pyx_v_jacobianDeterminantArray, __pyx_v_jacobianInverseArray);
9243 __Pyx_RefNannyFinishContext();
9247 static PyObject *__pyx_pf_13cfemIntegrals_58parametricMaps_getJacobianValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianArray, PyArrayObject *__pyx_v_jacobianDeterminantArray, PyArrayObject *__pyx_v_jacobianInverseArray) {
9249 PyObject *__pyx_r = NULL;
9250 __Pyx_RefNannyDeclarations
9251 int __pyx_lineno = 0;
9252 const char *__pyx_filename = NULL;
9253 int __pyx_clineno = 0;
9254 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValues", 0);
9263 __pyx_v_nd = (__pyx_v_jacobianArray->dimensions[2]);
9272 switch (__pyx_v_nd) {
9282 parametricMaps_getJacobianValues1D((__pyx_v_jacobianArray->dimensions[0]), (__pyx_v_jacobianArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianArray->data), ((
double *)__pyx_v_jacobianDeterminantArray->data), ((
double *)__pyx_v_jacobianInverseArray->data));
9301 parametricMaps_getJacobianValues2D((__pyx_v_jacobianArray->dimensions[0]), (__pyx_v_jacobianArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianArray->data), ((
double *)__pyx_v_jacobianDeterminantArray->data), ((
double *)__pyx_v_jacobianInverseArray->data));
9320 parametricMaps_getJacobianValues3D((__pyx_v_jacobianArray->dimensions[0]), (__pyx_v_jacobianArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianArray->data), ((
double *)__pyx_v_jacobianDeterminantArray->data), ((
double *)__pyx_v_jacobianInverseArray->data));
9339 if (__Pyx_PrintOne(0, __pyx_kp_s_error_in_getJacobianValues_jacob) < 0) __PYX_ERR(0, 2912, __pyx_L1_error)
9352 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9355 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
9358 __Pyx_XGIVEREF(__pyx_r);
9359 __Pyx_RefNannyFinishContext();
9372 static PyObject *__pyx_pw_13cfemIntegrals_61parametricMaps_getJacobianValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9373 static PyMethodDef __pyx_mdef_13cfemIntegrals_61parametricMaps_getJacobianValuesTrace = {
"parametricMaps_getJacobianValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_61parametricMaps_getJacobianValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
9374 static PyObject *__pyx_pw_13cfemIntegrals_61parametricMaps_getJacobianValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9375 PyArrayObject *__pyx_v_grad_psi = 0;
9376 PyArrayObject *__pyx_v_boundaryNormals = 0;
9377 PyArrayObject *__pyx_v_boundaryJacobians = 0;
9378 PyArrayObject *__pyx_v_l2g = 0;
9379 PyArrayObject *__pyx_v_nodeArray = 0;
9380 PyArrayObject *__pyx_v_jacobianInverseArray = 0;
9381 PyArrayObject *__pyx_v_metricTensorArray = 0;
9382 PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray = 0;
9383 PyArrayObject *__pyx_v_unitNormalArray = 0;
9384 int __pyx_lineno = 0;
9385 const char *__pyx_filename = NULL;
9386 int __pyx_clineno = 0;
9387 PyObject *__pyx_r = 0;
9388 __Pyx_RefNannyDeclarations
9389 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesTrace (wrapper)", 0);
9391 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_psi,&__pyx_n_s_boundaryNormals,&__pyx_n_s_boundaryJacobians,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_jacobianInverseArray,&__pyx_n_s_metricTensorArray,&__pyx_n_s_metricTensorDeterminantSqrtArray,&__pyx_n_s_unitNormalArray,0};
9392 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
9393 if (unlikely(__pyx_kwds)) {
9395 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9397 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9399 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9401 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9403 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9405 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9407 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9409 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9411 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9413 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9416 default:
goto __pyx_L5_argtuple_error;
9418 kw_args = PyDict_Size(__pyx_kwds);
9421 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
9422 else goto __pyx_L5_argtuple_error;
9425 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryNormals)) != 0)) kw_args--;
9427 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 1); __PYX_ERR(0, 2913, __pyx_L3_error)
9431 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryJacobians)) != 0)) kw_args--;
9433 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 2); __PYX_ERR(0, 2913, __pyx_L3_error)
9437 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
9439 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 3); __PYX_ERR(0, 2913, __pyx_L3_error)
9443 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
9445 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 4); __PYX_ERR(0, 2913, __pyx_L3_error)
9449 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianInverseArray)) != 0)) kw_args--;
9451 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 5); __PYX_ERR(0, 2913, __pyx_L3_error)
9455 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorArray)) != 0)) kw_args--;
9457 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 6); __PYX_ERR(0, 2913, __pyx_L3_error)
9461 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorDeterminantSqrtArray)) != 0)) kw_args--;
9463 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 7); __PYX_ERR(0, 2913, __pyx_L3_error)
9467 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unitNormalArray)) != 0)) kw_args--;
9469 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, 8); __PYX_ERR(0, 2913, __pyx_L3_error)
9472 if (unlikely(kw_args > 0)) {
9473 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getJacobianValuesTrace") < 0)) __PYX_ERR(0, 2913, __pyx_L3_error)
9475 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
9476 goto __pyx_L5_argtuple_error;
9478 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9479 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9480 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9481 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9482 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9483 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9484 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
9485 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
9486 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
9488 __pyx_v_grad_psi = ((PyArrayObject *)values[0]);
9489 __pyx_v_boundaryNormals = ((PyArrayObject *)values[1]);
9490 __pyx_v_boundaryJacobians = ((PyArrayObject *)values[2]);
9491 __pyx_v_l2g = ((PyArrayObject *)values[3]);
9492 __pyx_v_nodeArray = ((PyArrayObject *)values[4]);
9493 __pyx_v_jacobianInverseArray = ((PyArrayObject *)values[5]);
9494 __pyx_v_metricTensorArray = ((PyArrayObject *)values[6]);
9495 __pyx_v_metricTensorDeterminantSqrtArray = ((PyArrayObject *)values[7]);
9496 __pyx_v_unitNormalArray = ((PyArrayObject *)values[8]);
9498 goto __pyx_L4_argument_unpacking_done;
9499 __pyx_L5_argtuple_error:;
9500 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesTrace", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2913, __pyx_L3_error)
9502 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
9503 __Pyx_RefNannyFinishContext();
9505 __pyx_L4_argument_unpacking_done:;
9506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 2913, __pyx_L1_error)
9507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryNormals), __pyx_ptype_5numpy_ndarray, 1,
"boundaryNormals", 0))) __PYX_ERR(0, 2914, __pyx_L1_error)
9508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryJacobians), __pyx_ptype_5numpy_ndarray, 1,
"boundaryJacobians", 0))) __PYX_ERR(0, 2915, __pyx_L1_error)
9509 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 2916, __pyx_L1_error)
9510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 2917, __pyx_L1_error)
9511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianInverseArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianInverseArray", 0))) __PYX_ERR(0, 2918, __pyx_L1_error)
9512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorArray", 0))) __PYX_ERR(0, 2919, __pyx_L1_error)
9513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorDeterminantSqrtArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorDeterminantSqrtArray", 0))) __PYX_ERR(0, 2920, __pyx_L1_error)
9514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_unitNormalArray), __pyx_ptype_5numpy_ndarray, 1,
"unitNormalArray", 0))) __PYX_ERR(0, 2921, __pyx_L1_error)
9515 __pyx_r = __pyx_pf_13cfemIntegrals_60parametricMaps_getJacobianValuesTrace(__pyx_self, __pyx_v_grad_psi, __pyx_v_boundaryNormals, __pyx_v_boundaryJacobians, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_jacobianInverseArray, __pyx_v_metricTensorArray, __pyx_v_metricTensorDeterminantSqrtArray, __pyx_v_unitNormalArray);
9522 __Pyx_RefNannyFinishContext();
9526 static PyObject *__pyx_pf_13cfemIntegrals_60parametricMaps_getJacobianValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray) {
9528 PyObject *__pyx_r = NULL;
9529 __Pyx_RefNannyDeclarations
9530 int __pyx_lineno = 0;
9531 const char *__pyx_filename = NULL;
9532 int __pyx_clineno = 0;
9533 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesTrace", 0);
9542 __pyx_v_nd = (__pyx_v_jacobianInverseArray->dimensions[3]);
9551 switch (__pyx_v_nd) {
9561 parametricMaps_getJacobianValuesTrace1D((__pyx_v_jacobianInverseArray->dimensions[0]), (__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_jacobianInverseArray->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
9580 parametricMaps_getJacobianValuesTrace2D((__pyx_v_jacobianInverseArray->dimensions[0]), (__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_jacobianInverseArray->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
9599 parametricMaps_getJacobianValuesTrace3D((__pyx_v_jacobianInverseArray->dimensions[0]), (__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_jacobianInverseArray->dimensions[2]), (__pyx_v_l2g->dimensions[1]), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
9618 if (__Pyx_PrintOne(0, __pyx_kp_s_error_in_getJacobianValuesTrace) < 0) __PYX_ERR(0, 2966, __pyx_L1_error)
9631 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9634 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
9637 __Pyx_XGIVEREF(__pyx_r);
9638 __Pyx_RefNannyFinishContext();
9651 static PyObject *__pyx_pw_13cfemIntegrals_63updateMass_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9652 static PyMethodDef __pyx_mdef_13cfemIntegrals_63updateMass_weak = {
"updateMass_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_63updateMass_weak, METH_VARARGS|METH_KEYWORDS, 0};
9653 static PyObject *__pyx_pw_13cfemIntegrals_63updateMass_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9654 PyArrayObject *__pyx_v_mt = 0;
9655 PyArrayObject *__pyx_v_w_dV = 0;
9656 PyArrayObject *__pyx_v_weak_residual = 0;
9657 int __pyx_lineno = 0;
9658 const char *__pyx_filename = NULL;
9659 int __pyx_clineno = 0;
9660 PyObject *__pyx_r = 0;
9661 __Pyx_RefNannyDeclarations
9662 __Pyx_RefNannySetupContext(
"updateMass_weak (wrapper)", 0);
9664 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mt,&__pyx_n_s_w_dV,&__pyx_n_s_weak_residual,0};
9665 PyObject* values[3] = {0,0,0};
9666 if (unlikely(__pyx_kwds)) {
9668 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9670 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9672 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9674 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9677 default:
goto __pyx_L5_argtuple_error;
9679 kw_args = PyDict_Size(__pyx_kwds);
9682 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt)) != 0)) kw_args--;
9683 else goto __pyx_L5_argtuple_error;
9686 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
9688 __Pyx_RaiseArgtupleInvalid(
"updateMass_weak", 1, 3, 3, 1); __PYX_ERR(0, 2967, __pyx_L3_error)
9692 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
9694 __Pyx_RaiseArgtupleInvalid(
"updateMass_weak", 1, 3, 3, 2); __PYX_ERR(0, 2967, __pyx_L3_error)
9697 if (unlikely(kw_args > 0)) {
9698 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMass_weak") < 0)) __PYX_ERR(0, 2967, __pyx_L3_error)
9700 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
9701 goto __pyx_L5_argtuple_error;
9703 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9704 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9705 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9707 __pyx_v_mt = ((PyArrayObject *)values[0]);
9708 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
9709 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
9711 goto __pyx_L4_argument_unpacking_done;
9712 __pyx_L5_argtuple_error:;
9713 __Pyx_RaiseArgtupleInvalid(
"updateMass_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2967, __pyx_L3_error)
9715 __Pyx_AddTraceback(
"cfemIntegrals.updateMass_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
9716 __Pyx_RefNannyFinishContext();
9718 __pyx_L4_argument_unpacking_done:;
9719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 2967, __pyx_L1_error)
9720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 2968, __pyx_L1_error)
9721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 2969, __pyx_L1_error)
9722 __pyx_r = __pyx_pf_13cfemIntegrals_62updateMass_weak(__pyx_self, __pyx_v_mt, __pyx_v_w_dV, __pyx_v_weak_residual);
9729 __Pyx_RefNannyFinishContext();
9733 static PyObject *__pyx_pf_13cfemIntegrals_62updateMass_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mt, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual) {
9734 int __pyx_v_nElements_global;
9735 int __pyx_v_nQuadraturePoints_element;
9736 int __pyx_v_nDOF_test_element;
9737 PyObject *__pyx_r = NULL;
9738 __Pyx_RefNannyDeclarations
9739 __Pyx_RefNannySetupContext(
"updateMass_weak", 0);
9748 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
9757 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
9766 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
9775 updateMass_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_mt->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
9786 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9787 __Pyx_XGIVEREF(__pyx_r);
9788 __Pyx_RefNannyFinishContext();
9801 static PyObject *__pyx_pw_13cfemIntegrals_65updateMassJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9802 static PyMethodDef __pyx_mdef_13cfemIntegrals_65updateMassJacobian_weak = {
"updateMassJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_65updateMassJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
9803 static PyObject *__pyx_pw_13cfemIntegrals_65updateMassJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9804 PyArrayObject *__pyx_v_dmt = 0;
9805 PyArrayObject *__pyx_v_v_X_w_dV = 0;
9806 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
9807 int __pyx_lineno = 0;
9808 const char *__pyx_filename = NULL;
9809 int __pyx_clineno = 0;
9810 PyObject *__pyx_r = 0;
9811 __Pyx_RefNannyDeclarations
9812 __Pyx_RefNannySetupContext(
"updateMassJacobian_weak (wrapper)", 0);
9814 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dmt,&__pyx_n_s_v_X_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
9815 PyObject* values[3] = {0,0,0};
9816 if (unlikely(__pyx_kwds)) {
9818 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9820 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9822 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9824 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9827 default:
goto __pyx_L5_argtuple_error;
9829 kw_args = PyDict_Size(__pyx_kwds);
9832 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
9833 else goto __pyx_L5_argtuple_error;
9836 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_w_dV)) != 0)) kw_args--;
9838 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak", 1, 3, 3, 1); __PYX_ERR(0, 2979, __pyx_L3_error)
9842 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
9844 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak", 1, 3, 3, 2); __PYX_ERR(0, 2979, __pyx_L3_error)
9847 if (unlikely(kw_args > 0)) {
9848 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMassJacobian_weak") < 0)) __PYX_ERR(0, 2979, __pyx_L3_error)
9850 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
9851 goto __pyx_L5_argtuple_error;
9853 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9854 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9855 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9857 __pyx_v_dmt = ((PyArrayObject *)values[0]);
9858 __pyx_v_v_X_w_dV = ((PyArrayObject *)values[1]);
9859 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
9861 goto __pyx_L4_argument_unpacking_done;
9862 __pyx_L5_argtuple_error:;
9863 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2979, __pyx_L3_error)
9865 __Pyx_AddTraceback(
"cfemIntegrals.updateMassJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
9866 __Pyx_RefNannyFinishContext();
9868 __pyx_L4_argument_unpacking_done:;
9869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 2979, __pyx_L1_error)
9870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"v_X_w_dV", 0))) __PYX_ERR(0, 2980, __pyx_L1_error)
9871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 2981, __pyx_L1_error)
9872 __pyx_r = __pyx_pf_13cfemIntegrals_64updateMassJacobian_weak(__pyx_self, __pyx_v_dmt, __pyx_v_v_X_w_dV, __pyx_v_jacobian_weak_residual);
9879 __Pyx_RefNannyFinishContext();
9883 static PyObject *__pyx_pf_13cfemIntegrals_64updateMassJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
9884 int __pyx_v_nElements_global;
9885 int __pyx_v_nQuadraturePoints_element;
9886 int __pyx_v_nDOF_trial_element;
9887 int __pyx_v_nDOF_test_element;
9888 PyObject *__pyx_r = NULL;
9889 __Pyx_RefNannyDeclarations
9890 __Pyx_RefNannySetupContext(
"updateMassJacobian_weak", 0);
9899 __pyx_v_nElements_global = (__pyx_v_v_X_w_dV->dimensions[0]);
9908 __pyx_v_nQuadraturePoints_element = (__pyx_v_v_X_w_dV->dimensions[1]);
9917 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_w_dV->dimensions[2]);
9926 __pyx_v_nDOF_test_element = (__pyx_v_v_X_w_dV->dimensions[3]);
9935 updateMassJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_v_X_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
9946 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9947 __Pyx_XGIVEREF(__pyx_r);
9948 __Pyx_RefNannyFinishContext();
9961 static PyObject *__pyx_pw_13cfemIntegrals_67updateMassJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9962 static PyMethodDef __pyx_mdef_13cfemIntegrals_67updateMassJacobian_weak_lowmem = {
"updateMassJacobian_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_67updateMassJacobian_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
9963 static PyObject *__pyx_pw_13cfemIntegrals_67updateMassJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9964 PyArrayObject *__pyx_v_dmt = 0;
9965 PyArrayObject *__pyx_v_v = 0;
9966 PyArrayObject *__pyx_v_w_dV = 0;
9967 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
9968 int __pyx_lineno = 0;
9969 const char *__pyx_filename = NULL;
9970 int __pyx_clineno = 0;
9971 PyObject *__pyx_r = 0;
9972 __Pyx_RefNannyDeclarations
9973 __Pyx_RefNannySetupContext(
"updateMassJacobian_weak_lowmem (wrapper)", 0);
9975 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dmt,&__pyx_n_s_v,&__pyx_n_s_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
9976 PyObject* values[4] = {0,0,0,0};
9977 if (unlikely(__pyx_kwds)) {
9979 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9981 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9983 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9985 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9987 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9990 default:
goto __pyx_L5_argtuple_error;
9992 kw_args = PyDict_Size(__pyx_kwds);
9995 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
9996 else goto __pyx_L5_argtuple_error;
9999 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
10001 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 2993, __pyx_L3_error)
10003 CYTHON_FALLTHROUGH;
10005 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
10007 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 2993, __pyx_L3_error)
10009 CYTHON_FALLTHROUGH;
10011 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
10013 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 2993, __pyx_L3_error)
10016 if (unlikely(kw_args > 0)) {
10017 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMassJacobian_weak_lowmem") < 0)) __PYX_ERR(0, 2993, __pyx_L3_error)
10019 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
10020 goto __pyx_L5_argtuple_error;
10022 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10023 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10024 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10025 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10027 __pyx_v_dmt = ((PyArrayObject *)values[0]);
10028 __pyx_v_v = ((PyArrayObject *)values[1]);
10029 __pyx_v_w_dV = ((PyArrayObject *)values[2]);
10030 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[3]);
10032 goto __pyx_L4_argument_unpacking_done;
10033 __pyx_L5_argtuple_error:;
10034 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_weak_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2993, __pyx_L3_error)
10036 __Pyx_AddTraceback(
"cfemIntegrals.updateMassJacobian_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
10037 __Pyx_RefNannyFinishContext();
10039 __pyx_L4_argument_unpacking_done:;
10040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 2993, __pyx_L1_error)
10041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 2994, __pyx_L1_error)
10042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 2995, __pyx_L1_error)
10043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 2996, __pyx_L1_error)
10044 __pyx_r = __pyx_pf_13cfemIntegrals_66updateMassJacobian_weak_lowmem(__pyx_self, __pyx_v_dmt, __pyx_v_v, __pyx_v_w_dV, __pyx_v_jacobian_weak_residual);
10051 __Pyx_RefNannyFinishContext();
10055 static PyObject *__pyx_pf_13cfemIntegrals_66updateMassJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
10056 int __pyx_v_nElements_global;
10057 int __pyx_v_nQuadraturePoints_element;
10058 int __pyx_v_nDOF_trial_element;
10059 int __pyx_v_nDOF_test_element;
10060 PyObject *__pyx_r = NULL;
10061 __Pyx_RefNannyDeclarations
10062 __Pyx_RefNannySetupContext(
"updateMassJacobian_weak_lowmem", 0);
10071 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
10080 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
10089 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
10098 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
10107 updateMassJacobian_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
10118 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10119 __Pyx_XGIVEREF(__pyx_r);
10120 __Pyx_RefNannyFinishContext();
10133 static PyObject *__pyx_pw_13cfemIntegrals_69updateMass_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10134 static PyMethodDef __pyx_mdef_13cfemIntegrals_69updateMass_strong = {
"updateMass_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_69updateMass_strong, METH_VARARGS|METH_KEYWORDS, 0};
10135 static PyObject *__pyx_pw_13cfemIntegrals_69updateMass_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10136 PyArrayObject *__pyx_v_mt = 0;
10137 PyArrayObject *__pyx_v_strong_residual = 0;
10138 int __pyx_lineno = 0;
10139 const char *__pyx_filename = NULL;
10140 int __pyx_clineno = 0;
10141 PyObject *__pyx_r = 0;
10142 __Pyx_RefNannyDeclarations
10143 __Pyx_RefNannySetupContext(
"updateMass_strong (wrapper)", 0);
10145 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mt,&__pyx_n_s_strong_residual,0};
10146 PyObject* values[2] = {0,0};
10147 if (unlikely(__pyx_kwds)) {
10148 Py_ssize_t kw_args;
10149 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10150 switch (pos_args) {
10151 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10152 CYTHON_FALLTHROUGH;
10153 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10154 CYTHON_FALLTHROUGH;
10156 default:
goto __pyx_L5_argtuple_error;
10158 kw_args = PyDict_Size(__pyx_kwds);
10159 switch (pos_args) {
10161 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt)) != 0)) kw_args--;
10162 else goto __pyx_L5_argtuple_error;
10163 CYTHON_FALLTHROUGH;
10165 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
10167 __Pyx_RaiseArgtupleInvalid(
"updateMass_strong", 1, 2, 2, 1); __PYX_ERR(0, 3009, __pyx_L3_error)
10170 if (unlikely(kw_args > 0)) {
10171 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMass_strong") < 0)) __PYX_ERR(0, 3009, __pyx_L3_error)
10173 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
10174 goto __pyx_L5_argtuple_error;
10176 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10177 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10179 __pyx_v_mt = ((PyArrayObject *)values[0]);
10180 __pyx_v_strong_residual = ((PyArrayObject *)values[1]);
10182 goto __pyx_L4_argument_unpacking_done;
10183 __pyx_L5_argtuple_error:;
10184 __Pyx_RaiseArgtupleInvalid(
"updateMass_strong", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3009, __pyx_L3_error)
10186 __Pyx_AddTraceback(
"cfemIntegrals.updateMass_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
10187 __Pyx_RefNannyFinishContext();
10189 __pyx_L4_argument_unpacking_done:;
10190 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 3009, __pyx_L1_error)
10191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3010, __pyx_L1_error)
10192 __pyx_r = __pyx_pf_13cfemIntegrals_68updateMass_strong(__pyx_self, __pyx_v_mt, __pyx_v_strong_residual);
10199 __Pyx_RefNannyFinishContext();
10203 static PyObject *__pyx_pf_13cfemIntegrals_68updateMass_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_mt, PyArrayObject *__pyx_v_strong_residual) {
10204 int __pyx_v_nElements_global;
10205 int __pyx_v_nQuadraturePoints_element;
10206 PyObject *__pyx_r = NULL;
10207 __Pyx_RefNannyDeclarations
10208 __Pyx_RefNannySetupContext(
"updateMass_strong", 0);
10217 __pyx_v_nElements_global = (__pyx_v_mt->dimensions[0]);
10226 __pyx_v_nQuadraturePoints_element = (__pyx_v_mt->dimensions[1]);
10235 updateMass_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_mt->data), ((
double *)__pyx_v_strong_residual->data));
10246 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10247 __Pyx_XGIVEREF(__pyx_r);
10248 __Pyx_RefNannyFinishContext();
10261 static PyObject *__pyx_pw_13cfemIntegrals_71updateMassJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10262 static PyMethodDef __pyx_mdef_13cfemIntegrals_71updateMassJacobian_strong = {
"updateMassJacobian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_71updateMassJacobian_strong, METH_VARARGS|METH_KEYWORDS, 0};
10263 static PyObject *__pyx_pw_13cfemIntegrals_71updateMassJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10264 PyArrayObject *__pyx_v_dmt = 0;
10265 PyArrayObject *__pyx_v_v = 0;
10266 PyArrayObject *__pyx_v_dstrong_residual = 0;
10267 int __pyx_lineno = 0;
10268 const char *__pyx_filename = NULL;
10269 int __pyx_clineno = 0;
10270 PyObject *__pyx_r = 0;
10271 __Pyx_RefNannyDeclarations
10272 __Pyx_RefNannySetupContext(
"updateMassJacobian_strong (wrapper)", 0);
10274 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dmt,&__pyx_n_s_v,&__pyx_n_s_dstrong_residual,0};
10275 PyObject* values[3] = {0,0,0};
10276 if (unlikely(__pyx_kwds)) {
10277 Py_ssize_t kw_args;
10278 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10279 switch (pos_args) {
10280 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10281 CYTHON_FALLTHROUGH;
10282 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10283 CYTHON_FALLTHROUGH;
10284 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10285 CYTHON_FALLTHROUGH;
10287 default:
goto __pyx_L5_argtuple_error;
10289 kw_args = PyDict_Size(__pyx_kwds);
10290 switch (pos_args) {
10292 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
10293 else goto __pyx_L5_argtuple_error;
10294 CYTHON_FALLTHROUGH;
10296 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
10298 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_strong", 1, 3, 3, 1); __PYX_ERR(0, 3017, __pyx_L3_error)
10300 CYTHON_FALLTHROUGH;
10302 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
10304 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_strong", 1, 3, 3, 2); __PYX_ERR(0, 3017, __pyx_L3_error)
10307 if (unlikely(kw_args > 0)) {
10308 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMassJacobian_strong") < 0)) __PYX_ERR(0, 3017, __pyx_L3_error)
10310 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
10311 goto __pyx_L5_argtuple_error;
10313 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10314 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10315 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10317 __pyx_v_dmt = ((PyArrayObject *)values[0]);
10318 __pyx_v_v = ((PyArrayObject *)values[1]);
10319 __pyx_v_dstrong_residual = ((PyArrayObject *)values[2]);
10321 goto __pyx_L4_argument_unpacking_done;
10322 __pyx_L5_argtuple_error:;
10323 __Pyx_RaiseArgtupleInvalid(
"updateMassJacobian_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3017, __pyx_L3_error)
10325 __Pyx_AddTraceback(
"cfemIntegrals.updateMassJacobian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
10326 __Pyx_RefNannyFinishContext();
10328 __pyx_L4_argument_unpacking_done:;
10329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 3017, __pyx_L1_error)
10330 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3018, __pyx_L1_error)
10331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3019, __pyx_L1_error)
10332 __pyx_r = __pyx_pf_13cfemIntegrals_70updateMassJacobian_strong(__pyx_self, __pyx_v_dmt, __pyx_v_v, __pyx_v_dstrong_residual);
10339 __Pyx_RefNannyFinishContext();
10343 static PyObject *__pyx_pf_13cfemIntegrals_70updateMassJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_dstrong_residual) {
10344 int __pyx_v_nElements_global;
10345 int __pyx_v_nQuadraturePoints_element;
10346 int __pyx_v_nDOF_trial_element;
10347 PyObject *__pyx_r = NULL;
10348 __Pyx_RefNannyDeclarations
10349 __Pyx_RefNannySetupContext(
"updateMassJacobian_strong", 0);
10358 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
10367 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
10376 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
10385 updateMassJacobian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_dstrong_residual->data));
10396 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10397 __Pyx_XGIVEREF(__pyx_r);
10398 __Pyx_RefNannyFinishContext();
10411 static PyObject *__pyx_pw_13cfemIntegrals_73updateMass_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10412 static PyMethodDef __pyx_mdef_13cfemIntegrals_73updateMass_adjoint = {
"updateMass_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_73updateMass_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
10413 static PyObject *__pyx_pw_13cfemIntegrals_73updateMass_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10414 PyArrayObject *__pyx_v_dmt = 0;
10415 PyArrayObject *__pyx_v_w_dV = 0;
10416 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
10417 int __pyx_lineno = 0;
10418 const char *__pyx_filename = NULL;
10419 int __pyx_clineno = 0;
10420 PyObject *__pyx_r = 0;
10421 __Pyx_RefNannyDeclarations
10422 __Pyx_RefNannySetupContext(
"updateMass_adjoint (wrapper)", 0);
10424 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dmt,&__pyx_n_s_w_dV,&__pyx_n_s_Lstar_w_dV,0};
10425 PyObject* values[3] = {0,0,0};
10426 if (unlikely(__pyx_kwds)) {
10427 Py_ssize_t kw_args;
10428 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10429 switch (pos_args) {
10430 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10431 CYTHON_FALLTHROUGH;
10432 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10433 CYTHON_FALLTHROUGH;
10434 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10435 CYTHON_FALLTHROUGH;
10437 default:
goto __pyx_L5_argtuple_error;
10439 kw_args = PyDict_Size(__pyx_kwds);
10440 switch (pos_args) {
10442 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
10443 else goto __pyx_L5_argtuple_error;
10444 CYTHON_FALLTHROUGH;
10446 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
10448 __Pyx_RaiseArgtupleInvalid(
"updateMass_adjoint", 1, 3, 3, 1); __PYX_ERR(0, 3029, __pyx_L3_error)
10450 CYTHON_FALLTHROUGH;
10452 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
10454 __Pyx_RaiseArgtupleInvalid(
"updateMass_adjoint", 1, 3, 3, 2); __PYX_ERR(0, 3029, __pyx_L3_error)
10457 if (unlikely(kw_args > 0)) {
10458 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateMass_adjoint") < 0)) __PYX_ERR(0, 3029, __pyx_L3_error)
10460 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
10461 goto __pyx_L5_argtuple_error;
10463 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10464 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10465 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10467 __pyx_v_dmt = ((PyArrayObject *)values[0]);
10468 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
10469 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[2]);
10471 goto __pyx_L4_argument_unpacking_done;
10472 __pyx_L5_argtuple_error:;
10473 __Pyx_RaiseArgtupleInvalid(
"updateMass_adjoint", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3029, __pyx_L3_error)
10475 __Pyx_AddTraceback(
"cfemIntegrals.updateMass_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
10476 __Pyx_RefNannyFinishContext();
10478 __pyx_L4_argument_unpacking_done:;
10479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 3029, __pyx_L1_error)
10480 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3030, __pyx_L1_error)
10481 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3031, __pyx_L1_error)
10482 __pyx_r = __pyx_pf_13cfemIntegrals_72updateMass_adjoint(__pyx_self, __pyx_v_dmt, __pyx_v_w_dV, __pyx_v_Lstar_w_dV);
10489 __Pyx_RefNannyFinishContext();
10493 static PyObject *__pyx_pf_13cfemIntegrals_72updateMass_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
10494 int __pyx_v_nElements_global;
10495 int __pyx_v_nQuadraturePoints_element;
10496 int __pyx_v_nDOF_test_element;
10497 PyObject *__pyx_r = NULL;
10498 __Pyx_RefNannyDeclarations
10499 __Pyx_RefNannySetupContext(
"updateMass_adjoint", 0);
10508 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
10517 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
10526 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
10535 updateMass_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
10546 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10547 __Pyx_XGIVEREF(__pyx_r);
10548 __Pyx_RefNannyFinishContext();
10561 static PyObject *__pyx_pw_13cfemIntegrals_75updateAdvection_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10562 static PyMethodDef __pyx_mdef_13cfemIntegrals_75updateAdvection_weak = {
"updateAdvection_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_75updateAdvection_weak, METH_VARARGS|METH_KEYWORDS, 0};
10563 static PyObject *__pyx_pw_13cfemIntegrals_75updateAdvection_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10564 PyArrayObject *__pyx_v_f = 0;
10565 PyArrayObject *__pyx_v_grad_w_dV = 0;
10566 PyArrayObject *__pyx_v_weak_residual = 0;
10567 int __pyx_lineno = 0;
10568 const char *__pyx_filename = NULL;
10569 int __pyx_clineno = 0;
10570 PyObject *__pyx_r = 0;
10571 __Pyx_RefNannyDeclarations
10572 __Pyx_RefNannySetupContext(
"updateAdvection_weak (wrapper)", 0);
10574 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_f,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual,0};
10575 PyObject* values[3] = {0,0,0};
10576 if (unlikely(__pyx_kwds)) {
10577 Py_ssize_t kw_args;
10578 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10579 switch (pos_args) {
10580 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10581 CYTHON_FALLTHROUGH;
10582 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10583 CYTHON_FALLTHROUGH;
10584 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10585 CYTHON_FALLTHROUGH;
10587 default:
goto __pyx_L5_argtuple_error;
10589 kw_args = PyDict_Size(__pyx_kwds);
10590 switch (pos_args) {
10592 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
10593 else goto __pyx_L5_argtuple_error;
10594 CYTHON_FALLTHROUGH;
10596 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
10598 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_weak", 1, 3, 3, 1); __PYX_ERR(0, 3041, __pyx_L3_error)
10600 CYTHON_FALLTHROUGH;
10602 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
10604 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_weak", 1, 3, 3, 2); __PYX_ERR(0, 3041, __pyx_L3_error)
10607 if (unlikely(kw_args > 0)) {
10608 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvection_weak") < 0)) __PYX_ERR(0, 3041, __pyx_L3_error)
10610 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
10611 goto __pyx_L5_argtuple_error;
10613 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10614 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10615 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10617 __pyx_v_f = ((PyArrayObject *)values[0]);
10618 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
10619 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
10621 goto __pyx_L4_argument_unpacking_done;
10622 __pyx_L5_argtuple_error:;
10623 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3041, __pyx_L3_error)
10625 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvection_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
10626 __Pyx_RefNannyFinishContext();
10628 __pyx_L4_argument_unpacking_done:;
10629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 3041, __pyx_L1_error)
10630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3042, __pyx_L1_error)
10631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3043, __pyx_L1_error)
10632 __pyx_r = __pyx_pf_13cfemIntegrals_74updateAdvection_weak(__pyx_self, __pyx_v_f, __pyx_v_grad_w_dV, __pyx_v_weak_residual);
10639 __Pyx_RefNannyFinishContext();
10643 static PyObject *__pyx_pf_13cfemIntegrals_74updateAdvection_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
10644 int __pyx_v_nElements_global;
10645 int __pyx_v_nQuadraturePoints_element;
10646 int __pyx_v_nDOF_test_element;
10647 int __pyx_v_nSpace;
10648 PyObject *__pyx_r = NULL;
10649 __Pyx_RefNannyDeclarations
10650 __Pyx_RefNannySetupContext(
"updateAdvection_weak", 0);
10659 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
10668 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
10677 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
10686 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
10695 updateAdvection_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
10706 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10707 __Pyx_XGIVEREF(__pyx_r);
10708 __Pyx_RefNannyFinishContext();
10721 static PyObject *__pyx_pw_13cfemIntegrals_77updateAdvectionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10722 static PyMethodDef __pyx_mdef_13cfemIntegrals_77updateAdvectionJacobian_weak = {
"updateAdvectionJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_77updateAdvectionJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
10723 static PyObject *__pyx_pw_13cfemIntegrals_77updateAdvectionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10724 PyArrayObject *__pyx_v_df = 0;
10725 PyArrayObject *__pyx_v_v_X_grad_w_dV = 0;
10726 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
10727 int __pyx_lineno = 0;
10728 const char *__pyx_filename = NULL;
10729 int __pyx_clineno = 0;
10730 PyObject *__pyx_r = 0;
10731 __Pyx_RefNannyDeclarations
10732 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_weak (wrapper)", 0);
10734 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_df,&__pyx_n_s_v_X_grad_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
10735 PyObject* values[3] = {0,0,0};
10736 if (unlikely(__pyx_kwds)) {
10737 Py_ssize_t kw_args;
10738 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10739 switch (pos_args) {
10740 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10741 CYTHON_FALLTHROUGH;
10742 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10743 CYTHON_FALLTHROUGH;
10744 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10745 CYTHON_FALLTHROUGH;
10747 default:
goto __pyx_L5_argtuple_error;
10749 kw_args = PyDict_Size(__pyx_kwds);
10750 switch (pos_args) {
10752 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
10753 else goto __pyx_L5_argtuple_error;
10754 CYTHON_FALLTHROUGH;
10756 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_grad_w_dV)) != 0)) kw_args--;
10758 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak", 1, 3, 3, 1); __PYX_ERR(0, 3055, __pyx_L3_error)
10760 CYTHON_FALLTHROUGH;
10762 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
10764 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak", 1, 3, 3, 2); __PYX_ERR(0, 3055, __pyx_L3_error)
10767 if (unlikely(kw_args > 0)) {
10768 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvectionJacobian_weak") < 0)) __PYX_ERR(0, 3055, __pyx_L3_error)
10770 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
10771 goto __pyx_L5_argtuple_error;
10773 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10774 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10775 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10777 __pyx_v_df = ((PyArrayObject *)values[0]);
10778 __pyx_v_v_X_grad_w_dV = ((PyArrayObject *)values[1]);
10779 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
10781 goto __pyx_L4_argument_unpacking_done;
10782 __pyx_L5_argtuple_error:;
10783 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3055, __pyx_L3_error)
10785 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvectionJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
10786 __Pyx_RefNannyFinishContext();
10788 __pyx_L4_argument_unpacking_done:;
10789 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3055, __pyx_L1_error)
10790 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"v_X_grad_w_dV", 0))) __PYX_ERR(0, 3056, __pyx_L1_error)
10791 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3057, __pyx_L1_error)
10792 __pyx_r = __pyx_pf_13cfemIntegrals_76updateAdvectionJacobian_weak(__pyx_self, __pyx_v_df, __pyx_v_v_X_grad_w_dV, __pyx_v_jacobian_weak_residual);
10799 __Pyx_RefNannyFinishContext();
10803 static PyObject *__pyx_pf_13cfemIntegrals_76updateAdvectionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
10804 int __pyx_v_nElements_global;
10805 int __pyx_v_nQuadraturePoints_element;
10806 int __pyx_v_nDOF_trial_element;
10807 int __pyx_v_nDOF_test_element;
10808 int __pyx_v_nSpace;
10809 PyObject *__pyx_r = NULL;
10810 __Pyx_RefNannyDeclarations
10811 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_weak", 0);
10820 __pyx_v_nElements_global = (__pyx_v_v_X_grad_w_dV->dimensions[0]);
10829 __pyx_v_nQuadraturePoints_element = (__pyx_v_v_X_grad_w_dV->dimensions[1]);
10838 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_grad_w_dV->dimensions[2]);
10847 __pyx_v_nDOF_test_element = (__pyx_v_v_X_grad_w_dV->dimensions[3]);
10856 __pyx_v_nSpace = (__pyx_v_v_X_grad_w_dV->dimensions[4]);
10865 updateAdvectionJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_v_X_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
10876 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10877 __Pyx_XGIVEREF(__pyx_r);
10878 __Pyx_RefNannyFinishContext();
10891 static PyObject *__pyx_pw_13cfemIntegrals_79updateAdvectionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10892 static PyMethodDef __pyx_mdef_13cfemIntegrals_79updateAdvectionJacobian_weak_lowmem = {
"updateAdvectionJacobian_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_79updateAdvectionJacobian_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
10893 static PyObject *__pyx_pw_13cfemIntegrals_79updateAdvectionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10894 PyArrayObject *__pyx_v_df = 0;
10895 PyArrayObject *__pyx_v_v = 0;
10896 PyArrayObject *__pyx_v_grad_w_dV = 0;
10897 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
10898 int __pyx_lineno = 0;
10899 const char *__pyx_filename = NULL;
10900 int __pyx_clineno = 0;
10901 PyObject *__pyx_r = 0;
10902 __Pyx_RefNannyDeclarations
10903 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_weak_lowmem (wrapper)", 0);
10905 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_df,&__pyx_n_s_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
10906 PyObject* values[4] = {0,0,0,0};
10907 if (unlikely(__pyx_kwds)) {
10908 Py_ssize_t kw_args;
10909 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10910 switch (pos_args) {
10911 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10912 CYTHON_FALLTHROUGH;
10913 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10914 CYTHON_FALLTHROUGH;
10915 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10916 CYTHON_FALLTHROUGH;
10917 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10918 CYTHON_FALLTHROUGH;
10920 default:
goto __pyx_L5_argtuple_error;
10922 kw_args = PyDict_Size(__pyx_kwds);
10923 switch (pos_args) {
10925 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
10926 else goto __pyx_L5_argtuple_error;
10927 CYTHON_FALLTHROUGH;
10929 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
10931 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3071, __pyx_L3_error)
10933 CYTHON_FALLTHROUGH;
10935 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
10937 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3071, __pyx_L3_error)
10939 CYTHON_FALLTHROUGH;
10941 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
10943 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3071, __pyx_L3_error)
10946 if (unlikely(kw_args > 0)) {
10947 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvectionJacobian_weak_lowmem") < 0)) __PYX_ERR(0, 3071, __pyx_L3_error)
10949 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
10950 goto __pyx_L5_argtuple_error;
10952 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10953 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10954 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10955 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10957 __pyx_v_df = ((PyArrayObject *)values[0]);
10958 __pyx_v_v = ((PyArrayObject *)values[1]);
10959 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
10960 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[3]);
10962 goto __pyx_L4_argument_unpacking_done;
10963 __pyx_L5_argtuple_error:;
10964 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_weak_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3071, __pyx_L3_error)
10966 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvectionJacobian_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
10967 __Pyx_RefNannyFinishContext();
10969 __pyx_L4_argument_unpacking_done:;
10970 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3071, __pyx_L1_error)
10971 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3072, __pyx_L1_error)
10972 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3073, __pyx_L1_error)
10973 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3074, __pyx_L1_error)
10974 __pyx_r = __pyx_pf_13cfemIntegrals_78updateAdvectionJacobian_weak_lowmem(__pyx_self, __pyx_v_df, __pyx_v_v, __pyx_v_grad_w_dV, __pyx_v_jacobian_weak_residual);
10981 __Pyx_RefNannyFinishContext();
10985 static PyObject *__pyx_pf_13cfemIntegrals_78updateAdvectionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
10986 int __pyx_v_nElements_global;
10987 int __pyx_v_nQuadraturePoints_element;
10988 int __pyx_v_nDOF_trial_element;
10989 int __pyx_v_nDOF_test_element;
10990 int __pyx_v_nSpace;
10991 PyObject *__pyx_r = NULL;
10992 __Pyx_RefNannyDeclarations
10993 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_weak_lowmem", 0);
11002 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
11011 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
11020 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
11029 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
11038 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
11047 updateAdvectionJacobian_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
11058 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11059 __Pyx_XGIVEREF(__pyx_r);
11060 __Pyx_RefNannyFinishContext();
11073 static PyObject *__pyx_pw_13cfemIntegrals_81updateAdvection_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11074 static PyMethodDef __pyx_mdef_13cfemIntegrals_81updateAdvection_strong = {
"updateAdvection_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_81updateAdvection_strong, METH_VARARGS|METH_KEYWORDS, 0};
11075 static PyObject *__pyx_pw_13cfemIntegrals_81updateAdvection_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11076 PyArrayObject *__pyx_v_df = 0;
11077 PyArrayObject *__pyx_v_grad_u = 0;
11078 PyArrayObject *__pyx_v_strong_residual = 0;
11079 int __pyx_lineno = 0;
11080 const char *__pyx_filename = NULL;
11081 int __pyx_clineno = 0;
11082 PyObject *__pyx_r = 0;
11083 __Pyx_RefNannyDeclarations
11084 __Pyx_RefNannySetupContext(
"updateAdvection_strong (wrapper)", 0);
11086 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_df,&__pyx_n_s_grad_u,&__pyx_n_s_strong_residual,0};
11087 PyObject* values[3] = {0,0,0};
11088 if (unlikely(__pyx_kwds)) {
11089 Py_ssize_t kw_args;
11090 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11091 switch (pos_args) {
11092 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11093 CYTHON_FALLTHROUGH;
11094 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11095 CYTHON_FALLTHROUGH;
11096 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11097 CYTHON_FALLTHROUGH;
11099 default:
goto __pyx_L5_argtuple_error;
11101 kw_args = PyDict_Size(__pyx_kwds);
11102 switch (pos_args) {
11104 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
11105 else goto __pyx_L5_argtuple_error;
11106 CYTHON_FALLTHROUGH;
11108 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
11110 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_strong", 1, 3, 3, 1); __PYX_ERR(0, 3089, __pyx_L3_error)
11112 CYTHON_FALLTHROUGH;
11114 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
11116 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_strong", 1, 3, 3, 2); __PYX_ERR(0, 3089, __pyx_L3_error)
11119 if (unlikely(kw_args > 0)) {
11120 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvection_strong") < 0)) __PYX_ERR(0, 3089, __pyx_L3_error)
11122 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
11123 goto __pyx_L5_argtuple_error;
11125 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11126 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11127 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11129 __pyx_v_df = ((PyArrayObject *)values[0]);
11130 __pyx_v_grad_u = ((PyArrayObject *)values[1]);
11131 __pyx_v_strong_residual = ((PyArrayObject *)values[2]);
11133 goto __pyx_L4_argument_unpacking_done;
11134 __pyx_L5_argtuple_error:;
11135 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3089, __pyx_L3_error)
11137 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvection_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
11138 __Pyx_RefNannyFinishContext();
11140 __pyx_L4_argument_unpacking_done:;
11141 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3089, __pyx_L1_error)
11142 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3090, __pyx_L1_error)
11143 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3091, __pyx_L1_error)
11144 __pyx_r = __pyx_pf_13cfemIntegrals_80updateAdvection_strong(__pyx_self, __pyx_v_df, __pyx_v_grad_u, __pyx_v_strong_residual);
11151 __Pyx_RefNannyFinishContext();
11155 static PyObject *__pyx_pf_13cfemIntegrals_80updateAdvection_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual) {
11156 int __pyx_v_nElements_global;
11157 int __pyx_v_nQuadraturePoints_element;
11158 int __pyx_v_nSpace;
11159 PyObject *__pyx_r = NULL;
11160 __Pyx_RefNannyDeclarations
11161 __Pyx_RefNannySetupContext(
"updateAdvection_strong", 0);
11170 __pyx_v_nElements_global = (__pyx_v_grad_u->dimensions[0]);
11179 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_u->dimensions[1]);
11188 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
11197 updateAdvection_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_strong_residual->data));
11208 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11209 __Pyx_XGIVEREF(__pyx_r);
11210 __Pyx_RefNannyFinishContext();
11223 static PyObject *__pyx_pw_13cfemIntegrals_83updateAdvectionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11224 static PyMethodDef __pyx_mdef_13cfemIntegrals_83updateAdvectionJacobian_strong = {
"updateAdvectionJacobian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_83updateAdvectionJacobian_strong, METH_VARARGS|METH_KEYWORDS, 0};
11225 static PyObject *__pyx_pw_13cfemIntegrals_83updateAdvectionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11226 PyArrayObject *__pyx_v_df = 0;
11227 PyArrayObject *__pyx_v_grad_v = 0;
11228 PyArrayObject *__pyx_v_dstrong_residual = 0;
11229 int __pyx_lineno = 0;
11230 const char *__pyx_filename = NULL;
11231 int __pyx_clineno = 0;
11232 PyObject *__pyx_r = 0;
11233 __Pyx_RefNannyDeclarations
11234 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_strong (wrapper)", 0);
11236 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_df,&__pyx_n_s_grad_v,&__pyx_n_s_dstrong_residual,0};
11237 PyObject* values[3] = {0,0,0};
11238 if (unlikely(__pyx_kwds)) {
11239 Py_ssize_t kw_args;
11240 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11241 switch (pos_args) {
11242 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11243 CYTHON_FALLTHROUGH;
11244 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11245 CYTHON_FALLTHROUGH;
11246 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11247 CYTHON_FALLTHROUGH;
11249 default:
goto __pyx_L5_argtuple_error;
11251 kw_args = PyDict_Size(__pyx_kwds);
11252 switch (pos_args) {
11254 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
11255 else goto __pyx_L5_argtuple_error;
11256 CYTHON_FALLTHROUGH;
11258 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
11260 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_strong", 1, 3, 3, 1); __PYX_ERR(0, 3101, __pyx_L3_error)
11262 CYTHON_FALLTHROUGH;
11264 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
11266 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_strong", 1, 3, 3, 2); __PYX_ERR(0, 3101, __pyx_L3_error)
11269 if (unlikely(kw_args > 0)) {
11270 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvectionJacobian_strong") < 0)) __PYX_ERR(0, 3101, __pyx_L3_error)
11272 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
11273 goto __pyx_L5_argtuple_error;
11275 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11276 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11277 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11279 __pyx_v_df = ((PyArrayObject *)values[0]);
11280 __pyx_v_grad_v = ((PyArrayObject *)values[1]);
11281 __pyx_v_dstrong_residual = ((PyArrayObject *)values[2]);
11283 goto __pyx_L4_argument_unpacking_done;
11284 __pyx_L5_argtuple_error:;
11285 __Pyx_RaiseArgtupleInvalid(
"updateAdvectionJacobian_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3101, __pyx_L3_error)
11287 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvectionJacobian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
11288 __Pyx_RefNannyFinishContext();
11290 __pyx_L4_argument_unpacking_done:;
11291 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3101, __pyx_L1_error)
11292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3102, __pyx_L1_error)
11293 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3103, __pyx_L1_error)
11294 __pyx_r = __pyx_pf_13cfemIntegrals_82updateAdvectionJacobian_strong(__pyx_self, __pyx_v_df, __pyx_v_grad_v, __pyx_v_dstrong_residual);
11301 __Pyx_RefNannyFinishContext();
11305 static PyObject *__pyx_pf_13cfemIntegrals_82updateAdvectionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual) {
11306 int __pyx_v_nElements_global;
11307 int __pyx_v_nQuadraturePoints_element;
11308 int __pyx_v_nDOF_trial_element;
11309 int __pyx_v_nSpace;
11310 PyObject *__pyx_r = NULL;
11311 __Pyx_RefNannyDeclarations
11312 __Pyx_RefNannySetupContext(
"updateAdvectionJacobian_strong", 0);
11321 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
11330 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
11339 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
11348 __pyx_v_nSpace = (__pyx_v_grad_v->dimensions[3]);
11357 updateAdvectionJacobian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_dstrong_residual->data));
11368 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11369 __Pyx_XGIVEREF(__pyx_r);
11370 __Pyx_RefNannyFinishContext();
11383 static PyObject *__pyx_pw_13cfemIntegrals_85updateAdvection_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11384 static PyMethodDef __pyx_mdef_13cfemIntegrals_85updateAdvection_adjoint = {
"updateAdvection_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_85updateAdvection_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
11385 static PyObject *__pyx_pw_13cfemIntegrals_85updateAdvection_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11386 PyArrayObject *__pyx_v_df = 0;
11387 PyArrayObject *__pyx_v_grad_w_dV = 0;
11388 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
11389 int __pyx_lineno = 0;
11390 const char *__pyx_filename = NULL;
11391 int __pyx_clineno = 0;
11392 PyObject *__pyx_r = 0;
11393 __Pyx_RefNannyDeclarations
11394 __Pyx_RefNannySetupContext(
"updateAdvection_adjoint (wrapper)", 0);
11396 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_df,&__pyx_n_s_grad_w_dV,&__pyx_n_s_Lstar_w_dV,0};
11397 PyObject* values[3] = {0,0,0};
11398 if (unlikely(__pyx_kwds)) {
11399 Py_ssize_t kw_args;
11400 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11401 switch (pos_args) {
11402 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11403 CYTHON_FALLTHROUGH;
11404 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11405 CYTHON_FALLTHROUGH;
11406 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11407 CYTHON_FALLTHROUGH;
11409 default:
goto __pyx_L5_argtuple_error;
11411 kw_args = PyDict_Size(__pyx_kwds);
11412 switch (pos_args) {
11414 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
11415 else goto __pyx_L5_argtuple_error;
11416 CYTHON_FALLTHROUGH;
11418 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
11420 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_adjoint", 1, 3, 3, 1); __PYX_ERR(0, 3115, __pyx_L3_error)
11422 CYTHON_FALLTHROUGH;
11424 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
11426 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_adjoint", 1, 3, 3, 2); __PYX_ERR(0, 3115, __pyx_L3_error)
11429 if (unlikely(kw_args > 0)) {
11430 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAdvection_adjoint") < 0)) __PYX_ERR(0, 3115, __pyx_L3_error)
11432 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
11433 goto __pyx_L5_argtuple_error;
11435 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11436 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11437 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11439 __pyx_v_df = ((PyArrayObject *)values[0]);
11440 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
11441 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[2]);
11443 goto __pyx_L4_argument_unpacking_done;
11444 __pyx_L5_argtuple_error:;
11445 __Pyx_RaiseArgtupleInvalid(
"updateAdvection_adjoint", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3115, __pyx_L3_error)
11447 __Pyx_AddTraceback(
"cfemIntegrals.updateAdvection_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
11448 __Pyx_RefNannyFinishContext();
11450 __pyx_L4_argument_unpacking_done:;
11451 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 3115, __pyx_L1_error)
11452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3116, __pyx_L1_error)
11453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3117, __pyx_L1_error)
11454 __pyx_r = __pyx_pf_13cfemIntegrals_84updateAdvection_adjoint(__pyx_self, __pyx_v_df, __pyx_v_grad_w_dV, __pyx_v_Lstar_w_dV);
11461 __Pyx_RefNannyFinishContext();
11465 static PyObject *__pyx_pf_13cfemIntegrals_84updateAdvection_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
11466 int __pyx_v_nElements_global;
11467 int __pyx_v_nQuadraturePoints_element;
11468 int __pyx_v_nDOF_test_element;
11469 int __pyx_v_nSpace;
11470 PyObject *__pyx_r = NULL;
11471 __Pyx_RefNannyDeclarations
11472 __Pyx_RefNannySetupContext(
"updateAdvection_adjoint", 0);
11481 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
11490 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
11499 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
11508 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
11517 updateAdvection_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
11528 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11529 __Pyx_XGIVEREF(__pyx_r);
11530 __Pyx_RefNannyFinishContext();
11543 static PyObject *__pyx_pw_13cfemIntegrals_87updateHamiltonian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11544 static PyMethodDef __pyx_mdef_13cfemIntegrals_87updateHamiltonian_weak = {
"updateHamiltonian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_87updateHamiltonian_weak, METH_VARARGS|METH_KEYWORDS, 0};
11545 static PyObject *__pyx_pw_13cfemIntegrals_87updateHamiltonian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11546 PyArrayObject *__pyx_v_H = 0;
11547 PyArrayObject *__pyx_v_w_dV = 0;
11548 PyArrayObject *__pyx_v_weak_residual = 0;
11549 int __pyx_lineno = 0;
11550 const char *__pyx_filename = NULL;
11551 int __pyx_clineno = 0;
11552 PyObject *__pyx_r = 0;
11553 __Pyx_RefNannyDeclarations
11554 __Pyx_RefNannySetupContext(
"updateHamiltonian_weak (wrapper)", 0);
11556 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_H,&__pyx_n_s_w_dV,&__pyx_n_s_weak_residual,0};
11557 PyObject* values[3] = {0,0,0};
11558 if (unlikely(__pyx_kwds)) {
11559 Py_ssize_t kw_args;
11560 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11561 switch (pos_args) {
11562 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11563 CYTHON_FALLTHROUGH;
11564 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11565 CYTHON_FALLTHROUGH;
11566 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11567 CYTHON_FALLTHROUGH;
11569 default:
goto __pyx_L5_argtuple_error;
11571 kw_args = PyDict_Size(__pyx_kwds);
11572 switch (pos_args) {
11574 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_H)) != 0)) kw_args--;
11575 else goto __pyx_L5_argtuple_error;
11576 CYTHON_FALLTHROUGH;
11578 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
11580 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_weak", 1, 3, 3, 1); __PYX_ERR(0, 3129, __pyx_L3_error)
11582 CYTHON_FALLTHROUGH;
11584 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
11586 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_weak", 1, 3, 3, 2); __PYX_ERR(0, 3129, __pyx_L3_error)
11589 if (unlikely(kw_args > 0)) {
11590 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonian_weak") < 0)) __PYX_ERR(0, 3129, __pyx_L3_error)
11592 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
11593 goto __pyx_L5_argtuple_error;
11595 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11596 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11597 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11599 __pyx_v_H = ((PyArrayObject *)values[0]);
11600 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
11601 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
11603 goto __pyx_L4_argument_unpacking_done;
11604 __pyx_L5_argtuple_error:;
11605 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3129, __pyx_L3_error)
11607 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
11608 __Pyx_RefNannyFinishContext();
11610 __pyx_L4_argument_unpacking_done:;
11611 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_H), __pyx_ptype_5numpy_ndarray, 1,
"H", 0))) __PYX_ERR(0, 3129, __pyx_L1_error)
11612 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3130, __pyx_L1_error)
11613 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3131, __pyx_L1_error)
11614 __pyx_r = __pyx_pf_13cfemIntegrals_86updateHamiltonian_weak(__pyx_self, __pyx_v_H, __pyx_v_w_dV, __pyx_v_weak_residual);
11621 __Pyx_RefNannyFinishContext();
11625 static PyObject *__pyx_pf_13cfemIntegrals_86updateHamiltonian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_H, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual) {
11626 int __pyx_v_nElements_global;
11627 int __pyx_v_nQuadraturePoints_element;
11628 int __pyx_v_nDOF_test_element;
11629 PyObject *__pyx_r = NULL;
11630 __Pyx_RefNannyDeclarations
11631 __Pyx_RefNannySetupContext(
"updateHamiltonian_weak", 0);
11640 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
11649 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
11658 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
11667 updateHamiltonian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_H->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
11678 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11679 __Pyx_XGIVEREF(__pyx_r);
11680 __Pyx_RefNannyFinishContext();
11693 static PyObject *__pyx_pw_13cfemIntegrals_89updateHamiltonianJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11694 static PyMethodDef __pyx_mdef_13cfemIntegrals_89updateHamiltonianJacobian_weak = {
"updateHamiltonianJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_89updateHamiltonianJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
11695 static PyObject *__pyx_pw_13cfemIntegrals_89updateHamiltonianJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11696 PyArrayObject *__pyx_v_dH = 0;
11697 PyArrayObject *__pyx_v_grad_v_X_w_dV = 0;
11698 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
11699 int __pyx_lineno = 0;
11700 const char *__pyx_filename = NULL;
11701 int __pyx_clineno = 0;
11702 PyObject *__pyx_r = 0;
11703 __Pyx_RefNannyDeclarations
11704 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_weak (wrapper)", 0);
11706 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dH,&__pyx_n_s_grad_v_X_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
11707 PyObject* values[3] = {0,0,0};
11708 if (unlikely(__pyx_kwds)) {
11709 Py_ssize_t kw_args;
11710 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11711 switch (pos_args) {
11712 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11713 CYTHON_FALLTHROUGH;
11714 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11715 CYTHON_FALLTHROUGH;
11716 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11717 CYTHON_FALLTHROUGH;
11719 default:
goto __pyx_L5_argtuple_error;
11721 kw_args = PyDict_Size(__pyx_kwds);
11722 switch (pos_args) {
11724 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
11725 else goto __pyx_L5_argtuple_error;
11726 CYTHON_FALLTHROUGH;
11728 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_w_dV)) != 0)) kw_args--;
11730 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak", 1, 3, 3, 1); __PYX_ERR(0, 3141, __pyx_L3_error)
11732 CYTHON_FALLTHROUGH;
11734 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
11736 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak", 1, 3, 3, 2); __PYX_ERR(0, 3141, __pyx_L3_error)
11739 if (unlikely(kw_args > 0)) {
11740 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonianJacobian_weak") < 0)) __PYX_ERR(0, 3141, __pyx_L3_error)
11742 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
11743 goto __pyx_L5_argtuple_error;
11745 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11746 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11747 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11749 __pyx_v_dH = ((PyArrayObject *)values[0]);
11750 __pyx_v_grad_v_X_w_dV = ((PyArrayObject *)values[1]);
11751 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
11753 goto __pyx_L4_argument_unpacking_done;
11754 __pyx_L5_argtuple_error:;
11755 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3141, __pyx_L3_error)
11757 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonianJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
11758 __Pyx_RefNannyFinishContext();
11760 __pyx_L4_argument_unpacking_done:;
11761 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3141, __pyx_L1_error)
11762 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_w_dV", 0))) __PYX_ERR(0, 3142, __pyx_L1_error)
11763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3143, __pyx_L1_error)
11764 __pyx_r = __pyx_pf_13cfemIntegrals_88updateHamiltonianJacobian_weak(__pyx_self, __pyx_v_dH, __pyx_v_grad_v_X_w_dV, __pyx_v_jacobian_weak_residual);
11771 __Pyx_RefNannyFinishContext();
11775 static PyObject *__pyx_pf_13cfemIntegrals_88updateHamiltonianJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
11776 int __pyx_v_nElements_global;
11777 int __pyx_v_nQuadraturePoints_element;
11778 int __pyx_v_nDOF_trial_element;
11779 int __pyx_v_nDOF_test_element;
11780 int __pyx_v_nSpace;
11781 PyObject *__pyx_r = NULL;
11782 __Pyx_RefNannyDeclarations
11783 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_weak", 0);
11792 __pyx_v_nElements_global = (__pyx_v_grad_v_X_w_dV->dimensions[0]);
11801 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_w_dV->dimensions[1]);
11810 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_w_dV->dimensions[2]);
11819 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_w_dV->dimensions[3]);
11828 __pyx_v_nSpace = (__pyx_v_grad_v_X_w_dV->dimensions[4]);
11837 updateHamiltonianJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_grad_v_X_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
11848 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11849 __Pyx_XGIVEREF(__pyx_r);
11850 __Pyx_RefNannyFinishContext();
11863 static PyObject *__pyx_pw_13cfemIntegrals_91updateHamiltonianJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11864 static PyMethodDef __pyx_mdef_13cfemIntegrals_91updateHamiltonianJacobian_weak_lowmem = {
"updateHamiltonianJacobian_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_91updateHamiltonianJacobian_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
11865 static PyObject *__pyx_pw_13cfemIntegrals_91updateHamiltonianJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11866 PyArrayObject *__pyx_v_dH = 0;
11867 PyArrayObject *__pyx_v_grad_v = 0;
11868 PyArrayObject *__pyx_v_w_dV = 0;
11869 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
11870 int __pyx_lineno = 0;
11871 const char *__pyx_filename = NULL;
11872 int __pyx_clineno = 0;
11873 PyObject *__pyx_r = 0;
11874 __Pyx_RefNannyDeclarations
11875 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_weak_lowmem (wrapper)", 0);
11877 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dH,&__pyx_n_s_grad_v,&__pyx_n_s_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
11878 PyObject* values[4] = {0,0,0,0};
11879 if (unlikely(__pyx_kwds)) {
11880 Py_ssize_t kw_args;
11881 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11882 switch (pos_args) {
11883 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11884 CYTHON_FALLTHROUGH;
11885 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11886 CYTHON_FALLTHROUGH;
11887 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11888 CYTHON_FALLTHROUGH;
11889 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11890 CYTHON_FALLTHROUGH;
11892 default:
goto __pyx_L5_argtuple_error;
11894 kw_args = PyDict_Size(__pyx_kwds);
11895 switch (pos_args) {
11897 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
11898 else goto __pyx_L5_argtuple_error;
11899 CYTHON_FALLTHROUGH;
11901 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
11903 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3157, __pyx_L3_error)
11905 CYTHON_FALLTHROUGH;
11907 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
11909 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3157, __pyx_L3_error)
11911 CYTHON_FALLTHROUGH;
11913 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
11915 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3157, __pyx_L3_error)
11918 if (unlikely(kw_args > 0)) {
11919 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonianJacobian_weak_lowmem") < 0)) __PYX_ERR(0, 3157, __pyx_L3_error)
11921 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
11922 goto __pyx_L5_argtuple_error;
11924 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11925 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11926 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11927 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
11929 __pyx_v_dH = ((PyArrayObject *)values[0]);
11930 __pyx_v_grad_v = ((PyArrayObject *)values[1]);
11931 __pyx_v_w_dV = ((PyArrayObject *)values[2]);
11932 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[3]);
11934 goto __pyx_L4_argument_unpacking_done;
11935 __pyx_L5_argtuple_error:;
11936 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_weak_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3157, __pyx_L3_error)
11938 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonianJacobian_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
11939 __Pyx_RefNannyFinishContext();
11941 __pyx_L4_argument_unpacking_done:;
11942 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3157, __pyx_L1_error)
11943 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3158, __pyx_L1_error)
11944 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3159, __pyx_L1_error)
11945 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3160, __pyx_L1_error)
11946 __pyx_r = __pyx_pf_13cfemIntegrals_90updateHamiltonianJacobian_weak_lowmem(__pyx_self, __pyx_v_dH, __pyx_v_grad_v, __pyx_v_w_dV, __pyx_v_jacobian_weak_residual);
11953 __Pyx_RefNannyFinishContext();
11957 static PyObject *__pyx_pf_13cfemIntegrals_90updateHamiltonianJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
11958 int __pyx_v_nElements_global;
11959 int __pyx_v_nQuadraturePoints_element;
11960 int __pyx_v_nDOF_trial_element;
11961 int __pyx_v_nDOF_test_element;
11962 int __pyx_v_nSpace;
11963 PyObject *__pyx_r = NULL;
11964 __Pyx_RefNannyDeclarations
11965 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_weak_lowmem", 0);
11974 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
11983 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
11992 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
12001 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
12010 __pyx_v_nSpace = (__pyx_v_grad_v->dimensions[3]);
12019 updateHamiltonianJacobian_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
12030 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12031 __Pyx_XGIVEREF(__pyx_r);
12032 __Pyx_RefNannyFinishContext();
12045 static PyObject *__pyx_pw_13cfemIntegrals_93updateHamiltonian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12046 static PyMethodDef __pyx_mdef_13cfemIntegrals_93updateHamiltonian_strong = {
"updateHamiltonian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_93updateHamiltonian_strong, METH_VARARGS|METH_KEYWORDS, 0};
12047 static PyObject *__pyx_pw_13cfemIntegrals_93updateHamiltonian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12048 PyArrayObject *__pyx_v_dH = 0;
12049 PyArrayObject *__pyx_v_grad_u = 0;
12050 PyArrayObject *__pyx_v_strong_residual = 0;
12051 int __pyx_lineno = 0;
12052 const char *__pyx_filename = NULL;
12053 int __pyx_clineno = 0;
12054 PyObject *__pyx_r = 0;
12055 __Pyx_RefNannyDeclarations
12056 __Pyx_RefNannySetupContext(
"updateHamiltonian_strong (wrapper)", 0);
12058 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dH,&__pyx_n_s_grad_u,&__pyx_n_s_strong_residual,0};
12059 PyObject* values[3] = {0,0,0};
12060 if (unlikely(__pyx_kwds)) {
12061 Py_ssize_t kw_args;
12062 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12063 switch (pos_args) {
12064 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12065 CYTHON_FALLTHROUGH;
12066 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12067 CYTHON_FALLTHROUGH;
12068 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12069 CYTHON_FALLTHROUGH;
12071 default:
goto __pyx_L5_argtuple_error;
12073 kw_args = PyDict_Size(__pyx_kwds);
12074 switch (pos_args) {
12076 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
12077 else goto __pyx_L5_argtuple_error;
12078 CYTHON_FALLTHROUGH;
12080 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
12082 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_strong", 1, 3, 3, 1); __PYX_ERR(0, 3175, __pyx_L3_error)
12084 CYTHON_FALLTHROUGH;
12086 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
12088 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_strong", 1, 3, 3, 2); __PYX_ERR(0, 3175, __pyx_L3_error)
12091 if (unlikely(kw_args > 0)) {
12092 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonian_strong") < 0)) __PYX_ERR(0, 3175, __pyx_L3_error)
12094 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12095 goto __pyx_L5_argtuple_error;
12097 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12098 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12099 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12101 __pyx_v_dH = ((PyArrayObject *)values[0]);
12102 __pyx_v_grad_u = ((PyArrayObject *)values[1]);
12103 __pyx_v_strong_residual = ((PyArrayObject *)values[2]);
12105 goto __pyx_L4_argument_unpacking_done;
12106 __pyx_L5_argtuple_error:;
12107 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3175, __pyx_L3_error)
12109 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
12110 __Pyx_RefNannyFinishContext();
12112 __pyx_L4_argument_unpacking_done:;
12113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3175, __pyx_L1_error)
12114 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3176, __pyx_L1_error)
12115 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3177, __pyx_L1_error)
12116 __pyx_r = __pyx_pf_13cfemIntegrals_92updateHamiltonian_strong(__pyx_self, __pyx_v_dH, __pyx_v_grad_u, __pyx_v_strong_residual);
12123 __Pyx_RefNannyFinishContext();
12127 static PyObject *__pyx_pf_13cfemIntegrals_92updateHamiltonian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual) {
12128 int __pyx_v_nElements_global;
12129 int __pyx_v_nQuadraturePoints_element;
12130 int __pyx_v_nSpace;
12131 PyObject *__pyx_r = NULL;
12132 __Pyx_RefNannyDeclarations
12133 __Pyx_RefNannySetupContext(
"updateHamiltonian_strong", 0);
12142 __pyx_v_nElements_global = (__pyx_v_grad_u->dimensions[0]);
12151 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_u->dimensions[1]);
12160 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
12169 updateHamiltonian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_strong_residual->data));
12180 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12181 __Pyx_XGIVEREF(__pyx_r);
12182 __Pyx_RefNannyFinishContext();
12195 static PyObject *__pyx_pw_13cfemIntegrals_95updateHamiltonianJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12196 static PyMethodDef __pyx_mdef_13cfemIntegrals_95updateHamiltonianJacobian_strong = {
"updateHamiltonianJacobian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_95updateHamiltonianJacobian_strong, METH_VARARGS|METH_KEYWORDS, 0};
12197 static PyObject *__pyx_pw_13cfemIntegrals_95updateHamiltonianJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12198 PyArrayObject *__pyx_v_dH = 0;
12199 PyArrayObject *__pyx_v_grad_v = 0;
12200 PyArrayObject *__pyx_v_dstrong_residual = 0;
12201 int __pyx_lineno = 0;
12202 const char *__pyx_filename = NULL;
12203 int __pyx_clineno = 0;
12204 PyObject *__pyx_r = 0;
12205 __Pyx_RefNannyDeclarations
12206 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_strong (wrapper)", 0);
12208 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dH,&__pyx_n_s_grad_v,&__pyx_n_s_dstrong_residual,0};
12209 PyObject* values[3] = {0,0,0};
12210 if (unlikely(__pyx_kwds)) {
12211 Py_ssize_t kw_args;
12212 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12213 switch (pos_args) {
12214 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12215 CYTHON_FALLTHROUGH;
12216 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12217 CYTHON_FALLTHROUGH;
12218 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12219 CYTHON_FALLTHROUGH;
12221 default:
goto __pyx_L5_argtuple_error;
12223 kw_args = PyDict_Size(__pyx_kwds);
12224 switch (pos_args) {
12226 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
12227 else goto __pyx_L5_argtuple_error;
12228 CYTHON_FALLTHROUGH;
12230 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
12232 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_strong", 1, 3, 3, 1); __PYX_ERR(0, 3187, __pyx_L3_error)
12234 CYTHON_FALLTHROUGH;
12236 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
12238 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_strong", 1, 3, 3, 2); __PYX_ERR(0, 3187, __pyx_L3_error)
12241 if (unlikely(kw_args > 0)) {
12242 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonianJacobian_strong") < 0)) __PYX_ERR(0, 3187, __pyx_L3_error)
12244 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12245 goto __pyx_L5_argtuple_error;
12247 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12248 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12249 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12251 __pyx_v_dH = ((PyArrayObject *)values[0]);
12252 __pyx_v_grad_v = ((PyArrayObject *)values[1]);
12253 __pyx_v_dstrong_residual = ((PyArrayObject *)values[2]);
12255 goto __pyx_L4_argument_unpacking_done;
12256 __pyx_L5_argtuple_error:;
12257 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonianJacobian_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3187, __pyx_L3_error)
12259 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonianJacobian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
12260 __Pyx_RefNannyFinishContext();
12262 __pyx_L4_argument_unpacking_done:;
12263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3187, __pyx_L1_error)
12264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3188, __pyx_L1_error)
12265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3189, __pyx_L1_error)
12266 __pyx_r = __pyx_pf_13cfemIntegrals_94updateHamiltonianJacobian_strong(__pyx_self, __pyx_v_dH, __pyx_v_grad_v, __pyx_v_dstrong_residual);
12273 __Pyx_RefNannyFinishContext();
12277 static PyObject *__pyx_pf_13cfemIntegrals_94updateHamiltonianJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual) {
12278 int __pyx_v_nElements_global;
12279 int __pyx_v_nQuadraturePoints_element;
12280 int __pyx_v_nDOF_trial_element;
12281 int __pyx_v_nSpace;
12282 PyObject *__pyx_r = NULL;
12283 __Pyx_RefNannyDeclarations
12284 __Pyx_RefNannySetupContext(
"updateHamiltonianJacobian_strong", 0);
12293 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
12302 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
12311 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
12320 __pyx_v_nSpace = (__pyx_v_grad_v->dimensions[3]);
12329 updateHamiltonianJacobian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_dstrong_residual->data));
12340 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12341 __Pyx_XGIVEREF(__pyx_r);
12342 __Pyx_RefNannyFinishContext();
12355 static PyObject *__pyx_pw_13cfemIntegrals_97updateHamiltonian_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12356 static PyMethodDef __pyx_mdef_13cfemIntegrals_97updateHamiltonian_adjoint = {
"updateHamiltonian_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_97updateHamiltonian_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
12357 static PyObject *__pyx_pw_13cfemIntegrals_97updateHamiltonian_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12358 PyArrayObject *__pyx_v_dH = 0;
12359 PyArrayObject *__pyx_v_grad_w_dV = 0;
12360 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
12361 int __pyx_lineno = 0;
12362 const char *__pyx_filename = NULL;
12363 int __pyx_clineno = 0;
12364 PyObject *__pyx_r = 0;
12365 __Pyx_RefNannyDeclarations
12366 __Pyx_RefNannySetupContext(
"updateHamiltonian_adjoint (wrapper)", 0);
12368 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dH,&__pyx_n_s_grad_w_dV,&__pyx_n_s_Lstar_w_dV,0};
12369 PyObject* values[3] = {0,0,0};
12370 if (unlikely(__pyx_kwds)) {
12371 Py_ssize_t kw_args;
12372 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12373 switch (pos_args) {
12374 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12375 CYTHON_FALLTHROUGH;
12376 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12377 CYTHON_FALLTHROUGH;
12378 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12379 CYTHON_FALLTHROUGH;
12381 default:
goto __pyx_L5_argtuple_error;
12383 kw_args = PyDict_Size(__pyx_kwds);
12384 switch (pos_args) {
12386 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dH)) != 0)) kw_args--;
12387 else goto __pyx_L5_argtuple_error;
12388 CYTHON_FALLTHROUGH;
12390 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
12392 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_adjoint", 1, 3, 3, 1); __PYX_ERR(0, 3201, __pyx_L3_error)
12394 CYTHON_FALLTHROUGH;
12396 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
12398 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_adjoint", 1, 3, 3, 2); __PYX_ERR(0, 3201, __pyx_L3_error)
12401 if (unlikely(kw_args > 0)) {
12402 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateHamiltonian_adjoint") < 0)) __PYX_ERR(0, 3201, __pyx_L3_error)
12404 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12405 goto __pyx_L5_argtuple_error;
12407 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12408 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12409 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12411 __pyx_v_dH = ((PyArrayObject *)values[0]);
12412 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
12413 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[2]);
12415 goto __pyx_L4_argument_unpacking_done;
12416 __pyx_L5_argtuple_error:;
12417 __Pyx_RaiseArgtupleInvalid(
"updateHamiltonian_adjoint", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3201, __pyx_L3_error)
12419 __Pyx_AddTraceback(
"cfemIntegrals.updateHamiltonian_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
12420 __Pyx_RefNannyFinishContext();
12422 __pyx_L4_argument_unpacking_done:;
12423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dH), __pyx_ptype_5numpy_ndarray, 1,
"dH", 0))) __PYX_ERR(0, 3201, __pyx_L1_error)
12424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3202, __pyx_L1_error)
12425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3203, __pyx_L1_error)
12426 __pyx_r = __pyx_pf_13cfemIntegrals_96updateHamiltonian_adjoint(__pyx_self, __pyx_v_dH, __pyx_v_grad_w_dV, __pyx_v_Lstar_w_dV);
12433 __Pyx_RefNannyFinishContext();
12437 static PyObject *__pyx_pf_13cfemIntegrals_96updateHamiltonian_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dH, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
12438 int __pyx_v_nElements_global;
12439 int __pyx_v_nQuadraturePoints_element;
12440 int __pyx_v_nDOF_test_element;
12441 int __pyx_v_nSpace;
12442 PyObject *__pyx_r = NULL;
12443 __Pyx_RefNannyDeclarations
12444 __Pyx_RefNannySetupContext(
"updateHamiltonian_adjoint", 0);
12453 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
12462 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
12471 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
12480 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
12489 updateHamiltonian_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dH->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
12500 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12501 __Pyx_XGIVEREF(__pyx_r);
12502 __Pyx_RefNannyFinishContext();
12515 static PyObject *__pyx_pw_13cfemIntegrals_99updateDiffusion_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12516 static PyMethodDef __pyx_mdef_13cfemIntegrals_99updateDiffusion_weak = {
"updateDiffusion_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_99updateDiffusion_weak, METH_VARARGS|METH_KEYWORDS, 0};
12517 static PyObject *__pyx_pw_13cfemIntegrals_99updateDiffusion_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12518 PyArrayObject *__pyx_v_a = 0;
12519 PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV = 0;
12520 PyArrayObject *__pyx_v_weak_residual = 0;
12521 int __pyx_lineno = 0;
12522 const char *__pyx_filename = NULL;
12523 int __pyx_clineno = 0;
12524 PyObject *__pyx_r = 0;
12525 __Pyx_RefNannyDeclarations
12526 __Pyx_RefNannySetupContext(
"updateDiffusion_weak (wrapper)", 0);
12528 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_grad_phi_X_grad_w_dV,&__pyx_n_s_weak_residual,0};
12529 PyObject* values[3] = {0,0,0};
12530 if (unlikely(__pyx_kwds)) {
12531 Py_ssize_t kw_args;
12532 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12533 switch (pos_args) {
12534 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12535 CYTHON_FALLTHROUGH;
12536 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12537 CYTHON_FALLTHROUGH;
12538 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12539 CYTHON_FALLTHROUGH;
12541 default:
goto __pyx_L5_argtuple_error;
12543 kw_args = PyDict_Size(__pyx_kwds);
12544 switch (pos_args) {
12546 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
12547 else goto __pyx_L5_argtuple_error;
12548 CYTHON_FALLTHROUGH;
12550 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_X_grad_w_dV)) != 0)) kw_args--;
12552 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak", 1, 3, 3, 1); __PYX_ERR(0, 3215, __pyx_L3_error)
12554 CYTHON_FALLTHROUGH;
12556 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
12558 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak", 1, 3, 3, 2); __PYX_ERR(0, 3215, __pyx_L3_error)
12561 if (unlikely(kw_args > 0)) {
12562 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_weak") < 0)) __PYX_ERR(0, 3215, __pyx_L3_error)
12564 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
12565 goto __pyx_L5_argtuple_error;
12567 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12568 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12569 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12571 __pyx_v_a = ((PyArrayObject *)values[0]);
12572 __pyx_v_grad_phi_X_grad_w_dV = ((PyArrayObject *)values[1]);
12573 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
12575 goto __pyx_L4_argument_unpacking_done;
12576 __pyx_L5_argtuple_error:;
12577 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3215, __pyx_L3_error)
12579 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
12580 __Pyx_RefNannyFinishContext();
12582 __pyx_L4_argument_unpacking_done:;
12583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3215, __pyx_L1_error)
12584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_X_grad_w_dV", 0))) __PYX_ERR(0, 3216, __pyx_L1_error)
12585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3217, __pyx_L1_error)
12586 __pyx_r = __pyx_pf_13cfemIntegrals_98updateDiffusion_weak(__pyx_self, __pyx_v_a, __pyx_v_grad_phi_X_grad_w_dV, __pyx_v_weak_residual);
12593 __Pyx_RefNannyFinishContext();
12597 static PyObject *__pyx_pf_13cfemIntegrals_98updateDiffusion_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
12598 int __pyx_v_nElements_global;
12599 int __pyx_v_nQuadraturePoints_element;
12600 int __pyx_v_nDOF_test_element;
12601 int __pyx_v_nSpace;
12602 PyObject *__pyx_r = NULL;
12603 __Pyx_RefNannyDeclarations
12604 __Pyx_RefNannySetupContext(
"updateDiffusion_weak", 0);
12613 __pyx_v_nElements_global = (__pyx_v_grad_phi_X_grad_w_dV->dimensions[0]);
12622 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_phi_X_grad_w_dV->dimensions[1]);
12631 __pyx_v_nDOF_test_element = (__pyx_v_grad_phi_X_grad_w_dV->dimensions[2]);
12640 __pyx_v_nSpace = (__pyx_v_grad_phi_X_grad_w_dV->dimensions[3]);
12649 updateDiffusion_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi_X_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
12660 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12661 __Pyx_XGIVEREF(__pyx_r);
12662 __Pyx_RefNannyFinishContext();
12675 static PyObject *__pyx_pw_13cfemIntegrals_101updateDiffusion_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12676 static PyMethodDef __pyx_mdef_13cfemIntegrals_101updateDiffusion_weak_lowmem = {
"updateDiffusion_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_101updateDiffusion_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
12677 static PyObject *__pyx_pw_13cfemIntegrals_101updateDiffusion_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12678 PyArrayObject *__pyx_v_a = 0;
12679 PyArrayObject *__pyx_v_grad_phi = 0;
12680 PyArrayObject *__pyx_v_grad_w_dV = 0;
12681 PyArrayObject *__pyx_v_weak_residual = 0;
12682 int __pyx_lineno = 0;
12683 const char *__pyx_filename = NULL;
12684 int __pyx_clineno = 0;
12685 PyObject *__pyx_r = 0;
12686 __Pyx_RefNannyDeclarations
12687 __Pyx_RefNannySetupContext(
"updateDiffusion_weak_lowmem (wrapper)", 0);
12689 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual,0};
12690 PyObject* values[4] = {0,0,0,0};
12691 if (unlikely(__pyx_kwds)) {
12692 Py_ssize_t kw_args;
12693 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12694 switch (pos_args) {
12695 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12696 CYTHON_FALLTHROUGH;
12697 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12698 CYTHON_FALLTHROUGH;
12699 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12700 CYTHON_FALLTHROUGH;
12701 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12702 CYTHON_FALLTHROUGH;
12704 default:
goto __pyx_L5_argtuple_error;
12706 kw_args = PyDict_Size(__pyx_kwds);
12707 switch (pos_args) {
12709 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
12710 else goto __pyx_L5_argtuple_error;
12711 CYTHON_FALLTHROUGH;
12713 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
12715 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3229, __pyx_L3_error)
12717 CYTHON_FALLTHROUGH;
12719 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
12721 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3229, __pyx_L3_error)
12723 CYTHON_FALLTHROUGH;
12725 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
12727 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3229, __pyx_L3_error)
12730 if (unlikely(kw_args > 0)) {
12731 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_weak_lowmem") < 0)) __PYX_ERR(0, 3229, __pyx_L3_error)
12733 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
12734 goto __pyx_L5_argtuple_error;
12736 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12737 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12738 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12739 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12741 __pyx_v_a = ((PyArrayObject *)values[0]);
12742 __pyx_v_grad_phi = ((PyArrayObject *)values[1]);
12743 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
12744 __pyx_v_weak_residual = ((PyArrayObject *)values[3]);
12746 goto __pyx_L4_argument_unpacking_done;
12747 __pyx_L5_argtuple_error:;
12748 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3229, __pyx_L3_error)
12750 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
12751 __Pyx_RefNannyFinishContext();
12753 __pyx_L4_argument_unpacking_done:;
12754 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3229, __pyx_L1_error)
12755 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3230, __pyx_L1_error)
12756 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3231, __pyx_L1_error)
12757 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3232, __pyx_L1_error)
12758 __pyx_r = __pyx_pf_13cfemIntegrals_100updateDiffusion_weak_lowmem(__pyx_self, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_weak_residual);
12765 __Pyx_RefNannyFinishContext();
12769 static PyObject *__pyx_pf_13cfemIntegrals_100updateDiffusion_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
12770 npy_intp __pyx_v_nElements_global;
12771 npy_intp __pyx_v_nQuadraturePoints_element;
12772 npy_intp __pyx_v_nDOF_test_element;
12773 npy_intp __pyx_v_nSpace;
12774 PyObject *__pyx_r = NULL;
12775 __Pyx_RefNannyDeclarations
12776 __Pyx_RefNannySetupContext(
"updateDiffusion_weak_lowmem", 0);
12785 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
12794 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
12803 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
12812 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
12821 updateDiffusion_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
12832 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12833 __Pyx_XGIVEREF(__pyx_r);
12834 __Pyx_RefNannyFinishContext();
12847 static PyObject *__pyx_pw_13cfemIntegrals_103updateDiffusion_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12848 static PyMethodDef __pyx_mdef_13cfemIntegrals_103updateDiffusion_weak_sd = {
"updateDiffusion_weak_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_103updateDiffusion_weak_sd, METH_VARARGS|METH_KEYWORDS, 0};
12849 static PyObject *__pyx_pw_13cfemIntegrals_103updateDiffusion_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12850 PyArrayObject *__pyx_v_rowptr = 0;
12851 PyArrayObject *__pyx_v_colind = 0;
12852 PyArrayObject *__pyx_v_a = 0;
12853 PyArrayObject *__pyx_v_grad_phi = 0;
12854 PyArrayObject *__pyx_v_grad_w_dV = 0;
12855 PyArrayObject *__pyx_v_weak_residual = 0;
12856 int __pyx_lineno = 0;
12857 const char *__pyx_filename = NULL;
12858 int __pyx_clineno = 0;
12859 PyObject *__pyx_r = 0;
12860 __Pyx_RefNannyDeclarations
12861 __Pyx_RefNannySetupContext(
"updateDiffusion_weak_sd (wrapper)", 0);
12863 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual,0};
12864 PyObject* values[6] = {0,0,0,0,0,0};
12865 if (unlikely(__pyx_kwds)) {
12866 Py_ssize_t kw_args;
12867 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12868 switch (pos_args) {
12869 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12870 CYTHON_FALLTHROUGH;
12871 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12872 CYTHON_FALLTHROUGH;
12873 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12874 CYTHON_FALLTHROUGH;
12875 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12876 CYTHON_FALLTHROUGH;
12877 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12878 CYTHON_FALLTHROUGH;
12879 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12880 CYTHON_FALLTHROUGH;
12882 default:
goto __pyx_L5_argtuple_error;
12884 kw_args = PyDict_Size(__pyx_kwds);
12885 switch (pos_args) {
12887 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
12888 else goto __pyx_L5_argtuple_error;
12889 CYTHON_FALLTHROUGH;
12891 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
12893 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, 1); __PYX_ERR(0, 3245, __pyx_L3_error)
12895 CYTHON_FALLTHROUGH;
12897 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
12899 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, 2); __PYX_ERR(0, 3245, __pyx_L3_error)
12901 CYTHON_FALLTHROUGH;
12903 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
12905 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, 3); __PYX_ERR(0, 3245, __pyx_L3_error)
12907 CYTHON_FALLTHROUGH;
12909 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
12911 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, 4); __PYX_ERR(0, 3245, __pyx_L3_error)
12913 CYTHON_FALLTHROUGH;
12915 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
12917 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, 5); __PYX_ERR(0, 3245, __pyx_L3_error)
12920 if (unlikely(kw_args > 0)) {
12921 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_weak_sd") < 0)) __PYX_ERR(0, 3245, __pyx_L3_error)
12923 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
12924 goto __pyx_L5_argtuple_error;
12926 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12927 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12928 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12929 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
12930 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
12931 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
12933 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
12934 __pyx_v_colind = ((PyArrayObject *)values[1]);
12935 __pyx_v_a = ((PyArrayObject *)values[2]);
12936 __pyx_v_grad_phi = ((PyArrayObject *)values[3]);
12937 __pyx_v_grad_w_dV = ((PyArrayObject *)values[4]);
12938 __pyx_v_weak_residual = ((PyArrayObject *)values[5]);
12940 goto __pyx_L4_argument_unpacking_done;
12941 __pyx_L5_argtuple_error:;
12942 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_weak_sd", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3245, __pyx_L3_error)
12944 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_weak_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
12945 __Pyx_RefNannyFinishContext();
12947 __pyx_L4_argument_unpacking_done:;
12948 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3245, __pyx_L1_error)
12949 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3246, __pyx_L1_error)
12950 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3247, __pyx_L1_error)
12951 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3248, __pyx_L1_error)
12952 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3249, __pyx_L1_error)
12953 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3250, __pyx_L1_error)
12954 __pyx_r = __pyx_pf_13cfemIntegrals_102updateDiffusion_weak_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_weak_residual);
12961 __Pyx_RefNannyFinishContext();
12965 static PyObject *__pyx_pf_13cfemIntegrals_102updateDiffusion_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
12966 int __pyx_v_nElements_global;
12967 int __pyx_v_nQuadraturePoints_element;
12968 int __pyx_v_nDOF_test_element;
12969 int __pyx_v_nSpace;
12970 PyObject *__pyx_r = NULL;
12971 __Pyx_RefNannyDeclarations
12972 __Pyx_RefNannySetupContext(
"updateDiffusion_weak_sd", 0);
12981 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
12990 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
12999 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
13008 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
13017 updateDiffusion_weak_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
13028 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13029 __Pyx_XGIVEREF(__pyx_r);
13030 __Pyx_RefNannyFinishContext();
13043 static PyObject *__pyx_pw_13cfemIntegrals_105updateDiffusionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13044 static PyMethodDef __pyx_mdef_13cfemIntegrals_105updateDiffusionJacobian_weak = {
"updateDiffusionJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_105updateDiffusionJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
13045 static PyObject *__pyx_pw_13cfemIntegrals_105updateDiffusionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13046 PyArrayObject *__pyx_v_l2g = 0;
13047 PyArrayObject *__pyx_v_a = 0;
13048 PyArrayObject *__pyx_v_da = 0;
13049 PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV = 0;
13050 PyArrayObject *__pyx_v_dphi = 0;
13051 PyArrayObject *__pyx_v_v = 0;
13052 PyArrayObject *__pyx_v_grad_v_X_grad_w_dV = 0;
13053 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
13054 int __pyx_lineno = 0;
13055 const char *__pyx_filename = NULL;
13056 int __pyx_clineno = 0;
13057 PyObject *__pyx_r = 0;
13058 __Pyx_RefNannyDeclarations
13059 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak (wrapper)", 0);
13061 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_grad_phi_X_grad_w_dV,&__pyx_n_s_dphi,&__pyx_n_s_v,&__pyx_n_s_grad_v_X_grad_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
13062 PyObject* values[8] = {0,0,0,0,0,0,0,0};
13063 if (unlikely(__pyx_kwds)) {
13064 Py_ssize_t kw_args;
13065 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13066 switch (pos_args) {
13067 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13068 CYTHON_FALLTHROUGH;
13069 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13070 CYTHON_FALLTHROUGH;
13071 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13072 CYTHON_FALLTHROUGH;
13073 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13074 CYTHON_FALLTHROUGH;
13075 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13076 CYTHON_FALLTHROUGH;
13077 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13078 CYTHON_FALLTHROUGH;
13079 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13080 CYTHON_FALLTHROUGH;
13081 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13082 CYTHON_FALLTHROUGH;
13084 default:
goto __pyx_L5_argtuple_error;
13086 kw_args = PyDict_Size(__pyx_kwds);
13087 switch (pos_args) {
13089 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
13090 else goto __pyx_L5_argtuple_error;
13091 CYTHON_FALLTHROUGH;
13093 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
13095 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 1); __PYX_ERR(0, 3265, __pyx_L3_error)
13097 CYTHON_FALLTHROUGH;
13099 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
13101 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 2); __PYX_ERR(0, 3265, __pyx_L3_error)
13103 CYTHON_FALLTHROUGH;
13105 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi_X_grad_w_dV)) != 0)) kw_args--;
13107 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 3); __PYX_ERR(0, 3265, __pyx_L3_error)
13109 CYTHON_FALLTHROUGH;
13111 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
13113 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 4); __PYX_ERR(0, 3265, __pyx_L3_error)
13115 CYTHON_FALLTHROUGH;
13117 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13119 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 5); __PYX_ERR(0, 3265, __pyx_L3_error)
13121 CYTHON_FALLTHROUGH;
13123 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_grad_w_dV)) != 0)) kw_args--;
13125 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 6); __PYX_ERR(0, 3265, __pyx_L3_error)
13127 CYTHON_FALLTHROUGH;
13129 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
13131 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, 7); __PYX_ERR(0, 3265, __pyx_L3_error)
13134 if (unlikely(kw_args > 0)) {
13135 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_weak") < 0)) __PYX_ERR(0, 3265, __pyx_L3_error)
13137 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
13138 goto __pyx_L5_argtuple_error;
13140 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13141 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13142 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13143 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13144 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13145 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13146 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13147 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13149 __pyx_v_l2g = ((PyArrayObject *)values[0]);
13150 __pyx_v_a = ((PyArrayObject *)values[1]);
13151 __pyx_v_da = ((PyArrayObject *)values[2]);
13152 __pyx_v_grad_phi_X_grad_w_dV = ((PyArrayObject *)values[3]);
13153 __pyx_v_dphi = ((PyArrayObject *)values[4]);
13154 __pyx_v_v = ((PyArrayObject *)values[5]);
13155 __pyx_v_grad_v_X_grad_w_dV = ((PyArrayObject *)values[6]);
13156 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[7]);
13158 goto __pyx_L4_argument_unpacking_done;
13159 __pyx_L5_argtuple_error:;
13160 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3265, __pyx_L3_error)
13162 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
13163 __Pyx_RefNannyFinishContext();
13165 __pyx_L4_argument_unpacking_done:;
13166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3265, __pyx_L1_error)
13167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3266, __pyx_L1_error)
13168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3267, __pyx_L1_error)
13169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi_X_grad_w_dV", 0))) __PYX_ERR(0, 3268, __pyx_L1_error)
13170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3269, __pyx_L1_error)
13171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3270, __pyx_L1_error)
13172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_grad_w_dV", 0))) __PYX_ERR(0, 3271, __pyx_L1_error)
13173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3272, __pyx_L1_error)
13174 __pyx_r = __pyx_pf_13cfemIntegrals_104updateDiffusionJacobian_weak(__pyx_self, __pyx_v_l2g, __pyx_v_a, __pyx_v_da, __pyx_v_grad_phi_X_grad_w_dV, __pyx_v_dphi, __pyx_v_v, __pyx_v_grad_v_X_grad_w_dV, __pyx_v_jacobian_weak_residual);
13181 __Pyx_RefNannyFinishContext();
13185 static PyObject *__pyx_pf_13cfemIntegrals_104updateDiffusionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi_X_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
13186 int __pyx_v_nElements_global;
13187 int __pyx_v_nQuadraturePoints_element;
13188 int __pyx_v_nDOF_trial_element;
13189 int __pyx_v_nDOF_test_element;
13190 int __pyx_v_nSpace;
13191 PyObject *__pyx_r = NULL;
13192 __Pyx_RefNannyDeclarations
13193 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak", 0);
13202 __pyx_v_nElements_global = (__pyx_v_grad_v_X_grad_w_dV->dimensions[0]);
13211 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[1]);
13220 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[2]);
13229 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[3]);
13238 __pyx_v_nSpace = (__pyx_v_grad_v_X_grad_w_dV->dimensions[4]);
13247 updateDiffusionJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi_X_grad_w_dV->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v_X_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
13258 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13259 __Pyx_XGIVEREF(__pyx_r);
13260 __Pyx_RefNannyFinishContext();
13273 static PyObject *__pyx_pw_13cfemIntegrals_107updateDiffusionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13274 static PyMethodDef __pyx_mdef_13cfemIntegrals_107updateDiffusionJacobian_weak_lowmem = {
"updateDiffusionJacobian_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_107updateDiffusionJacobian_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
13275 static PyObject *__pyx_pw_13cfemIntegrals_107updateDiffusionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13276 PyArrayObject *__pyx_v_l2g = 0;
13277 PyArrayObject *__pyx_v_a = 0;
13278 PyArrayObject *__pyx_v_da = 0;
13279 PyArrayObject *__pyx_v_grad_phi = 0;
13280 PyArrayObject *__pyx_v_grad_w_dV = 0;
13281 PyArrayObject *__pyx_v_dphi = 0;
13282 PyArrayObject *__pyx_v_v = 0;
13283 PyArrayObject *__pyx_v_grad_v = 0;
13284 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
13285 int __pyx_lineno = 0;
13286 const char *__pyx_filename = NULL;
13287 int __pyx_clineno = 0;
13288 PyObject *__pyx_r = 0;
13289 __Pyx_RefNannyDeclarations
13290 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak_lowmem (wrapper)", 0);
13292 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_dphi,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_jacobian_weak_residual,0};
13293 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
13294 if (unlikely(__pyx_kwds)) {
13295 Py_ssize_t kw_args;
13296 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13297 switch (pos_args) {
13298 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13299 CYTHON_FALLTHROUGH;
13300 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13301 CYTHON_FALLTHROUGH;
13302 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13303 CYTHON_FALLTHROUGH;
13304 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13305 CYTHON_FALLTHROUGH;
13306 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13307 CYTHON_FALLTHROUGH;
13308 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13309 CYTHON_FALLTHROUGH;
13310 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13311 CYTHON_FALLTHROUGH;
13312 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13313 CYTHON_FALLTHROUGH;
13314 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13315 CYTHON_FALLTHROUGH;
13317 default:
goto __pyx_L5_argtuple_error;
13319 kw_args = PyDict_Size(__pyx_kwds);
13320 switch (pos_args) {
13322 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
13323 else goto __pyx_L5_argtuple_error;
13324 CYTHON_FALLTHROUGH;
13326 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
13328 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 1); __PYX_ERR(0, 3291, __pyx_L3_error)
13330 CYTHON_FALLTHROUGH;
13332 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
13334 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 2); __PYX_ERR(0, 3291, __pyx_L3_error)
13336 CYTHON_FALLTHROUGH;
13338 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
13340 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 3); __PYX_ERR(0, 3291, __pyx_L3_error)
13342 CYTHON_FALLTHROUGH;
13344 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
13346 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 4); __PYX_ERR(0, 3291, __pyx_L3_error)
13348 CYTHON_FALLTHROUGH;
13350 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
13352 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 5); __PYX_ERR(0, 3291, __pyx_L3_error)
13354 CYTHON_FALLTHROUGH;
13356 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13358 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 6); __PYX_ERR(0, 3291, __pyx_L3_error)
13360 CYTHON_FALLTHROUGH;
13362 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
13364 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 7); __PYX_ERR(0, 3291, __pyx_L3_error)
13366 CYTHON_FALLTHROUGH;
13368 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
13370 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, 8); __PYX_ERR(0, 3291, __pyx_L3_error)
13373 if (unlikely(kw_args > 0)) {
13374 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_weak_lowmem") < 0)) __PYX_ERR(0, 3291, __pyx_L3_error)
13376 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
13377 goto __pyx_L5_argtuple_error;
13379 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13380 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13381 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13382 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13383 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13384 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13385 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13386 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13387 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13389 __pyx_v_l2g = ((PyArrayObject *)values[0]);
13390 __pyx_v_a = ((PyArrayObject *)values[1]);
13391 __pyx_v_da = ((PyArrayObject *)values[2]);
13392 __pyx_v_grad_phi = ((PyArrayObject *)values[3]);
13393 __pyx_v_grad_w_dV = ((PyArrayObject *)values[4]);
13394 __pyx_v_dphi = ((PyArrayObject *)values[5]);
13395 __pyx_v_v = ((PyArrayObject *)values[6]);
13396 __pyx_v_grad_v = ((PyArrayObject *)values[7]);
13397 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[8]);
13399 goto __pyx_L4_argument_unpacking_done;
13400 __pyx_L5_argtuple_error:;
13401 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_lowmem", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3291, __pyx_L3_error)
13403 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
13404 __Pyx_RefNannyFinishContext();
13406 __pyx_L4_argument_unpacking_done:;
13407 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3291, __pyx_L1_error)
13408 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3292, __pyx_L1_error)
13409 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3293, __pyx_L1_error)
13410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3294, __pyx_L1_error)
13411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3295, __pyx_L1_error)
13412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3296, __pyx_L1_error)
13413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3297, __pyx_L1_error)
13414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3298, __pyx_L1_error)
13415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3299, __pyx_L1_error)
13416 __pyx_r = __pyx_pf_13cfemIntegrals_106updateDiffusionJacobian_weak_lowmem(__pyx_self, __pyx_v_l2g, __pyx_v_a, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_dphi, __pyx_v_v, __pyx_v_grad_v, __pyx_v_jacobian_weak_residual);
13423 __Pyx_RefNannyFinishContext();
13427 static PyObject *__pyx_pf_13cfemIntegrals_106updateDiffusionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_jacobian_weak_residual) {
13428 int __pyx_v_nElements_global;
13429 int __pyx_v_nQuadraturePoints_element;
13430 int __pyx_v_nDOF_trial_element;
13431 int __pyx_v_nDOF_test_element;
13432 int __pyx_v_nSpace;
13433 PyObject *__pyx_r = NULL;
13434 __Pyx_RefNannyDeclarations
13435 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak_lowmem", 0);
13444 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
13453 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
13462 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
13471 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
13480 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
13489 updateDiffusionJacobian_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
13500 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13501 __Pyx_XGIVEREF(__pyx_r);
13502 __Pyx_RefNannyFinishContext();
13515 static PyObject *__pyx_pw_13cfemIntegrals_109updateDiffusionJacobian_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13516 static PyMethodDef __pyx_mdef_13cfemIntegrals_109updateDiffusionJacobian_weak_sd = {
"updateDiffusionJacobian_weak_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_109updateDiffusionJacobian_weak_sd, METH_VARARGS|METH_KEYWORDS, 0};
13517 static PyObject *__pyx_pw_13cfemIntegrals_109updateDiffusionJacobian_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13518 PyArrayObject *__pyx_v_rowptr = 0;
13519 PyArrayObject *__pyx_v_colind = 0;
13520 PyArrayObject *__pyx_v_l2g = 0;
13521 PyArrayObject *__pyx_v_a = 0;
13522 PyArrayObject *__pyx_v_da = 0;
13523 PyArrayObject *__pyx_v_grad_phi = 0;
13524 PyArrayObject *__pyx_v_grad_w_dV = 0;
13525 PyArrayObject *__pyx_v_dphi = 0;
13526 PyArrayObject *__pyx_v_v = 0;
13527 PyArrayObject *__pyx_v_grad_v = 0;
13528 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
13529 int __pyx_lineno = 0;
13530 const char *__pyx_filename = NULL;
13531 int __pyx_clineno = 0;
13532 PyObject *__pyx_r = 0;
13533 __Pyx_RefNannyDeclarations
13534 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak_sd (wrapper)", 0);
13536 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_dphi,&__pyx_n_s_v,&__pyx_n_s_grad_v,&__pyx_n_s_jacobian_weak_residual,0};
13537 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
13538 if (unlikely(__pyx_kwds)) {
13539 Py_ssize_t kw_args;
13540 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13541 switch (pos_args) {
13542 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13543 CYTHON_FALLTHROUGH;
13544 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13545 CYTHON_FALLTHROUGH;
13546 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13547 CYTHON_FALLTHROUGH;
13548 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13549 CYTHON_FALLTHROUGH;
13550 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13551 CYTHON_FALLTHROUGH;
13552 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13553 CYTHON_FALLTHROUGH;
13554 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13555 CYTHON_FALLTHROUGH;
13556 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13557 CYTHON_FALLTHROUGH;
13558 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13559 CYTHON_FALLTHROUGH;
13560 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13561 CYTHON_FALLTHROUGH;
13562 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13563 CYTHON_FALLTHROUGH;
13565 default:
goto __pyx_L5_argtuple_error;
13567 kw_args = PyDict_Size(__pyx_kwds);
13568 switch (pos_args) {
13570 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
13571 else goto __pyx_L5_argtuple_error;
13572 CYTHON_FALLTHROUGH;
13574 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
13576 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 1); __PYX_ERR(0, 3319, __pyx_L3_error)
13578 CYTHON_FALLTHROUGH;
13580 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
13582 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 2); __PYX_ERR(0, 3319, __pyx_L3_error)
13584 CYTHON_FALLTHROUGH;
13586 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
13588 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 3); __PYX_ERR(0, 3319, __pyx_L3_error)
13590 CYTHON_FALLTHROUGH;
13592 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
13594 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 4); __PYX_ERR(0, 3319, __pyx_L3_error)
13596 CYTHON_FALLTHROUGH;
13598 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
13600 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 5); __PYX_ERR(0, 3319, __pyx_L3_error)
13602 CYTHON_FALLTHROUGH;
13604 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
13606 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 6); __PYX_ERR(0, 3319, __pyx_L3_error)
13608 CYTHON_FALLTHROUGH;
13610 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
13612 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 7); __PYX_ERR(0, 3319, __pyx_L3_error)
13614 CYTHON_FALLTHROUGH;
13616 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
13618 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 8); __PYX_ERR(0, 3319, __pyx_L3_error)
13620 CYTHON_FALLTHROUGH;
13622 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
13624 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 9); __PYX_ERR(0, 3319, __pyx_L3_error)
13626 CYTHON_FALLTHROUGH;
13628 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
13630 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, 10); __PYX_ERR(0, 3319, __pyx_L3_error)
13633 if (unlikely(kw_args > 0)) {
13634 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_weak_sd") < 0)) __PYX_ERR(0, 3319, __pyx_L3_error)
13636 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
13637 goto __pyx_L5_argtuple_error;
13639 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13640 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13641 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13642 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13643 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13644 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13645 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13646 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
13647 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
13648 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
13649 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
13651 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
13652 __pyx_v_colind = ((PyArrayObject *)values[1]);
13653 __pyx_v_l2g = ((PyArrayObject *)values[2]);
13654 __pyx_v_a = ((PyArrayObject *)values[3]);
13655 __pyx_v_da = ((PyArrayObject *)values[4]);
13656 __pyx_v_grad_phi = ((PyArrayObject *)values[5]);
13657 __pyx_v_grad_w_dV = ((PyArrayObject *)values[6]);
13658 __pyx_v_dphi = ((PyArrayObject *)values[7]);
13659 __pyx_v_v = ((PyArrayObject *)values[8]);
13660 __pyx_v_grad_v = ((PyArrayObject *)values[9]);
13661 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[10]);
13663 goto __pyx_L4_argument_unpacking_done;
13664 __pyx_L5_argtuple_error:;
13665 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_weak_sd", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3319, __pyx_L3_error)
13667 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_weak_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
13668 __Pyx_RefNannyFinishContext();
13670 __pyx_L4_argument_unpacking_done:;
13671 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3319, __pyx_L1_error)
13672 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3320, __pyx_L1_error)
13673 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3321, __pyx_L1_error)
13674 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 3322, __pyx_L1_error)
13675 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3323, __pyx_L1_error)
13676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3324, __pyx_L1_error)
13677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3325, __pyx_L1_error)
13678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3326, __pyx_L1_error)
13679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3327, __pyx_L1_error)
13680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3328, __pyx_L1_error)
13681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3329, __pyx_L1_error)
13682 __pyx_r = __pyx_pf_13cfemIntegrals_108updateDiffusionJacobian_weak_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_a, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_dphi, __pyx_v_v, __pyx_v_grad_v, __pyx_v_jacobian_weak_residual);
13689 __Pyx_RefNannyFinishContext();
13693 static PyObject *__pyx_pf_13cfemIntegrals_108updateDiffusionJacobian_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_jacobian_weak_residual) {
13694 int __pyx_v_nElements_global;
13695 int __pyx_v_nQuadraturePoints_element;
13696 int __pyx_v_nDOF_trial_element;
13697 int __pyx_v_nDOF_test_element;
13698 int __pyx_v_nSpace;
13699 PyObject *__pyx_r = NULL;
13700 __Pyx_RefNannyDeclarations
13701 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_weak_sd", 0);
13710 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
13719 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
13728 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
13737 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
13746 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
13755 updateDiffusionJacobian_weak_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
13766 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13767 __Pyx_XGIVEREF(__pyx_r);
13768 __Pyx_RefNannyFinishContext();
13781 static PyObject *__pyx_pw_13cfemIntegrals_111updateDiffusion_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13782 static PyMethodDef __pyx_mdef_13cfemIntegrals_111updateDiffusion_strong = {
"updateDiffusion_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_111updateDiffusion_strong, METH_VARARGS|METH_KEYWORDS, 0};
13783 static PyObject *__pyx_pw_13cfemIntegrals_111updateDiffusion_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13784 PyArrayObject *__pyx_v_da = 0;
13785 PyArrayObject *__pyx_v_grad_phi = 0;
13786 PyArrayObject *__pyx_v_grad_u = 0;
13787 PyArrayObject *__pyx_v_strong_residual = 0;
13788 int __pyx_lineno = 0;
13789 const char *__pyx_filename = NULL;
13790 int __pyx_clineno = 0;
13791 PyObject *__pyx_r = 0;
13792 __Pyx_RefNannyDeclarations
13793 __Pyx_RefNannySetupContext(
"updateDiffusion_strong (wrapper)", 0);
13795 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_u,&__pyx_n_s_strong_residual,0};
13796 PyObject* values[4] = {0,0,0,0};
13797 if (unlikely(__pyx_kwds)) {
13798 Py_ssize_t kw_args;
13799 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13800 switch (pos_args) {
13801 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13802 CYTHON_FALLTHROUGH;
13803 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13804 CYTHON_FALLTHROUGH;
13805 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13806 CYTHON_FALLTHROUGH;
13807 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13808 CYTHON_FALLTHROUGH;
13810 default:
goto __pyx_L5_argtuple_error;
13812 kw_args = PyDict_Size(__pyx_kwds);
13813 switch (pos_args) {
13815 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
13816 else goto __pyx_L5_argtuple_error;
13817 CYTHON_FALLTHROUGH;
13819 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
13821 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong", 1, 4, 4, 1); __PYX_ERR(0, 3351, __pyx_L3_error)
13823 CYTHON_FALLTHROUGH;
13825 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
13827 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong", 1, 4, 4, 2); __PYX_ERR(0, 3351, __pyx_L3_error)
13829 CYTHON_FALLTHROUGH;
13831 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
13833 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong", 1, 4, 4, 3); __PYX_ERR(0, 3351, __pyx_L3_error)
13836 if (unlikely(kw_args > 0)) {
13837 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_strong") < 0)) __PYX_ERR(0, 3351, __pyx_L3_error)
13839 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
13840 goto __pyx_L5_argtuple_error;
13842 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13843 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13844 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13845 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13847 __pyx_v_da = ((PyArrayObject *)values[0]);
13848 __pyx_v_grad_phi = ((PyArrayObject *)values[1]);
13849 __pyx_v_grad_u = ((PyArrayObject *)values[2]);
13850 __pyx_v_strong_residual = ((PyArrayObject *)values[3]);
13852 goto __pyx_L4_argument_unpacking_done;
13853 __pyx_L5_argtuple_error:;
13854 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3351, __pyx_L3_error)
13856 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
13857 __Pyx_RefNannyFinishContext();
13859 __pyx_L4_argument_unpacking_done:;
13860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3351, __pyx_L1_error)
13861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3352, __pyx_L1_error)
13862 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3353, __pyx_L1_error)
13863 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3354, __pyx_L1_error)
13864 __pyx_r = __pyx_pf_13cfemIntegrals_110updateDiffusion_strong(__pyx_self, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_u, __pyx_v_strong_residual);
13871 __Pyx_RefNannyFinishContext();
13875 static PyObject *__pyx_pf_13cfemIntegrals_110updateDiffusion_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual) {
13876 int __pyx_v_nElements_global;
13877 int __pyx_v_nQuadraturePoints_element;
13878 int __pyx_v_nSpace;
13879 PyObject *__pyx_r = NULL;
13880 __Pyx_RefNannyDeclarations
13881 __Pyx_RefNannySetupContext(
"updateDiffusion_strong", 0);
13890 __pyx_v_nElements_global = (__pyx_v_grad_u->dimensions[0]);
13899 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_u->dimensions[1]);
13908 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
13917 updateDiffusion_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_strong_residual->data));
13928 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13929 __Pyx_XGIVEREF(__pyx_r);
13930 __Pyx_RefNannyFinishContext();
13943 static PyObject *__pyx_pw_13cfemIntegrals_113updateDiffusion_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13944 static PyMethodDef __pyx_mdef_13cfemIntegrals_113updateDiffusion_strong_sd = {
"updateDiffusion_strong_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_113updateDiffusion_strong_sd, METH_VARARGS|METH_KEYWORDS, 0};
13945 static PyObject *__pyx_pw_13cfemIntegrals_113updateDiffusion_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13946 PyArrayObject *__pyx_v_rowptr = 0;
13947 PyArrayObject *__pyx_v_colind = 0;
13948 PyArrayObject *__pyx_v_da = 0;
13949 PyArrayObject *__pyx_v_grad_phi = 0;
13950 PyArrayObject *__pyx_v_grad_u = 0;
13951 PyArrayObject *__pyx_v_strong_residual = 0;
13952 int __pyx_lineno = 0;
13953 const char *__pyx_filename = NULL;
13954 int __pyx_clineno = 0;
13955 PyObject *__pyx_r = 0;
13956 __Pyx_RefNannyDeclarations
13957 __Pyx_RefNannySetupContext(
"updateDiffusion_strong_sd (wrapper)", 0);
13959 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_u,&__pyx_n_s_strong_residual,0};
13960 PyObject* values[6] = {0,0,0,0,0,0};
13961 if (unlikely(__pyx_kwds)) {
13962 Py_ssize_t kw_args;
13963 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13964 switch (pos_args) {
13965 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13966 CYTHON_FALLTHROUGH;
13967 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13968 CYTHON_FALLTHROUGH;
13969 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13970 CYTHON_FALLTHROUGH;
13971 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13972 CYTHON_FALLTHROUGH;
13973 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13974 CYTHON_FALLTHROUGH;
13975 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13976 CYTHON_FALLTHROUGH;
13978 default:
goto __pyx_L5_argtuple_error;
13980 kw_args = PyDict_Size(__pyx_kwds);
13981 switch (pos_args) {
13983 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
13984 else goto __pyx_L5_argtuple_error;
13985 CYTHON_FALLTHROUGH;
13987 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
13989 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, 1); __PYX_ERR(0, 3365, __pyx_L3_error)
13991 CYTHON_FALLTHROUGH;
13993 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
13995 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, 2); __PYX_ERR(0, 3365, __pyx_L3_error)
13997 CYTHON_FALLTHROUGH;
13999 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
14001 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, 3); __PYX_ERR(0, 3365, __pyx_L3_error)
14003 CYTHON_FALLTHROUGH;
14005 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
14007 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, 4); __PYX_ERR(0, 3365, __pyx_L3_error)
14009 CYTHON_FALLTHROUGH;
14011 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
14013 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, 5); __PYX_ERR(0, 3365, __pyx_L3_error)
14016 if (unlikely(kw_args > 0)) {
14017 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_strong_sd") < 0)) __PYX_ERR(0, 3365, __pyx_L3_error)
14019 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
14020 goto __pyx_L5_argtuple_error;
14022 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14023 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14024 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14025 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14026 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14027 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14029 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
14030 __pyx_v_colind = ((PyArrayObject *)values[1]);
14031 __pyx_v_da = ((PyArrayObject *)values[2]);
14032 __pyx_v_grad_phi = ((PyArrayObject *)values[3]);
14033 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
14034 __pyx_v_strong_residual = ((PyArrayObject *)values[5]);
14036 goto __pyx_L4_argument_unpacking_done;
14037 __pyx_L5_argtuple_error:;
14038 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_strong_sd", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3365, __pyx_L3_error)
14040 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_strong_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
14041 __Pyx_RefNannyFinishContext();
14043 __pyx_L4_argument_unpacking_done:;
14044 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3365, __pyx_L1_error)
14045 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3366, __pyx_L1_error)
14046 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3367, __pyx_L1_error)
14047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3368, __pyx_L1_error)
14048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3369, __pyx_L1_error)
14049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3370, __pyx_L1_error)
14050 __pyx_r = __pyx_pf_13cfemIntegrals_112updateDiffusion_strong_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_u, __pyx_v_strong_residual);
14057 __Pyx_RefNannyFinishContext();
14061 static PyObject *__pyx_pf_13cfemIntegrals_112updateDiffusion_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_strong_residual) {
14062 int __pyx_v_nElements_global;
14063 int __pyx_v_nQuadraturePoints_element;
14064 int __pyx_v_nSpace;
14065 PyObject *__pyx_r = NULL;
14066 __Pyx_RefNannyDeclarations
14067 __Pyx_RefNannySetupContext(
"updateDiffusion_strong_sd", 0);
14076 __pyx_v_nElements_global = (__pyx_v_grad_u->dimensions[0]);
14085 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_u->dimensions[1]);
14094 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
14103 updateDiffusion_strong_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_strong_residual->data));
14114 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14115 __Pyx_XGIVEREF(__pyx_r);
14116 __Pyx_RefNannyFinishContext();
14129 static PyObject *__pyx_pw_13cfemIntegrals_115updateDiffusionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14130 static PyMethodDef __pyx_mdef_13cfemIntegrals_115updateDiffusionJacobian_strong = {
"updateDiffusionJacobian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_115updateDiffusionJacobian_strong, METH_VARARGS|METH_KEYWORDS, 0};
14131 static PyObject *__pyx_pw_13cfemIntegrals_115updateDiffusionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14132 PyArrayObject *__pyx_v_l2g = 0;
14133 PyArrayObject *__pyx_v_da = 0;
14134 PyArrayObject *__pyx_v_dphi = 0;
14135 PyArrayObject *__pyx_v_grad_phi = 0;
14136 PyArrayObject *__pyx_v_grad_u = 0;
14137 PyArrayObject *__pyx_v_grad_v = 0;
14138 PyArrayObject *__pyx_v_dstrong_residual = 0;
14139 int __pyx_lineno = 0;
14140 const char *__pyx_filename = NULL;
14141 int __pyx_clineno = 0;
14142 PyObject *__pyx_r = 0;
14143 __Pyx_RefNannyDeclarations
14144 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_strong (wrapper)", 0);
14146 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_dstrong_residual,0};
14147 PyObject* values[7] = {0,0,0,0,0,0,0};
14148 if (unlikely(__pyx_kwds)) {
14149 Py_ssize_t kw_args;
14150 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14151 switch (pos_args) {
14152 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14153 CYTHON_FALLTHROUGH;
14154 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14155 CYTHON_FALLTHROUGH;
14156 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14157 CYTHON_FALLTHROUGH;
14158 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14159 CYTHON_FALLTHROUGH;
14160 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14161 CYTHON_FALLTHROUGH;
14162 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14163 CYTHON_FALLTHROUGH;
14164 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14165 CYTHON_FALLTHROUGH;
14167 default:
goto __pyx_L5_argtuple_error;
14169 kw_args = PyDict_Size(__pyx_kwds);
14170 switch (pos_args) {
14172 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
14173 else goto __pyx_L5_argtuple_error;
14174 CYTHON_FALLTHROUGH;
14176 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
14178 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 1); __PYX_ERR(0, 3383, __pyx_L3_error)
14180 CYTHON_FALLTHROUGH;
14182 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
14184 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 2); __PYX_ERR(0, 3383, __pyx_L3_error)
14186 CYTHON_FALLTHROUGH;
14188 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
14190 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 3); __PYX_ERR(0, 3383, __pyx_L3_error)
14192 CYTHON_FALLTHROUGH;
14194 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
14196 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 4); __PYX_ERR(0, 3383, __pyx_L3_error)
14198 CYTHON_FALLTHROUGH;
14200 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
14202 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 5); __PYX_ERR(0, 3383, __pyx_L3_error)
14204 CYTHON_FALLTHROUGH;
14206 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
14208 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, 6); __PYX_ERR(0, 3383, __pyx_L3_error)
14211 if (unlikely(kw_args > 0)) {
14212 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_strong") < 0)) __PYX_ERR(0, 3383, __pyx_L3_error)
14214 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
14215 goto __pyx_L5_argtuple_error;
14217 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14218 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14219 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14220 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14221 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14222 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14223 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14225 __pyx_v_l2g = ((PyArrayObject *)values[0]);
14226 __pyx_v_da = ((PyArrayObject *)values[1]);
14227 __pyx_v_dphi = ((PyArrayObject *)values[2]);
14228 __pyx_v_grad_phi = ((PyArrayObject *)values[3]);
14229 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
14230 __pyx_v_grad_v = ((PyArrayObject *)values[5]);
14231 __pyx_v_dstrong_residual = ((PyArrayObject *)values[6]);
14233 goto __pyx_L4_argument_unpacking_done;
14234 __pyx_L5_argtuple_error:;
14235 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3383, __pyx_L3_error)
14237 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
14238 __Pyx_RefNannyFinishContext();
14240 __pyx_L4_argument_unpacking_done:;
14241 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3383, __pyx_L1_error)
14242 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3384, __pyx_L1_error)
14243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3385, __pyx_L1_error)
14244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3386, __pyx_L1_error)
14245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3387, __pyx_L1_error)
14246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3388, __pyx_L1_error)
14247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3389, __pyx_L1_error)
14248 __pyx_r = __pyx_pf_13cfemIntegrals_114updateDiffusionJacobian_strong(__pyx_self, __pyx_v_l2g, __pyx_v_da, __pyx_v_dphi, __pyx_v_grad_phi, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_dstrong_residual);
14255 __Pyx_RefNannyFinishContext();
14259 static PyObject *__pyx_pf_13cfemIntegrals_114updateDiffusionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual) {
14260 int __pyx_v_nElements_global;
14261 int __pyx_v_nQuadraturePoints_element;
14262 int __pyx_v_nDOF_trial_element;
14263 int __pyx_v_nSpace;
14264 PyObject *__pyx_r = NULL;
14265 __Pyx_RefNannyDeclarations
14266 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_strong", 0);
14275 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
14284 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
14293 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
14302 __pyx_v_nSpace = (__pyx_v_grad_v->dimensions[3]);
14311 updateDiffusionJacobian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_dstrong_residual->data));
14322 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14323 __Pyx_XGIVEREF(__pyx_r);
14324 __Pyx_RefNannyFinishContext();
14337 static PyObject *__pyx_pw_13cfemIntegrals_117updateDiffusionJacobian_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14338 static PyMethodDef __pyx_mdef_13cfemIntegrals_117updateDiffusionJacobian_strong_sd = {
"updateDiffusionJacobian_strong_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_117updateDiffusionJacobian_strong_sd, METH_VARARGS|METH_KEYWORDS, 0};
14339 static PyObject *__pyx_pw_13cfemIntegrals_117updateDiffusionJacobian_strong_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14340 PyArrayObject *__pyx_v_rowptr = 0;
14341 PyArrayObject *__pyx_v_colind = 0;
14342 PyArrayObject *__pyx_v_l2g = 0;
14343 PyArrayObject *__pyx_v_da = 0;
14344 PyArrayObject *__pyx_v_dphi = 0;
14345 PyArrayObject *__pyx_v_grad_phi = 0;
14346 PyArrayObject *__pyx_v_grad_u = 0;
14347 PyArrayObject *__pyx_v_grad_v = 0;
14348 PyArrayObject *__pyx_v_dstrong_residual = 0;
14349 int __pyx_lineno = 0;
14350 const char *__pyx_filename = NULL;
14351 int __pyx_clineno = 0;
14352 PyObject *__pyx_r = 0;
14353 __Pyx_RefNannyDeclarations
14354 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_strong_sd (wrapper)", 0);
14356 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_l2g,&__pyx_n_s_da,&__pyx_n_s_dphi,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_u,&__pyx_n_s_grad_v,&__pyx_n_s_dstrong_residual,0};
14357 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
14358 if (unlikely(__pyx_kwds)) {
14359 Py_ssize_t kw_args;
14360 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14361 switch (pos_args) {
14362 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14363 CYTHON_FALLTHROUGH;
14364 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14365 CYTHON_FALLTHROUGH;
14366 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14367 CYTHON_FALLTHROUGH;
14368 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14369 CYTHON_FALLTHROUGH;
14370 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14371 CYTHON_FALLTHROUGH;
14372 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14373 CYTHON_FALLTHROUGH;
14374 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14375 CYTHON_FALLTHROUGH;
14376 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14377 CYTHON_FALLTHROUGH;
14378 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14379 CYTHON_FALLTHROUGH;
14381 default:
goto __pyx_L5_argtuple_error;
14383 kw_args = PyDict_Size(__pyx_kwds);
14384 switch (pos_args) {
14386 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
14387 else goto __pyx_L5_argtuple_error;
14388 CYTHON_FALLTHROUGH;
14390 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
14392 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 1); __PYX_ERR(0, 3405, __pyx_L3_error)
14394 CYTHON_FALLTHROUGH;
14396 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
14398 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 2); __PYX_ERR(0, 3405, __pyx_L3_error)
14400 CYTHON_FALLTHROUGH;
14402 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
14404 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 3); __PYX_ERR(0, 3405, __pyx_L3_error)
14406 CYTHON_FALLTHROUGH;
14408 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
14410 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 4); __PYX_ERR(0, 3405, __pyx_L3_error)
14412 CYTHON_FALLTHROUGH;
14414 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
14416 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 5); __PYX_ERR(0, 3405, __pyx_L3_error)
14418 CYTHON_FALLTHROUGH;
14420 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
14422 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 6); __PYX_ERR(0, 3405, __pyx_L3_error)
14424 CYTHON_FALLTHROUGH;
14426 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
14428 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 7); __PYX_ERR(0, 3405, __pyx_L3_error)
14430 CYTHON_FALLTHROUGH;
14432 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
14434 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, 8); __PYX_ERR(0, 3405, __pyx_L3_error)
14437 if (unlikely(kw_args > 0)) {
14438 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_strong_sd") < 0)) __PYX_ERR(0, 3405, __pyx_L3_error)
14440 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
14441 goto __pyx_L5_argtuple_error;
14443 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14444 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14445 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14446 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14447 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14448 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14449 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
14450 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
14451 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
14453 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
14454 __pyx_v_colind = ((PyArrayObject *)values[1]);
14455 __pyx_v_l2g = ((PyArrayObject *)values[2]);
14456 __pyx_v_da = ((PyArrayObject *)values[3]);
14457 __pyx_v_dphi = ((PyArrayObject *)values[4]);
14458 __pyx_v_grad_phi = ((PyArrayObject *)values[5]);
14459 __pyx_v_grad_u = ((PyArrayObject *)values[6]);
14460 __pyx_v_grad_v = ((PyArrayObject *)values[7]);
14461 __pyx_v_dstrong_residual = ((PyArrayObject *)values[8]);
14463 goto __pyx_L4_argument_unpacking_done;
14464 __pyx_L5_argtuple_error:;
14465 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_strong_sd", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3405, __pyx_L3_error)
14467 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_strong_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
14468 __Pyx_RefNannyFinishContext();
14470 __pyx_L4_argument_unpacking_done:;
14471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3405, __pyx_L1_error)
14472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3406, __pyx_L1_error)
14473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 3407, __pyx_L1_error)
14474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3408, __pyx_L1_error)
14475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 3409, __pyx_L1_error)
14476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3410, __pyx_L1_error)
14477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3411, __pyx_L1_error)
14478 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3412, __pyx_L1_error)
14479 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3413, __pyx_L1_error)
14480 __pyx_r = __pyx_pf_13cfemIntegrals_116updateDiffusionJacobian_strong_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_l2g, __pyx_v_da, __pyx_v_dphi, __pyx_v_grad_phi, __pyx_v_grad_u, __pyx_v_grad_v, __pyx_v_dstrong_residual);
14487 __Pyx_RefNannyFinishContext();
14491 static PyObject *__pyx_pf_13cfemIntegrals_116updateDiffusionJacobian_strong_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_dstrong_residual) {
14492 int __pyx_v_nElements_global;
14493 int __pyx_v_nQuadraturePoints_element;
14494 int __pyx_v_nDOF_trial_element;
14495 int __pyx_v_nSpace;
14496 PyObject *__pyx_r = NULL;
14497 __Pyx_RefNannyDeclarations
14498 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_strong_sd", 0);
14507 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
14516 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
14525 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
14534 __pyx_v_nSpace = (__pyx_v_grad_v->dimensions[3]);
14543 updateDiffusionJacobian_strong_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_dstrong_residual->data));
14554 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14555 __Pyx_XGIVEREF(__pyx_r);
14556 __Pyx_RefNannyFinishContext();
14569 static PyObject *__pyx_pw_13cfemIntegrals_119updateDiffusion_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14570 static PyMethodDef __pyx_mdef_13cfemIntegrals_119updateDiffusion_adjoint = {
"updateDiffusion_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_119updateDiffusion_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
14571 static PyObject *__pyx_pw_13cfemIntegrals_119updateDiffusion_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14572 PyArrayObject *__pyx_v_da = 0;
14573 PyArrayObject *__pyx_v_grad_phi = 0;
14574 PyArrayObject *__pyx_v_grad_w_dV = 0;
14575 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
14576 int __pyx_lineno = 0;
14577 const char *__pyx_filename = NULL;
14578 int __pyx_clineno = 0;
14579 PyObject *__pyx_r = 0;
14580 __Pyx_RefNannyDeclarations
14581 __Pyx_RefNannySetupContext(
"updateDiffusion_adjoint (wrapper)", 0);
14583 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_Lstar_w_dV,0};
14584 PyObject* values[4] = {0,0,0,0};
14585 if (unlikely(__pyx_kwds)) {
14586 Py_ssize_t kw_args;
14587 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14588 switch (pos_args) {
14589 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14590 CYTHON_FALLTHROUGH;
14591 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14592 CYTHON_FALLTHROUGH;
14593 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14594 CYTHON_FALLTHROUGH;
14595 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14596 CYTHON_FALLTHROUGH;
14598 default:
goto __pyx_L5_argtuple_error;
14600 kw_args = PyDict_Size(__pyx_kwds);
14601 switch (pos_args) {
14603 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
14604 else goto __pyx_L5_argtuple_error;
14605 CYTHON_FALLTHROUGH;
14607 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
14609 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint", 1, 4, 4, 1); __PYX_ERR(0, 3431, __pyx_L3_error)
14611 CYTHON_FALLTHROUGH;
14613 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
14615 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint", 1, 4, 4, 2); __PYX_ERR(0, 3431, __pyx_L3_error)
14617 CYTHON_FALLTHROUGH;
14619 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
14621 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint", 1, 4, 4, 3); __PYX_ERR(0, 3431, __pyx_L3_error)
14624 if (unlikely(kw_args > 0)) {
14625 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_adjoint") < 0)) __PYX_ERR(0, 3431, __pyx_L3_error)
14627 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
14628 goto __pyx_L5_argtuple_error;
14630 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14631 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14632 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14633 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14635 __pyx_v_da = ((PyArrayObject *)values[0]);
14636 __pyx_v_grad_phi = ((PyArrayObject *)values[1]);
14637 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
14638 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[3]);
14640 goto __pyx_L4_argument_unpacking_done;
14641 __pyx_L5_argtuple_error:;
14642 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3431, __pyx_L3_error)
14644 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
14645 __Pyx_RefNannyFinishContext();
14647 __pyx_L4_argument_unpacking_done:;
14648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3431, __pyx_L1_error)
14649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3432, __pyx_L1_error)
14650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3433, __pyx_L1_error)
14651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3434, __pyx_L1_error)
14652 __pyx_r = __pyx_pf_13cfemIntegrals_118updateDiffusion_adjoint(__pyx_self, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_Lstar_w_dV);
14659 __Pyx_RefNannyFinishContext();
14663 static PyObject *__pyx_pf_13cfemIntegrals_118updateDiffusion_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
14664 int __pyx_v_nElements_global;
14665 int __pyx_v_nQuadraturePoints_element;
14666 int __pyx_v_nDOF_test_element;
14667 int __pyx_v_nSpace;
14668 PyObject *__pyx_r = NULL;
14669 __Pyx_RefNannyDeclarations
14670 __Pyx_RefNannySetupContext(
"updateDiffusion_adjoint", 0);
14679 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
14688 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
14697 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
14706 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
14715 updateDiffusion_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
14726 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14727 __Pyx_XGIVEREF(__pyx_r);
14728 __Pyx_RefNannyFinishContext();
14741 static PyObject *__pyx_pw_13cfemIntegrals_121updateDiffusion_adjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14742 static PyMethodDef __pyx_mdef_13cfemIntegrals_121updateDiffusion_adjoint_sd = {
"updateDiffusion_adjoint_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_121updateDiffusion_adjoint_sd, METH_VARARGS|METH_KEYWORDS, 0};
14743 static PyObject *__pyx_pw_13cfemIntegrals_121updateDiffusion_adjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14744 PyArrayObject *__pyx_v_rowptr = 0;
14745 PyArrayObject *__pyx_v_colind = 0;
14746 PyArrayObject *__pyx_v_da = 0;
14747 PyArrayObject *__pyx_v_grad_phi = 0;
14748 PyArrayObject *__pyx_v_grad_w_dV = 0;
14749 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
14750 int __pyx_lineno = 0;
14751 const char *__pyx_filename = NULL;
14752 int __pyx_clineno = 0;
14753 PyObject *__pyx_r = 0;
14754 __Pyx_RefNannyDeclarations
14755 __Pyx_RefNannySetupContext(
"updateDiffusion_adjoint_sd (wrapper)", 0);
14757 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_da,&__pyx_n_s_grad_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_Lstar_w_dV,0};
14758 PyObject* values[6] = {0,0,0,0,0,0};
14759 if (unlikely(__pyx_kwds)) {
14760 Py_ssize_t kw_args;
14761 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14762 switch (pos_args) {
14763 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14764 CYTHON_FALLTHROUGH;
14765 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14766 CYTHON_FALLTHROUGH;
14767 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14768 CYTHON_FALLTHROUGH;
14769 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14770 CYTHON_FALLTHROUGH;
14771 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14772 CYTHON_FALLTHROUGH;
14773 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14774 CYTHON_FALLTHROUGH;
14776 default:
goto __pyx_L5_argtuple_error;
14778 kw_args = PyDict_Size(__pyx_kwds);
14779 switch (pos_args) {
14781 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
14782 else goto __pyx_L5_argtuple_error;
14783 CYTHON_FALLTHROUGH;
14785 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
14787 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, 1); __PYX_ERR(0, 3447, __pyx_L3_error)
14789 CYTHON_FALLTHROUGH;
14791 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
14793 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, 2); __PYX_ERR(0, 3447, __pyx_L3_error)
14795 CYTHON_FALLTHROUGH;
14797 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
14799 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, 3); __PYX_ERR(0, 3447, __pyx_L3_error)
14801 CYTHON_FALLTHROUGH;
14803 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
14805 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, 4); __PYX_ERR(0, 3447, __pyx_L3_error)
14807 CYTHON_FALLTHROUGH;
14809 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
14811 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, 5); __PYX_ERR(0, 3447, __pyx_L3_error)
14814 if (unlikely(kw_args > 0)) {
14815 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_adjoint_sd") < 0)) __PYX_ERR(0, 3447, __pyx_L3_error)
14817 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
14818 goto __pyx_L5_argtuple_error;
14820 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14821 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14822 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14823 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
14824 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
14825 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
14827 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
14828 __pyx_v_colind = ((PyArrayObject *)values[1]);
14829 __pyx_v_da = ((PyArrayObject *)values[2]);
14830 __pyx_v_grad_phi = ((PyArrayObject *)values[3]);
14831 __pyx_v_grad_w_dV = ((PyArrayObject *)values[4]);
14832 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[5]);
14834 goto __pyx_L4_argument_unpacking_done;
14835 __pyx_L5_argtuple_error:;
14836 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_adjoint_sd", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3447, __pyx_L3_error)
14838 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_adjoint_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
14839 __Pyx_RefNannyFinishContext();
14841 __pyx_L4_argument_unpacking_done:;
14842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
14843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 3448, __pyx_L1_error)
14844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 3449, __pyx_L1_error)
14845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 3450, __pyx_L1_error)
14846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3451, __pyx_L1_error)
14847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3452, __pyx_L1_error)
14848 __pyx_r = __pyx_pf_13cfemIntegrals_120updateDiffusion_adjoint_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_da, __pyx_v_grad_phi, __pyx_v_grad_w_dV, __pyx_v_Lstar_w_dV);
14855 __Pyx_RefNannyFinishContext();
14859 static PyObject *__pyx_pf_13cfemIntegrals_120updateDiffusion_adjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
14860 npy_intp __pyx_v_nElements_global;
14861 npy_intp __pyx_v_nQuadraturePoints_element;
14862 npy_intp __pyx_v_nDOF_test_element;
14863 npy_intp __pyx_v_nSpace;
14864 PyObject *__pyx_r = NULL;
14865 __Pyx_RefNannyDeclarations
14866 __Pyx_RefNannySetupContext(
"updateDiffusion_adjoint_sd", 0);
14875 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
14884 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
14893 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
14902 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
14911 updateDiffusion_adjoint_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
14922 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14923 __Pyx_XGIVEREF(__pyx_r);
14924 __Pyx_RefNannyFinishContext();
14937 static PyObject *__pyx_pw_13cfemIntegrals_123updateReaction_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14938 static PyMethodDef __pyx_mdef_13cfemIntegrals_123updateReaction_weak = {
"updateReaction_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_123updateReaction_weak, METH_VARARGS|METH_KEYWORDS, 0};
14939 static PyObject *__pyx_pw_13cfemIntegrals_123updateReaction_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14940 PyArrayObject *__pyx_v_r = 0;
14941 PyArrayObject *__pyx_v_w_dV = 0;
14942 PyArrayObject *__pyx_v_weak_residual = 0;
14943 int __pyx_lineno = 0;
14944 const char *__pyx_filename = NULL;
14945 int __pyx_clineno = 0;
14946 PyObject *__pyx_r = 0;
14947 __Pyx_RefNannyDeclarations
14948 __Pyx_RefNannySetupContext(
"updateReaction_weak (wrapper)", 0);
14950 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r,&__pyx_n_s_w_dV,&__pyx_n_s_weak_residual,0};
14951 PyObject* values[3] = {0,0,0};
14952 if (unlikely(__pyx_kwds)) {
14953 Py_ssize_t kw_args;
14954 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14955 switch (pos_args) {
14956 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14957 CYTHON_FALLTHROUGH;
14958 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14959 CYTHON_FALLTHROUGH;
14960 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14961 CYTHON_FALLTHROUGH;
14963 default:
goto __pyx_L5_argtuple_error;
14965 kw_args = PyDict_Size(__pyx_kwds);
14966 switch (pos_args) {
14968 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
14969 else goto __pyx_L5_argtuple_error;
14970 CYTHON_FALLTHROUGH;
14972 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
14974 __Pyx_RaiseArgtupleInvalid(
"updateReaction_weak", 1, 3, 3, 1); __PYX_ERR(0, 3467, __pyx_L3_error)
14976 CYTHON_FALLTHROUGH;
14978 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
14980 __Pyx_RaiseArgtupleInvalid(
"updateReaction_weak", 1, 3, 3, 2); __PYX_ERR(0, 3467, __pyx_L3_error)
14983 if (unlikely(kw_args > 0)) {
14984 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReaction_weak") < 0)) __PYX_ERR(0, 3467, __pyx_L3_error)
14986 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14987 goto __pyx_L5_argtuple_error;
14989 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14990 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14991 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14993 __pyx_v_r = ((PyArrayObject *)values[0]);
14994 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
14995 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
14997 goto __pyx_L4_argument_unpacking_done;
14998 __pyx_L5_argtuple_error:;
14999 __Pyx_RaiseArgtupleInvalid(
"updateReaction_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3467, __pyx_L3_error)
15001 __Pyx_AddTraceback(
"cfemIntegrals.updateReaction_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
15002 __Pyx_RefNannyFinishContext();
15004 __pyx_L4_argument_unpacking_done:;
15005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3467, __pyx_L1_error)
15006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3468, __pyx_L1_error)
15007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3469, __pyx_L1_error)
15008 __pyx_r = __pyx_pf_13cfemIntegrals_122updateReaction_weak(__pyx_self, __pyx_v_r, __pyx_v_w_dV, __pyx_v_weak_residual);
15015 __Pyx_RefNannyFinishContext();
15019 static PyObject *__pyx_pf_13cfemIntegrals_122updateReaction_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_weak_residual) {
15020 int __pyx_v_nElements_global;
15021 int __pyx_v_nQuadraturePoints_element;
15022 int __pyx_v_nDOF_test_element;
15023 PyObject *__pyx_r = NULL;
15024 __Pyx_RefNannyDeclarations
15025 __Pyx_RefNannySetupContext(
"updateReaction_weak", 0);
15034 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
15043 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
15052 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
15061 updateReaction_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
15072 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15073 __Pyx_XGIVEREF(__pyx_r);
15074 __Pyx_RefNannyFinishContext();
15087 static PyObject *__pyx_pw_13cfemIntegrals_125updateReactionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15088 static PyMethodDef __pyx_mdef_13cfemIntegrals_125updateReactionJacobian_weak = {
"updateReactionJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_125updateReactionJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
15089 static PyObject *__pyx_pw_13cfemIntegrals_125updateReactionJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15090 PyArrayObject *__pyx_v_dr = 0;
15091 PyArrayObject *__pyx_v_v_X_w_dV = 0;
15092 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
15093 int __pyx_lineno = 0;
15094 const char *__pyx_filename = NULL;
15095 int __pyx_clineno = 0;
15096 PyObject *__pyx_r = 0;
15097 __Pyx_RefNannyDeclarations
15098 __Pyx_RefNannySetupContext(
"updateReactionJacobian_weak (wrapper)", 0);
15100 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dr,&__pyx_n_s_v_X_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
15101 PyObject* values[3] = {0,0,0};
15102 if (unlikely(__pyx_kwds)) {
15103 Py_ssize_t kw_args;
15104 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15105 switch (pos_args) {
15106 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15107 CYTHON_FALLTHROUGH;
15108 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15109 CYTHON_FALLTHROUGH;
15110 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15111 CYTHON_FALLTHROUGH;
15113 default:
goto __pyx_L5_argtuple_error;
15115 kw_args = PyDict_Size(__pyx_kwds);
15116 switch (pos_args) {
15118 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
15119 else goto __pyx_L5_argtuple_error;
15120 CYTHON_FALLTHROUGH;
15122 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_w_dV)) != 0)) kw_args--;
15124 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak", 1, 3, 3, 1); __PYX_ERR(0, 3479, __pyx_L3_error)
15126 CYTHON_FALLTHROUGH;
15128 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
15130 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak", 1, 3, 3, 2); __PYX_ERR(0, 3479, __pyx_L3_error)
15133 if (unlikely(kw_args > 0)) {
15134 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReactionJacobian_weak") < 0)) __PYX_ERR(0, 3479, __pyx_L3_error)
15136 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15137 goto __pyx_L5_argtuple_error;
15139 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15140 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15141 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15143 __pyx_v_dr = ((PyArrayObject *)values[0]);
15144 __pyx_v_v_X_w_dV = ((PyArrayObject *)values[1]);
15145 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
15147 goto __pyx_L4_argument_unpacking_done;
15148 __pyx_L5_argtuple_error:;
15149 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3479, __pyx_L3_error)
15151 __Pyx_AddTraceback(
"cfemIntegrals.updateReactionJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
15152 __Pyx_RefNannyFinishContext();
15154 __pyx_L4_argument_unpacking_done:;
15155 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3479, __pyx_L1_error)
15156 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"v_X_w_dV", 0))) __PYX_ERR(0, 3480, __pyx_L1_error)
15157 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3481, __pyx_L1_error)
15158 __pyx_r = __pyx_pf_13cfemIntegrals_124updateReactionJacobian_weak(__pyx_self, __pyx_v_dr, __pyx_v_v_X_w_dV, __pyx_v_jacobian_weak_residual);
15165 __Pyx_RefNannyFinishContext();
15169 static PyObject *__pyx_pf_13cfemIntegrals_124updateReactionJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v_X_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
15170 int __pyx_v_nElements_global;
15171 int __pyx_v_nQuadraturePoints_element;
15172 int __pyx_v_nDOF_trial_element;
15173 int __pyx_v_nDOF_test_element;
15174 PyObject *__pyx_r = NULL;
15175 __Pyx_RefNannyDeclarations
15176 __Pyx_RefNannySetupContext(
"updateReactionJacobian_weak", 0);
15185 __pyx_v_nElements_global = (__pyx_v_v_X_w_dV->dimensions[0]);
15194 __pyx_v_nQuadraturePoints_element = (__pyx_v_v_X_w_dV->dimensions[1]);
15203 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_w_dV->dimensions[2]);
15212 __pyx_v_nDOF_test_element = (__pyx_v_v_X_w_dV->dimensions[3]);
15221 updateReactionJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_v_X_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
15232 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15233 __Pyx_XGIVEREF(__pyx_r);
15234 __Pyx_RefNannyFinishContext();
15247 static PyObject *__pyx_pw_13cfemIntegrals_127updateReactionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15248 static PyMethodDef __pyx_mdef_13cfemIntegrals_127updateReactionJacobian_weak_lowmem = {
"updateReactionJacobian_weak_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_127updateReactionJacobian_weak_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
15249 static PyObject *__pyx_pw_13cfemIntegrals_127updateReactionJacobian_weak_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15250 PyArrayObject *__pyx_v_dr = 0;
15251 PyArrayObject *__pyx_v_v = 0;
15252 PyArrayObject *__pyx_v_w_dV = 0;
15253 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
15254 int __pyx_lineno = 0;
15255 const char *__pyx_filename = NULL;
15256 int __pyx_clineno = 0;
15257 PyObject *__pyx_r = 0;
15258 __Pyx_RefNannyDeclarations
15259 __Pyx_RefNannySetupContext(
"updateReactionJacobian_weak_lowmem (wrapper)", 0);
15261 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dr,&__pyx_n_s_v,&__pyx_n_s_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
15262 PyObject* values[4] = {0,0,0,0};
15263 if (unlikely(__pyx_kwds)) {
15264 Py_ssize_t kw_args;
15265 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15266 switch (pos_args) {
15267 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15268 CYTHON_FALLTHROUGH;
15269 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15270 CYTHON_FALLTHROUGH;
15271 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15272 CYTHON_FALLTHROUGH;
15273 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15274 CYTHON_FALLTHROUGH;
15276 default:
goto __pyx_L5_argtuple_error;
15278 kw_args = PyDict_Size(__pyx_kwds);
15279 switch (pos_args) {
15281 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
15282 else goto __pyx_L5_argtuple_error;
15283 CYTHON_FALLTHROUGH;
15285 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15287 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3493, __pyx_L3_error)
15289 CYTHON_FALLTHROUGH;
15291 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
15293 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3493, __pyx_L3_error)
15295 CYTHON_FALLTHROUGH;
15297 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
15299 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3493, __pyx_L3_error)
15302 if (unlikely(kw_args > 0)) {
15303 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReactionJacobian_weak_lowmem") < 0)) __PYX_ERR(0, 3493, __pyx_L3_error)
15305 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
15306 goto __pyx_L5_argtuple_error;
15308 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15309 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15310 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15311 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15313 __pyx_v_dr = ((PyArrayObject *)values[0]);
15314 __pyx_v_v = ((PyArrayObject *)values[1]);
15315 __pyx_v_w_dV = ((PyArrayObject *)values[2]);
15316 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[3]);
15318 goto __pyx_L4_argument_unpacking_done;
15319 __pyx_L5_argtuple_error:;
15320 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_weak_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3493, __pyx_L3_error)
15322 __Pyx_AddTraceback(
"cfemIntegrals.updateReactionJacobian_weak_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
15323 __Pyx_RefNannyFinishContext();
15325 __pyx_L4_argument_unpacking_done:;
15326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3493, __pyx_L1_error)
15327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3494, __pyx_L1_error)
15328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3495, __pyx_L1_error)
15329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3496, __pyx_L1_error)
15330 __pyx_r = __pyx_pf_13cfemIntegrals_126updateReactionJacobian_weak_lowmem(__pyx_self, __pyx_v_dr, __pyx_v_v, __pyx_v_w_dV, __pyx_v_jacobian_weak_residual);
15337 __Pyx_RefNannyFinishContext();
15341 static PyObject *__pyx_pf_13cfemIntegrals_126updateReactionJacobian_weak_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
15342 int __pyx_v_nElements_global;
15343 int __pyx_v_nQuadraturePoints_element;
15344 int __pyx_v_nDOF_trial_element;
15345 int __pyx_v_nDOF_test_element;
15346 PyObject *__pyx_r = NULL;
15347 __Pyx_RefNannyDeclarations
15348 __Pyx_RefNannySetupContext(
"updateReactionJacobian_weak_lowmem", 0);
15357 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
15366 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
15375 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
15384 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
15393 updateReactionJacobian_weak_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
15404 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15405 __Pyx_XGIVEREF(__pyx_r);
15406 __Pyx_RefNannyFinishContext();
15419 static PyObject *__pyx_pw_13cfemIntegrals_129updateReaction_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15420 static PyMethodDef __pyx_mdef_13cfemIntegrals_129updateReaction_strong = {
"updateReaction_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_129updateReaction_strong, METH_VARARGS|METH_KEYWORDS, 0};
15421 static PyObject *__pyx_pw_13cfemIntegrals_129updateReaction_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15422 PyArrayObject *__pyx_v_r = 0;
15423 PyArrayObject *__pyx_v_strong_residual = 0;
15424 int __pyx_lineno = 0;
15425 const char *__pyx_filename = NULL;
15426 int __pyx_clineno = 0;
15427 PyObject *__pyx_r = 0;
15428 __Pyx_RefNannyDeclarations
15429 __Pyx_RefNannySetupContext(
"updateReaction_strong (wrapper)", 0);
15431 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_r,&__pyx_n_s_strong_residual,0};
15432 PyObject* values[2] = {0,0};
15433 if (unlikely(__pyx_kwds)) {
15434 Py_ssize_t kw_args;
15435 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15436 switch (pos_args) {
15437 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15438 CYTHON_FALLTHROUGH;
15439 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15440 CYTHON_FALLTHROUGH;
15442 default:
goto __pyx_L5_argtuple_error;
15444 kw_args = PyDict_Size(__pyx_kwds);
15445 switch (pos_args) {
15447 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_r)) != 0)) kw_args--;
15448 else goto __pyx_L5_argtuple_error;
15449 CYTHON_FALLTHROUGH;
15451 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strong_residual)) != 0)) kw_args--;
15453 __Pyx_RaiseArgtupleInvalid(
"updateReaction_strong", 1, 2, 2, 1); __PYX_ERR(0, 3509, __pyx_L3_error)
15456 if (unlikely(kw_args > 0)) {
15457 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReaction_strong") < 0)) __PYX_ERR(0, 3509, __pyx_L3_error)
15459 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
15460 goto __pyx_L5_argtuple_error;
15462 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15463 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15465 __pyx_v_r = ((PyArrayObject *)values[0]);
15466 __pyx_v_strong_residual = ((PyArrayObject *)values[1]);
15468 goto __pyx_L4_argument_unpacking_done;
15469 __pyx_L5_argtuple_error:;
15470 __Pyx_RaiseArgtupleInvalid(
"updateReaction_strong", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3509, __pyx_L3_error)
15472 __Pyx_AddTraceback(
"cfemIntegrals.updateReaction_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
15473 __Pyx_RefNannyFinishContext();
15475 __pyx_L4_argument_unpacking_done:;
15476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_r), __pyx_ptype_5numpy_ndarray, 1,
"r", 0))) __PYX_ERR(0, 3509, __pyx_L1_error)
15477 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_strong_residual), __pyx_ptype_5numpy_ndarray, 1,
"strong_residual", 0))) __PYX_ERR(0, 3510, __pyx_L1_error)
15478 __pyx_r = __pyx_pf_13cfemIntegrals_128updateReaction_strong(__pyx_self, __pyx_v_r, __pyx_v_strong_residual);
15485 __Pyx_RefNannyFinishContext();
15489 static PyObject *__pyx_pf_13cfemIntegrals_128updateReaction_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_r, PyArrayObject *__pyx_v_strong_residual) {
15490 int __pyx_v_nElements_global;
15491 int __pyx_v_nQuadraturePoints_element;
15492 PyObject *__pyx_r = NULL;
15493 __Pyx_RefNannyDeclarations
15494 __Pyx_RefNannySetupContext(
"updateReaction_strong", 0);
15503 __pyx_v_nElements_global = (__pyx_v_r->dimensions[0]);
15512 __pyx_v_nQuadraturePoints_element = (__pyx_v_r->dimensions[1]);
15521 updateReaction_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_r->data), ((
double *)__pyx_v_strong_residual->data));
15532 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15533 __Pyx_XGIVEREF(__pyx_r);
15534 __Pyx_RefNannyFinishContext();
15547 static PyObject *__pyx_pw_13cfemIntegrals_131updateReactionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15548 static PyMethodDef __pyx_mdef_13cfemIntegrals_131updateReactionJacobian_strong = {
"updateReactionJacobian_strong", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_131updateReactionJacobian_strong, METH_VARARGS|METH_KEYWORDS, 0};
15549 static PyObject *__pyx_pw_13cfemIntegrals_131updateReactionJacobian_strong(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15550 PyArrayObject *__pyx_v_dr = 0;
15551 PyArrayObject *__pyx_v_v = 0;
15552 PyArrayObject *__pyx_v_dstrong_residual = 0;
15553 int __pyx_lineno = 0;
15554 const char *__pyx_filename = NULL;
15555 int __pyx_clineno = 0;
15556 PyObject *__pyx_r = 0;
15557 __Pyx_RefNannyDeclarations
15558 __Pyx_RefNannySetupContext(
"updateReactionJacobian_strong (wrapper)", 0);
15560 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dr,&__pyx_n_s_v,&__pyx_n_s_dstrong_residual,0};
15561 PyObject* values[3] = {0,0,0};
15562 if (unlikely(__pyx_kwds)) {
15563 Py_ssize_t kw_args;
15564 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15565 switch (pos_args) {
15566 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15567 CYTHON_FALLTHROUGH;
15568 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15569 CYTHON_FALLTHROUGH;
15570 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15571 CYTHON_FALLTHROUGH;
15573 default:
goto __pyx_L5_argtuple_error;
15575 kw_args = PyDict_Size(__pyx_kwds);
15576 switch (pos_args) {
15578 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
15579 else goto __pyx_L5_argtuple_error;
15580 CYTHON_FALLTHROUGH;
15582 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
15584 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_strong", 1, 3, 3, 1); __PYX_ERR(0, 3517, __pyx_L3_error)
15586 CYTHON_FALLTHROUGH;
15588 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dstrong_residual)) != 0)) kw_args--;
15590 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_strong", 1, 3, 3, 2); __PYX_ERR(0, 3517, __pyx_L3_error)
15593 if (unlikely(kw_args > 0)) {
15594 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReactionJacobian_strong") < 0)) __PYX_ERR(0, 3517, __pyx_L3_error)
15596 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15597 goto __pyx_L5_argtuple_error;
15599 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15600 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15601 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15603 __pyx_v_dr = ((PyArrayObject *)values[0]);
15604 __pyx_v_v = ((PyArrayObject *)values[1]);
15605 __pyx_v_dstrong_residual = ((PyArrayObject *)values[2]);
15607 goto __pyx_L4_argument_unpacking_done;
15608 __pyx_L5_argtuple_error:;
15609 __Pyx_RaiseArgtupleInvalid(
"updateReactionJacobian_strong", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3517, __pyx_L3_error)
15611 __Pyx_AddTraceback(
"cfemIntegrals.updateReactionJacobian_strong", __pyx_clineno, __pyx_lineno, __pyx_filename);
15612 __Pyx_RefNannyFinishContext();
15614 __pyx_L4_argument_unpacking_done:;
15615 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3517, __pyx_L1_error)
15616 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3518, __pyx_L1_error)
15617 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstrong_residual), __pyx_ptype_5numpy_ndarray, 1,
"dstrong_residual", 0))) __PYX_ERR(0, 3519, __pyx_L1_error)
15618 __pyx_r = __pyx_pf_13cfemIntegrals_130updateReactionJacobian_strong(__pyx_self, __pyx_v_dr, __pyx_v_v, __pyx_v_dstrong_residual);
15625 __Pyx_RefNannyFinishContext();
15629 static PyObject *__pyx_pf_13cfemIntegrals_130updateReactionJacobian_strong(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_dstrong_residual) {
15630 int __pyx_v_nElements_global;
15631 int __pyx_v_nQuadraturePoints_element;
15632 int __pyx_v_nDOF_trial_element;
15633 PyObject *__pyx_r = NULL;
15634 __Pyx_RefNannyDeclarations
15635 __Pyx_RefNannySetupContext(
"updateReactionJacobian_strong", 0);
15644 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
15653 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
15662 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
15671 updateReactionJacobian_strong(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_dstrong_residual->data));
15682 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15683 __Pyx_XGIVEREF(__pyx_r);
15684 __Pyx_RefNannyFinishContext();
15697 static PyObject *__pyx_pw_13cfemIntegrals_133updateReaction_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15698 static PyMethodDef __pyx_mdef_13cfemIntegrals_133updateReaction_adjoint = {
"updateReaction_adjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_133updateReaction_adjoint, METH_VARARGS|METH_KEYWORDS, 0};
15699 static PyObject *__pyx_pw_13cfemIntegrals_133updateReaction_adjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15700 PyArrayObject *__pyx_v_dr = 0;
15701 PyArrayObject *__pyx_v_w_dV = 0;
15702 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
15703 int __pyx_lineno = 0;
15704 const char *__pyx_filename = NULL;
15705 int __pyx_clineno = 0;
15706 PyObject *__pyx_r = 0;
15707 __Pyx_RefNannyDeclarations
15708 __Pyx_RefNannySetupContext(
"updateReaction_adjoint (wrapper)", 0);
15710 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dr,&__pyx_n_s_w_dV,&__pyx_n_s_Lstar_w_dV,0};
15711 PyObject* values[3] = {0,0,0};
15712 if (unlikely(__pyx_kwds)) {
15713 Py_ssize_t kw_args;
15714 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15715 switch (pos_args) {
15716 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15717 CYTHON_FALLTHROUGH;
15718 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15719 CYTHON_FALLTHROUGH;
15720 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15721 CYTHON_FALLTHROUGH;
15723 default:
goto __pyx_L5_argtuple_error;
15725 kw_args = PyDict_Size(__pyx_kwds);
15726 switch (pos_args) {
15728 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
15729 else goto __pyx_L5_argtuple_error;
15730 CYTHON_FALLTHROUGH;
15732 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
15734 __Pyx_RaiseArgtupleInvalid(
"updateReaction_adjoint", 1, 3, 3, 1); __PYX_ERR(0, 3529, __pyx_L3_error)
15736 CYTHON_FALLTHROUGH;
15738 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
15740 __Pyx_RaiseArgtupleInvalid(
"updateReaction_adjoint", 1, 3, 3, 2); __PYX_ERR(0, 3529, __pyx_L3_error)
15743 if (unlikely(kw_args > 0)) {
15744 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateReaction_adjoint") < 0)) __PYX_ERR(0, 3529, __pyx_L3_error)
15746 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15747 goto __pyx_L5_argtuple_error;
15749 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15750 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15751 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15753 __pyx_v_dr = ((PyArrayObject *)values[0]);
15754 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
15755 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[2]);
15757 goto __pyx_L4_argument_unpacking_done;
15758 __pyx_L5_argtuple_error:;
15759 __Pyx_RaiseArgtupleInvalid(
"updateReaction_adjoint", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3529, __pyx_L3_error)
15761 __Pyx_AddTraceback(
"cfemIntegrals.updateReaction_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
15762 __Pyx_RefNannyFinishContext();
15764 __pyx_L4_argument_unpacking_done:;
15765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 3529, __pyx_L1_error)
15766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 3530, __pyx_L1_error)
15767 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3531, __pyx_L1_error)
15768 __pyx_r = __pyx_pf_13cfemIntegrals_132updateReaction_adjoint(__pyx_self, __pyx_v_dr, __pyx_v_w_dV, __pyx_v_Lstar_w_dV);
15775 __Pyx_RefNannyFinishContext();
15779 static PyObject *__pyx_pf_13cfemIntegrals_132updateReaction_adjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_Lstar_w_dV) {
15780 int __pyx_v_nElements_global;
15781 int __pyx_v_nQuadraturePoints_element;
15782 int __pyx_v_nDOF_test_element;
15783 PyObject *__pyx_r = NULL;
15784 __Pyx_RefNannyDeclarations
15785 __Pyx_RefNannySetupContext(
"updateReaction_adjoint", 0);
15794 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
15803 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
15812 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
15821 updateReaction_adjoint(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_Lstar_w_dV->data));
15832 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15833 __Pyx_XGIVEREF(__pyx_r);
15834 __Pyx_RefNannyFinishContext();
15847 static PyObject *__pyx_pw_13cfemIntegrals_135updateSubgridError(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15848 static PyMethodDef __pyx_mdef_13cfemIntegrals_135updateSubgridError = {
"updateSubgridError", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_135updateSubgridError, METH_VARARGS|METH_KEYWORDS, 0};
15849 static PyObject *__pyx_pw_13cfemIntegrals_135updateSubgridError(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15850 PyArrayObject *__pyx_v_error = 0;
15851 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
15852 PyArrayObject *__pyx_v_weak_residual = 0;
15853 int __pyx_lineno = 0;
15854 const char *__pyx_filename = NULL;
15855 int __pyx_clineno = 0;
15856 PyObject *__pyx_r = 0;
15857 __Pyx_RefNannyDeclarations
15858 __Pyx_RefNannySetupContext(
"updateSubgridError (wrapper)", 0);
15860 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,&__pyx_n_s_Lstar_w_dV,&__pyx_n_s_weak_residual,0};
15861 PyObject* values[3] = {0,0,0};
15862 if (unlikely(__pyx_kwds)) {
15863 Py_ssize_t kw_args;
15864 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15865 switch (pos_args) {
15866 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15867 CYTHON_FALLTHROUGH;
15868 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15869 CYTHON_FALLTHROUGH;
15870 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15871 CYTHON_FALLTHROUGH;
15873 default:
goto __pyx_L5_argtuple_error;
15875 kw_args = PyDict_Size(__pyx_kwds);
15876 switch (pos_args) {
15878 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_error)) != 0)) kw_args--;
15879 else goto __pyx_L5_argtuple_error;
15880 CYTHON_FALLTHROUGH;
15882 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
15884 __Pyx_RaiseArgtupleInvalid(
"updateSubgridError", 1, 3, 3, 1); __PYX_ERR(0, 3541, __pyx_L3_error)
15886 CYTHON_FALLTHROUGH;
15888 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
15890 __Pyx_RaiseArgtupleInvalid(
"updateSubgridError", 1, 3, 3, 2); __PYX_ERR(0, 3541, __pyx_L3_error)
15893 if (unlikely(kw_args > 0)) {
15894 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateSubgridError") < 0)) __PYX_ERR(0, 3541, __pyx_L3_error)
15896 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15897 goto __pyx_L5_argtuple_error;
15899 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15900 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15901 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15903 __pyx_v_error = ((PyArrayObject *)values[0]);
15904 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[1]);
15905 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
15907 goto __pyx_L4_argument_unpacking_done;
15908 __pyx_L5_argtuple_error:;
15909 __Pyx_RaiseArgtupleInvalid(
"updateSubgridError", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3541, __pyx_L3_error)
15911 __Pyx_AddTraceback(
"cfemIntegrals.updateSubgridError", __pyx_clineno, __pyx_lineno, __pyx_filename);
15912 __Pyx_RefNannyFinishContext();
15914 __pyx_L4_argument_unpacking_done:;
15915 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_error), __pyx_ptype_5numpy_ndarray, 1,
"error", 0))) __PYX_ERR(0, 3541, __pyx_L1_error)
15916 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3542, __pyx_L1_error)
15917 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3543, __pyx_L1_error)
15918 __pyx_r = __pyx_pf_13cfemIntegrals_134updateSubgridError(__pyx_self, __pyx_v_error, __pyx_v_Lstar_w_dV, __pyx_v_weak_residual);
15925 __Pyx_RefNannyFinishContext();
15929 static PyObject *__pyx_pf_13cfemIntegrals_134updateSubgridError(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_error, PyArrayObject *__pyx_v_Lstar_w_dV, PyArrayObject *__pyx_v_weak_residual) {
15930 int __pyx_v_nElements_global;
15931 int __pyx_v_nQuadraturePoints_element;
15932 int __pyx_v_nDOF_test_element;
15933 PyObject *__pyx_r = NULL;
15934 __Pyx_RefNannyDeclarations
15935 __Pyx_RefNannySetupContext(
"updateSubgridError", 0);
15944 __pyx_v_nElements_global = (__pyx_v_Lstar_w_dV->dimensions[0]);
15953 __pyx_v_nQuadraturePoints_element = (__pyx_v_Lstar_w_dV->dimensions[1]);
15962 __pyx_v_nDOF_test_element = (__pyx_v_Lstar_w_dV->dimensions[2]);
15971 updateSubgridError(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_error->data), ((
double *)__pyx_v_Lstar_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
15982 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15983 __Pyx_XGIVEREF(__pyx_r);
15984 __Pyx_RefNannyFinishContext();
15997 static PyObject *__pyx_pw_13cfemIntegrals_137updateSubgridErrorJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15998 static PyMethodDef __pyx_mdef_13cfemIntegrals_137updateSubgridErrorJacobian = {
"updateSubgridErrorJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_137updateSubgridErrorJacobian, METH_VARARGS|METH_KEYWORDS, 0};
15999 static PyObject *__pyx_pw_13cfemIntegrals_137updateSubgridErrorJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16000 PyArrayObject *__pyx_v_derror = 0;
16001 PyArrayObject *__pyx_v_Lstar_w_dV = 0;
16002 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
16003 int __pyx_lineno = 0;
16004 const char *__pyx_filename = NULL;
16005 int __pyx_clineno = 0;
16006 PyObject *__pyx_r = 0;
16007 __Pyx_RefNannyDeclarations
16008 __Pyx_RefNannySetupContext(
"updateSubgridErrorJacobian (wrapper)", 0);
16010 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_derror,&__pyx_n_s_Lstar_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
16011 PyObject* values[3] = {0,0,0};
16012 if (unlikely(__pyx_kwds)) {
16013 Py_ssize_t kw_args;
16014 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16015 switch (pos_args) {
16016 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16017 CYTHON_FALLTHROUGH;
16018 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16019 CYTHON_FALLTHROUGH;
16020 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16021 CYTHON_FALLTHROUGH;
16023 default:
goto __pyx_L5_argtuple_error;
16025 kw_args = PyDict_Size(__pyx_kwds);
16026 switch (pos_args) {
16028 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_derror)) != 0)) kw_args--;
16029 else goto __pyx_L5_argtuple_error;
16030 CYTHON_FALLTHROUGH;
16032 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lstar_w_dV)) != 0)) kw_args--;
16034 __Pyx_RaiseArgtupleInvalid(
"updateSubgridErrorJacobian", 1, 3, 3, 1); __PYX_ERR(0, 3553, __pyx_L3_error)
16036 CYTHON_FALLTHROUGH;
16038 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
16040 __Pyx_RaiseArgtupleInvalid(
"updateSubgridErrorJacobian", 1, 3, 3, 2); __PYX_ERR(0, 3553, __pyx_L3_error)
16043 if (unlikely(kw_args > 0)) {
16044 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateSubgridErrorJacobian") < 0)) __PYX_ERR(0, 3553, __pyx_L3_error)
16046 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
16047 goto __pyx_L5_argtuple_error;
16049 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16050 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16051 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16053 __pyx_v_derror = ((PyArrayObject *)values[0]);
16054 __pyx_v_Lstar_w_dV = ((PyArrayObject *)values[1]);
16055 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
16057 goto __pyx_L4_argument_unpacking_done;
16058 __pyx_L5_argtuple_error:;
16059 __Pyx_RaiseArgtupleInvalid(
"updateSubgridErrorJacobian", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3553, __pyx_L3_error)
16061 __Pyx_AddTraceback(
"cfemIntegrals.updateSubgridErrorJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
16062 __Pyx_RefNannyFinishContext();
16064 __pyx_L4_argument_unpacking_done:;
16065 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_derror), __pyx_ptype_5numpy_ndarray, 1,
"derror", 0))) __PYX_ERR(0, 3553, __pyx_L1_error)
16066 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_Lstar_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"Lstar_w_dV", 0))) __PYX_ERR(0, 3554, __pyx_L1_error)
16067 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3555, __pyx_L1_error)
16068 __pyx_r = __pyx_pf_13cfemIntegrals_136updateSubgridErrorJacobian(__pyx_self, __pyx_v_derror, __pyx_v_Lstar_w_dV, __pyx_v_jacobian_weak_residual);
16075 __Pyx_RefNannyFinishContext();
16079 static PyObject *__pyx_pf_13cfemIntegrals_136updateSubgridErrorJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_derror, PyArrayObject *__pyx_v_Lstar_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
16080 int __pyx_v_nElements_global;
16081 int __pyx_v_nQuadraturePoints_element;
16082 int __pyx_v_nDOF_trial_element;
16083 int __pyx_v_nDOF_test_element;
16084 PyObject *__pyx_r = NULL;
16085 __Pyx_RefNannyDeclarations
16086 __Pyx_RefNannySetupContext(
"updateSubgridErrorJacobian", 0);
16095 __pyx_v_nElements_global = (__pyx_v_Lstar_w_dV->dimensions[0]);
16104 __pyx_v_nQuadraturePoints_element = (__pyx_v_Lstar_w_dV->dimensions[1]);
16113 __pyx_v_nDOF_trial_element = (__pyx_v_derror->dimensions[2]);
16122 __pyx_v_nDOF_test_element = (__pyx_v_Lstar_w_dV->dimensions[2]);
16131 updateSubgridErrorJacobian(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_derror->data), ((
double *)__pyx_v_Lstar_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
16142 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16143 __Pyx_XGIVEREF(__pyx_r);
16144 __Pyx_RefNannyFinishContext();
16157 static PyObject *__pyx_pw_13cfemIntegrals_139updateNumericalDiffusion(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16158 static PyMethodDef __pyx_mdef_13cfemIntegrals_139updateNumericalDiffusion = {
"updateNumericalDiffusion", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_139updateNumericalDiffusion, METH_VARARGS|METH_KEYWORDS, 0};
16159 static PyObject *__pyx_pw_13cfemIntegrals_139updateNumericalDiffusion(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16160 PyArrayObject *__pyx_v_numDiff = 0;
16161 PyArrayObject *__pyx_v_grad_u_X_grad_w_dV = 0;
16162 PyArrayObject *__pyx_v_weak_residual = 0;
16163 int __pyx_lineno = 0;
16164 const char *__pyx_filename = NULL;
16165 int __pyx_clineno = 0;
16166 PyObject *__pyx_r = 0;
16167 __Pyx_RefNannyDeclarations
16168 __Pyx_RefNannySetupContext(
"updateNumericalDiffusion (wrapper)", 0);
16170 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_numDiff,&__pyx_n_s_grad_u_X_grad_w_dV,&__pyx_n_s_weak_residual,0};
16171 PyObject* values[3] = {0,0,0};
16172 if (unlikely(__pyx_kwds)) {
16173 Py_ssize_t kw_args;
16174 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16175 switch (pos_args) {
16176 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16177 CYTHON_FALLTHROUGH;
16178 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16179 CYTHON_FALLTHROUGH;
16180 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16181 CYTHON_FALLTHROUGH;
16183 default:
goto __pyx_L5_argtuple_error;
16185 kw_args = PyDict_Size(__pyx_kwds);
16186 switch (pos_args) {
16188 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
16189 else goto __pyx_L5_argtuple_error;
16190 CYTHON_FALLTHROUGH;
16192 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u_X_grad_w_dV)) != 0)) kw_args--;
16194 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion", 1, 3, 3, 1); __PYX_ERR(0, 3567, __pyx_L3_error)
16196 CYTHON_FALLTHROUGH;
16198 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
16200 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion", 1, 3, 3, 2); __PYX_ERR(0, 3567, __pyx_L3_error)
16203 if (unlikely(kw_args > 0)) {
16204 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateNumericalDiffusion") < 0)) __PYX_ERR(0, 3567, __pyx_L3_error)
16206 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
16207 goto __pyx_L5_argtuple_error;
16209 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16210 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16211 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16213 __pyx_v_numDiff = ((PyArrayObject *)values[0]);
16214 __pyx_v_grad_u_X_grad_w_dV = ((PyArrayObject *)values[1]);
16215 __pyx_v_weak_residual = ((PyArrayObject *)values[2]);
16217 goto __pyx_L4_argument_unpacking_done;
16218 __pyx_L5_argtuple_error:;
16219 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3567, __pyx_L3_error)
16221 __Pyx_AddTraceback(
"cfemIntegrals.updateNumericalDiffusion", __pyx_clineno, __pyx_lineno, __pyx_filename);
16222 __Pyx_RefNannyFinishContext();
16224 __pyx_L4_argument_unpacking_done:;
16225 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 3567, __pyx_L1_error)
16226 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_u_X_grad_w_dV", 0))) __PYX_ERR(0, 3568, __pyx_L1_error)
16227 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3569, __pyx_L1_error)
16228 __pyx_r = __pyx_pf_13cfemIntegrals_138updateNumericalDiffusion(__pyx_self, __pyx_v_numDiff, __pyx_v_grad_u_X_grad_w_dV, __pyx_v_weak_residual);
16235 __Pyx_RefNannyFinishContext();
16239 static PyObject *__pyx_pf_13cfemIntegrals_138updateNumericalDiffusion(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u_X_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
16240 int __pyx_v_nElements_global;
16241 int __pyx_v_nQuadraturePoints_element;
16242 int __pyx_v_nDOF_test_element;
16243 int __pyx_v_nSpace;
16244 PyObject *__pyx_r = NULL;
16245 __Pyx_RefNannyDeclarations
16246 __Pyx_RefNannySetupContext(
"updateNumericalDiffusion", 0);
16255 __pyx_v_nElements_global = (__pyx_v_grad_u_X_grad_w_dV->dimensions[0]);
16264 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_u_X_grad_w_dV->dimensions[1]);
16273 __pyx_v_nDOF_test_element = (__pyx_v_grad_u_X_grad_w_dV->dimensions[2]);
16282 __pyx_v_nSpace = (__pyx_v_grad_u_X_grad_w_dV->dimensions[3]);
16291 updateNumericalDiffusion(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_u_X_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
16302 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16303 __Pyx_XGIVEREF(__pyx_r);
16304 __Pyx_RefNannyFinishContext();
16317 static PyObject *__pyx_pw_13cfemIntegrals_141updateNumericalDiffusion_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16318 static PyMethodDef __pyx_mdef_13cfemIntegrals_141updateNumericalDiffusion_lowmem = {
"updateNumericalDiffusion_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_141updateNumericalDiffusion_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
16319 static PyObject *__pyx_pw_13cfemIntegrals_141updateNumericalDiffusion_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16320 PyArrayObject *__pyx_v_numDiff = 0;
16321 PyArrayObject *__pyx_v_grad_u = 0;
16322 PyArrayObject *__pyx_v_grad_w_dV = 0;
16323 PyArrayObject *__pyx_v_weak_residual = 0;
16324 int __pyx_lineno = 0;
16325 const char *__pyx_filename = NULL;
16326 int __pyx_clineno = 0;
16327 PyObject *__pyx_r = 0;
16328 __Pyx_RefNannyDeclarations
16329 __Pyx_RefNannySetupContext(
"updateNumericalDiffusion_lowmem (wrapper)", 0);
16331 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_numDiff,&__pyx_n_s_grad_u,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual,0};
16332 PyObject* values[4] = {0,0,0,0};
16333 if (unlikely(__pyx_kwds)) {
16334 Py_ssize_t kw_args;
16335 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16336 switch (pos_args) {
16337 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16338 CYTHON_FALLTHROUGH;
16339 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16340 CYTHON_FALLTHROUGH;
16341 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16342 CYTHON_FALLTHROUGH;
16343 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16344 CYTHON_FALLTHROUGH;
16346 default:
goto __pyx_L5_argtuple_error;
16348 kw_args = PyDict_Size(__pyx_kwds);
16349 switch (pos_args) {
16351 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
16352 else goto __pyx_L5_argtuple_error;
16353 CYTHON_FALLTHROUGH;
16355 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
16357 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3581, __pyx_L3_error)
16359 CYTHON_FALLTHROUGH;
16361 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
16363 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3581, __pyx_L3_error)
16365 CYTHON_FALLTHROUGH;
16367 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
16369 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3581, __pyx_L3_error)
16372 if (unlikely(kw_args > 0)) {
16373 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateNumericalDiffusion_lowmem") < 0)) __PYX_ERR(0, 3581, __pyx_L3_error)
16375 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
16376 goto __pyx_L5_argtuple_error;
16378 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16379 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16380 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16381 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16383 __pyx_v_numDiff = ((PyArrayObject *)values[0]);
16384 __pyx_v_grad_u = ((PyArrayObject *)values[1]);
16385 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
16386 __pyx_v_weak_residual = ((PyArrayObject *)values[3]);
16388 goto __pyx_L4_argument_unpacking_done;
16389 __pyx_L5_argtuple_error:;
16390 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusion_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3581, __pyx_L3_error)
16392 __Pyx_AddTraceback(
"cfemIntegrals.updateNumericalDiffusion_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
16393 __Pyx_RefNannyFinishContext();
16395 __pyx_L4_argument_unpacking_done:;
16396 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 3581, __pyx_L1_error)
16397 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 3582, __pyx_L1_error)
16398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3583, __pyx_L1_error)
16399 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 3584, __pyx_L1_error)
16400 __pyx_r = __pyx_pf_13cfemIntegrals_140updateNumericalDiffusion_lowmem(__pyx_self, __pyx_v_numDiff, __pyx_v_grad_u, __pyx_v_grad_w_dV, __pyx_v_weak_residual);
16407 __Pyx_RefNannyFinishContext();
16411 static PyObject *__pyx_pf_13cfemIntegrals_140updateNumericalDiffusion_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
16412 int __pyx_v_nElements_global;
16413 int __pyx_v_nQuadraturePoints_element;
16414 int __pyx_v_nDOF_test_element;
16415 int __pyx_v_nSpace;
16416 PyObject *__pyx_r = NULL;
16417 __Pyx_RefNannyDeclarations
16418 __Pyx_RefNannySetupContext(
"updateNumericalDiffusion_lowmem", 0);
16427 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
16436 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
16445 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
16454 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
16463 updateNumericalDiffusion_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
16474 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16475 __Pyx_XGIVEREF(__pyx_r);
16476 __Pyx_RefNannyFinishContext();
16489 static PyObject *__pyx_pw_13cfemIntegrals_143updateNumericalDiffusionJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16490 static PyMethodDef __pyx_mdef_13cfemIntegrals_143updateNumericalDiffusionJacobian = {
"updateNumericalDiffusionJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_143updateNumericalDiffusionJacobian, METH_VARARGS|METH_KEYWORDS, 0};
16491 static PyObject *__pyx_pw_13cfemIntegrals_143updateNumericalDiffusionJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16492 PyArrayObject *__pyx_v_numDiff = 0;
16493 PyArrayObject *__pyx_v_grad_v_X_grad_w_dV = 0;
16494 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
16495 int __pyx_lineno = 0;
16496 const char *__pyx_filename = NULL;
16497 int __pyx_clineno = 0;
16498 PyObject *__pyx_r = 0;
16499 __Pyx_RefNannyDeclarations
16500 __Pyx_RefNannySetupContext(
"updateNumericalDiffusionJacobian (wrapper)", 0);
16502 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_numDiff,&__pyx_n_s_grad_v_X_grad_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
16503 PyObject* values[3] = {0,0,0};
16504 if (unlikely(__pyx_kwds)) {
16505 Py_ssize_t kw_args;
16506 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16507 switch (pos_args) {
16508 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16509 CYTHON_FALLTHROUGH;
16510 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16511 CYTHON_FALLTHROUGH;
16512 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16513 CYTHON_FALLTHROUGH;
16515 default:
goto __pyx_L5_argtuple_error;
16517 kw_args = PyDict_Size(__pyx_kwds);
16518 switch (pos_args) {
16520 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
16521 else goto __pyx_L5_argtuple_error;
16522 CYTHON_FALLTHROUGH;
16524 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_grad_w_dV)) != 0)) kw_args--;
16526 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian", 1, 3, 3, 1); __PYX_ERR(0, 3597, __pyx_L3_error)
16528 CYTHON_FALLTHROUGH;
16530 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
16532 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian", 1, 3, 3, 2); __PYX_ERR(0, 3597, __pyx_L3_error)
16535 if (unlikely(kw_args > 0)) {
16536 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateNumericalDiffusionJacobian") < 0)) __PYX_ERR(0, 3597, __pyx_L3_error)
16538 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
16539 goto __pyx_L5_argtuple_error;
16541 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16542 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16543 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16545 __pyx_v_numDiff = ((PyArrayObject *)values[0]);
16546 __pyx_v_grad_v_X_grad_w_dV = ((PyArrayObject *)values[1]);
16547 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[2]);
16549 goto __pyx_L4_argument_unpacking_done;
16550 __pyx_L5_argtuple_error:;
16551 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3597, __pyx_L3_error)
16553 __Pyx_AddTraceback(
"cfemIntegrals.updateNumericalDiffusionJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
16554 __Pyx_RefNannyFinishContext();
16556 __pyx_L4_argument_unpacking_done:;
16557 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 3597, __pyx_L1_error)
16558 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_grad_w_dV", 0))) __PYX_ERR(0, 3598, __pyx_L1_error)
16559 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3599, __pyx_L1_error)
16560 __pyx_r = __pyx_pf_13cfemIntegrals_142updateNumericalDiffusionJacobian(__pyx_self, __pyx_v_numDiff, __pyx_v_grad_v_X_grad_w_dV, __pyx_v_jacobian_weak_residual);
16567 __Pyx_RefNannyFinishContext();
16571 static PyObject *__pyx_pf_13cfemIntegrals_142updateNumericalDiffusionJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
16572 int __pyx_v_nElements_global;
16573 int __pyx_v_nQuadraturePoints_element;
16574 int __pyx_v_nDOF_trial_element;
16575 int __pyx_v_nDOF_test_element;
16576 int __pyx_v_nSpace;
16577 PyObject *__pyx_r = NULL;
16578 __Pyx_RefNannyDeclarations
16579 __Pyx_RefNannySetupContext(
"updateNumericalDiffusionJacobian", 0);
16588 __pyx_v_nElements_global = (__pyx_v_grad_v_X_grad_w_dV->dimensions[0]);
16597 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[1]);
16606 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[2]);
16615 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[3]);
16624 __pyx_v_nSpace = (__pyx_v_grad_v_X_grad_w_dV->dimensions[4]);
16633 updateNumericalDiffusionJacobian(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_v_X_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
16644 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16645 __Pyx_XGIVEREF(__pyx_r);
16646 __Pyx_RefNannyFinishContext();
16659 static PyObject *__pyx_pw_13cfemIntegrals_145updateNumericalDiffusionJacobian_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16660 static PyMethodDef __pyx_mdef_13cfemIntegrals_145updateNumericalDiffusionJacobian_lowmem = {
"updateNumericalDiffusionJacobian_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_145updateNumericalDiffusionJacobian_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
16661 static PyObject *__pyx_pw_13cfemIntegrals_145updateNumericalDiffusionJacobian_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16662 PyArrayObject *__pyx_v_numDiff = 0;
16663 PyArrayObject *__pyx_v_grad_v = 0;
16664 PyArrayObject *__pyx_v_grad_w_dV = 0;
16665 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
16666 int __pyx_lineno = 0;
16667 const char *__pyx_filename = NULL;
16668 int __pyx_clineno = 0;
16669 PyObject *__pyx_r = 0;
16670 __Pyx_RefNannyDeclarations
16671 __Pyx_RefNannySetupContext(
"updateNumericalDiffusionJacobian_lowmem (wrapper)", 0);
16673 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_numDiff,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_jacobian_weak_residual,0};
16674 PyObject* values[4] = {0,0,0,0};
16675 if (unlikely(__pyx_kwds)) {
16676 Py_ssize_t kw_args;
16677 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16678 switch (pos_args) {
16679 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16680 CYTHON_FALLTHROUGH;
16681 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16682 CYTHON_FALLTHROUGH;
16683 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16684 CYTHON_FALLTHROUGH;
16685 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16686 CYTHON_FALLTHROUGH;
16688 default:
goto __pyx_L5_argtuple_error;
16690 kw_args = PyDict_Size(__pyx_kwds);
16691 switch (pos_args) {
16693 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
16694 else goto __pyx_L5_argtuple_error;
16695 CYTHON_FALLTHROUGH;
16697 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
16699 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 3613, __pyx_L3_error)
16701 CYTHON_FALLTHROUGH;
16703 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
16705 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 3613, __pyx_L3_error)
16707 CYTHON_FALLTHROUGH;
16709 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
16711 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 3613, __pyx_L3_error)
16714 if (unlikely(kw_args > 0)) {
16715 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateNumericalDiffusionJacobian_lowmem") < 0)) __PYX_ERR(0, 3613, __pyx_L3_error)
16717 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
16718 goto __pyx_L5_argtuple_error;
16720 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16721 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16722 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16723 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16725 __pyx_v_numDiff = ((PyArrayObject *)values[0]);
16726 __pyx_v_grad_v = ((PyArrayObject *)values[1]);
16727 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
16728 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[3]);
16730 goto __pyx_L4_argument_unpacking_done;
16731 __pyx_L5_argtuple_error:;
16732 __Pyx_RaiseArgtupleInvalid(
"updateNumericalDiffusionJacobian_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3613, __pyx_L3_error)
16734 __Pyx_AddTraceback(
"cfemIntegrals.updateNumericalDiffusionJacobian_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
16735 __Pyx_RefNannyFinishContext();
16737 __pyx_L4_argument_unpacking_done:;
16738 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 3613, __pyx_L1_error)
16739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 3614, __pyx_L1_error)
16740 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 3615, __pyx_L1_error)
16741 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 3616, __pyx_L1_error)
16742 __pyx_r = __pyx_pf_13cfemIntegrals_144updateNumericalDiffusionJacobian_lowmem(__pyx_self, __pyx_v_numDiff, __pyx_v_grad_v, __pyx_v_grad_w_dV, __pyx_v_jacobian_weak_residual);
16749 __Pyx_RefNannyFinishContext();
16753 static PyObject *__pyx_pf_13cfemIntegrals_144updateNumericalDiffusionJacobian_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual) {
16754 npy_intp __pyx_v_nElements_global;
16755 npy_intp __pyx_v_nQuadraturePoints_element;
16756 npy_intp __pyx_v_nDOF_trial_element;
16757 npy_intp __pyx_v_nDOF_test_element;
16758 npy_intp __pyx_v_nSpace;
16759 PyObject *__pyx_r = NULL;
16760 __Pyx_RefNannyDeclarations
16761 __Pyx_RefNannySetupContext(
"updateNumericalDiffusionJacobian_lowmem", 0);
16770 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
16779 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
16788 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
16797 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
16806 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
16815 updateNumericalDiffusionJacobian_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual->data));
16826 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16827 __Pyx_XGIVEREF(__pyx_r);
16828 __Pyx_RefNannyFinishContext();
16841 static PyObject *__pyx_pw_13cfemIntegrals_147calculateScalarScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16842 static PyMethodDef __pyx_mdef_13cfemIntegrals_147calculateScalarScalarProduct = {
"calculateScalarScalarProduct", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_147calculateScalarScalarProduct, METH_VARARGS|METH_KEYWORDS, 0};
16843 static PyObject *__pyx_pw_13cfemIntegrals_147calculateScalarScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16844 PyArrayObject *__pyx_v_s1 = 0;
16845 PyArrayObject *__pyx_v_s2 = 0;
16846 PyArrayObject *__pyx_v_sResult = 0;
16847 int __pyx_lineno = 0;
16848 const char *__pyx_filename = NULL;
16849 int __pyx_clineno = 0;
16850 PyObject *__pyx_r = 0;
16851 __Pyx_RefNannyDeclarations
16852 __Pyx_RefNannySetupContext(
"calculateScalarScalarProduct (wrapper)", 0);
16854 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_s1,&__pyx_n_s_s2,&__pyx_n_s_sResult,0};
16855 PyObject* values[3] = {0,0,0};
16856 if (unlikely(__pyx_kwds)) {
16857 Py_ssize_t kw_args;
16858 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16859 switch (pos_args) {
16860 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16861 CYTHON_FALLTHROUGH;
16862 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16863 CYTHON_FALLTHROUGH;
16864 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16865 CYTHON_FALLTHROUGH;
16867 default:
goto __pyx_L5_argtuple_error;
16869 kw_args = PyDict_Size(__pyx_kwds);
16870 switch (pos_args) {
16872 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s1)) != 0)) kw_args--;
16873 else goto __pyx_L5_argtuple_error;
16874 CYTHON_FALLTHROUGH;
16876 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s2)) != 0)) kw_args--;
16878 __Pyx_RaiseArgtupleInvalid(
"calculateScalarScalarProduct", 1, 3, 3, 1); __PYX_ERR(0, 3631, __pyx_L3_error)
16880 CYTHON_FALLTHROUGH;
16882 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sResult)) != 0)) kw_args--;
16884 __Pyx_RaiseArgtupleInvalid(
"calculateScalarScalarProduct", 1, 3, 3, 2); __PYX_ERR(0, 3631, __pyx_L3_error)
16887 if (unlikely(kw_args > 0)) {
16888 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateScalarScalarProduct") < 0)) __PYX_ERR(0, 3631, __pyx_L3_error)
16890 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
16891 goto __pyx_L5_argtuple_error;
16893 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16894 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16895 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16897 __pyx_v_s1 = ((PyArrayObject *)values[0]);
16898 __pyx_v_s2 = ((PyArrayObject *)values[1]);
16899 __pyx_v_sResult = ((PyArrayObject *)values[2]);
16901 goto __pyx_L4_argument_unpacking_done;
16902 __pyx_L5_argtuple_error:;
16903 __Pyx_RaiseArgtupleInvalid(
"calculateScalarScalarProduct", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3631, __pyx_L3_error)
16905 __Pyx_AddTraceback(
"cfemIntegrals.calculateScalarScalarProduct", __pyx_clineno, __pyx_lineno, __pyx_filename);
16906 __Pyx_RefNannyFinishContext();
16908 __pyx_L4_argument_unpacking_done:;
16909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s1), __pyx_ptype_5numpy_ndarray, 1,
"s1", 0))) __PYX_ERR(0, 3631, __pyx_L1_error)
16910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s2), __pyx_ptype_5numpy_ndarray, 1,
"s2", 0))) __PYX_ERR(0, 3632, __pyx_L1_error)
16911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sResult), __pyx_ptype_5numpy_ndarray, 1,
"sResult", 0))) __PYX_ERR(0, 3633, __pyx_L1_error)
16912 __pyx_r = __pyx_pf_13cfemIntegrals_146calculateScalarScalarProduct(__pyx_self, __pyx_v_s1, __pyx_v_s2, __pyx_v_sResult);
16919 __Pyx_RefNannyFinishContext();
16923 static PyObject *__pyx_pf_13cfemIntegrals_146calculateScalarScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_s1, PyArrayObject *__pyx_v_s2, PyArrayObject *__pyx_v_sResult) {
16924 int __pyx_v_nElements_global;
16925 int __pyx_v_nQuadraturePoints_element;
16926 PyObject *__pyx_r = NULL;
16927 __Pyx_RefNannyDeclarations
16928 __Pyx_RefNannySetupContext(
"calculateScalarScalarProduct", 0);
16937 __pyx_v_nElements_global = (__pyx_v_s1->dimensions[0]);
16946 __pyx_v_nQuadraturePoints_element = (__pyx_v_s1->dimensions[1]);
16955 calculateScalarScalarProduct(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_s1->data), ((
double *)__pyx_v_s2->data), ((
double *)__pyx_v_sResult->data));
16966 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16967 __Pyx_XGIVEREF(__pyx_r);
16968 __Pyx_RefNannyFinishContext();
16981 static PyObject *__pyx_pw_13cfemIntegrals_149calculateVectorScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16982 static PyMethodDef __pyx_mdef_13cfemIntegrals_149calculateVectorScalarProduct = {
"calculateVectorScalarProduct", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_149calculateVectorScalarProduct, METH_VARARGS|METH_KEYWORDS, 0};
16983 static PyObject *__pyx_pw_13cfemIntegrals_149calculateVectorScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16984 PyArrayObject *__pyx_v_v = 0;
16985 PyArrayObject *__pyx_v_s = 0;
16986 PyArrayObject *__pyx_v_vResult = 0;
16987 int __pyx_lineno = 0;
16988 const char *__pyx_filename = NULL;
16989 int __pyx_clineno = 0;
16990 PyObject *__pyx_r = 0;
16991 __Pyx_RefNannyDeclarations
16992 __Pyx_RefNannySetupContext(
"calculateVectorScalarProduct (wrapper)", 0);
16994 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_s,&__pyx_n_s_vResult,0};
16995 PyObject* values[3] = {0,0,0};
16996 if (unlikely(__pyx_kwds)) {
16997 Py_ssize_t kw_args;
16998 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16999 switch (pos_args) {
17000 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17001 CYTHON_FALLTHROUGH;
17002 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17003 CYTHON_FALLTHROUGH;
17004 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17005 CYTHON_FALLTHROUGH;
17007 default:
goto __pyx_L5_argtuple_error;
17009 kw_args = PyDict_Size(__pyx_kwds);
17010 switch (pos_args) {
17012 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
17013 else goto __pyx_L5_argtuple_error;
17014 CYTHON_FALLTHROUGH;
17016 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s)) != 0)) kw_args--;
17018 __Pyx_RaiseArgtupleInvalid(
"calculateVectorScalarProduct", 1, 3, 3, 1); __PYX_ERR(0, 3641, __pyx_L3_error)
17020 CYTHON_FALLTHROUGH;
17022 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vResult)) != 0)) kw_args--;
17024 __Pyx_RaiseArgtupleInvalid(
"calculateVectorScalarProduct", 1, 3, 3, 2); __PYX_ERR(0, 3641, __pyx_L3_error)
17027 if (unlikely(kw_args > 0)) {
17028 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVectorScalarProduct") < 0)) __PYX_ERR(0, 3641, __pyx_L3_error)
17030 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
17031 goto __pyx_L5_argtuple_error;
17033 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17034 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17035 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17037 __pyx_v_v = ((PyArrayObject *)values[0]);
17038 __pyx_v_s = ((PyArrayObject *)values[1]);
17039 __pyx_v_vResult = ((PyArrayObject *)values[2]);
17041 goto __pyx_L4_argument_unpacking_done;
17042 __pyx_L5_argtuple_error:;
17043 __Pyx_RaiseArgtupleInvalid(
"calculateVectorScalarProduct", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3641, __pyx_L3_error)
17045 __Pyx_AddTraceback(
"cfemIntegrals.calculateVectorScalarProduct", __pyx_clineno, __pyx_lineno, __pyx_filename);
17046 __Pyx_RefNannyFinishContext();
17048 __pyx_L4_argument_unpacking_done:;
17049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 3641, __pyx_L1_error)
17050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s), __pyx_ptype_5numpy_ndarray, 1,
"s", 0))) __PYX_ERR(0, 3642, __pyx_L1_error)
17051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vResult), __pyx_ptype_5numpy_ndarray, 1,
"vResult", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
17052 __pyx_r = __pyx_pf_13cfemIntegrals_148calculateVectorScalarProduct(__pyx_self, __pyx_v_v, __pyx_v_s, __pyx_v_vResult);
17059 __Pyx_RefNannyFinishContext();
17063 static PyObject *__pyx_pf_13cfemIntegrals_148calculateVectorScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_s, PyArrayObject *__pyx_v_vResult) {
17064 int __pyx_v_nElements_global;
17065 int __pyx_v_nQuadraturePoints_element;
17066 int __pyx_v_nSpace;
17067 PyObject *__pyx_r = NULL;
17068 __Pyx_RefNannyDeclarations
17069 __Pyx_RefNannySetupContext(
"calculateVectorScalarProduct", 0);
17078 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
17087 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
17096 __pyx_v_nSpace = (__pyx_v_v->dimensions[2]);
17105 calculateVectorScalarProduct(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_s->data), ((
double *)__pyx_v_vResult->data));
17116 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17117 __Pyx_XGIVEREF(__pyx_r);
17118 __Pyx_RefNannyFinishContext();
17131 static PyObject *__pyx_pw_13cfemIntegrals_151calculateTensorScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17132 static PyMethodDef __pyx_mdef_13cfemIntegrals_151calculateTensorScalarProduct = {
"calculateTensorScalarProduct", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_151calculateTensorScalarProduct, METH_VARARGS|METH_KEYWORDS, 0};
17133 static PyObject *__pyx_pw_13cfemIntegrals_151calculateTensorScalarProduct(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17134 PyArrayObject *__pyx_v_t = 0;
17135 PyArrayObject *__pyx_v_s = 0;
17136 PyArrayObject *__pyx_v_tResult = 0;
17137 int __pyx_lineno = 0;
17138 const char *__pyx_filename = NULL;
17139 int __pyx_clineno = 0;
17140 PyObject *__pyx_r = 0;
17141 __Pyx_RefNannyDeclarations
17142 __Pyx_RefNannySetupContext(
"calculateTensorScalarProduct (wrapper)", 0);
17144 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_s,&__pyx_n_s_tResult,0};
17145 PyObject* values[3] = {0,0,0};
17146 if (unlikely(__pyx_kwds)) {
17147 Py_ssize_t kw_args;
17148 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17149 switch (pos_args) {
17150 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17151 CYTHON_FALLTHROUGH;
17152 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17153 CYTHON_FALLTHROUGH;
17154 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17155 CYTHON_FALLTHROUGH;
17157 default:
goto __pyx_L5_argtuple_error;
17159 kw_args = PyDict_Size(__pyx_kwds);
17160 switch (pos_args) {
17162 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
17163 else goto __pyx_L5_argtuple_error;
17164 CYTHON_FALLTHROUGH;
17166 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_s)) != 0)) kw_args--;
17168 __Pyx_RaiseArgtupleInvalid(
"calculateTensorScalarProduct", 1, 3, 3, 1); __PYX_ERR(0, 3653, __pyx_L3_error)
17170 CYTHON_FALLTHROUGH;
17172 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tResult)) != 0)) kw_args--;
17174 __Pyx_RaiseArgtupleInvalid(
"calculateTensorScalarProduct", 1, 3, 3, 2); __PYX_ERR(0, 3653, __pyx_L3_error)
17177 if (unlikely(kw_args > 0)) {
17178 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateTensorScalarProduct") < 0)) __PYX_ERR(0, 3653, __pyx_L3_error)
17180 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
17181 goto __pyx_L5_argtuple_error;
17183 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17184 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17185 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17187 __pyx_v_t = ((PyArrayObject *)values[0]);
17188 __pyx_v_s = ((PyArrayObject *)values[1]);
17189 __pyx_v_tResult = ((PyArrayObject *)values[2]);
17191 goto __pyx_L4_argument_unpacking_done;
17192 __pyx_L5_argtuple_error:;
17193 __Pyx_RaiseArgtupleInvalid(
"calculateTensorScalarProduct", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3653, __pyx_L3_error)
17195 __Pyx_AddTraceback(
"cfemIntegrals.calculateTensorScalarProduct", __pyx_clineno, __pyx_lineno, __pyx_filename);
17196 __Pyx_RefNannyFinishContext();
17198 __pyx_L4_argument_unpacking_done:;
17199 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_t), __pyx_ptype_5numpy_ndarray, 1,
"t", 0))) __PYX_ERR(0, 3653, __pyx_L1_error)
17200 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_s), __pyx_ptype_5numpy_ndarray, 1,
"s", 0))) __PYX_ERR(0, 3654, __pyx_L1_error)
17201 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tResult), __pyx_ptype_5numpy_ndarray, 1,
"tResult", 0))) __PYX_ERR(0, 3655, __pyx_L1_error)
17202 __pyx_r = __pyx_pf_13cfemIntegrals_150calculateTensorScalarProduct(__pyx_self, __pyx_v_t, __pyx_v_s, __pyx_v_tResult);
17209 __Pyx_RefNannyFinishContext();
17213 static PyObject *__pyx_pf_13cfemIntegrals_150calculateTensorScalarProduct(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_t, PyArrayObject *__pyx_v_s, PyArrayObject *__pyx_v_tResult) {
17214 int __pyx_v_nElements_global;
17215 int __pyx_v_nQuadraturePoints_element;
17216 int __pyx_v_nSpace;
17217 PyObject *__pyx_r = NULL;
17218 __Pyx_RefNannyDeclarations
17219 __Pyx_RefNannySetupContext(
"calculateTensorScalarProduct", 0);
17228 __pyx_v_nElements_global = (__pyx_v_t->dimensions[0]);
17237 __pyx_v_nQuadraturePoints_element = (__pyx_v_t->dimensions[1]);
17246 __pyx_v_nSpace = (__pyx_v_t->dimensions[2]);
17255 calculateTensorScalarProduct(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_t->data), ((
double *)__pyx_v_s->data), ((
double *)__pyx_v_tResult->data));
17266 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17267 __Pyx_XGIVEREF(__pyx_r);
17268 __Pyx_RefNannyFinishContext();
17281 static PyObject *__pyx_pw_13cfemIntegrals_153updateInteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17282 static PyMethodDef __pyx_mdef_13cfemIntegrals_153updateInteriorElementBoundaryFlux = {
"updateInteriorElementBoundaryFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_153updateInteriorElementBoundaryFlux, METH_VARARGS|METH_KEYWORDS, 0};
17283 static PyObject *__pyx_pw_13cfemIntegrals_153updateInteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17284 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
17285 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
17286 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
17287 PyArrayObject *__pyx_v_flux = 0;
17288 PyArrayObject *__pyx_v_w_dS = 0;
17289 PyArrayObject *__pyx_v_residual = 0;
17290 int __pyx_lineno = 0;
17291 const char *__pyx_filename = NULL;
17292 int __pyx_clineno = 0;
17293 PyObject *__pyx_r = 0;
17294 __Pyx_RefNannyDeclarations
17295 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryFlux (wrapper)", 0);
17297 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_flux,&__pyx_n_s_w_dS,&__pyx_n_s_residual,0};
17298 PyObject* values[6] = {0,0,0,0,0,0};
17299 if (unlikely(__pyx_kwds)) {
17300 Py_ssize_t kw_args;
17301 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17302 switch (pos_args) {
17303 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17304 CYTHON_FALLTHROUGH;
17305 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17306 CYTHON_FALLTHROUGH;
17307 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17308 CYTHON_FALLTHROUGH;
17309 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17310 CYTHON_FALLTHROUGH;
17311 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17312 CYTHON_FALLTHROUGH;
17313 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17314 CYTHON_FALLTHROUGH;
17316 default:
goto __pyx_L5_argtuple_error;
17318 kw_args = PyDict_Size(__pyx_kwds);
17319 switch (pos_args) {
17321 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
17322 else goto __pyx_L5_argtuple_error;
17323 CYTHON_FALLTHROUGH;
17325 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
17327 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, 1); __PYX_ERR(0, 3665, __pyx_L3_error)
17329 CYTHON_FALLTHROUGH;
17331 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
17333 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, 2); __PYX_ERR(0, 3665, __pyx_L3_error)
17335 CYTHON_FALLTHROUGH;
17337 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
17339 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, 3); __PYX_ERR(0, 3665, __pyx_L3_error)
17341 CYTHON_FALLTHROUGH;
17343 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
17345 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, 4); __PYX_ERR(0, 3665, __pyx_L3_error)
17347 CYTHON_FALLTHROUGH;
17349 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
17351 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, 5); __PYX_ERR(0, 3665, __pyx_L3_error)
17354 if (unlikely(kw_args > 0)) {
17355 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryFlux") < 0)) __PYX_ERR(0, 3665, __pyx_L3_error)
17357 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
17358 goto __pyx_L5_argtuple_error;
17360 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17361 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17362 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17363 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17364 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17365 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17367 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
17368 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
17369 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
17370 __pyx_v_flux = ((PyArrayObject *)values[3]);
17371 __pyx_v_w_dS = ((PyArrayObject *)values[4]);
17372 __pyx_v_residual = ((PyArrayObject *)values[5]);
17374 goto __pyx_L4_argument_unpacking_done;
17375 __pyx_L5_argtuple_error:;
17376 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryFlux", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3665, __pyx_L3_error)
17378 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
17379 __Pyx_RefNannyFinishContext();
17381 __pyx_L4_argument_unpacking_done:;
17382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3665, __pyx_L1_error)
17383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3666, __pyx_L1_error)
17384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3667, __pyx_L1_error)
17385 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 3668, __pyx_L1_error)
17386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3669, __pyx_L1_error)
17387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 3670, __pyx_L1_error)
17388 __pyx_r = __pyx_pf_13cfemIntegrals_152updateInteriorElementBoundaryFlux(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_flux, __pyx_v_w_dS, __pyx_v_residual);
17395 __Pyx_RefNannyFinishContext();
17399 static PyObject *__pyx_pf_13cfemIntegrals_152updateInteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual) {
17400 int __pyx_v_nInteriorElementBoundaries_global;
17401 int __pyx_v_nElementBoundaries_element;
17402 int __pyx_v_nQuadraturePoints_elementBoundary;
17403 int __pyx_v_nDOF_test_element;
17404 PyObject *__pyx_r = NULL;
17405 __Pyx_RefNannyDeclarations
17406 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryFlux", 0);
17415 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
17424 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
17433 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
17442 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
17451 updateInteriorElementBoundaryFlux(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_residual->data));
17462 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17463 __Pyx_XGIVEREF(__pyx_r);
17464 __Pyx_RefNannyFinishContext();
17477 static PyObject *__pyx_pw_13cfemIntegrals_155updateExteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17478 static PyMethodDef __pyx_mdef_13cfemIntegrals_155updateExteriorElementBoundaryFlux = {
"updateExteriorElementBoundaryFlux", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_155updateExteriorElementBoundaryFlux, METH_VARARGS|METH_KEYWORDS, 0};
17479 static PyObject *__pyx_pw_13cfemIntegrals_155updateExteriorElementBoundaryFlux(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17480 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
17481 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
17482 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
17483 PyArrayObject *__pyx_v_flux = 0;
17484 PyArrayObject *__pyx_v_w_dS = 0;
17485 PyArrayObject *__pyx_v_residual = 0;
17486 int __pyx_lineno = 0;
17487 const char *__pyx_filename = NULL;
17488 int __pyx_clineno = 0;
17489 PyObject *__pyx_r = 0;
17490 __Pyx_RefNannyDeclarations
17491 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryFlux (wrapper)", 0);
17493 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_flux,&__pyx_n_s_w_dS,&__pyx_n_s_residual,0};
17494 PyObject* values[6] = {0,0,0,0,0,0};
17495 if (unlikely(__pyx_kwds)) {
17496 Py_ssize_t kw_args;
17497 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17498 switch (pos_args) {
17499 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17500 CYTHON_FALLTHROUGH;
17501 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17502 CYTHON_FALLTHROUGH;
17503 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17504 CYTHON_FALLTHROUGH;
17505 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17506 CYTHON_FALLTHROUGH;
17507 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17508 CYTHON_FALLTHROUGH;
17509 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17510 CYTHON_FALLTHROUGH;
17512 default:
goto __pyx_L5_argtuple_error;
17514 kw_args = PyDict_Size(__pyx_kwds);
17515 switch (pos_args) {
17517 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
17518 else goto __pyx_L5_argtuple_error;
17519 CYTHON_FALLTHROUGH;
17521 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
17523 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, 1); __PYX_ERR(0, 3685, __pyx_L3_error)
17525 CYTHON_FALLTHROUGH;
17527 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
17529 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, 2); __PYX_ERR(0, 3685, __pyx_L3_error)
17531 CYTHON_FALLTHROUGH;
17533 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
17535 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, 3); __PYX_ERR(0, 3685, __pyx_L3_error)
17537 CYTHON_FALLTHROUGH;
17539 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
17541 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, 4); __PYX_ERR(0, 3685, __pyx_L3_error)
17543 CYTHON_FALLTHROUGH;
17545 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
17547 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, 5); __PYX_ERR(0, 3685, __pyx_L3_error)
17550 if (unlikely(kw_args > 0)) {
17551 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryFlux") < 0)) __PYX_ERR(0, 3685, __pyx_L3_error)
17553 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
17554 goto __pyx_L5_argtuple_error;
17556 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17557 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17558 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17559 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17560 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17561 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17563 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
17564 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
17565 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
17566 __pyx_v_flux = ((PyArrayObject *)values[3]);
17567 __pyx_v_w_dS = ((PyArrayObject *)values[4]);
17568 __pyx_v_residual = ((PyArrayObject *)values[5]);
17570 goto __pyx_L4_argument_unpacking_done;
17571 __pyx_L5_argtuple_error:;
17572 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryFlux", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3685, __pyx_L3_error)
17574 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryFlux", __pyx_clineno, __pyx_lineno, __pyx_filename);
17575 __Pyx_RefNannyFinishContext();
17577 __pyx_L4_argument_unpacking_done:;
17578 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3685, __pyx_L1_error)
17579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3686, __pyx_L1_error)
17580 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3687, __pyx_L1_error)
17581 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 3688, __pyx_L1_error)
17582 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3689, __pyx_L1_error)
17583 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 3690, __pyx_L1_error)
17584 __pyx_r = __pyx_pf_13cfemIntegrals_154updateExteriorElementBoundaryFlux(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_flux, __pyx_v_w_dS, __pyx_v_residual);
17591 __Pyx_RefNannyFinishContext();
17595 static PyObject *__pyx_pf_13cfemIntegrals_154updateExteriorElementBoundaryFlux(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_flux, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_residual) {
17597 PyObject *__pyx_r = NULL;
17598 __Pyx_RefNannyDeclarations
17601 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryFlux", 0);
17610 __pyx_t_1 = __pyx_v_w_dS->nd;
17611 __pyx_v_nd = __pyx_t_1;
17620 __pyx_t_2 = ((__pyx_v_nd >= 4) != 0);
17630 updateExteriorElementBoundaryFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_w_dS->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_residual->data));
17658 updateGlobalExteriorElementBoundaryFlux((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_flux->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_residual->data));
17671 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17672 __Pyx_XGIVEREF(__pyx_r);
17673 __Pyx_RefNannyFinishContext();
17686 static PyObject *__pyx_pw_13cfemIntegrals_157updateGlobalResidualFromElementResidual(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17687 static PyMethodDef __pyx_mdef_13cfemIntegrals_157updateGlobalResidualFromElementResidual = {
"updateGlobalResidualFromElementResidual", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_157updateGlobalResidualFromElementResidual, METH_VARARGS|METH_KEYWORDS, 0};
17688 static PyObject *__pyx_pw_13cfemIntegrals_157updateGlobalResidualFromElementResidual(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17689 int __pyx_v_offset_r;
17690 int __pyx_v_stride_r;
17691 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
17692 PyArrayObject *__pyx_v_freeLocal_r = 0;
17693 PyArrayObject *__pyx_v_freeGlobal_r = 0;
17694 PyArrayObject *__pyx_v_elementResidual = 0;
17695 PyArrayObject *__pyx_v_globalResidual = 0;
17696 int __pyx_lineno = 0;
17697 const char *__pyx_filename = NULL;
17698 int __pyx_clineno = 0;
17699 PyObject *__pyx_r = 0;
17700 __Pyx_RefNannyDeclarations
17701 __Pyx_RefNannySetupContext(
"updateGlobalResidualFromElementResidual (wrapper)", 0);
17703 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_elementResidual,&__pyx_n_s_globalResidual,0};
17704 PyObject* values[7] = {0,0,0,0,0,0,0};
17705 if (unlikely(__pyx_kwds)) {
17706 Py_ssize_t kw_args;
17707 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17708 switch (pos_args) {
17709 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17710 CYTHON_FALLTHROUGH;
17711 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17712 CYTHON_FALLTHROUGH;
17713 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17714 CYTHON_FALLTHROUGH;
17715 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17716 CYTHON_FALLTHROUGH;
17717 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17718 CYTHON_FALLTHROUGH;
17719 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17720 CYTHON_FALLTHROUGH;
17721 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17722 CYTHON_FALLTHROUGH;
17724 default:
goto __pyx_L5_argtuple_error;
17726 kw_args = PyDict_Size(__pyx_kwds);
17727 switch (pos_args) {
17729 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
17730 else goto __pyx_L5_argtuple_error;
17731 CYTHON_FALLTHROUGH;
17733 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
17735 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 1); __PYX_ERR(0, 3713, __pyx_L3_error)
17737 CYTHON_FALLTHROUGH;
17739 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
17741 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 2); __PYX_ERR(0, 3713, __pyx_L3_error)
17743 CYTHON_FALLTHROUGH;
17745 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
17747 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 3); __PYX_ERR(0, 3713, __pyx_L3_error)
17749 CYTHON_FALLTHROUGH;
17751 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
17753 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 4); __PYX_ERR(0, 3713, __pyx_L3_error)
17755 CYTHON_FALLTHROUGH;
17757 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
17759 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 5); __PYX_ERR(0, 3713, __pyx_L3_error)
17761 CYTHON_FALLTHROUGH;
17763 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalResidual)) != 0)) kw_args--;
17765 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, 6); __PYX_ERR(0, 3713, __pyx_L3_error)
17768 if (unlikely(kw_args > 0)) {
17769 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalResidualFromElementResidual") < 0)) __PYX_ERR(0, 3713, __pyx_L3_error)
17771 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
17772 goto __pyx_L5_argtuple_error;
17774 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17775 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17776 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17777 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17778 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17779 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17780 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17782 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3713, __pyx_L3_error)
17783 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3714, __pyx_L3_error)
17784 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[2]);
17785 __pyx_v_freeLocal_r = ((PyArrayObject *)values[3]);
17786 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[4]);
17787 __pyx_v_elementResidual = ((PyArrayObject *)values[5]);
17788 __pyx_v_globalResidual = ((PyArrayObject *)values[6]);
17790 goto __pyx_L4_argument_unpacking_done;
17791 __pyx_L5_argtuple_error:;
17792 __Pyx_RaiseArgtupleInvalid(
"updateGlobalResidualFromElementResidual", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3713, __pyx_L3_error)
17794 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalResidualFromElementResidual", __pyx_clineno, __pyx_lineno, __pyx_filename);
17795 __Pyx_RefNannyFinishContext();
17797 __pyx_L4_argument_unpacking_done:;
17798 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3715, __pyx_L1_error)
17799 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3716, __pyx_L1_error)
17800 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3717, __pyx_L1_error)
17801 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 3718, __pyx_L1_error)
17802 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_globalResidual), __pyx_ptype_5numpy_ndarray, 1,
"globalResidual", 0))) __PYX_ERR(0, 3719, __pyx_L1_error)
17803 __pyx_r = __pyx_pf_13cfemIntegrals_156updateGlobalResidualFromElementResidual(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_elementResidual, __pyx_v_globalResidual);
17810 __Pyx_RefNannyFinishContext();
17814 static PyObject *__pyx_pf_13cfemIntegrals_156updateGlobalResidualFromElementResidual(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_globalResidual) {
17815 int __pyx_v_nElements_global;
17816 int __pyx_v_nDOF_test_element;
17817 PyObject *__pyx_r = NULL;
17818 __Pyx_RefNannyDeclarations
17819 __Pyx_RefNannySetupContext(
"updateGlobalResidualFromElementResidual", 0);
17828 __pyx_v_nElements_global = (__pyx_v_elementResidual->dimensions[0]);
17837 __pyx_v_nDOF_test_element = (__pyx_v_elementResidual->dimensions[1]);
17846 updateGlobalResidualFromElementResidual(__pyx_v_nElements_global, __pyx_v_nDOF_test_element, __pyx_v_offset_r, __pyx_v_stride_r, ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_globalResidual->data));
17857 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17858 __Pyx_XGIVEREF(__pyx_r);
17859 __Pyx_RefNannyFinishContext();
17872 static PyObject *__pyx_pw_13cfemIntegrals_159updateGlobalJacobianFromElementJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17873 static PyMethodDef __pyx_mdef_13cfemIntegrals_159updateGlobalJacobianFromElementJacobian_dense = {
"updateGlobalJacobianFromElementJacobian_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_159updateGlobalJacobianFromElementJacobian_dense, METH_VARARGS|METH_KEYWORDS, 0};
17874 static PyObject *__pyx_pw_13cfemIntegrals_159updateGlobalJacobianFromElementJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17875 int __pyx_v_offset_r;
17876 int __pyx_v_stride_r;
17877 int __pyx_v_offset_u;
17878 int __pyx_v_stride_u;
17879 int __pyx_v_nFreeVDOF_global;
17880 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
17881 PyArrayObject *__pyx_v_freeLocal_r = 0;
17882 PyArrayObject *__pyx_v_freeGlobal_r = 0;
17883 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
17884 PyArrayObject *__pyx_v_freeLocal_u = 0;
17885 PyArrayObject *__pyx_v_freeGlobal_u = 0;
17886 PyArrayObject *__pyx_v_elementJacobian = 0;
17887 PyArrayObject *__pyx_v_globalJacobian = 0;
17888 int __pyx_lineno = 0;
17889 const char *__pyx_filename = NULL;
17890 int __pyx_clineno = 0;
17891 PyObject *__pyx_r = 0;
17892 __Pyx_RefNannyDeclarations
17893 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_dense (wrapper)", 0);
17895 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementJacobian,&__pyx_n_s_globalJacobian,0};
17896 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
17897 if (unlikely(__pyx_kwds)) {
17898 Py_ssize_t kw_args;
17899 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17900 switch (pos_args) {
17901 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
17902 CYTHON_FALLTHROUGH;
17903 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
17904 CYTHON_FALLTHROUGH;
17905 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
17906 CYTHON_FALLTHROUGH;
17907 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
17908 CYTHON_FALLTHROUGH;
17909 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
17910 CYTHON_FALLTHROUGH;
17911 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
17912 CYTHON_FALLTHROUGH;
17913 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
17914 CYTHON_FALLTHROUGH;
17915 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
17916 CYTHON_FALLTHROUGH;
17917 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
17918 CYTHON_FALLTHROUGH;
17919 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17920 CYTHON_FALLTHROUGH;
17921 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17922 CYTHON_FALLTHROUGH;
17923 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17924 CYTHON_FALLTHROUGH;
17925 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17926 CYTHON_FALLTHROUGH;
17928 default:
goto __pyx_L5_argtuple_error;
17930 kw_args = PyDict_Size(__pyx_kwds);
17931 switch (pos_args) {
17933 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
17934 else goto __pyx_L5_argtuple_error;
17935 CYTHON_FALLTHROUGH;
17937 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
17939 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 1); __PYX_ERR(0, 3731, __pyx_L3_error)
17941 CYTHON_FALLTHROUGH;
17943 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
17945 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 2); __PYX_ERR(0, 3731, __pyx_L3_error)
17947 CYTHON_FALLTHROUGH;
17949 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
17951 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 3); __PYX_ERR(0, 3731, __pyx_L3_error)
17953 CYTHON_FALLTHROUGH;
17955 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
17957 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 4); __PYX_ERR(0, 3731, __pyx_L3_error)
17959 CYTHON_FALLTHROUGH;
17961 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
17963 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 5); __PYX_ERR(0, 3731, __pyx_L3_error)
17965 CYTHON_FALLTHROUGH;
17967 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
17969 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 6); __PYX_ERR(0, 3731, __pyx_L3_error)
17971 CYTHON_FALLTHROUGH;
17973 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
17975 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 7); __PYX_ERR(0, 3731, __pyx_L3_error)
17977 CYTHON_FALLTHROUGH;
17979 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
17981 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 8); __PYX_ERR(0, 3731, __pyx_L3_error)
17983 CYTHON_FALLTHROUGH;
17985 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
17987 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 9); __PYX_ERR(0, 3731, __pyx_L3_error)
17989 CYTHON_FALLTHROUGH;
17991 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
17993 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 10); __PYX_ERR(0, 3731, __pyx_L3_error)
17995 CYTHON_FALLTHROUGH;
17997 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementJacobian)) != 0)) kw_args--;
17999 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 11); __PYX_ERR(0, 3731, __pyx_L3_error)
18001 CYTHON_FALLTHROUGH;
18003 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalJacobian)) != 0)) kw_args--;
18005 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, 12); __PYX_ERR(0, 3731, __pyx_L3_error)
18008 if (unlikely(kw_args > 0)) {
18009 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromElementJacobian_dense") < 0)) __PYX_ERR(0, 3731, __pyx_L3_error)
18011 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
18012 goto __pyx_L5_argtuple_error;
18014 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18015 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18016 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18017 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18018 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18019 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18020 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18021 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18022 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18023 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18024 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18025 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18026 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18028 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3731, __pyx_L3_error)
18029 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3732, __pyx_L3_error)
18030 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3733, __pyx_L3_error)
18031 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3734, __pyx_L3_error)
18032 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3735, __pyx_L3_error)
18033 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[5]);
18034 __pyx_v_freeLocal_r = ((PyArrayObject *)values[6]);
18035 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[7]);
18036 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[8]);
18037 __pyx_v_freeLocal_u = ((PyArrayObject *)values[9]);
18038 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[10]);
18039 __pyx_v_elementJacobian = ((PyArrayObject *)values[11]);
18040 __pyx_v_globalJacobian = ((PyArrayObject *)values[12]);
18042 goto __pyx_L4_argument_unpacking_done;
18043 __pyx_L5_argtuple_error:;
18044 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_dense", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3731, __pyx_L3_error)
18046 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
18047 __Pyx_RefNannyFinishContext();
18049 __pyx_L4_argument_unpacking_done:;
18050 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3736, __pyx_L1_error)
18051 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3737, __pyx_L1_error)
18052 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3738, __pyx_L1_error)
18053 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3739, __pyx_L1_error)
18054 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3740, __pyx_L1_error)
18055 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3741, __pyx_L1_error)
18056 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementJacobian", 0))) __PYX_ERR(0, 3742, __pyx_L1_error)
18057 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_globalJacobian), __pyx_ptype_5numpy_ndarray, 1,
"globalJacobian", 0))) __PYX_ERR(0, 3743, __pyx_L1_error)
18058 __pyx_r = __pyx_pf_13cfemIntegrals_158updateGlobalJacobianFromElementJacobian_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementJacobian, __pyx_v_globalJacobian);
18065 __Pyx_RefNannyFinishContext();
18069 static PyObject *__pyx_pf_13cfemIntegrals_158updateGlobalJacobianFromElementJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementJacobian, PyArrayObject *__pyx_v_globalJacobian) {
18070 int __pyx_v_nElements_global;
18071 int __pyx_v_nDOF_test_element;
18072 int __pyx_v_nDOF_trial_element;
18073 PyObject *__pyx_r = NULL;
18074 __Pyx_RefNannyDeclarations
18075 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_dense", 0);
18084 __pyx_v_nElements_global = (__pyx_v_elementJacobian->dimensions[0]);
18093 __pyx_v_nDOF_test_element = (__pyx_v_elementJacobian->dimensions[1]);
18102 __pyx_v_nDOF_trial_element = (__pyx_v_elementJacobian->dimensions[2]);
18111 updateGlobalJacobianFromElementJacobian_dense(__pyx_v_nElements_global, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementJacobian->data), ((
double *)__pyx_v_globalJacobian->data));
18122 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18123 __Pyx_XGIVEREF(__pyx_r);
18124 __Pyx_RefNannyFinishContext();
18137 static PyObject *__pyx_pw_13cfemIntegrals_161updateGlobalJacobianFromElementJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18138 static PyMethodDef __pyx_mdef_13cfemIntegrals_161updateGlobalJacobianFromElementJacobian_eb_dense = {
"updateGlobalJacobianFromElementJacobian_eb_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_161updateGlobalJacobianFromElementJacobian_eb_dense, METH_VARARGS|METH_KEYWORDS, 0};
18139 static PyObject *__pyx_pw_13cfemIntegrals_161updateGlobalJacobianFromElementJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18140 PyArrayObject *__pyx_v_elementNeighbors = 0;
18141 int __pyx_v_offset_r;
18142 int __pyx_v_stride_r;
18143 int __pyx_v_offset_u;
18144 int __pyx_v_stride_u;
18145 int __pyx_v_nFreeVDOF_global;
18146 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
18147 PyArrayObject *__pyx_v_freeLocal_r = 0;
18148 PyArrayObject *__pyx_v_freeGlobal_r = 0;
18149 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
18150 PyArrayObject *__pyx_v_freeLocal_u = 0;
18151 PyArrayObject *__pyx_v_freeGlobal_u = 0;
18152 PyArrayObject *__pyx_v_elementJacobian_eb = 0;
18153 PyArrayObject *__pyx_v_globalJacobian = 0;
18154 int __pyx_lineno = 0;
18155 const char *__pyx_filename = NULL;
18156 int __pyx_clineno = 0;
18157 PyObject *__pyx_r = 0;
18158 __Pyx_RefNannyDeclarations
18159 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_eb_dense (wrapper)", 0);
18161 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementJacobian_eb,&__pyx_n_s_globalJacobian,0};
18162 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18163 if (unlikely(__pyx_kwds)) {
18164 Py_ssize_t kw_args;
18165 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18166 switch (pos_args) {
18167 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18168 CYTHON_FALLTHROUGH;
18169 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18170 CYTHON_FALLTHROUGH;
18171 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18172 CYTHON_FALLTHROUGH;
18173 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18174 CYTHON_FALLTHROUGH;
18175 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18176 CYTHON_FALLTHROUGH;
18177 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18178 CYTHON_FALLTHROUGH;
18179 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18180 CYTHON_FALLTHROUGH;
18181 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18182 CYTHON_FALLTHROUGH;
18183 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18184 CYTHON_FALLTHROUGH;
18185 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18186 CYTHON_FALLTHROUGH;
18187 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18188 CYTHON_FALLTHROUGH;
18189 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18190 CYTHON_FALLTHROUGH;
18191 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18192 CYTHON_FALLTHROUGH;
18193 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18194 CYTHON_FALLTHROUGH;
18196 default:
goto __pyx_L5_argtuple_error;
18198 kw_args = PyDict_Size(__pyx_kwds);
18199 switch (pos_args) {
18201 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
18202 else goto __pyx_L5_argtuple_error;
18203 CYTHON_FALLTHROUGH;
18205 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
18207 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 1); __PYX_ERR(0, 3763, __pyx_L3_error)
18209 CYTHON_FALLTHROUGH;
18211 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
18213 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 2); __PYX_ERR(0, 3763, __pyx_L3_error)
18215 CYTHON_FALLTHROUGH;
18217 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
18219 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 3); __PYX_ERR(0, 3763, __pyx_L3_error)
18221 CYTHON_FALLTHROUGH;
18223 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
18225 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 4); __PYX_ERR(0, 3763, __pyx_L3_error)
18227 CYTHON_FALLTHROUGH;
18229 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
18231 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 5); __PYX_ERR(0, 3763, __pyx_L3_error)
18233 CYTHON_FALLTHROUGH;
18235 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
18237 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 6); __PYX_ERR(0, 3763, __pyx_L3_error)
18239 CYTHON_FALLTHROUGH;
18241 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
18243 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 7); __PYX_ERR(0, 3763, __pyx_L3_error)
18245 CYTHON_FALLTHROUGH;
18247 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
18249 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 8); __PYX_ERR(0, 3763, __pyx_L3_error)
18251 CYTHON_FALLTHROUGH;
18253 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
18255 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 9); __PYX_ERR(0, 3763, __pyx_L3_error)
18257 CYTHON_FALLTHROUGH;
18259 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
18261 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 10); __PYX_ERR(0, 3763, __pyx_L3_error)
18263 CYTHON_FALLTHROUGH;
18265 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
18267 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 11); __PYX_ERR(0, 3763, __pyx_L3_error)
18269 CYTHON_FALLTHROUGH;
18271 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementJacobian_eb)) != 0)) kw_args--;
18273 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 12); __PYX_ERR(0, 3763, __pyx_L3_error)
18275 CYTHON_FALLTHROUGH;
18277 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalJacobian)) != 0)) kw_args--;
18279 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, 13); __PYX_ERR(0, 3763, __pyx_L3_error)
18282 if (unlikely(kw_args > 0)) {
18283 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromElementJacobian_eb_dense") < 0)) __PYX_ERR(0, 3763, __pyx_L3_error)
18285 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
18286 goto __pyx_L5_argtuple_error;
18288 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18289 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18290 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18291 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18292 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18293 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18294 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18295 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18296 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18297 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18298 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18299 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18300 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18301 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18303 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
18304 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3764, __pyx_L3_error)
18305 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3765, __pyx_L3_error)
18306 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3766, __pyx_L3_error)
18307 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3767, __pyx_L3_error)
18308 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3768, __pyx_L3_error)
18309 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[6]);
18310 __pyx_v_freeLocal_r = ((PyArrayObject *)values[7]);
18311 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[8]);
18312 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[9]);
18313 __pyx_v_freeLocal_u = ((PyArrayObject *)values[10]);
18314 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[11]);
18315 __pyx_v_elementJacobian_eb = ((PyArrayObject *)values[12]);
18316 __pyx_v_globalJacobian = ((PyArrayObject *)values[13]);
18318 goto __pyx_L4_argument_unpacking_done;
18319 __pyx_L5_argtuple_error:;
18320 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_dense", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3763, __pyx_L3_error)
18322 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_eb_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
18323 __Pyx_RefNannyFinishContext();
18325 __pyx_L4_argument_unpacking_done:;
18326 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 3763, __pyx_L1_error)
18327 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3769, __pyx_L1_error)
18328 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3770, __pyx_L1_error)
18329 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3771, __pyx_L1_error)
18330 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3772, __pyx_L1_error)
18331 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
18332 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3774, __pyx_L1_error)
18333 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementJacobian_eb", 0))) __PYX_ERR(0, 3775, __pyx_L1_error)
18334 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_globalJacobian), __pyx_ptype_5numpy_ndarray, 1,
"globalJacobian", 0))) __PYX_ERR(0, 3776, __pyx_L1_error)
18335 __pyx_r = __pyx_pf_13cfemIntegrals_160updateGlobalJacobianFromElementJacobian_eb_dense(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementJacobian_eb, __pyx_v_globalJacobian);
18342 __Pyx_RefNannyFinishContext();
18346 static PyObject *__pyx_pf_13cfemIntegrals_160updateGlobalJacobianFromElementJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementJacobian_eb, PyArrayObject *__pyx_v_globalJacobian) {
18347 int __pyx_v_nElements_global;
18348 int __pyx_v_nElementBoundaries_element;
18349 int __pyx_v_nDOF_test_element;
18350 int __pyx_v_nDOF_trial_element;
18351 PyObject *__pyx_r = NULL;
18352 __Pyx_RefNannyDeclarations
18353 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_eb_dense", 0);
18362 __pyx_v_nElements_global = (__pyx_v_elementJacobian_eb->dimensions[0]);
18371 __pyx_v_nElementBoundaries_element = (__pyx_v_elementJacobian_eb->dimensions[1]);
18380 __pyx_v_nDOF_test_element = (__pyx_v_elementJacobian_eb->dimensions[2]);
18389 __pyx_v_nDOF_trial_element = (__pyx_v_elementJacobian_eb->dimensions[3]);
18398 updateGlobalJacobianFromElementJacobian_eb_dense(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementJacobian_eb->data), ((
double *)__pyx_v_globalJacobian->data));
18409 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18410 __Pyx_XGIVEREF(__pyx_r);
18411 __Pyx_RefNannyFinishContext();
18424 static PyObject *__pyx_pw_13cfemIntegrals_163updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18425 static PyMethodDef __pyx_mdef_13cfemIntegrals_163updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_163updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense, METH_VARARGS|METH_KEYWORDS, 0};
18426 static PyObject *__pyx_pw_13cfemIntegrals_163updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18427 int __pyx_v_offset_r;
18428 int __pyx_v_stride_r;
18429 int __pyx_v_offset_u;
18430 int __pyx_v_stride_u;
18431 int __pyx_v_nFreeVDOF_global;
18432 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
18433 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
18434 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
18435 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
18436 PyArrayObject *__pyx_v_freeLocal_r = 0;
18437 PyArrayObject *__pyx_v_freeGlobal_r = 0;
18438 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
18439 PyArrayObject *__pyx_v_freeLocal_u = 0;
18440 PyArrayObject *__pyx_v_freeGlobal_u = 0;
18441 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian = 0;
18442 PyArrayObject *__pyx_v_w_dS = 0;
18443 PyArrayObject *__pyx_v_jac = 0;
18444 int __pyx_lineno = 0;
18445 const char *__pyx_filename = NULL;
18446 int __pyx_clineno = 0;
18447 PyObject *__pyx_r = 0;
18448 __Pyx_RefNannyDeclarations
18449 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense (wrapper)", 0);
18451 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementBoundaryFluxJacobian,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
18452 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18453 if (unlikely(__pyx_kwds)) {
18454 Py_ssize_t kw_args;
18455 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18456 switch (pos_args) {
18457 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18458 CYTHON_FALLTHROUGH;
18459 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18460 CYTHON_FALLTHROUGH;
18461 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18462 CYTHON_FALLTHROUGH;
18463 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18464 CYTHON_FALLTHROUGH;
18465 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18466 CYTHON_FALLTHROUGH;
18467 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18468 CYTHON_FALLTHROUGH;
18469 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18470 CYTHON_FALLTHROUGH;
18471 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18472 CYTHON_FALLTHROUGH;
18473 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18474 CYTHON_FALLTHROUGH;
18475 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18476 CYTHON_FALLTHROUGH;
18477 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18478 CYTHON_FALLTHROUGH;
18479 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18480 CYTHON_FALLTHROUGH;
18481 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18482 CYTHON_FALLTHROUGH;
18483 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18484 CYTHON_FALLTHROUGH;
18485 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18486 CYTHON_FALLTHROUGH;
18487 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18488 CYTHON_FALLTHROUGH;
18489 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18490 CYTHON_FALLTHROUGH;
18492 default:
goto __pyx_L5_argtuple_error;
18494 kw_args = PyDict_Size(__pyx_kwds);
18495 switch (pos_args) {
18497 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
18498 else goto __pyx_L5_argtuple_error;
18499 CYTHON_FALLTHROUGH;
18501 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
18503 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 1); __PYX_ERR(0, 3799, __pyx_L3_error)
18505 CYTHON_FALLTHROUGH;
18507 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
18509 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 2); __PYX_ERR(0, 3799, __pyx_L3_error)
18511 CYTHON_FALLTHROUGH;
18513 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
18515 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 3); __PYX_ERR(0, 3799, __pyx_L3_error)
18517 CYTHON_FALLTHROUGH;
18519 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
18521 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 4); __PYX_ERR(0, 3799, __pyx_L3_error)
18523 CYTHON_FALLTHROUGH;
18525 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
18527 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 5); __PYX_ERR(0, 3799, __pyx_L3_error)
18529 CYTHON_FALLTHROUGH;
18531 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
18533 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 6); __PYX_ERR(0, 3799, __pyx_L3_error)
18535 CYTHON_FALLTHROUGH;
18537 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
18539 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 7); __PYX_ERR(0, 3799, __pyx_L3_error)
18541 CYTHON_FALLTHROUGH;
18543 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
18545 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 8); __PYX_ERR(0, 3799, __pyx_L3_error)
18547 CYTHON_FALLTHROUGH;
18549 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
18551 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 9); __PYX_ERR(0, 3799, __pyx_L3_error)
18553 CYTHON_FALLTHROUGH;
18555 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
18557 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 10); __PYX_ERR(0, 3799, __pyx_L3_error)
18559 CYTHON_FALLTHROUGH;
18561 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
18563 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 11); __PYX_ERR(0, 3799, __pyx_L3_error)
18565 CYTHON_FALLTHROUGH;
18567 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
18569 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 12); __PYX_ERR(0, 3799, __pyx_L3_error)
18571 CYTHON_FALLTHROUGH;
18573 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
18575 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 13); __PYX_ERR(0, 3799, __pyx_L3_error)
18577 CYTHON_FALLTHROUGH;
18579 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian)) != 0)) kw_args--;
18581 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 14); __PYX_ERR(0, 3799, __pyx_L3_error)
18583 CYTHON_FALLTHROUGH;
18585 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
18587 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 15); __PYX_ERR(0, 3799, __pyx_L3_error)
18589 CYTHON_FALLTHROUGH;
18591 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
18593 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 16); __PYX_ERR(0, 3799, __pyx_L3_error)
18596 if (unlikely(kw_args > 0)) {
18597 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense") < 0)) __PYX_ERR(0, 3799, __pyx_L3_error)
18599 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
18600 goto __pyx_L5_argtuple_error;
18602 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18603 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18604 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18605 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18606 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18607 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18608 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18609 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18610 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18611 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18612 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18613 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18614 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18615 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18616 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18617 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18618 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18620 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3799, __pyx_L3_error)
18621 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3800, __pyx_L3_error)
18622 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3801, __pyx_L3_error)
18623 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3802, __pyx_L3_error)
18624 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3803, __pyx_L3_error)
18625 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[5]);
18626 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
18627 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
18628 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[8]);
18629 __pyx_v_freeLocal_r = ((PyArrayObject *)values[9]);
18630 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[10]);
18631 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[11]);
18632 __pyx_v_freeLocal_u = ((PyArrayObject *)values[12]);
18633 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[13]);
18634 __pyx_v_elementBoundaryFluxJacobian = ((PyArrayObject *)values[14]);
18635 __pyx_v_w_dS = ((PyArrayObject *)values[15]);
18636 __pyx_v_jac = ((PyArrayObject *)values[16]);
18638 goto __pyx_L4_argument_unpacking_done;
18639 __pyx_L5_argtuple_error:;
18640 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3799, __pyx_L3_error)
18642 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
18643 __Pyx_RefNannyFinishContext();
18645 __pyx_L4_argument_unpacking_done:;
18646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3804, __pyx_L1_error)
18647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3805, __pyx_L1_error)
18648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3806, __pyx_L1_error)
18649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3807, __pyx_L1_error)
18650 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3808, __pyx_L1_error)
18651 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3809, __pyx_L1_error)
18652 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3810, __pyx_L1_error)
18653 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3811, __pyx_L1_error)
18654 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3812, __pyx_L1_error)
18655 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian", 0))) __PYX_ERR(0, 3813, __pyx_L1_error)
18656 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3814, __pyx_L1_error)
18657 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 3815, __pyx_L1_error)
18658 __pyx_r = __pyx_pf_13cfemIntegrals_162updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementBoundaryFluxJacobian, __pyx_v_w_dS, __pyx_v_jac);
18665 __Pyx_RefNannyFinishContext();
18669 static PyObject *__pyx_pf_13cfemIntegrals_162updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac) {
18670 int __pyx_v_nInteriorElementBoundaries_global;
18671 int __pyx_v_nElementBoundaries_element;
18672 int __pyx_v_nQuadraturePoints_elementBoundary;
18673 int __pyx_v_nDOF_test_element;
18674 int __pyx_v_nDOF_trial_element;
18675 PyObject *__pyx_r = NULL;
18676 __Pyx_RefNannyDeclarations
18677 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense", 0);
18686 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
18695 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
18704 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
18713 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
18722 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian->dimensions[3]);
18731 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
18742 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18743 __Pyx_XGIVEREF(__pyx_r);
18744 __Pyx_RefNannyFinishContext();
18757 static PyObject *__pyx_pw_13cfemIntegrals_165updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18758 static PyMethodDef __pyx_mdef_13cfemIntegrals_165updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_165updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense, METH_VARARGS|METH_KEYWORDS, 0};
18759 static PyObject *__pyx_pw_13cfemIntegrals_165updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18760 PyArrayObject *__pyx_v_elementNeighbors = 0;
18761 int __pyx_v_nElements_global;
18762 int __pyx_v_offset_r;
18763 int __pyx_v_stride_r;
18764 int __pyx_v_offset_u;
18765 int __pyx_v_stride_u;
18766 int __pyx_v_nFreeVDOF_global;
18767 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
18768 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
18769 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
18770 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
18771 PyArrayObject *__pyx_v_freeLocal_r = 0;
18772 PyArrayObject *__pyx_v_freeGlobal_r = 0;
18773 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
18774 PyArrayObject *__pyx_v_freeLocal_u = 0;
18775 PyArrayObject *__pyx_v_freeGlobal_u = 0;
18776 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb = 0;
18777 PyArrayObject *__pyx_v_w_dS = 0;
18778 PyArrayObject *__pyx_v_jac = 0;
18779 int __pyx_lineno = 0;
18780 const char *__pyx_filename = NULL;
18781 int __pyx_clineno = 0;
18782 PyObject *__pyx_r = 0;
18783 __Pyx_RefNannyDeclarations
18784 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense (wrapper)", 0);
18786 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_nElements_global,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementBoundaryFluxJacobian_eb,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
18787 PyObject* values[19] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
18788 if (unlikely(__pyx_kwds)) {
18789 Py_ssize_t kw_args;
18790 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18791 switch (pos_args) {
18792 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18793 CYTHON_FALLTHROUGH;
18794 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18795 CYTHON_FALLTHROUGH;
18796 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18797 CYTHON_FALLTHROUGH;
18798 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18799 CYTHON_FALLTHROUGH;
18800 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18801 CYTHON_FALLTHROUGH;
18802 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18803 CYTHON_FALLTHROUGH;
18804 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18805 CYTHON_FALLTHROUGH;
18806 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18807 CYTHON_FALLTHROUGH;
18808 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18809 CYTHON_FALLTHROUGH;
18810 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18811 CYTHON_FALLTHROUGH;
18812 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18813 CYTHON_FALLTHROUGH;
18814 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18815 CYTHON_FALLTHROUGH;
18816 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18817 CYTHON_FALLTHROUGH;
18818 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18819 CYTHON_FALLTHROUGH;
18820 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18821 CYTHON_FALLTHROUGH;
18822 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18823 CYTHON_FALLTHROUGH;
18824 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18825 CYTHON_FALLTHROUGH;
18826 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18827 CYTHON_FALLTHROUGH;
18828 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18829 CYTHON_FALLTHROUGH;
18831 default:
goto __pyx_L5_argtuple_error;
18833 kw_args = PyDict_Size(__pyx_kwds);
18834 switch (pos_args) {
18836 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
18837 else goto __pyx_L5_argtuple_error;
18838 CYTHON_FALLTHROUGH;
18840 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
18842 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 1); __PYX_ERR(0, 3843, __pyx_L3_error)
18844 CYTHON_FALLTHROUGH;
18846 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
18848 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 2); __PYX_ERR(0, 3843, __pyx_L3_error)
18850 CYTHON_FALLTHROUGH;
18852 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
18854 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 3); __PYX_ERR(0, 3843, __pyx_L3_error)
18856 CYTHON_FALLTHROUGH;
18858 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
18860 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 4); __PYX_ERR(0, 3843, __pyx_L3_error)
18862 CYTHON_FALLTHROUGH;
18864 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
18866 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 5); __PYX_ERR(0, 3843, __pyx_L3_error)
18868 CYTHON_FALLTHROUGH;
18870 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
18872 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 6); __PYX_ERR(0, 3843, __pyx_L3_error)
18874 CYTHON_FALLTHROUGH;
18876 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
18878 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 7); __PYX_ERR(0, 3843, __pyx_L3_error)
18880 CYTHON_FALLTHROUGH;
18882 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
18884 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 8); __PYX_ERR(0, 3843, __pyx_L3_error)
18886 CYTHON_FALLTHROUGH;
18888 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
18890 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 9); __PYX_ERR(0, 3843, __pyx_L3_error)
18892 CYTHON_FALLTHROUGH;
18894 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
18896 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 10); __PYX_ERR(0, 3843, __pyx_L3_error)
18898 CYTHON_FALLTHROUGH;
18900 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
18902 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 11); __PYX_ERR(0, 3843, __pyx_L3_error)
18904 CYTHON_FALLTHROUGH;
18906 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
18908 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 12); __PYX_ERR(0, 3843, __pyx_L3_error)
18910 CYTHON_FALLTHROUGH;
18912 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
18914 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 13); __PYX_ERR(0, 3843, __pyx_L3_error)
18916 CYTHON_FALLTHROUGH;
18918 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
18920 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 14); __PYX_ERR(0, 3843, __pyx_L3_error)
18922 CYTHON_FALLTHROUGH;
18924 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
18926 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 15); __PYX_ERR(0, 3843, __pyx_L3_error)
18928 CYTHON_FALLTHROUGH;
18930 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_eb)) != 0)) kw_args--;
18932 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 16); __PYX_ERR(0, 3843, __pyx_L3_error)
18934 CYTHON_FALLTHROUGH;
18936 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
18938 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 17); __PYX_ERR(0, 3843, __pyx_L3_error)
18940 CYTHON_FALLTHROUGH;
18942 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
18944 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, 18); __PYX_ERR(0, 3843, __pyx_L3_error)
18947 if (unlikely(kw_args > 0)) {
18948 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense") < 0)) __PYX_ERR(0, 3843, __pyx_L3_error)
18950 }
else if (PyTuple_GET_SIZE(__pyx_args) != 19) {
18951 goto __pyx_L5_argtuple_error;
18953 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18954 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18955 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18956 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18957 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18958 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18959 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18960 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18961 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18962 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18963 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18964 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
18965 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
18966 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
18967 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
18968 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
18969 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
18970 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
18971 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
18973 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
18974 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3844, __pyx_L3_error)
18975 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3845, __pyx_L3_error)
18976 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3846, __pyx_L3_error)
18977 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3847, __pyx_L3_error)
18978 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3848, __pyx_L3_error)
18979 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3849, __pyx_L3_error)
18980 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[7]);
18981 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
18982 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
18983 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[10]);
18984 __pyx_v_freeLocal_r = ((PyArrayObject *)values[11]);
18985 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[12]);
18986 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[13]);
18987 __pyx_v_freeLocal_u = ((PyArrayObject *)values[14]);
18988 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[15]);
18989 __pyx_v_elementBoundaryFluxJacobian_eb = ((PyArrayObject *)values[16]);
18990 __pyx_v_w_dS = ((PyArrayObject *)values[17]);
18991 __pyx_v_jac = ((PyArrayObject *)values[18]);
18993 goto __pyx_L4_argument_unpacking_done;
18994 __pyx_L5_argtuple_error:;
18995 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 1, 19, 19, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3843, __pyx_L3_error)
18997 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
18998 __Pyx_RefNannyFinishContext();
19000 __pyx_L4_argument_unpacking_done:;
19001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 3843, __pyx_L1_error)
19002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 3850, __pyx_L1_error)
19003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3851, __pyx_L1_error)
19004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3852, __pyx_L1_error)
19005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3853, __pyx_L1_error)
19006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3854, __pyx_L1_error)
19007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3855, __pyx_L1_error)
19008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3856, __pyx_L1_error)
19009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3857, __pyx_L1_error)
19010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3858, __pyx_L1_error)
19011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_eb", 0))) __PYX_ERR(0, 3859, __pyx_L1_error)
19012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3860, __pyx_L1_error)
19013 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 3861, __pyx_L1_error)
19014 __pyx_r = __pyx_pf_13cfemIntegrals_164updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_nElements_global, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementBoundaryFluxJacobian_eb, __pyx_v_w_dS, __pyx_v_jac);
19021 __Pyx_RefNannyFinishContext();
19025 static PyObject *__pyx_pf_13cfemIntegrals_164updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_nElements_global,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac) {
19026 int __pyx_v_nInteriorElementBoundaries_global;
19027 int __pyx_v_nElementBoundaries_element;
19028 int __pyx_v_nQuadraturePoints_elementBoundary;
19029 int __pyx_v_nDOF_test_element;
19030 int __pyx_v_nDOF_trial_element;
19031 PyObject *__pyx_r = NULL;
19032 __Pyx_RefNannyDeclarations
19033 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense", 0);
19042 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
19051 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
19060 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
19069 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
19078 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]);
19087 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
19098 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19099 __Pyx_XGIVEREF(__pyx_r);
19100 __Pyx_RefNannyFinishContext();
19113 static PyObject *__pyx_pw_13cfemIntegrals_167updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19114 static PyMethodDef __pyx_mdef_13cfemIntegrals_167updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense = {
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_167updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense, METH_VARARGS|METH_KEYWORDS, 0};
19115 static PyObject *__pyx_pw_13cfemIntegrals_167updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19116 int __pyx_v_offset_r;
19117 int __pyx_v_stride_r;
19118 int __pyx_v_offset_u;
19119 int __pyx_v_stride_u;
19120 int __pyx_v_nFreeVDOF_global;
19121 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
19122 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
19123 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
19124 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
19125 PyArrayObject *__pyx_v_freeLocal_r = 0;
19126 PyArrayObject *__pyx_v_freeGlobal_r = 0;
19127 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
19128 PyArrayObject *__pyx_v_freeLocal_u = 0;
19129 PyArrayObject *__pyx_v_freeGlobal_u = 0;
19130 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian = 0;
19131 PyArrayObject *__pyx_v_w_dS = 0;
19132 PyArrayObject *__pyx_v_jac = 0;
19133 int __pyx_lineno = 0;
19134 const char *__pyx_filename = NULL;
19135 int __pyx_clineno = 0;
19136 PyObject *__pyx_r = 0;
19137 __Pyx_RefNannyDeclarations
19138 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense (wrapper)", 0);
19140 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementBoundaryFluxJacobian,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
19141 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19142 if (unlikely(__pyx_kwds)) {
19143 Py_ssize_t kw_args;
19144 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19145 switch (pos_args) {
19146 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19147 CYTHON_FALLTHROUGH;
19148 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19149 CYTHON_FALLTHROUGH;
19150 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19151 CYTHON_FALLTHROUGH;
19152 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19153 CYTHON_FALLTHROUGH;
19154 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19155 CYTHON_FALLTHROUGH;
19156 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19157 CYTHON_FALLTHROUGH;
19158 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19159 CYTHON_FALLTHROUGH;
19160 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19161 CYTHON_FALLTHROUGH;
19162 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19163 CYTHON_FALLTHROUGH;
19164 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19165 CYTHON_FALLTHROUGH;
19166 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19167 CYTHON_FALLTHROUGH;
19168 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19169 CYTHON_FALLTHROUGH;
19170 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19171 CYTHON_FALLTHROUGH;
19172 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19173 CYTHON_FALLTHROUGH;
19174 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19175 CYTHON_FALLTHROUGH;
19176 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19177 CYTHON_FALLTHROUGH;
19178 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19179 CYTHON_FALLTHROUGH;
19181 default:
goto __pyx_L5_argtuple_error;
19183 kw_args = PyDict_Size(__pyx_kwds);
19184 switch (pos_args) {
19186 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
19187 else goto __pyx_L5_argtuple_error;
19188 CYTHON_FALLTHROUGH;
19190 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
19192 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 1); __PYX_ERR(0, 3891, __pyx_L3_error)
19194 CYTHON_FALLTHROUGH;
19196 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
19198 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 2); __PYX_ERR(0, 3891, __pyx_L3_error)
19200 CYTHON_FALLTHROUGH;
19202 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
19204 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 3); __PYX_ERR(0, 3891, __pyx_L3_error)
19206 CYTHON_FALLTHROUGH;
19208 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
19210 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 4); __PYX_ERR(0, 3891, __pyx_L3_error)
19212 CYTHON_FALLTHROUGH;
19214 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
19216 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 5); __PYX_ERR(0, 3891, __pyx_L3_error)
19218 CYTHON_FALLTHROUGH;
19220 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
19222 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 6); __PYX_ERR(0, 3891, __pyx_L3_error)
19224 CYTHON_FALLTHROUGH;
19226 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
19228 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 7); __PYX_ERR(0, 3891, __pyx_L3_error)
19230 CYTHON_FALLTHROUGH;
19232 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
19234 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 8); __PYX_ERR(0, 3891, __pyx_L3_error)
19236 CYTHON_FALLTHROUGH;
19238 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
19240 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 9); __PYX_ERR(0, 3891, __pyx_L3_error)
19242 CYTHON_FALLTHROUGH;
19244 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
19246 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 10); __PYX_ERR(0, 3891, __pyx_L3_error)
19248 CYTHON_FALLTHROUGH;
19250 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
19252 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 11); __PYX_ERR(0, 3891, __pyx_L3_error)
19254 CYTHON_FALLTHROUGH;
19256 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
19258 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 12); __PYX_ERR(0, 3891, __pyx_L3_error)
19260 CYTHON_FALLTHROUGH;
19262 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
19264 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 13); __PYX_ERR(0, 3891, __pyx_L3_error)
19266 CYTHON_FALLTHROUGH;
19268 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian)) != 0)) kw_args--;
19270 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 14); __PYX_ERR(0, 3891, __pyx_L3_error)
19272 CYTHON_FALLTHROUGH;
19274 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
19276 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 15); __PYX_ERR(0, 3891, __pyx_L3_error)
19278 CYTHON_FALLTHROUGH;
19280 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
19282 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, 16); __PYX_ERR(0, 3891, __pyx_L3_error)
19285 if (unlikely(kw_args > 0)) {
19286 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense") < 0)) __PYX_ERR(0, 3891, __pyx_L3_error)
19288 }
else if (PyTuple_GET_SIZE(__pyx_args) != 17) {
19289 goto __pyx_L5_argtuple_error;
19291 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19292 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19293 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19294 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19295 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19296 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19297 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19298 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19299 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19300 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19301 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19302 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19303 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19304 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19305 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19306 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19307 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19309 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3891, __pyx_L3_error)
19310 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3892, __pyx_L3_error)
19311 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3893, __pyx_L3_error)
19312 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3894, __pyx_L3_error)
19313 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3895, __pyx_L3_error)
19314 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
19315 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
19316 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
19317 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[8]);
19318 __pyx_v_freeLocal_r = ((PyArrayObject *)values[9]);
19319 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[10]);
19320 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[11]);
19321 __pyx_v_freeLocal_u = ((PyArrayObject *)values[12]);
19322 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[13]);
19323 __pyx_v_elementBoundaryFluxJacobian = ((PyArrayObject *)values[14]);
19324 __pyx_v_w_dS = ((PyArrayObject *)values[15]);
19325 __pyx_v_jac = ((PyArrayObject *)values[16]);
19327 goto __pyx_L4_argument_unpacking_done;
19328 __pyx_L5_argtuple_error:;
19329 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 1, 17, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3891, __pyx_L3_error)
19331 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
19332 __Pyx_RefNannyFinishContext();
19334 __pyx_L4_argument_unpacking_done:;
19335 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3896, __pyx_L1_error)
19336 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3897, __pyx_L1_error)
19337 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3898, __pyx_L1_error)
19338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3899, __pyx_L1_error)
19339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3900, __pyx_L1_error)
19340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
19341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3902, __pyx_L1_error)
19342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3903, __pyx_L1_error)
19343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3904, __pyx_L1_error)
19344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian", 0))) __PYX_ERR(0, 3905, __pyx_L1_error)
19345 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3906, __pyx_L1_error)
19346 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 3907, __pyx_L1_error)
19347 __pyx_r = __pyx_pf_13cfemIntegrals_166updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementBoundaryFluxJacobian, __pyx_v_w_dS, __pyx_v_jac);
19354 __Pyx_RefNannyFinishContext();
19358 static PyObject *__pyx_pf_13cfemIntegrals_166updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac) {
19360 PyObject *__pyx_r = NULL;
19361 __Pyx_RefNannyDeclarations
19364 int __pyx_lineno = 0;
19365 const char *__pyx_filename = NULL;
19366 int __pyx_clineno = 0;
19367 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", 0);
19376 __pyx_t_1 = __pyx_v_w_dS->nd;
19377 __pyx_v_nd = __pyx_t_1;
19386 __pyx_t_2 = ((__pyx_v_nd > 3) != 0);
19396 #ifndef CYTHON_WITHOUT_ASSERTIONS
19397 if (unlikely(!Py_OptimizeFlag)) {
19398 if (unlikely(!((__pyx_v_elementBoundaryFluxJacobian->nd == 4) != 0))) {
19399 PyErr_SetNone(PyExc_AssertionError);
19400 __PYX_ERR(0, 3910, __pyx_L1_error)
19412 updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_w_dS->dimensions[3]), (__pyx_v_elementBoundaryFluxJacobian->dimensions[3]), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
19432 #ifndef CYTHON_WITHOUT_ASSERTIONS
19433 if (unlikely(!Py_OptimizeFlag)) {
19434 if (unlikely(!((__pyx_v_elementBoundaryFluxJacobian->nd == 3) != 0))) {
19435 PyErr_SetNone(PyExc_AssertionError);
19436 __PYX_ERR(0, 3934, __pyx_L1_error)
19448 updateGlobalJacobianFromGlobalExteriorElementBoundaryFluxJacobian_dense((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_elementBoundaryFluxJacobian->dimensions[2]), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
19461 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19464 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
19467 __Pyx_XGIVEREF(__pyx_r);
19468 __Pyx_RefNannyFinishContext();
19481 static PyObject *__pyx_pw_13cfemIntegrals_169updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19482 static PyMethodDef __pyx_mdef_13cfemIntegrals_169updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense = {
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_169updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense, METH_VARARGS|METH_KEYWORDS, 0};
19483 static PyObject *__pyx_pw_13cfemIntegrals_169updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19484 PyArrayObject *__pyx_v_elementNeighbors = 0;
19485 int __pyx_v_nElements_global;
19486 CYTHON_UNUSED
int __pyx_v_nExteriorElementBoundaries_global;
19487 CYTHON_UNUSED
int __pyx_v_nElementBoundaries_element;
19488 CYTHON_UNUSED
int __pyx_v_nQuadraturePoints_elementBoundary;
19489 CYTHON_UNUSED
int __pyx_v_nDOF_test_element;
19490 CYTHON_UNUSED
int __pyx_v_nDOF_trial_element;
19491 int __pyx_v_offset_r;
19492 int __pyx_v_stride_r;
19493 int __pyx_v_offset_u;
19494 int __pyx_v_stride_u;
19495 int __pyx_v_nFreeVDOF_global;
19496 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
19497 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
19498 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
19499 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
19500 PyArrayObject *__pyx_v_freeLocal_r = 0;
19501 PyArrayObject *__pyx_v_freeGlobal_r = 0;
19502 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
19503 PyArrayObject *__pyx_v_freeLocal_u = 0;
19504 PyArrayObject *__pyx_v_freeGlobal_u = 0;
19505 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb = 0;
19506 PyArrayObject *__pyx_v_w_dS = 0;
19507 PyArrayObject *__pyx_v_jac = 0;
19508 int __pyx_lineno = 0;
19509 const char *__pyx_filename = NULL;
19510 int __pyx_clineno = 0;
19511 PyObject *__pyx_r = 0;
19512 __Pyx_RefNannyDeclarations
19513 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense (wrapper)", 0);
19515 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_nElements_global,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nDOF_test_element,&__pyx_n_s_nDOF_trial_element,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_elementBoundaryFluxJacobian_eb,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
19516 PyObject* values[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
19517 if (unlikely(__pyx_kwds)) {
19518 Py_ssize_t kw_args;
19519 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19520 switch (pos_args) {
19521 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19522 CYTHON_FALLTHROUGH;
19523 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19524 CYTHON_FALLTHROUGH;
19525 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19526 CYTHON_FALLTHROUGH;
19527 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19528 CYTHON_FALLTHROUGH;
19529 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19530 CYTHON_FALLTHROUGH;
19531 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19532 CYTHON_FALLTHROUGH;
19533 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19534 CYTHON_FALLTHROUGH;
19535 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19536 CYTHON_FALLTHROUGH;
19537 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19538 CYTHON_FALLTHROUGH;
19539 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19540 CYTHON_FALLTHROUGH;
19541 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19542 CYTHON_FALLTHROUGH;
19543 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19544 CYTHON_FALLTHROUGH;
19545 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19546 CYTHON_FALLTHROUGH;
19547 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19548 CYTHON_FALLTHROUGH;
19549 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19550 CYTHON_FALLTHROUGH;
19551 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19552 CYTHON_FALLTHROUGH;
19553 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19554 CYTHON_FALLTHROUGH;
19555 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19556 CYTHON_FALLTHROUGH;
19557 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19558 CYTHON_FALLTHROUGH;
19559 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19560 CYTHON_FALLTHROUGH;
19561 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19562 CYTHON_FALLTHROUGH;
19563 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19564 CYTHON_FALLTHROUGH;
19565 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19566 CYTHON_FALLTHROUGH;
19567 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19568 CYTHON_FALLTHROUGH;
19570 default:
goto __pyx_L5_argtuple_error;
19572 kw_args = PyDict_Size(__pyx_kwds);
19573 switch (pos_args) {
19575 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
19576 else goto __pyx_L5_argtuple_error;
19577 CYTHON_FALLTHROUGH;
19579 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
19581 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 1); __PYX_ERR(0, 3956, __pyx_L3_error)
19583 CYTHON_FALLTHROUGH;
19585 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
19587 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 2); __PYX_ERR(0, 3956, __pyx_L3_error)
19589 CYTHON_FALLTHROUGH;
19591 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
19593 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 3); __PYX_ERR(0, 3956, __pyx_L3_error)
19595 CYTHON_FALLTHROUGH;
19597 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
19599 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 4); __PYX_ERR(0, 3956, __pyx_L3_error)
19601 CYTHON_FALLTHROUGH;
19603 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_test_element)) != 0)) kw_args--;
19605 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 5); __PYX_ERR(0, 3956, __pyx_L3_error)
19607 CYTHON_FALLTHROUGH;
19609 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF_trial_element)) != 0)) kw_args--;
19611 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 6); __PYX_ERR(0, 3956, __pyx_L3_error)
19613 CYTHON_FALLTHROUGH;
19615 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
19617 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 7); __PYX_ERR(0, 3956, __pyx_L3_error)
19619 CYTHON_FALLTHROUGH;
19621 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
19623 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 8); __PYX_ERR(0, 3956, __pyx_L3_error)
19625 CYTHON_FALLTHROUGH;
19627 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
19629 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 9); __PYX_ERR(0, 3956, __pyx_L3_error)
19631 CYTHON_FALLTHROUGH;
19633 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
19635 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 10); __PYX_ERR(0, 3956, __pyx_L3_error)
19637 CYTHON_FALLTHROUGH;
19639 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
19641 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 11); __PYX_ERR(0, 3956, __pyx_L3_error)
19643 CYTHON_FALLTHROUGH;
19645 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
19647 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 12); __PYX_ERR(0, 3956, __pyx_L3_error)
19649 CYTHON_FALLTHROUGH;
19651 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
19653 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 13); __PYX_ERR(0, 3956, __pyx_L3_error)
19655 CYTHON_FALLTHROUGH;
19657 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
19659 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 14); __PYX_ERR(0, 3956, __pyx_L3_error)
19661 CYTHON_FALLTHROUGH;
19663 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
19665 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 15); __PYX_ERR(0, 3956, __pyx_L3_error)
19667 CYTHON_FALLTHROUGH;
19669 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
19671 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 16); __PYX_ERR(0, 3956, __pyx_L3_error)
19673 CYTHON_FALLTHROUGH;
19675 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
19677 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 17); __PYX_ERR(0, 3956, __pyx_L3_error)
19679 CYTHON_FALLTHROUGH;
19681 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
19683 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 18); __PYX_ERR(0, 3956, __pyx_L3_error)
19685 CYTHON_FALLTHROUGH;
19687 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
19689 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 19); __PYX_ERR(0, 3956, __pyx_L3_error)
19691 CYTHON_FALLTHROUGH;
19693 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
19695 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 20); __PYX_ERR(0, 3956, __pyx_L3_error)
19697 CYTHON_FALLTHROUGH;
19699 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_eb)) != 0)) kw_args--;
19701 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 21); __PYX_ERR(0, 3956, __pyx_L3_error)
19703 CYTHON_FALLTHROUGH;
19705 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
19707 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 22); __PYX_ERR(0, 3956, __pyx_L3_error)
19709 CYTHON_FALLTHROUGH;
19711 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
19713 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, 23); __PYX_ERR(0, 3956, __pyx_L3_error)
19716 if (unlikely(kw_args > 0)) {
19717 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense") < 0)) __PYX_ERR(0, 3956, __pyx_L3_error)
19719 }
else if (PyTuple_GET_SIZE(__pyx_args) != 24) {
19720 goto __pyx_L5_argtuple_error;
19722 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19723 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19724 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19725 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19726 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19727 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19728 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19729 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19730 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
19731 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
19732 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
19733 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
19734 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
19735 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
19736 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
19737 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
19738 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
19739 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
19740 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
19741 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
19742 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
19743 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
19744 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
19745 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
19747 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
19748 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3957, __pyx_L3_error)
19749 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3958, __pyx_L3_error)
19750 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3959, __pyx_L3_error)
19751 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3960, __pyx_L3_error)
19752 __pyx_v_nDOF_test_element = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nDOF_test_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3961, __pyx_L3_error)
19753 __pyx_v_nDOF_trial_element = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nDOF_trial_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3962, __pyx_L3_error)
19754 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[7]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3963, __pyx_L3_error)
19755 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[8]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3964, __pyx_L3_error)
19756 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[9]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3965, __pyx_L3_error)
19757 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[10]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3966, __pyx_L3_error)
19758 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[11]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3967, __pyx_L3_error)
19759 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[12]);
19760 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[13]);
19761 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[14]);
19762 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[15]);
19763 __pyx_v_freeLocal_r = ((PyArrayObject *)values[16]);
19764 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[17]);
19765 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[18]);
19766 __pyx_v_freeLocal_u = ((PyArrayObject *)values[19]);
19767 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[20]);
19768 __pyx_v_elementBoundaryFluxJacobian_eb = ((PyArrayObject *)values[21]);
19769 __pyx_v_w_dS = ((PyArrayObject *)values[22]);
19770 __pyx_v_jac = ((PyArrayObject *)values[23]);
19772 goto __pyx_L4_argument_unpacking_done;
19773 __pyx_L5_argtuple_error:;
19774 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 1, 24, 24, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3956, __pyx_L3_error)
19776 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
19777 __Pyx_RefNannyFinishContext();
19779 __pyx_L4_argument_unpacking_done:;
19780 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 3956, __pyx_L1_error)
19781 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 3968, __pyx_L1_error)
19782 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 3969, __pyx_L1_error)
19783 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 3970, __pyx_L1_error)
19784 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 3971, __pyx_L1_error)
19785 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 3972, __pyx_L1_error)
19786 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 3973, __pyx_L1_error)
19787 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 3974, __pyx_L1_error)
19788 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 3975, __pyx_L1_error)
19789 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 3976, __pyx_L1_error)
19790 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_eb", 0))) __PYX_ERR(0, 3977, __pyx_L1_error)
19791 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 3978, __pyx_L1_error)
19792 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 3979, __pyx_L1_error)
19793 __pyx_r = __pyx_pf_13cfemIntegrals_168updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_nElements_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_elementBoundaryFluxJacobian_eb, __pyx_v_w_dS, __pyx_v_jac);
19800 __Pyx_RefNannyFinishContext();
19804 static PyObject *__pyx_pf_13cfemIntegrals_168updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors,
int __pyx_v_nElements_global, CYTHON_UNUSED
int __pyx_v_nExteriorElementBoundaries_global, CYTHON_UNUSED
int __pyx_v_nElementBoundaries_element, CYTHON_UNUSED
int __pyx_v_nQuadraturePoints_elementBoundary, CYTHON_UNUSED
int __pyx_v_nDOF_test_element, CYTHON_UNUSED
int __pyx_v_nDOF_trial_element,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_jac) {
19805 PyObject *__pyx_r = NULL;
19806 __Pyx_RefNannyDeclarations
19808 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense", 0);
19817 __pyx_t_1 = ((__pyx_v_w_dS->nd > 3) != 0);
19827 updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nElements_global, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_w_dS->dimensions[3]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
19855 updateGlobalJacobianFromGlobalExteriorElementBoundaryFluxJacobian_eb_dense(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nElements_global, (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[2]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac->data));
19868 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19869 __Pyx_XGIVEREF(__pyx_r);
19870 __Pyx_RefNannyFinishContext();
19883 static PyObject *__pyx_pw_13cfemIntegrals_171updateGlobalJacobianFromElementJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19884 static PyMethodDef __pyx_mdef_13cfemIntegrals_171updateGlobalJacobianFromElementJacobian_CSR = {
"updateGlobalJacobianFromElementJacobian_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_171updateGlobalJacobianFromElementJacobian_CSR, METH_VARARGS|METH_KEYWORDS, 0};
19885 static PyObject *__pyx_pw_13cfemIntegrals_171updateGlobalJacobianFromElementJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19886 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
19887 PyArrayObject *__pyx_v_freeLocal_r = 0;
19888 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
19889 PyArrayObject *__pyx_v_freeLocal_u = 0;
19890 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
19891 PyArrayObject *__pyx_v_csrColumnOffsets_ru = 0;
19892 PyArrayObject *__pyx_v_elementJacobian = 0;
19893 PyObject *__pyx_v_globalJacobian = 0;
19894 int __pyx_lineno = 0;
19895 const char *__pyx_filename = NULL;
19896 int __pyx_clineno = 0;
19897 PyObject *__pyx_r = 0;
19898 __Pyx_RefNannyDeclarations
19899 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_CSR (wrapper)", 0);
19901 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_ru,&__pyx_n_s_elementJacobian,&__pyx_n_s_globalJacobian,0};
19902 PyObject* values[8] = {0,0,0,0,0,0,0,0};
19903 if (unlikely(__pyx_kwds)) {
19904 Py_ssize_t kw_args;
19905 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19906 switch (pos_args) {
19907 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19908 CYTHON_FALLTHROUGH;
19909 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19910 CYTHON_FALLTHROUGH;
19911 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19912 CYTHON_FALLTHROUGH;
19913 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19914 CYTHON_FALLTHROUGH;
19915 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19916 CYTHON_FALLTHROUGH;
19917 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19918 CYTHON_FALLTHROUGH;
19919 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19920 CYTHON_FALLTHROUGH;
19921 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19922 CYTHON_FALLTHROUGH;
19924 default:
goto __pyx_L5_argtuple_error;
19926 kw_args = PyDict_Size(__pyx_kwds);
19927 switch (pos_args) {
19929 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
19930 else goto __pyx_L5_argtuple_error;
19931 CYTHON_FALLTHROUGH;
19933 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
19935 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 1); __PYX_ERR(0, 4030, __pyx_L3_error)
19937 CYTHON_FALLTHROUGH;
19939 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
19941 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 2); __PYX_ERR(0, 4030, __pyx_L3_error)
19943 CYTHON_FALLTHROUGH;
19945 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
19947 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 3); __PYX_ERR(0, 4030, __pyx_L3_error)
19949 CYTHON_FALLTHROUGH;
19951 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
19953 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 4); __PYX_ERR(0, 4030, __pyx_L3_error)
19955 CYTHON_FALLTHROUGH;
19957 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_ru)) != 0)) kw_args--;
19959 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 5); __PYX_ERR(0, 4030, __pyx_L3_error)
19961 CYTHON_FALLTHROUGH;
19963 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementJacobian)) != 0)) kw_args--;
19965 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 6); __PYX_ERR(0, 4030, __pyx_L3_error)
19967 CYTHON_FALLTHROUGH;
19969 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalJacobian)) != 0)) kw_args--;
19971 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, 7); __PYX_ERR(0, 4030, __pyx_L3_error)
19974 if (unlikely(kw_args > 0)) {
19975 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromElementJacobian_CSR") < 0)) __PYX_ERR(0, 4030, __pyx_L3_error)
19977 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
19978 goto __pyx_L5_argtuple_error;
19980 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19981 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19982 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19983 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
19984 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
19985 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
19986 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
19987 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
19989 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[0]);
19990 __pyx_v_freeLocal_r = ((PyArrayObject *)values[1]);
19991 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[2]);
19992 __pyx_v_freeLocal_u = ((PyArrayObject *)values[3]);
19993 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[4]);
19994 __pyx_v_csrColumnOffsets_ru = ((PyArrayObject *)values[5]);
19995 __pyx_v_elementJacobian = ((PyArrayObject *)values[6]);
19996 __pyx_v_globalJacobian = values[7];
19998 goto __pyx_L4_argument_unpacking_done;
19999 __pyx_L5_argtuple_error:;
20000 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_CSR", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4030, __pyx_L3_error)
20002 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20003 __Pyx_RefNannyFinishContext();
20005 __pyx_L4_argument_unpacking_done:;
20006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4030, __pyx_L1_error)
20007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4031, __pyx_L1_error)
20008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4032, __pyx_L1_error)
20009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4033, __pyx_L1_error)
20010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4034, __pyx_L1_error)
20011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_ru", 0))) __PYX_ERR(0, 4035, __pyx_L1_error)
20012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementJacobian", 0))) __PYX_ERR(0, 4036, __pyx_L1_error)
20013 __pyx_r = __pyx_pf_13cfemIntegrals_170updateGlobalJacobianFromElementJacobian_CSR(__pyx_self, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_ru, __pyx_v_elementJacobian, __pyx_v_globalJacobian);
20020 __Pyx_RefNannyFinishContext();
20024 static PyObject *__pyx_pf_13cfemIntegrals_170updateGlobalJacobianFromElementJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_ru, PyArrayObject *__pyx_v_elementJacobian, PyObject *__pyx_v_globalJacobian) {
20025 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
20026 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
20027 PyArrayObject *__pyx_v_globalJacobian_array = 0;
20028 int __pyx_v_nElements_global;
20029 int __pyx_v_nDOF_test_element;
20030 int __pyx_v_nDOF_trial_element;
20031 PyObject *__pyx_r = NULL;
20032 __Pyx_RefNannyDeclarations
20033 PyObject *__pyx_t_1 = NULL;
20034 PyObject *__pyx_t_2 = NULL;
20035 PyObject *__pyx_t_3 = NULL;
20036 PyObject *__pyx_t_4 = NULL;
20037 PyObject *__pyx_t_5 = NULL;
20038 PyObject *(*__pyx_t_6)(PyObject *);
20039 int __pyx_lineno = 0;
20040 const char *__pyx_filename = NULL;
20041 int __pyx_clineno = 0;
20042 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_CSR", 0);
20051 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_globalJacobian, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4039, __pyx_L1_error)
20052 __Pyx_GOTREF(__pyx_t_2);
20054 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
20055 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
20056 if (likely(__pyx_t_3)) {
20057 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20058 __Pyx_INCREF(__pyx_t_3);
20059 __Pyx_INCREF(
function);
20060 __Pyx_DECREF_SET(__pyx_t_2,
function);
20063 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
20064 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20065 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4039, __pyx_L1_error)
20066 __Pyx_GOTREF(__pyx_t_1);
20067 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20068 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
20069 PyObject* sequence = __pyx_t_1;
20070 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
20071 if (unlikely(size != 3)) {
20072 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
20073 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
20074 __PYX_ERR(0, 4039, __pyx_L1_error)
20076 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
20077 if (likely(PyTuple_CheckExact(sequence))) {
20078 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
20079 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
20080 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
20082 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
20083 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
20084 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
20086 __Pyx_INCREF(__pyx_t_2);
20087 __Pyx_INCREF(__pyx_t_3);
20088 __Pyx_INCREF(__pyx_t_4);
20090 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4039, __pyx_L1_error)
20091 __Pyx_GOTREF(__pyx_t_2);
20092 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4039, __pyx_L1_error)
20093 __Pyx_GOTREF(__pyx_t_3);
20094 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4039, __pyx_L1_error)
20095 __Pyx_GOTREF(__pyx_t_4);
20097 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20099 Py_ssize_t index = -1;
20100 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4039, __pyx_L1_error)
20101 __Pyx_GOTREF(__pyx_t_5);
20102 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20103 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
20104 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
20105 __Pyx_GOTREF(__pyx_t_2);
20106 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
20107 __Pyx_GOTREF(__pyx_t_3);
20108 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
20109 __Pyx_GOTREF(__pyx_t_4);
20110 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4039, __pyx_L1_error)
20112 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20113 goto __pyx_L4_unpacking_done;
20114 __pyx_L3_unpacking_failed:;
20115 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20117 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
20118 __PYX_ERR(0, 4039, __pyx_L1_error)
20119 __pyx_L4_unpacking_done:;
20121 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4039, __pyx_L1_error)
20122 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4039, __pyx_L1_error)
20123 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4039, __pyx_L1_error)
20124 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
20126 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
20128 __pyx_v_globalJacobian_array = ((PyArrayObject *)__pyx_t_4);
20138 __pyx_v_nElements_global = (__pyx_v_elementJacobian->dimensions[0]);
20147 __pyx_v_nDOF_test_element = (__pyx_v_elementJacobian->dimensions[1]);
20156 __pyx_v_nDOF_trial_element = (__pyx_v_elementJacobian->dimensions[2]);
20165 updateGlobalJacobianFromElementJacobian_CSR(__pyx_v_nElements_global, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_ru->data), ((
double *)__pyx_v_elementJacobian->data), ((
double *)__pyx_v_globalJacobian_array->data));
20176 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20179 __Pyx_XDECREF(__pyx_t_1);
20180 __Pyx_XDECREF(__pyx_t_2);
20181 __Pyx_XDECREF(__pyx_t_3);
20182 __Pyx_XDECREF(__pyx_t_4);
20183 __Pyx_XDECREF(__pyx_t_5);
20184 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20187 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
20188 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
20189 __Pyx_XDECREF((PyObject *)__pyx_v_globalJacobian_array);
20190 __Pyx_XGIVEREF(__pyx_r);
20191 __Pyx_RefNannyFinishContext();
20204 static PyObject *__pyx_pw_13cfemIntegrals_173updateGlobalJacobianFromElementJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20205 static PyMethodDef __pyx_mdef_13cfemIntegrals_173updateGlobalJacobianFromElementJacobian_eb_CSR = {
"updateGlobalJacobianFromElementJacobian_eb_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_173updateGlobalJacobianFromElementJacobian_eb_CSR, METH_VARARGS|METH_KEYWORDS, 0};
20206 static PyObject *__pyx_pw_13cfemIntegrals_173updateGlobalJacobianFromElementJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20207 PyArrayObject *__pyx_v_elementNeighbors = 0;
20208 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
20209 PyArrayObject *__pyx_v_freeLocal_r = 0;
20210 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
20211 PyArrayObject *__pyx_v_freeLocal_u = 0;
20212 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
20213 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
20214 PyArrayObject *__pyx_v_elementJacobian_eb = 0;
20215 PyObject *__pyx_v_globalJacobian = 0;
20216 int __pyx_lineno = 0;
20217 const char *__pyx_filename = NULL;
20218 int __pyx_clineno = 0;
20219 PyObject *__pyx_r = 0;
20220 __Pyx_RefNannyDeclarations
20221 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_eb_CSR (wrapper)", 0);
20223 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_elementJacobian_eb,&__pyx_n_s_globalJacobian,0};
20224 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
20225 if (unlikely(__pyx_kwds)) {
20226 Py_ssize_t kw_args;
20227 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20228 switch (pos_args) {
20229 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20230 CYTHON_FALLTHROUGH;
20231 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20232 CYTHON_FALLTHROUGH;
20233 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20234 CYTHON_FALLTHROUGH;
20235 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20236 CYTHON_FALLTHROUGH;
20237 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20238 CYTHON_FALLTHROUGH;
20239 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20240 CYTHON_FALLTHROUGH;
20241 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20242 CYTHON_FALLTHROUGH;
20243 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20244 CYTHON_FALLTHROUGH;
20245 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20246 CYTHON_FALLTHROUGH;
20248 default:
goto __pyx_L5_argtuple_error;
20250 kw_args = PyDict_Size(__pyx_kwds);
20251 switch (pos_args) {
20253 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
20254 else goto __pyx_L5_argtuple_error;
20255 CYTHON_FALLTHROUGH;
20257 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
20259 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 1); __PYX_ERR(0, 4054, __pyx_L3_error)
20261 CYTHON_FALLTHROUGH;
20263 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
20265 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 2); __PYX_ERR(0, 4054, __pyx_L3_error)
20267 CYTHON_FALLTHROUGH;
20269 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
20271 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 3); __PYX_ERR(0, 4054, __pyx_L3_error)
20273 CYTHON_FALLTHROUGH;
20275 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
20277 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 4); __PYX_ERR(0, 4054, __pyx_L3_error)
20279 CYTHON_FALLTHROUGH;
20281 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
20283 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 5); __PYX_ERR(0, 4054, __pyx_L3_error)
20285 CYTHON_FALLTHROUGH;
20287 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
20289 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 6); __PYX_ERR(0, 4054, __pyx_L3_error)
20291 CYTHON_FALLTHROUGH;
20293 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementJacobian_eb)) != 0)) kw_args--;
20295 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 7); __PYX_ERR(0, 4054, __pyx_L3_error)
20297 CYTHON_FALLTHROUGH;
20299 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalJacobian)) != 0)) kw_args--;
20301 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, 8); __PYX_ERR(0, 4054, __pyx_L3_error)
20304 if (unlikely(kw_args > 0)) {
20305 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromElementJacobian_eb_CSR") < 0)) __PYX_ERR(0, 4054, __pyx_L3_error)
20307 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
20308 goto __pyx_L5_argtuple_error;
20310 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20311 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20312 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20313 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20314 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20315 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20316 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20317 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20318 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20320 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
20321 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[1]);
20322 __pyx_v_freeLocal_r = ((PyArrayObject *)values[2]);
20323 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[3]);
20324 __pyx_v_freeLocal_u = ((PyArrayObject *)values[4]);
20325 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[5]);
20326 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[6]);
20327 __pyx_v_elementJacobian_eb = ((PyArrayObject *)values[7]);
20328 __pyx_v_globalJacobian = values[8];
20330 goto __pyx_L4_argument_unpacking_done;
20331 __pyx_L5_argtuple_error:;
20332 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4054, __pyx_L3_error)
20334 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20335 __Pyx_RefNannyFinishContext();
20337 __pyx_L4_argument_unpacking_done:;
20338 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 4054, __pyx_L1_error)
20339 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4055, __pyx_L1_error)
20340 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4056, __pyx_L1_error)
20341 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4057, __pyx_L1_error)
20342 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4058, __pyx_L1_error)
20343 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4059, __pyx_L1_error)
20344 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 4060, __pyx_L1_error)
20345 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementJacobian_eb", 0))) __PYX_ERR(0, 4061, __pyx_L1_error)
20346 __pyx_r = __pyx_pf_13cfemIntegrals_172updateGlobalJacobianFromElementJacobian_eb_CSR(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_elementJacobian_eb, __pyx_v_globalJacobian);
20353 __Pyx_RefNannyFinishContext();
20357 static PyObject *__pyx_pf_13cfemIntegrals_172updateGlobalJacobianFromElementJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementJacobian_eb, PyObject *__pyx_v_globalJacobian) {
20358 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
20359 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
20360 PyArrayObject *__pyx_v_globalJacobian_array = 0;
20361 int __pyx_v_nElements_global;
20362 int __pyx_v_nElementBoundaries_element;
20363 int __pyx_v_nDOF_test_element;
20364 int __pyx_v_nDOF_trial_element;
20365 PyObject *__pyx_r = NULL;
20366 __Pyx_RefNannyDeclarations
20367 PyObject *__pyx_t_1 = NULL;
20368 PyObject *__pyx_t_2 = NULL;
20369 PyObject *__pyx_t_3 = NULL;
20370 PyObject *__pyx_t_4 = NULL;
20371 PyObject *__pyx_t_5 = NULL;
20372 PyObject *(*__pyx_t_6)(PyObject *);
20373 int __pyx_lineno = 0;
20374 const char *__pyx_filename = NULL;
20375 int __pyx_clineno = 0;
20376 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromElementJacobian_eb_CSR", 0);
20385 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_globalJacobian, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4064, __pyx_L1_error)
20386 __Pyx_GOTREF(__pyx_t_2);
20388 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
20389 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
20390 if (likely(__pyx_t_3)) {
20391 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20392 __Pyx_INCREF(__pyx_t_3);
20393 __Pyx_INCREF(
function);
20394 __Pyx_DECREF_SET(__pyx_t_2,
function);
20397 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
20398 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20399 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4064, __pyx_L1_error)
20400 __Pyx_GOTREF(__pyx_t_1);
20401 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20402 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
20403 PyObject* sequence = __pyx_t_1;
20404 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
20405 if (unlikely(size != 3)) {
20406 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
20407 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
20408 __PYX_ERR(0, 4064, __pyx_L1_error)
20410 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
20411 if (likely(PyTuple_CheckExact(sequence))) {
20412 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
20413 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
20414 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
20416 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
20417 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
20418 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
20420 __Pyx_INCREF(__pyx_t_2);
20421 __Pyx_INCREF(__pyx_t_3);
20422 __Pyx_INCREF(__pyx_t_4);
20424 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4064, __pyx_L1_error)
20425 __Pyx_GOTREF(__pyx_t_2);
20426 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4064, __pyx_L1_error)
20427 __Pyx_GOTREF(__pyx_t_3);
20428 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4064, __pyx_L1_error)
20429 __Pyx_GOTREF(__pyx_t_4);
20431 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20433 Py_ssize_t index = -1;
20434 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4064, __pyx_L1_error)
20435 __Pyx_GOTREF(__pyx_t_5);
20436 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20437 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
20438 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
20439 __Pyx_GOTREF(__pyx_t_2);
20440 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
20441 __Pyx_GOTREF(__pyx_t_3);
20442 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
20443 __Pyx_GOTREF(__pyx_t_4);
20444 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4064, __pyx_L1_error)
20446 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20447 goto __pyx_L4_unpacking_done;
20448 __pyx_L3_unpacking_failed:;
20449 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20451 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
20452 __PYX_ERR(0, 4064, __pyx_L1_error)
20453 __pyx_L4_unpacking_done:;
20455 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4064, __pyx_L1_error)
20456 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4064, __pyx_L1_error)
20457 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4064, __pyx_L1_error)
20458 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
20460 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
20462 __pyx_v_globalJacobian_array = ((PyArrayObject *)__pyx_t_4);
20472 __pyx_v_nElements_global = (__pyx_v_elementJacobian_eb->dimensions[0]);
20481 __pyx_v_nElementBoundaries_element = (__pyx_v_elementJacobian_eb->dimensions[1]);
20490 __pyx_v_nDOF_test_element = (__pyx_v_elementJacobian_eb->dimensions[2]);
20499 __pyx_v_nDOF_trial_element = (__pyx_v_elementJacobian_eb->dimensions[3]);
20508 updateGlobalJacobianFromElementJacobian_eb_CSR(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
double *)__pyx_v_elementJacobian_eb->data), ((
double *)__pyx_v_globalJacobian_array->data));
20519 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20522 __Pyx_XDECREF(__pyx_t_1);
20523 __Pyx_XDECREF(__pyx_t_2);
20524 __Pyx_XDECREF(__pyx_t_3);
20525 __Pyx_XDECREF(__pyx_t_4);
20526 __Pyx_XDECREF(__pyx_t_5);
20527 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromElementJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20530 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
20531 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
20532 __Pyx_XDECREF((PyObject *)__pyx_v_globalJacobian_array);
20533 __Pyx_XGIVEREF(__pyx_r);
20534 __Pyx_RefNannyFinishContext();
20547 static PyObject *__pyx_pw_13cfemIntegrals_175updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20548 static PyMethodDef __pyx_mdef_13cfemIntegrals_175updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_175updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR, METH_VARARGS|METH_KEYWORDS, 0};
20549 static PyObject *__pyx_pw_13cfemIntegrals_175updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20550 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
20551 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
20552 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
20553 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
20554 PyArrayObject *__pyx_v_freeLocal_r = 0;
20555 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
20556 PyArrayObject *__pyx_v_freeLocal_u = 0;
20557 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
20558 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
20559 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian = 0;
20560 PyArrayObject *__pyx_v_w_dS = 0;
20561 PyObject *__pyx_v_jac = 0;
20562 int __pyx_lineno = 0;
20563 const char *__pyx_filename = NULL;
20564 int __pyx_clineno = 0;
20565 PyObject *__pyx_r = 0;
20566 __Pyx_RefNannyDeclarations
20567 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR (wrapper)", 0);
20569 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_elementBoundaryFluxJacobian,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
20570 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
20571 if (unlikely(__pyx_kwds)) {
20572 Py_ssize_t kw_args;
20573 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20574 switch (pos_args) {
20575 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20576 CYTHON_FALLTHROUGH;
20577 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20578 CYTHON_FALLTHROUGH;
20579 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20580 CYTHON_FALLTHROUGH;
20581 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20582 CYTHON_FALLTHROUGH;
20583 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20584 CYTHON_FALLTHROUGH;
20585 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20586 CYTHON_FALLTHROUGH;
20587 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20588 CYTHON_FALLTHROUGH;
20589 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20590 CYTHON_FALLTHROUGH;
20591 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20592 CYTHON_FALLTHROUGH;
20593 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20594 CYTHON_FALLTHROUGH;
20595 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20596 CYTHON_FALLTHROUGH;
20597 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20598 CYTHON_FALLTHROUGH;
20600 default:
goto __pyx_L5_argtuple_error;
20602 kw_args = PyDict_Size(__pyx_kwds);
20603 switch (pos_args) {
20605 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
20606 else goto __pyx_L5_argtuple_error;
20607 CYTHON_FALLTHROUGH;
20609 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
20611 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 1); __PYX_ERR(0, 4082, __pyx_L3_error)
20613 CYTHON_FALLTHROUGH;
20615 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
20617 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 2); __PYX_ERR(0, 4082, __pyx_L3_error)
20619 CYTHON_FALLTHROUGH;
20621 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
20623 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 3); __PYX_ERR(0, 4082, __pyx_L3_error)
20625 CYTHON_FALLTHROUGH;
20627 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
20629 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 4); __PYX_ERR(0, 4082, __pyx_L3_error)
20631 CYTHON_FALLTHROUGH;
20633 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
20635 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 5); __PYX_ERR(0, 4082, __pyx_L3_error)
20637 CYTHON_FALLTHROUGH;
20639 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
20641 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 6); __PYX_ERR(0, 4082, __pyx_L3_error)
20643 CYTHON_FALLTHROUGH;
20645 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
20647 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 7); __PYX_ERR(0, 4082, __pyx_L3_error)
20649 CYTHON_FALLTHROUGH;
20651 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
20653 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 8); __PYX_ERR(0, 4082, __pyx_L3_error)
20655 CYTHON_FALLTHROUGH;
20657 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian)) != 0)) kw_args--;
20659 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 9); __PYX_ERR(0, 4082, __pyx_L3_error)
20661 CYTHON_FALLTHROUGH;
20663 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
20665 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 10); __PYX_ERR(0, 4082, __pyx_L3_error)
20667 CYTHON_FALLTHROUGH;
20669 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
20671 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 11); __PYX_ERR(0, 4082, __pyx_L3_error)
20674 if (unlikely(kw_args > 0)) {
20675 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR") < 0)) __PYX_ERR(0, 4082, __pyx_L3_error)
20677 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
20678 goto __pyx_L5_argtuple_error;
20680 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20681 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20682 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20683 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20684 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20685 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20686 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20687 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20688 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20689 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20690 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20691 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20693 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
20694 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
20695 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
20696 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[3]);
20697 __pyx_v_freeLocal_r = ((PyArrayObject *)values[4]);
20698 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[5]);
20699 __pyx_v_freeLocal_u = ((PyArrayObject *)values[6]);
20700 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[7]);
20701 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[8]);
20702 __pyx_v_elementBoundaryFluxJacobian = ((PyArrayObject *)values[9]);
20703 __pyx_v_w_dS = ((PyArrayObject *)values[10]);
20704 __pyx_v_jac = values[11];
20706 goto __pyx_L4_argument_unpacking_done;
20707 __pyx_L5_argtuple_error:;
20708 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4082, __pyx_L3_error)
20710 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20711 __Pyx_RefNannyFinishContext();
20713 __pyx_L4_argument_unpacking_done:;
20714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4082, __pyx_L1_error)
20715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4083, __pyx_L1_error)
20716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4084, __pyx_L1_error)
20717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4085, __pyx_L1_error)
20718 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4086, __pyx_L1_error)
20719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4087, __pyx_L1_error)
20720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4088, __pyx_L1_error)
20721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4089, __pyx_L1_error)
20722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 4090, __pyx_L1_error)
20723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian", 0))) __PYX_ERR(0, 4091, __pyx_L1_error)
20724 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4092, __pyx_L1_error)
20725 __pyx_r = __pyx_pf_13cfemIntegrals_174updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_elementBoundaryFluxJacobian, __pyx_v_w_dS, __pyx_v_jac);
20732 __Pyx_RefNannyFinishContext();
20736 static PyObject *__pyx_pf_13cfemIntegrals_174updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac) {
20737 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
20738 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
20739 PyArrayObject *__pyx_v_jac_array = 0;
20740 int __pyx_v_nInteriorElementBoundaries_global;
20741 int __pyx_v_nElementBoundaries_element;
20742 int __pyx_v_nQuadraturePoints_elementBoundary;
20743 int __pyx_v_nDOF_test_element;
20744 int __pyx_v_nDOF_trial_element;
20745 PyObject *__pyx_r = NULL;
20746 __Pyx_RefNannyDeclarations
20747 PyObject *__pyx_t_1 = NULL;
20748 PyObject *__pyx_t_2 = NULL;
20749 PyObject *__pyx_t_3 = NULL;
20750 PyObject *__pyx_t_4 = NULL;
20751 PyObject *__pyx_t_5 = NULL;
20752 PyObject *(*__pyx_t_6)(PyObject *);
20753 int __pyx_lineno = 0;
20754 const char *__pyx_filename = NULL;
20755 int __pyx_clineno = 0;
20756 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", 0);
20765 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4095, __pyx_L1_error)
20766 __Pyx_GOTREF(__pyx_t_2);
20768 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
20769 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
20770 if (likely(__pyx_t_3)) {
20771 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20772 __Pyx_INCREF(__pyx_t_3);
20773 __Pyx_INCREF(
function);
20774 __Pyx_DECREF_SET(__pyx_t_2,
function);
20777 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
20778 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20779 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4095, __pyx_L1_error)
20780 __Pyx_GOTREF(__pyx_t_1);
20781 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20782 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
20783 PyObject* sequence = __pyx_t_1;
20784 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
20785 if (unlikely(size != 3)) {
20786 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
20787 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
20788 __PYX_ERR(0, 4095, __pyx_L1_error)
20790 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
20791 if (likely(PyTuple_CheckExact(sequence))) {
20792 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
20793 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
20794 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
20796 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
20797 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
20798 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
20800 __Pyx_INCREF(__pyx_t_2);
20801 __Pyx_INCREF(__pyx_t_3);
20802 __Pyx_INCREF(__pyx_t_4);
20804 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4095, __pyx_L1_error)
20805 __Pyx_GOTREF(__pyx_t_2);
20806 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4095, __pyx_L1_error)
20807 __Pyx_GOTREF(__pyx_t_3);
20808 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4095, __pyx_L1_error)
20809 __Pyx_GOTREF(__pyx_t_4);
20811 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20813 Py_ssize_t index = -1;
20814 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4095, __pyx_L1_error)
20815 __Pyx_GOTREF(__pyx_t_5);
20816 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20817 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
20818 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
20819 __Pyx_GOTREF(__pyx_t_2);
20820 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
20821 __Pyx_GOTREF(__pyx_t_3);
20822 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
20823 __Pyx_GOTREF(__pyx_t_4);
20824 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4095, __pyx_L1_error)
20826 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20827 goto __pyx_L4_unpacking_done;
20828 __pyx_L3_unpacking_failed:;
20829 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20831 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
20832 __PYX_ERR(0, 4095, __pyx_L1_error)
20833 __pyx_L4_unpacking_done:;
20835 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4095, __pyx_L1_error)
20836 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4095, __pyx_L1_error)
20837 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4095, __pyx_L1_error)
20838 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
20840 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
20842 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
20852 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
20861 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
20870 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
20879 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
20888 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian->dimensions[3]);
20897 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
20908 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20911 __Pyx_XDECREF(__pyx_t_1);
20912 __Pyx_XDECREF(__pyx_t_2);
20913 __Pyx_XDECREF(__pyx_t_3);
20914 __Pyx_XDECREF(__pyx_t_4);
20915 __Pyx_XDECREF(__pyx_t_5);
20916 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
20919 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
20920 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
20921 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
20922 __Pyx_XGIVEREF(__pyx_r);
20923 __Pyx_RefNannyFinishContext();
20936 static PyObject *__pyx_pw_13cfemIntegrals_177updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20937 static PyMethodDef __pyx_mdef_13cfemIntegrals_177updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR = {
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_177updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR, METH_VARARGS|METH_KEYWORDS, 0};
20938 static PyObject *__pyx_pw_13cfemIntegrals_177updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20939 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
20940 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
20941 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
20942 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
20943 PyArrayObject *__pyx_v_freeLocal_r = 0;
20944 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
20945 PyArrayObject *__pyx_v_freeLocal_u = 0;
20946 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
20947 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
20948 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian = 0;
20949 PyArrayObject *__pyx_v_w_dS = 0;
20950 PyObject *__pyx_v_jac = 0;
20951 int __pyx_lineno = 0;
20952 const char *__pyx_filename = NULL;
20953 int __pyx_clineno = 0;
20954 PyObject *__pyx_r = 0;
20955 __Pyx_RefNannyDeclarations
20956 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR (wrapper)", 0);
20958 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_elementBoundaryFluxJacobian,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
20959 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
20960 if (unlikely(__pyx_kwds)) {
20961 Py_ssize_t kw_args;
20962 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20963 switch (pos_args) {
20964 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
20965 CYTHON_FALLTHROUGH;
20966 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
20967 CYTHON_FALLTHROUGH;
20968 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
20969 CYTHON_FALLTHROUGH;
20970 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
20971 CYTHON_FALLTHROUGH;
20972 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
20973 CYTHON_FALLTHROUGH;
20974 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
20975 CYTHON_FALLTHROUGH;
20976 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
20977 CYTHON_FALLTHROUGH;
20978 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20979 CYTHON_FALLTHROUGH;
20980 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20981 CYTHON_FALLTHROUGH;
20982 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20983 CYTHON_FALLTHROUGH;
20984 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20985 CYTHON_FALLTHROUGH;
20986 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20987 CYTHON_FALLTHROUGH;
20989 default:
goto __pyx_L5_argtuple_error;
20991 kw_args = PyDict_Size(__pyx_kwds);
20992 switch (pos_args) {
20994 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
20995 else goto __pyx_L5_argtuple_error;
20996 CYTHON_FALLTHROUGH;
20998 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21000 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 1); __PYX_ERR(0, 4118, __pyx_L3_error)
21002 CYTHON_FALLTHROUGH;
21004 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21006 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 2); __PYX_ERR(0, 4118, __pyx_L3_error)
21008 CYTHON_FALLTHROUGH;
21010 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
21012 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 3); __PYX_ERR(0, 4118, __pyx_L3_error)
21014 CYTHON_FALLTHROUGH;
21016 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
21018 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 4); __PYX_ERR(0, 4118, __pyx_L3_error)
21020 CYTHON_FALLTHROUGH;
21022 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
21024 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 5); __PYX_ERR(0, 4118, __pyx_L3_error)
21026 CYTHON_FALLTHROUGH;
21028 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
21030 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 6); __PYX_ERR(0, 4118, __pyx_L3_error)
21032 CYTHON_FALLTHROUGH;
21034 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
21036 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 7); __PYX_ERR(0, 4118, __pyx_L3_error)
21038 CYTHON_FALLTHROUGH;
21040 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
21042 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 8); __PYX_ERR(0, 4118, __pyx_L3_error)
21044 CYTHON_FALLTHROUGH;
21046 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian)) != 0)) kw_args--;
21048 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 9); __PYX_ERR(0, 4118, __pyx_L3_error)
21050 CYTHON_FALLTHROUGH;
21052 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
21054 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 10); __PYX_ERR(0, 4118, __pyx_L3_error)
21056 CYTHON_FALLTHROUGH;
21058 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
21060 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, 11); __PYX_ERR(0, 4118, __pyx_L3_error)
21063 if (unlikely(kw_args > 0)) {
21064 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR") < 0)) __PYX_ERR(0, 4118, __pyx_L3_error)
21066 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
21067 goto __pyx_L5_argtuple_error;
21069 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21070 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21071 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21072 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21073 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21074 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21075 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21076 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21077 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21078 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21079 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21080 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21082 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
21083 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
21084 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
21085 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[3]);
21086 __pyx_v_freeLocal_r = ((PyArrayObject *)values[4]);
21087 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[5]);
21088 __pyx_v_freeLocal_u = ((PyArrayObject *)values[6]);
21089 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[7]);
21090 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[8]);
21091 __pyx_v_elementBoundaryFluxJacobian = ((PyArrayObject *)values[9]);
21092 __pyx_v_w_dS = ((PyArrayObject *)values[10]);
21093 __pyx_v_jac = values[11];
21095 goto __pyx_L4_argument_unpacking_done;
21096 __pyx_L5_argtuple_error:;
21097 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4118, __pyx_L3_error)
21099 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
21100 __Pyx_RefNannyFinishContext();
21102 __pyx_L4_argument_unpacking_done:;
21103 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4118, __pyx_L1_error)
21104 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4119, __pyx_L1_error)
21105 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4120, __pyx_L1_error)
21106 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4121, __pyx_L1_error)
21107 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4122, __pyx_L1_error)
21108 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4123, __pyx_L1_error)
21109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4124, __pyx_L1_error)
21110 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4125, __pyx_L1_error)
21111 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 4126, __pyx_L1_error)
21112 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian", 0))) __PYX_ERR(0, 4127, __pyx_L1_error)
21113 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4128, __pyx_L1_error)
21114 __pyx_r = __pyx_pf_13cfemIntegrals_176updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_elementBoundaryFluxJacobian, __pyx_v_w_dS, __pyx_v_jac);
21121 __Pyx_RefNannyFinishContext();
21125 static PyObject *__pyx_pf_13cfemIntegrals_176updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac) {
21126 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
21127 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
21128 PyArrayObject *__pyx_v_jac_array = 0;
21130 PyObject *__pyx_r = NULL;
21131 __Pyx_RefNannyDeclarations
21132 PyObject *__pyx_t_1 = NULL;
21133 PyObject *__pyx_t_2 = NULL;
21134 PyObject *__pyx_t_3 = NULL;
21135 PyObject *__pyx_t_4 = NULL;
21136 PyObject *__pyx_t_5 = NULL;
21137 PyObject *(*__pyx_t_6)(PyObject *);
21140 int __pyx_lineno = 0;
21141 const char *__pyx_filename = NULL;
21142 int __pyx_clineno = 0;
21143 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", 0);
21152 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4131, __pyx_L1_error)
21153 __Pyx_GOTREF(__pyx_t_2);
21155 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
21156 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
21157 if (likely(__pyx_t_3)) {
21158 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
21159 __Pyx_INCREF(__pyx_t_3);
21160 __Pyx_INCREF(
function);
21161 __Pyx_DECREF_SET(__pyx_t_2,
function);
21164 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
21165 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
21166 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4131, __pyx_L1_error)
21167 __Pyx_GOTREF(__pyx_t_1);
21168 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21169 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
21170 PyObject* sequence = __pyx_t_1;
21171 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
21172 if (unlikely(size != 3)) {
21173 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
21174 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
21175 __PYX_ERR(0, 4131, __pyx_L1_error)
21177 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
21178 if (likely(PyTuple_CheckExact(sequence))) {
21179 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
21180 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
21181 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
21183 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
21184 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
21185 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
21187 __Pyx_INCREF(__pyx_t_2);
21188 __Pyx_INCREF(__pyx_t_3);
21189 __Pyx_INCREF(__pyx_t_4);
21191 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4131, __pyx_L1_error)
21192 __Pyx_GOTREF(__pyx_t_2);
21193 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4131, __pyx_L1_error)
21194 __Pyx_GOTREF(__pyx_t_3);
21195 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4131, __pyx_L1_error)
21196 __Pyx_GOTREF(__pyx_t_4);
21198 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21200 Py_ssize_t index = -1;
21201 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4131, __pyx_L1_error)
21202 __Pyx_GOTREF(__pyx_t_5);
21203 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21204 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
21205 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
21206 __Pyx_GOTREF(__pyx_t_2);
21207 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
21208 __Pyx_GOTREF(__pyx_t_3);
21209 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
21210 __Pyx_GOTREF(__pyx_t_4);
21211 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4131, __pyx_L1_error)
21213 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21214 goto __pyx_L4_unpacking_done;
21215 __pyx_L3_unpacking_failed:;
21216 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21218 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
21219 __PYX_ERR(0, 4131, __pyx_L1_error)
21220 __pyx_L4_unpacking_done:;
21222 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4131, __pyx_L1_error)
21223 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4131, __pyx_L1_error)
21224 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4131, __pyx_L1_error)
21225 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
21227 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
21229 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
21239 __pyx_t_7 = __pyx_v_w_dS->nd;
21240 __pyx_v_nd = __pyx_t_7;
21249 __pyx_t_8 = ((__pyx_v_nd > 3) != 0);
21259 #ifndef CYTHON_WITHOUT_ASSERTIONS
21260 if (unlikely(!Py_OptimizeFlag)) {
21261 if (unlikely(!((__pyx_v_elementBoundaryFluxJacobian->nd == 4) != 0))) {
21262 PyErr_SetNone(PyExc_AssertionError);
21263 __PYX_ERR(0, 4134, __pyx_L1_error)
21275 updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_w_dS->dimensions[3]), (__pyx_v_elementBoundaryFluxJacobian->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
21295 #ifndef CYTHON_WITHOUT_ASSERTIONS
21296 if (unlikely(!Py_OptimizeFlag)) {
21297 if (unlikely(!((__pyx_v_elementBoundaryFluxJacobian->nd == 3) != 0))) {
21298 PyErr_SetNone(PyExc_AssertionError);
21299 __PYX_ERR(0, 4153, __pyx_L1_error)
21311 updateGlobalJacobianFromGlobalExteriorElementBoundaryFluxJacobian_CSR((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_elementBoundaryFluxJacobian->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
21324 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21327 __Pyx_XDECREF(__pyx_t_1);
21328 __Pyx_XDECREF(__pyx_t_2);
21329 __Pyx_XDECREF(__pyx_t_3);
21330 __Pyx_XDECREF(__pyx_t_4);
21331 __Pyx_XDECREF(__pyx_t_5);
21332 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
21335 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
21336 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
21337 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
21338 __Pyx_XGIVEREF(__pyx_r);
21339 __Pyx_RefNannyFinishContext();
21352 static PyObject *__pyx_pw_13cfemIntegrals_179updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21353 static PyMethodDef __pyx_mdef_13cfemIntegrals_179updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR = {
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_179updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR, METH_VARARGS|METH_KEYWORDS, 0};
21354 static PyObject *__pyx_pw_13cfemIntegrals_179updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21355 PyArrayObject *__pyx_v_elementNeighbors = 0;
21356 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
21357 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21358 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
21359 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
21360 PyArrayObject *__pyx_v_freeLocal_r = 0;
21361 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
21362 PyArrayObject *__pyx_v_freeLocal_u = 0;
21363 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
21364 PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru = 0;
21365 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb = 0;
21366 PyArrayObject *__pyx_v_w_dS = 0;
21367 PyObject *__pyx_v_jac = 0;
21368 int __pyx_lineno = 0;
21369 const char *__pyx_filename = NULL;
21370 int __pyx_clineno = 0;
21371 PyObject *__pyx_r = 0;
21372 __Pyx_RefNannyDeclarations
21373 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR (wrapper)", 0);
21375 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_eNebN_ru,&__pyx_n_s_elementBoundaryFluxJacobian_eb,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
21376 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
21377 if (unlikely(__pyx_kwds)) {
21378 Py_ssize_t kw_args;
21379 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21380 switch (pos_args) {
21381 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21382 CYTHON_FALLTHROUGH;
21383 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21384 CYTHON_FALLTHROUGH;
21385 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21386 CYTHON_FALLTHROUGH;
21387 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21388 CYTHON_FALLTHROUGH;
21389 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21390 CYTHON_FALLTHROUGH;
21391 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21392 CYTHON_FALLTHROUGH;
21393 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21394 CYTHON_FALLTHROUGH;
21395 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21396 CYTHON_FALLTHROUGH;
21397 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21398 CYTHON_FALLTHROUGH;
21399 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21400 CYTHON_FALLTHROUGH;
21401 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21402 CYTHON_FALLTHROUGH;
21403 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21404 CYTHON_FALLTHROUGH;
21405 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21406 CYTHON_FALLTHROUGH;
21408 default:
goto __pyx_L5_argtuple_error;
21410 kw_args = PyDict_Size(__pyx_kwds);
21411 switch (pos_args) {
21413 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
21414 else goto __pyx_L5_argtuple_error;
21415 CYTHON_FALLTHROUGH;
21417 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
21419 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 1); __PYX_ERR(0, 4170, __pyx_L3_error)
21421 CYTHON_FALLTHROUGH;
21423 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21425 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 2); __PYX_ERR(0, 4170, __pyx_L3_error)
21427 CYTHON_FALLTHROUGH;
21429 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21431 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 3); __PYX_ERR(0, 4170, __pyx_L3_error)
21433 CYTHON_FALLTHROUGH;
21435 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
21437 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 4); __PYX_ERR(0, 4170, __pyx_L3_error)
21439 CYTHON_FALLTHROUGH;
21441 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
21443 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 5); __PYX_ERR(0, 4170, __pyx_L3_error)
21445 CYTHON_FALLTHROUGH;
21447 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
21449 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 6); __PYX_ERR(0, 4170, __pyx_L3_error)
21451 CYTHON_FALLTHROUGH;
21453 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
21455 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 7); __PYX_ERR(0, 4170, __pyx_L3_error)
21457 CYTHON_FALLTHROUGH;
21459 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
21461 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 8); __PYX_ERR(0, 4170, __pyx_L3_error)
21463 CYTHON_FALLTHROUGH;
21465 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_eNebN_ru)) != 0)) kw_args--;
21467 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 9); __PYX_ERR(0, 4170, __pyx_L3_error)
21469 CYTHON_FALLTHROUGH;
21471 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_eb)) != 0)) kw_args--;
21473 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 10); __PYX_ERR(0, 4170, __pyx_L3_error)
21475 CYTHON_FALLTHROUGH;
21477 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
21479 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 11); __PYX_ERR(0, 4170, __pyx_L3_error)
21481 CYTHON_FALLTHROUGH;
21483 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
21485 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 12); __PYX_ERR(0, 4170, __pyx_L3_error)
21488 if (unlikely(kw_args > 0)) {
21489 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR") < 0)) __PYX_ERR(0, 4170, __pyx_L3_error)
21491 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
21492 goto __pyx_L5_argtuple_error;
21494 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21495 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21496 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21497 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21498 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21499 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21500 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21501 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21502 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21503 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21504 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21505 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21506 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21508 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
21509 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[1]);
21510 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
21511 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
21512 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[4]);
21513 __pyx_v_freeLocal_r = ((PyArrayObject *)values[5]);
21514 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[6]);
21515 __pyx_v_freeLocal_u = ((PyArrayObject *)values[7]);
21516 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[8]);
21517 __pyx_v_csrColumnOffsets_eb_eNebN_ru = ((PyArrayObject *)values[9]);
21518 __pyx_v_elementBoundaryFluxJacobian_eb = ((PyArrayObject *)values[10]);
21519 __pyx_v_w_dS = ((PyArrayObject *)values[11]);
21520 __pyx_v_jac = values[12];
21522 goto __pyx_L4_argument_unpacking_done;
21523 __pyx_L5_argtuple_error:;
21524 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4170, __pyx_L3_error)
21526 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
21527 __Pyx_RefNannyFinishContext();
21529 __pyx_L4_argument_unpacking_done:;
21530 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 4170, __pyx_L1_error)
21531 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4171, __pyx_L1_error)
21532 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4172, __pyx_L1_error)
21533 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4173, __pyx_L1_error)
21534 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4174, __pyx_L1_error)
21535 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4175, __pyx_L1_error)
21536 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4176, __pyx_L1_error)
21537 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4177, __pyx_L1_error)
21538 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4178, __pyx_L1_error)
21539 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_eNebN_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_eNebN_ru", 0))) __PYX_ERR(0, 4179, __pyx_L1_error)
21540 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_eb", 0))) __PYX_ERR(0, 4180, __pyx_L1_error)
21541 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4181, __pyx_L1_error)
21542 __pyx_r = __pyx_pf_13cfemIntegrals_178updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_eNebN_ru, __pyx_v_elementBoundaryFluxJacobian_eb, __pyx_v_w_dS, __pyx_v_jac);
21549 __Pyx_RefNannyFinishContext();
21553 static PyObject *__pyx_pf_13cfemIntegrals_178updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac) {
21554 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
21555 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
21556 PyArrayObject *__pyx_v_jac_array = 0;
21557 int __pyx_v_nInteriorElementBoundaries_global;
21558 int __pyx_v_nElementBoundaries_element;
21559 int __pyx_v_nQuadraturePoints_elementBoundary;
21560 int __pyx_v_nDOF_test_element;
21561 int __pyx_v_nDOF_trial_element;
21562 PyObject *__pyx_r = NULL;
21563 __Pyx_RefNannyDeclarations
21564 PyObject *__pyx_t_1 = NULL;
21565 PyObject *__pyx_t_2 = NULL;
21566 PyObject *__pyx_t_3 = NULL;
21567 PyObject *__pyx_t_4 = NULL;
21568 PyObject *__pyx_t_5 = NULL;
21569 PyObject *(*__pyx_t_6)(PyObject *);
21570 int __pyx_lineno = 0;
21571 const char *__pyx_filename = NULL;
21572 int __pyx_clineno = 0;
21573 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", 0);
21582 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4184, __pyx_L1_error)
21583 __Pyx_GOTREF(__pyx_t_2);
21585 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
21586 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
21587 if (likely(__pyx_t_3)) {
21588 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
21589 __Pyx_INCREF(__pyx_t_3);
21590 __Pyx_INCREF(
function);
21591 __Pyx_DECREF_SET(__pyx_t_2,
function);
21594 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
21595 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
21596 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4184, __pyx_L1_error)
21597 __Pyx_GOTREF(__pyx_t_1);
21598 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21599 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
21600 PyObject* sequence = __pyx_t_1;
21601 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
21602 if (unlikely(size != 3)) {
21603 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
21604 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
21605 __PYX_ERR(0, 4184, __pyx_L1_error)
21607 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
21608 if (likely(PyTuple_CheckExact(sequence))) {
21609 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
21610 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
21611 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
21613 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
21614 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
21615 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
21617 __Pyx_INCREF(__pyx_t_2);
21618 __Pyx_INCREF(__pyx_t_3);
21619 __Pyx_INCREF(__pyx_t_4);
21621 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4184, __pyx_L1_error)
21622 __Pyx_GOTREF(__pyx_t_2);
21623 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4184, __pyx_L1_error)
21624 __Pyx_GOTREF(__pyx_t_3);
21625 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4184, __pyx_L1_error)
21626 __Pyx_GOTREF(__pyx_t_4);
21628 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21630 Py_ssize_t index = -1;
21631 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4184, __pyx_L1_error)
21632 __Pyx_GOTREF(__pyx_t_5);
21633 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21634 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
21635 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
21636 __Pyx_GOTREF(__pyx_t_2);
21637 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
21638 __Pyx_GOTREF(__pyx_t_3);
21639 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
21640 __Pyx_GOTREF(__pyx_t_4);
21641 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4184, __pyx_L1_error)
21643 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21644 goto __pyx_L4_unpacking_done;
21645 __pyx_L3_unpacking_failed:;
21646 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21648 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
21649 __PYX_ERR(0, 4184, __pyx_L1_error)
21650 __pyx_L4_unpacking_done:;
21652 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4184, __pyx_L1_error)
21653 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4184, __pyx_L1_error)
21654 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4184, __pyx_L1_error)
21655 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
21657 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
21659 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
21669 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
21678 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
21687 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
21696 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
21705 __pyx_v_nDOF_trial_element = (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]);
21714 updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR(((
int *)__pyx_v_elementNeighbors->data), __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_eNebN_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
21725 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21728 __Pyx_XDECREF(__pyx_t_1);
21729 __Pyx_XDECREF(__pyx_t_2);
21730 __Pyx_XDECREF(__pyx_t_3);
21731 __Pyx_XDECREF(__pyx_t_4);
21732 __Pyx_XDECREF(__pyx_t_5);
21733 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
21736 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
21737 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
21738 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
21739 __Pyx_XGIVEREF(__pyx_r);
21740 __Pyx_RefNannyFinishContext();
21753 static PyObject *__pyx_pw_13cfemIntegrals_181updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21754 static PyMethodDef __pyx_mdef_13cfemIntegrals_181updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR = {
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_181updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR, METH_VARARGS|METH_KEYWORDS, 0};
21755 static PyObject *__pyx_pw_13cfemIntegrals_181updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21756 PyArrayObject *__pyx_v_elementNeighbors = 0;
21757 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
21758 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
21759 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
21760 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
21761 PyArrayObject *__pyx_v_freeLocal_r = 0;
21762 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
21763 PyArrayObject *__pyx_v_freeLocal_u = 0;
21764 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
21765 PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru = 0;
21766 PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb = 0;
21767 PyArrayObject *__pyx_v_w_dS = 0;
21768 PyObject *__pyx_v_jac = 0;
21769 int __pyx_lineno = 0;
21770 const char *__pyx_filename = NULL;
21771 int __pyx_clineno = 0;
21772 PyObject *__pyx_r = 0;
21773 __Pyx_RefNannyDeclarations
21774 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR (wrapper)", 0);
21776 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNeighbors,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_eNebN_ru,&__pyx_n_s_elementBoundaryFluxJacobian_eb,&__pyx_n_s_w_dS,&__pyx_n_s_jac,0};
21777 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
21778 if (unlikely(__pyx_kwds)) {
21779 Py_ssize_t kw_args;
21780 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21781 switch (pos_args) {
21782 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21783 CYTHON_FALLTHROUGH;
21784 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21785 CYTHON_FALLTHROUGH;
21786 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21787 CYTHON_FALLTHROUGH;
21788 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21789 CYTHON_FALLTHROUGH;
21790 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21791 CYTHON_FALLTHROUGH;
21792 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21793 CYTHON_FALLTHROUGH;
21794 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21795 CYTHON_FALLTHROUGH;
21796 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21797 CYTHON_FALLTHROUGH;
21798 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21799 CYTHON_FALLTHROUGH;
21800 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21801 CYTHON_FALLTHROUGH;
21802 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21803 CYTHON_FALLTHROUGH;
21804 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21805 CYTHON_FALLTHROUGH;
21806 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21807 CYTHON_FALLTHROUGH;
21809 default:
goto __pyx_L5_argtuple_error;
21811 kw_args = PyDict_Size(__pyx_kwds);
21812 switch (pos_args) {
21814 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNeighbors)) != 0)) kw_args--;
21815 else goto __pyx_L5_argtuple_error;
21816 CYTHON_FALLTHROUGH;
21818 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
21820 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 1); __PYX_ERR(0, 4208, __pyx_L3_error)
21822 CYTHON_FALLTHROUGH;
21824 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
21826 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 2); __PYX_ERR(0, 4208, __pyx_L3_error)
21828 CYTHON_FALLTHROUGH;
21830 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
21832 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 3); __PYX_ERR(0, 4208, __pyx_L3_error)
21834 CYTHON_FALLTHROUGH;
21836 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
21838 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 4); __PYX_ERR(0, 4208, __pyx_L3_error)
21840 CYTHON_FALLTHROUGH;
21842 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
21844 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 5); __PYX_ERR(0, 4208, __pyx_L3_error)
21846 CYTHON_FALLTHROUGH;
21848 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
21850 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 6); __PYX_ERR(0, 4208, __pyx_L3_error)
21852 CYTHON_FALLTHROUGH;
21854 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
21856 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 7); __PYX_ERR(0, 4208, __pyx_L3_error)
21858 CYTHON_FALLTHROUGH;
21860 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
21862 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 8); __PYX_ERR(0, 4208, __pyx_L3_error)
21864 CYTHON_FALLTHROUGH;
21866 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_eNebN_ru)) != 0)) kw_args--;
21868 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 9); __PYX_ERR(0, 4208, __pyx_L3_error)
21870 CYTHON_FALLTHROUGH;
21872 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryFluxJacobian_eb)) != 0)) kw_args--;
21874 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 10); __PYX_ERR(0, 4208, __pyx_L3_error)
21876 CYTHON_FALLTHROUGH;
21878 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
21880 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 11); __PYX_ERR(0, 4208, __pyx_L3_error)
21882 CYTHON_FALLTHROUGH;
21884 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
21886 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, 12); __PYX_ERR(0, 4208, __pyx_L3_error)
21889 if (unlikely(kw_args > 0)) {
21890 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR") < 0)) __PYX_ERR(0, 4208, __pyx_L3_error)
21892 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
21893 goto __pyx_L5_argtuple_error;
21895 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21896 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21897 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21898 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21899 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21900 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21901 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21902 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21903 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21904 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21905 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21906 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21907 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21909 __pyx_v_elementNeighbors = ((PyArrayObject *)values[0]);
21910 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
21911 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
21912 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
21913 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[4]);
21914 __pyx_v_freeLocal_r = ((PyArrayObject *)values[5]);
21915 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[6]);
21916 __pyx_v_freeLocal_u = ((PyArrayObject *)values[7]);
21917 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[8]);
21918 __pyx_v_csrColumnOffsets_eb_eNebN_ru = ((PyArrayObject *)values[9]);
21919 __pyx_v_elementBoundaryFluxJacobian_eb = ((PyArrayObject *)values[10]);
21920 __pyx_v_w_dS = ((PyArrayObject *)values[11]);
21921 __pyx_v_jac = values[12];
21923 goto __pyx_L4_argument_unpacking_done;
21924 __pyx_L5_argtuple_error:;
21925 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4208, __pyx_L3_error)
21927 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
21928 __Pyx_RefNannyFinishContext();
21930 __pyx_L4_argument_unpacking_done:;
21931 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"elementNeighbors", 0))) __PYX_ERR(0, 4208, __pyx_L1_error)
21932 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4209, __pyx_L1_error)
21933 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4210, __pyx_L1_error)
21934 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4211, __pyx_L1_error)
21935 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 4212, __pyx_L1_error)
21936 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 4213, __pyx_L1_error)
21937 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 4214, __pyx_L1_error)
21938 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 4215, __pyx_L1_error)
21939 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 4216, __pyx_L1_error)
21940 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_eNebN_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_eNebN_ru", 0))) __PYX_ERR(0, 4217, __pyx_L1_error)
21941 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryFluxJacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryFluxJacobian_eb", 0))) __PYX_ERR(0, 4218, __pyx_L1_error)
21942 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4219, __pyx_L1_error)
21943 __pyx_r = __pyx_pf_13cfemIntegrals_180updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(__pyx_self, __pyx_v_elementNeighbors, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_eNebN_ru, __pyx_v_elementBoundaryFluxJacobian_eb, __pyx_v_w_dS, __pyx_v_jac);
21950 __Pyx_RefNannyFinishContext();
21954 static PyObject *__pyx_pf_13cfemIntegrals_180updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNeighbors, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_eNebN_ru, PyArrayObject *__pyx_v_elementBoundaryFluxJacobian_eb, PyArrayObject *__pyx_v_w_dS, PyObject *__pyx_v_jac) {
21955 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
21956 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
21957 PyArrayObject *__pyx_v_jac_array = 0;
21958 PyObject *__pyx_r = NULL;
21959 __Pyx_RefNannyDeclarations
21960 PyObject *__pyx_t_1 = NULL;
21961 PyObject *__pyx_t_2 = NULL;
21962 PyObject *__pyx_t_3 = NULL;
21963 PyObject *__pyx_t_4 = NULL;
21964 PyObject *__pyx_t_5 = NULL;
21965 PyObject *(*__pyx_t_6)(PyObject *);
21967 int __pyx_lineno = 0;
21968 const char *__pyx_filename = NULL;
21969 int __pyx_clineno = 0;
21970 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", 0);
21979 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4222, __pyx_L1_error)
21980 __Pyx_GOTREF(__pyx_t_2);
21982 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
21983 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
21984 if (likely(__pyx_t_3)) {
21985 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
21986 __Pyx_INCREF(__pyx_t_3);
21987 __Pyx_INCREF(
function);
21988 __Pyx_DECREF_SET(__pyx_t_2,
function);
21991 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
21992 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
21993 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4222, __pyx_L1_error)
21994 __Pyx_GOTREF(__pyx_t_1);
21995 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21996 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
21997 PyObject* sequence = __pyx_t_1;
21998 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
21999 if (unlikely(size != 3)) {
22000 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
22001 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
22002 __PYX_ERR(0, 4222, __pyx_L1_error)
22004 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
22005 if (likely(PyTuple_CheckExact(sequence))) {
22006 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
22007 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
22008 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
22010 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
22011 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
22012 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
22014 __Pyx_INCREF(__pyx_t_2);
22015 __Pyx_INCREF(__pyx_t_3);
22016 __Pyx_INCREF(__pyx_t_4);
22018 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4222, __pyx_L1_error)
22019 __Pyx_GOTREF(__pyx_t_2);
22020 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4222, __pyx_L1_error)
22021 __Pyx_GOTREF(__pyx_t_3);
22022 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4222, __pyx_L1_error)
22023 __Pyx_GOTREF(__pyx_t_4);
22025 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22027 Py_ssize_t index = -1;
22028 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4222, __pyx_L1_error)
22029 __Pyx_GOTREF(__pyx_t_5);
22030 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22031 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
22032 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
22033 __Pyx_GOTREF(__pyx_t_2);
22034 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
22035 __Pyx_GOTREF(__pyx_t_3);
22036 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
22037 __Pyx_GOTREF(__pyx_t_4);
22038 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4222, __pyx_L1_error)
22040 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22041 goto __pyx_L4_unpacking_done;
22042 __pyx_L3_unpacking_failed:;
22043 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22045 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
22046 __PYX_ERR(0, 4222, __pyx_L1_error)
22047 __pyx_L4_unpacking_done:;
22049 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4222, __pyx_L1_error)
22050 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4222, __pyx_L1_error)
22051 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4222, __pyx_L1_error)
22052 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
22054 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
22056 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
22066 __pyx_t_7 = ((__pyx_v_w_dS->nd > 3) != 0);
22076 updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR(((
int *)__pyx_v_elementNeighbors->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_w_dS->dimensions[3]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_eNebN_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
22104 updateGlobalJacobianFromGlobalExteriorElementBoundaryFluxJacobian_eb_CSR(((
int *)__pyx_v_elementNeighbors->data), (__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[2]), (__pyx_v_w_dS->dimensions[1]), (__pyx_v_w_dS->dimensions[2]), (__pyx_v_elementBoundaryFluxJacobian_eb->dimensions[4]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_eNebN_ru->data), ((
double *)__pyx_v_elementBoundaryFluxJacobian_eb->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_jac_array->data));
22117 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22120 __Pyx_XDECREF(__pyx_t_1);
22121 __Pyx_XDECREF(__pyx_t_2);
22122 __Pyx_XDECREF(__pyx_t_3);
22123 __Pyx_XDECREF(__pyx_t_4);
22124 __Pyx_XDECREF(__pyx_t_5);
22125 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
22128 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
22129 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
22130 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
22131 __Pyx_XGIVEREF(__pyx_r);
22132 __Pyx_RefNannyFinishContext();
22145 static PyObject *__pyx_pw_13cfemIntegrals_183calculateWeightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22146 static PyMethodDef __pyx_mdef_13cfemIntegrals_183calculateWeightedShape = {
"calculateWeightedShape", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_183calculateWeightedShape, METH_VARARGS|METH_KEYWORDS, 0};
22147 static PyObject *__pyx_pw_13cfemIntegrals_183calculateWeightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22148 PyArrayObject *__pyx_v_dVR = 0;
22149 PyArrayObject *__pyx_v_abs_det_jac = 0;
22150 PyArrayObject *__pyx_v_w = 0;
22151 PyArrayObject *__pyx_v_w_dV = 0;
22152 int __pyx_lineno = 0;
22153 const char *__pyx_filename = NULL;
22154 int __pyx_clineno = 0;
22155 PyObject *__pyx_r = 0;
22156 __Pyx_RefNannyDeclarations
22157 __Pyx_RefNannySetupContext(
"calculateWeightedShape (wrapper)", 0);
22159 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dVR,&__pyx_n_s_abs_det_jac,&__pyx_n_s_w,&__pyx_n_s_w_dV,0};
22160 PyObject* values[4] = {0,0,0,0};
22161 if (unlikely(__pyx_kwds)) {
22162 Py_ssize_t kw_args;
22163 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22164 switch (pos_args) {
22165 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22166 CYTHON_FALLTHROUGH;
22167 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22168 CYTHON_FALLTHROUGH;
22169 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22170 CYTHON_FALLTHROUGH;
22171 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22172 CYTHON_FALLTHROUGH;
22174 default:
goto __pyx_L5_argtuple_error;
22176 kw_args = PyDict_Size(__pyx_kwds);
22177 switch (pos_args) {
22179 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dVR)) != 0)) kw_args--;
22180 else goto __pyx_L5_argtuple_error;
22181 CYTHON_FALLTHROUGH;
22183 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_jac)) != 0)) kw_args--;
22185 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShape", 1, 4, 4, 1); __PYX_ERR(0, 4261, __pyx_L3_error)
22187 CYTHON_FALLTHROUGH;
22189 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
22191 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShape", 1, 4, 4, 2); __PYX_ERR(0, 4261, __pyx_L3_error)
22193 CYTHON_FALLTHROUGH;
22195 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
22197 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShape", 1, 4, 4, 3); __PYX_ERR(0, 4261, __pyx_L3_error)
22200 if (unlikely(kw_args > 0)) {
22201 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWeightedShape") < 0)) __PYX_ERR(0, 4261, __pyx_L3_error)
22203 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
22204 goto __pyx_L5_argtuple_error;
22206 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22207 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22208 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22209 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22211 __pyx_v_dVR = ((PyArrayObject *)values[0]);
22212 __pyx_v_abs_det_jac = ((PyArrayObject *)values[1]);
22213 __pyx_v_w = ((PyArrayObject *)values[2]);
22214 __pyx_v_w_dV = ((PyArrayObject *)values[3]);
22216 goto __pyx_L4_argument_unpacking_done;
22217 __pyx_L5_argtuple_error:;
22218 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShape", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4261, __pyx_L3_error)
22220 __Pyx_AddTraceback(
"cfemIntegrals.calculateWeightedShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
22221 __Pyx_RefNannyFinishContext();
22223 __pyx_L4_argument_unpacking_done:;
22224 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dVR), __pyx_ptype_5numpy_ndarray, 1,
"dVR", 0))) __PYX_ERR(0, 4261, __pyx_L1_error)
22225 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_jac), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_jac", 0))) __PYX_ERR(0, 4262, __pyx_L1_error)
22226 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4263, __pyx_L1_error)
22227 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 4264, __pyx_L1_error)
22228 __pyx_r = __pyx_pf_13cfemIntegrals_182calculateWeightedShape(__pyx_self, __pyx_v_dVR, __pyx_v_abs_det_jac, __pyx_v_w, __pyx_v_w_dV);
22235 __Pyx_RefNannyFinishContext();
22239 static PyObject *__pyx_pf_13cfemIntegrals_182calculateWeightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dV) {
22240 int __pyx_v_nElements_global;
22241 int __pyx_v_nQuadraturePoints_element;
22242 int __pyx_v_nDOF_test_element;
22243 PyObject *__pyx_r = NULL;
22244 __Pyx_RefNannyDeclarations
22245 __Pyx_RefNannySetupContext(
"calculateWeightedShape", 0);
22254 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
22263 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
22272 __pyx_v_nDOF_test_element = (__pyx_v_w_dV->dimensions[2]);
22281 calculateWeightedShape(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dVR->data), ((
double *)__pyx_v_abs_det_jac->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_w_dV->data));
22292 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22293 __Pyx_XGIVEREF(__pyx_r);
22294 __Pyx_RefNannyFinishContext();
22307 static PyObject *__pyx_pw_13cfemIntegrals_185calculateWeightedShapeGradients(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22308 static PyMethodDef __pyx_mdef_13cfemIntegrals_185calculateWeightedShapeGradients = {
"calculateWeightedShapeGradients", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_185calculateWeightedShapeGradients, METH_VARARGS|METH_KEYWORDS, 0};
22309 static PyObject *__pyx_pw_13cfemIntegrals_185calculateWeightedShapeGradients(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22310 PyArrayObject *__pyx_v_dVR = 0;
22311 PyArrayObject *__pyx_v_abs_det_jac = 0;
22312 PyArrayObject *__pyx_v_grad_w = 0;
22313 PyArrayObject *__pyx_v_grad_w_dV = 0;
22314 int __pyx_lineno = 0;
22315 const char *__pyx_filename = NULL;
22316 int __pyx_clineno = 0;
22317 PyObject *__pyx_r = 0;
22318 __Pyx_RefNannyDeclarations
22319 __Pyx_RefNannySetupContext(
"calculateWeightedShapeGradients (wrapper)", 0);
22321 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dVR,&__pyx_n_s_abs_det_jac,&__pyx_n_s_grad_w,&__pyx_n_s_grad_w_dV,0};
22322 PyObject* values[4] = {0,0,0,0};
22323 if (unlikely(__pyx_kwds)) {
22324 Py_ssize_t kw_args;
22325 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22326 switch (pos_args) {
22327 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22328 CYTHON_FALLTHROUGH;
22329 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22330 CYTHON_FALLTHROUGH;
22331 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22332 CYTHON_FALLTHROUGH;
22333 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22334 CYTHON_FALLTHROUGH;
22336 default:
goto __pyx_L5_argtuple_error;
22338 kw_args = PyDict_Size(__pyx_kwds);
22339 switch (pos_args) {
22341 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dVR)) != 0)) kw_args--;
22342 else goto __pyx_L5_argtuple_error;
22343 CYTHON_FALLTHROUGH;
22345 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_jac)) != 0)) kw_args--;
22347 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGradients", 1, 4, 4, 1); __PYX_ERR(0, 4275, __pyx_L3_error)
22349 CYTHON_FALLTHROUGH;
22351 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
22353 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGradients", 1, 4, 4, 2); __PYX_ERR(0, 4275, __pyx_L3_error)
22355 CYTHON_FALLTHROUGH;
22357 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
22359 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGradients", 1, 4, 4, 3); __PYX_ERR(0, 4275, __pyx_L3_error)
22362 if (unlikely(kw_args > 0)) {
22363 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWeightedShapeGradients") < 0)) __PYX_ERR(0, 4275, __pyx_L3_error)
22365 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
22366 goto __pyx_L5_argtuple_error;
22368 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22369 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22370 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22371 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
22373 __pyx_v_dVR = ((PyArrayObject *)values[0]);
22374 __pyx_v_abs_det_jac = ((PyArrayObject *)values[1]);
22375 __pyx_v_grad_w = ((PyArrayObject *)values[2]);
22376 __pyx_v_grad_w_dV = ((PyArrayObject *)values[3]);
22378 goto __pyx_L4_argument_unpacking_done;
22379 __pyx_L5_argtuple_error:;
22380 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGradients", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4275, __pyx_L3_error)
22382 __Pyx_AddTraceback(
"cfemIntegrals.calculateWeightedShapeGradients", __pyx_clineno, __pyx_lineno, __pyx_filename);
22383 __Pyx_RefNannyFinishContext();
22385 __pyx_L4_argument_unpacking_done:;
22386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dVR), __pyx_ptype_5numpy_ndarray, 1,
"dVR", 0))) __PYX_ERR(0, 4275, __pyx_L1_error)
22387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_jac), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_jac", 0))) __PYX_ERR(0, 4276, __pyx_L1_error)
22388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 4277, __pyx_L1_error)
22389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 4278, __pyx_L1_error)
22390 __pyx_r = __pyx_pf_13cfemIntegrals_184calculateWeightedShapeGradients(__pyx_self, __pyx_v_dVR, __pyx_v_abs_det_jac, __pyx_v_grad_w, __pyx_v_grad_w_dV);
22397 __Pyx_RefNannyFinishContext();
22401 static PyObject *__pyx_pf_13cfemIntegrals_184calculateWeightedShapeGradients(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dVR, PyArrayObject *__pyx_v_abs_det_jac, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_grad_w_dV) {
22402 int __pyx_v_nElements_global;
22403 int __pyx_v_nQuadraturePoints_element;
22404 int __pyx_v_nDOF_test_element;
22405 int __pyx_v_nSpace;
22406 PyObject *__pyx_r = NULL;
22407 __Pyx_RefNannyDeclarations
22408 __Pyx_RefNannySetupContext(
"calculateWeightedShapeGradients", 0);
22417 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
22426 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
22435 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
22444 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
22453 calculateWeightedShapeGradients(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dVR->data), ((
double *)__pyx_v_abs_det_jac->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_grad_w_dV->data));
22464 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22465 __Pyx_XGIVEREF(__pyx_r);
22466 __Pyx_RefNannyFinishContext();
22479 static PyObject *__pyx_pw_13cfemIntegrals_187calculateShape_X_weightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22480 static PyMethodDef __pyx_mdef_13cfemIntegrals_187calculateShape_X_weightedShape = {
"calculateShape_X_weightedShape", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_187calculateShape_X_weightedShape, METH_VARARGS|METH_KEYWORDS, 0};
22481 static PyObject *__pyx_pw_13cfemIntegrals_187calculateShape_X_weightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22482 PyArrayObject *__pyx_v_v = 0;
22483 PyArrayObject *__pyx_v_w_dV = 0;
22484 PyArrayObject *__pyx_v_v_X_w_dV = 0;
22485 int __pyx_lineno = 0;
22486 const char *__pyx_filename = NULL;
22487 int __pyx_clineno = 0;
22488 PyObject *__pyx_r = 0;
22489 __Pyx_RefNannyDeclarations
22490 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShape (wrapper)", 0);
22492 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_w_dV,&__pyx_n_s_v_X_w_dV,0};
22493 PyObject* values[3] = {0,0,0};
22494 if (unlikely(__pyx_kwds)) {
22495 Py_ssize_t kw_args;
22496 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22497 switch (pos_args) {
22498 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22499 CYTHON_FALLTHROUGH;
22500 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22501 CYTHON_FALLTHROUGH;
22502 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22503 CYTHON_FALLTHROUGH;
22505 default:
goto __pyx_L5_argtuple_error;
22507 kw_args = PyDict_Size(__pyx_kwds);
22508 switch (pos_args) {
22510 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22511 else goto __pyx_L5_argtuple_error;
22512 CYTHON_FALLTHROUGH;
22514 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
22516 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShape", 1, 3, 3, 1); __PYX_ERR(0, 4291, __pyx_L3_error)
22518 CYTHON_FALLTHROUGH;
22520 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_w_dV)) != 0)) kw_args--;
22522 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShape", 1, 3, 3, 2); __PYX_ERR(0, 4291, __pyx_L3_error)
22525 if (unlikely(kw_args > 0)) {
22526 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateShape_X_weightedShape") < 0)) __PYX_ERR(0, 4291, __pyx_L3_error)
22528 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
22529 goto __pyx_L5_argtuple_error;
22531 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22532 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22533 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22535 __pyx_v_v = ((PyArrayObject *)values[0]);
22536 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
22537 __pyx_v_v_X_w_dV = ((PyArrayObject *)values[2]);
22539 goto __pyx_L4_argument_unpacking_done;
22540 __pyx_L5_argtuple_error:;
22541 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShape", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4291, __pyx_L3_error)
22543 __Pyx_AddTraceback(
"cfemIntegrals.calculateShape_X_weightedShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
22544 __Pyx_RefNannyFinishContext();
22546 __pyx_L4_argument_unpacking_done:;
22547 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4291, __pyx_L1_error)
22548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 4292, __pyx_L1_error)
22549 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"v_X_w_dV", 0))) __PYX_ERR(0, 4293, __pyx_L1_error)
22550 __pyx_r = __pyx_pf_13cfemIntegrals_186calculateShape_X_weightedShape(__pyx_self, __pyx_v_v, __pyx_v_w_dV, __pyx_v_v_X_w_dV);
22557 __Pyx_RefNannyFinishContext();
22561 static PyObject *__pyx_pf_13cfemIntegrals_186calculateShape_X_weightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_v_X_w_dV) {
22562 int __pyx_v_nElements_global;
22563 int __pyx_v_nQuadraturePoints_element;
22564 int __pyx_v_nDOF_trial_element;
22565 int __pyx_v_nDOF_test_element;
22566 PyObject *__pyx_r = NULL;
22567 __Pyx_RefNannyDeclarations
22568 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShape", 0);
22577 __pyx_v_nElements_global = (__pyx_v_v_X_w_dV->dimensions[0]);
22586 __pyx_v_nQuadraturePoints_element = (__pyx_v_v_X_w_dV->dimensions[1]);
22595 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_w_dV->dimensions[2]);
22604 __pyx_v_nDOF_test_element = (__pyx_v_v_X_w_dV->dimensions[3]);
22613 calculateShape_X_weightedShape(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_v_X_w_dV->data));
22624 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22625 __Pyx_XGIVEREF(__pyx_r);
22626 __Pyx_RefNannyFinishContext();
22639 static PyObject *__pyx_pw_13cfemIntegrals_189calculateShape_X_weightedGradShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22640 static PyMethodDef __pyx_mdef_13cfemIntegrals_189calculateShape_X_weightedGradShape = {
"calculateShape_X_weightedGradShape", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_189calculateShape_X_weightedGradShape, METH_VARARGS|METH_KEYWORDS, 0};
22641 static PyObject *__pyx_pw_13cfemIntegrals_189calculateShape_X_weightedGradShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22642 PyArrayObject *__pyx_v_v = 0;
22643 PyArrayObject *__pyx_v_grad_w_dV = 0;
22644 PyArrayObject *__pyx_v_v_X_grad_w_dV = 0;
22645 int __pyx_lineno = 0;
22646 const char *__pyx_filename = NULL;
22647 int __pyx_clineno = 0;
22648 PyObject *__pyx_r = 0;
22649 __Pyx_RefNannyDeclarations
22650 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedGradShape (wrapper)", 0);
22652 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_v_X_grad_w_dV,0};
22653 PyObject* values[3] = {0,0,0};
22654 if (unlikely(__pyx_kwds)) {
22655 Py_ssize_t kw_args;
22656 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22657 switch (pos_args) {
22658 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22659 CYTHON_FALLTHROUGH;
22660 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22661 CYTHON_FALLTHROUGH;
22662 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22663 CYTHON_FALLTHROUGH;
22665 default:
goto __pyx_L5_argtuple_error;
22667 kw_args = PyDict_Size(__pyx_kwds);
22668 switch (pos_args) {
22670 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
22671 else goto __pyx_L5_argtuple_error;
22672 CYTHON_FALLTHROUGH;
22674 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
22676 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedGradShape", 1, 3, 3, 1); __PYX_ERR(0, 4305, __pyx_L3_error)
22678 CYTHON_FALLTHROUGH;
22680 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_grad_w_dV)) != 0)) kw_args--;
22682 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedGradShape", 1, 3, 3, 2); __PYX_ERR(0, 4305, __pyx_L3_error)
22685 if (unlikely(kw_args > 0)) {
22686 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateShape_X_weightedGradShape") < 0)) __PYX_ERR(0, 4305, __pyx_L3_error)
22688 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
22689 goto __pyx_L5_argtuple_error;
22691 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22692 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22693 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22695 __pyx_v_v = ((PyArrayObject *)values[0]);
22696 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
22697 __pyx_v_v_X_grad_w_dV = ((PyArrayObject *)values[2]);
22699 goto __pyx_L4_argument_unpacking_done;
22700 __pyx_L5_argtuple_error:;
22701 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedGradShape", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4305, __pyx_L3_error)
22703 __Pyx_AddTraceback(
"cfemIntegrals.calculateShape_X_weightedGradShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
22704 __Pyx_RefNannyFinishContext();
22706 __pyx_L4_argument_unpacking_done:;
22707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4305, __pyx_L1_error)
22708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 4306, __pyx_L1_error)
22709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"v_X_grad_w_dV", 0))) __PYX_ERR(0, 4307, __pyx_L1_error)
22710 __pyx_r = __pyx_pf_13cfemIntegrals_188calculateShape_X_weightedGradShape(__pyx_self, __pyx_v_v, __pyx_v_grad_w_dV, __pyx_v_v_X_grad_w_dV);
22717 __Pyx_RefNannyFinishContext();
22721 static PyObject *__pyx_pf_13cfemIntegrals_188calculateShape_X_weightedGradShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v_X_grad_w_dV) {
22722 int __pyx_v_nElements_global;
22723 int __pyx_v_nQuadraturePoints_element;
22724 int __pyx_v_nDOF_trial_element;
22725 int __pyx_v_nDOF_test_element;
22726 int __pyx_v_nSpace;
22727 PyObject *__pyx_r = NULL;
22728 __Pyx_RefNannyDeclarations
22729 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedGradShape", 0);
22738 __pyx_v_nElements_global = (__pyx_v_v_X_grad_w_dV->dimensions[0]);
22747 __pyx_v_nQuadraturePoints_element = (__pyx_v_v_X_grad_w_dV->dimensions[1]);
22756 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_grad_w_dV->dimensions[2]);
22765 __pyx_v_nDOF_test_element = (__pyx_v_v_X_grad_w_dV->dimensions[3]);
22774 __pyx_v_nSpace = (__pyx_v_v_X_grad_w_dV->dimensions[4]);
22783 calculateShape_X_weightedGradShape(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_v_X_grad_w_dV->data));
22794 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22795 __Pyx_XGIVEREF(__pyx_r);
22796 __Pyx_RefNannyFinishContext();
22809 static PyObject *__pyx_pw_13cfemIntegrals_191calculateGradShape_X_weightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22810 static PyMethodDef __pyx_mdef_13cfemIntegrals_191calculateGradShape_X_weightedShape = {
"calculateGradShape_X_weightedShape", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_191calculateGradShape_X_weightedShape, METH_VARARGS|METH_KEYWORDS, 0};
22811 static PyObject *__pyx_pw_13cfemIntegrals_191calculateGradShape_X_weightedShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22812 PyArrayObject *__pyx_v_grad_v = 0;
22813 PyArrayObject *__pyx_v_w_dV = 0;
22814 PyArrayObject *__pyx_v_grad_v_X_w_dV = 0;
22815 int __pyx_lineno = 0;
22816 const char *__pyx_filename = NULL;
22817 int __pyx_clineno = 0;
22818 PyObject *__pyx_r = 0;
22819 __Pyx_RefNannyDeclarations
22820 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShape (wrapper)", 0);
22822 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_v,&__pyx_n_s_w_dV,&__pyx_n_s_grad_v_X_w_dV,0};
22823 PyObject* values[3] = {0,0,0};
22824 if (unlikely(__pyx_kwds)) {
22825 Py_ssize_t kw_args;
22826 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22827 switch (pos_args) {
22828 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22829 CYTHON_FALLTHROUGH;
22830 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22831 CYTHON_FALLTHROUGH;
22832 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22833 CYTHON_FALLTHROUGH;
22835 default:
goto __pyx_L5_argtuple_error;
22837 kw_args = PyDict_Size(__pyx_kwds);
22838 switch (pos_args) {
22840 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
22841 else goto __pyx_L5_argtuple_error;
22842 CYTHON_FALLTHROUGH;
22844 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
22846 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShape", 1, 3, 3, 1); __PYX_ERR(0, 4321, __pyx_L3_error)
22848 CYTHON_FALLTHROUGH;
22850 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_w_dV)) != 0)) kw_args--;
22852 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShape", 1, 3, 3, 2); __PYX_ERR(0, 4321, __pyx_L3_error)
22855 if (unlikely(kw_args > 0)) {
22856 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGradShape_X_weightedShape") < 0)) __PYX_ERR(0, 4321, __pyx_L3_error)
22858 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
22859 goto __pyx_L5_argtuple_error;
22861 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22862 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22863 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22865 __pyx_v_grad_v = ((PyArrayObject *)values[0]);
22866 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
22867 __pyx_v_grad_v_X_w_dV = ((PyArrayObject *)values[2]);
22869 goto __pyx_L4_argument_unpacking_done;
22870 __pyx_L5_argtuple_error:;
22871 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShape", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4321, __pyx_L3_error)
22873 __Pyx_AddTraceback(
"cfemIntegrals.calculateGradShape_X_weightedShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
22874 __Pyx_RefNannyFinishContext();
22876 __pyx_L4_argument_unpacking_done:;
22877 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4321, __pyx_L1_error)
22878 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 4322, __pyx_L1_error)
22879 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_w_dV", 0))) __PYX_ERR(0, 4323, __pyx_L1_error)
22880 __pyx_r = __pyx_pf_13cfemIntegrals_190calculateGradShape_X_weightedShape(__pyx_self, __pyx_v_grad_v, __pyx_v_w_dV, __pyx_v_grad_v_X_w_dV);
22887 __Pyx_RefNannyFinishContext();
22891 static PyObject *__pyx_pf_13cfemIntegrals_190calculateGradShape_X_weightedShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_grad_v_X_w_dV) {
22892 int __pyx_v_nElements_global;
22893 int __pyx_v_nQuadraturePoints_element;
22894 int __pyx_v_nDOF_trial_element;
22895 int __pyx_v_nDOF_test_element;
22896 int __pyx_v_nSpace;
22897 PyObject *__pyx_r = NULL;
22898 __Pyx_RefNannyDeclarations
22899 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShape", 0);
22908 __pyx_v_nElements_global = (__pyx_v_grad_v_X_w_dV->dimensions[0]);
22917 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_w_dV->dimensions[1]);
22926 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_w_dV->dimensions[2]);
22935 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_w_dV->dimensions[3]);
22944 __pyx_v_nSpace = (__pyx_v_grad_v_X_w_dV->dimensions[4]);
22953 calculateGradShape_X_weightedShape(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_grad_v_X_w_dV->data));
22964 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22965 __Pyx_XGIVEREF(__pyx_r);
22966 __Pyx_RefNannyFinishContext();
22979 static PyObject *__pyx_pw_13cfemIntegrals_193calculateGradShape_X_weightedGradShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22980 static PyMethodDef __pyx_mdef_13cfemIntegrals_193calculateGradShape_X_weightedGradShape = {
"calculateGradShape_X_weightedGradShape", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_193calculateGradShape_X_weightedGradShape, METH_VARARGS|METH_KEYWORDS, 0};
22981 static PyObject *__pyx_pw_13cfemIntegrals_193calculateGradShape_X_weightedGradShape(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22982 PyArrayObject *__pyx_v_grad_v = 0;
22983 PyArrayObject *__pyx_v_grad_w_dV = 0;
22984 PyArrayObject *__pyx_v_grad_v_X_grad_w_dV = 0;
22985 int __pyx_lineno = 0;
22986 const char *__pyx_filename = NULL;
22987 int __pyx_clineno = 0;
22988 PyObject *__pyx_r = 0;
22989 __Pyx_RefNannyDeclarations
22990 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedGradShape (wrapper)", 0);
22992 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_grad_v_X_grad_w_dV,0};
22993 PyObject* values[3] = {0,0,0};
22994 if (unlikely(__pyx_kwds)) {
22995 Py_ssize_t kw_args;
22996 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22997 switch (pos_args) {
22998 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22999 CYTHON_FALLTHROUGH;
23000 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23001 CYTHON_FALLTHROUGH;
23002 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23003 CYTHON_FALLTHROUGH;
23005 default:
goto __pyx_L5_argtuple_error;
23007 kw_args = PyDict_Size(__pyx_kwds);
23008 switch (pos_args) {
23010 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
23011 else goto __pyx_L5_argtuple_error;
23012 CYTHON_FALLTHROUGH;
23014 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
23016 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedGradShape", 1, 3, 3, 1); __PYX_ERR(0, 4337, __pyx_L3_error)
23018 CYTHON_FALLTHROUGH;
23020 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_grad_w_dV)) != 0)) kw_args--;
23022 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedGradShape", 1, 3, 3, 2); __PYX_ERR(0, 4337, __pyx_L3_error)
23025 if (unlikely(kw_args > 0)) {
23026 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGradShape_X_weightedGradShape") < 0)) __PYX_ERR(0, 4337, __pyx_L3_error)
23028 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
23029 goto __pyx_L5_argtuple_error;
23031 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23032 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23033 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23035 __pyx_v_grad_v = ((PyArrayObject *)values[0]);
23036 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
23037 __pyx_v_grad_v_X_grad_w_dV = ((PyArrayObject *)values[2]);
23039 goto __pyx_L4_argument_unpacking_done;
23040 __pyx_L5_argtuple_error:;
23041 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedGradShape", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4337, __pyx_L3_error)
23043 __Pyx_AddTraceback(
"cfemIntegrals.calculateGradShape_X_weightedGradShape", __pyx_clineno, __pyx_lineno, __pyx_filename);
23044 __Pyx_RefNannyFinishContext();
23046 __pyx_L4_argument_unpacking_done:;
23047 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4337, __pyx_L1_error)
23048 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 4338, __pyx_L1_error)
23049 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_grad_w_dV", 0))) __PYX_ERR(0, 4339, __pyx_L1_error)
23050 __pyx_r = __pyx_pf_13cfemIntegrals_192calculateGradShape_X_weightedGradShape(__pyx_self, __pyx_v_grad_v, __pyx_v_grad_w_dV, __pyx_v_grad_v_X_grad_w_dV);
23057 __Pyx_RefNannyFinishContext();
23061 static PyObject *__pyx_pf_13cfemIntegrals_192calculateGradShape_X_weightedGradShape(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV) {
23062 int __pyx_v_nElements_global;
23063 int __pyx_v_nQuadraturePoints_element;
23064 int __pyx_v_nDOF_trial_element;
23065 int __pyx_v_nDOF_test_element;
23066 int __pyx_v_nSpace;
23067 PyObject *__pyx_r = NULL;
23068 __Pyx_RefNannyDeclarations
23069 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedGradShape", 0);
23078 __pyx_v_nElements_global = (__pyx_v_grad_v_X_grad_w_dV->dimensions[0]);
23087 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[1]);
23096 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[2]);
23105 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[3]);
23114 __pyx_v_nSpace = (__pyx_v_grad_v_X_grad_w_dV->dimensions[4]);
23123 calculateGradShape_X_weightedGradShape(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_grad_v_X_grad_w_dV->data));
23134 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23135 __Pyx_XGIVEREF(__pyx_r);
23136 __Pyx_RefNannyFinishContext();
23149 static PyObject *__pyx_pw_13cfemIntegrals_195calculateWeightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23150 static PyMethodDef __pyx_mdef_13cfemIntegrals_195calculateWeightedShapeTrace = {
"calculateWeightedShapeTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_195calculateWeightedShapeTrace, METH_VARARGS|METH_KEYWORDS, 0};
23151 static PyObject *__pyx_pw_13cfemIntegrals_195calculateWeightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23152 PyArrayObject *__pyx_v_dSR = 0;
23153 PyArrayObject *__pyx_v_sqrt_det_g = 0;
23154 PyArrayObject *__pyx_v_w = 0;
23155 PyArrayObject *__pyx_v_w_dS = 0;
23156 int __pyx_lineno = 0;
23157 const char *__pyx_filename = NULL;
23158 int __pyx_clineno = 0;
23159 PyObject *__pyx_r = 0;
23160 __Pyx_RefNannyDeclarations
23161 __Pyx_RefNannySetupContext(
"calculateWeightedShapeTrace (wrapper)", 0);
23163 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dSR,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_w,&__pyx_n_s_w_dS,0};
23164 PyObject* values[4] = {0,0,0,0};
23165 if (unlikely(__pyx_kwds)) {
23166 Py_ssize_t kw_args;
23167 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23168 switch (pos_args) {
23169 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23170 CYTHON_FALLTHROUGH;
23171 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23172 CYTHON_FALLTHROUGH;
23173 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23174 CYTHON_FALLTHROUGH;
23175 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23176 CYTHON_FALLTHROUGH;
23178 default:
goto __pyx_L5_argtuple_error;
23180 kw_args = PyDict_Size(__pyx_kwds);
23181 switch (pos_args) {
23183 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dSR)) != 0)) kw_args--;
23184 else goto __pyx_L5_argtuple_error;
23185 CYTHON_FALLTHROUGH;
23187 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
23189 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeTrace", 1, 4, 4, 1); __PYX_ERR(0, 4353, __pyx_L3_error)
23191 CYTHON_FALLTHROUGH;
23193 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
23195 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeTrace", 1, 4, 4, 2); __PYX_ERR(0, 4353, __pyx_L3_error)
23197 CYTHON_FALLTHROUGH;
23199 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
23201 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeTrace", 1, 4, 4, 3); __PYX_ERR(0, 4353, __pyx_L3_error)
23204 if (unlikely(kw_args > 0)) {
23205 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWeightedShapeTrace") < 0)) __PYX_ERR(0, 4353, __pyx_L3_error)
23207 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
23208 goto __pyx_L5_argtuple_error;
23210 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23211 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23212 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23213 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23215 __pyx_v_dSR = ((PyArrayObject *)values[0]);
23216 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[1]);
23217 __pyx_v_w = ((PyArrayObject *)values[2]);
23218 __pyx_v_w_dS = ((PyArrayObject *)values[3]);
23220 goto __pyx_L4_argument_unpacking_done;
23221 __pyx_L5_argtuple_error:;
23222 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeTrace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4353, __pyx_L3_error)
23224 __Pyx_AddTraceback(
"cfemIntegrals.calculateWeightedShapeTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
23225 __Pyx_RefNannyFinishContext();
23227 __pyx_L4_argument_unpacking_done:;
23228 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dSR), __pyx_ptype_5numpy_ndarray, 1,
"dSR", 0))) __PYX_ERR(0, 4353, __pyx_L1_error)
23229 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 4354, __pyx_L1_error)
23230 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4355, __pyx_L1_error)
23231 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4356, __pyx_L1_error)
23232 __pyx_r = __pyx_pf_13cfemIntegrals_194calculateWeightedShapeTrace(__pyx_self, __pyx_v_dSR, __pyx_v_sqrt_det_g, __pyx_v_w, __pyx_v_w_dS);
23239 __Pyx_RefNannyFinishContext();
23243 static PyObject *__pyx_pf_13cfemIntegrals_194calculateWeightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dSR, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dS) {
23244 int __pyx_v_nElements_global;
23245 int __pyx_v_nElementBoundaries_element;
23246 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
23247 int __pyx_v_nDOF_test_element;
23248 PyObject *__pyx_r = NULL;
23249 __Pyx_RefNannyDeclarations
23250 __Pyx_RefNannySetupContext(
"calculateWeightedShapeTrace", 0);
23259 __pyx_v_nElements_global = (__pyx_v_w_dS->dimensions[0]);
23268 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
23277 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
23286 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
23295 calculateWeightedShapeTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_dSR->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_w_dS->data));
23306 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23307 __Pyx_XGIVEREF(__pyx_r);
23308 __Pyx_RefNannyFinishContext();
23321 static PyObject *__pyx_pw_13cfemIntegrals_197calculateShape_X_weightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23322 static PyMethodDef __pyx_mdef_13cfemIntegrals_197calculateShape_X_weightedShapeTrace = {
"calculateShape_X_weightedShapeTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_197calculateShape_X_weightedShapeTrace, METH_VARARGS|METH_KEYWORDS, 0};
23323 static PyObject *__pyx_pw_13cfemIntegrals_197calculateShape_X_weightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23324 PyArrayObject *__pyx_v_v = 0;
23325 PyArrayObject *__pyx_v_w_dS = 0;
23326 PyArrayObject *__pyx_v_v_X_w_dS = 0;
23327 int __pyx_lineno = 0;
23328 const char *__pyx_filename = NULL;
23329 int __pyx_clineno = 0;
23330 PyObject *__pyx_r = 0;
23331 __Pyx_RefNannyDeclarations
23332 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShapeTrace (wrapper)", 0);
23334 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_w_dS,&__pyx_n_s_v_X_w_dS,0};
23335 PyObject* values[3] = {0,0,0};
23336 if (unlikely(__pyx_kwds)) {
23337 Py_ssize_t kw_args;
23338 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23339 switch (pos_args) {
23340 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23341 CYTHON_FALLTHROUGH;
23342 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23343 CYTHON_FALLTHROUGH;
23344 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23345 CYTHON_FALLTHROUGH;
23347 default:
goto __pyx_L5_argtuple_error;
23349 kw_args = PyDict_Size(__pyx_kwds);
23350 switch (pos_args) {
23352 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
23353 else goto __pyx_L5_argtuple_error;
23354 CYTHON_FALLTHROUGH;
23356 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
23358 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeTrace", 1, 3, 3, 1); __PYX_ERR(0, 4369, __pyx_L3_error)
23360 CYTHON_FALLTHROUGH;
23362 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_w_dS)) != 0)) kw_args--;
23364 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeTrace", 1, 3, 3, 2); __PYX_ERR(0, 4369, __pyx_L3_error)
23367 if (unlikely(kw_args > 0)) {
23368 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateShape_X_weightedShapeTrace") < 0)) __PYX_ERR(0, 4369, __pyx_L3_error)
23370 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
23371 goto __pyx_L5_argtuple_error;
23373 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23374 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23375 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23377 __pyx_v_v = ((PyArrayObject *)values[0]);
23378 __pyx_v_w_dS = ((PyArrayObject *)values[1]);
23379 __pyx_v_v_X_w_dS = ((PyArrayObject *)values[2]);
23381 goto __pyx_L4_argument_unpacking_done;
23382 __pyx_L5_argtuple_error:;
23383 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeTrace", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4369, __pyx_L3_error)
23385 __Pyx_AddTraceback(
"cfemIntegrals.calculateShape_X_weightedShapeTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
23386 __Pyx_RefNannyFinishContext();
23388 __pyx_L4_argument_unpacking_done:;
23389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4369, __pyx_L1_error)
23390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4370, __pyx_L1_error)
23391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"v_X_w_dS", 0))) __PYX_ERR(0, 4371, __pyx_L1_error)
23392 __pyx_r = __pyx_pf_13cfemIntegrals_196calculateShape_X_weightedShapeTrace(__pyx_self, __pyx_v_v, __pyx_v_w_dS, __pyx_v_v_X_w_dS);
23399 __Pyx_RefNannyFinishContext();
23403 static PyObject *__pyx_pf_13cfemIntegrals_196calculateShape_X_weightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_v_X_w_dS) {
23404 int __pyx_v_nElements_global;
23405 int __pyx_v_nElementBoundaries_element;
23406 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
23407 int __pyx_v_nDOF_trial_element;
23408 int __pyx_v_nDOF_test_element;
23409 PyObject *__pyx_r = NULL;
23410 __Pyx_RefNannyDeclarations
23411 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShapeTrace", 0);
23420 __pyx_v_nElements_global = (__pyx_v_v_X_w_dS->dimensions[0]);
23429 __pyx_v_nElementBoundaries_element = (__pyx_v_v_X_w_dS->dimensions[1]);
23438 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_v_X_w_dS->dimensions[2]);
23447 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_w_dS->dimensions[3]);
23456 __pyx_v_nDOF_test_element = (__pyx_v_v_X_w_dS->dimensions[4]);
23465 calculateShape_X_weightedShapeTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_v_X_w_dS->data));
23476 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23477 __Pyx_XGIVEREF(__pyx_r);
23478 __Pyx_RefNannyFinishContext();
23491 static PyObject *__pyx_pw_13cfemIntegrals_199calculateGradShape_X_weightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23492 static PyMethodDef __pyx_mdef_13cfemIntegrals_199calculateGradShape_X_weightedShapeTrace = {
"calculateGradShape_X_weightedShapeTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_199calculateGradShape_X_weightedShapeTrace, METH_VARARGS|METH_KEYWORDS, 0};
23493 static PyObject *__pyx_pw_13cfemIntegrals_199calculateGradShape_X_weightedShapeTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23494 PyArrayObject *__pyx_v_grad_v = 0;
23495 PyArrayObject *__pyx_v_w_dS = 0;
23496 PyArrayObject *__pyx_v_grad_v_X_w_dS = 0;
23497 int __pyx_lineno = 0;
23498 const char *__pyx_filename = NULL;
23499 int __pyx_clineno = 0;
23500 PyObject *__pyx_r = 0;
23501 __Pyx_RefNannyDeclarations
23502 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShapeTrace (wrapper)", 0);
23504 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_grad_v,&__pyx_n_s_w_dS,&__pyx_n_s_grad_v_X_w_dS,0};
23505 PyObject* values[3] = {0,0,0};
23506 if (unlikely(__pyx_kwds)) {
23507 Py_ssize_t kw_args;
23508 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23509 switch (pos_args) {
23510 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23511 CYTHON_FALLTHROUGH;
23512 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23513 CYTHON_FALLTHROUGH;
23514 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23515 CYTHON_FALLTHROUGH;
23517 default:
goto __pyx_L5_argtuple_error;
23519 kw_args = PyDict_Size(__pyx_kwds);
23520 switch (pos_args) {
23522 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
23523 else goto __pyx_L5_argtuple_error;
23524 CYTHON_FALLTHROUGH;
23526 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
23528 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeTrace", 1, 3, 3, 1); __PYX_ERR(0, 4385, __pyx_L3_error)
23530 CYTHON_FALLTHROUGH;
23532 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_w_dS)) != 0)) kw_args--;
23534 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeTrace", 1, 3, 3, 2); __PYX_ERR(0, 4385, __pyx_L3_error)
23537 if (unlikely(kw_args > 0)) {
23538 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGradShape_X_weightedShapeTrace") < 0)) __PYX_ERR(0, 4385, __pyx_L3_error)
23540 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
23541 goto __pyx_L5_argtuple_error;
23543 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23544 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23545 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23547 __pyx_v_grad_v = ((PyArrayObject *)values[0]);
23548 __pyx_v_w_dS = ((PyArrayObject *)values[1]);
23549 __pyx_v_grad_v_X_w_dS = ((PyArrayObject *)values[2]);
23551 goto __pyx_L4_argument_unpacking_done;
23552 __pyx_L5_argtuple_error:;
23553 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeTrace", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4385, __pyx_L3_error)
23555 __Pyx_AddTraceback(
"cfemIntegrals.calculateGradShape_X_weightedShapeTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
23556 __Pyx_RefNannyFinishContext();
23558 __pyx_L4_argument_unpacking_done:;
23559 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4385, __pyx_L1_error)
23560 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 4386, __pyx_L1_error)
23561 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_w_dS", 0))) __PYX_ERR(0, 4387, __pyx_L1_error)
23562 __pyx_r = __pyx_pf_13cfemIntegrals_198calculateGradShape_X_weightedShapeTrace(__pyx_self, __pyx_v_grad_v, __pyx_v_w_dS, __pyx_v_grad_v_X_w_dS);
23569 __Pyx_RefNannyFinishContext();
23573 static PyObject *__pyx_pf_13cfemIntegrals_198calculateGradShape_X_weightedShapeTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_grad_v_X_w_dS) {
23574 int __pyx_v_nElements_global;
23575 int __pyx_v_nElementBoundaries_element;
23576 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
23577 int __pyx_v_nDOF_trial_element;
23578 int __pyx_v_nDOF_test_element;
23579 int __pyx_v_nSpace;
23580 PyObject *__pyx_r = NULL;
23581 __Pyx_RefNannyDeclarations
23582 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShapeTrace", 0);
23591 __pyx_v_nElements_global = (__pyx_v_grad_v_X_w_dS->dimensions[0]);
23600 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_v_X_w_dS->dimensions[1]);
23609 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_grad_v_X_w_dS->dimensions[2]);
23618 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_w_dS->dimensions[3]);
23627 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_w_dS->dimensions[4]);
23636 __pyx_v_nSpace = (__pyx_v_grad_v_X_w_dS->dimensions[5]);
23645 calculateGradShape_X_weightedShapeTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_grad_v_X_w_dS->data));
23656 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23657 __Pyx_XGIVEREF(__pyx_r);
23658 __Pyx_RefNannyFinishContext();
23671 static PyObject *__pyx_pw_13cfemIntegrals_201calculateIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23672 static PyMethodDef __pyx_mdef_13cfemIntegrals_201calculateIntegrationWeights = {
"calculateIntegrationWeights", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_201calculateIntegrationWeights, METH_VARARGS|METH_KEYWORDS, 0};
23673 static PyObject *__pyx_pw_13cfemIntegrals_201calculateIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23674 PyArrayObject *__pyx_v_abs_det_J = 0;
23675 PyArrayObject *__pyx_v_referenceWeights = 0;
23676 PyArrayObject *__pyx_v_weights = 0;
23677 int __pyx_lineno = 0;
23678 const char *__pyx_filename = NULL;
23679 int __pyx_clineno = 0;
23680 PyObject *__pyx_r = 0;
23681 __Pyx_RefNannyDeclarations
23682 __Pyx_RefNannySetupContext(
"calculateIntegrationWeights (wrapper)", 0);
23684 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_abs_det_J,&__pyx_n_s_referenceWeights,&__pyx_n_s_weights,0};
23685 PyObject* values[3] = {0,0,0};
23686 if (unlikely(__pyx_kwds)) {
23687 Py_ssize_t kw_args;
23688 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23689 switch (pos_args) {
23690 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23691 CYTHON_FALLTHROUGH;
23692 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23693 CYTHON_FALLTHROUGH;
23694 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23695 CYTHON_FALLTHROUGH;
23697 default:
goto __pyx_L5_argtuple_error;
23699 kw_args = PyDict_Size(__pyx_kwds);
23700 switch (pos_args) {
23702 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_abs_det_J)) != 0)) kw_args--;
23703 else goto __pyx_L5_argtuple_error;
23704 CYTHON_FALLTHROUGH;
23706 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_referenceWeights)) != 0)) kw_args--;
23708 __Pyx_RaiseArgtupleInvalid(
"calculateIntegrationWeights", 1, 3, 3, 1); __PYX_ERR(0, 4403, __pyx_L3_error)
23710 CYTHON_FALLTHROUGH;
23712 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights)) != 0)) kw_args--;
23714 __Pyx_RaiseArgtupleInvalid(
"calculateIntegrationWeights", 1, 3, 3, 2); __PYX_ERR(0, 4403, __pyx_L3_error)
23717 if (unlikely(kw_args > 0)) {
23718 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateIntegrationWeights") < 0)) __PYX_ERR(0, 4403, __pyx_L3_error)
23720 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
23721 goto __pyx_L5_argtuple_error;
23723 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23724 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23725 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23727 __pyx_v_abs_det_J = ((PyArrayObject *)values[0]);
23728 __pyx_v_referenceWeights = ((PyArrayObject *)values[1]);
23729 __pyx_v_weights = ((PyArrayObject *)values[2]);
23731 goto __pyx_L4_argument_unpacking_done;
23732 __pyx_L5_argtuple_error:;
23733 __Pyx_RaiseArgtupleInvalid(
"calculateIntegrationWeights", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4403, __pyx_L3_error)
23735 __Pyx_AddTraceback(
"cfemIntegrals.calculateIntegrationWeights", __pyx_clineno, __pyx_lineno, __pyx_filename);
23736 __Pyx_RefNannyFinishContext();
23738 __pyx_L4_argument_unpacking_done:;
23739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_abs_det_J), __pyx_ptype_5numpy_ndarray, 1,
"abs_det_J", 0))) __PYX_ERR(0, 4403, __pyx_L1_error)
23740 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_referenceWeights), __pyx_ptype_5numpy_ndarray, 1,
"referenceWeights", 0))) __PYX_ERR(0, 4404, __pyx_L1_error)
23741 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1,
"weights", 0))) __PYX_ERR(0, 4405, __pyx_L1_error)
23742 __pyx_r = __pyx_pf_13cfemIntegrals_200calculateIntegrationWeights(__pyx_self, __pyx_v_abs_det_J, __pyx_v_referenceWeights, __pyx_v_weights);
23749 __Pyx_RefNannyFinishContext();
23753 static PyObject *__pyx_pf_13cfemIntegrals_200calculateIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_abs_det_J, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights) {
23754 int __pyx_v_nElements_global;
23755 int __pyx_v_nQuadraturePoints_element;
23756 PyObject *__pyx_r = NULL;
23757 __Pyx_RefNannyDeclarations
23758 __Pyx_RefNannySetupContext(
"calculateIntegrationWeights", 0);
23767 __pyx_v_nElements_global = (__pyx_v_abs_det_J->dimensions[0]);
23776 __pyx_v_nQuadraturePoints_element = (__pyx_v_abs_det_J->dimensions[1]);
23785 calculateIntegrationWeights(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_abs_det_J->data), ((
double *)__pyx_v_referenceWeights->data), ((
double *)__pyx_v_weights->data));
23796 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23797 __Pyx_XGIVEREF(__pyx_r);
23798 __Pyx_RefNannyFinishContext();
23811 static PyObject *__pyx_pw_13cfemIntegrals_203calculateElementBoundaryIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23812 static PyMethodDef __pyx_mdef_13cfemIntegrals_203calculateElementBoundaryIntegrationWeights = {
"calculateElementBoundaryIntegrationWeights", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_203calculateElementBoundaryIntegrationWeights, METH_VARARGS|METH_KEYWORDS, 0};
23813 static PyObject *__pyx_pw_13cfemIntegrals_203calculateElementBoundaryIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23814 PyArrayObject *__pyx_v_sqrt_det_g = 0;
23815 PyArrayObject *__pyx_v_referenceWeights = 0;
23816 PyArrayObject *__pyx_v_weights = 0;
23817 int __pyx_lineno = 0;
23818 const char *__pyx_filename = NULL;
23819 int __pyx_clineno = 0;
23820 PyObject *__pyx_r = 0;
23821 __Pyx_RefNannyDeclarations
23822 __Pyx_RefNannySetupContext(
"calculateElementBoundaryIntegrationWeights (wrapper)", 0);
23824 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sqrt_det_g,&__pyx_n_s_referenceWeights,&__pyx_n_s_weights,0};
23825 PyObject* values[3] = {0,0,0};
23826 if (unlikely(__pyx_kwds)) {
23827 Py_ssize_t kw_args;
23828 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23829 switch (pos_args) {
23830 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23831 CYTHON_FALLTHROUGH;
23832 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23833 CYTHON_FALLTHROUGH;
23834 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23835 CYTHON_FALLTHROUGH;
23837 default:
goto __pyx_L5_argtuple_error;
23839 kw_args = PyDict_Size(__pyx_kwds);
23840 switch (pos_args) {
23842 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
23843 else goto __pyx_L5_argtuple_error;
23844 CYTHON_FALLTHROUGH;
23846 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_referenceWeights)) != 0)) kw_args--;
23848 __Pyx_RaiseArgtupleInvalid(
"calculateElementBoundaryIntegrationWeights", 1, 3, 3, 1); __PYX_ERR(0, 4413, __pyx_L3_error)
23850 CYTHON_FALLTHROUGH;
23852 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights)) != 0)) kw_args--;
23854 __Pyx_RaiseArgtupleInvalid(
"calculateElementBoundaryIntegrationWeights", 1, 3, 3, 2); __PYX_ERR(0, 4413, __pyx_L3_error)
23857 if (unlikely(kw_args > 0)) {
23858 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateElementBoundaryIntegrationWeights") < 0)) __PYX_ERR(0, 4413, __pyx_L3_error)
23860 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
23861 goto __pyx_L5_argtuple_error;
23863 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23864 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23865 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23867 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[0]);
23868 __pyx_v_referenceWeights = ((PyArrayObject *)values[1]);
23869 __pyx_v_weights = ((PyArrayObject *)values[2]);
23871 goto __pyx_L4_argument_unpacking_done;
23872 __pyx_L5_argtuple_error:;
23873 __Pyx_RaiseArgtupleInvalid(
"calculateElementBoundaryIntegrationWeights", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4413, __pyx_L3_error)
23875 __Pyx_AddTraceback(
"cfemIntegrals.calculateElementBoundaryIntegrationWeights", __pyx_clineno, __pyx_lineno, __pyx_filename);
23876 __Pyx_RefNannyFinishContext();
23878 __pyx_L4_argument_unpacking_done:;
23879 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
23880 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_referenceWeights), __pyx_ptype_5numpy_ndarray, 1,
"referenceWeights", 0))) __PYX_ERR(0, 4414, __pyx_L1_error)
23881 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1,
"weights", 0))) __PYX_ERR(0, 4415, __pyx_L1_error)
23882 __pyx_r = __pyx_pf_13cfemIntegrals_202calculateElementBoundaryIntegrationWeights(__pyx_self, __pyx_v_sqrt_det_g, __pyx_v_referenceWeights, __pyx_v_weights);
23889 __Pyx_RefNannyFinishContext();
23893 static PyObject *__pyx_pf_13cfemIntegrals_202calculateElementBoundaryIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights) {
23894 int __pyx_v_nElements_global;
23895 int __pyx_v_nElementBoundaries_element;
23896 int __pyx_v_nQuadraturePoints_elementBoundary;
23897 PyObject *__pyx_r = NULL;
23898 __Pyx_RefNannyDeclarations
23899 __Pyx_RefNannySetupContext(
"calculateElementBoundaryIntegrationWeights", 0);
23908 __pyx_v_nElements_global = (__pyx_v_sqrt_det_g->dimensions[0]);
23917 __pyx_v_nElementBoundaries_element = (__pyx_v_sqrt_det_g->dimensions[1]);
23926 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_sqrt_det_g->dimensions[2]);
23935 calculateElementBoundaryIntegrationWeights(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_referenceWeights->data), ((
double *)__pyx_v_weights->data));
23946 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
23947 __Pyx_XGIVEREF(__pyx_r);
23948 __Pyx_RefNannyFinishContext();
23961 static PyObject *__pyx_pw_13cfemIntegrals_205calculateFiniteElementFunctionValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23962 static PyMethodDef __pyx_mdef_13cfemIntegrals_205calculateFiniteElementFunctionValues = {
"calculateFiniteElementFunctionValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_205calculateFiniteElementFunctionValues, METH_VARARGS|METH_KEYWORDS, 0};
23963 static PyObject *__pyx_pw_13cfemIntegrals_205calculateFiniteElementFunctionValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23964 PyArrayObject *__pyx_v_l2g = 0;
23965 PyArrayObject *__pyx_v_dof = 0;
23966 PyArrayObject *__pyx_v_v = 0;
23967 PyArrayObject *__pyx_v_u = 0;
23968 int __pyx_lineno = 0;
23969 const char *__pyx_filename = NULL;
23970 int __pyx_clineno = 0;
23971 PyObject *__pyx_r = 0;
23972 __Pyx_RefNannyDeclarations
23973 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValues (wrapper)", 0);
23975 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_v,&__pyx_n_s_u,0};
23976 PyObject* values[4] = {0,0,0,0};
23977 if (unlikely(__pyx_kwds)) {
23978 Py_ssize_t kw_args;
23979 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23980 switch (pos_args) {
23981 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
23982 CYTHON_FALLTHROUGH;
23983 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23984 CYTHON_FALLTHROUGH;
23985 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23986 CYTHON_FALLTHROUGH;
23987 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23988 CYTHON_FALLTHROUGH;
23990 default:
goto __pyx_L5_argtuple_error;
23992 kw_args = PyDict_Size(__pyx_kwds);
23993 switch (pos_args) {
23995 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
23996 else goto __pyx_L5_argtuple_error;
23997 CYTHON_FALLTHROUGH;
23999 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
24001 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValues", 1, 4, 4, 1); __PYX_ERR(0, 4425, __pyx_L3_error)
24003 CYTHON_FALLTHROUGH;
24005 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
24007 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValues", 1, 4, 4, 2); __PYX_ERR(0, 4425, __pyx_L3_error)
24009 CYTHON_FALLTHROUGH;
24011 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24013 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValues", 1, 4, 4, 3); __PYX_ERR(0, 4425, __pyx_L3_error)
24016 if (unlikely(kw_args > 0)) {
24017 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionValues") < 0)) __PYX_ERR(0, 4425, __pyx_L3_error)
24019 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
24020 goto __pyx_L5_argtuple_error;
24022 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24023 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24024 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24025 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24027 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24028 __pyx_v_dof = ((PyArrayObject *)values[1]);
24029 __pyx_v_v = ((PyArrayObject *)values[2]);
24030 __pyx_v_u = ((PyArrayObject *)values[3]);
24032 goto __pyx_L4_argument_unpacking_done;
24033 __pyx_L5_argtuple_error:;
24034 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4425, __pyx_L3_error)
24036 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
24037 __Pyx_RefNannyFinishContext();
24039 __pyx_L4_argument_unpacking_done:;
24040 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4425, __pyx_L1_error)
24041 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 4426, __pyx_L1_error)
24042 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4427, __pyx_L1_error)
24043 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4428, __pyx_L1_error)
24044 __pyx_r = __pyx_pf_13cfemIntegrals_204calculateFiniteElementFunctionValues(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_v, __pyx_v_u);
24051 __Pyx_RefNannyFinishContext();
24055 static PyObject *__pyx_pf_13cfemIntegrals_204calculateFiniteElementFunctionValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u) {
24056 int __pyx_v_nElements_global;
24057 int __pyx_v_nQuadraturePoints_element;
24058 int __pyx_v_nDOF_trial_element;
24060 int __pyx_v_nComponents;
24061 PyObject *__pyx_r = NULL;
24062 __Pyx_RefNannyDeclarations
24065 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValues", 0);
24074 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
24083 __pyx_v_nQuadraturePoints_element = (__pyx_v_v->dimensions[1]);
24092 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
24101 __pyx_t_1 = __pyx_v_u->nd;
24102 __pyx_v_nd = __pyx_t_1;
24111 __pyx_v_nComponents = 1;
24120 __pyx_t_2 = ((__pyx_v_nd == 3) != 0);
24130 __pyx_v_nComponents = (__pyx_v_u->dimensions[2]);
24150 __pyx_v_nComponents = 1;
24161 calculateFiniteElementFunctionValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data));
24172 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24173 __Pyx_XGIVEREF(__pyx_r);
24174 __Pyx_RefNannyFinishContext();
24187 static PyObject *__pyx_pw_13cfemIntegrals_207calculateFiniteElementFunctionGradientValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24188 static PyMethodDef __pyx_mdef_13cfemIntegrals_207calculateFiniteElementFunctionGradientValues = {
"calculateFiniteElementFunctionGradientValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_207calculateFiniteElementFunctionGradientValues, METH_VARARGS|METH_KEYWORDS, 0};
24189 static PyObject *__pyx_pw_13cfemIntegrals_207calculateFiniteElementFunctionGradientValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24190 PyArrayObject *__pyx_v_l2g = 0;
24191 PyArrayObject *__pyx_v_dof = 0;
24192 PyArrayObject *__pyx_v_grad_v = 0;
24193 PyArrayObject *__pyx_v_grad_u = 0;
24194 int __pyx_lineno = 0;
24195 const char *__pyx_filename = NULL;
24196 int __pyx_clineno = 0;
24197 PyObject *__pyx_r = 0;
24198 __Pyx_RefNannyDeclarations
24199 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValues (wrapper)", 0);
24201 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_grad_v,&__pyx_n_s_grad_u,0};
24202 PyObject* values[4] = {0,0,0,0};
24203 if (unlikely(__pyx_kwds)) {
24204 Py_ssize_t kw_args;
24205 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24206 switch (pos_args) {
24207 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24208 CYTHON_FALLTHROUGH;
24209 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24210 CYTHON_FALLTHROUGH;
24211 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24212 CYTHON_FALLTHROUGH;
24213 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24214 CYTHON_FALLTHROUGH;
24216 default:
goto __pyx_L5_argtuple_error;
24218 kw_args = PyDict_Size(__pyx_kwds);
24219 switch (pos_args) {
24221 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24222 else goto __pyx_L5_argtuple_error;
24223 CYTHON_FALLTHROUGH;
24225 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
24227 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValues", 1, 4, 4, 1); __PYX_ERR(0, 4446, __pyx_L3_error)
24229 CYTHON_FALLTHROUGH;
24231 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
24233 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValues", 1, 4, 4, 2); __PYX_ERR(0, 4446, __pyx_L3_error)
24235 CYTHON_FALLTHROUGH;
24237 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
24239 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValues", 1, 4, 4, 3); __PYX_ERR(0, 4446, __pyx_L3_error)
24242 if (unlikely(kw_args > 0)) {
24243 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionGradientValues") < 0)) __PYX_ERR(0, 4446, __pyx_L3_error)
24245 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
24246 goto __pyx_L5_argtuple_error;
24248 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24249 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24250 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24251 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24253 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24254 __pyx_v_dof = ((PyArrayObject *)values[1]);
24255 __pyx_v_grad_v = ((PyArrayObject *)values[2]);
24256 __pyx_v_grad_u = ((PyArrayObject *)values[3]);
24258 goto __pyx_L4_argument_unpacking_done;
24259 __pyx_L5_argtuple_error:;
24260 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4446, __pyx_L3_error)
24262 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionGradientValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
24263 __Pyx_RefNannyFinishContext();
24265 __pyx_L4_argument_unpacking_done:;
24266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4446, __pyx_L1_error)
24267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 4447, __pyx_L1_error)
24268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4448, __pyx_L1_error)
24269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 4449, __pyx_L1_error)
24270 __pyx_r = __pyx_pf_13cfemIntegrals_206calculateFiniteElementFunctionGradientValues(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_grad_v, __pyx_v_grad_u);
24277 __Pyx_RefNannyFinishContext();
24281 static PyObject *__pyx_pf_13cfemIntegrals_206calculateFiniteElementFunctionGradientValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u) {
24282 int __pyx_v_nElements_global;
24283 int __pyx_v_nQuadraturePoints_element;
24284 int __pyx_v_nDOF_trial_element;
24286 int __pyx_v_nComponents;
24287 npy_intp __pyx_v_nSpace;
24288 PyObject *__pyx_r = NULL;
24289 __Pyx_RefNannyDeclarations
24292 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValues", 0);
24301 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
24310 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v->dimensions[1]);
24319 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
24328 __pyx_t_1 = __pyx_v_grad_u->nd;
24329 __pyx_v_nd = __pyx_t_1;
24338 __pyx_v_nComponents = 1;
24347 __pyx_t_2 = ((__pyx_v_nd == 4) != 0);
24357 __pyx_v_nComponents = (__pyx_v_grad_u->dimensions[2]);
24366 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[3]);
24386 __pyx_v_nComponents = 1;
24395 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
24406 calculateFiniteElementFunctionGradientValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_u->data));
24417 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24418 __Pyx_XGIVEREF(__pyx_r);
24419 __Pyx_RefNannyFinishContext();
24432 static PyObject *__pyx_pw_13cfemIntegrals_209calculateFiniteElementFunctionGradientTensorValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24433 static PyMethodDef __pyx_mdef_13cfemIntegrals_209calculateFiniteElementFunctionGradientTensorValues = {
"calculateFiniteElementFunctionGradientTensorValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_209calculateFiniteElementFunctionGradientTensorValues, METH_VARARGS|METH_KEYWORDS, 0};
24434 static PyObject *__pyx_pw_13cfemIntegrals_209calculateFiniteElementFunctionGradientTensorValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24435 PyArrayObject *__pyx_v_l2g = 0;
24436 PyArrayObject *__pyx_v_dof = 0;
24437 PyArrayObject *__pyx_v_grad_v_X_grad_w_dV = 0;
24438 PyArrayObject *__pyx_v_grad_u_X_grad_w_dV = 0;
24439 int __pyx_lineno = 0;
24440 const char *__pyx_filename = NULL;
24441 int __pyx_clineno = 0;
24442 PyObject *__pyx_r = 0;
24443 __Pyx_RefNannyDeclarations
24444 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientTensorValues (wrapper)", 0);
24446 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_grad_v_X_grad_w_dV,&__pyx_n_s_grad_u_X_grad_w_dV,0};
24447 PyObject* values[4] = {0,0,0,0};
24448 if (unlikely(__pyx_kwds)) {
24449 Py_ssize_t kw_args;
24450 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24451 switch (pos_args) {
24452 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24453 CYTHON_FALLTHROUGH;
24454 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24455 CYTHON_FALLTHROUGH;
24456 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24457 CYTHON_FALLTHROUGH;
24458 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24459 CYTHON_FALLTHROUGH;
24461 default:
goto __pyx_L5_argtuple_error;
24463 kw_args = PyDict_Size(__pyx_kwds);
24464 switch (pos_args) {
24466 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24467 else goto __pyx_L5_argtuple_error;
24468 CYTHON_FALLTHROUGH;
24470 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
24472 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientTensorValues", 1, 4, 4, 1); __PYX_ERR(0, 4470, __pyx_L3_error)
24474 CYTHON_FALLTHROUGH;
24476 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_grad_w_dV)) != 0)) kw_args--;
24478 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientTensorValues", 1, 4, 4, 2); __PYX_ERR(0, 4470, __pyx_L3_error)
24480 CYTHON_FALLTHROUGH;
24482 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u_X_grad_w_dV)) != 0)) kw_args--;
24484 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientTensorValues", 1, 4, 4, 3); __PYX_ERR(0, 4470, __pyx_L3_error)
24487 if (unlikely(kw_args > 0)) {
24488 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionGradientTensorValues") < 0)) __PYX_ERR(0, 4470, __pyx_L3_error)
24490 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
24491 goto __pyx_L5_argtuple_error;
24493 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24494 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24495 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24496 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24498 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24499 __pyx_v_dof = ((PyArrayObject *)values[1]);
24500 __pyx_v_grad_v_X_grad_w_dV = ((PyArrayObject *)values[2]);
24501 __pyx_v_grad_u_X_grad_w_dV = ((PyArrayObject *)values[3]);
24503 goto __pyx_L4_argument_unpacking_done;
24504 __pyx_L5_argtuple_error:;
24505 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientTensorValues", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4470, __pyx_L3_error)
24507 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionGradientTensorValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
24508 __Pyx_RefNannyFinishContext();
24510 __pyx_L4_argument_unpacking_done:;
24511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4470, __pyx_L1_error)
24512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 4471, __pyx_L1_error)
24513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_grad_w_dV", 0))) __PYX_ERR(0, 4472, __pyx_L1_error)
24514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u_X_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_u_X_grad_w_dV", 0))) __PYX_ERR(0, 4473, __pyx_L1_error)
24515 __pyx_r = __pyx_pf_13cfemIntegrals_208calculateFiniteElementFunctionGradientTensorValues(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_grad_v_X_grad_w_dV, __pyx_v_grad_u_X_grad_w_dV);
24522 __Pyx_RefNannyFinishContext();
24526 static PyObject *__pyx_pf_13cfemIntegrals_208calculateFiniteElementFunctionGradientTensorValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v_X_grad_w_dV, PyArrayObject *__pyx_v_grad_u_X_grad_w_dV) {
24527 int __pyx_v_nElements_global;
24528 int __pyx_v_nQuadraturePoints_element;
24529 int __pyx_v_nDOF_trial_element;
24530 int __pyx_v_nDOF_test_element;
24531 int __pyx_v_nComponents;
24532 int __pyx_v_nSpace;
24533 PyObject *__pyx_r = NULL;
24534 __Pyx_RefNannyDeclarations
24536 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientTensorValues", 0);
24545 __pyx_v_nElements_global = (__pyx_v_grad_v_X_grad_w_dV->dimensions[0]);
24554 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[1]);
24563 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[2]);
24572 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_grad_w_dV->dimensions[3]);
24581 __pyx_v_nComponents = 1;
24590 __pyx_v_nSpace = 1;
24599 __pyx_t_1 = ((__pyx_v_grad_u_X_grad_w_dV->nd == 6) != 0);
24609 __pyx_v_nComponents = (__pyx_v_grad_u_X_grad_w_dV->dimensions[3]);
24618 __pyx_v_nSpace = (__pyx_v_grad_u_X_grad_w_dV->dimensions[4]);
24638 __pyx_v_nComponents = 1;
24647 __pyx_v_nSpace = (__pyx_v_grad_u_X_grad_w_dV->dimensions[3]);
24658 calculateFiniteElementFunctionGradientTensorValues(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nComponents, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_grad_v_X_grad_w_dV->data), ((
double *)__pyx_v_grad_u_X_grad_w_dV->data));
24669 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24670 __Pyx_XGIVEREF(__pyx_r);
24671 __Pyx_RefNannyFinishContext();
24684 static PyObject *__pyx_pw_13cfemIntegrals_211calculateFiniteElementFunctionValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24685 static PyMethodDef __pyx_mdef_13cfemIntegrals_211calculateFiniteElementFunctionValuesTrace = {
"calculateFiniteElementFunctionValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_211calculateFiniteElementFunctionValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
24686 static PyObject *__pyx_pw_13cfemIntegrals_211calculateFiniteElementFunctionValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24687 PyArrayObject *__pyx_v_l2g = 0;
24688 PyArrayObject *__pyx_v_dof = 0;
24689 PyArrayObject *__pyx_v_v = 0;
24690 PyArrayObject *__pyx_v_u = 0;
24691 int __pyx_lineno = 0;
24692 const char *__pyx_filename = NULL;
24693 int __pyx_clineno = 0;
24694 PyObject *__pyx_r = 0;
24695 __Pyx_RefNannyDeclarations
24696 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValuesTrace (wrapper)", 0);
24698 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_v,&__pyx_n_s_u,0};
24699 PyObject* values[4] = {0,0,0,0};
24700 if (unlikely(__pyx_kwds)) {
24701 Py_ssize_t kw_args;
24702 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24703 switch (pos_args) {
24704 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24705 CYTHON_FALLTHROUGH;
24706 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24707 CYTHON_FALLTHROUGH;
24708 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24709 CYTHON_FALLTHROUGH;
24710 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24711 CYTHON_FALLTHROUGH;
24713 default:
goto __pyx_L5_argtuple_error;
24715 kw_args = PyDict_Size(__pyx_kwds);
24716 switch (pos_args) {
24718 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24719 else goto __pyx_L5_argtuple_error;
24720 CYTHON_FALLTHROUGH;
24722 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
24724 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesTrace", 1, 4, 4, 1); __PYX_ERR(0, 4496, __pyx_L3_error)
24726 CYTHON_FALLTHROUGH;
24728 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
24730 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesTrace", 1, 4, 4, 2); __PYX_ERR(0, 4496, __pyx_L3_error)
24732 CYTHON_FALLTHROUGH;
24734 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
24736 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesTrace", 1, 4, 4, 3); __PYX_ERR(0, 4496, __pyx_L3_error)
24739 if (unlikely(kw_args > 0)) {
24740 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionValuesTrace") < 0)) __PYX_ERR(0, 4496, __pyx_L3_error)
24742 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
24743 goto __pyx_L5_argtuple_error;
24745 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24746 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24747 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24748 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24750 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24751 __pyx_v_dof = ((PyArrayObject *)values[1]);
24752 __pyx_v_v = ((PyArrayObject *)values[2]);
24753 __pyx_v_u = ((PyArrayObject *)values[3]);
24755 goto __pyx_L4_argument_unpacking_done;
24756 __pyx_L5_argtuple_error:;
24757 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesTrace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4496, __pyx_L3_error)
24759 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
24760 __Pyx_RefNannyFinishContext();
24762 __pyx_L4_argument_unpacking_done:;
24763 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4496, __pyx_L1_error)
24764 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 4497, __pyx_L1_error)
24765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4498, __pyx_L1_error)
24766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 4499, __pyx_L1_error)
24767 __pyx_r = __pyx_pf_13cfemIntegrals_210calculateFiniteElementFunctionValuesTrace(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_v, __pyx_v_u);
24774 __Pyx_RefNannyFinishContext();
24778 static PyObject *__pyx_pf_13cfemIntegrals_210calculateFiniteElementFunctionValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u) {
24779 int __pyx_v_nElements_global;
24780 int __pyx_v_nElementBoundaries_element;
24781 int __pyx_v_nQuadraturePoints_elementBoundary;
24782 int __pyx_v_nDOF_trial_element;
24783 int __pyx_v_nComponents;
24785 PyObject *__pyx_r = NULL;
24786 __Pyx_RefNannyDeclarations
24789 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValuesTrace", 0);
24798 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
24807 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
24816 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
24825 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[3]);
24834 __pyx_v_nComponents = 1;
24843 __pyx_t_1 = __pyx_v_u->nd;
24844 __pyx_v_nd = __pyx_t_1;
24853 __pyx_t_2 = ((__pyx_v_nd == 4) != 0);
24863 __pyx_v_nComponents = (__pyx_v_u->dimensions[3]);
24883 __pyx_v_nComponents = 1;
24894 calculateFiniteElementFunctionValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data));
24905 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24906 __Pyx_XGIVEREF(__pyx_r);
24907 __Pyx_RefNannyFinishContext();
24920 static PyObject *__pyx_pw_13cfemIntegrals_213calculateFiniteElementFunctionGradientValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
24921 static PyMethodDef __pyx_mdef_13cfemIntegrals_213calculateFiniteElementFunctionGradientValuesTrace = {
"calculateFiniteElementFunctionGradientValuesTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_213calculateFiniteElementFunctionGradientValuesTrace, METH_VARARGS|METH_KEYWORDS, 0};
24922 static PyObject *__pyx_pw_13cfemIntegrals_213calculateFiniteElementFunctionGradientValuesTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
24923 PyArrayObject *__pyx_v_l2g = 0;
24924 PyArrayObject *__pyx_v_dof = 0;
24925 PyArrayObject *__pyx_v_grad_v = 0;
24926 PyArrayObject *__pyx_v_grad_u = 0;
24927 int __pyx_lineno = 0;
24928 const char *__pyx_filename = NULL;
24929 int __pyx_clineno = 0;
24930 PyObject *__pyx_r = 0;
24931 __Pyx_RefNannyDeclarations
24932 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValuesTrace (wrapper)", 0);
24934 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_grad_v,&__pyx_n_s_grad_u,0};
24935 PyObject* values[4] = {0,0,0,0};
24936 if (unlikely(__pyx_kwds)) {
24937 Py_ssize_t kw_args;
24938 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
24939 switch (pos_args) {
24940 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24941 CYTHON_FALLTHROUGH;
24942 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24943 CYTHON_FALLTHROUGH;
24944 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24945 CYTHON_FALLTHROUGH;
24946 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24947 CYTHON_FALLTHROUGH;
24949 default:
goto __pyx_L5_argtuple_error;
24951 kw_args = PyDict_Size(__pyx_kwds);
24952 switch (pos_args) {
24954 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
24955 else goto __pyx_L5_argtuple_error;
24956 CYTHON_FALLTHROUGH;
24958 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
24960 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesTrace", 1, 4, 4, 1); __PYX_ERR(0, 4519, __pyx_L3_error)
24962 CYTHON_FALLTHROUGH;
24964 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
24966 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesTrace", 1, 4, 4, 2); __PYX_ERR(0, 4519, __pyx_L3_error)
24968 CYTHON_FALLTHROUGH;
24970 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
24972 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesTrace", 1, 4, 4, 3); __PYX_ERR(0, 4519, __pyx_L3_error)
24975 if (unlikely(kw_args > 0)) {
24976 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionGradientValuesTrace") < 0)) __PYX_ERR(0, 4519, __pyx_L3_error)
24978 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
24979 goto __pyx_L5_argtuple_error;
24981 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
24982 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
24983 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
24984 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
24986 __pyx_v_l2g = ((PyArrayObject *)values[0]);
24987 __pyx_v_dof = ((PyArrayObject *)values[1]);
24988 __pyx_v_grad_v = ((PyArrayObject *)values[2]);
24989 __pyx_v_grad_u = ((PyArrayObject *)values[3]);
24991 goto __pyx_L4_argument_unpacking_done;
24992 __pyx_L5_argtuple_error:;
24993 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesTrace", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4519, __pyx_L3_error)
24995 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionGradientValuesTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
24996 __Pyx_RefNannyFinishContext();
24998 __pyx_L4_argument_unpacking_done:;
24999 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 4519, __pyx_L1_error)
25000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 4520, __pyx_L1_error)
25001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 4521, __pyx_L1_error)
25002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 4522, __pyx_L1_error)
25003 __pyx_r = __pyx_pf_13cfemIntegrals_212calculateFiniteElementFunctionGradientValuesTrace(__pyx_self, __pyx_v_l2g, __pyx_v_dof, __pyx_v_grad_v, __pyx_v_grad_u);
25010 __Pyx_RefNannyFinishContext();
25014 static PyObject *__pyx_pf_13cfemIntegrals_212calculateFiniteElementFunctionGradientValuesTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u) {
25015 int __pyx_v_nElements_global;
25016 int __pyx_v_nElementBoundaries_element;
25017 int __pyx_v_nQuadraturePoints_elementBoundary;
25018 int __pyx_v_nDOF_trial_element;
25019 int __pyx_v_nComponents;
25020 int __pyx_v_nSpace;
25022 PyObject *__pyx_r = NULL;
25023 __Pyx_RefNannyDeclarations
25026 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValuesTrace", 0);
25035 __pyx_v_nElements_global = (__pyx_v_grad_v->dimensions[0]);
25044 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_v->dimensions[1]);
25053 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_v->dimensions[2]);
25062 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[3]);
25071 __pyx_v_nComponents = 1;
25080 __pyx_v_nSpace = 1;
25089 __pyx_t_1 = __pyx_v_grad_u->nd;
25090 __pyx_v_nd = __pyx_t_1;
25099 __pyx_t_2 = ((__pyx_v_nd == 5) != 0);
25109 __pyx_v_nComponents = (__pyx_v_grad_u->dimensions[3]);
25118 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[4]);
25138 __pyx_v_nComponents = 1;
25147 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[3]);
25158 calculateFiniteElementFunctionGradientValuesTrace(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, __pyx_v_nSpace, ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_u->data));
25169 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25170 __Pyx_XGIVEREF(__pyx_r);
25171 __Pyx_RefNannyFinishContext();
25184 static PyObject *__pyx_pw_13cfemIntegrals_215calculateFlowVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25185 static PyMethodDef __pyx_mdef_13cfemIntegrals_215calculateFlowVelocity = {
"calculateFlowVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_215calculateFlowVelocity, METH_VARARGS|METH_KEYWORDS, 0};
25186 static PyObject *__pyx_pw_13cfemIntegrals_215calculateFlowVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25187 PyArrayObject *__pyx_v_f = 0;
25188 PyArrayObject *__pyx_v_a = 0;
25189 PyArrayObject *__pyx_v_grad_phi = 0;
25190 PyArrayObject *__pyx_v_v = 0;
25191 int __pyx_lineno = 0;
25192 const char *__pyx_filename = NULL;
25193 int __pyx_clineno = 0;
25194 PyObject *__pyx_r = 0;
25195 __Pyx_RefNannyDeclarations
25196 __Pyx_RefNannySetupContext(
"calculateFlowVelocity (wrapper)", 0);
25198 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_f,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_v,0};
25199 PyObject* values[4] = {0,0,0,0};
25200 if (unlikely(__pyx_kwds)) {
25201 Py_ssize_t kw_args;
25202 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25203 switch (pos_args) {
25204 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25205 CYTHON_FALLTHROUGH;
25206 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25207 CYTHON_FALLTHROUGH;
25208 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25209 CYTHON_FALLTHROUGH;
25210 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25211 CYTHON_FALLTHROUGH;
25213 default:
goto __pyx_L5_argtuple_error;
25215 kw_args = PyDict_Size(__pyx_kwds);
25216 switch (pos_args) {
25218 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25219 else goto __pyx_L5_argtuple_error;
25220 CYTHON_FALLTHROUGH;
25222 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25224 __Pyx_RaiseArgtupleInvalid(
"calculateFlowVelocity", 1, 4, 4, 1); __PYX_ERR(0, 4546, __pyx_L3_error)
25226 CYTHON_FALLTHROUGH;
25228 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
25230 __Pyx_RaiseArgtupleInvalid(
"calculateFlowVelocity", 1, 4, 4, 2); __PYX_ERR(0, 4546, __pyx_L3_error)
25232 CYTHON_FALLTHROUGH;
25234 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
25236 __Pyx_RaiseArgtupleInvalid(
"calculateFlowVelocity", 1, 4, 4, 3); __PYX_ERR(0, 4546, __pyx_L3_error)
25239 if (unlikely(kw_args > 0)) {
25240 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFlowVelocity") < 0)) __PYX_ERR(0, 4546, __pyx_L3_error)
25242 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
25243 goto __pyx_L5_argtuple_error;
25245 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25246 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25247 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25248 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25250 __pyx_v_f = ((PyArrayObject *)values[0]);
25251 __pyx_v_a = ((PyArrayObject *)values[1]);
25252 __pyx_v_grad_phi = ((PyArrayObject *)values[2]);
25253 __pyx_v_v = ((PyArrayObject *)values[3]);
25255 goto __pyx_L4_argument_unpacking_done;
25256 __pyx_L5_argtuple_error:;
25257 __Pyx_RaiseArgtupleInvalid(
"calculateFlowVelocity", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4546, __pyx_L3_error)
25259 __Pyx_AddTraceback(
"cfemIntegrals.calculateFlowVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
25260 __Pyx_RefNannyFinishContext();
25262 __pyx_L4_argument_unpacking_done:;
25263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4546, __pyx_L1_error)
25264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4547, __pyx_L1_error)
25265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4548, __pyx_L1_error)
25266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 4549, __pyx_L1_error)
25267 __pyx_r = __pyx_pf_13cfemIntegrals_214calculateFlowVelocity(__pyx_self, __pyx_v_f, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_v);
25274 __Pyx_RefNannyFinishContext();
25278 static PyObject *__pyx_pf_13cfemIntegrals_214calculateFlowVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_v) {
25279 int __pyx_v_nElements_global;
25280 int __pyx_v_nQuadraturePoints_element;
25281 int __pyx_v_nSpace;
25282 PyObject *__pyx_r = NULL;
25283 __Pyx_RefNannyDeclarations
25284 __Pyx_RefNannySetupContext(
"calculateFlowVelocity", 0);
25293 __pyx_v_nElements_global = (__pyx_v_f->dimensions[0]);
25302 __pyx_v_nQuadraturePoints_element = (__pyx_v_f->dimensions[1]);
25311 __pyx_v_nSpace = (__pyx_v_f->dimensions[2]);
25320 calculateFlowVelocity(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_v->data));
25331 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25332 __Pyx_XGIVEREF(__pyx_r);
25333 __Pyx_RefNannyFinishContext();
25346 static PyObject *__pyx_pw_13cfemIntegrals_217updateAddJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25347 static PyMethodDef __pyx_mdef_13cfemIntegrals_217updateAddJacobian_CSR = {
"updateAddJacobian_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_217updateAddJacobian_CSR, METH_VARARGS|METH_KEYWORDS, 0};
25348 static PyObject *__pyx_pw_13cfemIntegrals_217updateAddJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25349 int __pyx_v_jacIndex;
25350 double __pyx_v_val;
25351 PyObject *__pyx_v_jac = 0;
25352 int __pyx_lineno = 0;
25353 const char *__pyx_filename = NULL;
25354 int __pyx_clineno = 0;
25355 PyObject *__pyx_r = 0;
25356 __Pyx_RefNannyDeclarations
25357 __Pyx_RefNannySetupContext(
"updateAddJacobian_CSR (wrapper)", 0);
25359 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_jacIndex,&__pyx_n_s_val,&__pyx_n_s_jac,0};
25360 PyObject* values[3] = {0,0,0};
25361 if (unlikely(__pyx_kwds)) {
25362 Py_ssize_t kw_args;
25363 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25364 switch (pos_args) {
25365 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25366 CYTHON_FALLTHROUGH;
25367 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25368 CYTHON_FALLTHROUGH;
25369 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25370 CYTHON_FALLTHROUGH;
25372 default:
goto __pyx_L5_argtuple_error;
25374 kw_args = PyDict_Size(__pyx_kwds);
25375 switch (pos_args) {
25377 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacIndex)) != 0)) kw_args--;
25378 else goto __pyx_L5_argtuple_error;
25379 CYTHON_FALLTHROUGH;
25381 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_val)) != 0)) kw_args--;
25383 __Pyx_RaiseArgtupleInvalid(
"updateAddJacobian_CSR", 1, 3, 3, 1); __PYX_ERR(0, 4560, __pyx_L3_error)
25385 CYTHON_FALLTHROUGH;
25387 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
25389 __Pyx_RaiseArgtupleInvalid(
"updateAddJacobian_CSR", 1, 3, 3, 2); __PYX_ERR(0, 4560, __pyx_L3_error)
25392 if (unlikely(kw_args > 0)) {
25393 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateAddJacobian_CSR") < 0)) __PYX_ERR(0, 4560, __pyx_L3_error)
25395 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
25396 goto __pyx_L5_argtuple_error;
25398 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25399 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25400 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25402 __pyx_v_jacIndex = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_jacIndex == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4560, __pyx_L3_error)
25403 __pyx_v_val = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_val == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 4561, __pyx_L3_error)
25404 __pyx_v_jac = values[2];
25406 goto __pyx_L4_argument_unpacking_done;
25407 __pyx_L5_argtuple_error:;
25408 __Pyx_RaiseArgtupleInvalid(
"updateAddJacobian_CSR", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4560, __pyx_L3_error)
25410 __Pyx_AddTraceback(
"cfemIntegrals.updateAddJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
25411 __Pyx_RefNannyFinishContext();
25413 __pyx_L4_argument_unpacking_done:;
25414 __pyx_r = __pyx_pf_13cfemIntegrals_216updateAddJacobian_CSR(__pyx_self, __pyx_v_jacIndex, __pyx_v_val, __pyx_v_jac);
25417 __Pyx_RefNannyFinishContext();
25421 static PyObject *__pyx_pf_13cfemIntegrals_216updateAddJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_jacIndex,
double __pyx_v_val, PyObject *__pyx_v_jac) {
25422 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
25423 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
25424 PyArrayObject *__pyx_v_jac_array = 0;
25425 PyObject *__pyx_r = NULL;
25426 __Pyx_RefNannyDeclarations
25427 PyObject *__pyx_t_1 = NULL;
25428 PyObject *__pyx_t_2 = NULL;
25429 PyObject *__pyx_t_3 = NULL;
25430 PyObject *__pyx_t_4 = NULL;
25431 PyObject *__pyx_t_5 = NULL;
25432 PyObject *(*__pyx_t_6)(PyObject *);
25433 int __pyx_lineno = 0;
25434 const char *__pyx_filename = NULL;
25435 int __pyx_clineno = 0;
25436 __Pyx_RefNannySetupContext(
"updateAddJacobian_CSR", 0);
25445 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4564, __pyx_L1_error)
25446 __Pyx_GOTREF(__pyx_t_2);
25448 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
25449 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
25450 if (likely(__pyx_t_3)) {
25451 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
25452 __Pyx_INCREF(__pyx_t_3);
25453 __Pyx_INCREF(
function);
25454 __Pyx_DECREF_SET(__pyx_t_2,
function);
25457 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
25458 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
25459 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4564, __pyx_L1_error)
25460 __Pyx_GOTREF(__pyx_t_1);
25461 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
25462 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
25463 PyObject* sequence = __pyx_t_1;
25464 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
25465 if (unlikely(size != 3)) {
25466 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
25467 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
25468 __PYX_ERR(0, 4564, __pyx_L1_error)
25470 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
25471 if (likely(PyTuple_CheckExact(sequence))) {
25472 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
25473 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
25474 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
25476 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
25477 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
25478 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
25480 __Pyx_INCREF(__pyx_t_2);
25481 __Pyx_INCREF(__pyx_t_3);
25482 __Pyx_INCREF(__pyx_t_4);
25484 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4564, __pyx_L1_error)
25485 __Pyx_GOTREF(__pyx_t_2);
25486 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4564, __pyx_L1_error)
25487 __Pyx_GOTREF(__pyx_t_3);
25488 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4564, __pyx_L1_error)
25489 __Pyx_GOTREF(__pyx_t_4);
25491 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25493 Py_ssize_t index = -1;
25494 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4564, __pyx_L1_error)
25495 __Pyx_GOTREF(__pyx_t_5);
25496 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25497 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
25498 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
25499 __Pyx_GOTREF(__pyx_t_2);
25500 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
25501 __Pyx_GOTREF(__pyx_t_3);
25502 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
25503 __Pyx_GOTREF(__pyx_t_4);
25504 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4564, __pyx_L1_error)
25506 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25507 goto __pyx_L4_unpacking_done;
25508 __pyx_L3_unpacking_failed:;
25509 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25511 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
25512 __PYX_ERR(0, 4564, __pyx_L1_error)
25513 __pyx_L4_unpacking_done:;
25515 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4564, __pyx_L1_error)
25516 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4564, __pyx_L1_error)
25517 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4564, __pyx_L1_error)
25518 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
25520 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
25522 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
25543 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25546 __Pyx_XDECREF(__pyx_t_1);
25547 __Pyx_XDECREF(__pyx_t_2);
25548 __Pyx_XDECREF(__pyx_t_3);
25549 __Pyx_XDECREF(__pyx_t_4);
25550 __Pyx_XDECREF(__pyx_t_5);
25551 __Pyx_AddTraceback(
"cfemIntegrals.updateAddJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
25554 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
25555 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
25556 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
25557 __Pyx_XGIVEREF(__pyx_r);
25558 __Pyx_RefNannyFinishContext();
25571 static PyObject *__pyx_pw_13cfemIntegrals_219zeroJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25572 static PyMethodDef __pyx_mdef_13cfemIntegrals_219zeroJacobian_CSR = {
"zeroJacobian_CSR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_219zeroJacobian_CSR, METH_VARARGS|METH_KEYWORDS, 0};
25573 static PyObject *__pyx_pw_13cfemIntegrals_219zeroJacobian_CSR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25574 int __pyx_v_nNonzeros;
25575 PyObject *__pyx_v_jac = 0;
25576 int __pyx_lineno = 0;
25577 const char *__pyx_filename = NULL;
25578 int __pyx_clineno = 0;
25579 PyObject *__pyx_r = 0;
25580 __Pyx_RefNannyDeclarations
25581 __Pyx_RefNannySetupContext(
"zeroJacobian_CSR (wrapper)", 0);
25583 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNonzeros,&__pyx_n_s_jac,0};
25584 PyObject* values[2] = {0,0};
25585 if (unlikely(__pyx_kwds)) {
25586 Py_ssize_t kw_args;
25587 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25588 switch (pos_args) {
25589 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25590 CYTHON_FALLTHROUGH;
25591 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25592 CYTHON_FALLTHROUGH;
25594 default:
goto __pyx_L5_argtuple_error;
25596 kw_args = PyDict_Size(__pyx_kwds);
25597 switch (pos_args) {
25599 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNonzeros)) != 0)) kw_args--;
25600 else goto __pyx_L5_argtuple_error;
25601 CYTHON_FALLTHROUGH;
25603 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
25605 __Pyx_RaiseArgtupleInvalid(
"zeroJacobian_CSR", 1, 2, 2, 1); __PYX_ERR(0, 4568, __pyx_L3_error)
25608 if (unlikely(kw_args > 0)) {
25609 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"zeroJacobian_CSR") < 0)) __PYX_ERR(0, 4568, __pyx_L3_error)
25611 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
25612 goto __pyx_L5_argtuple_error;
25614 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25615 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25617 __pyx_v_nNonzeros = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNonzeros == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4568, __pyx_L3_error)
25618 __pyx_v_jac = values[1];
25620 goto __pyx_L4_argument_unpacking_done;
25621 __pyx_L5_argtuple_error:;
25622 __Pyx_RaiseArgtupleInvalid(
"zeroJacobian_CSR", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4568, __pyx_L3_error)
25624 __Pyx_AddTraceback(
"cfemIntegrals.zeroJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
25625 __Pyx_RefNannyFinishContext();
25627 __pyx_L4_argument_unpacking_done:;
25628 __pyx_r = __pyx_pf_13cfemIntegrals_218zeroJacobian_CSR(__pyx_self, __pyx_v_nNonzeros, __pyx_v_jac);
25631 __Pyx_RefNannyFinishContext();
25635 static PyObject *__pyx_pf_13cfemIntegrals_218zeroJacobian_CSR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNonzeros, PyObject *__pyx_v_jac) {
25636 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr = 0;
25637 CYTHON_UNUSED PyArrayObject *__pyx_v_colind = 0;
25638 PyArrayObject *__pyx_v_jac_array = 0;
25639 PyObject *__pyx_r = NULL;
25640 __Pyx_RefNannyDeclarations
25641 PyObject *__pyx_t_1 = NULL;
25642 PyObject *__pyx_t_2 = NULL;
25643 PyObject *__pyx_t_3 = NULL;
25644 PyObject *__pyx_t_4 = NULL;
25645 PyObject *__pyx_t_5 = NULL;
25646 PyObject *(*__pyx_t_6)(PyObject *);
25647 int __pyx_lineno = 0;
25648 const char *__pyx_filename = NULL;
25649 int __pyx_clineno = 0;
25650 __Pyx_RefNannySetupContext(
"zeroJacobian_CSR", 0);
25659 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4571, __pyx_L1_error)
25660 __Pyx_GOTREF(__pyx_t_2);
25662 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
25663 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
25664 if (likely(__pyx_t_3)) {
25665 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
25666 __Pyx_INCREF(__pyx_t_3);
25667 __Pyx_INCREF(
function);
25668 __Pyx_DECREF_SET(__pyx_t_2,
function);
25671 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
25672 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
25673 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4571, __pyx_L1_error)
25674 __Pyx_GOTREF(__pyx_t_1);
25675 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
25676 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
25677 PyObject* sequence = __pyx_t_1;
25678 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
25679 if (unlikely(size != 3)) {
25680 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
25681 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
25682 __PYX_ERR(0, 4571, __pyx_L1_error)
25684 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
25685 if (likely(PyTuple_CheckExact(sequence))) {
25686 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
25687 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
25688 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
25690 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
25691 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
25692 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
25694 __Pyx_INCREF(__pyx_t_2);
25695 __Pyx_INCREF(__pyx_t_3);
25696 __Pyx_INCREF(__pyx_t_4);
25698 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4571, __pyx_L1_error)
25699 __Pyx_GOTREF(__pyx_t_2);
25700 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4571, __pyx_L1_error)
25701 __Pyx_GOTREF(__pyx_t_3);
25702 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4571, __pyx_L1_error)
25703 __Pyx_GOTREF(__pyx_t_4);
25705 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25707 Py_ssize_t index = -1;
25708 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4571, __pyx_L1_error)
25709 __Pyx_GOTREF(__pyx_t_5);
25710 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25711 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
25712 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
25713 __Pyx_GOTREF(__pyx_t_2);
25714 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
25715 __Pyx_GOTREF(__pyx_t_3);
25716 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
25717 __Pyx_GOTREF(__pyx_t_4);
25718 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 4571, __pyx_L1_error)
25720 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25721 goto __pyx_L4_unpacking_done;
25722 __pyx_L3_unpacking_failed:;
25723 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25725 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
25726 __PYX_ERR(0, 4571, __pyx_L1_error)
25727 __pyx_L4_unpacking_done:;
25729 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4571, __pyx_L1_error)
25730 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4571, __pyx_L1_error)
25731 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4571, __pyx_L1_error)
25732 __pyx_v_rowptr = ((PyArrayObject *)__pyx_t_2);
25734 __pyx_v_colind = ((PyArrayObject *)__pyx_t_3);
25736 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
25757 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25760 __Pyx_XDECREF(__pyx_t_1);
25761 __Pyx_XDECREF(__pyx_t_2);
25762 __Pyx_XDECREF(__pyx_t_3);
25763 __Pyx_XDECREF(__pyx_t_4);
25764 __Pyx_XDECREF(__pyx_t_5);
25765 __Pyx_AddTraceback(
"cfemIntegrals.zeroJacobian_CSR", __pyx_clineno, __pyx_lineno, __pyx_filename);
25768 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr);
25769 __Pyx_XDECREF((PyObject *)__pyx_v_colind);
25770 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
25771 __Pyx_XGIVEREF(__pyx_r);
25772 __Pyx_RefNannyFinishContext();
25785 static PyObject *__pyx_pw_13cfemIntegrals_221calculateInteriorElementBoundaryVelocities(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
25786 static PyMethodDef __pyx_mdef_13cfemIntegrals_221calculateInteriorElementBoundaryVelocities = {
"calculateInteriorElementBoundaryVelocities", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_221calculateInteriorElementBoundaryVelocities, METH_VARARGS|METH_KEYWORDS, 0};
25787 static PyObject *__pyx_pw_13cfemIntegrals_221calculateInteriorElementBoundaryVelocities(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
25788 int __pyx_v_nInteriorElementBoundaries_global;
25789 int __pyx_v_nElementBoundaries_element;
25790 int __pyx_v_nQuadraturePoints_elementBoundary;
25791 int __pyx_v_nSpace;
25792 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
25793 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
25794 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
25795 PyArrayObject *__pyx_v_m = 0;
25796 PyArrayObject *__pyx_v_a = 0;
25797 PyArrayObject *__pyx_v_grad_phi = 0;
25798 PyArrayObject *__pyx_v_f = 0;
25799 PyArrayObject *__pyx_v_vAverage = 0;
25800 PyArrayObject *__pyx_v_vJump = 0;
25801 PyArrayObject *__pyx_v_mAverage = 0;
25802 PyArrayObject *__pyx_v_mJump = 0;
25803 int __pyx_lineno = 0;
25804 const char *__pyx_filename = NULL;
25805 int __pyx_clineno = 0;
25806 PyObject *__pyx_r = 0;
25807 __Pyx_RefNannyDeclarations
25808 __Pyx_RefNannySetupContext(
"calculateInteriorElementBoundaryVelocities (wrapper)", 0);
25810 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nInteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_m,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_f,&__pyx_n_s_vAverage,&__pyx_n_s_vJump,&__pyx_n_s_mAverage,&__pyx_n_s_mJump,0};
25811 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
25812 if (unlikely(__pyx_kwds)) {
25813 Py_ssize_t kw_args;
25814 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
25815 switch (pos_args) {
25816 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25817 CYTHON_FALLTHROUGH;
25818 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25819 CYTHON_FALLTHROUGH;
25820 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25821 CYTHON_FALLTHROUGH;
25822 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25823 CYTHON_FALLTHROUGH;
25824 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25825 CYTHON_FALLTHROUGH;
25826 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25827 CYTHON_FALLTHROUGH;
25828 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25829 CYTHON_FALLTHROUGH;
25830 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25831 CYTHON_FALLTHROUGH;
25832 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25833 CYTHON_FALLTHROUGH;
25834 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25835 CYTHON_FALLTHROUGH;
25836 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25837 CYTHON_FALLTHROUGH;
25838 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25839 CYTHON_FALLTHROUGH;
25840 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25841 CYTHON_FALLTHROUGH;
25842 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25843 CYTHON_FALLTHROUGH;
25844 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25845 CYTHON_FALLTHROUGH;
25847 default:
goto __pyx_L5_argtuple_error;
25849 kw_args = PyDict_Size(__pyx_kwds);
25850 switch (pos_args) {
25852 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nInteriorElementBoundaries_globa)) != 0)) kw_args--;
25853 else goto __pyx_L5_argtuple_error;
25854 CYTHON_FALLTHROUGH;
25856 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
25858 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 1); __PYX_ERR(0, 4574, __pyx_L3_error)
25860 CYTHON_FALLTHROUGH;
25862 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
25864 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 2); __PYX_ERR(0, 4574, __pyx_L3_error)
25866 CYTHON_FALLTHROUGH;
25868 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
25870 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 3); __PYX_ERR(0, 4574, __pyx_L3_error)
25872 CYTHON_FALLTHROUGH;
25874 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
25876 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 4); __PYX_ERR(0, 4574, __pyx_L3_error)
25878 CYTHON_FALLTHROUGH;
25880 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
25882 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 5); __PYX_ERR(0, 4574, __pyx_L3_error)
25884 CYTHON_FALLTHROUGH;
25886 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
25888 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 6); __PYX_ERR(0, 4574, __pyx_L3_error)
25890 CYTHON_FALLTHROUGH;
25892 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
25894 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 7); __PYX_ERR(0, 4574, __pyx_L3_error)
25896 CYTHON_FALLTHROUGH;
25898 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
25900 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 8); __PYX_ERR(0, 4574, __pyx_L3_error)
25902 CYTHON_FALLTHROUGH;
25904 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
25906 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 9); __PYX_ERR(0, 4574, __pyx_L3_error)
25908 CYTHON_FALLTHROUGH;
25910 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
25912 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 10); __PYX_ERR(0, 4574, __pyx_L3_error)
25914 CYTHON_FALLTHROUGH;
25916 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
25918 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 11); __PYX_ERR(0, 4574, __pyx_L3_error)
25920 CYTHON_FALLTHROUGH;
25922 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vJump)) != 0)) kw_args--;
25924 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 12); __PYX_ERR(0, 4574, __pyx_L3_error)
25926 CYTHON_FALLTHROUGH;
25928 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mAverage)) != 0)) kw_args--;
25930 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 13); __PYX_ERR(0, 4574, __pyx_L3_error)
25932 CYTHON_FALLTHROUGH;
25934 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mJump)) != 0)) kw_args--;
25936 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, 14); __PYX_ERR(0, 4574, __pyx_L3_error)
25939 if (unlikely(kw_args > 0)) {
25940 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorElementBoundaryVelocities") < 0)) __PYX_ERR(0, 4574, __pyx_L3_error)
25942 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
25943 goto __pyx_L5_argtuple_error;
25945 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
25946 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
25947 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
25948 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
25949 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
25950 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
25951 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
25952 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
25953 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
25954 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
25955 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
25956 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
25957 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
25958 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
25959 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
25961 __pyx_v_nInteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nInteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4574, __pyx_L3_error)
25962 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4575, __pyx_L3_error)
25963 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4576, __pyx_L3_error)
25964 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4577, __pyx_L3_error)
25965 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[4]);
25966 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
25967 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
25968 __pyx_v_m = ((PyArrayObject *)values[7]);
25969 __pyx_v_a = ((PyArrayObject *)values[8]);
25970 __pyx_v_grad_phi = ((PyArrayObject *)values[9]);
25971 __pyx_v_f = ((PyArrayObject *)values[10]);
25972 __pyx_v_vAverage = ((PyArrayObject *)values[11]);
25973 __pyx_v_vJump = ((PyArrayObject *)values[12]);
25974 __pyx_v_mAverage = ((PyArrayObject *)values[13]);
25975 __pyx_v_mJump = ((PyArrayObject *)values[14]);
25977 goto __pyx_L4_argument_unpacking_done;
25978 __pyx_L5_argtuple_error:;
25979 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryVelocities", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4574, __pyx_L3_error)
25981 __Pyx_AddTraceback(
"cfemIntegrals.calculateInteriorElementBoundaryVelocities", __pyx_clineno, __pyx_lineno, __pyx_filename);
25982 __Pyx_RefNannyFinishContext();
25984 __pyx_L4_argument_unpacking_done:;
25985 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4578, __pyx_L1_error)
25986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4579, __pyx_L1_error)
25987 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4580, __pyx_L1_error)
25988 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 4581, __pyx_L1_error)
25989 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4582, __pyx_L1_error)
25990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4583, __pyx_L1_error)
25991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4584, __pyx_L1_error)
25992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 4585, __pyx_L1_error)
25993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vJump), __pyx_ptype_5numpy_ndarray, 1,
"vJump", 0))) __PYX_ERR(0, 4586, __pyx_L1_error)
25994 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mAverage), __pyx_ptype_5numpy_ndarray, 1,
"mAverage", 0))) __PYX_ERR(0, 4587, __pyx_L1_error)
25995 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mJump), __pyx_ptype_5numpy_ndarray, 1,
"mJump", 0))) __PYX_ERR(0, 4588, __pyx_L1_error)
25996 __pyx_r = __pyx_pf_13cfemIntegrals_220calculateInteriorElementBoundaryVelocities(__pyx_self, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_m, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_f, __pyx_v_vAverage, __pyx_v_vJump, __pyx_v_mAverage, __pyx_v_mJump);
26003 __Pyx_RefNannyFinishContext();
26007 static PyObject *__pyx_pf_13cfemIntegrals_220calculateInteriorElementBoundaryVelocities(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_vJump, PyArrayObject *__pyx_v_mAverage, PyArrayObject *__pyx_v_mJump) {
26008 PyObject *__pyx_r = NULL;
26009 __Pyx_RefNannyDeclarations
26010 __Pyx_RefNannySetupContext(
"calculateInteriorElementBoundaryVelocities", 0);
26019 calculateInteriorElementBoundaryVelocities(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_vJump->data), ((
double *)__pyx_v_mAverage->data), ((
double *)__pyx_v_mJump->data));
26030 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26031 __Pyx_XGIVEREF(__pyx_r);
26032 __Pyx_RefNannyFinishContext();
26045 static PyObject *__pyx_pw_13cfemIntegrals_223calculateExteriorElementBoundaryVelocities(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26046 static PyMethodDef __pyx_mdef_13cfemIntegrals_223calculateExteriorElementBoundaryVelocities = {
"calculateExteriorElementBoundaryVelocities", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_223calculateExteriorElementBoundaryVelocities, METH_VARARGS|METH_KEYWORDS, 0};
26047 static PyObject *__pyx_pw_13cfemIntegrals_223calculateExteriorElementBoundaryVelocities(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26048 int __pyx_v_nExteriorElementBoundaries_global;
26049 int __pyx_v_nElementBoundaries_element;
26050 int __pyx_v_nQuadraturePoints_elementBoundary;
26051 int __pyx_v_nSpace;
26052 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
26053 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
26054 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
26055 PyArrayObject *__pyx_v_m = 0;
26056 PyArrayObject *__pyx_v_a = 0;
26057 PyArrayObject *__pyx_v_grad_phi = 0;
26058 PyArrayObject *__pyx_v_f = 0;
26059 PyArrayObject *__pyx_v_vAverage = 0;
26060 PyArrayObject *__pyx_v_vJump = 0;
26061 PyArrayObject *__pyx_v_mAverage = 0;
26062 PyArrayObject *__pyx_v_mJump = 0;
26063 int __pyx_lineno = 0;
26064 const char *__pyx_filename = NULL;
26065 int __pyx_clineno = 0;
26066 PyObject *__pyx_r = 0;
26067 __Pyx_RefNannyDeclarations
26068 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryVelocities (wrapper)", 0);
26070 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_m,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_f,&__pyx_n_s_vAverage,&__pyx_n_s_vJump,&__pyx_n_s_mAverage,&__pyx_n_s_mJump,0};
26071 PyObject* values[15] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26072 if (unlikely(__pyx_kwds)) {
26073 Py_ssize_t kw_args;
26074 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26075 switch (pos_args) {
26076 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26077 CYTHON_FALLTHROUGH;
26078 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26079 CYTHON_FALLTHROUGH;
26080 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26081 CYTHON_FALLTHROUGH;
26082 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26083 CYTHON_FALLTHROUGH;
26084 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26085 CYTHON_FALLTHROUGH;
26086 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26087 CYTHON_FALLTHROUGH;
26088 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26089 CYTHON_FALLTHROUGH;
26090 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26091 CYTHON_FALLTHROUGH;
26092 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26093 CYTHON_FALLTHROUGH;
26094 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26095 CYTHON_FALLTHROUGH;
26096 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26097 CYTHON_FALLTHROUGH;
26098 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26099 CYTHON_FALLTHROUGH;
26100 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26101 CYTHON_FALLTHROUGH;
26102 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26103 CYTHON_FALLTHROUGH;
26104 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26105 CYTHON_FALLTHROUGH;
26107 default:
goto __pyx_L5_argtuple_error;
26109 kw_args = PyDict_Size(__pyx_kwds);
26110 switch (pos_args) {
26112 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
26113 else goto __pyx_L5_argtuple_error;
26114 CYTHON_FALLTHROUGH;
26116 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
26118 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 1); __PYX_ERR(0, 4604, __pyx_L3_error)
26120 CYTHON_FALLTHROUGH;
26122 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
26124 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 2); __PYX_ERR(0, 4604, __pyx_L3_error)
26126 CYTHON_FALLTHROUGH;
26128 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
26130 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 3); __PYX_ERR(0, 4604, __pyx_L3_error)
26132 CYTHON_FALLTHROUGH;
26134 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
26136 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 4); __PYX_ERR(0, 4604, __pyx_L3_error)
26138 CYTHON_FALLTHROUGH;
26140 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
26142 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 5); __PYX_ERR(0, 4604, __pyx_L3_error)
26144 CYTHON_FALLTHROUGH;
26146 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
26148 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 6); __PYX_ERR(0, 4604, __pyx_L3_error)
26150 CYTHON_FALLTHROUGH;
26152 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
26154 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 7); __PYX_ERR(0, 4604, __pyx_L3_error)
26156 CYTHON_FALLTHROUGH;
26158 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
26160 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 8); __PYX_ERR(0, 4604, __pyx_L3_error)
26162 CYTHON_FALLTHROUGH;
26164 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
26166 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 9); __PYX_ERR(0, 4604, __pyx_L3_error)
26168 CYTHON_FALLTHROUGH;
26170 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
26172 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 10); __PYX_ERR(0, 4604, __pyx_L3_error)
26174 CYTHON_FALLTHROUGH;
26176 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
26178 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 11); __PYX_ERR(0, 4604, __pyx_L3_error)
26180 CYTHON_FALLTHROUGH;
26182 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vJump)) != 0)) kw_args--;
26184 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 12); __PYX_ERR(0, 4604, __pyx_L3_error)
26186 CYTHON_FALLTHROUGH;
26188 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mAverage)) != 0)) kw_args--;
26190 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 13); __PYX_ERR(0, 4604, __pyx_L3_error)
26192 CYTHON_FALLTHROUGH;
26194 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mJump)) != 0)) kw_args--;
26196 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, 14); __PYX_ERR(0, 4604, __pyx_L3_error)
26199 if (unlikely(kw_args > 0)) {
26200 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorElementBoundaryVelocities") < 0)) __PYX_ERR(0, 4604, __pyx_L3_error)
26202 }
else if (PyTuple_GET_SIZE(__pyx_args) != 15) {
26203 goto __pyx_L5_argtuple_error;
26205 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26206 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26207 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26208 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26209 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26210 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26211 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26212 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26213 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26214 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26215 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26216 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26217 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26218 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26219 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26221 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4604, __pyx_L3_error)
26222 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4605, __pyx_L3_error)
26223 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4606, __pyx_L3_error)
26224 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4607, __pyx_L3_error)
26225 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
26226 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
26227 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
26228 __pyx_v_m = ((PyArrayObject *)values[7]);
26229 __pyx_v_a = ((PyArrayObject *)values[8]);
26230 __pyx_v_grad_phi = ((PyArrayObject *)values[9]);
26231 __pyx_v_f = ((PyArrayObject *)values[10]);
26232 __pyx_v_vAverage = ((PyArrayObject *)values[11]);
26233 __pyx_v_vJump = ((PyArrayObject *)values[12]);
26234 __pyx_v_mAverage = ((PyArrayObject *)values[13]);
26235 __pyx_v_mJump = ((PyArrayObject *)values[14]);
26237 goto __pyx_L4_argument_unpacking_done;
26238 __pyx_L5_argtuple_error:;
26239 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryVelocities", 1, 15, 15, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4604, __pyx_L3_error)
26241 __Pyx_AddTraceback(
"cfemIntegrals.calculateExteriorElementBoundaryVelocities", __pyx_clineno, __pyx_lineno, __pyx_filename);
26242 __Pyx_RefNannyFinishContext();
26244 __pyx_L4_argument_unpacking_done:;
26245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4608, __pyx_L1_error)
26246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4609, __pyx_L1_error)
26247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4610, __pyx_L1_error)
26248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 4611, __pyx_L1_error)
26249 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4612, __pyx_L1_error)
26250 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4613, __pyx_L1_error)
26251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4614, __pyx_L1_error)
26252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 4615, __pyx_L1_error)
26253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vJump), __pyx_ptype_5numpy_ndarray, 1,
"vJump", 0))) __PYX_ERR(0, 4616, __pyx_L1_error)
26254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mAverage), __pyx_ptype_5numpy_ndarray, 1,
"mAverage", 0))) __PYX_ERR(0, 4617, __pyx_L1_error)
26255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mJump), __pyx_ptype_5numpy_ndarray, 1,
"mJump", 0))) __PYX_ERR(0, 4618, __pyx_L1_error)
26256 __pyx_r = __pyx_pf_13cfemIntegrals_222calculateExteriorElementBoundaryVelocities(__pyx_self, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_m, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_f, __pyx_v_vAverage, __pyx_v_vJump, __pyx_v_mAverage, __pyx_v_mJump);
26263 __Pyx_RefNannyFinishContext();
26267 static PyObject *__pyx_pf_13cfemIntegrals_222calculateExteriorElementBoundaryVelocities(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_vJump, PyArrayObject *__pyx_v_mAverage, PyArrayObject *__pyx_v_mJump) {
26268 PyObject *__pyx_r = NULL;
26269 __Pyx_RefNannyDeclarations
26270 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryVelocities", 0);
26279 calculateExteriorElementBoundaryVelocities(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_vJump->data), ((
double *)__pyx_v_mAverage->data), ((
double *)__pyx_v_mJump->data));
26290 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26291 __Pyx_XGIVEREF(__pyx_r);
26292 __Pyx_RefNannyFinishContext();
26305 static PyObject *__pyx_pw_13cfemIntegrals_225calculateConservationResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26306 static PyMethodDef __pyx_mdef_13cfemIntegrals_225calculateConservationResidualPWL = {
"calculateConservationResidualPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_225calculateConservationResidualPWL, METH_VARARGS|METH_KEYWORDS, 0};
26307 static PyObject *__pyx_pw_13cfemIntegrals_225calculateConservationResidualPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26308 int __pyx_v_nElements_global;
26309 int __pyx_v_nInteriorElementBoundaries_global;
26310 int __pyx_v_nExteriorElementBoundaries_global;
26311 int __pyx_v_nElementBoundaries_element;
26312 int __pyx_v_nQuadraturePoints_elementBoundary;
26313 int __pyx_v_nNodes_element;
26314 int __pyx_v_nSpace;
26315 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
26316 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
26317 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
26318 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
26319 PyArrayObject *__pyx_v_elementNodes = 0;
26320 PyArrayObject *__pyx_v_nodeStarElements = 0;
26321 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
26322 PyArrayObject *__pyx_v_nodeStarOffsets = 0;
26323 PyArrayObject *__pyx_v_nElements_node = 0;
26324 PyArrayObject *__pyx_v_elementResidual = 0;
26325 PyArrayObject *__pyx_v_vAverage = 0;
26326 PyArrayObject *__pyx_v_starU = 0;
26327 PyArrayObject *__pyx_v_dX = 0;
26328 PyArrayObject *__pyx_v_w = 0;
26329 PyArrayObject *__pyx_v_normal = 0;
26330 PyArrayObject *__pyx_v_conservationResidual = 0;
26331 PyArrayObject *__pyx_v_starR = 0;
26332 PyArrayObject *__pyx_v_vConservative = 0;
26333 PyArrayObject *__pyx_v_vConservative_element = 0;
26334 int __pyx_lineno = 0;
26335 const char *__pyx_filename = NULL;
26336 int __pyx_clineno = 0;
26337 PyObject *__pyx_r = 0;
26338 __Pyx_RefNannyDeclarations
26339 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL (wrapper)", 0);
26341 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nInteriorElementBoundaries_globa,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nNodes_element,&__pyx_n_s_nSpace,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nodeStarOffsets,&__pyx_n_s_nElements_node,&__pyx_n_s_elementResidual,&__pyx_n_s_vAverage,&__pyx_n_s_starU,&__pyx_n_s_dX,&__pyx_n_s_w,&__pyx_n_s_normal,&__pyx_n_s_conservationResidual,&__pyx_n_s_starR,&__pyx_n_s_vConservative,&__pyx_n_s_vConservative_element,0};
26342 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26343 if (unlikely(__pyx_kwds)) {
26344 Py_ssize_t kw_args;
26345 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26346 switch (pos_args) {
26347 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
26348 CYTHON_FALLTHROUGH;
26349 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
26350 CYTHON_FALLTHROUGH;
26351 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26352 CYTHON_FALLTHROUGH;
26353 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26354 CYTHON_FALLTHROUGH;
26355 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26356 CYTHON_FALLTHROUGH;
26357 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26358 CYTHON_FALLTHROUGH;
26359 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26360 CYTHON_FALLTHROUGH;
26361 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26362 CYTHON_FALLTHROUGH;
26363 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26364 CYTHON_FALLTHROUGH;
26365 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26366 CYTHON_FALLTHROUGH;
26367 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26368 CYTHON_FALLTHROUGH;
26369 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26370 CYTHON_FALLTHROUGH;
26371 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26372 CYTHON_FALLTHROUGH;
26373 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26374 CYTHON_FALLTHROUGH;
26375 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26376 CYTHON_FALLTHROUGH;
26377 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26378 CYTHON_FALLTHROUGH;
26379 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26380 CYTHON_FALLTHROUGH;
26381 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26382 CYTHON_FALLTHROUGH;
26383 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26384 CYTHON_FALLTHROUGH;
26385 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26386 CYTHON_FALLTHROUGH;
26387 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26388 CYTHON_FALLTHROUGH;
26389 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26390 CYTHON_FALLTHROUGH;
26391 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26392 CYTHON_FALLTHROUGH;
26393 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26394 CYTHON_FALLTHROUGH;
26395 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26396 CYTHON_FALLTHROUGH;
26397 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26398 CYTHON_FALLTHROUGH;
26400 default:
goto __pyx_L5_argtuple_error;
26402 kw_args = PyDict_Size(__pyx_kwds);
26403 switch (pos_args) {
26405 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
26406 else goto __pyx_L5_argtuple_error;
26407 CYTHON_FALLTHROUGH;
26409 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nInteriorElementBoundaries_globa)) != 0)) kw_args--;
26411 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 1); __PYX_ERR(0, 4634, __pyx_L3_error)
26413 CYTHON_FALLTHROUGH;
26415 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
26417 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 2); __PYX_ERR(0, 4634, __pyx_L3_error)
26419 CYTHON_FALLTHROUGH;
26421 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
26423 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 3); __PYX_ERR(0, 4634, __pyx_L3_error)
26425 CYTHON_FALLTHROUGH;
26427 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
26429 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 4); __PYX_ERR(0, 4634, __pyx_L3_error)
26431 CYTHON_FALLTHROUGH;
26433 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_element)) != 0)) kw_args--;
26435 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 5); __PYX_ERR(0, 4634, __pyx_L3_error)
26437 CYTHON_FALLTHROUGH;
26439 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
26441 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 6); __PYX_ERR(0, 4634, __pyx_L3_error)
26443 CYTHON_FALLTHROUGH;
26445 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
26447 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 7); __PYX_ERR(0, 4634, __pyx_L3_error)
26449 CYTHON_FALLTHROUGH;
26451 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
26453 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 8); __PYX_ERR(0, 4634, __pyx_L3_error)
26455 CYTHON_FALLTHROUGH;
26457 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
26459 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 9); __PYX_ERR(0, 4634, __pyx_L3_error)
26461 CYTHON_FALLTHROUGH;
26463 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
26465 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 10); __PYX_ERR(0, 4634, __pyx_L3_error)
26467 CYTHON_FALLTHROUGH;
26469 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
26471 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 11); __PYX_ERR(0, 4634, __pyx_L3_error)
26473 CYTHON_FALLTHROUGH;
26475 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
26477 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 12); __PYX_ERR(0, 4634, __pyx_L3_error)
26479 CYTHON_FALLTHROUGH;
26481 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
26483 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 13); __PYX_ERR(0, 4634, __pyx_L3_error)
26485 CYTHON_FALLTHROUGH;
26487 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarOffsets)) != 0)) kw_args--;
26489 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 14); __PYX_ERR(0, 4634, __pyx_L3_error)
26491 CYTHON_FALLTHROUGH;
26493 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
26495 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 15); __PYX_ERR(0, 4634, __pyx_L3_error)
26497 CYTHON_FALLTHROUGH;
26499 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
26501 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 16); __PYX_ERR(0, 4634, __pyx_L3_error)
26503 CYTHON_FALLTHROUGH;
26505 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
26507 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 17); __PYX_ERR(0, 4634, __pyx_L3_error)
26509 CYTHON_FALLTHROUGH;
26511 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starU)) != 0)) kw_args--;
26513 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 18); __PYX_ERR(0, 4634, __pyx_L3_error)
26515 CYTHON_FALLTHROUGH;
26517 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dX)) != 0)) kw_args--;
26519 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 19); __PYX_ERR(0, 4634, __pyx_L3_error)
26521 CYTHON_FALLTHROUGH;
26523 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
26525 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 20); __PYX_ERR(0, 4634, __pyx_L3_error)
26527 CYTHON_FALLTHROUGH;
26529 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_normal)) != 0)) kw_args--;
26531 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 21); __PYX_ERR(0, 4634, __pyx_L3_error)
26533 CYTHON_FALLTHROUGH;
26535 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
26537 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 22); __PYX_ERR(0, 4634, __pyx_L3_error)
26539 CYTHON_FALLTHROUGH;
26541 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starR)) != 0)) kw_args--;
26543 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 23); __PYX_ERR(0, 4634, __pyx_L3_error)
26545 CYTHON_FALLTHROUGH;
26547 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative)) != 0)) kw_args--;
26549 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 24); __PYX_ERR(0, 4634, __pyx_L3_error)
26551 CYTHON_FALLTHROUGH;
26553 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vConservative_element)) != 0)) kw_args--;
26555 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, 25); __PYX_ERR(0, 4634, __pyx_L3_error)
26558 if (unlikely(kw_args > 0)) {
26559 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualPWL") < 0)) __PYX_ERR(0, 4634, __pyx_L3_error)
26561 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
26562 goto __pyx_L5_argtuple_error;
26564 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26565 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26566 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26567 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26568 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26569 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26570 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26571 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26572 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26573 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26574 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26575 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26576 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26577 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26578 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26579 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26580 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26581 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26582 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26583 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26584 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26585 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26586 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26587 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
26588 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
26589 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
26591 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4634, __pyx_L3_error)
26592 __pyx_v_nInteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nInteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4635, __pyx_L3_error)
26593 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4636, __pyx_L3_error)
26594 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4637, __pyx_L3_error)
26595 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4638, __pyx_L3_error)
26596 __pyx_v_nNodes_element = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nNodes_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4639, __pyx_L3_error)
26597 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4640, __pyx_L3_error)
26598 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[7]);
26599 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[8]);
26600 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[9]);
26601 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[10]);
26602 __pyx_v_elementNodes = ((PyArrayObject *)values[11]);
26603 __pyx_v_nodeStarElements = ((PyArrayObject *)values[12]);
26604 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[13]);
26605 __pyx_v_nodeStarOffsets = ((PyArrayObject *)values[14]);
26606 __pyx_v_nElements_node = ((PyArrayObject *)values[15]);
26607 __pyx_v_elementResidual = ((PyArrayObject *)values[16]);
26608 __pyx_v_vAverage = ((PyArrayObject *)values[17]);
26609 __pyx_v_starU = ((PyArrayObject *)values[18]);
26610 __pyx_v_dX = ((PyArrayObject *)values[19]);
26611 __pyx_v_w = ((PyArrayObject *)values[20]);
26612 __pyx_v_normal = ((PyArrayObject *)values[21]);
26613 __pyx_v_conservationResidual = ((PyArrayObject *)values[22]);
26614 __pyx_v_starR = ((PyArrayObject *)values[23]);
26615 __pyx_v_vConservative = ((PyArrayObject *)values[24]);
26616 __pyx_v_vConservative_element = ((PyArrayObject *)values[25]);
26618 goto __pyx_L4_argument_unpacking_done;
26619 __pyx_L5_argtuple_error:;
26620 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualPWL", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4634, __pyx_L3_error)
26622 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationResidualPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
26623 __Pyx_RefNannyFinishContext();
26625 __pyx_L4_argument_unpacking_done:;
26626 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4641, __pyx_L1_error)
26627 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4642, __pyx_L1_error)
26628 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4643, __pyx_L1_error)
26629 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4644, __pyx_L1_error)
26630 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 4645, __pyx_L1_error)
26631 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 4646, __pyx_L1_error)
26632 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 4647, __pyx_L1_error)
26633 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarOffsets", 0))) __PYX_ERR(0, 4648, __pyx_L1_error)
26634 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 4649, __pyx_L1_error)
26635 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 4650, __pyx_L1_error)
26636 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 4651, __pyx_L1_error)
26637 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starU), __pyx_ptype_5numpy_ndarray, 1,
"starU", 0))) __PYX_ERR(0, 4652, __pyx_L1_error)
26638 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dX), __pyx_ptype_5numpy_ndarray, 1,
"dX", 0))) __PYX_ERR(0, 4653, __pyx_L1_error)
26639 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4654, __pyx_L1_error)
26640 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_normal), __pyx_ptype_5numpy_ndarray, 1,
"normal", 0))) __PYX_ERR(0, 4655, __pyx_L1_error)
26641 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 4656, __pyx_L1_error)
26642 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starR), __pyx_ptype_5numpy_ndarray, 1,
"starR", 0))) __PYX_ERR(0, 4657, __pyx_L1_error)
26643 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative), __pyx_ptype_5numpy_ndarray, 1,
"vConservative", 0))) __PYX_ERR(0, 4658, __pyx_L1_error)
26644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vConservative_element), __pyx_ptype_5numpy_ndarray, 1,
"vConservative_element", 0))) __PYX_ERR(0, 4659, __pyx_L1_error)
26645 __pyx_r = __pyx_pf_13cfemIntegrals_224calculateConservationResidualPWL(__pyx_self, __pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nodeStarOffsets, __pyx_v_nElements_node, __pyx_v_elementResidual, __pyx_v_vAverage, __pyx_v_starU, __pyx_v_dX, __pyx_v_w, __pyx_v_normal, __pyx_v_conservationResidual, __pyx_v_starR, __pyx_v_vConservative, __pyx_v_vConservative_element);
26652 __Pyx_RefNannyFinishContext();
26656 static PyObject *__pyx_pf_13cfemIntegrals_224calculateConservationResidualPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, 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_nodeStarOffsets, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_vAverage, PyArrayObject *__pyx_v_starU, PyArrayObject *__pyx_v_dX, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_conservationResidual, PyArrayObject *__pyx_v_starR, PyArrayObject *__pyx_v_vConservative, PyArrayObject *__pyx_v_vConservative_element) {
26657 PyObject *__pyx_r = NULL;
26658 __Pyx_RefNannyDeclarations
26659 __Pyx_RefNannySetupContext(
"calculateConservationResidualPWL", 0);
26668 calculateConservationResidualPWL(__pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nodeStarOffsets->data), ((
int *)__pyx_v_nElements_node->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_vAverage->data), ((
double *)__pyx_v_starU->data), ((
double *)__pyx_v_dX->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_normal->data), ((
double *)__pyx_v_conservationResidual->data), ((
double *)__pyx_v_starR->data), ((
double *)__pyx_v_vConservative->data), ((
double *)__pyx_v_vConservative_element->data));
26679 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
26680 __Pyx_XGIVEREF(__pyx_r);
26681 __Pyx_RefNannyFinishContext();
26694 static PyObject *__pyx_pw_13cfemIntegrals_227calculateConservationJacobianPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
26695 static PyMethodDef __pyx_mdef_13cfemIntegrals_227calculateConservationJacobianPWL = {
"calculateConservationJacobianPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_227calculateConservationJacobianPWL, METH_VARARGS|METH_KEYWORDS, 0};
26696 static PyObject *__pyx_pw_13cfemIntegrals_227calculateConservationJacobianPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
26697 int __pyx_v_nNodes_global;
26698 int __pyx_v_nNodes_internal;
26699 int __pyx_v_nElements_global;
26700 int __pyx_v_nInteriorElementBoundaries_global;
26701 int __pyx_v_nExteriorElementBoundaries_global;
26702 int __pyx_v_nElementBoundaries_element;
26703 int __pyx_v_nQuadraturePoints_elementBoundary;
26704 int __pyx_v_nNodes_element;
26705 int __pyx_v_nSpace;
26706 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
26707 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
26708 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
26709 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
26710 PyArrayObject *__pyx_v_elementNodes = 0;
26711 PyArrayObject *__pyx_v_nodeStarElements = 0;
26712 PyArrayObject *__pyx_v_nodeStarElementNeighbors = 0;
26713 PyArrayObject *__pyx_v_nodeStarOffsets = 0;
26714 PyArrayObject *__pyx_v_nodeStarJacobianOffsets = 0;
26715 PyArrayObject *__pyx_v_nElements_node = 0;
26716 PyArrayObject *__pyx_v_internalNodes = 0;
26717 PyArrayObject *__pyx_v_w = 0;
26718 PyArrayObject *__pyx_v_normal = 0;
26719 PyArrayObject *__pyx_v_starJacobian = 0;
26720 int __pyx_lineno = 0;
26721 const char *__pyx_filename = NULL;
26722 int __pyx_clineno = 0;
26723 PyObject *__pyx_r = 0;
26724 __Pyx_RefNannyDeclarations
26725 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL (wrapper)", 0);
26727 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNodes_global,&__pyx_n_s_nNodes_internal,&__pyx_n_s_nElements_global,&__pyx_n_s_nInteriorElementBoundaries_globa,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nNodes_element,&__pyx_n_s_nSpace,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_elementNodes,&__pyx_n_s_nodeStarElements,&__pyx_n_s_nodeStarElementNeighbors,&__pyx_n_s_nodeStarOffsets,&__pyx_n_s_nodeStarJacobianOffsets,&__pyx_n_s_nElements_node,&__pyx_n_s_internalNodes,&__pyx_n_s_w,&__pyx_n_s_normal,&__pyx_n_s_starJacobian,0};
26728 PyObject* values[23] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
26729 if (unlikely(__pyx_kwds)) {
26730 Py_ssize_t kw_args;
26731 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
26732 switch (pos_args) {
26733 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26734 CYTHON_FALLTHROUGH;
26735 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26736 CYTHON_FALLTHROUGH;
26737 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26738 CYTHON_FALLTHROUGH;
26739 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26740 CYTHON_FALLTHROUGH;
26741 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26742 CYTHON_FALLTHROUGH;
26743 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26744 CYTHON_FALLTHROUGH;
26745 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26746 CYTHON_FALLTHROUGH;
26747 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26748 CYTHON_FALLTHROUGH;
26749 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26750 CYTHON_FALLTHROUGH;
26751 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26752 CYTHON_FALLTHROUGH;
26753 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26754 CYTHON_FALLTHROUGH;
26755 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26756 CYTHON_FALLTHROUGH;
26757 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26758 CYTHON_FALLTHROUGH;
26759 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26760 CYTHON_FALLTHROUGH;
26761 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26762 CYTHON_FALLTHROUGH;
26763 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26764 CYTHON_FALLTHROUGH;
26765 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26766 CYTHON_FALLTHROUGH;
26767 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26768 CYTHON_FALLTHROUGH;
26769 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26770 CYTHON_FALLTHROUGH;
26771 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26772 CYTHON_FALLTHROUGH;
26773 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26774 CYTHON_FALLTHROUGH;
26775 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26776 CYTHON_FALLTHROUGH;
26777 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26778 CYTHON_FALLTHROUGH;
26780 default:
goto __pyx_L5_argtuple_error;
26782 kw_args = PyDict_Size(__pyx_kwds);
26783 switch (pos_args) {
26785 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_global)) != 0)) kw_args--;
26786 else goto __pyx_L5_argtuple_error;
26787 CYTHON_FALLTHROUGH;
26789 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_internal)) != 0)) kw_args--;
26791 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 1); __PYX_ERR(0, 4686, __pyx_L3_error)
26793 CYTHON_FALLTHROUGH;
26795 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
26797 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 2); __PYX_ERR(0, 4686, __pyx_L3_error)
26799 CYTHON_FALLTHROUGH;
26801 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nInteriorElementBoundaries_globa)) != 0)) kw_args--;
26803 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 3); __PYX_ERR(0, 4686, __pyx_L3_error)
26805 CYTHON_FALLTHROUGH;
26807 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
26809 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 4); __PYX_ERR(0, 4686, __pyx_L3_error)
26811 CYTHON_FALLTHROUGH;
26813 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
26815 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 5); __PYX_ERR(0, 4686, __pyx_L3_error)
26817 CYTHON_FALLTHROUGH;
26819 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
26821 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 6); __PYX_ERR(0, 4686, __pyx_L3_error)
26823 CYTHON_FALLTHROUGH;
26825 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_element)) != 0)) kw_args--;
26827 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 7); __PYX_ERR(0, 4686, __pyx_L3_error)
26829 CYTHON_FALLTHROUGH;
26831 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
26833 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 8); __PYX_ERR(0, 4686, __pyx_L3_error)
26835 CYTHON_FALLTHROUGH;
26837 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
26839 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 9); __PYX_ERR(0, 4686, __pyx_L3_error)
26841 CYTHON_FALLTHROUGH;
26843 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
26845 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 10); __PYX_ERR(0, 4686, __pyx_L3_error)
26847 CYTHON_FALLTHROUGH;
26849 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
26851 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 11); __PYX_ERR(0, 4686, __pyx_L3_error)
26853 CYTHON_FALLTHROUGH;
26855 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
26857 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 12); __PYX_ERR(0, 4686, __pyx_L3_error)
26859 CYTHON_FALLTHROUGH;
26861 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodes)) != 0)) kw_args--;
26863 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 13); __PYX_ERR(0, 4686, __pyx_L3_error)
26865 CYTHON_FALLTHROUGH;
26867 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElements)) != 0)) kw_args--;
26869 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 14); __PYX_ERR(0, 4686, __pyx_L3_error)
26871 CYTHON_FALLTHROUGH;
26873 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarElementNeighbors)) != 0)) kw_args--;
26875 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 15); __PYX_ERR(0, 4686, __pyx_L3_error)
26877 CYTHON_FALLTHROUGH;
26879 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarOffsets)) != 0)) kw_args--;
26881 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 16); __PYX_ERR(0, 4686, __pyx_L3_error)
26883 CYTHON_FALLTHROUGH;
26885 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarJacobianOffsets)) != 0)) kw_args--;
26887 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 17); __PYX_ERR(0, 4686, __pyx_L3_error)
26889 CYTHON_FALLTHROUGH;
26891 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
26893 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 18); __PYX_ERR(0, 4686, __pyx_L3_error)
26895 CYTHON_FALLTHROUGH;
26897 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
26899 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 19); __PYX_ERR(0, 4686, __pyx_L3_error)
26901 CYTHON_FALLTHROUGH;
26903 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
26905 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 20); __PYX_ERR(0, 4686, __pyx_L3_error)
26907 CYTHON_FALLTHROUGH;
26909 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_normal)) != 0)) kw_args--;
26911 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 21); __PYX_ERR(0, 4686, __pyx_L3_error)
26913 CYTHON_FALLTHROUGH;
26915 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starJacobian)) != 0)) kw_args--;
26917 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, 22); __PYX_ERR(0, 4686, __pyx_L3_error)
26920 if (unlikely(kw_args > 0)) {
26921 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationJacobianPWL") < 0)) __PYX_ERR(0, 4686, __pyx_L3_error)
26923 }
else if (PyTuple_GET_SIZE(__pyx_args) != 23) {
26924 goto __pyx_L5_argtuple_error;
26926 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
26927 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
26928 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
26929 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
26930 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
26931 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
26932 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
26933 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
26934 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
26935 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
26936 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
26937 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
26938 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
26939 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
26940 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
26941 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
26942 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
26943 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
26944 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
26945 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
26946 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
26947 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
26948 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
26950 __pyx_v_nNodes_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNodes_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4686, __pyx_L3_error)
26951 __pyx_v_nNodes_internal = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nNodes_internal == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4687, __pyx_L3_error)
26952 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4688, __pyx_L3_error)
26953 __pyx_v_nInteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nInteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4689, __pyx_L3_error)
26954 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4690, __pyx_L3_error)
26955 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4691, __pyx_L3_error)
26956 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4692, __pyx_L3_error)
26957 __pyx_v_nNodes_element = __Pyx_PyInt_As_int(values[7]);
if (unlikely((__pyx_v_nNodes_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4693, __pyx_L3_error)
26958 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[8]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4694, __pyx_L3_error)
26959 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[9]);
26960 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[10]);
26961 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[11]);
26962 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[12]);
26963 __pyx_v_elementNodes = ((PyArrayObject *)values[13]);
26964 __pyx_v_nodeStarElements = ((PyArrayObject *)values[14]);
26965 __pyx_v_nodeStarElementNeighbors = ((PyArrayObject *)values[15]);
26966 __pyx_v_nodeStarOffsets = ((PyArrayObject *)values[16]);
26967 __pyx_v_nodeStarJacobianOffsets = ((PyArrayObject *)values[17]);
26968 __pyx_v_nElements_node = ((PyArrayObject *)values[18]);
26969 __pyx_v_internalNodes = ((PyArrayObject *)values[19]);
26970 __pyx_v_w = ((PyArrayObject *)values[20]);
26971 __pyx_v_normal = ((PyArrayObject *)values[21]);
26972 __pyx_v_starJacobian = ((PyArrayObject *)values[22]);
26974 goto __pyx_L4_argument_unpacking_done;
26975 __pyx_L5_argtuple_error:;
26976 __Pyx_RaiseArgtupleInvalid(
"calculateConservationJacobianPWL", 1, 23, 23, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4686, __pyx_L3_error)
26978 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationJacobianPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
26979 __Pyx_RefNannyFinishContext();
26981 __pyx_L4_argument_unpacking_done:;
26982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4695, __pyx_L1_error)
26983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4696, __pyx_L1_error)
26984 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4697, __pyx_L1_error)
26985 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4698, __pyx_L1_error)
26986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodes), __pyx_ptype_5numpy_ndarray, 1,
"elementNodes", 0))) __PYX_ERR(0, 4699, __pyx_L1_error)
26987 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElements), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElements", 0))) __PYX_ERR(0, 4700, __pyx_L1_error)
26988 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarElementNeighbors), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarElementNeighbors", 0))) __PYX_ERR(0, 4701, __pyx_L1_error)
26989 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarOffsets", 0))) __PYX_ERR(0, 4702, __pyx_L1_error)
26990 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarJacobianOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarJacobianOffsets", 0))) __PYX_ERR(0, 4703, __pyx_L1_error)
26991 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 4704, __pyx_L1_error)
26992 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 4705, __pyx_L1_error)
26993 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 4706, __pyx_L1_error)
26994 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_normal), __pyx_ptype_5numpy_ndarray, 1,
"normal", 0))) __PYX_ERR(0, 4707, __pyx_L1_error)
26995 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starJacobian), __pyx_ptype_5numpy_ndarray, 1,
"starJacobian", 0))) __PYX_ERR(0, 4708, __pyx_L1_error)
26996 __pyx_r = __pyx_pf_13cfemIntegrals_226calculateConservationJacobianPWL(__pyx_self, __pyx_v_nNodes_global, __pyx_v_nNodes_internal, __pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_elementNodes, __pyx_v_nodeStarElements, __pyx_v_nodeStarElementNeighbors, __pyx_v_nodeStarOffsets, __pyx_v_nodeStarJacobianOffsets, __pyx_v_nElements_node, __pyx_v_internalNodes, __pyx_v_w, __pyx_v_normal, __pyx_v_starJacobian);
27003 __Pyx_RefNannyFinishContext();
27007 static PyObject *__pyx_pf_13cfemIntegrals_226calculateConservationJacobianPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_internal,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, 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_nodeStarOffsets, PyArrayObject *__pyx_v_nodeStarJacobianOffsets, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_starJacobian) {
27008 PyObject *__pyx_r = NULL;
27009 __Pyx_RefNannyDeclarations
27010 __Pyx_RefNannySetupContext(
"calculateConservationJacobianPWL", 0);
27019 calculateConservationJacobianPWL(__pyx_v_nNodes_global, __pyx_v_nNodes_internal, __pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_elementNodes->data), ((
int *)__pyx_v_nodeStarElements->data), ((
int *)__pyx_v_nodeStarElementNeighbors->data), ((
int *)__pyx_v_nodeStarOffsets->data), ((
int *)__pyx_v_nodeStarJacobianOffsets->data), ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_internalNodes->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_normal->data), ((
double *)__pyx_v_starJacobian->data));
27030 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27031 __Pyx_XGIVEREF(__pyx_r);
27032 __Pyx_RefNannyFinishContext();
27045 static PyObject *__pyx_pw_13cfemIntegrals_229calculateConservationFluxPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27046 static PyMethodDef __pyx_mdef_13cfemIntegrals_229calculateConservationFluxPWL = {
"calculateConservationFluxPWL", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_229calculateConservationFluxPWL, METH_VARARGS|METH_KEYWORDS, 0};
27047 static PyObject *__pyx_pw_13cfemIntegrals_229calculateConservationFluxPWL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27048 int __pyx_v_nNodes_global;
27049 int __pyx_v_nNodes_internal;
27050 PyArrayObject *__pyx_v_nElements_node = 0;
27051 PyArrayObject *__pyx_v_nodeStarOffsets = 0;
27052 PyArrayObject *__pyx_v_nodeStarJacobianOffsets = 0;
27053 PyArrayObject *__pyx_v_internalNodes = 0;
27054 PyArrayObject *__pyx_v_starR = 0;
27055 PyArrayObject *__pyx_v_starJ = 0;
27056 PyArrayObject *__pyx_v_starU = 0;
27057 int __pyx_lineno = 0;
27058 const char *__pyx_filename = NULL;
27059 int __pyx_clineno = 0;
27060 PyObject *__pyx_r = 0;
27061 __Pyx_RefNannyDeclarations
27062 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL (wrapper)", 0);
27064 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nNodes_global,&__pyx_n_s_nNodes_internal,&__pyx_n_s_nElements_node,&__pyx_n_s_nodeStarOffsets,&__pyx_n_s_nodeStarJacobianOffsets,&__pyx_n_s_internalNodes,&__pyx_n_s_starR,&__pyx_n_s_starJ,&__pyx_n_s_starU,0};
27065 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
27066 if (unlikely(__pyx_kwds)) {
27067 Py_ssize_t kw_args;
27068 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27069 switch (pos_args) {
27070 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27071 CYTHON_FALLTHROUGH;
27072 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27073 CYTHON_FALLTHROUGH;
27074 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27075 CYTHON_FALLTHROUGH;
27076 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27077 CYTHON_FALLTHROUGH;
27078 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27079 CYTHON_FALLTHROUGH;
27080 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27081 CYTHON_FALLTHROUGH;
27082 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27083 CYTHON_FALLTHROUGH;
27084 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27085 CYTHON_FALLTHROUGH;
27086 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27087 CYTHON_FALLTHROUGH;
27089 default:
goto __pyx_L5_argtuple_error;
27091 kw_args = PyDict_Size(__pyx_kwds);
27092 switch (pos_args) {
27094 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_global)) != 0)) kw_args--;
27095 else goto __pyx_L5_argtuple_error;
27096 CYTHON_FALLTHROUGH;
27098 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_internal)) != 0)) kw_args--;
27100 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 1); __PYX_ERR(0, 4732, __pyx_L3_error)
27102 CYTHON_FALLTHROUGH;
27104 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_node)) != 0)) kw_args--;
27106 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 2); __PYX_ERR(0, 4732, __pyx_L3_error)
27108 CYTHON_FALLTHROUGH;
27110 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarOffsets)) != 0)) kw_args--;
27112 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 3); __PYX_ERR(0, 4732, __pyx_L3_error)
27114 CYTHON_FALLTHROUGH;
27116 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeStarJacobianOffsets)) != 0)) kw_args--;
27118 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 4); __PYX_ERR(0, 4732, __pyx_L3_error)
27120 CYTHON_FALLTHROUGH;
27122 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_internalNodes)) != 0)) kw_args--;
27124 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 5); __PYX_ERR(0, 4732, __pyx_L3_error)
27126 CYTHON_FALLTHROUGH;
27128 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starR)) != 0)) kw_args--;
27130 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 6); __PYX_ERR(0, 4732, __pyx_L3_error)
27132 CYTHON_FALLTHROUGH;
27134 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starJ)) != 0)) kw_args--;
27136 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 7); __PYX_ERR(0, 4732, __pyx_L3_error)
27138 CYTHON_FALLTHROUGH;
27140 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_starU)) != 0)) kw_args--;
27142 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, 8); __PYX_ERR(0, 4732, __pyx_L3_error)
27145 if (unlikely(kw_args > 0)) {
27146 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationFluxPWL") < 0)) __PYX_ERR(0, 4732, __pyx_L3_error)
27148 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
27149 goto __pyx_L5_argtuple_error;
27151 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27152 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27153 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27154 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27155 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27156 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27157 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27158 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27159 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27161 __pyx_v_nNodes_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nNodes_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4732, __pyx_L3_error)
27162 __pyx_v_nNodes_internal = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nNodes_internal == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4733, __pyx_L3_error)
27163 __pyx_v_nElements_node = ((PyArrayObject *)values[2]);
27164 __pyx_v_nodeStarOffsets = ((PyArrayObject *)values[3]);
27165 __pyx_v_nodeStarJacobianOffsets = ((PyArrayObject *)values[4]);
27166 __pyx_v_internalNodes = ((PyArrayObject *)values[5]);
27167 __pyx_v_starR = ((PyArrayObject *)values[6]);
27168 __pyx_v_starJ = ((PyArrayObject *)values[7]);
27169 __pyx_v_starU = ((PyArrayObject *)values[8]);
27171 goto __pyx_L4_argument_unpacking_done;
27172 __pyx_L5_argtuple_error:;
27173 __Pyx_RaiseArgtupleInvalid(
"calculateConservationFluxPWL", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4732, __pyx_L3_error)
27175 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationFluxPWL", __pyx_clineno, __pyx_lineno, __pyx_filename);
27176 __Pyx_RefNannyFinishContext();
27178 __pyx_L4_argument_unpacking_done:;
27179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nElements_node), __pyx_ptype_5numpy_ndarray, 1,
"nElements_node", 0))) __PYX_ERR(0, 4734, __pyx_L1_error)
27180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarOffsets", 0))) __PYX_ERR(0, 4735, __pyx_L1_error)
27181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeStarJacobianOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeStarJacobianOffsets", 0))) __PYX_ERR(0, 4736, __pyx_L1_error)
27182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_internalNodes), __pyx_ptype_5numpy_ndarray, 1,
"internalNodes", 0))) __PYX_ERR(0, 4737, __pyx_L1_error)
27183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starR), __pyx_ptype_5numpy_ndarray, 1,
"starR", 0))) __PYX_ERR(0, 4738, __pyx_L1_error)
27184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starJ), __pyx_ptype_5numpy_ndarray, 1,
"starJ", 0))) __PYX_ERR(0, 4739, __pyx_L1_error)
27185 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_starU), __pyx_ptype_5numpy_ndarray, 1,
"starU", 0))) __PYX_ERR(0, 4740, __pyx_L1_error)
27186 __pyx_r = __pyx_pf_13cfemIntegrals_228calculateConservationFluxPWL(__pyx_self, __pyx_v_nNodes_global, __pyx_v_nNodes_internal, __pyx_v_nElements_node, __pyx_v_nodeStarOffsets, __pyx_v_nodeStarJacobianOffsets, __pyx_v_internalNodes, __pyx_v_starR, __pyx_v_starJ, __pyx_v_starU);
27193 __Pyx_RefNannyFinishContext();
27197 static PyObject *__pyx_pf_13cfemIntegrals_228calculateConservationFluxPWL(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_internal, PyArrayObject *__pyx_v_nElements_node, PyArrayObject *__pyx_v_nodeStarOffsets, PyArrayObject *__pyx_v_nodeStarJacobianOffsets, PyArrayObject *__pyx_v_internalNodes, PyArrayObject *__pyx_v_starR, PyArrayObject *__pyx_v_starJ, PyArrayObject *__pyx_v_starU) {
27198 PyObject *__pyx_r = NULL;
27199 __Pyx_RefNannyDeclarations
27200 __Pyx_RefNannySetupContext(
"calculateConservationFluxPWL", 0);
27209 calculateConservationFluxPWL(__pyx_v_nNodes_global, __pyx_v_nNodes_internal, ((
int *)__pyx_v_nElements_node->data), ((
int *)__pyx_v_nodeStarOffsets->data), ((
int *)__pyx_v_nodeStarJacobianOffsets->data), ((
int *)__pyx_v_internalNodes->data), ((
double *)__pyx_v_starR->data), ((
double *)__pyx_v_starJ->data), ((
double *)__pyx_v_starU->data));
27220 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27221 __Pyx_XGIVEREF(__pyx_r);
27222 __Pyx_RefNannyFinishContext();
27235 static PyObject *__pyx_pw_13cfemIntegrals_231setExteriorGlobalElementBoundaryVelocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27236 static PyMethodDef __pyx_mdef_13cfemIntegrals_231setExteriorGlobalElementBoundaryVelocityValues = {
"setExteriorGlobalElementBoundaryVelocityValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_231setExteriorGlobalElementBoundaryVelocityValues, METH_VARARGS|METH_KEYWORDS, 0};
27237 static PyObject *__pyx_pw_13cfemIntegrals_231setExteriorGlobalElementBoundaryVelocityValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27238 int __pyx_v_updateFluxValues;
27239 int __pyx_v_nExteriorElementBoundaries_global;
27240 int __pyx_v_nQuadraturePoints_elementBoundary;
27241 int __pyx_v_nSpace;
27242 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
27243 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
27244 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
27245 PyArrayObject *__pyx_v_n = 0;
27246 PyArrayObject *__pyx_v_vn_in = 0;
27247 PyArrayObject *__pyx_v_v_out = 0;
27248 int __pyx_lineno = 0;
27249 const char *__pyx_filename = NULL;
27250 int __pyx_clineno = 0;
27251 PyObject *__pyx_r = 0;
27252 __Pyx_RefNannyDeclarations
27253 __Pyx_RefNannySetupContext(
"setExteriorGlobalElementBoundaryVelocityValues (wrapper)", 0);
27255 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_updateFluxValues,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nSpace,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_vn_in,&__pyx_n_s_v_out,0};
27256 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
27257 if (unlikely(__pyx_kwds)) {
27258 Py_ssize_t kw_args;
27259 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27260 switch (pos_args) {
27261 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27262 CYTHON_FALLTHROUGH;
27263 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27264 CYTHON_FALLTHROUGH;
27265 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27266 CYTHON_FALLTHROUGH;
27267 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27268 CYTHON_FALLTHROUGH;
27269 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27270 CYTHON_FALLTHROUGH;
27271 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27272 CYTHON_FALLTHROUGH;
27273 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27274 CYTHON_FALLTHROUGH;
27275 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27276 CYTHON_FALLTHROUGH;
27277 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27278 CYTHON_FALLTHROUGH;
27279 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27280 CYTHON_FALLTHROUGH;
27282 default:
goto __pyx_L5_argtuple_error;
27284 kw_args = PyDict_Size(__pyx_kwds);
27285 switch (pos_args) {
27287 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_updateFluxValues)) != 0)) kw_args--;
27288 else goto __pyx_L5_argtuple_error;
27289 CYTHON_FALLTHROUGH;
27291 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
27293 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 1); __PYX_ERR(0, 4750, __pyx_L3_error)
27295 CYTHON_FALLTHROUGH;
27297 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
27299 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 2); __PYX_ERR(0, 4750, __pyx_L3_error)
27301 CYTHON_FALLTHROUGH;
27303 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
27305 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 3); __PYX_ERR(0, 4750, __pyx_L3_error)
27307 CYTHON_FALLTHROUGH;
27309 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
27311 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 4); __PYX_ERR(0, 4750, __pyx_L3_error)
27313 CYTHON_FALLTHROUGH;
27315 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
27317 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 5); __PYX_ERR(0, 4750, __pyx_L3_error)
27319 CYTHON_FALLTHROUGH;
27321 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
27323 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 6); __PYX_ERR(0, 4750, __pyx_L3_error)
27325 CYTHON_FALLTHROUGH;
27327 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
27329 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 7); __PYX_ERR(0, 4750, __pyx_L3_error)
27331 CYTHON_FALLTHROUGH;
27333 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vn_in)) != 0)) kw_args--;
27335 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 8); __PYX_ERR(0, 4750, __pyx_L3_error)
27337 CYTHON_FALLTHROUGH;
27339 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_out)) != 0)) kw_args--;
27341 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, 9); __PYX_ERR(0, 4750, __pyx_L3_error)
27344 if (unlikely(kw_args > 0)) {
27345 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setExteriorGlobalElementBoundaryVelocityValues") < 0)) __PYX_ERR(0, 4750, __pyx_L3_error)
27347 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
27348 goto __pyx_L5_argtuple_error;
27350 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27351 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27352 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27353 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27354 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27355 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27356 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27357 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27358 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27359 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27361 __pyx_v_updateFluxValues = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_updateFluxValues == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4750, __pyx_L3_error)
27362 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4751, __pyx_L3_error)
27363 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4752, __pyx_L3_error)
27364 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4753, __pyx_L3_error)
27365 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[4]);
27366 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[5]);
27367 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[6]);
27368 __pyx_v_n = ((PyArrayObject *)values[7]);
27369 __pyx_v_vn_in = ((PyArrayObject *)values[8]);
27370 __pyx_v_v_out = ((PyArrayObject *)values[9]);
27372 goto __pyx_L4_argument_unpacking_done;
27373 __pyx_L5_argtuple_error:;
27374 __Pyx_RaiseArgtupleInvalid(
"setExteriorGlobalElementBoundaryVelocityValues", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4750, __pyx_L3_error)
27376 __Pyx_AddTraceback(
"cfemIntegrals.setExteriorGlobalElementBoundaryVelocityValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
27377 __Pyx_RefNannyFinishContext();
27379 __pyx_L4_argument_unpacking_done:;
27380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4754, __pyx_L1_error)
27381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4755, __pyx_L1_error)
27382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4756, __pyx_L1_error)
27383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 4757, __pyx_L1_error)
27384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vn_in), __pyx_ptype_5numpy_ndarray, 1,
"vn_in", 0))) __PYX_ERR(0, 4758, __pyx_L1_error)
27385 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_out), __pyx_ptype_5numpy_ndarray, 1,
"v_out", 0))) __PYX_ERR(0, 4759, __pyx_L1_error)
27386 __pyx_r = __pyx_pf_13cfemIntegrals_230setExteriorGlobalElementBoundaryVelocityValues(__pyx_self, __pyx_v_updateFluxValues, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_vn_in, __pyx_v_v_out);
27393 __Pyx_RefNannyFinishContext();
27397 static PyObject *__pyx_pf_13cfemIntegrals_230setExteriorGlobalElementBoundaryVelocityValues(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_updateFluxValues,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_vn_in, PyArrayObject *__pyx_v_v_out) {
27398 PyObject *__pyx_r = NULL;
27399 __Pyx_RefNannyDeclarations
27400 __Pyx_RefNannySetupContext(
"setExteriorGlobalElementBoundaryVelocityValues", 0);
27409 setExteriorGlobalElementBoundaryVelocityValues(__pyx_v_updateFluxValues, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_vn_in->data), ((
double *)__pyx_v_v_out->data));
27420 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27421 __Pyx_XGIVEREF(__pyx_r);
27422 __Pyx_RefNannyFinishContext();
27435 static PyObject *__pyx_pw_13cfemIntegrals_233calculateDimensionlessNumbersADR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27436 static PyMethodDef __pyx_mdef_13cfemIntegrals_233calculateDimensionlessNumbersADR = {
"calculateDimensionlessNumbersADR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_233calculateDimensionlessNumbersADR, METH_VARARGS|METH_KEYWORDS, 0};
27437 static PyObject *__pyx_pw_13cfemIntegrals_233calculateDimensionlessNumbersADR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27438 int __pyx_v_nElements_global;
27439 int __pyx_v_nQuadraturePoints_element;
27440 int __pyx_v_nSpace;
27441 PyArrayObject *__pyx_v_elementDiameter = 0;
27442 PyArrayObject *__pyx_v_df = 0;
27443 PyArrayObject *__pyx_v_a = 0;
27444 PyArrayObject *__pyx_v_dphi = 0;
27445 PyArrayObject *__pyx_v_dr = 0;
27446 PyArrayObject *__pyx_v_dmt = 0;
27447 PyArrayObject *__pyx_v_pe = 0;
27448 PyArrayObject *__pyx_v_cfl = 0;
27449 int __pyx_lineno = 0;
27450 const char *__pyx_filename = NULL;
27451 int __pyx_clineno = 0;
27452 PyObject *__pyx_r = 0;
27453 __Pyx_RefNannyDeclarations
27454 __Pyx_RefNannySetupContext(
"calculateDimensionlessNumbersADR (wrapper)", 0);
27456 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nQuadraturePoints_element,&__pyx_n_s_nSpace,&__pyx_n_s_elementDiameter,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_dphi,&__pyx_n_s_dr,&__pyx_n_s_dmt,&__pyx_n_s_pe,&__pyx_n_s_cfl,0};
27457 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
27458 if (unlikely(__pyx_kwds)) {
27459 Py_ssize_t kw_args;
27460 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27461 switch (pos_args) {
27462 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27463 CYTHON_FALLTHROUGH;
27464 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27465 CYTHON_FALLTHROUGH;
27466 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27467 CYTHON_FALLTHROUGH;
27468 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27469 CYTHON_FALLTHROUGH;
27470 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27471 CYTHON_FALLTHROUGH;
27472 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27473 CYTHON_FALLTHROUGH;
27474 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27475 CYTHON_FALLTHROUGH;
27476 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27477 CYTHON_FALLTHROUGH;
27478 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27479 CYTHON_FALLTHROUGH;
27480 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27481 CYTHON_FALLTHROUGH;
27482 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27483 CYTHON_FALLTHROUGH;
27485 default:
goto __pyx_L5_argtuple_error;
27487 kw_args = PyDict_Size(__pyx_kwds);
27488 switch (pos_args) {
27490 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
27491 else goto __pyx_L5_argtuple_error;
27492 CYTHON_FALLTHROUGH;
27494 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_element)) != 0)) kw_args--;
27496 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 1); __PYX_ERR(0, 4770, __pyx_L3_error)
27498 CYTHON_FALLTHROUGH;
27500 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
27502 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 2); __PYX_ERR(0, 4770, __pyx_L3_error)
27504 CYTHON_FALLTHROUGH;
27506 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
27508 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 3); __PYX_ERR(0, 4770, __pyx_L3_error)
27510 CYTHON_FALLTHROUGH;
27512 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27514 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 4); __PYX_ERR(0, 4770, __pyx_L3_error)
27516 CYTHON_FALLTHROUGH;
27518 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27520 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 5); __PYX_ERR(0, 4770, __pyx_L3_error)
27522 CYTHON_FALLTHROUGH;
27524 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
27526 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 6); __PYX_ERR(0, 4770, __pyx_L3_error)
27528 CYTHON_FALLTHROUGH;
27530 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
27532 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 7); __PYX_ERR(0, 4770, __pyx_L3_error)
27534 CYTHON_FALLTHROUGH;
27536 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
27538 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 8); __PYX_ERR(0, 4770, __pyx_L3_error)
27540 CYTHON_FALLTHROUGH;
27542 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pe)) != 0)) kw_args--;
27544 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 9); __PYX_ERR(0, 4770, __pyx_L3_error)
27546 CYTHON_FALLTHROUGH;
27548 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cfl)) != 0)) kw_args--;
27550 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, 10); __PYX_ERR(0, 4770, __pyx_L3_error)
27553 if (unlikely(kw_args > 0)) {
27554 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateDimensionlessNumbersADR") < 0)) __PYX_ERR(0, 4770, __pyx_L3_error)
27556 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
27557 goto __pyx_L5_argtuple_error;
27559 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27560 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27561 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27562 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27563 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27564 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27565 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27566 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27567 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27568 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27569 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27571 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4770, __pyx_L3_error)
27572 __pyx_v_nQuadraturePoints_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4771, __pyx_L3_error)
27573 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4772, __pyx_L3_error)
27574 __pyx_v_elementDiameter = ((PyArrayObject *)values[3]);
27575 __pyx_v_df = ((PyArrayObject *)values[4]);
27576 __pyx_v_a = ((PyArrayObject *)values[5]);
27577 __pyx_v_dphi = ((PyArrayObject *)values[6]);
27578 __pyx_v_dr = ((PyArrayObject *)values[7]);
27579 __pyx_v_dmt = ((PyArrayObject *)values[8]);
27580 __pyx_v_pe = ((PyArrayObject *)values[9]);
27581 __pyx_v_cfl = ((PyArrayObject *)values[10]);
27583 goto __pyx_L4_argument_unpacking_done;
27584 __pyx_L5_argtuple_error:;
27585 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4770, __pyx_L3_error)
27587 __Pyx_AddTraceback(
"cfemIntegrals.calculateDimensionlessNumbersADR", __pyx_clineno, __pyx_lineno, __pyx_filename);
27588 __Pyx_RefNannyFinishContext();
27590 __pyx_L4_argument_unpacking_done:;
27591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 4773, __pyx_L1_error)
27592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 4774, __pyx_L1_error)
27593 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4775, __pyx_L1_error)
27594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 4776, __pyx_L1_error)
27595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 4777, __pyx_L1_error)
27596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 4778, __pyx_L1_error)
27597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pe), __pyx_ptype_5numpy_ndarray, 1,
"pe", 0))) __PYX_ERR(0, 4779, __pyx_L1_error)
27598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cfl), __pyx_ptype_5numpy_ndarray, 1,
"cfl", 0))) __PYX_ERR(0, 4780, __pyx_L1_error)
27599 __pyx_r = __pyx_pf_13cfemIntegrals_232calculateDimensionlessNumbersADR(__pyx_self, __pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __pyx_v_elementDiameter, __pyx_v_df, __pyx_v_a, __pyx_v_dphi, __pyx_v_dr, __pyx_v_dmt, __pyx_v_pe, __pyx_v_cfl);
27606 __Pyx_RefNannyFinishContext();
27610 static PyObject *__pyx_pf_13cfemIntegrals_232calculateDimensionlessNumbersADR(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_pe, PyArrayObject *__pyx_v_cfl) {
27611 int __pyx_v_computeDiffusiveTimeStepLimit;
27612 PyObject *__pyx_r = NULL;
27613 __Pyx_RefNannyDeclarations
27614 __Pyx_RefNannySetupContext(
"calculateDimensionlessNumbersADR", 0);
27623 __pyx_v_computeDiffusiveTimeStepLimit = 0;
27632 calculateDimensionlessNumbersADR(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __pyx_v_computeDiffusiveTimeStepLimit, ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_pe->data), ((
double *)__pyx_v_cfl->data));
27643 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27644 __Pyx_XGIVEREF(__pyx_r);
27645 __Pyx_RefNannyFinishContext();
27658 static PyObject *__pyx_pw_13cfemIntegrals_235calculateDimensionlessNumbersADR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27659 static PyMethodDef __pyx_mdef_13cfemIntegrals_235calculateDimensionlessNumbersADR_sd = {
"calculateDimensionlessNumbersADR_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_235calculateDimensionlessNumbersADR_sd, METH_VARARGS|METH_KEYWORDS, 0};
27660 static PyObject *__pyx_pw_13cfemIntegrals_235calculateDimensionlessNumbersADR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27661 int __pyx_v_nElements_global;
27662 int __pyx_v_nQuadraturePoints_element;
27663 int __pyx_v_nSpace;
27664 PyArrayObject *__pyx_v_rowptr = 0;
27665 PyArrayObject *__pyx_v_colind = 0;
27666 PyArrayObject *__pyx_v_elementDiameter = 0;
27667 PyArrayObject *__pyx_v_df = 0;
27668 PyArrayObject *__pyx_v_a = 0;
27669 PyArrayObject *__pyx_v_dphi = 0;
27670 PyArrayObject *__pyx_v_dr = 0;
27671 PyArrayObject *__pyx_v_dmt = 0;
27672 PyArrayObject *__pyx_v_pe = 0;
27673 PyArrayObject *__pyx_v_cfl = 0;
27674 int __pyx_lineno = 0;
27675 const char *__pyx_filename = NULL;
27676 int __pyx_clineno = 0;
27677 PyObject *__pyx_r = 0;
27678 __Pyx_RefNannyDeclarations
27679 __Pyx_RefNannySetupContext(
"calculateDimensionlessNumbersADR_sd (wrapper)", 0);
27681 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nQuadraturePoints_element,&__pyx_n_s_nSpace,&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_elementDiameter,&__pyx_n_s_df,&__pyx_n_s_a,&__pyx_n_s_dphi,&__pyx_n_s_dr,&__pyx_n_s_dmt,&__pyx_n_s_pe,&__pyx_n_s_cfl,0};
27682 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
27683 if (unlikely(__pyx_kwds)) {
27684 Py_ssize_t kw_args;
27685 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27686 switch (pos_args) {
27687 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27688 CYTHON_FALLTHROUGH;
27689 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27690 CYTHON_FALLTHROUGH;
27691 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27692 CYTHON_FALLTHROUGH;
27693 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27694 CYTHON_FALLTHROUGH;
27695 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27696 CYTHON_FALLTHROUGH;
27697 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27698 CYTHON_FALLTHROUGH;
27699 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27700 CYTHON_FALLTHROUGH;
27701 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27702 CYTHON_FALLTHROUGH;
27703 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27704 CYTHON_FALLTHROUGH;
27705 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27706 CYTHON_FALLTHROUGH;
27707 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27708 CYTHON_FALLTHROUGH;
27709 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27710 CYTHON_FALLTHROUGH;
27711 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27712 CYTHON_FALLTHROUGH;
27714 default:
goto __pyx_L5_argtuple_error;
27716 kw_args = PyDict_Size(__pyx_kwds);
27717 switch (pos_args) {
27719 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
27720 else goto __pyx_L5_argtuple_error;
27721 CYTHON_FALLTHROUGH;
27723 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_element)) != 0)) kw_args--;
27725 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 1); __PYX_ERR(0, 4794, __pyx_L3_error)
27727 CYTHON_FALLTHROUGH;
27729 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
27731 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 2); __PYX_ERR(0, 4794, __pyx_L3_error)
27733 CYTHON_FALLTHROUGH;
27735 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
27737 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 3); __PYX_ERR(0, 4794, __pyx_L3_error)
27739 CYTHON_FALLTHROUGH;
27741 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
27743 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 4); __PYX_ERR(0, 4794, __pyx_L3_error)
27745 CYTHON_FALLTHROUGH;
27747 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
27749 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 5); __PYX_ERR(0, 4794, __pyx_L3_error)
27751 CYTHON_FALLTHROUGH;
27753 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27755 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 6); __PYX_ERR(0, 4794, __pyx_L3_error)
27757 CYTHON_FALLTHROUGH;
27759 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
27761 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 7); __PYX_ERR(0, 4794, __pyx_L3_error)
27763 CYTHON_FALLTHROUGH;
27765 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
27767 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 8); __PYX_ERR(0, 4794, __pyx_L3_error)
27769 CYTHON_FALLTHROUGH;
27771 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dr)) != 0)) kw_args--;
27773 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 9); __PYX_ERR(0, 4794, __pyx_L3_error)
27775 CYTHON_FALLTHROUGH;
27777 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dmt)) != 0)) kw_args--;
27779 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 10); __PYX_ERR(0, 4794, __pyx_L3_error)
27781 CYTHON_FALLTHROUGH;
27783 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pe)) != 0)) kw_args--;
27785 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 11); __PYX_ERR(0, 4794, __pyx_L3_error)
27787 CYTHON_FALLTHROUGH;
27789 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cfl)) != 0)) kw_args--;
27791 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, 12); __PYX_ERR(0, 4794, __pyx_L3_error)
27794 if (unlikely(kw_args > 0)) {
27795 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateDimensionlessNumbersADR_sd") < 0)) __PYX_ERR(0, 4794, __pyx_L3_error)
27797 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
27798 goto __pyx_L5_argtuple_error;
27800 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27801 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27802 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27803 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27804 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
27805 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
27806 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
27807 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
27808 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
27809 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
27810 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
27811 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
27812 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
27814 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4794, __pyx_L3_error)
27815 __pyx_v_nQuadraturePoints_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4795, __pyx_L3_error)
27816 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4796, __pyx_L3_error)
27817 __pyx_v_rowptr = ((PyArrayObject *)values[3]);
27818 __pyx_v_colind = ((PyArrayObject *)values[4]);
27819 __pyx_v_elementDiameter = ((PyArrayObject *)values[5]);
27820 __pyx_v_df = ((PyArrayObject *)values[6]);
27821 __pyx_v_a = ((PyArrayObject *)values[7]);
27822 __pyx_v_dphi = ((PyArrayObject *)values[8]);
27823 __pyx_v_dr = ((PyArrayObject *)values[9]);
27824 __pyx_v_dmt = ((PyArrayObject *)values[10]);
27825 __pyx_v_pe = ((PyArrayObject *)values[11]);
27826 __pyx_v_cfl = ((PyArrayObject *)values[12]);
27828 goto __pyx_L4_argument_unpacking_done;
27829 __pyx_L5_argtuple_error:;
27830 __Pyx_RaiseArgtupleInvalid(
"calculateDimensionlessNumbersADR_sd", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4794, __pyx_L3_error)
27832 __Pyx_AddTraceback(
"cfemIntegrals.calculateDimensionlessNumbersADR_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
27833 __Pyx_RefNannyFinishContext();
27835 __pyx_L4_argument_unpacking_done:;
27836 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4797, __pyx_L1_error)
27837 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4798, __pyx_L1_error)
27838 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 4799, __pyx_L1_error)
27839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 4800, __pyx_L1_error)
27840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4801, __pyx_L1_error)
27841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 4802, __pyx_L1_error)
27842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dr), __pyx_ptype_5numpy_ndarray, 1,
"dr", 0))) __PYX_ERR(0, 4803, __pyx_L1_error)
27843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dmt), __pyx_ptype_5numpy_ndarray, 1,
"dmt", 0))) __PYX_ERR(0, 4804, __pyx_L1_error)
27844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pe), __pyx_ptype_5numpy_ndarray, 1,
"pe", 0))) __PYX_ERR(0, 4805, __pyx_L1_error)
27845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cfl), __pyx_ptype_5numpy_ndarray, 1,
"cfl", 0))) __PYX_ERR(0, 4806, __pyx_L1_error)
27846 __pyx_r = __pyx_pf_13cfemIntegrals_234calculateDimensionlessNumbersADR_sd(__pyx_self, __pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_elementDiameter, __pyx_v_df, __pyx_v_a, __pyx_v_dphi, __pyx_v_dr, __pyx_v_dmt, __pyx_v_pe, __pyx_v_cfl);
27853 __Pyx_RefNannyFinishContext();
27857 static PyObject *__pyx_pf_13cfemIntegrals_234calculateDimensionlessNumbersADR_sd(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_dr, PyArrayObject *__pyx_v_dmt, PyArrayObject *__pyx_v_pe, PyArrayObject *__pyx_v_cfl) {
27858 int __pyx_v_computeDiffusiveTimeStepLimit;
27859 PyObject *__pyx_r = NULL;
27860 __Pyx_RefNannyDeclarations
27861 __Pyx_RefNannySetupContext(
"calculateDimensionlessNumbersADR_sd", 0);
27870 __pyx_v_computeDiffusiveTimeStepLimit = 0;
27879 calculateDimensionlessNumbersADR_sd(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, __pyx_v_computeDiffusiveTimeStepLimit, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_dr->data), ((
double *)__pyx_v_dmt->data), ((
double *)__pyx_v_pe->data), ((
double *)__pyx_v_cfl->data));
27890 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27891 __Pyx_XGIVEREF(__pyx_r);
27892 __Pyx_RefNannyFinishContext();
27905 static PyObject *__pyx_pw_13cfemIntegrals_237calculateCFLADR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
27906 static PyMethodDef __pyx_mdef_13cfemIntegrals_237calculateCFLADR = {
"calculateCFLADR", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_237calculateCFLADR, METH_VARARGS|METH_KEYWORDS, 0};
27907 static PyObject *__pyx_pw_13cfemIntegrals_237calculateCFLADR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
27908 PyArrayObject *__pyx_v_elementDiameter = 0;
27909 PyArrayObject *__pyx_v_dm = 0;
27910 PyArrayObject *__pyx_v_df = 0;
27911 PyArrayObject *__pyx_v_cfl = 0;
27912 int __pyx_lineno = 0;
27913 const char *__pyx_filename = NULL;
27914 int __pyx_clineno = 0;
27915 PyObject *__pyx_r = 0;
27916 __Pyx_RefNannyDeclarations
27917 __Pyx_RefNannySetupContext(
"calculateCFLADR (wrapper)", 0);
27919 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementDiameter,&__pyx_n_s_dm,&__pyx_n_s_df,&__pyx_n_s_cfl,0};
27920 PyObject* values[4] = {0,0,0,0};
27921 if (unlikely(__pyx_kwds)) {
27922 Py_ssize_t kw_args;
27923 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
27924 switch (pos_args) {
27925 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27926 CYTHON_FALLTHROUGH;
27927 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27928 CYTHON_FALLTHROUGH;
27929 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27930 CYTHON_FALLTHROUGH;
27931 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27932 CYTHON_FALLTHROUGH;
27934 default:
goto __pyx_L5_argtuple_error;
27936 kw_args = PyDict_Size(__pyx_kwds);
27937 switch (pos_args) {
27939 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
27940 else goto __pyx_L5_argtuple_error;
27941 CYTHON_FALLTHROUGH;
27943 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dm)) != 0)) kw_args--;
27945 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR", 1, 4, 4, 1); __PYX_ERR(0, 4822, __pyx_L3_error)
27947 CYTHON_FALLTHROUGH;
27949 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_df)) != 0)) kw_args--;
27951 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR", 1, 4, 4, 2); __PYX_ERR(0, 4822, __pyx_L3_error)
27953 CYTHON_FALLTHROUGH;
27955 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cfl)) != 0)) kw_args--;
27957 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR", 1, 4, 4, 3); __PYX_ERR(0, 4822, __pyx_L3_error)
27960 if (unlikely(kw_args > 0)) {
27961 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateCFLADR") < 0)) __PYX_ERR(0, 4822, __pyx_L3_error)
27963 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
27964 goto __pyx_L5_argtuple_error;
27966 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
27967 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
27968 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
27969 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
27971 __pyx_v_elementDiameter = ((PyArrayObject *)values[0]);
27972 __pyx_v_dm = ((PyArrayObject *)values[1]);
27973 __pyx_v_df = ((PyArrayObject *)values[2]);
27974 __pyx_v_cfl = ((PyArrayObject *)values[3]);
27976 goto __pyx_L4_argument_unpacking_done;
27977 __pyx_L5_argtuple_error:;
27978 __Pyx_RaiseArgtupleInvalid(
"calculateCFLADR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4822, __pyx_L3_error)
27980 __Pyx_AddTraceback(
"cfemIntegrals.calculateCFLADR", __pyx_clineno, __pyx_lineno, __pyx_filename);
27981 __Pyx_RefNannyFinishContext();
27983 __pyx_L4_argument_unpacking_done:;
27984 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 4822, __pyx_L1_error)
27985 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dm), __pyx_ptype_5numpy_ndarray, 1,
"dm", 0))) __PYX_ERR(0, 4823, __pyx_L1_error)
27986 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_df), __pyx_ptype_5numpy_ndarray, 1,
"df", 0))) __PYX_ERR(0, 4824, __pyx_L1_error)
27987 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cfl), __pyx_ptype_5numpy_ndarray, 1,
"cfl", 0))) __PYX_ERR(0, 4825, __pyx_L1_error)
27988 __pyx_r = __pyx_pf_13cfemIntegrals_236calculateCFLADR(__pyx_self, __pyx_v_elementDiameter, __pyx_v_dm, __pyx_v_df, __pyx_v_cfl);
27995 __Pyx_RefNannyFinishContext();
27999 static PyObject *__pyx_pf_13cfemIntegrals_236calculateCFLADR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dm, PyArrayObject *__pyx_v_df, PyArrayObject *__pyx_v_cfl) {
28000 int __pyx_v_nElements_global;
28001 int __pyx_v_nQuadraturePoints_element;
28002 int __pyx_v_nSpace;
28003 PyObject *__pyx_r = NULL;
28004 __Pyx_RefNannyDeclarations
28005 __Pyx_RefNannySetupContext(
"calculateCFLADR", 0);
28014 __pyx_v_nElements_global = (__pyx_v_df->dimensions[0]);
28023 __pyx_v_nQuadraturePoints_element = (__pyx_v_df->dimensions[1]);
28032 __pyx_v_nSpace = (__pyx_v_df->dimensions[2]);
28041 calculateCFLADR(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_dm->data), ((
double *)__pyx_v_df->data), ((
double *)__pyx_v_cfl->data));
28052 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28053 __Pyx_XGIVEREF(__pyx_r);
28054 __Pyx_RefNannyFinishContext();
28067 static PyObject *__pyx_pw_13cfemIntegrals_239updateInteriorElementBoundaryDiffusiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28068 static PyMethodDef __pyx_mdef_13cfemIntegrals_239updateInteriorElementBoundaryDiffusiveVelocity = {
"updateInteriorElementBoundaryDiffusiveVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_239updateInteriorElementBoundaryDiffusiveVelocity, METH_VARARGS|METH_KEYWORDS, 0};
28069 static PyObject *__pyx_pw_13cfemIntegrals_239updateInteriorElementBoundaryDiffusiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28070 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
28071 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28072 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28073 PyArrayObject *__pyx_v_a = 0;
28074 PyArrayObject *__pyx_v_grad_phi = 0;
28075 PyArrayObject *__pyx_v_velocity = 0;
28076 int __pyx_lineno = 0;
28077 const char *__pyx_filename = NULL;
28078 int __pyx_clineno = 0;
28079 PyObject *__pyx_r = 0;
28080 __Pyx_RefNannyDeclarations
28081 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusiveVelocity (wrapper)", 0);
28083 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
28084 PyObject* values[6] = {0,0,0,0,0,0};
28085 if (unlikely(__pyx_kwds)) {
28086 Py_ssize_t kw_args;
28087 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28088 switch (pos_args) {
28089 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28090 CYTHON_FALLTHROUGH;
28091 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28092 CYTHON_FALLTHROUGH;
28093 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28094 CYTHON_FALLTHROUGH;
28095 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28096 CYTHON_FALLTHROUGH;
28097 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28098 CYTHON_FALLTHROUGH;
28099 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28100 CYTHON_FALLTHROUGH;
28102 default:
goto __pyx_L5_argtuple_error;
28104 kw_args = PyDict_Size(__pyx_kwds);
28105 switch (pos_args) {
28107 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
28108 else goto __pyx_L5_argtuple_error;
28109 CYTHON_FALLTHROUGH;
28111 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28113 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 1); __PYX_ERR(0, 4836, __pyx_L3_error)
28115 CYTHON_FALLTHROUGH;
28117 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28119 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 2); __PYX_ERR(0, 4836, __pyx_L3_error)
28121 CYTHON_FALLTHROUGH;
28123 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28125 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 3); __PYX_ERR(0, 4836, __pyx_L3_error)
28127 CYTHON_FALLTHROUGH;
28129 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
28131 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 4); __PYX_ERR(0, 4836, __pyx_L3_error)
28133 CYTHON_FALLTHROUGH;
28135 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
28137 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 5); __PYX_ERR(0, 4836, __pyx_L3_error)
28140 if (unlikely(kw_args > 0)) {
28141 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryDiffusiveVelocity") < 0)) __PYX_ERR(0, 4836, __pyx_L3_error)
28143 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
28144 goto __pyx_L5_argtuple_error;
28146 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28147 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28148 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28149 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28150 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28151 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28153 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
28154 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
28155 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
28156 __pyx_v_a = ((PyArrayObject *)values[3]);
28157 __pyx_v_grad_phi = ((PyArrayObject *)values[4]);
28158 __pyx_v_velocity = ((PyArrayObject *)values[5]);
28160 goto __pyx_L4_argument_unpacking_done;
28161 __pyx_L5_argtuple_error:;
28162 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4836, __pyx_L3_error)
28164 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryDiffusiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
28165 __Pyx_RefNannyFinishContext();
28167 __pyx_L4_argument_unpacking_done:;
28168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4836, __pyx_L1_error)
28169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4837, __pyx_L1_error)
28170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4838, __pyx_L1_error)
28171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4839, __pyx_L1_error)
28172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4840, __pyx_L1_error)
28173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4841, __pyx_L1_error)
28174 __pyx_r = __pyx_pf_13cfemIntegrals_238updateInteriorElementBoundaryDiffusiveVelocity(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_velocity);
28181 __Pyx_RefNannyFinishContext();
28185 static PyObject *__pyx_pf_13cfemIntegrals_238updateInteriorElementBoundaryDiffusiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
28186 int __pyx_v_nInteriorElementBoundaries_global;
28187 int __pyx_v_nElementBoundaries_element;
28188 int __pyx_v_nQuadraturePoints_elementBoundary;
28189 int __pyx_v_nSpace;
28190 PyObject *__pyx_r = NULL;
28191 __Pyx_RefNannyDeclarations
28192 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusiveVelocity", 0);
28201 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
28210 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_phi->dimensions[1]);
28219 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_phi->dimensions[2]);
28228 __pyx_v_nSpace = (__pyx_v_grad_phi->dimensions[3]);
28237 updateInteriorElementBoundaryDiffusiveVelocity(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
28248 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28249 __Pyx_XGIVEREF(__pyx_r);
28250 __Pyx_RefNannyFinishContext();
28263 static PyObject *__pyx_pw_13cfemIntegrals_241updateInteriorElementBoundaryDiffusiveVelocity_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28264 static PyMethodDef __pyx_mdef_13cfemIntegrals_241updateInteriorElementBoundaryDiffusiveVelocity_sd = {
"updateInteriorElementBoundaryDiffusiveVelocity_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_241updateInteriorElementBoundaryDiffusiveVelocity_sd, METH_VARARGS|METH_KEYWORDS, 0};
28265 static PyObject *__pyx_pw_13cfemIntegrals_241updateInteriorElementBoundaryDiffusiveVelocity_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28266 PyArrayObject *__pyx_v_rowptr = 0;
28267 PyArrayObject *__pyx_v_colind = 0;
28268 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
28269 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28270 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28271 PyArrayObject *__pyx_v_a = 0;
28272 PyArrayObject *__pyx_v_grad_phi = 0;
28273 PyArrayObject *__pyx_v_velocity = 0;
28274 int __pyx_lineno = 0;
28275 const char *__pyx_filename = NULL;
28276 int __pyx_clineno = 0;
28277 PyObject *__pyx_r = 0;
28278 __Pyx_RefNannyDeclarations
28279 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusiveVelocity_sd (wrapper)", 0);
28281 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
28282 PyObject* values[8] = {0,0,0,0,0,0,0,0};
28283 if (unlikely(__pyx_kwds)) {
28284 Py_ssize_t kw_args;
28285 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28286 switch (pos_args) {
28287 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28288 CYTHON_FALLTHROUGH;
28289 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28290 CYTHON_FALLTHROUGH;
28291 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28292 CYTHON_FALLTHROUGH;
28293 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28294 CYTHON_FALLTHROUGH;
28295 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28296 CYTHON_FALLTHROUGH;
28297 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28298 CYTHON_FALLTHROUGH;
28299 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28300 CYTHON_FALLTHROUGH;
28301 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28302 CYTHON_FALLTHROUGH;
28304 default:
goto __pyx_L5_argtuple_error;
28306 kw_args = PyDict_Size(__pyx_kwds);
28307 switch (pos_args) {
28309 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
28310 else goto __pyx_L5_argtuple_error;
28311 CYTHON_FALLTHROUGH;
28313 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
28315 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 1); __PYX_ERR(0, 4856, __pyx_L3_error)
28317 CYTHON_FALLTHROUGH;
28319 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
28321 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 2); __PYX_ERR(0, 4856, __pyx_L3_error)
28323 CYTHON_FALLTHROUGH;
28325 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28327 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 3); __PYX_ERR(0, 4856, __pyx_L3_error)
28329 CYTHON_FALLTHROUGH;
28331 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28333 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 4); __PYX_ERR(0, 4856, __pyx_L3_error)
28335 CYTHON_FALLTHROUGH;
28337 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28339 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 5); __PYX_ERR(0, 4856, __pyx_L3_error)
28341 CYTHON_FALLTHROUGH;
28343 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
28345 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 6); __PYX_ERR(0, 4856, __pyx_L3_error)
28347 CYTHON_FALLTHROUGH;
28349 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
28351 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 7); __PYX_ERR(0, 4856, __pyx_L3_error)
28354 if (unlikely(kw_args > 0)) {
28355 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryDiffusiveVelocity_sd") < 0)) __PYX_ERR(0, 4856, __pyx_L3_error)
28357 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
28358 goto __pyx_L5_argtuple_error;
28360 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28361 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28362 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28363 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28364 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28365 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28366 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28367 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28369 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
28370 __pyx_v_colind = ((PyArrayObject *)values[1]);
28371 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
28372 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
28373 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
28374 __pyx_v_a = ((PyArrayObject *)values[5]);
28375 __pyx_v_grad_phi = ((PyArrayObject *)values[6]);
28376 __pyx_v_velocity = ((PyArrayObject *)values[7]);
28378 goto __pyx_L4_argument_unpacking_done;
28379 __pyx_L5_argtuple_error:;
28380 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4856, __pyx_L3_error)
28382 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryDiffusiveVelocity_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
28383 __Pyx_RefNannyFinishContext();
28385 __pyx_L4_argument_unpacking_done:;
28386 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4856, __pyx_L1_error)
28387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4857, __pyx_L1_error)
28388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4858, __pyx_L1_error)
28389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4859, __pyx_L1_error)
28390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4860, __pyx_L1_error)
28391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4861, __pyx_L1_error)
28392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4862, __pyx_L1_error)
28393 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4863, __pyx_L1_error)
28394 __pyx_r = __pyx_pf_13cfemIntegrals_240updateInteriorElementBoundaryDiffusiveVelocity_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_velocity);
28401 __Pyx_RefNannyFinishContext();
28405 static PyObject *__pyx_pf_13cfemIntegrals_240updateInteriorElementBoundaryDiffusiveVelocity_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
28406 int __pyx_v_nInteriorElementBoundaries_global;
28407 int __pyx_v_nElementBoundaries_element;
28408 int __pyx_v_nQuadraturePoints_elementBoundary;
28409 int __pyx_v_nSpace;
28410 PyObject *__pyx_r = NULL;
28411 __Pyx_RefNannyDeclarations
28412 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusiveVelocity_sd", 0);
28421 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
28430 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_phi->dimensions[1]);
28439 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_phi->dimensions[2]);
28448 __pyx_v_nSpace = (__pyx_v_grad_phi->dimensions[3]);
28457 updateInteriorElementBoundaryDiffusiveVelocity_sd(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
28468 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28469 __Pyx_XGIVEREF(__pyx_r);
28470 __Pyx_RefNannyFinishContext();
28483 static PyObject *__pyx_pw_13cfemIntegrals_243updateExteriorElementBoundaryDiffusiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28484 static PyMethodDef __pyx_mdef_13cfemIntegrals_243updateExteriorElementBoundaryDiffusiveVelocity = {
"updateExteriorElementBoundaryDiffusiveVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_243updateExteriorElementBoundaryDiffusiveVelocity, METH_VARARGS|METH_KEYWORDS, 0};
28485 static PyObject *__pyx_pw_13cfemIntegrals_243updateExteriorElementBoundaryDiffusiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28486 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
28487 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28488 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28489 PyArrayObject *__pyx_v_a = 0;
28490 PyArrayObject *__pyx_v_grad_phi = 0;
28491 PyArrayObject *__pyx_v_velocity = 0;
28492 int __pyx_lineno = 0;
28493 const char *__pyx_filename = NULL;
28494 int __pyx_clineno = 0;
28495 PyObject *__pyx_r = 0;
28496 __Pyx_RefNannyDeclarations
28497 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusiveVelocity (wrapper)", 0);
28499 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
28500 PyObject* values[6] = {0,0,0,0,0,0};
28501 if (unlikely(__pyx_kwds)) {
28502 Py_ssize_t kw_args;
28503 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28504 switch (pos_args) {
28505 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28506 CYTHON_FALLTHROUGH;
28507 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28508 CYTHON_FALLTHROUGH;
28509 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28510 CYTHON_FALLTHROUGH;
28511 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28512 CYTHON_FALLTHROUGH;
28513 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28514 CYTHON_FALLTHROUGH;
28515 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28516 CYTHON_FALLTHROUGH;
28518 default:
goto __pyx_L5_argtuple_error;
28520 kw_args = PyDict_Size(__pyx_kwds);
28521 switch (pos_args) {
28523 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
28524 else goto __pyx_L5_argtuple_error;
28525 CYTHON_FALLTHROUGH;
28527 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28529 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 1); __PYX_ERR(0, 4880, __pyx_L3_error)
28531 CYTHON_FALLTHROUGH;
28533 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28535 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 2); __PYX_ERR(0, 4880, __pyx_L3_error)
28537 CYTHON_FALLTHROUGH;
28539 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28541 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 3); __PYX_ERR(0, 4880, __pyx_L3_error)
28543 CYTHON_FALLTHROUGH;
28545 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
28547 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 4); __PYX_ERR(0, 4880, __pyx_L3_error)
28549 CYTHON_FALLTHROUGH;
28551 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
28553 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, 5); __PYX_ERR(0, 4880, __pyx_L3_error)
28556 if (unlikely(kw_args > 0)) {
28557 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryDiffusiveVelocity") < 0)) __PYX_ERR(0, 4880, __pyx_L3_error)
28559 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
28560 goto __pyx_L5_argtuple_error;
28562 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28563 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28564 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28565 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28566 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28567 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28569 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
28570 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
28571 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
28572 __pyx_v_a = ((PyArrayObject *)values[3]);
28573 __pyx_v_grad_phi = ((PyArrayObject *)values[4]);
28574 __pyx_v_velocity = ((PyArrayObject *)values[5]);
28576 goto __pyx_L4_argument_unpacking_done;
28577 __pyx_L5_argtuple_error:;
28578 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4880, __pyx_L3_error)
28580 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryDiffusiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
28581 __Pyx_RefNannyFinishContext();
28583 __pyx_L4_argument_unpacking_done:;
28584 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4880, __pyx_L1_error)
28585 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4881, __pyx_L1_error)
28586 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4882, __pyx_L1_error)
28587 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4883, __pyx_L1_error)
28588 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4884, __pyx_L1_error)
28589 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4885, __pyx_L1_error)
28590 __pyx_r = __pyx_pf_13cfemIntegrals_242updateExteriorElementBoundaryDiffusiveVelocity(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_velocity);
28597 __Pyx_RefNannyFinishContext();
28601 static PyObject *__pyx_pf_13cfemIntegrals_242updateExteriorElementBoundaryDiffusiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
28603 PyObject *__pyx_r = NULL;
28604 __Pyx_RefNannyDeclarations
28607 int __pyx_lineno = 0;
28608 const char *__pyx_filename = NULL;
28609 int __pyx_clineno = 0;
28610 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusiveVelocity", 0);
28619 __pyx_t_1 = __pyx_v_grad_phi->nd;
28620 __pyx_v_nd = __pyx_t_1;
28629 __pyx_t_2 = ((__pyx_v_nd > 3) != 0);
28639 #ifndef CYTHON_WITHOUT_ASSERTIONS
28640 if (unlikely(!Py_OptimizeFlag)) {
28641 if (unlikely(!((__pyx_v_nd == __pyx_v_velocity->nd) != 0))) {
28642 PyErr_SetNone(PyExc_AssertionError);
28643 __PYX_ERR(0, 4888, __pyx_L1_error)
28655 updateExteriorElementBoundaryDiffusiveVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), (__pyx_v_grad_phi->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
28675 #ifndef CYTHON_WITHOUT_ASSERTIONS
28676 if (unlikely(!Py_OptimizeFlag)) {
28677 if (unlikely(!((__pyx_v_nd == __pyx_v_velocity->nd) != 0))) {
28678 PyErr_SetNone(PyExc_AssertionError);
28679 __PYX_ERR(0, 4900, __pyx_L1_error)
28691 updateGlobalExteriorElementBoundaryDiffusiveVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_phi->dimensions[1]), (__pyx_v_grad_phi->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
28704 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28707 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryDiffusiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
28710 __Pyx_XGIVEREF(__pyx_r);
28711 __Pyx_RefNannyFinishContext();
28724 static PyObject *__pyx_pw_13cfemIntegrals_245updateExteriorElementBoundaryDiffusiveVelocity_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28725 static PyMethodDef __pyx_mdef_13cfemIntegrals_245updateExteriorElementBoundaryDiffusiveVelocity_sd = {
"updateExteriorElementBoundaryDiffusiveVelocity_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_245updateExteriorElementBoundaryDiffusiveVelocity_sd, METH_VARARGS|METH_KEYWORDS, 0};
28726 static PyObject *__pyx_pw_13cfemIntegrals_245updateExteriorElementBoundaryDiffusiveVelocity_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28727 PyArrayObject *__pyx_v_rowptr = 0;
28728 PyArrayObject *__pyx_v_colind = 0;
28729 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
28730 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28731 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28732 PyArrayObject *__pyx_v_a = 0;
28733 PyArrayObject *__pyx_v_grad_phi = 0;
28734 PyArrayObject *__pyx_v_velocity = 0;
28735 int __pyx_lineno = 0;
28736 const char *__pyx_filename = NULL;
28737 int __pyx_clineno = 0;
28738 PyObject *__pyx_r = 0;
28739 __Pyx_RefNannyDeclarations
28740 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusiveVelocity_sd (wrapper)", 0);
28742 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_a,&__pyx_n_s_grad_phi,&__pyx_n_s_velocity,0};
28743 PyObject* values[8] = {0,0,0,0,0,0,0,0};
28744 if (unlikely(__pyx_kwds)) {
28745 Py_ssize_t kw_args;
28746 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28747 switch (pos_args) {
28748 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28749 CYTHON_FALLTHROUGH;
28750 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28751 CYTHON_FALLTHROUGH;
28752 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28753 CYTHON_FALLTHROUGH;
28754 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28755 CYTHON_FALLTHROUGH;
28756 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28757 CYTHON_FALLTHROUGH;
28758 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28759 CYTHON_FALLTHROUGH;
28760 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28761 CYTHON_FALLTHROUGH;
28762 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28763 CYTHON_FALLTHROUGH;
28765 default:
goto __pyx_L5_argtuple_error;
28767 kw_args = PyDict_Size(__pyx_kwds);
28768 switch (pos_args) {
28770 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
28771 else goto __pyx_L5_argtuple_error;
28772 CYTHON_FALLTHROUGH;
28774 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
28776 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 1); __PYX_ERR(0, 4910, __pyx_L3_error)
28778 CYTHON_FALLTHROUGH;
28780 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
28782 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 2); __PYX_ERR(0, 4910, __pyx_L3_error)
28784 CYTHON_FALLTHROUGH;
28786 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28788 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 3); __PYX_ERR(0, 4910, __pyx_L3_error)
28790 CYTHON_FALLTHROUGH;
28792 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28794 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 4); __PYX_ERR(0, 4910, __pyx_L3_error)
28796 CYTHON_FALLTHROUGH;
28798 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
28800 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 5); __PYX_ERR(0, 4910, __pyx_L3_error)
28802 CYTHON_FALLTHROUGH;
28804 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_phi)) != 0)) kw_args--;
28806 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 6); __PYX_ERR(0, 4910, __pyx_L3_error)
28808 CYTHON_FALLTHROUGH;
28810 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
28812 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, 7); __PYX_ERR(0, 4910, __pyx_L3_error)
28815 if (unlikely(kw_args > 0)) {
28816 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryDiffusiveVelocity_sd") < 0)) __PYX_ERR(0, 4910, __pyx_L3_error)
28818 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
28819 goto __pyx_L5_argtuple_error;
28821 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28822 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28823 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28824 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28825 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28826 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
28827 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
28828 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
28830 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
28831 __pyx_v_colind = ((PyArrayObject *)values[1]);
28832 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
28833 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
28834 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
28835 __pyx_v_a = ((PyArrayObject *)values[5]);
28836 __pyx_v_grad_phi = ((PyArrayObject *)values[6]);
28837 __pyx_v_velocity = ((PyArrayObject *)values[7]);
28839 goto __pyx_L4_argument_unpacking_done;
28840 __pyx_L5_argtuple_error:;
28841 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4910, __pyx_L3_error)
28843 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryDiffusiveVelocity_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
28844 __Pyx_RefNannyFinishContext();
28846 __pyx_L4_argument_unpacking_done:;
28847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 4910, __pyx_L1_error)
28848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 4911, __pyx_L1_error)
28849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4912, __pyx_L1_error)
28850 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4913, __pyx_L1_error)
28851 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4914, __pyx_L1_error)
28852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 4915, __pyx_L1_error)
28853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_phi), __pyx_ptype_5numpy_ndarray, 1,
"grad_phi", 0))) __PYX_ERR(0, 4916, __pyx_L1_error)
28854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4917, __pyx_L1_error)
28855 __pyx_r = __pyx_pf_13cfemIntegrals_244updateExteriorElementBoundaryDiffusiveVelocity_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_a, __pyx_v_grad_phi, __pyx_v_velocity);
28862 __Pyx_RefNannyFinishContext();
28866 static PyObject *__pyx_pf_13cfemIntegrals_244updateExteriorElementBoundaryDiffusiveVelocity_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_phi, PyArrayObject *__pyx_v_velocity) {
28867 int __pyx_v_nExteriorElementBoundaries_global;
28868 int __pyx_v_nElementBoundaries_element;
28869 int __pyx_v_nQuadraturePoints_elementBoundary;
28870 int __pyx_v_nSpace;
28871 PyObject *__pyx_r = NULL;
28872 __Pyx_RefNannyDeclarations
28873 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusiveVelocity_sd", 0);
28882 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
28891 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_phi->dimensions[1]);
28900 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_phi->dimensions[2]);
28909 __pyx_v_nSpace = (__pyx_v_grad_phi->dimensions[3]);
28918 updateExteriorElementBoundaryDiffusiveVelocity_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_phi->data), ((
double *)__pyx_v_velocity->data));
28929 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
28930 __Pyx_XGIVEREF(__pyx_r);
28931 __Pyx_RefNannyFinishContext();
28944 static PyObject *__pyx_pw_13cfemIntegrals_247updateInteriorElementBoundaryAdvectiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
28945 static PyMethodDef __pyx_mdef_13cfemIntegrals_247updateInteriorElementBoundaryAdvectiveVelocity = {
"updateInteriorElementBoundaryAdvectiveVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_247updateInteriorElementBoundaryAdvectiveVelocity, METH_VARARGS|METH_KEYWORDS, 0};
28946 static PyObject *__pyx_pw_13cfemIntegrals_247updateInteriorElementBoundaryAdvectiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
28947 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
28948 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
28949 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
28950 PyArrayObject *__pyx_v_f = 0;
28951 PyArrayObject *__pyx_v_velocity = 0;
28952 int __pyx_lineno = 0;
28953 const char *__pyx_filename = NULL;
28954 int __pyx_clineno = 0;
28955 PyObject *__pyx_r = 0;
28956 __Pyx_RefNannyDeclarations
28957 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryAdvectiveVelocity (wrapper)", 0);
28959 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_f,&__pyx_n_s_velocity,0};
28960 PyObject* values[5] = {0,0,0,0,0};
28961 if (unlikely(__pyx_kwds)) {
28962 Py_ssize_t kw_args;
28963 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
28964 switch (pos_args) {
28965 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
28966 CYTHON_FALLTHROUGH;
28967 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
28968 CYTHON_FALLTHROUGH;
28969 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
28970 CYTHON_FALLTHROUGH;
28971 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
28972 CYTHON_FALLTHROUGH;
28973 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
28974 CYTHON_FALLTHROUGH;
28976 default:
goto __pyx_L5_argtuple_error;
28978 kw_args = PyDict_Size(__pyx_kwds);
28979 switch (pos_args) {
28981 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
28982 else goto __pyx_L5_argtuple_error;
28983 CYTHON_FALLTHROUGH;
28985 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
28987 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 1); __PYX_ERR(0, 4934, __pyx_L3_error)
28989 CYTHON_FALLTHROUGH;
28991 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
28993 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 2); __PYX_ERR(0, 4934, __pyx_L3_error)
28995 CYTHON_FALLTHROUGH;
28997 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
28999 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 3); __PYX_ERR(0, 4934, __pyx_L3_error)
29001 CYTHON_FALLTHROUGH;
29003 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
29005 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 4); __PYX_ERR(0, 4934, __pyx_L3_error)
29008 if (unlikely(kw_args > 0)) {
29009 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryAdvectiveVelocity") < 0)) __PYX_ERR(0, 4934, __pyx_L3_error)
29011 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
29012 goto __pyx_L5_argtuple_error;
29014 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29015 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29016 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29017 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29018 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29020 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
29021 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29022 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29023 __pyx_v_f = ((PyArrayObject *)values[3]);
29024 __pyx_v_velocity = ((PyArrayObject *)values[4]);
29026 goto __pyx_L4_argument_unpacking_done;
29027 __pyx_L5_argtuple_error:;
29028 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4934, __pyx_L3_error)
29030 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryAdvectiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29031 __Pyx_RefNannyFinishContext();
29033 __pyx_L4_argument_unpacking_done:;
29034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4934, __pyx_L1_error)
29035 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4935, __pyx_L1_error)
29036 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4936, __pyx_L1_error)
29037 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4937, __pyx_L1_error)
29038 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4938, __pyx_L1_error)
29039 __pyx_r = __pyx_pf_13cfemIntegrals_246updateInteriorElementBoundaryAdvectiveVelocity(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_f, __pyx_v_velocity);
29046 __Pyx_RefNannyFinishContext();
29050 static PyObject *__pyx_pf_13cfemIntegrals_246updateInteriorElementBoundaryAdvectiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_velocity) {
29051 int __pyx_v_nInteriorElementBoundaries_global;
29052 int __pyx_v_nElementBoundaries_element;
29053 int __pyx_v_nQuadraturePoints_elementBoundary;
29054 int __pyx_v_nSpace;
29055 PyObject *__pyx_r = NULL;
29056 __Pyx_RefNannyDeclarations
29057 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryAdvectiveVelocity", 0);
29066 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
29075 __pyx_v_nElementBoundaries_element = (__pyx_v_f->dimensions[1]);
29084 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_f->dimensions[2]);
29093 __pyx_v_nSpace = (__pyx_v_f->dimensions[3]);
29102 updateInteriorElementBoundaryAdvectiveVelocity(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_velocity->data));
29113 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29114 __Pyx_XGIVEREF(__pyx_r);
29115 __Pyx_RefNannyFinishContext();
29128 static PyObject *__pyx_pw_13cfemIntegrals_249updateExteriorElementBoundaryAdvectiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29129 static PyMethodDef __pyx_mdef_13cfemIntegrals_249updateExteriorElementBoundaryAdvectiveVelocity = {
"updateExteriorElementBoundaryAdvectiveVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_249updateExteriorElementBoundaryAdvectiveVelocity, METH_VARARGS|METH_KEYWORDS, 0};
29130 static PyObject *__pyx_pw_13cfemIntegrals_249updateExteriorElementBoundaryAdvectiveVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29131 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29132 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29133 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29134 PyArrayObject *__pyx_v_f = 0;
29135 PyArrayObject *__pyx_v_velocity = 0;
29136 int __pyx_lineno = 0;
29137 const char *__pyx_filename = NULL;
29138 int __pyx_clineno = 0;
29139 PyObject *__pyx_r = 0;
29140 __Pyx_RefNannyDeclarations
29141 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryAdvectiveVelocity (wrapper)", 0);
29143 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_f,&__pyx_n_s_velocity,0};
29144 PyObject* values[5] = {0,0,0,0,0};
29145 if (unlikely(__pyx_kwds)) {
29146 Py_ssize_t kw_args;
29147 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29148 switch (pos_args) {
29149 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29150 CYTHON_FALLTHROUGH;
29151 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29152 CYTHON_FALLTHROUGH;
29153 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29154 CYTHON_FALLTHROUGH;
29155 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29156 CYTHON_FALLTHROUGH;
29157 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29158 CYTHON_FALLTHROUGH;
29160 default:
goto __pyx_L5_argtuple_error;
29162 kw_args = PyDict_Size(__pyx_kwds);
29163 switch (pos_args) {
29165 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
29166 else goto __pyx_L5_argtuple_error;
29167 CYTHON_FALLTHROUGH;
29169 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29171 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 1); __PYX_ERR(0, 4952, __pyx_L3_error)
29173 CYTHON_FALLTHROUGH;
29175 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29177 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 2); __PYX_ERR(0, 4952, __pyx_L3_error)
29179 CYTHON_FALLTHROUGH;
29181 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
29183 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 3); __PYX_ERR(0, 4952, __pyx_L3_error)
29185 CYTHON_FALLTHROUGH;
29187 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
29189 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, 4); __PYX_ERR(0, 4952, __pyx_L3_error)
29192 if (unlikely(kw_args > 0)) {
29193 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryAdvectiveVelocity") < 0)) __PYX_ERR(0, 4952, __pyx_L3_error)
29195 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
29196 goto __pyx_L5_argtuple_error;
29198 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29199 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29200 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29201 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29202 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29204 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
29205 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29206 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29207 __pyx_v_f = ((PyArrayObject *)values[3]);
29208 __pyx_v_velocity = ((PyArrayObject *)values[4]);
29210 goto __pyx_L4_argument_unpacking_done;
29211 __pyx_L5_argtuple_error:;
29212 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryAdvectiveVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4952, __pyx_L3_error)
29214 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryAdvectiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29215 __Pyx_RefNannyFinishContext();
29217 __pyx_L4_argument_unpacking_done:;
29218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 4952, __pyx_L1_error)
29219 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4953, __pyx_L1_error)
29220 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4954, __pyx_L1_error)
29221 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 4955, __pyx_L1_error)
29222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4956, __pyx_L1_error)
29223 __pyx_r = __pyx_pf_13cfemIntegrals_248updateExteriorElementBoundaryAdvectiveVelocity(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_f, __pyx_v_velocity);
29230 __Pyx_RefNannyFinishContext();
29234 static PyObject *__pyx_pf_13cfemIntegrals_248updateExteriorElementBoundaryAdvectiveVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_f, PyArrayObject *__pyx_v_velocity) {
29236 PyObject *__pyx_r = NULL;
29237 __Pyx_RefNannyDeclarations
29240 int __pyx_lineno = 0;
29241 const char *__pyx_filename = NULL;
29242 int __pyx_clineno = 0;
29243 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryAdvectiveVelocity", 0);
29252 __pyx_t_1 = __pyx_v_f->nd;
29253 __pyx_v_nd = __pyx_t_1;
29262 __pyx_t_2 = ((__pyx_v_nd > 3) != 0);
29272 #ifndef CYTHON_WITHOUT_ASSERTIONS
29273 if (unlikely(!Py_OptimizeFlag)) {
29274 if (unlikely(!((__pyx_v_nd == __pyx_v_velocity->nd) != 0))) {
29275 PyErr_SetNone(PyExc_AssertionError);
29276 __PYX_ERR(0, 4959, __pyx_L1_error)
29288 updateExteriorElementBoundaryAdvectiveVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_velocity->data));
29308 #ifndef CYTHON_WITHOUT_ASSERTIONS
29309 if (unlikely(!Py_OptimizeFlag)) {
29310 if (unlikely(!((__pyx_v_nd == __pyx_v_velocity->nd) != 0))) {
29311 PyErr_SetNone(PyExc_AssertionError);
29312 __PYX_ERR(0, 4970, __pyx_L1_error)
29324 updateGlobalExteriorElementBoundaryAdvectiveVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_f->data), ((
double *)__pyx_v_velocity->data));
29337 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29340 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryAdvectiveVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29343 __Pyx_XGIVEREF(__pyx_r);
29344 __Pyx_RefNannyFinishContext();
29357 static PyObject *__pyx_pw_13cfemIntegrals_251updateInteriorElementBoundaryShockCapturingVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29358 static PyMethodDef __pyx_mdef_13cfemIntegrals_251updateInteriorElementBoundaryShockCapturingVelocity = {
"updateInteriorElementBoundaryShockCapturingVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_251updateInteriorElementBoundaryShockCapturingVelocity, METH_VARARGS|METH_KEYWORDS, 0};
29359 static PyObject *__pyx_pw_13cfemIntegrals_251updateInteriorElementBoundaryShockCapturingVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29360 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
29361 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29362 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29363 PyArrayObject *__pyx_v_numDiff = 0;
29364 PyArrayObject *__pyx_v_grad_u = 0;
29365 PyArrayObject *__pyx_v_velocity = 0;
29366 int __pyx_lineno = 0;
29367 const char *__pyx_filename = NULL;
29368 int __pyx_clineno = 0;
29369 PyObject *__pyx_r = 0;
29370 __Pyx_RefNannyDeclarations
29371 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryShockCapturingVelocity (wrapper)", 0);
29373 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_numDiff,&__pyx_n_s_grad_u,&__pyx_n_s_velocity,0};
29374 PyObject* values[6] = {0,0,0,0,0,0};
29375 if (unlikely(__pyx_kwds)) {
29376 Py_ssize_t kw_args;
29377 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29378 switch (pos_args) {
29379 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29380 CYTHON_FALLTHROUGH;
29381 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29382 CYTHON_FALLTHROUGH;
29383 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29384 CYTHON_FALLTHROUGH;
29385 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29386 CYTHON_FALLTHROUGH;
29387 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29388 CYTHON_FALLTHROUGH;
29389 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29390 CYTHON_FALLTHROUGH;
29392 default:
goto __pyx_L5_argtuple_error;
29394 kw_args = PyDict_Size(__pyx_kwds);
29395 switch (pos_args) {
29397 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
29398 else goto __pyx_L5_argtuple_error;
29399 CYTHON_FALLTHROUGH;
29401 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29403 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 1); __PYX_ERR(0, 4979, __pyx_L3_error)
29405 CYTHON_FALLTHROUGH;
29407 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29409 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 2); __PYX_ERR(0, 4979, __pyx_L3_error)
29411 CYTHON_FALLTHROUGH;
29413 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
29415 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 3); __PYX_ERR(0, 4979, __pyx_L3_error)
29417 CYTHON_FALLTHROUGH;
29419 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
29421 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 4); __PYX_ERR(0, 4979, __pyx_L3_error)
29423 CYTHON_FALLTHROUGH;
29425 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
29427 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 5); __PYX_ERR(0, 4979, __pyx_L3_error)
29430 if (unlikely(kw_args > 0)) {
29431 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryShockCapturingVelocity") < 0)) __PYX_ERR(0, 4979, __pyx_L3_error)
29433 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
29434 goto __pyx_L5_argtuple_error;
29436 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29437 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29438 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29439 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29440 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29441 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29443 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
29444 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29445 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29446 __pyx_v_numDiff = ((PyArrayObject *)values[3]);
29447 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
29448 __pyx_v_velocity = ((PyArrayObject *)values[5]);
29450 goto __pyx_L4_argument_unpacking_done;
29451 __pyx_L5_argtuple_error:;
29452 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4979, __pyx_L3_error)
29454 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryShockCapturingVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29455 __Pyx_RefNannyFinishContext();
29457 __pyx_L4_argument_unpacking_done:;
29458 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 4979, __pyx_L1_error)
29459 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 4980, __pyx_L1_error)
29460 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 4981, __pyx_L1_error)
29461 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 4982, __pyx_L1_error)
29462 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 4983, __pyx_L1_error)
29463 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 4984, __pyx_L1_error)
29464 __pyx_r = __pyx_pf_13cfemIntegrals_250updateInteriorElementBoundaryShockCapturingVelocity(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_numDiff, __pyx_v_grad_u, __pyx_v_velocity);
29471 __Pyx_RefNannyFinishContext();
29475 static PyObject *__pyx_pf_13cfemIntegrals_250updateInteriorElementBoundaryShockCapturingVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_velocity) {
29476 int __pyx_v_nInteriorElementBoundaries_global;
29477 int __pyx_v_nElementBoundaries_element;
29478 int __pyx_v_nQuadraturePoints_elementBoundary;
29479 int __pyx_v_nQuadraturePoints_element;
29480 int __pyx_v_nSpace;
29481 PyObject *__pyx_r = NULL;
29482 __Pyx_RefNannyDeclarations
29483 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryShockCapturingVelocity", 0);
29492 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
29501 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_u->dimensions[1]);
29510 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_u->dimensions[2]);
29519 __pyx_v_nQuadraturePoints_element = (__pyx_v_numDiff->dimensions[1]);
29528 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[3]);
29537 updateInteriorElementBoundaryShockCapturingVelocity(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nQuadraturePoints_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_velocity->data));
29548 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29549 __Pyx_XGIVEREF(__pyx_r);
29550 __Pyx_RefNannyFinishContext();
29563 static PyObject *__pyx_pw_13cfemIntegrals_253updateExteriorElementBoundaryShockCapturingVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29564 static PyMethodDef __pyx_mdef_13cfemIntegrals_253updateExteriorElementBoundaryShockCapturingVelocity = {
"updateExteriorElementBoundaryShockCapturingVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_253updateExteriorElementBoundaryShockCapturingVelocity, METH_VARARGS|METH_KEYWORDS, 0};
29565 static PyObject *__pyx_pw_13cfemIntegrals_253updateExteriorElementBoundaryShockCapturingVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29566 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29567 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29568 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29569 PyArrayObject *__pyx_v_numDiff = 0;
29570 PyArrayObject *__pyx_v_grad_u = 0;
29571 PyArrayObject *__pyx_v_velocity = 0;
29572 int __pyx_lineno = 0;
29573 const char *__pyx_filename = NULL;
29574 int __pyx_clineno = 0;
29575 PyObject *__pyx_r = 0;
29576 __Pyx_RefNannyDeclarations
29577 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryShockCapturingVelocity (wrapper)", 0);
29579 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_numDiff,&__pyx_n_s_grad_u,&__pyx_n_s_velocity,0};
29580 PyObject* values[6] = {0,0,0,0,0,0};
29581 if (unlikely(__pyx_kwds)) {
29582 Py_ssize_t kw_args;
29583 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29584 switch (pos_args) {
29585 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29586 CYTHON_FALLTHROUGH;
29587 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29588 CYTHON_FALLTHROUGH;
29589 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29590 CYTHON_FALLTHROUGH;
29591 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29592 CYTHON_FALLTHROUGH;
29593 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29594 CYTHON_FALLTHROUGH;
29595 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29596 CYTHON_FALLTHROUGH;
29598 default:
goto __pyx_L5_argtuple_error;
29600 kw_args = PyDict_Size(__pyx_kwds);
29601 switch (pos_args) {
29603 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
29604 else goto __pyx_L5_argtuple_error;
29605 CYTHON_FALLTHROUGH;
29607 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29609 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 1); __PYX_ERR(0, 5001, __pyx_L3_error)
29611 CYTHON_FALLTHROUGH;
29613 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29615 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 2); __PYX_ERR(0, 5001, __pyx_L3_error)
29617 CYTHON_FALLTHROUGH;
29619 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_numDiff)) != 0)) kw_args--;
29621 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 3); __PYX_ERR(0, 5001, __pyx_L3_error)
29623 CYTHON_FALLTHROUGH;
29625 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
29627 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 4); __PYX_ERR(0, 5001, __pyx_L3_error)
29629 CYTHON_FALLTHROUGH;
29631 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
29633 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, 5); __PYX_ERR(0, 5001, __pyx_L3_error)
29636 if (unlikely(kw_args > 0)) {
29637 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryShockCapturingVelocity") < 0)) __PYX_ERR(0, 5001, __pyx_L3_error)
29639 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
29640 goto __pyx_L5_argtuple_error;
29642 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29643 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29644 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29645 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29646 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29647 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
29649 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
29650 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29651 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29652 __pyx_v_numDiff = ((PyArrayObject *)values[3]);
29653 __pyx_v_grad_u = ((PyArrayObject *)values[4]);
29654 __pyx_v_velocity = ((PyArrayObject *)values[5]);
29656 goto __pyx_L4_argument_unpacking_done;
29657 __pyx_L5_argtuple_error:;
29658 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryShockCapturingVelocity", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5001, __pyx_L3_error)
29660 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryShockCapturingVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29661 __Pyx_RefNannyFinishContext();
29663 __pyx_L4_argument_unpacking_done:;
29664 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5001, __pyx_L1_error)
29665 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5002, __pyx_L1_error)
29666 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5003, __pyx_L1_error)
29667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_numDiff), __pyx_ptype_5numpy_ndarray, 1,
"numDiff", 0))) __PYX_ERR(0, 5004, __pyx_L1_error)
29668 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 5005, __pyx_L1_error)
29669 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5006, __pyx_L1_error)
29670 __pyx_r = __pyx_pf_13cfemIntegrals_252updateExteriorElementBoundaryShockCapturingVelocity(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_numDiff, __pyx_v_grad_u, __pyx_v_velocity);
29677 __Pyx_RefNannyFinishContext();
29681 static PyObject *__pyx_pf_13cfemIntegrals_252updateExteriorElementBoundaryShockCapturingVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_numDiff, PyArrayObject *__pyx_v_grad_u, PyArrayObject *__pyx_v_velocity) {
29682 PyObject *__pyx_r = NULL;
29683 __Pyx_RefNannyDeclarations
29685 int __pyx_lineno = 0;
29686 const char *__pyx_filename = NULL;
29687 int __pyx_clineno = 0;
29688 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryShockCapturingVelocity", 0);
29697 __pyx_t_1 = ((__pyx_v_grad_u->nd > 3) != 0);
29707 #ifndef CYTHON_WITHOUT_ASSERTIONS
29708 if (unlikely(!Py_OptimizeFlag)) {
29709 if (unlikely(!(((__pyx_v_numDiff->dimensions[0]) == (__pyx_v_grad_u->dimensions[0])) != 0))) {
29710 PyErr_SetNone(PyExc_AssertionError);
29711 __PYX_ERR(0, 5008, __pyx_L1_error)
29723 updateExteriorElementBoundaryShockCapturingVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), (__pyx_v_grad_u->dimensions[2]), (__pyx_v_numDiff->dimensions[1]), (__pyx_v_grad_u->dimensions[3]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_velocity->data));
29743 #ifndef CYTHON_WITHOUT_ASSERTIONS
29744 if (unlikely(!Py_OptimizeFlag)) {
29745 if (unlikely(!(((__pyx_v_numDiff->dimensions[0]) == (__pyx_v_grad_u->dimensions[0])) != 0))) {
29746 PyErr_SetNone(PyExc_AssertionError);
29747 __PYX_ERR(0, 5021, __pyx_L1_error)
29759 updateGlobalExteriorElementBoundaryShockCapturingVelocity((__pyx_v_exteriorElementBoundaries->dimensions[0]), (__pyx_v_grad_u->dimensions[1]), (__pyx_v_grad_u->dimensions[2]), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_numDiff->data), ((
double *)__pyx_v_grad_u->data), ((
double *)__pyx_v_velocity->data));
29772 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29775 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryShockCapturingVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29778 __Pyx_XGIVEREF(__pyx_r);
29779 __Pyx_RefNannyFinishContext();
29792 static PyObject *__pyx_pw_13cfemIntegrals_255calculateInteriorElementBoundaryAverageVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29793 static PyMethodDef __pyx_mdef_13cfemIntegrals_255calculateInteriorElementBoundaryAverageVelocity = {
"calculateInteriorElementBoundaryAverageVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_255calculateInteriorElementBoundaryAverageVelocity, METH_VARARGS|METH_KEYWORDS, 0};
29794 static PyObject *__pyx_pw_13cfemIntegrals_255calculateInteriorElementBoundaryAverageVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29795 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
29796 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29797 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29798 PyArrayObject *__pyx_v_v = 0;
29799 PyArrayObject *__pyx_v_vAverage = 0;
29800 int __pyx_lineno = 0;
29801 const char *__pyx_filename = NULL;
29802 int __pyx_clineno = 0;
29803 PyObject *__pyx_r = 0;
29804 __Pyx_RefNannyDeclarations
29805 __Pyx_RefNannySetupContext(
"calculateInteriorElementBoundaryAverageVelocity (wrapper)", 0);
29807 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_v,&__pyx_n_s_vAverage,0};
29808 PyObject* values[5] = {0,0,0,0,0};
29809 if (unlikely(__pyx_kwds)) {
29810 Py_ssize_t kw_args;
29811 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29812 switch (pos_args) {
29813 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29814 CYTHON_FALLTHROUGH;
29815 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29816 CYTHON_FALLTHROUGH;
29817 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29818 CYTHON_FALLTHROUGH;
29819 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29820 CYTHON_FALLTHROUGH;
29821 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29822 CYTHON_FALLTHROUGH;
29824 default:
goto __pyx_L5_argtuple_error;
29826 kw_args = PyDict_Size(__pyx_kwds);
29827 switch (pos_args) {
29829 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
29830 else goto __pyx_L5_argtuple_error;
29831 CYTHON_FALLTHROUGH;
29833 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
29835 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryAverageVelocity", 1, 5, 5, 1); __PYX_ERR(0, 5031, __pyx_L3_error)
29837 CYTHON_FALLTHROUGH;
29839 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
29841 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryAverageVelocity", 1, 5, 5, 2); __PYX_ERR(0, 5031, __pyx_L3_error)
29843 CYTHON_FALLTHROUGH;
29845 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
29847 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryAverageVelocity", 1, 5, 5, 3); __PYX_ERR(0, 5031, __pyx_L3_error)
29849 CYTHON_FALLTHROUGH;
29851 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
29853 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryAverageVelocity", 1, 5, 5, 4); __PYX_ERR(0, 5031, __pyx_L3_error)
29856 if (unlikely(kw_args > 0)) {
29857 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorElementBoundaryAverageVelocity") < 0)) __PYX_ERR(0, 5031, __pyx_L3_error)
29859 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
29860 goto __pyx_L5_argtuple_error;
29862 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
29863 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
29864 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
29865 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
29866 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29868 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
29869 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
29870 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
29871 __pyx_v_v = ((PyArrayObject *)values[3]);
29872 __pyx_v_vAverage = ((PyArrayObject *)values[4]);
29874 goto __pyx_L4_argument_unpacking_done;
29875 __pyx_L5_argtuple_error:;
29876 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorElementBoundaryAverageVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5031, __pyx_L3_error)
29878 __Pyx_AddTraceback(
"cfemIntegrals.calculateInteriorElementBoundaryAverageVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
29879 __Pyx_RefNannyFinishContext();
29881 __pyx_L4_argument_unpacking_done:;
29882 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5031, __pyx_L1_error)
29883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5032, __pyx_L1_error)
29884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5033, __pyx_L1_error)
29885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5034, __pyx_L1_error)
29886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 5035, __pyx_L1_error)
29887 __pyx_r = __pyx_pf_13cfemIntegrals_254calculateInteriorElementBoundaryAverageVelocity(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_v, __pyx_v_vAverage);
29894 __Pyx_RefNannyFinishContext();
29898 static PyObject *__pyx_pf_13cfemIntegrals_254calculateInteriorElementBoundaryAverageVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vAverage) {
29899 int __pyx_v_nInteriorElementBoundaries_global;
29900 int __pyx_v_nElementBoundaries_element;
29901 int __pyx_v_nQuadraturePoints_elementBoundary;
29902 int __pyx_v_nSpace;
29903 PyObject *__pyx_r = NULL;
29904 __Pyx_RefNannyDeclarations
29905 __Pyx_RefNannySetupContext(
"calculateInteriorElementBoundaryAverageVelocity", 0);
29914 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
29923 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
29932 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
29941 __pyx_v_nSpace = (__pyx_v_v->dimensions[3]);
29950 calculateInteriorElementBoundaryAverageVelocity(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_vAverage->data));
29961 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29962 __Pyx_XGIVEREF(__pyx_r);
29963 __Pyx_RefNannyFinishContext();
29976 static PyObject *__pyx_pw_13cfemIntegrals_257calculateExteriorElementBoundaryAverageVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
29977 static PyMethodDef __pyx_mdef_13cfemIntegrals_257calculateExteriorElementBoundaryAverageVelocity = {
"calculateExteriorElementBoundaryAverageVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_257calculateExteriorElementBoundaryAverageVelocity, METH_VARARGS|METH_KEYWORDS, 0};
29978 static PyObject *__pyx_pw_13cfemIntegrals_257calculateExteriorElementBoundaryAverageVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
29979 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
29980 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
29981 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
29982 PyArrayObject *__pyx_v_v = 0;
29983 PyArrayObject *__pyx_v_vAverage = 0;
29984 int __pyx_lineno = 0;
29985 const char *__pyx_filename = NULL;
29986 int __pyx_clineno = 0;
29987 PyObject *__pyx_r = 0;
29988 __Pyx_RefNannyDeclarations
29989 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryAverageVelocity (wrapper)", 0);
29991 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_v,&__pyx_n_s_vAverage,0};
29992 PyObject* values[5] = {0,0,0,0,0};
29993 if (unlikely(__pyx_kwds)) {
29994 Py_ssize_t kw_args;
29995 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
29996 switch (pos_args) {
29997 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
29998 CYTHON_FALLTHROUGH;
29999 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30000 CYTHON_FALLTHROUGH;
30001 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30002 CYTHON_FALLTHROUGH;
30003 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30004 CYTHON_FALLTHROUGH;
30005 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30006 CYTHON_FALLTHROUGH;
30008 default:
goto __pyx_L5_argtuple_error;
30010 kw_args = PyDict_Size(__pyx_kwds);
30011 switch (pos_args) {
30013 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30014 else goto __pyx_L5_argtuple_error;
30015 CYTHON_FALLTHROUGH;
30017 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30019 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryAverageVelocity", 1, 5, 5, 1); __PYX_ERR(0, 5049, __pyx_L3_error)
30021 CYTHON_FALLTHROUGH;
30023 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30025 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryAverageVelocity", 1, 5, 5, 2); __PYX_ERR(0, 5049, __pyx_L3_error)
30027 CYTHON_FALLTHROUGH;
30029 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
30031 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryAverageVelocity", 1, 5, 5, 3); __PYX_ERR(0, 5049, __pyx_L3_error)
30033 CYTHON_FALLTHROUGH;
30035 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vAverage)) != 0)) kw_args--;
30037 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryAverageVelocity", 1, 5, 5, 4); __PYX_ERR(0, 5049, __pyx_L3_error)
30040 if (unlikely(kw_args > 0)) {
30041 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorElementBoundaryAverageVelocity") < 0)) __PYX_ERR(0, 5049, __pyx_L3_error)
30043 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
30044 goto __pyx_L5_argtuple_error;
30046 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30047 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30048 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30049 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30050 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30052 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
30053 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
30054 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
30055 __pyx_v_v = ((PyArrayObject *)values[3]);
30056 __pyx_v_vAverage = ((PyArrayObject *)values[4]);
30058 goto __pyx_L4_argument_unpacking_done;
30059 __pyx_L5_argtuple_error:;
30060 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorElementBoundaryAverageVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5049, __pyx_L3_error)
30062 __Pyx_AddTraceback(
"cfemIntegrals.calculateExteriorElementBoundaryAverageVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
30063 __Pyx_RefNannyFinishContext();
30065 __pyx_L4_argument_unpacking_done:;
30066 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5049, __pyx_L1_error)
30067 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5050, __pyx_L1_error)
30068 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5051, __pyx_L1_error)
30069 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5052, __pyx_L1_error)
30070 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vAverage), __pyx_ptype_5numpy_ndarray, 1,
"vAverage", 0))) __PYX_ERR(0, 5053, __pyx_L1_error)
30071 __pyx_r = __pyx_pf_13cfemIntegrals_256calculateExteriorElementBoundaryAverageVelocity(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_v, __pyx_v_vAverage);
30078 __Pyx_RefNannyFinishContext();
30082 static PyObject *__pyx_pf_13cfemIntegrals_256calculateExteriorElementBoundaryAverageVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vAverage) {
30083 int __pyx_v_nExteriorElementBoundaries_global;
30084 int __pyx_v_nElementBoundaries_element;
30085 int __pyx_v_nQuadraturePoints_elementBoundary;
30086 int __pyx_v_nSpace;
30087 PyObject *__pyx_r = NULL;
30088 __Pyx_RefNannyDeclarations
30089 __Pyx_RefNannySetupContext(
"calculateExteriorElementBoundaryAverageVelocity", 0);
30098 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
30107 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
30116 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
30125 __pyx_v_nSpace = (__pyx_v_v->dimensions[3]);
30134 calculateExteriorElementBoundaryAverageVelocity(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_vAverage->data));
30145 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30146 __Pyx_XGIVEREF(__pyx_r);
30147 __Pyx_RefNannyFinishContext();
30160 static PyObject *__pyx_pw_13cfemIntegrals_259calculateConservationResidualDG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30161 static PyMethodDef __pyx_mdef_13cfemIntegrals_259calculateConservationResidualDG = {
"calculateConservationResidualDG", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_259calculateConservationResidualDG, METH_VARARGS|METH_KEYWORDS, 0};
30162 static PyObject *__pyx_pw_13cfemIntegrals_259calculateConservationResidualDG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30163 PyArrayObject *__pyx_v_elementResidual = 0;
30164 PyArrayObject *__pyx_v_conservationResidual = 0;
30165 int __pyx_lineno = 0;
30166 const char *__pyx_filename = NULL;
30167 int __pyx_clineno = 0;
30168 PyObject *__pyx_r = 0;
30169 __Pyx_RefNannyDeclarations
30170 __Pyx_RefNannySetupContext(
"calculateConservationResidualDG (wrapper)", 0);
30172 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementResidual,&__pyx_n_s_conservationResidual,0};
30173 PyObject* values[2] = {0,0};
30174 if (unlikely(__pyx_kwds)) {
30175 Py_ssize_t kw_args;
30176 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30177 switch (pos_args) {
30178 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30179 CYTHON_FALLTHROUGH;
30180 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30181 CYTHON_FALLTHROUGH;
30183 default:
goto __pyx_L5_argtuple_error;
30185 kw_args = PyDict_Size(__pyx_kwds);
30186 switch (pos_args) {
30188 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
30189 else goto __pyx_L5_argtuple_error;
30190 CYTHON_FALLTHROUGH;
30192 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
30194 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualDG", 1, 2, 2, 1); __PYX_ERR(0, 5067, __pyx_L3_error)
30197 if (unlikely(kw_args > 0)) {
30198 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualDG") < 0)) __PYX_ERR(0, 5067, __pyx_L3_error)
30200 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
30201 goto __pyx_L5_argtuple_error;
30203 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30204 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30206 __pyx_v_elementResidual = ((PyArrayObject *)values[0]);
30207 __pyx_v_conservationResidual = ((PyArrayObject *)values[1]);
30209 goto __pyx_L4_argument_unpacking_done;
30210 __pyx_L5_argtuple_error:;
30211 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualDG", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5067, __pyx_L3_error)
30213 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationResidualDG", __pyx_clineno, __pyx_lineno, __pyx_filename);
30214 __Pyx_RefNannyFinishContext();
30216 __pyx_L4_argument_unpacking_done:;
30217 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 5067, __pyx_L1_error)
30218 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 5068, __pyx_L1_error)
30219 __pyx_r = __pyx_pf_13cfemIntegrals_258calculateConservationResidualDG(__pyx_self, __pyx_v_elementResidual, __pyx_v_conservationResidual);
30226 __Pyx_RefNannyFinishContext();
30230 static PyObject *__pyx_pf_13cfemIntegrals_258calculateConservationResidualDG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_conservationResidual) {
30231 int __pyx_v_nElements_global;
30232 int __pyx_v_nDOF_test_element;
30233 PyObject *__pyx_r = NULL;
30234 __Pyx_RefNannyDeclarations
30235 __Pyx_RefNannySetupContext(
"calculateConservationResidualDG", 0);
30244 __pyx_v_nElements_global = (__pyx_v_elementResidual->dimensions[0]);
30253 __pyx_v_nDOF_test_element = (__pyx_v_elementResidual->dimensions[1]);
30262 calculateConservationResidualDG(__pyx_v_nElements_global, __pyx_v_nDOF_test_element, ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_conservationResidual->data));
30273 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30274 __Pyx_XGIVEREF(__pyx_r);
30275 __Pyx_RefNannyFinishContext();
30288 static PyObject *__pyx_pw_13cfemIntegrals_261calculateConservationResidual(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30289 static PyMethodDef __pyx_mdef_13cfemIntegrals_261calculateConservationResidual = {
"calculateConservationResidual", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_261calculateConservationResidual, METH_VARARGS|METH_KEYWORDS, 0};
30290 static PyObject *__pyx_pw_13cfemIntegrals_261calculateConservationResidual(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30291 PyArrayObject *__pyx_v_n = 0;
30292 PyArrayObject *__pyx_v_dS_u = 0;
30293 PyArrayObject *__pyx_v_elementResidual = 0;
30294 PyArrayObject *__pyx_v_velocity = 0;
30295 PyArrayObject *__pyx_v_conservationResidual = 0;
30296 int __pyx_lineno = 0;
30297 const char *__pyx_filename = NULL;
30298 int __pyx_clineno = 0;
30299 PyObject *__pyx_r = 0;
30300 __Pyx_RefNannyDeclarations
30301 __Pyx_RefNannySetupContext(
"calculateConservationResidual (wrapper)", 0);
30303 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_n,&__pyx_n_s_dS_u,&__pyx_n_s_elementResidual,&__pyx_n_s_velocity,&__pyx_n_s_conservationResidual,0};
30304 PyObject* values[5] = {0,0,0,0,0};
30305 if (unlikely(__pyx_kwds)) {
30306 Py_ssize_t kw_args;
30307 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30308 switch (pos_args) {
30309 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30310 CYTHON_FALLTHROUGH;
30311 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30312 CYTHON_FALLTHROUGH;
30313 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30314 CYTHON_FALLTHROUGH;
30315 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30316 CYTHON_FALLTHROUGH;
30317 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30318 CYTHON_FALLTHROUGH;
30320 default:
goto __pyx_L5_argtuple_error;
30322 kw_args = PyDict_Size(__pyx_kwds);
30323 switch (pos_args) {
30325 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
30326 else goto __pyx_L5_argtuple_error;
30327 CYTHON_FALLTHROUGH;
30329 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS_u)) != 0)) kw_args--;
30331 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidual", 1, 5, 5, 1); __PYX_ERR(0, 5075, __pyx_L3_error)
30333 CYTHON_FALLTHROUGH;
30335 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
30337 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidual", 1, 5, 5, 2); __PYX_ERR(0, 5075, __pyx_L3_error)
30339 CYTHON_FALLTHROUGH;
30341 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
30343 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidual", 1, 5, 5, 3); __PYX_ERR(0, 5075, __pyx_L3_error)
30345 CYTHON_FALLTHROUGH;
30347 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
30349 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidual", 1, 5, 5, 4); __PYX_ERR(0, 5075, __pyx_L3_error)
30352 if (unlikely(kw_args > 0)) {
30353 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidual") < 0)) __PYX_ERR(0, 5075, __pyx_L3_error)
30355 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
30356 goto __pyx_L5_argtuple_error;
30358 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30359 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30360 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30361 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30362 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30364 __pyx_v_n = ((PyArrayObject *)values[0]);
30365 __pyx_v_dS_u = ((PyArrayObject *)values[1]);
30366 __pyx_v_elementResidual = ((PyArrayObject *)values[2]);
30367 __pyx_v_velocity = ((PyArrayObject *)values[3]);
30368 __pyx_v_conservationResidual = ((PyArrayObject *)values[4]);
30370 goto __pyx_L4_argument_unpacking_done;
30371 __pyx_L5_argtuple_error:;
30372 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidual", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5075, __pyx_L3_error)
30374 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationResidual", __pyx_clineno, __pyx_lineno, __pyx_filename);
30375 __Pyx_RefNannyFinishContext();
30377 __pyx_L4_argument_unpacking_done:;
30378 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5075, __pyx_L1_error)
30379 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS_u), __pyx_ptype_5numpy_ndarray, 1,
"dS_u", 0))) __PYX_ERR(0, 5076, __pyx_L1_error)
30380 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 5077, __pyx_L1_error)
30381 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5078, __pyx_L1_error)
30382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 5079, __pyx_L1_error)
30383 __pyx_r = __pyx_pf_13cfemIntegrals_260calculateConservationResidual(__pyx_self, __pyx_v_n, __pyx_v_dS_u, __pyx_v_elementResidual, __pyx_v_velocity, __pyx_v_conservationResidual);
30390 __Pyx_RefNannyFinishContext();
30394 static PyObject *__pyx_pf_13cfemIntegrals_260calculateConservationResidual(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dS_u, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual) {
30395 int __pyx_v_nElements_global;
30396 int __pyx_v_nDOF_test_element;
30397 int __pyx_v_nElementBoundaries_element;
30398 int __pyx_v_nQuadraturePoints_elementBoundary;
30399 int __pyx_v_nSpace;
30400 PyObject *__pyx_r = NULL;
30401 __Pyx_RefNannyDeclarations
30402 __Pyx_RefNannySetupContext(
"calculateConservationResidual", 0);
30411 __pyx_v_nElements_global = (__pyx_v_elementResidual->dimensions[0]);
30420 __pyx_v_nDOF_test_element = (__pyx_v_elementResidual->dimensions[1]);
30429 __pyx_v_nElementBoundaries_element = (__pyx_v_n->dimensions[1]);
30438 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_n->dimensions[2]);
30447 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
30456 calculateConservationResidual(__pyx_v_nElements_global, __pyx_v_nDOF_test_element, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_dS_u->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_conservationResidual->data));
30467 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30468 __Pyx_XGIVEREF(__pyx_r);
30469 __Pyx_RefNannyFinishContext();
30482 static PyObject *__pyx_pw_13cfemIntegrals_263calculateConservationResidualGlobalBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30483 static PyMethodDef __pyx_mdef_13cfemIntegrals_263calculateConservationResidualGlobalBoundaries = {
"calculateConservationResidualGlobalBoundaries", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_263calculateConservationResidualGlobalBoundaries, METH_VARARGS|METH_KEYWORDS, 0};
30484 static PyObject *__pyx_pw_13cfemIntegrals_263calculateConservationResidualGlobalBoundaries(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30485 int __pyx_v_nElements_global;
30486 int __pyx_v_nInteriorElementBoundaries_global;
30487 int __pyx_v_nExteriorElementBoundaries_global;
30488 int __pyx_v_nElementBoundaries_element;
30489 int __pyx_v_nQuadraturePoints_elementBoundary;
30490 int __pyx_v_nNodes_element;
30491 int __pyx_v_nSpace;
30492 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
30493 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30494 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
30495 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
30496 PyArrayObject *__pyx_v_dS = 0;
30497 PyArrayObject *__pyx_v_normal = 0;
30498 PyArrayObject *__pyx_v_elementResidual = 0;
30499 PyArrayObject *__pyx_v_velocity = 0;
30500 PyArrayObject *__pyx_v_conservationResidual = 0;
30501 int __pyx_lineno = 0;
30502 const char *__pyx_filename = NULL;
30503 int __pyx_clineno = 0;
30504 PyObject *__pyx_r = 0;
30505 __Pyx_RefNannyDeclarations
30506 __Pyx_RefNannySetupContext(
"calculateConservationResidualGlobalBoundaries (wrapper)", 0);
30508 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nInteriorElementBoundaries_globa,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_nElementBoundaries_element,&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nNodes_element,&__pyx_n_s_nSpace,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_dS,&__pyx_n_s_normal,&__pyx_n_s_elementResidual,&__pyx_n_s_velocity,&__pyx_n_s_conservationResidual,0};
30509 PyObject* values[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
30510 if (unlikely(__pyx_kwds)) {
30511 Py_ssize_t kw_args;
30512 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30513 switch (pos_args) {
30514 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30515 CYTHON_FALLTHROUGH;
30516 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30517 CYTHON_FALLTHROUGH;
30518 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30519 CYTHON_FALLTHROUGH;
30520 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30521 CYTHON_FALLTHROUGH;
30522 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30523 CYTHON_FALLTHROUGH;
30524 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30525 CYTHON_FALLTHROUGH;
30526 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30527 CYTHON_FALLTHROUGH;
30528 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30529 CYTHON_FALLTHROUGH;
30530 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30531 CYTHON_FALLTHROUGH;
30532 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30533 CYTHON_FALLTHROUGH;
30534 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30535 CYTHON_FALLTHROUGH;
30536 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30537 CYTHON_FALLTHROUGH;
30538 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30539 CYTHON_FALLTHROUGH;
30540 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30541 CYTHON_FALLTHROUGH;
30542 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30543 CYTHON_FALLTHROUGH;
30544 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30545 CYTHON_FALLTHROUGH;
30547 default:
goto __pyx_L5_argtuple_error;
30549 kw_args = PyDict_Size(__pyx_kwds);
30550 switch (pos_args) {
30552 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
30553 else goto __pyx_L5_argtuple_error;
30554 CYTHON_FALLTHROUGH;
30556 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nInteriorElementBoundaries_globa)) != 0)) kw_args--;
30558 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 1); __PYX_ERR(0, 5095, __pyx_L3_error)
30560 CYTHON_FALLTHROUGH;
30562 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
30564 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 2); __PYX_ERR(0, 5095, __pyx_L3_error)
30566 CYTHON_FALLTHROUGH;
30568 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_element)) != 0)) kw_args--;
30570 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 3); __PYX_ERR(0, 5095, __pyx_L3_error)
30572 CYTHON_FALLTHROUGH;
30574 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
30576 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 4); __PYX_ERR(0, 5095, __pyx_L3_error)
30578 CYTHON_FALLTHROUGH;
30580 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_element)) != 0)) kw_args--;
30582 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 5); __PYX_ERR(0, 5095, __pyx_L3_error)
30584 CYTHON_FALLTHROUGH;
30586 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
30588 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 6); __PYX_ERR(0, 5095, __pyx_L3_error)
30590 CYTHON_FALLTHROUGH;
30592 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
30594 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 7); __PYX_ERR(0, 5095, __pyx_L3_error)
30596 CYTHON_FALLTHROUGH;
30598 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30600 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 8); __PYX_ERR(0, 5095, __pyx_L3_error)
30602 CYTHON_FALLTHROUGH;
30604 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
30606 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 9); __PYX_ERR(0, 5095, __pyx_L3_error)
30608 CYTHON_FALLTHROUGH;
30610 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
30612 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 10); __PYX_ERR(0, 5095, __pyx_L3_error)
30614 CYTHON_FALLTHROUGH;
30616 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
30618 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 11); __PYX_ERR(0, 5095, __pyx_L3_error)
30620 CYTHON_FALLTHROUGH;
30622 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_normal)) != 0)) kw_args--;
30624 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 12); __PYX_ERR(0, 5095, __pyx_L3_error)
30626 CYTHON_FALLTHROUGH;
30628 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementResidual)) != 0)) kw_args--;
30630 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 13); __PYX_ERR(0, 5095, __pyx_L3_error)
30632 CYTHON_FALLTHROUGH;
30634 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
30636 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 14); __PYX_ERR(0, 5095, __pyx_L3_error)
30638 CYTHON_FALLTHROUGH;
30640 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_conservationResidual)) != 0)) kw_args--;
30642 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, 15); __PYX_ERR(0, 5095, __pyx_L3_error)
30645 if (unlikely(kw_args > 0)) {
30646 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateConservationResidualGlobalBoundaries") < 0)) __PYX_ERR(0, 5095, __pyx_L3_error)
30648 }
else if (PyTuple_GET_SIZE(__pyx_args) != 16) {
30649 goto __pyx_L5_argtuple_error;
30651 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30652 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30653 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30654 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30655 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30656 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30657 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
30658 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
30659 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
30660 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
30661 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
30662 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
30663 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
30664 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
30665 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
30666 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
30668 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5095, __pyx_L3_error)
30669 __pyx_v_nInteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nInteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5096, __pyx_L3_error)
30670 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5097, __pyx_L3_error)
30671 __pyx_v_nElementBoundaries_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nElementBoundaries_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5098, __pyx_L3_error)
30672 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5099, __pyx_L3_error)
30673 __pyx_v_nNodes_element = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_nNodes_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5100, __pyx_L3_error)
30674 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5101, __pyx_L3_error)
30675 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[7]);
30676 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[8]);
30677 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[9]);
30678 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[10]);
30679 __pyx_v_dS = ((PyArrayObject *)values[11]);
30680 __pyx_v_normal = ((PyArrayObject *)values[12]);
30681 __pyx_v_elementResidual = ((PyArrayObject *)values[13]);
30682 __pyx_v_velocity = ((PyArrayObject *)values[14]);
30683 __pyx_v_conservationResidual = ((PyArrayObject *)values[15]);
30685 goto __pyx_L4_argument_unpacking_done;
30686 __pyx_L5_argtuple_error:;
30687 __Pyx_RaiseArgtupleInvalid(
"calculateConservationResidualGlobalBoundaries", 1, 16, 16, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5095, __pyx_L3_error)
30689 __Pyx_AddTraceback(
"cfemIntegrals.calculateConservationResidualGlobalBoundaries", __pyx_clineno, __pyx_lineno, __pyx_filename);
30690 __Pyx_RefNannyFinishContext();
30692 __pyx_L4_argument_unpacking_done:;
30693 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5102, __pyx_L1_error)
30694 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5103, __pyx_L1_error)
30695 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5104, __pyx_L1_error)
30696 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5105, __pyx_L1_error)
30697 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 5106, __pyx_L1_error)
30698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_normal), __pyx_ptype_5numpy_ndarray, 1,
"normal", 0))) __PYX_ERR(0, 5107, __pyx_L1_error)
30699 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementResidual", 0))) __PYX_ERR(0, 5108, __pyx_L1_error)
30700 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5109, __pyx_L1_error)
30701 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conservationResidual), __pyx_ptype_5numpy_ndarray, 1,
"conservationResidual", 0))) __PYX_ERR(0, 5110, __pyx_L1_error)
30702 __pyx_r = __pyx_pf_13cfemIntegrals_262calculateConservationResidualGlobalBoundaries(__pyx_self, __pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_dS, __pyx_v_normal, __pyx_v_elementResidual, __pyx_v_velocity, __pyx_v_conservationResidual);
30709 __Pyx_RefNannyFinishContext();
30713 static PyObject *__pyx_pf_13cfemIntegrals_262calculateConservationResidualGlobalBoundaries(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nInteriorElementBoundaries_global,
int __pyx_v_nExteriorElementBoundaries_global,
int __pyx_v_nElementBoundaries_element,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nNodes_element,
int __pyx_v_nSpace, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_elementResidual, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_conservationResidual) {
30714 PyObject *__pyx_r = NULL;
30715 __Pyx_RefNannyDeclarations
30716 __Pyx_RefNannySetupContext(
"calculateConservationResidualGlobalBoundaries", 0);
30725 calculateConservationResidualGlobalBoundaries(__pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nNodes_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_normal->data), ((
double *)__pyx_v_elementResidual->data), ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_conservationResidual->data));
30736 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30737 __Pyx_XGIVEREF(__pyx_r);
30738 __Pyx_RefNannyFinishContext();
30751 static PyObject *__pyx_pw_13cfemIntegrals_265copyGlobalElementBoundaryVelocityToElementBoundary(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30752 static PyMethodDef __pyx_mdef_13cfemIntegrals_265copyGlobalElementBoundaryVelocityToElementBoundary = {
"copyGlobalElementBoundaryVelocityToElementBoundary", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_265copyGlobalElementBoundaryVelocityToElementBoundary, METH_VARARGS|METH_KEYWORDS, 0};
30753 static PyObject *__pyx_pw_13cfemIntegrals_265copyGlobalElementBoundaryVelocityToElementBoundary(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30754 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
30755 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30756 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
30757 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
30758 PyArrayObject *__pyx_v_velocityBoundary_global = 0;
30759 PyArrayObject *__pyx_v_velocityBoundary_element = 0;
30760 int __pyx_lineno = 0;
30761 const char *__pyx_filename = NULL;
30762 int __pyx_clineno = 0;
30763 PyObject *__pyx_r = 0;
30764 __Pyx_RefNannyDeclarations
30765 __Pyx_RefNannySetupContext(
"copyGlobalElementBoundaryVelocityToElementBoundary (wrapper)", 0);
30767 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_velocityBoundary_global,&__pyx_n_s_velocityBoundary_element,0};
30768 PyObject* values[6] = {0,0,0,0,0,0};
30769 if (unlikely(__pyx_kwds)) {
30770 Py_ssize_t kw_args;
30771 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30772 switch (pos_args) {
30773 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30774 CYTHON_FALLTHROUGH;
30775 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30776 CYTHON_FALLTHROUGH;
30777 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30778 CYTHON_FALLTHROUGH;
30779 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30780 CYTHON_FALLTHROUGH;
30781 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30782 CYTHON_FALLTHROUGH;
30783 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30784 CYTHON_FALLTHROUGH;
30786 default:
goto __pyx_L5_argtuple_error;
30788 kw_args = PyDict_Size(__pyx_kwds);
30789 switch (pos_args) {
30791 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
30792 else goto __pyx_L5_argtuple_error;
30793 CYTHON_FALLTHROUGH;
30795 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
30797 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, 1); __PYX_ERR(0, 5127, __pyx_L3_error)
30799 CYTHON_FALLTHROUGH;
30801 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
30803 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, 2); __PYX_ERR(0, 5127, __pyx_L3_error)
30805 CYTHON_FALLTHROUGH;
30807 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
30809 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, 3); __PYX_ERR(0, 5127, __pyx_L3_error)
30811 CYTHON_FALLTHROUGH;
30813 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocityBoundary_global)) != 0)) kw_args--;
30815 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, 4); __PYX_ERR(0, 5127, __pyx_L3_error)
30817 CYTHON_FALLTHROUGH;
30819 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocityBoundary_element)) != 0)) kw_args--;
30821 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, 5); __PYX_ERR(0, 5127, __pyx_L3_error)
30824 if (unlikely(kw_args > 0)) {
30825 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyGlobalElementBoundaryVelocityToElementBoundary") < 0)) __PYX_ERR(0, 5127, __pyx_L3_error)
30827 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
30828 goto __pyx_L5_argtuple_error;
30830 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
30831 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
30832 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
30833 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
30834 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
30835 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
30837 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
30838 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
30839 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[2]);
30840 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[3]);
30841 __pyx_v_velocityBoundary_global = ((PyArrayObject *)values[4]);
30842 __pyx_v_velocityBoundary_element = ((PyArrayObject *)values[5]);
30844 goto __pyx_L4_argument_unpacking_done;
30845 __pyx_L5_argtuple_error:;
30846 __Pyx_RaiseArgtupleInvalid(
"copyGlobalElementBoundaryVelocityToElementBoundary", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5127, __pyx_L3_error)
30848 __Pyx_AddTraceback(
"cfemIntegrals.copyGlobalElementBoundaryVelocityToElementBoundary", __pyx_clineno, __pyx_lineno, __pyx_filename);
30849 __Pyx_RefNannyFinishContext();
30851 __pyx_L4_argument_unpacking_done:;
30852 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5127, __pyx_L1_error)
30853 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5128, __pyx_L1_error)
30854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5129, __pyx_L1_error)
30855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5130, __pyx_L1_error)
30856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocityBoundary_global), __pyx_ptype_5numpy_ndarray, 1,
"velocityBoundary_global", 0))) __PYX_ERR(0, 5131, __pyx_L1_error)
30857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocityBoundary_element), __pyx_ptype_5numpy_ndarray, 1,
"velocityBoundary_element", 0))) __PYX_ERR(0, 5132, __pyx_L1_error)
30858 __pyx_r = __pyx_pf_13cfemIntegrals_264copyGlobalElementBoundaryVelocityToElementBoundary(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_velocityBoundary_global, __pyx_v_velocityBoundary_element);
30865 __Pyx_RefNannyFinishContext();
30869 static PyObject *__pyx_pf_13cfemIntegrals_264copyGlobalElementBoundaryVelocityToElementBoundary(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_velocityBoundary_global, PyArrayObject *__pyx_v_velocityBoundary_element) {
30870 int __pyx_v_nElements_global;
30871 int __pyx_v_nInteriorElementBoundaries_global;
30872 int __pyx_v_nExteriorElementBoundaries_global;
30873 int __pyx_v_nElementBoundaries_global;
30874 int __pyx_v_nElementBoundaries_element;
30875 int __pyx_v_nQuadraturePoints_elementBoundary;
30876 int __pyx_v_nSpace;
30877 PyObject *__pyx_r = NULL;
30878 __Pyx_RefNannyDeclarations
30879 __Pyx_RefNannySetupContext(
"copyGlobalElementBoundaryVelocityToElementBoundary", 0);
30888 __pyx_v_nElements_global = (__pyx_v_velocityBoundary_element->dimensions[0]);
30897 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
30906 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
30915 __pyx_v_nElementBoundaries_global = (__pyx_v_velocityBoundary_global->dimensions[0]);
30924 __pyx_v_nElementBoundaries_element = (__pyx_v_velocityBoundary_element->dimensions[1]);
30933 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_velocityBoundary_element->dimensions[2]);
30942 __pyx_v_nSpace = (__pyx_v_velocityBoundary_element->dimensions[3]);
30951 copyGlobalElementBoundaryVelocityToElementBoundary(__pyx_v_nElements_global, __pyx_v_nInteriorElementBoundaries_global, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_velocityBoundary_global->data), ((
double *)__pyx_v_velocityBoundary_element->data));
30962 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30963 __Pyx_XGIVEREF(__pyx_r);
30964 __Pyx_RefNannyFinishContext();
30977 static PyObject *__pyx_pw_13cfemIntegrals_267loadBoundaryFluxIntoGlobalElementBoundaryVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
30978 static PyMethodDef __pyx_mdef_13cfemIntegrals_267loadBoundaryFluxIntoGlobalElementBoundaryVelocity = {
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_267loadBoundaryFluxIntoGlobalElementBoundaryVelocity, METH_VARARGS|METH_KEYWORDS, 0};
30979 static PyObject *__pyx_pw_13cfemIntegrals_267loadBoundaryFluxIntoGlobalElementBoundaryVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
30980 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
30981 PyArrayObject *__pyx_v_fluxElementBoundaries = 0;
30982 PyArrayObject *__pyx_v_normal = 0;
30983 PyArrayObject *__pyx_v_flux = 0;
30984 double __pyx_v_updateCoef;
30985 PyArrayObject *__pyx_v_velocity = 0;
30986 int __pyx_lineno = 0;
30987 const char *__pyx_filename = NULL;
30988 int __pyx_clineno = 0;
30989 PyObject *__pyx_r = 0;
30990 __Pyx_RefNannyDeclarations
30991 __Pyx_RefNannySetupContext(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity (wrapper)", 0);
30993 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_fluxElementBoundaries,&__pyx_n_s_normal,&__pyx_n_s_flux,&__pyx_n_s_updateCoef,&__pyx_n_s_velocity,0};
30994 PyObject* values[6] = {0,0,0,0,0,0};
30995 if (unlikely(__pyx_kwds)) {
30996 Py_ssize_t kw_args;
30997 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
30998 switch (pos_args) {
30999 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31000 CYTHON_FALLTHROUGH;
31001 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31002 CYTHON_FALLTHROUGH;
31003 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31004 CYTHON_FALLTHROUGH;
31005 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31006 CYTHON_FALLTHROUGH;
31007 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31008 CYTHON_FALLTHROUGH;
31009 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31010 CYTHON_FALLTHROUGH;
31012 default:
goto __pyx_L5_argtuple_error;
31014 kw_args = PyDict_Size(__pyx_kwds);
31015 switch (pos_args) {
31017 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31018 else goto __pyx_L5_argtuple_error;
31019 CYTHON_FALLTHROUGH;
31021 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fluxElementBoundaries)) != 0)) kw_args--;
31023 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, 1); __PYX_ERR(0, 5153, __pyx_L3_error)
31025 CYTHON_FALLTHROUGH;
31027 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_normal)) != 0)) kw_args--;
31029 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, 2); __PYX_ERR(0, 5153, __pyx_L3_error)
31031 CYTHON_FALLTHROUGH;
31033 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flux)) != 0)) kw_args--;
31035 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, 3); __PYX_ERR(0, 5153, __pyx_L3_error)
31037 CYTHON_FALLTHROUGH;
31039 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_updateCoef)) != 0)) kw_args--;
31041 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, 4); __PYX_ERR(0, 5153, __pyx_L3_error)
31043 CYTHON_FALLTHROUGH;
31045 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
31047 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, 5); __PYX_ERR(0, 5153, __pyx_L3_error)
31050 if (unlikely(kw_args > 0)) {
31051 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity") < 0)) __PYX_ERR(0, 5153, __pyx_L3_error)
31053 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
31054 goto __pyx_L5_argtuple_error;
31056 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31057 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31058 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31059 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31060 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31061 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31063 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
31064 __pyx_v_fluxElementBoundaries = ((PyArrayObject *)values[1]);
31065 __pyx_v_normal = ((PyArrayObject *)values[2]);
31066 __pyx_v_flux = ((PyArrayObject *)values[3]);
31067 __pyx_v_updateCoef = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_updateCoef == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5157, __pyx_L3_error)
31068 __pyx_v_velocity = ((PyArrayObject *)values[5]);
31070 goto __pyx_L4_argument_unpacking_done;
31071 __pyx_L5_argtuple_error:;
31072 __Pyx_RaiseArgtupleInvalid(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5153, __pyx_L3_error)
31074 __Pyx_AddTraceback(
"cfemIntegrals.loadBoundaryFluxIntoGlobalElementBoundaryVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
31075 __Pyx_RefNannyFinishContext();
31077 __pyx_L4_argument_unpacking_done:;
31078 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5153, __pyx_L1_error)
31079 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fluxElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"fluxElementBoundaries", 0))) __PYX_ERR(0, 5154, __pyx_L1_error)
31080 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_normal), __pyx_ptype_5numpy_ndarray, 1,
"normal", 0))) __PYX_ERR(0, 5155, __pyx_L1_error)
31081 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flux), __pyx_ptype_5numpy_ndarray, 1,
"flux", 0))) __PYX_ERR(0, 5156, __pyx_L1_error)
31082 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 5158, __pyx_L1_error)
31083 __pyx_r = __pyx_pf_13cfemIntegrals_266loadBoundaryFluxIntoGlobalElementBoundaryVelocity(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_fluxElementBoundaries, __pyx_v_normal, __pyx_v_flux, __pyx_v_updateCoef, __pyx_v_velocity);
31090 __Pyx_RefNannyFinishContext();
31094 static PyObject *__pyx_pf_13cfemIntegrals_266loadBoundaryFluxIntoGlobalElementBoundaryVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_fluxElementBoundaries, PyArrayObject *__pyx_v_normal, PyArrayObject *__pyx_v_flux,
double __pyx_v_updateCoef, PyArrayObject *__pyx_v_velocity) {
31095 int __pyx_v_nExteriorElementBoundaries_global;
31096 int __pyx_v_nQuadraturePoints_elementBoundary;
31097 int __pyx_v_nSpace;
31098 PyObject *__pyx_r = NULL;
31099 __Pyx_RefNannyDeclarations
31100 __Pyx_RefNannySetupContext(
"loadBoundaryFluxIntoGlobalElementBoundaryVelocity", 0);
31109 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
31118 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_normal->dimensions[1]);
31127 __pyx_v_nSpace = (__pyx_v_normal->dimensions[2]);
31136 loadBoundaryFluxIntoGlobalElementBoundaryVelocity(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_fluxElementBoundaries->data), ((
double *)__pyx_v_normal->data), ((
double *)__pyx_v_flux->data), __pyx_v_updateCoef, ((
double *)__pyx_v_velocity->data));
31147 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31148 __Pyx_XGIVEREF(__pyx_r);
31149 __Pyx_RefNannyFinishContext();
31162 static PyObject *__pyx_pw_13cfemIntegrals_269calculateInteriorNumericalTrace_Potential(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31163 static PyMethodDef __pyx_mdef_13cfemIntegrals_269calculateInteriorNumericalTrace_Potential = {
"calculateInteriorNumericalTrace_Potential", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_269calculateInteriorNumericalTrace_Potential, METH_VARARGS|METH_KEYWORDS, 0};
31164 static PyObject *__pyx_pw_13cfemIntegrals_269calculateInteriorNumericalTrace_Potential(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31165 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
31166 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31167 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31168 PyArrayObject *__pyx_v_phi = 0;
31169 PyArrayObject *__pyx_v_dphi = 0;
31170 PyArrayObject *__pyx_v_phi_trace = 0;
31171 PyArrayObject *__pyx_v_dphi_trace_left = 0;
31172 PyArrayObject *__pyx_v_dphi_trace_right = 0;
31173 int __pyx_lineno = 0;
31174 const char *__pyx_filename = NULL;
31175 int __pyx_clineno = 0;
31176 PyObject *__pyx_r = 0;
31177 __Pyx_RefNannyDeclarations
31178 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalTrace_Potential (wrapper)", 0);
31180 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_phi_trace,&__pyx_n_s_dphi_trace_left,&__pyx_n_s_dphi_trace_right,0};
31181 PyObject* values[8] = {0,0,0,0,0,0,0,0};
31182 if (unlikely(__pyx_kwds)) {
31183 Py_ssize_t kw_args;
31184 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31185 switch (pos_args) {
31186 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31187 CYTHON_FALLTHROUGH;
31188 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31189 CYTHON_FALLTHROUGH;
31190 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31191 CYTHON_FALLTHROUGH;
31192 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31193 CYTHON_FALLTHROUGH;
31194 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31195 CYTHON_FALLTHROUGH;
31196 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31197 CYTHON_FALLTHROUGH;
31198 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31199 CYTHON_FALLTHROUGH;
31200 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31201 CYTHON_FALLTHROUGH;
31203 default:
goto __pyx_L5_argtuple_error;
31205 kw_args = PyDict_Size(__pyx_kwds);
31206 switch (pos_args) {
31208 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
31209 else goto __pyx_L5_argtuple_error;
31210 CYTHON_FALLTHROUGH;
31212 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31214 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 1); __PYX_ERR(0, 5171, __pyx_L3_error)
31216 CYTHON_FALLTHROUGH;
31218 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31220 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 2); __PYX_ERR(0, 5171, __pyx_L3_error)
31222 CYTHON_FALLTHROUGH;
31224 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
31226 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 3); __PYX_ERR(0, 5171, __pyx_L3_error)
31228 CYTHON_FALLTHROUGH;
31230 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
31232 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 4); __PYX_ERR(0, 5171, __pyx_L3_error)
31234 CYTHON_FALLTHROUGH;
31236 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_trace)) != 0)) kw_args--;
31238 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 5); __PYX_ERR(0, 5171, __pyx_L3_error)
31240 CYTHON_FALLTHROUGH;
31242 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_left)) != 0)) kw_args--;
31244 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 6); __PYX_ERR(0, 5171, __pyx_L3_error)
31246 CYTHON_FALLTHROUGH;
31248 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_right)) != 0)) kw_args--;
31250 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, 7); __PYX_ERR(0, 5171, __pyx_L3_error)
31253 if (unlikely(kw_args > 0)) {
31254 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateInteriorNumericalTrace_Potential") < 0)) __PYX_ERR(0, 5171, __pyx_L3_error)
31256 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
31257 goto __pyx_L5_argtuple_error;
31259 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31260 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31261 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31262 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31263 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31264 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31265 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31266 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31268 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
31269 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
31270 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
31271 __pyx_v_phi = ((PyArrayObject *)values[3]);
31272 __pyx_v_dphi = ((PyArrayObject *)values[4]);
31273 __pyx_v_phi_trace = ((PyArrayObject *)values[5]);
31274 __pyx_v_dphi_trace_left = ((PyArrayObject *)values[6]);
31275 __pyx_v_dphi_trace_right = ((PyArrayObject *)values[7]);
31277 goto __pyx_L4_argument_unpacking_done;
31278 __pyx_L5_argtuple_error:;
31279 __Pyx_RaiseArgtupleInvalid(
"calculateInteriorNumericalTrace_Potential", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5171, __pyx_L3_error)
31281 __Pyx_AddTraceback(
"cfemIntegrals.calculateInteriorNumericalTrace_Potential", __pyx_clineno, __pyx_lineno, __pyx_filename);
31282 __Pyx_RefNannyFinishContext();
31284 __pyx_L4_argument_unpacking_done:;
31285 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5171, __pyx_L1_error)
31286 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5172, __pyx_L1_error)
31287 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5173, __pyx_L1_error)
31288 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5174, __pyx_L1_error)
31289 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5175, __pyx_L1_error)
31290 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_trace), __pyx_ptype_5numpy_ndarray, 1,
"phi_trace", 0))) __PYX_ERR(0, 5176, __pyx_L1_error)
31291 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_left), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_left", 0))) __PYX_ERR(0, 5177, __pyx_L1_error)
31292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_right), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_right", 0))) __PYX_ERR(0, 5178, __pyx_L1_error)
31293 __pyx_r = __pyx_pf_13cfemIntegrals_268calculateInteriorNumericalTrace_Potential(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_phi, __pyx_v_dphi, __pyx_v_phi_trace, __pyx_v_dphi_trace_left, __pyx_v_dphi_trace_right);
31300 __Pyx_RefNannyFinishContext();
31304 static PyObject *__pyx_pf_13cfemIntegrals_268calculateInteriorNumericalTrace_Potential(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_dphi_trace_right) {
31305 int __pyx_v_nInteriorElementBoundaries_global;
31306 int __pyx_v_nElementBoundaries_element;
31307 int __pyx_v_nQuadraturePoints_elementBoundary;
31308 PyObject *__pyx_r = NULL;
31309 __Pyx_RefNannyDeclarations
31310 __Pyx_RefNannySetupContext(
"calculateInteriorNumericalTrace_Potential", 0);
31319 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
31328 __pyx_v_nElementBoundaries_element = (__pyx_v_phi->dimensions[1]);
31337 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_phi->dimensions[2]);
31346 calculateInteriorNumericalTrace_Potential(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_phi_trace->data), ((
double *)__pyx_v_dphi_trace_left->data), ((
double *)__pyx_v_dphi_trace_right->data));
31357 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31358 __Pyx_XGIVEREF(__pyx_r);
31359 __Pyx_RefNannyFinishContext();
31372 static PyObject *__pyx_pw_13cfemIntegrals_271calculateExteriorNumericalTrace_Potential(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31373 static PyMethodDef __pyx_mdef_13cfemIntegrals_271calculateExteriorNumericalTrace_Potential = {
"calculateExteriorNumericalTrace_Potential", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_271calculateExteriorNumericalTrace_Potential, METH_VARARGS|METH_KEYWORDS, 0};
31374 static PyObject *__pyx_pw_13cfemIntegrals_271calculateExteriorNumericalTrace_Potential(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31375 PyArrayObject *__pyx_v_isDOFBoundary = 0;
31376 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
31377 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31378 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31379 PyArrayObject *__pyx_v_phi_bc = 0;
31380 PyArrayObject *__pyx_v_phi = 0;
31381 PyArrayObject *__pyx_v_dphi = 0;
31382 PyArrayObject *__pyx_v_phi_trace = 0;
31383 PyArrayObject *__pyx_v_dphi_trace_left = 0;
31384 int __pyx_lineno = 0;
31385 const char *__pyx_filename = NULL;
31386 int __pyx_clineno = 0;
31387 PyObject *__pyx_r = 0;
31388 __Pyx_RefNannyDeclarations
31389 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalTrace_Potential (wrapper)", 0);
31391 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDOFBoundary,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_phi_bc,&__pyx_n_s_phi,&__pyx_n_s_dphi,&__pyx_n_s_phi_trace,&__pyx_n_s_dphi_trace_left,0};
31392 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
31393 if (unlikely(__pyx_kwds)) {
31394 Py_ssize_t kw_args;
31395 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31396 switch (pos_args) {
31397 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31398 CYTHON_FALLTHROUGH;
31399 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31400 CYTHON_FALLTHROUGH;
31401 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31402 CYTHON_FALLTHROUGH;
31403 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31404 CYTHON_FALLTHROUGH;
31405 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31406 CYTHON_FALLTHROUGH;
31407 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31408 CYTHON_FALLTHROUGH;
31409 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31410 CYTHON_FALLTHROUGH;
31411 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31412 CYTHON_FALLTHROUGH;
31413 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31414 CYTHON_FALLTHROUGH;
31416 default:
goto __pyx_L5_argtuple_error;
31418 kw_args = PyDict_Size(__pyx_kwds);
31419 switch (pos_args) {
31421 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
31422 else goto __pyx_L5_argtuple_error;
31423 CYTHON_FALLTHROUGH;
31425 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
31427 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 1); __PYX_ERR(0, 5193, __pyx_L3_error)
31429 CYTHON_FALLTHROUGH;
31431 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31433 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 2); __PYX_ERR(0, 5193, __pyx_L3_error)
31435 CYTHON_FALLTHROUGH;
31437 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31439 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 3); __PYX_ERR(0, 5193, __pyx_L3_error)
31441 CYTHON_FALLTHROUGH;
31443 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_bc)) != 0)) kw_args--;
31445 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 4); __PYX_ERR(0, 5193, __pyx_L3_error)
31447 CYTHON_FALLTHROUGH;
31449 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
31451 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 5); __PYX_ERR(0, 5193, __pyx_L3_error)
31453 CYTHON_FALLTHROUGH;
31455 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
31457 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 6); __PYX_ERR(0, 5193, __pyx_L3_error)
31459 CYTHON_FALLTHROUGH;
31461 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_trace)) != 0)) kw_args--;
31463 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 7); __PYX_ERR(0, 5193, __pyx_L3_error)
31465 CYTHON_FALLTHROUGH;
31467 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_left)) != 0)) kw_args--;
31469 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, 8); __PYX_ERR(0, 5193, __pyx_L3_error)
31472 if (unlikely(kw_args > 0)) {
31473 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateExteriorNumericalTrace_Potential") < 0)) __PYX_ERR(0, 5193, __pyx_L3_error)
31475 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
31476 goto __pyx_L5_argtuple_error;
31478 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31479 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31480 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31481 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31482 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31483 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31484 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31485 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31486 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31488 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[0]);
31489 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
31490 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
31491 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
31492 __pyx_v_phi_bc = ((PyArrayObject *)values[4]);
31493 __pyx_v_phi = ((PyArrayObject *)values[5]);
31494 __pyx_v_dphi = ((PyArrayObject *)values[6]);
31495 __pyx_v_phi_trace = ((PyArrayObject *)values[7]);
31496 __pyx_v_dphi_trace_left = ((PyArrayObject *)values[8]);
31498 goto __pyx_L4_argument_unpacking_done;
31499 __pyx_L5_argtuple_error:;
31500 __Pyx_RaiseArgtupleInvalid(
"calculateExteriorNumericalTrace_Potential", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5193, __pyx_L3_error)
31502 __Pyx_AddTraceback(
"cfemIntegrals.calculateExteriorNumericalTrace_Potential", __pyx_clineno, __pyx_lineno, __pyx_filename);
31503 __Pyx_RefNannyFinishContext();
31505 __pyx_L4_argument_unpacking_done:;
31506 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 5193, __pyx_L1_error)
31507 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5194, __pyx_L1_error)
31508 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5195, __pyx_L1_error)
31509 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5196, __pyx_L1_error)
31510 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_bc), __pyx_ptype_5numpy_ndarray, 1,
"phi_bc", 0))) __PYX_ERR(0, 5197, __pyx_L1_error)
31511 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5198, __pyx_L1_error)
31512 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5199, __pyx_L1_error)
31513 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_trace), __pyx_ptype_5numpy_ndarray, 1,
"phi_trace", 0))) __PYX_ERR(0, 5200, __pyx_L1_error)
31514 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_left), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_left", 0))) __PYX_ERR(0, 5201, __pyx_L1_error)
31515 __pyx_r = __pyx_pf_13cfemIntegrals_270calculateExteriorNumericalTrace_Potential(__pyx_self, __pyx_v_isDOFBoundary, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_phi_bc, __pyx_v_phi, __pyx_v_dphi, __pyx_v_phi_trace, __pyx_v_dphi_trace_left);
31522 __Pyx_RefNannyFinishContext();
31526 static PyObject *__pyx_pf_13cfemIntegrals_270calculateExteriorNumericalTrace_Potential(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_phi_bc, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_dphi_trace_left) {
31527 int __pyx_v_nExteriorElementBoundaries_global;
31528 int __pyx_v_nElementBoundaries_element;
31529 int __pyx_v_nQuadraturePoints_elementBoundary;
31530 PyObject *__pyx_r = NULL;
31531 __Pyx_RefNannyDeclarations
31532 __Pyx_RefNannySetupContext(
"calculateExteriorNumericalTrace_Potential", 0);
31541 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
31550 __pyx_v_nElementBoundaries_element = (__pyx_v_phi->dimensions[1]);
31559 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_phi->dimensions[2]);
31568 calculateExteriorNumericalTrace_Potential(((
int *)__pyx_v_isDOFBoundary->data), __pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_phi_bc->data), ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_phi_trace->data), ((
double *)__pyx_v_dphi_trace_left->data));
31579 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31580 __Pyx_XGIVEREF(__pyx_r);
31581 __Pyx_RefNannyFinishContext();
31594 static PyObject *__pyx_pw_13cfemIntegrals_273updateInteriorElementBoundary_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31595 static PyMethodDef __pyx_mdef_13cfemIntegrals_273updateInteriorElementBoundary_MixedForm_weak = {
"updateInteriorElementBoundary_MixedForm_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_273updateInteriorElementBoundary_MixedForm_weak, METH_VARARGS|METH_KEYWORDS, 0};
31596 static PyObject *__pyx_pw_13cfemIntegrals_273updateInteriorElementBoundary_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31597 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
31598 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31599 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31600 PyArrayObject *__pyx_v_n = 0;
31601 PyArrayObject *__pyx_v_phi_trace = 0;
31602 PyArrayObject *__pyx_v_w_dS = 0;
31603 PyArrayObject *__pyx_v_b = 0;
31604 int __pyx_lineno = 0;
31605 const char *__pyx_filename = NULL;
31606 int __pyx_clineno = 0;
31607 PyObject *__pyx_r = 0;
31608 __Pyx_RefNannyDeclarations
31609 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundary_MixedForm_weak (wrapper)", 0);
31611 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_phi_trace,&__pyx_n_s_w_dS,&__pyx_n_s_b,0};
31612 PyObject* values[7] = {0,0,0,0,0,0,0};
31613 if (unlikely(__pyx_kwds)) {
31614 Py_ssize_t kw_args;
31615 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31616 switch (pos_args) {
31617 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31618 CYTHON_FALLTHROUGH;
31619 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31620 CYTHON_FALLTHROUGH;
31621 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31622 CYTHON_FALLTHROUGH;
31623 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31624 CYTHON_FALLTHROUGH;
31625 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31626 CYTHON_FALLTHROUGH;
31627 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31628 CYTHON_FALLTHROUGH;
31629 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31630 CYTHON_FALLTHROUGH;
31632 default:
goto __pyx_L5_argtuple_error;
31634 kw_args = PyDict_Size(__pyx_kwds);
31635 switch (pos_args) {
31637 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
31638 else goto __pyx_L5_argtuple_error;
31639 CYTHON_FALLTHROUGH;
31641 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31643 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 1); __PYX_ERR(0, 5217, __pyx_L3_error)
31645 CYTHON_FALLTHROUGH;
31647 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31649 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 2); __PYX_ERR(0, 5217, __pyx_L3_error)
31651 CYTHON_FALLTHROUGH;
31653 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31655 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 3); __PYX_ERR(0, 5217, __pyx_L3_error)
31657 CYTHON_FALLTHROUGH;
31659 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_trace)) != 0)) kw_args--;
31661 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 4); __PYX_ERR(0, 5217, __pyx_L3_error)
31663 CYTHON_FALLTHROUGH;
31665 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
31667 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 5); __PYX_ERR(0, 5217, __pyx_L3_error)
31669 CYTHON_FALLTHROUGH;
31671 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
31673 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, 6); __PYX_ERR(0, 5217, __pyx_L3_error)
31676 if (unlikely(kw_args > 0)) {
31677 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundary_MixedForm_weak") < 0)) __PYX_ERR(0, 5217, __pyx_L3_error)
31679 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
31680 goto __pyx_L5_argtuple_error;
31682 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31683 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31684 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31685 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31686 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31687 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31688 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31690 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
31691 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
31692 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
31693 __pyx_v_n = ((PyArrayObject *)values[3]);
31694 __pyx_v_phi_trace = ((PyArrayObject *)values[4]);
31695 __pyx_v_w_dS = ((PyArrayObject *)values[5]);
31696 __pyx_v_b = ((PyArrayObject *)values[6]);
31698 goto __pyx_L4_argument_unpacking_done;
31699 __pyx_L5_argtuple_error:;
31700 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weak", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5217, __pyx_L3_error)
31702 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundary_MixedForm_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
31703 __Pyx_RefNannyFinishContext();
31705 __pyx_L4_argument_unpacking_done:;
31706 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5217, __pyx_L1_error)
31707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5218, __pyx_L1_error)
31708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5219, __pyx_L1_error)
31709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5220, __pyx_L1_error)
31710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_trace), __pyx_ptype_5numpy_ndarray, 1,
"phi_trace", 0))) __PYX_ERR(0, 5221, __pyx_L1_error)
31711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5222, __pyx_L1_error)
31712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 5223, __pyx_L1_error)
31713 __pyx_r = __pyx_pf_13cfemIntegrals_272updateInteriorElementBoundary_MixedForm_weak(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_phi_trace, __pyx_v_w_dS, __pyx_v_b);
31720 __Pyx_RefNannyFinishContext();
31724 static PyObject *__pyx_pf_13cfemIntegrals_272updateInteriorElementBoundary_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_b) {
31725 int __pyx_v_nInteriorElementBoundaries_global;
31726 int __pyx_v_nElementBoundaries_element;
31727 int __pyx_v_nQuadraturePoints_elementBoundary;
31728 int __pyx_v_nDOF_test_element;
31729 int __pyx_v_nSpace;
31730 PyObject *__pyx_r = NULL;
31731 __Pyx_RefNannyDeclarations
31732 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundary_MixedForm_weak", 0);
31741 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
31750 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
31759 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
31768 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
31777 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
31786 updateInteriorElementBoundary_MixedForm_weak(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_phi_trace->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_b->data));
31797 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
31798 __Pyx_XGIVEREF(__pyx_r);
31799 __Pyx_RefNannyFinishContext();
31812 static PyObject *__pyx_pw_13cfemIntegrals_275updateInteriorElementBoundary_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
31813 static PyMethodDef __pyx_mdef_13cfemIntegrals_275updateInteriorElementBoundary_MixedForm_weakJacobian = {
"updateInteriorElementBoundary_MixedForm_weakJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_275updateInteriorElementBoundary_MixedForm_weakJacobian, METH_VARARGS|METH_KEYWORDS, 0};
31814 static PyObject *__pyx_pw_13cfemIntegrals_275updateInteriorElementBoundary_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
31815 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
31816 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
31817 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
31818 PyArrayObject *__pyx_v_n = 0;
31819 PyArrayObject *__pyx_v_dphi_trace_left = 0;
31820 PyArrayObject *__pyx_v_dphi_trace_right = 0;
31821 PyArrayObject *__pyx_v_v = 0;
31822 PyArrayObject *__pyx_v_w_dS = 0;
31823 PyArrayObject *__pyx_v_db = 0;
31824 PyArrayObject *__pyx_v_db_eb = 0;
31825 int __pyx_lineno = 0;
31826 const char *__pyx_filename = NULL;
31827 int __pyx_clineno = 0;
31828 PyObject *__pyx_r = 0;
31829 __Pyx_RefNannyDeclarations
31830 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundary_MixedForm_weakJacobian (wrapper)", 0);
31832 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_dphi_trace_left,&__pyx_n_s_dphi_trace_right,&__pyx_n_s_v,&__pyx_n_s_w_dS,&__pyx_n_s_db,&__pyx_n_s_db_eb,0};
31833 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
31834 if (unlikely(__pyx_kwds)) {
31835 Py_ssize_t kw_args;
31836 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
31837 switch (pos_args) {
31838 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31839 CYTHON_FALLTHROUGH;
31840 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31841 CYTHON_FALLTHROUGH;
31842 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31843 CYTHON_FALLTHROUGH;
31844 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31845 CYTHON_FALLTHROUGH;
31846 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31847 CYTHON_FALLTHROUGH;
31848 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31849 CYTHON_FALLTHROUGH;
31850 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31851 CYTHON_FALLTHROUGH;
31852 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31853 CYTHON_FALLTHROUGH;
31854 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31855 CYTHON_FALLTHROUGH;
31856 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31857 CYTHON_FALLTHROUGH;
31859 default:
goto __pyx_L5_argtuple_error;
31861 kw_args = PyDict_Size(__pyx_kwds);
31862 switch (pos_args) {
31864 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
31865 else goto __pyx_L5_argtuple_error;
31866 CYTHON_FALLTHROUGH;
31868 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
31870 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 1); __PYX_ERR(0, 5241, __pyx_L3_error)
31872 CYTHON_FALLTHROUGH;
31874 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
31876 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 2); __PYX_ERR(0, 5241, __pyx_L3_error)
31878 CYTHON_FALLTHROUGH;
31880 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
31882 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 3); __PYX_ERR(0, 5241, __pyx_L3_error)
31884 CYTHON_FALLTHROUGH;
31886 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_left)) != 0)) kw_args--;
31888 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 4); __PYX_ERR(0, 5241, __pyx_L3_error)
31890 CYTHON_FALLTHROUGH;
31892 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_right)) != 0)) kw_args--;
31894 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 5); __PYX_ERR(0, 5241, __pyx_L3_error)
31896 CYTHON_FALLTHROUGH;
31898 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
31900 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 6); __PYX_ERR(0, 5241, __pyx_L3_error)
31902 CYTHON_FALLTHROUGH;
31904 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
31906 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 7); __PYX_ERR(0, 5241, __pyx_L3_error)
31908 CYTHON_FALLTHROUGH;
31910 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db)) != 0)) kw_args--;
31912 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 8); __PYX_ERR(0, 5241, __pyx_L3_error)
31914 CYTHON_FALLTHROUGH;
31916 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_eb)) != 0)) kw_args--;
31918 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, 9); __PYX_ERR(0, 5241, __pyx_L3_error)
31921 if (unlikely(kw_args > 0)) {
31922 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundary_MixedForm_weakJacobian") < 0)) __PYX_ERR(0, 5241, __pyx_L3_error)
31924 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
31925 goto __pyx_L5_argtuple_error;
31927 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
31928 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
31929 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
31930 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
31931 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
31932 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
31933 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
31934 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
31935 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
31936 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
31938 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
31939 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
31940 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
31941 __pyx_v_n = ((PyArrayObject *)values[3]);
31942 __pyx_v_dphi_trace_left = ((PyArrayObject *)values[4]);
31943 __pyx_v_dphi_trace_right = ((PyArrayObject *)values[5]);
31944 __pyx_v_v = ((PyArrayObject *)values[6]);
31945 __pyx_v_w_dS = ((PyArrayObject *)values[7]);
31946 __pyx_v_db = ((PyArrayObject *)values[8]);
31947 __pyx_v_db_eb = ((PyArrayObject *)values[9]);
31949 goto __pyx_L4_argument_unpacking_done;
31950 __pyx_L5_argtuple_error:;
31951 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5241, __pyx_L3_error)
31953 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundary_MixedForm_weakJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
31954 __Pyx_RefNannyFinishContext();
31956 __pyx_L4_argument_unpacking_done:;
31957 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 5241, __pyx_L1_error)
31958 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5242, __pyx_L1_error)
31959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5243, __pyx_L1_error)
31960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5244, __pyx_L1_error)
31961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_left), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_left", 0))) __PYX_ERR(0, 5245, __pyx_L1_error)
31962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_right), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_right", 0))) __PYX_ERR(0, 5246, __pyx_L1_error)
31963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5247, __pyx_L1_error)
31964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5248, __pyx_L1_error)
31965 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db), __pyx_ptype_5numpy_ndarray, 1,
"db", 0))) __PYX_ERR(0, 5249, __pyx_L1_error)
31966 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_eb), __pyx_ptype_5numpy_ndarray, 1,
"db_eb", 0))) __PYX_ERR(0, 5250, __pyx_L1_error)
31967 __pyx_r = __pyx_pf_13cfemIntegrals_274updateInteriorElementBoundary_MixedForm_weakJacobian(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_dphi_trace_left, __pyx_v_dphi_trace_right, __pyx_v_v, __pyx_v_w_dS, __pyx_v_db, __pyx_v_db_eb);
31974 __Pyx_RefNannyFinishContext();
31978 static PyObject *__pyx_pf_13cfemIntegrals_274updateInteriorElementBoundary_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_dphi_trace_right, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb) {
31979 int __pyx_v_nInteriorElementBoundaries_global;
31980 int __pyx_v_nElementBoundaries_element;
31981 int __pyx_v_nQuadraturePoints_elementBoundary;
31982 int __pyx_v_nDOF_test_element;
31983 int __pyx_v_nSpace;
31984 PyObject *__pyx_r = NULL;
31985 __Pyx_RefNannyDeclarations
31986 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundary_MixedForm_weakJacobian", 0);
31995 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
32004 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
32013 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
32022 __pyx_v_nDOF_test_element = (__pyx_v_v->dimensions[3]);
32031 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
32040 updateInteriorElementBoundary_MixedForm_weakJacobian(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_dphi_trace_left->data), ((
double *)__pyx_v_dphi_trace_right->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_db->data), ((
double *)__pyx_v_db_eb->data));
32051 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32052 __Pyx_XGIVEREF(__pyx_r);
32053 __Pyx_RefNannyFinishContext();
32066 static PyObject *__pyx_pw_13cfemIntegrals_277updateExteriorElementBoundary_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32067 static PyMethodDef __pyx_mdef_13cfemIntegrals_277updateExteriorElementBoundary_MixedForm_weak = {
"updateExteriorElementBoundary_MixedForm_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_277updateExteriorElementBoundary_MixedForm_weak, METH_VARARGS|METH_KEYWORDS, 0};
32068 static PyObject *__pyx_pw_13cfemIntegrals_277updateExteriorElementBoundary_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32069 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
32070 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
32071 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
32072 PyArrayObject *__pyx_v_n = 0;
32073 PyArrayObject *__pyx_v_phi_trace = 0;
32074 PyArrayObject *__pyx_v_w_dS = 0;
32075 PyArrayObject *__pyx_v_b = 0;
32076 int __pyx_lineno = 0;
32077 const char *__pyx_filename = NULL;
32078 int __pyx_clineno = 0;
32079 PyObject *__pyx_r = 0;
32080 __Pyx_RefNannyDeclarations
32081 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundary_MixedForm_weak (wrapper)", 0);
32083 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_phi_trace,&__pyx_n_s_w_dS,&__pyx_n_s_b,0};
32084 PyObject* values[7] = {0,0,0,0,0,0,0};
32085 if (unlikely(__pyx_kwds)) {
32086 Py_ssize_t kw_args;
32087 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32088 switch (pos_args) {
32089 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32090 CYTHON_FALLTHROUGH;
32091 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32092 CYTHON_FALLTHROUGH;
32093 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32094 CYTHON_FALLTHROUGH;
32095 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32096 CYTHON_FALLTHROUGH;
32097 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32098 CYTHON_FALLTHROUGH;
32099 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32100 CYTHON_FALLTHROUGH;
32101 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32102 CYTHON_FALLTHROUGH;
32104 default:
goto __pyx_L5_argtuple_error;
32106 kw_args = PyDict_Size(__pyx_kwds);
32107 switch (pos_args) {
32109 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
32110 else goto __pyx_L5_argtuple_error;
32111 CYTHON_FALLTHROUGH;
32113 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
32115 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 1); __PYX_ERR(0, 5271, __pyx_L3_error)
32117 CYTHON_FALLTHROUGH;
32119 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
32121 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 2); __PYX_ERR(0, 5271, __pyx_L3_error)
32123 CYTHON_FALLTHROUGH;
32125 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32127 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 3); __PYX_ERR(0, 5271, __pyx_L3_error)
32129 CYTHON_FALLTHROUGH;
32131 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi_trace)) != 0)) kw_args--;
32133 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 4); __PYX_ERR(0, 5271, __pyx_L3_error)
32135 CYTHON_FALLTHROUGH;
32137 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
32139 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 5); __PYX_ERR(0, 5271, __pyx_L3_error)
32141 CYTHON_FALLTHROUGH;
32143 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
32145 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, 6); __PYX_ERR(0, 5271, __pyx_L3_error)
32148 if (unlikely(kw_args > 0)) {
32149 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundary_MixedForm_weak") < 0)) __PYX_ERR(0, 5271, __pyx_L3_error)
32151 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
32152 goto __pyx_L5_argtuple_error;
32154 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32155 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32156 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32157 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32158 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32159 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32160 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32162 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
32163 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
32164 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
32165 __pyx_v_n = ((PyArrayObject *)values[3]);
32166 __pyx_v_phi_trace = ((PyArrayObject *)values[4]);
32167 __pyx_v_w_dS = ((PyArrayObject *)values[5]);
32168 __pyx_v_b = ((PyArrayObject *)values[6]);
32170 goto __pyx_L4_argument_unpacking_done;
32171 __pyx_L5_argtuple_error:;
32172 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weak", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5271, __pyx_L3_error)
32174 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundary_MixedForm_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
32175 __Pyx_RefNannyFinishContext();
32177 __pyx_L4_argument_unpacking_done:;
32178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5271, __pyx_L1_error)
32179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5272, __pyx_L1_error)
32180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5273, __pyx_L1_error)
32181 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5274, __pyx_L1_error)
32182 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi_trace), __pyx_ptype_5numpy_ndarray, 1,
"phi_trace", 0))) __PYX_ERR(0, 5275, __pyx_L1_error)
32183 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5276, __pyx_L1_error)
32184 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 5277, __pyx_L1_error)
32185 __pyx_r = __pyx_pf_13cfemIntegrals_276updateExteriorElementBoundary_MixedForm_weak(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_phi_trace, __pyx_v_w_dS, __pyx_v_b);
32192 __Pyx_RefNannyFinishContext();
32196 static PyObject *__pyx_pf_13cfemIntegrals_276updateExteriorElementBoundary_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_phi_trace, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_b) {
32197 int __pyx_v_nExteriorElementBoundaries_global;
32198 int __pyx_v_nElementBoundaries_element;
32199 int __pyx_v_nQuadraturePoints_elementBoundary;
32200 int __pyx_v_nDOF_test_element;
32201 int __pyx_v_nSpace;
32202 PyObject *__pyx_r = NULL;
32203 __Pyx_RefNannyDeclarations
32204 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundary_MixedForm_weak", 0);
32213 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
32222 __pyx_v_nElementBoundaries_element = (__pyx_v_w_dS->dimensions[1]);
32231 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[2]);
32240 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[3]);
32249 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
32258 updateExteriorElementBoundary_MixedForm_weak(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_phi_trace->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_b->data));
32269 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32270 __Pyx_XGIVEREF(__pyx_r);
32271 __Pyx_RefNannyFinishContext();
32284 static PyObject *__pyx_pw_13cfemIntegrals_279updateExteriorElementBoundary_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32285 static PyMethodDef __pyx_mdef_13cfemIntegrals_279updateExteriorElementBoundary_MixedForm_weakJacobian = {
"updateExteriorElementBoundary_MixedForm_weakJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_279updateExteriorElementBoundary_MixedForm_weakJacobian, METH_VARARGS|METH_KEYWORDS, 0};
32286 static PyObject *__pyx_pw_13cfemIntegrals_279updateExteriorElementBoundary_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32287 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
32288 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
32289 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
32290 PyArrayObject *__pyx_v_n = 0;
32291 PyArrayObject *__pyx_v_dphi_trace_left = 0;
32292 PyArrayObject *__pyx_v_v = 0;
32293 PyArrayObject *__pyx_v_w_dS = 0;
32294 PyArrayObject *__pyx_v_db = 0;
32295 PyArrayObject *__pyx_v_db_eb = 0;
32296 int __pyx_lineno = 0;
32297 const char *__pyx_filename = NULL;
32298 int __pyx_clineno = 0;
32299 PyObject *__pyx_r = 0;
32300 __Pyx_RefNannyDeclarations
32301 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundary_MixedForm_weakJacobian (wrapper)", 0);
32303 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_n,&__pyx_n_s_dphi_trace_left,&__pyx_n_s_v,&__pyx_n_s_w_dS,&__pyx_n_s_db,&__pyx_n_s_db_eb,0};
32304 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
32305 if (unlikely(__pyx_kwds)) {
32306 Py_ssize_t kw_args;
32307 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32308 switch (pos_args) {
32309 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32310 CYTHON_FALLTHROUGH;
32311 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32312 CYTHON_FALLTHROUGH;
32313 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32314 CYTHON_FALLTHROUGH;
32315 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32316 CYTHON_FALLTHROUGH;
32317 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32318 CYTHON_FALLTHROUGH;
32319 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32320 CYTHON_FALLTHROUGH;
32321 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32322 CYTHON_FALLTHROUGH;
32323 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32324 CYTHON_FALLTHROUGH;
32325 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32326 CYTHON_FALLTHROUGH;
32328 default:
goto __pyx_L5_argtuple_error;
32330 kw_args = PyDict_Size(__pyx_kwds);
32331 switch (pos_args) {
32333 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
32334 else goto __pyx_L5_argtuple_error;
32335 CYTHON_FALLTHROUGH;
32337 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
32339 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 1); __PYX_ERR(0, 5295, __pyx_L3_error)
32341 CYTHON_FALLTHROUGH;
32343 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
32345 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 2); __PYX_ERR(0, 5295, __pyx_L3_error)
32347 CYTHON_FALLTHROUGH;
32349 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
32351 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 3); __PYX_ERR(0, 5295, __pyx_L3_error)
32353 CYTHON_FALLTHROUGH;
32355 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi_trace_left)) != 0)) kw_args--;
32357 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 4); __PYX_ERR(0, 5295, __pyx_L3_error)
32359 CYTHON_FALLTHROUGH;
32361 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32363 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 5); __PYX_ERR(0, 5295, __pyx_L3_error)
32365 CYTHON_FALLTHROUGH;
32367 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
32369 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 6); __PYX_ERR(0, 5295, __pyx_L3_error)
32371 CYTHON_FALLTHROUGH;
32373 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db)) != 0)) kw_args--;
32375 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 7); __PYX_ERR(0, 5295, __pyx_L3_error)
32377 CYTHON_FALLTHROUGH;
32379 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_eb)) != 0)) kw_args--;
32381 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, 8); __PYX_ERR(0, 5295, __pyx_L3_error)
32384 if (unlikely(kw_args > 0)) {
32385 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundary_MixedForm_weakJacobian") < 0)) __PYX_ERR(0, 5295, __pyx_L3_error)
32387 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
32388 goto __pyx_L5_argtuple_error;
32390 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32391 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32392 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32393 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32394 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32395 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32396 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32397 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32398 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32400 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
32401 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
32402 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
32403 __pyx_v_n = ((PyArrayObject *)values[3]);
32404 __pyx_v_dphi_trace_left = ((PyArrayObject *)values[4]);
32405 __pyx_v_v = ((PyArrayObject *)values[5]);
32406 __pyx_v_w_dS = ((PyArrayObject *)values[6]);
32407 __pyx_v_db = ((PyArrayObject *)values[7]);
32408 __pyx_v_db_eb = ((PyArrayObject *)values[8]);
32410 goto __pyx_L4_argument_unpacking_done;
32411 __pyx_L5_argtuple_error:;
32412 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5295, __pyx_L3_error)
32414 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundary_MixedForm_weakJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
32415 __Pyx_RefNannyFinishContext();
32417 __pyx_L4_argument_unpacking_done:;
32418 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5295, __pyx_L1_error)
32419 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5296, __pyx_L1_error)
32420 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5297, __pyx_L1_error)
32421 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 5298, __pyx_L1_error)
32422 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi_trace_left), __pyx_ptype_5numpy_ndarray, 1,
"dphi_trace_left", 0))) __PYX_ERR(0, 5299, __pyx_L1_error)
32423 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5300, __pyx_L1_error)
32424 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5301, __pyx_L1_error)
32425 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db), __pyx_ptype_5numpy_ndarray, 1,
"db", 0))) __PYX_ERR(0, 5302, __pyx_L1_error)
32426 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_eb), __pyx_ptype_5numpy_ndarray, 1,
"db_eb", 0))) __PYX_ERR(0, 5303, __pyx_L1_error)
32427 __pyx_r = __pyx_pf_13cfemIntegrals_278updateExteriorElementBoundary_MixedForm_weakJacobian(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_n, __pyx_v_dphi_trace_left, __pyx_v_v, __pyx_v_w_dS, __pyx_v_db, __pyx_v_db_eb);
32434 __Pyx_RefNannyFinishContext();
32438 static PyObject *__pyx_pf_13cfemIntegrals_278updateExteriorElementBoundary_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_dphi_trace_left, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb) {
32439 int __pyx_v_nExteriorElementBoundaries_global;
32440 int __pyx_v_nElementBoundaries_element;
32441 int __pyx_v_nQuadraturePoints_elementBoundary;
32442 int __pyx_v_nDOF_test_element;
32443 int __pyx_v_nSpace;
32444 PyObject *__pyx_r = NULL;
32445 __Pyx_RefNannyDeclarations
32446 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundary_MixedForm_weakJacobian", 0);
32455 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
32464 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
32473 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
32482 __pyx_v_nDOF_test_element = (__pyx_v_v->dimensions[3]);
32491 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
32500 updateExteriorElementBoundary_MixedForm_weakJacobian(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_dphi_trace_left->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_db->data), ((
double *)__pyx_v_db_eb->data));
32511 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32512 __Pyx_XGIVEREF(__pyx_r);
32513 __Pyx_RefNannyFinishContext();
32526 static PyObject *__pyx_pw_13cfemIntegrals_281updatePotential_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32527 static PyMethodDef __pyx_mdef_13cfemIntegrals_281updatePotential_MixedForm_weak = {
"updatePotential_MixedForm_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_281updatePotential_MixedForm_weak, METH_VARARGS|METH_KEYWORDS, 0};
32528 static PyObject *__pyx_pw_13cfemIntegrals_281updatePotential_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32529 PyArrayObject *__pyx_v_phi = 0;
32530 PyArrayObject *__pyx_v_grad_w_dV = 0;
32531 PyArrayObject *__pyx_v_b = 0;
32532 int __pyx_lineno = 0;
32533 const char *__pyx_filename = NULL;
32534 int __pyx_clineno = 0;
32535 PyObject *__pyx_r = 0;
32536 __Pyx_RefNannyDeclarations
32537 __Pyx_RefNannySetupContext(
"updatePotential_MixedForm_weak (wrapper)", 0);
32539 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_phi,&__pyx_n_s_grad_w_dV,&__pyx_n_s_b,0};
32540 PyObject* values[3] = {0,0,0};
32541 if (unlikely(__pyx_kwds)) {
32542 Py_ssize_t kw_args;
32543 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32544 switch (pos_args) {
32545 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32546 CYTHON_FALLTHROUGH;
32547 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32548 CYTHON_FALLTHROUGH;
32549 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32550 CYTHON_FALLTHROUGH;
32552 default:
goto __pyx_L5_argtuple_error;
32554 kw_args = PyDict_Size(__pyx_kwds);
32555 switch (pos_args) {
32557 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_phi)) != 0)) kw_args--;
32558 else goto __pyx_L5_argtuple_error;
32559 CYTHON_FALLTHROUGH;
32561 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
32563 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weak", 1, 3, 3, 1); __PYX_ERR(0, 5323, __pyx_L3_error)
32565 CYTHON_FALLTHROUGH;
32567 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
32569 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weak", 1, 3, 3, 2); __PYX_ERR(0, 5323, __pyx_L3_error)
32572 if (unlikely(kw_args > 0)) {
32573 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updatePotential_MixedForm_weak") < 0)) __PYX_ERR(0, 5323, __pyx_L3_error)
32575 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
32576 goto __pyx_L5_argtuple_error;
32578 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32579 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32580 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32582 __pyx_v_phi = ((PyArrayObject *)values[0]);
32583 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
32584 __pyx_v_b = ((PyArrayObject *)values[2]);
32586 goto __pyx_L4_argument_unpacking_done;
32587 __pyx_L5_argtuple_error:;
32588 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weak", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5323, __pyx_L3_error)
32590 __Pyx_AddTraceback(
"cfemIntegrals.updatePotential_MixedForm_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
32591 __Pyx_RefNannyFinishContext();
32593 __pyx_L4_argument_unpacking_done:;
32594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_phi), __pyx_ptype_5numpy_ndarray, 1,
"phi", 0))) __PYX_ERR(0, 5323, __pyx_L1_error)
32595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 5324, __pyx_L1_error)
32596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 5325, __pyx_L1_error)
32597 __pyx_r = __pyx_pf_13cfemIntegrals_280updatePotential_MixedForm_weak(__pyx_self, __pyx_v_phi, __pyx_v_grad_w_dV, __pyx_v_b);
32604 __Pyx_RefNannyFinishContext();
32608 static PyObject *__pyx_pf_13cfemIntegrals_280updatePotential_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_phi, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_b) {
32609 int __pyx_v_nElements_global;
32610 int __pyx_v_nQuadraturePoints_element;
32611 int __pyx_v_nDOF_test_element;
32612 int __pyx_v_nSpace;
32613 PyObject *__pyx_r = NULL;
32614 __Pyx_RefNannyDeclarations
32615 __Pyx_RefNannySetupContext(
"updatePotential_MixedForm_weak", 0);
32624 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
32633 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
32642 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
32651 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
32660 updatePotential_MixedForm_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_phi->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_b->data));
32671 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32672 __Pyx_XGIVEREF(__pyx_r);
32673 __Pyx_RefNannyFinishContext();
32686 static PyObject *__pyx_pw_13cfemIntegrals_283updatePotential_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32687 static PyMethodDef __pyx_mdef_13cfemIntegrals_283updatePotential_MixedForm_weakJacobian = {
"updatePotential_MixedForm_weakJacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_283updatePotential_MixedForm_weakJacobian, METH_VARARGS|METH_KEYWORDS, 0};
32688 static PyObject *__pyx_pw_13cfemIntegrals_283updatePotential_MixedForm_weakJacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32689 PyArrayObject *__pyx_v_dphi = 0;
32690 PyArrayObject *__pyx_v_v = 0;
32691 PyArrayObject *__pyx_v_grad_w_dV = 0;
32692 PyArrayObject *__pyx_v_db = 0;
32693 int __pyx_lineno = 0;
32694 const char *__pyx_filename = NULL;
32695 int __pyx_clineno = 0;
32696 PyObject *__pyx_r = 0;
32697 __Pyx_RefNannyDeclarations
32698 __Pyx_RefNannySetupContext(
"updatePotential_MixedForm_weakJacobian (wrapper)", 0);
32700 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dphi,&__pyx_n_s_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_db,0};
32701 PyObject* values[4] = {0,0,0,0};
32702 if (unlikely(__pyx_kwds)) {
32703 Py_ssize_t kw_args;
32704 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32705 switch (pos_args) {
32706 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32707 CYTHON_FALLTHROUGH;
32708 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32709 CYTHON_FALLTHROUGH;
32710 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32711 CYTHON_FALLTHROUGH;
32712 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32713 CYTHON_FALLTHROUGH;
32715 default:
goto __pyx_L5_argtuple_error;
32717 kw_args = PyDict_Size(__pyx_kwds);
32718 switch (pos_args) {
32720 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dphi)) != 0)) kw_args--;
32721 else goto __pyx_L5_argtuple_error;
32722 CYTHON_FALLTHROUGH;
32724 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32726 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weakJacobian", 1, 4, 4, 1); __PYX_ERR(0, 5337, __pyx_L3_error)
32728 CYTHON_FALLTHROUGH;
32730 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
32732 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weakJacobian", 1, 4, 4, 2); __PYX_ERR(0, 5337, __pyx_L3_error)
32734 CYTHON_FALLTHROUGH;
32736 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db)) != 0)) kw_args--;
32738 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weakJacobian", 1, 4, 4, 3); __PYX_ERR(0, 5337, __pyx_L3_error)
32741 if (unlikely(kw_args > 0)) {
32742 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updatePotential_MixedForm_weakJacobian") < 0)) __PYX_ERR(0, 5337, __pyx_L3_error)
32744 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
32745 goto __pyx_L5_argtuple_error;
32747 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32748 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32749 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32750 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32752 __pyx_v_dphi = ((PyArrayObject *)values[0]);
32753 __pyx_v_v = ((PyArrayObject *)values[1]);
32754 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
32755 __pyx_v_db = ((PyArrayObject *)values[3]);
32757 goto __pyx_L4_argument_unpacking_done;
32758 __pyx_L5_argtuple_error:;
32759 __Pyx_RaiseArgtupleInvalid(
"updatePotential_MixedForm_weakJacobian", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5337, __pyx_L3_error)
32761 __Pyx_AddTraceback(
"cfemIntegrals.updatePotential_MixedForm_weakJacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
32762 __Pyx_RefNannyFinishContext();
32764 __pyx_L4_argument_unpacking_done:;
32765 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dphi), __pyx_ptype_5numpy_ndarray, 1,
"dphi", 0))) __PYX_ERR(0, 5337, __pyx_L1_error)
32766 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5338, __pyx_L1_error)
32767 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 5339, __pyx_L1_error)
32768 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db), __pyx_ptype_5numpy_ndarray, 1,
"db", 0))) __PYX_ERR(0, 5340, __pyx_L1_error)
32769 __pyx_r = __pyx_pf_13cfemIntegrals_282updatePotential_MixedForm_weakJacobian(__pyx_self, __pyx_v_dphi, __pyx_v_v, __pyx_v_grad_w_dV, __pyx_v_db);
32776 __Pyx_RefNannyFinishContext();
32780 static PyObject *__pyx_pf_13cfemIntegrals_282updatePotential_MixedForm_weakJacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dphi, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_db) {
32781 int __pyx_v_nElements_global;
32782 int __pyx_v_nQuadraturePoints_element;
32783 int __pyx_v_nDOF_test_element;
32784 int __pyx_v_nSpace;
32785 PyObject *__pyx_r = NULL;
32786 __Pyx_RefNannyDeclarations
32787 __Pyx_RefNannySetupContext(
"updatePotential_MixedForm_weakJacobian", 0);
32796 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
32805 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
32814 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
32823 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
32832 updatePotential_MixedForm_weakJacobian(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dphi->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_db->data));
32843 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32844 __Pyx_XGIVEREF(__pyx_r);
32845 __Pyx_RefNannyFinishContext();
32858 static PyObject *__pyx_pw_13cfemIntegrals_285calculateVelocityQuadrature_MixedForm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32859 static PyMethodDef __pyx_mdef_13cfemIntegrals_285calculateVelocityQuadrature_MixedForm = {
"calculateVelocityQuadrature_MixedForm", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_285calculateVelocityQuadrature_MixedForm, METH_VARARGS|METH_KEYWORDS, 0};
32860 static PyObject *__pyx_pw_13cfemIntegrals_285calculateVelocityQuadrature_MixedForm(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32861 PyArrayObject *__pyx_v_A_inv = 0;
32862 PyArrayObject *__pyx_v_b = 0;
32863 PyArrayObject *__pyx_v_v = 0;
32864 PyArrayObject *__pyx_v_V = 0;
32865 PyArrayObject *__pyx_v_qv = 0;
32866 PyArrayObject *__pyx_v_qV = 0;
32867 int __pyx_lineno = 0;
32868 const char *__pyx_filename = NULL;
32869 int __pyx_clineno = 0;
32870 PyObject *__pyx_r = 0;
32871 __Pyx_RefNannyDeclarations
32872 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm (wrapper)", 0);
32874 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_A_inv,&__pyx_n_s_b,&__pyx_n_s_v,&__pyx_n_s_V,&__pyx_n_s_qv,&__pyx_n_s_qV,0};
32875 PyObject* values[6] = {0,0,0,0,0,0};
32876 if (unlikely(__pyx_kwds)) {
32877 Py_ssize_t kw_args;
32878 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32879 switch (pos_args) {
32880 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32881 CYTHON_FALLTHROUGH;
32882 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32883 CYTHON_FALLTHROUGH;
32884 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32885 CYTHON_FALLTHROUGH;
32886 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32887 CYTHON_FALLTHROUGH;
32888 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32889 CYTHON_FALLTHROUGH;
32890 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32891 CYTHON_FALLTHROUGH;
32893 default:
goto __pyx_L5_argtuple_error;
32895 kw_args = PyDict_Size(__pyx_kwds);
32896 switch (pos_args) {
32898 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A_inv)) != 0)) kw_args--;
32899 else goto __pyx_L5_argtuple_error;
32900 CYTHON_FALLTHROUGH;
32902 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
32904 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, 1); __PYX_ERR(0, 5353, __pyx_L3_error)
32906 CYTHON_FALLTHROUGH;
32908 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
32910 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, 2); __PYX_ERR(0, 5353, __pyx_L3_error)
32912 CYTHON_FALLTHROUGH;
32914 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
32916 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, 3); __PYX_ERR(0, 5353, __pyx_L3_error)
32918 CYTHON_FALLTHROUGH;
32920 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qv)) != 0)) kw_args--;
32922 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, 4); __PYX_ERR(0, 5353, __pyx_L3_error)
32924 CYTHON_FALLTHROUGH;
32926 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
32928 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, 5); __PYX_ERR(0, 5353, __pyx_L3_error)
32931 if (unlikely(kw_args > 0)) {
32932 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVelocityQuadrature_MixedForm") < 0)) __PYX_ERR(0, 5353, __pyx_L3_error)
32934 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
32935 goto __pyx_L5_argtuple_error;
32937 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32938 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32939 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32940 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32941 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32942 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32944 __pyx_v_A_inv = ((PyArrayObject *)values[0]);
32945 __pyx_v_b = ((PyArrayObject *)values[1]);
32946 __pyx_v_v = ((PyArrayObject *)values[2]);
32947 __pyx_v_V = ((PyArrayObject *)values[3]);
32948 __pyx_v_qv = ((PyArrayObject *)values[4]);
32949 __pyx_v_qV = ((PyArrayObject *)values[5]);
32951 goto __pyx_L4_argument_unpacking_done;
32952 __pyx_L5_argtuple_error:;
32953 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5353, __pyx_L3_error)
32955 __Pyx_AddTraceback(
"cfemIntegrals.calculateVelocityQuadrature_MixedForm", __pyx_clineno, __pyx_lineno, __pyx_filename);
32956 __Pyx_RefNannyFinishContext();
32958 __pyx_L4_argument_unpacking_done:;
32959 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A_inv), __pyx_ptype_5numpy_ndarray, 1,
"A_inv", 0))) __PYX_ERR(0, 5353, __pyx_L1_error)
32960 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 5354, __pyx_L1_error)
32961 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5355, __pyx_L1_error)
32962 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 5356, __pyx_L1_error)
32963 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qv), __pyx_ptype_5numpy_ndarray, 1,
"qv", 0))) __PYX_ERR(0, 5357, __pyx_L1_error)
32964 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 5358, __pyx_L1_error)
32965 __pyx_r = __pyx_pf_13cfemIntegrals_284calculateVelocityQuadrature_MixedForm(__pyx_self, __pyx_v_A_inv, __pyx_v_b, __pyx_v_v, __pyx_v_V, __pyx_v_qv, __pyx_v_qV);
32972 __Pyx_RefNannyFinishContext();
32976 static PyObject *__pyx_pf_13cfemIntegrals_284calculateVelocityQuadrature_MixedForm(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_A_inv, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qV) {
32977 int __pyx_v_nElements_global;
32978 int __pyx_v_nElementBoundaries_element;
32979 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
32980 int __pyx_v_nDOF_element;
32981 int __pyx_v_nSpace;
32982 int __pyx_v_nQuadraturePoints_element;
32983 PyObject *__pyx_r = NULL;
32984 __Pyx_RefNannyDeclarations
32985 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm", 0);
32994 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
33003 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
33012 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
33021 __pyx_v_nDOF_element = (__pyx_v_v->dimensions[3]);
33030 __pyx_v_nSpace = (__pyx_v_b->dimensions[1]);
33039 __pyx_v_nQuadraturePoints_element = (__pyx_v_qv->dimensions[1]);
33048 calculateVelocityQuadrature_MixedForm(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_A_inv->data), ((
double *)__pyx_v_b->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_qv->data), ((
double *)__pyx_v_qV->data));
33059 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33060 __Pyx_XGIVEREF(__pyx_r);
33061 __Pyx_RefNannyFinishContext();
33074 static PyObject *__pyx_pw_13cfemIntegrals_287calculateVelocityQuadrature_MixedForm_Jacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33075 static PyMethodDef __pyx_mdef_13cfemIntegrals_287calculateVelocityQuadrature_MixedForm_Jacobian = {
"calculateVelocityQuadrature_MixedForm_Jacobian", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_287calculateVelocityQuadrature_MixedForm_Jacobian, METH_VARARGS|METH_KEYWORDS, 0};
33076 static PyObject *__pyx_pw_13cfemIntegrals_287calculateVelocityQuadrature_MixedForm_Jacobian(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33077 PyArrayObject *__pyx_v_A_inv = 0;
33078 PyArrayObject *__pyx_v_db = 0;
33079 PyArrayObject *__pyx_v_db_eb = 0;
33080 PyArrayObject *__pyx_v_v = 0;
33081 PyArrayObject *__pyx_v_DV = 0;
33082 PyArrayObject *__pyx_v_DV_eb = 0;
33083 PyArrayObject *__pyx_v_qv = 0;
33084 PyArrayObject *__pyx_v_qDV = 0;
33085 PyArrayObject *__pyx_v_qDV_eb = 0;
33086 int __pyx_lineno = 0;
33087 const char *__pyx_filename = NULL;
33088 int __pyx_clineno = 0;
33089 PyObject *__pyx_r = 0;
33090 __Pyx_RefNannyDeclarations
33091 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm_Jacobian (wrapper)", 0);
33093 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_A_inv,&__pyx_n_s_db,&__pyx_n_s_db_eb,&__pyx_n_s_v,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_qv,&__pyx_n_s_qDV,&__pyx_n_s_qDV_eb,0};
33094 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
33095 if (unlikely(__pyx_kwds)) {
33096 Py_ssize_t kw_args;
33097 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33098 switch (pos_args) {
33099 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33100 CYTHON_FALLTHROUGH;
33101 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33102 CYTHON_FALLTHROUGH;
33103 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33104 CYTHON_FALLTHROUGH;
33105 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33106 CYTHON_FALLTHROUGH;
33107 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33108 CYTHON_FALLTHROUGH;
33109 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33110 CYTHON_FALLTHROUGH;
33111 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33112 CYTHON_FALLTHROUGH;
33113 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33114 CYTHON_FALLTHROUGH;
33115 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33116 CYTHON_FALLTHROUGH;
33118 default:
goto __pyx_L5_argtuple_error;
33120 kw_args = PyDict_Size(__pyx_kwds);
33121 switch (pos_args) {
33123 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A_inv)) != 0)) kw_args--;
33124 else goto __pyx_L5_argtuple_error;
33125 CYTHON_FALLTHROUGH;
33127 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db)) != 0)) kw_args--;
33129 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 1); __PYX_ERR(0, 5377, __pyx_L3_error)
33131 CYTHON_FALLTHROUGH;
33133 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_eb)) != 0)) kw_args--;
33135 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 2); __PYX_ERR(0, 5377, __pyx_L3_error)
33137 CYTHON_FALLTHROUGH;
33139 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
33141 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 3); __PYX_ERR(0, 5377, __pyx_L3_error)
33143 CYTHON_FALLTHROUGH;
33145 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
33147 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 4); __PYX_ERR(0, 5377, __pyx_L3_error)
33149 CYTHON_FALLTHROUGH;
33151 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
33153 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 5); __PYX_ERR(0, 5377, __pyx_L3_error)
33155 CYTHON_FALLTHROUGH;
33157 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qv)) != 0)) kw_args--;
33159 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 6); __PYX_ERR(0, 5377, __pyx_L3_error)
33161 CYTHON_FALLTHROUGH;
33163 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV)) != 0)) kw_args--;
33165 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 7); __PYX_ERR(0, 5377, __pyx_L3_error)
33167 CYTHON_FALLTHROUGH;
33169 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV_eb)) != 0)) kw_args--;
33171 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, 8); __PYX_ERR(0, 5377, __pyx_L3_error)
33174 if (unlikely(kw_args > 0)) {
33175 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVelocityQuadrature_MixedForm_Jacobian") < 0)) __PYX_ERR(0, 5377, __pyx_L3_error)
33177 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
33178 goto __pyx_L5_argtuple_error;
33180 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33181 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33182 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33183 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33184 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33185 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33186 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33187 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33188 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33190 __pyx_v_A_inv = ((PyArrayObject *)values[0]);
33191 __pyx_v_db = ((PyArrayObject *)values[1]);
33192 __pyx_v_db_eb = ((PyArrayObject *)values[2]);
33193 __pyx_v_v = ((PyArrayObject *)values[3]);
33194 __pyx_v_DV = ((PyArrayObject *)values[4]);
33195 __pyx_v_DV_eb = ((PyArrayObject *)values[5]);
33196 __pyx_v_qv = ((PyArrayObject *)values[6]);
33197 __pyx_v_qDV = ((PyArrayObject *)values[7]);
33198 __pyx_v_qDV_eb = ((PyArrayObject *)values[8]);
33200 goto __pyx_L4_argument_unpacking_done;
33201 __pyx_L5_argtuple_error:;
33202 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm_Jacobian", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5377, __pyx_L3_error)
33204 __Pyx_AddTraceback(
"cfemIntegrals.calculateVelocityQuadrature_MixedForm_Jacobian", __pyx_clineno, __pyx_lineno, __pyx_filename);
33205 __Pyx_RefNannyFinishContext();
33207 __pyx_L4_argument_unpacking_done:;
33208 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A_inv), __pyx_ptype_5numpy_ndarray, 1,
"A_inv", 0))) __PYX_ERR(0, 5377, __pyx_L1_error)
33209 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db), __pyx_ptype_5numpy_ndarray, 1,
"db", 0))) __PYX_ERR(0, 5378, __pyx_L1_error)
33210 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_eb), __pyx_ptype_5numpy_ndarray, 1,
"db_eb", 0))) __PYX_ERR(0, 5379, __pyx_L1_error)
33211 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5380, __pyx_L1_error)
33212 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 5381, __pyx_L1_error)
33213 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 5382, __pyx_L1_error)
33214 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qv), __pyx_ptype_5numpy_ndarray, 1,
"qv", 0))) __PYX_ERR(0, 5383, __pyx_L1_error)
33215 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV), __pyx_ptype_5numpy_ndarray, 1,
"qDV", 0))) __PYX_ERR(0, 5384, __pyx_L1_error)
33216 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV_eb), __pyx_ptype_5numpy_ndarray, 1,
"qDV_eb", 0))) __PYX_ERR(0, 5385, __pyx_L1_error)
33217 __pyx_r = __pyx_pf_13cfemIntegrals_286calculateVelocityQuadrature_MixedForm_Jacobian(__pyx_self, __pyx_v_A_inv, __pyx_v_db, __pyx_v_db_eb, __pyx_v_v, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_qv, __pyx_v_qDV, __pyx_v_qDV_eb);
33224 __Pyx_RefNannyFinishContext();
33228 static PyObject *__pyx_pf_13cfemIntegrals_286calculateVelocityQuadrature_MixedForm_Jacobian(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_A_inv, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb) {
33229 int __pyx_v_nElements_global;
33230 int __pyx_v_nElementBoundaries_element;
33231 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
33232 int __pyx_v_nDOF_element;
33233 int __pyx_v_nSpace;
33234 int __pyx_v_nQuadraturePoints_element;
33235 PyObject *__pyx_r = NULL;
33236 __Pyx_RefNannyDeclarations
33237 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm_Jacobian", 0);
33246 __pyx_v_nElements_global = (__pyx_v_v->dimensions[0]);
33255 __pyx_v_nElementBoundaries_element = (__pyx_v_v->dimensions[1]);
33264 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[2]);
33273 __pyx_v_nDOF_element = (__pyx_v_v->dimensions[3]);
33282 __pyx_v_nSpace = (__pyx_v_db->dimensions[1]);
33291 __pyx_v_nQuadraturePoints_element = (__pyx_v_qv->dimensions[1]);
33300 calculateVelocityQuadrature_MixedForm_Jacobian(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_A_inv->data), ((
double *)__pyx_v_db->data), ((
double *)__pyx_v_db_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_qv->data), ((
double *)__pyx_v_qDV->data), ((
double *)__pyx_v_qDV_eb->data));
33311 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33312 __Pyx_XGIVEREF(__pyx_r);
33313 __Pyx_RefNannyFinishContext();
33326 static PyObject *__pyx_pw_13cfemIntegrals_289calculateVelocityProjectionMatrixLDG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33327 static PyMethodDef __pyx_mdef_13cfemIntegrals_289calculateVelocityProjectionMatrixLDG = {
"calculateVelocityProjectionMatrixLDG", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_289calculateVelocityProjectionMatrixLDG, METH_VARARGS|METH_KEYWORDS, 0};
33328 static PyObject *__pyx_pw_13cfemIntegrals_289calculateVelocityProjectionMatrixLDG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33329 PyArrayObject *__pyx_v_vXw_dV = 0;
33330 PyArrayObject *__pyx_v_A_inv = 0;
33331 int __pyx_lineno = 0;
33332 const char *__pyx_filename = NULL;
33333 int __pyx_clineno = 0;
33334 PyObject *__pyx_r = 0;
33335 __Pyx_RefNannyDeclarations
33336 __Pyx_RefNannySetupContext(
"calculateVelocityProjectionMatrixLDG (wrapper)", 0);
33338 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_vXw_dV,&__pyx_n_s_A_inv,0};
33339 PyObject* values[2] = {0,0};
33340 if (unlikely(__pyx_kwds)) {
33341 Py_ssize_t kw_args;
33342 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33343 switch (pos_args) {
33344 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33345 CYTHON_FALLTHROUGH;
33346 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33347 CYTHON_FALLTHROUGH;
33349 default:
goto __pyx_L5_argtuple_error;
33351 kw_args = PyDict_Size(__pyx_kwds);
33352 switch (pos_args) {
33354 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vXw_dV)) != 0)) kw_args--;
33355 else goto __pyx_L5_argtuple_error;
33356 CYTHON_FALLTHROUGH;
33358 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_A_inv)) != 0)) kw_args--;
33360 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityProjectionMatrixLDG", 1, 2, 2, 1); __PYX_ERR(0, 5407, __pyx_L3_error)
33363 if (unlikely(kw_args > 0)) {
33364 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVelocityProjectionMatrixLDG") < 0)) __PYX_ERR(0, 5407, __pyx_L3_error)
33366 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
33367 goto __pyx_L5_argtuple_error;
33369 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33370 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33372 __pyx_v_vXw_dV = ((PyArrayObject *)values[0]);
33373 __pyx_v_A_inv = ((PyArrayObject *)values[1]);
33375 goto __pyx_L4_argument_unpacking_done;
33376 __pyx_L5_argtuple_error:;
33377 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityProjectionMatrixLDG", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5407, __pyx_L3_error)
33379 __Pyx_AddTraceback(
"cfemIntegrals.calculateVelocityProjectionMatrixLDG", __pyx_clineno, __pyx_lineno, __pyx_filename);
33380 __Pyx_RefNannyFinishContext();
33382 __pyx_L4_argument_unpacking_done:;
33383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vXw_dV), __pyx_ptype_5numpy_ndarray, 1,
"vXw_dV", 0))) __PYX_ERR(0, 5407, __pyx_L1_error)
33384 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_A_inv), __pyx_ptype_5numpy_ndarray, 1,
"A_inv", 0))) __PYX_ERR(0, 5408, __pyx_L1_error)
33385 __pyx_r = __pyx_pf_13cfemIntegrals_288calculateVelocityProjectionMatrixLDG(__pyx_self, __pyx_v_vXw_dV, __pyx_v_A_inv);
33392 __Pyx_RefNannyFinishContext();
33396 static PyObject *__pyx_pf_13cfemIntegrals_288calculateVelocityProjectionMatrixLDG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_vXw_dV, PyArrayObject *__pyx_v_A_inv) {
33397 int __pyx_v_nElements_global;
33398 int __pyx_v_nQuadraturePoints_element;
33399 int __pyx_v_nDOF_element;
33400 PyObject *__pyx_r = NULL;
33401 __Pyx_RefNannyDeclarations
33402 __Pyx_RefNannySetupContext(
"calculateVelocityProjectionMatrixLDG", 0);
33411 __pyx_v_nElements_global = (__pyx_v_vXw_dV->dimensions[0]);
33420 __pyx_v_nQuadraturePoints_element = (__pyx_v_vXw_dV->dimensions[1]);
33429 __pyx_v_nDOF_element = (__pyx_v_vXw_dV->dimensions[2]);
33438 calculateVelocityProjectionMatrixLDG(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, ((
double *)__pyx_v_vXw_dV->data), ((
double *)__pyx_v_A_inv->data));
33449 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33450 __Pyx_XGIVEREF(__pyx_r);
33451 __Pyx_RefNannyFinishContext();
33464 static PyObject *__pyx_pw_13cfemIntegrals_291updateDiffusion_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33465 static PyMethodDef __pyx_mdef_13cfemIntegrals_291updateDiffusion_MixedForm_weak = {
"updateDiffusion_MixedForm_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_291updateDiffusion_MixedForm_weak, METH_VARARGS|METH_KEYWORDS, 0};
33466 static PyObject *__pyx_pw_13cfemIntegrals_291updateDiffusion_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33467 PyArrayObject *__pyx_v_a = 0;
33468 PyArrayObject *__pyx_v_qV = 0;
33469 PyArrayObject *__pyx_v_grad_w_dV = 0;
33470 PyArrayObject *__pyx_v_weak_residual = 0;
33471 int __pyx_lineno = 0;
33472 const char *__pyx_filename = NULL;
33473 int __pyx_clineno = 0;
33474 PyObject *__pyx_r = 0;
33475 __Pyx_RefNannyDeclarations
33476 __Pyx_RefNannySetupContext(
"updateDiffusion_MixedForm_weak (wrapper)", 0);
33478 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_qV,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual,0};
33479 PyObject* values[4] = {0,0,0,0};
33480 if (unlikely(__pyx_kwds)) {
33481 Py_ssize_t kw_args;
33482 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33483 switch (pos_args) {
33484 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33485 CYTHON_FALLTHROUGH;
33486 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33487 CYTHON_FALLTHROUGH;
33488 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33489 CYTHON_FALLTHROUGH;
33490 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33491 CYTHON_FALLTHROUGH;
33493 default:
goto __pyx_L5_argtuple_error;
33495 kw_args = PyDict_Size(__pyx_kwds);
33496 switch (pos_args) {
33498 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
33499 else goto __pyx_L5_argtuple_error;
33500 CYTHON_FALLTHROUGH;
33502 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
33504 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak", 1, 4, 4, 1); __PYX_ERR(0, 5417, __pyx_L3_error)
33506 CYTHON_FALLTHROUGH;
33508 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
33510 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak", 1, 4, 4, 2); __PYX_ERR(0, 5417, __pyx_L3_error)
33512 CYTHON_FALLTHROUGH;
33514 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual)) != 0)) kw_args--;
33516 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak", 1, 4, 4, 3); __PYX_ERR(0, 5417, __pyx_L3_error)
33519 if (unlikely(kw_args > 0)) {
33520 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_MixedForm_weak") < 0)) __PYX_ERR(0, 5417, __pyx_L3_error)
33522 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
33523 goto __pyx_L5_argtuple_error;
33525 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33526 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33527 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33528 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33530 __pyx_v_a = ((PyArrayObject *)values[0]);
33531 __pyx_v_qV = ((PyArrayObject *)values[1]);
33532 __pyx_v_grad_w_dV = ((PyArrayObject *)values[2]);
33533 __pyx_v_weak_residual = ((PyArrayObject *)values[3]);
33535 goto __pyx_L4_argument_unpacking_done;
33536 __pyx_L5_argtuple_error:;
33537 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5417, __pyx_L3_error)
33539 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_MixedForm_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
33540 __Pyx_RefNannyFinishContext();
33542 __pyx_L4_argument_unpacking_done:;
33543 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5417, __pyx_L1_error)
33544 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 5418, __pyx_L1_error)
33545 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 5419, __pyx_L1_error)
33546 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual", 0))) __PYX_ERR(0, 5420, __pyx_L1_error)
33547 __pyx_r = __pyx_pf_13cfemIntegrals_290updateDiffusion_MixedForm_weak(__pyx_self, __pyx_v_a, __pyx_v_qV, __pyx_v_grad_w_dV, __pyx_v_weak_residual);
33554 __Pyx_RefNannyFinishContext();
33558 static PyObject *__pyx_pf_13cfemIntegrals_290updateDiffusion_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual) {
33559 int __pyx_v_nElements_global;
33560 int __pyx_v_nQuadraturePoints_element;
33561 int __pyx_v_nDOF_test_element;
33562 int __pyx_v_nSpace;
33563 PyObject *__pyx_r = NULL;
33564 __Pyx_RefNannyDeclarations
33565 __Pyx_RefNannySetupContext(
"updateDiffusion_MixedForm_weak", 0);
33574 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
33583 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
33592 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
33601 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
33610 updateDiffusion_MixedForm_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_qV->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual->data));
33621 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33622 __Pyx_XGIVEREF(__pyx_r);
33623 __Pyx_RefNannyFinishContext();
33636 static PyObject *__pyx_pw_13cfemIntegrals_293updateDiffusionJacobian_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33637 static PyMethodDef __pyx_mdef_13cfemIntegrals_293updateDiffusionJacobian_MixedForm_weak = {
"updateDiffusionJacobian_MixedForm_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_293updateDiffusionJacobian_MixedForm_weak, METH_VARARGS|METH_KEYWORDS, 0};
33638 static PyObject *__pyx_pw_13cfemIntegrals_293updateDiffusionJacobian_MixedForm_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33639 PyArrayObject *__pyx_v_a = 0;
33640 PyArrayObject *__pyx_v_da = 0;
33641 PyArrayObject *__pyx_v_qV = 0;
33642 PyArrayObject *__pyx_v_qDV = 0;
33643 PyArrayObject *__pyx_v_qDV_eb = 0;
33644 PyArrayObject *__pyx_v_grad_w_dV = 0;
33645 PyArrayObject *__pyx_v_v = 0;
33646 PyArrayObject *__pyx_v_jacobian_weak_residual = 0;
33647 PyArrayObject *__pyx_v_jacobian_weak_residual_eb = 0;
33648 int __pyx_lineno = 0;
33649 const char *__pyx_filename = NULL;
33650 int __pyx_clineno = 0;
33651 PyObject *__pyx_r = 0;
33652 __Pyx_RefNannyDeclarations
33653 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_MixedForm_weak (wrapper)", 0);
33655 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_qV,&__pyx_n_s_qDV,&__pyx_n_s_qDV_eb,&__pyx_n_s_grad_w_dV,&__pyx_n_s_v,&__pyx_n_s_jacobian_weak_residual,&__pyx_n_s_jacobian_weak_residual_eb,0};
33656 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
33657 if (unlikely(__pyx_kwds)) {
33658 Py_ssize_t kw_args;
33659 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33660 switch (pos_args) {
33661 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33662 CYTHON_FALLTHROUGH;
33663 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33664 CYTHON_FALLTHROUGH;
33665 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33666 CYTHON_FALLTHROUGH;
33667 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33668 CYTHON_FALLTHROUGH;
33669 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33670 CYTHON_FALLTHROUGH;
33671 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33672 CYTHON_FALLTHROUGH;
33673 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33674 CYTHON_FALLTHROUGH;
33675 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33676 CYTHON_FALLTHROUGH;
33677 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33678 CYTHON_FALLTHROUGH;
33680 default:
goto __pyx_L5_argtuple_error;
33682 kw_args = PyDict_Size(__pyx_kwds);
33683 switch (pos_args) {
33685 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
33686 else goto __pyx_L5_argtuple_error;
33687 CYTHON_FALLTHROUGH;
33689 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
33691 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 1); __PYX_ERR(0, 5433, __pyx_L3_error)
33693 CYTHON_FALLTHROUGH;
33695 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
33697 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 2); __PYX_ERR(0, 5433, __pyx_L3_error)
33699 CYTHON_FALLTHROUGH;
33701 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV)) != 0)) kw_args--;
33703 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 3); __PYX_ERR(0, 5433, __pyx_L3_error)
33705 CYTHON_FALLTHROUGH;
33707 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV_eb)) != 0)) kw_args--;
33709 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 4); __PYX_ERR(0, 5433, __pyx_L3_error)
33711 CYTHON_FALLTHROUGH;
33713 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
33715 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 5); __PYX_ERR(0, 5433, __pyx_L3_error)
33717 CYTHON_FALLTHROUGH;
33719 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
33721 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 6); __PYX_ERR(0, 5433, __pyx_L3_error)
33723 CYTHON_FALLTHROUGH;
33725 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual)) != 0)) kw_args--;
33727 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 7); __PYX_ERR(0, 5433, __pyx_L3_error)
33729 CYTHON_FALLTHROUGH;
33731 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_eb)) != 0)) kw_args--;
33733 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, 8); __PYX_ERR(0, 5433, __pyx_L3_error)
33736 if (unlikely(kw_args > 0)) {
33737 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_MixedForm_weak") < 0)) __PYX_ERR(0, 5433, __pyx_L3_error)
33739 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
33740 goto __pyx_L5_argtuple_error;
33742 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33743 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33744 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33745 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33746 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
33747 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
33748 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
33749 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
33750 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
33752 __pyx_v_a = ((PyArrayObject *)values[0]);
33753 __pyx_v_da = ((PyArrayObject *)values[1]);
33754 __pyx_v_qV = ((PyArrayObject *)values[2]);
33755 __pyx_v_qDV = ((PyArrayObject *)values[3]);
33756 __pyx_v_qDV_eb = ((PyArrayObject *)values[4]);
33757 __pyx_v_grad_w_dV = ((PyArrayObject *)values[5]);
33758 __pyx_v_v = ((PyArrayObject *)values[6]);
33759 __pyx_v_jacobian_weak_residual = ((PyArrayObject *)values[7]);
33760 __pyx_v_jacobian_weak_residual_eb = ((PyArrayObject *)values[8]);
33762 goto __pyx_L4_argument_unpacking_done;
33763 __pyx_L5_argtuple_error:;
33764 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5433, __pyx_L3_error)
33766 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_MixedForm_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
33767 __Pyx_RefNannyFinishContext();
33769 __pyx_L4_argument_unpacking_done:;
33770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 5433, __pyx_L1_error)
33771 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 5434, __pyx_L1_error)
33772 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 5435, __pyx_L1_error)
33773 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV), __pyx_ptype_5numpy_ndarray, 1,
"qDV", 0))) __PYX_ERR(0, 5436, __pyx_L1_error)
33774 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV_eb), __pyx_ptype_5numpy_ndarray, 1,
"qDV_eb", 0))) __PYX_ERR(0, 5437, __pyx_L1_error)
33775 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 5438, __pyx_L1_error)
33776 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5439, __pyx_L1_error)
33777 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual", 0))) __PYX_ERR(0, 5440, __pyx_L1_error)
33778 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_eb), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_eb", 0))) __PYX_ERR(0, 5441, __pyx_L1_error)
33779 __pyx_r = __pyx_pf_13cfemIntegrals_292updateDiffusionJacobian_MixedForm_weak(__pyx_self, __pyx_v_a, __pyx_v_da, __pyx_v_qV, __pyx_v_qDV, __pyx_v_qDV_eb, __pyx_v_grad_w_dV, __pyx_v_v, __pyx_v_jacobian_weak_residual, __pyx_v_jacobian_weak_residual_eb);
33786 __Pyx_RefNannyFinishContext();
33790 static PyObject *__pyx_pf_13cfemIntegrals_292updateDiffusionJacobian_MixedForm_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_jacobian_weak_residual, PyArrayObject *__pyx_v_jacobian_weak_residual_eb) {
33791 int __pyx_v_nElements_global;
33792 int __pyx_v_nElementBoundaries_element;
33793 int __pyx_v_nQuadraturePoints_element;
33794 int __pyx_v_nDOF_trial_element;
33795 int __pyx_v_nDOF_test_element;
33796 int __pyx_v_nSpace;
33797 PyObject *__pyx_r = NULL;
33798 __Pyx_RefNannyDeclarations
33799 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_MixedForm_weak", 0);
33808 __pyx_v_nElements_global = (__pyx_v_qDV_eb->dimensions[0]);
33817 __pyx_v_nElementBoundaries_element = (__pyx_v_qDV_eb->dimensions[1]);
33826 __pyx_v_nQuadraturePoints_element = (__pyx_v_qDV_eb->dimensions[2]);
33835 __pyx_v_nDOF_trial_element = (__pyx_v_qDV_eb->dimensions[3]);
33844 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
33853 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
33862 updateDiffusionJacobian_MixedForm_weak(__pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_qV->data), ((
double *)__pyx_v_qDV->data), ((
double *)__pyx_v_qDV_eb->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_jacobian_weak_residual->data), ((
double *)__pyx_v_jacobian_weak_residual_eb->data));
33873 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33874 __Pyx_XGIVEREF(__pyx_r);
33875 __Pyx_RefNannyFinishContext();
33888 static PyObject *__pyx_pw_13cfemIntegrals_295estimate_mt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33889 static PyMethodDef __pyx_mdef_13cfemIntegrals_295estimate_mt = {
"estimate_mt", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_295estimate_mt, METH_VARARGS|METH_KEYWORDS, 0};
33890 static PyObject *__pyx_pw_13cfemIntegrals_295estimate_mt(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33891 PyArrayObject *__pyx_v_v = 0;
33892 PyArrayObject *__pyx_v_vXw_dV = 0;
33893 PyArrayObject *__pyx_v_elementSpatialResidual = 0;
33894 PyArrayObject *__pyx_v_mt = 0;
33895 int __pyx_lineno = 0;
33896 const char *__pyx_filename = NULL;
33897 int __pyx_clineno = 0;
33898 PyObject *__pyx_r = 0;
33899 __Pyx_RefNannyDeclarations
33900 __Pyx_RefNannySetupContext(
"estimate_mt (wrapper)", 0);
33902 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_vXw_dV,&__pyx_n_s_elementSpatialResidual,&__pyx_n_s_mt,0};
33903 PyObject* values[4] = {0,0,0,0};
33904 if (unlikely(__pyx_kwds)) {
33905 Py_ssize_t kw_args;
33906 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33907 switch (pos_args) {
33908 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33909 CYTHON_FALLTHROUGH;
33910 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33911 CYTHON_FALLTHROUGH;
33912 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33913 CYTHON_FALLTHROUGH;
33914 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33915 CYTHON_FALLTHROUGH;
33917 default:
goto __pyx_L5_argtuple_error;
33919 kw_args = PyDict_Size(__pyx_kwds);
33920 switch (pos_args) {
33922 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
33923 else goto __pyx_L5_argtuple_error;
33924 CYTHON_FALLTHROUGH;
33926 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vXw_dV)) != 0)) kw_args--;
33928 __Pyx_RaiseArgtupleInvalid(
"estimate_mt", 1, 4, 4, 1); __PYX_ERR(0, 5463, __pyx_L3_error)
33930 CYTHON_FALLTHROUGH;
33932 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementSpatialResidual)) != 0)) kw_args--;
33934 __Pyx_RaiseArgtupleInvalid(
"estimate_mt", 1, 4, 4, 2); __PYX_ERR(0, 5463, __pyx_L3_error)
33936 CYTHON_FALLTHROUGH;
33938 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt)) != 0)) kw_args--;
33940 __Pyx_RaiseArgtupleInvalid(
"estimate_mt", 1, 4, 4, 3); __PYX_ERR(0, 5463, __pyx_L3_error)
33943 if (unlikely(kw_args > 0)) {
33944 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"estimate_mt") < 0)) __PYX_ERR(0, 5463, __pyx_L3_error)
33946 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
33947 goto __pyx_L5_argtuple_error;
33949 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33950 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33951 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33952 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
33954 __pyx_v_v = ((PyArrayObject *)values[0]);
33955 __pyx_v_vXw_dV = ((PyArrayObject *)values[1]);
33956 __pyx_v_elementSpatialResidual = ((PyArrayObject *)values[2]);
33957 __pyx_v_mt = ((PyArrayObject *)values[3]);
33959 goto __pyx_L4_argument_unpacking_done;
33960 __pyx_L5_argtuple_error:;
33961 __Pyx_RaiseArgtupleInvalid(
"estimate_mt", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5463, __pyx_L3_error)
33963 __Pyx_AddTraceback(
"cfemIntegrals.estimate_mt", __pyx_clineno, __pyx_lineno, __pyx_filename);
33964 __Pyx_RefNannyFinishContext();
33966 __pyx_L4_argument_unpacking_done:;
33967 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5463, __pyx_L1_error)
33968 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vXw_dV), __pyx_ptype_5numpy_ndarray, 1,
"vXw_dV", 0))) __PYX_ERR(0, 5464, __pyx_L1_error)
33969 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementSpatialResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementSpatialResidual", 0))) __PYX_ERR(0, 5465, __pyx_L1_error)
33970 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 5466, __pyx_L1_error)
33971 __pyx_r = __pyx_pf_13cfemIntegrals_294estimate_mt(__pyx_self, __pyx_v_v, __pyx_v_vXw_dV, __pyx_v_elementSpatialResidual, __pyx_v_mt);
33978 __Pyx_RefNannyFinishContext();
33982 static PyObject *__pyx_pf_13cfemIntegrals_294estimate_mt(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_vXw_dV, PyArrayObject *__pyx_v_elementSpatialResidual, PyArrayObject *__pyx_v_mt) {
33983 int __pyx_v_nElements_global;
33984 int __pyx_v_nQuadraturePoints_element;
33985 int __pyx_v_nDOF_element;
33986 PyObject *__pyx_r = NULL;
33987 __Pyx_RefNannyDeclarations
33988 __Pyx_RefNannySetupContext(
"estimate_mt", 0);
33997 __pyx_v_nElements_global = (__pyx_v_vXw_dV->dimensions[0]);
34006 __pyx_v_nQuadraturePoints_element = (__pyx_v_vXw_dV->dimensions[1]);
34015 __pyx_v_nDOF_element = (__pyx_v_vXw_dV->dimensions[2]);
34024 estimate_mt(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_vXw_dV->data), ((
double *)__pyx_v_elementSpatialResidual->data), ((
double *)__pyx_v_mt->data));
34035 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34036 __Pyx_XGIVEREF(__pyx_r);
34037 __Pyx_RefNannyFinishContext();
34050 static PyObject *__pyx_pw_13cfemIntegrals_297estimate_mt_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34051 static PyMethodDef __pyx_mdef_13cfemIntegrals_297estimate_mt_lowmem = {
"estimate_mt_lowmem", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_297estimate_mt_lowmem, METH_VARARGS|METH_KEYWORDS, 0};
34052 static PyObject *__pyx_pw_13cfemIntegrals_297estimate_mt_lowmem(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34053 PyArrayObject *__pyx_v_v = 0;
34054 PyArrayObject *__pyx_v_w_dV = 0;
34055 PyArrayObject *__pyx_v_elementSpatialResidual = 0;
34056 PyArrayObject *__pyx_v_mt = 0;
34057 int __pyx_lineno = 0;
34058 const char *__pyx_filename = NULL;
34059 int __pyx_clineno = 0;
34060 PyObject *__pyx_r = 0;
34061 __Pyx_RefNannyDeclarations
34062 __Pyx_RefNannySetupContext(
"estimate_mt_lowmem (wrapper)", 0);
34064 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_w_dV,&__pyx_n_s_elementSpatialResidual,&__pyx_n_s_mt,0};
34065 PyObject* values[4] = {0,0,0,0};
34066 if (unlikely(__pyx_kwds)) {
34067 Py_ssize_t kw_args;
34068 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34069 switch (pos_args) {
34070 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34071 CYTHON_FALLTHROUGH;
34072 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34073 CYTHON_FALLTHROUGH;
34074 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34075 CYTHON_FALLTHROUGH;
34076 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34077 CYTHON_FALLTHROUGH;
34079 default:
goto __pyx_L5_argtuple_error;
34081 kw_args = PyDict_Size(__pyx_kwds);
34082 switch (pos_args) {
34084 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
34085 else goto __pyx_L5_argtuple_error;
34086 CYTHON_FALLTHROUGH;
34088 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dV)) != 0)) kw_args--;
34090 __Pyx_RaiseArgtupleInvalid(
"estimate_mt_lowmem", 1, 4, 4, 1); __PYX_ERR(0, 5477, __pyx_L3_error)
34092 CYTHON_FALLTHROUGH;
34094 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementSpatialResidual)) != 0)) kw_args--;
34096 __Pyx_RaiseArgtupleInvalid(
"estimate_mt_lowmem", 1, 4, 4, 2); __PYX_ERR(0, 5477, __pyx_L3_error)
34098 CYTHON_FALLTHROUGH;
34100 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mt)) != 0)) kw_args--;
34102 __Pyx_RaiseArgtupleInvalid(
"estimate_mt_lowmem", 1, 4, 4, 3); __PYX_ERR(0, 5477, __pyx_L3_error)
34105 if (unlikely(kw_args > 0)) {
34106 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"estimate_mt_lowmem") < 0)) __PYX_ERR(0, 5477, __pyx_L3_error)
34108 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
34109 goto __pyx_L5_argtuple_error;
34111 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34112 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34113 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34114 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34116 __pyx_v_v = ((PyArrayObject *)values[0]);
34117 __pyx_v_w_dV = ((PyArrayObject *)values[1]);
34118 __pyx_v_elementSpatialResidual = ((PyArrayObject *)values[2]);
34119 __pyx_v_mt = ((PyArrayObject *)values[3]);
34121 goto __pyx_L4_argument_unpacking_done;
34122 __pyx_L5_argtuple_error:;
34123 __Pyx_RaiseArgtupleInvalid(
"estimate_mt_lowmem", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5477, __pyx_L3_error)
34125 __Pyx_AddTraceback(
"cfemIntegrals.estimate_mt_lowmem", __pyx_clineno, __pyx_lineno, __pyx_filename);
34126 __Pyx_RefNannyFinishContext();
34128 __pyx_L4_argument_unpacking_done:;
34129 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5477, __pyx_L1_error)
34130 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"w_dV", 0))) __PYX_ERR(0, 5478, __pyx_L1_error)
34131 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementSpatialResidual), __pyx_ptype_5numpy_ndarray, 1,
"elementSpatialResidual", 0))) __PYX_ERR(0, 5479, __pyx_L1_error)
34132 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mt), __pyx_ptype_5numpy_ndarray, 1,
"mt", 0))) __PYX_ERR(0, 5480, __pyx_L1_error)
34133 __pyx_r = __pyx_pf_13cfemIntegrals_296estimate_mt_lowmem(__pyx_self, __pyx_v_v, __pyx_v_w_dV, __pyx_v_elementSpatialResidual, __pyx_v_mt);
34140 __Pyx_RefNannyFinishContext();
34144 static PyObject *__pyx_pf_13cfemIntegrals_296estimate_mt_lowmem(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dV, PyArrayObject *__pyx_v_elementSpatialResidual, PyArrayObject *__pyx_v_mt) {
34145 int __pyx_v_nElements_global;
34146 int __pyx_v_nQuadraturePoints_element;
34147 int __pyx_v_nDOF_element;
34148 PyObject *__pyx_r = NULL;
34149 __Pyx_RefNannyDeclarations
34150 __Pyx_RefNannySetupContext(
"estimate_mt_lowmem", 0);
34159 __pyx_v_nElements_global = (__pyx_v_w_dV->dimensions[0]);
34168 __pyx_v_nQuadraturePoints_element = (__pyx_v_w_dV->dimensions[1]);
34177 __pyx_v_nDOF_element = (__pyx_v_w_dV->dimensions[2]);
34186 estimate_mt_lowmem(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_element, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dV->data), ((
double *)__pyx_v_elementSpatialResidual->data), ((
double *)__pyx_v_mt->data));
34197 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
34198 __Pyx_XGIVEREF(__pyx_r);
34199 __Pyx_RefNannyFinishContext();
34212 static PyObject *__pyx_pw_13cfemIntegrals_299scalarDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34213 static PyMethodDef __pyx_mdef_13cfemIntegrals_299scalarDomainIntegral = {
"scalarDomainIntegral", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_299scalarDomainIntegral, METH_VARARGS|METH_KEYWORDS, 0};
34214 static PyObject *__pyx_pw_13cfemIntegrals_299scalarDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34215 PyArrayObject *__pyx_v_dV = 0;
34216 PyArrayObject *__pyx_v_nValueArray = 0;
34217 int __pyx_v_nElements_global;
34218 int __pyx_lineno = 0;
34219 const char *__pyx_filename = NULL;
34220 int __pyx_clineno = 0;
34221 PyObject *__pyx_r = 0;
34222 __Pyx_RefNannyDeclarations
34223 __Pyx_RefNannySetupContext(
"scalarDomainIntegral (wrapper)", 0);
34225 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dV,&__pyx_n_s_nValueArray,&__pyx_n_s_nElements_global,0};
34226 PyObject* values[3] = {0,0,0};
34227 if (unlikely(__pyx_kwds)) {
34228 Py_ssize_t kw_args;
34229 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34230 switch (pos_args) {
34231 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34232 CYTHON_FALLTHROUGH;
34233 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34234 CYTHON_FALLTHROUGH;
34235 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34236 CYTHON_FALLTHROUGH;
34238 default:
goto __pyx_L5_argtuple_error;
34240 kw_args = PyDict_Size(__pyx_kwds);
34241 switch (pos_args) {
34243 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
34244 else goto __pyx_L5_argtuple_error;
34245 CYTHON_FALLTHROUGH;
34247 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nValueArray)) != 0)) kw_args--;
34249 __Pyx_RaiseArgtupleInvalid(
"scalarDomainIntegral", 1, 3, 3, 1); __PYX_ERR(0, 5491, __pyx_L3_error)
34251 CYTHON_FALLTHROUGH;
34253 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
34255 __Pyx_RaiseArgtupleInvalid(
"scalarDomainIntegral", 1, 3, 3, 2); __PYX_ERR(0, 5491, __pyx_L3_error)
34258 if (unlikely(kw_args > 0)) {
34259 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"scalarDomainIntegral") < 0)) __PYX_ERR(0, 5491, __pyx_L3_error)
34261 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
34262 goto __pyx_L5_argtuple_error;
34264 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34265 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34266 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34268 __pyx_v_dV = ((PyArrayObject *)values[0]);
34269 __pyx_v_nValueArray = ((PyArrayObject *)values[1]);
34270 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5493, __pyx_L3_error)
34272 goto __pyx_L4_argument_unpacking_done;
34273 __pyx_L5_argtuple_error:;
34274 __Pyx_RaiseArgtupleInvalid(
"scalarDomainIntegral", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5491, __pyx_L3_error)
34276 __Pyx_AddTraceback(
"cfemIntegrals.scalarDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34277 __Pyx_RefNannyFinishContext();
34279 __pyx_L4_argument_unpacking_done:;
34280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5491, __pyx_L1_error)
34281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nValueArray), __pyx_ptype_5numpy_ndarray, 1,
"nValueArray", 0))) __PYX_ERR(0, 5492, __pyx_L1_error)
34282 __pyx_r = __pyx_pf_13cfemIntegrals_298scalarDomainIntegral(__pyx_self, __pyx_v_dV, __pyx_v_nValueArray, __pyx_v_nElements_global);
34289 __Pyx_RefNannyFinishContext();
34293 static PyObject *__pyx_pf_13cfemIntegrals_298scalarDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray,
int __pyx_v_nElements_global) {
34294 double __pyx_v_output;
34295 int __pyx_v_nQuadraturePoints_element;
34296 PyObject *__pyx_r = NULL;
34297 __Pyx_RefNannyDeclarations
34298 PyObject *__pyx_t_1 = NULL;
34299 int __pyx_lineno = 0;
34300 const char *__pyx_filename = NULL;
34301 int __pyx_clineno = 0;
34302 __Pyx_RefNannySetupContext(
"scalarDomainIntegral", 0);
34311 __pyx_v_nQuadraturePoints_element = (__pyx_v_dV->dimensions[1]);
34320 __pyx_v_output =
scalarDomainIntegral(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_nValueArray->data));
34329 __Pyx_XDECREF(__pyx_r);
34330 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_output);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5500, __pyx_L1_error)
34331 __Pyx_GOTREF(__pyx_t_1);
34332 __pyx_r = __pyx_t_1;
34346 __Pyx_XDECREF(__pyx_t_1);
34347 __Pyx_AddTraceback(
"cfemIntegrals.scalarDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34350 __Pyx_XGIVEREF(__pyx_r);
34351 __Pyx_RefNannyFinishContext();
34364 static PyObject *__pyx_pw_13cfemIntegrals_301scalarHeavisideDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34365 static PyMethodDef __pyx_mdef_13cfemIntegrals_301scalarHeavisideDomainIntegral = {
"scalarHeavisideDomainIntegral", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_301scalarHeavisideDomainIntegral, METH_VARARGS|METH_KEYWORDS, 0};
34366 static PyObject *__pyx_pw_13cfemIntegrals_301scalarHeavisideDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34367 int __pyx_v_nElements_global;
34368 int __pyx_v_nQuadraturePoints_element;
34369 PyArrayObject *__pyx_v_dV = 0;
34370 PyArrayObject *__pyx_v_nValueArray = 0;
34371 int __pyx_lineno = 0;
34372 const char *__pyx_filename = NULL;
34373 int __pyx_clineno = 0;
34374 PyObject *__pyx_r = 0;
34375 __Pyx_RefNannyDeclarations
34376 __Pyx_RefNannySetupContext(
"scalarHeavisideDomainIntegral (wrapper)", 0);
34378 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElements_global,&__pyx_n_s_nQuadraturePoints_element,&__pyx_n_s_dV,&__pyx_n_s_nValueArray,0};
34379 PyObject* values[4] = {0,0,0,0};
34380 if (unlikely(__pyx_kwds)) {
34381 Py_ssize_t kw_args;
34382 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34383 switch (pos_args) {
34384 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34385 CYTHON_FALLTHROUGH;
34386 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34387 CYTHON_FALLTHROUGH;
34388 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34389 CYTHON_FALLTHROUGH;
34390 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34391 CYTHON_FALLTHROUGH;
34393 default:
goto __pyx_L5_argtuple_error;
34395 kw_args = PyDict_Size(__pyx_kwds);
34396 switch (pos_args) {
34398 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
34399 else goto __pyx_L5_argtuple_error;
34400 CYTHON_FALLTHROUGH;
34402 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_element)) != 0)) kw_args--;
34404 __Pyx_RaiseArgtupleInvalid(
"scalarHeavisideDomainIntegral", 1, 4, 4, 1); __PYX_ERR(0, 5501, __pyx_L3_error)
34406 CYTHON_FALLTHROUGH;
34408 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
34410 __Pyx_RaiseArgtupleInvalid(
"scalarHeavisideDomainIntegral", 1, 4, 4, 2); __PYX_ERR(0, 5501, __pyx_L3_error)
34412 CYTHON_FALLTHROUGH;
34414 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nValueArray)) != 0)) kw_args--;
34416 __Pyx_RaiseArgtupleInvalid(
"scalarHeavisideDomainIntegral", 1, 4, 4, 3); __PYX_ERR(0, 5501, __pyx_L3_error)
34419 if (unlikely(kw_args > 0)) {
34420 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"scalarHeavisideDomainIntegral") < 0)) __PYX_ERR(0, 5501, __pyx_L3_error)
34422 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
34423 goto __pyx_L5_argtuple_error;
34425 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34426 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34427 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34428 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34430 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5501, __pyx_L3_error)
34431 __pyx_v_nQuadraturePoints_element = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nQuadraturePoints_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5502, __pyx_L3_error)
34432 __pyx_v_dV = ((PyArrayObject *)values[2]);
34433 __pyx_v_nValueArray = ((PyArrayObject *)values[3]);
34435 goto __pyx_L4_argument_unpacking_done;
34436 __pyx_L5_argtuple_error:;
34437 __Pyx_RaiseArgtupleInvalid(
"scalarHeavisideDomainIntegral", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5501, __pyx_L3_error)
34439 __Pyx_AddTraceback(
"cfemIntegrals.scalarHeavisideDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34440 __Pyx_RefNannyFinishContext();
34442 __pyx_L4_argument_unpacking_done:;
34443 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5503, __pyx_L1_error)
34444 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nValueArray), __pyx_ptype_5numpy_ndarray, 1,
"nValueArray", 0))) __PYX_ERR(0, 5504, __pyx_L1_error)
34445 __pyx_r = __pyx_pf_13cfemIntegrals_300scalarHeavisideDomainIntegral(__pyx_self, __pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_dV, __pyx_v_nValueArray);
34452 __Pyx_RefNannyFinishContext();
34456 static PyObject *__pyx_pf_13cfemIntegrals_300scalarHeavisideDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElements_global,
int __pyx_v_nQuadraturePoints_element, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray) {
34457 double __pyx_v_output;
34458 PyObject *__pyx_r = NULL;
34459 __Pyx_RefNannyDeclarations
34460 PyObject *__pyx_t_1 = NULL;
34461 int __pyx_lineno = 0;
34462 const char *__pyx_filename = NULL;
34463 int __pyx_clineno = 0;
34464 __Pyx_RefNannySetupContext(
"scalarHeavisideDomainIntegral", 0);
34473 __pyx_v_output =
scalarHeavisideDomainIntegral(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_nValueArray->data));
34482 __Pyx_XDECREF(__pyx_r);
34483 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_output);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5510, __pyx_L1_error)
34484 __Pyx_GOTREF(__pyx_t_1);
34485 __pyx_r = __pyx_t_1;
34499 __Pyx_XDECREF(__pyx_t_1);
34500 __Pyx_AddTraceback(
"cfemIntegrals.scalarHeavisideDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34503 __Pyx_XGIVEREF(__pyx_r);
34504 __Pyx_RefNannyFinishContext();
34517 static PyObject *__pyx_pw_13cfemIntegrals_303scalarSmoothedHeavisideDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34518 static PyMethodDef __pyx_mdef_13cfemIntegrals_303scalarSmoothedHeavisideDomainIntegral = {
"scalarSmoothedHeavisideDomainIntegral", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_303scalarSmoothedHeavisideDomainIntegral, METH_VARARGS|METH_KEYWORDS, 0};
34519 static PyObject *__pyx_pw_13cfemIntegrals_303scalarSmoothedHeavisideDomainIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34520 double __pyx_v_epsFact;
34521 PyArrayObject *__pyx_v_elementDiameter = 0;
34522 PyArrayObject *__pyx_v_dV = 0;
34523 PyArrayObject *__pyx_v_nValueArray = 0;
34524 int __pyx_v_nElements_global;
34525 int __pyx_lineno = 0;
34526 const char *__pyx_filename = NULL;
34527 int __pyx_clineno = 0;
34528 PyObject *__pyx_r = 0;
34529 __Pyx_RefNannyDeclarations
34530 __Pyx_RefNannySetupContext(
"scalarSmoothedHeavisideDomainIntegral (wrapper)", 0);
34532 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_epsFact,&__pyx_n_s_elementDiameter,&__pyx_n_s_dV,&__pyx_n_s_nValueArray,&__pyx_n_s_nElements_global,0};
34533 PyObject* values[5] = {0,0,0,0,0};
34534 if (unlikely(__pyx_kwds)) {
34535 Py_ssize_t kw_args;
34536 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34537 switch (pos_args) {
34538 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34539 CYTHON_FALLTHROUGH;
34540 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34541 CYTHON_FALLTHROUGH;
34542 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34543 CYTHON_FALLTHROUGH;
34544 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34545 CYTHON_FALLTHROUGH;
34546 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34547 CYTHON_FALLTHROUGH;
34549 default:
goto __pyx_L5_argtuple_error;
34551 kw_args = PyDict_Size(__pyx_kwds);
34552 switch (pos_args) {
34554 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact)) != 0)) kw_args--;
34555 else goto __pyx_L5_argtuple_error;
34556 CYTHON_FALLTHROUGH;
34558 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementDiameter)) != 0)) kw_args--;
34560 __Pyx_RaiseArgtupleInvalid(
"scalarSmoothedHeavisideDomainIntegral", 1, 5, 5, 1); __PYX_ERR(0, 5511, __pyx_L3_error)
34562 CYTHON_FALLTHROUGH;
34564 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dV)) != 0)) kw_args--;
34566 __Pyx_RaiseArgtupleInvalid(
"scalarSmoothedHeavisideDomainIntegral", 1, 5, 5, 2); __PYX_ERR(0, 5511, __pyx_L3_error)
34568 CYTHON_FALLTHROUGH;
34570 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nValueArray)) != 0)) kw_args--;
34572 __Pyx_RaiseArgtupleInvalid(
"scalarSmoothedHeavisideDomainIntegral", 1, 5, 5, 3); __PYX_ERR(0, 5511, __pyx_L3_error)
34574 CYTHON_FALLTHROUGH;
34576 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
34578 __Pyx_RaiseArgtupleInvalid(
"scalarSmoothedHeavisideDomainIntegral", 1, 5, 5, 4); __PYX_ERR(0, 5511, __pyx_L3_error)
34581 if (unlikely(kw_args > 0)) {
34582 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"scalarSmoothedHeavisideDomainIntegral") < 0)) __PYX_ERR(0, 5511, __pyx_L3_error)
34584 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
34585 goto __pyx_L5_argtuple_error;
34587 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34588 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34589 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34590 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34591 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34593 __pyx_v_epsFact = __pyx_PyFloat_AsDouble(values[0]);
if (unlikely((__pyx_v_epsFact == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5511, __pyx_L3_error)
34594 __pyx_v_elementDiameter = ((PyArrayObject *)values[1]);
34595 __pyx_v_dV = ((PyArrayObject *)values[2]);
34596 __pyx_v_nValueArray = ((PyArrayObject *)values[3]);
34597 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5515, __pyx_L3_error)
34599 goto __pyx_L4_argument_unpacking_done;
34600 __pyx_L5_argtuple_error:;
34601 __Pyx_RaiseArgtupleInvalid(
"scalarSmoothedHeavisideDomainIntegral", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5511, __pyx_L3_error)
34603 __Pyx_AddTraceback(
"cfemIntegrals.scalarSmoothedHeavisideDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34604 __Pyx_RefNannyFinishContext();
34606 __pyx_L4_argument_unpacking_done:;
34607 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementDiameter), __pyx_ptype_5numpy_ndarray, 1,
"elementDiameter", 0))) __PYX_ERR(0, 5512, __pyx_L1_error)
34608 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dV), __pyx_ptype_5numpy_ndarray, 1,
"dV", 0))) __PYX_ERR(0, 5513, __pyx_L1_error)
34609 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nValueArray), __pyx_ptype_5numpy_ndarray, 1,
"nValueArray", 0))) __PYX_ERR(0, 5514, __pyx_L1_error)
34610 __pyx_r = __pyx_pf_13cfemIntegrals_302scalarSmoothedHeavisideDomainIntegral(__pyx_self, __pyx_v_epsFact, __pyx_v_elementDiameter, __pyx_v_dV, __pyx_v_nValueArray, __pyx_v_nElements_global);
34617 __Pyx_RefNannyFinishContext();
34621 static PyObject *__pyx_pf_13cfemIntegrals_302scalarSmoothedHeavisideDomainIntegral(CYTHON_UNUSED PyObject *__pyx_self,
double __pyx_v_epsFact, PyArrayObject *__pyx_v_elementDiameter, PyArrayObject *__pyx_v_dV, PyArrayObject *__pyx_v_nValueArray,
int __pyx_v_nElements_global) {
34622 double __pyx_v_output;
34623 int __pyx_v_nQuadraturePoints_element;
34624 PyObject *__pyx_r = NULL;
34625 __Pyx_RefNannyDeclarations
34626 PyObject *__pyx_t_1 = NULL;
34627 int __pyx_lineno = 0;
34628 const char *__pyx_filename = NULL;
34629 int __pyx_clineno = 0;
34630 __Pyx_RefNannySetupContext(
"scalarSmoothedHeavisideDomainIntegral", 0);
34639 __pyx_v_nQuadraturePoints_element = (__pyx_v_dV->dimensions[1]);
34648 __pyx_v_output =
scalarSmoothedHeavisideDomainIntegral(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_epsFact, ((
double *)__pyx_v_elementDiameter->data), ((
double *)__pyx_v_dV->data), ((
double *)__pyx_v_nValueArray->data));
34657 __Pyx_XDECREF(__pyx_r);
34658 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_output);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5524, __pyx_L1_error)
34659 __Pyx_GOTREF(__pyx_t_1);
34660 __pyx_r = __pyx_t_1;
34674 __Pyx_XDECREF(__pyx_t_1);
34675 __Pyx_AddTraceback(
"cfemIntegrals.scalarSmoothedHeavisideDomainIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34678 __Pyx_XGIVEREF(__pyx_r);
34679 __Pyx_RefNannyFinishContext();
34692 static PyObject *__pyx_pw_13cfemIntegrals_305fluxDomainBoundaryIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34693 static PyMethodDef __pyx_mdef_13cfemIntegrals_305fluxDomainBoundaryIntegral = {
"fluxDomainBoundaryIntegral", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_305fluxDomainBoundaryIntegral, METH_VARARGS|METH_KEYWORDS, 0};
34694 static PyObject *__pyx_pw_13cfemIntegrals_305fluxDomainBoundaryIntegral(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34695 int __pyx_v_nElementBoundaries_owned;
34696 PyArrayObject *__pyx_v_flag = 0;
34697 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
34698 PyArrayObject *__pyx_v_dS = 0;
34699 PyArrayObject *__pyx_v_nValueArray = 0;
34700 int __pyx_lineno = 0;
34701 const char *__pyx_filename = NULL;
34702 int __pyx_clineno = 0;
34703 PyObject *__pyx_r = 0;
34704 __Pyx_RefNannyDeclarations
34705 __Pyx_RefNannySetupContext(
"fluxDomainBoundaryIntegral (wrapper)", 0);
34707 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElementBoundaries_owned,&__pyx_n_s_flag,&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_dS,&__pyx_n_s_nValueArray,0};
34708 PyObject* values[5] = {0,0,0,0,0};
34709 if (unlikely(__pyx_kwds)) {
34710 Py_ssize_t kw_args;
34711 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34712 switch (pos_args) {
34713 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34714 CYTHON_FALLTHROUGH;
34715 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34716 CYTHON_FALLTHROUGH;
34717 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34718 CYTHON_FALLTHROUGH;
34719 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34720 CYTHON_FALLTHROUGH;
34721 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34722 CYTHON_FALLTHROUGH;
34724 default:
goto __pyx_L5_argtuple_error;
34726 kw_args = PyDict_Size(__pyx_kwds);
34727 switch (pos_args) {
34729 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_owned)) != 0)) kw_args--;
34730 else goto __pyx_L5_argtuple_error;
34731 CYTHON_FALLTHROUGH;
34733 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flag)) != 0)) kw_args--;
34735 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegral", 1, 5, 5, 1); __PYX_ERR(0, 5525, __pyx_L3_error)
34737 CYTHON_FALLTHROUGH;
34739 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
34741 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegral", 1, 5, 5, 2); __PYX_ERR(0, 5525, __pyx_L3_error)
34743 CYTHON_FALLTHROUGH;
34745 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
34747 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegral", 1, 5, 5, 3); __PYX_ERR(0, 5525, __pyx_L3_error)
34749 CYTHON_FALLTHROUGH;
34751 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nValueArray)) != 0)) kw_args--;
34753 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegral", 1, 5, 5, 4); __PYX_ERR(0, 5525, __pyx_L3_error)
34756 if (unlikely(kw_args > 0)) {
34757 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"fluxDomainBoundaryIntegral") < 0)) __PYX_ERR(0, 5525, __pyx_L3_error)
34759 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
34760 goto __pyx_L5_argtuple_error;
34762 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34763 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34764 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34765 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34766 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34768 __pyx_v_nElementBoundaries_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElementBoundaries_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5525, __pyx_L3_error)
34769 __pyx_v_flag = ((PyArrayObject *)values[1]);
34770 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[2]);
34771 __pyx_v_dS = ((PyArrayObject *)values[3]);
34772 __pyx_v_nValueArray = ((PyArrayObject *)values[4]);
34774 goto __pyx_L4_argument_unpacking_done;
34775 __pyx_L5_argtuple_error:;
34776 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegral", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5525, __pyx_L3_error)
34778 __Pyx_AddTraceback(
"cfemIntegrals.fluxDomainBoundaryIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34779 __Pyx_RefNannyFinishContext();
34781 __pyx_L4_argument_unpacking_done:;
34782 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flag), __pyx_ptype_5numpy_ndarray, 1,
"flag", 0))) __PYX_ERR(0, 5526, __pyx_L1_error)
34783 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5527, __pyx_L1_error)
34784 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 5528, __pyx_L1_error)
34785 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nValueArray), __pyx_ptype_5numpy_ndarray, 1,
"nValueArray", 0))) __PYX_ERR(0, 5529, __pyx_L1_error)
34786 __pyx_r = __pyx_pf_13cfemIntegrals_304fluxDomainBoundaryIntegral(__pyx_self, __pyx_v_nElementBoundaries_owned, __pyx_v_flag, __pyx_v_exteriorElementBoundariesArray, __pyx_v_dS, __pyx_v_nValueArray);
34793 __Pyx_RefNannyFinishContext();
34797 static PyObject *__pyx_pf_13cfemIntegrals_304fluxDomainBoundaryIntegral(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElementBoundaries_owned, PyArrayObject *__pyx_v_flag, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_nValueArray) {
34798 npy_intp __pyx_v_nExteriorElementBoundaries;
34799 npy_intp __pyx_v_nQuadraturePoints_elementBoundary;
34800 double __pyx_v_output;
34801 PyObject *__pyx_r = NULL;
34802 __Pyx_RefNannyDeclarations
34803 PyObject *__pyx_t_1 = NULL;
34804 int __pyx_lineno = 0;
34805 const char *__pyx_filename = NULL;
34806 int __pyx_clineno = 0;
34807 __Pyx_RefNannySetupContext(
"fluxDomainBoundaryIntegral", 0);
34816 __pyx_v_nExteriorElementBoundaries = (__pyx_v_nValueArray->dimensions[0]);
34825 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_nValueArray->dimensions[1]);
34834 __pyx_v_output =
fluxDomainBoundaryIntegral(__pyx_v_nExteriorElementBoundaries, __pyx_v_nElementBoundaries_owned, __pyx_v_nQuadraturePoints_elementBoundary, ((
int *)__pyx_v_flag->data), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_nValueArray->data));
34843 __Pyx_XDECREF(__pyx_r);
34844 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_output);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5540, __pyx_L1_error)
34845 __Pyx_GOTREF(__pyx_t_1);
34846 __pyx_r = __pyx_t_1;
34860 __Pyx_XDECREF(__pyx_t_1);
34861 __Pyx_AddTraceback(
"cfemIntegrals.fluxDomainBoundaryIntegral", __pyx_clineno, __pyx_lineno, __pyx_filename);
34864 __Pyx_XGIVEREF(__pyx_r);
34865 __Pyx_RefNannyFinishContext();
34878 static PyObject *__pyx_pw_13cfemIntegrals_307fluxDomainBoundaryIntegralFromVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34879 static PyMethodDef __pyx_mdef_13cfemIntegrals_307fluxDomainBoundaryIntegralFromVector = {
"fluxDomainBoundaryIntegralFromVector", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_307fluxDomainBoundaryIntegralFromVector, METH_VARARGS|METH_KEYWORDS, 0};
34880 static PyObject *__pyx_pw_13cfemIntegrals_307fluxDomainBoundaryIntegralFromVector(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34881 int __pyx_v_nElementBoundaries_owned;
34882 PyArrayObject *__pyx_v_flag = 0;
34883 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
34884 PyArrayObject *__pyx_v_dS = 0;
34885 PyArrayObject *__pyx_v_nValueArray = 0;
34886 PyArrayObject *__pyx_v_normal = 0;
34887 int __pyx_lineno = 0;
34888 const char *__pyx_filename = NULL;
34889 int __pyx_clineno = 0;
34890 PyObject *__pyx_r = 0;
34891 __Pyx_RefNannyDeclarations
34892 __Pyx_RefNannySetupContext(
"fluxDomainBoundaryIntegralFromVector (wrapper)", 0);
34894 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nElementBoundaries_owned,&__pyx_n_s_flag,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_dS,&__pyx_n_s_nValueArray,&__pyx_n_s_normal,0};
34895 PyObject* values[6] = {0,0,0,0,0,0};
34896 if (unlikely(__pyx_kwds)) {
34897 Py_ssize_t kw_args;
34898 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34899 switch (pos_args) {
34900 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34901 CYTHON_FALLTHROUGH;
34902 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34903 CYTHON_FALLTHROUGH;
34904 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34905 CYTHON_FALLTHROUGH;
34906 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34907 CYTHON_FALLTHROUGH;
34908 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34909 CYTHON_FALLTHROUGH;
34910 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34911 CYTHON_FALLTHROUGH;
34913 default:
goto __pyx_L5_argtuple_error;
34915 kw_args = PyDict_Size(__pyx_kwds);
34916 switch (pos_args) {
34918 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElementBoundaries_owned)) != 0)) kw_args--;
34919 else goto __pyx_L5_argtuple_error;
34920 CYTHON_FALLTHROUGH;
34922 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flag)) != 0)) kw_args--;
34924 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, 1); __PYX_ERR(0, 5541, __pyx_L3_error)
34926 CYTHON_FALLTHROUGH;
34928 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
34930 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, 2); __PYX_ERR(0, 5541, __pyx_L3_error)
34932 CYTHON_FALLTHROUGH;
34934 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
34936 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, 3); __PYX_ERR(0, 5541, __pyx_L3_error)
34938 CYTHON_FALLTHROUGH;
34940 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nValueArray)) != 0)) kw_args--;
34942 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, 4); __PYX_ERR(0, 5541, __pyx_L3_error)
34944 CYTHON_FALLTHROUGH;
34946 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_normal)) != 0)) kw_args--;
34948 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, 5); __PYX_ERR(0, 5541, __pyx_L3_error)
34951 if (unlikely(kw_args > 0)) {
34952 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"fluxDomainBoundaryIntegralFromVector") < 0)) __PYX_ERR(0, 5541, __pyx_L3_error)
34954 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
34955 goto __pyx_L5_argtuple_error;
34957 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34958 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34959 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
34960 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
34961 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
34962 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
34964 __pyx_v_nElementBoundaries_owned = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nElementBoundaries_owned == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5541, __pyx_L3_error)
34965 __pyx_v_flag = ((PyArrayObject *)values[1]);
34966 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[2]);
34967 __pyx_v_dS = ((PyArrayObject *)values[3]);
34968 __pyx_v_nValueArray = ((PyArrayObject *)values[4]);
34969 __pyx_v_normal = ((PyArrayObject *)values[5]);
34971 goto __pyx_L4_argument_unpacking_done;
34972 __pyx_L5_argtuple_error:;
34973 __Pyx_RaiseArgtupleInvalid(
"fluxDomainBoundaryIntegralFromVector", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5541, __pyx_L3_error)
34975 __Pyx_AddTraceback(
"cfemIntegrals.fluxDomainBoundaryIntegralFromVector", __pyx_clineno, __pyx_lineno, __pyx_filename);
34976 __Pyx_RefNannyFinishContext();
34978 __pyx_L4_argument_unpacking_done:;
34979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flag), __pyx_ptype_5numpy_ndarray, 1,
"flag", 0))) __PYX_ERR(0, 5542, __pyx_L1_error)
34980 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5543, __pyx_L1_error)
34981 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 5544, __pyx_L1_error)
34982 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nValueArray), __pyx_ptype_5numpy_ndarray, 1,
"nValueArray", 0))) __PYX_ERR(0, 5545, __pyx_L1_error)
34983 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_normal), __pyx_ptype_5numpy_ndarray, 1,
"normal", 0))) __PYX_ERR(0, 5546, __pyx_L1_error)
34984 __pyx_r = __pyx_pf_13cfemIntegrals_306fluxDomainBoundaryIntegralFromVector(__pyx_self, __pyx_v_nElementBoundaries_owned, __pyx_v_flag, __pyx_v_exteriorElementBoundaries, __pyx_v_dS, __pyx_v_nValueArray, __pyx_v_normal);
34991 __Pyx_RefNannyFinishContext();
34995 static PyObject *__pyx_pf_13cfemIntegrals_306fluxDomainBoundaryIntegralFromVector(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nElementBoundaries_owned, PyArrayObject *__pyx_v_flag, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_nValueArray, PyArrayObject *__pyx_v_normal) {
34996 double __pyx_v_output;
34997 int __pyx_v_nExteriorElementBoundaries;
34998 int __pyx_v_nQuadraturePoints_elementBoundary;
34999 int __pyx_v_nSpace;
35000 PyObject *__pyx_r = NULL;
35001 __Pyx_RefNannyDeclarations
35002 PyObject *__pyx_t_1 = NULL;
35003 int __pyx_lineno = 0;
35004 const char *__pyx_filename = NULL;
35005 int __pyx_clineno = 0;
35006 __Pyx_RefNannySetupContext(
"fluxDomainBoundaryIntegralFromVector", 0);
35015 __pyx_v_nExteriorElementBoundaries = (__pyx_v_normal->dimensions[0]);
35024 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_normal->dimensions[1]);
35033 __pyx_v_nSpace = (__pyx_v_normal->dimensions[2]);
35042 __pyx_v_output =
fluxDomainBoundaryIntegralFromVector(__pyx_v_nExteriorElementBoundaries, __pyx_v_nElementBoundaries_owned, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nSpace, ((
int *)__pyx_v_flag->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_nValueArray->data), ((
double *)__pyx_v_normal->data));
35051 __Pyx_XDECREF(__pyx_r);
35052 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_output);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5560, __pyx_L1_error)
35053 __Pyx_GOTREF(__pyx_t_1);
35054 __pyx_r = __pyx_t_1;
35068 __Pyx_XDECREF(__pyx_t_1);
35069 __Pyx_AddTraceback(
"cfemIntegrals.fluxDomainBoundaryIntegralFromVector", __pyx_clineno, __pyx_lineno, __pyx_filename);
35072 __Pyx_XGIVEREF(__pyx_r);
35073 __Pyx_RefNannyFinishContext();
35086 static PyObject *__pyx_pw_13cfemIntegrals_309copyExteriorElementBoundaryValuesFromElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35087 static PyMethodDef __pyx_mdef_13cfemIntegrals_309copyExteriorElementBoundaryValuesFromElementBoundaryValues = {
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_309copyExteriorElementBoundaryValuesFromElementBoundaryValues, METH_VARARGS|METH_KEYWORDS, 0};
35088 static PyObject *__pyx_pw_13cfemIntegrals_309copyExteriorElementBoundaryValuesFromElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35089 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35090 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35091 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35092 PyArrayObject *__pyx_v_ebq_val = 0;
35093 PyArrayObject *__pyx_v_ebqe_val = 0;
35094 int __pyx_lineno = 0;
35095 const char *__pyx_filename = NULL;
35096 int __pyx_clineno = 0;
35097 PyObject *__pyx_r = 0;
35098 __Pyx_RefNannyDeclarations
35099 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues (wrapper)", 0);
35101 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_ebq_val,&__pyx_n_s_ebqe_val,0};
35102 PyObject* values[5] = {0,0,0,0,0};
35103 if (unlikely(__pyx_kwds)) {
35104 Py_ssize_t kw_args;
35105 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35106 switch (pos_args) {
35107 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35108 CYTHON_FALLTHROUGH;
35109 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35110 CYTHON_FALLTHROUGH;
35111 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35112 CYTHON_FALLTHROUGH;
35113 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35114 CYTHON_FALLTHROUGH;
35115 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35116 CYTHON_FALLTHROUGH;
35118 default:
goto __pyx_L5_argtuple_error;
35120 kw_args = PyDict_Size(__pyx_kwds);
35121 switch (pos_args) {
35123 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35124 else goto __pyx_L5_argtuple_error;
35125 CYTHON_FALLTHROUGH;
35127 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35129 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 1, 5, 5, 1); __PYX_ERR(0, 5561, __pyx_L3_error)
35131 CYTHON_FALLTHROUGH;
35133 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35135 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 1, 5, 5, 2); __PYX_ERR(0, 5561, __pyx_L3_error)
35137 CYTHON_FALLTHROUGH;
35139 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_val)) != 0)) kw_args--;
35141 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 1, 5, 5, 3); __PYX_ERR(0, 5561, __pyx_L3_error)
35143 CYTHON_FALLTHROUGH;
35145 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
35147 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 1, 5, 5, 4); __PYX_ERR(0, 5561, __pyx_L3_error)
35150 if (unlikely(kw_args > 0)) {
35151 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyExteriorElementBoundaryValuesFromElementBoundaryValues") < 0)) __PYX_ERR(0, 5561, __pyx_L3_error)
35153 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
35154 goto __pyx_L5_argtuple_error;
35156 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35157 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35158 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35159 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35160 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35162 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
35163 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
35164 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
35165 __pyx_v_ebq_val = ((PyArrayObject *)values[3]);
35166 __pyx_v_ebqe_val = ((PyArrayObject *)values[4]);
35168 goto __pyx_L4_argument_unpacking_done;
35169 __pyx_L5_argtuple_error:;
35170 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5561, __pyx_L3_error)
35172 __Pyx_AddTraceback(
"cfemIntegrals.copyExteriorElementBoundaryValuesFromElementBoundaryValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
35173 __Pyx_RefNannyFinishContext();
35175 __pyx_L4_argument_unpacking_done:;
35176 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5561, __pyx_L1_error)
35177 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5562, __pyx_L1_error)
35178 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5563, __pyx_L1_error)
35179 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_val", 0))) __PYX_ERR(0, 5564, __pyx_L1_error)
35180 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 5565, __pyx_L1_error)
35181 __pyx_r = __pyx_pf_13cfemIntegrals_308copyExteriorElementBoundaryValuesFromElementBoundaryValues(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_ebq_val, __pyx_v_ebqe_val);
35188 __Pyx_RefNannyFinishContext();
35192 static PyObject *__pyx_pf_13cfemIntegrals_308copyExteriorElementBoundaryValuesFromElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebq_val, PyArrayObject *__pyx_v_ebqe_val) {
35193 int __pyx_v_nExteriorElementBoundaries_global;
35194 int __pyx_v_nElements_global;
35195 int __pyx_v_nElementBoundaries_element;
35196 int __pyx_v_nQuadraturePoints_elementBoundary;
35197 int __pyx_v_nValuesPerQuadraturePoint;
35200 PyObject *__pyx_r = NULL;
35201 __Pyx_RefNannyDeclarations
35206 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesFromElementBoundaryValues", 0);
35215 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
35224 __pyx_v_nElements_global = (__pyx_v_ebq_val->dimensions[0]);
35233 __pyx_v_nElementBoundaries_element = (__pyx_v_ebq_val->dimensions[1]);
35242 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebq_val->dimensions[2]);
35251 __pyx_v_nValuesPerQuadraturePoint = 1;
35260 __pyx_t_1 = __pyx_v_ebq_val->nd;
35261 __pyx_v_nd = __pyx_t_1;
35270 __pyx_t_2 = ((__pyx_v_nd > 3) != 0);
35280 __pyx_t_1 = __pyx_v_nd;
35281 __pyx_t_3 = __pyx_t_1;
35282 for (__pyx_t_4 = 3; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
35283 __pyx_v_i = __pyx_t_4;
35292 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebq_val->dimensions[__pyx_v_i]));
35311 copyExteriorElementBoundaryValuesFromElementBoundaryValues(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_ebq_val->data), ((
double *)__pyx_v_ebqe_val->data));
35322 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35323 __Pyx_XGIVEREF(__pyx_r);
35324 __Pyx_RefNannyFinishContext();
35337 static PyObject *__pyx_pw_13cfemIntegrals_311copyExteriorElementBoundaryValuesToElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35338 static PyMethodDef __pyx_mdef_13cfemIntegrals_311copyExteriorElementBoundaryValuesToElementBoundaryValues = {
"copyExteriorElementBoundaryValuesToElementBoundaryValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_311copyExteriorElementBoundaryValuesToElementBoundaryValues, METH_VARARGS|METH_KEYWORDS, 0};
35339 static PyObject *__pyx_pw_13cfemIntegrals_311copyExteriorElementBoundaryValuesToElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35340 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35341 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35342 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35343 PyArrayObject *__pyx_v_ebqe_val = 0;
35344 PyArrayObject *__pyx_v_ebq_val = 0;
35345 int __pyx_lineno = 0;
35346 const char *__pyx_filename = NULL;
35347 int __pyx_clineno = 0;
35348 PyObject *__pyx_r = 0;
35349 __Pyx_RefNannyDeclarations
35350 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesToElementBoundaryValues (wrapper)", 0);
35352 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_ebqe_val,&__pyx_n_s_ebq_val,0};
35353 PyObject* values[5] = {0,0,0,0,0};
35354 if (unlikely(__pyx_kwds)) {
35355 Py_ssize_t kw_args;
35356 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35357 switch (pos_args) {
35358 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35359 CYTHON_FALLTHROUGH;
35360 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35361 CYTHON_FALLTHROUGH;
35362 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35363 CYTHON_FALLTHROUGH;
35364 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35365 CYTHON_FALLTHROUGH;
35366 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35367 CYTHON_FALLTHROUGH;
35369 default:
goto __pyx_L5_argtuple_error;
35371 kw_args = PyDict_Size(__pyx_kwds);
35372 switch (pos_args) {
35374 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35375 else goto __pyx_L5_argtuple_error;
35376 CYTHON_FALLTHROUGH;
35378 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35380 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 1, 5, 5, 1); __PYX_ERR(0, 5585, __pyx_L3_error)
35382 CYTHON_FALLTHROUGH;
35384 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35386 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 1, 5, 5, 2); __PYX_ERR(0, 5585, __pyx_L3_error)
35388 CYTHON_FALLTHROUGH;
35390 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
35392 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 1, 5, 5, 3); __PYX_ERR(0, 5585, __pyx_L3_error)
35394 CYTHON_FALLTHROUGH;
35396 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_val)) != 0)) kw_args--;
35398 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 1, 5, 5, 4); __PYX_ERR(0, 5585, __pyx_L3_error)
35401 if (unlikely(kw_args > 0)) {
35402 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyExteriorElementBoundaryValuesToElementBoundaryValues") < 0)) __PYX_ERR(0, 5585, __pyx_L3_error)
35404 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
35405 goto __pyx_L5_argtuple_error;
35407 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35408 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35409 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35410 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35411 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35413 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
35414 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
35415 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
35416 __pyx_v_ebqe_val = ((PyArrayObject *)values[3]);
35417 __pyx_v_ebq_val = ((PyArrayObject *)values[4]);
35419 goto __pyx_L4_argument_unpacking_done;
35420 __pyx_L5_argtuple_error:;
35421 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5585, __pyx_L3_error)
35423 __Pyx_AddTraceback(
"cfemIntegrals.copyExteriorElementBoundaryValuesToElementBoundaryValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
35424 __Pyx_RefNannyFinishContext();
35426 __pyx_L4_argument_unpacking_done:;
35427 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5585, __pyx_L1_error)
35428 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5586, __pyx_L1_error)
35429 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5587, __pyx_L1_error)
35430 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 5588, __pyx_L1_error)
35431 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_val", 0))) __PYX_ERR(0, 5589, __pyx_L1_error)
35432 __pyx_r = __pyx_pf_13cfemIntegrals_310copyExteriorElementBoundaryValuesToElementBoundaryValues(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_ebqe_val, __pyx_v_ebq_val);
35439 __Pyx_RefNannyFinishContext();
35443 static PyObject *__pyx_pf_13cfemIntegrals_310copyExteriorElementBoundaryValuesToElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_ebq_val) {
35444 int __pyx_v_nExteriorElementBoundaries_global;
35445 int __pyx_v_nElements_global;
35446 int __pyx_v_nElementBoundaries_element;
35447 int __pyx_v_nQuadraturePoints_elementBoundary;
35448 int __pyx_v_nValuesPerQuadraturePoint;
35451 PyObject *__pyx_r = NULL;
35452 __Pyx_RefNannyDeclarations
35457 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesToElementBoundaryValues", 0);
35466 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
35475 __pyx_v_nElements_global = (__pyx_v_ebq_val->dimensions[0]);
35484 __pyx_v_nElementBoundaries_element = (__pyx_v_ebq_val->dimensions[1]);
35493 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebq_val->dimensions[2]);
35502 __pyx_v_nValuesPerQuadraturePoint = 1;
35511 __pyx_t_1 = __pyx_v_ebq_val->nd;
35512 __pyx_v_nd = __pyx_t_1;
35521 __pyx_t_2 = ((__pyx_v_nd > 3) != 0);
35531 __pyx_t_1 = __pyx_v_nd;
35532 __pyx_t_3 = __pyx_t_1;
35533 for (__pyx_t_4 = 3; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
35534 __pyx_v_i = __pyx_t_4;
35543 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebq_val->dimensions[__pyx_v_i]));
35562 copyExteriorElementBoundaryValuesToElementBoundaryValues(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nElements_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_ebqe_val->data), ((
double *)__pyx_v_ebq_val->data));
35573 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35574 __Pyx_XGIVEREF(__pyx_r);
35575 __Pyx_RefNannyFinishContext();
35588 static PyObject *__pyx_pw_13cfemIntegrals_313copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35589 static PyMethodDef __pyx_mdef_13cfemIntegrals_313copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues = {
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_313copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues, METH_VARARGS|METH_KEYWORDS, 0};
35590 static PyObject *__pyx_pw_13cfemIntegrals_313copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35591 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35592 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35593 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35594 PyArrayObject *__pyx_v_ebqe_val = 0;
35595 PyArrayObject *__pyx_v_ebq_global_val = 0;
35596 int __pyx_lineno = 0;
35597 const char *__pyx_filename = NULL;
35598 int __pyx_clineno = 0;
35599 PyObject *__pyx_r = 0;
35600 __Pyx_RefNannyDeclarations
35601 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues (wrapper)", 0);
35603 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_ebqe_val,&__pyx_n_s_ebq_global_val,0};
35604 PyObject* values[5] = {0,0,0,0,0};
35605 if (unlikely(__pyx_kwds)) {
35606 Py_ssize_t kw_args;
35607 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35608 switch (pos_args) {
35609 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35610 CYTHON_FALLTHROUGH;
35611 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35612 CYTHON_FALLTHROUGH;
35613 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35614 CYTHON_FALLTHROUGH;
35615 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35616 CYTHON_FALLTHROUGH;
35617 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35618 CYTHON_FALLTHROUGH;
35620 default:
goto __pyx_L5_argtuple_error;
35622 kw_args = PyDict_Size(__pyx_kwds);
35623 switch (pos_args) {
35625 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35626 else goto __pyx_L5_argtuple_error;
35627 CYTHON_FALLTHROUGH;
35629 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35631 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 1, 5, 5, 1); __PYX_ERR(0, 5609, __pyx_L3_error)
35633 CYTHON_FALLTHROUGH;
35635 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35637 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 1, 5, 5, 2); __PYX_ERR(0, 5609, __pyx_L3_error)
35639 CYTHON_FALLTHROUGH;
35641 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
35643 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 1, 5, 5, 3); __PYX_ERR(0, 5609, __pyx_L3_error)
35645 CYTHON_FALLTHROUGH;
35647 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_global_val)) != 0)) kw_args--;
35649 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 1, 5, 5, 4); __PYX_ERR(0, 5609, __pyx_L3_error)
35652 if (unlikely(kw_args > 0)) {
35653 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues") < 0)) __PYX_ERR(0, 5609, __pyx_L3_error)
35655 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
35656 goto __pyx_L5_argtuple_error;
35658 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35659 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35660 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35661 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35662 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35664 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
35665 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
35666 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
35667 __pyx_v_ebqe_val = ((PyArrayObject *)values[3]);
35668 __pyx_v_ebq_global_val = ((PyArrayObject *)values[4]);
35670 goto __pyx_L4_argument_unpacking_done;
35671 __pyx_L5_argtuple_error:;
35672 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5609, __pyx_L3_error)
35674 __Pyx_AddTraceback(
"cfemIntegrals.copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
35675 __Pyx_RefNannyFinishContext();
35677 __pyx_L4_argument_unpacking_done:;
35678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5609, __pyx_L1_error)
35679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5610, __pyx_L1_error)
35680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5611, __pyx_L1_error)
35681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 5612, __pyx_L1_error)
35682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_global_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_global_val", 0))) __PYX_ERR(0, 5613, __pyx_L1_error)
35683 __pyx_r = __pyx_pf_13cfemIntegrals_312copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_ebqe_val, __pyx_v_ebq_global_val);
35690 __Pyx_RefNannyFinishContext();
35694 static PyObject *__pyx_pf_13cfemIntegrals_312copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebqe_val, PyArrayObject *__pyx_v_ebq_global_val) {
35695 int __pyx_v_nExteriorElementBoundaries_global;
35696 int __pyx_v_nQuadraturePoints_elementBoundary;
35697 int __pyx_v_nValuesPerQuadraturePoint;
35700 PyObject *__pyx_r = NULL;
35701 __Pyx_RefNannyDeclarations
35706 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues", 0);
35715 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
35724 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebq_global_val->dimensions[1]);
35733 __pyx_v_nValuesPerQuadraturePoint = 1;
35742 __pyx_t_1 = __pyx_v_ebq_global_val->nd;
35743 __pyx_v_nd = __pyx_t_1;
35752 __pyx_t_2 = ((__pyx_v_nd > 2) != 0);
35762 __pyx_t_1 = __pyx_v_nd;
35763 __pyx_t_3 = __pyx_t_1;
35764 for (__pyx_t_4 = 2; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
35765 __pyx_v_i = __pyx_t_4;
35774 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebq_global_val->dimensions[__pyx_v_i]));
35793 copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_ebqe_val->data), ((
double *)__pyx_v_ebq_global_val->data));
35804 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35805 __Pyx_XGIVEREF(__pyx_r);
35806 __Pyx_RefNannyFinishContext();
35819 static PyObject *__pyx_pw_13cfemIntegrals_315copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35820 static PyMethodDef __pyx_mdef_13cfemIntegrals_315copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues = {
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_315copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues, METH_VARARGS|METH_KEYWORDS, 0};
35821 static PyObject *__pyx_pw_13cfemIntegrals_315copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35822 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
35823 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
35824 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
35825 PyArrayObject *__pyx_v_ebq_global_val = 0;
35826 PyArrayObject *__pyx_v_ebqe_val = 0;
35827 int __pyx_lineno = 0;
35828 const char *__pyx_filename = NULL;
35829 int __pyx_clineno = 0;
35830 PyObject *__pyx_r = 0;
35831 __Pyx_RefNannyDeclarations
35832 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues (wrapper)", 0);
35834 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_ebq_global_val,&__pyx_n_s_ebqe_val,0};
35835 PyObject* values[5] = {0,0,0,0,0};
35836 if (unlikely(__pyx_kwds)) {
35837 Py_ssize_t kw_args;
35838 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35839 switch (pos_args) {
35840 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35841 CYTHON_FALLTHROUGH;
35842 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35843 CYTHON_FALLTHROUGH;
35844 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35845 CYTHON_FALLTHROUGH;
35846 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35847 CYTHON_FALLTHROUGH;
35848 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35849 CYTHON_FALLTHROUGH;
35851 default:
goto __pyx_L5_argtuple_error;
35853 kw_args = PyDict_Size(__pyx_kwds);
35854 switch (pos_args) {
35856 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
35857 else goto __pyx_L5_argtuple_error;
35858 CYTHON_FALLTHROUGH;
35860 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
35862 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 1, 5, 5, 1); __PYX_ERR(0, 5629, __pyx_L3_error)
35864 CYTHON_FALLTHROUGH;
35866 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
35868 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 1, 5, 5, 2); __PYX_ERR(0, 5629, __pyx_L3_error)
35870 CYTHON_FALLTHROUGH;
35872 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebq_global_val)) != 0)) kw_args--;
35874 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 1, 5, 5, 3); __PYX_ERR(0, 5629, __pyx_L3_error)
35876 CYTHON_FALLTHROUGH;
35878 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ebqe_val)) != 0)) kw_args--;
35880 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 1, 5, 5, 4); __PYX_ERR(0, 5629, __pyx_L3_error)
35883 if (unlikely(kw_args > 0)) {
35884 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues") < 0)) __PYX_ERR(0, 5629, __pyx_L3_error)
35886 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
35887 goto __pyx_L5_argtuple_error;
35889 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35890 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35891 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
35892 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
35893 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
35895 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[0]);
35896 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
35897 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
35898 __pyx_v_ebq_global_val = ((PyArrayObject *)values[3]);
35899 __pyx_v_ebqe_val = ((PyArrayObject *)values[4]);
35901 goto __pyx_L4_argument_unpacking_done;
35902 __pyx_L5_argtuple_error:;
35903 __Pyx_RaiseArgtupleInvalid(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5629, __pyx_L3_error)
35905 __Pyx_AddTraceback(
"cfemIntegrals.copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", __pyx_clineno, __pyx_lineno, __pyx_filename);
35906 __Pyx_RefNannyFinishContext();
35908 __pyx_L4_argument_unpacking_done:;
35909 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 5629, __pyx_L1_error)
35910 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 5630, __pyx_L1_error)
35911 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 5631, __pyx_L1_error)
35912 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebq_global_val), __pyx_ptype_5numpy_ndarray, 1,
"ebq_global_val", 0))) __PYX_ERR(0, 5632, __pyx_L1_error)
35913 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ebqe_val), __pyx_ptype_5numpy_ndarray, 1,
"ebqe_val", 0))) __PYX_ERR(0, 5633, __pyx_L1_error)
35914 __pyx_r = __pyx_pf_13cfemIntegrals_314copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(__pyx_self, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_ebq_global_val, __pyx_v_ebqe_val);
35921 __Pyx_RefNannyFinishContext();
35925 static PyObject *__pyx_pf_13cfemIntegrals_314copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_ebq_global_val, PyArrayObject *__pyx_v_ebqe_val) {
35926 int __pyx_v_nExteriorElementBoundaries_global;
35927 int __pyx_v_nQuadraturePoints_elementBoundary;
35928 int __pyx_v_nValuesPerQuadraturePoint;
35931 PyObject *__pyx_r = NULL;
35932 __Pyx_RefNannyDeclarations
35937 __Pyx_RefNannySetupContext(
"copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues", 0);
35946 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
35955 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_ebq_global_val->dimensions[1]);
35964 __pyx_v_nValuesPerQuadraturePoint = 1;
35973 __pyx_t_1 = __pyx_v_ebq_global_val->nd;
35974 __pyx_v_nd = __pyx_t_1;
35983 __pyx_t_2 = ((__pyx_v_nd > 2) != 0);
35993 __pyx_t_1 = __pyx_v_nd;
35994 __pyx_t_3 = __pyx_t_1;
35995 for (__pyx_t_4 = 2; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
35996 __pyx_v_i = __pyx_t_4;
36005 __pyx_v_nValuesPerQuadraturePoint = (__pyx_v_nValuesPerQuadraturePoint * (__pyx_v_ebq_global_val->dimensions[__pyx_v_i]));
36024 copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nValuesPerQuadraturePoint, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
double *)__pyx_v_ebq_global_val->data), ((
double *)__pyx_v_ebqe_val->data));
36035 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36036 __Pyx_XGIVEREF(__pyx_r);
36037 __Pyx_RefNannyFinishContext();
36050 static PyObject *__pyx_pw_13cfemIntegrals_317computeC0P1InterpolantDGP0(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36051 static PyMethodDef __pyx_mdef_13cfemIntegrals_317computeC0P1InterpolantDGP0 = {
"computeC0P1InterpolantDGP0", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_317computeC0P1InterpolantDGP0, METH_VARARGS|METH_KEYWORDS, 0};
36052 static PyObject *__pyx_pw_13cfemIntegrals_317computeC0P1InterpolantDGP0(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36053 PyArrayObject *__pyx_v_elementNodesArray = 0;
36054 PyArrayObject *__pyx_v_nodeElementOffsets = 0;
36055 PyArrayObject *__pyx_v_nodeElementsArray = 0;
36056 PyArrayObject *__pyx_v_l2g = 0;
36057 PyArrayObject *__pyx_v_dof = 0;
36058 PyArrayObject *__pyx_v_nodalAverage = 0;
36059 PyObject *__pyx_v_dim_dof = 0;
36060 int __pyx_lineno = 0;
36061 const char *__pyx_filename = NULL;
36062 int __pyx_clineno = 0;
36063 PyObject *__pyx_r = 0;
36064 __Pyx_RefNannyDeclarations
36065 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantDGP0 (wrapper)", 0);
36067 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_elementNodesArray,&__pyx_n_s_nodeElementOffsets,&__pyx_n_s_nodeElementsArray,&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_nodalAverage,&__pyx_n_s_dim_dof,0};
36068 PyObject* values[7] = {0,0,0,0,0,0,0};
36069 if (unlikely(__pyx_kwds)) {
36070 Py_ssize_t kw_args;
36071 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36072 switch (pos_args) {
36073 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36074 CYTHON_FALLTHROUGH;
36075 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36076 CYTHON_FALLTHROUGH;
36077 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36078 CYTHON_FALLTHROUGH;
36079 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36080 CYTHON_FALLTHROUGH;
36081 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36082 CYTHON_FALLTHROUGH;
36083 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36084 CYTHON_FALLTHROUGH;
36085 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36086 CYTHON_FALLTHROUGH;
36088 default:
goto __pyx_L5_argtuple_error;
36090 kw_args = PyDict_Size(__pyx_kwds);
36091 switch (pos_args) {
36093 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
36094 else goto __pyx_L5_argtuple_error;
36095 CYTHON_FALLTHROUGH;
36097 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementOffsets)) != 0)) kw_args--;
36099 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 1); __PYX_ERR(0, 5649, __pyx_L3_error)
36101 CYTHON_FALLTHROUGH;
36103 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementsArray)) != 0)) kw_args--;
36105 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 2); __PYX_ERR(0, 5649, __pyx_L3_error)
36107 CYTHON_FALLTHROUGH;
36109 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
36111 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 3); __PYX_ERR(0, 5649, __pyx_L3_error)
36113 CYTHON_FALLTHROUGH;
36115 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
36117 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 4); __PYX_ERR(0, 5649, __pyx_L3_error)
36119 CYTHON_FALLTHROUGH;
36121 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodalAverage)) != 0)) kw_args--;
36123 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 5); __PYX_ERR(0, 5649, __pyx_L3_error)
36125 CYTHON_FALLTHROUGH;
36127 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dim_dof)) != 0)) kw_args--;
36129 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, 6); __PYX_ERR(0, 5649, __pyx_L3_error)
36132 if (unlikely(kw_args > 0)) {
36133 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"computeC0P1InterpolantDGP0") < 0)) __PYX_ERR(0, 5649, __pyx_L3_error)
36135 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
36136 goto __pyx_L5_argtuple_error;
36138 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36139 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36140 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36141 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36142 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36143 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36144 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36146 __pyx_v_elementNodesArray = ((PyArrayObject *)values[0]);
36147 __pyx_v_nodeElementOffsets = ((PyArrayObject *)values[1]);
36148 __pyx_v_nodeElementsArray = ((PyArrayObject *)values[2]);
36149 __pyx_v_l2g = ((PyArrayObject *)values[3]);
36150 __pyx_v_dof = ((PyArrayObject *)values[4]);
36151 __pyx_v_nodalAverage = ((PyArrayObject *)values[5]);
36152 __pyx_v_dim_dof = values[6];
36154 goto __pyx_L4_argument_unpacking_done;
36155 __pyx_L5_argtuple_error:;
36156 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP0", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5649, __pyx_L3_error)
36158 __Pyx_AddTraceback(
"cfemIntegrals.computeC0P1InterpolantDGP0", __pyx_clineno, __pyx_lineno, __pyx_filename);
36159 __Pyx_RefNannyFinishContext();
36161 __pyx_L4_argument_unpacking_done:;
36162 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 5649, __pyx_L1_error)
36163 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementOffsets", 0))) __PYX_ERR(0, 5650, __pyx_L1_error)
36164 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementsArray", 0))) __PYX_ERR(0, 5651, __pyx_L1_error)
36165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5652, __pyx_L1_error)
36166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 5653, __pyx_L1_error)
36167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodalAverage), __pyx_ptype_5numpy_ndarray, 1,
"nodalAverage", 0))) __PYX_ERR(0, 5654, __pyx_L1_error)
36168 __pyx_r = __pyx_pf_13cfemIntegrals_316computeC0P1InterpolantDGP0(__pyx_self, __pyx_v_elementNodesArray, __pyx_v_nodeElementOffsets, __pyx_v_nodeElementsArray, __pyx_v_l2g, __pyx_v_dof, __pyx_v_nodalAverage, __pyx_v_dim_dof);
36175 __Pyx_RefNannyFinishContext();
36179 static PyObject *__pyx_pf_13cfemIntegrals_316computeC0P1InterpolantDGP0(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage, PyObject *__pyx_v_dim_dof) {
36180 int __pyx_v_nElements_global;
36181 int __pyx_v_nNodes_global;
36182 int __pyx_v_nNodes_element;
36183 int __pyx_v_nDOF_element;
36184 PyObject *__pyx_r = NULL;
36185 __Pyx_RefNannyDeclarations
36187 int __pyx_lineno = 0;
36188 const char *__pyx_filename = NULL;
36189 int __pyx_clineno = 0;
36190 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantDGP0", 0);
36199 __pyx_v_nElements_global = (__pyx_v_elementNodesArray->dimensions[0]);
36208 __pyx_v_nNodes_global = ((__pyx_v_nodeElementOffsets->dimensions[0]) - 1);
36217 __pyx_v_nNodes_element = (__pyx_v_elementNodesArray->dimensions[1]);
36226 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
36235 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_dim_dof);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5664, __pyx_L1_error)
36244 computeC0P1InterpolantDGP0(__pyx_v_nElements_global, __pyx_v_nNodes_global, __pyx_v_nNodes_element, __pyx_v_nDOF_element, __pyx_t_1, ((
int *)__pyx_v_elementNodesArray->data), ((
int *)__pyx_v_nodeElementOffsets->data), ((
int *)__pyx_v_nodeElementsArray->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_nodalAverage->data));
36255 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36258 __Pyx_AddTraceback(
"cfemIntegrals.computeC0P1InterpolantDGP0", __pyx_clineno, __pyx_lineno, __pyx_filename);
36261 __Pyx_XGIVEREF(__pyx_r);
36262 __Pyx_RefNannyFinishContext();
36275 static PyObject *__pyx_pw_13cfemIntegrals_319computeC0P1InterpolantNCP1(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36276 static PyMethodDef __pyx_mdef_13cfemIntegrals_319computeC0P1InterpolantNCP1 = {
"computeC0P1InterpolantNCP1", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_319computeC0P1InterpolantNCP1, METH_VARARGS|METH_KEYWORDS, 0};
36277 static PyObject *__pyx_pw_13cfemIntegrals_319computeC0P1InterpolantNCP1(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36278 int __pyx_v_dim_dof;
36279 PyArrayObject *__pyx_v_elementNodesArray = 0;
36280 PyArrayObject *__pyx_v_nodeElementOffsets = 0;
36281 PyArrayObject *__pyx_v_nodeElementsArray = 0;
36282 PyArrayObject *__pyx_v_l2g = 0;
36283 PyArrayObject *__pyx_v_dof = 0;
36284 PyArrayObject *__pyx_v_nodalAverage = 0;
36285 int __pyx_lineno = 0;
36286 const char *__pyx_filename = NULL;
36287 int __pyx_clineno = 0;
36288 PyObject *__pyx_r = 0;
36289 __Pyx_RefNannyDeclarations
36290 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantNCP1 (wrapper)", 0);
36292 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dim_dof,&__pyx_n_s_elementNodesArray,&__pyx_n_s_nodeElementOffsets,&__pyx_n_s_nodeElementsArray,&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_nodalAverage,0};
36293 PyObject* values[7] = {0,0,0,0,0,0,0};
36294 if (unlikely(__pyx_kwds)) {
36295 Py_ssize_t kw_args;
36296 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36297 switch (pos_args) {
36298 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36299 CYTHON_FALLTHROUGH;
36300 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36301 CYTHON_FALLTHROUGH;
36302 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36303 CYTHON_FALLTHROUGH;
36304 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36305 CYTHON_FALLTHROUGH;
36306 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36307 CYTHON_FALLTHROUGH;
36308 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36309 CYTHON_FALLTHROUGH;
36310 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36311 CYTHON_FALLTHROUGH;
36313 default:
goto __pyx_L5_argtuple_error;
36315 kw_args = PyDict_Size(__pyx_kwds);
36316 switch (pos_args) {
36318 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dim_dof)) != 0)) kw_args--;
36319 else goto __pyx_L5_argtuple_error;
36320 CYTHON_FALLTHROUGH;
36322 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
36324 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 1); __PYX_ERR(0, 5671, __pyx_L3_error)
36326 CYTHON_FALLTHROUGH;
36328 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementOffsets)) != 0)) kw_args--;
36330 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 2); __PYX_ERR(0, 5671, __pyx_L3_error)
36332 CYTHON_FALLTHROUGH;
36334 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementsArray)) != 0)) kw_args--;
36336 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 3); __PYX_ERR(0, 5671, __pyx_L3_error)
36338 CYTHON_FALLTHROUGH;
36340 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
36342 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 4); __PYX_ERR(0, 5671, __pyx_L3_error)
36344 CYTHON_FALLTHROUGH;
36346 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
36348 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 5); __PYX_ERR(0, 5671, __pyx_L3_error)
36350 CYTHON_FALLTHROUGH;
36352 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodalAverage)) != 0)) kw_args--;
36354 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, 6); __PYX_ERR(0, 5671, __pyx_L3_error)
36357 if (unlikely(kw_args > 0)) {
36358 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"computeC0P1InterpolantNCP1") < 0)) __PYX_ERR(0, 5671, __pyx_L3_error)
36360 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
36361 goto __pyx_L5_argtuple_error;
36363 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36364 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36365 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36366 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36367 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36368 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36369 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36371 __pyx_v_dim_dof = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_dim_dof == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5671, __pyx_L3_error)
36372 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
36373 __pyx_v_nodeElementOffsets = ((PyArrayObject *)values[2]);
36374 __pyx_v_nodeElementsArray = ((PyArrayObject *)values[3]);
36375 __pyx_v_l2g = ((PyArrayObject *)values[4]);
36376 __pyx_v_dof = ((PyArrayObject *)values[5]);
36377 __pyx_v_nodalAverage = ((PyArrayObject *)values[6]);
36379 goto __pyx_L4_argument_unpacking_done;
36380 __pyx_L5_argtuple_error:;
36381 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantNCP1", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5671, __pyx_L3_error)
36383 __Pyx_AddTraceback(
"cfemIntegrals.computeC0P1InterpolantNCP1", __pyx_clineno, __pyx_lineno, __pyx_filename);
36384 __Pyx_RefNannyFinishContext();
36386 __pyx_L4_argument_unpacking_done:;
36387 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 5672, __pyx_L1_error)
36388 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementOffsets", 0))) __PYX_ERR(0, 5673, __pyx_L1_error)
36389 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementsArray", 0))) __PYX_ERR(0, 5674, __pyx_L1_error)
36390 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5675, __pyx_L1_error)
36391 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 5676, __pyx_L1_error)
36392 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodalAverage), __pyx_ptype_5numpy_ndarray, 1,
"nodalAverage", 0))) __PYX_ERR(0, 5677, __pyx_L1_error)
36393 __pyx_r = __pyx_pf_13cfemIntegrals_318computeC0P1InterpolantNCP1(__pyx_self, __pyx_v_dim_dof, __pyx_v_elementNodesArray, __pyx_v_nodeElementOffsets, __pyx_v_nodeElementsArray, __pyx_v_l2g, __pyx_v_dof, __pyx_v_nodalAverage);
36400 __Pyx_RefNannyFinishContext();
36404 static PyObject *__pyx_pf_13cfemIntegrals_318computeC0P1InterpolantNCP1(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage) {
36405 int __pyx_v_nElements_global;
36406 int __pyx_v_nNodes_global;
36407 int __pyx_v_nNodes_element;
36408 int __pyx_v_nDOF_element;
36409 PyObject *__pyx_r = NULL;
36410 __Pyx_RefNannyDeclarations
36411 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantNCP1", 0);
36420 __pyx_v_nElements_global = (__pyx_v_elementNodesArray->dimensions[0]);
36429 __pyx_v_nNodes_global = ((__pyx_v_nodeElementOffsets->dimensions[0]) - 1);
36438 __pyx_v_nNodes_element = (__pyx_v_elementNodesArray->dimensions[1]);
36447 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
36456 computeC0P1InterpolantNCP1(__pyx_v_nElements_global, __pyx_v_nNodes_global, __pyx_v_nNodes_element, __pyx_v_nDOF_element, __pyx_v_dim_dof, ((
int *)__pyx_v_elementNodesArray->data), ((
int *)__pyx_v_nodeElementOffsets->data), ((
int *)__pyx_v_nodeElementsArray->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_nodalAverage->data));
36467 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36468 __Pyx_XGIVEREF(__pyx_r);
36469 __Pyx_RefNannyFinishContext();
36482 static PyObject *__pyx_pw_13cfemIntegrals_321computeC0P1InterpolantDGP12(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36483 static PyMethodDef __pyx_mdef_13cfemIntegrals_321computeC0P1InterpolantDGP12 = {
"computeC0P1InterpolantDGP12", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_321computeC0P1InterpolantDGP12, METH_VARARGS|METH_KEYWORDS, 0};
36484 static PyObject *__pyx_pw_13cfemIntegrals_321computeC0P1InterpolantDGP12(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36485 int __pyx_v_dim_dof;
36486 PyArrayObject *__pyx_v_elementNodesArray = 0;
36487 PyArrayObject *__pyx_v_nodeElementOffsets = 0;
36488 PyArrayObject *__pyx_v_nodeElementsArray = 0;
36489 PyArrayObject *__pyx_v_l2g = 0;
36490 PyArrayObject *__pyx_v_dof = 0;
36491 PyArrayObject *__pyx_v_nodalAverage = 0;
36492 int __pyx_lineno = 0;
36493 const char *__pyx_filename = NULL;
36494 int __pyx_clineno = 0;
36495 PyObject *__pyx_r = 0;
36496 __Pyx_RefNannyDeclarations
36497 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantDGP12 (wrapper)", 0);
36499 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dim_dof,&__pyx_n_s_elementNodesArray,&__pyx_n_s_nodeElementOffsets,&__pyx_n_s_nodeElementsArray,&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_nodalAverage,0};
36500 PyObject* values[7] = {0,0,0,0,0,0,0};
36501 if (unlikely(__pyx_kwds)) {
36502 Py_ssize_t kw_args;
36503 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36504 switch (pos_args) {
36505 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36506 CYTHON_FALLTHROUGH;
36507 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36508 CYTHON_FALLTHROUGH;
36509 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36510 CYTHON_FALLTHROUGH;
36511 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36512 CYTHON_FALLTHROUGH;
36513 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36514 CYTHON_FALLTHROUGH;
36515 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36516 CYTHON_FALLTHROUGH;
36517 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36518 CYTHON_FALLTHROUGH;
36520 default:
goto __pyx_L5_argtuple_error;
36522 kw_args = PyDict_Size(__pyx_kwds);
36523 switch (pos_args) {
36525 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dim_dof)) != 0)) kw_args--;
36526 else goto __pyx_L5_argtuple_error;
36527 CYTHON_FALLTHROUGH;
36529 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementNodesArray)) != 0)) kw_args--;
36531 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 1); __PYX_ERR(0, 5693, __pyx_L3_error)
36533 CYTHON_FALLTHROUGH;
36535 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementOffsets)) != 0)) kw_args--;
36537 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 2); __PYX_ERR(0, 5693, __pyx_L3_error)
36539 CYTHON_FALLTHROUGH;
36541 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeElementsArray)) != 0)) kw_args--;
36543 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 3); __PYX_ERR(0, 5693, __pyx_L3_error)
36545 CYTHON_FALLTHROUGH;
36547 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
36549 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 4); __PYX_ERR(0, 5693, __pyx_L3_error)
36551 CYTHON_FALLTHROUGH;
36553 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
36555 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 5); __PYX_ERR(0, 5693, __pyx_L3_error)
36557 CYTHON_FALLTHROUGH;
36559 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodalAverage)) != 0)) kw_args--;
36561 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, 6); __PYX_ERR(0, 5693, __pyx_L3_error)
36564 if (unlikely(kw_args > 0)) {
36565 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"computeC0P1InterpolantDGP12") < 0)) __PYX_ERR(0, 5693, __pyx_L3_error)
36567 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
36568 goto __pyx_L5_argtuple_error;
36570 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36571 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36572 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36573 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36574 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36575 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36576 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
36578 __pyx_v_dim_dof = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_dim_dof == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5693, __pyx_L3_error)
36579 __pyx_v_elementNodesArray = ((PyArrayObject *)values[1]);
36580 __pyx_v_nodeElementOffsets = ((PyArrayObject *)values[2]);
36581 __pyx_v_nodeElementsArray = ((PyArrayObject *)values[3]);
36582 __pyx_v_l2g = ((PyArrayObject *)values[4]);
36583 __pyx_v_dof = ((PyArrayObject *)values[5]);
36584 __pyx_v_nodalAverage = ((PyArrayObject *)values[6]);
36586 goto __pyx_L4_argument_unpacking_done;
36587 __pyx_L5_argtuple_error:;
36588 __Pyx_RaiseArgtupleInvalid(
"computeC0P1InterpolantDGP12", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5693, __pyx_L3_error)
36590 __Pyx_AddTraceback(
"cfemIntegrals.computeC0P1InterpolantDGP12", __pyx_clineno, __pyx_lineno, __pyx_filename);
36591 __Pyx_RefNannyFinishContext();
36593 __pyx_L4_argument_unpacking_done:;
36594 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementNodesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementNodesArray", 0))) __PYX_ERR(0, 5694, __pyx_L1_error)
36595 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementOffsets), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementOffsets", 0))) __PYX_ERR(0, 5695, __pyx_L1_error)
36596 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeElementsArray", 0))) __PYX_ERR(0, 5696, __pyx_L1_error)
36597 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5697, __pyx_L1_error)
36598 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 5698, __pyx_L1_error)
36599 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodalAverage), __pyx_ptype_5numpy_ndarray, 1,
"nodalAverage", 0))) __PYX_ERR(0, 5699, __pyx_L1_error)
36600 __pyx_r = __pyx_pf_13cfemIntegrals_320computeC0P1InterpolantDGP12(__pyx_self, __pyx_v_dim_dof, __pyx_v_elementNodesArray, __pyx_v_nodeElementOffsets, __pyx_v_nodeElementsArray, __pyx_v_l2g, __pyx_v_dof, __pyx_v_nodalAverage);
36607 __Pyx_RefNannyFinishContext();
36611 static PyObject *__pyx_pf_13cfemIntegrals_320computeC0P1InterpolantDGP12(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_elementNodesArray, PyArrayObject *__pyx_v_nodeElementOffsets, PyArrayObject *__pyx_v_nodeElementsArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_nodalAverage) {
36612 int __pyx_v_nElements_global;
36613 int __pyx_v_nNodes_global;
36614 int __pyx_v_nNodes_element;
36615 int __pyx_v_nDOF_element;
36616 PyObject *__pyx_r = NULL;
36617 __Pyx_RefNannyDeclarations
36618 __Pyx_RefNannySetupContext(
"computeC0P1InterpolantDGP12", 0);
36627 __pyx_v_nElements_global = (__pyx_v_elementNodesArray->dimensions[0]);
36636 __pyx_v_nNodes_global = ((__pyx_v_nodeElementOffsets->dimensions[0]) - 1);
36645 __pyx_v_nNodes_element = (__pyx_v_elementNodesArray->dimensions[1]);
36654 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
36663 computeC0P1InterpolantDGP12(__pyx_v_nElements_global, __pyx_v_nNodes_global, __pyx_v_nNodes_element, __pyx_v_nDOF_element, __pyx_v_dim_dof, ((
int *)__pyx_v_elementNodesArray->data), ((
int *)__pyx_v_nodeElementOffsets->data), ((
int *)__pyx_v_nodeElementsArray->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_nodalAverage->data));
36674 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36675 __Pyx_XGIVEREF(__pyx_r);
36676 __Pyx_RefNannyFinishContext();
36689 static PyObject *__pyx_pw_13cfemIntegrals_323parametricFiniteElementSpace_getValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36690 static PyMethodDef __pyx_mdef_13cfemIntegrals_323parametricFiniteElementSpace_getValuesGlobalExteriorTrace = {
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_323parametricFiniteElementSpace_getValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
36691 static PyObject *__pyx_pw_13cfemIntegrals_323parametricFiniteElementSpace_getValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36692 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
36693 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
36694 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
36695 PyArrayObject *__pyx_v_psi = 0;
36696 PyArrayObject *__pyx_v_vArray = 0;
36697 int __pyx_lineno = 0;
36698 const char *__pyx_filename = NULL;
36699 int __pyx_clineno = 0;
36700 PyObject *__pyx_r = 0;
36701 __Pyx_RefNannyDeclarations
36702 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace (wrapper)", 0);
36704 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_psi,&__pyx_n_s_vArray,0};
36705 PyObject* values[5] = {0,0,0,0,0};
36706 if (unlikely(__pyx_kwds)) {
36707 Py_ssize_t kw_args;
36708 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36709 switch (pos_args) {
36710 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36711 CYTHON_FALLTHROUGH;
36712 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36713 CYTHON_FALLTHROUGH;
36714 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36715 CYTHON_FALLTHROUGH;
36716 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36717 CYTHON_FALLTHROUGH;
36718 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36719 CYTHON_FALLTHROUGH;
36721 default:
goto __pyx_L5_argtuple_error;
36723 kw_args = PyDict_Size(__pyx_kwds);
36724 switch (pos_args) {
36726 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
36727 else goto __pyx_L5_argtuple_error;
36728 CYTHON_FALLTHROUGH;
36730 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
36732 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 1, 5, 5, 1); __PYX_ERR(0, 5715, __pyx_L3_error)
36734 CYTHON_FALLTHROUGH;
36736 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
36738 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 1, 5, 5, 2); __PYX_ERR(0, 5715, __pyx_L3_error)
36740 CYTHON_FALLTHROUGH;
36742 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
36744 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 1, 5, 5, 3); __PYX_ERR(0, 5715, __pyx_L3_error)
36746 CYTHON_FALLTHROUGH;
36748 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vArray)) != 0)) kw_args--;
36750 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 1, 5, 5, 4); __PYX_ERR(0, 5715, __pyx_L3_error)
36753 if (unlikely(kw_args > 0)) {
36754 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5715, __pyx_L3_error)
36756 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
36757 goto __pyx_L5_argtuple_error;
36759 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36760 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36761 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36762 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36763 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36765 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
36766 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
36767 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
36768 __pyx_v_psi = ((PyArrayObject *)values[3]);
36769 __pyx_v_vArray = ((PyArrayObject *)values[4]);
36771 goto __pyx_L4_argument_unpacking_done;
36772 __pyx_L5_argtuple_error:;
36773 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5715, __pyx_L3_error)
36775 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
36776 __Pyx_RefNannyFinishContext();
36778 __pyx_L4_argument_unpacking_done:;
36779 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5715, __pyx_L1_error)
36780 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5716, __pyx_L1_error)
36781 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5717, __pyx_L1_error)
36782 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 5718, __pyx_L1_error)
36783 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vArray), __pyx_ptype_5numpy_ndarray, 1,
"vArray", 0))) __PYX_ERR(0, 5719, __pyx_L1_error)
36784 __pyx_r = __pyx_pf_13cfemIntegrals_322parametricFiniteElementSpace_getValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_psi, __pyx_v_vArray);
36791 __Pyx_RefNannyFinishContext();
36795 static PyObject *__pyx_pf_13cfemIntegrals_322parametricFiniteElementSpace_getValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_vArray) {
36796 int __pyx_v_nElementBoundaries_element;
36797 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
36798 int __pyx_v_nDOF_element;
36799 int __pyx_v_nExteriorElementBoundaries_global;
36800 PyObject *__pyx_r = NULL;
36801 __Pyx_RefNannyDeclarations
36802 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getValuesGlobalExteriorTrace", 0);
36811 __pyx_v_nElementBoundaries_element = (__pyx_v_psi->dimensions[0]);
36820 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_psi->dimensions[1]);
36829 __pyx_v_nDOF_element = (__pyx_v_psi->dimensions[2]);
36838 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
36847 parametricFiniteElementSpace_getValuesGlobalExteriorTrace(__pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_psi->data), ((
double *)__pyx_v_vArray->data));
36858 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
36859 __Pyx_XGIVEREF(__pyx_r);
36860 __Pyx_RefNannyFinishContext();
36873 static PyObject *__pyx_pw_13cfemIntegrals_325parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
36874 static PyMethodDef __pyx_mdef_13cfemIntegrals_325parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace = {
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_325parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
36875 static PyObject *__pyx_pw_13cfemIntegrals_325parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
36876 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
36877 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
36878 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
36879 PyArrayObject *__pyx_v_grad_psi = 0;
36880 PyArrayObject *__pyx_v_inverseJacobianArray = 0;
36881 PyArrayObject *__pyx_v_grad_vArray = 0;
36882 int __pyx_lineno = 0;
36883 const char *__pyx_filename = NULL;
36884 int __pyx_clineno = 0;
36885 PyObject *__pyx_r = 0;
36886 __Pyx_RefNannyDeclarations
36887 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace (wrapper)", 0);
36889 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_grad_psi,&__pyx_n_s_inverseJacobianArray,&__pyx_n_s_grad_vArray,0};
36890 PyObject* values[6] = {0,0,0,0,0,0};
36891 if (unlikely(__pyx_kwds)) {
36892 Py_ssize_t kw_args;
36893 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
36894 switch (pos_args) {
36895 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36896 CYTHON_FALLTHROUGH;
36897 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36898 CYTHON_FALLTHROUGH;
36899 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36900 CYTHON_FALLTHROUGH;
36901 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36902 CYTHON_FALLTHROUGH;
36903 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36904 CYTHON_FALLTHROUGH;
36905 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36906 CYTHON_FALLTHROUGH;
36908 default:
goto __pyx_L5_argtuple_error;
36910 kw_args = PyDict_Size(__pyx_kwds);
36911 switch (pos_args) {
36913 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
36914 else goto __pyx_L5_argtuple_error;
36915 CYTHON_FALLTHROUGH;
36917 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
36919 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, 1); __PYX_ERR(0, 5733, __pyx_L3_error)
36921 CYTHON_FALLTHROUGH;
36923 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
36925 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, 2); __PYX_ERR(0, 5733, __pyx_L3_error)
36927 CYTHON_FALLTHROUGH;
36929 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
36931 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, 3); __PYX_ERR(0, 5733, __pyx_L3_error)
36933 CYTHON_FALLTHROUGH;
36935 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobianArray)) != 0)) kw_args--;
36937 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, 4); __PYX_ERR(0, 5733, __pyx_L3_error)
36939 CYTHON_FALLTHROUGH;
36941 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_vArray)) != 0)) kw_args--;
36943 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, 5); __PYX_ERR(0, 5733, __pyx_L3_error)
36946 if (unlikely(kw_args > 0)) {
36947 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5733, __pyx_L3_error)
36949 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
36950 goto __pyx_L5_argtuple_error;
36952 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
36953 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
36954 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
36955 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
36956 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
36957 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
36959 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
36960 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
36961 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
36962 __pyx_v_grad_psi = ((PyArrayObject *)values[3]);
36963 __pyx_v_inverseJacobianArray = ((PyArrayObject *)values[4]);
36964 __pyx_v_grad_vArray = ((PyArrayObject *)values[5]);
36966 goto __pyx_L4_argument_unpacking_done;
36967 __pyx_L5_argtuple_error:;
36968 __Pyx_RaiseArgtupleInvalid(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5733, __pyx_L3_error)
36970 __Pyx_AddTraceback(
"cfemIntegrals.parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
36971 __Pyx_RefNannyFinishContext();
36973 __pyx_L4_argument_unpacking_done:;
36974 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5733, __pyx_L1_error)
36975 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5734, __pyx_L1_error)
36976 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5735, __pyx_L1_error)
36977 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 5736, __pyx_L1_error)
36978 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobianArray), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobianArray", 0))) __PYX_ERR(0, 5737, __pyx_L1_error)
36979 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_vArray), __pyx_ptype_5numpy_ndarray, 1,
"grad_vArray", 0))) __PYX_ERR(0, 5738, __pyx_L1_error)
36980 __pyx_r = __pyx_pf_13cfemIntegrals_324parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_grad_psi, __pyx_v_inverseJacobianArray, __pyx_v_grad_vArray);
36987 __Pyx_RefNannyFinishContext();
36991 static PyObject *__pyx_pf_13cfemIntegrals_324parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_inverseJacobianArray, PyArrayObject *__pyx_v_grad_vArray) {
36992 int __pyx_v_nElementBoundaries_element;
36993 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
36994 int __pyx_v_nDOF_element;
36995 int __pyx_v_nSpace_global;
36996 int __pyx_v_nExteriorElementBoundaries_global;
36997 PyObject *__pyx_r = NULL;
36998 __Pyx_RefNannyDeclarations
36999 __Pyx_RefNannySetupContext(
"parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace", 0);
37008 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_psi->dimensions[0]);
37017 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_grad_psi->dimensions[1]);
37026 __pyx_v_nDOF_element = (__pyx_v_grad_psi->dimensions[2]);
37035 __pyx_v_nSpace_global = (__pyx_v_grad_vArray->dimensions[3]);
37044 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
37053 parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace(__pyx_v_nElementBoundaries_element, __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace_global, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_inverseJacobianArray->data), ((
double *)__pyx_v_grad_vArray->data));
37064 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37065 __Pyx_XGIVEREF(__pyx_r);
37066 __Pyx_RefNannyFinishContext();
37079 static PyObject *__pyx_pw_13cfemIntegrals_327parametricMaps_getValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37080 static PyMethodDef __pyx_mdef_13cfemIntegrals_327parametricMaps_getValuesGlobalExteriorTrace = {
"parametricMaps_getValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_327parametricMaps_getValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
37081 static PyObject *__pyx_pw_13cfemIntegrals_327parametricMaps_getValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37082 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
37083 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
37084 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
37085 PyArrayObject *__pyx_v_psi = 0;
37086 PyArrayObject *__pyx_v_l2g = 0;
37087 PyArrayObject *__pyx_v_nodeArray = 0;
37088 PyArrayObject *__pyx_v_xArray = 0;
37089 int __pyx_lineno = 0;
37090 const char *__pyx_filename = NULL;
37091 int __pyx_clineno = 0;
37092 PyObject *__pyx_r = 0;
37093 __Pyx_RefNannyDeclarations
37094 __Pyx_RefNannySetupContext(
"parametricMaps_getValuesGlobalExteriorTrace (wrapper)", 0);
37096 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_psi,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,0};
37097 PyObject* values[7] = {0,0,0,0,0,0,0};
37098 if (unlikely(__pyx_kwds)) {
37099 Py_ssize_t kw_args;
37100 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37101 switch (pos_args) {
37102 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37103 CYTHON_FALLTHROUGH;
37104 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37105 CYTHON_FALLTHROUGH;
37106 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37107 CYTHON_FALLTHROUGH;
37108 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37109 CYTHON_FALLTHROUGH;
37110 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37111 CYTHON_FALLTHROUGH;
37112 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37113 CYTHON_FALLTHROUGH;
37114 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37115 CYTHON_FALLTHROUGH;
37117 default:
goto __pyx_L5_argtuple_error;
37119 kw_args = PyDict_Size(__pyx_kwds);
37120 switch (pos_args) {
37122 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
37123 else goto __pyx_L5_argtuple_error;
37124 CYTHON_FALLTHROUGH;
37126 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
37128 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 1); __PYX_ERR(0, 5755, __pyx_L3_error)
37130 CYTHON_FALLTHROUGH;
37132 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
37134 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 2); __PYX_ERR(0, 5755, __pyx_L3_error)
37136 CYTHON_FALLTHROUGH;
37138 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_psi)) != 0)) kw_args--;
37140 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 3); __PYX_ERR(0, 5755, __pyx_L3_error)
37142 CYTHON_FALLTHROUGH;
37144 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
37146 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 4); __PYX_ERR(0, 5755, __pyx_L3_error)
37148 CYTHON_FALLTHROUGH;
37150 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
37152 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 5); __PYX_ERR(0, 5755, __pyx_L3_error)
37154 CYTHON_FALLTHROUGH;
37156 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
37158 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, 6); __PYX_ERR(0, 5755, __pyx_L3_error)
37161 if (unlikely(kw_args > 0)) {
37162 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5755, __pyx_L3_error)
37164 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
37165 goto __pyx_L5_argtuple_error;
37167 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37168 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37169 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37170 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37171 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37172 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37173 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37175 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
37176 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
37177 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
37178 __pyx_v_psi = ((PyArrayObject *)values[3]);
37179 __pyx_v_l2g = ((PyArrayObject *)values[4]);
37180 __pyx_v_nodeArray = ((PyArrayObject *)values[5]);
37181 __pyx_v_xArray = ((PyArrayObject *)values[6]);
37183 goto __pyx_L4_argument_unpacking_done;
37184 __pyx_L5_argtuple_error:;
37185 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getValuesGlobalExteriorTrace", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5755, __pyx_L3_error)
37187 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
37188 __Pyx_RefNannyFinishContext();
37190 __pyx_L4_argument_unpacking_done:;
37191 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5755, __pyx_L1_error)
37192 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5756, __pyx_L1_error)
37193 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5757, __pyx_L1_error)
37194 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_psi), __pyx_ptype_5numpy_ndarray, 1,
"psi", 0))) __PYX_ERR(0, 5758, __pyx_L1_error)
37195 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5759, __pyx_L1_error)
37196 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 5760, __pyx_L1_error)
37197 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 5761, __pyx_L1_error)
37198 __pyx_r = __pyx_pf_13cfemIntegrals_326parametricMaps_getValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_psi, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray);
37205 __Pyx_RefNannyFinishContext();
37209 static PyObject *__pyx_pf_13cfemIntegrals_326parametricMaps_getValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_psi, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray) {
37210 int __pyx_v_nQuadraturePoints_elementBoundary;
37211 int __pyx_v_nDOF_element;
37212 int __pyx_v_nSpace_global;
37213 int __pyx_v_nExteriorElementBoundaries_global;
37214 PyObject *__pyx_r = NULL;
37215 __Pyx_RefNannyDeclarations
37216 __Pyx_RefNannySetupContext(
"parametricMaps_getValuesGlobalExteriorTrace", 0);
37225 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_xArray->dimensions[1]);
37234 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
37243 __pyx_v_nSpace_global = (__pyx_v_xArray->dimensions[2]);
37252 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
37261 parametricMaps_getValuesGlobalExteriorTrace(__pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace_global, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_psi->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data));
37272 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37273 __Pyx_XGIVEREF(__pyx_r);
37274 __Pyx_RefNannyFinishContext();
37287 static PyObject *__pyx_pw_13cfemIntegrals_329parametricMaps_getInverseValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37288 static PyMethodDef __pyx_mdef_13cfemIntegrals_329parametricMaps_getInverseValuesGlobalExteriorTrace = {
"parametricMaps_getInverseValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_329parametricMaps_getInverseValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
37289 static PyObject *__pyx_pw_13cfemIntegrals_329parametricMaps_getInverseValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37290 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
37291 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
37292 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
37293 PyArrayObject *__pyx_v_inverseJacobian = 0;
37294 PyArrayObject *__pyx_v_l2g = 0;
37295 PyArrayObject *__pyx_v_nodeArray = 0;
37296 PyArrayObject *__pyx_v_xArray = 0;
37297 PyArrayObject *__pyx_v_xiArray = 0;
37298 int __pyx_lineno = 0;
37299 const char *__pyx_filename = NULL;
37300 int __pyx_clineno = 0;
37301 PyObject *__pyx_r = 0;
37302 __Pyx_RefNannyDeclarations
37303 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValuesGlobalExteriorTrace (wrapper)", 0);
37305 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_inverseJacobian,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_xArray,&__pyx_n_s_xiArray,0};
37306 PyObject* values[8] = {0,0,0,0,0,0,0,0};
37307 if (unlikely(__pyx_kwds)) {
37308 Py_ssize_t kw_args;
37309 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37310 switch (pos_args) {
37311 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37312 CYTHON_FALLTHROUGH;
37313 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37314 CYTHON_FALLTHROUGH;
37315 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37316 CYTHON_FALLTHROUGH;
37317 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37318 CYTHON_FALLTHROUGH;
37319 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37320 CYTHON_FALLTHROUGH;
37321 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37322 CYTHON_FALLTHROUGH;
37323 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37324 CYTHON_FALLTHROUGH;
37325 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37326 CYTHON_FALLTHROUGH;
37328 default:
goto __pyx_L5_argtuple_error;
37330 kw_args = PyDict_Size(__pyx_kwds);
37331 switch (pos_args) {
37333 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
37334 else goto __pyx_L5_argtuple_error;
37335 CYTHON_FALLTHROUGH;
37337 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
37339 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 1); __PYX_ERR(0, 5777, __pyx_L3_error)
37341 CYTHON_FALLTHROUGH;
37343 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
37345 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 2); __PYX_ERR(0, 5777, __pyx_L3_error)
37347 CYTHON_FALLTHROUGH;
37349 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_inverseJacobian)) != 0)) kw_args--;
37351 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 3); __PYX_ERR(0, 5777, __pyx_L3_error)
37353 CYTHON_FALLTHROUGH;
37355 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
37357 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 4); __PYX_ERR(0, 5777, __pyx_L3_error)
37359 CYTHON_FALLTHROUGH;
37361 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
37363 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 5); __PYX_ERR(0, 5777, __pyx_L3_error)
37365 CYTHON_FALLTHROUGH;
37367 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xArray)) != 0)) kw_args--;
37369 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 6); __PYX_ERR(0, 5777, __pyx_L3_error)
37371 CYTHON_FALLTHROUGH;
37373 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xiArray)) != 0)) kw_args--;
37375 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, 7); __PYX_ERR(0, 5777, __pyx_L3_error)
37378 if (unlikely(kw_args > 0)) {
37379 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getInverseValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5777, __pyx_L3_error)
37381 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
37382 goto __pyx_L5_argtuple_error;
37384 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37385 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37386 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37387 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37388 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37389 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37390 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37391 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37393 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
37394 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
37395 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
37396 __pyx_v_inverseJacobian = ((PyArrayObject *)values[3]);
37397 __pyx_v_l2g = ((PyArrayObject *)values[4]);
37398 __pyx_v_nodeArray = ((PyArrayObject *)values[5]);
37399 __pyx_v_xArray = ((PyArrayObject *)values[6]);
37400 __pyx_v_xiArray = ((PyArrayObject *)values[7]);
37402 goto __pyx_L4_argument_unpacking_done;
37403 __pyx_L5_argtuple_error:;
37404 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5777, __pyx_L3_error)
37406 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getInverseValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
37407 __Pyx_RefNannyFinishContext();
37409 __pyx_L4_argument_unpacking_done:;
37410 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5777, __pyx_L1_error)
37411 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5778, __pyx_L1_error)
37412 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5779, __pyx_L1_error)
37413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_inverseJacobian), __pyx_ptype_5numpy_ndarray, 1,
"inverseJacobian", 0))) __PYX_ERR(0, 5780, __pyx_L1_error)
37414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5781, __pyx_L1_error)
37415 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 5782, __pyx_L1_error)
37416 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xArray), __pyx_ptype_5numpy_ndarray, 1,
"xArray", 0))) __PYX_ERR(0, 5783, __pyx_L1_error)
37417 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xiArray), __pyx_ptype_5numpy_ndarray, 1,
"xiArray", 0))) __PYX_ERR(0, 5784, __pyx_L1_error)
37418 __pyx_r = __pyx_pf_13cfemIntegrals_328parametricMaps_getInverseValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_inverseJacobian, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_xArray, __pyx_v_xiArray);
37425 __Pyx_RefNannyFinishContext();
37429 static PyObject *__pyx_pf_13cfemIntegrals_328parametricMaps_getInverseValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_inverseJacobian, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_xArray, PyArrayObject *__pyx_v_xiArray) {
37430 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
37431 int __pyx_v_nDOF_element;
37432 int __pyx_v_nSpace_global;
37433 int __pyx_v_nExteriorElementBoundaries_global;
37434 PyObject *__pyx_r = NULL;
37435 __Pyx_RefNannyDeclarations
37436 __Pyx_RefNannySetupContext(
"parametricMaps_getInverseValuesGlobalExteriorTrace", 0);
37445 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_xArray->dimensions[1]);
37454 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
37463 __pyx_v_nSpace_global = (__pyx_v_inverseJacobian->dimensions[3]);
37472 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
37481 parametricMaps_getInverseValuesGlobalExteriorTrace(__pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_element, __pyx_v_nSpace_global, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_inverseJacobian->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_xArray->data), ((
double *)__pyx_v_xiArray->data));
37492 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37493 __Pyx_XGIVEREF(__pyx_r);
37494 __Pyx_RefNannyFinishContext();
37507 static PyObject *__pyx_pw_13cfemIntegrals_331parametricMaps_getJacobianValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37508 static PyMethodDef __pyx_mdef_13cfemIntegrals_331parametricMaps_getJacobianValuesGlobalExteriorTrace = {
"parametricMaps_getJacobianValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_331parametricMaps_getJacobianValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
37509 static PyObject *__pyx_pw_13cfemIntegrals_331parametricMaps_getJacobianValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37510 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
37511 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
37512 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
37513 PyArrayObject *__pyx_v_grad_psi = 0;
37514 PyArrayObject *__pyx_v_boundaryNormals = 0;
37515 PyArrayObject *__pyx_v_boundaryJacobians = 0;
37516 PyArrayObject *__pyx_v_l2g = 0;
37517 PyArrayObject *__pyx_v_nodeArray = 0;
37518 PyArrayObject *__pyx_v_jacobianInverseArray = 0;
37519 PyArrayObject *__pyx_v_metricTensorArray = 0;
37520 PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray = 0;
37521 PyArrayObject *__pyx_v_unitNormalArray = 0;
37522 int __pyx_lineno = 0;
37523 const char *__pyx_filename = NULL;
37524 int __pyx_clineno = 0;
37525 PyObject *__pyx_r = 0;
37526 __Pyx_RefNannyDeclarations
37527 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesGlobalExteriorTrace (wrapper)", 0);
37529 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_grad_psi,&__pyx_n_s_boundaryNormals,&__pyx_n_s_boundaryJacobians,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_jacobianInverseArray,&__pyx_n_s_metricTensorArray,&__pyx_n_s_metricTensorDeterminantSqrtArray,&__pyx_n_s_unitNormalArray,0};
37530 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
37531 if (unlikely(__pyx_kwds)) {
37532 Py_ssize_t kw_args;
37533 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37534 switch (pos_args) {
37535 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37536 CYTHON_FALLTHROUGH;
37537 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37538 CYTHON_FALLTHROUGH;
37539 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37540 CYTHON_FALLTHROUGH;
37541 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37542 CYTHON_FALLTHROUGH;
37543 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37544 CYTHON_FALLTHROUGH;
37545 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37546 CYTHON_FALLTHROUGH;
37547 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37548 CYTHON_FALLTHROUGH;
37549 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37550 CYTHON_FALLTHROUGH;
37551 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37552 CYTHON_FALLTHROUGH;
37553 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37554 CYTHON_FALLTHROUGH;
37555 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37556 CYTHON_FALLTHROUGH;
37557 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37558 CYTHON_FALLTHROUGH;
37560 default:
goto __pyx_L5_argtuple_error;
37562 kw_args = PyDict_Size(__pyx_kwds);
37563 switch (pos_args) {
37565 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
37566 else goto __pyx_L5_argtuple_error;
37567 CYTHON_FALLTHROUGH;
37569 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
37571 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 1); __PYX_ERR(0, 5801, __pyx_L3_error)
37573 CYTHON_FALLTHROUGH;
37575 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
37577 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 2); __PYX_ERR(0, 5801, __pyx_L3_error)
37579 CYTHON_FALLTHROUGH;
37581 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
37583 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 3); __PYX_ERR(0, 5801, __pyx_L3_error)
37585 CYTHON_FALLTHROUGH;
37587 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryNormals)) != 0)) kw_args--;
37589 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 4); __PYX_ERR(0, 5801, __pyx_L3_error)
37591 CYTHON_FALLTHROUGH;
37593 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryJacobians)) != 0)) kw_args--;
37595 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 5); __PYX_ERR(0, 5801, __pyx_L3_error)
37597 CYTHON_FALLTHROUGH;
37599 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
37601 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 6); __PYX_ERR(0, 5801, __pyx_L3_error)
37603 CYTHON_FALLTHROUGH;
37605 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
37607 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 7); __PYX_ERR(0, 5801, __pyx_L3_error)
37609 CYTHON_FALLTHROUGH;
37611 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianInverseArray)) != 0)) kw_args--;
37613 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 8); __PYX_ERR(0, 5801, __pyx_L3_error)
37615 CYTHON_FALLTHROUGH;
37617 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorArray)) != 0)) kw_args--;
37619 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 9); __PYX_ERR(0, 5801, __pyx_L3_error)
37621 CYTHON_FALLTHROUGH;
37623 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorDeterminantSqrtArray)) != 0)) kw_args--;
37625 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 10); __PYX_ERR(0, 5801, __pyx_L3_error)
37627 CYTHON_FALLTHROUGH;
37629 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unitNormalArray)) != 0)) kw_args--;
37631 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, 11); __PYX_ERR(0, 5801, __pyx_L3_error)
37634 if (unlikely(kw_args > 0)) {
37635 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getJacobianValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5801, __pyx_L3_error)
37637 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
37638 goto __pyx_L5_argtuple_error;
37640 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37641 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37642 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37643 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37644 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37645 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37646 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37647 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37648 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37649 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37650 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37651 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37653 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
37654 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
37655 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
37656 __pyx_v_grad_psi = ((PyArrayObject *)values[3]);
37657 __pyx_v_boundaryNormals = ((PyArrayObject *)values[4]);
37658 __pyx_v_boundaryJacobians = ((PyArrayObject *)values[5]);
37659 __pyx_v_l2g = ((PyArrayObject *)values[6]);
37660 __pyx_v_nodeArray = ((PyArrayObject *)values[7]);
37661 __pyx_v_jacobianInverseArray = ((PyArrayObject *)values[8]);
37662 __pyx_v_metricTensorArray = ((PyArrayObject *)values[9]);
37663 __pyx_v_metricTensorDeterminantSqrtArray = ((PyArrayObject *)values[10]);
37664 __pyx_v_unitNormalArray = ((PyArrayObject *)values[11]);
37666 goto __pyx_L4_argument_unpacking_done;
37667 __pyx_L5_argtuple_error:;
37668 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5801, __pyx_L3_error)
37670 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
37671 __Pyx_RefNannyFinishContext();
37673 __pyx_L4_argument_unpacking_done:;
37674 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5801, __pyx_L1_error)
37675 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5802, __pyx_L1_error)
37676 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5803, __pyx_L1_error)
37677 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 5804, __pyx_L1_error)
37678 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryNormals), __pyx_ptype_5numpy_ndarray, 1,
"boundaryNormals", 0))) __PYX_ERR(0, 5805, __pyx_L1_error)
37679 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryJacobians), __pyx_ptype_5numpy_ndarray, 1,
"boundaryJacobians", 0))) __PYX_ERR(0, 5806, __pyx_L1_error)
37680 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5807, __pyx_L1_error)
37681 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 5808, __pyx_L1_error)
37682 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianInverseArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianInverseArray", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
37683 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorArray", 0))) __PYX_ERR(0, 5810, __pyx_L1_error)
37684 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorDeterminantSqrtArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorDeterminantSqrtArray", 0))) __PYX_ERR(0, 5811, __pyx_L1_error)
37685 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_unitNormalArray), __pyx_ptype_5numpy_ndarray, 1,
"unitNormalArray", 0))) __PYX_ERR(0, 5812, __pyx_L1_error)
37686 __pyx_r = __pyx_pf_13cfemIntegrals_330parametricMaps_getJacobianValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_grad_psi, __pyx_v_boundaryNormals, __pyx_v_boundaryJacobians, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_jacobianInverseArray, __pyx_v_metricTensorArray, __pyx_v_metricTensorDeterminantSqrtArray, __pyx_v_unitNormalArray);
37693 __Pyx_RefNannyFinishContext();
37697 static PyObject *__pyx_pf_13cfemIntegrals_330parametricMaps_getJacobianValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray) {
37699 PyObject *__pyx_r = NULL;
37700 __Pyx_RefNannyDeclarations
37701 int __pyx_lineno = 0;
37702 const char *__pyx_filename = NULL;
37703 int __pyx_clineno = 0;
37704 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesGlobalExteriorTrace", 0);
37713 __pyx_v_nd = (__pyx_v_jacobianInverseArray->dimensions[2]);
37722 switch (__pyx_v_nd) {
37732 parametricMaps_getJacobianValuesGlobalExteriorTrace1D((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
37751 parametricMaps_getJacobianValuesGlobalExteriorTrace2D((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
37770 parametricMaps_getJacobianValuesGlobalExteriorTrace3D((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
37789 if (__Pyx_PrintOne(0, __pyx_kp_s_error_in_getJacobianValuesTrace) < 0) __PYX_ERR(0, 5863, __pyx_L1_error)
37802 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37805 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
37808 __Pyx_XGIVEREF(__pyx_r);
37809 __Pyx_RefNannyFinishContext();
37822 static PyObject *__pyx_pw_13cfemIntegrals_333parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37823 static PyMethodDef __pyx_mdef_13cfemIntegrals_333parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain = {
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_333parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain, METH_VARARGS|METH_KEYWORDS, 0};
37824 static PyObject *__pyx_pw_13cfemIntegrals_333parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37825 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
37826 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
37827 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
37828 PyArrayObject *__pyx_v_xtArray = 0;
37829 PyArrayObject *__pyx_v_grad_psi = 0;
37830 PyArrayObject *__pyx_v_boundaryNormals = 0;
37831 PyArrayObject *__pyx_v_boundaryJacobians = 0;
37832 PyArrayObject *__pyx_v_l2g = 0;
37833 PyArrayObject *__pyx_v_nodeArray = 0;
37834 PyArrayObject *__pyx_v_jacobianInverseArray = 0;
37835 PyArrayObject *__pyx_v_metricTensorArray = 0;
37836 PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray = 0;
37837 PyArrayObject *__pyx_v_unitNormalArray = 0;
37838 int __pyx_lineno = 0;
37839 const char *__pyx_filename = NULL;
37840 int __pyx_clineno = 0;
37841 PyObject *__pyx_r = 0;
37842 __Pyx_RefNannyDeclarations
37843 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain (wrapper)", 0);
37845 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_xtArray,&__pyx_n_s_grad_psi,&__pyx_n_s_boundaryNormals,&__pyx_n_s_boundaryJacobians,&__pyx_n_s_l2g,&__pyx_n_s_nodeArray,&__pyx_n_s_jacobianInverseArray,&__pyx_n_s_metricTensorArray,&__pyx_n_s_metricTensorDeterminantSqrtArray,&__pyx_n_s_unitNormalArray,0};
37846 PyObject* values[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
37847 if (unlikely(__pyx_kwds)) {
37848 Py_ssize_t kw_args;
37849 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37850 switch (pos_args) {
37851 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37852 CYTHON_FALLTHROUGH;
37853 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37854 CYTHON_FALLTHROUGH;
37855 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37856 CYTHON_FALLTHROUGH;
37857 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37858 CYTHON_FALLTHROUGH;
37859 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37860 CYTHON_FALLTHROUGH;
37861 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37862 CYTHON_FALLTHROUGH;
37863 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37864 CYTHON_FALLTHROUGH;
37865 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37866 CYTHON_FALLTHROUGH;
37867 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37868 CYTHON_FALLTHROUGH;
37869 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37870 CYTHON_FALLTHROUGH;
37871 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37872 CYTHON_FALLTHROUGH;
37873 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37874 CYTHON_FALLTHROUGH;
37875 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37876 CYTHON_FALLTHROUGH;
37878 default:
goto __pyx_L5_argtuple_error;
37880 kw_args = PyDict_Size(__pyx_kwds);
37881 switch (pos_args) {
37883 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
37884 else goto __pyx_L5_argtuple_error;
37885 CYTHON_FALLTHROUGH;
37887 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
37889 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 1); __PYX_ERR(0, 5864, __pyx_L3_error)
37891 CYTHON_FALLTHROUGH;
37893 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
37895 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 2); __PYX_ERR(0, 5864, __pyx_L3_error)
37897 CYTHON_FALLTHROUGH;
37899 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xtArray)) != 0)) kw_args--;
37901 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 3); __PYX_ERR(0, 5864, __pyx_L3_error)
37903 CYTHON_FALLTHROUGH;
37905 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_psi)) != 0)) kw_args--;
37907 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 4); __PYX_ERR(0, 5864, __pyx_L3_error)
37909 CYTHON_FALLTHROUGH;
37911 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryNormals)) != 0)) kw_args--;
37913 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 5); __PYX_ERR(0, 5864, __pyx_L3_error)
37915 CYTHON_FALLTHROUGH;
37917 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_boundaryJacobians)) != 0)) kw_args--;
37919 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 6); __PYX_ERR(0, 5864, __pyx_L3_error)
37921 CYTHON_FALLTHROUGH;
37923 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
37925 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 7); __PYX_ERR(0, 5864, __pyx_L3_error)
37927 CYTHON_FALLTHROUGH;
37929 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nodeArray)) != 0)) kw_args--;
37931 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 8); __PYX_ERR(0, 5864, __pyx_L3_error)
37933 CYTHON_FALLTHROUGH;
37935 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobianInverseArray)) != 0)) kw_args--;
37937 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 9); __PYX_ERR(0, 5864, __pyx_L3_error)
37939 CYTHON_FALLTHROUGH;
37941 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorArray)) != 0)) kw_args--;
37943 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 10); __PYX_ERR(0, 5864, __pyx_L3_error)
37945 CYTHON_FALLTHROUGH;
37947 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_metricTensorDeterminantSqrtArray)) != 0)) kw_args--;
37949 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 11); __PYX_ERR(0, 5864, __pyx_L3_error)
37951 CYTHON_FALLTHROUGH;
37953 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unitNormalArray)) != 0)) kw_args--;
37955 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, 12); __PYX_ERR(0, 5864, __pyx_L3_error)
37958 if (unlikely(kw_args > 0)) {
37959 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain") < 0)) __PYX_ERR(0, 5864, __pyx_L3_error)
37961 }
else if (PyTuple_GET_SIZE(__pyx_args) != 13) {
37962 goto __pyx_L5_argtuple_error;
37964 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37965 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37966 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37967 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37968 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37969 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37970 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37971 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
37972 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
37973 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
37974 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
37975 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
37976 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
37978 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
37979 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
37980 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
37981 __pyx_v_xtArray = ((PyArrayObject *)values[3]);
37982 __pyx_v_grad_psi = ((PyArrayObject *)values[4]);
37983 __pyx_v_boundaryNormals = ((PyArrayObject *)values[5]);
37984 __pyx_v_boundaryJacobians = ((PyArrayObject *)values[6]);
37985 __pyx_v_l2g = ((PyArrayObject *)values[7]);
37986 __pyx_v_nodeArray = ((PyArrayObject *)values[8]);
37987 __pyx_v_jacobianInverseArray = ((PyArrayObject *)values[9]);
37988 __pyx_v_metricTensorArray = ((PyArrayObject *)values[10]);
37989 __pyx_v_metricTensorDeterminantSqrtArray = ((PyArrayObject *)values[11]);
37990 __pyx_v_unitNormalArray = ((PyArrayObject *)values[12]);
37992 goto __pyx_L4_argument_unpacking_done;
37993 __pyx_L5_argtuple_error:;
37994 __Pyx_RaiseArgtupleInvalid(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 1, 13, 13, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5864, __pyx_L3_error)
37996 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", __pyx_clineno, __pyx_lineno, __pyx_filename);
37997 __Pyx_RefNannyFinishContext();
37999 __pyx_L4_argument_unpacking_done:;
38000 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5864, __pyx_L1_error)
38001 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5865, __pyx_L1_error)
38002 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5866, __pyx_L1_error)
38003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xtArray), __pyx_ptype_5numpy_ndarray, 1,
"xtArray", 0))) __PYX_ERR(0, 5867, __pyx_L1_error)
38004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_psi), __pyx_ptype_5numpy_ndarray, 1,
"grad_psi", 0))) __PYX_ERR(0, 5868, __pyx_L1_error)
38005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryNormals), __pyx_ptype_5numpy_ndarray, 1,
"boundaryNormals", 0))) __PYX_ERR(0, 5869, __pyx_L1_error)
38006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_boundaryJacobians), __pyx_ptype_5numpy_ndarray, 1,
"boundaryJacobians", 0))) __PYX_ERR(0, 5870, __pyx_L1_error)
38007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 5871, __pyx_L1_error)
38008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeArray), __pyx_ptype_5numpy_ndarray, 1,
"nodeArray", 0))) __PYX_ERR(0, 5872, __pyx_L1_error)
38009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobianInverseArray), __pyx_ptype_5numpy_ndarray, 1,
"jacobianInverseArray", 0))) __PYX_ERR(0, 5873, __pyx_L1_error)
38010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorArray", 0))) __PYX_ERR(0, 5874, __pyx_L1_error)
38011 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_metricTensorDeterminantSqrtArray), __pyx_ptype_5numpy_ndarray, 1,
"metricTensorDeterminantSqrtArray", 0))) __PYX_ERR(0, 5875, __pyx_L1_error)
38012 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_unitNormalArray), __pyx_ptype_5numpy_ndarray, 1,
"unitNormalArray", 0))) __PYX_ERR(0, 5876, __pyx_L1_error)
38013 __pyx_r = __pyx_pf_13cfemIntegrals_332parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_xtArray, __pyx_v_grad_psi, __pyx_v_boundaryNormals, __pyx_v_boundaryJacobians, __pyx_v_l2g, __pyx_v_nodeArray, __pyx_v_jacobianInverseArray, __pyx_v_metricTensorArray, __pyx_v_metricTensorDeterminantSqrtArray, __pyx_v_unitNormalArray);
38020 __Pyx_RefNannyFinishContext();
38024 static PyObject *__pyx_pf_13cfemIntegrals_332parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_xtArray, PyArrayObject *__pyx_v_grad_psi, PyArrayObject *__pyx_v_boundaryNormals, PyArrayObject *__pyx_v_boundaryJacobians, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_nodeArray, PyArrayObject *__pyx_v_jacobianInverseArray, PyArrayObject *__pyx_v_metricTensorArray, PyArrayObject *__pyx_v_metricTensorDeterminantSqrtArray, PyArrayObject *__pyx_v_unitNormalArray) {
38026 PyObject *__pyx_r = NULL;
38027 __Pyx_RefNannyDeclarations
38028 int __pyx_lineno = 0;
38029 const char *__pyx_filename = NULL;
38030 int __pyx_clineno = 0;
38031 __Pyx_RefNannySetupContext(
"parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", 0);
38040 __pyx_v_nd = (__pyx_v_jacobianInverseArray->dimensions[2]);
38049 switch (__pyx_v_nd) {
38059 parametricMaps_getJacobianValuesGlobalExteriorTrace1D((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
38078 parametricMaps_getJacobianValuesGlobalExteriorTrace2D_movingDomain((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_xtArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
38097 parametricMaps_getJacobianValuesGlobalExteriorTrace3D((__pyx_v_jacobianInverseArray->dimensions[1]), (__pyx_v_l2g->dimensions[1]), (__pyx_v_exteriorElementBoundariesArray->dimensions[0]), ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_psi->data), ((
double *)__pyx_v_boundaryNormals->data), ((
double *)__pyx_v_boundaryJacobians->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_nodeArray->data), ((
double *)__pyx_v_jacobianInverseArray->data), ((
double *)__pyx_v_metricTensorArray->data), ((
double *)__pyx_v_metricTensorDeterminantSqrtArray->data), ((
double *)__pyx_v_unitNormalArray->data));
38116 if (__Pyx_PrintOne(0, __pyx_kp_s_error_in_getJacobianValuesTrace) < 0) __PYX_ERR(0, 5928, __pyx_L1_error)
38129 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38132 __Pyx_AddTraceback(
"cfemIntegrals.parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain", __pyx_clineno, __pyx_lineno, __pyx_filename);
38135 __Pyx_XGIVEREF(__pyx_r);
38136 __Pyx_RefNannyFinishContext();
38149 static PyObject *__pyx_pw_13cfemIntegrals_335calculateWeightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38150 static PyMethodDef __pyx_mdef_13cfemIntegrals_335calculateWeightedShapeGlobalExteriorTrace = {
"calculateWeightedShapeGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_335calculateWeightedShapeGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
38151 static PyObject *__pyx_pw_13cfemIntegrals_335calculateWeightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38152 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
38153 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
38154 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
38155 PyArrayObject *__pyx_v_dSR = 0;
38156 PyArrayObject *__pyx_v_sqrt_det_g = 0;
38157 PyArrayObject *__pyx_v_w = 0;
38158 PyArrayObject *__pyx_v_w_dS = 0;
38159 int __pyx_lineno = 0;
38160 const char *__pyx_filename = NULL;
38161 int __pyx_clineno = 0;
38162 PyObject *__pyx_r = 0;
38163 __Pyx_RefNannyDeclarations
38164 __Pyx_RefNannySetupContext(
"calculateWeightedShapeGlobalExteriorTrace (wrapper)", 0);
38166 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_dSR,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_w,&__pyx_n_s_w_dS,0};
38167 PyObject* values[7] = {0,0,0,0,0,0,0};
38168 if (unlikely(__pyx_kwds)) {
38169 Py_ssize_t kw_args;
38170 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38171 switch (pos_args) {
38172 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38173 CYTHON_FALLTHROUGH;
38174 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38175 CYTHON_FALLTHROUGH;
38176 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38177 CYTHON_FALLTHROUGH;
38178 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38179 CYTHON_FALLTHROUGH;
38180 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38181 CYTHON_FALLTHROUGH;
38182 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38183 CYTHON_FALLTHROUGH;
38184 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38185 CYTHON_FALLTHROUGH;
38187 default:
goto __pyx_L5_argtuple_error;
38189 kw_args = PyDict_Size(__pyx_kwds);
38190 switch (pos_args) {
38192 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
38193 else goto __pyx_L5_argtuple_error;
38194 CYTHON_FALLTHROUGH;
38196 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
38198 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 1); __PYX_ERR(0, 5929, __pyx_L3_error)
38200 CYTHON_FALLTHROUGH;
38202 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
38204 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 2); __PYX_ERR(0, 5929, __pyx_L3_error)
38206 CYTHON_FALLTHROUGH;
38208 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dSR)) != 0)) kw_args--;
38210 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 3); __PYX_ERR(0, 5929, __pyx_L3_error)
38212 CYTHON_FALLTHROUGH;
38214 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
38216 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 4); __PYX_ERR(0, 5929, __pyx_L3_error)
38218 CYTHON_FALLTHROUGH;
38220 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w)) != 0)) kw_args--;
38222 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 5); __PYX_ERR(0, 5929, __pyx_L3_error)
38224 CYTHON_FALLTHROUGH;
38226 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
38228 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, 6); __PYX_ERR(0, 5929, __pyx_L3_error)
38231 if (unlikely(kw_args > 0)) {
38232 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateWeightedShapeGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5929, __pyx_L3_error)
38234 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
38235 goto __pyx_L5_argtuple_error;
38237 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38238 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38239 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38240 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38241 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38242 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38243 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38245 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
38246 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
38247 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
38248 __pyx_v_dSR = ((PyArrayObject *)values[3]);
38249 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[4]);
38250 __pyx_v_w = ((PyArrayObject *)values[5]);
38251 __pyx_v_w_dS = ((PyArrayObject *)values[6]);
38253 goto __pyx_L4_argument_unpacking_done;
38254 __pyx_L5_argtuple_error:;
38255 __Pyx_RaiseArgtupleInvalid(
"calculateWeightedShapeGlobalExteriorTrace", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5929, __pyx_L3_error)
38257 __Pyx_AddTraceback(
"cfemIntegrals.calculateWeightedShapeGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
38258 __Pyx_RefNannyFinishContext();
38260 __pyx_L4_argument_unpacking_done:;
38261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5929, __pyx_L1_error)
38262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5930, __pyx_L1_error)
38263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5931, __pyx_L1_error)
38264 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dSR), __pyx_ptype_5numpy_ndarray, 1,
"dSR", 0))) __PYX_ERR(0, 5932, __pyx_L1_error)
38265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 5933, __pyx_L1_error)
38266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w), __pyx_ptype_5numpy_ndarray, 1,
"w", 0))) __PYX_ERR(0, 5934, __pyx_L1_error)
38267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5935, __pyx_L1_error)
38268 __pyx_r = __pyx_pf_13cfemIntegrals_334calculateWeightedShapeGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_dSR, __pyx_v_sqrt_det_g, __pyx_v_w, __pyx_v_w_dS);
38275 __Pyx_RefNannyFinishContext();
38279 static PyObject *__pyx_pf_13cfemIntegrals_334calculateWeightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_dSR, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_w, PyArrayObject *__pyx_v_w_dS) {
38280 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
38281 int __pyx_v_nDOF_test_element;
38282 int __pyx_v_nExteriorElementBoundaries_global;
38283 PyObject *__pyx_r = NULL;
38284 __Pyx_RefNannyDeclarations
38285 __Pyx_RefNannySetupContext(
"calculateWeightedShapeGlobalExteriorTrace", 0);
38294 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_w_dS->dimensions[1]);
38303 __pyx_v_nDOF_test_element = (__pyx_v_w_dS->dimensions[2]);
38312 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
38321 calculateWeightedShapeGlobalExteriorTrace(__pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_dSR->data), ((
double *)__pyx_v_sqrt_det_g->data), ((
double *)__pyx_v_w->data), ((
double *)__pyx_v_w_dS->data));
38332 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38333 __Pyx_XGIVEREF(__pyx_r);
38334 __Pyx_RefNannyFinishContext();
38347 static PyObject *__pyx_pw_13cfemIntegrals_337calculateShape_X_weightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38348 static PyMethodDef __pyx_mdef_13cfemIntegrals_337calculateShape_X_weightedShapeGlobalExteriorTrace = {
"calculateShape_X_weightedShapeGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_337calculateShape_X_weightedShapeGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
38349 static PyObject *__pyx_pw_13cfemIntegrals_337calculateShape_X_weightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38350 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
38351 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
38352 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
38353 PyArrayObject *__pyx_v_v = 0;
38354 PyArrayObject *__pyx_v_w_dS = 0;
38355 PyArrayObject *__pyx_v_v_X_w_dS = 0;
38356 int __pyx_lineno = 0;
38357 const char *__pyx_filename = NULL;
38358 int __pyx_clineno = 0;
38359 PyObject *__pyx_r = 0;
38360 __Pyx_RefNannyDeclarations
38361 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShapeGlobalExteriorTrace (wrapper)", 0);
38363 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_v,&__pyx_n_s_w_dS,&__pyx_n_s_v_X_w_dS,0};
38364 PyObject* values[6] = {0,0,0,0,0,0};
38365 if (unlikely(__pyx_kwds)) {
38366 Py_ssize_t kw_args;
38367 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38368 switch (pos_args) {
38369 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38370 CYTHON_FALLTHROUGH;
38371 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38372 CYTHON_FALLTHROUGH;
38373 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38374 CYTHON_FALLTHROUGH;
38375 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38376 CYTHON_FALLTHROUGH;
38377 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38378 CYTHON_FALLTHROUGH;
38379 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38380 CYTHON_FALLTHROUGH;
38382 default:
goto __pyx_L5_argtuple_error;
38384 kw_args = PyDict_Size(__pyx_kwds);
38385 switch (pos_args) {
38387 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
38388 else goto __pyx_L5_argtuple_error;
38389 CYTHON_FALLTHROUGH;
38391 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
38393 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 1); __PYX_ERR(0, 5949, __pyx_L3_error)
38395 CYTHON_FALLTHROUGH;
38397 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
38399 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 2); __PYX_ERR(0, 5949, __pyx_L3_error)
38401 CYTHON_FALLTHROUGH;
38403 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
38405 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 3); __PYX_ERR(0, 5949, __pyx_L3_error)
38407 CYTHON_FALLTHROUGH;
38409 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
38411 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 4); __PYX_ERR(0, 5949, __pyx_L3_error)
38413 CYTHON_FALLTHROUGH;
38415 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v_X_w_dS)) != 0)) kw_args--;
38417 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 5); __PYX_ERR(0, 5949, __pyx_L3_error)
38420 if (unlikely(kw_args > 0)) {
38421 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateShape_X_weightedShapeGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5949, __pyx_L3_error)
38423 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
38424 goto __pyx_L5_argtuple_error;
38426 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38427 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38428 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38429 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38430 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38431 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38433 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
38434 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
38435 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
38436 __pyx_v_v = ((PyArrayObject *)values[3]);
38437 __pyx_v_w_dS = ((PyArrayObject *)values[4]);
38438 __pyx_v_v_X_w_dS = ((PyArrayObject *)values[5]);
38440 goto __pyx_L4_argument_unpacking_done;
38441 __pyx_L5_argtuple_error:;
38442 __Pyx_RaiseArgtupleInvalid(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5949, __pyx_L3_error)
38444 __Pyx_AddTraceback(
"cfemIntegrals.calculateShape_X_weightedShapeGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
38445 __Pyx_RefNannyFinishContext();
38447 __pyx_L4_argument_unpacking_done:;
38448 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5949, __pyx_L1_error)
38449 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5950, __pyx_L1_error)
38450 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5951, __pyx_L1_error)
38451 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 5952, __pyx_L1_error)
38452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5953, __pyx_L1_error)
38453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v_X_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"v_X_w_dS", 0))) __PYX_ERR(0, 5954, __pyx_L1_error)
38454 __pyx_r = __pyx_pf_13cfemIntegrals_336calculateShape_X_weightedShapeGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_v, __pyx_v_w_dS, __pyx_v_v_X_w_dS);
38461 __Pyx_RefNannyFinishContext();
38465 static PyObject *__pyx_pf_13cfemIntegrals_336calculateShape_X_weightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_v_X_w_dS) {
38466 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
38467 int __pyx_v_nDOF_trial_element;
38468 int __pyx_v_nDOF_test_element;
38469 int __pyx_v_nExteriorElementBoundaries_global;
38470 PyObject *__pyx_r = NULL;
38471 __Pyx_RefNannyDeclarations
38472 __Pyx_RefNannySetupContext(
"calculateShape_X_weightedShapeGlobalExteriorTrace", 0);
38481 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_v_X_w_dS->dimensions[1]);
38490 __pyx_v_nDOF_trial_element = (__pyx_v_v_X_w_dS->dimensions[2]);
38499 __pyx_v_nDOF_test_element = (__pyx_v_v_X_w_dS->dimensions[3]);
38508 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
38517 calculateShape_X_weightedShapeGlobalExteriorTrace(__pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_v_X_w_dS->data));
38528 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38529 __Pyx_XGIVEREF(__pyx_r);
38530 __Pyx_RefNannyFinishContext();
38543 static PyObject *__pyx_pw_13cfemIntegrals_339calculateGradShape_X_weightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38544 static PyMethodDef __pyx_mdef_13cfemIntegrals_339calculateGradShape_X_weightedShapeGlobalExteriorTrace = {
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_339calculateGradShape_X_weightedShapeGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
38545 static PyObject *__pyx_pw_13cfemIntegrals_339calculateGradShape_X_weightedShapeGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38546 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
38547 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
38548 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
38549 PyArrayObject *__pyx_v_grad_v = 0;
38550 PyArrayObject *__pyx_v_w_dS = 0;
38551 PyArrayObject *__pyx_v_grad_v_X_w_dS = 0;
38552 int __pyx_lineno = 0;
38553 const char *__pyx_filename = NULL;
38554 int __pyx_clineno = 0;
38555 PyObject *__pyx_r = 0;
38556 __Pyx_RefNannyDeclarations
38557 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace (wrapper)", 0);
38559 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_grad_v,&__pyx_n_s_w_dS,&__pyx_n_s_grad_v_X_w_dS,0};
38560 PyObject* values[6] = {0,0,0,0,0,0};
38561 if (unlikely(__pyx_kwds)) {
38562 Py_ssize_t kw_args;
38563 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38564 switch (pos_args) {
38565 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38566 CYTHON_FALLTHROUGH;
38567 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38568 CYTHON_FALLTHROUGH;
38569 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38570 CYTHON_FALLTHROUGH;
38571 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38572 CYTHON_FALLTHROUGH;
38573 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38574 CYTHON_FALLTHROUGH;
38575 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38576 CYTHON_FALLTHROUGH;
38578 default:
goto __pyx_L5_argtuple_error;
38580 kw_args = PyDict_Size(__pyx_kwds);
38581 switch (pos_args) {
38583 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
38584 else goto __pyx_L5_argtuple_error;
38585 CYTHON_FALLTHROUGH;
38587 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
38589 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 1); __PYX_ERR(0, 5969, __pyx_L3_error)
38591 CYTHON_FALLTHROUGH;
38593 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
38595 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 2); __PYX_ERR(0, 5969, __pyx_L3_error)
38597 CYTHON_FALLTHROUGH;
38599 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
38601 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 3); __PYX_ERR(0, 5969, __pyx_L3_error)
38603 CYTHON_FALLTHROUGH;
38605 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w_dS)) != 0)) kw_args--;
38607 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 4); __PYX_ERR(0, 5969, __pyx_L3_error)
38609 CYTHON_FALLTHROUGH;
38611 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v_X_w_dS)) != 0)) kw_args--;
38613 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, 5); __PYX_ERR(0, 5969, __pyx_L3_error)
38616 if (unlikely(kw_args > 0)) {
38617 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGradShape_X_weightedShapeGlobalExteriorTrace") < 0)) __PYX_ERR(0, 5969, __pyx_L3_error)
38619 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
38620 goto __pyx_L5_argtuple_error;
38622 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38623 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38624 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38625 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38626 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38627 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38629 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
38630 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
38631 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
38632 __pyx_v_grad_v = ((PyArrayObject *)values[3]);
38633 __pyx_v_w_dS = ((PyArrayObject *)values[4]);
38634 __pyx_v_grad_v_X_w_dS = ((PyArrayObject *)values[5]);
38636 goto __pyx_L4_argument_unpacking_done;
38637 __pyx_L5_argtuple_error:;
38638 __Pyx_RaiseArgtupleInvalid(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5969, __pyx_L3_error)
38640 __Pyx_AddTraceback(
"cfemIntegrals.calculateGradShape_X_weightedShapeGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
38641 __Pyx_RefNannyFinishContext();
38643 __pyx_L4_argument_unpacking_done:;
38644 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 5969, __pyx_L1_error)
38645 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 5970, __pyx_L1_error)
38646 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 5971, __pyx_L1_error)
38647 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 5972, __pyx_L1_error)
38648 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"w_dS", 0))) __PYX_ERR(0, 5973, __pyx_L1_error)
38649 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v_X_w_dS), __pyx_ptype_5numpy_ndarray, 1,
"grad_v_X_w_dS", 0))) __PYX_ERR(0, 5974, __pyx_L1_error)
38650 __pyx_r = __pyx_pf_13cfemIntegrals_338calculateGradShape_X_weightedShapeGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_grad_v, __pyx_v_w_dS, __pyx_v_grad_v_X_w_dS);
38657 __Pyx_RefNannyFinishContext();
38661 static PyObject *__pyx_pf_13cfemIntegrals_338calculateGradShape_X_weightedShapeGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_w_dS, PyArrayObject *__pyx_v_grad_v_X_w_dS) {
38662 int __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary;
38663 int __pyx_v_nDOF_trial_element;
38664 int __pyx_v_nDOF_test_element;
38665 int __pyx_v_nSpace;
38666 int __pyx_v_nExteriorElementBoundaries_global;
38667 PyObject *__pyx_r = NULL;
38668 __Pyx_RefNannyDeclarations
38669 __Pyx_RefNannySetupContext(
"calculateGradShape_X_weightedShapeGlobalExteriorTrace", 0);
38678 __pyx_v_nElementBoundaryQuadraturePoints_elementBoundary = (__pyx_v_grad_v_X_w_dS->dimensions[1]);
38687 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v_X_w_dS->dimensions[2]);
38696 __pyx_v_nDOF_test_element = (__pyx_v_grad_v_X_w_dS->dimensions[3]);
38705 __pyx_v_nSpace = (__pyx_v_grad_v_X_w_dS->dimensions[4]);
38714 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
38723 calculateGradShape_X_weightedShapeGlobalExteriorTrace(__pyx_v_nElementBoundaryQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_w_dS->data), ((
double *)__pyx_v_grad_v_X_w_dS->data));
38734 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38735 __Pyx_XGIVEREF(__pyx_r);
38736 __Pyx_RefNannyFinishContext();
38749 static PyObject *__pyx_pw_13cfemIntegrals_341calculateGlobalExteriorElementBoundaryIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38750 static PyMethodDef __pyx_mdef_13cfemIntegrals_341calculateGlobalExteriorElementBoundaryIntegrationWeights = {
"calculateGlobalExteriorElementBoundaryIntegrationWeights", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_341calculateGlobalExteriorElementBoundaryIntegrationWeights, METH_VARARGS|METH_KEYWORDS, 0};
38751 static PyObject *__pyx_pw_13cfemIntegrals_341calculateGlobalExteriorElementBoundaryIntegrationWeights(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38752 int __pyx_v_nQuadraturePoints_elementBoundary;
38753 int __pyx_v_nExteriorElementBoundaries_global;
38754 PyArrayObject *__pyx_v_sqrt_det_g = 0;
38755 PyArrayObject *__pyx_v_referenceWeights = 0;
38756 PyArrayObject *__pyx_v_weights = 0;
38757 int __pyx_lineno = 0;
38758 const char *__pyx_filename = NULL;
38759 int __pyx_clineno = 0;
38760 PyObject *__pyx_r = 0;
38761 __Pyx_RefNannyDeclarations
38762 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorElementBoundaryIntegrationWeights (wrapper)", 0);
38764 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nQuadraturePoints_elementBoundar,&__pyx_n_s_nExteriorElementBoundaries_globa,&__pyx_n_s_sqrt_det_g,&__pyx_n_s_referenceWeights,&__pyx_n_s_weights,0};
38765 PyObject* values[5] = {0,0,0,0,0};
38766 if (unlikely(__pyx_kwds)) {
38767 Py_ssize_t kw_args;
38768 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38769 switch (pos_args) {
38770 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38771 CYTHON_FALLTHROUGH;
38772 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38773 CYTHON_FALLTHROUGH;
38774 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38775 CYTHON_FALLTHROUGH;
38776 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38777 CYTHON_FALLTHROUGH;
38778 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38779 CYTHON_FALLTHROUGH;
38781 default:
goto __pyx_L5_argtuple_error;
38783 kw_args = PyDict_Size(__pyx_kwds);
38784 switch (pos_args) {
38786 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nQuadraturePoints_elementBoundar)) != 0)) kw_args--;
38787 else goto __pyx_L5_argtuple_error;
38788 CYTHON_FALLTHROUGH;
38790 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nExteriorElementBoundaries_globa)) != 0)) kw_args--;
38792 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 1, 5, 5, 1); __PYX_ERR(0, 5991, __pyx_L3_error)
38794 CYTHON_FALLTHROUGH;
38796 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sqrt_det_g)) != 0)) kw_args--;
38798 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 1, 5, 5, 2); __PYX_ERR(0, 5991, __pyx_L3_error)
38800 CYTHON_FALLTHROUGH;
38802 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_referenceWeights)) != 0)) kw_args--;
38804 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 1, 5, 5, 3); __PYX_ERR(0, 5991, __pyx_L3_error)
38806 CYTHON_FALLTHROUGH;
38808 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weights)) != 0)) kw_args--;
38810 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 1, 5, 5, 4); __PYX_ERR(0, 5991, __pyx_L3_error)
38813 if (unlikely(kw_args > 0)) {
38814 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateGlobalExteriorElementBoundaryIntegrationWeights") < 0)) __PYX_ERR(0, 5991, __pyx_L3_error)
38816 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
38817 goto __pyx_L5_argtuple_error;
38819 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38820 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38821 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38822 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38823 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38825 __pyx_v_nQuadraturePoints_elementBoundary = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nQuadraturePoints_elementBoundary == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5991, __pyx_L3_error)
38826 __pyx_v_nExteriorElementBoundaries_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nExteriorElementBoundaries_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5992, __pyx_L3_error)
38827 __pyx_v_sqrt_det_g = ((PyArrayObject *)values[2]);
38828 __pyx_v_referenceWeights = ((PyArrayObject *)values[3]);
38829 __pyx_v_weights = ((PyArrayObject *)values[4]);
38831 goto __pyx_L4_argument_unpacking_done;
38832 __pyx_L5_argtuple_error:;
38833 __Pyx_RaiseArgtupleInvalid(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5991, __pyx_L3_error)
38835 __Pyx_AddTraceback(
"cfemIntegrals.calculateGlobalExteriorElementBoundaryIntegrationWeights", __pyx_clineno, __pyx_lineno, __pyx_filename);
38836 __Pyx_RefNannyFinishContext();
38838 __pyx_L4_argument_unpacking_done:;
38839 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sqrt_det_g), __pyx_ptype_5numpy_ndarray, 1,
"sqrt_det_g", 0))) __PYX_ERR(0, 5993, __pyx_L1_error)
38840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_referenceWeights), __pyx_ptype_5numpy_ndarray, 1,
"referenceWeights", 0))) __PYX_ERR(0, 5994, __pyx_L1_error)
38841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weights), __pyx_ptype_5numpy_ndarray, 1,
"weights", 0))) __PYX_ERR(0, 5995, __pyx_L1_error)
38842 __pyx_r = __pyx_pf_13cfemIntegrals_340calculateGlobalExteriorElementBoundaryIntegrationWeights(__pyx_self, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nExteriorElementBoundaries_global, __pyx_v_sqrt_det_g, __pyx_v_referenceWeights, __pyx_v_weights);
38849 __Pyx_RefNannyFinishContext();
38853 static PyObject *__pyx_pf_13cfemIntegrals_340calculateGlobalExteriorElementBoundaryIntegrationWeights(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nQuadraturePoints_elementBoundary,
int __pyx_v_nExteriorElementBoundaries_global, PyArrayObject *__pyx_v_sqrt_det_g, PyArrayObject *__pyx_v_referenceWeights, PyArrayObject *__pyx_v_weights) {
38854 PyObject *__pyx_r = NULL;
38855 __Pyx_RefNannyDeclarations
38856 __Pyx_RefNannySetupContext(
"calculateGlobalExteriorElementBoundaryIntegrationWeights", 0);
38876 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
38877 __Pyx_XGIVEREF(__pyx_r);
38878 __Pyx_RefNannyFinishContext();
38891 static PyObject *__pyx_pw_13cfemIntegrals_343calculateFiniteElementFunctionValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
38892 static PyMethodDef __pyx_mdef_13cfemIntegrals_343calculateFiniteElementFunctionValuesGlobalExteriorTrace = {
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_343calculateFiniteElementFunctionValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
38893 static PyObject *__pyx_pw_13cfemIntegrals_343calculateFiniteElementFunctionValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
38894 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
38895 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
38896 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
38897 PyArrayObject *__pyx_v_l2g = 0;
38898 PyArrayObject *__pyx_v_dof = 0;
38899 PyArrayObject *__pyx_v_v = 0;
38900 PyArrayObject *__pyx_v_u = 0;
38901 int __pyx_lineno = 0;
38902 const char *__pyx_filename = NULL;
38903 int __pyx_clineno = 0;
38904 PyObject *__pyx_r = 0;
38905 __Pyx_RefNannyDeclarations
38906 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace (wrapper)", 0);
38908 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_v,&__pyx_n_s_u,0};
38909 PyObject* values[7] = {0,0,0,0,0,0,0};
38910 if (unlikely(__pyx_kwds)) {
38911 Py_ssize_t kw_args;
38912 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
38913 switch (pos_args) {
38914 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38915 CYTHON_FALLTHROUGH;
38916 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38917 CYTHON_FALLTHROUGH;
38918 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38919 CYTHON_FALLTHROUGH;
38920 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38921 CYTHON_FALLTHROUGH;
38922 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38923 CYTHON_FALLTHROUGH;
38924 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38925 CYTHON_FALLTHROUGH;
38926 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38927 CYTHON_FALLTHROUGH;
38929 default:
goto __pyx_L5_argtuple_error;
38931 kw_args = PyDict_Size(__pyx_kwds);
38932 switch (pos_args) {
38934 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
38935 else goto __pyx_L5_argtuple_error;
38936 CYTHON_FALLTHROUGH;
38938 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
38940 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 1); __PYX_ERR(0, 6001, __pyx_L3_error)
38942 CYTHON_FALLTHROUGH;
38944 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
38946 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 2); __PYX_ERR(0, 6001, __pyx_L3_error)
38948 CYTHON_FALLTHROUGH;
38950 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
38952 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 3); __PYX_ERR(0, 6001, __pyx_L3_error)
38954 CYTHON_FALLTHROUGH;
38956 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
38958 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 4); __PYX_ERR(0, 6001, __pyx_L3_error)
38960 CYTHON_FALLTHROUGH;
38962 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
38964 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 5); __PYX_ERR(0, 6001, __pyx_L3_error)
38966 CYTHON_FALLTHROUGH;
38968 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
38970 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, 6); __PYX_ERR(0, 6001, __pyx_L3_error)
38973 if (unlikely(kw_args > 0)) {
38974 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 6001, __pyx_L3_error)
38976 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
38977 goto __pyx_L5_argtuple_error;
38979 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
38980 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
38981 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
38982 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
38983 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
38984 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
38985 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
38987 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
38988 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
38989 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
38990 __pyx_v_l2g = ((PyArrayObject *)values[3]);
38991 __pyx_v_dof = ((PyArrayObject *)values[4]);
38992 __pyx_v_v = ((PyArrayObject *)values[5]);
38993 __pyx_v_u = ((PyArrayObject *)values[6]);
38995 goto __pyx_L4_argument_unpacking_done;
38996 __pyx_L5_argtuple_error:;
38997 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6001, __pyx_L3_error)
38999 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
39000 __Pyx_RefNannyFinishContext();
39002 __pyx_L4_argument_unpacking_done:;
39003 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 6001, __pyx_L1_error)
39004 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 6002, __pyx_L1_error)
39005 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 6003, __pyx_L1_error)
39006 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 6004, __pyx_L1_error)
39007 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 6005, __pyx_L1_error)
39008 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6006, __pyx_L1_error)
39009 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6007, __pyx_L1_error)
39010 __pyx_r = __pyx_pf_13cfemIntegrals_342calculateFiniteElementFunctionValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_l2g, __pyx_v_dof, __pyx_v_v, __pyx_v_u);
39017 __Pyx_RefNannyFinishContext();
39021 static PyObject *__pyx_pf_13cfemIntegrals_342calculateFiniteElementFunctionValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_u) {
39022 int __pyx_v_nQuadraturePoints_elementBoundary;
39023 int __pyx_v_nDOF_trial_element;
39024 int __pyx_v_nExteriorElementBoundaries_global;
39025 int __pyx_v_nComponents;
39027 PyObject *__pyx_r = NULL;
39028 __Pyx_RefNannyDeclarations
39031 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionValuesGlobalExteriorTrace", 0);
39040 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_v->dimensions[1]);
39049 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
39058 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
39067 __pyx_v_nComponents = 1;
39076 __pyx_t_1 = __pyx_v_u->nd;
39077 __pyx_v_nd = __pyx_t_1;
39086 __pyx_t_2 = ((__pyx_v_nd == 4) != 0);
39096 __pyx_v_nComponents = (__pyx_v_u->dimensions[3]);
39116 __pyx_v_nComponents = 1;
39127 calculateFiniteElementFunctionValuesGlobalExteriorTrace(__pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_u->data));
39138 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39139 __Pyx_XGIVEREF(__pyx_r);
39140 __Pyx_RefNannyFinishContext();
39153 static PyObject *__pyx_pw_13cfemIntegrals_345calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39154 static PyMethodDef __pyx_mdef_13cfemIntegrals_345calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace = {
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_345calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace, METH_VARARGS|METH_KEYWORDS, 0};
39155 static PyObject *__pyx_pw_13cfemIntegrals_345calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39156 PyArrayObject *__pyx_v_exteriorElementBoundariesArray = 0;
39157 PyArrayObject *__pyx_v_elementBoundaryElementsArray = 0;
39158 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray = 0;
39159 PyArrayObject *__pyx_v_l2g = 0;
39160 PyArrayObject *__pyx_v_dof = 0;
39161 PyArrayObject *__pyx_v_grad_v = 0;
39162 PyArrayObject *__pyx_v_grad_u = 0;
39163 int __pyx_lineno = 0;
39164 const char *__pyx_filename = NULL;
39165 int __pyx_clineno = 0;
39166 PyObject *__pyx_r = 0;
39167 __Pyx_RefNannyDeclarations
39168 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace (wrapper)", 0);
39170 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_exteriorElementBoundariesArray,&__pyx_n_s_elementBoundaryElementsArray,&__pyx_n_s_elementBoundaryLocalElementBound_2,&__pyx_n_s_l2g,&__pyx_n_s_dof,&__pyx_n_s_grad_v,&__pyx_n_s_grad_u,0};
39171 PyObject* values[7] = {0,0,0,0,0,0,0};
39172 if (unlikely(__pyx_kwds)) {
39173 Py_ssize_t kw_args;
39174 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39175 switch (pos_args) {
39176 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39177 CYTHON_FALLTHROUGH;
39178 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39179 CYTHON_FALLTHROUGH;
39180 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39181 CYTHON_FALLTHROUGH;
39182 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39183 CYTHON_FALLTHROUGH;
39184 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39185 CYTHON_FALLTHROUGH;
39186 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39187 CYTHON_FALLTHROUGH;
39188 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39189 CYTHON_FALLTHROUGH;
39191 default:
goto __pyx_L5_argtuple_error;
39193 kw_args = PyDict_Size(__pyx_kwds);
39194 switch (pos_args) {
39196 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundariesArray)) != 0)) kw_args--;
39197 else goto __pyx_L5_argtuple_error;
39198 CYTHON_FALLTHROUGH;
39200 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElementsArray)) != 0)) kw_args--;
39202 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 1); __PYX_ERR(0, 6028, __pyx_L3_error)
39204 CYTHON_FALLTHROUGH;
39206 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound_2)) != 0)) kw_args--;
39208 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 2); __PYX_ERR(0, 6028, __pyx_L3_error)
39210 CYTHON_FALLTHROUGH;
39212 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
39214 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 3); __PYX_ERR(0, 6028, __pyx_L3_error)
39216 CYTHON_FALLTHROUGH;
39218 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dof)) != 0)) kw_args--;
39220 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 4); __PYX_ERR(0, 6028, __pyx_L3_error)
39222 CYTHON_FALLTHROUGH;
39224 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
39226 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 5); __PYX_ERR(0, 6028, __pyx_L3_error)
39228 CYTHON_FALLTHROUGH;
39230 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_u)) != 0)) kw_args--;
39232 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, 6); __PYX_ERR(0, 6028, __pyx_L3_error)
39235 if (unlikely(kw_args > 0)) {
39236 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace") < 0)) __PYX_ERR(0, 6028, __pyx_L3_error)
39238 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
39239 goto __pyx_L5_argtuple_error;
39241 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39242 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39243 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39244 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39245 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39246 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39247 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39249 __pyx_v_exteriorElementBoundariesArray = ((PyArrayObject *)values[0]);
39250 __pyx_v_elementBoundaryElementsArray = ((PyArrayObject *)values[1]);
39251 __pyx_v_elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)values[2]);
39252 __pyx_v_l2g = ((PyArrayObject *)values[3]);
39253 __pyx_v_dof = ((PyArrayObject *)values[4]);
39254 __pyx_v_grad_v = ((PyArrayObject *)values[5]);
39255 __pyx_v_grad_u = ((PyArrayObject *)values[6]);
39257 goto __pyx_L4_argument_unpacking_done;
39258 __pyx_L5_argtuple_error:;
39259 __Pyx_RaiseArgtupleInvalid(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6028, __pyx_L3_error)
39261 __Pyx_AddTraceback(
"cfemIntegrals.calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", __pyx_clineno, __pyx_lineno, __pyx_filename);
39262 __Pyx_RefNannyFinishContext();
39264 __pyx_L4_argument_unpacking_done:;
39265 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundariesArray", 0))) __PYX_ERR(0, 6028, __pyx_L1_error)
39266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElementsArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElementsArray", 0))) __PYX_ERR(0, 6029, __pyx_L1_error)
39267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundariesArray), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundariesArray", 0))) __PYX_ERR(0, 6030, __pyx_L1_error)
39268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 6031, __pyx_L1_error)
39269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dof), __pyx_ptype_5numpy_ndarray, 1,
"dof", 0))) __PYX_ERR(0, 6032, __pyx_L1_error)
39270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 6033, __pyx_L1_error)
39271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_u), __pyx_ptype_5numpy_ndarray, 1,
"grad_u", 0))) __PYX_ERR(0, 6034, __pyx_L1_error)
39272 __pyx_r = __pyx_pf_13cfemIntegrals_344calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(__pyx_self, __pyx_v_exteriorElementBoundariesArray, __pyx_v_elementBoundaryElementsArray, __pyx_v_elementBoundaryLocalElementBoundariesArray, __pyx_v_l2g, __pyx_v_dof, __pyx_v_grad_v, __pyx_v_grad_u);
39279 __Pyx_RefNannyFinishContext();
39283 static PyObject *__pyx_pf_13cfemIntegrals_344calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_exteriorElementBoundariesArray, PyArrayObject *__pyx_v_elementBoundaryElementsArray, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundariesArray, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_dof, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_u) {
39284 int __pyx_v_nQuadraturePoints_elementBoundary;
39285 int __pyx_v_nDOF_trial_element;
39286 int __pyx_v_nExteriorElementBoundaries_global;
39287 int __pyx_v_nComponents;
39288 int __pyx_v_nSpace;
39290 PyObject *__pyx_r = NULL;
39291 __Pyx_RefNannyDeclarations
39294 __Pyx_RefNannySetupContext(
"calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace", 0);
39303 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_v->dimensions[1]);
39312 __pyx_v_nDOF_trial_element = (__pyx_v_grad_v->dimensions[2]);
39321 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundariesArray->dimensions[0]);
39330 __pyx_v_nComponents = 1;
39339 __pyx_v_nSpace = 1;
39348 __pyx_t_1 = __pyx_v_grad_u->nd;
39349 __pyx_v_nd = __pyx_t_1;
39358 __pyx_t_2 = ((__pyx_v_nd == 4) != 0);
39368 __pyx_v_nComponents = (__pyx_v_grad_u->dimensions[2]);
39377 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[3]);
39397 __pyx_v_nComponents = 1;
39406 __pyx_v_nSpace = (__pyx_v_grad_u->dimensions[2]);
39417 calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace(__pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_trial_element, __pyx_v_nComponents, __pyx_v_nSpace, __pyx_v_nExteriorElementBoundaries_global, ((
int *)__pyx_v_exteriorElementBoundariesArray->data), ((
int *)__pyx_v_elementBoundaryElementsArray->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundariesArray->data), ((
int *)__pyx_v_l2g->data), ((
double *)__pyx_v_dof->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_u->data));
39428 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39429 __Pyx_XGIVEREF(__pyx_r);
39430 __Pyx_RefNannyFinishContext();
39443 static PyObject *__pyx_pw_13cfemIntegrals_347copyBetweenFreeUnknownsAndGlobalUnknowns(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39444 static PyMethodDef __pyx_mdef_13cfemIntegrals_347copyBetweenFreeUnknownsAndGlobalUnknowns = {
"copyBetweenFreeUnknownsAndGlobalUnknowns", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_347copyBetweenFreeUnknownsAndGlobalUnknowns, METH_VARARGS|METH_KEYWORDS, 0};
39445 static PyObject *__pyx_pw_13cfemIntegrals_347copyBetweenFreeUnknownsAndGlobalUnknowns(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39446 int __pyx_v_nDOF2set;
39447 int __pyx_v_offset;
39448 int __pyx_v_stride;
39449 PyArrayObject *__pyx_v_globalDOFids = 0;
39450 PyArrayObject *__pyx_v_freeDOFids = 0;
39451 PyArrayObject *__pyx_v_free_u = 0;
39452 PyArrayObject *__pyx_v_u = 0;
39453 int __pyx_lineno = 0;
39454 const char *__pyx_filename = NULL;
39455 int __pyx_clineno = 0;
39456 PyObject *__pyx_r = 0;
39457 __Pyx_RefNannyDeclarations
39458 __Pyx_RefNannySetupContext(
"copyBetweenFreeUnknownsAndGlobalUnknowns (wrapper)", 0);
39460 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nDOF2set,&__pyx_n_s_offset,&__pyx_n_s_stride,&__pyx_n_s_globalDOFids,&__pyx_n_s_freeDOFids,&__pyx_n_s_free_u,&__pyx_n_s_u,0};
39461 PyObject* values[7] = {0,0,0,0,0,0,0};
39462 if (unlikely(__pyx_kwds)) {
39463 Py_ssize_t kw_args;
39464 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39465 switch (pos_args) {
39466 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39467 CYTHON_FALLTHROUGH;
39468 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39469 CYTHON_FALLTHROUGH;
39470 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39471 CYTHON_FALLTHROUGH;
39472 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39473 CYTHON_FALLTHROUGH;
39474 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39475 CYTHON_FALLTHROUGH;
39476 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39477 CYTHON_FALLTHROUGH;
39478 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39479 CYTHON_FALLTHROUGH;
39481 default:
goto __pyx_L5_argtuple_error;
39483 kw_args = PyDict_Size(__pyx_kwds);
39484 switch (pos_args) {
39486 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nDOF2set)) != 0)) kw_args--;
39487 else goto __pyx_L5_argtuple_error;
39488 CYTHON_FALLTHROUGH;
39490 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset)) != 0)) kw_args--;
39492 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 1); __PYX_ERR(0, 6059, __pyx_L3_error)
39494 CYTHON_FALLTHROUGH;
39496 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride)) != 0)) kw_args--;
39498 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 2); __PYX_ERR(0, 6059, __pyx_L3_error)
39500 CYTHON_FALLTHROUGH;
39502 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_globalDOFids)) != 0)) kw_args--;
39504 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 3); __PYX_ERR(0, 6059, __pyx_L3_error)
39506 CYTHON_FALLTHROUGH;
39508 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeDOFids)) != 0)) kw_args--;
39510 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 4); __PYX_ERR(0, 6059, __pyx_L3_error)
39512 CYTHON_FALLTHROUGH;
39514 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_free_u)) != 0)) kw_args--;
39516 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 5); __PYX_ERR(0, 6059, __pyx_L3_error)
39518 CYTHON_FALLTHROUGH;
39520 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
39522 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, 6); __PYX_ERR(0, 6059, __pyx_L3_error)
39525 if (unlikely(kw_args > 0)) {
39526 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"copyBetweenFreeUnknownsAndGlobalUnknowns") < 0)) __PYX_ERR(0, 6059, __pyx_L3_error)
39528 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
39529 goto __pyx_L5_argtuple_error;
39531 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39532 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39533 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39534 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39535 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39536 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39537 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39539 __pyx_v_nDOF2set = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nDOF2set == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6059, __pyx_L3_error)
39540 __pyx_v_offset = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_offset == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6060, __pyx_L3_error)
39541 __pyx_v_stride = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_stride == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6061, __pyx_L3_error)
39542 __pyx_v_globalDOFids = ((PyArrayObject *)values[3]);
39543 __pyx_v_freeDOFids = ((PyArrayObject *)values[4]);
39544 __pyx_v_free_u = ((PyArrayObject *)values[5]);
39545 __pyx_v_u = ((PyArrayObject *)values[6]);
39547 goto __pyx_L4_argument_unpacking_done;
39548 __pyx_L5_argtuple_error:;
39549 __Pyx_RaiseArgtupleInvalid(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6059, __pyx_L3_error)
39551 __Pyx_AddTraceback(
"cfemIntegrals.copyBetweenFreeUnknownsAndGlobalUnknowns", __pyx_clineno, __pyx_lineno, __pyx_filename);
39552 __Pyx_RefNannyFinishContext();
39554 __pyx_L4_argument_unpacking_done:;
39555 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_globalDOFids), __pyx_ptype_5numpy_ndarray, 1,
"globalDOFids", 0))) __PYX_ERR(0, 6062, __pyx_L1_error)
39556 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeDOFids), __pyx_ptype_5numpy_ndarray, 1,
"freeDOFids", 0))) __PYX_ERR(0, 6063, __pyx_L1_error)
39557 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_free_u), __pyx_ptype_5numpy_ndarray, 1,
"free_u", 0))) __PYX_ERR(0, 6064, __pyx_L1_error)
39558 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6065, __pyx_L1_error)
39559 __pyx_r = __pyx_pf_13cfemIntegrals_346copyBetweenFreeUnknownsAndGlobalUnknowns(__pyx_self, __pyx_v_nDOF2set, __pyx_v_offset, __pyx_v_stride, __pyx_v_globalDOFids, __pyx_v_freeDOFids, __pyx_v_free_u, __pyx_v_u);
39566 __Pyx_RefNannyFinishContext();
39570 static PyObject *__pyx_pf_13cfemIntegrals_346copyBetweenFreeUnknownsAndGlobalUnknowns(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nDOF2set,
int __pyx_v_offset,
int __pyx_v_stride, PyArrayObject *__pyx_v_globalDOFids, PyArrayObject *__pyx_v_freeDOFids, PyArrayObject *__pyx_v_free_u, PyArrayObject *__pyx_v_u) {
39571 PyObject *__pyx_r = NULL;
39572 __Pyx_RefNannyDeclarations
39574 PyObject *__pyx_t_2 = NULL;
39575 PyObject *__pyx_t_3 = NULL;
39576 int __pyx_lineno = 0;
39577 const char *__pyx_filename = NULL;
39578 int __pyx_clineno = 0;
39579 __Pyx_RefNannySetupContext(
"copyBetweenFreeUnknownsAndGlobalUnknowns", 0);
39588 __pyx_t_1 = ((__pyx_v_nDOF2set > 0) != 0);
39598 copyFreeUnknownsToGlobalUnknowns((__pyx_v_globalDOFids->dimensions[0]), __pyx_v_offset, __pyx_v_stride, ((
int *)__pyx_v_globalDOFids->data), ((
int *)__pyx_v_freeDOFids->data), ((
double *)__pyx_v_free_u->data), ((
double *)__pyx_v_u->data));
39617 __pyx_t_1 = ((__pyx_v_nDOF2set == 0) != 0);
39627 copyGlobalUnknownsToFreeUnknowns((__pyx_v_globalDOFids->dimensions[0]), __pyx_v_offset, __pyx_v_stride, ((
int *)__pyx_v_globalDOFids->data), ((
int *)__pyx_v_freeDOFids->data), ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_free_u->data));
39647 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_nDOF2set);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6083, __pyx_L1_error)
39648 __Pyx_GOTREF(__pyx_t_2);
39649 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6083, __pyx_L1_error)
39650 __Pyx_GOTREF(__pyx_t_3);
39651 __Pyx_INCREF(__pyx_kp_s_error_copyFromFreeToGlobal);
39652 __Pyx_GIVEREF(__pyx_kp_s_error_copyFromFreeToGlobal);
39653 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_s_error_copyFromFreeToGlobal);
39654 __Pyx_GIVEREF(__pyx_t_2);
39655 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
39656 __Pyx_INCREF(__pyx_kp_s_not_recognized_quitting);
39657 __Pyx_GIVEREF(__pyx_kp_s_not_recognized_quitting);
39658 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_s_not_recognized_quitting);
39660 if (__Pyx_PrintOne(0, __pyx_t_3) < 0) __PYX_ERR(0, 6083, __pyx_L1_error)
39661 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
39674 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39677 __Pyx_XDECREF(__pyx_t_2);
39678 __Pyx_XDECREF(__pyx_t_3);
39679 __Pyx_AddTraceback(
"cfemIntegrals.copyBetweenFreeUnknownsAndGlobalUnknowns", __pyx_clineno, __pyx_lineno, __pyx_filename);
39682 __Pyx_XGIVEREF(__pyx_r);
39683 __Pyx_RefNannyFinishContext();
39696 static PyObject *__pyx_pw_13cfemIntegrals_349updateInteriorElementBoundaryDiffusionAdjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39697 static PyMethodDef __pyx_mdef_13cfemIntegrals_349updateInteriorElementBoundaryDiffusionAdjoint = {
"updateInteriorElementBoundaryDiffusionAdjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_349updateInteriorElementBoundaryDiffusionAdjoint, METH_VARARGS|METH_KEYWORDS, 0};
39698 static PyObject *__pyx_pw_13cfemIntegrals_349updateInteriorElementBoundaryDiffusionAdjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39699 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
39700 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
39701 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
39702 double __pyx_v_sigma;
39703 PyArrayObject *__pyx_v_u = 0;
39704 PyArrayObject *__pyx_v_n = 0;
39705 PyArrayObject *__pyx_v_a = 0;
39706 PyArrayObject *__pyx_v_grad_w = 0;
39707 PyArrayObject *__pyx_v_dS = 0;
39708 PyArrayObject *__pyx_v_residual = 0;
39709 int __pyx_lineno = 0;
39710 const char *__pyx_filename = NULL;
39711 int __pyx_clineno = 0;
39712 PyObject *__pyx_r = 0;
39713 __Pyx_RefNannyDeclarations
39714 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusionAdjoint (wrapper)", 0);
39716 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_sigma,&__pyx_n_s_u,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_residual,0};
39717 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
39718 if (unlikely(__pyx_kwds)) {
39719 Py_ssize_t kw_args;
39720 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39721 switch (pos_args) {
39722 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39723 CYTHON_FALLTHROUGH;
39724 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39725 CYTHON_FALLTHROUGH;
39726 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39727 CYTHON_FALLTHROUGH;
39728 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39729 CYTHON_FALLTHROUGH;
39730 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39731 CYTHON_FALLTHROUGH;
39732 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39733 CYTHON_FALLTHROUGH;
39734 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39735 CYTHON_FALLTHROUGH;
39736 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39737 CYTHON_FALLTHROUGH;
39738 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39739 CYTHON_FALLTHROUGH;
39740 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39741 CYTHON_FALLTHROUGH;
39743 default:
goto __pyx_L5_argtuple_error;
39745 kw_args = PyDict_Size(__pyx_kwds);
39746 switch (pos_args) {
39748 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
39749 else goto __pyx_L5_argtuple_error;
39750 CYTHON_FALLTHROUGH;
39752 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
39754 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 1); __PYX_ERR(0, 6084, __pyx_L3_error)
39756 CYTHON_FALLTHROUGH;
39758 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
39760 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 2); __PYX_ERR(0, 6084, __pyx_L3_error)
39762 CYTHON_FALLTHROUGH;
39764 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
39766 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 3); __PYX_ERR(0, 6084, __pyx_L3_error)
39768 CYTHON_FALLTHROUGH;
39770 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
39772 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 4); __PYX_ERR(0, 6084, __pyx_L3_error)
39774 CYTHON_FALLTHROUGH;
39776 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
39778 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 5); __PYX_ERR(0, 6084, __pyx_L3_error)
39780 CYTHON_FALLTHROUGH;
39782 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
39784 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 6); __PYX_ERR(0, 6084, __pyx_L3_error)
39786 CYTHON_FALLTHROUGH;
39788 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
39790 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 7); __PYX_ERR(0, 6084, __pyx_L3_error)
39792 CYTHON_FALLTHROUGH;
39794 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
39796 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 8); __PYX_ERR(0, 6084, __pyx_L3_error)
39798 CYTHON_FALLTHROUGH;
39800 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
39802 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, 9); __PYX_ERR(0, 6084, __pyx_L3_error)
39805 if (unlikely(kw_args > 0)) {
39806 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryDiffusionAdjoint") < 0)) __PYX_ERR(0, 6084, __pyx_L3_error)
39808 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
39809 goto __pyx_L5_argtuple_error;
39811 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39812 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39813 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39814 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39815 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39816 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39817 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39818 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39819 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39820 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39822 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[0]);
39823 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[1]);
39824 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[2]);
39825 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6087, __pyx_L3_error)
39826 __pyx_v_u = ((PyArrayObject *)values[4]);
39827 __pyx_v_n = ((PyArrayObject *)values[5]);
39828 __pyx_v_a = ((PyArrayObject *)values[6]);
39829 __pyx_v_grad_w = ((PyArrayObject *)values[7]);
39830 __pyx_v_dS = ((PyArrayObject *)values[8]);
39831 __pyx_v_residual = ((PyArrayObject *)values[9]);
39833 goto __pyx_L4_argument_unpacking_done;
39834 __pyx_L5_argtuple_error:;
39835 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6084, __pyx_L3_error)
39837 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryDiffusionAdjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
39838 __Pyx_RefNannyFinishContext();
39840 __pyx_L4_argument_unpacking_done:;
39841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 6084, __pyx_L1_error)
39842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6085, __pyx_L1_error)
39843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6086, __pyx_L1_error)
39844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6088, __pyx_L1_error)
39845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6089, __pyx_L1_error)
39846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6090, __pyx_L1_error)
39847 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6091, __pyx_L1_error)
39848 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6092, __pyx_L1_error)
39849 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 6093, __pyx_L1_error)
39850 __pyx_r = __pyx_pf_13cfemIntegrals_348updateInteriorElementBoundaryDiffusionAdjoint(__pyx_self, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_sigma, __pyx_v_u, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_residual);
39857 __Pyx_RefNannyFinishContext();
39861 static PyObject *__pyx_pf_13cfemIntegrals_348updateInteriorElementBoundaryDiffusionAdjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual) {
39862 int __pyx_v_nInteriorElementBoundaries_global;
39863 int __pyx_v_nElementBoundaries_element;
39864 int __pyx_v_nQuadraturePoints_elementBoundary;
39865 int __pyx_v_nDOF_test_element;
39866 int __pyx_v_nSpace;
39867 PyObject *__pyx_r = NULL;
39868 __Pyx_RefNannyDeclarations
39869 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusionAdjoint", 0);
39878 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
39887 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_w->dimensions[1]);
39896 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[2]);
39905 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[3]);
39914 __pyx_v_nSpace = (__pyx_v_grad_w->dimensions[4]);
39923 updateInteriorElementBoundaryDiffusionAdjoint(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), __pyx_v_sigma, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_residual->data));
39934 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39935 __Pyx_XGIVEREF(__pyx_r);
39936 __Pyx_RefNannyFinishContext();
39949 static PyObject *__pyx_pw_13cfemIntegrals_351updateExteriorElementBoundaryDiffusionAdjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39950 static PyMethodDef __pyx_mdef_13cfemIntegrals_351updateExteriorElementBoundaryDiffusionAdjoint = {
"updateExteriorElementBoundaryDiffusionAdjoint", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_351updateExteriorElementBoundaryDiffusionAdjoint, METH_VARARGS|METH_KEYWORDS, 0};
39951 static PyObject *__pyx_pw_13cfemIntegrals_351updateExteriorElementBoundaryDiffusionAdjoint(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39952 PyArrayObject *__pyx_v_isDOFBoundary = 0;
39953 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
39954 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
39955 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
39956 double __pyx_v_sigma;
39957 PyArrayObject *__pyx_v_u = 0;
39958 PyArrayObject *__pyx_v_ub = 0;
39959 PyArrayObject *__pyx_v_n = 0;
39960 PyArrayObject *__pyx_v_a = 0;
39961 PyArrayObject *__pyx_v_grad_w = 0;
39962 PyArrayObject *__pyx_v_dS = 0;
39963 PyArrayObject *__pyx_v_residual = 0;
39964 int __pyx_lineno = 0;
39965 const char *__pyx_filename = NULL;
39966 int __pyx_clineno = 0;
39967 PyObject *__pyx_r = 0;
39968 __Pyx_RefNannyDeclarations
39969 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusionAdjoint (wrapper)", 0);
39971 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isDOFBoundary,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_sigma,&__pyx_n_s_u,&__pyx_n_s_ub,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_residual,0};
39972 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
39973 if (unlikely(__pyx_kwds)) {
39974 Py_ssize_t kw_args;
39975 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39976 switch (pos_args) {
39977 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
39978 CYTHON_FALLTHROUGH;
39979 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
39980 CYTHON_FALLTHROUGH;
39981 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39982 CYTHON_FALLTHROUGH;
39983 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39984 CYTHON_FALLTHROUGH;
39985 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39986 CYTHON_FALLTHROUGH;
39987 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39988 CYTHON_FALLTHROUGH;
39989 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39990 CYTHON_FALLTHROUGH;
39991 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39992 CYTHON_FALLTHROUGH;
39993 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39994 CYTHON_FALLTHROUGH;
39995 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39996 CYTHON_FALLTHROUGH;
39997 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39998 CYTHON_FALLTHROUGH;
39999 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40000 CYTHON_FALLTHROUGH;
40002 default:
goto __pyx_L5_argtuple_error;
40004 kw_args = PyDict_Size(__pyx_kwds);
40005 switch (pos_args) {
40007 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
40008 else goto __pyx_L5_argtuple_error;
40009 CYTHON_FALLTHROUGH;
40011 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
40013 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 1); __PYX_ERR(0, 6114, __pyx_L3_error)
40015 CYTHON_FALLTHROUGH;
40017 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
40019 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 2); __PYX_ERR(0, 6114, __pyx_L3_error)
40021 CYTHON_FALLTHROUGH;
40023 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
40025 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 3); __PYX_ERR(0, 6114, __pyx_L3_error)
40027 CYTHON_FALLTHROUGH;
40029 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
40031 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 4); __PYX_ERR(0, 6114, __pyx_L3_error)
40033 CYTHON_FALLTHROUGH;
40035 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
40037 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 5); __PYX_ERR(0, 6114, __pyx_L3_error)
40039 CYTHON_FALLTHROUGH;
40041 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ub)) != 0)) kw_args--;
40043 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 6); __PYX_ERR(0, 6114, __pyx_L3_error)
40045 CYTHON_FALLTHROUGH;
40047 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
40049 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 7); __PYX_ERR(0, 6114, __pyx_L3_error)
40051 CYTHON_FALLTHROUGH;
40053 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
40055 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 8); __PYX_ERR(0, 6114, __pyx_L3_error)
40057 CYTHON_FALLTHROUGH;
40059 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
40061 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 9); __PYX_ERR(0, 6114, __pyx_L3_error)
40063 CYTHON_FALLTHROUGH;
40065 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
40067 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 10); __PYX_ERR(0, 6114, __pyx_L3_error)
40069 CYTHON_FALLTHROUGH;
40071 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
40073 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, 11); __PYX_ERR(0, 6114, __pyx_L3_error)
40076 if (unlikely(kw_args > 0)) {
40077 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryDiffusionAdjoint") < 0)) __PYX_ERR(0, 6114, __pyx_L3_error)
40079 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
40080 goto __pyx_L5_argtuple_error;
40082 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40083 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40084 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40085 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40086 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40087 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40088 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40089 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40090 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40091 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40092 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40093 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40095 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[0]);
40096 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[1]);
40097 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[2]);
40098 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[3]);
40099 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6118, __pyx_L3_error)
40100 __pyx_v_u = ((PyArrayObject *)values[5]);
40101 __pyx_v_ub = ((PyArrayObject *)values[6]);
40102 __pyx_v_n = ((PyArrayObject *)values[7]);
40103 __pyx_v_a = ((PyArrayObject *)values[8]);
40104 __pyx_v_grad_w = ((PyArrayObject *)values[9]);
40105 __pyx_v_dS = ((PyArrayObject *)values[10]);
40106 __pyx_v_residual = ((PyArrayObject *)values[11]);
40108 goto __pyx_L4_argument_unpacking_done;
40109 __pyx_L5_argtuple_error:;
40110 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6114, __pyx_L3_error)
40112 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryDiffusionAdjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
40113 __Pyx_RefNannyFinishContext();
40115 __pyx_L4_argument_unpacking_done:;
40116 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6114, __pyx_L1_error)
40117 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6115, __pyx_L1_error)
40118 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6116, __pyx_L1_error)
40119 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6117, __pyx_L1_error)
40120 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6119, __pyx_L1_error)
40121 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ub), __pyx_ptype_5numpy_ndarray, 1,
"ub", 0))) __PYX_ERR(0, 6120, __pyx_L1_error)
40122 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6121, __pyx_L1_error)
40123 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6122, __pyx_L1_error)
40124 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6123, __pyx_L1_error)
40125 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6124, __pyx_L1_error)
40126 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 6125, __pyx_L1_error)
40127 __pyx_r = __pyx_pf_13cfemIntegrals_350updateExteriorElementBoundaryDiffusionAdjoint(__pyx_self, __pyx_v_isDOFBoundary, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_sigma, __pyx_v_u, __pyx_v_ub, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_residual);
40134 __Pyx_RefNannyFinishContext();
40138 static PyObject *__pyx_pf_13cfemIntegrals_350updateExteriorElementBoundaryDiffusionAdjoint(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_ub, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual) {
40139 int __pyx_v_nExteriorElementBoundaries_global;
40140 int __pyx_v_nQuadraturePoints_elementBoundary;
40141 int __pyx_v_nDOF_test_element;
40142 int __pyx_v_nSpace;
40143 PyObject *__pyx_r = NULL;
40144 __Pyx_RefNannyDeclarations
40145 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusionAdjoint", 0);
40154 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
40163 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[1]);
40172 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[2]);
40181 __pyx_v_nSpace = (__pyx_v_grad_w->dimensions[3]);
40190 updateExteriorElementBoundaryDiffusionAdjoint(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), __pyx_v_sigma, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_ub->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_residual->data));
40201 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40202 __Pyx_XGIVEREF(__pyx_r);
40203 __Pyx_RefNannyFinishContext();
40216 static PyObject *__pyx_pw_13cfemIntegrals_353updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40217 static PyMethodDef __pyx_mdef_13cfemIntegrals_353updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense = {
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_353updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense, METH_VARARGS|METH_KEYWORDS, 0};
40218 static PyObject *__pyx_pw_13cfemIntegrals_353updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40219 int __pyx_v_offset_r;
40220 int __pyx_v_stride_r;
40221 int __pyx_v_offset_u;
40222 int __pyx_v_stride_u;
40223 int __pyx_v_nFreeVDOF_global;
40224 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
40225 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
40226 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
40227 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
40228 PyArrayObject *__pyx_v_freeLocal_r = 0;
40229 PyArrayObject *__pyx_v_freeGlobal_r = 0;
40230 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
40231 PyArrayObject *__pyx_v_freeLocal_u = 0;
40232 PyArrayObject *__pyx_v_freeGlobal_u = 0;
40233 double __pyx_v_sigma;
40234 PyArrayObject *__pyx_v_v = 0;
40235 PyArrayObject *__pyx_v_n = 0;
40236 PyArrayObject *__pyx_v_a = 0;
40237 PyArrayObject *__pyx_v_grad_w = 0;
40238 PyArrayObject *__pyx_v_dS = 0;
40239 PyArrayObject *__pyx_v_jac = 0;
40240 int __pyx_lineno = 0;
40241 const char *__pyx_filename = NULL;
40242 int __pyx_clineno = 0;
40243 PyObject *__pyx_r = 0;
40244 __Pyx_RefNannyDeclarations
40245 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense (wrapper)", 0);
40247 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
40248 PyObject* values[21] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40249 if (unlikely(__pyx_kwds)) {
40250 Py_ssize_t kw_args;
40251 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40252 switch (pos_args) {
40253 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40254 CYTHON_FALLTHROUGH;
40255 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40256 CYTHON_FALLTHROUGH;
40257 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40258 CYTHON_FALLTHROUGH;
40259 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40260 CYTHON_FALLTHROUGH;
40261 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40262 CYTHON_FALLTHROUGH;
40263 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40264 CYTHON_FALLTHROUGH;
40265 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40266 CYTHON_FALLTHROUGH;
40267 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40268 CYTHON_FALLTHROUGH;
40269 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40270 CYTHON_FALLTHROUGH;
40271 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40272 CYTHON_FALLTHROUGH;
40273 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40274 CYTHON_FALLTHROUGH;
40275 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40276 CYTHON_FALLTHROUGH;
40277 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40278 CYTHON_FALLTHROUGH;
40279 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40280 CYTHON_FALLTHROUGH;
40281 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40282 CYTHON_FALLTHROUGH;
40283 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40284 CYTHON_FALLTHROUGH;
40285 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40286 CYTHON_FALLTHROUGH;
40287 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40288 CYTHON_FALLTHROUGH;
40289 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40290 CYTHON_FALLTHROUGH;
40291 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40292 CYTHON_FALLTHROUGH;
40293 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40294 CYTHON_FALLTHROUGH;
40296 default:
goto __pyx_L5_argtuple_error;
40298 kw_args = PyDict_Size(__pyx_kwds);
40299 switch (pos_args) {
40301 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
40302 else goto __pyx_L5_argtuple_error;
40303 CYTHON_FALLTHROUGH;
40305 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
40307 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 1); __PYX_ERR(0, 6146, __pyx_L3_error)
40309 CYTHON_FALLTHROUGH;
40311 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
40313 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 2); __PYX_ERR(0, 6146, __pyx_L3_error)
40315 CYTHON_FALLTHROUGH;
40317 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
40319 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 3); __PYX_ERR(0, 6146, __pyx_L3_error)
40321 CYTHON_FALLTHROUGH;
40323 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
40325 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 4); __PYX_ERR(0, 6146, __pyx_L3_error)
40327 CYTHON_FALLTHROUGH;
40329 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
40331 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 5); __PYX_ERR(0, 6146, __pyx_L3_error)
40333 CYTHON_FALLTHROUGH;
40335 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
40337 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 6); __PYX_ERR(0, 6146, __pyx_L3_error)
40339 CYTHON_FALLTHROUGH;
40341 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
40343 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 7); __PYX_ERR(0, 6146, __pyx_L3_error)
40345 CYTHON_FALLTHROUGH;
40347 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
40349 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 8); __PYX_ERR(0, 6146, __pyx_L3_error)
40351 CYTHON_FALLTHROUGH;
40353 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
40355 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 9); __PYX_ERR(0, 6146, __pyx_L3_error)
40357 CYTHON_FALLTHROUGH;
40359 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
40361 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 10); __PYX_ERR(0, 6146, __pyx_L3_error)
40363 CYTHON_FALLTHROUGH;
40365 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
40367 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 11); __PYX_ERR(0, 6146, __pyx_L3_error)
40369 CYTHON_FALLTHROUGH;
40371 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
40373 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 12); __PYX_ERR(0, 6146, __pyx_L3_error)
40375 CYTHON_FALLTHROUGH;
40377 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
40379 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 13); __PYX_ERR(0, 6146, __pyx_L3_error)
40381 CYTHON_FALLTHROUGH;
40383 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
40385 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 14); __PYX_ERR(0, 6146, __pyx_L3_error)
40387 CYTHON_FALLTHROUGH;
40389 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
40391 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 15); __PYX_ERR(0, 6146, __pyx_L3_error)
40393 CYTHON_FALLTHROUGH;
40395 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
40397 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 16); __PYX_ERR(0, 6146, __pyx_L3_error)
40399 CYTHON_FALLTHROUGH;
40401 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
40403 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 17); __PYX_ERR(0, 6146, __pyx_L3_error)
40405 CYTHON_FALLTHROUGH;
40407 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
40409 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 18); __PYX_ERR(0, 6146, __pyx_L3_error)
40411 CYTHON_FALLTHROUGH;
40413 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
40415 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 19); __PYX_ERR(0, 6146, __pyx_L3_error)
40417 CYTHON_FALLTHROUGH;
40419 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
40421 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, 20); __PYX_ERR(0, 6146, __pyx_L3_error)
40424 if (unlikely(kw_args > 0)) {
40425 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense") < 0)) __PYX_ERR(0, 6146, __pyx_L3_error)
40427 }
else if (PyTuple_GET_SIZE(__pyx_args) != 21) {
40428 goto __pyx_L5_argtuple_error;
40430 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40431 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40432 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40433 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40434 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40435 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40436 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40437 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40438 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40439 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40440 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40441 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40442 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40443 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40444 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40445 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40446 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40447 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40448 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40449 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40450 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40452 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6146, __pyx_L3_error)
40453 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6147, __pyx_L3_error)
40454 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6148, __pyx_L3_error)
40455 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6149, __pyx_L3_error)
40456 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6150, __pyx_L3_error)
40457 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[5]);
40458 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
40459 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
40460 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[8]);
40461 __pyx_v_freeLocal_r = ((PyArrayObject *)values[9]);
40462 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[10]);
40463 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[11]);
40464 __pyx_v_freeLocal_u = ((PyArrayObject *)values[12]);
40465 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[13]);
40466 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[14]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6160, __pyx_L3_error)
40467 __pyx_v_v = ((PyArrayObject *)values[15]);
40468 __pyx_v_n = ((PyArrayObject *)values[16]);
40469 __pyx_v_a = ((PyArrayObject *)values[17]);
40470 __pyx_v_grad_w = ((PyArrayObject *)values[18]);
40471 __pyx_v_dS = ((PyArrayObject *)values[19]);
40472 __pyx_v_jac = ((PyArrayObject *)values[20]);
40474 goto __pyx_L4_argument_unpacking_done;
40475 __pyx_L5_argtuple_error:;
40476 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 1, 21, 21, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6146, __pyx_L3_error)
40478 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
40479 __Pyx_RefNannyFinishContext();
40481 __pyx_L4_argument_unpacking_done:;
40482 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 6151, __pyx_L1_error)
40483 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6152, __pyx_L1_error)
40484 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6153, __pyx_L1_error)
40485 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6154, __pyx_L1_error)
40486 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6155, __pyx_L1_error)
40487 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6156, __pyx_L1_error)
40488 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6157, __pyx_L1_error)
40489 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6158, __pyx_L1_error)
40490 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6159, __pyx_L1_error)
40491 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6161, __pyx_L1_error)
40492 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6162, __pyx_L1_error)
40493 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6163, __pyx_L1_error)
40494 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6164, __pyx_L1_error)
40495 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6165, __pyx_L1_error)
40496 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 6166, __pyx_L1_error)
40497 __pyx_r = __pyx_pf_13cfemIntegrals_352updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
40504 __Pyx_RefNannyFinishContext();
40508 static PyObject *__pyx_pf_13cfemIntegrals_352updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac) {
40509 int __pyx_v_nInteriorElementBoundaries_global;
40510 int __pyx_v_nElementBoundaries_element;
40511 int __pyx_v_nQuadraturePoints_elementBoundary;
40512 int __pyx_v_nDOF_test_element;
40513 int __pyx_v_nDOF_trial_element;
40514 int __pyx_v_nSpace;
40515 PyObject *__pyx_r = NULL;
40516 __Pyx_RefNannyDeclarations
40517 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense", 0);
40526 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
40535 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_w->dimensions[1]);
40544 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[2]);
40553 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[3]);
40562 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[3]);
40571 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
40580 updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac->data));
40591 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40592 __Pyx_XGIVEREF(__pyx_r);
40593 __Pyx_RefNannyFinishContext();
40606 static PyObject *__pyx_pw_13cfemIntegrals_355updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40607 static PyMethodDef __pyx_mdef_13cfemIntegrals_355updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense = {
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_355updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense, METH_VARARGS|METH_KEYWORDS, 0};
40608 static PyObject *__pyx_pw_13cfemIntegrals_355updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40609 int __pyx_v_offset_r;
40610 int __pyx_v_stride_r;
40611 int __pyx_v_offset_u;
40612 int __pyx_v_stride_u;
40613 int __pyx_v_nFreeVDOF_global;
40614 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
40615 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
40616 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
40617 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
40618 PyArrayObject *__pyx_v_freeLocal_r = 0;
40619 PyArrayObject *__pyx_v_freeGlobal_r = 0;
40620 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
40621 PyArrayObject *__pyx_v_freeLocal_u = 0;
40622 PyArrayObject *__pyx_v_freeGlobal_u = 0;
40623 PyArrayObject *__pyx_v_isDOFBoundary = 0;
40624 double __pyx_v_sigma;
40625 PyArrayObject *__pyx_v_v = 0;
40626 PyArrayObject *__pyx_v_n = 0;
40627 PyArrayObject *__pyx_v_a = 0;
40628 PyArrayObject *__pyx_v_grad_w = 0;
40629 PyArrayObject *__pyx_v_dS = 0;
40630 PyArrayObject *__pyx_v_jac = 0;
40631 int __pyx_lineno = 0;
40632 const char *__pyx_filename = NULL;
40633 int __pyx_clineno = 0;
40634 PyObject *__pyx_r = 0;
40635 __Pyx_RefNannyDeclarations
40636 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense (wrapper)", 0);
40638 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
40639 PyObject* values[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
40640 if (unlikely(__pyx_kwds)) {
40641 Py_ssize_t kw_args;
40642 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40643 switch (pos_args) {
40644 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
40645 CYTHON_FALLTHROUGH;
40646 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40647 CYTHON_FALLTHROUGH;
40648 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40649 CYTHON_FALLTHROUGH;
40650 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40651 CYTHON_FALLTHROUGH;
40652 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40653 CYTHON_FALLTHROUGH;
40654 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40655 CYTHON_FALLTHROUGH;
40656 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40657 CYTHON_FALLTHROUGH;
40658 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40659 CYTHON_FALLTHROUGH;
40660 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40661 CYTHON_FALLTHROUGH;
40662 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40663 CYTHON_FALLTHROUGH;
40664 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40665 CYTHON_FALLTHROUGH;
40666 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40667 CYTHON_FALLTHROUGH;
40668 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40669 CYTHON_FALLTHROUGH;
40670 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40671 CYTHON_FALLTHROUGH;
40672 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40673 CYTHON_FALLTHROUGH;
40674 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40675 CYTHON_FALLTHROUGH;
40676 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40677 CYTHON_FALLTHROUGH;
40678 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40679 CYTHON_FALLTHROUGH;
40680 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40681 CYTHON_FALLTHROUGH;
40682 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40683 CYTHON_FALLTHROUGH;
40684 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40685 CYTHON_FALLTHROUGH;
40686 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40687 CYTHON_FALLTHROUGH;
40689 default:
goto __pyx_L5_argtuple_error;
40691 kw_args = PyDict_Size(__pyx_kwds);
40692 switch (pos_args) {
40694 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
40695 else goto __pyx_L5_argtuple_error;
40696 CYTHON_FALLTHROUGH;
40698 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
40700 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 1); __PYX_ERR(0, 6200, __pyx_L3_error)
40702 CYTHON_FALLTHROUGH;
40704 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
40706 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 2); __PYX_ERR(0, 6200, __pyx_L3_error)
40708 CYTHON_FALLTHROUGH;
40710 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
40712 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 3); __PYX_ERR(0, 6200, __pyx_L3_error)
40714 CYTHON_FALLTHROUGH;
40716 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
40718 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 4); __PYX_ERR(0, 6200, __pyx_L3_error)
40720 CYTHON_FALLTHROUGH;
40722 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
40724 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 5); __PYX_ERR(0, 6200, __pyx_L3_error)
40726 CYTHON_FALLTHROUGH;
40728 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
40730 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 6); __PYX_ERR(0, 6200, __pyx_L3_error)
40732 CYTHON_FALLTHROUGH;
40734 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
40736 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 7); __PYX_ERR(0, 6200, __pyx_L3_error)
40738 CYTHON_FALLTHROUGH;
40740 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
40742 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 8); __PYX_ERR(0, 6200, __pyx_L3_error)
40744 CYTHON_FALLTHROUGH;
40746 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
40748 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 9); __PYX_ERR(0, 6200, __pyx_L3_error)
40750 CYTHON_FALLTHROUGH;
40752 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
40754 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 10); __PYX_ERR(0, 6200, __pyx_L3_error)
40756 CYTHON_FALLTHROUGH;
40758 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
40760 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 11); __PYX_ERR(0, 6200, __pyx_L3_error)
40762 CYTHON_FALLTHROUGH;
40764 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
40766 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 12); __PYX_ERR(0, 6200, __pyx_L3_error)
40768 CYTHON_FALLTHROUGH;
40770 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
40772 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 13); __PYX_ERR(0, 6200, __pyx_L3_error)
40774 CYTHON_FALLTHROUGH;
40776 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
40778 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 14); __PYX_ERR(0, 6200, __pyx_L3_error)
40780 CYTHON_FALLTHROUGH;
40782 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
40784 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 15); __PYX_ERR(0, 6200, __pyx_L3_error)
40786 CYTHON_FALLTHROUGH;
40788 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
40790 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 16); __PYX_ERR(0, 6200, __pyx_L3_error)
40792 CYTHON_FALLTHROUGH;
40794 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
40796 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 17); __PYX_ERR(0, 6200, __pyx_L3_error)
40798 CYTHON_FALLTHROUGH;
40800 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
40802 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 18); __PYX_ERR(0, 6200, __pyx_L3_error)
40804 CYTHON_FALLTHROUGH;
40806 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
40808 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 19); __PYX_ERR(0, 6200, __pyx_L3_error)
40810 CYTHON_FALLTHROUGH;
40812 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
40814 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 20); __PYX_ERR(0, 6200, __pyx_L3_error)
40816 CYTHON_FALLTHROUGH;
40818 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
40820 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, 21); __PYX_ERR(0, 6200, __pyx_L3_error)
40823 if (unlikely(kw_args > 0)) {
40824 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense") < 0)) __PYX_ERR(0, 6200, __pyx_L3_error)
40826 }
else if (PyTuple_GET_SIZE(__pyx_args) != 22) {
40827 goto __pyx_L5_argtuple_error;
40829 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40830 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40831 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40832 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40833 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
40834 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
40835 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
40836 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
40837 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
40838 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
40839 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
40840 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
40841 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
40842 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
40843 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
40844 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
40845 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
40846 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
40847 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
40848 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
40849 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
40850 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
40852 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6200, __pyx_L3_error)
40853 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6201, __pyx_L3_error)
40854 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6202, __pyx_L3_error)
40855 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6203, __pyx_L3_error)
40856 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6204, __pyx_L3_error)
40857 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[5]);
40858 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[6]);
40859 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[7]);
40860 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[8]);
40861 __pyx_v_freeLocal_r = ((PyArrayObject *)values[9]);
40862 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[10]);
40863 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[11]);
40864 __pyx_v_freeLocal_u = ((PyArrayObject *)values[12]);
40865 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[13]);
40866 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[14]);
40867 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[15]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6215, __pyx_L3_error)
40868 __pyx_v_v = ((PyArrayObject *)values[16]);
40869 __pyx_v_n = ((PyArrayObject *)values[17]);
40870 __pyx_v_a = ((PyArrayObject *)values[18]);
40871 __pyx_v_grad_w = ((PyArrayObject *)values[19]);
40872 __pyx_v_dS = ((PyArrayObject *)values[20]);
40873 __pyx_v_jac = ((PyArrayObject *)values[21]);
40875 goto __pyx_L4_argument_unpacking_done;
40876 __pyx_L5_argtuple_error:;
40877 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 1, 22, 22, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6200, __pyx_L3_error)
40879 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", __pyx_clineno, __pyx_lineno, __pyx_filename);
40880 __Pyx_RefNannyFinishContext();
40882 __pyx_L4_argument_unpacking_done:;
40883 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6205, __pyx_L1_error)
40884 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6206, __pyx_L1_error)
40885 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6207, __pyx_L1_error)
40886 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6208, __pyx_L1_error)
40887 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6209, __pyx_L1_error)
40888 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6210, __pyx_L1_error)
40889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6211, __pyx_L1_error)
40890 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6212, __pyx_L1_error)
40891 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6213, __pyx_L1_error)
40892 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6214, __pyx_L1_error)
40893 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6216, __pyx_L1_error)
40894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6217, __pyx_L1_error)
40895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6218, __pyx_L1_error)
40896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6219, __pyx_L1_error)
40897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6220, __pyx_L1_error)
40898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 6221, __pyx_L1_error)
40899 __pyx_r = __pyx_pf_13cfemIntegrals_354updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(__pyx_self, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_isDOFBoundary, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
40906 __Pyx_RefNannyFinishContext();
40910 static PyObject *__pyx_pf_13cfemIntegrals_354updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac) {
40911 int __pyx_v_nExteriorElementBoundaries_global;
40912 int __pyx_v_nQuadraturePoints_elementBoundary;
40913 int __pyx_v_nDOF_test_element;
40914 int __pyx_v_nDOF_trial_element;
40915 int __pyx_v_nSpace;
40916 PyObject *__pyx_r = NULL;
40917 __Pyx_RefNannyDeclarations
40918 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense", 0);
40927 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
40936 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[1]);
40945 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[2]);
40954 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
40963 __pyx_v_nSpace = (__pyx_v_n->dimensions[2]);
40972 updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
int *)__pyx_v_isDOFBoundary->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac->data));
40983 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40984 __Pyx_XGIVEREF(__pyx_r);
40985 __Pyx_RefNannyFinishContext();
40998 static PyObject *__pyx_pw_13cfemIntegrals_357updateInteriorElementBoundaryDiffusionAdjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40999 static PyMethodDef __pyx_mdef_13cfemIntegrals_357updateInteriorElementBoundaryDiffusionAdjoint_sd = {
"updateInteriorElementBoundaryDiffusionAdjoint_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_357updateInteriorElementBoundaryDiffusionAdjoint_sd, METH_VARARGS|METH_KEYWORDS, 0};
41000 static PyObject *__pyx_pw_13cfemIntegrals_357updateInteriorElementBoundaryDiffusionAdjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41001 PyArrayObject *__pyx_v_rowptr = 0;
41002 PyArrayObject *__pyx_v_colind = 0;
41003 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
41004 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
41005 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
41006 double __pyx_v_sigma;
41007 PyArrayObject *__pyx_v_u = 0;
41008 PyArrayObject *__pyx_v_n = 0;
41009 PyArrayObject *__pyx_v_a = 0;
41010 PyArrayObject *__pyx_v_grad_w = 0;
41011 PyArrayObject *__pyx_v_dS = 0;
41012 PyArrayObject *__pyx_v_residual = 0;
41013 int __pyx_lineno = 0;
41014 const char *__pyx_filename = NULL;
41015 int __pyx_clineno = 0;
41016 PyObject *__pyx_r = 0;
41017 __Pyx_RefNannyDeclarations
41018 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusionAdjoint_sd (wrapper)", 0);
41020 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_sigma,&__pyx_n_s_u,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_residual,0};
41021 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
41022 if (unlikely(__pyx_kwds)) {
41023 Py_ssize_t kw_args;
41024 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41025 switch (pos_args) {
41026 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41027 CYTHON_FALLTHROUGH;
41028 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41029 CYTHON_FALLTHROUGH;
41030 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41031 CYTHON_FALLTHROUGH;
41032 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41033 CYTHON_FALLTHROUGH;
41034 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41035 CYTHON_FALLTHROUGH;
41036 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41037 CYTHON_FALLTHROUGH;
41038 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41039 CYTHON_FALLTHROUGH;
41040 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41041 CYTHON_FALLTHROUGH;
41042 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41043 CYTHON_FALLTHROUGH;
41044 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41045 CYTHON_FALLTHROUGH;
41046 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41047 CYTHON_FALLTHROUGH;
41048 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41049 CYTHON_FALLTHROUGH;
41051 default:
goto __pyx_L5_argtuple_error;
41053 kw_args = PyDict_Size(__pyx_kwds);
41054 switch (pos_args) {
41056 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
41057 else goto __pyx_L5_argtuple_error;
41058 CYTHON_FALLTHROUGH;
41060 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
41062 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 1); __PYX_ERR(0, 6254, __pyx_L3_error)
41064 CYTHON_FALLTHROUGH;
41066 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
41068 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 2); __PYX_ERR(0, 6254, __pyx_L3_error)
41070 CYTHON_FALLTHROUGH;
41072 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
41074 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 3); __PYX_ERR(0, 6254, __pyx_L3_error)
41076 CYTHON_FALLTHROUGH;
41078 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
41080 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 4); __PYX_ERR(0, 6254, __pyx_L3_error)
41082 CYTHON_FALLTHROUGH;
41084 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
41086 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 5); __PYX_ERR(0, 6254, __pyx_L3_error)
41088 CYTHON_FALLTHROUGH;
41090 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
41092 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 6); __PYX_ERR(0, 6254, __pyx_L3_error)
41094 CYTHON_FALLTHROUGH;
41096 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
41098 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 7); __PYX_ERR(0, 6254, __pyx_L3_error)
41100 CYTHON_FALLTHROUGH;
41102 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
41104 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 8); __PYX_ERR(0, 6254, __pyx_L3_error)
41106 CYTHON_FALLTHROUGH;
41108 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
41110 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 9); __PYX_ERR(0, 6254, __pyx_L3_error)
41112 CYTHON_FALLTHROUGH;
41114 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
41116 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 10); __PYX_ERR(0, 6254, __pyx_L3_error)
41118 CYTHON_FALLTHROUGH;
41120 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
41122 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, 11); __PYX_ERR(0, 6254, __pyx_L3_error)
41125 if (unlikely(kw_args > 0)) {
41126 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateInteriorElementBoundaryDiffusionAdjoint_sd") < 0)) __PYX_ERR(0, 6254, __pyx_L3_error)
41128 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
41129 goto __pyx_L5_argtuple_error;
41131 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41132 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41133 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41134 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41135 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41136 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41137 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41138 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41139 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41140 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41141 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41142 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41144 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
41145 __pyx_v_colind = ((PyArrayObject *)values[1]);
41146 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[2]);
41147 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[3]);
41148 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[4]);
41149 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6259, __pyx_L3_error)
41150 __pyx_v_u = ((PyArrayObject *)values[6]);
41151 __pyx_v_n = ((PyArrayObject *)values[7]);
41152 __pyx_v_a = ((PyArrayObject *)values[8]);
41153 __pyx_v_grad_w = ((PyArrayObject *)values[9]);
41154 __pyx_v_dS = ((PyArrayObject *)values[10]);
41155 __pyx_v_residual = ((PyArrayObject *)values[11]);
41157 goto __pyx_L4_argument_unpacking_done;
41158 __pyx_L5_argtuple_error:;
41159 __Pyx_RaiseArgtupleInvalid(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6254, __pyx_L3_error)
41161 __Pyx_AddTraceback(
"cfemIntegrals.updateInteriorElementBoundaryDiffusionAdjoint_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
41162 __Pyx_RefNannyFinishContext();
41164 __pyx_L4_argument_unpacking_done:;
41165 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6254, __pyx_L1_error)
41166 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6255, __pyx_L1_error)
41167 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 6256, __pyx_L1_error)
41168 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6257, __pyx_L1_error)
41169 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6258, __pyx_L1_error)
41170 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6260, __pyx_L1_error)
41171 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6261, __pyx_L1_error)
41172 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6262, __pyx_L1_error)
41173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6263, __pyx_L1_error)
41174 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6264, __pyx_L1_error)
41175 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 6265, __pyx_L1_error)
41176 __pyx_r = __pyx_pf_13cfemIntegrals_356updateInteriorElementBoundaryDiffusionAdjoint_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_sigma, __pyx_v_u, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_residual);
41183 __Pyx_RefNannyFinishContext();
41187 static PyObject *__pyx_pf_13cfemIntegrals_356updateInteriorElementBoundaryDiffusionAdjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual) {
41188 int __pyx_v_nInteriorElementBoundaries_global;
41189 int __pyx_v_nElementBoundaries_element;
41190 int __pyx_v_nQuadraturePoints_elementBoundary;
41191 int __pyx_v_nDOF_test_element;
41192 int __pyx_v_nSpace;
41193 PyObject *__pyx_r = NULL;
41194 __Pyx_RefNannyDeclarations
41195 __Pyx_RefNannySetupContext(
"updateInteriorElementBoundaryDiffusionAdjoint_sd", 0);
41204 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
41213 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_w->dimensions[1]);
41222 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[2]);
41231 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[3]);
41240 __pyx_v_nSpace = (__pyx_v_grad_w->dimensions[4]);
41249 updateInteriorElementBoundaryDiffusionAdjoint_sd(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), __pyx_v_sigma, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_residual->data));
41260 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41261 __Pyx_XGIVEREF(__pyx_r);
41262 __Pyx_RefNannyFinishContext();
41275 static PyObject *__pyx_pw_13cfemIntegrals_359updateExteriorElementBoundaryDiffusionAdjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41276 static PyMethodDef __pyx_mdef_13cfemIntegrals_359updateExteriorElementBoundaryDiffusionAdjoint_sd = {
"updateExteriorElementBoundaryDiffusionAdjoint_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_359updateExteriorElementBoundaryDiffusionAdjoint_sd, METH_VARARGS|METH_KEYWORDS, 0};
41277 static PyObject *__pyx_pw_13cfemIntegrals_359updateExteriorElementBoundaryDiffusionAdjoint_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41278 PyArrayObject *__pyx_v_rowptr = 0;
41279 PyArrayObject *__pyx_v_colind = 0;
41280 PyArrayObject *__pyx_v_isDOFBoundary = 0;
41281 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
41282 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
41283 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
41284 double __pyx_v_sigma;
41285 PyArrayObject *__pyx_v_u = 0;
41286 PyArrayObject *__pyx_v_ub = 0;
41287 PyArrayObject *__pyx_v_n = 0;
41288 PyArrayObject *__pyx_v_a = 0;
41289 PyArrayObject *__pyx_v_grad_w = 0;
41290 PyArrayObject *__pyx_v_dS = 0;
41291 PyArrayObject *__pyx_v_residual = 0;
41292 int __pyx_lineno = 0;
41293 const char *__pyx_filename = NULL;
41294 int __pyx_clineno = 0;
41295 PyObject *__pyx_r = 0;
41296 __Pyx_RefNannyDeclarations
41297 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusionAdjoint_sd (wrapper)", 0);
41299 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_sigma,&__pyx_n_s_u,&__pyx_n_s_ub,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_residual,0};
41300 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41301 if (unlikely(__pyx_kwds)) {
41302 Py_ssize_t kw_args;
41303 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41304 switch (pos_args) {
41305 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41306 CYTHON_FALLTHROUGH;
41307 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41308 CYTHON_FALLTHROUGH;
41309 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41310 CYTHON_FALLTHROUGH;
41311 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41312 CYTHON_FALLTHROUGH;
41313 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41314 CYTHON_FALLTHROUGH;
41315 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41316 CYTHON_FALLTHROUGH;
41317 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41318 CYTHON_FALLTHROUGH;
41319 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41320 CYTHON_FALLTHROUGH;
41321 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41322 CYTHON_FALLTHROUGH;
41323 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41324 CYTHON_FALLTHROUGH;
41325 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41326 CYTHON_FALLTHROUGH;
41327 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41328 CYTHON_FALLTHROUGH;
41329 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41330 CYTHON_FALLTHROUGH;
41331 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41332 CYTHON_FALLTHROUGH;
41334 default:
goto __pyx_L5_argtuple_error;
41336 kw_args = PyDict_Size(__pyx_kwds);
41337 switch (pos_args) {
41339 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
41340 else goto __pyx_L5_argtuple_error;
41341 CYTHON_FALLTHROUGH;
41343 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
41345 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 1); __PYX_ERR(0, 6288, __pyx_L3_error)
41347 CYTHON_FALLTHROUGH;
41349 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
41351 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 2); __PYX_ERR(0, 6288, __pyx_L3_error)
41353 CYTHON_FALLTHROUGH;
41355 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
41357 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 3); __PYX_ERR(0, 6288, __pyx_L3_error)
41359 CYTHON_FALLTHROUGH;
41361 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
41363 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 4); __PYX_ERR(0, 6288, __pyx_L3_error)
41365 CYTHON_FALLTHROUGH;
41367 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
41369 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 5); __PYX_ERR(0, 6288, __pyx_L3_error)
41371 CYTHON_FALLTHROUGH;
41373 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
41375 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 6); __PYX_ERR(0, 6288, __pyx_L3_error)
41377 CYTHON_FALLTHROUGH;
41379 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
41381 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 7); __PYX_ERR(0, 6288, __pyx_L3_error)
41383 CYTHON_FALLTHROUGH;
41385 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ub)) != 0)) kw_args--;
41387 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 8); __PYX_ERR(0, 6288, __pyx_L3_error)
41389 CYTHON_FALLTHROUGH;
41391 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
41393 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 9); __PYX_ERR(0, 6288, __pyx_L3_error)
41395 CYTHON_FALLTHROUGH;
41397 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
41399 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 10); __PYX_ERR(0, 6288, __pyx_L3_error)
41401 CYTHON_FALLTHROUGH;
41403 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
41405 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 11); __PYX_ERR(0, 6288, __pyx_L3_error)
41407 CYTHON_FALLTHROUGH;
41409 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
41411 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 12); __PYX_ERR(0, 6288, __pyx_L3_error)
41413 CYTHON_FALLTHROUGH;
41415 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
41417 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, 13); __PYX_ERR(0, 6288, __pyx_L3_error)
41420 if (unlikely(kw_args > 0)) {
41421 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateExteriorElementBoundaryDiffusionAdjoint_sd") < 0)) __PYX_ERR(0, 6288, __pyx_L3_error)
41423 }
else if (PyTuple_GET_SIZE(__pyx_args) != 14) {
41424 goto __pyx_L5_argtuple_error;
41426 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41427 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41428 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41429 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41430 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41431 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41432 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41433 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41434 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41435 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41436 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41437 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41438 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41439 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41441 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
41442 __pyx_v_colind = ((PyArrayObject *)values[1]);
41443 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[2]);
41444 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[3]);
41445 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[4]);
41446 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[5]);
41447 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6294, __pyx_L3_error)
41448 __pyx_v_u = ((PyArrayObject *)values[7]);
41449 __pyx_v_ub = ((PyArrayObject *)values[8]);
41450 __pyx_v_n = ((PyArrayObject *)values[9]);
41451 __pyx_v_a = ((PyArrayObject *)values[10]);
41452 __pyx_v_grad_w = ((PyArrayObject *)values[11]);
41453 __pyx_v_dS = ((PyArrayObject *)values[12]);
41454 __pyx_v_residual = ((PyArrayObject *)values[13]);
41456 goto __pyx_L4_argument_unpacking_done;
41457 __pyx_L5_argtuple_error:;
41458 __Pyx_RaiseArgtupleInvalid(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 1, 14, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6288, __pyx_L3_error)
41460 __Pyx_AddTraceback(
"cfemIntegrals.updateExteriorElementBoundaryDiffusionAdjoint_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
41461 __Pyx_RefNannyFinishContext();
41463 __pyx_L4_argument_unpacking_done:;
41464 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6288, __pyx_L1_error)
41465 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6289, __pyx_L1_error)
41466 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6290, __pyx_L1_error)
41467 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6291, __pyx_L1_error)
41468 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6292, __pyx_L1_error)
41469 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6293, __pyx_L1_error)
41470 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_5numpy_ndarray, 1,
"u", 0))) __PYX_ERR(0, 6295, __pyx_L1_error)
41471 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ub), __pyx_ptype_5numpy_ndarray, 1,
"ub", 0))) __PYX_ERR(0, 6296, __pyx_L1_error)
41472 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6297, __pyx_L1_error)
41473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6298, __pyx_L1_error)
41474 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6299, __pyx_L1_error)
41475 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6300, __pyx_L1_error)
41476 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 6301, __pyx_L1_error)
41477 __pyx_r = __pyx_pf_13cfemIntegrals_358updateExteriorElementBoundaryDiffusionAdjoint_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_isDOFBoundary, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_sigma, __pyx_v_u, __pyx_v_ub, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_residual);
41484 __Pyx_RefNannyFinishContext();
41488 static PyObject *__pyx_pf_13cfemIntegrals_358updateExteriorElementBoundaryDiffusionAdjoint_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_isDOFBoundary, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries,
double __pyx_v_sigma, PyArrayObject *__pyx_v_u, PyArrayObject *__pyx_v_ub, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_residual) {
41489 int __pyx_v_nExteriorElementBoundaries_global;
41490 int __pyx_v_nQuadraturePoints_elementBoundary;
41491 int __pyx_v_nDOF_test_element;
41492 int __pyx_v_nSpace;
41493 PyObject *__pyx_r = NULL;
41494 __Pyx_RefNannyDeclarations
41495 __Pyx_RefNannySetupContext(
"updateExteriorElementBoundaryDiffusionAdjoint_sd", 0);
41504 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
41513 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[1]);
41522 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[2]);
41531 __pyx_v_nSpace = (__pyx_v_grad_w->dimensions[3]);
41540 updateExteriorElementBoundaryDiffusionAdjoint_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
int *)__pyx_v_isDOFBoundary->data), ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), __pyx_v_sigma, ((
double *)__pyx_v_u->data), ((
double *)__pyx_v_ub->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_residual->data));
41551 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41552 __Pyx_XGIVEREF(__pyx_r);
41553 __Pyx_RefNannyFinishContext();
41566 static PyObject *__pyx_pw_13cfemIntegrals_361updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41567 static PyMethodDef __pyx_mdef_13cfemIntegrals_361updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd = {
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_361updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd, METH_VARARGS|METH_KEYWORDS, 0};
41568 static PyObject *__pyx_pw_13cfemIntegrals_361updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41569 PyArrayObject *__pyx_v_rowptr = 0;
41570 PyArrayObject *__pyx_v_colind = 0;
41571 int __pyx_v_offset_r;
41572 int __pyx_v_stride_r;
41573 int __pyx_v_offset_u;
41574 int __pyx_v_stride_u;
41575 int __pyx_v_nFreeVDOF_global;
41576 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
41577 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
41578 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
41579 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
41580 PyArrayObject *__pyx_v_freeLocal_r = 0;
41581 PyArrayObject *__pyx_v_freeGlobal_r = 0;
41582 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
41583 PyArrayObject *__pyx_v_freeLocal_u = 0;
41584 PyArrayObject *__pyx_v_freeGlobal_u = 0;
41585 double __pyx_v_sigma;
41586 PyArrayObject *__pyx_v_v = 0;
41587 PyArrayObject *__pyx_v_n = 0;
41588 PyArrayObject *__pyx_v_a = 0;
41589 PyArrayObject *__pyx_v_grad_w = 0;
41590 PyArrayObject *__pyx_v_dS = 0;
41591 PyArrayObject *__pyx_v_jac = 0;
41592 int __pyx_lineno = 0;
41593 const char *__pyx_filename = NULL;
41594 int __pyx_clineno = 0;
41595 PyObject *__pyx_r = 0;
41596 __Pyx_RefNannyDeclarations
41597 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd (wrapper)", 0);
41599 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
41600 PyObject* values[23] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
41601 if (unlikely(__pyx_kwds)) {
41602 Py_ssize_t kw_args;
41603 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41604 switch (pos_args) {
41605 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41606 CYTHON_FALLTHROUGH;
41607 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41608 CYTHON_FALLTHROUGH;
41609 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41610 CYTHON_FALLTHROUGH;
41611 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41612 CYTHON_FALLTHROUGH;
41613 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41614 CYTHON_FALLTHROUGH;
41615 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41616 CYTHON_FALLTHROUGH;
41617 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41618 CYTHON_FALLTHROUGH;
41619 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41620 CYTHON_FALLTHROUGH;
41621 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41622 CYTHON_FALLTHROUGH;
41623 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41624 CYTHON_FALLTHROUGH;
41625 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41626 CYTHON_FALLTHROUGH;
41627 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41628 CYTHON_FALLTHROUGH;
41629 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41630 CYTHON_FALLTHROUGH;
41631 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41632 CYTHON_FALLTHROUGH;
41633 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41634 CYTHON_FALLTHROUGH;
41635 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41636 CYTHON_FALLTHROUGH;
41637 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41638 CYTHON_FALLTHROUGH;
41639 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41640 CYTHON_FALLTHROUGH;
41641 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41642 CYTHON_FALLTHROUGH;
41643 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41644 CYTHON_FALLTHROUGH;
41645 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41646 CYTHON_FALLTHROUGH;
41647 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41648 CYTHON_FALLTHROUGH;
41649 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41650 CYTHON_FALLTHROUGH;
41652 default:
goto __pyx_L5_argtuple_error;
41654 kw_args = PyDict_Size(__pyx_kwds);
41655 switch (pos_args) {
41657 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
41658 else goto __pyx_L5_argtuple_error;
41659 CYTHON_FALLTHROUGH;
41661 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
41663 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 1); __PYX_ERR(0, 6324, __pyx_L3_error)
41665 CYTHON_FALLTHROUGH;
41667 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
41669 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 2); __PYX_ERR(0, 6324, __pyx_L3_error)
41671 CYTHON_FALLTHROUGH;
41673 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
41675 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 3); __PYX_ERR(0, 6324, __pyx_L3_error)
41677 CYTHON_FALLTHROUGH;
41679 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
41681 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 4); __PYX_ERR(0, 6324, __pyx_L3_error)
41683 CYTHON_FALLTHROUGH;
41685 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
41687 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 5); __PYX_ERR(0, 6324, __pyx_L3_error)
41689 CYTHON_FALLTHROUGH;
41691 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
41693 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 6); __PYX_ERR(0, 6324, __pyx_L3_error)
41695 CYTHON_FALLTHROUGH;
41697 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
41699 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 7); __PYX_ERR(0, 6324, __pyx_L3_error)
41701 CYTHON_FALLTHROUGH;
41703 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
41705 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 8); __PYX_ERR(0, 6324, __pyx_L3_error)
41707 CYTHON_FALLTHROUGH;
41709 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
41711 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 9); __PYX_ERR(0, 6324, __pyx_L3_error)
41713 CYTHON_FALLTHROUGH;
41715 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
41717 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 10); __PYX_ERR(0, 6324, __pyx_L3_error)
41719 CYTHON_FALLTHROUGH;
41721 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
41723 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 11); __PYX_ERR(0, 6324, __pyx_L3_error)
41725 CYTHON_FALLTHROUGH;
41727 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
41729 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 12); __PYX_ERR(0, 6324, __pyx_L3_error)
41731 CYTHON_FALLTHROUGH;
41733 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
41735 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 13); __PYX_ERR(0, 6324, __pyx_L3_error)
41737 CYTHON_FALLTHROUGH;
41739 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
41741 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 14); __PYX_ERR(0, 6324, __pyx_L3_error)
41743 CYTHON_FALLTHROUGH;
41745 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
41747 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 15); __PYX_ERR(0, 6324, __pyx_L3_error)
41749 CYTHON_FALLTHROUGH;
41751 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
41753 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 16); __PYX_ERR(0, 6324, __pyx_L3_error)
41755 CYTHON_FALLTHROUGH;
41757 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
41759 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 17); __PYX_ERR(0, 6324, __pyx_L3_error)
41761 CYTHON_FALLTHROUGH;
41763 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
41765 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 18); __PYX_ERR(0, 6324, __pyx_L3_error)
41767 CYTHON_FALLTHROUGH;
41769 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
41771 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 19); __PYX_ERR(0, 6324, __pyx_L3_error)
41773 CYTHON_FALLTHROUGH;
41775 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
41777 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 20); __PYX_ERR(0, 6324, __pyx_L3_error)
41779 CYTHON_FALLTHROUGH;
41781 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
41783 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 21); __PYX_ERR(0, 6324, __pyx_L3_error)
41785 CYTHON_FALLTHROUGH;
41787 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
41789 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, 22); __PYX_ERR(0, 6324, __pyx_L3_error)
41792 if (unlikely(kw_args > 0)) {
41793 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd") < 0)) __PYX_ERR(0, 6324, __pyx_L3_error)
41795 }
else if (PyTuple_GET_SIZE(__pyx_args) != 23) {
41796 goto __pyx_L5_argtuple_error;
41798 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41799 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41800 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41801 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41802 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
41803 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
41804 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
41805 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
41806 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
41807 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
41808 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
41809 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
41810 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
41811 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
41812 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
41813 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
41814 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
41815 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
41816 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
41817 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
41818 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
41819 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
41820 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
41822 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
41823 __pyx_v_colind = ((PyArrayObject *)values[1]);
41824 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6326, __pyx_L3_error)
41825 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6327, __pyx_L3_error)
41826 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6328, __pyx_L3_error)
41827 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6329, __pyx_L3_error)
41828 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6330, __pyx_L3_error)
41829 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[7]);
41830 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
41831 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
41832 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[10]);
41833 __pyx_v_freeLocal_r = ((PyArrayObject *)values[11]);
41834 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[12]);
41835 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[13]);
41836 __pyx_v_freeLocal_u = ((PyArrayObject *)values[14]);
41837 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[15]);
41838 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[16]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6340, __pyx_L3_error)
41839 __pyx_v_v = ((PyArrayObject *)values[17]);
41840 __pyx_v_n = ((PyArrayObject *)values[18]);
41841 __pyx_v_a = ((PyArrayObject *)values[19]);
41842 __pyx_v_grad_w = ((PyArrayObject *)values[20]);
41843 __pyx_v_dS = ((PyArrayObject *)values[21]);
41844 __pyx_v_jac = ((PyArrayObject *)values[22]);
41846 goto __pyx_L4_argument_unpacking_done;
41847 __pyx_L5_argtuple_error:;
41848 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 23, 23, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6324, __pyx_L3_error)
41850 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
41851 __Pyx_RefNannyFinishContext();
41853 __pyx_L4_argument_unpacking_done:;
41854 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6324, __pyx_L1_error)
41855 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6325, __pyx_L1_error)
41856 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 6331, __pyx_L1_error)
41857 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6332, __pyx_L1_error)
41858 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6333, __pyx_L1_error)
41859 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6334, __pyx_L1_error)
41860 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6335, __pyx_L1_error)
41861 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6336, __pyx_L1_error)
41862 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6337, __pyx_L1_error)
41863 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6338, __pyx_L1_error)
41864 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6339, __pyx_L1_error)
41865 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6341, __pyx_L1_error)
41866 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6342, __pyx_L1_error)
41867 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6343, __pyx_L1_error)
41868 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6344, __pyx_L1_error)
41869 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6345, __pyx_L1_error)
41870 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 6346, __pyx_L1_error)
41871 __pyx_r = __pyx_pf_13cfemIntegrals_360updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
41878 __Pyx_RefNannyFinishContext();
41882 static PyObject *__pyx_pf_13cfemIntegrals_360updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac) {
41883 int __pyx_v_nInteriorElementBoundaries_global;
41884 int __pyx_v_nElementBoundaries_element;
41885 int __pyx_v_nQuadraturePoints_elementBoundary;
41886 int __pyx_v_nDOF_test_element;
41887 int __pyx_v_nDOF_trial_element;
41888 int __pyx_v_nSpace;
41889 PyObject *__pyx_r = NULL;
41890 __Pyx_RefNannyDeclarations
41891 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd", 0);
41900 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
41909 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_w->dimensions[1]);
41918 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[2]);
41927 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[3]);
41936 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[3]);
41945 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
41954 updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac->data));
41965 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41966 __Pyx_XGIVEREF(__pyx_r);
41967 __Pyx_RefNannyFinishContext();
41980 static PyObject *__pyx_pw_13cfemIntegrals_363updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41981 static PyMethodDef __pyx_mdef_13cfemIntegrals_363updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd = {
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_363updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd, METH_VARARGS|METH_KEYWORDS, 0};
41982 static PyObject *__pyx_pw_13cfemIntegrals_363updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41983 PyArrayObject *__pyx_v_rowptr = 0;
41984 PyArrayObject *__pyx_v_colind = 0;
41985 int __pyx_v_offset_r;
41986 int __pyx_v_stride_r;
41987 int __pyx_v_offset_u;
41988 int __pyx_v_stride_u;
41989 int __pyx_v_nFreeVDOF_global;
41990 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
41991 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
41992 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
41993 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
41994 PyArrayObject *__pyx_v_freeLocal_r = 0;
41995 PyArrayObject *__pyx_v_freeGlobal_r = 0;
41996 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
41997 PyArrayObject *__pyx_v_freeLocal_u = 0;
41998 PyArrayObject *__pyx_v_freeGlobal_u = 0;
41999 PyArrayObject *__pyx_v_isDOFBoundary = 0;
42000 double __pyx_v_sigma;
42001 PyArrayObject *__pyx_v_v = 0;
42002 PyArrayObject *__pyx_v_n = 0;
42003 PyArrayObject *__pyx_v_a = 0;
42004 PyArrayObject *__pyx_v_grad_w = 0;
42005 PyArrayObject *__pyx_v_dS = 0;
42006 PyArrayObject *__pyx_v_jac = 0;
42007 int __pyx_lineno = 0;
42008 const char *__pyx_filename = NULL;
42009 int __pyx_clineno = 0;
42010 PyObject *__pyx_r = 0;
42011 __Pyx_RefNannyDeclarations
42012 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd (wrapper)", 0);
42014 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
42015 PyObject* values[24] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42016 if (unlikely(__pyx_kwds)) {
42017 Py_ssize_t kw_args;
42018 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42019 switch (pos_args) {
42020 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42021 CYTHON_FALLTHROUGH;
42022 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42023 CYTHON_FALLTHROUGH;
42024 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42025 CYTHON_FALLTHROUGH;
42026 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42027 CYTHON_FALLTHROUGH;
42028 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42029 CYTHON_FALLTHROUGH;
42030 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42031 CYTHON_FALLTHROUGH;
42032 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42033 CYTHON_FALLTHROUGH;
42034 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42035 CYTHON_FALLTHROUGH;
42036 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42037 CYTHON_FALLTHROUGH;
42038 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42039 CYTHON_FALLTHROUGH;
42040 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42041 CYTHON_FALLTHROUGH;
42042 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42043 CYTHON_FALLTHROUGH;
42044 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42045 CYTHON_FALLTHROUGH;
42046 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42047 CYTHON_FALLTHROUGH;
42048 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42049 CYTHON_FALLTHROUGH;
42050 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42051 CYTHON_FALLTHROUGH;
42052 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42053 CYTHON_FALLTHROUGH;
42054 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42055 CYTHON_FALLTHROUGH;
42056 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42057 CYTHON_FALLTHROUGH;
42058 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42059 CYTHON_FALLTHROUGH;
42060 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42061 CYTHON_FALLTHROUGH;
42062 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42063 CYTHON_FALLTHROUGH;
42064 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42065 CYTHON_FALLTHROUGH;
42066 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42067 CYTHON_FALLTHROUGH;
42069 default:
goto __pyx_L5_argtuple_error;
42071 kw_args = PyDict_Size(__pyx_kwds);
42072 switch (pos_args) {
42074 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
42075 else goto __pyx_L5_argtuple_error;
42076 CYTHON_FALLTHROUGH;
42078 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
42080 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 1); __PYX_ERR(0, 6382, __pyx_L3_error)
42082 CYTHON_FALLTHROUGH;
42084 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
42086 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 2); __PYX_ERR(0, 6382, __pyx_L3_error)
42088 CYTHON_FALLTHROUGH;
42090 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
42092 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 3); __PYX_ERR(0, 6382, __pyx_L3_error)
42094 CYTHON_FALLTHROUGH;
42096 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
42098 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 4); __PYX_ERR(0, 6382, __pyx_L3_error)
42100 CYTHON_FALLTHROUGH;
42102 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
42104 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 5); __PYX_ERR(0, 6382, __pyx_L3_error)
42106 CYTHON_FALLTHROUGH;
42108 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
42110 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 6); __PYX_ERR(0, 6382, __pyx_L3_error)
42112 CYTHON_FALLTHROUGH;
42114 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
42116 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 7); __PYX_ERR(0, 6382, __pyx_L3_error)
42118 CYTHON_FALLTHROUGH;
42120 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
42122 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 8); __PYX_ERR(0, 6382, __pyx_L3_error)
42124 CYTHON_FALLTHROUGH;
42126 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
42128 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 9); __PYX_ERR(0, 6382, __pyx_L3_error)
42130 CYTHON_FALLTHROUGH;
42132 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
42134 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 10); __PYX_ERR(0, 6382, __pyx_L3_error)
42136 CYTHON_FALLTHROUGH;
42138 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
42140 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 11); __PYX_ERR(0, 6382, __pyx_L3_error)
42142 CYTHON_FALLTHROUGH;
42144 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
42146 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 12); __PYX_ERR(0, 6382, __pyx_L3_error)
42148 CYTHON_FALLTHROUGH;
42150 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
42152 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 13); __PYX_ERR(0, 6382, __pyx_L3_error)
42154 CYTHON_FALLTHROUGH;
42156 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
42158 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 14); __PYX_ERR(0, 6382, __pyx_L3_error)
42160 CYTHON_FALLTHROUGH;
42162 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
42164 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 15); __PYX_ERR(0, 6382, __pyx_L3_error)
42166 CYTHON_FALLTHROUGH;
42168 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
42170 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 16); __PYX_ERR(0, 6382, __pyx_L3_error)
42172 CYTHON_FALLTHROUGH;
42174 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
42176 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 17); __PYX_ERR(0, 6382, __pyx_L3_error)
42178 CYTHON_FALLTHROUGH;
42180 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
42182 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 18); __PYX_ERR(0, 6382, __pyx_L3_error)
42184 CYTHON_FALLTHROUGH;
42186 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
42188 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 19); __PYX_ERR(0, 6382, __pyx_L3_error)
42190 CYTHON_FALLTHROUGH;
42192 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42194 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 20); __PYX_ERR(0, 6382, __pyx_L3_error)
42196 CYTHON_FALLTHROUGH;
42198 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
42200 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 21); __PYX_ERR(0, 6382, __pyx_L3_error)
42202 CYTHON_FALLTHROUGH;
42204 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
42206 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 22); __PYX_ERR(0, 6382, __pyx_L3_error)
42208 CYTHON_FALLTHROUGH;
42210 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
42212 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, 23); __PYX_ERR(0, 6382, __pyx_L3_error)
42215 if (unlikely(kw_args > 0)) {
42216 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd") < 0)) __PYX_ERR(0, 6382, __pyx_L3_error)
42218 }
else if (PyTuple_GET_SIZE(__pyx_args) != 24) {
42219 goto __pyx_L5_argtuple_error;
42221 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42222 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42223 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42224 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42225 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42226 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42227 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42228 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42229 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42230 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42231 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42232 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42233 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42234 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42235 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42236 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42237 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42238 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42239 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42240 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42241 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42242 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42243 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42244 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42246 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
42247 __pyx_v_colind = ((PyArrayObject *)values[1]);
42248 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6384, __pyx_L3_error)
42249 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6385, __pyx_L3_error)
42250 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6386, __pyx_L3_error)
42251 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6387, __pyx_L3_error)
42252 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6388, __pyx_L3_error)
42253 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[7]);
42254 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
42255 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
42256 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[10]);
42257 __pyx_v_freeLocal_r = ((PyArrayObject *)values[11]);
42258 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[12]);
42259 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[13]);
42260 __pyx_v_freeLocal_u = ((PyArrayObject *)values[14]);
42261 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[15]);
42262 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[16]);
42263 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[17]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6399, __pyx_L3_error)
42264 __pyx_v_v = ((PyArrayObject *)values[18]);
42265 __pyx_v_n = ((PyArrayObject *)values[19]);
42266 __pyx_v_a = ((PyArrayObject *)values[20]);
42267 __pyx_v_grad_w = ((PyArrayObject *)values[21]);
42268 __pyx_v_dS = ((PyArrayObject *)values[22]);
42269 __pyx_v_jac = ((PyArrayObject *)values[23]);
42271 goto __pyx_L4_argument_unpacking_done;
42272 __pyx_L5_argtuple_error:;
42273 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 1, 24, 24, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6382, __pyx_L3_error)
42275 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
42276 __Pyx_RefNannyFinishContext();
42278 __pyx_L4_argument_unpacking_done:;
42279 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6382, __pyx_L1_error)
42280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6383, __pyx_L1_error)
42281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6389, __pyx_L1_error)
42282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6390, __pyx_L1_error)
42283 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6391, __pyx_L1_error)
42284 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6392, __pyx_L1_error)
42285 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6393, __pyx_L1_error)
42286 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6394, __pyx_L1_error)
42287 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6395, __pyx_L1_error)
42288 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6396, __pyx_L1_error)
42289 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6397, __pyx_L1_error)
42290 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6398, __pyx_L1_error)
42291 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6400, __pyx_L1_error)
42292 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6401, __pyx_L1_error)
42293 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6402, __pyx_L1_error)
42294 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6403, __pyx_L1_error)
42295 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6404, __pyx_L1_error)
42296 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jac), __pyx_ptype_5numpy_ndarray, 1,
"jac", 0))) __PYX_ERR(0, 6405, __pyx_L1_error)
42297 __pyx_r = __pyx_pf_13cfemIntegrals_362updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_isDOFBoundary, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
42304 __Pyx_RefNannyFinishContext();
42308 static PyObject *__pyx_pf_13cfemIntegrals_362updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyArrayObject *__pyx_v_jac) {
42309 int __pyx_v_nExteriorElementBoundaries_global;
42310 int __pyx_v_nQuadraturePoints_elementBoundary;
42311 int __pyx_v_nDOF_test_element;
42312 int __pyx_v_nDOF_trial_element;
42313 int __pyx_v_nSpace;
42314 PyObject *__pyx_r = NULL;
42315 __Pyx_RefNannyDeclarations
42316 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd", 0);
42325 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
42334 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[1]);
42343 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[2]);
42352 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
42361 __pyx_v_nSpace = (__pyx_v_n->dimensions[2]);
42370 updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
int *)__pyx_v_isDOFBoundary->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac->data));
42381 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42382 __Pyx_XGIVEREF(__pyx_r);
42383 __Pyx_RefNannyFinishContext();
42396 static PyObject *__pyx_pw_13cfemIntegrals_365updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42397 static PyMethodDef __pyx_mdef_13cfemIntegrals_365updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd = {
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_365updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd, METH_VARARGS|METH_KEYWORDS, 0};
42398 static PyObject *__pyx_pw_13cfemIntegrals_365updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42399 PyArrayObject *__pyx_v_rowptr = 0;
42400 PyArrayObject *__pyx_v_colind = 0;
42401 int __pyx_v_offset_r;
42402 int __pyx_v_stride_r;
42403 int __pyx_v_offset_u;
42404 int __pyx_v_stride_u;
42405 int __pyx_v_nFreeVDOF_global;
42406 PyArrayObject *__pyx_v_interiorElementBoundaries = 0;
42407 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
42408 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
42409 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
42410 PyArrayObject *__pyx_v_freeLocal_r = 0;
42411 PyArrayObject *__pyx_v_freeGlobal_r = 0;
42412 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
42413 PyArrayObject *__pyx_v_freeLocal_u = 0;
42414 PyArrayObject *__pyx_v_freeGlobal_u = 0;
42415 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
42416 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
42417 double __pyx_v_sigma;
42418 PyArrayObject *__pyx_v_v = 0;
42419 PyArrayObject *__pyx_v_n = 0;
42420 PyArrayObject *__pyx_v_a = 0;
42421 PyArrayObject *__pyx_v_grad_w = 0;
42422 PyArrayObject *__pyx_v_dS = 0;
42423 PyObject *__pyx_v_jac = 0;
42424 int __pyx_lineno = 0;
42425 const char *__pyx_filename = NULL;
42426 int __pyx_clineno = 0;
42427 PyObject *__pyx_r = 0;
42428 __Pyx_RefNannyDeclarations
42429 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd (wrapper)", 0);
42431 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_interiorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
42432 PyObject* values[25] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42433 if (unlikely(__pyx_kwds)) {
42434 Py_ssize_t kw_args;
42435 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42436 switch (pos_args) {
42437 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42438 CYTHON_FALLTHROUGH;
42439 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42440 CYTHON_FALLTHROUGH;
42441 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42442 CYTHON_FALLTHROUGH;
42443 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42444 CYTHON_FALLTHROUGH;
42445 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42446 CYTHON_FALLTHROUGH;
42447 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42448 CYTHON_FALLTHROUGH;
42449 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42450 CYTHON_FALLTHROUGH;
42451 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42452 CYTHON_FALLTHROUGH;
42453 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42454 CYTHON_FALLTHROUGH;
42455 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42456 CYTHON_FALLTHROUGH;
42457 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42458 CYTHON_FALLTHROUGH;
42459 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42460 CYTHON_FALLTHROUGH;
42461 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42462 CYTHON_FALLTHROUGH;
42463 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42464 CYTHON_FALLTHROUGH;
42465 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42466 CYTHON_FALLTHROUGH;
42467 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42468 CYTHON_FALLTHROUGH;
42469 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42470 CYTHON_FALLTHROUGH;
42471 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42472 CYTHON_FALLTHROUGH;
42473 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42474 CYTHON_FALLTHROUGH;
42475 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42476 CYTHON_FALLTHROUGH;
42477 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42478 CYTHON_FALLTHROUGH;
42479 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42480 CYTHON_FALLTHROUGH;
42481 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42482 CYTHON_FALLTHROUGH;
42483 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42484 CYTHON_FALLTHROUGH;
42485 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42486 CYTHON_FALLTHROUGH;
42488 default:
goto __pyx_L5_argtuple_error;
42490 kw_args = PyDict_Size(__pyx_kwds);
42491 switch (pos_args) {
42493 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
42494 else goto __pyx_L5_argtuple_error;
42495 CYTHON_FALLTHROUGH;
42497 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
42499 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 1); __PYX_ERR(0, 6440, __pyx_L3_error)
42501 CYTHON_FALLTHROUGH;
42503 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
42505 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 2); __PYX_ERR(0, 6440, __pyx_L3_error)
42507 CYTHON_FALLTHROUGH;
42509 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
42511 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 3); __PYX_ERR(0, 6440, __pyx_L3_error)
42513 CYTHON_FALLTHROUGH;
42515 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
42517 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 4); __PYX_ERR(0, 6440, __pyx_L3_error)
42519 CYTHON_FALLTHROUGH;
42521 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
42523 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 5); __PYX_ERR(0, 6440, __pyx_L3_error)
42525 CYTHON_FALLTHROUGH;
42527 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
42529 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 6); __PYX_ERR(0, 6440, __pyx_L3_error)
42531 CYTHON_FALLTHROUGH;
42533 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interiorElementBoundaries)) != 0)) kw_args--;
42535 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 7); __PYX_ERR(0, 6440, __pyx_L3_error)
42537 CYTHON_FALLTHROUGH;
42539 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
42541 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 8); __PYX_ERR(0, 6440, __pyx_L3_error)
42543 CYTHON_FALLTHROUGH;
42545 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
42547 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 9); __PYX_ERR(0, 6440, __pyx_L3_error)
42549 CYTHON_FALLTHROUGH;
42551 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
42553 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 10); __PYX_ERR(0, 6440, __pyx_L3_error)
42555 CYTHON_FALLTHROUGH;
42557 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
42559 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 11); __PYX_ERR(0, 6440, __pyx_L3_error)
42561 CYTHON_FALLTHROUGH;
42563 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
42565 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 12); __PYX_ERR(0, 6440, __pyx_L3_error)
42567 CYTHON_FALLTHROUGH;
42569 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
42571 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 13); __PYX_ERR(0, 6440, __pyx_L3_error)
42573 CYTHON_FALLTHROUGH;
42575 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
42577 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 14); __PYX_ERR(0, 6440, __pyx_L3_error)
42579 CYTHON_FALLTHROUGH;
42581 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
42583 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 15); __PYX_ERR(0, 6440, __pyx_L3_error)
42585 CYTHON_FALLTHROUGH;
42587 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
42589 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 16); __PYX_ERR(0, 6440, __pyx_L3_error)
42591 CYTHON_FALLTHROUGH;
42593 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
42595 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 17); __PYX_ERR(0, 6440, __pyx_L3_error)
42597 CYTHON_FALLTHROUGH;
42599 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
42601 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 18); __PYX_ERR(0, 6440, __pyx_L3_error)
42603 CYTHON_FALLTHROUGH;
42605 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
42607 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 19); __PYX_ERR(0, 6440, __pyx_L3_error)
42609 CYTHON_FALLTHROUGH;
42611 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
42613 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 20); __PYX_ERR(0, 6440, __pyx_L3_error)
42615 CYTHON_FALLTHROUGH;
42617 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
42619 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 21); __PYX_ERR(0, 6440, __pyx_L3_error)
42621 CYTHON_FALLTHROUGH;
42623 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
42625 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 22); __PYX_ERR(0, 6440, __pyx_L3_error)
42627 CYTHON_FALLTHROUGH;
42629 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
42631 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 23); __PYX_ERR(0, 6440, __pyx_L3_error)
42633 CYTHON_FALLTHROUGH;
42635 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
42637 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, 24); __PYX_ERR(0, 6440, __pyx_L3_error)
42640 if (unlikely(kw_args > 0)) {
42641 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd") < 0)) __PYX_ERR(0, 6440, __pyx_L3_error)
42643 }
else if (PyTuple_GET_SIZE(__pyx_args) != 25) {
42644 goto __pyx_L5_argtuple_error;
42646 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42647 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42648 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42649 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42650 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42651 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
42652 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
42653 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
42654 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
42655 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
42656 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
42657 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
42658 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
42659 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
42660 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
42661 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
42662 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
42663 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
42664 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
42665 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
42666 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42667 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42668 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42669 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42670 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42672 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
42673 __pyx_v_colind = ((PyArrayObject *)values[1]);
42674 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6442, __pyx_L3_error)
42675 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6443, __pyx_L3_error)
42676 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6444, __pyx_L3_error)
42677 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6445, __pyx_L3_error)
42678 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6446, __pyx_L3_error)
42679 __pyx_v_interiorElementBoundaries = ((PyArrayObject *)values[7]);
42680 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
42681 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
42682 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[10]);
42683 __pyx_v_freeLocal_r = ((PyArrayObject *)values[11]);
42684 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[12]);
42685 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[13]);
42686 __pyx_v_freeLocal_u = ((PyArrayObject *)values[14]);
42687 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[15]);
42688 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[16]);
42689 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[17]);
42690 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[18]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6458, __pyx_L3_error)
42691 __pyx_v_v = ((PyArrayObject *)values[19]);
42692 __pyx_v_n = ((PyArrayObject *)values[20]);
42693 __pyx_v_a = ((PyArrayObject *)values[21]);
42694 __pyx_v_grad_w = ((PyArrayObject *)values[22]);
42695 __pyx_v_dS = ((PyArrayObject *)values[23]);
42696 __pyx_v_jac = values[24];
42698 goto __pyx_L4_argument_unpacking_done;
42699 __pyx_L5_argtuple_error:;
42700 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 25, 25, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6440, __pyx_L3_error)
42702 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
42703 __Pyx_RefNannyFinishContext();
42705 __pyx_L4_argument_unpacking_done:;
42706 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6440, __pyx_L1_error)
42707 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6441, __pyx_L1_error)
42708 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interiorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"interiorElementBoundaries", 0))) __PYX_ERR(0, 6447, __pyx_L1_error)
42709 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6448, __pyx_L1_error)
42710 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6449, __pyx_L1_error)
42711 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6450, __pyx_L1_error)
42712 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6451, __pyx_L1_error)
42713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6452, __pyx_L1_error)
42714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6453, __pyx_L1_error)
42715 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6454, __pyx_L1_error)
42716 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6455, __pyx_L1_error)
42717 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 6456, __pyx_L1_error)
42718 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 6457, __pyx_L1_error)
42719 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6459, __pyx_L1_error)
42720 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6460, __pyx_L1_error)
42721 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6461, __pyx_L1_error)
42722 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6462, __pyx_L1_error)
42723 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6463, __pyx_L1_error)
42724 __pyx_r = __pyx_pf_13cfemIntegrals_364updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_interiorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
42731 __Pyx_RefNannyFinishContext();
42735 static PyObject *__pyx_pf_13cfemIntegrals_364updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_interiorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyObject *__pyx_v_jac) {
42736 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr_dummy = 0;
42737 CYTHON_UNUSED PyArrayObject *__pyx_v_colind_dummy = 0;
42738 PyArrayObject *__pyx_v_jac_array = 0;
42739 int __pyx_v_nInteriorElementBoundaries_global;
42740 int __pyx_v_nElementBoundaries_element;
42741 int __pyx_v_nQuadraturePoints_elementBoundary;
42742 int __pyx_v_nDOF_test_element;
42743 int __pyx_v_nDOF_trial_element;
42744 int __pyx_v_nSpace;
42745 PyObject *__pyx_r = NULL;
42746 __Pyx_RefNannyDeclarations
42747 PyObject *__pyx_t_1 = NULL;
42748 PyObject *__pyx_t_2 = NULL;
42749 PyObject *__pyx_t_3 = NULL;
42750 PyObject *__pyx_t_4 = NULL;
42751 PyObject *__pyx_t_5 = NULL;
42752 PyObject *(*__pyx_t_6)(PyObject *);
42753 int __pyx_lineno = 0;
42754 const char *__pyx_filename = NULL;
42755 int __pyx_clineno = 0;
42756 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", 0);
42765 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6466, __pyx_L1_error)
42766 __Pyx_GOTREF(__pyx_t_2);
42768 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
42769 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
42770 if (likely(__pyx_t_3)) {
42771 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
42772 __Pyx_INCREF(__pyx_t_3);
42773 __Pyx_INCREF(
function);
42774 __Pyx_DECREF_SET(__pyx_t_2,
function);
42777 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
42778 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42779 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6466, __pyx_L1_error)
42780 __Pyx_GOTREF(__pyx_t_1);
42781 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42782 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
42783 PyObject* sequence = __pyx_t_1;
42784 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
42785 if (unlikely(size != 3)) {
42786 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
42787 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
42788 __PYX_ERR(0, 6466, __pyx_L1_error)
42790 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
42791 if (likely(PyTuple_CheckExact(sequence))) {
42792 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
42793 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
42794 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
42796 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
42797 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
42798 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
42800 __Pyx_INCREF(__pyx_t_2);
42801 __Pyx_INCREF(__pyx_t_3);
42802 __Pyx_INCREF(__pyx_t_4);
42804 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6466, __pyx_L1_error)
42805 __Pyx_GOTREF(__pyx_t_2);
42806 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6466, __pyx_L1_error)
42807 __Pyx_GOTREF(__pyx_t_3);
42808 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6466, __pyx_L1_error)
42809 __Pyx_GOTREF(__pyx_t_4);
42811 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42813 Py_ssize_t index = -1;
42814 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6466, __pyx_L1_error)
42815 __Pyx_GOTREF(__pyx_t_5);
42816 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42817 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
42818 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
42819 __Pyx_GOTREF(__pyx_t_2);
42820 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
42821 __Pyx_GOTREF(__pyx_t_3);
42822 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
42823 __Pyx_GOTREF(__pyx_t_4);
42824 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 6466, __pyx_L1_error)
42826 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42827 goto __pyx_L4_unpacking_done;
42828 __pyx_L3_unpacking_failed:;
42829 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42831 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
42832 __PYX_ERR(0, 6466, __pyx_L1_error)
42833 __pyx_L4_unpacking_done:;
42835 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6466, __pyx_L1_error)
42836 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6466, __pyx_L1_error)
42837 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6466, __pyx_L1_error)
42838 __pyx_v_rowptr_dummy = ((PyArrayObject *)__pyx_t_2);
42840 __pyx_v_colind_dummy = ((PyArrayObject *)__pyx_t_3);
42842 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
42852 __pyx_v_nInteriorElementBoundaries_global = (__pyx_v_interiorElementBoundaries->dimensions[0]);
42861 __pyx_v_nElementBoundaries_element = (__pyx_v_grad_w->dimensions[1]);
42870 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[2]);
42879 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[3]);
42888 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[3]);
42897 __pyx_v_nSpace = (__pyx_v_n->dimensions[3]);
42906 updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd(__pyx_v_nInteriorElementBoundaries_global, __pyx_v_nElementBoundaries_element, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_interiorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac_array->data));
42917 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
42920 __Pyx_XDECREF(__pyx_t_1);
42921 __Pyx_XDECREF(__pyx_t_2);
42922 __Pyx_XDECREF(__pyx_t_3);
42923 __Pyx_XDECREF(__pyx_t_4);
42924 __Pyx_XDECREF(__pyx_t_5);
42925 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
42928 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr_dummy);
42929 __Pyx_XDECREF((PyObject *)__pyx_v_colind_dummy);
42930 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
42931 __Pyx_XGIVEREF(__pyx_r);
42932 __Pyx_RefNannyFinishContext();
42945 static PyObject *__pyx_pw_13cfemIntegrals_367updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42946 static PyMethodDef __pyx_mdef_13cfemIntegrals_367updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd = {
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_367updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd, METH_VARARGS|METH_KEYWORDS, 0};
42947 static PyObject *__pyx_pw_13cfemIntegrals_367updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42948 PyArrayObject *__pyx_v_rowptr = 0;
42949 PyArrayObject *__pyx_v_colind = 0;
42950 int __pyx_v_offset_r;
42951 int __pyx_v_stride_r;
42952 int __pyx_v_offset_u;
42953 int __pyx_v_stride_u;
42954 int __pyx_v_nFreeVDOF_global;
42955 PyArrayObject *__pyx_v_exteriorElementBoundaries = 0;
42956 PyArrayObject *__pyx_v_elementBoundaryElements = 0;
42957 PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries = 0;
42958 PyArrayObject *__pyx_v_nFreeDOF_element_r = 0;
42959 PyArrayObject *__pyx_v_freeLocal_r = 0;
42960 PyArrayObject *__pyx_v_freeGlobal_r = 0;
42961 PyArrayObject *__pyx_v_nFreeDOF_element_u = 0;
42962 PyArrayObject *__pyx_v_freeLocal_u = 0;
42963 PyArrayObject *__pyx_v_freeGlobal_u = 0;
42964 PyArrayObject *__pyx_v_csrRowIndeces_ru = 0;
42965 PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru = 0;
42966 PyArrayObject *__pyx_v_isDOFBoundary = 0;
42967 double __pyx_v_sigma;
42968 PyArrayObject *__pyx_v_v = 0;
42969 PyArrayObject *__pyx_v_n = 0;
42970 PyArrayObject *__pyx_v_a = 0;
42971 PyArrayObject *__pyx_v_grad_w = 0;
42972 PyArrayObject *__pyx_v_dS = 0;
42973 PyObject *__pyx_v_jac = 0;
42974 int __pyx_lineno = 0;
42975 const char *__pyx_filename = NULL;
42976 int __pyx_clineno = 0;
42977 PyObject *__pyx_r = 0;
42978 __Pyx_RefNannyDeclarations
42979 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd (wrapper)", 0);
42981 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_offset_r,&__pyx_n_s_stride_r,&__pyx_n_s_offset_u,&__pyx_n_s_stride_u,&__pyx_n_s_nFreeVDOF_global,&__pyx_n_s_exteriorElementBoundaries,&__pyx_n_s_elementBoundaryElements,&__pyx_n_s_elementBoundaryLocalElementBound,&__pyx_n_s_nFreeDOF_element_r,&__pyx_n_s_freeLocal_r,&__pyx_n_s_freeGlobal_r,&__pyx_n_s_nFreeDOF_element_u,&__pyx_n_s_freeLocal_u,&__pyx_n_s_freeGlobal_u,&__pyx_n_s_csrRowIndeces_ru,&__pyx_n_s_csrColumnOffsets_eb_ru,&__pyx_n_s_isDOFBoundary,&__pyx_n_s_sigma,&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_a,&__pyx_n_s_grad_w,&__pyx_n_s_dS,&__pyx_n_s_jac,0};
42982 PyObject* values[26] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
42983 if (unlikely(__pyx_kwds)) {
42984 Py_ssize_t kw_args;
42985 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42986 switch (pos_args) {
42987 case 26: values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
42988 CYTHON_FALLTHROUGH;
42989 case 25: values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
42990 CYTHON_FALLTHROUGH;
42991 case 24: values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
42992 CYTHON_FALLTHROUGH;
42993 case 23: values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
42994 CYTHON_FALLTHROUGH;
42995 case 22: values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
42996 CYTHON_FALLTHROUGH;
42997 case 21: values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
42998 CYTHON_FALLTHROUGH;
42999 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
43000 CYTHON_FALLTHROUGH;
43001 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
43002 CYTHON_FALLTHROUGH;
43003 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
43004 CYTHON_FALLTHROUGH;
43005 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
43006 CYTHON_FALLTHROUGH;
43007 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
43008 CYTHON_FALLTHROUGH;
43009 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
43010 CYTHON_FALLTHROUGH;
43011 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
43012 CYTHON_FALLTHROUGH;
43013 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
43014 CYTHON_FALLTHROUGH;
43015 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
43016 CYTHON_FALLTHROUGH;
43017 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
43018 CYTHON_FALLTHROUGH;
43019 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
43020 CYTHON_FALLTHROUGH;
43021 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43022 CYTHON_FALLTHROUGH;
43023 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43024 CYTHON_FALLTHROUGH;
43025 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43026 CYTHON_FALLTHROUGH;
43027 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43028 CYTHON_FALLTHROUGH;
43029 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43030 CYTHON_FALLTHROUGH;
43031 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43032 CYTHON_FALLTHROUGH;
43033 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43034 CYTHON_FALLTHROUGH;
43035 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43036 CYTHON_FALLTHROUGH;
43037 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43038 CYTHON_FALLTHROUGH;
43040 default:
goto __pyx_L5_argtuple_error;
43042 kw_args = PyDict_Size(__pyx_kwds);
43043 switch (pos_args) {
43045 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
43046 else goto __pyx_L5_argtuple_error;
43047 CYTHON_FALLTHROUGH;
43049 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
43051 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 1); __PYX_ERR(0, 6504, __pyx_L3_error)
43053 CYTHON_FALLTHROUGH;
43055 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_r)) != 0)) kw_args--;
43057 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 2); __PYX_ERR(0, 6504, __pyx_L3_error)
43059 CYTHON_FALLTHROUGH;
43061 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_r)) != 0)) kw_args--;
43063 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 3); __PYX_ERR(0, 6504, __pyx_L3_error)
43065 CYTHON_FALLTHROUGH;
43067 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_offset_u)) != 0)) kw_args--;
43069 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 4); __PYX_ERR(0, 6504, __pyx_L3_error)
43071 CYTHON_FALLTHROUGH;
43073 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stride_u)) != 0)) kw_args--;
43075 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 5); __PYX_ERR(0, 6504, __pyx_L3_error)
43077 CYTHON_FALLTHROUGH;
43079 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeVDOF_global)) != 0)) kw_args--;
43081 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 6); __PYX_ERR(0, 6504, __pyx_L3_error)
43083 CYTHON_FALLTHROUGH;
43085 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exteriorElementBoundaries)) != 0)) kw_args--;
43087 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 7); __PYX_ERR(0, 6504, __pyx_L3_error)
43089 CYTHON_FALLTHROUGH;
43091 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryElements)) != 0)) kw_args--;
43093 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 8); __PYX_ERR(0, 6504, __pyx_L3_error)
43095 CYTHON_FALLTHROUGH;
43097 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementBoundaryLocalElementBound)) != 0)) kw_args--;
43099 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 9); __PYX_ERR(0, 6504, __pyx_L3_error)
43101 CYTHON_FALLTHROUGH;
43103 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_r)) != 0)) kw_args--;
43105 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 10); __PYX_ERR(0, 6504, __pyx_L3_error)
43107 CYTHON_FALLTHROUGH;
43109 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_r)) != 0)) kw_args--;
43111 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 11); __PYX_ERR(0, 6504, __pyx_L3_error)
43113 CYTHON_FALLTHROUGH;
43115 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_r)) != 0)) kw_args--;
43117 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 12); __PYX_ERR(0, 6504, __pyx_L3_error)
43119 CYTHON_FALLTHROUGH;
43121 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nFreeDOF_element_u)) != 0)) kw_args--;
43123 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 13); __PYX_ERR(0, 6504, __pyx_L3_error)
43125 CYTHON_FALLTHROUGH;
43127 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeLocal_u)) != 0)) kw_args--;
43129 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 14); __PYX_ERR(0, 6504, __pyx_L3_error)
43131 CYTHON_FALLTHROUGH;
43133 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_freeGlobal_u)) != 0)) kw_args--;
43135 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 15); __PYX_ERR(0, 6504, __pyx_L3_error)
43137 CYTHON_FALLTHROUGH;
43139 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrRowIndeces_ru)) != 0)) kw_args--;
43141 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 16); __PYX_ERR(0, 6504, __pyx_L3_error)
43143 CYTHON_FALLTHROUGH;
43145 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_csrColumnOffsets_eb_ru)) != 0)) kw_args--;
43147 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 17); __PYX_ERR(0, 6504, __pyx_L3_error)
43149 CYTHON_FALLTHROUGH;
43151 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isDOFBoundary)) != 0)) kw_args--;
43153 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 18); __PYX_ERR(0, 6504, __pyx_L3_error)
43155 CYTHON_FALLTHROUGH;
43157 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
43159 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 19); __PYX_ERR(0, 6504, __pyx_L3_error)
43161 CYTHON_FALLTHROUGH;
43163 if (likely((values[20] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
43165 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 20); __PYX_ERR(0, 6504, __pyx_L3_error)
43167 CYTHON_FALLTHROUGH;
43169 if (likely((values[21] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
43171 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 21); __PYX_ERR(0, 6504, __pyx_L3_error)
43173 CYTHON_FALLTHROUGH;
43175 if (likely((values[22] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
43177 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 22); __PYX_ERR(0, 6504, __pyx_L3_error)
43179 CYTHON_FALLTHROUGH;
43181 if (likely((values[23] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w)) != 0)) kw_args--;
43183 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 23); __PYX_ERR(0, 6504, __pyx_L3_error)
43185 CYTHON_FALLTHROUGH;
43187 if (likely((values[24] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dS)) != 0)) kw_args--;
43189 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 24); __PYX_ERR(0, 6504, __pyx_L3_error)
43191 CYTHON_FALLTHROUGH;
43193 if (likely((values[25] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jac)) != 0)) kw_args--;
43195 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, 25); __PYX_ERR(0, 6504, __pyx_L3_error)
43198 if (unlikely(kw_args > 0)) {
43199 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd") < 0)) __PYX_ERR(0, 6504, __pyx_L3_error)
43201 }
else if (PyTuple_GET_SIZE(__pyx_args) != 26) {
43202 goto __pyx_L5_argtuple_error;
43204 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43205 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43206 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43207 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43208 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43209 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
43210 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
43211 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
43212 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
43213 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
43214 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
43215 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
43216 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
43217 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
43218 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
43219 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
43220 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
43221 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
43222 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
43223 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
43224 values[20] = PyTuple_GET_ITEM(__pyx_args, 20);
43225 values[21] = PyTuple_GET_ITEM(__pyx_args, 21);
43226 values[22] = PyTuple_GET_ITEM(__pyx_args, 22);
43227 values[23] = PyTuple_GET_ITEM(__pyx_args, 23);
43228 values[24] = PyTuple_GET_ITEM(__pyx_args, 24);
43229 values[25] = PyTuple_GET_ITEM(__pyx_args, 25);
43231 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
43232 __pyx_v_colind = ((PyArrayObject *)values[1]);
43233 __pyx_v_offset_r = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_offset_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6506, __pyx_L3_error)
43234 __pyx_v_stride_r = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_stride_r == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6507, __pyx_L3_error)
43235 __pyx_v_offset_u = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_offset_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6508, __pyx_L3_error)
43236 __pyx_v_stride_u = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_stride_u == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6509, __pyx_L3_error)
43237 __pyx_v_nFreeVDOF_global = __Pyx_PyInt_As_int(values[6]);
if (unlikely((__pyx_v_nFreeVDOF_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6510, __pyx_L3_error)
43238 __pyx_v_exteriorElementBoundaries = ((PyArrayObject *)values[7]);
43239 __pyx_v_elementBoundaryElements = ((PyArrayObject *)values[8]);
43240 __pyx_v_elementBoundaryLocalElementBoundaries = ((PyArrayObject *)values[9]);
43241 __pyx_v_nFreeDOF_element_r = ((PyArrayObject *)values[10]);
43242 __pyx_v_freeLocal_r = ((PyArrayObject *)values[11]);
43243 __pyx_v_freeGlobal_r = ((PyArrayObject *)values[12]);
43244 __pyx_v_nFreeDOF_element_u = ((PyArrayObject *)values[13]);
43245 __pyx_v_freeLocal_u = ((PyArrayObject *)values[14]);
43246 __pyx_v_freeGlobal_u = ((PyArrayObject *)values[15]);
43247 __pyx_v_csrRowIndeces_ru = ((PyArrayObject *)values[16]);
43248 __pyx_v_csrColumnOffsets_eb_ru = ((PyArrayObject *)values[17]);
43249 __pyx_v_isDOFBoundary = ((PyArrayObject *)values[18]);
43250 __pyx_v_sigma = __pyx_PyFloat_AsDouble(values[19]);
if (unlikely((__pyx_v_sigma == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6523, __pyx_L3_error)
43251 __pyx_v_v = ((PyArrayObject *)values[20]);
43252 __pyx_v_n = ((PyArrayObject *)values[21]);
43253 __pyx_v_a = ((PyArrayObject *)values[22]);
43254 __pyx_v_grad_w = ((PyArrayObject *)values[23]);
43255 __pyx_v_dS = ((PyArrayObject *)values[24]);
43256 __pyx_v_jac = values[25];
43258 goto __pyx_L4_argument_unpacking_done;
43259 __pyx_L5_argtuple_error:;
43260 __Pyx_RaiseArgtupleInvalid(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 1, 26, 26, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6504, __pyx_L3_error)
43262 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
43263 __Pyx_RefNannyFinishContext();
43265 __pyx_L4_argument_unpacking_done:;
43266 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6504, __pyx_L1_error)
43267 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6505, __pyx_L1_error)
43268 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exteriorElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"exteriorElementBoundaries", 0))) __PYX_ERR(0, 6511, __pyx_L1_error)
43269 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryElements), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryElements", 0))) __PYX_ERR(0, 6512, __pyx_L1_error)
43270 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementBoundaryLocalElementBoundaries), __pyx_ptype_5numpy_ndarray, 1,
"elementBoundaryLocalElementBoundaries", 0))) __PYX_ERR(0, 6513, __pyx_L1_error)
43271 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_r), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_r", 0))) __PYX_ERR(0, 6514, __pyx_L1_error)
43272 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_r", 0))) __PYX_ERR(0, 6515, __pyx_L1_error)
43273 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_r), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_r", 0))) __PYX_ERR(0, 6516, __pyx_L1_error)
43274 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nFreeDOF_element_u), __pyx_ptype_5numpy_ndarray, 1,
"nFreeDOF_element_u", 0))) __PYX_ERR(0, 6517, __pyx_L1_error)
43275 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeLocal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeLocal_u", 0))) __PYX_ERR(0, 6518, __pyx_L1_error)
43276 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_freeGlobal_u), __pyx_ptype_5numpy_ndarray, 1,
"freeGlobal_u", 0))) __PYX_ERR(0, 6519, __pyx_L1_error)
43277 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrRowIndeces_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrRowIndeces_ru", 0))) __PYX_ERR(0, 6520, __pyx_L1_error)
43278 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_csrColumnOffsets_eb_ru), __pyx_ptype_5numpy_ndarray, 1,
"csrColumnOffsets_eb_ru", 0))) __PYX_ERR(0, 6521, __pyx_L1_error)
43279 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_isDOFBoundary), __pyx_ptype_5numpy_ndarray, 1,
"isDOFBoundary", 0))) __PYX_ERR(0, 6522, __pyx_L1_error)
43280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6524, __pyx_L1_error)
43281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_5numpy_ndarray, 1,
"n", 0))) __PYX_ERR(0, 6525, __pyx_L1_error)
43282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6526, __pyx_L1_error)
43283 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w), __pyx_ptype_5numpy_ndarray, 1,
"grad_w", 0))) __PYX_ERR(0, 6527, __pyx_L1_error)
43284 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dS), __pyx_ptype_5numpy_ndarray, 1,
"dS", 0))) __PYX_ERR(0, 6528, __pyx_L1_error)
43285 __pyx_r = __pyx_pf_13cfemIntegrals_366updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, __pyx_v_exteriorElementBoundaries, __pyx_v_elementBoundaryElements, __pyx_v_elementBoundaryLocalElementBoundaries, __pyx_v_nFreeDOF_element_r, __pyx_v_freeLocal_r, __pyx_v_freeGlobal_r, __pyx_v_nFreeDOF_element_u, __pyx_v_freeLocal_u, __pyx_v_freeGlobal_u, __pyx_v_csrRowIndeces_ru, __pyx_v_csrColumnOffsets_eb_ru, __pyx_v_isDOFBoundary, __pyx_v_sigma, __pyx_v_v, __pyx_v_n, __pyx_v_a, __pyx_v_grad_w, __pyx_v_dS, __pyx_v_jac);
43292 __Pyx_RefNannyFinishContext();
43296 static PyObject *__pyx_pf_13cfemIntegrals_366updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind,
int __pyx_v_offset_r,
int __pyx_v_stride_r,
int __pyx_v_offset_u,
int __pyx_v_stride_u,
int __pyx_v_nFreeVDOF_global, PyArrayObject *__pyx_v_exteriorElementBoundaries, PyArrayObject *__pyx_v_elementBoundaryElements, PyArrayObject *__pyx_v_elementBoundaryLocalElementBoundaries, PyArrayObject *__pyx_v_nFreeDOF_element_r, PyArrayObject *__pyx_v_freeLocal_r, PyArrayObject *__pyx_v_freeGlobal_r, PyArrayObject *__pyx_v_nFreeDOF_element_u, PyArrayObject *__pyx_v_freeLocal_u, PyArrayObject *__pyx_v_freeGlobal_u, PyArrayObject *__pyx_v_csrRowIndeces_ru, PyArrayObject *__pyx_v_csrColumnOffsets_eb_ru, PyArrayObject *__pyx_v_isDOFBoundary,
double __pyx_v_sigma, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_n, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_grad_w, PyArrayObject *__pyx_v_dS, PyObject *__pyx_v_jac) {
43297 CYTHON_UNUSED PyArrayObject *__pyx_v_rowptr_dummy = 0;
43298 CYTHON_UNUSED PyArrayObject *__pyx_v_colind_dummy = 0;
43299 PyArrayObject *__pyx_v_jac_array = 0;
43300 int __pyx_v_nExteriorElementBoundaries_global;
43301 int __pyx_v_nQuadraturePoints_elementBoundary;
43302 int __pyx_v_nDOF_test_element;
43303 int __pyx_v_nDOF_trial_element;
43304 int __pyx_v_nSpace;
43305 PyObject *__pyx_r = NULL;
43306 __Pyx_RefNannyDeclarations
43307 PyObject *__pyx_t_1 = NULL;
43308 PyObject *__pyx_t_2 = NULL;
43309 PyObject *__pyx_t_3 = NULL;
43310 PyObject *__pyx_t_4 = NULL;
43311 PyObject *__pyx_t_5 = NULL;
43312 PyObject *(*__pyx_t_6)(PyObject *);
43313 int __pyx_lineno = 0;
43314 const char *__pyx_filename = NULL;
43315 int __pyx_clineno = 0;
43316 __Pyx_RefNannySetupContext(
"updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", 0);
43325 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_jac, __pyx_n_s_getCSRrepresentation);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6531, __pyx_L1_error)
43326 __Pyx_GOTREF(__pyx_t_2);
43328 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
43329 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
43330 if (likely(__pyx_t_3)) {
43331 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
43332 __Pyx_INCREF(__pyx_t_3);
43333 __Pyx_INCREF(
function);
43334 __Pyx_DECREF_SET(__pyx_t_2,
function);
43337 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
43338 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
43339 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6531, __pyx_L1_error)
43340 __Pyx_GOTREF(__pyx_t_1);
43341 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43342 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
43343 PyObject* sequence = __pyx_t_1;
43344 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
43345 if (unlikely(size != 3)) {
43346 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
43347 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
43348 __PYX_ERR(0, 6531, __pyx_L1_error)
43350 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
43351 if (likely(PyTuple_CheckExact(sequence))) {
43352 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
43353 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
43354 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
43356 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
43357 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
43358 __pyx_t_4 = PyList_GET_ITEM(sequence, 2);
43360 __Pyx_INCREF(__pyx_t_2);
43361 __Pyx_INCREF(__pyx_t_3);
43362 __Pyx_INCREF(__pyx_t_4);
43364 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6531, __pyx_L1_error)
43365 __Pyx_GOTREF(__pyx_t_2);
43366 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6531, __pyx_L1_error)
43367 __Pyx_GOTREF(__pyx_t_3);
43368 __pyx_t_4 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6531, __pyx_L1_error)
43369 __Pyx_GOTREF(__pyx_t_4);
43371 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43373 Py_ssize_t index = -1;
43374 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6531, __pyx_L1_error)
43375 __Pyx_GOTREF(__pyx_t_5);
43376 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43377 __pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
43378 index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
43379 __Pyx_GOTREF(__pyx_t_2);
43380 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
43381 __Pyx_GOTREF(__pyx_t_3);
43382 index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5);
if (unlikely(!__pyx_t_4))
goto __pyx_L3_unpacking_failed;
43383 __Pyx_GOTREF(__pyx_t_4);
43384 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 6531, __pyx_L1_error)
43386 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43387 goto __pyx_L4_unpacking_done;
43388 __pyx_L3_unpacking_failed:;
43389 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43391 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43392 __PYX_ERR(0, 6531, __pyx_L1_error)
43393 __pyx_L4_unpacking_done:;
43395 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6531, __pyx_L1_error)
43396 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6531, __pyx_L1_error)
43397 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6531, __pyx_L1_error)
43398 __pyx_v_rowptr_dummy = ((PyArrayObject *)__pyx_t_2);
43400 __pyx_v_colind_dummy = ((PyArrayObject *)__pyx_t_3);
43402 __pyx_v_jac_array = ((PyArrayObject *)__pyx_t_4);
43412 __pyx_v_nExteriorElementBoundaries_global = (__pyx_v_exteriorElementBoundaries->dimensions[0]);
43421 __pyx_v_nQuadraturePoints_elementBoundary = (__pyx_v_grad_w->dimensions[1]);
43430 __pyx_v_nDOF_test_element = (__pyx_v_grad_w->dimensions[2]);
43439 __pyx_v_nDOF_trial_element = (__pyx_v_v->dimensions[2]);
43448 __pyx_v_nSpace = (__pyx_v_n->dimensions[2]);
43457 updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd(__pyx_v_nExteriorElementBoundaries_global, __pyx_v_nQuadraturePoints_elementBoundary, __pyx_v_nDOF_test_element, __pyx_v_nDOF_trial_element, __pyx_v_nSpace, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), __pyx_v_offset_r, __pyx_v_stride_r, __pyx_v_offset_u, __pyx_v_stride_u, __pyx_v_nFreeVDOF_global, ((
int *)__pyx_v_exteriorElementBoundaries->data), ((
int *)__pyx_v_elementBoundaryElements->data), ((
int *)__pyx_v_elementBoundaryLocalElementBoundaries->data), ((
int *)__pyx_v_nFreeDOF_element_r->data), ((
int *)__pyx_v_freeLocal_r->data), ((
int *)__pyx_v_freeGlobal_r->data), ((
int *)__pyx_v_nFreeDOF_element_u->data), ((
int *)__pyx_v_freeLocal_u->data), ((
int *)__pyx_v_freeGlobal_u->data), ((
int *)__pyx_v_csrRowIndeces_ru->data), ((
int *)__pyx_v_csrColumnOffsets_eb_ru->data), ((
int *)__pyx_v_isDOFBoundary->data), __pyx_v_sigma, ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_n->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_grad_w->data), ((
double *)__pyx_v_dS->data), ((
double *)__pyx_v_jac_array->data));
43468 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43471 __Pyx_XDECREF(__pyx_t_1);
43472 __Pyx_XDECREF(__pyx_t_2);
43473 __Pyx_XDECREF(__pyx_t_3);
43474 __Pyx_XDECREF(__pyx_t_4);
43475 __Pyx_XDECREF(__pyx_t_5);
43476 __Pyx_AddTraceback(
"cfemIntegrals.updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
43479 __Pyx_XDECREF((PyObject *)__pyx_v_rowptr_dummy);
43480 __Pyx_XDECREF((PyObject *)__pyx_v_colind_dummy);
43481 __Pyx_XDECREF((PyObject *)__pyx_v_jac_array);
43482 __Pyx_XGIVEREF(__pyx_r);
43483 __Pyx_RefNannyFinishContext();
43496 static PyObject *__pyx_pw_13cfemIntegrals_369update_f_movingDomain(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43497 static PyMethodDef __pyx_mdef_13cfemIntegrals_369update_f_movingDomain = {
"update_f_movingDomain", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_369update_f_movingDomain, METH_VARARGS|METH_KEYWORDS, 0};
43498 static PyObject *__pyx_pw_13cfemIntegrals_369update_f_movingDomain(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43499 PyArrayObject *__pyx_v_xt = 0;
43500 PyArrayObject *__pyx_v_m = 0;
43501 PyArrayObject *__pyx_v_f = 0;
43502 int __pyx_lineno = 0;
43503 const char *__pyx_filename = NULL;
43504 int __pyx_clineno = 0;
43505 PyObject *__pyx_r = 0;
43506 __Pyx_RefNannyDeclarations
43507 __Pyx_RefNannySetupContext(
"update_f_movingDomain (wrapper)", 0);
43509 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xt,&__pyx_n_s_m,&__pyx_n_s_f,0};
43510 PyObject* values[3] = {0,0,0};
43511 if (unlikely(__pyx_kwds)) {
43512 Py_ssize_t kw_args;
43513 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43514 switch (pos_args) {
43515 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43516 CYTHON_FALLTHROUGH;
43517 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43518 CYTHON_FALLTHROUGH;
43519 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43520 CYTHON_FALLTHROUGH;
43522 default:
goto __pyx_L5_argtuple_error;
43524 kw_args = PyDict_Size(__pyx_kwds);
43525 switch (pos_args) {
43527 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xt)) != 0)) kw_args--;
43528 else goto __pyx_L5_argtuple_error;
43529 CYTHON_FALLTHROUGH;
43531 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
43533 __Pyx_RaiseArgtupleInvalid(
"update_f_movingDomain", 1, 3, 3, 1); __PYX_ERR(0, 6568, __pyx_L3_error)
43535 CYTHON_FALLTHROUGH;
43537 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
43539 __Pyx_RaiseArgtupleInvalid(
"update_f_movingDomain", 1, 3, 3, 2); __PYX_ERR(0, 6568, __pyx_L3_error)
43542 if (unlikely(kw_args > 0)) {
43543 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"update_f_movingDomain") < 0)) __PYX_ERR(0, 6568, __pyx_L3_error)
43545 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
43546 goto __pyx_L5_argtuple_error;
43548 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43549 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43550 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43552 __pyx_v_xt = ((PyArrayObject *)values[0]);
43553 __pyx_v_m = ((PyArrayObject *)values[1]);
43554 __pyx_v_f = ((PyArrayObject *)values[2]);
43556 goto __pyx_L4_argument_unpacking_done;
43557 __pyx_L5_argtuple_error:;
43558 __Pyx_RaiseArgtupleInvalid(
"update_f_movingDomain", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6568, __pyx_L3_error)
43560 __Pyx_AddTraceback(
"cfemIntegrals.update_f_movingDomain", __pyx_clineno, __pyx_lineno, __pyx_filename);
43561 __Pyx_RefNannyFinishContext();
43563 __pyx_L4_argument_unpacking_done:;
43564 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xt), __pyx_ptype_5numpy_ndarray, 1,
"xt", 0))) __PYX_ERR(0, 6568, __pyx_L1_error)
43565 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_5numpy_ndarray, 1,
"m", 0))) __PYX_ERR(0, 6569, __pyx_L1_error)
43566 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 6570, __pyx_L1_error)
43567 __pyx_r = __pyx_pf_13cfemIntegrals_368update_f_movingDomain(__pyx_self, __pyx_v_xt, __pyx_v_m, __pyx_v_f);
43574 __Pyx_RefNannyFinishContext();
43578 static PyObject *__pyx_pf_13cfemIntegrals_368update_f_movingDomain(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xt, PyArrayObject *__pyx_v_m, PyArrayObject *__pyx_v_f) {
43579 PyObject *__pyx_r = NULL;
43580 __Pyx_RefNannyDeclarations
43581 __Pyx_RefNannySetupContext(
"update_f_movingDomain", 0);
43590 switch (__pyx_v_m->nd) {
43600 update_f_movingDomain_q((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), ((
double *)__pyx_v_xt->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_f->data));
43619 update_f_movingDomain_ebq((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
double *)__pyx_v_xt->data), ((
double *)__pyx_v_m->data), ((
double *)__pyx_v_f->data));
43641 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43642 __Pyx_XGIVEREF(__pyx_r);
43643 __Pyx_RefNannyFinishContext();
43656 static PyObject *__pyx_pw_13cfemIntegrals_371update_f_movingDomain_constantMass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43657 static PyMethodDef __pyx_mdef_13cfemIntegrals_371update_f_movingDomain_constantMass = {
"update_f_movingDomain_constantMass", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_371update_f_movingDomain_constantMass, METH_VARARGS|METH_KEYWORDS, 0};
43658 static PyObject *__pyx_pw_13cfemIntegrals_371update_f_movingDomain_constantMass(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43659 PyArrayObject *__pyx_v_xt = 0;
43660 PyArrayObject *__pyx_v_f = 0;
43661 int __pyx_lineno = 0;
43662 const char *__pyx_filename = NULL;
43663 int __pyx_clineno = 0;
43664 PyObject *__pyx_r = 0;
43665 __Pyx_RefNannyDeclarations
43666 __Pyx_RefNannySetupContext(
"update_f_movingDomain_constantMass (wrapper)", 0);
43668 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xt,&__pyx_n_s_f,0};
43669 PyObject* values[2] = {0,0};
43670 if (unlikely(__pyx_kwds)) {
43671 Py_ssize_t kw_args;
43672 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43673 switch (pos_args) {
43674 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43675 CYTHON_FALLTHROUGH;
43676 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43677 CYTHON_FALLTHROUGH;
43679 default:
goto __pyx_L5_argtuple_error;
43681 kw_args = PyDict_Size(__pyx_kwds);
43682 switch (pos_args) {
43684 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xt)) != 0)) kw_args--;
43685 else goto __pyx_L5_argtuple_error;
43686 CYTHON_FALLTHROUGH;
43688 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
43690 __Pyx_RaiseArgtupleInvalid(
"update_f_movingDomain_constantMass", 1, 2, 2, 1); __PYX_ERR(0, 6586, __pyx_L3_error)
43693 if (unlikely(kw_args > 0)) {
43694 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"update_f_movingDomain_constantMass") < 0)) __PYX_ERR(0, 6586, __pyx_L3_error)
43696 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
43697 goto __pyx_L5_argtuple_error;
43699 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43700 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43702 __pyx_v_xt = ((PyArrayObject *)values[0]);
43703 __pyx_v_f = ((PyArrayObject *)values[1]);
43705 goto __pyx_L4_argument_unpacking_done;
43706 __pyx_L5_argtuple_error:;
43707 __Pyx_RaiseArgtupleInvalid(
"update_f_movingDomain_constantMass", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6586, __pyx_L3_error)
43709 __Pyx_AddTraceback(
"cfemIntegrals.update_f_movingDomain_constantMass", __pyx_clineno, __pyx_lineno, __pyx_filename);
43710 __Pyx_RefNannyFinishContext();
43712 __pyx_L4_argument_unpacking_done:;
43713 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_xt), __pyx_ptype_5numpy_ndarray, 1,
"xt", 0))) __PYX_ERR(0, 6586, __pyx_L1_error)
43714 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_f), __pyx_ptype_5numpy_ndarray, 1,
"f", 0))) __PYX_ERR(0, 6587, __pyx_L1_error)
43715 __pyx_r = __pyx_pf_13cfemIntegrals_370update_f_movingDomain_constantMass(__pyx_self, __pyx_v_xt, __pyx_v_f);
43722 __Pyx_RefNannyFinishContext();
43726 static PyObject *__pyx_pf_13cfemIntegrals_370update_f_movingDomain_constantMass(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_xt, PyArrayObject *__pyx_v_f) {
43727 PyObject *__pyx_r = NULL;
43728 __Pyx_RefNannyDeclarations
43729 __Pyx_RefNannySetupContext(
"update_f_movingDomain_constantMass", 0);
43738 switch (__pyx_v_f->nd) {
43748 update_f_movingDomain_constantMass_q((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), ((
double *)__pyx_v_xt->data), ((
double *)__pyx_v_f->data));
43767 update_f_movingDomain_constantMass_ebq((__pyx_v_f->dimensions[0]), (__pyx_v_f->dimensions[1]), (__pyx_v_f->dimensions[2]), (__pyx_v_f->dimensions[3]), ((
double *)__pyx_v_xt->data), ((
double *)__pyx_v_f->data));
43789 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43790 __Pyx_XGIVEREF(__pyx_r);
43791 __Pyx_RefNannyFinishContext();
43804 static PyObject *__pyx_pw_13cfemIntegrals_373updateStress_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43805 static PyMethodDef __pyx_mdef_13cfemIntegrals_373updateStress_weak = {
"updateStress_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_373updateStress_weak, METH_VARARGS|METH_KEYWORDS, 0};
43806 static PyObject *__pyx_pw_13cfemIntegrals_373updateStress_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43807 PyArrayObject *__pyx_v_sigma = 0;
43808 PyArrayObject *__pyx_v_grad_w_dV = 0;
43809 PyArrayObject *__pyx_v_weak_residual_x = 0;
43810 PyArrayObject *__pyx_v_weak_residual_y = 0;
43811 PyArrayObject *__pyx_v_weak_residual_z = 0;
43812 int __pyx_lineno = 0;
43813 const char *__pyx_filename = NULL;
43814 int __pyx_clineno = 0;
43815 PyObject *__pyx_r = 0;
43816 __Pyx_RefNannyDeclarations
43817 __Pyx_RefNannySetupContext(
"updateStress_weak (wrapper)", 0);
43819 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sigma,&__pyx_n_s_grad_w_dV,&__pyx_n_s_weak_residual_x,&__pyx_n_s_weak_residual_y,&__pyx_n_s_weak_residual_z,0};
43820 PyObject* values[5] = {0,0,0,0,0};
43821 if (unlikely(__pyx_kwds)) {
43822 Py_ssize_t kw_args;
43823 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43824 switch (pos_args) {
43825 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43826 CYTHON_FALLTHROUGH;
43827 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43828 CYTHON_FALLTHROUGH;
43829 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43830 CYTHON_FALLTHROUGH;
43831 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43832 CYTHON_FALLTHROUGH;
43833 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43834 CYTHON_FALLTHROUGH;
43836 default:
goto __pyx_L5_argtuple_error;
43838 kw_args = PyDict_Size(__pyx_kwds);
43839 switch (pos_args) {
43841 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sigma)) != 0)) kw_args--;
43842 else goto __pyx_L5_argtuple_error;
43843 CYTHON_FALLTHROUGH;
43845 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
43847 __Pyx_RaiseArgtupleInvalid(
"updateStress_weak", 1, 5, 5, 1); __PYX_ERR(0, 6601, __pyx_L3_error)
43849 CYTHON_FALLTHROUGH;
43851 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual_x)) != 0)) kw_args--;
43853 __Pyx_RaiseArgtupleInvalid(
"updateStress_weak", 1, 5, 5, 2); __PYX_ERR(0, 6601, __pyx_L3_error)
43855 CYTHON_FALLTHROUGH;
43857 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual_y)) != 0)) kw_args--;
43859 __Pyx_RaiseArgtupleInvalid(
"updateStress_weak", 1, 5, 5, 3); __PYX_ERR(0, 6601, __pyx_L3_error)
43861 CYTHON_FALLTHROUGH;
43863 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_weak_residual_z)) != 0)) kw_args--;
43865 __Pyx_RaiseArgtupleInvalid(
"updateStress_weak", 1, 5, 5, 4); __PYX_ERR(0, 6601, __pyx_L3_error)
43868 if (unlikely(kw_args > 0)) {
43869 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateStress_weak") < 0)) __PYX_ERR(0, 6601, __pyx_L3_error)
43871 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
43872 goto __pyx_L5_argtuple_error;
43874 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43875 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43876 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43877 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43878 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43880 __pyx_v_sigma = ((PyArrayObject *)values[0]);
43881 __pyx_v_grad_w_dV = ((PyArrayObject *)values[1]);
43882 __pyx_v_weak_residual_x = ((PyArrayObject *)values[2]);
43883 __pyx_v_weak_residual_y = ((PyArrayObject *)values[3]);
43884 __pyx_v_weak_residual_z = ((PyArrayObject *)values[4]);
43886 goto __pyx_L4_argument_unpacking_done;
43887 __pyx_L5_argtuple_error:;
43888 __Pyx_RaiseArgtupleInvalid(
"updateStress_weak", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6601, __pyx_L3_error)
43890 __Pyx_AddTraceback(
"cfemIntegrals.updateStress_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
43891 __Pyx_RefNannyFinishContext();
43893 __pyx_L4_argument_unpacking_done:;
43894 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sigma), __pyx_ptype_5numpy_ndarray, 1,
"sigma", 0))) __PYX_ERR(0, 6601, __pyx_L1_error)
43895 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 6602, __pyx_L1_error)
43896 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual_x), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual_x", 0))) __PYX_ERR(0, 6603, __pyx_L1_error)
43897 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual_y), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual_y", 0))) __PYX_ERR(0, 6604, __pyx_L1_error)
43898 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_weak_residual_z), __pyx_ptype_5numpy_ndarray, 1,
"weak_residual_z", 0))) __PYX_ERR(0, 6605, __pyx_L1_error)
43899 __pyx_r = __pyx_pf_13cfemIntegrals_372updateStress_weak(__pyx_self, __pyx_v_sigma, __pyx_v_grad_w_dV, __pyx_v_weak_residual_x, __pyx_v_weak_residual_y, __pyx_v_weak_residual_z);
43906 __Pyx_RefNannyFinishContext();
43910 static PyObject *__pyx_pf_13cfemIntegrals_372updateStress_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_sigma, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_weak_residual_x, PyArrayObject *__pyx_v_weak_residual_y, PyArrayObject *__pyx_v_weak_residual_z) {
43911 int __pyx_v_nElements_global;
43912 int __pyx_v_nQuadraturePoints_element;
43913 int __pyx_v_nDOF_test_element;
43914 int __pyx_v_nSpace;
43915 PyObject *__pyx_r = NULL;
43916 __Pyx_RefNannyDeclarations
43917 __Pyx_RefNannySetupContext(
"updateStress_weak", 0);
43926 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
43935 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
43944 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
43953 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
43962 updateStress_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_sigma->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_weak_residual_x->data), ((
double *)__pyx_v_weak_residual_y->data), ((
double *)__pyx_v_weak_residual_z->data));
43973 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
43974 __Pyx_XGIVEREF(__pyx_r);
43975 __Pyx_RefNannyFinishContext();
43988 static PyObject *__pyx_pw_13cfemIntegrals_375updateStressJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43989 static PyMethodDef __pyx_mdef_13cfemIntegrals_375updateStressJacobian_weak = {
"updateStressJacobian_weak", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_375updateStressJacobian_weak, METH_VARARGS|METH_KEYWORDS, 0};
43990 static PyObject *__pyx_pw_13cfemIntegrals_375updateStressJacobian_weak(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43991 PyArrayObject *__pyx_v_dsigma_xx = 0;
43992 PyArrayObject *__pyx_v_dsigma_xy = 0;
43993 PyArrayObject *__pyx_v_dsigma_xz = 0;
43994 PyArrayObject *__pyx_v_dsigma_yx = 0;
43995 PyArrayObject *__pyx_v_dsigma_yy = 0;
43996 PyArrayObject *__pyx_v_dsigma_yz = 0;
43997 PyArrayObject *__pyx_v_dsigma_zx = 0;
43998 PyArrayObject *__pyx_v_dsigma_zy = 0;
43999 PyArrayObject *__pyx_v_dsigma_zz = 0;
44000 PyArrayObject *__pyx_v_grad_v = 0;
44001 PyArrayObject *__pyx_v_grad_w_dV = 0;
44002 PyArrayObject *__pyx_v_jacobian_weak_residual_xx = 0;
44003 PyArrayObject *__pyx_v_jacobian_weak_residual_xy = 0;
44004 PyArrayObject *__pyx_v_jacobian_weak_residual_xz = 0;
44005 PyArrayObject *__pyx_v_jacobian_weak_residual_yx = 0;
44006 PyArrayObject *__pyx_v_jacobian_weak_residual_yy = 0;
44007 PyArrayObject *__pyx_v_jacobian_weak_residual_yz = 0;
44008 PyArrayObject *__pyx_v_jacobian_weak_residual_zx = 0;
44009 PyArrayObject *__pyx_v_jacobian_weak_residual_zy = 0;
44010 PyArrayObject *__pyx_v_jacobian_weak_residual_zz = 0;
44011 int __pyx_lineno = 0;
44012 const char *__pyx_filename = NULL;
44013 int __pyx_clineno = 0;
44014 PyObject *__pyx_r = 0;
44015 __Pyx_RefNannyDeclarations
44016 __Pyx_RefNannySetupContext(
"updateStressJacobian_weak (wrapper)", 0);
44018 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dsigma_xx,&__pyx_n_s_dsigma_xy,&__pyx_n_s_dsigma_xz,&__pyx_n_s_dsigma_yx,&__pyx_n_s_dsigma_yy,&__pyx_n_s_dsigma_yz,&__pyx_n_s_dsigma_zx,&__pyx_n_s_dsigma_zy,&__pyx_n_s_dsigma_zz,&__pyx_n_s_grad_v,&__pyx_n_s_grad_w_dV,&__pyx_n_s_jacobian_weak_residual_xx,&__pyx_n_s_jacobian_weak_residual_xy,&__pyx_n_s_jacobian_weak_residual_xz,&__pyx_n_s_jacobian_weak_residual_yx,&__pyx_n_s_jacobian_weak_residual_yy,&__pyx_n_s_jacobian_weak_residual_yz,&__pyx_n_s_jacobian_weak_residual_zx,&__pyx_n_s_jacobian_weak_residual_zy,&__pyx_n_s_jacobian_weak_residual_zz,0};
44019 PyObject* values[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
44020 if (unlikely(__pyx_kwds)) {
44021 Py_ssize_t kw_args;
44022 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44023 switch (pos_args) {
44024 case 20: values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
44025 CYTHON_FALLTHROUGH;
44026 case 19: values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
44027 CYTHON_FALLTHROUGH;
44028 case 18: values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
44029 CYTHON_FALLTHROUGH;
44030 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
44031 CYTHON_FALLTHROUGH;
44032 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44033 CYTHON_FALLTHROUGH;
44034 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44035 CYTHON_FALLTHROUGH;
44036 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44037 CYTHON_FALLTHROUGH;
44038 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44039 CYTHON_FALLTHROUGH;
44040 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44041 CYTHON_FALLTHROUGH;
44042 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44043 CYTHON_FALLTHROUGH;
44044 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44045 CYTHON_FALLTHROUGH;
44046 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44047 CYTHON_FALLTHROUGH;
44048 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44049 CYTHON_FALLTHROUGH;
44050 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44051 CYTHON_FALLTHROUGH;
44052 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44053 CYTHON_FALLTHROUGH;
44054 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44055 CYTHON_FALLTHROUGH;
44056 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44057 CYTHON_FALLTHROUGH;
44058 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44059 CYTHON_FALLTHROUGH;
44060 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44061 CYTHON_FALLTHROUGH;
44062 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44063 CYTHON_FALLTHROUGH;
44065 default:
goto __pyx_L5_argtuple_error;
44067 kw_args = PyDict_Size(__pyx_kwds);
44068 switch (pos_args) {
44070 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_xx)) != 0)) kw_args--;
44071 else goto __pyx_L5_argtuple_error;
44072 CYTHON_FALLTHROUGH;
44074 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_xy)) != 0)) kw_args--;
44076 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 1); __PYX_ERR(0, 6619, __pyx_L3_error)
44078 CYTHON_FALLTHROUGH;
44080 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_xz)) != 0)) kw_args--;
44082 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 2); __PYX_ERR(0, 6619, __pyx_L3_error)
44084 CYTHON_FALLTHROUGH;
44086 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_yx)) != 0)) kw_args--;
44088 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 3); __PYX_ERR(0, 6619, __pyx_L3_error)
44090 CYTHON_FALLTHROUGH;
44092 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_yy)) != 0)) kw_args--;
44094 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 4); __PYX_ERR(0, 6619, __pyx_L3_error)
44096 CYTHON_FALLTHROUGH;
44098 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_yz)) != 0)) kw_args--;
44100 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 5); __PYX_ERR(0, 6619, __pyx_L3_error)
44102 CYTHON_FALLTHROUGH;
44104 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_zx)) != 0)) kw_args--;
44106 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 6); __PYX_ERR(0, 6619, __pyx_L3_error)
44108 CYTHON_FALLTHROUGH;
44110 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_zy)) != 0)) kw_args--;
44112 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 7); __PYX_ERR(0, 6619, __pyx_L3_error)
44114 CYTHON_FALLTHROUGH;
44116 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dsigma_zz)) != 0)) kw_args--;
44118 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 8); __PYX_ERR(0, 6619, __pyx_L3_error)
44120 CYTHON_FALLTHROUGH;
44122 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_v)) != 0)) kw_args--;
44124 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 9); __PYX_ERR(0, 6619, __pyx_L3_error)
44126 CYTHON_FALLTHROUGH;
44128 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
44130 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 10); __PYX_ERR(0, 6619, __pyx_L3_error)
44132 CYTHON_FALLTHROUGH;
44134 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_xx)) != 0)) kw_args--;
44136 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 11); __PYX_ERR(0, 6619, __pyx_L3_error)
44138 CYTHON_FALLTHROUGH;
44140 if (likely((values[12] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_xy)) != 0)) kw_args--;
44142 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 12); __PYX_ERR(0, 6619, __pyx_L3_error)
44144 CYTHON_FALLTHROUGH;
44146 if (likely((values[13] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_xz)) != 0)) kw_args--;
44148 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 13); __PYX_ERR(0, 6619, __pyx_L3_error)
44150 CYTHON_FALLTHROUGH;
44152 if (likely((values[14] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_yx)) != 0)) kw_args--;
44154 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 14); __PYX_ERR(0, 6619, __pyx_L3_error)
44156 CYTHON_FALLTHROUGH;
44158 if (likely((values[15] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_yy)) != 0)) kw_args--;
44160 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 15); __PYX_ERR(0, 6619, __pyx_L3_error)
44162 CYTHON_FALLTHROUGH;
44164 if (likely((values[16] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_yz)) != 0)) kw_args--;
44166 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 16); __PYX_ERR(0, 6619, __pyx_L3_error)
44168 CYTHON_FALLTHROUGH;
44170 if (likely((values[17] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_zx)) != 0)) kw_args--;
44172 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 17); __PYX_ERR(0, 6619, __pyx_L3_error)
44174 CYTHON_FALLTHROUGH;
44176 if (likely((values[18] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_zy)) != 0)) kw_args--;
44178 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 18); __PYX_ERR(0, 6619, __pyx_L3_error)
44180 CYTHON_FALLTHROUGH;
44182 if (likely((values[19] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_weak_residual_zz)) != 0)) kw_args--;
44184 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, 19); __PYX_ERR(0, 6619, __pyx_L3_error)
44187 if (unlikely(kw_args > 0)) {
44188 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateStressJacobian_weak") < 0)) __PYX_ERR(0, 6619, __pyx_L3_error)
44190 }
else if (PyTuple_GET_SIZE(__pyx_args) != 20) {
44191 goto __pyx_L5_argtuple_error;
44193 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44194 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44195 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44196 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44197 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44198 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44199 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44200 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44201 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44202 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44203 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44204 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44205 values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
44206 values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
44207 values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
44208 values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
44209 values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
44210 values[17] = PyTuple_GET_ITEM(__pyx_args, 17);
44211 values[18] = PyTuple_GET_ITEM(__pyx_args, 18);
44212 values[19] = PyTuple_GET_ITEM(__pyx_args, 19);
44214 __pyx_v_dsigma_xx = ((PyArrayObject *)values[0]);
44215 __pyx_v_dsigma_xy = ((PyArrayObject *)values[1]);
44216 __pyx_v_dsigma_xz = ((PyArrayObject *)values[2]);
44217 __pyx_v_dsigma_yx = ((PyArrayObject *)values[3]);
44218 __pyx_v_dsigma_yy = ((PyArrayObject *)values[4]);
44219 __pyx_v_dsigma_yz = ((PyArrayObject *)values[5]);
44220 __pyx_v_dsigma_zx = ((PyArrayObject *)values[6]);
44221 __pyx_v_dsigma_zy = ((PyArrayObject *)values[7]);
44222 __pyx_v_dsigma_zz = ((PyArrayObject *)values[8]);
44223 __pyx_v_grad_v = ((PyArrayObject *)values[9]);
44224 __pyx_v_grad_w_dV = ((PyArrayObject *)values[10]);
44225 __pyx_v_jacobian_weak_residual_xx = ((PyArrayObject *)values[11]);
44226 __pyx_v_jacobian_weak_residual_xy = ((PyArrayObject *)values[12]);
44227 __pyx_v_jacobian_weak_residual_xz = ((PyArrayObject *)values[13]);
44228 __pyx_v_jacobian_weak_residual_yx = ((PyArrayObject *)values[14]);
44229 __pyx_v_jacobian_weak_residual_yy = ((PyArrayObject *)values[15]);
44230 __pyx_v_jacobian_weak_residual_yz = ((PyArrayObject *)values[16]);
44231 __pyx_v_jacobian_weak_residual_zx = ((PyArrayObject *)values[17]);
44232 __pyx_v_jacobian_weak_residual_zy = ((PyArrayObject *)values[18]);
44233 __pyx_v_jacobian_weak_residual_zz = ((PyArrayObject *)values[19]);
44235 goto __pyx_L4_argument_unpacking_done;
44236 __pyx_L5_argtuple_error:;
44237 __Pyx_RaiseArgtupleInvalid(
"updateStressJacobian_weak", 1, 20, 20, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6619, __pyx_L3_error)
44239 __Pyx_AddTraceback(
"cfemIntegrals.updateStressJacobian_weak", __pyx_clineno, __pyx_lineno, __pyx_filename);
44240 __Pyx_RefNannyFinishContext();
44242 __pyx_L4_argument_unpacking_done:;
44243 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_xx), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_xx", 0))) __PYX_ERR(0, 6619, __pyx_L1_error)
44244 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_xy), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_xy", 0))) __PYX_ERR(0, 6620, __pyx_L1_error)
44245 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_xz), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_xz", 0))) __PYX_ERR(0, 6621, __pyx_L1_error)
44246 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_yx), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_yx", 0))) __PYX_ERR(0, 6622, __pyx_L1_error)
44247 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_yy), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_yy", 0))) __PYX_ERR(0, 6623, __pyx_L1_error)
44248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_yz), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_yz", 0))) __PYX_ERR(0, 6624, __pyx_L1_error)
44249 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_zx), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_zx", 0))) __PYX_ERR(0, 6625, __pyx_L1_error)
44250 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_zy), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_zy", 0))) __PYX_ERR(0, 6626, __pyx_L1_error)
44251 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dsigma_zz), __pyx_ptype_5numpy_ndarray, 1,
"dsigma_zz", 0))) __PYX_ERR(0, 6627, __pyx_L1_error)
44252 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_v), __pyx_ptype_5numpy_ndarray, 1,
"grad_v", 0))) __PYX_ERR(0, 6628, __pyx_L1_error)
44253 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 6629, __pyx_L1_error)
44254 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_xx), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_xx", 0))) __PYX_ERR(0, 6630, __pyx_L1_error)
44255 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_xy), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_xy", 0))) __PYX_ERR(0, 6631, __pyx_L1_error)
44256 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_xz), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_xz", 0))) __PYX_ERR(0, 6632, __pyx_L1_error)
44257 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_yx), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_yx", 0))) __PYX_ERR(0, 6633, __pyx_L1_error)
44258 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_yy), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_yy", 0))) __PYX_ERR(0, 6634, __pyx_L1_error)
44259 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_yz), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_yz", 0))) __PYX_ERR(0, 6635, __pyx_L1_error)
44260 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_zx), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_zx", 0))) __PYX_ERR(0, 6636, __pyx_L1_error)
44261 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_zy), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_zy", 0))) __PYX_ERR(0, 6637, __pyx_L1_error)
44262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_weak_residual_zz), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_weak_residual_zz", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
44263 __pyx_r = __pyx_pf_13cfemIntegrals_374updateStressJacobian_weak(__pyx_self, __pyx_v_dsigma_xx, __pyx_v_dsigma_xy, __pyx_v_dsigma_xz, __pyx_v_dsigma_yx, __pyx_v_dsigma_yy, __pyx_v_dsigma_yz, __pyx_v_dsigma_zx, __pyx_v_dsigma_zy, __pyx_v_dsigma_zz, __pyx_v_grad_v, __pyx_v_grad_w_dV, __pyx_v_jacobian_weak_residual_xx, __pyx_v_jacobian_weak_residual_xy, __pyx_v_jacobian_weak_residual_xz, __pyx_v_jacobian_weak_residual_yx, __pyx_v_jacobian_weak_residual_yy, __pyx_v_jacobian_weak_residual_yz, __pyx_v_jacobian_weak_residual_zx, __pyx_v_jacobian_weak_residual_zy, __pyx_v_jacobian_weak_residual_zz);
44270 __Pyx_RefNannyFinishContext();
44274 static PyObject *__pyx_pf_13cfemIntegrals_374updateStressJacobian_weak(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_dsigma_xx, PyArrayObject *__pyx_v_dsigma_xy, PyArrayObject *__pyx_v_dsigma_xz, PyArrayObject *__pyx_v_dsigma_yx, PyArrayObject *__pyx_v_dsigma_yy, PyArrayObject *__pyx_v_dsigma_yz, PyArrayObject *__pyx_v_dsigma_zx, PyArrayObject *__pyx_v_dsigma_zy, PyArrayObject *__pyx_v_dsigma_zz, PyArrayObject *__pyx_v_grad_v, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_jacobian_weak_residual_xx, PyArrayObject *__pyx_v_jacobian_weak_residual_xy, PyArrayObject *__pyx_v_jacobian_weak_residual_xz, PyArrayObject *__pyx_v_jacobian_weak_residual_yx, PyArrayObject *__pyx_v_jacobian_weak_residual_yy, PyArrayObject *__pyx_v_jacobian_weak_residual_yz, PyArrayObject *__pyx_v_jacobian_weak_residual_zx, PyArrayObject *__pyx_v_jacobian_weak_residual_zy, PyArrayObject *__pyx_v_jacobian_weak_residual_zz) {
44275 int __pyx_v_nElements_global;
44276 int __pyx_v_nQuadraturePoints_element;
44277 int __pyx_v_nDOF_trial_element;
44278 int __pyx_v_nDOF_test_element;
44279 int __pyx_v_nSpace;
44280 PyObject *__pyx_r = NULL;
44281 __Pyx_RefNannyDeclarations
44282 __Pyx_RefNannySetupContext(
"updateStressJacobian_weak", 0);
44291 __pyx_v_nElements_global = (__pyx_v_grad_w_dV->dimensions[0]);
44300 __pyx_v_nQuadraturePoints_element = (__pyx_v_grad_w_dV->dimensions[1]);
44309 __pyx_v_nDOF_trial_element = (__pyx_v_grad_w_dV->dimensions[2]);
44318 __pyx_v_nDOF_test_element = (__pyx_v_grad_w_dV->dimensions[2]);
44327 __pyx_v_nSpace = (__pyx_v_grad_w_dV->dimensions[3]);
44336 updateStressJacobian_weak(__pyx_v_nElements_global, __pyx_v_nQuadraturePoints_element, __pyx_v_nDOF_trial_element, __pyx_v_nDOF_test_element, __pyx_v_nSpace, ((
double *)__pyx_v_dsigma_xx->data), ((
double *)__pyx_v_dsigma_xy->data), ((
double *)__pyx_v_dsigma_xz->data), ((
double *)__pyx_v_dsigma_yx->data), ((
double *)__pyx_v_dsigma_yy->data), ((
double *)__pyx_v_dsigma_yz->data), ((
double *)__pyx_v_dsigma_zx->data), ((
double *)__pyx_v_dsigma_zy->data), ((
double *)__pyx_v_dsigma_zz->data), ((
double *)__pyx_v_grad_v->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_jacobian_weak_residual_xx->data), ((
double *)__pyx_v_jacobian_weak_residual_xy->data), ((
double *)__pyx_v_jacobian_weak_residual_xz->data), ((
double *)__pyx_v_jacobian_weak_residual_yx->data), ((
double *)__pyx_v_jacobian_weak_residual_yy->data), ((
double *)__pyx_v_jacobian_weak_residual_yz->data), ((
double *)__pyx_v_jacobian_weak_residual_zx->data), ((
double *)__pyx_v_jacobian_weak_residual_zy->data), ((
double *)__pyx_v_jacobian_weak_residual_zz->data));
44347 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44348 __Pyx_XGIVEREF(__pyx_r);
44349 __Pyx_RefNannyFinishContext();
44362 static PyObject *__pyx_pw_13cfemIntegrals_377projectFromNodalInterpolationConditions(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44363 static PyMethodDef __pyx_mdef_13cfemIntegrals_377projectFromNodalInterpolationConditions = {
"projectFromNodalInterpolationConditions", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_377projectFromNodalInterpolationConditions, METH_VARARGS|METH_KEYWORDS, 0};
44364 static PyObject *__pyx_pw_13cfemIntegrals_377projectFromNodalInterpolationConditions(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44365 int __pyx_v_dim_dof;
44366 PyArrayObject *__pyx_v_l2g = 0;
44367 PyArrayObject *__pyx_v_functional_map_element = 0;
44368 PyArrayObject *__pyx_v_interpolationValues = 0;
44369 PyArrayObject *__pyx_v_dofs = 0;
44370 int __pyx_lineno = 0;
44371 const char *__pyx_filename = NULL;
44372 int __pyx_clineno = 0;
44373 PyObject *__pyx_r = 0;
44374 __Pyx_RefNannyDeclarations
44375 __Pyx_RefNannySetupContext(
"projectFromNodalInterpolationConditions (wrapper)", 0);
44377 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dim_dof,&__pyx_n_s_l2g,&__pyx_n_s_functional_map_element,&__pyx_n_s_interpolationValues,&__pyx_n_s_dofs,0};
44378 PyObject* values[5] = {0,0,0,0,0};
44379 if (unlikely(__pyx_kwds)) {
44380 Py_ssize_t kw_args;
44381 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44382 switch (pos_args) {
44383 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44384 CYTHON_FALLTHROUGH;
44385 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44386 CYTHON_FALLTHROUGH;
44387 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44388 CYTHON_FALLTHROUGH;
44389 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44390 CYTHON_FALLTHROUGH;
44391 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44392 CYTHON_FALLTHROUGH;
44394 default:
goto __pyx_L5_argtuple_error;
44396 kw_args = PyDict_Size(__pyx_kwds);
44397 switch (pos_args) {
44399 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dim_dof)) != 0)) kw_args--;
44400 else goto __pyx_L5_argtuple_error;
44401 CYTHON_FALLTHROUGH;
44403 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l2g)) != 0)) kw_args--;
44405 __Pyx_RaiseArgtupleInvalid(
"projectFromNodalInterpolationConditions", 1, 5, 5, 1); __PYX_ERR(0, 6669, __pyx_L3_error)
44407 CYTHON_FALLTHROUGH;
44409 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_functional_map_element)) != 0)) kw_args--;
44411 __Pyx_RaiseArgtupleInvalid(
"projectFromNodalInterpolationConditions", 1, 5, 5, 2); __PYX_ERR(0, 6669, __pyx_L3_error)
44413 CYTHON_FALLTHROUGH;
44415 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interpolationValues)) != 0)) kw_args--;
44417 __Pyx_RaiseArgtupleInvalid(
"projectFromNodalInterpolationConditions", 1, 5, 5, 3); __PYX_ERR(0, 6669, __pyx_L3_error)
44419 CYTHON_FALLTHROUGH;
44421 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dofs)) != 0)) kw_args--;
44423 __Pyx_RaiseArgtupleInvalid(
"projectFromNodalInterpolationConditions", 1, 5, 5, 4); __PYX_ERR(0, 6669, __pyx_L3_error)
44426 if (unlikely(kw_args > 0)) {
44427 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"projectFromNodalInterpolationConditions") < 0)) __PYX_ERR(0, 6669, __pyx_L3_error)
44429 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
44430 goto __pyx_L5_argtuple_error;
44432 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44433 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44434 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44435 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44436 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44438 __pyx_v_dim_dof = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_dim_dof == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6669, __pyx_L3_error)
44439 __pyx_v_l2g = ((PyArrayObject *)values[1]);
44440 __pyx_v_functional_map_element = ((PyArrayObject *)values[2]);
44441 __pyx_v_interpolationValues = ((PyArrayObject *)values[3]);
44442 __pyx_v_dofs = ((PyArrayObject *)values[4]);
44444 goto __pyx_L4_argument_unpacking_done;
44445 __pyx_L5_argtuple_error:;
44446 __Pyx_RaiseArgtupleInvalid(
"projectFromNodalInterpolationConditions", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6669, __pyx_L3_error)
44448 __Pyx_AddTraceback(
"cfemIntegrals.projectFromNodalInterpolationConditions", __pyx_clineno, __pyx_lineno, __pyx_filename);
44449 __Pyx_RefNannyFinishContext();
44451 __pyx_L4_argument_unpacking_done:;
44452 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l2g), __pyx_ptype_5numpy_ndarray, 1,
"l2g", 0))) __PYX_ERR(0, 6670, __pyx_L1_error)
44453 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_functional_map_element), __pyx_ptype_5numpy_ndarray, 1,
"functional_map_element", 0))) __PYX_ERR(0, 6671, __pyx_L1_error)
44454 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_interpolationValues), __pyx_ptype_5numpy_ndarray, 1,
"interpolationValues", 0))) __PYX_ERR(0, 6672, __pyx_L1_error)
44455 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dofs), __pyx_ptype_5numpy_ndarray, 1,
"dofs", 0))) __PYX_ERR(0, 6673, __pyx_L1_error)
44456 __pyx_r = __pyx_pf_13cfemIntegrals_376projectFromNodalInterpolationConditions(__pyx_self, __pyx_v_dim_dof, __pyx_v_l2g, __pyx_v_functional_map_element, __pyx_v_interpolationValues, __pyx_v_dofs);
44463 __Pyx_RefNannyFinishContext();
44467 static PyObject *__pyx_pf_13cfemIntegrals_376projectFromNodalInterpolationConditions(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_dim_dof, PyArrayObject *__pyx_v_l2g, PyArrayObject *__pyx_v_functional_map_element, PyArrayObject *__pyx_v_interpolationValues, PyArrayObject *__pyx_v_dofs) {
44468 int __pyx_v_nElements_global;
44469 int __pyx_v_nDOF_element;
44470 PyObject *__pyx_r = NULL;
44471 __Pyx_RefNannyDeclarations
44472 __Pyx_RefNannySetupContext(
"projectFromNodalInterpolationConditions", 0);
44481 __pyx_v_nElements_global = (__pyx_v_l2g->dimensions[0]);
44490 __pyx_v_nDOF_element = (__pyx_v_l2g->dimensions[1]);
44499 projectFromNodalInterpolationConditions(__pyx_v_nElements_global, __pyx_v_nDOF_element, __pyx_v_dim_dof, ((
int *)__pyx_v_l2g->data), ((
int *)__pyx_v_functional_map_element->data), ((
double *)__pyx_v_interpolationValues->data), ((
double *)__pyx_v_dofs->data));
44510 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44511 __Pyx_XGIVEREF(__pyx_r);
44512 __Pyx_RefNannyFinishContext();
44525 static PyObject *__pyx_pw_13cfemIntegrals_379calculateVelocityQuadrature_MixedForm2_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44526 static PyMethodDef __pyx_mdef_13cfemIntegrals_379calculateVelocityQuadrature_MixedForm2_sd = {
"calculateVelocityQuadrature_MixedForm2_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_379calculateVelocityQuadrature_MixedForm2_sd, METH_VARARGS|METH_KEYWORDS, 0};
44527 static PyObject *__pyx_pw_13cfemIntegrals_379calculateVelocityQuadrature_MixedForm2_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44528 PyArrayObject *__pyx_v_rowptr = 0;
44529 PyArrayObject *__pyx_v_colind = 0;
44530 PyArrayObject *__pyx_v_qa = 0;
44531 PyArrayObject *__pyx_v_qw_dV = 0;
44532 PyArrayObject *__pyx_v_b = 0;
44533 PyArrayObject *__pyx_v_v = 0;
44534 PyArrayObject *__pyx_v_V = 0;
44535 PyArrayObject *__pyx_v_qv = 0;
44536 PyArrayObject *__pyx_v_qV = 0;
44537 int __pyx_lineno = 0;
44538 const char *__pyx_filename = NULL;
44539 int __pyx_clineno = 0;
44540 PyObject *__pyx_r = 0;
44541 __Pyx_RefNannyDeclarations
44542 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm2_sd (wrapper)", 0);
44544 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_qa,&__pyx_n_s_qw_dV,&__pyx_n_s_b,&__pyx_n_s_v,&__pyx_n_s_V,&__pyx_n_s_qv,&__pyx_n_s_qV,0};
44545 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
44546 if (unlikely(__pyx_kwds)) {
44547 Py_ssize_t kw_args;
44548 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44549 switch (pos_args) {
44550 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44551 CYTHON_FALLTHROUGH;
44552 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44553 CYTHON_FALLTHROUGH;
44554 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44555 CYTHON_FALLTHROUGH;
44556 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44557 CYTHON_FALLTHROUGH;
44558 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44559 CYTHON_FALLTHROUGH;
44560 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44561 CYTHON_FALLTHROUGH;
44562 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44563 CYTHON_FALLTHROUGH;
44564 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44565 CYTHON_FALLTHROUGH;
44566 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44567 CYTHON_FALLTHROUGH;
44569 default:
goto __pyx_L5_argtuple_error;
44571 kw_args = PyDict_Size(__pyx_kwds);
44572 switch (pos_args) {
44574 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
44575 else goto __pyx_L5_argtuple_error;
44576 CYTHON_FALLTHROUGH;
44578 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
44580 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 1); __PYX_ERR(0, 6683, __pyx_L3_error)
44582 CYTHON_FALLTHROUGH;
44584 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qa)) != 0)) kw_args--;
44586 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 2); __PYX_ERR(0, 6683, __pyx_L3_error)
44588 CYTHON_FALLTHROUGH;
44590 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qw_dV)) != 0)) kw_args--;
44592 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 3); __PYX_ERR(0, 6683, __pyx_L3_error)
44594 CYTHON_FALLTHROUGH;
44596 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
44598 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 4); __PYX_ERR(0, 6683, __pyx_L3_error)
44600 CYTHON_FALLTHROUGH;
44602 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
44604 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 5); __PYX_ERR(0, 6683, __pyx_L3_error)
44606 CYTHON_FALLTHROUGH;
44608 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_V)) != 0)) kw_args--;
44610 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 6); __PYX_ERR(0, 6683, __pyx_L3_error)
44612 CYTHON_FALLTHROUGH;
44614 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qv)) != 0)) kw_args--;
44616 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 7); __PYX_ERR(0, 6683, __pyx_L3_error)
44618 CYTHON_FALLTHROUGH;
44620 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
44622 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, 8); __PYX_ERR(0, 6683, __pyx_L3_error)
44625 if (unlikely(kw_args > 0)) {
44626 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVelocityQuadrature_MixedForm2_sd") < 0)) __PYX_ERR(0, 6683, __pyx_L3_error)
44628 }
else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
44629 goto __pyx_L5_argtuple_error;
44631 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44632 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44633 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44634 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44635 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44636 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44637 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44638 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44639 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44641 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
44642 __pyx_v_colind = ((PyArrayObject *)values[1]);
44643 __pyx_v_qa = ((PyArrayObject *)values[2]);
44644 __pyx_v_qw_dV = ((PyArrayObject *)values[3]);
44645 __pyx_v_b = ((PyArrayObject *)values[4]);
44646 __pyx_v_v = ((PyArrayObject *)values[5]);
44647 __pyx_v_V = ((PyArrayObject *)values[6]);
44648 __pyx_v_qv = ((PyArrayObject *)values[7]);
44649 __pyx_v_qV = ((PyArrayObject *)values[8]);
44651 goto __pyx_L4_argument_unpacking_done;
44652 __pyx_L5_argtuple_error:;
44653 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_sd", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6683, __pyx_L3_error)
44655 __Pyx_AddTraceback(
"cfemIntegrals.calculateVelocityQuadrature_MixedForm2_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44656 __Pyx_RefNannyFinishContext();
44658 __pyx_L4_argument_unpacking_done:;
44659 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6683, __pyx_L1_error)
44660 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6684, __pyx_L1_error)
44661 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qa), __pyx_ptype_5numpy_ndarray, 1,
"qa", 0))) __PYX_ERR(0, 6685, __pyx_L1_error)
44662 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qw_dV), __pyx_ptype_5numpy_ndarray, 1,
"qw_dV", 0))) __PYX_ERR(0, 6686, __pyx_L1_error)
44663 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_5numpy_ndarray, 1,
"b", 0))) __PYX_ERR(0, 6687, __pyx_L1_error)
44664 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6688, __pyx_L1_error)
44665 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_V), __pyx_ptype_5numpy_ndarray, 1,
"V", 0))) __PYX_ERR(0, 6689, __pyx_L1_error)
44666 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qv), __pyx_ptype_5numpy_ndarray, 1,
"qv", 0))) __PYX_ERR(0, 6690, __pyx_L1_error)
44667 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 6691, __pyx_L1_error)
44668 __pyx_r = __pyx_pf_13cfemIntegrals_378calculateVelocityQuadrature_MixedForm2_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_qa, __pyx_v_qw_dV, __pyx_v_b, __pyx_v_v, __pyx_v_V, __pyx_v_qv, __pyx_v_qV);
44675 __Pyx_RefNannyFinishContext();
44679 static PyObject *__pyx_pf_13cfemIntegrals_378calculateVelocityQuadrature_MixedForm2_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_qa, PyArrayObject *__pyx_v_qw_dV, PyArrayObject *__pyx_v_b, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_V, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qV) {
44680 PyObject *__pyx_r = NULL;
44681 __Pyx_RefNannyDeclarations
44682 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm2_sd", 0);
44691 calculateVelocityQuadrature_MixedForm2_sd((__pyx_v_v->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_b->dimensions[1]), (__pyx_v_qv->dimensions[1]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_qa->data), ((
double *)__pyx_v_qw_dV->data), ((
double *)__pyx_v_b->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_V->data), ((
double *)__pyx_v_qv->data), ((
double *)__pyx_v_qV->data));
44702 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44703 __Pyx_XGIVEREF(__pyx_r);
44704 __Pyx_RefNannyFinishContext();
44717 static PyObject *__pyx_pw_13cfemIntegrals_381updateDiffusion_MixedForm_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44718 static PyMethodDef __pyx_mdef_13cfemIntegrals_381updateDiffusion_MixedForm_weak_sd = {
"updateDiffusion_MixedForm_weak_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_381updateDiffusion_MixedForm_weak_sd, METH_VARARGS|METH_KEYWORDS, 0};
44719 static PyObject *__pyx_pw_13cfemIntegrals_381updateDiffusion_MixedForm_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44720 PyArrayObject *__pyx_v_rowptr = 0;
44721 PyArrayObject *__pyx_v_colind = 0;
44722 PyArrayObject *__pyx_v_a = 0;
44723 PyArrayObject *__pyx_v_qV = 0;
44724 PyArrayObject *__pyx_v_grad_w_dV = 0;
44725 PyArrayObject *__pyx_v_velocity = 0;
44726 PyArrayObject *__pyx_v_residual = 0;
44727 int __pyx_v_rho_split;
44728 int __pyx_lineno = 0;
44729 const char *__pyx_filename = NULL;
44730 int __pyx_clineno = 0;
44731 PyObject *__pyx_r = 0;
44732 __Pyx_RefNannyDeclarations
44733 __Pyx_RefNannySetupContext(
"updateDiffusion_MixedForm_weak_sd (wrapper)", 0);
44735 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_a,&__pyx_n_s_qV,&__pyx_n_s_grad_w_dV,&__pyx_n_s_velocity,&__pyx_n_s_residual,&__pyx_n_s_rho_split,0};
44736 PyObject* values[8] = {0,0,0,0,0,0,0,0};
44737 if (unlikely(__pyx_kwds)) {
44738 Py_ssize_t kw_args;
44739 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44740 switch (pos_args) {
44741 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44742 CYTHON_FALLTHROUGH;
44743 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44744 CYTHON_FALLTHROUGH;
44745 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44746 CYTHON_FALLTHROUGH;
44747 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44748 CYTHON_FALLTHROUGH;
44749 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44750 CYTHON_FALLTHROUGH;
44751 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44752 CYTHON_FALLTHROUGH;
44753 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44754 CYTHON_FALLTHROUGH;
44755 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44756 CYTHON_FALLTHROUGH;
44758 default:
goto __pyx_L5_argtuple_error;
44760 kw_args = PyDict_Size(__pyx_kwds);
44761 switch (pos_args) {
44763 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
44764 else goto __pyx_L5_argtuple_error;
44765 CYTHON_FALLTHROUGH;
44767 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
44769 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 1); __PYX_ERR(0, 6708, __pyx_L3_error)
44771 CYTHON_FALLTHROUGH;
44773 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
44775 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 2); __PYX_ERR(0, 6708, __pyx_L3_error)
44777 CYTHON_FALLTHROUGH;
44779 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
44781 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 3); __PYX_ERR(0, 6708, __pyx_L3_error)
44783 CYTHON_FALLTHROUGH;
44785 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
44787 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 4); __PYX_ERR(0, 6708, __pyx_L3_error)
44789 CYTHON_FALLTHROUGH;
44791 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_velocity)) != 0)) kw_args--;
44793 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 5); __PYX_ERR(0, 6708, __pyx_L3_error)
44795 CYTHON_FALLTHROUGH;
44797 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_residual)) != 0)) kw_args--;
44799 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 6); __PYX_ERR(0, 6708, __pyx_L3_error)
44801 CYTHON_FALLTHROUGH;
44803 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho_split)) != 0)) kw_args--;
44805 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, 7); __PYX_ERR(0, 6708, __pyx_L3_error)
44808 if (unlikely(kw_args > 0)) {
44809 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusion_MixedForm_weak_sd") < 0)) __PYX_ERR(0, 6708, __pyx_L3_error)
44811 }
else if (PyTuple_GET_SIZE(__pyx_args) != 8) {
44812 goto __pyx_L5_argtuple_error;
44814 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44815 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44816 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44817 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44818 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44819 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44820 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44821 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44823 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
44824 __pyx_v_colind = ((PyArrayObject *)values[1]);
44825 __pyx_v_a = ((PyArrayObject *)values[2]);
44826 __pyx_v_qV = ((PyArrayObject *)values[3]);
44827 __pyx_v_grad_w_dV = ((PyArrayObject *)values[4]);
44828 __pyx_v_velocity = ((PyArrayObject *)values[5]);
44829 __pyx_v_residual = ((PyArrayObject *)values[6]);
44830 __pyx_v_rho_split = __Pyx_PyInt_As_int(values[7]);
if (unlikely((__pyx_v_rho_split == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6715, __pyx_L3_error)
44832 goto __pyx_L4_argument_unpacking_done;
44833 __pyx_L5_argtuple_error:;
44834 __Pyx_RaiseArgtupleInvalid(
"updateDiffusion_MixedForm_weak_sd", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6708, __pyx_L3_error)
44836 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusion_MixedForm_weak_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
44837 __Pyx_RefNannyFinishContext();
44839 __pyx_L4_argument_unpacking_done:;
44840 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6708, __pyx_L1_error)
44841 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6709, __pyx_L1_error)
44842 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6710, __pyx_L1_error)
44843 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 6711, __pyx_L1_error)
44844 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 6712, __pyx_L1_error)
44845 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_velocity), __pyx_ptype_5numpy_ndarray, 1,
"velocity", 0))) __PYX_ERR(0, 6713, __pyx_L1_error)
44846 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_residual), __pyx_ptype_5numpy_ndarray, 1,
"residual", 0))) __PYX_ERR(0, 6714, __pyx_L1_error)
44847 __pyx_r = __pyx_pf_13cfemIntegrals_380updateDiffusion_MixedForm_weak_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_a, __pyx_v_qV, __pyx_v_grad_w_dV, __pyx_v_velocity, __pyx_v_residual, __pyx_v_rho_split);
44854 __Pyx_RefNannyFinishContext();
44858 static PyObject *__pyx_pf_13cfemIntegrals_380updateDiffusion_MixedForm_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_velocity, PyArrayObject *__pyx_v_residual,
int __pyx_v_rho_split) {
44859 PyObject *__pyx_r = NULL;
44860 __Pyx_RefNannyDeclarations
44861 __Pyx_RefNannySetupContext(
"updateDiffusion_MixedForm_weak_sd", 0);
44870 updateDiffusion_MixedForm_weak_sd((__pyx_v_grad_w_dV->dimensions[0]), (__pyx_v_grad_w_dV->dimensions[1]), (__pyx_v_grad_w_dV->dimensions[2]), (__pyx_v_grad_w_dV->dimensions[3]), __pyx_v_rho_split, ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_qV->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_velocity->data), ((
double *)__pyx_v_residual->data));
44881 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44882 __Pyx_XGIVEREF(__pyx_r);
44883 __Pyx_RefNannyFinishContext();
44896 static PyObject *__pyx_pw_13cfemIntegrals_383calculateVelocityQuadrature_MixedForm2_Jacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44897 static PyMethodDef __pyx_mdef_13cfemIntegrals_383calculateVelocityQuadrature_MixedForm2_Jacobian_sd = {
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_383calculateVelocityQuadrature_MixedForm2_Jacobian_sd, METH_VARARGS|METH_KEYWORDS, 0};
44898 static PyObject *__pyx_pw_13cfemIntegrals_383calculateVelocityQuadrature_MixedForm2_Jacobian_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44899 PyArrayObject *__pyx_v_rowptr = 0;
44900 PyArrayObject *__pyx_v_colind = 0;
44901 PyArrayObject *__pyx_v_qa = 0;
44902 PyArrayObject *__pyx_v_qw_dV = 0;
44903 PyArrayObject *__pyx_v_db = 0;
44904 PyArrayObject *__pyx_v_db_eb = 0;
44905 PyArrayObject *__pyx_v_v = 0;
44906 PyArrayObject *__pyx_v_DV = 0;
44907 PyArrayObject *__pyx_v_DV_eb = 0;
44908 PyArrayObject *__pyx_v_qv = 0;
44909 PyArrayObject *__pyx_v_qDV = 0;
44910 PyArrayObject *__pyx_v_qDV_eb = 0;
44911 int __pyx_lineno = 0;
44912 const char *__pyx_filename = NULL;
44913 int __pyx_clineno = 0;
44914 PyObject *__pyx_r = 0;
44915 __Pyx_RefNannyDeclarations
44916 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd (wrapper)", 0);
44918 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_qa,&__pyx_n_s_qw_dV,&__pyx_n_s_db,&__pyx_n_s_db_eb,&__pyx_n_s_v,&__pyx_n_s_DV,&__pyx_n_s_DV_eb,&__pyx_n_s_qv,&__pyx_n_s_qDV,&__pyx_n_s_qDV_eb,0};
44919 PyObject* values[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
44920 if (unlikely(__pyx_kwds)) {
44921 Py_ssize_t kw_args;
44922 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44923 switch (pos_args) {
44924 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
44925 CYTHON_FALLTHROUGH;
44926 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
44927 CYTHON_FALLTHROUGH;
44928 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
44929 CYTHON_FALLTHROUGH;
44930 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
44931 CYTHON_FALLTHROUGH;
44932 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
44933 CYTHON_FALLTHROUGH;
44934 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
44935 CYTHON_FALLTHROUGH;
44936 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
44937 CYTHON_FALLTHROUGH;
44938 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
44939 CYTHON_FALLTHROUGH;
44940 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44941 CYTHON_FALLTHROUGH;
44942 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44943 CYTHON_FALLTHROUGH;
44944 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44945 CYTHON_FALLTHROUGH;
44946 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44947 CYTHON_FALLTHROUGH;
44949 default:
goto __pyx_L5_argtuple_error;
44951 kw_args = PyDict_Size(__pyx_kwds);
44952 switch (pos_args) {
44954 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
44955 else goto __pyx_L5_argtuple_error;
44956 CYTHON_FALLTHROUGH;
44958 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
44960 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 1); __PYX_ERR(0, 6729, __pyx_L3_error)
44962 CYTHON_FALLTHROUGH;
44964 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qa)) != 0)) kw_args--;
44966 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 2); __PYX_ERR(0, 6729, __pyx_L3_error)
44968 CYTHON_FALLTHROUGH;
44970 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qw_dV)) != 0)) kw_args--;
44972 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 3); __PYX_ERR(0, 6729, __pyx_L3_error)
44974 CYTHON_FALLTHROUGH;
44976 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db)) != 0)) kw_args--;
44978 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 4); __PYX_ERR(0, 6729, __pyx_L3_error)
44980 CYTHON_FALLTHROUGH;
44982 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_db_eb)) != 0)) kw_args--;
44984 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 5); __PYX_ERR(0, 6729, __pyx_L3_error)
44986 CYTHON_FALLTHROUGH;
44988 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
44990 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 6); __PYX_ERR(0, 6729, __pyx_L3_error)
44992 CYTHON_FALLTHROUGH;
44994 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV)) != 0)) kw_args--;
44996 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 7); __PYX_ERR(0, 6729, __pyx_L3_error)
44998 CYTHON_FALLTHROUGH;
45000 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_DV_eb)) != 0)) kw_args--;
45002 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 8); __PYX_ERR(0, 6729, __pyx_L3_error)
45004 CYTHON_FALLTHROUGH;
45006 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qv)) != 0)) kw_args--;
45008 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 9); __PYX_ERR(0, 6729, __pyx_L3_error)
45010 CYTHON_FALLTHROUGH;
45012 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV)) != 0)) kw_args--;
45014 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 10); __PYX_ERR(0, 6729, __pyx_L3_error)
45016 CYTHON_FALLTHROUGH;
45018 if (likely((values[11] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV_eb)) != 0)) kw_args--;
45020 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, 11); __PYX_ERR(0, 6729, __pyx_L3_error)
45023 if (unlikely(kw_args > 0)) {
45024 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd") < 0)) __PYX_ERR(0, 6729, __pyx_L3_error)
45026 }
else if (PyTuple_GET_SIZE(__pyx_args) != 12) {
45027 goto __pyx_L5_argtuple_error;
45029 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45030 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45031 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45032 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45033 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45034 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45035 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45036 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45037 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45038 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45039 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45040 values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
45042 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
45043 __pyx_v_colind = ((PyArrayObject *)values[1]);
45044 __pyx_v_qa = ((PyArrayObject *)values[2]);
45045 __pyx_v_qw_dV = ((PyArrayObject *)values[3]);
45046 __pyx_v_db = ((PyArrayObject *)values[4]);
45047 __pyx_v_db_eb = ((PyArrayObject *)values[5]);
45048 __pyx_v_v = ((PyArrayObject *)values[6]);
45049 __pyx_v_DV = ((PyArrayObject *)values[7]);
45050 __pyx_v_DV_eb = ((PyArrayObject *)values[8]);
45051 __pyx_v_qv = ((PyArrayObject *)values[9]);
45052 __pyx_v_qDV = ((PyArrayObject *)values[10]);
45053 __pyx_v_qDV_eb = ((PyArrayObject *)values[11]);
45055 goto __pyx_L4_argument_unpacking_done;
45056 __pyx_L5_argtuple_error:;
45057 __Pyx_RaiseArgtupleInvalid(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 1, 12, 12, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6729, __pyx_L3_error)
45059 __Pyx_AddTraceback(
"cfemIntegrals.calculateVelocityQuadrature_MixedForm2_Jacobian_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
45060 __Pyx_RefNannyFinishContext();
45062 __pyx_L4_argument_unpacking_done:;
45063 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6729, __pyx_L1_error)
45064 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6730, __pyx_L1_error)
45065 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qa), __pyx_ptype_5numpy_ndarray, 1,
"qa", 0))) __PYX_ERR(0, 6731, __pyx_L1_error)
45066 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qw_dV), __pyx_ptype_5numpy_ndarray, 1,
"qw_dV", 0))) __PYX_ERR(0, 6732, __pyx_L1_error)
45067 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db), __pyx_ptype_5numpy_ndarray, 1,
"db", 0))) __PYX_ERR(0, 6733, __pyx_L1_error)
45068 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_db_eb), __pyx_ptype_5numpy_ndarray, 1,
"db_eb", 0))) __PYX_ERR(0, 6734, __pyx_L1_error)
45069 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6735, __pyx_L1_error)
45070 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV), __pyx_ptype_5numpy_ndarray, 1,
"DV", 0))) __PYX_ERR(0, 6736, __pyx_L1_error)
45071 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_DV_eb), __pyx_ptype_5numpy_ndarray, 1,
"DV_eb", 0))) __PYX_ERR(0, 6737, __pyx_L1_error)
45072 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qv), __pyx_ptype_5numpy_ndarray, 1,
"qv", 0))) __PYX_ERR(0, 6738, __pyx_L1_error)
45073 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV), __pyx_ptype_5numpy_ndarray, 1,
"qDV", 0))) __PYX_ERR(0, 6739, __pyx_L1_error)
45074 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV_eb), __pyx_ptype_5numpy_ndarray, 1,
"qDV_eb", 0))) __PYX_ERR(0, 6740, __pyx_L1_error)
45075 __pyx_r = __pyx_pf_13cfemIntegrals_382calculateVelocityQuadrature_MixedForm2_Jacobian_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_qa, __pyx_v_qw_dV, __pyx_v_db, __pyx_v_db_eb, __pyx_v_v, __pyx_v_DV, __pyx_v_DV_eb, __pyx_v_qv, __pyx_v_qDV, __pyx_v_qDV_eb);
45082 __Pyx_RefNannyFinishContext();
45086 static PyObject *__pyx_pf_13cfemIntegrals_382calculateVelocityQuadrature_MixedForm2_Jacobian_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_qa, PyArrayObject *__pyx_v_qw_dV, PyArrayObject *__pyx_v_db, PyArrayObject *__pyx_v_db_eb, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_DV, PyArrayObject *__pyx_v_DV_eb, PyArrayObject *__pyx_v_qv, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb) {
45087 PyObject *__pyx_r = NULL;
45088 __Pyx_RefNannyDeclarations
45089 __Pyx_RefNannySetupContext(
"calculateVelocityQuadrature_MixedForm2_Jacobian_sd", 0);
45098 calculateVelocityQuadrature_MixedForm2_Jacobian_sd((__pyx_v_v->dimensions[0]), (__pyx_v_v->dimensions[1]), (__pyx_v_v->dimensions[2]), (__pyx_v_v->dimensions[3]), (__pyx_v_db->dimensions[1]), (__pyx_v_qv->dimensions[1]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_qa->data), ((
double *)__pyx_v_qw_dV->data), ((
double *)__pyx_v_db->data), ((
double *)__pyx_v_db_eb->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_DV->data), ((
double *)__pyx_v_DV_eb->data), ((
double *)__pyx_v_qv->data), ((
double *)__pyx_v_qDV->data), ((
double *)__pyx_v_qDV_eb->data));
45109 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45110 __Pyx_XGIVEREF(__pyx_r);
45111 __Pyx_RefNannyFinishContext();
45124 static PyObject *__pyx_pw_13cfemIntegrals_385updateDiffusionJacobian_MixedForm_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45125 static PyMethodDef __pyx_mdef_13cfemIntegrals_385updateDiffusionJacobian_MixedForm_weak_sd = {
"updateDiffusionJacobian_MixedForm_weak_sd", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_13cfemIntegrals_385updateDiffusionJacobian_MixedForm_weak_sd, METH_VARARGS|METH_KEYWORDS, 0};
45126 static PyObject *__pyx_pw_13cfemIntegrals_385updateDiffusionJacobian_MixedForm_weak_sd(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45127 PyArrayObject *__pyx_v_rowptr = 0;
45128 PyArrayObject *__pyx_v_colind = 0;
45129 PyArrayObject *__pyx_v_a = 0;
45130 PyArrayObject *__pyx_v_da = 0;
45131 PyArrayObject *__pyx_v_qV = 0;
45132 PyArrayObject *__pyx_v_qDV = 0;
45133 PyArrayObject *__pyx_v_qDV_eb = 0;
45134 PyArrayObject *__pyx_v_grad_w_dV = 0;
45135 PyArrayObject *__pyx_v_v = 0;
45136 PyArrayObject *__pyx_v_jacobian = 0;
45137 PyArrayObject *__pyx_v_jacobian_eb = 0;
45138 int __pyx_lineno = 0;
45139 const char *__pyx_filename = NULL;
45140 int __pyx_clineno = 0;
45141 PyObject *__pyx_r = 0;
45142 __Pyx_RefNannyDeclarations
45143 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_MixedForm_weak_sd (wrapper)", 0);
45145 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_rowptr,&__pyx_n_s_colind,&__pyx_n_s_a,&__pyx_n_s_da,&__pyx_n_s_qV,&__pyx_n_s_qDV,&__pyx_n_s_qDV_eb,&__pyx_n_s_grad_w_dV,&__pyx_n_s_v,&__pyx_n_s_jacobian,&__pyx_n_s_jacobian_eb,0};
45146 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
45147 if (unlikely(__pyx_kwds)) {
45148 Py_ssize_t kw_args;
45149 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45150 switch (pos_args) {
45151 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45152 CYTHON_FALLTHROUGH;
45153 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45154 CYTHON_FALLTHROUGH;
45155 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45156 CYTHON_FALLTHROUGH;
45157 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45158 CYTHON_FALLTHROUGH;
45159 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45160 CYTHON_FALLTHROUGH;
45161 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45162 CYTHON_FALLTHROUGH;
45163 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45164 CYTHON_FALLTHROUGH;
45165 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45166 CYTHON_FALLTHROUGH;
45167 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45168 CYTHON_FALLTHROUGH;
45169 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45170 CYTHON_FALLTHROUGH;
45171 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45172 CYTHON_FALLTHROUGH;
45174 default:
goto __pyx_L5_argtuple_error;
45176 kw_args = PyDict_Size(__pyx_kwds);
45177 switch (pos_args) {
45179 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rowptr)) != 0)) kw_args--;
45180 else goto __pyx_L5_argtuple_error;
45181 CYTHON_FALLTHROUGH;
45183 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_colind)) != 0)) kw_args--;
45185 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 1); __PYX_ERR(0, 6759, __pyx_L3_error)
45187 CYTHON_FALLTHROUGH;
45189 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
45191 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 2); __PYX_ERR(0, 6759, __pyx_L3_error)
45193 CYTHON_FALLTHROUGH;
45195 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_da)) != 0)) kw_args--;
45197 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 3); __PYX_ERR(0, 6759, __pyx_L3_error)
45199 CYTHON_FALLTHROUGH;
45201 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qV)) != 0)) kw_args--;
45203 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 4); __PYX_ERR(0, 6759, __pyx_L3_error)
45205 CYTHON_FALLTHROUGH;
45207 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV)) != 0)) kw_args--;
45209 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 5); __PYX_ERR(0, 6759, __pyx_L3_error)
45211 CYTHON_FALLTHROUGH;
45213 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_qDV_eb)) != 0)) kw_args--;
45215 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 6); __PYX_ERR(0, 6759, __pyx_L3_error)
45217 CYTHON_FALLTHROUGH;
45219 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_grad_w_dV)) != 0)) kw_args--;
45221 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 7); __PYX_ERR(0, 6759, __pyx_L3_error)
45223 CYTHON_FALLTHROUGH;
45225 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
45227 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 8); __PYX_ERR(0, 6759, __pyx_L3_error)
45229 CYTHON_FALLTHROUGH;
45231 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian)) != 0)) kw_args--;
45233 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 9); __PYX_ERR(0, 6759, __pyx_L3_error)
45235 CYTHON_FALLTHROUGH;
45237 if (likely((values[10] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_jacobian_eb)) != 0)) kw_args--;
45239 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, 10); __PYX_ERR(0, 6759, __pyx_L3_error)
45242 if (unlikely(kw_args > 0)) {
45243 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"updateDiffusionJacobian_MixedForm_weak_sd") < 0)) __PYX_ERR(0, 6759, __pyx_L3_error)
45245 }
else if (PyTuple_GET_SIZE(__pyx_args) != 11) {
45246 goto __pyx_L5_argtuple_error;
45248 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45249 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45250 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45251 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45252 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
45253 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
45254 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
45255 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
45256 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
45257 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
45258 values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
45260 __pyx_v_rowptr = ((PyArrayObject *)values[0]);
45261 __pyx_v_colind = ((PyArrayObject *)values[1]);
45262 __pyx_v_a = ((PyArrayObject *)values[2]);
45263 __pyx_v_da = ((PyArrayObject *)values[3]);
45264 __pyx_v_qV = ((PyArrayObject *)values[4]);
45265 __pyx_v_qDV = ((PyArrayObject *)values[5]);
45266 __pyx_v_qDV_eb = ((PyArrayObject *)values[6]);
45267 __pyx_v_grad_w_dV = ((PyArrayObject *)values[7]);
45268 __pyx_v_v = ((PyArrayObject *)values[8]);
45269 __pyx_v_jacobian = ((PyArrayObject *)values[9]);
45270 __pyx_v_jacobian_eb = ((PyArrayObject *)values[10]);
45272 goto __pyx_L4_argument_unpacking_done;
45273 __pyx_L5_argtuple_error:;
45274 __Pyx_RaiseArgtupleInvalid(
"updateDiffusionJacobian_MixedForm_weak_sd", 1, 11, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6759, __pyx_L3_error)
45276 __Pyx_AddTraceback(
"cfemIntegrals.updateDiffusionJacobian_MixedForm_weak_sd", __pyx_clineno, __pyx_lineno, __pyx_filename);
45277 __Pyx_RefNannyFinishContext();
45279 __pyx_L4_argument_unpacking_done:;
45280 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rowptr), __pyx_ptype_5numpy_ndarray, 1,
"rowptr", 0))) __PYX_ERR(0, 6759, __pyx_L1_error)
45281 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_colind), __pyx_ptype_5numpy_ndarray, 1,
"colind", 0))) __PYX_ERR(0, 6760, __pyx_L1_error)
45282 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_5numpy_ndarray, 1,
"a", 0))) __PYX_ERR(0, 6761, __pyx_L1_error)
45283 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_da), __pyx_ptype_5numpy_ndarray, 1,
"da", 0))) __PYX_ERR(0, 6762, __pyx_L1_error)
45284 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qV), __pyx_ptype_5numpy_ndarray, 1,
"qV", 0))) __PYX_ERR(0, 6763, __pyx_L1_error)
45285 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV), __pyx_ptype_5numpy_ndarray, 1,
"qDV", 0))) __PYX_ERR(0, 6764, __pyx_L1_error)
45286 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_qDV_eb), __pyx_ptype_5numpy_ndarray, 1,
"qDV_eb", 0))) __PYX_ERR(0, 6765, __pyx_L1_error)
45287 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_grad_w_dV), __pyx_ptype_5numpy_ndarray, 1,
"grad_w_dV", 0))) __PYX_ERR(0, 6766, __pyx_L1_error)
45288 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_5numpy_ndarray, 1,
"v", 0))) __PYX_ERR(0, 6767, __pyx_L1_error)
45289 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian), __pyx_ptype_5numpy_ndarray, 1,
"jacobian", 0))) __PYX_ERR(0, 6768, __pyx_L1_error)
45290 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_jacobian_eb), __pyx_ptype_5numpy_ndarray, 1,
"jacobian_eb", 0))) __PYX_ERR(0, 6769, __pyx_L1_error)
45291 __pyx_r = __pyx_pf_13cfemIntegrals_384updateDiffusionJacobian_MixedForm_weak_sd(__pyx_self, __pyx_v_rowptr, __pyx_v_colind, __pyx_v_a, __pyx_v_da, __pyx_v_qV, __pyx_v_qDV, __pyx_v_qDV_eb, __pyx_v_grad_w_dV, __pyx_v_v, __pyx_v_jacobian, __pyx_v_jacobian_eb);
45298 __Pyx_RefNannyFinishContext();
45302 static PyObject *__pyx_pf_13cfemIntegrals_384updateDiffusionJacobian_MixedForm_weak_sd(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_rowptr, PyArrayObject *__pyx_v_colind, PyArrayObject *__pyx_v_a, PyArrayObject *__pyx_v_da, PyArrayObject *__pyx_v_qV, PyArrayObject *__pyx_v_qDV, PyArrayObject *__pyx_v_qDV_eb, PyArrayObject *__pyx_v_grad_w_dV, PyArrayObject *__pyx_v_v, PyArrayObject *__pyx_v_jacobian, PyArrayObject *__pyx_v_jacobian_eb) {
45303 PyObject *__pyx_r = NULL;
45304 __Pyx_RefNannyDeclarations
45305 __Pyx_RefNannySetupContext(
"updateDiffusionJacobian_MixedForm_weak_sd", 0);
45314 updateDiffusionJacobian_MixedForm_weak_sd((__pyx_v_qDV_eb->dimensions[0]), (__pyx_v_qDV_eb->dimensions[1]), (__pyx_v_qDV_eb->dimensions[2]), (__pyx_v_qDV_eb->dimensions[3]), (__pyx_v_grad_w_dV->dimensions[2]), (__pyx_v_grad_w_dV->dimensions[3]), ((
int *)__pyx_v_rowptr->data), ((
int *)__pyx_v_colind->data), ((
double *)__pyx_v_a->data), ((
double *)__pyx_v_da->data), ((
double *)__pyx_v_qV->data), ((
double *)__pyx_v_qDV->data), ((
double *)__pyx_v_qDV_eb->data), ((
double *)__pyx_v_grad_w_dV->data), ((
double *)__pyx_v_v->data), ((
double *)__pyx_v_jacobian->data), ((
double *)__pyx_v_jacobian_eb->data));
45325 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45326 __Pyx_XGIVEREF(__pyx_r);
45327 __Pyx_RefNannyFinishContext();
45339 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
45340 PyObject *__pyx_r = NULL;
45341 __Pyx_RefNannyDeclarations
45342 PyObject *__pyx_t_1 = NULL;
45343 int __pyx_lineno = 0;
45344 const char *__pyx_filename = NULL;
45345 int __pyx_clineno = 0;
45346 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
45355 __Pyx_XDECREF(__pyx_r);
45356 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 736, __pyx_L1_error)
45357 __Pyx_GOTREF(__pyx_t_1);
45358 __pyx_r = __pyx_t_1;
45372 __Pyx_XDECREF(__pyx_t_1);
45373 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
45376 __Pyx_XGIVEREF(__pyx_r);
45377 __Pyx_RefNannyFinishContext();
45389 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
45390 PyObject *__pyx_r = NULL;
45391 __Pyx_RefNannyDeclarations
45392 PyObject *__pyx_t_1 = NULL;
45393 int __pyx_lineno = 0;
45394 const char *__pyx_filename = NULL;
45395 int __pyx_clineno = 0;
45396 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
45405 __Pyx_XDECREF(__pyx_r);
45406 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 739, __pyx_L1_error)
45407 __Pyx_GOTREF(__pyx_t_1);
45408 __pyx_r = __pyx_t_1;
45422 __Pyx_XDECREF(__pyx_t_1);
45423 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
45426 __Pyx_XGIVEREF(__pyx_r);
45427 __Pyx_RefNannyFinishContext();
45439 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
45440 PyObject *__pyx_r = NULL;
45441 __Pyx_RefNannyDeclarations
45442 PyObject *__pyx_t_1 = NULL;
45443 int __pyx_lineno = 0;
45444 const char *__pyx_filename = NULL;
45445 int __pyx_clineno = 0;
45446 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
45455 __Pyx_XDECREF(__pyx_r);
45456 __pyx_t_1 = PyArray_MultiIterNew(3, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 742, __pyx_L1_error)
45457 __Pyx_GOTREF(__pyx_t_1);
45458 __pyx_r = __pyx_t_1;
45472 __Pyx_XDECREF(__pyx_t_1);
45473 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
45476 __Pyx_XGIVEREF(__pyx_r);
45477 __Pyx_RefNannyFinishContext();
45489 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
45490 PyObject *__pyx_r = NULL;
45491 __Pyx_RefNannyDeclarations
45492 PyObject *__pyx_t_1 = NULL;
45493 int __pyx_lineno = 0;
45494 const char *__pyx_filename = NULL;
45495 int __pyx_clineno = 0;
45496 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
45505 __Pyx_XDECREF(__pyx_r);
45506 __pyx_t_1 = PyArray_MultiIterNew(4, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 745, __pyx_L1_error)
45507 __Pyx_GOTREF(__pyx_t_1);
45508 __pyx_r = __pyx_t_1;
45522 __Pyx_XDECREF(__pyx_t_1);
45523 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
45526 __Pyx_XGIVEREF(__pyx_r);
45527 __Pyx_RefNannyFinishContext();
45539 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
45540 PyObject *__pyx_r = NULL;
45541 __Pyx_RefNannyDeclarations
45542 PyObject *__pyx_t_1 = NULL;
45543 int __pyx_lineno = 0;
45544 const char *__pyx_filename = NULL;
45545 int __pyx_clineno = 0;
45546 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
45555 __Pyx_XDECREF(__pyx_r);
45556 __pyx_t_1 = PyArray_MultiIterNew(5, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d), ((
void *)__pyx_v_e));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 748, __pyx_L1_error)
45557 __Pyx_GOTREF(__pyx_t_1);
45558 __pyx_r = __pyx_t_1;
45572 __Pyx_XDECREF(__pyx_t_1);
45573 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
45576 __Pyx_XGIVEREF(__pyx_r);
45577 __Pyx_RefNannyFinishContext();
45589 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
45590 PyObject *__pyx_r = NULL;
45591 __Pyx_RefNannyDeclarations
45593 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
45602 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
45612 __Pyx_XDECREF(__pyx_r);
45613 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
45614 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
45634 __Pyx_XDECREF(__pyx_r);
45635 __Pyx_INCREF(__pyx_empty_tuple);
45636 __pyx_r = __pyx_empty_tuple;
45650 __Pyx_XGIVEREF(__pyx_r);
45651 __Pyx_RefNannyFinishContext();
45663 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
45664 __Pyx_RefNannyDeclarations
45665 __Pyx_RefNannySetupContext(
"set_array_base", 0);
45674 Py_INCREF(__pyx_v_base);
45683 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
45694 __Pyx_RefNannyFinishContext();
45705 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
45706 PyObject *__pyx_v_base;
45707 PyObject *__pyx_r = NULL;
45708 __Pyx_RefNannyDeclarations
45710 __Pyx_RefNannySetupContext(
"get_array_base", 0);
45719 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
45728 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
45738 __Pyx_XDECREF(__pyx_r);
45739 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
45758 __Pyx_XDECREF(__pyx_r);
45759 __Pyx_INCREF(((PyObject *)__pyx_v_base));
45760 __pyx_r = ((PyObject *)__pyx_v_base);
45773 __Pyx_XGIVEREF(__pyx_r);
45774 __Pyx_RefNannyFinishContext();
45786 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
45788 __Pyx_RefNannyDeclarations
45789 PyObject *__pyx_t_1 = NULL;
45790 PyObject *__pyx_t_2 = NULL;
45791 PyObject *__pyx_t_3 = NULL;
45793 PyObject *__pyx_t_5 = NULL;
45794 PyObject *__pyx_t_6 = NULL;
45795 PyObject *__pyx_t_7 = NULL;
45796 PyObject *__pyx_t_8 = NULL;
45797 int __pyx_lineno = 0;
45798 const char *__pyx_filename = NULL;
45799 int __pyx_clineno = 0;
45800 __Pyx_RefNannySetupContext(
"import_array", 0);
45810 __Pyx_PyThreadState_declare
45811 __Pyx_PyThreadState_assign
45812 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
45813 __Pyx_XGOTREF(__pyx_t_1);
45814 __Pyx_XGOTREF(__pyx_t_2);
45815 __Pyx_XGOTREF(__pyx_t_3);
45825 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 943, __pyx_L3_error)
45835 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
45836 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
45837 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
45838 goto __pyx_L8_try_end;
45848 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
45850 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
45851 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 944, __pyx_L5_except_error)
45852 __Pyx_GOTREF(__pyx_t_5);
45853 __Pyx_GOTREF(__pyx_t_6);
45854 __Pyx_GOTREF(__pyx_t_7);
45863 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple_, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 945, __pyx_L5_except_error)
45864 __Pyx_GOTREF(__pyx_t_8);
45865 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
45866 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
45867 __PYX_ERR(1, 945, __pyx_L5_except_error)
45869 goto __pyx_L5_except_error;
45870 __pyx_L5_except_error:;
45879 __Pyx_XGIVEREF(__pyx_t_1);
45880 __Pyx_XGIVEREF(__pyx_t_2);
45881 __Pyx_XGIVEREF(__pyx_t_3);
45882 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
45883 goto __pyx_L1_error;
45899 __Pyx_XDECREF(__pyx_t_5);
45900 __Pyx_XDECREF(__pyx_t_6);
45901 __Pyx_XDECREF(__pyx_t_7);
45902 __Pyx_XDECREF(__pyx_t_8);
45903 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
45906 __Pyx_RefNannyFinishContext();
45918 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
45920 __Pyx_RefNannyDeclarations
45921 PyObject *__pyx_t_1 = NULL;
45922 PyObject *__pyx_t_2 = NULL;
45923 PyObject *__pyx_t_3 = NULL;
45925 PyObject *__pyx_t_5 = NULL;
45926 PyObject *__pyx_t_6 = NULL;
45927 PyObject *__pyx_t_7 = NULL;
45928 PyObject *__pyx_t_8 = NULL;
45929 int __pyx_lineno = 0;
45930 const char *__pyx_filename = NULL;
45931 int __pyx_clineno = 0;
45932 __Pyx_RefNannySetupContext(
"import_umath", 0);
45942 __Pyx_PyThreadState_declare
45943 __Pyx_PyThreadState_assign
45944 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
45945 __Pyx_XGOTREF(__pyx_t_1);
45946 __Pyx_XGOTREF(__pyx_t_2);
45947 __Pyx_XGOTREF(__pyx_t_3);
45957 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 949, __pyx_L3_error)
45967 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
45968 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
45969 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
45970 goto __pyx_L8_try_end;
45980 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
45982 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
45983 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 950, __pyx_L5_except_error)
45984 __Pyx_GOTREF(__pyx_t_5);
45985 __Pyx_GOTREF(__pyx_t_6);
45986 __Pyx_GOTREF(__pyx_t_7);
45995 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 951, __pyx_L5_except_error)
45996 __Pyx_GOTREF(__pyx_t_8);
45997 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
45998 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
45999 __PYX_ERR(1, 951, __pyx_L5_except_error)
46001 goto __pyx_L5_except_error;
46002 __pyx_L5_except_error:;
46011 __Pyx_XGIVEREF(__pyx_t_1);
46012 __Pyx_XGIVEREF(__pyx_t_2);
46013 __Pyx_XGIVEREF(__pyx_t_3);
46014 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
46015 goto __pyx_L1_error;
46031 __Pyx_XDECREF(__pyx_t_5);
46032 __Pyx_XDECREF(__pyx_t_6);
46033 __Pyx_XDECREF(__pyx_t_7);
46034 __Pyx_XDECREF(__pyx_t_8);
46035 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
46038 __Pyx_RefNannyFinishContext();
46050 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
46052 __Pyx_RefNannyDeclarations
46053 PyObject *__pyx_t_1 = NULL;
46054 PyObject *__pyx_t_2 = NULL;
46055 PyObject *__pyx_t_3 = NULL;
46057 PyObject *__pyx_t_5 = NULL;
46058 PyObject *__pyx_t_6 = NULL;
46059 PyObject *__pyx_t_7 = NULL;
46060 PyObject *__pyx_t_8 = NULL;
46061 int __pyx_lineno = 0;
46062 const char *__pyx_filename = NULL;
46063 int __pyx_clineno = 0;
46064 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
46074 __Pyx_PyThreadState_declare
46075 __Pyx_PyThreadState_assign
46076 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
46077 __Pyx_XGOTREF(__pyx_t_1);
46078 __Pyx_XGOTREF(__pyx_t_2);
46079 __Pyx_XGOTREF(__pyx_t_3);
46089 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 955, __pyx_L3_error)
46099 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
46100 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
46101 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
46102 goto __pyx_L8_try_end;
46112 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
46114 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
46115 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(1, 956, __pyx_L5_except_error)
46116 __Pyx_GOTREF(__pyx_t_5);
46117 __Pyx_GOTREF(__pyx_t_6);
46118 __Pyx_GOTREF(__pyx_t_7);
46127 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 957, __pyx_L5_except_error)
46128 __Pyx_GOTREF(__pyx_t_8);
46129 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
46130 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46131 __PYX_ERR(1, 957, __pyx_L5_except_error)
46133 goto __pyx_L5_except_error;
46134 __pyx_L5_except_error:;
46143 __Pyx_XGIVEREF(__pyx_t_1);
46144 __Pyx_XGIVEREF(__pyx_t_2);
46145 __Pyx_XGIVEREF(__pyx_t_3);
46146 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
46147 goto __pyx_L1_error;
46163 __Pyx_XDECREF(__pyx_t_5);
46164 __Pyx_XDECREF(__pyx_t_6);
46165 __Pyx_XDECREF(__pyx_t_7);
46166 __Pyx_XDECREF(__pyx_t_8);
46167 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
46170 __Pyx_RefNannyFinishContext();
46182 static CYTHON_INLINE
int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
46184 __Pyx_RefNannyDeclarations
46185 __Pyx_RefNannySetupContext(
"is_timedelta64_object", 0);
46194 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
46207 __Pyx_RefNannyFinishContext();
46219 static CYTHON_INLINE
int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
46221 __Pyx_RefNannyDeclarations
46222 __Pyx_RefNannySetupContext(
"is_datetime64_object", 0);
46231 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
46244 __Pyx_RefNannyFinishContext();
46256 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
46257 npy_datetime __pyx_r;
46266 __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
46290 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
46291 npy_timedelta __pyx_r;
46300 __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
46324 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
46325 NPY_DATETIMEUNIT __pyx_r;
46332 __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
46348 static PyMethodDef __pyx_methods[] = {
46352 #if PY_MAJOR_VERSION >= 3
46353 #if CYTHON_PEP489_MULTI_PHASE_INIT
46354 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
46355 static int __pyx_pymod_exec_cfemIntegrals(PyObject* module);
46356 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
46357 {Py_mod_create, (
void*)__pyx_pymod_create},
46358 {Py_mod_exec, (
void*)__pyx_pymod_exec_cfemIntegrals},
46363 static struct PyModuleDef __pyx_moduledef = {
46364 PyModuleDef_HEAD_INIT,
46367 #if CYTHON_PEP489_MULTI_PHASE_INIT
46373 #if CYTHON_PEP489_MULTI_PHASE_INIT
46374 __pyx_moduledef_slots,
46383 #ifndef CYTHON_SMALL_CODE
46384 #if defined(__clang__)
46385 #define CYTHON_SMALL_CODE
46386 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
46387 #define CYTHON_SMALL_CODE __attribute__((cold))
46389 #define CYTHON_SMALL_CODE
46393 static __Pyx_StringTabEntry __pyx_string_tab[] = {
46394 {&__pyx_n_s_A_inv, __pyx_k_A_inv,
sizeof(__pyx_k_A_inv), 0, 0, 1, 1},
46395 {&__pyx_n_s_DV, __pyx_k_DV,
sizeof(__pyx_k_DV), 0, 0, 1, 1},
46396 {&__pyx_n_s_DV_eb, __pyx_k_DV_eb,
sizeof(__pyx_k_DV_eb), 0, 0, 1, 1},
46397 {&__pyx_n_s_F, __pyx_k_F,
sizeof(__pyx_k_F), 0, 0, 1, 1},
46398 {&__pyx_n_s_H, __pyx_k_H,
sizeof(__pyx_k_H), 0, 0, 1, 1},
46399 {&__pyx_n_s_Hess_phi, __pyx_k_Hess_phi,
sizeof(__pyx_k_Hess_phi), 0, 0, 1, 1},
46400 {&__pyx_n_s_Hess_v, __pyx_k_Hess_v,
sizeof(__pyx_k_Hess_v), 0, 0, 1, 1},
46401 {&__pyx_n_s_Hess_w, __pyx_k_Hess_w,
sizeof(__pyx_k_Hess_w), 0, 0, 1, 1},
46402 {&__pyx_n_s_Hess_w_dV, __pyx_k_Hess_w_dV,
sizeof(__pyx_k_Hess_w_dV), 0, 0, 1, 1},
46403 {&__pyx_n_s_Hessian_psi, __pyx_k_Hessian_psi,
sizeof(__pyx_k_Hessian_psi), 0, 0, 1, 1},
46404 {&__pyx_n_s_Hessian_u, __pyx_k_Hessian_u,
sizeof(__pyx_k_Hessian_u), 0, 0, 1, 1},
46405 {&__pyx_n_s_Hessian_v, __pyx_k_Hessian_v,
sizeof(__pyx_k_Hessian_v), 0, 0, 1, 1},
46406 {&__pyx_n_s_Hessian_vArray, __pyx_k_Hessian_vArray,
sizeof(__pyx_k_Hessian_vArray), 0, 0, 1, 1},
46407 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
46408 {&__pyx_n_s_Lstar_w_dV, __pyx_k_Lstar_w_dV,
sizeof(__pyx_k_Lstar_w_dV), 0, 0, 1, 1},
46409 {&__pyx_n_s_V, __pyx_k_V,
sizeof(__pyx_k_V), 0, 0, 1, 1},
46410 {&__pyx_n_s_a, __pyx_k_a,
sizeof(__pyx_k_a), 0, 0, 1, 1},
46411 {&__pyx_n_s_abs_det_J, __pyx_k_abs_det_J,
sizeof(__pyx_k_abs_det_J), 0, 0, 1, 1},
46412 {&__pyx_n_s_abs_det_jac, __pyx_k_abs_det_jac,
sizeof(__pyx_k_abs_det_jac), 0, 0, 1, 1},
46413 {&__pyx_n_s_b, __pyx_k_b,
sizeof(__pyx_k_b), 0, 0, 1, 1},
46414 {&__pyx_n_s_boundaryJacobians, __pyx_k_boundaryJacobians,
sizeof(__pyx_k_boundaryJacobians), 0, 0, 1, 1},
46415 {&__pyx_n_s_boundaryNormals, __pyx_k_boundaryNormals,
sizeof(__pyx_k_boundaryNormals), 0, 0, 1, 1},
46416 {&__pyx_n_s_calculateCFLADR, __pyx_k_calculateCFLADR,
sizeof(__pyx_k_calculateCFLADR), 0, 0, 1, 1},
46417 {&__pyx_n_s_calculateCFLADR2speeds, __pyx_k_calculateCFLADR2speeds,
sizeof(__pyx_k_calculateCFLADR2speeds), 0, 0, 1, 1},
46418 {&__pyx_n_s_calculateConservationFluxPWL, __pyx_k_calculateConservationFluxPWL,
sizeof(__pyx_k_calculateConservationFluxPWL), 0, 0, 1, 1},
46419 {&__pyx_n_s_calculateConservationJacobianPWL, __pyx_k_calculateConservationJacobianPWL,
sizeof(__pyx_k_calculateConservationJacobianPWL), 0, 0, 1, 1},
46420 {&__pyx_n_s_calculateConservationResidual, __pyx_k_calculateConservationResidual,
sizeof(__pyx_k_calculateConservationResidual), 0, 0, 1, 1},
46421 {&__pyx_n_s_calculateConservationResidualDG, __pyx_k_calculateConservationResidualDG,
sizeof(__pyx_k_calculateConservationResidualDG), 0, 0, 1, 1},
46422 {&__pyx_n_s_calculateConservationResidualGlo, __pyx_k_calculateConservationResidualGlo,
sizeof(__pyx_k_calculateConservationResidualGlo), 0, 0, 1, 1},
46423 {&__pyx_n_s_calculateConservationResidualPWL, __pyx_k_calculateConservationResidualPWL,
sizeof(__pyx_k_calculateConservationResidualPWL), 0, 0, 1, 1},
46424 {&__pyx_n_s_calculateDimensionlessNumbersADR, __pyx_k_calculateDimensionlessNumbersADR,
sizeof(__pyx_k_calculateDimensionlessNumbersADR), 0, 0, 1, 1},
46425 {&__pyx_n_s_calculateDimensionlessNumbersADR_2, __pyx_k_calculateDimensionlessNumbersADR_2,
sizeof(__pyx_k_calculateDimensionlessNumbersADR_2), 0, 0, 1, 1},
46426 {&__pyx_n_s_calculateElementBoundaryIntegrat, __pyx_k_calculateElementBoundaryIntegrat,
sizeof(__pyx_k_calculateElementBoundaryIntegrat), 0, 0, 1, 1},
46427 {&__pyx_n_s_calculateExteriorElementBoundary, __pyx_k_calculateExteriorElementBoundary,
sizeof(__pyx_k_calculateExteriorElementBoundary), 0, 0, 1, 1},
46428 {&__pyx_n_s_calculateExteriorElementBoundary_2, __pyx_k_calculateExteriorElementBoundary_2,
sizeof(__pyx_k_calculateExteriorElementBoundary_2), 0, 0, 1, 1},
46429 {&__pyx_n_s_calculateExteriorElementBoundary_3, __pyx_k_calculateExteriorElementBoundary_3,
sizeof(__pyx_k_calculateExteriorElementBoundary_3), 0, 0, 1, 1},
46430 {&__pyx_n_s_calculateExteriorElementBoundary_4, __pyx_k_calculateExteriorElementBoundary_4,
sizeof(__pyx_k_calculateExteriorElementBoundary_4), 0, 0, 1, 1},
46431 {&__pyx_n_s_calculateExteriorNumericalTrace, __pyx_k_calculateExteriorNumericalTrace,
sizeof(__pyx_k_calculateExteriorNumericalTrace), 0, 0, 1, 1},
46432 {&__pyx_n_s_calculateFiniteElementFunctionGr, __pyx_k_calculateFiniteElementFunctionGr,
sizeof(__pyx_k_calculateFiniteElementFunctionGr), 0, 0, 1, 1},
46433 {&__pyx_n_s_calculateFiniteElementFunctionGr_2, __pyx_k_calculateFiniteElementFunctionGr_2,
sizeof(__pyx_k_calculateFiniteElementFunctionGr_2), 0, 0, 1, 1},
46434 {&__pyx_n_s_calculateFiniteElementFunctionGr_3, __pyx_k_calculateFiniteElementFunctionGr_3,
sizeof(__pyx_k_calculateFiniteElementFunctionGr_3), 0, 0, 1, 1},
46435 {&__pyx_n_s_calculateFiniteElementFunctionGr_4, __pyx_k_calculateFiniteElementFunctionGr_4,
sizeof(__pyx_k_calculateFiniteElementFunctionGr_4), 0, 0, 1, 1},
46436 {&__pyx_n_s_calculateFiniteElementFunctionHe, __pyx_k_calculateFiniteElementFunctionHe,
sizeof(__pyx_k_calculateFiniteElementFunctionHe), 0, 0, 1, 1},
46437 {&__pyx_n_s_calculateFiniteElementFunctionVa, __pyx_k_calculateFiniteElementFunctionVa,
sizeof(__pyx_k_calculateFiniteElementFunctionVa), 0, 0, 1, 1},
46438 {&__pyx_n_s_calculateFiniteElementFunctionVa_2, __pyx_k_calculateFiniteElementFunctionVa_2,
sizeof(__pyx_k_calculateFiniteElementFunctionVa_2), 0, 0, 1, 1},
46439 {&__pyx_n_s_calculateFiniteElementFunctionVa_3, __pyx_k_calculateFiniteElementFunctionVa_3,
sizeof(__pyx_k_calculateFiniteElementFunctionVa_3), 0, 0, 1, 1},
46440 {&__pyx_n_s_calculateFlowVelocity, __pyx_k_calculateFlowVelocity,
sizeof(__pyx_k_calculateFlowVelocity), 0, 0, 1, 1},
46441 {&__pyx_n_s_calculateGlobalExteriorElementBo, __pyx_k_calculateGlobalExteriorElementBo,
sizeof(__pyx_k_calculateGlobalExteriorElementBo), 0, 0, 1, 1},
46442 {&__pyx_n_s_calculateGradShape_X_weightedGra, __pyx_k_calculateGradShape_X_weightedGra,
sizeof(__pyx_k_calculateGradShape_X_weightedGra), 0, 0, 1, 1},
46443 {&__pyx_n_s_calculateGradShape_X_weightedSha, __pyx_k_calculateGradShape_X_weightedSha,
sizeof(__pyx_k_calculateGradShape_X_weightedSha), 0, 0, 1, 1},
46444 {&__pyx_n_s_calculateGradShape_X_weightedSha_2, __pyx_k_calculateGradShape_X_weightedSha_2,
sizeof(__pyx_k_calculateGradShape_X_weightedSha_2), 0, 0, 1, 1},
46445 {&__pyx_n_s_calculateGradShape_X_weightedSha_3, __pyx_k_calculateGradShape_X_weightedSha_3,
sizeof(__pyx_k_calculateGradShape_X_weightedSha_3), 0, 0, 1, 1},
46446 {&__pyx_n_s_calculateIntegrationWeights, __pyx_k_calculateIntegrationWeights,
sizeof(__pyx_k_calculateIntegrationWeights), 0, 0, 1, 1},
46447 {&__pyx_n_s_calculateInteriorElementBoundary, __pyx_k_calculateInteriorElementBoundary,
sizeof(__pyx_k_calculateInteriorElementBoundary), 0, 0, 1, 1},
46448 {&__pyx_n_s_calculateInteriorElementBoundary_2, __pyx_k_calculateInteriorElementBoundary_2,
sizeof(__pyx_k_calculateInteriorElementBoundary_2), 0, 0, 1, 1},
46449 {&__pyx_n_s_calculateInteriorNumericalTrace, __pyx_k_calculateInteriorNumericalTrace,
sizeof(__pyx_k_calculateInteriorNumericalTrace), 0, 0, 1, 1},
46450 {&__pyx_n_s_calculateScalarScalarProduct, __pyx_k_calculateScalarScalarProduct,
sizeof(__pyx_k_calculateScalarScalarProduct), 0, 0, 1, 1},
46451 {&__pyx_n_s_calculateShape_X_weightedGradSha, __pyx_k_calculateShape_X_weightedGradSha,
sizeof(__pyx_k_calculateShape_X_weightedGradSha), 0, 0, 1, 1},
46452 {&__pyx_n_s_calculateShape_X_weightedShape, __pyx_k_calculateShape_X_weightedShape,
sizeof(__pyx_k_calculateShape_X_weightedShape), 0, 0, 1, 1},
46453 {&__pyx_n_s_calculateShape_X_weightedShapeGl, __pyx_k_calculateShape_X_weightedShapeGl,
sizeof(__pyx_k_calculateShape_X_weightedShapeGl), 0, 0, 1, 1},
46454 {&__pyx_n_s_calculateShape_X_weightedShapeTr, __pyx_k_calculateShape_X_weightedShapeTr,
sizeof(__pyx_k_calculateShape_X_weightedShapeTr), 0, 0, 1, 1},
46455 {&__pyx_n_s_calculateTensorScalarProduct, __pyx_k_calculateTensorScalarProduct,
sizeof(__pyx_k_calculateTensorScalarProduct), 0, 0, 1, 1},
46456 {&__pyx_n_s_calculateVectorScalarProduct, __pyx_k_calculateVectorScalarProduct,
sizeof(__pyx_k_calculateVectorScalarProduct), 0, 0, 1, 1},
46457 {&__pyx_n_s_calculateVelocityProjectionMatri, __pyx_k_calculateVelocityProjectionMatri,
sizeof(__pyx_k_calculateVelocityProjectionMatri), 0, 0, 1, 1},
46458 {&__pyx_n_s_calculateVelocityQuadrature_Mixe, __pyx_k_calculateVelocityQuadrature_Mixe,
sizeof(__pyx_k_calculateVelocityQuadrature_Mixe), 0, 0, 1, 1},
46459 {&__pyx_n_s_calculateVelocityQuadrature_Mixe_2, __pyx_k_calculateVelocityQuadrature_Mixe_2,
sizeof(__pyx_k_calculateVelocityQuadrature_Mixe_2), 0, 0, 1, 1},
46460 {&__pyx_n_s_calculateVelocityQuadrature_Mixe_3, __pyx_k_calculateVelocityQuadrature_Mixe_3,
sizeof(__pyx_k_calculateVelocityQuadrature_Mixe_3), 0, 0, 1, 1},
46461 {&__pyx_n_s_calculateVelocityQuadrature_Mixe_4, __pyx_k_calculateVelocityQuadrature_Mixe_4,
sizeof(__pyx_k_calculateVelocityQuadrature_Mixe_4), 0, 0, 1, 1},
46462 {&__pyx_n_s_calculateWeightedShape, __pyx_k_calculateWeightedShape,
sizeof(__pyx_k_calculateWeightedShape), 0, 0, 1, 1},
46463 {&__pyx_n_s_calculateWeightedShapeGlobalExte, __pyx_k_calculateWeightedShapeGlobalExte,
sizeof(__pyx_k_calculateWeightedShapeGlobalExte), 0, 0, 1, 1},
46464 {&__pyx_n_s_calculateWeightedShapeGradients, __pyx_k_calculateWeightedShapeGradients,
sizeof(__pyx_k_calculateWeightedShapeGradients), 0, 0, 1, 1},
46465 {&__pyx_n_s_calculateWeightedShapeHessians, __pyx_k_calculateWeightedShapeHessians,
sizeof(__pyx_k_calculateWeightedShapeHessians), 0, 0, 1, 1},
46466 {&__pyx_n_s_calculateWeightedShapeTrace, __pyx_k_calculateWeightedShapeTrace,
sizeof(__pyx_k_calculateWeightedShapeTrace), 0, 0, 1, 1},
46467 {&__pyx_n_s_cfemIntegrals, __pyx_k_cfemIntegrals,
sizeof(__pyx_k_cfemIntegrals), 0, 0, 1, 1},
46468 {&__pyx_n_s_cfl, __pyx_k_cfl,
sizeof(__pyx_k_cfl), 0, 0, 1, 1},
46469 {&__pyx_n_s_checkElementBoundaryAndExteriorE, __pyx_k_checkElementBoundaryAndExteriorE,
sizeof(__pyx_k_checkElementBoundaryAndExteriorE), 0, 0, 1, 1},
46470 {&__pyx_n_s_checkGlobalElementBoundaryAndExt, __pyx_k_checkGlobalElementBoundaryAndExt,
sizeof(__pyx_k_checkGlobalElementBoundaryAndExt), 0, 0, 1, 1},
46471 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
46472 {&__pyx_n_s_colind, __pyx_k_colind,
sizeof(__pyx_k_colind), 0, 0, 1, 1},
46473 {&__pyx_n_s_colind_dummy, __pyx_k_colind_dummy,
sizeof(__pyx_k_colind_dummy), 0, 0, 1, 1},
46474 {&__pyx_n_s_computeC0P1InterpolantDGP0, __pyx_k_computeC0P1InterpolantDGP0,
sizeof(__pyx_k_computeC0P1InterpolantDGP0), 0, 0, 1, 1},
46475 {&__pyx_n_s_computeC0P1InterpolantDGP12, __pyx_k_computeC0P1InterpolantDGP12,
sizeof(__pyx_k_computeC0P1InterpolantDGP12), 0, 0, 1, 1},
46476 {&__pyx_n_s_computeC0P1InterpolantNCP1, __pyx_k_computeC0P1InterpolantNCP1,
sizeof(__pyx_k_computeC0P1InterpolantNCP1), 0, 0, 1, 1},
46477 {&__pyx_n_s_computeDiffusiveTimeStepLimit, __pyx_k_computeDiffusiveTimeStepLimit,
sizeof(__pyx_k_computeDiffusiveTimeStepLimit), 0, 0, 1, 1},
46478 {&__pyx_n_s_conservationResidual, __pyx_k_conservationResidual,
sizeof(__pyx_k_conservationResidual), 0, 0, 1, 1},
46479 {&__pyx_n_s_copyBetweenFreeUnknownsAndGlobal, __pyx_k_copyBetweenFreeUnknownsAndGlobal,
sizeof(__pyx_k_copyBetweenFreeUnknownsAndGlobal), 0, 0, 1, 1},
46480 {&__pyx_n_s_copyExteriorElementBoundaryValue, __pyx_k_copyExteriorElementBoundaryValue,
sizeof(__pyx_k_copyExteriorElementBoundaryValue), 0, 0, 1, 1},
46481 {&__pyx_n_s_copyExteriorElementBoundaryValue_2, __pyx_k_copyExteriorElementBoundaryValue_2,
sizeof(__pyx_k_copyExteriorElementBoundaryValue_2), 0, 0, 1, 1},
46482 {&__pyx_n_s_copyExteriorElementBoundaryValue_3, __pyx_k_copyExteriorElementBoundaryValue_3,
sizeof(__pyx_k_copyExteriorElementBoundaryValue_3), 0, 0, 1, 1},
46483 {&__pyx_n_s_copyExteriorElementBoundaryValue_4, __pyx_k_copyExteriorElementBoundaryValue_4,
sizeof(__pyx_k_copyExteriorElementBoundaryValue_4), 0, 0, 1, 1},
46484 {&__pyx_n_s_copyGlobalElementBoundaryVelocit, __pyx_k_copyGlobalElementBoundaryVelocit,
sizeof(__pyx_k_copyGlobalElementBoundaryVelocit), 0, 0, 1, 1},
46485 {&__pyx_n_s_copyLeftElementBoundaryInfo, __pyx_k_copyLeftElementBoundaryInfo,
sizeof(__pyx_k_copyLeftElementBoundaryInfo), 0, 0, 1, 1},
46486 {&__pyx_n_s_csrColumnOffsets_eb_eNebN_ru, __pyx_k_csrColumnOffsets_eb_eNebN_ru,
sizeof(__pyx_k_csrColumnOffsets_eb_eNebN_ru), 0, 0, 1, 1},
46487 {&__pyx_n_s_csrColumnOffsets_eb_ru, __pyx_k_csrColumnOffsets_eb_ru,
sizeof(__pyx_k_csrColumnOffsets_eb_ru), 0, 0, 1, 1},
46488 {&__pyx_n_s_csrColumnOffsets_ru, __pyx_k_csrColumnOffsets_ru,
sizeof(__pyx_k_csrColumnOffsets_ru), 0, 0, 1, 1},
46489 {&__pyx_n_s_csrRowIndeces_ru, __pyx_k_csrRowIndeces_ru,
sizeof(__pyx_k_csrRowIndeces_ru), 0, 0, 1, 1},
46490 {&__pyx_n_s_dH, __pyx_k_dH,
sizeof(__pyx_k_dH), 0, 0, 1, 1},
46491 {&__pyx_n_s_dS, __pyx_k_dS,
sizeof(__pyx_k_dS), 0, 0, 1, 1},
46492 {&__pyx_n_s_dSR, __pyx_k_dSR,
sizeof(__pyx_k_dSR), 0, 0, 1, 1},
46493 {&__pyx_n_s_dS_u, __pyx_k_dS_u,
sizeof(__pyx_k_dS_u), 0, 0, 1, 1},
46494 {&__pyx_n_s_dV, __pyx_k_dV,
sizeof(__pyx_k_dV), 0, 0, 1, 1},
46495 {&__pyx_n_s_dVR, __pyx_k_dVR,
sizeof(__pyx_k_dVR), 0, 0, 1, 1},
46496 {&__pyx_n_s_dX, __pyx_k_dX,
sizeof(__pyx_k_dX), 0, 0, 1, 1},
46497 {&__pyx_n_s_da, __pyx_k_da,
sizeof(__pyx_k_da), 0, 0, 1, 1},
46498 {&__pyx_n_s_db, __pyx_k_db,
sizeof(__pyx_k_db), 0, 0, 1, 1},
46499 {&__pyx_n_s_db_eb, __pyx_k_db_eb,
sizeof(__pyx_k_db_eb), 0, 0, 1, 1},
46500 {&__pyx_n_s_derror, __pyx_k_derror,
sizeof(__pyx_k_derror), 0, 0, 1, 1},
46501 {&__pyx_n_s_df, __pyx_k_df,
sizeof(__pyx_k_df), 0, 0, 1, 1},
46502 {&__pyx_n_s_df1, __pyx_k_df1,
sizeof(__pyx_k_df1), 0, 0, 1, 1},
46503 {&__pyx_n_s_df2, __pyx_k_df2,
sizeof(__pyx_k_df2), 0, 0, 1, 1},
46504 {&__pyx_n_s_dim_dof, __pyx_k_dim_dof,
sizeof(__pyx_k_dim_dof), 0, 0, 1, 1},
46505 {&__pyx_n_s_dm, __pyx_k_dm,
sizeof(__pyx_k_dm), 0, 0, 1, 1},
46506 {&__pyx_n_s_dmt, __pyx_k_dmt,
sizeof(__pyx_k_dmt), 0, 0, 1, 1},
46507 {&__pyx_n_s_dof, __pyx_k_dof,
sizeof(__pyx_k_dof), 0, 0, 1, 1},
46508 {&__pyx_n_s_dofs, __pyx_k_dofs,
sizeof(__pyx_k_dofs), 0, 0, 1, 1},
46509 {&__pyx_n_s_dphi, __pyx_k_dphi,
sizeof(__pyx_k_dphi), 0, 0, 1, 1},
46510 {&__pyx_n_s_dphi_trace_left, __pyx_k_dphi_trace_left,
sizeof(__pyx_k_dphi_trace_left), 0, 0, 1, 1},
46511 {&__pyx_n_s_dphi_trace_right, __pyx_k_dphi_trace_right,
sizeof(__pyx_k_dphi_trace_right), 0, 0, 1, 1},
46512 {&__pyx_n_s_dr, __pyx_k_dr,
sizeof(__pyx_k_dr), 0, 0, 1, 1},
46513 {&__pyx_n_s_dsigma_xx, __pyx_k_dsigma_xx,
sizeof(__pyx_k_dsigma_xx), 0, 0, 1, 1},
46514 {&__pyx_n_s_dsigma_xy, __pyx_k_dsigma_xy,
sizeof(__pyx_k_dsigma_xy), 0, 0, 1, 1},
46515 {&__pyx_n_s_dsigma_xz, __pyx_k_dsigma_xz,
sizeof(__pyx_k_dsigma_xz), 0, 0, 1, 1},
46516 {&__pyx_n_s_dsigma_yx, __pyx_k_dsigma_yx,
sizeof(__pyx_k_dsigma_yx), 0, 0, 1, 1},
46517 {&__pyx_n_s_dsigma_yy, __pyx_k_dsigma_yy,
sizeof(__pyx_k_dsigma_yy), 0, 0, 1, 1},
46518 {&__pyx_n_s_dsigma_yz, __pyx_k_dsigma_yz,
sizeof(__pyx_k_dsigma_yz), 0, 0, 1, 1},
46519 {&__pyx_n_s_dsigma_zx, __pyx_k_dsigma_zx,
sizeof(__pyx_k_dsigma_zx), 0, 0, 1, 1},
46520 {&__pyx_n_s_dsigma_zy, __pyx_k_dsigma_zy,
sizeof(__pyx_k_dsigma_zy), 0, 0, 1, 1},
46521 {&__pyx_n_s_dsigma_zz, __pyx_k_dsigma_zz,
sizeof(__pyx_k_dsigma_zz), 0, 0, 1, 1},
46522 {&__pyx_n_s_dstrong_residual, __pyx_k_dstrong_residual,
sizeof(__pyx_k_dstrong_residual), 0, 0, 1, 1},
46523 {&__pyx_n_s_ebq_global_val, __pyx_k_ebq_global_val,
sizeof(__pyx_k_ebq_global_val), 0, 0, 1, 1},
46524 {&__pyx_n_s_ebq_val, __pyx_k_ebq_val,
sizeof(__pyx_k_ebq_val), 0, 0, 1, 1},
46525 {&__pyx_n_s_ebqe_val, __pyx_k_ebqe_val,
sizeof(__pyx_k_ebqe_val), 0, 0, 1, 1},
46526 {&__pyx_n_s_elementBoundaryElements, __pyx_k_elementBoundaryElements,
sizeof(__pyx_k_elementBoundaryElements), 0, 0, 1, 1},
46527 {&__pyx_n_s_elementBoundaryElementsArray, __pyx_k_elementBoundaryElementsArray,
sizeof(__pyx_k_elementBoundaryElementsArray), 0, 0, 1, 1},
46528 {&__pyx_n_s_elementBoundaryFluxJacobian, __pyx_k_elementBoundaryFluxJacobian,
sizeof(__pyx_k_elementBoundaryFluxJacobian), 0, 0, 1, 1},
46529 {&__pyx_n_s_elementBoundaryFluxJacobian_2sid, __pyx_k_elementBoundaryFluxJacobian_2sid,
sizeof(__pyx_k_elementBoundaryFluxJacobian_2sid), 0, 0, 1, 1},
46530 {&__pyx_n_s_elementBoundaryFluxJacobian_eb, __pyx_k_elementBoundaryFluxJacobian_eb,
sizeof(__pyx_k_elementBoundaryFluxJacobian_eb), 0, 0, 1, 1},
46531 {&__pyx_n_s_elementBoundaryLocalElementBound, __pyx_k_elementBoundaryLocalElementBound,
sizeof(__pyx_k_elementBoundaryLocalElementBound), 0, 0, 1, 1},
46532 {&__pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_k_elementBoundaryLocalElementBound_2,
sizeof(__pyx_k_elementBoundaryLocalElementBound_2), 0, 0, 1, 1},
46533 {&__pyx_n_s_elementBoundaryMaterialTypes, __pyx_k_elementBoundaryMaterialTypes,
sizeof(__pyx_k_elementBoundaryMaterialTypes), 0, 0, 1, 1},
46534 {&__pyx_n_s_elementDiameter, __pyx_k_elementDiameter,
sizeof(__pyx_k_elementDiameter), 0, 0, 1, 1},
46535 {&__pyx_n_s_elementJacobian, __pyx_k_elementJacobian,
sizeof(__pyx_k_elementJacobian), 0, 0, 1, 1},
46536 {&__pyx_n_s_elementJacobian_eb, __pyx_k_elementJacobian_eb,
sizeof(__pyx_k_elementJacobian_eb), 0, 0, 1, 1},
46537 {&__pyx_n_s_elementNeighbors, __pyx_k_elementNeighbors,
sizeof(__pyx_k_elementNeighbors), 0, 0, 1, 1},
46538 {&__pyx_n_s_elementNodes, __pyx_k_elementNodes,
sizeof(__pyx_k_elementNodes), 0, 0, 1, 1},
46539 {&__pyx_n_s_elementNodesArray, __pyx_k_elementNodesArray,
sizeof(__pyx_k_elementNodesArray), 0, 0, 1, 1},
46540 {&__pyx_n_s_elementResidual, __pyx_k_elementResidual,
sizeof(__pyx_k_elementResidual), 0, 0, 1, 1},
46541 {&__pyx_n_s_elementSpatialResidual, __pyx_k_elementSpatialResidual,
sizeof(__pyx_k_elementSpatialResidual), 0, 0, 1, 1},
46542 {&__pyx_n_s_end, __pyx_k_end,
sizeof(__pyx_k_end), 0, 0, 1, 1},
46543 {&__pyx_n_s_epsFact, __pyx_k_epsFact,
sizeof(__pyx_k_epsFact), 0, 0, 1, 1},
46544 {&__pyx_n_s_error, __pyx_k_error,
sizeof(__pyx_k_error), 0, 0, 1, 1},
46545 {&__pyx_kp_s_error_copyFromFreeToGlobal, __pyx_k_error_copyFromFreeToGlobal,
sizeof(__pyx_k_error_copyFromFreeToGlobal), 0, 0, 1, 0},
46546 {&__pyx_kp_s_error_in_getJacobianValuesTrace, __pyx_k_error_in_getJacobianValuesTrace,
sizeof(__pyx_k_error_in_getJacobianValuesTrace), 0, 0, 1, 0},
46547 {&__pyx_kp_s_error_in_getJacobianValues_jacob, __pyx_k_error_in_getJacobianValues_jacob,
sizeof(__pyx_k_error_in_getJacobianValues_jacob), 0, 0, 1, 0},
46548 {&__pyx_n_s_estimate_mt, __pyx_k_estimate_mt,
sizeof(__pyx_k_estimate_mt), 0, 0, 1, 1},
46549 {&__pyx_n_s_estimate_mt_lowmem, __pyx_k_estimate_mt_lowmem,
sizeof(__pyx_k_estimate_mt_lowmem), 0, 0, 1, 1},
46550 {&__pyx_n_s_exteriorElementBoundaries, __pyx_k_exteriorElementBoundaries,
sizeof(__pyx_k_exteriorElementBoundaries), 0, 0, 1, 1},
46551 {&__pyx_n_s_exteriorElementBoundariesArray, __pyx_k_exteriorElementBoundariesArray,
sizeof(__pyx_k_exteriorElementBoundariesArray), 0, 0, 1, 1},
46552 {&__pyx_n_s_f, __pyx_k_f,
sizeof(__pyx_k_f), 0, 0, 1, 1},
46553 {&__pyx_n_s_file, __pyx_k_file,
sizeof(__pyx_k_file), 0, 0, 1, 1},
46554 {&__pyx_n_s_firstBadIndex, __pyx_k_firstBadIndex,
sizeof(__pyx_k_firstBadIndex), 0, 0, 1, 1},
46555 {&__pyx_n_s_flag, __pyx_k_flag,
sizeof(__pyx_k_flag), 0, 0, 1, 1},
46556 {&__pyx_n_s_flux, __pyx_k_flux,
sizeof(__pyx_k_flux), 0, 0, 1, 1},
46557 {&__pyx_n_s_fluxDomainBoundaryIntegral, __pyx_k_fluxDomainBoundaryIntegral,
sizeof(__pyx_k_fluxDomainBoundaryIntegral), 0, 0, 1, 1},
46558 {&__pyx_n_s_fluxDomainBoundaryIntegralFromVe, __pyx_k_fluxDomainBoundaryIntegralFromVe,
sizeof(__pyx_k_fluxDomainBoundaryIntegralFromVe), 0, 0, 1, 1},
46559 {&__pyx_n_s_fluxElementBoundaries, __pyx_k_fluxElementBoundaries,
sizeof(__pyx_k_fluxElementBoundaries), 0, 0, 1, 1},
46560 {&__pyx_n_s_freeDOFids, __pyx_k_freeDOFids,
sizeof(__pyx_k_freeDOFids), 0, 0, 1, 1},
46561 {&__pyx_n_s_freeGlobal_r, __pyx_k_freeGlobal_r,
sizeof(__pyx_k_freeGlobal_r), 0, 0, 1, 1},
46562 {&__pyx_n_s_freeGlobal_u, __pyx_k_freeGlobal_u,
sizeof(__pyx_k_freeGlobal_u), 0, 0, 1, 1},
46563 {&__pyx_n_s_freeLocal_r, __pyx_k_freeLocal_r,
sizeof(__pyx_k_freeLocal_r), 0, 0, 1, 1},
46564 {&__pyx_n_s_freeLocal_u, __pyx_k_freeLocal_u,
sizeof(__pyx_k_freeLocal_u), 0, 0, 1, 1},
46565 {&__pyx_n_s_free_u, __pyx_k_free_u,
sizeof(__pyx_k_free_u), 0, 0, 1, 1},
46566 {&__pyx_n_s_functional_map_element, __pyx_k_functional_map_element,
sizeof(__pyx_k_functional_map_element), 0, 0, 1, 1},
46567 {&__pyx_n_s_getCSRrepresentation, __pyx_k_getCSRrepresentation,
sizeof(__pyx_k_getCSRrepresentation), 0, 0, 1, 1},
46568 {&__pyx_n_s_getPermutationsGlobal, __pyx_k_getPermutationsGlobal,
sizeof(__pyx_k_getPermutationsGlobal), 0, 0, 1, 1},
46569 {&__pyx_n_s_globalDOFids, __pyx_k_globalDOFids,
sizeof(__pyx_k_globalDOFids), 0, 0, 1, 1},
46570 {&__pyx_n_s_globalJacobian, __pyx_k_globalJacobian,
sizeof(__pyx_k_globalJacobian), 0, 0, 1, 1},
46571 {&__pyx_n_s_globalJacobian_array, __pyx_k_globalJacobian_array,
sizeof(__pyx_k_globalJacobian_array), 0, 0, 1, 1},
46572 {&__pyx_n_s_globalResidual, __pyx_k_globalResidual,
sizeof(__pyx_k_globalResidual), 0, 0, 1, 1},
46573 {&__pyx_n_s_grad_phi, __pyx_k_grad_phi,
sizeof(__pyx_k_grad_phi), 0, 0, 1, 1},
46574 {&__pyx_n_s_grad_phi_X_grad_w_dV, __pyx_k_grad_phi_X_grad_w_dV,
sizeof(__pyx_k_grad_phi_X_grad_w_dV), 0, 0, 1, 1},
46575 {&__pyx_n_s_grad_psi, __pyx_k_grad_psi,
sizeof(__pyx_k_grad_psi), 0, 0, 1, 1},
46576 {&__pyx_n_s_grad_u, __pyx_k_grad_u,
sizeof(__pyx_k_grad_u), 0, 0, 1, 1},
46577 {&__pyx_n_s_grad_u_X_grad_w_dV, __pyx_k_grad_u_X_grad_w_dV,
sizeof(__pyx_k_grad_u_X_grad_w_dV), 0, 0, 1, 1},
46578 {&__pyx_n_s_grad_v, __pyx_k_grad_v,
sizeof(__pyx_k_grad_v), 0, 0, 1, 1},
46579 {&__pyx_n_s_grad_vArray, __pyx_k_grad_vArray,
sizeof(__pyx_k_grad_vArray), 0, 0, 1, 1},
46580 {&__pyx_n_s_grad_v_X_grad_w_dV, __pyx_k_grad_v_X_grad_w_dV,
sizeof(__pyx_k_grad_v_X_grad_w_dV), 0, 0, 1, 1},
46581 {&__pyx_n_s_grad_v_X_w_dS, __pyx_k_grad_v_X_w_dS,
sizeof(__pyx_k_grad_v_X_w_dS), 0, 0, 1, 1},
46582 {&__pyx_n_s_grad_v_X_w_dV, __pyx_k_grad_v_X_w_dV,
sizeof(__pyx_k_grad_v_X_w_dV), 0, 0, 1, 1},
46583 {&__pyx_n_s_grad_w, __pyx_k_grad_w,
sizeof(__pyx_k_grad_w), 0, 0, 1, 1},
46584 {&__pyx_n_s_grad_w_dV, __pyx_k_grad_w_dV,
sizeof(__pyx_k_grad_w_dV), 0, 0, 1, 1},
46585 {&__pyx_n_s_i, __pyx_k_i,
sizeof(__pyx_k_i), 0, 0, 1, 1},
46586 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
46587 {&__pyx_n_s_interiorElementBoundaries, __pyx_k_interiorElementBoundaries,
sizeof(__pyx_k_interiorElementBoundaries), 0, 0, 1, 1},
46588 {&__pyx_n_s_interiorElementBoundariesArray, __pyx_k_interiorElementBoundariesArray,
sizeof(__pyx_k_interiorElementBoundariesArray), 0, 0, 1, 1},
46589 {&__pyx_n_s_internalNodes, __pyx_k_internalNodes,
sizeof(__pyx_k_internalNodes), 0, 0, 1, 1},
46590 {&__pyx_n_s_interpolationValues, __pyx_k_interpolationValues,
sizeof(__pyx_k_interpolationValues), 0, 0, 1, 1},
46591 {&__pyx_n_s_inverseJacobian, __pyx_k_inverseJacobian,
sizeof(__pyx_k_inverseJacobian), 0, 0, 1, 1},
46592 {&__pyx_n_s_inverseJacobianArray, __pyx_k_inverseJacobianArray,
sizeof(__pyx_k_inverseJacobianArray), 0, 0, 1, 1},
46593 {&__pyx_n_s_isDOFBoundary, __pyx_k_isDOFBoundary,
sizeof(__pyx_k_isDOFBoundary), 0, 0, 1, 1},
46594 {&__pyx_n_s_jac, __pyx_k_jac,
sizeof(__pyx_k_jac), 0, 0, 1, 1},
46595 {&__pyx_n_s_jacIndex, __pyx_k_jacIndex,
sizeof(__pyx_k_jacIndex), 0, 0, 1, 1},
46596 {&__pyx_n_s_jac_array, __pyx_k_jac_array,
sizeof(__pyx_k_jac_array), 0, 0, 1, 1},
46597 {&__pyx_n_s_jacobian, __pyx_k_jacobian,
sizeof(__pyx_k_jacobian), 0, 0, 1, 1},
46598 {&__pyx_n_s_jacobianArray, __pyx_k_jacobianArray,
sizeof(__pyx_k_jacobianArray), 0, 0, 1, 1},
46599 {&__pyx_n_s_jacobianDeterminantArray, __pyx_k_jacobianDeterminantArray,
sizeof(__pyx_k_jacobianDeterminantArray), 0, 0, 1, 1},
46600 {&__pyx_n_s_jacobianInverseArray, __pyx_k_jacobianInverseArray,
sizeof(__pyx_k_jacobianInverseArray), 0, 0, 1, 1},
46601 {&__pyx_n_s_jacobian_eb, __pyx_k_jacobian_eb,
sizeof(__pyx_k_jacobian_eb), 0, 0, 1, 1},
46602 {&__pyx_n_s_jacobian_weak_residual, __pyx_k_jacobian_weak_residual,
sizeof(__pyx_k_jacobian_weak_residual), 0, 0, 1, 1},
46603 {&__pyx_n_s_jacobian_weak_residual_eb, __pyx_k_jacobian_weak_residual_eb,
sizeof(__pyx_k_jacobian_weak_residual_eb), 0, 0, 1, 1},
46604 {&__pyx_n_s_jacobian_weak_residual_xx, __pyx_k_jacobian_weak_residual_xx,
sizeof(__pyx_k_jacobian_weak_residual_xx), 0, 0, 1, 1},
46605 {&__pyx_n_s_jacobian_weak_residual_xy, __pyx_k_jacobian_weak_residual_xy,
sizeof(__pyx_k_jacobian_weak_residual_xy), 0, 0, 1, 1},
46606 {&__pyx_n_s_jacobian_weak_residual_xz, __pyx_k_jacobian_weak_residual_xz,
sizeof(__pyx_k_jacobian_weak_residual_xz), 0, 0, 1, 1},
46607 {&__pyx_n_s_jacobian_weak_residual_yx, __pyx_k_jacobian_weak_residual_yx,
sizeof(__pyx_k_jacobian_weak_residual_yx), 0, 0, 1, 1},
46608 {&__pyx_n_s_jacobian_weak_residual_yy, __pyx_k_jacobian_weak_residual_yy,
sizeof(__pyx_k_jacobian_weak_residual_yy), 0, 0, 1, 1},
46609 {&__pyx_n_s_jacobian_weak_residual_yz, __pyx_k_jacobian_weak_residual_yz,
sizeof(__pyx_k_jacobian_weak_residual_yz), 0, 0, 1, 1},
46610 {&__pyx_n_s_jacobian_weak_residual_zx, __pyx_k_jacobian_weak_residual_zx,
sizeof(__pyx_k_jacobian_weak_residual_zx), 0, 0, 1, 1},
46611 {&__pyx_n_s_jacobian_weak_residual_zy, __pyx_k_jacobian_weak_residual_zy,
sizeof(__pyx_k_jacobian_weak_residual_zy), 0, 0, 1, 1},
46612 {&__pyx_n_s_jacobian_weak_residual_zz, __pyx_k_jacobian_weak_residual_zz,
sizeof(__pyx_k_jacobian_weak_residual_zz), 0, 0, 1, 1},
46613 {&__pyx_n_s_l2g, __pyx_k_l2g,
sizeof(__pyx_k_l2g), 0, 0, 1, 1},
46614 {&__pyx_n_s_loadBoundaryFluxIntoGlobalElemen, __pyx_k_loadBoundaryFluxIntoGlobalElemen,
sizeof(__pyx_k_loadBoundaryFluxIntoGlobalElemen), 0, 0, 1, 1},
46615 {&__pyx_n_s_m, __pyx_k_m,
sizeof(__pyx_k_m), 0, 0, 1, 1},
46616 {&__pyx_n_s_mAverage, __pyx_k_mAverage,
sizeof(__pyx_k_mAverage), 0, 0, 1, 1},
46617 {&__pyx_n_s_mJump, __pyx_k_mJump,
sizeof(__pyx_k_mJump), 0, 0, 1, 1},
46618 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
46619 {&__pyx_n_s_metricTensorArray, __pyx_k_metricTensorArray,
sizeof(__pyx_k_metricTensorArray), 0, 0, 1, 1},
46620 {&__pyx_n_s_metricTensorDeterminantSqrtArray, __pyx_k_metricTensorDeterminantSqrtArray,
sizeof(__pyx_k_metricTensorDeterminantSqrtArray), 0, 0, 1, 1},
46621 {&__pyx_n_s_mom_flux_vec_u, __pyx_k_mom_flux_vec_u,
sizeof(__pyx_k_mom_flux_vec_u), 0, 0, 1, 1},
46622 {&__pyx_n_s_mom_flux_vec_v, __pyx_k_mom_flux_vec_v,
sizeof(__pyx_k_mom_flux_vec_v), 0, 0, 1, 1},
46623 {&__pyx_n_s_mom_flux_vec_w, __pyx_k_mom_flux_vec_w,
sizeof(__pyx_k_mom_flux_vec_w), 0, 0, 1, 1},
46624 {&__pyx_n_s_mt, __pyx_k_mt,
sizeof(__pyx_k_mt), 0, 0, 1, 1},
46625 {&__pyx_n_s_n, __pyx_k_n,
sizeof(__pyx_k_n), 0, 0, 1, 1},
46626 {&__pyx_n_s_nComponents, __pyx_k_nComponents,
sizeof(__pyx_k_nComponents), 0, 0, 1, 1},
46627 {&__pyx_n_s_nDOF2set, __pyx_k_nDOF2set,
sizeof(__pyx_k_nDOF2set), 0, 0, 1, 1},
46628 {&__pyx_n_s_nDOF_element, __pyx_k_nDOF_element,
sizeof(__pyx_k_nDOF_element), 0, 0, 1, 1},
46629 {&__pyx_n_s_nDOF_test_element, __pyx_k_nDOF_test_element,
sizeof(__pyx_k_nDOF_test_element), 0, 0, 1, 1},
46630 {&__pyx_n_s_nDOF_trial_element, __pyx_k_nDOF_trial_element,
sizeof(__pyx_k_nDOF_trial_element), 0, 0, 1, 1},
46631 {&__pyx_n_s_nElementBoundaries_element, __pyx_k_nElementBoundaries_element,
sizeof(__pyx_k_nElementBoundaries_element), 0, 0, 1, 1},
46632 {&__pyx_n_s_nElementBoundaries_global, __pyx_k_nElementBoundaries_global,
sizeof(__pyx_k_nElementBoundaries_global), 0, 0, 1, 1},
46633 {&__pyx_n_s_nElementBoundaries_owned, __pyx_k_nElementBoundaries_owned,
sizeof(__pyx_k_nElementBoundaries_owned), 0, 0, 1, 1},
46634 {&__pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_k_nElementBoundaryQuadraturePoints,
sizeof(__pyx_k_nElementBoundaryQuadraturePoints), 0, 0, 1, 1},
46635 {&__pyx_n_s_nElements_global, __pyx_k_nElements_global,
sizeof(__pyx_k_nElements_global), 0, 0, 1, 1},
46636 {&__pyx_n_s_nElements_node, __pyx_k_nElements_node,
sizeof(__pyx_k_nElements_node), 0, 0, 1, 1},
46637 {&__pyx_n_s_nExteriorElementBoundaries, __pyx_k_nExteriorElementBoundaries,
sizeof(__pyx_k_nExteriorElementBoundaries), 0, 0, 1, 1},
46638 {&__pyx_n_s_nExteriorElementBoundaries_globa, __pyx_k_nExteriorElementBoundaries_globa,
sizeof(__pyx_k_nExteriorElementBoundaries_globa), 0, 0, 1, 1},
46639 {&__pyx_n_s_nFreeDOF_element_r, __pyx_k_nFreeDOF_element_r,
sizeof(__pyx_k_nFreeDOF_element_r), 0, 0, 1, 1},
46640 {&__pyx_n_s_nFreeDOF_element_u, __pyx_k_nFreeDOF_element_u,
sizeof(__pyx_k_nFreeDOF_element_u), 0, 0, 1, 1},
46641 {&__pyx_n_s_nFreeVDOF_global, __pyx_k_nFreeVDOF_global,
sizeof(__pyx_k_nFreeVDOF_global), 0, 0, 1, 1},
46642 {&__pyx_n_s_nInteriorElementBoundaries_globa, __pyx_k_nInteriorElementBoundaries_globa,
sizeof(__pyx_k_nInteriorElementBoundaries_globa), 0, 0, 1, 1},
46643 {&__pyx_n_s_nNodes_element, __pyx_k_nNodes_element,
sizeof(__pyx_k_nNodes_element), 0, 0, 1, 1},
46644 {&__pyx_n_s_nNodes_global, __pyx_k_nNodes_global,
sizeof(__pyx_k_nNodes_global), 0, 0, 1, 1},
46645 {&__pyx_n_s_nNodes_internal, __pyx_k_nNodes_internal,
sizeof(__pyx_k_nNodes_internal), 0, 0, 1, 1},
46646 {&__pyx_n_s_nNonzeros, __pyx_k_nNonzeros,
sizeof(__pyx_k_nNonzeros), 0, 0, 1, 1},
46647 {&__pyx_n_s_nQuadraturePoints_element, __pyx_k_nQuadraturePoints_element,
sizeof(__pyx_k_nQuadraturePoints_element), 0, 0, 1, 1},
46648 {&__pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_k_nQuadraturePoints_elementBoundar,
sizeof(__pyx_k_nQuadraturePoints_elementBoundar), 0, 0, 1, 1},
46649 {&__pyx_n_s_nSpace, __pyx_k_nSpace,
sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
46650 {&__pyx_n_s_nSpace_global, __pyx_k_nSpace_global,
sizeof(__pyx_k_nSpace_global), 0, 0, 1, 1},
46651 {&__pyx_n_s_nValueArray, __pyx_k_nValueArray,
sizeof(__pyx_k_nValueArray), 0, 0, 1, 1},
46652 {&__pyx_n_s_nValuesPerQuadraturePoint, __pyx_k_nValuesPerQuadraturePoint,
sizeof(__pyx_k_nValuesPerQuadraturePoint), 0, 0, 1, 1},
46653 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
46654 {&__pyx_n_s_nd, __pyx_k_nd,
sizeof(__pyx_k_nd), 0, 0, 1, 1},
46655 {&__pyx_n_s_ng, __pyx_k_ng,
sizeof(__pyx_k_ng), 0, 0, 1, 1},
46656 {&__pyx_n_s_nodalAverage, __pyx_k_nodalAverage,
sizeof(__pyx_k_nodalAverage), 0, 0, 1, 1},
46657 {&__pyx_n_s_nodeArray, __pyx_k_nodeArray,
sizeof(__pyx_k_nodeArray), 0, 0, 1, 1},
46658 {&__pyx_n_s_nodeElementOffsets, __pyx_k_nodeElementOffsets,
sizeof(__pyx_k_nodeElementOffsets), 0, 0, 1, 1},
46659 {&__pyx_n_s_nodeElementsArray, __pyx_k_nodeElementsArray,
sizeof(__pyx_k_nodeElementsArray), 0, 0, 1, 1},
46660 {&__pyx_n_s_nodeStarElementNeighbors, __pyx_k_nodeStarElementNeighbors,
sizeof(__pyx_k_nodeStarElementNeighbors), 0, 0, 1, 1},
46661 {&__pyx_n_s_nodeStarElements, __pyx_k_nodeStarElements,
sizeof(__pyx_k_nodeStarElements), 0, 0, 1, 1},
46662 {&__pyx_n_s_nodeStarJacobianOffsets, __pyx_k_nodeStarJacobianOffsets,
sizeof(__pyx_k_nodeStarJacobianOffsets), 0, 0, 1, 1},
46663 {&__pyx_n_s_nodeStarOffsets, __pyx_k_nodeStarOffsets,
sizeof(__pyx_k_nodeStarOffsets), 0, 0, 1, 1},
46664 {&__pyx_n_s_normal, __pyx_k_normal,
sizeof(__pyx_k_normal), 0, 0, 1, 1},
46665 {&__pyx_kp_s_not_recognized_quitting, __pyx_k_not_recognized_quitting,
sizeof(__pyx_k_not_recognized_quitting), 0, 0, 1, 0},
46666 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
46667 {&__pyx_n_s_numDiff, __pyx_k_numDiff,
sizeof(__pyx_k_numDiff), 0, 0, 1, 1},
46668 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
46669 {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to,
sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0},
46670 {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor,
sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0},
46671 {&__pyx_n_s_offset, __pyx_k_offset,
sizeof(__pyx_k_offset), 0, 0, 1, 1},
46672 {&__pyx_n_s_offset_r, __pyx_k_offset_r,
sizeof(__pyx_k_offset_r), 0, 0, 1, 1},
46673 {&__pyx_n_s_offset_u, __pyx_k_offset_u,
sizeof(__pyx_k_offset_u), 0, 0, 1, 1},
46674 {&__pyx_n_s_output, __pyx_k_output,
sizeof(__pyx_k_output), 0, 0, 1, 1},
46675 {&__pyx_n_s_p, __pyx_k_p,
sizeof(__pyx_k_p), 0, 0, 1, 1},
46676 {&__pyx_n_s_parametricFiniteElementSpace_get, __pyx_k_parametricFiniteElementSpace_get,
sizeof(__pyx_k_parametricFiniteElementSpace_get), 0, 0, 1, 1},
46677 {&__pyx_n_s_parametricFiniteElementSpace_get_2, __pyx_k_parametricFiniteElementSpace_get_2,
sizeof(__pyx_k_parametricFiniteElementSpace_get_2), 0, 0, 1, 1},
46678 {&__pyx_n_s_parametricFiniteElementSpace_get_3, __pyx_k_parametricFiniteElementSpace_get_3,
sizeof(__pyx_k_parametricFiniteElementSpace_get_3), 0, 0, 1, 1},
46679 {&__pyx_n_s_parametricFiniteElementSpace_get_4, __pyx_k_parametricFiniteElementSpace_get_4,
sizeof(__pyx_k_parametricFiniteElementSpace_get_4), 0, 0, 1, 1},
46680 {&__pyx_n_s_parametricFiniteElementSpace_get_5, __pyx_k_parametricFiniteElementSpace_get_5,
sizeof(__pyx_k_parametricFiniteElementSpace_get_5), 0, 0, 1, 1},
46681 {&__pyx_n_s_parametricFiniteElementSpace_get_6, __pyx_k_parametricFiniteElementSpace_get_6,
sizeof(__pyx_k_parametricFiniteElementSpace_get_6), 0, 0, 1, 1},
46682 {&__pyx_n_s_parametricFiniteElementSpace_get_7, __pyx_k_parametricFiniteElementSpace_get_7,
sizeof(__pyx_k_parametricFiniteElementSpace_get_7), 0, 0, 1, 1},
46683 {&__pyx_n_s_parametricMaps_getInverseValues, __pyx_k_parametricMaps_getInverseValues,
sizeof(__pyx_k_parametricMaps_getInverseValues), 0, 0, 1, 1},
46684 {&__pyx_n_s_parametricMaps_getInverseValuesG, __pyx_k_parametricMaps_getInverseValuesG,
sizeof(__pyx_k_parametricMaps_getInverseValuesG), 0, 0, 1, 1},
46685 {&__pyx_n_s_parametricMaps_getInverseValuesT, __pyx_k_parametricMaps_getInverseValuesT,
sizeof(__pyx_k_parametricMaps_getInverseValuesT), 0, 0, 1, 1},
46686 {&__pyx_n_s_parametricMaps_getJacobianValues, __pyx_k_parametricMaps_getJacobianValues,
sizeof(__pyx_k_parametricMaps_getJacobianValues), 0, 0, 1, 1},
46687 {&__pyx_n_s_parametricMaps_getJacobianValues_2, __pyx_k_parametricMaps_getJacobianValues_2,
sizeof(__pyx_k_parametricMaps_getJacobianValues_2), 0, 0, 1, 1},
46688 {&__pyx_n_s_parametricMaps_getJacobianValues_3, __pyx_k_parametricMaps_getJacobianValues_3,
sizeof(__pyx_k_parametricMaps_getJacobianValues_3), 0, 0, 1, 1},
46689 {&__pyx_n_s_parametricMaps_getJacobianValues_4, __pyx_k_parametricMaps_getJacobianValues_4,
sizeof(__pyx_k_parametricMaps_getJacobianValues_4), 0, 0, 1, 1},
46690 {&__pyx_n_s_parametricMaps_getPermutations, __pyx_k_parametricMaps_getPermutations,
sizeof(__pyx_k_parametricMaps_getPermutations), 0, 0, 1, 1},
46691 {&__pyx_n_s_parametricMaps_getPermutationsGl, __pyx_k_parametricMaps_getPermutationsGl,
sizeof(__pyx_k_parametricMaps_getPermutationsGl), 0, 0, 1, 1},
46692 {&__pyx_n_s_parametricMaps_getValues, __pyx_k_parametricMaps_getValues,
sizeof(__pyx_k_parametricMaps_getValues), 0, 0, 1, 1},
46693 {&__pyx_n_s_parametricMaps_getValuesGlobalEx, __pyx_k_parametricMaps_getValuesGlobalEx,
sizeof(__pyx_k_parametricMaps_getValuesGlobalEx), 0, 0, 1, 1},
46694 {&__pyx_n_s_parametricMaps_getValuesTrace, __pyx_k_parametricMaps_getValuesTrace,
sizeof(__pyx_k_parametricMaps_getValuesTrace), 0, 0, 1, 1},
46695 {&__pyx_n_s_pe, __pyx_k_pe,
sizeof(__pyx_k_pe), 0, 0, 1, 1},
46696 {&__pyx_n_s_permutations, __pyx_k_permutations,
sizeof(__pyx_k_permutations), 0, 0, 1, 1},
46697 {&__pyx_n_s_phi, __pyx_k_phi,
sizeof(__pyx_k_phi), 0, 0, 1, 1},
46698 {&__pyx_n_s_phi_bc, __pyx_k_phi_bc,
sizeof(__pyx_k_phi_bc), 0, 0, 1, 1},
46699 {&__pyx_n_s_phi_trace, __pyx_k_phi_trace,
sizeof(__pyx_k_phi_trace), 0, 0, 1, 1},
46700 {&__pyx_n_s_print, __pyx_k_print,
sizeof(__pyx_k_print), 0, 0, 1, 1},
46701 {&__pyx_n_s_projectFromNodalInterpolationCon, __pyx_k_projectFromNodalInterpolationCon,
sizeof(__pyx_k_projectFromNodalInterpolationCon), 0, 0, 1, 1},
46702 {&__pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_k_proteus_cfemIntegrals_pyx,
sizeof(__pyx_k_proteus_cfemIntegrals_pyx), 0, 0, 1, 0},
46703 {&__pyx_n_s_psi, __pyx_k_psi,
sizeof(__pyx_k_psi), 0, 0, 1, 1},
46704 {&__pyx_n_s_qDV, __pyx_k_qDV,
sizeof(__pyx_k_qDV), 0, 0, 1, 1},
46705 {&__pyx_n_s_qDV_eb, __pyx_k_qDV_eb,
sizeof(__pyx_k_qDV_eb), 0, 0, 1, 1},
46706 {&__pyx_n_s_qV, __pyx_k_qV,
sizeof(__pyx_k_qV), 0, 0, 1, 1},
46707 {&__pyx_n_s_qa, __pyx_k_qa,
sizeof(__pyx_k_qa), 0, 0, 1, 1},
46708 {&__pyx_n_s_qv, __pyx_k_qv,
sizeof(__pyx_k_qv), 0, 0, 1, 1},
46709 {&__pyx_n_s_qw_dV, __pyx_k_qw_dV,
sizeof(__pyx_k_qw_dV), 0, 0, 1, 1},
46710 {&__pyx_n_s_r, __pyx_k_r,
sizeof(__pyx_k_r), 0, 0, 1, 1},
46711 {&__pyx_n_s_range, __pyx_k_range,
sizeof(__pyx_k_range), 0, 0, 1, 1},
46712 {&__pyx_n_s_referenceWeights, __pyx_k_referenceWeights,
sizeof(__pyx_k_referenceWeights), 0, 0, 1, 1},
46713 {&__pyx_n_s_residual, __pyx_k_residual,
sizeof(__pyx_k_residual), 0, 0, 1, 1},
46714 {&__pyx_n_s_rho_split, __pyx_k_rho_split,
sizeof(__pyx_k_rho_split), 0, 0, 1, 1},
46715 {&__pyx_n_s_rowptr, __pyx_k_rowptr,
sizeof(__pyx_k_rowptr), 0, 0, 1, 1},
46716 {&__pyx_n_s_rowptr_dummy, __pyx_k_rowptr_dummy,
sizeof(__pyx_k_rowptr_dummy), 0, 0, 1, 1},
46717 {&__pyx_n_s_s, __pyx_k_s,
sizeof(__pyx_k_s), 0, 0, 1, 1},
46718 {&__pyx_n_s_s1, __pyx_k_s1,
sizeof(__pyx_k_s1), 0, 0, 1, 1},
46719 {&__pyx_n_s_s2, __pyx_k_s2,
sizeof(__pyx_k_s2), 0, 0, 1, 1},
46720 {&__pyx_n_s_sResult, __pyx_k_sResult,
sizeof(__pyx_k_sResult), 0, 0, 1, 1},
46721 {&__pyx_n_s_scalarDomainIntegral, __pyx_k_scalarDomainIntegral,
sizeof(__pyx_k_scalarDomainIntegral), 0, 0, 1, 1},
46722 {&__pyx_n_s_scalarHeavisideDomainIntegral, __pyx_k_scalarHeavisideDomainIntegral,
sizeof(__pyx_k_scalarHeavisideDomainIntegral), 0, 0, 1, 1},
46723 {&__pyx_n_s_scalarSmoothedHeavisideDomainInt, __pyx_k_scalarSmoothedHeavisideDomainInt,
sizeof(__pyx_k_scalarSmoothedHeavisideDomainInt), 0, 0, 1, 1},
46724 {&__pyx_n_s_setExteriorGlobalElementBoundary, __pyx_k_setExteriorGlobalElementBoundary,
sizeof(__pyx_k_setExteriorGlobalElementBoundary), 0, 0, 1, 1},
46725 {&__pyx_n_s_sigma, __pyx_k_sigma,
sizeof(__pyx_k_sigma), 0, 0, 1, 1},
46726 {&__pyx_n_s_sqrt_det_g, __pyx_k_sqrt_det_g,
sizeof(__pyx_k_sqrt_det_g), 0, 0, 1, 1},
46727 {&__pyx_n_s_starJ, __pyx_k_starJ,
sizeof(__pyx_k_starJ), 0, 0, 1, 1},
46728 {&__pyx_n_s_starJacobian, __pyx_k_starJacobian,
sizeof(__pyx_k_starJacobian), 0, 0, 1, 1},
46729 {&__pyx_n_s_starR, __pyx_k_starR,
sizeof(__pyx_k_starR), 0, 0, 1, 1},
46730 {&__pyx_n_s_starU, __pyx_k_starU,
sizeof(__pyx_k_starU), 0, 0, 1, 1},
46731 {&__pyx_n_s_stride, __pyx_k_stride,
sizeof(__pyx_k_stride), 0, 0, 1, 1},
46732 {&__pyx_n_s_stride_r, __pyx_k_stride_r,
sizeof(__pyx_k_stride_r), 0, 0, 1, 1},
46733 {&__pyx_n_s_stride_u, __pyx_k_stride_u,
sizeof(__pyx_k_stride_u), 0, 0, 1, 1},
46734 {&__pyx_n_s_strong_residual, __pyx_k_strong_residual,
sizeof(__pyx_k_strong_residual), 0, 0, 1, 1},
46735 {&__pyx_n_s_t, __pyx_k_t,
sizeof(__pyx_k_t), 0, 0, 1, 1},
46736 {&__pyx_n_s_tResult, __pyx_k_tResult,
sizeof(__pyx_k_tResult), 0, 0, 1, 1},
46737 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
46738 {&__pyx_n_s_tolerance, __pyx_k_tolerance,
sizeof(__pyx_k_tolerance), 0, 0, 1, 1},
46739 {&__pyx_n_s_u, __pyx_k_u,
sizeof(__pyx_k_u), 0, 0, 1, 1},
46740 {&__pyx_n_s_ub, __pyx_k_ub,
sizeof(__pyx_k_ub), 0, 0, 1, 1},
46741 {&__pyx_n_s_unitNormalArray, __pyx_k_unitNormalArray,
sizeof(__pyx_k_unitNormalArray), 0, 0, 1, 1},
46742 {&__pyx_n_s_updateAddJacobian_CSR, __pyx_k_updateAddJacobian_CSR,
sizeof(__pyx_k_updateAddJacobian_CSR), 0, 0, 1, 1},
46743 {&__pyx_n_s_updateAdvectionJacobian_strong, __pyx_k_updateAdvectionJacobian_strong,
sizeof(__pyx_k_updateAdvectionJacobian_strong), 0, 0, 1, 1},
46744 {&__pyx_n_s_updateAdvectionJacobian_weak, __pyx_k_updateAdvectionJacobian_weak,
sizeof(__pyx_k_updateAdvectionJacobian_weak), 0, 0, 1, 1},
46745 {&__pyx_n_s_updateAdvectionJacobian_weak_low, __pyx_k_updateAdvectionJacobian_weak_low,
sizeof(__pyx_k_updateAdvectionJacobian_weak_low), 0, 0, 1, 1},
46746 {&__pyx_n_s_updateAdvection_adjoint, __pyx_k_updateAdvection_adjoint,
sizeof(__pyx_k_updateAdvection_adjoint), 0, 0, 1, 1},
46747 {&__pyx_n_s_updateAdvection_strong, __pyx_k_updateAdvection_strong,
sizeof(__pyx_k_updateAdvection_strong), 0, 0, 1, 1},
46748 {&__pyx_n_s_updateAdvection_weak, __pyx_k_updateAdvection_weak,
sizeof(__pyx_k_updateAdvection_weak), 0, 0, 1, 1},
46749 {&__pyx_n_s_updateCoef, __pyx_k_updateCoef,
sizeof(__pyx_k_updateCoef), 0, 0, 1, 1},
46750 {&__pyx_n_s_updateDiffusion2_adjoint, __pyx_k_updateDiffusion2_adjoint,
sizeof(__pyx_k_updateDiffusion2_adjoint), 0, 0, 1, 1},
46751 {&__pyx_n_s_updateDiffusion2_adjoint_sd, __pyx_k_updateDiffusion2_adjoint_sd,
sizeof(__pyx_k_updateDiffusion2_adjoint_sd), 0, 0, 1, 1},
46752 {&__pyx_n_s_updateDiffusion2_strong, __pyx_k_updateDiffusion2_strong,
sizeof(__pyx_k_updateDiffusion2_strong), 0, 0, 1, 1},
46753 {&__pyx_n_s_updateDiffusion2_strong_sd, __pyx_k_updateDiffusion2_strong_sd,
sizeof(__pyx_k_updateDiffusion2_strong_sd), 0, 0, 1, 1},
46754 {&__pyx_n_s_updateDiffusionJacobian2_strong, __pyx_k_updateDiffusionJacobian2_strong,
sizeof(__pyx_k_updateDiffusionJacobian2_strong), 0, 0, 1, 1},
46755 {&__pyx_n_s_updateDiffusionJacobian2_strong_2, __pyx_k_updateDiffusionJacobian2_strong_2,
sizeof(__pyx_k_updateDiffusionJacobian2_strong_2), 0, 0, 1, 1},
46756 {&__pyx_n_s_updateDiffusionJacobian_MixedFor, __pyx_k_updateDiffusionJacobian_MixedFor,
sizeof(__pyx_k_updateDiffusionJacobian_MixedFor), 0, 0, 1, 1},
46757 {&__pyx_n_s_updateDiffusionJacobian_MixedFor_2, __pyx_k_updateDiffusionJacobian_MixedFor_2,
sizeof(__pyx_k_updateDiffusionJacobian_MixedFor_2), 0, 0, 1, 1},
46758 {&__pyx_n_s_updateDiffusionJacobian_strong, __pyx_k_updateDiffusionJacobian_strong,
sizeof(__pyx_k_updateDiffusionJacobian_strong), 0, 0, 1, 1},
46759 {&__pyx_n_s_updateDiffusionJacobian_strong_s, __pyx_k_updateDiffusionJacobian_strong_s,
sizeof(__pyx_k_updateDiffusionJacobian_strong_s), 0, 0, 1, 1},
46760 {&__pyx_n_s_updateDiffusionJacobian_weak, __pyx_k_updateDiffusionJacobian_weak,
sizeof(__pyx_k_updateDiffusionJacobian_weak), 0, 0, 1, 1},
46761 {&__pyx_n_s_updateDiffusionJacobian_weak_low, __pyx_k_updateDiffusionJacobian_weak_low,
sizeof(__pyx_k_updateDiffusionJacobian_weak_low), 0, 0, 1, 1},
46762 {&__pyx_n_s_updateDiffusionJacobian_weak_sd, __pyx_k_updateDiffusionJacobian_weak_sd,
sizeof(__pyx_k_updateDiffusionJacobian_weak_sd), 0, 0, 1, 1},
46763 {&__pyx_n_s_updateDiffusion_MixedForm_weak, __pyx_k_updateDiffusion_MixedForm_weak,
sizeof(__pyx_k_updateDiffusion_MixedForm_weak), 0, 0, 1, 1},
46764 {&__pyx_n_s_updateDiffusion_MixedForm_weak_s, __pyx_k_updateDiffusion_MixedForm_weak_s,
sizeof(__pyx_k_updateDiffusion_MixedForm_weak_s), 0, 0, 1, 1},
46765 {&__pyx_n_s_updateDiffusion_adjoint, __pyx_k_updateDiffusion_adjoint,
sizeof(__pyx_k_updateDiffusion_adjoint), 0, 0, 1, 1},
46766 {&__pyx_n_s_updateDiffusion_adjoint_sd, __pyx_k_updateDiffusion_adjoint_sd,
sizeof(__pyx_k_updateDiffusion_adjoint_sd), 0, 0, 1, 1},
46767 {&__pyx_n_s_updateDiffusion_strong, __pyx_k_updateDiffusion_strong,
sizeof(__pyx_k_updateDiffusion_strong), 0, 0, 1, 1},
46768 {&__pyx_n_s_updateDiffusion_strong_sd, __pyx_k_updateDiffusion_strong_sd,
sizeof(__pyx_k_updateDiffusion_strong_sd), 0, 0, 1, 1},
46769 {&__pyx_n_s_updateDiffusion_weak, __pyx_k_updateDiffusion_weak,
sizeof(__pyx_k_updateDiffusion_weak), 0, 0, 1, 1},
46770 {&__pyx_n_s_updateDiffusion_weak_lowmem, __pyx_k_updateDiffusion_weak_lowmem,
sizeof(__pyx_k_updateDiffusion_weak_lowmem), 0, 0, 1, 1},
46771 {&__pyx_n_s_updateDiffusion_weak_sd, __pyx_k_updateDiffusion_weak_sd,
sizeof(__pyx_k_updateDiffusion_weak_sd), 0, 0, 1, 1},
46772 {&__pyx_n_s_updateExteriorElementBoundaryAdv, __pyx_k_updateExteriorElementBoundaryAdv,
sizeof(__pyx_k_updateExteriorElementBoundaryAdv), 0, 0, 1, 1},
46773 {&__pyx_n_s_updateExteriorElementBoundaryDif, __pyx_k_updateExteriorElementBoundaryDif,
sizeof(__pyx_k_updateExteriorElementBoundaryDif), 0, 0, 1, 1},
46774 {&__pyx_n_s_updateExteriorElementBoundaryDif_2, __pyx_k_updateExteriorElementBoundaryDif_2,
sizeof(__pyx_k_updateExteriorElementBoundaryDif_2), 0, 0, 1, 1},
46775 {&__pyx_n_s_updateExteriorElementBoundaryDif_3, __pyx_k_updateExteriorElementBoundaryDif_3,
sizeof(__pyx_k_updateExteriorElementBoundaryDif_3), 0, 0, 1, 1},
46776 {&__pyx_n_s_updateExteriorElementBoundaryDif_4, __pyx_k_updateExteriorElementBoundaryDif_4,
sizeof(__pyx_k_updateExteriorElementBoundaryDif_4), 0, 0, 1, 1},
46777 {&__pyx_n_s_updateExteriorElementBoundaryFlu, __pyx_k_updateExteriorElementBoundaryFlu,
sizeof(__pyx_k_updateExteriorElementBoundaryFlu), 0, 0, 1, 1},
46778 {&__pyx_n_s_updateExteriorElementBoundarySho, __pyx_k_updateExteriorElementBoundarySho,
sizeof(__pyx_k_updateExteriorElementBoundarySho), 0, 0, 1, 1},
46779 {&__pyx_n_s_updateExteriorElementBoundary_Mi, __pyx_k_updateExteriorElementBoundary_Mi,
sizeof(__pyx_k_updateExteriorElementBoundary_Mi), 0, 0, 1, 1},
46780 {&__pyx_n_s_updateExteriorElementBoundary_Mi_2, __pyx_k_updateExteriorElementBoundary_Mi_2,
sizeof(__pyx_k_updateExteriorElementBoundary_Mi_2), 0, 0, 1, 1},
46781 {&__pyx_n_s_updateFluxValues, __pyx_k_updateFluxValues,
sizeof(__pyx_k_updateFluxValues), 0, 0, 1, 1},
46782 {&__pyx_n_s_updateGlobalJacobianFromElementJ, __pyx_k_updateGlobalJacobianFromElementJ,
sizeof(__pyx_k_updateGlobalJacobianFromElementJ), 0, 0, 1, 1},
46783 {&__pyx_n_s_updateGlobalJacobianFromElementJ_2, __pyx_k_updateGlobalJacobianFromElementJ_2,
sizeof(__pyx_k_updateGlobalJacobianFromElementJ_2), 0, 0, 1, 1},
46784 {&__pyx_n_s_updateGlobalJacobianFromElementJ_3, __pyx_k_updateGlobalJacobianFromElementJ_3,
sizeof(__pyx_k_updateGlobalJacobianFromElementJ_3), 0, 0, 1, 1},
46785 {&__pyx_n_s_updateGlobalJacobianFromElementJ_4, __pyx_k_updateGlobalJacobianFromElementJ_4,
sizeof(__pyx_k_updateGlobalJacobianFromElementJ_4), 0, 0, 1, 1},
46786 {&__pyx_n_s_updateGlobalJacobianFromExterior, __pyx_k_updateGlobalJacobianFromExterior,
sizeof(__pyx_k_updateGlobalJacobianFromExterior), 0, 0, 1, 1},
46787 {&__pyx_n_s_updateGlobalJacobianFromExterior_2, __pyx_k_updateGlobalJacobianFromExterior_2,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_2), 0, 0, 1, 1},
46788 {&__pyx_n_s_updateGlobalJacobianFromExterior_3, __pyx_k_updateGlobalJacobianFromExterior_3,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_3), 0, 0, 1, 1},
46789 {&__pyx_n_s_updateGlobalJacobianFromExterior_4, __pyx_k_updateGlobalJacobianFromExterior_4,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_4), 0, 0, 1, 1},
46790 {&__pyx_n_s_updateGlobalJacobianFromExterior_5, __pyx_k_updateGlobalJacobianFromExterior_5,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_5), 0, 0, 1, 1},
46791 {&__pyx_n_s_updateGlobalJacobianFromExterior_6, __pyx_k_updateGlobalJacobianFromExterior_6,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_6), 0, 0, 1, 1},
46792 {&__pyx_n_s_updateGlobalJacobianFromExterior_7, __pyx_k_updateGlobalJacobianFromExterior_7,
sizeof(__pyx_k_updateGlobalJacobianFromExterior_7), 0, 0, 1, 1},
46793 {&__pyx_n_s_updateGlobalJacobianFromInterior, __pyx_k_updateGlobalJacobianFromInterior,
sizeof(__pyx_k_updateGlobalJacobianFromInterior), 0, 0, 1, 1},
46794 {&__pyx_n_s_updateGlobalJacobianFromInterior_2, __pyx_k_updateGlobalJacobianFromInterior_2,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_2), 0, 0, 1, 1},
46795 {&__pyx_n_s_updateGlobalJacobianFromInterior_3, __pyx_k_updateGlobalJacobianFromInterior_3,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_3), 0, 0, 1, 1},
46796 {&__pyx_n_s_updateGlobalJacobianFromInterior_4, __pyx_k_updateGlobalJacobianFromInterior_4,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_4), 0, 0, 1, 1},
46797 {&__pyx_n_s_updateGlobalJacobianFromInterior_5, __pyx_k_updateGlobalJacobianFromInterior_5,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_5), 0, 0, 1, 1},
46798 {&__pyx_n_s_updateGlobalJacobianFromInterior_6, __pyx_k_updateGlobalJacobianFromInterior_6,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_6), 0, 0, 1, 1},
46799 {&__pyx_n_s_updateGlobalJacobianFromInterior_7, __pyx_k_updateGlobalJacobianFromInterior_7,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_7), 0, 0, 1, 1},
46800 {&__pyx_n_s_updateGlobalJacobianFromInterior_8, __pyx_k_updateGlobalJacobianFromInterior_8,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_8), 0, 0, 1, 1},
46801 {&__pyx_n_s_updateGlobalJacobianFromInterior_9, __pyx_k_updateGlobalJacobianFromInterior_9,
sizeof(__pyx_k_updateGlobalJacobianFromInterior_9), 0, 0, 1, 1},
46802 {&__pyx_n_s_updateGlobalResidualFromElementR, __pyx_k_updateGlobalResidualFromElementR,
sizeof(__pyx_k_updateGlobalResidualFromElementR), 0, 0, 1, 1},
46803 {&__pyx_n_s_updateHamiltonianJacobian_strong, __pyx_k_updateHamiltonianJacobian_strong,
sizeof(__pyx_k_updateHamiltonianJacobian_strong), 0, 0, 1, 1},
46804 {&__pyx_n_s_updateHamiltonianJacobian_weak, __pyx_k_updateHamiltonianJacobian_weak,
sizeof(__pyx_k_updateHamiltonianJacobian_weak), 0, 0, 1, 1},
46805 {&__pyx_n_s_updateHamiltonianJacobian_weak_l, __pyx_k_updateHamiltonianJacobian_weak_l,
sizeof(__pyx_k_updateHamiltonianJacobian_weak_l), 0, 0, 1, 1},
46806 {&__pyx_n_s_updateHamiltonian_adjoint, __pyx_k_updateHamiltonian_adjoint,
sizeof(__pyx_k_updateHamiltonian_adjoint), 0, 0, 1, 1},
46807 {&__pyx_n_s_updateHamiltonian_strong, __pyx_k_updateHamiltonian_strong,
sizeof(__pyx_k_updateHamiltonian_strong), 0, 0, 1, 1},
46808 {&__pyx_n_s_updateHamiltonian_weak, __pyx_k_updateHamiltonian_weak,
sizeof(__pyx_k_updateHamiltonian_weak), 0, 0, 1, 1},
46809 {&__pyx_n_s_updateInteriorElementBoundaryAdv, __pyx_k_updateInteriorElementBoundaryAdv,
sizeof(__pyx_k_updateInteriorElementBoundaryAdv), 0, 0, 1, 1},
46810 {&__pyx_n_s_updateInteriorElementBoundaryDif, __pyx_k_updateInteriorElementBoundaryDif,
sizeof(__pyx_k_updateInteriorElementBoundaryDif), 0, 0, 1, 1},
46811 {&__pyx_n_s_updateInteriorElementBoundaryDif_2, __pyx_k_updateInteriorElementBoundaryDif_2,
sizeof(__pyx_k_updateInteriorElementBoundaryDif_2), 0, 0, 1, 1},
46812 {&__pyx_n_s_updateInteriorElementBoundaryDif_3, __pyx_k_updateInteriorElementBoundaryDif_3,
sizeof(__pyx_k_updateInteriorElementBoundaryDif_3), 0, 0, 1, 1},
46813 {&__pyx_n_s_updateInteriorElementBoundaryDif_4, __pyx_k_updateInteriorElementBoundaryDif_4,
sizeof(__pyx_k_updateInteriorElementBoundaryDif_4), 0, 0, 1, 1},
46814 {&__pyx_n_s_updateInteriorElementBoundaryFlu, __pyx_k_updateInteriorElementBoundaryFlu,
sizeof(__pyx_k_updateInteriorElementBoundaryFlu), 0, 0, 1, 1},
46815 {&__pyx_n_s_updateInteriorElementBoundarySho, __pyx_k_updateInteriorElementBoundarySho,
sizeof(__pyx_k_updateInteriorElementBoundarySho), 0, 0, 1, 1},
46816 {&__pyx_n_s_updateInteriorElementBoundary_Mi, __pyx_k_updateInteriorElementBoundary_Mi,
sizeof(__pyx_k_updateInteriorElementBoundary_Mi), 0, 0, 1, 1},
46817 {&__pyx_n_s_updateInteriorElementBoundary_Mi_2, __pyx_k_updateInteriorElementBoundary_Mi_2,
sizeof(__pyx_k_updateInteriorElementBoundary_Mi_2), 0, 0, 1, 1},
46818 {&__pyx_n_s_updateInteriorTwoSidedElementBou, __pyx_k_updateInteriorTwoSidedElementBou,
sizeof(__pyx_k_updateInteriorTwoSidedElementBou), 0, 0, 1, 1},
46819 {&__pyx_n_s_updateMassJacobian_strong, __pyx_k_updateMassJacobian_strong,
sizeof(__pyx_k_updateMassJacobian_strong), 0, 0, 1, 1},
46820 {&__pyx_n_s_updateMassJacobian_weak, __pyx_k_updateMassJacobian_weak,
sizeof(__pyx_k_updateMassJacobian_weak), 0, 0, 1, 1},
46821 {&__pyx_n_s_updateMassJacobian_weak_lowmem, __pyx_k_updateMassJacobian_weak_lowmem,
sizeof(__pyx_k_updateMassJacobian_weak_lowmem), 0, 0, 1, 1},
46822 {&__pyx_n_s_updateMass_adjoint, __pyx_k_updateMass_adjoint,
sizeof(__pyx_k_updateMass_adjoint), 0, 0, 1, 1},
46823 {&__pyx_n_s_updateMass_strong, __pyx_k_updateMass_strong,
sizeof(__pyx_k_updateMass_strong), 0, 0, 1, 1},
46824 {&__pyx_n_s_updateMass_weak, __pyx_k_updateMass_weak,
sizeof(__pyx_k_updateMass_weak), 0, 0, 1, 1},
46825 {&__pyx_n_s_updateNumericalDiffusion, __pyx_k_updateNumericalDiffusion,
sizeof(__pyx_k_updateNumericalDiffusion), 0, 0, 1, 1},
46826 {&__pyx_n_s_updateNumericalDiffusionJacobian, __pyx_k_updateNumericalDiffusionJacobian,
sizeof(__pyx_k_updateNumericalDiffusionJacobian), 0, 0, 1, 1},
46827 {&__pyx_n_s_updateNumericalDiffusionJacobian_2, __pyx_k_updateNumericalDiffusionJacobian_2,
sizeof(__pyx_k_updateNumericalDiffusionJacobian_2), 0, 0, 1, 1},
46828 {&__pyx_n_s_updateNumericalDiffusion_lowmem, __pyx_k_updateNumericalDiffusion_lowmem,
sizeof(__pyx_k_updateNumericalDiffusion_lowmem), 0, 0, 1, 1},
46829 {&__pyx_n_s_updatePotential_MixedForm_weak, __pyx_k_updatePotential_MixedForm_weak,
sizeof(__pyx_k_updatePotential_MixedForm_weak), 0, 0, 1, 1},
46830 {&__pyx_n_s_updatePotential_MixedForm_weakJa, __pyx_k_updatePotential_MixedForm_weakJa,
sizeof(__pyx_k_updatePotential_MixedForm_weakJa), 0, 0, 1, 1},
46831 {&__pyx_n_s_updateReactionJacobian_strong, __pyx_k_updateReactionJacobian_strong,
sizeof(__pyx_k_updateReactionJacobian_strong), 0, 0, 1, 1},
46832 {&__pyx_n_s_updateReactionJacobian_weak, __pyx_k_updateReactionJacobian_weak,
sizeof(__pyx_k_updateReactionJacobian_weak), 0, 0, 1, 1},
46833 {&__pyx_n_s_updateReactionJacobian_weak_lowm, __pyx_k_updateReactionJacobian_weak_lowm,
sizeof(__pyx_k_updateReactionJacobian_weak_lowm), 0, 0, 1, 1},
46834 {&__pyx_n_s_updateReaction_adjoint, __pyx_k_updateReaction_adjoint,
sizeof(__pyx_k_updateReaction_adjoint), 0, 0, 1, 1},
46835 {&__pyx_n_s_updateReaction_strong, __pyx_k_updateReaction_strong,
sizeof(__pyx_k_updateReaction_strong), 0, 0, 1, 1},
46836 {&__pyx_n_s_updateReaction_weak, __pyx_k_updateReaction_weak,
sizeof(__pyx_k_updateReaction_weak), 0, 0, 1, 1},
46837 {&__pyx_n_s_updateStressJacobian_weak, __pyx_k_updateStressJacobian_weak,
sizeof(__pyx_k_updateStressJacobian_weak), 0, 0, 1, 1},
46838 {&__pyx_n_s_updateStress_weak, __pyx_k_updateStress_weak,
sizeof(__pyx_k_updateStress_weak), 0, 0, 1, 1},
46839 {&__pyx_n_s_updateSubgridError, __pyx_k_updateSubgridError,
sizeof(__pyx_k_updateSubgridError), 0, 0, 1, 1},
46840 {&__pyx_n_s_updateSubgridErrorJacobian, __pyx_k_updateSubgridErrorJacobian,
sizeof(__pyx_k_updateSubgridErrorJacobian), 0, 0, 1, 1},
46841 {&__pyx_n_s_update_f_movingDomain, __pyx_k_update_f_movingDomain,
sizeof(__pyx_k_update_f_movingDomain), 0, 0, 1, 1},
46842 {&__pyx_n_s_update_f_movingDomain_constantMa, __pyx_k_update_f_movingDomain_constantMa,
sizeof(__pyx_k_update_f_movingDomain_constantMa), 0, 0, 1, 1},
46843 {&__pyx_n_s_v, __pyx_k_v,
sizeof(__pyx_k_v), 0, 0, 1, 1},
46844 {&__pyx_n_s_vArray, __pyx_k_vArray,
sizeof(__pyx_k_vArray), 0, 0, 1, 1},
46845 {&__pyx_n_s_vAverage, __pyx_k_vAverage,
sizeof(__pyx_k_vAverage), 0, 0, 1, 1},
46846 {&__pyx_n_s_vConservative, __pyx_k_vConservative,
sizeof(__pyx_k_vConservative), 0, 0, 1, 1},
46847 {&__pyx_n_s_vConservative_element, __pyx_k_vConservative_element,
sizeof(__pyx_k_vConservative_element), 0, 0, 1, 1},
46848 {&__pyx_n_s_vJump, __pyx_k_vJump,
sizeof(__pyx_k_vJump), 0, 0, 1, 1},
46849 {&__pyx_n_s_vResult, __pyx_k_vResult,
sizeof(__pyx_k_vResult), 0, 0, 1, 1},
46850 {&__pyx_n_s_vXw_dV, __pyx_k_vXw_dV,
sizeof(__pyx_k_vXw_dV), 0, 0, 1, 1},
46851 {&__pyx_n_s_v_X_grad_w_dV, __pyx_k_v_X_grad_w_dV,
sizeof(__pyx_k_v_X_grad_w_dV), 0, 0, 1, 1},
46852 {&__pyx_n_s_v_X_w_dS, __pyx_k_v_X_w_dS,
sizeof(__pyx_k_v_X_w_dS), 0, 0, 1, 1},
46853 {&__pyx_n_s_v_X_w_dV, __pyx_k_v_X_w_dV,
sizeof(__pyx_k_v_X_w_dV), 0, 0, 1, 1},
46854 {&__pyx_n_s_v_out, __pyx_k_v_out,
sizeof(__pyx_k_v_out), 0, 0, 1, 1},
46855 {&__pyx_n_s_val, __pyx_k_val,
sizeof(__pyx_k_val), 0, 0, 1, 1},
46856 {&__pyx_n_s_velocity, __pyx_k_velocity,
sizeof(__pyx_k_velocity), 0, 0, 1, 1},
46857 {&__pyx_n_s_velocityBoundary_element, __pyx_k_velocityBoundary_element,
sizeof(__pyx_k_velocityBoundary_element), 0, 0, 1, 1},
46858 {&__pyx_n_s_velocityBoundary_global, __pyx_k_velocityBoundary_global,
sizeof(__pyx_k_velocityBoundary_global), 0, 0, 1, 1},
46859 {&__pyx_n_s_vn_in, __pyx_k_vn_in,
sizeof(__pyx_k_vn_in), 0, 0, 1, 1},
46860 {&__pyx_n_s_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 0, 1, 1},
46861 {&__pyx_n_s_w_dS, __pyx_k_w_dS,
sizeof(__pyx_k_w_dS), 0, 0, 1, 1},
46862 {&__pyx_n_s_w_dV, __pyx_k_w_dV,
sizeof(__pyx_k_w_dV), 0, 0, 1, 1},
46863 {&__pyx_n_s_weak_residual, __pyx_k_weak_residual,
sizeof(__pyx_k_weak_residual), 0, 0, 1, 1},
46864 {&__pyx_n_s_weak_residual_x, __pyx_k_weak_residual_x,
sizeof(__pyx_k_weak_residual_x), 0, 0, 1, 1},
46865 {&__pyx_n_s_weak_residual_y, __pyx_k_weak_residual_y,
sizeof(__pyx_k_weak_residual_y), 0, 0, 1, 1},
46866 {&__pyx_n_s_weak_residual_z, __pyx_k_weak_residual_z,
sizeof(__pyx_k_weak_residual_z), 0, 0, 1, 1},
46867 {&__pyx_n_s_weights, __pyx_k_weights,
sizeof(__pyx_k_weights), 0, 0, 1, 1},
46868 {&__pyx_n_s_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 0, 1, 1},
46869 {&__pyx_n_s_xArray, __pyx_k_xArray,
sizeof(__pyx_k_xArray), 0, 0, 1, 1},
46870 {&__pyx_n_s_xArrayNew, __pyx_k_xArrayNew,
sizeof(__pyx_k_xArrayNew), 0, 0, 1, 1},
46871 {&__pyx_n_s_xg, __pyx_k_xg,
sizeof(__pyx_k_xg), 0, 0, 1, 1},
46872 {&__pyx_n_s_xiArray, __pyx_k_xiArray,
sizeof(__pyx_k_xiArray), 0, 0, 1, 1},
46873 {&__pyx_n_s_xt, __pyx_k_xt,
sizeof(__pyx_k_xt), 0, 0, 1, 1},
46874 {&__pyx_n_s_xtArray, __pyx_k_xtArray,
sizeof(__pyx_k_xtArray), 0, 0, 1, 1},
46875 {&__pyx_n_s_zeroJacobian_CSR, __pyx_k_zeroJacobian_CSR,
sizeof(__pyx_k_zeroJacobian_CSR), 0, 0, 1, 1},
46876 {0, 0, 0, 0, 0, 0, 0}
46878 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
46879 __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range);
if (!__pyx_builtin_range) __PYX_ERR(0, 2593, __pyx_L1_error)
46880 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(1, 945, __pyx_L1_error)
46886 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
46887 __Pyx_RefNannyDeclarations
46888 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
46897 __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 945, __pyx_L1_error)
46898 __Pyx_GOTREF(__pyx_tuple_);
46899 __Pyx_GIVEREF(__pyx_tuple_);
46908 __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 951, __pyx_L1_error)
46909 __Pyx_GOTREF(__pyx_tuple__2);
46910 __Pyx_GIVEREF(__pyx_tuple__2);
46919 __pyx_tuple__3 = PyTuple_Pack(7, __pyx_n_s_Hessian_psi, __pyx_n_s_inverseJacobianArray, __pyx_n_s_Hessian_vArray, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 2296, __pyx_L1_error)
46920 __Pyx_GOTREF(__pyx_tuple__3);
46921 __Pyx_GIVEREF(__pyx_tuple__3);
46922 __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get, 2296, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 2296, __pyx_L1_error)
46931 __pyx_tuple__5 = PyTuple_Pack(6, __pyx_n_s_a, __pyx_n_s_Hess_phi, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 2310, __pyx_L1_error)
46932 __Pyx_GOTREF(__pyx_tuple__5);
46933 __Pyx_GIVEREF(__pyx_tuple__5);
46934 __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__5, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion2_strong, 2310, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 2310, __pyx_L1_error)
46943 __pyx_tuple__7 = PyTuple_Pack(8, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_a, __pyx_n_s_Hess_phi, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 2322, __pyx_L1_error)
46944 __Pyx_GOTREF(__pyx_tuple__7);
46945 __Pyx_GIVEREF(__pyx_tuple__7);
46946 __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion2_strong_sd, 2322, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 2322, __pyx_L1_error)
46955 __pyx_tuple__9 = PyTuple_Pack(12, __pyx_n_s_l2g, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_v, __pyx_n_s_Hess_phi, __pyx_n_s_dphi, __pyx_n_s_Hess_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 2338, __pyx_L1_error)
46956 __Pyx_GOTREF(__pyx_tuple__9);
46957 __Pyx_GIVEREF(__pyx_tuple__9);
46958 __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(8, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian2_strong, 2338, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 2338, __pyx_L1_error)
46967 __pyx_tuple__11 = PyTuple_Pack(14, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_v, __pyx_n_s_Hess_phi, __pyx_n_s_dphi, __pyx_n_s_Hess_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 2362, __pyx_L1_error)
46968 __Pyx_GOTREF(__pyx_tuple__11);
46969 __Pyx_GIVEREF(__pyx_tuple__11);
46970 __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(10, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian2_strong_2, 2362, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 2362, __pyx_L1_error)
46979 __pyx_tuple__13 = PyTuple_Pack(7, __pyx_n_s_a, __pyx_n_s_Hess_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 2390, __pyx_L1_error)
46980 __Pyx_GOTREF(__pyx_tuple__13);
46981 __Pyx_GIVEREF(__pyx_tuple__13);
46982 __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion2_adjoint, 2390, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 2390, __pyx_L1_error)
46991 __pyx_tuple__15 = PyTuple_Pack(9, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_a, __pyx_n_s_Hess_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 2404, __pyx_L1_error)
46992 __Pyx_GOTREF(__pyx_tuple__15);
46993 __Pyx_GIVEREF(__pyx_tuple__15);
46994 __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion2_adjoint_sd, 2404, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 2404, __pyx_L1_error)
47003 __pyx_tuple__17 = PyTuple_Pack(8, __pyx_n_s_dVR, __pyx_n_s_abs_det_jac, __pyx_n_s_Hess_w, __pyx_n_s_Hess_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 2422, __pyx_L1_error)
47004 __Pyx_GOTREF(__pyx_tuple__17);
47005 __Pyx_GIVEREF(__pyx_tuple__17);
47006 __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateWeightedShapeHessians, 2422, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 2422, __pyx_L1_error)
47015 __pyx_tuple__19 = PyTuple_Pack(10, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_Hessian_v, __pyx_n_s_Hessian_u, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nComponents, __pyx_n_s_nSpace, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 2438, __pyx_L1_error)
47016 __Pyx_GOTREF(__pyx_tuple__19);
47017 __Pyx_GIVEREF(__pyx_tuple__19);
47018 __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionHe, 2438, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 2438, __pyx_L1_error)
47027 __pyx_tuple__21 = PyTuple_Pack(20, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_elementBoundaryFluxJacobian_2sid, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 2463, __pyx_L1_error)
47028 __Pyx_GOTREF(__pyx_tuple__21);
47029 __Pyx_GIVEREF(__pyx_tuple__21);
47030 __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(12, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior, 2463, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 2463, __pyx_L1_error)
47039 __pyx_tuple__23 = PyTuple_Pack(22, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementBoundaryFluxJacobian_2sid, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 2499, __pyx_L1_error)
47040 __Pyx_GOTREF(__pyx_tuple__23);
47041 __Pyx_GIVEREF(__pyx_tuple__23);
47042 __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(17, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_2, 2499, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 2499, __pyx_L1_error)
47051 __pyx_tuple__25 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_flux, __pyx_n_s_w_dS, __pyx_n_s_residual, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 2543, __pyx_L1_error)
47052 __Pyx_GOTREF(__pyx_tuple__25);
47053 __Pyx_GIVEREF(__pyx_tuple__25);
47054 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorTwoSidedElementBou, 2543, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 2543, __pyx_L1_error)
47063 __pyx_tuple__27 = PyTuple_Pack(8, __pyx_n_s_elementDiameter, __pyx_n_s_dm, __pyx_n_s_df1, __pyx_n_s_df2, __pyx_n_s_cfl, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 2563, __pyx_L1_error)
47064 __Pyx_GOTREF(__pyx_tuple__27);
47065 __Pyx_GIVEREF(__pyx_tuple__27);
47066 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateCFLADR2speeds, 2563, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 2563, __pyx_L1_error)
47075 __pyx_tuple__29 = PyTuple_Pack(14, __pyx_n_s_tolerance, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_ebq_val, __pyx_n_s_ebqe_val, __pyx_n_s_firstBadIndex, __pyx_n_s_output, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 2579, __pyx_L1_error)
47076 __Pyx_GOTREF(__pyx_tuple__29);
47077 __Pyx_GIVEREF(__pyx_tuple__29);
47078 __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(7, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_checkElementBoundaryAndExteriorE, 2579, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 2579, __pyx_L1_error)
47087 __pyx_tuple__31 = PyTuple_Pack(13, __pyx_n_s_tolerance, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_ebq_global_val, __pyx_n_s_ebqe_val, __pyx_n_s_firstBadIndex, __pyx_n_s_output, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 2607, __pyx_L1_error)
47088 __Pyx_GOTREF(__pyx_tuple__31);
47089 __Pyx_GIVEREF(__pyx_tuple__31);
47090 __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(7, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_checkGlobalElementBoundaryAndExt, 2607, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 2607, __pyx_L1_error)
47099 __pyx_tuple__33 = PyTuple_Pack(13, __pyx_n_s_elementBoundaryMaterialTypes, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_p, __pyx_n_s_mom_flux_vec_u, __pyx_n_s_mom_flux_vec_v, __pyx_n_s_mom_flux_vec_w, __pyx_n_s_dS, __pyx_n_s_n, __pyx_n_s_F, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar);
if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 2632, __pyx_L1_error)
47100 __Pyx_GOTREF(__pyx_tuple__33);
47101 __Pyx_GIVEREF(__pyx_tuple__33);
47102 __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(11, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateExteriorElementBoundary, 2632, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 2632, __pyx_L1_error)
47111 __pyx_tuple__35 = PyTuple_Pack(12, __pyx_n_s_elementBoundaryMaterialTypes, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_p, __pyx_n_s_mom_flux_vec_u, __pyx_n_s_mom_flux_vec_v, __pyx_n_s_dS, __pyx_n_s_n, __pyx_n_s_F, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar);
if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 2658, __pyx_L1_error)
47112 __Pyx_GOTREF(__pyx_tuple__35);
47113 __Pyx_GIVEREF(__pyx_tuple__35);
47114 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(10, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateExteriorElementBoundary_2, 2658, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 2658, __pyx_L1_error)
47123 __pyx_tuple__37 = PyTuple_Pack(13, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_interiorElementBoundariesArray, __pyx_n_s_x, __pyx_n_s_n, __pyx_n_s_xg, __pyx_n_s_ng, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nSpace_global, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nInteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 2682, __pyx_L1_error)
47124 __Pyx_GOTREF(__pyx_tuple__37);
47125 __Pyx_GIVEREF(__pyx_tuple__37);
47126 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(8, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyLeftElementBoundaryInfo, 2682, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 2682, __pyx_L1_error)
47135 __pyx_tuple__39 = PyTuple_Pack(5, __pyx_n_s_psi, __pyx_n_s_vArray, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 2708, __pyx_L1_error)
47136 __Pyx_GOTREF(__pyx_tuple__39);
47137 __Pyx_GIVEREF(__pyx_tuple__39);
47138 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_2, 2708, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 2708, __pyx_L1_error)
47147 __pyx_tuple__41 = PyTuple_Pack(7, __pyx_n_s_psi, __pyx_n_s_permutations, __pyx_n_s_vArray, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 2718, __pyx_L1_error)
47148 __Pyx_GOTREF(__pyx_tuple__41);
47149 __Pyx_GIVEREF(__pyx_tuple__41);
47150 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_3, 2718, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 2718, __pyx_L1_error)
47159 __pyx_tuple__43 = PyTuple_Pack(7, __pyx_n_s_grad_psi, __pyx_n_s_inverseJacobianArray, __pyx_n_s_grad_vArray, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 2732, __pyx_L1_error)
47160 __Pyx_GOTREF(__pyx_tuple__43);
47161 __Pyx_GIVEREF(__pyx_tuple__43);
47162 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_4, 2732, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 2732, __pyx_L1_error)
47171 __pyx_tuple__45 = PyTuple_Pack(9, __pyx_n_s_grad_psi, __pyx_n_s_permutations, __pyx_n_s_inverseJacobianArray, __pyx_n_s_grad_vArray, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 2746, __pyx_L1_error)
47172 __Pyx_GOTREF(__pyx_tuple__45);
47173 __Pyx_GIVEREF(__pyx_tuple__45);
47174 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_5, 2746, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 2746, __pyx_L1_error)
47183 __pyx_tuple__47 = PyTuple_Pack(6, __pyx_n_s_xiArray, __pyx_n_s_permutations, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 2764, __pyx_L1_error)
47184 __Pyx_GOTREF(__pyx_tuple__47);
47185 __Pyx_GIVEREF(__pyx_tuple__47);
47186 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getPermutations, 2764, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 2764, __pyx_L1_error)
47195 __pyx_tuple__49 = PyTuple_Pack(8, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_xiArray, __pyx_n_s_permutations, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nSpace_global, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 2776, __pyx_L1_error)
47196 __Pyx_GOTREF(__pyx_tuple__49);
47197 __Pyx_GIVEREF(__pyx_tuple__49);
47198 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getPermutationsGl, 2776, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 2776, __pyx_L1_error)
47207 __pyx_tuple__51 = PyTuple_Pack(5, __pyx_n_s_xArray, __pyx_n_s_xArrayNew, __pyx_n_s_permutations, __pyx_n_s_nElementBoundaries_global, __pyx_n_s_nElementBoundaryQuadraturePoints);
if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 2792, __pyx_L1_error)
47208 __Pyx_GOTREF(__pyx_tuple__51);
47209 __Pyx_GIVEREF(__pyx_tuple__51);
47210 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_getPermutationsGlobal, 2792, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 2792, __pyx_L1_error)
47219 __pyx_tuple__53 = PyTuple_Pack(8, __pyx_n_s_psi, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 2802, __pyx_L1_error)
47220 __Pyx_GOTREF(__pyx_tuple__53);
47221 __Pyx_GIVEREF(__pyx_tuple__53);
47222 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getValues, 2802, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 2802, __pyx_L1_error)
47231 __pyx_tuple__55 = PyTuple_Pack(9, __pyx_n_s_psi, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 2818, __pyx_L1_error)
47232 __Pyx_GOTREF(__pyx_tuple__55);
47233 __Pyx_GIVEREF(__pyx_tuple__55);
47234 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__55, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getValuesTrace, 2818, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 2818, __pyx_L1_error)
47243 __pyx_tuple__57 = PyTuple_Pack(9, __pyx_n_s_inverseJacobian, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_xiArray, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 2836, __pyx_L1_error)
47244 __Pyx_GOTREF(__pyx_tuple__57);
47245 __Pyx_GIVEREF(__pyx_tuple__57);
47246 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getInverseValues, 2836, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 2836, __pyx_L1_error)
47255 __pyx_tuple__59 = PyTuple_Pack(10, __pyx_n_s_inverseJacobian, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_xiArray, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 2854, __pyx_L1_error)
47256 __Pyx_GOTREF(__pyx_tuple__59);
47257 __Pyx_GIVEREF(__pyx_tuple__59);
47258 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(5, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getInverseValuesT, 2854, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 2854, __pyx_L1_error)
47267 __pyx_tuple__61 = PyTuple_Pack(7, __pyx_n_s_grad_psi, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_jacobianArray, __pyx_n_s_jacobianDeterminantArray, __pyx_n_s_jacobianInverseArray, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 2874, __pyx_L1_error)
47268 __Pyx_GOTREF(__pyx_tuple__61);
47269 __Pyx_GIVEREF(__pyx_tuple__61);
47270 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getJacobianValues, 2874, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 2874, __pyx_L1_error)
47279 __pyx_tuple__63 = PyTuple_Pack(10, __pyx_n_s_grad_psi, __pyx_n_s_boundaryNormals, __pyx_n_s_boundaryJacobians, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_jacobianInverseArray, __pyx_n_s_metricTensorArray, __pyx_n_s_metricTensorDeterminantSqrtArray, __pyx_n_s_unitNormalArray, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 2913, __pyx_L1_error)
47280 __Pyx_GOTREF(__pyx_tuple__63);
47281 __Pyx_GIVEREF(__pyx_tuple__63);
47282 __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getJacobianValues_2, 2913, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 2913, __pyx_L1_error)
47291 __pyx_tuple__65 = PyTuple_Pack(6, __pyx_n_s_mt, __pyx_n_s_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 2967, __pyx_L1_error)
47292 __Pyx_GOTREF(__pyx_tuple__65);
47293 __Pyx_GIVEREF(__pyx_tuple__65);
47294 __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMass_weak, 2967, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 2967, __pyx_L1_error)
47303 __pyx_tuple__67 = PyTuple_Pack(7, __pyx_n_s_dmt, __pyx_n_s_v_X_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 2979, __pyx_L1_error)
47304 __Pyx_GOTREF(__pyx_tuple__67);
47305 __Pyx_GIVEREF(__pyx_tuple__67);
47306 __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMassJacobian_weak, 2979, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 2979, __pyx_L1_error)
47315 __pyx_tuple__69 = PyTuple_Pack(8, __pyx_n_s_dmt, __pyx_n_s_v, __pyx_n_s_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 2993, __pyx_L1_error)
47316 __Pyx_GOTREF(__pyx_tuple__69);
47317 __Pyx_GIVEREF(__pyx_tuple__69);
47318 __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMassJacobian_weak_lowmem, 2993, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 2993, __pyx_L1_error)
47327 __pyx_tuple__71 = PyTuple_Pack(4, __pyx_n_s_mt, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 3009, __pyx_L1_error)
47328 __Pyx_GOTREF(__pyx_tuple__71);
47329 __Pyx_GIVEREF(__pyx_tuple__71);
47330 __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMass_strong, 3009, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 3009, __pyx_L1_error)
47339 __pyx_tuple__73 = PyTuple_Pack(6, __pyx_n_s_dmt, __pyx_n_s_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 3017, __pyx_L1_error)
47340 __Pyx_GOTREF(__pyx_tuple__73);
47341 __Pyx_GIVEREF(__pyx_tuple__73);
47342 __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMassJacobian_strong, 3017, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 3017, __pyx_L1_error)
47351 __pyx_tuple__75 = PyTuple_Pack(6, __pyx_n_s_dmt, __pyx_n_s_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 3029, __pyx_L1_error)
47352 __Pyx_GOTREF(__pyx_tuple__75);
47353 __Pyx_GIVEREF(__pyx_tuple__75);
47354 __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateMass_adjoint, 3029, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 3029, __pyx_L1_error)
47363 __pyx_tuple__77 = PyTuple_Pack(7, __pyx_n_s_f, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 3041, __pyx_L1_error)
47364 __Pyx_GOTREF(__pyx_tuple__77);
47365 __Pyx_GIVEREF(__pyx_tuple__77);
47366 __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvection_weak, 3041, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 3041, __pyx_L1_error)
47375 __pyx_tuple__79 = PyTuple_Pack(8, __pyx_n_s_df, __pyx_n_s_v_X_grad_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 3055, __pyx_L1_error)
47376 __Pyx_GOTREF(__pyx_tuple__79);
47377 __Pyx_GIVEREF(__pyx_tuple__79);
47378 __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvectionJacobian_weak, 3055, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 3055, __pyx_L1_error)
47387 __pyx_tuple__81 = PyTuple_Pack(9, __pyx_n_s_df, __pyx_n_s_v, __pyx_n_s_grad_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 3071, __pyx_L1_error)
47388 __Pyx_GOTREF(__pyx_tuple__81);
47389 __Pyx_GIVEREF(__pyx_tuple__81);
47390 __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvectionJacobian_weak_low, 3071, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 3071, __pyx_L1_error)
47399 __pyx_tuple__83 = PyTuple_Pack(6, __pyx_n_s_df, __pyx_n_s_grad_u, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 3089, __pyx_L1_error)
47400 __Pyx_GOTREF(__pyx_tuple__83);
47401 __Pyx_GIVEREF(__pyx_tuple__83);
47402 __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvection_strong, 3089, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 3089, __pyx_L1_error)
47411 __pyx_tuple__85 = PyTuple_Pack(7, __pyx_n_s_df, __pyx_n_s_grad_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 3101, __pyx_L1_error)
47412 __Pyx_GOTREF(__pyx_tuple__85);
47413 __Pyx_GIVEREF(__pyx_tuple__85);
47414 __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvectionJacobian_strong, 3101, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 3101, __pyx_L1_error)
47423 __pyx_tuple__87 = PyTuple_Pack(7, __pyx_n_s_df, __pyx_n_s_grad_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 3115, __pyx_L1_error)
47424 __Pyx_GOTREF(__pyx_tuple__87);
47425 __Pyx_GIVEREF(__pyx_tuple__87);
47426 __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAdvection_adjoint, 3115, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 3115, __pyx_L1_error)
47435 __pyx_tuple__89 = PyTuple_Pack(6, __pyx_n_s_H, __pyx_n_s_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 3129, __pyx_L1_error)
47436 __Pyx_GOTREF(__pyx_tuple__89);
47437 __Pyx_GIVEREF(__pyx_tuple__89);
47438 __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonian_weak, 3129, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 3129, __pyx_L1_error)
47447 __pyx_tuple__91 = PyTuple_Pack(8, __pyx_n_s_dH, __pyx_n_s_grad_v_X_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 3141, __pyx_L1_error)
47448 __Pyx_GOTREF(__pyx_tuple__91);
47449 __Pyx_GIVEREF(__pyx_tuple__91);
47450 __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonianJacobian_weak, 3141, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 3141, __pyx_L1_error)
47459 __pyx_tuple__93 = PyTuple_Pack(9, __pyx_n_s_dH, __pyx_n_s_grad_v, __pyx_n_s_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 3157, __pyx_L1_error)
47460 __Pyx_GOTREF(__pyx_tuple__93);
47461 __Pyx_GIVEREF(__pyx_tuple__93);
47462 __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonianJacobian_weak_l, 3157, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 3157, __pyx_L1_error)
47471 __pyx_tuple__95 = PyTuple_Pack(6, __pyx_n_s_dH, __pyx_n_s_grad_u, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 3175, __pyx_L1_error)
47472 __Pyx_GOTREF(__pyx_tuple__95);
47473 __Pyx_GIVEREF(__pyx_tuple__95);
47474 __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonian_strong, 3175, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 3175, __pyx_L1_error)
47483 __pyx_tuple__97 = PyTuple_Pack(7, __pyx_n_s_dH, __pyx_n_s_grad_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 3187, __pyx_L1_error)
47484 __Pyx_GOTREF(__pyx_tuple__97);
47485 __Pyx_GIVEREF(__pyx_tuple__97);
47486 __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonianJacobian_strong, 3187, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 3187, __pyx_L1_error)
47495 __pyx_tuple__99 = PyTuple_Pack(7, __pyx_n_s_dH, __pyx_n_s_grad_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 3201, __pyx_L1_error)
47496 __Pyx_GOTREF(__pyx_tuple__99);
47497 __Pyx_GIVEREF(__pyx_tuple__99);
47498 __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateHamiltonian_adjoint, 3201, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 3201, __pyx_L1_error)
47507 __pyx_tuple__101 = PyTuple_Pack(7, __pyx_n_s_a, __pyx_n_s_grad_phi_X_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 3215, __pyx_L1_error)
47508 __Pyx_GOTREF(__pyx_tuple__101);
47509 __Pyx_GIVEREF(__pyx_tuple__101);
47510 __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_weak, 3215, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 3215, __pyx_L1_error)
47519 __pyx_tuple__103 = PyTuple_Pack(8, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 3229, __pyx_L1_error)
47520 __Pyx_GOTREF(__pyx_tuple__103);
47521 __Pyx_GIVEREF(__pyx_tuple__103);
47522 __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_weak_lowmem, 3229, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 3229, __pyx_L1_error)
47531 __pyx_tuple__105 = PyTuple_Pack(10, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 3245, __pyx_L1_error)
47532 __Pyx_GOTREF(__pyx_tuple__105);
47533 __Pyx_GIVEREF(__pyx_tuple__105);
47534 __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_weak_sd, 3245, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 3245, __pyx_L1_error)
47543 __pyx_tuple__107 = PyTuple_Pack(13, __pyx_n_s_l2g, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_grad_phi_X_grad_w_dV, __pyx_n_s_dphi, __pyx_n_s_v, __pyx_n_s_grad_v_X_grad_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 3265, __pyx_L1_error)
47544 __Pyx_GOTREF(__pyx_tuple__107);
47545 __Pyx_GIVEREF(__pyx_tuple__107);
47546 __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(8, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_weak, 3265, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 3265, __pyx_L1_error)
47555 __pyx_tuple__109 = PyTuple_Pack(14, __pyx_n_s_l2g, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_dphi, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 3291, __pyx_L1_error)
47556 __Pyx_GOTREF(__pyx_tuple__109);
47557 __Pyx_GIVEREF(__pyx_tuple__109);
47558 __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(9, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_weak_low, 3291, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 3291, __pyx_L1_error)
47567 __pyx_tuple__111 = PyTuple_Pack(16, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_dphi, __pyx_n_s_v, __pyx_n_s_grad_v, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 3319, __pyx_L1_error)
47568 __Pyx_GOTREF(__pyx_tuple__111);
47569 __Pyx_GIVEREF(__pyx_tuple__111);
47570 __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(11, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_weak_sd, 3319, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 3319, __pyx_L1_error)
47579 __pyx_tuple__113 = PyTuple_Pack(7, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_u, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 3351, __pyx_L1_error)
47580 __Pyx_GOTREF(__pyx_tuple__113);
47581 __Pyx_GIVEREF(__pyx_tuple__113);
47582 __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_strong, 3351, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 3351, __pyx_L1_error)
47591 __pyx_tuple__115 = PyTuple_Pack(9, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_u, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 3365, __pyx_L1_error)
47592 __Pyx_GOTREF(__pyx_tuple__115);
47593 __Pyx_GIVEREF(__pyx_tuple__115);
47594 __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(6, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_strong_sd, 3365, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 3365, __pyx_L1_error)
47603 __pyx_tuple__117 = PyTuple_Pack(11, __pyx_n_s_l2g, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_grad_phi, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 3383, __pyx_L1_error)
47604 __Pyx_GOTREF(__pyx_tuple__117);
47605 __Pyx_GIVEREF(__pyx_tuple__117);
47606 __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(7, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_strong, 3383, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 3383, __pyx_L1_error)
47615 __pyx_tuple__119 = PyTuple_Pack(13, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_l2g, __pyx_n_s_da, __pyx_n_s_dphi, __pyx_n_s_grad_phi, __pyx_n_s_grad_u, __pyx_n_s_grad_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 3405, __pyx_L1_error)
47616 __Pyx_GOTREF(__pyx_tuple__119);
47617 __Pyx_GIVEREF(__pyx_tuple__119);
47618 __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(9, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_strong_s, 3405, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 3405, __pyx_L1_error)
47627 __pyx_tuple__121 = PyTuple_Pack(8, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 3431, __pyx_L1_error)
47628 __Pyx_GOTREF(__pyx_tuple__121);
47629 __Pyx_GIVEREF(__pyx_tuple__121);
47630 __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_adjoint, 3431, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 3431, __pyx_L1_error)
47639 __pyx_tuple__123 = PyTuple_Pack(10, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_da, __pyx_n_s_grad_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 3447, __pyx_L1_error)
47640 __Pyx_GOTREF(__pyx_tuple__123);
47641 __Pyx_GIVEREF(__pyx_tuple__123);
47642 __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_adjoint_sd, 3447, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 3447, __pyx_L1_error)
47651 __pyx_tuple__125 = PyTuple_Pack(6, __pyx_n_s_r, __pyx_n_s_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 3467, __pyx_L1_error)
47652 __Pyx_GOTREF(__pyx_tuple__125);
47653 __Pyx_GIVEREF(__pyx_tuple__125);
47654 __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReaction_weak, 3467, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 3467, __pyx_L1_error)
47663 __pyx_tuple__127 = PyTuple_Pack(7, __pyx_n_s_dr, __pyx_n_s_v_X_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 3479, __pyx_L1_error)
47664 __Pyx_GOTREF(__pyx_tuple__127);
47665 __Pyx_GIVEREF(__pyx_tuple__127);
47666 __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReactionJacobian_weak, 3479, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 3479, __pyx_L1_error)
47675 __pyx_tuple__129 = PyTuple_Pack(8, __pyx_n_s_dr, __pyx_n_s_v, __pyx_n_s_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 3493, __pyx_L1_error)
47676 __Pyx_GOTREF(__pyx_tuple__129);
47677 __Pyx_GIVEREF(__pyx_tuple__129);
47678 __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReactionJacobian_weak_lowm, 3493, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 3493, __pyx_L1_error)
47687 __pyx_tuple__131 = PyTuple_Pack(4, __pyx_n_s_r, __pyx_n_s_strong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 3509, __pyx_L1_error)
47688 __Pyx_GOTREF(__pyx_tuple__131);
47689 __Pyx_GIVEREF(__pyx_tuple__131);
47690 __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReaction_strong, 3509, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 3509, __pyx_L1_error)
47699 __pyx_tuple__133 = PyTuple_Pack(6, __pyx_n_s_dr, __pyx_n_s_v, __pyx_n_s_dstrong_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 3517, __pyx_L1_error)
47700 __Pyx_GOTREF(__pyx_tuple__133);
47701 __Pyx_GIVEREF(__pyx_tuple__133);
47702 __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReactionJacobian_strong, 3517, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 3517, __pyx_L1_error)
47711 __pyx_tuple__135 = PyTuple_Pack(6, __pyx_n_s_dr, __pyx_n_s_w_dV, __pyx_n_s_Lstar_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 3529, __pyx_L1_error)
47712 __Pyx_GOTREF(__pyx_tuple__135);
47713 __Pyx_GIVEREF(__pyx_tuple__135);
47714 __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateReaction_adjoint, 3529, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 3529, __pyx_L1_error)
47723 __pyx_tuple__137 = PyTuple_Pack(6, __pyx_n_s_error, __pyx_n_s_Lstar_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 3541, __pyx_L1_error)
47724 __Pyx_GOTREF(__pyx_tuple__137);
47725 __Pyx_GIVEREF(__pyx_tuple__137);
47726 __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateSubgridError, 3541, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 3541, __pyx_L1_error)
47735 __pyx_tuple__139 = PyTuple_Pack(7, __pyx_n_s_derror, __pyx_n_s_Lstar_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 3553, __pyx_L1_error)
47736 __Pyx_GOTREF(__pyx_tuple__139);
47737 __Pyx_GIVEREF(__pyx_tuple__139);
47738 __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateSubgridErrorJacobian, 3553, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 3553, __pyx_L1_error)
47747 __pyx_tuple__141 = PyTuple_Pack(7, __pyx_n_s_numDiff, __pyx_n_s_grad_u_X_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 3567, __pyx_L1_error)
47748 __Pyx_GOTREF(__pyx_tuple__141);
47749 __Pyx_GIVEREF(__pyx_tuple__141);
47750 __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateNumericalDiffusion, 3567, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 3567, __pyx_L1_error)
47759 __pyx_tuple__143 = PyTuple_Pack(8, __pyx_n_s_numDiff, __pyx_n_s_grad_u, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 3581, __pyx_L1_error)
47760 __Pyx_GOTREF(__pyx_tuple__143);
47761 __Pyx_GIVEREF(__pyx_tuple__143);
47762 __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateNumericalDiffusion_lowmem, 3581, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 3581, __pyx_L1_error)
47771 __pyx_tuple__145 = PyTuple_Pack(8, __pyx_n_s_numDiff, __pyx_n_s_grad_v_X_grad_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 3597, __pyx_L1_error)
47772 __Pyx_GOTREF(__pyx_tuple__145);
47773 __Pyx_GIVEREF(__pyx_tuple__145);
47774 __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateNumericalDiffusionJacobian, 3597, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 3597, __pyx_L1_error)
47783 __pyx_tuple__147 = PyTuple_Pack(9, __pyx_n_s_numDiff, __pyx_n_s_grad_v, __pyx_n_s_grad_w_dV, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 3613, __pyx_L1_error)
47784 __Pyx_GOTREF(__pyx_tuple__147);
47785 __Pyx_GIVEREF(__pyx_tuple__147);
47786 __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateNumericalDiffusionJacobian_2, 3613, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 3613, __pyx_L1_error)
47795 __pyx_tuple__149 = PyTuple_Pack(5, __pyx_n_s_s1, __pyx_n_s_s2, __pyx_n_s_sResult, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 3631, __pyx_L1_error)
47796 __Pyx_GOTREF(__pyx_tuple__149);
47797 __Pyx_GIVEREF(__pyx_tuple__149);
47798 __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateScalarScalarProduct, 3631, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 3631, __pyx_L1_error)
47807 __pyx_tuple__151 = PyTuple_Pack(6, __pyx_n_s_v, __pyx_n_s_s, __pyx_n_s_vResult, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 3641, __pyx_L1_error)
47808 __Pyx_GOTREF(__pyx_tuple__151);
47809 __Pyx_GIVEREF(__pyx_tuple__151);
47810 __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVectorScalarProduct, 3641, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 3641, __pyx_L1_error)
47819 __pyx_tuple__153 = PyTuple_Pack(6, __pyx_n_s_t, __pyx_n_s_s, __pyx_n_s_tResult, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 3653, __pyx_L1_error)
47820 __Pyx_GOTREF(__pyx_tuple__153);
47821 __Pyx_GIVEREF(__pyx_tuple__153);
47822 __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateTensorScalarProduct, 3653, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 3653, __pyx_L1_error)
47831 __pyx_tuple__155 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_flux, __pyx_n_s_w_dS, __pyx_n_s_residual, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 3665, __pyx_L1_error)
47832 __Pyx_GOTREF(__pyx_tuple__155);
47833 __Pyx_GIVEREF(__pyx_tuple__155);
47834 __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryFlu, 3665, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 3665, __pyx_L1_error)
47843 __pyx_tuple__157 = PyTuple_Pack(7, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_flux, __pyx_n_s_w_dS, __pyx_n_s_residual, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 3685, __pyx_L1_error)
47844 __Pyx_GOTREF(__pyx_tuple__157);
47845 __Pyx_GIVEREF(__pyx_tuple__157);
47846 __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryFlu, 3685, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 3685, __pyx_L1_error)
47855 __pyx_tuple__159 = PyTuple_Pack(9, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_elementResidual, __pyx_n_s_globalResidual, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 3713, __pyx_L1_error)
47856 __Pyx_GOTREF(__pyx_tuple__159);
47857 __Pyx_GIVEREF(__pyx_tuple__159);
47858 __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(7, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalResidualFromElementR, 3713, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(0, 3713, __pyx_L1_error)
47867 __pyx_tuple__161 = PyTuple_Pack(16, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementJacobian, __pyx_n_s_globalJacobian, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 3731, __pyx_L1_error)
47868 __Pyx_GOTREF(__pyx_tuple__161);
47869 __Pyx_GIVEREF(__pyx_tuple__161);
47870 __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(13, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromElementJ, 3731, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 3731, __pyx_L1_error)
47879 __pyx_tuple__163 = PyTuple_Pack(18, __pyx_n_s_elementNeighbors, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementJacobian_eb, __pyx_n_s_globalJacobian, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 3763, __pyx_L1_error)
47880 __Pyx_GOTREF(__pyx_tuple__163);
47881 __Pyx_GIVEREF(__pyx_tuple__163);
47882 __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(14, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromElementJ_2, 3763, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 3763, __pyx_L1_error)
47891 __pyx_tuple__165 = PyTuple_Pack(22, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementBoundaryFluxJacobian, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 3799, __pyx_L1_error)
47892 __Pyx_GOTREF(__pyx_tuple__165);
47893 __Pyx_GIVEREF(__pyx_tuple__165);
47894 __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(17, 0, 22, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_3, 3799, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(0, 3799, __pyx_L1_error)
47903 __pyx_tuple__167 = PyTuple_Pack(24, __pyx_n_s_elementNeighbors, __pyx_n_s_nElements_global, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementBoundaryFluxJacobian_eb, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 3843, __pyx_L1_error)
47904 __Pyx_GOTREF(__pyx_tuple__167);
47905 __Pyx_GIVEREF(__pyx_tuple__167);
47906 __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(19, 0, 24, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_4, 3843, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 3843, __pyx_L1_error)
47915 __pyx_tuple__169 = PyTuple_Pack(18, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementBoundaryFluxJacobian, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 3891, __pyx_L1_error)
47916 __Pyx_GOTREF(__pyx_tuple__169);
47917 __Pyx_GIVEREF(__pyx_tuple__169);
47918 __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(17, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior, 3891, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 3891, __pyx_L1_error)
47927 __pyx_tuple__171 = PyTuple_Pack(24, __pyx_n_s_elementNeighbors, __pyx_n_s_nElements_global, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_elementBoundaryFluxJacobian_eb, __pyx_n_s_w_dS, __pyx_n_s_jac);
if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 3956, __pyx_L1_error)
47928 __Pyx_GOTREF(__pyx_tuple__171);
47929 __Pyx_GIVEREF(__pyx_tuple__171);
47930 __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(24, 0, 24, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_2, 3956, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 3956, __pyx_L1_error)
47939 __pyx_tuple__173 = PyTuple_Pack(14, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_ru, __pyx_n_s_elementJacobian, __pyx_n_s_globalJacobian, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_globalJacobian_array, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 4030, __pyx_L1_error)
47940 __Pyx_GOTREF(__pyx_tuple__173);
47941 __Pyx_GIVEREF(__pyx_tuple__173);
47942 __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(8, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromElementJ_3, 4030, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 4030, __pyx_L1_error)
47951 __pyx_tuple__175 = PyTuple_Pack(16, __pyx_n_s_elementNeighbors, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_elementJacobian_eb, __pyx_n_s_globalJacobian, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_globalJacobian_array, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 4054, __pyx_L1_error)
47952 __Pyx_GOTREF(__pyx_tuple__175);
47953 __Pyx_GIVEREF(__pyx_tuple__175);
47954 __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(9, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromElementJ_4, 4054, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 4054, __pyx_L1_error)
47963 __pyx_tuple__177 = PyTuple_Pack(20, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_elementBoundaryFluxJacobian, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 4082, __pyx_L1_error)
47964 __Pyx_GOTREF(__pyx_tuple__177);
47965 __Pyx_GIVEREF(__pyx_tuple__177);
47966 __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(12, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_5, 4082, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 4082, __pyx_L1_error)
47975 __pyx_tuple__179 = PyTuple_Pack(16, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_elementBoundaryFluxJacobian, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 4118, __pyx_L1_error)
47976 __Pyx_GOTREF(__pyx_tuple__179);
47977 __Pyx_GIVEREF(__pyx_tuple__179);
47978 __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(12, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_3, 4118, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 4118, __pyx_L1_error)
47987 __pyx_tuple__181 = PyTuple_Pack(21, __pyx_n_s_elementNeighbors, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_eNebN_ru, __pyx_n_s_elementBoundaryFluxJacobian_eb, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element);
if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 4170, __pyx_L1_error)
47988 __Pyx_GOTREF(__pyx_tuple__181);
47989 __Pyx_GIVEREF(__pyx_tuple__181);
47990 __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(13, 0, 21, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_6, 4170, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 4170, __pyx_L1_error)
47999 __pyx_tuple__183 = PyTuple_Pack(16, __pyx_n_s_elementNeighbors, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_eNebN_ru, __pyx_n_s_elementBoundaryFluxJacobian_eb, __pyx_n_s_w_dS, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array);
if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 4208, __pyx_L1_error)
48000 __Pyx_GOTREF(__pyx_tuple__183);
48001 __Pyx_GIVEREF(__pyx_tuple__183);
48002 __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(13, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_4, 4208, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 4208, __pyx_L1_error)
48011 __pyx_tuple__185 = PyTuple_Pack(7, __pyx_n_s_dVR, __pyx_n_s_abs_det_jac, __pyx_n_s_w, __pyx_n_s_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 4261, __pyx_L1_error)
48012 __Pyx_GOTREF(__pyx_tuple__185);
48013 __Pyx_GIVEREF(__pyx_tuple__185);
48014 __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateWeightedShape, 4261, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 4261, __pyx_L1_error)
48023 __pyx_tuple__187 = PyTuple_Pack(8, __pyx_n_s_dVR, __pyx_n_s_abs_det_jac, __pyx_n_s_grad_w, __pyx_n_s_grad_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 4275, __pyx_L1_error)
48024 __Pyx_GOTREF(__pyx_tuple__187);
48025 __Pyx_GIVEREF(__pyx_tuple__187);
48026 __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateWeightedShapeGradients, 4275, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 4275, __pyx_L1_error)
48035 __pyx_tuple__189 = PyTuple_Pack(7, __pyx_n_s_v, __pyx_n_s_w_dV, __pyx_n_s_v_X_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 4291, __pyx_L1_error)
48036 __Pyx_GOTREF(__pyx_tuple__189);
48037 __Pyx_GIVEREF(__pyx_tuple__189);
48038 __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateShape_X_weightedShape, 4291, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 4291, __pyx_L1_error)
48047 __pyx_tuple__191 = PyTuple_Pack(8, __pyx_n_s_v, __pyx_n_s_grad_w_dV, __pyx_n_s_v_X_grad_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 4305, __pyx_L1_error)
48048 __Pyx_GOTREF(__pyx_tuple__191);
48049 __Pyx_GIVEREF(__pyx_tuple__191);
48050 __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateShape_X_weightedGradSha, 4305, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 4305, __pyx_L1_error)
48059 __pyx_tuple__193 = PyTuple_Pack(8, __pyx_n_s_grad_v, __pyx_n_s_w_dV, __pyx_n_s_grad_v_X_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 4321, __pyx_L1_error)
48060 __Pyx_GOTREF(__pyx_tuple__193);
48061 __Pyx_GIVEREF(__pyx_tuple__193);
48062 __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateGradShape_X_weightedSha, 4321, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 4321, __pyx_L1_error)
48071 __pyx_tuple__195 = PyTuple_Pack(8, __pyx_n_s_grad_v, __pyx_n_s_grad_w_dV, __pyx_n_s_grad_v_X_grad_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 4337, __pyx_L1_error)
48072 __Pyx_GOTREF(__pyx_tuple__195);
48073 __Pyx_GIVEREF(__pyx_tuple__195);
48074 __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateGradShape_X_weightedGra, 4337, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 4337, __pyx_L1_error)
48083 __pyx_tuple__197 = PyTuple_Pack(8, __pyx_n_s_dSR, __pyx_n_s_sqrt_det_g, __pyx_n_s_w, __pyx_n_s_w_dS, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 4353, __pyx_L1_error)
48084 __Pyx_GOTREF(__pyx_tuple__197);
48085 __Pyx_GIVEREF(__pyx_tuple__197);
48086 __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateWeightedShapeTrace, 4353, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 4353, __pyx_L1_error)
48095 __pyx_tuple__199 = PyTuple_Pack(8, __pyx_n_s_v, __pyx_n_s_w_dS, __pyx_n_s_v_X_w_dS, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 4369, __pyx_L1_error)
48096 __Pyx_GOTREF(__pyx_tuple__199);
48097 __Pyx_GIVEREF(__pyx_tuple__199);
48098 __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateShape_X_weightedShapeTr, 4369, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 4369, __pyx_L1_error)
48107 __pyx_tuple__201 = PyTuple_Pack(9, __pyx_n_s_grad_v, __pyx_n_s_w_dS, __pyx_n_s_grad_v_X_w_dS, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 4385, __pyx_L1_error)
48108 __Pyx_GOTREF(__pyx_tuple__201);
48109 __Pyx_GIVEREF(__pyx_tuple__201);
48110 __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(3, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateGradShape_X_weightedSha_2, 4385, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 4385, __pyx_L1_error)
48119 __pyx_tuple__203 = PyTuple_Pack(5, __pyx_n_s_abs_det_J, __pyx_n_s_referenceWeights, __pyx_n_s_weights, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 4403, __pyx_L1_error)
48120 __Pyx_GOTREF(__pyx_tuple__203);
48121 __Pyx_GIVEREF(__pyx_tuple__203);
48122 __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateIntegrationWeights, 4403, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 4403, __pyx_L1_error)
48131 __pyx_tuple__205 = PyTuple_Pack(6, __pyx_n_s_sqrt_det_g, __pyx_n_s_referenceWeights, __pyx_n_s_weights, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar);
if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 4413, __pyx_L1_error)
48132 __Pyx_GOTREF(__pyx_tuple__205);
48133 __Pyx_GIVEREF(__pyx_tuple__205);
48134 __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateElementBoundaryIntegrat, 4413, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 4413, __pyx_L1_error)
48143 __pyx_tuple__207 = PyTuple_Pack(9, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nd, __pyx_n_s_nComponents);
if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 4425, __pyx_L1_error)
48144 __Pyx_GOTREF(__pyx_tuple__207);
48145 __Pyx_GIVEREF(__pyx_tuple__207);
48146 __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(4, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionVa, 4425, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 4425, __pyx_L1_error)
48155 __pyx_tuple__209 = PyTuple_Pack(10, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_grad_v, __pyx_n_s_grad_u, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nd, __pyx_n_s_nComponents, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 4446, __pyx_L1_error)
48156 __Pyx_GOTREF(__pyx_tuple__209);
48157 __Pyx_GIVEREF(__pyx_tuple__209);
48158 __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionGr, 4446, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 4446, __pyx_L1_error)
48167 __pyx_tuple__211 = PyTuple_Pack(10, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_grad_v_X_grad_w_dV, __pyx_n_s_grad_u_X_grad_w_dV, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nComponents, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 4470, __pyx_L1_error)
48168 __Pyx_GOTREF(__pyx_tuple__211);
48169 __Pyx_GIVEREF(__pyx_tuple__211);
48170 __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionGr_2, 4470, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 4470, __pyx_L1_error)
48179 __pyx_tuple__213 = PyTuple_Pack(10, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nComponents, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 4496, __pyx_L1_error)
48180 __Pyx_GOTREF(__pyx_tuple__213);
48181 __Pyx_GIVEREF(__pyx_tuple__213);
48182 __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionVa_2, 4496, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 4496, __pyx_L1_error)
48191 __pyx_tuple__215 = PyTuple_Pack(11, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_grad_v, __pyx_n_s_grad_u, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nComponents, __pyx_n_s_nSpace, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 4519, __pyx_L1_error)
48192 __Pyx_GOTREF(__pyx_tuple__215);
48193 __Pyx_GIVEREF(__pyx_tuple__215);
48194 __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(4, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionGr_3, 4519, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 4519, __pyx_L1_error)
48203 __pyx_tuple__217 = PyTuple_Pack(7, __pyx_n_s_f, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_v, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 4546, __pyx_L1_error)
48204 __Pyx_GOTREF(__pyx_tuple__217);
48205 __Pyx_GIVEREF(__pyx_tuple__217);
48206 __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFlowVelocity, 4546, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 4546, __pyx_L1_error)
48215 __pyx_tuple__219 = PyTuple_Pack(6, __pyx_n_s_jacIndex, __pyx_n_s_val, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array);
if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 4560, __pyx_L1_error)
48216 __Pyx_GOTREF(__pyx_tuple__219);
48217 __Pyx_GIVEREF(__pyx_tuple__219);
48218 __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateAddJacobian_CSR, 4560, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 4560, __pyx_L1_error)
48227 __pyx_tuple__221 = PyTuple_Pack(5, __pyx_n_s_nNonzeros, __pyx_n_s_jac, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_jac_array);
if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 4568, __pyx_L1_error)
48228 __Pyx_GOTREF(__pyx_tuple__221);
48229 __Pyx_GIVEREF(__pyx_tuple__221);
48230 __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_zeroJacobian_CSR, 4568, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 4568, __pyx_L1_error)
48239 __pyx_tuple__223 = PyTuple_Pack(15, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_m, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_f, __pyx_n_s_vAverage, __pyx_n_s_vJump, __pyx_n_s_mAverage, __pyx_n_s_mJump);
if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 4574, __pyx_L1_error)
48240 __Pyx_GOTREF(__pyx_tuple__223);
48241 __Pyx_GIVEREF(__pyx_tuple__223);
48242 __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__223, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateInteriorElementBoundary, 4574, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 4574, __pyx_L1_error)
48251 __pyx_tuple__225 = PyTuple_Pack(15, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_m, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_f, __pyx_n_s_vAverage, __pyx_n_s_vJump, __pyx_n_s_mAverage, __pyx_n_s_mJump);
if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 4604, __pyx_L1_error)
48252 __Pyx_GOTREF(__pyx_tuple__225);
48253 __Pyx_GIVEREF(__pyx_tuple__225);
48254 __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(15, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateExteriorElementBoundary_3, 4604, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 4604, __pyx_L1_error)
48263 __pyx_tuple__227 = PyTuple_Pack(26, __pyx_n_s_nElements_global, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nNodes_element, __pyx_n_s_nSpace, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nodeStarOffsets, __pyx_n_s_nElements_node, __pyx_n_s_elementResidual, __pyx_n_s_vAverage, __pyx_n_s_starU, __pyx_n_s_dX, __pyx_n_s_w, __pyx_n_s_normal, __pyx_n_s_conservationResidual, __pyx_n_s_starR, __pyx_n_s_vConservative, __pyx_n_s_vConservative_element);
if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 4634, __pyx_L1_error)
48264 __Pyx_GOTREF(__pyx_tuple__227);
48265 __Pyx_GIVEREF(__pyx_tuple__227);
48266 __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(26, 0, 26, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__227, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationResidualPWL, 4634, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 4634, __pyx_L1_error)
48275 __pyx_tuple__229 = PyTuple_Pack(23, __pyx_n_s_nNodes_global, __pyx_n_s_nNodes_internal, __pyx_n_s_nElements_global, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nNodes_element, __pyx_n_s_nSpace, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_elementNodes, __pyx_n_s_nodeStarElements, __pyx_n_s_nodeStarElementNeighbors, __pyx_n_s_nodeStarOffsets, __pyx_n_s_nodeStarJacobianOffsets, __pyx_n_s_nElements_node, __pyx_n_s_internalNodes, __pyx_n_s_w, __pyx_n_s_normal, __pyx_n_s_starJacobian);
if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 4686, __pyx_L1_error)
48276 __Pyx_GOTREF(__pyx_tuple__229);
48277 __Pyx_GIVEREF(__pyx_tuple__229);
48278 __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(23, 0, 23, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationJacobianPWL, 4686, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 4686, __pyx_L1_error)
48287 __pyx_tuple__231 = PyTuple_Pack(9, __pyx_n_s_nNodes_global, __pyx_n_s_nNodes_internal, __pyx_n_s_nElements_node, __pyx_n_s_nodeStarOffsets, __pyx_n_s_nodeStarJacobianOffsets, __pyx_n_s_internalNodes, __pyx_n_s_starR, __pyx_n_s_starJ, __pyx_n_s_starU);
if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 4732, __pyx_L1_error)
48288 __Pyx_GOTREF(__pyx_tuple__231);
48289 __Pyx_GIVEREF(__pyx_tuple__231);
48290 __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationFluxPWL, 4732, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 4732, __pyx_L1_error)
48299 __pyx_tuple__233 = PyTuple_Pack(10, __pyx_n_s_updateFluxValues, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_vn_in, __pyx_n_s_v_out);
if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 4750, __pyx_L1_error)
48300 __Pyx_GOTREF(__pyx_tuple__233);
48301 __Pyx_GIVEREF(__pyx_tuple__233);
48302 __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_setExteriorGlobalElementBoundary, 4750, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 4750, __pyx_L1_error)
48311 __pyx_tuple__235 = PyTuple_Pack(12, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace, __pyx_n_s_elementDiameter, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_dphi, __pyx_n_s_dr, __pyx_n_s_dmt, __pyx_n_s_pe, __pyx_n_s_cfl, __pyx_n_s_computeDiffusiveTimeStepLimit);
if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 4770, __pyx_L1_error)
48312 __Pyx_GOTREF(__pyx_tuple__235);
48313 __Pyx_GIVEREF(__pyx_tuple__235);
48314 __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(11, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateDimensionlessNumbersADR, 4770, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 4770, __pyx_L1_error)
48323 __pyx_tuple__237 = PyTuple_Pack(14, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_elementDiameter, __pyx_n_s_df, __pyx_n_s_a, __pyx_n_s_dphi, __pyx_n_s_dr, __pyx_n_s_dmt, __pyx_n_s_pe, __pyx_n_s_cfl, __pyx_n_s_computeDiffusiveTimeStepLimit);
if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 4794, __pyx_L1_error)
48324 __Pyx_GOTREF(__pyx_tuple__237);
48325 __Pyx_GIVEREF(__pyx_tuple__237);
48326 __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(13, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateDimensionlessNumbersADR_2, 4794, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 4794, __pyx_L1_error)
48335 __pyx_tuple__239 = PyTuple_Pack(7, __pyx_n_s_elementDiameter, __pyx_n_s_dm, __pyx_n_s_df, __pyx_n_s_cfl, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 4822, __pyx_L1_error)
48336 __Pyx_GOTREF(__pyx_tuple__239);
48337 __Pyx_GIVEREF(__pyx_tuple__239);
48338 __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateCFLADR, 4822, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 4822, __pyx_L1_error)
48347 __pyx_tuple__241 = PyTuple_Pack(10, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 4836, __pyx_L1_error)
48348 __Pyx_GOTREF(__pyx_tuple__241);
48349 __Pyx_GIVEREF(__pyx_tuple__241);
48350 __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryDif, 4836, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 4836, __pyx_L1_error)
48359 __pyx_tuple__243 = PyTuple_Pack(12, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 4856, __pyx_L1_error)
48360 __Pyx_GOTREF(__pyx_tuple__243);
48361 __Pyx_GIVEREF(__pyx_tuple__243);
48362 __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(8, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryDif_2, 4856, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 4856, __pyx_L1_error)
48371 __pyx_tuple__245 = PyTuple_Pack(7, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 4880, __pyx_L1_error)
48372 __Pyx_GOTREF(__pyx_tuple__245);
48373 __Pyx_GIVEREF(__pyx_tuple__245);
48374 __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryDif, 4880, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 4880, __pyx_L1_error)
48383 __pyx_tuple__247 = PyTuple_Pack(12, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_a, __pyx_n_s_grad_phi, __pyx_n_s_velocity, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 4910, __pyx_L1_error)
48384 __Pyx_GOTREF(__pyx_tuple__247);
48385 __Pyx_GIVEREF(__pyx_tuple__247);
48386 __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(8, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryDif_2, 4910, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 4910, __pyx_L1_error)
48395 __pyx_tuple__249 = PyTuple_Pack(9, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_f, __pyx_n_s_velocity, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 4934, __pyx_L1_error)
48396 __Pyx_GOTREF(__pyx_tuple__249);
48397 __Pyx_GIVEREF(__pyx_tuple__249);
48398 __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryAdv, 4934, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 4934, __pyx_L1_error)
48407 __pyx_tuple__251 = PyTuple_Pack(6, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_f, __pyx_n_s_velocity, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 4952, __pyx_L1_error)
48408 __Pyx_GOTREF(__pyx_tuple__251);
48409 __Pyx_GIVEREF(__pyx_tuple__251);
48410 __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryAdv, 4952, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 4952, __pyx_L1_error)
48419 __pyx_tuple__253 = PyTuple_Pack(11, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_numDiff, __pyx_n_s_grad_u, __pyx_n_s_velocity, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 4979, __pyx_L1_error)
48420 __Pyx_GOTREF(__pyx_tuple__253);
48421 __Pyx_GIVEREF(__pyx_tuple__253);
48422 __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(6, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundarySho, 4979, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 4979, __pyx_L1_error)
48431 __pyx_tuple__255 = PyTuple_Pack(6, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_numDiff, __pyx_n_s_grad_u, __pyx_n_s_velocity);
if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 5001, __pyx_L1_error)
48432 __Pyx_GOTREF(__pyx_tuple__255);
48433 __Pyx_GIVEREF(__pyx_tuple__255);
48434 __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundarySho, 5001, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(0, 5001, __pyx_L1_error)
48443 __pyx_tuple__257 = PyTuple_Pack(9, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_v, __pyx_n_s_vAverage, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 5031, __pyx_L1_error)
48444 __Pyx_GOTREF(__pyx_tuple__257);
48445 __Pyx_GIVEREF(__pyx_tuple__257);
48446 __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateInteriorElementBoundary_2, 5031, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(0, 5031, __pyx_L1_error)
48455 __pyx_tuple__259 = PyTuple_Pack(9, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_v, __pyx_n_s_vAverage, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 5049, __pyx_L1_error)
48456 __Pyx_GOTREF(__pyx_tuple__259);
48457 __Pyx_GIVEREF(__pyx_tuple__259);
48458 __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateExteriorElementBoundary_4, 5049, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 5049, __pyx_L1_error)
48467 __pyx_tuple__261 = PyTuple_Pack(4, __pyx_n_s_elementResidual, __pyx_n_s_conservationResidual, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_test_element);
if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 5067, __pyx_L1_error)
48468 __Pyx_GOTREF(__pyx_tuple__261);
48469 __Pyx_GIVEREF(__pyx_tuple__261);
48470 __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationResidualDG, 5067, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(0, 5067, __pyx_L1_error)
48479 __pyx_tuple__263 = PyTuple_Pack(10, __pyx_n_s_n, __pyx_n_s_dS_u, __pyx_n_s_elementResidual, __pyx_n_s_velocity, __pyx_n_s_conservationResidual, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_test_element, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 5075, __pyx_L1_error)
48480 __Pyx_GOTREF(__pyx_tuple__263);
48481 __Pyx_GIVEREF(__pyx_tuple__263);
48482 __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(5, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationResidual, 5075, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(0, 5075, __pyx_L1_error)
48491 __pyx_tuple__265 = PyTuple_Pack(16, __pyx_n_s_nElements_global, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nNodes_element, __pyx_n_s_nSpace, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_dS, __pyx_n_s_normal, __pyx_n_s_elementResidual, __pyx_n_s_velocity, __pyx_n_s_conservationResidual);
if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 5095, __pyx_L1_error)
48492 __Pyx_GOTREF(__pyx_tuple__265);
48493 __Pyx_GIVEREF(__pyx_tuple__265);
48494 __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(16, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateConservationResidualGlo, 5095, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 5095, __pyx_L1_error)
48503 __pyx_tuple__267 = PyTuple_Pack(13, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_velocityBoundary_global, __pyx_n_s_velocityBoundary_element, __pyx_n_s_nElements_global, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 5127, __pyx_L1_error)
48504 __Pyx_GOTREF(__pyx_tuple__267);
48505 __Pyx_GIVEREF(__pyx_tuple__267);
48506 __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(6, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyGlobalElementBoundaryVelocit, 5127, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(0, 5127, __pyx_L1_error)
48515 __pyx_tuple__269 = PyTuple_Pack(9, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_fluxElementBoundaries, __pyx_n_s_normal, __pyx_n_s_flux, __pyx_n_s_updateCoef, __pyx_n_s_velocity, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 5153, __pyx_L1_error)
48516 __Pyx_GOTREF(__pyx_tuple__269);
48517 __Pyx_GIVEREF(__pyx_tuple__269);
48518 __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(6, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_loadBoundaryFluxIntoGlobalElemen, 5153, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(0, 5153, __pyx_L1_error)
48527 __pyx_tuple__271 = PyTuple_Pack(11, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_phi_trace, __pyx_n_s_dphi_trace_left, __pyx_n_s_dphi_trace_right, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar);
if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 5171, __pyx_L1_error)
48528 __Pyx_GOTREF(__pyx_tuple__271);
48529 __Pyx_GIVEREF(__pyx_tuple__271);
48530 __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(8, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateInteriorNumericalTrace, 5171, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 5171, __pyx_L1_error)
48539 __pyx_tuple__273 = PyTuple_Pack(12, __pyx_n_s_isDOFBoundary, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_phi_bc, __pyx_n_s_phi, __pyx_n_s_dphi, __pyx_n_s_phi_trace, __pyx_n_s_dphi_trace_left, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar);
if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 5193, __pyx_L1_error)
48540 __Pyx_GOTREF(__pyx_tuple__273);
48541 __Pyx_GIVEREF(__pyx_tuple__273);
48542 __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(9, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateExteriorNumericalTrace, 5193, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(0, 5193, __pyx_L1_error)
48551 __pyx_tuple__275 = PyTuple_Pack(12, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_phi_trace, __pyx_n_s_w_dS, __pyx_n_s_b, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 5217, __pyx_L1_error)
48552 __Pyx_GOTREF(__pyx_tuple__275);
48553 __Pyx_GIVEREF(__pyx_tuple__275);
48554 __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(7, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__275, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundary_Mi, 5217, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(0, 5217, __pyx_L1_error)
48563 __pyx_tuple__277 = PyTuple_Pack(15, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_dphi_trace_left, __pyx_n_s_dphi_trace_right, __pyx_n_s_v, __pyx_n_s_w_dS, __pyx_n_s_db, __pyx_n_s_db_eb, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 5241, __pyx_L1_error)
48564 __Pyx_GOTREF(__pyx_tuple__277);
48565 __Pyx_GIVEREF(__pyx_tuple__277);
48566 __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(10, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundary_Mi_2, 5241, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(0, 5241, __pyx_L1_error)
48575 __pyx_tuple__279 = PyTuple_Pack(12, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_phi_trace, __pyx_n_s_w_dS, __pyx_n_s_b, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 5271, __pyx_L1_error)
48576 __Pyx_GOTREF(__pyx_tuple__279);
48577 __Pyx_GIVEREF(__pyx_tuple__279);
48578 __pyx_codeobj__280 = (PyObject*)__Pyx_PyCode_New(7, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__279, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundary_Mi, 5271, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__280)) __PYX_ERR(0, 5271, __pyx_L1_error)
48587 __pyx_tuple__281 = PyTuple_Pack(14, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_n, __pyx_n_s_dphi_trace_left, __pyx_n_s_v, __pyx_n_s_w_dS, __pyx_n_s_db, __pyx_n_s_db_eb, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 5295, __pyx_L1_error)
48588 __Pyx_GOTREF(__pyx_tuple__281);
48589 __Pyx_GIVEREF(__pyx_tuple__281);
48590 __pyx_codeobj__282 = (PyObject*)__Pyx_PyCode_New(9, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__281, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundary_Mi_2, 5295, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__282)) __PYX_ERR(0, 5295, __pyx_L1_error)
48599 __pyx_tuple__283 = PyTuple_Pack(7, __pyx_n_s_phi, __pyx_n_s_grad_w_dV, __pyx_n_s_b, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 5323, __pyx_L1_error)
48600 __Pyx_GOTREF(__pyx_tuple__283);
48601 __Pyx_GIVEREF(__pyx_tuple__283);
48602 __pyx_codeobj__284 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__283, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updatePotential_MixedForm_weak, 5323, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__284)) __PYX_ERR(0, 5323, __pyx_L1_error)
48611 __pyx_tuple__285 = PyTuple_Pack(8, __pyx_n_s_dphi, __pyx_n_s_v, __pyx_n_s_grad_w_dV, __pyx_n_s_db, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 5337, __pyx_L1_error)
48612 __Pyx_GOTREF(__pyx_tuple__285);
48613 __Pyx_GIVEREF(__pyx_tuple__285);
48614 __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__285, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updatePotential_MixedForm_weakJa, 5337, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(0, 5337, __pyx_L1_error)
48623 __pyx_tuple__287 = PyTuple_Pack(12, __pyx_n_s_A_inv, __pyx_n_s_b, __pyx_n_s_v, __pyx_n_s_V, __pyx_n_s_qv, __pyx_n_s_qV, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 5353, __pyx_L1_error)
48624 __Pyx_GOTREF(__pyx_tuple__287);
48625 __Pyx_GIVEREF(__pyx_tuple__287);
48626 __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(6, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVelocityQuadrature_Mixe, 5353, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(0, 5353, __pyx_L1_error)
48635 __pyx_tuple__289 = PyTuple_Pack(15, __pyx_n_s_A_inv, __pyx_n_s_db, __pyx_n_s_db_eb, __pyx_n_s_v, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_qv, __pyx_n_s_qDV, __pyx_n_s_qDV_eb, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 5377, __pyx_L1_error)
48636 __Pyx_GOTREF(__pyx_tuple__289);
48637 __Pyx_GIVEREF(__pyx_tuple__289);
48638 __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(9, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVelocityQuadrature_Mixe_2, 5377, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(0, 5377, __pyx_L1_error)
48647 __pyx_tuple__291 = PyTuple_Pack(5, __pyx_n_s_vXw_dV, __pyx_n_s_A_inv, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 5407, __pyx_L1_error)
48648 __Pyx_GOTREF(__pyx_tuple__291);
48649 __Pyx_GIVEREF(__pyx_tuple__291);
48650 __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__291, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVelocityProjectionMatri, 5407, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(0, 5407, __pyx_L1_error)
48659 __pyx_tuple__293 = PyTuple_Pack(8, __pyx_n_s_a, __pyx_n_s_qV, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 5417, __pyx_L1_error)
48660 __Pyx_GOTREF(__pyx_tuple__293);
48661 __Pyx_GIVEREF(__pyx_tuple__293);
48662 __pyx_codeobj__294 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__293, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_MixedForm_weak, 5417, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__294)) __PYX_ERR(0, 5417, __pyx_L1_error)
48671 __pyx_tuple__295 = PyTuple_Pack(15, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_qV, __pyx_n_s_qDV, __pyx_n_s_qDV_eb, __pyx_n_s_grad_w_dV, __pyx_n_s_v, __pyx_n_s_jacobian_weak_residual, __pyx_n_s_jacobian_weak_residual_eb, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 5433, __pyx_L1_error)
48672 __Pyx_GOTREF(__pyx_tuple__295);
48673 __Pyx_GIVEREF(__pyx_tuple__295);
48674 __pyx_codeobj__296 = (PyObject*)__Pyx_PyCode_New(9, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__295, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_MixedFor, 5433, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__296)) __PYX_ERR(0, 5433, __pyx_L1_error)
48683 __pyx_tuple__297 = PyTuple_Pack(7, __pyx_n_s_v, __pyx_n_s_vXw_dV, __pyx_n_s_elementSpatialResidual, __pyx_n_s_mt, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 5463, __pyx_L1_error)
48684 __Pyx_GOTREF(__pyx_tuple__297);
48685 __Pyx_GIVEREF(__pyx_tuple__297);
48686 __pyx_codeobj__298 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__297, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_estimate_mt, 5463, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__298)) __PYX_ERR(0, 5463, __pyx_L1_error)
48695 __pyx_tuple__299 = PyTuple_Pack(7, __pyx_n_s_v, __pyx_n_s_w_dV, __pyx_n_s_elementSpatialResidual, __pyx_n_s_mt, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 5477, __pyx_L1_error)
48696 __Pyx_GOTREF(__pyx_tuple__299);
48697 __Pyx_GIVEREF(__pyx_tuple__299);
48698 __pyx_codeobj__300 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__299, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_estimate_mt_lowmem, 5477, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__300)) __PYX_ERR(0, 5477, __pyx_L1_error)
48707 __pyx_tuple__301 = PyTuple_Pack(5, __pyx_n_s_dV, __pyx_n_s_nValueArray, __pyx_n_s_nElements_global, __pyx_n_s_output, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 5491, __pyx_L1_error)
48708 __Pyx_GOTREF(__pyx_tuple__301);
48709 __Pyx_GIVEREF(__pyx_tuple__301);
48710 __pyx_codeobj__302 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__301, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_scalarDomainIntegral, 5491, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__302)) __PYX_ERR(0, 5491, __pyx_L1_error)
48719 __pyx_tuple__303 = PyTuple_Pack(5, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_dV, __pyx_n_s_nValueArray, __pyx_n_s_output);
if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 5501, __pyx_L1_error)
48720 __Pyx_GOTREF(__pyx_tuple__303);
48721 __Pyx_GIVEREF(__pyx_tuple__303);
48722 __pyx_codeobj__304 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__303, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_scalarHeavisideDomainIntegral, 5501, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__304)) __PYX_ERR(0, 5501, __pyx_L1_error)
48731 __pyx_tuple__305 = PyTuple_Pack(7, __pyx_n_s_epsFact, __pyx_n_s_elementDiameter, __pyx_n_s_dV, __pyx_n_s_nValueArray, __pyx_n_s_nElements_global, __pyx_n_s_output, __pyx_n_s_nQuadraturePoints_element);
if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 5511, __pyx_L1_error)
48732 __Pyx_GOTREF(__pyx_tuple__305);
48733 __Pyx_GIVEREF(__pyx_tuple__305);
48734 __pyx_codeobj__306 = (PyObject*)__Pyx_PyCode_New(5, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__305, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_scalarSmoothedHeavisideDomainInt, 5511, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__306)) __PYX_ERR(0, 5511, __pyx_L1_error)
48743 __pyx_tuple__307 = PyTuple_Pack(8, __pyx_n_s_nElementBoundaries_owned, __pyx_n_s_flag, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_dS, __pyx_n_s_nValueArray, __pyx_n_s_nExteriorElementBoundaries, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_output);
if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 5525, __pyx_L1_error)
48744 __Pyx_GOTREF(__pyx_tuple__307);
48745 __Pyx_GIVEREF(__pyx_tuple__307);
48746 __pyx_codeobj__308 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__307, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_fluxDomainBoundaryIntegral, 5525, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__308)) __PYX_ERR(0, 5525, __pyx_L1_error)
48755 __pyx_tuple__309 = PyTuple_Pack(10, __pyx_n_s_nElementBoundaries_owned, __pyx_n_s_flag, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_dS, __pyx_n_s_nValueArray, __pyx_n_s_normal, __pyx_n_s_output, __pyx_n_s_nExteriorElementBoundaries, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 5541, __pyx_L1_error)
48756 __Pyx_GOTREF(__pyx_tuple__309);
48757 __Pyx_GIVEREF(__pyx_tuple__309);
48758 __pyx_codeobj__310 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__309, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_fluxDomainBoundaryIntegralFromVe, 5541, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__310)) __PYX_ERR(0, 5541, __pyx_L1_error)
48767 __pyx_tuple__311 = PyTuple_Pack(12, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_ebq_val, __pyx_n_s_ebqe_val, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 5561, __pyx_L1_error)
48768 __Pyx_GOTREF(__pyx_tuple__311);
48769 __Pyx_GIVEREF(__pyx_tuple__311);
48770 __pyx_codeobj__312 = (PyObject*)__Pyx_PyCode_New(5, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__311, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyExteriorElementBoundaryValue, 5561, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__312)) __PYX_ERR(0, 5561, __pyx_L1_error)
48779 __pyx_tuple__313 = PyTuple_Pack(12, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_ebqe_val, __pyx_n_s_ebq_val, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nElements_global, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 5585, __pyx_L1_error)
48780 __Pyx_GOTREF(__pyx_tuple__313);
48781 __Pyx_GIVEREF(__pyx_tuple__313);
48782 __pyx_codeobj__314 = (PyObject*)__Pyx_PyCode_New(5, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyExteriorElementBoundaryValue_2, 5585, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__314)) __PYX_ERR(0, 5585, __pyx_L1_error)
48791 __pyx_tuple__315 = PyTuple_Pack(10, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_ebqe_val, __pyx_n_s_ebq_global_val, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 5609, __pyx_L1_error)
48792 __Pyx_GOTREF(__pyx_tuple__315);
48793 __Pyx_GIVEREF(__pyx_tuple__315);
48794 __pyx_codeobj__316 = (PyObject*)__Pyx_PyCode_New(5, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyExteriorElementBoundaryValue_3, 5609, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__316)) __PYX_ERR(0, 5609, __pyx_L1_error)
48803 __pyx_tuple__317 = PyTuple_Pack(10, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_ebq_global_val, __pyx_n_s_ebqe_val, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nValuesPerQuadraturePoint, __pyx_n_s_nd, __pyx_n_s_i);
if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 5629, __pyx_L1_error)
48804 __Pyx_GOTREF(__pyx_tuple__317);
48805 __Pyx_GIVEREF(__pyx_tuple__317);
48806 __pyx_codeobj__318 = (PyObject*)__Pyx_PyCode_New(5, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyExteriorElementBoundaryValue_4, 5629, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__318)) __PYX_ERR(0, 5629, __pyx_L1_error)
48815 __pyx_tuple__319 = PyTuple_Pack(11, __pyx_n_s_elementNodesArray, __pyx_n_s_nodeElementOffsets, __pyx_n_s_nodeElementsArray, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_nodalAverage, __pyx_n_s_dim_dof, __pyx_n_s_nElements_global, __pyx_n_s_nNodes_global, __pyx_n_s_nNodes_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 5649, __pyx_L1_error)
48816 __Pyx_GOTREF(__pyx_tuple__319);
48817 __Pyx_GIVEREF(__pyx_tuple__319);
48818 __pyx_codeobj__320 = (PyObject*)__Pyx_PyCode_New(7, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_computeC0P1InterpolantDGP0, 5649, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__320)) __PYX_ERR(0, 5649, __pyx_L1_error)
48827 __pyx_tuple__321 = PyTuple_Pack(11, __pyx_n_s_dim_dof, __pyx_n_s_elementNodesArray, __pyx_n_s_nodeElementOffsets, __pyx_n_s_nodeElementsArray, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_nodalAverage, __pyx_n_s_nElements_global, __pyx_n_s_nNodes_global, __pyx_n_s_nNodes_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 5671, __pyx_L1_error)
48828 __Pyx_GOTREF(__pyx_tuple__321);
48829 __Pyx_GIVEREF(__pyx_tuple__321);
48830 __pyx_codeobj__322 = (PyObject*)__Pyx_PyCode_New(7, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_computeC0P1InterpolantNCP1, 5671, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__322)) __PYX_ERR(0, 5671, __pyx_L1_error)
48839 __pyx_tuple__323 = PyTuple_Pack(11, __pyx_n_s_dim_dof, __pyx_n_s_elementNodesArray, __pyx_n_s_nodeElementOffsets, __pyx_n_s_nodeElementsArray, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_nodalAverage, __pyx_n_s_nElements_global, __pyx_n_s_nNodes_global, __pyx_n_s_nNodes_element, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 5693, __pyx_L1_error)
48840 __Pyx_GOTREF(__pyx_tuple__323);
48841 __Pyx_GIVEREF(__pyx_tuple__323);
48842 __pyx_codeobj__324 = (PyObject*)__Pyx_PyCode_New(7, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_computeC0P1InterpolantDGP12, 5693, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__324)) __PYX_ERR(0, 5693, __pyx_L1_error)
48851 __pyx_tuple__325 = PyTuple_Pack(9, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_psi, __pyx_n_s_vArray, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 5715, __pyx_L1_error)
48852 __Pyx_GOTREF(__pyx_tuple__325);
48853 __Pyx_GIVEREF(__pyx_tuple__325);
48854 __pyx_codeobj__326 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_6, 5715, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__326)) __PYX_ERR(0, 5715, __pyx_L1_error)
48863 __pyx_tuple__327 = PyTuple_Pack(11, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_grad_psi, __pyx_n_s_inverseJacobianArray, __pyx_n_s_grad_vArray, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 5733, __pyx_L1_error)
48864 __Pyx_GOTREF(__pyx_tuple__327);
48865 __Pyx_GIVEREF(__pyx_tuple__327);
48866 __pyx_codeobj__328 = (PyObject*)__Pyx_PyCode_New(6, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricFiniteElementSpace_get_7, 5733, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__328)) __PYX_ERR(0, 5733, __pyx_L1_error)
48875 __pyx_tuple__329 = PyTuple_Pack(11, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_psi, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 5755, __pyx_L1_error)
48876 __Pyx_GOTREF(__pyx_tuple__329);
48877 __Pyx_GIVEREF(__pyx_tuple__329);
48878 __pyx_codeobj__330 = (PyObject*)__Pyx_PyCode_New(7, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getValuesGlobalEx, 5755, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__330)) __PYX_ERR(0, 5755, __pyx_L1_error)
48887 __pyx_tuple__331 = PyTuple_Pack(12, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_inverseJacobian, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_xArray, __pyx_n_s_xiArray, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_element, __pyx_n_s_nSpace_global, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 5777, __pyx_L1_error)
48888 __Pyx_GOTREF(__pyx_tuple__331);
48889 __Pyx_GIVEREF(__pyx_tuple__331);
48890 __pyx_codeobj__332 = (PyObject*)__Pyx_PyCode_New(8, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getInverseValuesG, 5777, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__332)) __PYX_ERR(0, 5777, __pyx_L1_error)
48899 __pyx_tuple__333 = PyTuple_Pack(13, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_grad_psi, __pyx_n_s_boundaryNormals, __pyx_n_s_boundaryJacobians, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_jacobianInverseArray, __pyx_n_s_metricTensorArray, __pyx_n_s_metricTensorDeterminantSqrtArray, __pyx_n_s_unitNormalArray, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 5801, __pyx_L1_error)
48900 __Pyx_GOTREF(__pyx_tuple__333);
48901 __Pyx_GIVEREF(__pyx_tuple__333);
48902 __pyx_codeobj__334 = (PyObject*)__Pyx_PyCode_New(12, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__333, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getJacobianValues_3, 5801, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__334)) __PYX_ERR(0, 5801, __pyx_L1_error)
48911 __pyx_tuple__335 = PyTuple_Pack(14, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_xtArray, __pyx_n_s_grad_psi, __pyx_n_s_boundaryNormals, __pyx_n_s_boundaryJacobians, __pyx_n_s_l2g, __pyx_n_s_nodeArray, __pyx_n_s_jacobianInverseArray, __pyx_n_s_metricTensorArray, __pyx_n_s_metricTensorDeterminantSqrtArray, __pyx_n_s_unitNormalArray, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__335)) __PYX_ERR(0, 5864, __pyx_L1_error)
48912 __Pyx_GOTREF(__pyx_tuple__335);
48913 __Pyx_GIVEREF(__pyx_tuple__335);
48914 __pyx_codeobj__336 = (PyObject*)__Pyx_PyCode_New(13, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__335, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_parametricMaps_getJacobianValues_4, 5864, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__336)) __PYX_ERR(0, 5864, __pyx_L1_error)
48923 __pyx_tuple__337 = PyTuple_Pack(10, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_dSR, __pyx_n_s_sqrt_det_g, __pyx_n_s_w, __pyx_n_s_w_dS, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_test_element, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 5929, __pyx_L1_error)
48924 __Pyx_GOTREF(__pyx_tuple__337);
48925 __Pyx_GIVEREF(__pyx_tuple__337);
48926 __pyx_codeobj__338 = (PyObject*)__Pyx_PyCode_New(7, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__337, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateWeightedShapeGlobalExte, 5929, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__338)) __PYX_ERR(0, 5929, __pyx_L1_error)
48935 __pyx_tuple__339 = PyTuple_Pack(10, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_v, __pyx_n_s_w_dS, __pyx_n_s_v_X_w_dS, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 5949, __pyx_L1_error)
48936 __Pyx_GOTREF(__pyx_tuple__339);
48937 __Pyx_GIVEREF(__pyx_tuple__339);
48938 __pyx_codeobj__340 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__339, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateShape_X_weightedShapeGl, 5949, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__340)) __PYX_ERR(0, 5949, __pyx_L1_error)
48947 __pyx_tuple__341 = PyTuple_Pack(11, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_grad_v, __pyx_n_s_w_dS, __pyx_n_s_grad_v_X_w_dS, __pyx_n_s_nElementBoundaryQuadraturePoints, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_tuple__341)) __PYX_ERR(0, 5969, __pyx_L1_error)
48948 __Pyx_GOTREF(__pyx_tuple__341);
48949 __Pyx_GIVEREF(__pyx_tuple__341);
48950 __pyx_codeobj__342 = (PyObject*)__Pyx_PyCode_New(6, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__341, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateGradShape_X_weightedSha_3, 5969, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__342)) __PYX_ERR(0, 5969, __pyx_L1_error)
48959 __pyx_tuple__343 = PyTuple_Pack(5, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_sqrt_det_g, __pyx_n_s_referenceWeights, __pyx_n_s_weights);
if (unlikely(!__pyx_tuple__343)) __PYX_ERR(0, 5991, __pyx_L1_error)
48960 __Pyx_GOTREF(__pyx_tuple__343);
48961 __Pyx_GIVEREF(__pyx_tuple__343);
48962 __pyx_codeobj__344 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__343, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateGlobalExteriorElementBo, 5991, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__344)) __PYX_ERR(0, 5991, __pyx_L1_error)
48971 __pyx_tuple__345 = PyTuple_Pack(12, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_v, __pyx_n_s_u, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nComponents, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 6001, __pyx_L1_error)
48972 __Pyx_GOTREF(__pyx_tuple__345);
48973 __Pyx_GIVEREF(__pyx_tuple__345);
48974 __pyx_codeobj__346 = (PyObject*)__Pyx_PyCode_New(7, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__345, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionVa_3, 6001, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__346)) __PYX_ERR(0, 6001, __pyx_L1_error)
48983 __pyx_tuple__347 = PyTuple_Pack(13, __pyx_n_s_exteriorElementBoundariesArray, __pyx_n_s_elementBoundaryElementsArray, __pyx_n_s_elementBoundaryLocalElementBound_2, __pyx_n_s_l2g, __pyx_n_s_dof, __pyx_n_s_grad_v, __pyx_n_s_grad_u, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nComponents, __pyx_n_s_nSpace, __pyx_n_s_nd);
if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 6028, __pyx_L1_error)
48984 __Pyx_GOTREF(__pyx_tuple__347);
48985 __Pyx_GIVEREF(__pyx_tuple__347);
48986 __pyx_codeobj__348 = (PyObject*)__Pyx_PyCode_New(7, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__347, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateFiniteElementFunctionGr_4, 6028, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__348)) __PYX_ERR(0, 6028, __pyx_L1_error)
48995 __pyx_tuple__349 = PyTuple_Pack(7, __pyx_n_s_nDOF2set, __pyx_n_s_offset, __pyx_n_s_stride, __pyx_n_s_globalDOFids, __pyx_n_s_freeDOFids, __pyx_n_s_free_u, __pyx_n_s_u);
if (unlikely(!__pyx_tuple__349)) __PYX_ERR(0, 6059, __pyx_L1_error)
48996 __Pyx_GOTREF(__pyx_tuple__349);
48997 __Pyx_GIVEREF(__pyx_tuple__349);
48998 __pyx_codeobj__350 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__349, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_copyBetweenFreeUnknownsAndGlobal, 6059, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__350)) __PYX_ERR(0, 6059, __pyx_L1_error)
49007 __pyx_tuple__351 = PyTuple_Pack(15, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_sigma, __pyx_n_s_u, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_residual, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 6084, __pyx_L1_error)
49008 __Pyx_GOTREF(__pyx_tuple__351);
49009 __Pyx_GIVEREF(__pyx_tuple__351);
49010 __pyx_codeobj__352 = (PyObject*)__Pyx_PyCode_New(10, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__351, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryDif_3, 6084, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__352)) __PYX_ERR(0, 6084, __pyx_L1_error)
49019 __pyx_tuple__353 = PyTuple_Pack(16, __pyx_n_s_isDOFBoundary, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_sigma, __pyx_n_s_u, __pyx_n_s_ub, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_residual, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 6114, __pyx_L1_error)
49020 __Pyx_GOTREF(__pyx_tuple__353);
49021 __Pyx_GIVEREF(__pyx_tuple__353);
49022 __pyx_codeobj__354 = (PyObject*)__Pyx_PyCode_New(12, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__353, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryDif_3, 6114, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__354)) __PYX_ERR(0, 6114, __pyx_L1_error)
49031 __pyx_tuple__355 = PyTuple_Pack(27, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__355)) __PYX_ERR(0, 6146, __pyx_L1_error)
49032 __Pyx_GOTREF(__pyx_tuple__355);
49033 __Pyx_GIVEREF(__pyx_tuple__355);
49034 __pyx_codeobj__356 = (PyObject*)__Pyx_PyCode_New(21, 0, 27, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__355, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_7, 6146, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__356)) __PYX_ERR(0, 6146, __pyx_L1_error)
49043 __pyx_tuple__357 = PyTuple_Pack(27, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_isDOFBoundary, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 6200, __pyx_L1_error)
49044 __Pyx_GOTREF(__pyx_tuple__357);
49045 __Pyx_GIVEREF(__pyx_tuple__357);
49046 __pyx_codeobj__358 = (PyObject*)__Pyx_PyCode_New(22, 0, 27, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__357, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_5, 6200, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__358)) __PYX_ERR(0, 6200, __pyx_L1_error)
49055 __pyx_tuple__359 = PyTuple_Pack(17, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_sigma, __pyx_n_s_u, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_residual, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 6254, __pyx_L1_error)
49056 __Pyx_GOTREF(__pyx_tuple__359);
49057 __Pyx_GIVEREF(__pyx_tuple__359);
49058 __pyx_codeobj__360 = (PyObject*)__Pyx_PyCode_New(12, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__359, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateInteriorElementBoundaryDif_4, 6254, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__360)) __PYX_ERR(0, 6254, __pyx_L1_error)
49067 __pyx_tuple__361 = PyTuple_Pack(18, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_isDOFBoundary, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_sigma, __pyx_n_s_u, __pyx_n_s_ub, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_residual, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__361)) __PYX_ERR(0, 6288, __pyx_L1_error)
49068 __Pyx_GOTREF(__pyx_tuple__361);
49069 __Pyx_GIVEREF(__pyx_tuple__361);
49070 __pyx_codeobj__362 = (PyObject*)__Pyx_PyCode_New(14, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__361, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateExteriorElementBoundaryDif_4, 6288, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__362)) __PYX_ERR(0, 6288, __pyx_L1_error)
49079 __pyx_tuple__363 = PyTuple_Pack(29, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__363)) __PYX_ERR(0, 6324, __pyx_L1_error)
49080 __Pyx_GOTREF(__pyx_tuple__363);
49081 __Pyx_GIVEREF(__pyx_tuple__363);
49082 __pyx_codeobj__364 = (PyObject*)__Pyx_PyCode_New(23, 0, 29, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__363, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_8, 6324, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__364)) __PYX_ERR(0, 6324, __pyx_L1_error)
49091 __pyx_tuple__365 = PyTuple_Pack(29, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_isDOFBoundary, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 6382, __pyx_L1_error)
49092 __Pyx_GOTREF(__pyx_tuple__365);
49093 __Pyx_GIVEREF(__pyx_tuple__365);
49094 __pyx_codeobj__366 = (PyObject*)__Pyx_PyCode_New(24, 0, 29, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__365, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_6, 6382, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__366)) __PYX_ERR(0, 6382, __pyx_L1_error)
49103 __pyx_tuple__367 = PyTuple_Pack(34, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_interiorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_rowptr_dummy, __pyx_n_s_colind_dummy, __pyx_n_s_jac_array, __pyx_n_s_nInteriorElementBoundaries_globa, __pyx_n_s_nElementBoundaries_element, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 6440, __pyx_L1_error)
49104 __Pyx_GOTREF(__pyx_tuple__367);
49105 __Pyx_GIVEREF(__pyx_tuple__367);
49106 __pyx_codeobj__368 = (PyObject*)__Pyx_PyCode_New(25, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__367, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromInterior_9, 6440, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__368)) __PYX_ERR(0, 6440, __pyx_L1_error)
49115 __pyx_tuple__369 = PyTuple_Pack(34, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_offset_r, __pyx_n_s_stride_r, __pyx_n_s_offset_u, __pyx_n_s_stride_u, __pyx_n_s_nFreeVDOF_global, __pyx_n_s_exteriorElementBoundaries, __pyx_n_s_elementBoundaryElements, __pyx_n_s_elementBoundaryLocalElementBound, __pyx_n_s_nFreeDOF_element_r, __pyx_n_s_freeLocal_r, __pyx_n_s_freeGlobal_r, __pyx_n_s_nFreeDOF_element_u, __pyx_n_s_freeLocal_u, __pyx_n_s_freeGlobal_u, __pyx_n_s_csrRowIndeces_ru, __pyx_n_s_csrColumnOffsets_eb_ru, __pyx_n_s_isDOFBoundary, __pyx_n_s_sigma, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_a, __pyx_n_s_grad_w, __pyx_n_s_dS, __pyx_n_s_jac, __pyx_n_s_rowptr_dummy, __pyx_n_s_colind_dummy, __pyx_n_s_jac_array, __pyx_n_s_nExteriorElementBoundaries_globa, __pyx_n_s_nQuadraturePoints_elementBoundar, __pyx_n_s_nDOF_test_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 6504, __pyx_L1_error)
49116 __Pyx_GOTREF(__pyx_tuple__369);
49117 __Pyx_GIVEREF(__pyx_tuple__369);
49118 __pyx_codeobj__370 = (PyObject*)__Pyx_PyCode_New(26, 0, 34, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__369, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateGlobalJacobianFromExterior_7, 6504, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__370)) __PYX_ERR(0, 6504, __pyx_L1_error)
49127 __pyx_tuple__371 = PyTuple_Pack(3, __pyx_n_s_xt, __pyx_n_s_m, __pyx_n_s_f);
if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 6568, __pyx_L1_error)
49128 __Pyx_GOTREF(__pyx_tuple__371);
49129 __Pyx_GIVEREF(__pyx_tuple__371);
49130 __pyx_codeobj__372 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__371, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_update_f_movingDomain, 6568, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__372)) __PYX_ERR(0, 6568, __pyx_L1_error)
49139 __pyx_tuple__373 = PyTuple_Pack(2, __pyx_n_s_xt, __pyx_n_s_f);
if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 6586, __pyx_L1_error)
49140 __Pyx_GOTREF(__pyx_tuple__373);
49141 __Pyx_GIVEREF(__pyx_tuple__373);
49142 __pyx_codeobj__374 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__373, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_update_f_movingDomain_constantMa, 6586, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__374)) __PYX_ERR(0, 6586, __pyx_L1_error)
49151 __pyx_tuple__375 = PyTuple_Pack(9, __pyx_n_s_sigma, __pyx_n_s_grad_w_dV, __pyx_n_s_weak_residual_x, __pyx_n_s_weak_residual_y, __pyx_n_s_weak_residual_z, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 6601, __pyx_L1_error)
49152 __Pyx_GOTREF(__pyx_tuple__375);
49153 __Pyx_GIVEREF(__pyx_tuple__375);
49154 __pyx_codeobj__376 = (PyObject*)__Pyx_PyCode_New(5, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__375, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateStress_weak, 6601, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__376)) __PYX_ERR(0, 6601, __pyx_L1_error)
49163 __pyx_tuple__377 = PyTuple_Pack(25, __pyx_n_s_dsigma_xx, __pyx_n_s_dsigma_xy, __pyx_n_s_dsigma_xz, __pyx_n_s_dsigma_yx, __pyx_n_s_dsigma_yy, __pyx_n_s_dsigma_yz, __pyx_n_s_dsigma_zx, __pyx_n_s_dsigma_zy, __pyx_n_s_dsigma_zz, __pyx_n_s_grad_v, __pyx_n_s_grad_w_dV, __pyx_n_s_jacobian_weak_residual_xx, __pyx_n_s_jacobian_weak_residual_xy, __pyx_n_s_jacobian_weak_residual_xz, __pyx_n_s_jacobian_weak_residual_yx, __pyx_n_s_jacobian_weak_residual_yy, __pyx_n_s_jacobian_weak_residual_yz, __pyx_n_s_jacobian_weak_residual_zx, __pyx_n_s_jacobian_weak_residual_zy, __pyx_n_s_jacobian_weak_residual_zz, __pyx_n_s_nElements_global, __pyx_n_s_nQuadraturePoints_element, __pyx_n_s_nDOF_trial_element, __pyx_n_s_nDOF_test_element, __pyx_n_s_nSpace);
if (unlikely(!__pyx_tuple__377)) __PYX_ERR(0, 6619, __pyx_L1_error)
49164 __Pyx_GOTREF(__pyx_tuple__377);
49165 __Pyx_GIVEREF(__pyx_tuple__377);
49166 __pyx_codeobj__378 = (PyObject*)__Pyx_PyCode_New(20, 0, 25, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__377, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateStressJacobian_weak, 6619, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__378)) __PYX_ERR(0, 6619, __pyx_L1_error)
49175 __pyx_tuple__379 = PyTuple_Pack(7, __pyx_n_s_dim_dof, __pyx_n_s_l2g, __pyx_n_s_functional_map_element, __pyx_n_s_interpolationValues, __pyx_n_s_dofs, __pyx_n_s_nElements_global, __pyx_n_s_nDOF_element);
if (unlikely(!__pyx_tuple__379)) __PYX_ERR(0, 6669, __pyx_L1_error)
49176 __Pyx_GOTREF(__pyx_tuple__379);
49177 __Pyx_GIVEREF(__pyx_tuple__379);
49178 __pyx_codeobj__380 = (PyObject*)__Pyx_PyCode_New(5, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__379, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_projectFromNodalInterpolationCon, 6669, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__380)) __PYX_ERR(0, 6669, __pyx_L1_error)
49187 __pyx_tuple__381 = PyTuple_Pack(9, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_qa, __pyx_n_s_qw_dV, __pyx_n_s_b, __pyx_n_s_v, __pyx_n_s_V, __pyx_n_s_qv, __pyx_n_s_qV);
if (unlikely(!__pyx_tuple__381)) __PYX_ERR(0, 6683, __pyx_L1_error)
49188 __Pyx_GOTREF(__pyx_tuple__381);
49189 __Pyx_GIVEREF(__pyx_tuple__381);
49190 __pyx_codeobj__382 = (PyObject*)__Pyx_PyCode_New(9, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__381, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVelocityQuadrature_Mixe_3, 6683, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__382)) __PYX_ERR(0, 6683, __pyx_L1_error)
49199 __pyx_tuple__383 = PyTuple_Pack(8, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_a, __pyx_n_s_qV, __pyx_n_s_grad_w_dV, __pyx_n_s_velocity, __pyx_n_s_residual, __pyx_n_s_rho_split);
if (unlikely(!__pyx_tuple__383)) __PYX_ERR(0, 6708, __pyx_L1_error)
49200 __Pyx_GOTREF(__pyx_tuple__383);
49201 __Pyx_GIVEREF(__pyx_tuple__383);
49202 __pyx_codeobj__384 = (PyObject*)__Pyx_PyCode_New(8, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__383, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusion_MixedForm_weak_s, 6708, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__384)) __PYX_ERR(0, 6708, __pyx_L1_error)
49211 __pyx_tuple__385 = PyTuple_Pack(12, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_qa, __pyx_n_s_qw_dV, __pyx_n_s_db, __pyx_n_s_db_eb, __pyx_n_s_v, __pyx_n_s_DV, __pyx_n_s_DV_eb, __pyx_n_s_qv, __pyx_n_s_qDV, __pyx_n_s_qDV_eb);
if (unlikely(!__pyx_tuple__385)) __PYX_ERR(0, 6729, __pyx_L1_error)
49212 __Pyx_GOTREF(__pyx_tuple__385);
49213 __Pyx_GIVEREF(__pyx_tuple__385);
49214 __pyx_codeobj__386 = (PyObject*)__Pyx_PyCode_New(12, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__385, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_calculateVelocityQuadrature_Mixe_4, 6729, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__386)) __PYX_ERR(0, 6729, __pyx_L1_error)
49223 __pyx_tuple__387 = PyTuple_Pack(11, __pyx_n_s_rowptr, __pyx_n_s_colind, __pyx_n_s_a, __pyx_n_s_da, __pyx_n_s_qV, __pyx_n_s_qDV, __pyx_n_s_qDV_eb, __pyx_n_s_grad_w_dV, __pyx_n_s_v, __pyx_n_s_jacobian, __pyx_n_s_jacobian_eb);
if (unlikely(!__pyx_tuple__387)) __PYX_ERR(0, 6759, __pyx_L1_error)
49224 __Pyx_GOTREF(__pyx_tuple__387);
49225 __Pyx_GIVEREF(__pyx_tuple__387);
49226 __pyx_codeobj__388 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__387, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cfemIntegrals_pyx, __pyx_n_s_updateDiffusionJacobian_MixedFor_2, 6759, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__388)) __PYX_ERR(0, 6759, __pyx_L1_error)
49227 __Pyx_RefNannyFinishContext();
49230 __Pyx_RefNannyFinishContext();
49234 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
49235 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
49241 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
49242 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
49243 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
49244 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
49245 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
49246 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
49247 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
49249 static int __Pyx_modinit_global_init_code(
void) {
49250 __Pyx_RefNannyDeclarations
49251 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
49253 __Pyx_RefNannyFinishContext();
49257 static int __Pyx_modinit_variable_export_code(
void) {
49258 __Pyx_RefNannyDeclarations
49259 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
49261 __Pyx_RefNannyFinishContext();
49265 static int __Pyx_modinit_function_export_code(
void) {
49266 __Pyx_RefNannyDeclarations
49267 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
49269 __Pyx_RefNannyFinishContext();
49273 static int __Pyx_modinit_type_init_code(
void) {
49274 __Pyx_RefNannyDeclarations
49275 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
49277 __Pyx_RefNannyFinishContext();
49281 static int __Pyx_modinit_type_import_code(
void) {
49282 __Pyx_RefNannyDeclarations
49283 PyObject *__pyx_t_1 = NULL;
49284 int __pyx_lineno = 0;
49285 const char *__pyx_filename = NULL;
49286 int __pyx_clineno = 0;
49287 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
49289 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
49290 __Pyx_GOTREF(__pyx_t_1);
49291 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
49292 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
49293 sizeof(PyTypeObject),
49295 sizeof(PyHeapTypeObject),
49297 __Pyx_ImportType_CheckSize_Warn);
49298 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
49299 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49300 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 200, __pyx_L1_error)
49301 __Pyx_GOTREF(__pyx_t_1);
49302 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
49303 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(1, 200, __pyx_L1_error)
49304 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
49305 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(1, 223, __pyx_L1_error)
49306 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
49307 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(1, 227, __pyx_L1_error)
49308 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
49309 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(1, 239, __pyx_L1_error)
49310 __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1,
"numpy",
"generic",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49311 if (!__pyx_ptype_5numpy_generic) __PYX_ERR(1, 771, __pyx_L1_error)
49312 __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1,
"numpy",
"number",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49313 if (!__pyx_ptype_5numpy_number) __PYX_ERR(1, 773, __pyx_L1_error)
49314 __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1,
"numpy",
"integer",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49315 if (!__pyx_ptype_5numpy_integer) __PYX_ERR(1, 775, __pyx_L1_error)
49316 __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"signedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49317 if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(1, 777, __pyx_L1_error)
49318 __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"unsignedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49319 if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(1, 779, __pyx_L1_error)
49320 __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1,
"numpy",
"inexact",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49321 if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(1, 781, __pyx_L1_error)
49322 __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"floating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49323 if (!__pyx_ptype_5numpy_floating) __PYX_ERR(1, 783, __pyx_L1_error)
49324 __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"complexfloating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49325 if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(1, 785, __pyx_L1_error)
49326 __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flexible",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49327 if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(1, 787, __pyx_L1_error)
49328 __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1,
"numpy",
"character",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
49329 if (!__pyx_ptype_5numpy_character) __PYX_ERR(1, 789, __pyx_L1_error)
49330 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
49331 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(1, 827, __pyx_L1_error)
49332 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49333 __Pyx_RefNannyFinishContext();
49336 __Pyx_XDECREF(__pyx_t_1);
49337 __Pyx_RefNannyFinishContext();
49341 static int __Pyx_modinit_variable_import_code(
void) {
49342 __Pyx_RefNannyDeclarations
49343 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
49345 __Pyx_RefNannyFinishContext();
49349 static int __Pyx_modinit_function_import_code(
void) {
49350 __Pyx_RefNannyDeclarations
49351 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
49353 __Pyx_RefNannyFinishContext();
49358 #ifndef CYTHON_NO_PYINIT_EXPORT
49359 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
49360 #elif PY_MAJOR_VERSION < 3
49362 #define __Pyx_PyMODINIT_FUNC extern "C" void
49364 #define __Pyx_PyMODINIT_FUNC void
49368 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
49370 #define __Pyx_PyMODINIT_FUNC PyObject *
49375 #if PY_MAJOR_VERSION < 3
49376 __Pyx_PyMODINIT_FUNC initcfemIntegrals(
void) CYTHON_SMALL_CODE;
49377 __Pyx_PyMODINIT_FUNC initcfemIntegrals(
void)
49379 __Pyx_PyMODINIT_FUNC PyInit_cfemIntegrals(
void) CYTHON_SMALL_CODE;
49380 __Pyx_PyMODINIT_FUNC PyInit_cfemIntegrals(
void)
49381 #if CYTHON_PEP489_MULTI_PHASE_INIT
49383 return PyModuleDef_Init(&__pyx_moduledef);
49385 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
49386 #if PY_VERSION_HEX >= 0x030700A1
49387 static PY_INT64_T main_interpreter_id = -1;
49388 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
49389 if (main_interpreter_id == -1) {
49390 main_interpreter_id = current_id;
49391 return (unlikely(current_id == -1)) ? -1 : 0;
49392 }
else if (unlikely(main_interpreter_id != current_id))
49394 static PyInterpreterState *main_interpreter = NULL;
49395 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
49396 if (!main_interpreter) {
49397 main_interpreter = current_interpreter;
49398 }
else if (unlikely(main_interpreter != current_interpreter))
49403 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
49408 static CYTHON_SMALL_CODE
int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict,
const char* from_name,
const char* to_name,
int allow_none) {
49409 PyObject *value = PyObject_GetAttrString(spec, from_name);
49411 if (likely(value)) {
49412 if (allow_none || value != Py_None) {
49413 result = PyDict_SetItemString(moddict, to_name, value);
49416 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
49423 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
49424 PyObject *module = NULL, *moddict, *modname;
49425 if (__Pyx_check_single_interpreter())
49428 return __Pyx_NewRef(__pyx_m);
49429 modname = PyObject_GetAttrString(spec,
"name");
49430 if (unlikely(!modname))
goto bad;
49431 module = PyModule_NewObject(modname);
49432 Py_DECREF(modname);
49433 if (unlikely(!module))
goto bad;
49434 moddict = PyModule_GetDict(module);
49435 if (unlikely(!moddict))
goto bad;
49436 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
49437 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
49438 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
49439 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
49442 Py_XDECREF(module);
49447 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_cfemIntegrals(PyObject *__pyx_pyinit_module)
49451 PyObject *__pyx_t_1 = NULL;
49452 int __pyx_lineno = 0;
49453 const char *__pyx_filename = NULL;
49454 int __pyx_clineno = 0;
49455 __Pyx_RefNannyDeclarations
49456 #if CYTHON_PEP489_MULTI_PHASE_INIT
49458 if (__pyx_m == __pyx_pyinit_module)
return 0;
49459 PyErr_SetString(PyExc_RuntimeError,
"Module 'cfemIntegrals' has already been imported. Re-initialisation is not supported.");
49462 #elif PY_MAJOR_VERSION >= 3
49463 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
49465 #if CYTHON_REFNANNY
49466 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
49467 if (!__Pyx_RefNanny) {
49469 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
49470 if (!__Pyx_RefNanny)
49471 Py_FatalError(
"failed to import 'refnanny' module");
49474 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_cfemIntegrals(void)", 0);
49475 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49476 #ifdef __Pxy_PyFrame_Initialize_Offsets
49477 __Pxy_PyFrame_Initialize_Offsets();
49479 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
49480 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
49481 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
49482 #ifdef __Pyx_CyFunction_USED
49483 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49485 #ifdef __Pyx_FusedFunction_USED
49486 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49488 #ifdef __Pyx_Coroutine_USED
49489 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49491 #ifdef __Pyx_Generator_USED
49492 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49494 #ifdef __Pyx_AsyncGen_USED
49495 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49497 #ifdef __Pyx_StopAsyncIteration_USED
49498 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49502 #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
49503 PyEval_InitThreads();
49506 #if CYTHON_PEP489_MULTI_PHASE_INIT
49507 __pyx_m = __pyx_pyinit_module;
49508 Py_INCREF(__pyx_m);
49510 #if PY_MAJOR_VERSION < 3
49511 __pyx_m = Py_InitModule4(
"cfemIntegrals", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
49513 __pyx_m = PyModule_Create(&__pyx_moduledef);
49515 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
49517 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
49518 Py_INCREF(__pyx_d);
49519 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
49520 Py_INCREF(__pyx_b);
49521 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
49522 Py_INCREF(__pyx_cython_runtime);
49523 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
49525 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49526 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
49527 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49529 if (__pyx_module_is_main_cfemIntegrals) {
49530 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49532 #if PY_MAJOR_VERSION >= 3
49534 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
49535 if (!PyDict_GetItemString(modules,
"cfemIntegrals")) {
49536 if (unlikely(PyDict_SetItemString(modules,
"cfemIntegrals", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
49541 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49543 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49545 (void)__Pyx_modinit_global_init_code();
49546 (void)__Pyx_modinit_variable_export_code();
49547 (void)__Pyx_modinit_function_export_code();
49548 (void)__Pyx_modinit_type_init_code();
49549 if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
49550 (void)__Pyx_modinit_variable_import_code();
49551 (void)__Pyx_modinit_function_import_code();
49553 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
49554 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
49563 __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
49564 __Pyx_GOTREF(__pyx_t_1);
49565 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
49566 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49575 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_1parametricFiniteElementSpace_getHessianValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2296, __pyx_L1_error)
49576 __Pyx_GOTREF(__pyx_t_1);
49577 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get, __pyx_t_1) < 0) __PYX_ERR(0, 2296, __pyx_L1_error)
49578 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49587 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_3updateDiffusion2_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2310, __pyx_L1_error)
49588 __Pyx_GOTREF(__pyx_t_1);
49589 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion2_strong, __pyx_t_1) < 0) __PYX_ERR(0, 2310, __pyx_L1_error)
49590 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49599 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_5updateDiffusion2_strong_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2322, __pyx_L1_error)
49600 __Pyx_GOTREF(__pyx_t_1);
49601 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion2_strong_sd, __pyx_t_1) < 0) __PYX_ERR(0, 2322, __pyx_L1_error)
49602 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49611 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_7updateDiffusionJacobian2_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2338, __pyx_L1_error)
49612 __Pyx_GOTREF(__pyx_t_1);
49613 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian2_strong, __pyx_t_1) < 0) __PYX_ERR(0, 2338, __pyx_L1_error)
49614 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49623 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_9updateDiffusionJacobian2_strong_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2362, __pyx_L1_error)
49624 __Pyx_GOTREF(__pyx_t_1);
49625 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian2_strong_2, __pyx_t_1) < 0) __PYX_ERR(0, 2362, __pyx_L1_error)
49626 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49635 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_11updateDiffusion2_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2390, __pyx_L1_error)
49636 __Pyx_GOTREF(__pyx_t_1);
49637 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion2_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 2390, __pyx_L1_error)
49638 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49647 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_13updateDiffusion2_adjoint_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2404, __pyx_L1_error)
49648 __Pyx_GOTREF(__pyx_t_1);
49649 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion2_adjoint_sd, __pyx_t_1) < 0) __PYX_ERR(0, 2404, __pyx_L1_error)
49650 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49659 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_15calculateWeightedShapeHessians, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2422, __pyx_L1_error)
49660 __Pyx_GOTREF(__pyx_t_1);
49661 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWeightedShapeHessians, __pyx_t_1) < 0) __PYX_ERR(0, 2422, __pyx_L1_error)
49662 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49671 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_17calculateFiniteElementFunctionHessianValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2438, __pyx_L1_error)
49672 __Pyx_GOTREF(__pyx_t_1);
49673 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionHe, __pyx_t_1) < 0) __PYX_ERR(0, 2438, __pyx_L1_error)
49674 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49683 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_19updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2463, __pyx_L1_error)
49684 __Pyx_GOTREF(__pyx_t_1);
49685 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior, __pyx_t_1) < 0) __PYX_ERR(0, 2463, __pyx_L1_error)
49686 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49695 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_21updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_2sided_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2499, __pyx_L1_error)
49696 __Pyx_GOTREF(__pyx_t_1);
49697 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_2, __pyx_t_1) < 0) __PYX_ERR(0, 2499, __pyx_L1_error)
49698 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49707 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_23updateInteriorTwoSidedElementBoundaryFlux, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2543, __pyx_L1_error)
49708 __Pyx_GOTREF(__pyx_t_1);
49709 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorTwoSidedElementBou, __pyx_t_1) < 0) __PYX_ERR(0, 2543, __pyx_L1_error)
49710 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49719 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_25calculateCFLADR2speeds, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2563, __pyx_L1_error)
49720 __Pyx_GOTREF(__pyx_t_1);
49721 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateCFLADR2speeds, __pyx_t_1) < 0) __PYX_ERR(0, 2563, __pyx_L1_error)
49722 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49731 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_27checkElementBoundaryAndExteriorElementBoundaryArraysSame, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2579, __pyx_L1_error)
49732 __Pyx_GOTREF(__pyx_t_1);
49733 if (PyDict_SetItem(__pyx_d, __pyx_n_s_checkElementBoundaryAndExteriorE, __pyx_t_1) < 0) __PYX_ERR(0, 2579, __pyx_L1_error)
49734 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49743 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_29checkGlobalElementBoundaryAndExteriorElementBoundaryArraysSame, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2607, __pyx_L1_error)
49744 __Pyx_GOTREF(__pyx_t_1);
49745 if (PyDict_SetItem(__pyx_d, __pyx_n_s_checkGlobalElementBoundaryAndExt, __pyx_t_1) < 0) __PYX_ERR(0, 2607, __pyx_L1_error)
49746 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49755 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_31calculateExteriorElementBoundaryStress3D, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2632, __pyx_L1_error)
49756 __Pyx_GOTREF(__pyx_t_1);
49757 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorElementBoundary, __pyx_t_1) < 0) __PYX_ERR(0, 2632, __pyx_L1_error)
49758 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49767 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_33calculateExteriorElementBoundaryStress2D, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2658, __pyx_L1_error)
49768 __Pyx_GOTREF(__pyx_t_1);
49769 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorElementBoundary_2, __pyx_t_1) < 0) __PYX_ERR(0, 2658, __pyx_L1_error)
49770 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49779 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_35copyLeftElementBoundaryInfo, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2682, __pyx_L1_error)
49780 __Pyx_GOTREF(__pyx_t_1);
49781 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyLeftElementBoundaryInfo, __pyx_t_1) < 0) __PYX_ERR(0, 2682, __pyx_L1_error)
49782 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49791 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_37parametricFiniteElementSpace_getValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2708, __pyx_L1_error)
49792 __Pyx_GOTREF(__pyx_t_1);
49793 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_2, __pyx_t_1) < 0) __PYX_ERR(0, 2708, __pyx_L1_error)
49794 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49803 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_39parametricFiniteElementSpace_getValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2718, __pyx_L1_error)
49804 __Pyx_GOTREF(__pyx_t_1);
49805 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_3, __pyx_t_1) < 0) __PYX_ERR(0, 2718, __pyx_L1_error)
49806 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49815 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_41parametricFiniteElementSpace_getGradientValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2732, __pyx_L1_error)
49816 __Pyx_GOTREF(__pyx_t_1);
49817 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_4, __pyx_t_1) < 0) __PYX_ERR(0, 2732, __pyx_L1_error)
49818 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49827 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_43parametricFiniteElementSpace_getGradientValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2746, __pyx_L1_error)
49828 __Pyx_GOTREF(__pyx_t_1);
49829 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_5, __pyx_t_1) < 0) __PYX_ERR(0, 2746, __pyx_L1_error)
49830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49839 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_45parametricMaps_getPermutations, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2764, __pyx_L1_error)
49840 __Pyx_GOTREF(__pyx_t_1);
49841 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getPermutations, __pyx_t_1) < 0) __PYX_ERR(0, 2764, __pyx_L1_error)
49842 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49851 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_47parametricMaps_getPermutationsGlobalExterior, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2776, __pyx_L1_error)
49852 __Pyx_GOTREF(__pyx_t_1);
49853 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getPermutationsGl, __pyx_t_1) < 0) __PYX_ERR(0, 2776, __pyx_L1_error)
49854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49863 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_49getPermutationsGlobal, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2792, __pyx_L1_error)
49864 __Pyx_GOTREF(__pyx_t_1);
49865 if (PyDict_SetItem(__pyx_d, __pyx_n_s_getPermutationsGlobal, __pyx_t_1) < 0) __PYX_ERR(0, 2792, __pyx_L1_error)
49866 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49875 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_51parametricMaps_getValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2802, __pyx_L1_error)
49876 __Pyx_GOTREF(__pyx_t_1);
49877 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getValues, __pyx_t_1) < 0) __PYX_ERR(0, 2802, __pyx_L1_error)
49878 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49887 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_53parametricMaps_getValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2818, __pyx_L1_error)
49888 __Pyx_GOTREF(__pyx_t_1);
49889 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getValuesTrace, __pyx_t_1) < 0) __PYX_ERR(0, 2818, __pyx_L1_error)
49890 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49899 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_55parametricMaps_getInverseValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2836, __pyx_L1_error)
49900 __Pyx_GOTREF(__pyx_t_1);
49901 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getInverseValues, __pyx_t_1) < 0) __PYX_ERR(0, 2836, __pyx_L1_error)
49902 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49911 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_57parametricMaps_getInverseValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2854, __pyx_L1_error)
49912 __Pyx_GOTREF(__pyx_t_1);
49913 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getInverseValuesT, __pyx_t_1) < 0) __PYX_ERR(0, 2854, __pyx_L1_error)
49914 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49923 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_59parametricMaps_getJacobianValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2874, __pyx_L1_error)
49924 __Pyx_GOTREF(__pyx_t_1);
49925 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getJacobianValues, __pyx_t_1) < 0) __PYX_ERR(0, 2874, __pyx_L1_error)
49926 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49935 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_61parametricMaps_getJacobianValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2913, __pyx_L1_error)
49936 __Pyx_GOTREF(__pyx_t_1);
49937 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getJacobianValues_2, __pyx_t_1) < 0) __PYX_ERR(0, 2913, __pyx_L1_error)
49938 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49947 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_63updateMass_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2967, __pyx_L1_error)
49948 __Pyx_GOTREF(__pyx_t_1);
49949 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMass_weak, __pyx_t_1) < 0) __PYX_ERR(0, 2967, __pyx_L1_error)
49950 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49959 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_65updateMassJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2979, __pyx_L1_error)
49960 __Pyx_GOTREF(__pyx_t_1);
49961 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMassJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 2979, __pyx_L1_error)
49962 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49971 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_67updateMassJacobian_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2993, __pyx_L1_error)
49972 __Pyx_GOTREF(__pyx_t_1);
49973 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMassJacobian_weak_lowmem, __pyx_t_1) < 0) __PYX_ERR(0, 2993, __pyx_L1_error)
49974 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49983 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_69updateMass_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3009, __pyx_L1_error)
49984 __Pyx_GOTREF(__pyx_t_1);
49985 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMass_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3009, __pyx_L1_error)
49986 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49995 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_71updateMassJacobian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3017, __pyx_L1_error)
49996 __Pyx_GOTREF(__pyx_t_1);
49997 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMassJacobian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3017, __pyx_L1_error)
49998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50007 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_73updateMass_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3029, __pyx_L1_error)
50008 __Pyx_GOTREF(__pyx_t_1);
50009 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateMass_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 3029, __pyx_L1_error)
50010 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50019 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_75updateAdvection_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3041, __pyx_L1_error)
50020 __Pyx_GOTREF(__pyx_t_1);
50021 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvection_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3041, __pyx_L1_error)
50022 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50031 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_77updateAdvectionJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3055, __pyx_L1_error)
50032 __Pyx_GOTREF(__pyx_t_1);
50033 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvectionJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3055, __pyx_L1_error)
50034 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50043 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_79updateAdvectionJacobian_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3071, __pyx_L1_error)
50044 __Pyx_GOTREF(__pyx_t_1);
50045 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvectionJacobian_weak_low, __pyx_t_1) < 0) __PYX_ERR(0, 3071, __pyx_L1_error)
50046 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50055 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_81updateAdvection_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3089, __pyx_L1_error)
50056 __Pyx_GOTREF(__pyx_t_1);
50057 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvection_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3089, __pyx_L1_error)
50058 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50067 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_83updateAdvectionJacobian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3101, __pyx_L1_error)
50068 __Pyx_GOTREF(__pyx_t_1);
50069 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvectionJacobian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3101, __pyx_L1_error)
50070 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50079 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_85updateAdvection_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3115, __pyx_L1_error)
50080 __Pyx_GOTREF(__pyx_t_1);
50081 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAdvection_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 3115, __pyx_L1_error)
50082 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50091 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_87updateHamiltonian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3129, __pyx_L1_error)
50092 __Pyx_GOTREF(__pyx_t_1);
50093 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3129, __pyx_L1_error)
50094 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50103 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_89updateHamiltonianJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3141, __pyx_L1_error)
50104 __Pyx_GOTREF(__pyx_t_1);
50105 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonianJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3141, __pyx_L1_error)
50106 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50115 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_91updateHamiltonianJacobian_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3157, __pyx_L1_error)
50116 __Pyx_GOTREF(__pyx_t_1);
50117 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonianJacobian_weak_l, __pyx_t_1) < 0) __PYX_ERR(0, 3157, __pyx_L1_error)
50118 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50127 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_93updateHamiltonian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3175, __pyx_L1_error)
50128 __Pyx_GOTREF(__pyx_t_1);
50129 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3175, __pyx_L1_error)
50130 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50139 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_95updateHamiltonianJacobian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3187, __pyx_L1_error)
50140 __Pyx_GOTREF(__pyx_t_1);
50141 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonianJacobian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3187, __pyx_L1_error)
50142 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50151 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_97updateHamiltonian_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3201, __pyx_L1_error)
50152 __Pyx_GOTREF(__pyx_t_1);
50153 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateHamiltonian_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 3201, __pyx_L1_error)
50154 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50163 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_99updateDiffusion_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3215, __pyx_L1_error)
50164 __Pyx_GOTREF(__pyx_t_1);
50165 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3215, __pyx_L1_error)
50166 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50175 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_101updateDiffusion_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3229, __pyx_L1_error)
50176 __Pyx_GOTREF(__pyx_t_1);
50177 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_weak_lowmem, __pyx_t_1) < 0) __PYX_ERR(0, 3229, __pyx_L1_error)
50178 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50187 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_103updateDiffusion_weak_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3245, __pyx_L1_error)
50188 __Pyx_GOTREF(__pyx_t_1);
50189 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_weak_sd, __pyx_t_1) < 0) __PYX_ERR(0, 3245, __pyx_L1_error)
50190 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50199 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_105updateDiffusionJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3265, __pyx_L1_error)
50200 __Pyx_GOTREF(__pyx_t_1);
50201 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3265, __pyx_L1_error)
50202 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50211 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_107updateDiffusionJacobian_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3291, __pyx_L1_error)
50212 __Pyx_GOTREF(__pyx_t_1);
50213 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_weak_low, __pyx_t_1) < 0) __PYX_ERR(0, 3291, __pyx_L1_error)
50214 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50223 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_109updateDiffusionJacobian_weak_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3319, __pyx_L1_error)
50224 __Pyx_GOTREF(__pyx_t_1);
50225 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_weak_sd, __pyx_t_1) < 0) __PYX_ERR(0, 3319, __pyx_L1_error)
50226 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50235 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_111updateDiffusion_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3351, __pyx_L1_error)
50236 __Pyx_GOTREF(__pyx_t_1);
50237 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3351, __pyx_L1_error)
50238 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50247 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_113updateDiffusion_strong_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3365, __pyx_L1_error)
50248 __Pyx_GOTREF(__pyx_t_1);
50249 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_strong_sd, __pyx_t_1) < 0) __PYX_ERR(0, 3365, __pyx_L1_error)
50250 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50259 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_115updateDiffusionJacobian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3383, __pyx_L1_error)
50260 __Pyx_GOTREF(__pyx_t_1);
50261 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3383, __pyx_L1_error)
50262 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50271 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_117updateDiffusionJacobian_strong_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3405, __pyx_L1_error)
50272 __Pyx_GOTREF(__pyx_t_1);
50273 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_strong_s, __pyx_t_1) < 0) __PYX_ERR(0, 3405, __pyx_L1_error)
50274 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50283 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_119updateDiffusion_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3431, __pyx_L1_error)
50284 __Pyx_GOTREF(__pyx_t_1);
50285 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 3431, __pyx_L1_error)
50286 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50295 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_121updateDiffusion_adjoint_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3447, __pyx_L1_error)
50296 __Pyx_GOTREF(__pyx_t_1);
50297 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_adjoint_sd, __pyx_t_1) < 0) __PYX_ERR(0, 3447, __pyx_L1_error)
50298 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50307 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_123updateReaction_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3467, __pyx_L1_error)
50308 __Pyx_GOTREF(__pyx_t_1);
50309 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReaction_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3467, __pyx_L1_error)
50310 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50319 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_125updateReactionJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3479, __pyx_L1_error)
50320 __Pyx_GOTREF(__pyx_t_1);
50321 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReactionJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 3479, __pyx_L1_error)
50322 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50331 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_127updateReactionJacobian_weak_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3493, __pyx_L1_error)
50332 __Pyx_GOTREF(__pyx_t_1);
50333 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReactionJacobian_weak_lowm, __pyx_t_1) < 0) __PYX_ERR(0, 3493, __pyx_L1_error)
50334 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50343 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_129updateReaction_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3509, __pyx_L1_error)
50344 __Pyx_GOTREF(__pyx_t_1);
50345 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReaction_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3509, __pyx_L1_error)
50346 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50355 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_131updateReactionJacobian_strong, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3517, __pyx_L1_error)
50356 __Pyx_GOTREF(__pyx_t_1);
50357 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReactionJacobian_strong, __pyx_t_1) < 0) __PYX_ERR(0, 3517, __pyx_L1_error)
50358 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50367 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_133updateReaction_adjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3529, __pyx_L1_error)
50368 __Pyx_GOTREF(__pyx_t_1);
50369 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateReaction_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 3529, __pyx_L1_error)
50370 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50379 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_135updateSubgridError, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3541, __pyx_L1_error)
50380 __Pyx_GOTREF(__pyx_t_1);
50381 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateSubgridError, __pyx_t_1) < 0) __PYX_ERR(0, 3541, __pyx_L1_error)
50382 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50391 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_137updateSubgridErrorJacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3553, __pyx_L1_error)
50392 __Pyx_GOTREF(__pyx_t_1);
50393 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateSubgridErrorJacobian, __pyx_t_1) < 0) __PYX_ERR(0, 3553, __pyx_L1_error)
50394 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50403 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_139updateNumericalDiffusion, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3567, __pyx_L1_error)
50404 __Pyx_GOTREF(__pyx_t_1);
50405 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateNumericalDiffusion, __pyx_t_1) < 0) __PYX_ERR(0, 3567, __pyx_L1_error)
50406 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50415 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_141updateNumericalDiffusion_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3581, __pyx_L1_error)
50416 __Pyx_GOTREF(__pyx_t_1);
50417 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateNumericalDiffusion_lowmem, __pyx_t_1) < 0) __PYX_ERR(0, 3581, __pyx_L1_error)
50418 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50427 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_143updateNumericalDiffusionJacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3597, __pyx_L1_error)
50428 __Pyx_GOTREF(__pyx_t_1);
50429 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateNumericalDiffusionJacobian, __pyx_t_1) < 0) __PYX_ERR(0, 3597, __pyx_L1_error)
50430 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50439 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_145updateNumericalDiffusionJacobian_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3613, __pyx_L1_error)
50440 __Pyx_GOTREF(__pyx_t_1);
50441 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateNumericalDiffusionJacobian_2, __pyx_t_1) < 0) __PYX_ERR(0, 3613, __pyx_L1_error)
50442 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50451 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_147calculateScalarScalarProduct, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3631, __pyx_L1_error)
50452 __Pyx_GOTREF(__pyx_t_1);
50453 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateScalarScalarProduct, __pyx_t_1) < 0) __PYX_ERR(0, 3631, __pyx_L1_error)
50454 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50463 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_149calculateVectorScalarProduct, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3641, __pyx_L1_error)
50464 __Pyx_GOTREF(__pyx_t_1);
50465 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVectorScalarProduct, __pyx_t_1) < 0) __PYX_ERR(0, 3641, __pyx_L1_error)
50466 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50475 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_151calculateTensorScalarProduct, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
50476 __Pyx_GOTREF(__pyx_t_1);
50477 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateTensorScalarProduct, __pyx_t_1) < 0) __PYX_ERR(0, 3653, __pyx_L1_error)
50478 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50487 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_153updateInteriorElementBoundaryFlux, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3665, __pyx_L1_error)
50488 __Pyx_GOTREF(__pyx_t_1);
50489 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryFlu, __pyx_t_1) < 0) __PYX_ERR(0, 3665, __pyx_L1_error)
50490 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50499 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_155updateExteriorElementBoundaryFlux, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3685, __pyx_L1_error)
50500 __Pyx_GOTREF(__pyx_t_1);
50501 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryFlu, __pyx_t_1) < 0) __PYX_ERR(0, 3685, __pyx_L1_error)
50502 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50511 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_157updateGlobalResidualFromElementResidual, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3713, __pyx_L1_error)
50512 __Pyx_GOTREF(__pyx_t_1);
50513 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalResidualFromElementR, __pyx_t_1) < 0) __PYX_ERR(0, 3713, __pyx_L1_error)
50514 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50523 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_159updateGlobalJacobianFromElementJacobian_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3731, __pyx_L1_error)
50524 __Pyx_GOTREF(__pyx_t_1);
50525 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromElementJ, __pyx_t_1) < 0) __PYX_ERR(0, 3731, __pyx_L1_error)
50526 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50535 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_161updateGlobalJacobianFromElementJacobian_eb_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3763, __pyx_L1_error)
50536 __Pyx_GOTREF(__pyx_t_1);
50537 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromElementJ_2, __pyx_t_1) < 0) __PYX_ERR(0, 3763, __pyx_L1_error)
50538 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50547 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_163updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3799, __pyx_L1_error)
50548 __Pyx_GOTREF(__pyx_t_1);
50549 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_3, __pyx_t_1) < 0) __PYX_ERR(0, 3799, __pyx_L1_error)
50550 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50559 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_165updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3843, __pyx_L1_error)
50560 __Pyx_GOTREF(__pyx_t_1);
50561 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_4, __pyx_t_1) < 0) __PYX_ERR(0, 3843, __pyx_L1_error)
50562 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50571 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_167updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3891, __pyx_L1_error)
50572 __Pyx_GOTREF(__pyx_t_1);
50573 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior, __pyx_t_1) < 0) __PYX_ERR(0, 3891, __pyx_L1_error)
50574 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50583 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_169updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3956, __pyx_L1_error)
50584 __Pyx_GOTREF(__pyx_t_1);
50585 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_2, __pyx_t_1) < 0) __PYX_ERR(0, 3956, __pyx_L1_error)
50586 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50595 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_171updateGlobalJacobianFromElementJacobian_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4030, __pyx_L1_error)
50596 __Pyx_GOTREF(__pyx_t_1);
50597 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromElementJ_3, __pyx_t_1) < 0) __PYX_ERR(0, 4030, __pyx_L1_error)
50598 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50607 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_173updateGlobalJacobianFromElementJacobian_eb_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4054, __pyx_L1_error)
50608 __Pyx_GOTREF(__pyx_t_1);
50609 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromElementJ_4, __pyx_t_1) < 0) __PYX_ERR(0, 4054, __pyx_L1_error)
50610 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50619 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_175updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4082, __pyx_L1_error)
50620 __Pyx_GOTREF(__pyx_t_1);
50621 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_5, __pyx_t_1) < 0) __PYX_ERR(0, 4082, __pyx_L1_error)
50622 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50631 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_177updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4118, __pyx_L1_error)
50632 __Pyx_GOTREF(__pyx_t_1);
50633 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_3, __pyx_t_1) < 0) __PYX_ERR(0, 4118, __pyx_L1_error)
50634 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50643 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_179updateGlobalJacobianFromInteriorElementBoundaryFluxJacobian_eb_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4170, __pyx_L1_error)
50644 __Pyx_GOTREF(__pyx_t_1);
50645 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_6, __pyx_t_1) < 0) __PYX_ERR(0, 4170, __pyx_L1_error)
50646 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50655 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_181updateGlobalJacobianFromExteriorElementBoundaryFluxJacobian_eb_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4208, __pyx_L1_error)
50656 __Pyx_GOTREF(__pyx_t_1);
50657 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_4, __pyx_t_1) < 0) __PYX_ERR(0, 4208, __pyx_L1_error)
50658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50667 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_183calculateWeightedShape, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4261, __pyx_L1_error)
50668 __Pyx_GOTREF(__pyx_t_1);
50669 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWeightedShape, __pyx_t_1) < 0) __PYX_ERR(0, 4261, __pyx_L1_error)
50670 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50679 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_185calculateWeightedShapeGradients, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4275, __pyx_L1_error)
50680 __Pyx_GOTREF(__pyx_t_1);
50681 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWeightedShapeGradients, __pyx_t_1) < 0) __PYX_ERR(0, 4275, __pyx_L1_error)
50682 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50691 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_187calculateShape_X_weightedShape, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4291, __pyx_L1_error)
50692 __Pyx_GOTREF(__pyx_t_1);
50693 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateShape_X_weightedShape, __pyx_t_1) < 0) __PYX_ERR(0, 4291, __pyx_L1_error)
50694 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50703 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_189calculateShape_X_weightedGradShape, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4305, __pyx_L1_error)
50704 __Pyx_GOTREF(__pyx_t_1);
50705 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateShape_X_weightedGradSha, __pyx_t_1) < 0) __PYX_ERR(0, 4305, __pyx_L1_error)
50706 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50715 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_191calculateGradShape_X_weightedShape, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4321, __pyx_L1_error)
50716 __Pyx_GOTREF(__pyx_t_1);
50717 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGradShape_X_weightedSha, __pyx_t_1) < 0) __PYX_ERR(0, 4321, __pyx_L1_error)
50718 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50727 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_193calculateGradShape_X_weightedGradShape, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4337, __pyx_L1_error)
50728 __Pyx_GOTREF(__pyx_t_1);
50729 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGradShape_X_weightedGra, __pyx_t_1) < 0) __PYX_ERR(0, 4337, __pyx_L1_error)
50730 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50739 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_195calculateWeightedShapeTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4353, __pyx_L1_error)
50740 __Pyx_GOTREF(__pyx_t_1);
50741 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWeightedShapeTrace, __pyx_t_1) < 0) __PYX_ERR(0, 4353, __pyx_L1_error)
50742 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50751 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_197calculateShape_X_weightedShapeTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4369, __pyx_L1_error)
50752 __Pyx_GOTREF(__pyx_t_1);
50753 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateShape_X_weightedShapeTr, __pyx_t_1) < 0) __PYX_ERR(0, 4369, __pyx_L1_error)
50754 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50763 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_199calculateGradShape_X_weightedShapeTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4385, __pyx_L1_error)
50764 __Pyx_GOTREF(__pyx_t_1);
50765 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGradShape_X_weightedSha_2, __pyx_t_1) < 0) __PYX_ERR(0, 4385, __pyx_L1_error)
50766 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50775 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_201calculateIntegrationWeights, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4403, __pyx_L1_error)
50776 __Pyx_GOTREF(__pyx_t_1);
50777 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateIntegrationWeights, __pyx_t_1) < 0) __PYX_ERR(0, 4403, __pyx_L1_error)
50778 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50787 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_203calculateElementBoundaryIntegrationWeights, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4413, __pyx_L1_error)
50788 __Pyx_GOTREF(__pyx_t_1);
50789 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateElementBoundaryIntegrat, __pyx_t_1) < 0) __PYX_ERR(0, 4413, __pyx_L1_error)
50790 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50799 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_205calculateFiniteElementFunctionValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4425, __pyx_L1_error)
50800 __Pyx_GOTREF(__pyx_t_1);
50801 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionVa, __pyx_t_1) < 0) __PYX_ERR(0, 4425, __pyx_L1_error)
50802 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50811 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_207calculateFiniteElementFunctionGradientValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4446, __pyx_L1_error)
50812 __Pyx_GOTREF(__pyx_t_1);
50813 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionGr, __pyx_t_1) < 0) __PYX_ERR(0, 4446, __pyx_L1_error)
50814 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50823 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_209calculateFiniteElementFunctionGradientTensorValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4470, __pyx_L1_error)
50824 __Pyx_GOTREF(__pyx_t_1);
50825 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionGr_2, __pyx_t_1) < 0) __PYX_ERR(0, 4470, __pyx_L1_error)
50826 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50835 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_211calculateFiniteElementFunctionValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4496, __pyx_L1_error)
50836 __Pyx_GOTREF(__pyx_t_1);
50837 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionVa_2, __pyx_t_1) < 0) __PYX_ERR(0, 4496, __pyx_L1_error)
50838 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50847 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_213calculateFiniteElementFunctionGradientValuesTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4519, __pyx_L1_error)
50848 __Pyx_GOTREF(__pyx_t_1);
50849 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionGr_3, __pyx_t_1) < 0) __PYX_ERR(0, 4519, __pyx_L1_error)
50850 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50859 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_215calculateFlowVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4546, __pyx_L1_error)
50860 __Pyx_GOTREF(__pyx_t_1);
50861 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFlowVelocity, __pyx_t_1) < 0) __PYX_ERR(0, 4546, __pyx_L1_error)
50862 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50871 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_217updateAddJacobian_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4560, __pyx_L1_error)
50872 __Pyx_GOTREF(__pyx_t_1);
50873 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateAddJacobian_CSR, __pyx_t_1) < 0) __PYX_ERR(0, 4560, __pyx_L1_error)
50874 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50883 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_219zeroJacobian_CSR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4568, __pyx_L1_error)
50884 __Pyx_GOTREF(__pyx_t_1);
50885 if (PyDict_SetItem(__pyx_d, __pyx_n_s_zeroJacobian_CSR, __pyx_t_1) < 0) __PYX_ERR(0, 4568, __pyx_L1_error)
50886 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50895 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_221calculateInteriorElementBoundaryVelocities, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4574, __pyx_L1_error)
50896 __Pyx_GOTREF(__pyx_t_1);
50897 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorElementBoundary, __pyx_t_1) < 0) __PYX_ERR(0, 4574, __pyx_L1_error)
50898 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50907 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_223calculateExteriorElementBoundaryVelocities, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4604, __pyx_L1_error)
50908 __Pyx_GOTREF(__pyx_t_1);
50909 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorElementBoundary_3, __pyx_t_1) < 0) __PYX_ERR(0, 4604, __pyx_L1_error)
50910 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50919 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_225calculateConservationResidualPWL, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4634, __pyx_L1_error)
50920 __Pyx_GOTREF(__pyx_t_1);
50921 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualPWL, __pyx_t_1) < 0) __PYX_ERR(0, 4634, __pyx_L1_error)
50922 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50931 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_227calculateConservationJacobianPWL, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4686, __pyx_L1_error)
50932 __Pyx_GOTREF(__pyx_t_1);
50933 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationJacobianPWL, __pyx_t_1) < 0) __PYX_ERR(0, 4686, __pyx_L1_error)
50934 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50943 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_229calculateConservationFluxPWL, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4732, __pyx_L1_error)
50944 __Pyx_GOTREF(__pyx_t_1);
50945 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationFluxPWL, __pyx_t_1) < 0) __PYX_ERR(0, 4732, __pyx_L1_error)
50946 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50955 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_231setExteriorGlobalElementBoundaryVelocityValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4750, __pyx_L1_error)
50956 __Pyx_GOTREF(__pyx_t_1);
50957 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setExteriorGlobalElementBoundary, __pyx_t_1) < 0) __PYX_ERR(0, 4750, __pyx_L1_error)
50958 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50967 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_233calculateDimensionlessNumbersADR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4770, __pyx_L1_error)
50968 __Pyx_GOTREF(__pyx_t_1);
50969 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateDimensionlessNumbersADR, __pyx_t_1) < 0) __PYX_ERR(0, 4770, __pyx_L1_error)
50970 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50979 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_235calculateDimensionlessNumbersADR_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4794, __pyx_L1_error)
50980 __Pyx_GOTREF(__pyx_t_1);
50981 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateDimensionlessNumbersADR_2, __pyx_t_1) < 0) __PYX_ERR(0, 4794, __pyx_L1_error)
50982 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50991 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_237calculateCFLADR, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4822, __pyx_L1_error)
50992 __Pyx_GOTREF(__pyx_t_1);
50993 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateCFLADR, __pyx_t_1) < 0) __PYX_ERR(0, 4822, __pyx_L1_error)
50994 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51003 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_239updateInteriorElementBoundaryDiffusiveVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4836, __pyx_L1_error)
51004 __Pyx_GOTREF(__pyx_t_1);
51005 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryDif, __pyx_t_1) < 0) __PYX_ERR(0, 4836, __pyx_L1_error)
51006 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51015 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_241updateInteriorElementBoundaryDiffusiveVelocity_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4856, __pyx_L1_error)
51016 __Pyx_GOTREF(__pyx_t_1);
51017 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryDif_2, __pyx_t_1) < 0) __PYX_ERR(0, 4856, __pyx_L1_error)
51018 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51027 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_243updateExteriorElementBoundaryDiffusiveVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4880, __pyx_L1_error)
51028 __Pyx_GOTREF(__pyx_t_1);
51029 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryDif, __pyx_t_1) < 0) __PYX_ERR(0, 4880, __pyx_L1_error)
51030 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51039 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_245updateExteriorElementBoundaryDiffusiveVelocity_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4910, __pyx_L1_error)
51040 __Pyx_GOTREF(__pyx_t_1);
51041 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryDif_2, __pyx_t_1) < 0) __PYX_ERR(0, 4910, __pyx_L1_error)
51042 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51051 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_247updateInteriorElementBoundaryAdvectiveVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4934, __pyx_L1_error)
51052 __Pyx_GOTREF(__pyx_t_1);
51053 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryAdv, __pyx_t_1) < 0) __PYX_ERR(0, 4934, __pyx_L1_error)
51054 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51063 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_249updateExteriorElementBoundaryAdvectiveVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4952, __pyx_L1_error)
51064 __Pyx_GOTREF(__pyx_t_1);
51065 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryAdv, __pyx_t_1) < 0) __PYX_ERR(0, 4952, __pyx_L1_error)
51066 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51075 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_251updateInteriorElementBoundaryShockCapturingVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4979, __pyx_L1_error)
51076 __Pyx_GOTREF(__pyx_t_1);
51077 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundarySho, __pyx_t_1) < 0) __PYX_ERR(0, 4979, __pyx_L1_error)
51078 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51087 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_253updateExteriorElementBoundaryShockCapturingVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5001, __pyx_L1_error)
51088 __Pyx_GOTREF(__pyx_t_1);
51089 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundarySho, __pyx_t_1) < 0) __PYX_ERR(0, 5001, __pyx_L1_error)
51090 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51099 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_255calculateInteriorElementBoundaryAverageVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5031, __pyx_L1_error)
51100 __Pyx_GOTREF(__pyx_t_1);
51101 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorElementBoundary_2, __pyx_t_1) < 0) __PYX_ERR(0, 5031, __pyx_L1_error)
51102 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51111 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_257calculateExteriorElementBoundaryAverageVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5049, __pyx_L1_error)
51112 __Pyx_GOTREF(__pyx_t_1);
51113 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorElementBoundary_4, __pyx_t_1) < 0) __PYX_ERR(0, 5049, __pyx_L1_error)
51114 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51123 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_259calculateConservationResidualDG, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5067, __pyx_L1_error)
51124 __Pyx_GOTREF(__pyx_t_1);
51125 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualDG, __pyx_t_1) < 0) __PYX_ERR(0, 5067, __pyx_L1_error)
51126 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51135 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_261calculateConservationResidual, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5075, __pyx_L1_error)
51136 __Pyx_GOTREF(__pyx_t_1);
51137 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidual, __pyx_t_1) < 0) __PYX_ERR(0, 5075, __pyx_L1_error)
51138 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51147 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_263calculateConservationResidualGlobalBoundaries, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5095, __pyx_L1_error)
51148 __Pyx_GOTREF(__pyx_t_1);
51149 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateConservationResidualGlo, __pyx_t_1) < 0) __PYX_ERR(0, 5095, __pyx_L1_error)
51150 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51159 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_265copyGlobalElementBoundaryVelocityToElementBoundary, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5127, __pyx_L1_error)
51160 __Pyx_GOTREF(__pyx_t_1);
51161 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyGlobalElementBoundaryVelocit, __pyx_t_1) < 0) __PYX_ERR(0, 5127, __pyx_L1_error)
51162 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51171 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_267loadBoundaryFluxIntoGlobalElementBoundaryVelocity, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5153, __pyx_L1_error)
51172 __Pyx_GOTREF(__pyx_t_1);
51173 if (PyDict_SetItem(__pyx_d, __pyx_n_s_loadBoundaryFluxIntoGlobalElemen, __pyx_t_1) < 0) __PYX_ERR(0, 5153, __pyx_L1_error)
51174 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51183 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_269calculateInteriorNumericalTrace_Potential, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5171, __pyx_L1_error)
51184 __Pyx_GOTREF(__pyx_t_1);
51185 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateInteriorNumericalTrace, __pyx_t_1) < 0) __PYX_ERR(0, 5171, __pyx_L1_error)
51186 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51195 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_271calculateExteriorNumericalTrace_Potential, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5193, __pyx_L1_error)
51196 __Pyx_GOTREF(__pyx_t_1);
51197 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateExteriorNumericalTrace, __pyx_t_1) < 0) __PYX_ERR(0, 5193, __pyx_L1_error)
51198 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51207 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_273updateInteriorElementBoundary_MixedForm_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5217, __pyx_L1_error)
51208 __Pyx_GOTREF(__pyx_t_1);
51209 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundary_Mi, __pyx_t_1) < 0) __PYX_ERR(0, 5217, __pyx_L1_error)
51210 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51219 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_275updateInteriorElementBoundary_MixedForm_weakJacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5241, __pyx_L1_error)
51220 __Pyx_GOTREF(__pyx_t_1);
51221 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundary_Mi_2, __pyx_t_1) < 0) __PYX_ERR(0, 5241, __pyx_L1_error)
51222 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51231 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_277updateExteriorElementBoundary_MixedForm_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5271, __pyx_L1_error)
51232 __Pyx_GOTREF(__pyx_t_1);
51233 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundary_Mi, __pyx_t_1) < 0) __PYX_ERR(0, 5271, __pyx_L1_error)
51234 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51243 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_279updateExteriorElementBoundary_MixedForm_weakJacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5295, __pyx_L1_error)
51244 __Pyx_GOTREF(__pyx_t_1);
51245 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundary_Mi_2, __pyx_t_1) < 0) __PYX_ERR(0, 5295, __pyx_L1_error)
51246 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51255 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_281updatePotential_MixedForm_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5323, __pyx_L1_error)
51256 __Pyx_GOTREF(__pyx_t_1);
51257 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updatePotential_MixedForm_weak, __pyx_t_1) < 0) __PYX_ERR(0, 5323, __pyx_L1_error)
51258 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51267 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_283updatePotential_MixedForm_weakJacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5337, __pyx_L1_error)
51268 __Pyx_GOTREF(__pyx_t_1);
51269 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updatePotential_MixedForm_weakJa, __pyx_t_1) < 0) __PYX_ERR(0, 5337, __pyx_L1_error)
51270 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51279 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_285calculateVelocityQuadrature_MixedForm, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5353, __pyx_L1_error)
51280 __Pyx_GOTREF(__pyx_t_1);
51281 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVelocityQuadrature_Mixe, __pyx_t_1) < 0) __PYX_ERR(0, 5353, __pyx_L1_error)
51282 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51291 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_287calculateVelocityQuadrature_MixedForm_Jacobian, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5377, __pyx_L1_error)
51292 __Pyx_GOTREF(__pyx_t_1);
51293 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVelocityQuadrature_Mixe_2, __pyx_t_1) < 0) __PYX_ERR(0, 5377, __pyx_L1_error)
51294 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51303 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_289calculateVelocityProjectionMatrixLDG, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5407, __pyx_L1_error)
51304 __Pyx_GOTREF(__pyx_t_1);
51305 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVelocityProjectionMatri, __pyx_t_1) < 0) __PYX_ERR(0, 5407, __pyx_L1_error)
51306 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51315 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_291updateDiffusion_MixedForm_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5417, __pyx_L1_error)
51316 __Pyx_GOTREF(__pyx_t_1);
51317 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_MixedForm_weak, __pyx_t_1) < 0) __PYX_ERR(0, 5417, __pyx_L1_error)
51318 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51327 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_293updateDiffusionJacobian_MixedForm_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5433, __pyx_L1_error)
51328 __Pyx_GOTREF(__pyx_t_1);
51329 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_MixedFor, __pyx_t_1) < 0) __PYX_ERR(0, 5433, __pyx_L1_error)
51330 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51339 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_295estimate_mt, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5463, __pyx_L1_error)
51340 __Pyx_GOTREF(__pyx_t_1);
51341 if (PyDict_SetItem(__pyx_d, __pyx_n_s_estimate_mt, __pyx_t_1) < 0) __PYX_ERR(0, 5463, __pyx_L1_error)
51342 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51351 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_297estimate_mt_lowmem, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5477, __pyx_L1_error)
51352 __Pyx_GOTREF(__pyx_t_1);
51353 if (PyDict_SetItem(__pyx_d, __pyx_n_s_estimate_mt_lowmem, __pyx_t_1) < 0) __PYX_ERR(0, 5477, __pyx_L1_error)
51354 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51363 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_299scalarDomainIntegral, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5491, __pyx_L1_error)
51364 __Pyx_GOTREF(__pyx_t_1);
51365 if (PyDict_SetItem(__pyx_d, __pyx_n_s_scalarDomainIntegral, __pyx_t_1) < 0) __PYX_ERR(0, 5491, __pyx_L1_error)
51366 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51375 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_301scalarHeavisideDomainIntegral, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5501, __pyx_L1_error)
51376 __Pyx_GOTREF(__pyx_t_1);
51377 if (PyDict_SetItem(__pyx_d, __pyx_n_s_scalarHeavisideDomainIntegral, __pyx_t_1) < 0) __PYX_ERR(0, 5501, __pyx_L1_error)
51378 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51387 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_303scalarSmoothedHeavisideDomainIntegral, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5511, __pyx_L1_error)
51388 __Pyx_GOTREF(__pyx_t_1);
51389 if (PyDict_SetItem(__pyx_d, __pyx_n_s_scalarSmoothedHeavisideDomainInt, __pyx_t_1) < 0) __PYX_ERR(0, 5511, __pyx_L1_error)
51390 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51399 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_305fluxDomainBoundaryIntegral, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5525, __pyx_L1_error)
51400 __Pyx_GOTREF(__pyx_t_1);
51401 if (PyDict_SetItem(__pyx_d, __pyx_n_s_fluxDomainBoundaryIntegral, __pyx_t_1) < 0) __PYX_ERR(0, 5525, __pyx_L1_error)
51402 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51411 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_307fluxDomainBoundaryIntegralFromVector, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5541, __pyx_L1_error)
51412 __Pyx_GOTREF(__pyx_t_1);
51413 if (PyDict_SetItem(__pyx_d, __pyx_n_s_fluxDomainBoundaryIntegralFromVe, __pyx_t_1) < 0) __PYX_ERR(0, 5541, __pyx_L1_error)
51414 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51423 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_309copyExteriorElementBoundaryValuesFromElementBoundaryValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5561, __pyx_L1_error)
51424 __Pyx_GOTREF(__pyx_t_1);
51425 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyExteriorElementBoundaryValue, __pyx_t_1) < 0) __PYX_ERR(0, 5561, __pyx_L1_error)
51426 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51435 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_311copyExteriorElementBoundaryValuesToElementBoundaryValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5585, __pyx_L1_error)
51436 __Pyx_GOTREF(__pyx_t_1);
51437 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyExteriorElementBoundaryValue_2, __pyx_t_1) < 0) __PYX_ERR(0, 5585, __pyx_L1_error)
51438 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51447 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_313copyExteriorElementBoundaryValuesToGlobalElementBoundaryValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5609, __pyx_L1_error)
51448 __Pyx_GOTREF(__pyx_t_1);
51449 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyExteriorElementBoundaryValue_3, __pyx_t_1) < 0) __PYX_ERR(0, 5609, __pyx_L1_error)
51450 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51459 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_315copyExteriorElementBoundaryValuesFromGlobalElementBoundaryValues, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5629, __pyx_L1_error)
51460 __Pyx_GOTREF(__pyx_t_1);
51461 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyExteriorElementBoundaryValue_4, __pyx_t_1) < 0) __PYX_ERR(0, 5629, __pyx_L1_error)
51462 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51471 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_317computeC0P1InterpolantDGP0, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5649, __pyx_L1_error)
51472 __Pyx_GOTREF(__pyx_t_1);
51473 if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeC0P1InterpolantDGP0, __pyx_t_1) < 0) __PYX_ERR(0, 5649, __pyx_L1_error)
51474 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51483 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_319computeC0P1InterpolantNCP1, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5671, __pyx_L1_error)
51484 __Pyx_GOTREF(__pyx_t_1);
51485 if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeC0P1InterpolantNCP1, __pyx_t_1) < 0) __PYX_ERR(0, 5671, __pyx_L1_error)
51486 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51495 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_321computeC0P1InterpolantDGP12, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5693, __pyx_L1_error)
51496 __Pyx_GOTREF(__pyx_t_1);
51497 if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeC0P1InterpolantDGP12, __pyx_t_1) < 0) __PYX_ERR(0, 5693, __pyx_L1_error)
51498 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51507 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_323parametricFiniteElementSpace_getValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5715, __pyx_L1_error)
51508 __Pyx_GOTREF(__pyx_t_1);
51509 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_6, __pyx_t_1) < 0) __PYX_ERR(0, 5715, __pyx_L1_error)
51510 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51519 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_325parametricFiniteElementSpace_getGradientValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5733, __pyx_L1_error)
51520 __Pyx_GOTREF(__pyx_t_1);
51521 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricFiniteElementSpace_get_7, __pyx_t_1) < 0) __PYX_ERR(0, 5733, __pyx_L1_error)
51522 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51531 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_327parametricMaps_getValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5755, __pyx_L1_error)
51532 __Pyx_GOTREF(__pyx_t_1);
51533 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getValuesGlobalEx, __pyx_t_1) < 0) __PYX_ERR(0, 5755, __pyx_L1_error)
51534 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51543 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_329parametricMaps_getInverseValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5777, __pyx_L1_error)
51544 __Pyx_GOTREF(__pyx_t_1);
51545 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getInverseValuesG, __pyx_t_1) < 0) __PYX_ERR(0, 5777, __pyx_L1_error)
51546 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51555 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_331parametricMaps_getJacobianValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5801, __pyx_L1_error)
51556 __Pyx_GOTREF(__pyx_t_1);
51557 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getJacobianValues_3, __pyx_t_1) < 0) __PYX_ERR(0, 5801, __pyx_L1_error)
51558 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51567 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_333parametricMaps_getJacobianValuesGlobalExteriorTrace_movingDomain, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5864, __pyx_L1_error)
51568 __Pyx_GOTREF(__pyx_t_1);
51569 if (PyDict_SetItem(__pyx_d, __pyx_n_s_parametricMaps_getJacobianValues_4, __pyx_t_1) < 0) __PYX_ERR(0, 5864, __pyx_L1_error)
51570 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51579 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_335calculateWeightedShapeGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5929, __pyx_L1_error)
51580 __Pyx_GOTREF(__pyx_t_1);
51581 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateWeightedShapeGlobalExte, __pyx_t_1) < 0) __PYX_ERR(0, 5929, __pyx_L1_error)
51582 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51591 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_337calculateShape_X_weightedShapeGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5949, __pyx_L1_error)
51592 __Pyx_GOTREF(__pyx_t_1);
51593 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateShape_X_weightedShapeGl, __pyx_t_1) < 0) __PYX_ERR(0, 5949, __pyx_L1_error)
51594 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51603 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_339calculateGradShape_X_weightedShapeGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5969, __pyx_L1_error)
51604 __Pyx_GOTREF(__pyx_t_1);
51605 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGradShape_X_weightedSha_3, __pyx_t_1) < 0) __PYX_ERR(0, 5969, __pyx_L1_error)
51606 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51615 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_341calculateGlobalExteriorElementBoundaryIntegrationWeights, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5991, __pyx_L1_error)
51616 __Pyx_GOTREF(__pyx_t_1);
51617 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateGlobalExteriorElementBo, __pyx_t_1) < 0) __PYX_ERR(0, 5991, __pyx_L1_error)
51618 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51627 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_343calculateFiniteElementFunctionValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6001, __pyx_L1_error)
51628 __Pyx_GOTREF(__pyx_t_1);
51629 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionVa_3, __pyx_t_1) < 0) __PYX_ERR(0, 6001, __pyx_L1_error)
51630 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51639 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_345calculateFiniteElementFunctionGradientValuesGlobalExteriorTrace, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6028, __pyx_L1_error)
51640 __Pyx_GOTREF(__pyx_t_1);
51641 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateFiniteElementFunctionGr_4, __pyx_t_1) < 0) __PYX_ERR(0, 6028, __pyx_L1_error)
51642 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51651 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_347copyBetweenFreeUnknownsAndGlobalUnknowns, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6059, __pyx_L1_error)
51652 __Pyx_GOTREF(__pyx_t_1);
51653 if (PyDict_SetItem(__pyx_d, __pyx_n_s_copyBetweenFreeUnknownsAndGlobal, __pyx_t_1) < 0) __PYX_ERR(0, 6059, __pyx_L1_error)
51654 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51663 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_349updateInteriorElementBoundaryDiffusionAdjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6084, __pyx_L1_error)
51664 __Pyx_GOTREF(__pyx_t_1);
51665 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryDif_3, __pyx_t_1) < 0) __PYX_ERR(0, 6084, __pyx_L1_error)
51666 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51675 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_351updateExteriorElementBoundaryDiffusionAdjoint, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6114, __pyx_L1_error)
51676 __Pyx_GOTREF(__pyx_t_1);
51677 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryDif_3, __pyx_t_1) < 0) __PYX_ERR(0, 6114, __pyx_L1_error)
51678 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51687 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_353updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6146, __pyx_L1_error)
51688 __Pyx_GOTREF(__pyx_t_1);
51689 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_7, __pyx_t_1) < 0) __PYX_ERR(0, 6146, __pyx_L1_error)
51690 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51699 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_355updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6200, __pyx_L1_error)
51700 __Pyx_GOTREF(__pyx_t_1);
51701 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_5, __pyx_t_1) < 0) __PYX_ERR(0, 6200, __pyx_L1_error)
51702 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51711 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_357updateInteriorElementBoundaryDiffusionAdjoint_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6254, __pyx_L1_error)
51712 __Pyx_GOTREF(__pyx_t_1);
51713 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateInteriorElementBoundaryDif_4, __pyx_t_1) < 0) __PYX_ERR(0, 6254, __pyx_L1_error)
51714 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51723 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_359updateExteriorElementBoundaryDiffusionAdjoint_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6288, __pyx_L1_error)
51724 __Pyx_GOTREF(__pyx_t_1);
51725 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateExteriorElementBoundaryDif_4, __pyx_t_1) < 0) __PYX_ERR(0, 6288, __pyx_L1_error)
51726 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51735 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_361updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_dense_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6324, __pyx_L1_error)
51736 __Pyx_GOTREF(__pyx_t_1);
51737 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_8, __pyx_t_1) < 0) __PYX_ERR(0, 6324, __pyx_L1_error)
51738 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51747 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_363updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_dense_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6382, __pyx_L1_error)
51748 __Pyx_GOTREF(__pyx_t_1);
51749 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_6, __pyx_t_1) < 0) __PYX_ERR(0, 6382, __pyx_L1_error)
51750 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51759 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_365updateGlobalJacobianFromInteriorElementBoundaryDiffusionAdjoint_CSR_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6440, __pyx_L1_error)
51760 __Pyx_GOTREF(__pyx_t_1);
51761 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromInterior_9, __pyx_t_1) < 0) __PYX_ERR(0, 6440, __pyx_L1_error)
51762 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51771 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_367updateGlobalJacobianFromExteriorElementBoundaryDiffusionAdjoint_CSR_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6504, __pyx_L1_error)
51772 __Pyx_GOTREF(__pyx_t_1);
51773 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateGlobalJacobianFromExterior_7, __pyx_t_1) < 0) __PYX_ERR(0, 6504, __pyx_L1_error)
51774 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51783 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_369update_f_movingDomain, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6568, __pyx_L1_error)
51784 __Pyx_GOTREF(__pyx_t_1);
51785 if (PyDict_SetItem(__pyx_d, __pyx_n_s_update_f_movingDomain, __pyx_t_1) < 0) __PYX_ERR(0, 6568, __pyx_L1_error)
51786 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51795 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_371update_f_movingDomain_constantMass, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6586, __pyx_L1_error)
51796 __Pyx_GOTREF(__pyx_t_1);
51797 if (PyDict_SetItem(__pyx_d, __pyx_n_s_update_f_movingDomain_constantMa, __pyx_t_1) < 0) __PYX_ERR(0, 6586, __pyx_L1_error)
51798 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51807 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_373updateStress_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6601, __pyx_L1_error)
51808 __Pyx_GOTREF(__pyx_t_1);
51809 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateStress_weak, __pyx_t_1) < 0) __PYX_ERR(0, 6601, __pyx_L1_error)
51810 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51819 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_375updateStressJacobian_weak, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6619, __pyx_L1_error)
51820 __Pyx_GOTREF(__pyx_t_1);
51821 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateStressJacobian_weak, __pyx_t_1) < 0) __PYX_ERR(0, 6619, __pyx_L1_error)
51822 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51831 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_377projectFromNodalInterpolationConditions, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6669, __pyx_L1_error)
51832 __Pyx_GOTREF(__pyx_t_1);
51833 if (PyDict_SetItem(__pyx_d, __pyx_n_s_projectFromNodalInterpolationCon, __pyx_t_1) < 0) __PYX_ERR(0, 6669, __pyx_L1_error)
51834 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51843 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_379calculateVelocityQuadrature_MixedForm2_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6683, __pyx_L1_error)
51844 __Pyx_GOTREF(__pyx_t_1);
51845 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVelocityQuadrature_Mixe_3, __pyx_t_1) < 0) __PYX_ERR(0, 6683, __pyx_L1_error)
51846 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51855 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_381updateDiffusion_MixedForm_weak_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6708, __pyx_L1_error)
51856 __Pyx_GOTREF(__pyx_t_1);
51857 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusion_MixedForm_weak_s, __pyx_t_1) < 0) __PYX_ERR(0, 6708, __pyx_L1_error)
51858 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51867 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_383calculateVelocityQuadrature_MixedForm2_Jacobian_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6729, __pyx_L1_error)
51868 __Pyx_GOTREF(__pyx_t_1);
51869 if (PyDict_SetItem(__pyx_d, __pyx_n_s_calculateVelocityQuadrature_Mixe_4, __pyx_t_1) < 0) __PYX_ERR(0, 6729, __pyx_L1_error)
51870 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51879 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_13cfemIntegrals_385updateDiffusionJacobian_MixedForm_weak_sd, NULL, __pyx_n_s_cfemIntegrals);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6759, __pyx_L1_error)
51880 __Pyx_GOTREF(__pyx_t_1);
51881 if (PyDict_SetItem(__pyx_d, __pyx_n_s_updateDiffusionJacobian_MixedFor_2, __pyx_t_1) < 0) __PYX_ERR(0, 6759, __pyx_L1_error)
51882 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51889 __pyx_t_1 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
51890 __Pyx_GOTREF(__pyx_t_1);
51891 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
51892 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51906 __Pyx_XDECREF(__pyx_t_1);
51909 __Pyx_AddTraceback(
"init cfemIntegrals", __pyx_clineno, __pyx_lineno, __pyx_filename);
51912 }
else if (!PyErr_Occurred()) {
51913 PyErr_SetString(PyExc_ImportError,
"init cfemIntegrals");
51916 __Pyx_RefNannyFinishContext();
51917 #if CYTHON_PEP489_MULTI_PHASE_INIT
51918 return (__pyx_m != NULL) ? 0 : -1;
51919 #elif PY_MAJOR_VERSION >= 3
51928 #if CYTHON_REFNANNY
51929 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
51930 PyObject *m = NULL, *p = NULL;
51932 m = PyImport_ImportModule(modname);
51934 p = PyObject_GetAttrString(m,
"RefNannyAPI");
51936 r = PyLong_AsVoidPtr(p);
51940 return (__Pyx_RefNannyAPIStruct *)
r;
51945 #if CYTHON_USE_TYPE_SLOTS
51946 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
51947 PyTypeObject* tp = Py_TYPE(obj);
51948 if (likely(tp->tp_getattro))
51949 return tp->tp_getattro(obj, attr_name);
51950 #if PY_MAJOR_VERSION < 3
51951 if (likely(tp->tp_getattr))
51952 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
51954 return PyObject_GetAttr(obj, attr_name);
51959 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
51960 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
51961 if (unlikely(!result)) {
51962 PyErr_Format(PyExc_NameError,
51963 #
if PY_MAJOR_VERSION >= 3
51964 "name '%U' is not defined", name);
51966 "name '%.200s' is not defined", PyString_AS_STRING(name));
51973 static void __Pyx_RaiseArgtupleInvalid(
51974 const char* func_name,
51976 Py_ssize_t num_min,
51977 Py_ssize_t num_max,
51978 Py_ssize_t num_found)
51980 Py_ssize_t num_expected;
51981 const char *more_or_less;
51982 if (num_found < num_min) {
51983 num_expected = num_min;
51984 more_or_less =
"at least";
51986 num_expected = num_max;
51987 more_or_less =
"at most";
51990 more_or_less =
"exactly";
51992 PyErr_Format(PyExc_TypeError,
51993 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
51994 func_name, more_or_less, num_expected,
51995 (num_expected == 1) ?
"" :
"s", num_found);
51999 static void __Pyx_RaiseDoubleKeywordsError(
52000 const char* func_name,
52003 PyErr_Format(PyExc_TypeError,
52004 #
if PY_MAJOR_VERSION >= 3
52005 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
52007 "%s() got multiple values for keyword argument '%s'", func_name,
52008 PyString_AsString(kw_name));
52013 static int __Pyx_ParseOptionalKeywords(
52015 PyObject **argnames[],
52017 PyObject *values[],
52018 Py_ssize_t num_pos_args,
52019 const char* function_name)
52021 PyObject *key = 0, *value = 0;
52022 Py_ssize_t
pos = 0;
52024 PyObject*** first_kw_arg = argnames + num_pos_args;
52025 while (PyDict_Next(kwds, &
pos, &key, &value)) {
52026 name = first_kw_arg;
52027 while (*name && (**name != key)) name++;
52029 values[name-argnames] = value;
52032 name = first_kw_arg;
52033 #if PY_MAJOR_VERSION < 3
52034 if (likely(PyString_Check(key))) {
52036 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
52037 && _PyString_Eq(**name, key)) {
52038 values[name-argnames] = value;
52043 if (*name)
continue;
52045 PyObject*** argname = argnames;
52046 while (argname != first_kw_arg) {
52047 if ((**argname == key) || (
52048 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
52049 && _PyString_Eq(**argname, key))) {
52050 goto arg_passed_twice;
52057 if (likely(PyUnicode_Check(key))) {
52059 int cmp = (**name == key) ? 0 :
52060 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
52061 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
52063 PyUnicode_Compare(**name, key);
52064 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
52066 values[name-argnames] = value;
52071 if (*name)
continue;
52073 PyObject*** argname = argnames;
52074 while (argname != first_kw_arg) {
52075 int cmp = (**argname == key) ? 0 :
52076 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
52077 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
52079 PyUnicode_Compare(**argname, key);
52080 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
52081 if (cmp == 0)
goto arg_passed_twice;
52086 goto invalid_keyword_type;
52088 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
52090 goto invalid_keyword;
52095 __Pyx_RaiseDoubleKeywordsError(function_name, key);
52097 invalid_keyword_type:
52098 PyErr_Format(PyExc_TypeError,
52099 "%.200s() keywords must be strings", function_name);
52102 PyErr_Format(PyExc_TypeError,
52103 #
if PY_MAJOR_VERSION < 3
52104 "%.200s() got an unexpected keyword argument '%.200s'",
52105 function_name, PyString_AsString(key));
52107 "%s() got an unexpected keyword argument '%U'",
52108 function_name, key);
52115 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
52117 if (unlikely(!type)) {
52118 PyErr_SetString(PyExc_SystemError,
"Missing type object");
52122 #if PY_MAJOR_VERSION == 2
52123 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
52127 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
52129 PyErr_Format(PyExc_TypeError,
52130 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
52131 name, type->tp_name, Py_TYPE(obj)->tp_name);
52136 #if CYTHON_FAST_PYCALL
52137 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
52138 PyObject *globals) {
52140 PyThreadState *tstate = __Pyx_PyThreadState_Current;
52141 PyObject **fastlocals;
52144 assert(globals != NULL);
52149 assert(tstate != NULL);
52150 f = PyFrame_New(tstate, co, globals, NULL);
52154 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
52155 for (i = 0; i < na; i++) {
52157 fastlocals[i] = *args++;
52159 result = PyEval_EvalFrameEx(
f,0);
52160 ++tstate->recursion_depth;
52162 --tstate->recursion_depth;
52165 #if 1 || PY_VERSION_HEX < 0x030600B1
52166 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
52167 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
52168 PyObject *globals = PyFunction_GET_GLOBALS(func);
52169 PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
52171 #if PY_MAJOR_VERSION >= 3
52174 PyObject *kwtuple, **k;
52179 assert(kwargs == NULL || PyDict_Check(kwargs));
52180 nk = kwargs ? PyDict_Size(kwargs) : 0;
52181 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
52185 #
if PY_MAJOR_VERSION >= 3
52186 co->co_kwonlyargcount == 0 &&
52188 likely(kwargs == NULL || nk == 0) &&
52189 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
52190 if (argdefs == NULL && co->co_argcount == nargs) {
52191 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
52194 else if (nargs == 0 && argdefs != NULL
52195 && co->co_argcount == Py_SIZE(argdefs)) {
52198 args = &PyTuple_GET_ITEM(argdefs, 0);
52199 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
52203 if (kwargs != NULL) {
52205 kwtuple = PyTuple_New(2 * nk);
52206 if (kwtuple == NULL) {
52210 k = &PyTuple_GET_ITEM(kwtuple, 0);
52212 while (PyDict_Next(kwargs, &
pos, &k[i], &k[i+1])) {
52223 closure = PyFunction_GET_CLOSURE(func);
52224 #if PY_MAJOR_VERSION >= 3
52225 kwdefs = PyFunction_GET_KW_DEFAULTS(func);
52227 if (argdefs != NULL) {
52228 d = &PyTuple_GET_ITEM(argdefs, 0);
52229 nd = Py_SIZE(argdefs);
52235 #if PY_MAJOR_VERSION >= 3
52236 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
52239 d, (
int)nd, kwdefs, closure);
52241 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
52244 d, (
int)nd, closure);
52246 Py_XDECREF(kwtuple);
52248 Py_LeaveRecursiveCall();
52255 #if CYTHON_COMPILING_IN_CPYTHON
52256 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
52258 ternaryfunc call = Py_TYPE(func)->tp_call;
52259 if (unlikely(!call))
52260 return PyObject_Call(func, arg, kw);
52261 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
52263 result = (*call)(func, arg, kw);
52264 Py_LeaveRecursiveCall();
52265 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
52268 "NULL result without error in PyObject_Call");
52275 #if CYTHON_COMPILING_IN_CPYTHON
52276 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
52277 PyObject *
self, *result;
52279 cfunc = PyCFunction_GET_FUNCTION(func);
52280 self = PyCFunction_GET_SELF(func);
52281 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
52283 result = cfunc(
self, arg);
52284 Py_LeaveRecursiveCall();
52285 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
52288 "NULL result without error in PyObject_Call");
52295 #if CYTHON_COMPILING_IN_CPYTHON
52296 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
52297 #if CYTHON_FAST_PYCALL
52298 if (PyFunction_Check(func)) {
52299 return __Pyx_PyFunction_FastCall(func, NULL, 0);
52302 #ifdef __Pyx_CyFunction_USED
52303 if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
52305 if (likely(PyCFunction_Check(func)))
52308 if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
52309 return __Pyx_PyObject_CallMethO(func, NULL);
52312 return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
52317 #if CYTHON_FAST_PYCCALL
52318 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
52319 PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
52320 PyCFunction meth = PyCFunction_GET_FUNCTION(func);
52321 PyObject *
self = PyCFunction_GET_SELF(func);
52322 int flags = PyCFunction_GET_FLAGS(func);
52323 assert(PyCFunction_Check(func));
52324 assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
52325 assert(nargs >= 0);
52326 assert(nargs == 0 || args != NULL);
52330 assert(!PyErr_Occurred());
52331 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
52332 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self, args, nargs, NULL);
52334 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self, args, nargs);
52340 #if CYTHON_COMPILING_IN_CPYTHON
52341 static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
52343 PyObject *args = PyTuple_New(1);
52344 if (unlikely(!args))
return NULL;
52346 PyTuple_SET_ITEM(args, 0, arg);
52347 result = __Pyx_PyObject_Call(func, args, NULL);
52351 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
52352 #if CYTHON_FAST_PYCALL
52353 if (PyFunction_Check(func)) {
52354 return __Pyx_PyFunction_FastCall(func, &arg, 1);
52357 if (likely(PyCFunction_Check(func))) {
52358 if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
52359 return __Pyx_PyObject_CallMethO(func, arg);
52360 #if CYTHON_FAST_PYCCALL
52361 }
else if (__Pyx_PyFastCFunction_Check(func)) {
52362 return __Pyx_PyCFunction_FastCall(func, &arg, 1);
52366 return __Pyx__PyObject_CallOneArg(func, arg);
52369 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
52371 PyObject *args = PyTuple_Pack(1, arg);
52372 if (unlikely(!args))
return NULL;
52373 result = __Pyx_PyObject_Call(func, args, NULL);
52380 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
52381 PyErr_Format(PyExc_ValueError,
52382 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T
"d)", expected);
52386 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
52387 PyErr_Format(PyExc_ValueError,
52388 "need more than %" CYTHON_FORMAT_SSIZE_T
"d value%.1s to unpack",
52389 index, (index == 1) ?
"" :
"s");
52393 static CYTHON_INLINE
int __Pyx_IterFinish(
void) {
52394 #if CYTHON_FAST_THREAD_STATE
52395 PyThreadState *tstate = __Pyx_PyThreadState_Current;
52396 PyObject* exc_type = tstate->curexc_type;
52397 if (unlikely(exc_type)) {
52398 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
52399 PyObject *exc_value, *exc_tb;
52400 exc_value = tstate->curexc_value;
52401 exc_tb = tstate->curexc_traceback;
52402 tstate->curexc_type = 0;
52403 tstate->curexc_value = 0;
52404 tstate->curexc_traceback = 0;
52405 Py_DECREF(exc_type);
52406 Py_XDECREF(exc_value);
52407 Py_XDECREF(exc_tb);
52415 if (unlikely(PyErr_Occurred())) {
52416 if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
52428 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
52429 if (unlikely(retval)) {
52431 __Pyx_RaiseTooManyValuesError(expected);
52434 return __Pyx_IterFinish();
52440 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
52441 if (unlikely(!type)) {
52442 PyErr_SetString(PyExc_SystemError,
"Missing type object");
52445 if (likely(__Pyx_TypeCheck(obj, type)))
52447 PyErr_Format(PyExc_TypeError,
"Cannot convert %.200s to %.200s",
52448 Py_TYPE(obj)->tp_name, type->tp_name);
52453 #if CYTHON_USE_EXC_INFO_STACK
52454 static _PyErr_StackItem *
52455 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
52457 _PyErr_StackItem *exc_info = tstate->exc_info;
52458 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
52459 exc_info->previous_item != NULL)
52461 exc_info = exc_info->previous_item;
52468 #if CYTHON_FAST_THREAD_STATE
52469 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
52470 #if CYTHON_USE_EXC_INFO_STACK
52471 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
52472 *type = exc_info->exc_type;
52473 *value = exc_info->exc_value;
52474 *tb = exc_info->exc_traceback;
52476 *type = tstate->exc_type;
52477 *value = tstate->exc_value;
52478 *tb = tstate->exc_traceback;
52481 Py_XINCREF(*value);
52484 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
52485 PyObject *tmp_type, *tmp_value, *tmp_tb;
52486 #if CYTHON_USE_EXC_INFO_STACK
52487 _PyErr_StackItem *exc_info = tstate->exc_info;
52488 tmp_type = exc_info->exc_type;
52489 tmp_value = exc_info->exc_value;
52490 tmp_tb = exc_info->exc_traceback;
52491 exc_info->exc_type = type;
52492 exc_info->exc_value = value;
52493 exc_info->exc_traceback = tb;
52495 tmp_type = tstate->exc_type;
52496 tmp_value = tstate->exc_value;
52497 tmp_tb = tstate->exc_traceback;
52498 tstate->exc_type = type;
52499 tstate->exc_value = value;
52500 tstate->exc_traceback = tb;
52502 Py_XDECREF(tmp_type);
52503 Py_XDECREF(tmp_value);
52504 Py_XDECREF(tmp_tb);
52509 #if CYTHON_FAST_THREAD_STATE
52510 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
52512 n = PyTuple_GET_SIZE(tuple);
52513 #if PY_MAJOR_VERSION >= 3
52514 for (i=0; i<
n; i++) {
52515 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
52518 for (i=0; i<
n; i++) {
52519 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
52523 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
52524 PyObject *exc_type = tstate->curexc_type;
52525 if (exc_type == err)
return 1;
52526 if (unlikely(!exc_type))
return 0;
52527 if (unlikely(PyTuple_Check(err)))
52528 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
52529 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
52534 #if CYTHON_FAST_THREAD_STATE
52535 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
52537 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
52540 PyObject *local_type, *local_value, *local_tb;
52541 #if CYTHON_FAST_THREAD_STATE
52542 PyObject *tmp_type, *tmp_value, *tmp_tb;
52543 local_type = tstate->curexc_type;
52544 local_value = tstate->curexc_value;
52545 local_tb = tstate->curexc_traceback;
52546 tstate->curexc_type = 0;
52547 tstate->curexc_value = 0;
52548 tstate->curexc_traceback = 0;
52550 PyErr_Fetch(&local_type, &local_value, &local_tb);
52552 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
52553 #if CYTHON_FAST_THREAD_STATE
52554 if (unlikely(tstate->curexc_type))
52556 if (unlikely(PyErr_Occurred()))
52559 #if PY_MAJOR_VERSION >= 3
52561 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
52565 Py_XINCREF(local_tb);
52566 Py_XINCREF(local_type);
52567 Py_XINCREF(local_value);
52568 *type = local_type;
52569 *value = local_value;
52571 #if CYTHON_FAST_THREAD_STATE
52572 #if CYTHON_USE_EXC_INFO_STACK
52574 _PyErr_StackItem *exc_info = tstate->exc_info;
52575 tmp_type = exc_info->exc_type;
52576 tmp_value = exc_info->exc_value;
52577 tmp_tb = exc_info->exc_traceback;
52578 exc_info->exc_type = local_type;
52579 exc_info->exc_value = local_value;
52580 exc_info->exc_traceback = local_tb;
52583 tmp_type = tstate->exc_type;
52584 tmp_value = tstate->exc_value;
52585 tmp_tb = tstate->exc_traceback;
52586 tstate->exc_type = local_type;
52587 tstate->exc_value = local_value;
52588 tstate->exc_traceback = local_tb;
52590 Py_XDECREF(tmp_type);
52591 Py_XDECREF(tmp_value);
52592 Py_XDECREF(tmp_tb);
52594 PyErr_SetExcInfo(local_type, local_value, local_tb);
52601 Py_XDECREF(local_type);
52602 Py_XDECREF(local_value);
52603 Py_XDECREF(local_tb);
52608 #if CYTHON_FAST_THREAD_STATE
52609 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
52610 PyObject *tmp_type, *tmp_value, *tmp_tb;
52611 tmp_type = tstate->curexc_type;
52612 tmp_value = tstate->curexc_value;
52613 tmp_tb = tstate->curexc_traceback;
52614 tstate->curexc_type = type;
52615 tstate->curexc_value = value;
52616 tstate->curexc_traceback = tb;
52617 Py_XDECREF(tmp_type);
52618 Py_XDECREF(tmp_value);
52619 Py_XDECREF(tmp_tb);
52621 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
52622 *type = tstate->curexc_type;
52623 *value = tstate->curexc_value;
52624 *tb = tstate->curexc_traceback;
52625 tstate->curexc_type = 0;
52626 tstate->curexc_value = 0;
52627 tstate->curexc_traceback = 0;
52632 #if PY_MAJOR_VERSION < 3
52633 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
52634 CYTHON_UNUSED PyObject *cause) {
52635 __Pyx_PyThreadState_declare
52637 if (!value || value == Py_None)
52641 if (!tb || tb == Py_None)
52645 if (!PyTraceBack_Check(tb)) {
52646 PyErr_SetString(PyExc_TypeError,
52647 "raise: arg 3 must be a traceback or None");
52651 if (PyType_Check(type)) {
52652 #if CYTHON_COMPILING_IN_PYPY
52654 Py_INCREF(Py_None);
52658 PyErr_NormalizeException(&type, &value, &tb);
52661 PyErr_SetString(PyExc_TypeError,
52662 "instance exception may not have a separate value");
52666 type = (PyObject*) Py_TYPE(type);
52668 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
52669 PyErr_SetString(PyExc_TypeError,
52670 "raise: exception class must be a subclass of BaseException");
52674 __Pyx_PyThreadState_assign
52675 __Pyx_ErrRestore(type, value, tb);
52684 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
52685 PyObject* owned_instance = NULL;
52686 if (tb == Py_None) {
52688 }
else if (tb && !PyTraceBack_Check(tb)) {
52689 PyErr_SetString(PyExc_TypeError,
52690 "raise: arg 3 must be a traceback or None");
52693 if (value == Py_None)
52695 if (PyExceptionInstance_Check(type)) {
52697 PyErr_SetString(PyExc_TypeError,
52698 "instance exception may not have a separate value");
52702 type = (PyObject*) Py_TYPE(value);
52703 }
else if (PyExceptionClass_Check(type)) {
52704 PyObject *instance_class = NULL;
52705 if (value && PyExceptionInstance_Check(value)) {
52706 instance_class = (PyObject*) Py_TYPE(value);
52707 if (instance_class != type) {
52708 int is_subclass = PyObject_IsSubclass(instance_class, type);
52709 if (!is_subclass) {
52710 instance_class = NULL;
52711 }
else if (unlikely(is_subclass == -1)) {
52714 type = instance_class;
52718 if (!instance_class) {
52721 args = PyTuple_New(0);
52722 else if (PyTuple_Check(value)) {
52726 args = PyTuple_Pack(1, value);
52729 owned_instance = PyObject_Call(type, args, NULL);
52731 if (!owned_instance)
52733 value = owned_instance;
52734 if (!PyExceptionInstance_Check(value)) {
52735 PyErr_Format(PyExc_TypeError,
52736 "calling %R should have returned an instance of "
52737 "BaseException, not %R",
52738 type, Py_TYPE(value));
52743 PyErr_SetString(PyExc_TypeError,
52744 "raise: exception class must be a subclass of BaseException");
52748 PyObject *fixed_cause;
52749 if (cause == Py_None) {
52750 fixed_cause = NULL;
52751 }
else if (PyExceptionClass_Check(cause)) {
52752 fixed_cause = PyObject_CallObject(cause, NULL);
52753 if (fixed_cause == NULL)
52755 }
else if (PyExceptionInstance_Check(cause)) {
52756 fixed_cause = cause;
52757 Py_INCREF(fixed_cause);
52759 PyErr_SetString(PyExc_TypeError,
52760 "exception causes must derive from "
52764 PyException_SetCause(value, fixed_cause);
52766 PyErr_SetObject(type, value);
52768 #if CYTHON_COMPILING_IN_PYPY
52769 PyObject *tmp_type, *tmp_value, *tmp_tb;
52770 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
52772 PyErr_Restore(tmp_type, tmp_value, tb);
52773 Py_XDECREF(tmp_tb);
52775 PyThreadState *tstate = __Pyx_PyThreadState_Current;
52776 PyObject* tmp_tb = tstate->curexc_traceback;
52777 if (tb != tmp_tb) {
52779 tstate->curexc_traceback = tb;
52780 Py_XDECREF(tmp_tb);
52785 Py_XDECREF(owned_instance);
52791 #ifndef __PYX_HAVE_RT_ImportType
52792 #define __PYX_HAVE_RT_ImportType
52793 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
52794 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
52796 PyObject *result = 0;
52798 Py_ssize_t basicsize;
52799 #ifdef Py_LIMITED_API
52800 PyObject *py_basicsize;
52802 result = PyObject_GetAttrString(module, class_name);
52805 if (!PyType_Check(result)) {
52806 PyErr_Format(PyExc_TypeError,
52807 "%.200s.%.200s is not a type object",
52808 module_name, class_name);
52811 #ifndef Py_LIMITED_API
52812 basicsize = ((PyTypeObject *)result)->tp_basicsize;
52814 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
52817 basicsize = PyLong_AsSsize_t(py_basicsize);
52818 Py_DECREF(py_basicsize);
52820 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
52823 if ((
size_t)basicsize < size) {
52824 PyErr_Format(PyExc_ValueError,
52825 "%.200s.%.200s size changed, may indicate binary incompatibility. "
52826 "Expected %zd from C header, got %zd from PyObject",
52827 module_name, class_name, size, basicsize);
52830 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
52831 PyErr_Format(PyExc_ValueError,
52832 "%.200s.%.200s size changed, may indicate binary incompatibility. "
52833 "Expected %zd from C header, got %zd from PyObject",
52834 module_name, class_name, size, basicsize);
52837 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
52838 PyOS_snprintf(warning,
sizeof(warning),
52839 "%s.%s size changed, may indicate binary incompatibility. "
52840 "Expected %zd from C header, got %zd from PyObject",
52841 module_name, class_name, size, basicsize);
52842 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
52844 return (PyTypeObject *)result;
52846 Py_XDECREF(result);
52852 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
52853 PyObject *empty_list = 0;
52854 PyObject *module = 0;
52855 PyObject *global_dict = 0;
52856 PyObject *empty_dict = 0;
52858 #if PY_MAJOR_VERSION < 3
52859 PyObject *py_import;
52860 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
52867 empty_list = PyList_New(0);
52872 global_dict = PyModule_GetDict(__pyx_m);
52875 empty_dict = PyDict_New();
52879 #if PY_MAJOR_VERSION >= 3
52881 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
52882 module = PyImport_ImportModuleLevelObject(
52883 name, global_dict, empty_dict, list, 1);
52885 if (!PyErr_ExceptionMatches(PyExc_ImportError))
52894 #if PY_MAJOR_VERSION < 3
52895 PyObject *py_level = PyInt_FromLong(level);
52898 module = PyObject_CallFunctionObjArgs(py_import,
52899 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
52900 Py_DECREF(py_level);
52902 module = PyImport_ImportModuleLevelObject(
52903 name, global_dict, empty_dict, list, level);
52908 #if PY_MAJOR_VERSION < 3
52909 Py_XDECREF(py_import);
52911 Py_XDECREF(empty_list);
52912 Py_XDECREF(empty_dict);
52917 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
52918 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
52919 PyObject *dict = Py_TYPE(obj)->tp_dict;
52920 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
52922 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
52923 PyObject **dictptr = NULL;
52924 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
52926 #if CYTHON_COMPILING_IN_CPYTHON
52927 dictptr = (likely(offset > 0)) ? (PyObject **) ((
char *)obj + offset) : _PyObject_GetDictPtr(obj);
52929 dictptr = _PyObject_GetDictPtr(obj);
52932 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
52934 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
52935 PyObject *dict = Py_TYPE(obj)->tp_dict;
52936 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
52938 return obj_dict_version == __Pyx_get_object_dict_version(obj);
52943 #ifndef CYTHON_CLINE_IN_TRACEBACK
52944 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
52945 PyObject *use_cline;
52946 PyObject *ptype, *pvalue, *ptraceback;
52947 #if CYTHON_COMPILING_IN_CPYTHON
52948 PyObject **cython_runtime_dict;
52950 if (unlikely(!__pyx_cython_runtime)) {
52953 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
52954 #if CYTHON_COMPILING_IN_CPYTHON
52955 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
52956 if (likely(cython_runtime_dict)) {
52957 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
52958 use_cline, *cython_runtime_dict,
52959 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
52963 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
52964 if (use_cline_obj) {
52965 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
52966 Py_DECREF(use_cline_obj);
52974 (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
52976 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
52979 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
52985 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
52986 int start = 0, mid = 0, end = count - 1;
52987 if (end >= 0 && code_line > entries[end].code_line) {
52990 while (start < end) {
52991 mid = start + (end - start) / 2;
52992 if (code_line < entries[mid].code_line) {
52994 }
else if (code_line > entries[mid].code_line) {
53000 if (code_line <= entries[mid].code_line) {
53006 static PyCodeObject *__pyx_find_code_object(
int code_line) {
53007 PyCodeObject* code_object;
53009 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
53012 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
53013 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
53016 code_object = __pyx_code_cache.entries[
pos].code_object;
53017 Py_INCREF(code_object);
53018 return code_object;
53020 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
53022 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
53023 if (unlikely(!code_line)) {
53026 if (unlikely(!entries)) {
53027 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
53028 if (likely(entries)) {
53029 __pyx_code_cache.entries = entries;
53030 __pyx_code_cache.max_count = 64;
53031 __pyx_code_cache.count = 1;
53032 entries[0].code_line = code_line;
53033 entries[0].code_object = code_object;
53034 Py_INCREF(code_object);
53038 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
53039 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
53040 PyCodeObject* tmp = entries[
pos].code_object;
53041 entries[
pos].code_object = code_object;
53045 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
53046 int new_max = __pyx_code_cache.max_count + 64;
53047 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
53048 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
53049 if (unlikely(!entries)) {
53052 __pyx_code_cache.entries = entries;
53053 __pyx_code_cache.max_count = new_max;
53055 for (i=__pyx_code_cache.count; i>
pos; i--) {
53056 entries[i] = entries[i-1];
53058 entries[
pos].code_line = code_line;
53059 entries[
pos].code_object = code_object;
53060 __pyx_code_cache.count++;
53061 Py_INCREF(code_object);
53065 #include "compile.h"
53066 #include "frameobject.h"
53067 #include "traceback.h"
53068 #if PY_VERSION_HEX >= 0x030b00a6
53069 #ifndef Py_BUILD_CORE
53070 #define Py_BUILD_CORE 1
53072 #include "internal/pycore_frame.h"
53074 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
53075 const char *funcname,
int c_line,
53076 int py_line,
const char *filename) {
53077 PyCodeObject *py_code = NULL;
53078 PyObject *py_funcname = NULL;
53079 #if PY_MAJOR_VERSION < 3
53080 PyObject *py_srcfile = NULL;
53081 py_srcfile = PyString_FromString(filename);
53082 if (!py_srcfile)
goto bad;
53085 #if PY_MAJOR_VERSION < 3
53086 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
53087 if (!py_funcname)
goto bad;
53089 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
53090 if (!py_funcname)
goto bad;
53091 funcname = PyUnicode_AsUTF8(py_funcname);
53092 if (!funcname)
goto bad;
53096 #if PY_MAJOR_VERSION < 3
53097 py_funcname = PyString_FromString(funcname);
53098 if (!py_funcname)
goto bad;
53101 #if PY_MAJOR_VERSION < 3
53102 py_code = __Pyx_PyCode_New(
53119 Py_DECREF(py_srcfile);
53121 py_code = PyCode_NewEmpty(filename, funcname, py_line);
53123 Py_XDECREF(py_funcname);
53126 Py_XDECREF(py_funcname);
53127 #if PY_MAJOR_VERSION < 3
53128 Py_XDECREF(py_srcfile);
53132 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
53133 int py_line,
const char *filename) {
53134 PyCodeObject *py_code = 0;
53135 PyFrameObject *py_frame = 0;
53136 PyThreadState *tstate = __Pyx_PyThreadState_Current;
53137 PyObject *ptype, *pvalue, *ptraceback;
53139 c_line = __Pyx_CLineForTraceback(tstate, c_line);
53141 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
53143 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
53144 py_code = __Pyx_CreateCodeObjectForTraceback(
53145 funcname, c_line, py_line, filename);
53150 Py_XDECREF(pvalue);
53151 Py_XDECREF(ptraceback);
53154 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
53155 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
53157 py_frame = PyFrame_New(
53163 if (!py_frame)
goto bad;
53164 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
53165 PyTraceBack_Here(py_frame);
53167 Py_XDECREF(py_code);
53168 Py_XDECREF(py_frame);
53172 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
53173 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
53174 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
53175 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
53176 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
53178 func_type value = func_value;\
53179 if (sizeof(target_type) < sizeof(func_type)) {\
53180 if (unlikely(value != (func_type) (target_type) value)) {\
53181 func_type zero = 0;\
53182 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
53183 return (target_type) -1;\
53184 if (is_unsigned && unlikely(value < zero))\
53185 goto raise_neg_overflow;\
53187 goto raise_overflow;\
53190 return (target_type) value;\
53194 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
53195 static PyObject *__Pyx_GetStdout(
void) {
53196 PyObject *
f = PySys_GetObject((
char *)
"stdout");
53198 PyErr_SetString(PyExc_RuntimeError,
"lost sys.stdout");
53202 static int __Pyx_Print(PyObject*
f, PyObject *arg_tuple,
int newline) {
53205 if (!(
f = __Pyx_GetStdout()))
53209 for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
53211 if (PyFile_SoftSpace(
f, 1)) {
53212 if (PyFile_WriteString(
" ",
f) < 0)
53215 v = PyTuple_GET_ITEM(arg_tuple, i);
53216 if (PyFile_WriteObject(
v,
f, Py_PRINT_RAW) < 0)
53218 if (PyString_Check(
v)) {
53219 char *
s = PyString_AsString(
v);
53220 Py_ssize_t len = PyString_Size(
v);
53222 switch (
s[len-1]) {
53224 case '\f':
case '\r':
case '\n':
case '\t':
case '\v':
53225 PyFile_SoftSpace(
f, 0);
53233 if (PyFile_WriteString(
"\n",
f) < 0)
53235 PyFile_SoftSpace(
f, 0);
53244 static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple,
int newline) {
53245 PyObject* kwargs = 0;
53246 PyObject* result = 0;
53247 PyObject* end_string;
53248 if (unlikely(!__pyx_print)) {
53249 __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s_print);
53254 kwargs = PyDict_New();
53255 if (unlikely(!kwargs))
53257 if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s_file, stream) < 0))
53260 end_string = PyUnicode_FromStringAndSize(
" ", 1);
53261 if (unlikely(!end_string))
53263 if (PyDict_SetItem(kwargs, __pyx_n_s_end, end_string) < 0) {
53264 Py_DECREF(end_string);
53267 Py_DECREF(end_string);
53269 }
else if (!newline) {
53270 if (unlikely(!__pyx_print_kwargs)) {
53271 __pyx_print_kwargs = PyDict_New();
53272 if (unlikely(!__pyx_print_kwargs))
53274 end_string = PyUnicode_FromStringAndSize(
" ", 1);
53275 if (unlikely(!end_string))
53277 if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s_end, end_string) < 0) {
53278 Py_DECREF(end_string);
53281 Py_DECREF(end_string);
53283 kwargs = __pyx_print_kwargs;
53285 result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
53286 if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
53293 if (kwargs != __pyx_print_kwargs)
53294 Py_XDECREF(kwargs);
53300 #if CYTHON_CCOMPLEX
53302 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
53303 return ::std::complex< float >(x, y);
53306 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
53307 return x + y*(__pyx_t_float_complex)_Complex_I;
53311 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
53312 __pyx_t_float_complex
z;
53320 #if CYTHON_CCOMPLEX
53322 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53323 return (a.real == b.real) && (a.imag == b.imag);
53325 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53326 __pyx_t_float_complex
z;
53327 z.real = a.real + b.real;
53328 z.imag = a.imag + b.imag;
53331 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53332 __pyx_t_float_complex
z;
53333 z.real = a.real - b.real;
53334 z.imag = a.imag - b.imag;
53337 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53338 __pyx_t_float_complex
z;
53339 z.real = a.real * b.real - a.imag * b.imag;
53340 z.imag = a.real * b.imag + a.imag * b.real;
53344 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53346 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
53347 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
53348 if (b.real == 0 && b.imag == 0) {
53349 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
53351 float r = b.imag / b.real;
53352 float s = (float)(1.0) / (b.real + b.imag *
r);
53353 return __pyx_t_float_complex_from_parts(
53354 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
53357 float r = b.real / b.imag;
53358 float s = (float)(1.0) / (b.imag + b.real *
r);
53359 return __pyx_t_float_complex_from_parts(
53360 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
53364 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53366 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
53368 float denom = b.real * b.real + b.imag * b.imag;
53369 return __pyx_t_float_complex_from_parts(
53370 (a.real * b.real + a.imag * b.imag) / denom,
53371 (a.imag * b.real - a.real * b.imag) / denom);
53375 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
53376 __pyx_t_float_complex
z;
53381 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
53382 return (a.real == 0) && (a.imag == 0);
53384 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
53385 __pyx_t_float_complex
z;
53391 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
53392 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
53393 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
53395 return hypotf(
z.real,
z.imag);
53398 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
53399 __pyx_t_float_complex
z;
53400 float r, lnr, theta, z_r, z_theta;
53401 if (b.imag == 0 && b.real == (
int)b.real) {
53403 float denom = a.real * a.real + a.imag * a.imag;
53404 a.real = a.real / denom;
53405 a.imag = -a.imag / denom;
53408 switch ((
int)b.real) {
53416 return __Pyx_c_prod_float(a, a);
53418 z = __Pyx_c_prod_float(a, a);
53419 return __Pyx_c_prod_float(
z, a);
53421 z = __Pyx_c_prod_float(a, a);
53422 return __Pyx_c_prod_float(
z,
z);
53428 }
else if (b.imag == 0) {
53429 z.real = powf(a.real, b.real);
53432 }
else if (a.real > 0) {
53437 theta = atan2f(0.0, -1.0);
53440 r = __Pyx_c_abs_float(a);
53441 theta = atan2f(a.imag, a.real);
53444 z_r = expf(lnr * b.real - theta * b.imag);
53445 z_theta = theta * b.real + lnr * b.imag;
53446 z.real = z_r * cosf(z_theta);
53447 z.imag = z_r * sinf(z_theta);
53454 #if CYTHON_CCOMPLEX
53456 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
53457 return ::std::complex< double >(x, y);
53460 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
53461 return x + y*(__pyx_t_double_complex)_Complex_I;
53465 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
53466 __pyx_t_double_complex
z;
53474 #if CYTHON_CCOMPLEX
53476 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53477 return (a.real == b.real) && (a.imag == b.imag);
53479 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53480 __pyx_t_double_complex
z;
53481 z.real = a.real + b.real;
53482 z.imag = a.imag + b.imag;
53485 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53486 __pyx_t_double_complex
z;
53487 z.real = a.real - b.real;
53488 z.imag = a.imag - b.imag;
53491 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53492 __pyx_t_double_complex
z;
53493 z.real = a.real * b.real - a.imag * b.imag;
53494 z.imag = a.real * b.imag + a.imag * b.real;
53498 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53500 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
53501 }
else if (fabs(b.real) >= fabs(b.imag)) {
53502 if (b.real == 0 && b.imag == 0) {
53503 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
53505 double r = b.imag / b.real;
53506 double s = (double)(1.0) / (b.real + b.imag *
r);
53507 return __pyx_t_double_complex_from_parts(
53508 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
53511 double r = b.real / b.imag;
53512 double s = (double)(1.0) / (b.imag + b.real *
r);
53513 return __pyx_t_double_complex_from_parts(
53514 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
53518 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53520 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
53522 double denom = b.real * b.real + b.imag * b.imag;
53523 return __pyx_t_double_complex_from_parts(
53524 (a.real * b.real + a.imag * b.imag) / denom,
53525 (a.imag * b.real - a.real * b.imag) / denom);
53529 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
53530 __pyx_t_double_complex
z;
53535 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
53536 return (a.real == 0) && (a.imag == 0);
53538 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
53539 __pyx_t_double_complex
z;
53545 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
53546 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
53547 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
53549 return hypot(
z.real,
z.imag);
53552 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
53553 __pyx_t_double_complex
z;
53554 double r, lnr, theta, z_r, z_theta;
53555 if (b.imag == 0 && b.real == (
int)b.real) {
53557 double denom = a.real * a.real + a.imag * a.imag;
53558 a.real = a.real / denom;
53559 a.imag = -a.imag / denom;
53562 switch ((
int)b.real) {
53570 return __Pyx_c_prod_double(a, a);
53572 z = __Pyx_c_prod_double(a, a);
53573 return __Pyx_c_prod_double(
z, a);
53575 z = __Pyx_c_prod_double(a, a);
53576 return __Pyx_c_prod_double(
z,
z);
53582 }
else if (b.imag == 0) {
53583 z.real = pow(a.real, b.real);
53586 }
else if (a.real > 0) {
53591 theta = atan2(0.0, -1.0);
53594 r = __Pyx_c_abs_double(a);
53595 theta = atan2(a.imag, a.real);
53598 z_r = exp(lnr * b.real - theta * b.imag);
53599 z_theta = theta * b.real + lnr * b.imag;
53600 z.real = z_r * cos(z_theta);
53601 z.imag = z_r * sin(z_theta);
53608 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
53609 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53610 #pragma GCC diagnostic push
53611 #pragma GCC diagnostic ignored "-Wconversion"
53613 const int neg_one = (int) -1, const_zero = (
int) 0;
53614 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53615 #pragma GCC diagnostic pop
53617 const int is_unsigned = neg_one > const_zero;
53618 #if PY_MAJOR_VERSION < 3
53619 if (likely(PyInt_Check(x))) {
53620 if (
sizeof(
int) <
sizeof(long)) {
53621 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
53623 long val = PyInt_AS_LONG(x);
53624 if (is_unsigned && unlikely(val < 0)) {
53625 goto raise_neg_overflow;
53631 if (likely(PyLong_Check(x))) {
53633 #if CYTHON_USE_PYLONG_INTERNALS
53634 const digit* digits = ((PyLongObject*)x)->ob_digit;
53635 switch (Py_SIZE(x)) {
53636 case 0:
return (
int) 0;
53637 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
53639 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
53640 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53641 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53642 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
53643 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
53648 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
53649 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53650 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53651 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
53652 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
53657 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
53658 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53659 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53660 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
53661 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
53667 #if CYTHON_COMPILING_IN_CPYTHON
53668 if (unlikely(Py_SIZE(x) < 0)) {
53669 goto raise_neg_overflow;
53673 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
53674 if (unlikely(result < 0))
53676 if (unlikely(result == 1))
53677 goto raise_neg_overflow;
53680 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
53681 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
53682 #ifdef HAVE_LONG_LONG
53683 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
53684 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
53688 #if CYTHON_USE_PYLONG_INTERNALS
53689 const digit* digits = ((PyLongObject*)x)->ob_digit;
53690 switch (Py_SIZE(x)) {
53691 case 0:
return (
int) 0;
53692 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
53693 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
53695 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
53696 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53697 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53698 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
53699 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
53704 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
53705 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53706 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53707 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
53708 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
53713 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
53714 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53715 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53716 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
53717 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
53722 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
53723 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53724 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53725 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
53726 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
53731 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
53732 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53733 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53734 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
53735 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
53740 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
53741 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53742 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53743 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
53744 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
53750 if (
sizeof(
int) <=
sizeof(long)) {
53751 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
53752 #ifdef HAVE_LONG_LONG
53753 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
53754 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
53759 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
53760 PyErr_SetString(PyExc_RuntimeError,
53761 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
53764 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
53765 #if PY_MAJOR_VERSION < 3
53766 if (likely(
v) && !PyLong_Check(
v)) {
53768 v = PyNumber_Long(tmp);
53773 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
53774 unsigned char *bytes = (
unsigned char *)&val;
53775 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
53776 bytes,
sizeof(val),
53777 is_little, !is_unsigned);
53787 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
53788 if (!tmp)
return (
int) -1;
53789 val = __Pyx_PyInt_As_int(tmp);
53794 PyErr_SetString(PyExc_OverflowError,
53795 "value too large to convert to int");
53797 raise_neg_overflow:
53798 PyErr_SetString(PyExc_OverflowError,
53799 "can't convert negative value to int");
53804 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value) {
53805 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53806 #pragma GCC diagnostic push
53807 #pragma GCC diagnostic ignored "-Wconversion"
53809 const int neg_one = (int) -1, const_zero = (
int) 0;
53810 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53811 #pragma GCC diagnostic pop
53813 const int is_unsigned = neg_one > const_zero;
53815 if (
sizeof(
int) <
sizeof(long)) {
53816 return PyInt_FromLong((
long) value);
53817 }
else if (
sizeof(
int) <=
sizeof(
unsigned long)) {
53818 return PyLong_FromUnsignedLong((
unsigned long) value);
53819 #ifdef HAVE_LONG_LONG
53820 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
53821 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
53825 if (
sizeof(
int) <=
sizeof(
long)) {
53826 return PyInt_FromLong((
long) value);
53827 #ifdef HAVE_LONG_LONG
53828 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
53829 return PyLong_FromLongLong((PY_LONG_LONG) value);
53834 int one = 1;
int little = (int)*(
unsigned char *)&one;
53835 unsigned char *bytes = (
unsigned char *)&value;
53836 return _PyLong_FromByteArray(bytes,
sizeof(
int),
53837 little, !is_unsigned);
53842 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
53843 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53844 #pragma GCC diagnostic push
53845 #pragma GCC diagnostic ignored "-Wconversion"
53847 const long neg_one = (long) -1, const_zero = (
long) 0;
53848 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
53849 #pragma GCC diagnostic pop
53851 const int is_unsigned = neg_one > const_zero;
53852 #if PY_MAJOR_VERSION < 3
53853 if (likely(PyInt_Check(x))) {
53854 if (
sizeof(
long) <
sizeof(long)) {
53855 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
53857 long val = PyInt_AS_LONG(x);
53858 if (is_unsigned && unlikely(val < 0)) {
53859 goto raise_neg_overflow;
53865 if (likely(PyLong_Check(x))) {
53867 #if CYTHON_USE_PYLONG_INTERNALS
53868 const digit* digits = ((PyLongObject*)x)->ob_digit;
53869 switch (Py_SIZE(x)) {
53870 case 0:
return (
long) 0;
53871 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
53873 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
53874 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53875 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53876 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
53877 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
53882 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
53883 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53884 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53885 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
53886 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
53891 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
53892 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53893 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53894 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
53895 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
53901 #if CYTHON_COMPILING_IN_CPYTHON
53902 if (unlikely(Py_SIZE(x) < 0)) {
53903 goto raise_neg_overflow;
53907 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
53908 if (unlikely(result < 0))
53910 if (unlikely(result == 1))
53911 goto raise_neg_overflow;
53914 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
53915 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
53916 #ifdef HAVE_LONG_LONG
53917 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
53918 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
53922 #if CYTHON_USE_PYLONG_INTERNALS
53923 const digit* digits = ((PyLongObject*)x)->ob_digit;
53924 switch (Py_SIZE(x)) {
53925 case 0:
return (
long) 0;
53926 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
53927 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
53929 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
53930 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53931 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53932 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
53933 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
53938 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
53939 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
53940 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53941 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
53942 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
53947 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
53948 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53949 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53950 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
53951 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
53956 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
53957 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
53958 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53959 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
53960 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
53965 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
53966 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53967 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53968 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
53969 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
53974 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
53975 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
53976 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
53977 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
53978 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
53984 if (
sizeof(
long) <=
sizeof(long)) {
53985 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
53986 #ifdef HAVE_LONG_LONG
53987 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
53988 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
53993 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
53994 PyErr_SetString(PyExc_RuntimeError,
53995 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
53998 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
53999 #if PY_MAJOR_VERSION < 3
54000 if (likely(
v) && !PyLong_Check(
v)) {
54002 v = PyNumber_Long(tmp);
54007 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
54008 unsigned char *bytes = (
unsigned char *)&val;
54009 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
54010 bytes,
sizeof(val),
54011 is_little, !is_unsigned);
54021 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
54022 if (!tmp)
return (
long) -1;
54023 val = __Pyx_PyInt_As_long(tmp);
54028 PyErr_SetString(PyExc_OverflowError,
54029 "value too large to convert to long");
54031 raise_neg_overflow:
54032 PyErr_SetString(PyExc_OverflowError,
54033 "can't convert negative value to long");
54038 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
54039 static int __Pyx_PrintOne(PyObject*
f, PyObject *o) {
54041 if (!(
f = __Pyx_GetStdout()))
54045 if (PyFile_SoftSpace(
f, 0)) {
54046 if (PyFile_WriteString(
" ",
f) < 0)
54049 if (PyFile_WriteObject(o,
f, Py_PRINT_RAW) < 0)
54051 if (PyFile_WriteString(
"\n",
f) < 0)
54060 return __Pyx_Print(
f, NULL, 0);
54063 static int __Pyx_PrintOne(PyObject* stream, PyObject *o) {
54065 PyObject* arg_tuple = PyTuple_Pack(1, o);
54066 if (unlikely(!arg_tuple))
54068 res = __Pyx_Print(stream, arg_tuple, 1);
54069 Py_DECREF(arg_tuple);
54075 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
54076 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
54077 #pragma GCC diagnostic push
54078 #pragma GCC diagnostic ignored "-Wconversion"
54080 const long neg_one = (long) -1, const_zero = (
long) 0;
54081 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
54082 #pragma GCC diagnostic pop
54084 const int is_unsigned = neg_one > const_zero;
54086 if (
sizeof(
long) <
sizeof(long)) {
54087 return PyInt_FromLong((
long) value);
54088 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
54089 return PyLong_FromUnsignedLong((
unsigned long) value);
54090 #ifdef HAVE_LONG_LONG
54091 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
54092 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
54096 if (
sizeof(
long) <=
sizeof(
long)) {
54097 return PyInt_FromLong((
long) value);
54098 #ifdef HAVE_LONG_LONG
54099 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
54100 return PyLong_FromLongLong((PY_LONG_LONG) value);
54105 int one = 1;
int little = (int)*(
unsigned char *)&one;
54106 unsigned char *bytes = (
unsigned char *)&value;
54107 return _PyLong_FromByteArray(bytes,
sizeof(
long),
54108 little, !is_unsigned);
54113 #if CYTHON_COMPILING_IN_CPYTHON
54114 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
54120 return b == &PyBaseObject_Type;
54122 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
54124 if (a == b)
return 1;
54128 n = PyTuple_GET_SIZE(mro);
54129 for (i = 0; i <
n; i++) {
54130 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
54135 return __Pyx_InBases(a, b);
54137 #if PY_MAJOR_VERSION == 2
54138 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
54139 PyObject *exception, *value, *tb;
54141 __Pyx_PyThreadState_declare
54142 __Pyx_PyThreadState_assign
54143 __Pyx_ErrFetch(&exception, &value, &tb);
54144 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
54145 if (unlikely(res == -1)) {
54146 PyErr_WriteUnraisable(err);
54150 res = PyObject_IsSubclass(err, exc_type2);
54151 if (unlikely(res == -1)) {
54152 PyErr_WriteUnraisable(err);
54156 __Pyx_ErrRestore(exception, value, tb);
54160 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
54161 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
54163 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
54168 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
54170 assert(PyExceptionClass_Check(exc_type));
54171 n = PyTuple_GET_SIZE(tuple);
54172 #if PY_MAJOR_VERSION >= 3
54173 for (i=0; i<
n; i++) {
54174 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
54177 for (i=0; i<
n; i++) {
54178 PyObject *t = PyTuple_GET_ITEM(tuple, i);
54179 #if PY_MAJOR_VERSION < 3
54180 if (likely(exc_type == t))
return 1;
54182 if (likely(PyExceptionClass_Check(t))) {
54183 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
54189 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
54190 if (likely(err == exc_type))
return 1;
54191 if (likely(PyExceptionClass_Check(err))) {
54192 if (likely(PyExceptionClass_Check(exc_type))) {
54193 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
54194 }
else if (likely(PyTuple_Check(exc_type))) {
54195 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
54199 return PyErr_GivenExceptionMatches(err, exc_type);
54201 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
54202 assert(PyExceptionClass_Check(exc_type1));
54203 assert(PyExceptionClass_Check(exc_type2));
54204 if (likely(err == exc_type1 || err == exc_type2))
return 1;
54205 if (likely(PyExceptionClass_Check(err))) {
54206 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
54208 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
54213 static int __Pyx_check_binary_version(
void) {
54215 int same=1, i, found_dot;
54216 const char* rt_from_call = Py_GetVersion();
54217 PyOS_snprintf(ctversion, 5,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
54219 for (i = 0; i < 4; i++) {
54220 if (!ctversion[i]) {
54221 same = (rt_from_call[i] <
'0' || rt_from_call[i] >
'9');
54224 if (rt_from_call[i] != ctversion[i]) {
54230 char rtversion[5] = {
'\0'};
54232 for (i=0; i<4; ++i) {
54233 if (rt_from_call[i] ==
'.') {
54234 if (found_dot)
break;
54236 }
else if (rt_from_call[i] <
'0' || rt_from_call[i] >
'9') {
54239 rtversion[i] = rt_from_call[i];
54241 PyOS_snprintf(message,
sizeof(message),
54242 "compiletime version %s of module '%.100s' "
54243 "does not match runtime version %s",
54244 ctversion, __Pyx_MODULE_NAME, rtversion);
54245 return PyErr_WarnEx(NULL, message, 1);
54251 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
54253 #if PY_MAJOR_VERSION < 3
54254 if (t->is_unicode) {
54255 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
54256 }
else if (t->intern) {
54257 *t->p = PyString_InternFromString(t->s);
54259 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
54262 if (t->is_unicode | t->is_str) {
54264 *t->p = PyUnicode_InternFromString(t->s);
54265 }
else if (t->encoding) {
54266 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
54268 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
54271 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
54276 if (PyObject_Hash(*t->p) == -1)
54283 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
54284 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
54286 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
54288 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
54290 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
54291 #if !CYTHON_PEP393_ENABLED
54292 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
54294 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
54295 if (!defenc)
return NULL;
54296 defenc_c = PyBytes_AS_STRING(defenc);
54297 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
54299 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
54301 for (
c = defenc_c;
c < end;
c++) {
54302 if ((
unsigned char) (*
c) >= 128) {
54303 PyUnicode_AsASCIIString(o);
54309 *length = PyBytes_GET_SIZE(defenc);
54313 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
54314 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
54315 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
54316 if (likely(PyUnicode_IS_ASCII(o))) {
54317 *length = PyUnicode_GET_LENGTH(o);
54318 return PyUnicode_AsUTF8(o);
54320 PyUnicode_AsASCIIString(o);
54324 return PyUnicode_AsUTF8AndSize(o, length);
54329 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
54330 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
54332 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
54333 __Pyx_sys_getdefaultencoding_not_ascii &&
54335 PyUnicode_Check(o)) {
54336 return __Pyx_PyUnicode_AsStringAndSize(o, length);
54339 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
54340 if (PyByteArray_Check(o)) {
54341 *length = PyByteArray_GET_SIZE(o);
54342 return PyByteArray_AS_STRING(o);
54347 int r = PyBytes_AsStringAndSize(o, &result, length);
54348 if (unlikely(
r < 0)) {
54355 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
54356 int is_true = x == Py_True;
54357 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
54358 else return PyObject_IsTrue(x);
54360 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
54362 if (unlikely(!x))
return -1;
54363 retval = __Pyx_PyObject_IsTrue(x);
54367 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
54368 #if PY_MAJOR_VERSION >= 3
54369 if (PyLong_Check(result)) {
54370 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
54371 "__int__ returned non-int (type %.200s). "
54372 "The ability to return an instance of a strict subclass of int "
54373 "is deprecated, and may be removed in a future version of Python.",
54374 Py_TYPE(result)->tp_name)) {
54381 PyErr_Format(PyExc_TypeError,
54382 "__%.4s__ returned non-%.4s (type %.200s)",
54383 type_name, type_name, Py_TYPE(result)->tp_name);
54387 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
54388 #if CYTHON_USE_TYPE_SLOTS
54389 PyNumberMethods *m;
54391 const char *name = NULL;
54392 PyObject *res = NULL;
54393 #if PY_MAJOR_VERSION < 3
54394 if (likely(PyInt_Check(x) || PyLong_Check(x)))
54396 if (likely(PyLong_Check(x)))
54398 return __Pyx_NewRef(x);
54399 #if CYTHON_USE_TYPE_SLOTS
54400 m = Py_TYPE(x)->tp_as_number;
54401 #if PY_MAJOR_VERSION < 3
54402 if (m && m->nb_int) {
54404 res = m->nb_int(x);
54406 else if (m && m->nb_long) {
54408 res = m->nb_long(x);
54411 if (likely(m && m->nb_int)) {
54413 res = m->nb_int(x);
54417 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
54418 res = PyNumber_Int(x);
54422 #if PY_MAJOR_VERSION < 3
54423 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
54425 if (unlikely(!PyLong_CheckExact(res))) {
54427 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
54430 else if (!PyErr_Occurred()) {
54431 PyErr_SetString(PyExc_TypeError,
54432 "an integer is required");
54436 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
54439 #if PY_MAJOR_VERSION < 3
54440 if (likely(PyInt_CheckExact(b))) {
54441 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
54442 return PyInt_AS_LONG(b);
54444 return PyInt_AsSsize_t(b);
54447 if (likely(PyLong_CheckExact(b))) {
54448 #if CYTHON_USE_PYLONG_INTERNALS
54449 const digit* digits = ((PyLongObject*)b)->ob_digit;
54450 const Py_ssize_t size = Py_SIZE(b);
54451 if (likely(__Pyx_sst_abs(size) <= 1)) {
54452 ival = likely(size) ? digits[0] : 0;
54453 if (size == -1) ival = -ival;
54458 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
54459 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
54463 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
54464 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
54468 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
54469 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
54473 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
54474 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
54478 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
54479 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
54483 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
54484 return -(Py_ssize_t) (((((((((
size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
54490 return PyLong_AsSsize_t(b);
54492 x = PyNumber_Index(b);
54494 ival = PyInt_AsSsize_t(x);
54498 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
54499 if (
sizeof(Py_hash_t) ==
sizeof(Py_ssize_t)) {
54500 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
54501 #if PY_MAJOR_VERSION < 3
54502 }
else if (likely(PyInt_CheckExact(o))) {
54503 return PyInt_AS_LONG(o);
54508 x = PyNumber_Index(o);
54510 ival = PyInt_AsLong(x);
54515 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
54516 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
54518 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
54519 return PyInt_FromSize_t(ival);