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 1
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
307 #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
309 #ifndef CYTHON_INLINE
310 #if defined(__clang__)
311 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
313 #define CYTHON_INLINE inline
317 void __Pyx_call_destructor(
T& x) {
321 class __Pyx_FakeReference {
323 __Pyx_FakeReference() : ptr(NULL) { }
324 __Pyx_FakeReference(
const T& ref) : ptr(const_cast<
T*>(&ref)) { }
325 T *operator->() {
return ptr; }
326 T *operator&() {
return ptr; }
327 operator T&() {
return *ptr; }
328 template<
typename U>
bool operator ==(
U other) {
return *ptr == other; }
329 template<
typename U>
bool operator !=(
U other) {
return *ptr != other; }
334 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
335 #define Py_OptimizeFlag 0
337 #define __PYX_BUILD_PY_SSIZE_T "n"
338 #define CYTHON_FORMAT_SSIZE_T "z"
339 #if PY_MAJOR_VERSION < 3
340 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
341 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
342 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
343 #define __Pyx_DefaultClassType PyClass_Type
345 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
346 #define __Pyx_DefaultClassType PyType_Type
347 #if PY_VERSION_HEX >= 0x030B00A1
348 static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(
int a,
int k,
int l,
int s,
int f,
349 PyObject *code, PyObject *
c, PyObject*
n, PyObject *
v,
350 PyObject *fv, PyObject *cell, PyObject* fn,
351 PyObject *name,
int fline, PyObject *lnos) {
352 PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
353 PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
354 const char *fn_cstr=NULL;
355 const char *name_cstr=NULL;
356 PyCodeObject* co=NULL;
357 PyObject *type, *value, *traceback;
358 PyErr_Fetch(&type, &value, &traceback);
359 if (!(kwds=PyDict_New()))
goto end;
360 if (!(argcount=PyLong_FromLong(a)))
goto end;
361 if (PyDict_SetItemString(kwds,
"co_argcount", argcount) != 0)
goto end;
362 if (!(posonlyargcount=PyLong_FromLong(0)))
goto end;
363 if (PyDict_SetItemString(kwds,
"co_posonlyargcount", posonlyargcount) != 0)
goto end;
364 if (!(kwonlyargcount=PyLong_FromLong(k)))
goto end;
365 if (PyDict_SetItemString(kwds,
"co_kwonlyargcount", kwonlyargcount) != 0)
goto end;
366 if (!(nlocals=PyLong_FromLong(l)))
goto end;
367 if (PyDict_SetItemString(kwds,
"co_nlocals", nlocals) != 0)
goto end;
368 if (!(stacksize=PyLong_FromLong(
s)))
goto end;
369 if (PyDict_SetItemString(kwds,
"co_stacksize", stacksize) != 0)
goto end;
370 if (!(flags=PyLong_FromLong(
f)))
goto end;
371 if (PyDict_SetItemString(kwds,
"co_flags", flags) != 0)
goto end;
372 if (PyDict_SetItemString(kwds,
"co_code", code) != 0)
goto end;
373 if (PyDict_SetItemString(kwds,
"co_consts",
c) != 0)
goto end;
374 if (PyDict_SetItemString(kwds,
"co_names",
n) != 0)
goto end;
375 if (PyDict_SetItemString(kwds,
"co_varnames",
v) != 0)
goto end;
376 if (PyDict_SetItemString(kwds,
"co_freevars", fv) != 0)
goto end;
377 if (PyDict_SetItemString(kwds,
"co_cellvars", cell) != 0)
goto end;
378 if (PyDict_SetItemString(kwds,
"co_linetable", lnos) != 0)
goto end;
379 if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL)))
goto end;
380 if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL)))
goto end;
381 if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline)))
goto end;
382 if (!(replace = PyObject_GetAttrString((PyObject*)co,
"replace")))
goto cleanup_code_too;
383 if (!(empty = PyTuple_New(0)))
goto cleanup_code_too;
384 if (!(call_result = PyObject_Call(replace, empty, kwds)))
goto cleanup_code_too;
385 Py_XDECREF((PyObject*)co);
386 co = (PyCodeObject*)call_result;
390 Py_XDECREF((PyObject*)co);
395 Py_XDECREF(argcount);
396 Py_XDECREF(posonlyargcount);
397 Py_XDECREF(kwonlyargcount);
399 Py_XDECREF(stacksize);
401 Py_XDECREF(call_result);
404 PyErr_Restore(type, value, traceback);
409 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
410 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
412 #define __Pyx_DefaultClassType PyType_Type
414 #ifndef Py_TPFLAGS_CHECKTYPES
415 #define Py_TPFLAGS_CHECKTYPES 0
417 #ifndef Py_TPFLAGS_HAVE_INDEX
418 #define Py_TPFLAGS_HAVE_INDEX 0
420 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
421 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
423 #ifndef Py_TPFLAGS_HAVE_FINALIZE
424 #define Py_TPFLAGS_HAVE_FINALIZE 0
426 #ifndef METH_STACKLESS
427 #define METH_STACKLESS 0
429 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
430 #ifndef METH_FASTCALL
431 #define METH_FASTCALL 0x80
433 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *
self, PyObject *
const *args, Py_ssize_t nargs);
434 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *
self, PyObject *
const *args,
435 Py_ssize_t nargs, PyObject *kwnames);
437 #define __Pyx_PyCFunctionFast _PyCFunctionFast
438 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
440 #if CYTHON_FAST_PYCCALL
441 #define __Pyx_PyFastCFunction_Check(func)\
442 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
444 #define __Pyx_PyFastCFunction_Check(func) 0
446 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
447 #define PyObject_Malloc(s) PyMem_Malloc(s)
448 #define PyObject_Free(p) PyMem_Free(p)
449 #define PyObject_Realloc(p) PyMem_Realloc(p)
451 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
452 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
453 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
454 #define PyMem_RawFree(p) PyMem_Free(p)
456 #if CYTHON_COMPILING_IN_PYSTON
457 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
458 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
460 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
461 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
463 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
464 #define __Pyx_PyThreadState_Current PyThreadState_GET()
465 #elif PY_VERSION_HEX >= 0x03060000
466 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
467 #elif PY_VERSION_HEX >= 0x03000000
468 #define __Pyx_PyThreadState_Current PyThreadState_GET()
470 #define __Pyx_PyThreadState_Current _PyThreadState_Current
472 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
473 #include "pythread.h"
474 #define Py_tss_NEEDS_INIT 0
475 typedef int Py_tss_t;
476 static CYTHON_INLINE
int PyThread_tss_create(Py_tss_t *key) {
477 *key = PyThread_create_key();
480 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(
void) {
481 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(
sizeof(Py_tss_t));
482 *key = Py_tss_NEEDS_INIT;
485 static CYTHON_INLINE
void PyThread_tss_free(Py_tss_t *key) {
488 static CYTHON_INLINE
int PyThread_tss_is_created(Py_tss_t *key) {
489 return *key != Py_tss_NEEDS_INIT;
491 static CYTHON_INLINE
void PyThread_tss_delete(Py_tss_t *key) {
492 PyThread_delete_key(*key);
493 *key = Py_tss_NEEDS_INIT;
495 static CYTHON_INLINE
int PyThread_tss_set(Py_tss_t *key,
void *value) {
496 return PyThread_set_key_value(*key, value);
498 static CYTHON_INLINE
void * PyThread_tss_get(Py_tss_t *key) {
499 return PyThread_get_key_value(*key);
502 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
503 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
505 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
507 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
508 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
509 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
511 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
512 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
514 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
515 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
517 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
519 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
520 #define CYTHON_PEP393_ENABLED 1
521 #if defined(PyUnicode_IS_READY)
522 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
523 0 : _PyUnicode_Ready((PyObject *)(op)))
525 #define __Pyx_PyUnicode_READY(op) (0)
527 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
528 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
529 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
530 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
531 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
532 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
533 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
534 #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
535 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
536 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
538 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
541 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
544 #define CYTHON_PEP393_ENABLED 0
545 #define PyUnicode_1BYTE_KIND 1
546 #define PyUnicode_2BYTE_KIND 2
547 #define PyUnicode_4BYTE_KIND 4
548 #define __Pyx_PyUnicode_READY(op) (0)
549 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
550 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
551 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
552 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
553 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
554 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
555 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
556 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
558 #if CYTHON_COMPILING_IN_PYPY
559 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
560 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
562 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
563 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
564 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
566 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
567 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
569 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
570 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
572 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
573 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
575 #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))
576 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
577 #if PY_MAJOR_VERSION >= 3
578 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
580 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
582 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
583 #define PyObject_ASCII(o) PyObject_Repr(o)
585 #if PY_MAJOR_VERSION >= 3
586 #define PyBaseString_Type PyUnicode_Type
587 #define PyStringObject PyUnicodeObject
588 #define PyString_Type PyUnicode_Type
589 #define PyString_Check PyUnicode_Check
590 #define PyString_CheckExact PyUnicode_CheckExact
591 #ifndef PyObject_Unicode
592 #define PyObject_Unicode PyObject_Str
595 #if PY_MAJOR_VERSION >= 3
596 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
597 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
599 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
600 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
602 #ifndef PySet_CheckExact
603 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
605 #if PY_VERSION_HEX >= 0x030900A4
606 #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
607 #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
609 #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
610 #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
612 #if CYTHON_ASSUME_SAFE_MACROS
613 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
615 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
617 #if PY_MAJOR_VERSION >= 3
618 #define PyIntObject PyLongObject
619 #define PyInt_Type PyLong_Type
620 #define PyInt_Check(op) PyLong_Check(op)
621 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
622 #define PyInt_FromString PyLong_FromString
623 #define PyInt_FromUnicode PyLong_FromUnicode
624 #define PyInt_FromLong PyLong_FromLong
625 #define PyInt_FromSize_t PyLong_FromSize_t
626 #define PyInt_FromSsize_t PyLong_FromSsize_t
627 #define PyInt_AsLong PyLong_AsLong
628 #define PyInt_AS_LONG PyLong_AS_LONG
629 #define PyInt_AsSsize_t PyLong_AsSsize_t
630 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
631 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
632 #define PyNumber_Int PyNumber_Long
634 #if PY_MAJOR_VERSION >= 3
635 #define PyBoolObject PyLongObject
637 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
638 #ifndef PyUnicode_InternFromString
639 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
642 #if PY_VERSION_HEX < 0x030200A4
643 typedef long Py_hash_t;
644 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
645 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t
647 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
648 #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t
650 #if PY_MAJOR_VERSION >= 3
651 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
653 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
655 #if CYTHON_USE_ASYNC_SLOTS
656 #if PY_VERSION_HEX >= 0x030500B1
657 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
658 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
660 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
663 #define __Pyx_PyType_AsAsync(obj) NULL
665 #ifndef __Pyx_PyAsyncMethodsStruct
670 } __Pyx_PyAsyncMethodsStruct;
673 #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
674 #if !defined(_USE_MATH_DEFINES)
675 #define _USE_MATH_DEFINES
680 #define __PYX_NAN() ((float) NAN)
682 static CYTHON_INLINE
float __PYX_NAN() {
684 memset(&value, 0xFF,
sizeof(value));
688 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
689 #define __Pyx_truncl trunc
691 #define __Pyx_truncl truncl
694 #define __PYX_MARK_ERR_POS(f_index, lineno) \
695 { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
696 #define __PYX_ERR(f_index, lineno, Ln_error) \
697 { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
699 #ifndef __PYX_EXTERN_C
701 #define __PYX_EXTERN_C extern "C"
703 #define __PYX_EXTERN_C extern
707 #define __PYX_HAVE__mprans__BoundaryConditions
708 #define __PYX_HAVE_API__mprans__BoundaryConditions
712 #include "numpy/arrayobject.h"
713 #include "numpy/ndarrayobject.h"
714 #include "numpy/ndarraytypes.h"
715 #include "numpy/arrayscalars.h"
716 #include "numpy/ufuncobject.h"
720 #include "pythread.h"
727 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
728 #define CYTHON_WITHOUT_ASSERTIONS
731 typedef struct {PyObject **p;
const char *
s;
const Py_ssize_t
n;
const char* encoding;
732 const char is_unicode;
const char is_str;
const char intern; } __Pyx_StringTabEntry;
734 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
735 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
736 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
737 #define __PYX_DEFAULT_STRING_ENCODING ""
738 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
739 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
740 #define __Pyx_uchar_cast(c) ((unsigned char)c)
741 #define __Pyx_long_cast(x) ((long)x)
742 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
743 (sizeof(type) < sizeof(Py_ssize_t)) ||\
744 (sizeof(type) > sizeof(Py_ssize_t) &&\
745 likely(v < (type)PY_SSIZE_T_MAX ||\
746 v == (type)PY_SSIZE_T_MAX) &&\
747 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
748 v == (type)PY_SSIZE_T_MIN))) ||\
749 (sizeof(type) == sizeof(Py_ssize_t) &&\
750 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
751 v == (type)PY_SSIZE_T_MAX))) )
752 static CYTHON_INLINE
int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
753 return (
size_t) i < (size_t) limit;
755 #if defined (__cplusplus) && __cplusplus >= 201103L
757 #define __Pyx_sst_abs(value) std::abs(value)
758 #elif SIZEOF_INT >= SIZEOF_SIZE_T
759 #define __Pyx_sst_abs(value) abs(value)
760 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
761 #define __Pyx_sst_abs(value) labs(value)
762 #elif defined (_MSC_VER)
763 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
764 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
765 #define __Pyx_sst_abs(value) llabs(value)
766 #elif defined (__GNUC__)
767 #define __Pyx_sst_abs(value) __builtin_llabs(value)
769 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
771 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject*);
772 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
773 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
774 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
775 #define __Pyx_PyBytes_FromString PyBytes_FromString
776 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
777 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char*);
778 #if PY_MAJOR_VERSION < 3
779 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
780 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
782 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
783 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
785 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
786 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
787 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
788 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
789 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
790 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
791 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
792 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
793 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
794 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
795 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
796 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
797 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
798 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
799 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
800 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
801 static CYTHON_INLINE
size_t __Pyx_Py_UNICODE_strlen(
const Py_UNICODE *
u) {
802 const Py_UNICODE *u_end =
u;
804 return (
size_t)(u_end -
u - 1);
806 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
807 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
808 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
809 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
810 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
811 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b);
812 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*);
813 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
814 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
815 #define __Pyx_PySequence_Tuple(obj)\
816 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
817 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
818 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t);
819 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
820 #if CYTHON_ASSUME_SAFE_MACROS
821 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
823 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
825 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
826 #if PY_MAJOR_VERSION >= 3
827 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
829 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
831 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
832 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
833 static int __Pyx_sys_getdefaultencoding_not_ascii;
834 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
836 PyObject* default_encoding = NULL;
837 PyObject* ascii_chars_u = NULL;
838 PyObject* ascii_chars_b = NULL;
839 const char* default_encoding_c;
840 sys = PyImport_ImportModule(
"sys");
842 default_encoding = PyObject_CallMethod(sys, (
char*)
"getdefaultencoding", NULL);
844 if (!default_encoding)
goto bad;
845 default_encoding_c = PyBytes_AsString(default_encoding);
846 if (!default_encoding_c)
goto bad;
847 if (strcmp(default_encoding_c,
"ascii") == 0) {
848 __Pyx_sys_getdefaultencoding_not_ascii = 0;
850 char ascii_chars[128];
852 for (
c = 0;
c < 128;
c++) {
855 __Pyx_sys_getdefaultencoding_not_ascii = 1;
856 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
857 if (!ascii_chars_u)
goto bad;
858 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
859 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
862 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
866 Py_DECREF(ascii_chars_u);
867 Py_DECREF(ascii_chars_b);
869 Py_DECREF(default_encoding);
872 Py_XDECREF(default_encoding);
873 Py_XDECREF(ascii_chars_u);
874 Py_XDECREF(ascii_chars_b);
878 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
879 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
881 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
882 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
883 static char* __PYX_DEFAULT_STRING_ENCODING;
884 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
886 PyObject* default_encoding = NULL;
887 char* default_encoding_c;
888 sys = PyImport_ImportModule(
"sys");
890 default_encoding = PyObject_CallMethod(sys, (
char*) (
const char*)
"getdefaultencoding", NULL);
892 if (!default_encoding)
goto bad;
893 default_encoding_c = PyBytes_AsString(default_encoding);
894 if (!default_encoding_c)
goto bad;
895 __PYX_DEFAULT_STRING_ENCODING = (
char*) malloc(strlen(default_encoding_c) + 1);
896 if (!__PYX_DEFAULT_STRING_ENCODING)
goto bad;
897 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
898 Py_DECREF(default_encoding);
901 Py_XDECREF(default_encoding);
909 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
910 #define likely(x) __builtin_expect(!!(x), 1)
911 #define unlikely(x) __builtin_expect(!!(x), 0)
913 #define likely(x) (x)
914 #define unlikely(x) (x)
916 static CYTHON_INLINE
void __Pyx_pretend_to_initialize(
void* ptr) { (void)ptr; }
918 static PyObject *__pyx_m = NULL;
919 static PyObject *__pyx_d;
920 static PyObject *__pyx_b;
921 static PyObject *__pyx_cython_runtime = NULL;
922 static PyObject *__pyx_empty_tuple;
923 static PyObject *__pyx_empty_bytes;
924 static PyObject *__pyx_empty_unicode;
925 static int __pyx_lineno;
926 static int __pyx_clineno = 0;
927 static const char * __pyx_cfilenm= __FILE__;
928 static const char *__pyx_filename;
931 #if !defined(CYTHON_CCOMPLEX)
932 #if defined(__cplusplus)
933 #define CYTHON_CCOMPLEX 1
934 #elif defined(_Complex_I)
935 #define CYTHON_CCOMPLEX 1
937 #define CYTHON_CCOMPLEX 0
947 #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
949 #define _Complex_I 1.0fj
953 static const char *__pyx_f[] = {
954 "proteus/mprans/BoundaryConditions.py",
956 "proteus/mprans/BoundaryConditions.pxd",
959 "proteus/BoundaryConditions.pxd",
962 struct __pyx_memoryview_obj;
964 struct __pyx_memoryview_obj *memview;
967 Py_ssize_t strides[8];
968 Py_ssize_t suboffsets[8];
969 } __Pyx_memviewslice;
970 #define __Pyx_MemoryView_Len(m) (m.shape[0])
973 #include <pythread.h>
974 #ifndef CYTHON_ATOMICS
975 #define CYTHON_ATOMICS 1
977 #define __pyx_atomic_int_type int
978 #if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 ||\
979 (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) &&\
981 #define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
982 #define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
983 #ifdef __PYX_DEBUG_ATOMICS
984 #warning "Using GNU atomics"
986 #elif CYTHON_ATOMICS && defined(_MSC_VER) && 0
988 #undef __pyx_atomic_int_type
989 #define __pyx_atomic_int_type LONG
990 #define __pyx_atomic_incr_aligned(value, lock) InterlockedIncrement(value)
991 #define __pyx_atomic_decr_aligned(value, lock) InterlockedDecrement(value)
992 #ifdef __PYX_DEBUG_ATOMICS
993 #pragma message ("Using MSVC atomics")
995 #elif CYTHON_ATOMICS && (defined(__ICC) || defined(__INTEL_COMPILER)) && 0
996 #define __pyx_atomic_incr_aligned(value, lock) _InterlockedIncrement(value)
997 #define __pyx_atomic_decr_aligned(value, lock) _InterlockedDecrement(value)
998 #ifdef __PYX_DEBUG_ATOMICS
999 #warning "Using Intel atomics"
1002 #undef CYTHON_ATOMICS
1003 #define CYTHON_ATOMICS 0
1004 #ifdef __PYX_DEBUG_ATOMICS
1005 #warning "Not using atomics"
1008 typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
1010 #define __pyx_add_acquisition_count(memview)\
1011 __pyx_atomic_incr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
1012 #define __pyx_sub_acquisition_count(memview)\
1013 __pyx_atomic_decr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
1015 #define __pyx_add_acquisition_count(memview)\
1016 __pyx_add_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
1017 #define __pyx_sub_acquisition_count(memview)\
1018 __pyx_sub_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
1022 #ifndef __PYX_FORCE_INIT_THREADS
1023 #define __PYX_FORCE_INIT_THREADS 0
1027 #define __Pyx_PyGILState_Ensure PyGILState_Ensure
1028 #define __Pyx_PyGILState_Release PyGILState_Release
1029 #define __Pyx_FastGIL_Remember()
1030 #define __Pyx_FastGIL_Forget()
1031 #define __Pyx_FastGilFuncInit()
1034 #define IS_UNSIGNED(type) (((type) -1) > 0)
1035 struct __Pyx_StructField_;
1036 #define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
1039 struct __Pyx_StructField_* fields;
1041 size_t arraysize[8];
1047 typedef struct __Pyx_StructField_ {
1048 __Pyx_TypeInfo* type;
1051 } __Pyx_StructField;
1053 __Pyx_StructField* field;
1054 size_t parent_offset;
1055 } __Pyx_BufFmt_StackElem;
1057 __Pyx_StructField root;
1058 __Pyx_BufFmt_StackElem* head;
1060 size_t new_count, enc_count;
1061 size_t struct_alignment;
1066 char is_valid_array;
1067 } __Pyx_BufFmt_Context;
1077 typedef npy_int8 __pyx_t_5numpy_int8_t;
1086 typedef npy_int16 __pyx_t_5numpy_int16_t;
1095 typedef npy_int32 __pyx_t_5numpy_int32_t;
1104 typedef npy_int64 __pyx_t_5numpy_int64_t;
1113 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1122 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1131 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1140 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1149 typedef npy_float32 __pyx_t_5numpy_float32_t;
1158 typedef npy_float64 __pyx_t_5numpy_float64_t;
1167 typedef npy_long __pyx_t_5numpy_int_t;
1176 typedef npy_longlong __pyx_t_5numpy_long_t;
1185 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1194 typedef npy_ulong __pyx_t_5numpy_uint_t;
1203 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1212 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1221 typedef npy_intp __pyx_t_5numpy_intp_t;
1230 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1239 typedef npy_double __pyx_t_5numpy_float_t;
1248 typedef npy_double __pyx_t_5numpy_double_t;
1257 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1266 typedef __pyx_t_5numpy_float64_t __pyx_t_6mprans_18BoundaryConditions_float64_t;
1275 typedef __pyx_t_5numpy_int64_t __pyx_t_6mprans_18BoundaryConditions_int64_t;
1279 typedef ::std::complex< float > __pyx_t_float_complex;
1281 typedef float _Complex __pyx_t_float_complex;
1284 typedef struct {
float real, imag; } __pyx_t_float_complex;
1286 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1291 typedef ::std::complex< double > __pyx_t_double_complex;
1293 typedef double _Complex __pyx_t_double_complex;
1296 typedef struct {
double real, imag; } __pyx_t_double_complex;
1298 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1302 struct __pyx_obj_7proteus_18BoundaryConditions_BC_Base;
1303 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition;
1304 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS;
1305 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone;
1306 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
1307 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
1308 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh;
1309 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h;
1310 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh;
1311 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction;
1312 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh;
1313 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet;
1314 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet;
1315 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet;
1316 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth;
1317 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet;
1318 struct __pyx_array_obj;
1319 struct __pyx_MemviewEnum_obj;
1320 struct __pyx_memoryview_obj;
1321 struct __pyx_memoryviewslice_obj;
1330 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1339 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1348 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1357 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1366 typedef double (*__pyx_t_7proteus_18BoundaryConditions_cpp_uOfXT)(
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *, __Pyx_memviewslice, double);
1375 typedef __Pyx_memviewslice __pyx_t_6mprans_18BoundaryConditions_double_memview3;
1384 typedef __Pyx_memviewslice __pyx_t_6mprans_18BoundaryConditions_double_memview2;
1393 typedef __Pyx_memviewslice __pyx_t_6mprans_18BoundaryConditions_double_memview1;
1402 typedef __Pyx_memviewslice __pyx_t_6mprans_18BoundaryConditions_int_memview1;
1411 typedef __Pyx_memviewslice (*__pyx_t_6mprans_18BoundaryConditions_cfvel)(
double *, double);
1420 typedef double (*__pyx_t_6mprans_18BoundaryConditions_cfeta)(
double *, double);
1429 typedef __Pyx_memviewslice (*__pyx_t_6mprans_18BoundaryConditions_cfvelrel)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
1438 typedef double (*__pyx_t_6mprans_18BoundaryConditions_cfphirel)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
1447 typedef double (*__pyx_t_6mprans_18BoundaryConditions_cfphiwave)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
1456 struct __pyx_obj_7proteus_18BoundaryConditions_BC_Base {
1458 __Pyx_memviewslice _b_or;
1474 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition {
1476 struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *__pyx_vtab;
1477 __pyx_t_7proteus_18BoundaryConditions_cpp_uOfXT uuOfXT;
1489 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS {
1490 struct __pyx_obj_7proteus_18BoundaryConditions_BC_Base __pyx_base;
1491 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *__pyx_vtab;
1492 __Pyx_memviewslice zero_array;
1494 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *waves;
1496 __Pyx_memviewslice wind_speed;
1497 __Pyx_memviewslice body_python_rot_matrix;
1498 __Pyx_memviewslice body_python_last_pos;
1499 __Pyx_memviewslice body_python_h;
1500 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *p_dirichlet;
1501 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *u_dirichlet;
1502 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *v_dirichlet;
1503 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *w_dirichlet;
1504 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *phi_dirichlet;
1505 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vof_dirichlet;
1506 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *k_dirichlet;
1507 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *dissipation_dirichlet;
1508 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pAddedMass_dirichlet;
1509 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *p_advective;
1510 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *u_advective;
1511 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *v_advective;
1512 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *w_advective;
1513 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vof_advective;
1514 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *k_advective;
1515 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *dissipation_advective;
1516 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *u_diffusive;
1517 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *v_diffusive;
1518 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *w_diffusive;
1519 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *k_diffusive;
1520 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *dissipation_diffusive;
1521 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *hx_dirichlet;
1522 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *hy_dirichlet;
1523 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *hz_dirichlet;
1524 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *u_stress;
1525 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *v_stress;
1526 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *w_stress;
1527 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *us_dirichlet;
1528 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vs_dirichlet;
1529 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *ws_dirichlet;
1530 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vos_dirichlet;
1531 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *us_advective;
1532 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vs_advective;
1533 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *ws_advective;
1534 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vos_advective;
1535 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *us_diffusive;
1536 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *vs_diffusive;
1537 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *ws_diffusive;
1538 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInit_dirichlet;
1539 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInc_dirichlet;
1540 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInit_advective;
1541 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInc_advective;
1542 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInit_diffusive;
1543 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *pInc_diffusive;
1544 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *clsvof_dirichlet;
1545 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *clsvof_advective;
1546 struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *clsvof_diffusive;
1557 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone {
1559 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *__pyx_vtab;
1560 __Pyx_memviewslice wind_speed;
1561 __Pyx_memviewslice u_calc;
1562 __pyx_t_6mprans_18BoundaryConditions_cfvelrel uu;
1563 __pyx_t_6mprans_18BoundaryConditions_cfphirel
phi;
1565 __pyx_t_6mprans_18BoundaryConditions_cfeta eta;
1570 __Pyx_memviewslice zero_vel;
1571 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *waves;
1573 PyObject *zone_type;
1577 double epsFact_solid;
1578 double epsFact_porous;
1580 __Pyx_memviewslice center;
1581 __Pyx_memviewslice orientation;
1592 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator {
1594 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_vtab;
1597 PyArrayObject *zones_array;
1611 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics {
1613 struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_vtab;
1615 __Pyx_memviewslice center;
1616 __Pyx_memviewslice orientation;
1617 __Pyx_memviewslice zero_vel;
1618 __Pyx_memviewslice _b_or;
1619 __Pyx_memviewslice wind_speed;
1634 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh {
1636 PyObject *__pyx_v_body;
1647 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h {
1649 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *__pyx_outer_scope;
1650 PyObject *__pyx_v_i;
1661 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh {
1663 PyObject *__pyx_v_body;
1674 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction {
1676 PyObject *__pyx_v_wf;
1687 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh {
1689 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self;
1700 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet {
1702 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self;
1713 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet {
1715 PyObject *__pyx_v_U;
1716 PyObject *__pyx_v_Uwind;
1717 PyObject *__pyx_v_air;
1718 PyObject *__pyx_v_dissipationInflow;
1719 PyObject *__pyx_v_dissipationInflowAir;
1720 PyObject *__pyx_v_kInflow;
1721 PyObject *__pyx_v_kInflowAir;
1722 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self;
1723 PyObject *__pyx_v_smoothing;
1724 PyObject *__pyx_v_vert_axis;
1725 PyObject *__pyx_v_water;
1726 PyObject *__pyx_v_waterLevel;
1737 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet {
1739 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
1740 PyObject *__pyx_v_i;
1751 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth {
1753 PyObject *__pyx_v_U;
1754 PyObject *__pyx_v_Uwind;
1755 PyObject *__pyx_v_air;
1756 PyObject *__pyx_v_dissipationInflow;
1757 PyObject *__pyx_v_dissipationInflowAir;
1758 PyObject *__pyx_v_g;
1759 PyObject *__pyx_v_kInflow;
1760 PyObject *__pyx_v_kInflowAir;
1761 PyObject *__pyx_v_pRef;
1762 PyObject *__pyx_v_refLevel;
1763 PyObject *__pyx_v_rhoDown;
1764 PyObject *__pyx_v_rhoUp;
1765 PyObject *__pyx_v_seaLevel;
1766 PyObject *__pyx_v_smoothing;
1767 PyObject *__pyx_v_vert_axis;
1768 PyObject *__pyx_v_water;
1779 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet {
1781 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
1782 PyObject *__pyx_v_i;
1793 struct __pyx_array_obj {
1795 struct __pyx_vtabstruct_array *__pyx_vtab;
1801 Py_ssize_t *_strides;
1802 Py_ssize_t itemsize;
1805 void (*callback_free_data)(
void *);
1807 int dtype_is_object;
1818 struct __pyx_MemviewEnum_obj {
1831 struct __pyx_memoryview_obj {
1833 struct __pyx_vtabstruct_memoryview *__pyx_vtab;
1836 PyObject *_array_interface;
1837 PyThread_type_lock lock;
1838 __pyx_atomic_int acquisition_count[2];
1839 __pyx_atomic_int *acquisition_count_aligned_p;
1842 int dtype_is_object;
1843 __Pyx_TypeInfo *typeinfo;
1854 struct __pyx_memoryviewslice_obj {
1855 struct __pyx_memoryview_obj __pyx_base;
1856 __Pyx_memviewslice from_slice;
1857 PyObject *from_object;
1858 PyObject *(*to_object_func)(
char *);
1859 int (*to_dtype_func)(
char *, PyObject *);
1872 struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition {
1873 void (*resetBC)(
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *,
int __pyx_skip_dispatch);
1875 static struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *__pyx_vtabptr_7proteus_18BoundaryConditions_BoundaryCondition;
1886 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS {
1887 __Pyx_memviewslice (*__pyx___cpp_MoveMesh_h)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch);
1888 double (*__pyx___cpp_MoveMesh_hx)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch);
1889 double (*__pyx___cpp_MoveMesh_hy)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch);
1890 double (*__pyx___cpp_MoveMesh_hz)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch);
1891 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1892 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1893 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1894 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1895 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1896 double (*__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double);
1898 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *__pyx_vtabptr_6mprans_18BoundaryConditions_BC_RANS;
1909 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone {
1910 void (*calculate_init)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
int __pyx_skip_dispatch);
1911 __Pyx_memviewslice (*calculate_vel)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
1912 __Pyx_memviewslice (*__pyx___cpp_calculate_vel_wave)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
1913 __Pyx_memviewslice (*__pyx___cpp_calculate_vel_zero)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
1914 double (*calculate_phi)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
1915 double (*__pyx___cpp_calculate_phi_porous)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
1916 double (*__pyx___cpp_calculate_phi_porous_sponge)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
1918 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *__pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZone;
1929 struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator {
1930 void (*calculate_init)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *,
int __pyx_skip_dispatch);
1931 void (*calculate)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *,
int __pyx_skip_dispatch);
1932 void (*__pyx___cpp_iterate)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *);
1934 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
1945 struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics {
1946 __Pyx_memviewslice (*__pyx___cpp_calculate_velocity)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double);
1947 double (*__pyx___cpp_calculate_pressure)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double);
1948 double (*__pyx___cpp_calculate_phi)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double);
1949 double (*__pyx___cpp_calculate_vof)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double);
1950 double (*__pyx___cpp_calculate_smoothing_H)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *, double);
1952 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_vtabptr_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
1963 struct __pyx_vtabstruct_array {
1964 PyObject *(*get_memview)(
struct __pyx_array_obj *);
1966 static struct __pyx_vtabstruct_array *__pyx_vtabptr_array;
1977 struct __pyx_vtabstruct_memoryview {
1978 char *(*get_item_pointer)(
struct __pyx_memoryview_obj *, PyObject *);
1979 PyObject *(*is_slice)(
struct __pyx_memoryview_obj *, PyObject *);
1980 PyObject *(*setitem_slice_assignment)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *);
1981 PyObject *(*setitem_slice_assign_scalar)(
struct __pyx_memoryview_obj *,
struct __pyx_memoryview_obj *, PyObject *);
1982 PyObject *(*setitem_indexed)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *);
1983 PyObject *(*convert_item_to_object)(
struct __pyx_memoryview_obj *,
char *);
1984 PyObject *(*assign_item_from_object)(
struct __pyx_memoryview_obj *,
char *, PyObject *);
1986 static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview;
1997 struct __pyx_vtabstruct__memoryviewslice {
1998 struct __pyx_vtabstruct_memoryview __pyx_base;
2000 static struct __pyx_vtabstruct__memoryviewslice *__pyx_vtabptr__memoryviewslice;
2004 #ifndef CYTHON_REFNANNY
2005 #define CYTHON_REFNANNY 0
2009 void (*INCREF)(
void*, PyObject*, int);
2010 void (*DECREF)(
void*, PyObject*, int);
2011 void (*GOTREF)(
void*, PyObject*, int);
2012 void (*GIVEREF)(
void*, PyObject*, int);
2013 void* (*SetupContext)(
const char*, int,
const char*);
2014 void (*FinishContext)(
void**);
2015 } __Pyx_RefNannyAPIStruct;
2016 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
2017 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
2018 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
2020 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
2022 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
2023 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
2024 PyGILState_Release(__pyx_gilstate_save);\
2026 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
2029 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
2030 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
2032 #define __Pyx_RefNannyFinishContext()\
2033 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
2034 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
2035 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
2036 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
2037 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
2038 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
2039 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
2040 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
2041 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
2043 #define __Pyx_RefNannyDeclarations
2044 #define __Pyx_RefNannySetupContext(name, acquire_gil)
2045 #define __Pyx_RefNannyFinishContext()
2046 #define __Pyx_INCREF(r) Py_INCREF(r)
2047 #define __Pyx_DECREF(r) Py_DECREF(r)
2048 #define __Pyx_GOTREF(r)
2049 #define __Pyx_GIVEREF(r)
2050 #define __Pyx_XINCREF(r) Py_XINCREF(r)
2051 #define __Pyx_XDECREF(r) Py_XDECREF(r)
2052 #define __Pyx_XGOTREF(r)
2053 #define __Pyx_XGIVEREF(r)
2055 #define __Pyx_XDECREF_SET(r, v) do {\
2056 PyObject *tmp = (PyObject *) r;\
2057 r = v; __Pyx_XDECREF(tmp);\
2059 #define __Pyx_DECREF_SET(r, v) do {\
2060 PyObject *tmp = (PyObject *) r;\
2061 r = v; __Pyx_DECREF(tmp);\
2063 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
2064 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
2067 #if CYTHON_USE_TYPE_SLOTS
2068 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
2070 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
2074 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
2077 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
2080 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
2081 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
2082 const char* function_name);
2085 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
2086 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
2089 #if CYTHON_FAST_THREAD_STATE
2090 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
2091 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
2092 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
2094 #define __Pyx_PyThreadState_declare
2095 #define __Pyx_PyThreadState_assign
2096 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
2100 #if CYTHON_FAST_THREAD_STATE
2101 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
2102 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
2103 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
2104 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
2105 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
2106 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
2107 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
2108 #if CYTHON_COMPILING_IN_CPYTHON
2109 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
2111 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
2114 #define __Pyx_PyErr_Clear() PyErr_Clear()
2115 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
2116 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
2117 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
2118 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
2119 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
2120 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
2121 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
2125 #ifndef CYTHON_PROFILE
2126 #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
2127 #define CYTHON_PROFILE 0
2129 #define CYTHON_PROFILE 1
2132 #ifndef CYTHON_TRACE_NOGIL
2133 #define CYTHON_TRACE_NOGIL 0
2135 #if CYTHON_TRACE_NOGIL && !defined(CYTHON_TRACE)
2136 #define CYTHON_TRACE 1
2139 #ifndef CYTHON_TRACE
2140 #define CYTHON_TRACE 0
2143 #undef CYTHON_PROFILE_REUSE_FRAME
2145 #ifndef CYTHON_PROFILE_REUSE_FRAME
2146 #define CYTHON_PROFILE_REUSE_FRAME 0
2148 #if CYTHON_PROFILE || CYTHON_TRACE
2149 #include "compile.h"
2150 #include "frameobject.h"
2151 #include "traceback.h"
2152 #if PY_VERSION_HEX >= 0x030b00a6
2153 #ifndef Py_BUILD_CORE
2154 #define Py_BUILD_CORE 1
2156 #include "internal/pycore_frame.h"
2158 #if CYTHON_PROFILE_REUSE_FRAME
2159 #define CYTHON_FRAME_MODIFIER static
2160 #define CYTHON_FRAME_DEL(frame)
2162 #define CYTHON_FRAME_MODIFIER
2163 #define CYTHON_FRAME_DEL(frame) Py_CLEAR(frame)
2165 #define __Pyx_TraceDeclarations\
2166 static PyCodeObject *__pyx_frame_code = NULL;\
2167 CYTHON_FRAME_MODIFIER PyFrameObject *__pyx_frame = NULL;\
2168 int __Pyx_use_tracing = 0;
2169 #define __Pyx_TraceFrameInit(codeobj)\
2170 if (codeobj) __pyx_frame_code = (PyCodeObject*) codeobj;
2171 #if PY_VERSION_HEX >= 0x030b00a2
2172 #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\
2173 (unlikely((tstate)->cframe->use_tracing) &&\
2174 (!(check_tracing) || !(tstate)->tracing) &&\
2175 (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))
2176 #define __Pyx_EnterTracing(tstate) PyThreadState_EnterTracing(tstate)
2177 #define __Pyx_LeaveTracing(tstate) PyThreadState_LeaveTracing(tstate)
2178 #elif PY_VERSION_HEX >= 0x030a00b1
2179 #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\
2180 (unlikely((tstate)->cframe->use_tracing) &&\
2181 (!(check_tracing) || !(tstate)->tracing) &&\
2182 (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))
2183 #define __Pyx_EnterTracing(tstate)\
2184 do { tstate->tracing++; tstate->cframe->use_tracing = 0; } while (0)
2185 #define __Pyx_LeaveTracing(tstate)\
2188 tstate->cframe->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL)\
2189 || tstate->c_profilefunc != NULL);\
2192 #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\
2193 (unlikely((tstate)->use_tracing) &&\
2194 (!(check_tracing) || !(tstate)->tracing) &&\
2195 (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))
2196 #define __Pyx_EnterTracing(tstate)\
2197 do { tstate->tracing++; tstate->use_tracing = 0; } while (0)
2198 #define __Pyx_LeaveTracing(tstate)\
2201 tstate->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL)\
2202 || tstate->c_profilefunc != NULL);\
2206 #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
2208 if (CYTHON_TRACE_NOGIL) {\
2209 PyThreadState *tstate;\
2210 PyGILState_STATE state = PyGILState_Ensure();\
2211 tstate = __Pyx_PyThreadState_Current;\
2212 if (__Pyx_IsTracing(tstate, 1, 1)) {\
2213 __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
2215 PyGILState_Release(state);\
2216 if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
2219 PyThreadState* tstate = PyThreadState_GET();\
2220 if (__Pyx_IsTracing(tstate, 1, 1)) {\
2221 __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
2222 if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
2226 #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
2227 { PyThreadState* tstate = PyThreadState_GET();\
2228 if (__Pyx_IsTracing(tstate, 1, 1)) {\
2229 __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
2230 if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
2234 #define __Pyx_TraceException()\
2235 if (likely(!__Pyx_use_tracing)); else {\
2236 PyThreadState* tstate = __Pyx_PyThreadState_Current;\
2237 if (__Pyx_IsTracing(tstate, 0, 1)) {\
2238 __Pyx_EnterTracing(tstate);\
2239 PyObject *exc_info = __Pyx_GetExceptionTuple(tstate);\
2241 if (CYTHON_TRACE && tstate->c_tracefunc)\
2242 tstate->c_tracefunc(\
2243 tstate->c_traceobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
2244 tstate->c_profilefunc(\
2245 tstate->c_profileobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
2246 Py_DECREF(exc_info);\
2248 __Pyx_LeaveTracing(tstate);\
2251 static void __Pyx_call_return_trace_func(PyThreadState *tstate, PyFrameObject *frame, PyObject *result) {
2252 PyObject *type, *value, *traceback;
2253 __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
2254 __Pyx_EnterTracing(tstate);
2255 if (CYTHON_TRACE && tstate->c_tracefunc)
2256 tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
2257 if (tstate->c_profilefunc)
2258 tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
2259 CYTHON_FRAME_DEL(frame);
2260 __Pyx_LeaveTracing(tstate);
2261 __Pyx_ErrRestoreInState(tstate, type, value, traceback);
2264 #define __Pyx_TraceReturn(result, nogil)\
2265 if (likely(!__Pyx_use_tracing)); else {\
2267 if (CYTHON_TRACE_NOGIL) {\
2268 PyThreadState *tstate;\
2269 PyGILState_STATE state = PyGILState_Ensure();\
2270 tstate = __Pyx_PyThreadState_Current;\
2271 if (__Pyx_IsTracing(tstate, 0, 0)) {\
2272 __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
2274 PyGILState_Release(state);\
2277 PyThreadState* tstate = __Pyx_PyThreadState_Current;\
2278 if (__Pyx_IsTracing(tstate, 0, 0)) {\
2279 __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
2284 #define __Pyx_TraceReturn(result, nogil)\
2285 if (likely(!__Pyx_use_tracing)); else {\
2286 PyThreadState* tstate = __Pyx_PyThreadState_Current;\
2287 if (__Pyx_IsTracing(tstate, 0, 0)) {\
2288 __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
2292 static PyCodeObject *__Pyx_createFrameCodeObject(
const char *funcname,
const char *srcfile,
int firstlineno);
2293 static int __Pyx_TraceSetupAndCall(PyCodeObject** code, PyFrameObject** frame, PyThreadState* tstate,
const char *funcname,
const char *srcfile,
int firstlineno);
2295 #define __Pyx_TraceDeclarations
2296 #define __Pyx_TraceFrameInit(codeobj)
2297 #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if ((1)); else goto_error;
2298 #define __Pyx_TraceException()
2299 #define __Pyx_TraceReturn(result, nogil)
2302 static int __Pyx_call_line_trace_func(PyThreadState *tstate, PyFrameObject *frame,
int lineno) {
2304 PyObject *type, *value, *traceback;
2305 __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
2306 __Pyx_PyFrame_SetLineNumber(frame, lineno);
2307 __Pyx_EnterTracing(tstate);
2308 ret = tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_LINE, NULL);
2309 __Pyx_LeaveTracing(tstate);
2311 __Pyx_ErrRestoreInState(tstate, type, value, traceback);
2315 Py_XDECREF(traceback);
2320 #define __Pyx_TraceLine(lineno, nogil, goto_error)\
2321 if (likely(!__Pyx_use_tracing)); else {\
2323 if (CYTHON_TRACE_NOGIL) {\
2325 PyThreadState *tstate;\
2326 PyGILState_STATE state = PyGILState_Ensure();\
2327 tstate = __Pyx_PyThreadState_Current;\
2328 if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\
2329 ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
2331 PyGILState_Release(state);\
2332 if (unlikely(ret)) goto_error;\
2335 PyThreadState* tstate = __Pyx_PyThreadState_Current;\
2336 if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\
2337 int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
2338 if (unlikely(ret)) goto_error;\
2343 #define __Pyx_TraceLine(lineno, nogil, goto_error)\
2344 if (likely(!__Pyx_use_tracing)); else {\
2345 PyThreadState* tstate = __Pyx_PyThreadState_Current;\
2346 if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\
2347 int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
2348 if (unlikely(ret)) goto_error;\
2353 #define __Pyx_TraceLine(lineno, nogil, goto_error) if ((1)); else goto_error;
2357 #if CYTHON_COMPILING_IN_CPYTHON
2358 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
2360 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
2364 #if CYTHON_FAST_PYCALL
2365 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
2366 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
2367 #if 1 || PY_VERSION_HEX < 0x030600B1
2368 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
2370 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
2372 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
2373 (sizeof(char [1 - 2*!(cond)]) - 1)
2374 #ifndef Py_MEMBER_SIZE
2375 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
2377 #if CYTHON_FAST_PYCALL
2378 static size_t __pyx_pyframe_localsplus_offset = 0;
2379 #include "frameobject.h"
2380 #if PY_VERSION_HEX >= 0x030b00a6
2381 #ifndef Py_BUILD_CORE
2382 #define Py_BUILD_CORE 1
2384 #include "internal/pycore_frame.h"
2386 #define __Pxy_PyFrame_Initialize_Offsets()\
2387 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
2388 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
2389 #define __Pyx_PyFrame_GetLocalsplus(frame)\
2390 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
2391 #endif // CYTHON_FAST_PYCALL
2395 #if CYTHON_COMPILING_IN_CPYTHON
2396 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
2400 #if CYTHON_COMPILING_IN_CPYTHON
2401 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
2403 #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
2407 #if CYTHON_FAST_PYCCALL
2408 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
2410 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
2414 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
2417 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2);
2420 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2,
long intval,
long inplace);
2423 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
2424 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
2425 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
2426 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
2427 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
2428 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
2429 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
2430 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
2431 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
2432 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
2433 int wraparound,
int boundscheck);
2434 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
2435 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
2436 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
2437 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
2438 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
2439 int wraparound,
int boundscheck);
2440 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
2441 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
2442 int is_list,
int wraparound,
int boundscheck);
2445 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
2446 #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
2447 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
2448 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
2449 (version_var) = __PYX_GET_DICT_VERSION(dict);\
2450 (cache_var) = (value);
2451 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
2452 static PY_UINT64_T __pyx_dict_version = 0;\
2453 static PyObject *__pyx_dict_cached_value = NULL;\
2454 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
2455 (VAR) = __pyx_dict_cached_value;\
2457 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
2458 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
2461 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
2462 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
2463 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
2465 #define __PYX_GET_DICT_VERSION(dict) (0)
2466 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
2467 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
2471 #if CYTHON_USE_DICT_VERSIONS
2472 #define __Pyx_GetModuleGlobalName(var, name) {\
2473 static PY_UINT64_T __pyx_dict_version = 0;\
2474 static PyObject *__pyx_dict_cached_value = NULL;\
2475 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
2476 (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
2477 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
2479 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
2480 PY_UINT64_T __pyx_dict_version;\
2481 PyObject *__pyx_dict_cached_value;\
2482 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
2484 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
2486 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
2487 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
2488 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
2492 #if !CYTHON_COMPILING_IN_PYPY
2493 static PyObject* __Pyx_PyFloat_EqObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check);
2495 #define __Pyx_PyFloat_EqObjC(op1, op2, floatval, inplace, zerodivision_check)\
2496 (PyObject_RichCompare(op1, op2, Py_EQ))
2500 static CYTHON_INLINE
void __Pyx_RaiseClosureNameError(
const char *varname);
2503 #if CYTHON_USE_TYPE_SLOTS
2504 static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
2506 #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
2510 static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
2513 #define __Pyx_CyFunction_USED 1
2514 #define __Pyx_CYFUNCTION_STATICMETHOD 0x01
2515 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
2516 #define __Pyx_CYFUNCTION_CCLASS 0x04
2517 #define __Pyx_CyFunction_GetClosure(f)\
2518 (((__pyx_CyFunctionObject *) (f))->func_closure)
2519 #define __Pyx_CyFunction_GetClassObj(f)\
2520 (((__pyx_CyFunctionObject *) (f))->func_classobj)
2521 #define __Pyx_CyFunction_Defaults(type, f)\
2522 ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
2523 #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
2524 ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
2526 PyCFunctionObject func;
2527 #if PY_VERSION_HEX < 0x030500A0
2528 PyObject *func_weakreflist;
2530 PyObject *func_dict;
2531 PyObject *func_name;
2532 PyObject *func_qualname;
2534 PyObject *func_globals;
2535 PyObject *func_code;
2536 PyObject *func_closure;
2537 PyObject *func_classobj;
2539 int defaults_pyobjects;
2540 size_t defaults_size;
2542 PyObject *defaults_tuple;
2543 PyObject *defaults_kwdict;
2544 PyObject *(*defaults_getter)(PyObject *);
2545 PyObject *func_annotations;
2546 } __pyx_CyFunctionObject;
2547 static PyTypeObject *__pyx_CyFunctionType = 0;
2548 #define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType))
2549 static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
2550 int flags, PyObject* qualname,
2552 PyObject *module, PyObject *globals,
2554 static CYTHON_INLINE
void *__Pyx_CyFunction_InitDefaults(PyObject *m,
2557 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
2559 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
2561 static CYTHON_INLINE
void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
2563 static int __pyx_CyFunction_init(
void);
2566 static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
2567 int flags, PyObject* qualname,
2569 PyObject *module, PyObject *globals,
2573 #define __Pyx_BUF_MAX_NDIMS %(BUF_MAX_NDIMS)d
2574 #define __Pyx_MEMVIEW_DIRECT 1
2575 #define __Pyx_MEMVIEW_PTR 2
2576 #define __Pyx_MEMVIEW_FULL 4
2577 #define __Pyx_MEMVIEW_CONTIG 8
2578 #define __Pyx_MEMVIEW_STRIDED 16
2579 #define __Pyx_MEMVIEW_FOLLOW 32
2580 #define __Pyx_IS_C_CONTIG 1
2581 #define __Pyx_IS_F_CONTIG 2
2582 static int __Pyx_init_memviewslice(
2583 struct __pyx_memoryview_obj *memview,
2585 __Pyx_memviewslice *memviewslice,
2586 int memview_is_new_reference);
2587 static CYTHON_INLINE
int __pyx_add_acquisition_count_locked(
2588 __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
2589 static CYTHON_INLINE
int __pyx_sub_acquisition_count_locked(
2590 __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
2591 #define __pyx_get_slice_count_pointer(memview) (memview->acquisition_count_aligned_p)
2592 #define __pyx_get_slice_count(memview) (*__pyx_get_slice_count_pointer(memview))
2593 #define __PYX_INC_MEMVIEW(slice, have_gil) __Pyx_INC_MEMVIEW(slice, have_gil, __LINE__)
2594 #define __PYX_XDEC_MEMVIEW(slice, have_gil) __Pyx_XDEC_MEMVIEW(slice, have_gil, __LINE__)
2595 static CYTHON_INLINE
void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *,
int,
int);
2596 static CYTHON_INLINE
void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *,
int,
int);
2599 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
2605 #define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
2606 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
2607 __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\
2608 (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
2609 __Pyx_SetItemInt_Generic(o, to_py_func(i), v)))
2610 static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *
v);
2611 static CYTHON_INLINE
int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *
v,
2612 int is_list,
int wraparound,
int boundscheck);
2615 static void __Pyx_WriteUnraisable(
const char *name,
int clineno,
2616 int lineno,
const char *filename,
2617 int full_traceback,
int nogil);
2620 #if !CYTHON_COMPILING_IN_PYPY
2621 static PyObject* __Pyx_PyFloat_TrueDivideObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check);
2623 #define __Pyx_PyFloat_TrueDivideObjC(op1, op2, floatval, inplace, zerodivision_check)\
2624 (inplace ? PyNumber_InPlaceTrueDivide(op1, op2) : PyNumber_TrueDivide(op1, op2))
2628 #if !CYTHON_COMPILING_IN_PYPY
2629 static PyObject* __Pyx_PyInt_SubtractCObj(PyObject *op1, PyObject *op2,
long intval,
int inplace,
int zerodivision_check);
2631 #define __Pyx_PyInt_SubtractCObj(op1, op2, intval, inplace, zerodivision_check)\
2632 (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
2636 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname);
2639 #if CYTHON_FAST_THREAD_STATE
2640 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
2641 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
2643 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
2647 static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);
2650 static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);
2653 #if !CYTHON_COMPILING_IN_PYPY
2654 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace,
int zerodivision_check);
2656 #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
2657 (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
2661 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals);
2664 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals);
2667 #if PY_MAJOR_VERSION >= 3
2668 #define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
2670 #define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
2674 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
2677 static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);
2682 PyObject **method_name;
2686 } __Pyx_CachedCFunction;
2689 static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject*
self);
2690 #if CYTHON_COMPILING_IN_CPYTHON
2691 #define __Pyx_CallUnboundCMethod0(cfunc, self)\
2692 (likely((cfunc)->func) ?\
2693 (likely((cfunc)->flag == METH_NOARGS) ? (*((cfunc)->func))(self, NULL) :\
2694 (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
2695 (PY_VERSION_HEX >= 0x030700A0 ?\
2696 (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
2697 (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
2698 (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
2699 (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
2700 (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ? ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
2701 ((cfunc)->flag == METH_VARARGS ? (*((cfunc)->func))(self, __pyx_empty_tuple) :\
2702 __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
2703 __Pyx__CallUnboundCMethod0(cfunc, self))
2705 #define __Pyx_CallUnboundCMethod0(cfunc, self) __Pyx__CallUnboundCMethod0(cfunc, self)
2709 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
2712 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
2715 static CYTHON_INLINE
int __Pyx_IterFinish(
void);
2718 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);
2721 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
2722 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
2723 #define __Pyx_PyObject_Dict_GetItem(obj, name)\
2724 (likely(PyDict_CheckExact(obj)) ?\
2725 __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
2727 #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
2728 #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name)
2732 #if CYTHON_USE_TYPE_SLOTS
2733 #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
2734 static CYTHON_INLINE
int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
2736 #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n)
2737 #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
2741 #if !CYTHON_COMPILING_IN_PYPY
2742 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace,
int zerodivision_check);
2744 #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
2745 (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
2749 #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
2750 static CYTHON_INLINE
int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
2751 PyListObject*
L = (PyListObject*) list;
2752 Py_ssize_t len = Py_SIZE(list);
2753 if (likely(
L->allocated > len) & likely(len > (
L->allocated >> 1))) {
2755 PyList_SET_ITEM(list, len, x);
2756 __Pyx_SET_SIZE(list, len + 1);
2759 return PyList_Append(list, x);
2762 #define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
2766 static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable,
int is_set,
2767 Py_ssize_t* p_orig_length,
int* p_source_is_set);
2768 static CYTHON_INLINE
int __Pyx_set_iter_next(
2769 PyObject* iter_obj, Py_ssize_t orig_length,
2770 Py_ssize_t* ppos, PyObject **value,
2774 static CYTHON_INLINE
int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq,
int eq) {
2775 int result = PySequence_Contains(seq, item);
2776 return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
2780 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
2781 PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
2782 PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
2783 int has_cstart,
int has_cstop,
int wraparound);
2786 #if CYTHON_USE_PYLONG_INTERNALS
2787 static PyObject *__Pyx_PyLong_AbsNeg(PyObject *
num);
2788 #define __Pyx_PyNumber_Absolute(x)\
2789 ((likely(PyLong_CheckExact(x))) ?\
2790 (likely(Py_SIZE(x) >= 0) ? (Py_INCREF(x), (x)) : __Pyx_PyLong_AbsNeg(x)) :\
2791 PyNumber_Absolute(x))
2793 #define __Pyx_PyNumber_Absolute(x) PyNumber_Absolute(x)
2797 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
2800 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
2803 static CYTHON_INLINE
int __Pyx_HasAttr(PyObject *, PyObject *);
2806 #if CYTHON_USE_EXC_INFO_STACK
2807 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
2811 #if CYTHON_FAST_THREAD_STATE
2812 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
2813 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
2814 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
2815 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
2817 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
2818 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
2822 #if CYTHON_FAST_THREAD_STATE
2823 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
2824 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
2826 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
2830 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
2831 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
2832 __Pyx__ArgTypeTest(obj, type, name, exact))
2833 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
2836 static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t);
2839 #define UNARY_NEG_WOULD_OVERFLOW(x)\
2840 (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
2842 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
2843 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *);
2845 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(
const char *
s, Py_ssize_t size,
const char *errors) {
2847 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
2849 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(
const char *
s, Py_ssize_t size,
const char *errors) {
2851 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
2853 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(
const char *
s, Py_ssize_t size,
const char *errors) {
2855 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
2859 static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
2860 const char* cstring, Py_ssize_t start, Py_ssize_t stop,
2861 const char* encoding,
const char* errors,
2862 PyObject* (*decode_func)(
const char *
s, Py_ssize_t size,
const char *errors));
2865 static CYTHON_INLINE
void __Pyx_RaiseNoneNotIterableError(
void);
2868 #if CYTHON_FAST_THREAD_STATE
2869 #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
2870 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
2872 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
2876 #if CYTHON_COMPILING_IN_CPYTHON
2877 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
2878 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
2879 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
2880 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
2882 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
2883 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
2884 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
2886 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
2888 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
2890 #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
2891 static CYTHON_INLINE
int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
2892 PyListObject*
L = (PyListObject*) list;
2893 Py_ssize_t len = Py_SIZE(list);
2894 if (likely(
L->allocated > len)) {
2896 PyList_SET_ITEM(list, len, x);
2897 __Pyx_SET_SIZE(list, len + 1);
2900 return PyList_Append(list, x);
2903 #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
2907 static CYTHON_INLINE
int __Pyx_PyList_Extend(PyObject*
L, PyObject*
v) {
2908 #if CYTHON_COMPILING_IN_CPYTHON
2909 PyObject* none = _PyList_Extend((PyListObject*)
L,
v);
2910 if (unlikely(!none))
2915 return PyList_SetSlice(
L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX,
v);
2920 static CYTHON_INLINE
long __Pyx_div_long(
long,
long);
2923 #if PY_MAJOR_VERSION < 3
2924 #define __Pyx_PyString_Join __Pyx_PyBytes_Join
2925 #define __Pyx_PyBaseString_Join(s, v) (PyUnicode_CheckExact(s) ? PyUnicode_Join(s, v) : __Pyx_PyBytes_Join(s, v))
2927 #define __Pyx_PyString_Join PyUnicode_Join
2928 #define __Pyx_PyBaseString_Join PyUnicode_Join
2930 #if CYTHON_COMPILING_IN_CPYTHON
2931 #if PY_MAJOR_VERSION < 3
2932 #define __Pyx_PyBytes_Join _PyString_Join
2934 #define __Pyx_PyBytes_Join _PyBytes_Join
2937 static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values);
2941 #if PY_MAJOR_VERSION >= 3
2942 #define __Pyx_PyObject_Unicode(obj)\
2943 (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))
2945 #define __Pyx_PyObject_Unicode(obj)\
2946 (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj))
2950 static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc);
2953 static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc
v,
void *a, traverseproc current_tp_traverse);
2956 static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc);
2959 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
2960 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
2962 #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
2966 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
2967 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
2969 #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
2973 #ifndef __PYX_HAVE_RT_ImportType_proto
2974 #define __PYX_HAVE_RT_ImportType_proto
2975 enum __Pyx_ImportType_CheckSize {
2976 __Pyx_ImportType_CheckSize_Error = 0,
2977 __Pyx_ImportType_CheckSize_Warn = 1,
2978 __Pyx_ImportType_CheckSize_Ignore = 2
2980 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
2984 static int __Pyx_SetVtable(PyObject *dict,
void *vtable);
2987 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);
2990 static int __Pyx_setup_reduce(PyObject* type_obj);
2993 static void* __Pyx_GetVtable(PyObject *dict);
2996 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);
2999 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
3000 #define __Pyx_SetNameInClass(ns, name, value)\
3001 (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
3002 #elif CYTHON_COMPILING_IN_CPYTHON
3003 #define __Pyx_SetNameInClass(ns, name, value)\
3004 (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
3006 #define __Pyx_SetNameInClass(ns, name, value) PyObject_SetItem(ns, name, value)
3010 static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
3011 PyObject *mkw, PyObject *modname, PyObject *doc);
3012 static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
3013 PyObject *mkw,
int calculate_metaclass,
int allow_py2_metaclass);
3016 #ifdef CYTHON_CLINE_IN_TRACEBACK
3017 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
3019 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
3024 PyCodeObject* code_object;
3026 } __Pyx_CodeObjectCacheEntry;
3027 struct __Pyx_CodeObjectCache {
3030 __Pyx_CodeObjectCacheEntry* entries;
3032 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
3033 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
3034 static PyCodeObject *__pyx_find_code_object(
int code_line);
3035 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
3038 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
3039 int py_line,
const char *filename);
3041 #if PY_MAJOR_VERSION < 3
3042 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags);
3043 static void __Pyx_ReleaseBuffer(Py_buffer *view);
3045 #define __Pyx_GetBuffer PyObject_GetBuffer
3046 #define __Pyx_ReleaseBuffer PyBuffer_Release
3052 Py_ssize_t shape, strides, suboffsets;
3053 } __Pyx_Buf_DimInfo;
3059 __Pyx_Buffer *rcbuffer;
3061 __Pyx_Buf_DimInfo diminfo[8];
3062 } __Pyx_LocalBuf_ND;
3065 static int __pyx_memviewslice_is_contig(
const __Pyx_memviewslice mvs,
char order,
int ndim);
3068 static int __pyx_slices_overlap(__Pyx_memviewslice *slice1,
3069 __Pyx_memviewslice *slice2,
3070 int ndim,
size_t itemsize);
3073 static CYTHON_INLINE PyObject *__pyx_capsule_create(
void *p,
const char *sig);
3076 static CYTHON_INLINE PyObject *__pyx_memview_get_double(
const char *itemp);
3077 static CYTHON_INLINE
int __pyx_memview_set_double(
const char *itemp, PyObject *obj);
3080 static CYTHON_INLINE
int __Pyx_Is_Little_Endian(
void);
3083 static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx,
const char* ts);
3084 static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
3085 __Pyx_BufFmt_StackElem* stack,
3086 __Pyx_TypeInfo* type);
3089 static int __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b);
3092 static int __Pyx_ValidateAndInit_memviewslice(
3097 __Pyx_TypeInfo *dtype,
3098 __Pyx_BufFmt_StackElem stack[],
3099 __Pyx_memviewslice *memviewslice,
3100 PyObject *original_obj);
3103 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyObject *,
int writable_flag);
3106 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_double(PyObject *,
int writable_flag);
3109 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
3110 #define __Pyx_HAS_GCC_DIAGNOSTIC
3114 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_double(PyObject *,
int writable_flag);
3117 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_int(PyObject *,
int writable_flag);
3122 #define __Pyx_CREAL(z) ((z).real())
3123 #define __Pyx_CIMAG(z) ((z).imag())
3125 #define __Pyx_CREAL(z) (__real__(z))
3126 #define __Pyx_CIMAG(z) (__imag__(z))
3129 #define __Pyx_CREAL(z) ((z).real)
3130 #define __Pyx_CIMAG(z) ((z).imag)
3132 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
3133 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
3134 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
3135 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
3137 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
3138 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
3143 #define __Pyx_c_eq_float(a, b) ((a)==(b))
3144 #define __Pyx_c_sum_float(a, b) ((a)+(b))
3145 #define __Pyx_c_diff_float(a, b) ((a)-(b))
3146 #define __Pyx_c_prod_float(a, b) ((a)*(b))
3147 #define __Pyx_c_quot_float(a, b) ((a)/(b))
3148 #define __Pyx_c_neg_float(a) (-(a))
3150 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
3151 #define __Pyx_c_conj_float(z) (::std::conj(z))
3153 #define __Pyx_c_abs_float(z) (::std::abs(z))
3154 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
3157 #define __Pyx_c_is_zero_float(z) ((z)==0)
3158 #define __Pyx_c_conj_float(z) (conjf(z))
3160 #define __Pyx_c_abs_float(z) (cabsf(z))
3161 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
3165 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
3166 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
3167 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
3168 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
3169 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
3170 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
3171 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
3172 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
3174 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
3175 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
3181 #define __Pyx_c_eq_double(a, b) ((a)==(b))
3182 #define __Pyx_c_sum_double(a, b) ((a)+(b))
3183 #define __Pyx_c_diff_double(a, b) ((a)-(b))
3184 #define __Pyx_c_prod_double(a, b) ((a)*(b))
3185 #define __Pyx_c_quot_double(a, b) ((a)/(b))
3186 #define __Pyx_c_neg_double(a) (-(a))
3188 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
3189 #define __Pyx_c_conj_double(z) (::std::conj(z))
3191 #define __Pyx_c_abs_double(z) (::std::abs(z))
3192 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
3195 #define __Pyx_c_is_zero_double(z) ((z)==0)
3196 #define __Pyx_c_conj_double(z) (conj(z))
3198 #define __Pyx_c_abs_double(z) (cabs(z))
3199 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
3203 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
3204 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
3205 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
3206 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
3207 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
3208 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
3209 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
3210 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
3212 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
3213 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
3218 static __Pyx_memviewslice
3219 __pyx_memoryview_copy_new_contig(
const __Pyx_memviewslice *from_mvs,
3220 const char *mode,
int ndim,
3221 size_t sizeof_dtype,
int contig_flag,
3222 int dtype_is_object);
3225 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value);
3228 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
3231 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
3234 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
3237 struct __pyx_typeinfo_string {
3240 static struct __pyx_typeinfo_string __Pyx_TypeInfoToFormat(__Pyx_TypeInfo *type);
3243 static CYTHON_INLINE
size_t __Pyx_PyInt_As_size_t(PyObject *);
3246 static CYTHON_INLINE
char __Pyx_PyInt_As_char(PyObject *);
3249 static int __Pyx_check_binary_version(
void);
3252 static int __Pyx_ExportFunction(
const char *name,
void (*
f)(
void),
const char *sig);
3255 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
3257 __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_h(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x, CYTHON_UNUSED
double __pyx_v_t,
int __pyx_skip_dispatch);
3258 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hx(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch);
3259 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hy(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch);
3260 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hz(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch);
3261 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3262 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3263 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3264 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3265 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3266 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
3267 static void __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
int __pyx_skip_dispatch);
3268 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_phi(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x);
3269 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous_sponge(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x);
3270 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED
double *__pyx_v_x);
3271 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_vel(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3272 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_zero(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED
double *__pyx_v_x, CYTHON_UNUSED
double __pyx_v_t);
3273 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_wave(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3274 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self,
int __pyx_skip_dispatch);
3275 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self,
int __pyx_skip_dispatch);
3276 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___cpp_iterate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
3277 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_velocity(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3278 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_pressure(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3279 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_phi(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3280 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_vof(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t);
3281 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_smoothing_H(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double __pyx_v_phi);
3282 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *__pyx_v_self);
3283 static char *__pyx_memoryview_get_item_pointer(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index);
3284 static PyObject *__pyx_memoryview_is_slice(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj);
3285 static PyObject *__pyx_memoryview_setitem_slice_assignment(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src);
3286 static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(
struct __pyx_memoryview_obj *__pyx_v_self,
struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value);
3287 static PyObject *__pyx_memoryview_setitem_indexed(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
3288 static PyObject *__pyx_memoryview_convert_item_to_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp);
3289 static PyObject *__pyx_memoryview_assign_item_from_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value);
3290 static PyObject *__pyx_memoryviewslice_convert_item_to_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp);
3291 static PyObject *__pyx_memoryviewslice_assign_item_from_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value);
3294 static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t,
char *,
char *,
char *);
3309 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
3322 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
3323 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
3324 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
3325 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
3326 static PyTypeObject *__pyx_ptype_5numpy_generic = 0;
3327 static PyTypeObject *__pyx_ptype_5numpy_number = 0;
3328 static PyTypeObject *__pyx_ptype_5numpy_integer = 0;
3329 static PyTypeObject *__pyx_ptype_5numpy_signedinteger = 0;
3330 static PyTypeObject *__pyx_ptype_5numpy_unsignedinteger = 0;
3331 static PyTypeObject *__pyx_ptype_5numpy_inexact = 0;
3332 static PyTypeObject *__pyx_ptype_5numpy_floating = 0;
3333 static PyTypeObject *__pyx_ptype_5numpy_complexfloating = 0;
3334 static PyTypeObject *__pyx_ptype_5numpy_flexible = 0;
3335 static PyTypeObject *__pyx_ptype_5numpy_character = 0;
3336 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
3339 static PyTypeObject *__pyx_ptype_7proteus_18BoundaryConditions_BC_Base = 0;
3340 static PyTypeObject *__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition = 0;
3345 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS = 0;
3346 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone = 0;
3347 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator = 0;
3348 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics = 0;
3349 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh = 0;
3350 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h = 0;
3351 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh = 0;
3352 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction = 0;
3353 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh = 0;
3354 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet = 0;
3355 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet = 0;
3356 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet = 0;
3357 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth = 0;
3358 static PyTypeObject *__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet = 0;
3359 static PyTypeObject *__pyx_array_type = 0;
3360 static PyTypeObject *__pyx_MemviewEnum_type = 0;
3361 static PyTypeObject *__pyx_memoryview_type = 0;
3362 static PyTypeObject *__pyx_memoryviewslice_type = 0;
3363 static PyObject *
generic = 0;
3364 static PyObject *strided = 0;
3365 static PyObject *indirect = 0;
3366 static PyObject *contiguous = 0;
3367 static PyObject *indirect_contiguous = 0;
3368 static int __pyx_memoryview_thread_locks_used;
3369 static PyThread_type_lock __pyx_memoryview_thread_locks[8];
3370 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, PyObject *);
3371 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_RelaxationZoneWaveGenerator__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *, PyObject *);
3372 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle___cppClass_WavesCharacteristics__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *, PyObject *);
3373 static CYTHON_INLINE PyObject *__Pyx_carray_to_py_double(
double *, Py_ssize_t);
3374 static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_double(
double *, Py_ssize_t);
3375 static int __Pyx_carray_from_py_double(PyObject *,
double *, Py_ssize_t);
3376 static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t,
char *,
char *,
char *);
3377 static void *__pyx_align_pointer(
void *,
size_t);
3378 static PyObject *__pyx_memoryview_new(PyObject *,
int,
int, __Pyx_TypeInfo *);
3379 static CYTHON_INLINE
int __pyx_memoryview_check(PyObject *);
3380 static PyObject *_unellipsify(PyObject *,
int);
3381 static PyObject *assert_direct_dimensions(Py_ssize_t *,
int);
3382 static struct __pyx_memoryview_obj *__pyx_memview_slice(
struct __pyx_memoryview_obj *, PyObject *);
3383 static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *, Py_ssize_t, Py_ssize_t, Py_ssize_t,
int,
int,
int *, Py_ssize_t, Py_ssize_t, Py_ssize_t,
int,
int,
int,
int);
3384 static char *__pyx_pybuffer_index(Py_buffer *,
char *, Py_ssize_t, Py_ssize_t);
3385 static int __pyx_memslice_transpose(__Pyx_memviewslice *);
3386 static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice,
int, PyObject *(*)(
char *),
int (*)(
char *, PyObject *),
int);
3387 static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
3388 static void __pyx_memoryview_slice_copy(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
3389 static PyObject *__pyx_memoryview_copy_object(
struct __pyx_memoryview_obj *);
3390 static PyObject *__pyx_memoryview_copy_object_from_slice(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
3391 static Py_ssize_t abs_py_ssize_t(Py_ssize_t);
3392 static char __pyx_get_best_slice_order(__Pyx_memviewslice *,
int);
3393 static void _copy_strided_to_strided(
char *, Py_ssize_t *,
char *, Py_ssize_t *, Py_ssize_t *, Py_ssize_t *,
int,
size_t);
3394 static void copy_strided_to_strided(__Pyx_memviewslice *, __Pyx_memviewslice *,
int,
size_t);
3395 static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *,
int);
3396 static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *, Py_ssize_t *, Py_ssize_t,
int,
char);
3397 static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *, __Pyx_memviewslice *,
char,
int);
3398 static int __pyx_memoryview_err_extents(
int, Py_ssize_t, Py_ssize_t);
3399 static int __pyx_memoryview_err_dim(PyObject *,
char *,
int);
3400 static int __pyx_memoryview_err(PyObject *,
char *);
3401 static int __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice,
int,
int,
int);
3402 static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *,
int,
int);
3403 static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *,
int,
int,
int);
3404 static void __pyx_memoryview_refcount_objects_in_slice_with_gil(
char *, Py_ssize_t *, Py_ssize_t *,
int,
int);
3405 static void __pyx_memoryview_refcount_objects_in_slice(
char *, Py_ssize_t *, Py_ssize_t *,
int,
int);
3406 static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *,
int,
size_t,
void *,
int);
3407 static void __pyx_memoryview__slice_assign_scalar(
char *, Py_ssize_t *, Py_ssize_t *,
int,
size_t,
void *);
3408 static PyObject *__pyx_unpickle_Enum__set_state(
struct __pyx_MemviewEnum_obj *, PyObject *);
3409 static PyObject *__pyx_format_from_typeinfo(__Pyx_TypeInfo *);
3410 static __Pyx_TypeInfo __Pyx_TypeInfo_double = {
"double", NULL,
sizeof(double), { 0 }, 0,
'R', 0, 0 };
3411 static __Pyx_TypeInfo __Pyx_TypeInfo_int = {
"int", NULL,
sizeof(int), { 0 }, 0, IS_UNSIGNED(
int) ?
'U' :
'I', IS_UNSIGNED(
int), 0 };
3412 #define __Pyx_MODULE_NAME "mprans.BoundaryConditions"
3413 extern int __pyx_module_is_main_mprans__BoundaryConditions;
3414 int __pyx_module_is_main_mprans__BoundaryConditions = 0;
3417 static PyObject *__pyx_builtin_super;
3418 static PyObject *__pyx_builtin_TypeError;
3419 static PyObject *__pyx_builtin_ImportError;
3420 static PyObject *__pyx_builtin_OverflowError;
3421 static PyObject *__pyx_builtin_enumerate;
3422 static PyObject *__pyx_builtin_IndexError;
3423 static PyObject *__pyx_builtin_ValueError;
3424 static PyObject *__pyx_builtin_MemoryError;
3425 static PyObject *__pyx_builtin_range;
3426 static PyObject *__pyx_builtin_Ellipsis;
3427 static PyObject *__pyx_builtin_id;
3428 static const char __pyx_k_B[] =
"B";
3429 static const char __pyx_k_E[] =
"E";
3430 static const char __pyx_k_H[] =
"H";
3431 static const char __pyx_k_K[] =
"K";
3432 static const char __pyx_k_O[] =
"O";
3433 static const char __pyx_k_T[] =
"T{";
3434 static const char __pyx_k_U[] =
"U";
3435 static const char __pyx_k_Y[] =
"Y";
3436 static const char __pyx_k_c[] =
"c";
3437 static const char __pyx_k_d[] =
"d";
3438 static const char __pyx_k_g[] =
"g";
3439 static const char __pyx_k_h[] =
"h";
3440 static const char __pyx_k_i[] =
"i";
3441 static const char __pyx_k_n[] =
"n";
3442 static const char __pyx_k_p[] =
"p";
3443 static const char __pyx_k_q[] =
"q";
3444 static const char __pyx_k_s[] =
"(%s)";
3445 static const char __pyx_k_t[] =
"t";
3446 static const char __pyx_k_u[] =
"u";
3447 static const char __pyx_k_v[] =
"v";
3448 static const char __pyx_k_w[] =
"w";
3449 static const char __pyx_k_x[] =
"x";
3450 static const char __pyx_k_U0[] =
"U0";
3451 static const char __pyx_k_Up[] =
"Up";
3452 static const char __pyx_k_a1[] =
"a1";
3453 static const char __pyx_k_ar[] =
"ar";
3454 static const char __pyx_k_dd[] =
"dd";
3455 static const char __pyx_k_eN[] =
"eN";
3456 static const char __pyx_k_hx[] =
"hx";
3457 static const char __pyx_k_hy[] =
"hy";
3458 static const char __pyx_k_hz[] =
"hz";
3459 static const char __pyx_k_id[] =
"id";
3460 static const char __pyx_k_ke[] =
"ke";
3461 static const char __pyx_k_kk[] =
"kk";
3462 static const char __pyx_k_kw[] =
"kw";
3463 static const char __pyx_k_nP[] =
"nP";
3464 static const char __pyx_k_nd[] =
"nd";
3465 static const char __pyx_k_np[] =
"np";
3466 static const char __pyx_k_nu[] =
"nu";
3467 static const char __pyx_k_os[] =
"os";
3468 static const char __pyx_k_ph[] =
"ph";
3469 static const char __pyx_k_tV[] =
"tV";
3470 static const char __pyx_k_tt[] =
"tt";
3471 static const char __pyx_k_u0[] =
"u0";
3472 static const char __pyx_k_u1[] =
"u1";
3473 static const char __pyx_k_u2[] =
"u2";
3474 static const char __pyx_k_ut[] =
"ut";
3475 static const char __pyx_k_uu[] =
"uu";
3476 static const char __pyx_k_vv[] =
"vv";
3477 static const char __pyx_k_wf[] =
"wf";
3478 static const char __pyx_k_wt[] =
"wt";
3479 static const char __pyx_k_ww[] =
"ww";
3480 static const char __pyx_k_xi[] =
"xi";
3481 static const char __pyx_k_xx[] =
"xx";
3482 static const char __pyx_k_Cmu[] =
"Cmu";
3483 static const char __pyx_k_MPI[] =
"MPI";
3484 static const char __pyx_k_Uin[] =
"Uin";
3485 static const char __pyx_k_abs[] =
"abs";
3486 static const char __pyx_k_air[] =
"air";
3487 static const char __pyx_k_all[] =
"__all__";
3488 static const char __pyx_k_b_i[] =
"b_i";
3489 static const char __pyx_k_cos[] =
"cos";
3490 static const char __pyx_k_doc[] =
"__doc__";
3491 static const char __pyx_k_dot[] =
"dot";
3492 static const char __pyx_k_eta[] =
"eta";
3493 static const char __pyx_k_exp[] =
"exp";
3494 static const char __pyx_k_get[] =
"get";
3495 static const char __pyx_k_log[] =
"log";
3496 static const char __pyx_k_mwl[] =
"mwl";
3497 static const char __pyx_k_new[] =
"__new__";
3498 static const char __pyx_k_obj[] =
"obj";
3499 static const char __pyx_k_pad[] =
"pad";
3500 static const char __pyx_k_phi[] =
"phi";
3501 static const char __pyx_k_rho[] =
"rho";
3502 static const char __pyx_k_sin[] =
"sin";
3503 static const char __pyx_k_str[] =
"str";
3504 static const char __pyx_k_sum[] =
"sum";
3505 static const char __pyx_k_sys[] =
"sys";
3506 static const char __pyx_k_u_p[] =
"u_p";
3507 static const char __pyx_k_vof[] =
"vof";
3508 static const char __pyx_k_x_0[] =
"x_0";
3509 static const char __pyx_k_Comm[] =
"Comm";
3510 static const char __pyx_k__165[] =
"^";
3511 static const char __pyx_k__166[] =
"";
3512 static const char __pyx_k__167[] =
":";
3513 static const char __pyx_k__168[] =
"}";
3514 static const char __pyx_k__169[] =
",";
3515 static const char __pyx_k_acos[] =
"acos";
3516 static const char __pyx_k_asin[] =
"asin";
3517 static const char __pyx_k_b_or[] =
"b_or";
3518 static const char __pyx_k_base[] =
"base";
3519 static const char __pyx_k_body[] =
"body";
3520 static const char __pyx_k_comm[] =
"comm";
3521 static const char __pyx_k_dict[] =
"__dict__";
3522 static const char __pyx_k_init[] =
"__init__";
3523 static const char __pyx_k_join[] =
"join";
3524 static const char __pyx_k_kVal[] =
"kVal";
3525 static const char __pyx_k_main[] =
"__main__";
3526 static const char __pyx_k_math[] =
"math";
3527 static const char __pyx_k_mesh[] =
"mesh";
3528 static const char __pyx_k_mode[] =
"mode";
3529 static const char __pyx_k_name[] =
"name";
3530 static const char __pyx_k_ndim[] =
"ndim";
3531 static const char __pyx_k_node[] =
"node";
3532 static const char __pyx_k_pRef[] =
"pRef";
3533 static const char __pyx_k_pack[] =
"pack";
3534 static const char __pyx_k_ramp[] =
"ramp";
3535 static const char __pyx_k_rank[] =
"rank";
3536 static const char __pyx_k_self[] =
"self";
3537 static const char __pyx_k_size[] =
"size";
3538 static const char __pyx_k_sqrt[] =
"sqrt";
3539 static const char __pyx_k_step[] =
"step";
3540 static const char __pyx_k_stop[] =
"stop";
3541 static const char __pyx_k_tanU[] =
"tanU";
3542 static const char __pyx_k_test[] =
"__test__";
3543 static const char __pyx_k_uDir[] =
"uDir";
3544 static const char __pyx_k_wall[] =
"wall";
3545 static const char __pyx_k_wave[] =
"wave";
3546 static const char __pyx_k_ASCII[] =
"ASCII";
3547 static const char __pyx_k_DBC_h[] =
"DBC_h";
3548 static const char __pyx_k_Ustar[] =
"Ustar";
3549 static const char __pyx_k_Uwind[] =
"Uwind";
3550 static const char __pyx_k_Yplus[] =
"Yplus";
3551 static const char __pyx_k_Ystar[] =
"Ystar";
3552 static const char __pyx_k_array[] =
"array";
3553 static const char __pyx_k_atan2[] =
"atan2";
3554 static const char __pyx_k_class[] =
"__class__";
3555 static const char __pyx_k_dtype[] =
"dtype";
3556 static const char __pyx_k_empty[] =
"empty";
3557 static const char __pyx_k_error[] =
"error";
3558 static const char __pyx_k_flags[] =
"flags";
3559 static const char __pyx_k_gradU[] =
"gradU";
3560 static const char __pyx_k_items[] =
"items";
3561 static const char __pyx_k_kInit[] =
"kInit";
3562 static const char __pyx_k_kWall[] =
"kWall";
3563 static const char __pyx_k_kappa[] =
"kappa";
3564 static const char __pyx_k_meanV[] =
"meanV";
3565 static const char __pyx_k_model[] =
"model";
3566 static const char __pyx_k_numpy[] =
"numpy";
3567 static const char __pyx_k_p_top[] =
"p_top";
3568 static const char __pyx_k_q_phi[] =
"q_phi";
3569 static const char __pyx_k_query[] =
"query";
3570 static const char __pyx_k_range[] =
"range";
3571 static const char __pyx_k_relax[] =
"relax";
3572 static const char __pyx_k_reset[] =
"reset";
3573 static const char __pyx_k_rhoUp[] =
"rhoUp";
3574 static const char __pyx_k_scipy[] =
"scipy";
3575 static const char __pyx_k_shape[] =
"shape";
3576 static const char __pyx_k_start[] =
"start";
3577 static const char __pyx_k_state[] =
"state";
3578 static const char __pyx_k_super[] =
"super";
3579 static const char __pyx_k_uInit[] =
"uInit";
3580 static const char __pyx_k_utAbs[] =
"utAbs";
3581 static const char __pyx_k_water[] =
"water";
3582 static const char __pyx_k_waves[] =
"waves";
3583 static const char __pyx_k_zeros[] =
"zeros";
3584 static const char __pyx_k_zones[] =
"zones";
3585 static const char __pyx_k_Domain[] =
"Domain";
3586 static const char __pyx_k_NoSlip[] =
"NoSlip";
3587 static const char __pyx_k_Ubound[] =
"Ubound";
3588 static const char __pyx_k_avDict[] =
"avDict";
3589 static const char __pyx_k_center[] =
"center";
3590 static const char __pyx_k_coords[] =
"coords";
3591 static const char __pyx_k_dict_2[] =
"_dict";
3592 static const char __pyx_k_encode[] =
"encode";
3593 static const char __pyx_k_format[] =
"format";
3594 static const char __pyx_k_import[] =
"__import__";
3595 static const char __pyx_k_kdtree[] =
"kdtree";
3596 static const char __pyx_k_module[] =
"__module__";
3597 static const char __pyx_k_mpi4py[] =
"mpi4py";
3598 static const char __pyx_k_name_2[] =
"__name__";
3599 static const char __pyx_k_pickle[] =
"pickle";
3600 static const char __pyx_k_porous[] =
"porous";
3601 static const char __pyx_k_reduce[] =
"__reduce__";
3602 static const char __pyx_k_struct[] =
"struct";
3603 static const char __pyx_k_unpack[] =
"unpack";
3604 static const char __pyx_k_update[] =
"update";
3605 static const char __pyx_k_utStar[] =
"utStar";
3606 static const char __pyx_k_AV_base[] =
"AV_base";
3607 static const char __pyx_k_BC_RANS[] =
"BC_RANS";
3608 static const char __pyx_k_cKDTree[] =
"cKDTree";
3609 static const char __pyx_k_dInflow[] =
"dInflow";
3610 static const char __pyx_k_eOffset[] =
"eOffset";
3611 static const char __pyx_k_element[] =
"element";
3612 static const char __pyx_k_fortran[] =
"fortran";
3613 static const char __pyx_k_kInflow[] =
"kInflow";
3614 static const char __pyx_k_memview[] =
"memview";
3615 static const char __pyx_k_new_x_0[] =
"new_x_0";
3616 static const char __pyx_k_old_div[] =
"old_div";
3617 static const char __pyx_k_phi_top[] =
"phi_top";
3618 static const char __pyx_k_prepare[] =
"__prepare__";
3619 static const char __pyx_k_proteus[] =
"proteus";
3620 static const char __pyx_k_rhoDown[] =
"rhoDown";
3621 static const char __pyx_k_setTank[] =
"setTank";
3622 static const char __pyx_k_spatial[] =
"spatial";
3623 static const char __pyx_k_statem1[] =
"statem1";
3624 static const char __pyx_k_tau_rho[] =
"tau_rho";
3625 static const char __pyx_k_vof_air[] =
"vof_air";
3626 static const char __pyx_k_Ellipsis[] =
"Ellipsis";
3627 static const char __pyx_k_FreeSlip[] =
"FreeSlip";
3628 static const char __pyx_k_builtins[] =
"builtins";
3629 static const char __pyx_k_constant[] =
"constant";
3630 static const char __pyx_k_distance[] =
"distance";
3631 static const char __pyx_k_dragBeta[] =
"dragBeta";
3632 static const char __pyx_k_femSpace[] =
"femSpace";
3633 static const char __pyx_k_getKappa[] =
"getKappa";
3634 static const char __pyx_k_getValue[] =
"getValue";
3635 static const char __pyx_k_getstate[] =
"__getstate__";
3636 static const char __pyx_k_itemsize[] =
"itemsize";
3637 static const char __pyx_k_last_pos[] =
"last_pos";
3638 static const char __pyx_k_logEvent[] =
"logEvent";
3639 static const char __pyx_k_porosity[] =
"porosity";
3640 static const char __pyx_k_pyx_type[] =
"__pyx_type";
3641 static const char __pyx_k_qualname[] =
"__qualname__";
3642 static const char __pyx_k_refLevel[] =
"refLevel";
3643 static const char __pyx_k_seaLevel[] =
"seaLevel";
3644 static const char __pyx_k_setstate[] =
"__setstate__";
3645 static const char __pyx_k_tompi4py[] =
"tompi4py";
3646 static const char __pyx_k_TypeError[] =
"TypeError";
3647 static const char __pyx_k_WaveTools[] =
"WaveTools";
3648 static const char __pyx_k_calculate[] =
"calculate";
3649 static const char __pyx_k_dragAlpha[] =
"dragAlpha";
3650 static const char __pyx_k_enumerate[] =
"enumerate";
3651 static const char __pyx_k_get_DBC_h[] =
"get_DBC_h";
3652 static const char __pyx_k_metaclass[] =
"__metaclass__";
3653 static const char __pyx_k_nodeArray[] =
"nodeArray";
3654 static const char __pyx_k_onElement[] =
"onElement";
3655 static const char __pyx_k_pyx_state[] =
"__pyx_state";
3656 static const char __pyx_k_reduce_ex[] =
"__reduce_ex__";
3657 static const char __pyx_k_setNoSlip[] =
"setNoSlip";
3658 static const char __pyx_k_smoothing[] =
"smoothing";
3659 static const char __pyx_k_turbModel[] =
"turbModel";
3660 static const char __pyx_k_vert_axis[] =
"vert_axis";
3661 static const char __pyx_k_vof_water[] =
"vof_water";
3662 static const char __pyx_k_zone_type[] =
"zone_type";
3663 static const char __pyx_k_Atmosphere[] =
"Atmosphere";
3664 static const char __pyx_k_IndexError[] =
"IndexError";
3665 static const char __pyx_k_ValueError[] =
"ValueError";
3666 static const char __pyx_k_absorption[] =
"absorption";
3667 static const char __pyx_k_generation[] =
"generation";
3668 static const char __pyx_k_kInflowAir[] =
"kInflowAir";
3669 static const char __pyx_k_past_utils[] =
"past.utils";
3670 static const char __pyx_k_phi_porous[] =
"phi_porous";
3671 static const char __pyx_k_pyx_result[] =
"__pyx_result";
3672 static const char __pyx_k_pyx_vtable[] =
"__pyx_vtable__";
3673 static const char __pyx_k_rot_matrix[] =
"rot_matrix";
3674 static const char __pyx_k_waterLevel[] =
"waterLevel";
3675 static const char __pyx_k_wind_speed[] =
"wind_speed";
3676 static const char __pyx_k_ImportError[] =
"ImportError";
3677 static const char __pyx_k_MemoryError[] =
"MemoryError";
3678 static const char __pyx_k_NonMaterial[] =
"NonMaterial";
3679 static const char __pyx_k_PickleError[] =
"PickleError";
3680 static const char __pyx_k_attachModel[] =
"attachModel";
3681 static const char __pyx_k_elementMaps[] =
"elementMaps";
3682 static const char __pyx_k_orientation[] =
"orientation";
3683 static const char __pyx_k_owning_proc[] =
"owning_proc";
3684 static const char __pyx_k_setFreeSlip[] =
"setFreeSlip";
3685 static const char __pyx_k_setLinearBC[] =
"setLinearBC";
3686 static const char __pyx_k_setMoveMesh[] =
"setMoveMesh";
3687 static const char __pyx_k_shearStress[] =
"shearStress";
3688 static const char __pyx_k_coefficients[] =
"coefficients";
3689 static const char __pyx_k_coords_relax[] =
"coords_relax";
3690 static const char __pyx_k_getVariables[] =
"getVariables";
3691 static const char __pyx_k_kWall___init[] =
"kWall.__init__";
3692 static const char __pyx_k_nearest_node[] =
"nearest_node";
3693 static const char __pyx_k_nodes_kdtree[] =
"nodes_kdtree";
3694 static const char __pyx_k_pyx_checksum[] =
"__pyx_checksum";
3695 static const char __pyx_k_q_phi_porous[] =
"q_phi_porous";
3696 static const char __pyx_k_stringsource[] =
"stringsource";
3697 static const char __pyx_k_use_setstate[] =
"use_setstate";
3698 static const char __pyx_k_ux_dirichlet[] =
"ux_dirichlet";
3699 static const char __pyx_k_BC_RANS_reset[] =
"BC_RANS.reset";
3700 static const char __pyx_k_OverflowError[] =
"OverflowError";
3701 static const char __pyx_k_WallFunctions[] =
"WallFunctions";
3702 static const char __pyx_k_Wall_function[] =
"Wall function";
3703 static const char __pyx_k_kappaNearWall[] =
"kappaNearWall";
3704 static const char __pyx_k_last_position[] =
"last_position";
3705 static const char __pyx_k_local_element[] =
"local_element";
3706 static const char __pyx_k_nSpace_global[] =
"nSpace_global";
3707 static const char __pyx_k_pyx_getbuffer[] =
"__pyx_getbuffer";
3708 static const char __pyx_k_reduce_cython[] =
"__reduce_cython__";
3709 static const char __pyx_k_setAtmosphere[] =
"setAtmosphere";
3710 static const char __pyx_k_setChMoveMesh[] =
"setChMoveMesh";
3711 static const char __pyx_k_setConstantBC[] =
"setConstantBC";
3712 static const char __pyx_k_setFixedNodes[] =
"setFixedNodes";
3713 static const char __pyx_k_setLinearRamp[] =
"setLinearRamp";
3714 static const char __pyx_k_RelaxationZone[] =
"RelaxationZone";
3715 static const char __pyx_k_calculate_init[] =
"calculate_init";
3716 static const char __pyx_k_cpp_MoveMesh_h[] =
"__cpp_MoveMesh_h";
3717 static const char __pyx_k_dissipationVal[] =
"dissipationVal";
3718 static const char __pyx_k_epsFact_porous[] =
"epsFact_porous";
3719 static const char __pyx_k_kWall_getKappa[] =
"kWall.getKappa";
3720 static const char __pyx_k_levelModelList[] =
"levelModelList";
3721 static const char __pyx_k_setNonMaterial[] =
"setNonMaterial";
3722 static const char __pyx_k_BC_RANS_setTank[] =
"BC_RANS.setTank";
3723 static const char __pyx_k_Closure_0_model[] =
"Closure_0_model";
3724 static const char __pyx_k_Closure_1_model[] =
"Closure_1_model";
3725 static const char __pyx_k_View_MemoryView[] =
"View.MemoryView";
3726 static const char __pyx_k_allocate_buffer[] =
"allocate_buffer";
3727 static const char __pyx_k_checkedElements[] =
"checkedElements";
3728 static const char __pyx_k_constant_values[] =
"constant_values";
3729 static const char __pyx_k_cpp_MoveMesh_hx[] =
"__cpp_MoveMesh_hx";
3730 static const char __pyx_k_cpp_MoveMesh_hy[] =
"__cpp_MoveMesh_hy";
3731 static const char __pyx_k_cpp_MoveMesh_hz[] =
"__cpp_MoveMesh_hz";
3732 static const char __pyx_k_dtype_is_object[] =
"dtype_is_object";
3733 static const char __pyx_k_extractVelocity[] =
"extractVelocity";
3734 static const char __pyx_k_getInverseValue[] =
"getInverseValue";
3735 static const char __pyx_k_getLocalElement[] =
"getLocalElement";
3736 static const char __pyx_k_get_k_dirichlet[] =
"get_k_dirichlet";
3737 static const char __pyx_k_get_u_diffusive[] =
"get_u_diffusive";
3738 static const char __pyx_k_get_u_dirichlet[] =
"get_u_dirichlet";
3739 static const char __pyx_k_get_v_diffusive[] =
"get_v_diffusive";
3740 static const char __pyx_k_get_v_dirichlet[] =
"get_v_dirichlet";
3741 static const char __pyx_k_get_w_diffusive[] =
"get_w_diffusive";
3742 static const char __pyx_k_get_w_dirichlet[] =
"get_w_dirichlet";
3743 static const char __pyx_k_kWall_calculate[] =
"kWall.calculate";
3744 static const char __pyx_k_pyx_PickleError[] =
"__pyx_PickleError";
3745 static const char __pyx_k_rotation_matrix[] =
"rotation_matrix";
3746 static const char __pyx_k_setWallFunction[] =
"setWallFunction";
3747 static const char __pyx_k_setstate_cython[] =
"__setstate_cython__";
3748 static const char __pyx_k_timeIntegration[] =
"timeIntegration";
3749 static const char __pyx_k_velocity_porous[] =
"velocity_porous";
3750 static const char __pyx_k_referenceElement[] =
"referenceElement";
3751 static const char __pyx_k_BC_RANS_setNoSlip[] =
"BC_RANS.setNoSlip";
3752 static const char __pyx_k_dissipationInflow[] =
"dissipationInflow";
3753 static const char __pyx_k_elementNodesArray[] =
"elementNodesArray";
3754 static const char __pyx_k_femSpace_velocity[] =
"femSpace_velocity";
3755 static const char __pyx_k_inlet_k_dirichlet[] =
"inlet_k_dirichlet";
3756 static const char __pyx_k_inlet_p_advective[] =
"inlet_p_advective";
3757 static const char __pyx_k_kWall_attachModel[] =
"kWall.attachModel";
3758 static const char __pyx_k_nodeElementsArray[] =
"nodeElementsArray";
3759 static const char __pyx_k_proteus_Profiling[] =
"proteus.Profiling";
3760 static const char __pyx_k_pyx_unpickle_Enum[] =
"__pyx_unpickle_Enum";
3761 static const char __pyx_k_q_velocity_porous[] =
"q_velocity_porous";
3762 static const char __pyx_k_smoothedHeaviside[] =
"smoothedHeaviside";
3763 static const char __pyx_k_AuxiliaryVariables[] =
"AuxiliaryVariables";
3764 static const char __pyx_k_BoundaryConditions[] =
"BoundaryConditions";
3765 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
3766 static const char __pyx_k_nodeElementOffsets[] =
"nodeElementOffsets";
3767 static const char __pyx_k_patchBoundaryNodes[] =
"patchBoundaryNodes";
3768 static const char __pyx_k_strided_and_direct[] =
"<strided and direct>";
3769 static const char __pyx_k_tangentialVelocity[] =
"tangentialVelocity";
3770 static const char __pyx_k_BC_RANS_setFreeSlip[] =
"BC_RANS.setFreeSlip";
3771 static const char __pyx_k_BC_RANS_setMoveMesh[] =
"BC_RANS.setMoveMesh";
3772 static const char __pyx_k_getLocalNearestNode[] =
"getLocalNearestNode";
3773 static const char __pyx_k_inlet_phi_dirichlet[] =
"inlet_phi_dirichlet";
3774 static const char __pyx_k_inlet_vof_dirichlet[] =
"inlet_vof_dirichlet";
3775 static const char __pyx_k_kWall_kappaNearWall[] =
"kWall.kappaNearWall";
3776 static const char __pyx_k_WallFunctions___init[] =
"WallFunctions.__init__";
3777 static const char __pyx_k_calculate_phi_python[] =
"calculate_phi_python";
3778 static const char __pyx_k_calculate_vel_python[] =
"calculate_vel_python";
3779 static const char __pyx_k_dissipationInflowAir[] =
"dissipationInflowAir";
3780 static const char __pyx_k_elementMaterialTypes[] =
"elementMaterialTypes";
3781 static const char __pyx_k_kWall_calculate_init[] =
"kWall.calculate_init";
3782 static const char __pyx_k_pyx_unpickle_BC_RANS[] =
"__pyx_unpickle_BC_RANS";
3783 static const char __pyx_k_setRigidBodyMoveMesh[] =
"setRigidBodyMoveMesh";
3784 static const char __pyx_k_strided_and_indirect[] =
"<strided and indirect>";
3785 static const char __pyx_k_BC_RANS_setAtmosphere[] =
"BC_RANS.setAtmosphere";
3786 static const char __pyx_k_BC_RANS_setChMoveMesh[] =
"BC_RANS.setChMoveMesh";
3787 static const char __pyx_k_BC_RANS_setFixedNodes[] =
"BC_RANS.setFixedNodes";
3788 static const char __pyx_k_TwoPhaseVelocityInlet[] =
"TwoPhaseVelocityInlet";
3789 static const char __pyx_k_constantInletVelocity[] =
"constantInletVelocity";
3790 static const char __pyx_k_contiguous_and_direct[] =
"<contiguous and direct>";
3791 static const char __pyx_k_nearest_node_distance[] =
"nearest_node_distance";
3792 static const char __pyx_k_setTurbulentDirichlet[] =
"setTurbulentDirichlet";
3793 static const char __pyx_k_BC_RANS_setNonMaterial[] =
"BC_RANS.setNonMaterial";
3794 static const char __pyx_k_MemoryView_of_r_object[] =
"<MemoryView of %r object>";
3795 static const char __pyx_k_constantOutletPressure[] =
"constantOutletPressure";
3796 static const char __pyx_k_get_inlet_ux_dirichlet[] =
"get_inlet_ux_dirichlet";
3797 static const char __pyx_k_BC_RANS___reduce_cython[] =
"BC_RANS.__reduce_cython__";
3798 static const char __pyx_k_BC_RANS_setWallFunction[] =
"BC_RANS.setWallFunction";
3799 static const char __pyx_k_MemoryView_of_r_at_0x_x[] =
"<MemoryView of %r at 0x%x>";
3800 static const char __pyx_k_WallFunctions_calculate[] =
"WallFunctions.calculate";
3801 static const char __pyx_k_contiguous_and_indirect[] =
"<contiguous and indirect>";
3802 static const char __pyx_k_setYplusNormalDirection[] =
"setYplusNormalDirection";
3803 static const char __pyx_k_BC_RANS___cpp_MoveMesh_h[] =
"BC_RANS.__cpp_MoveMesh_h";
3804 static const char __pyx_k_Cannot_index_with_type_s[] =
"Cannot index with type '%s'";
3805 static const char __pyx_k_attachAuxiliaryVariables[] =
"attachAuxiliaryVariables";
3806 static const char __pyx_k_getFluidKappaLocalCoords[] =
"getFluidKappaLocalCoords";
3807 static const char __pyx_k_setConstantInletVelocity[] =
"setConstantInletVelocity";
3808 static const char __pyx_k_setTurbulentZeroGradient[] =
"setTurbulentZeroGradient";
3809 static const char __pyx_k_setTwoPhaseVelocityInlet[] =
"setTwoPhaseVelocityInlet";
3810 static const char __pyx_k_BC_RANS___cpp_MoveMesh_hx[] =
"BC_RANS.__cpp_MoveMesh_hx";
3811 static const char __pyx_k_BC_RANS___cpp_MoveMesh_hy[] =
"BC_RANS.__cpp_MoveMesh_hy";
3812 static const char __pyx_k_BC_RANS___cpp_MoveMesh_hz[] =
"BC_RANS.__cpp_MoveMesh_hz";
3813 static const char __pyx_k_BC_RANS___setstate_cython[] =
"BC_RANS.__setstate_cython__";
3814 static const char __pyx_k_Invalid_shape_in_axis_d_d[] =
"Invalid shape in axis %d: %d.";
3815 static const char __pyx_k_WallFunctions_attachModel[] =
"WallFunctions.attachModel";
3816 static const char __pyx_k_get_dissipation_dirichlet[] =
"get_dissipation_dirichlet";
3817 static const char __pyx_k_mprans_BoundaryConditions[] =
"mprans.BoundaryConditions";
3818 static const char __pyx_k_setConstantOutletPressure[] =
"setConstantOutletPressure";
3819 static const char __pyx_k_setMoveMesh_locals_lambda[] =
"setMoveMesh.<locals>.<lambda>";
3820 static const char __pyx_k_WallFunctions_getVariables[] =
"WallFunctions.getVariables";
3821 static const char __pyx_k_smoothedHeaviside_integral[] =
"smoothedHeaviside_integral";
3822 static const char __pyx_k_RelaxationZoneWaveGenerator[] =
"RelaxationZoneWaveGenerator";
3823 static const char __pyx_k_findElementContainingCoords[] =
"findElementContainingCoords";
3824 static const char __pyx_k_getFluidVelocityLocalCoords[] =
"getFluidVelocityLocalCoords";
3825 static const char __pyx_k_inlet_dissipation_dirichlet[] =
"inlet_dissipation_dirichlet";
3826 static const char __pyx_k_itemsize_0_for_cython_array[] =
"itemsize <= 0 for cython.array";
3827 static const char __pyx_k_setChMoveMesh_locals_lambda[] =
"setChMoveMesh.<locals>.<lambda>";
3828 static const char __pyx_k_BC_RANS_setRigidBodyMoveMesh[] =
"BC_RANS.setRigidBodyMoveMesh";
3829 static const char __pyx_k_WallFunctions_calculate_init[] =
"WallFunctions.calculate_init";
3830 static const char __pyx_k_BC_RANS_setTurbulentDirichlet[] =
"BC_RANS.setTurbulentDirichlet";
3831 static const char __pyx_k_RelaxationZone_calculate_init[] =
"RelaxationZone.calculate_init";
3832 static const char __pyx_k_WallFunctions_extractVelocity[] =
"WallFunctions.extractVelocity";
3833 static const char __pyx_k_WallFunctions_getLocalElement[] =
"WallFunctions.getLocalElement";
3834 static const char __pyx_k_WallFunctions_get_k_dirichlet[] =
"WallFunctions.get_k_dirichlet";
3835 static const char __pyx_k_WallFunctions_get_u_diffusive[] =
"WallFunctions.get_u_diffusive";
3836 static const char __pyx_k_WallFunctions_get_u_dirichlet[] =
"WallFunctions.get_u_dirichlet";
3837 static const char __pyx_k_WallFunctions_get_v_diffusive[] =
"WallFunctions.get_v_diffusive";
3838 static const char __pyx_k_WallFunctions_get_v_dirichlet[] =
"WallFunctions.get_v_dirichlet";
3839 static const char __pyx_k_WallFunctions_get_w_diffusive[] =
"WallFunctions.get_w_diffusive";
3840 static const char __pyx_k_WallFunctions_get_w_dirichlet[] =
"WallFunctions.get_w_dirichlet";
3841 static const char __pyx_k_cppClass_WavesCharacteristics[] =
"__cppClass_WavesCharacteristics";
3842 static const char __pyx_k_setWallFunction_locals_lambda[] =
"setWallFunction.<locals>.<lambda>";
3843 static const char __pyx_k_unable_to_allocate_array_data[] =
"unable to allocate array data.";
3844 static const char __pyx_k_RelaxationZone___reduce_cython[] =
"RelaxationZone.__reduce_cython__";
3845 static const char __pyx_k_kWall_attachAuxiliaryVariables[] =
"kWall.attachAuxiliaryVariables";
3846 static const char __pyx_k_kWall_getFluidKappaLocalCoords[] =
"kWall.getFluidKappaLocalCoords";
3847 static const char __pyx_k_proteus_ctransportCoefficients[] =
"proteus.ctransportCoefficients";
3848 static const char __pyx_k_pyx_unpickle_RelaxationZoneWav[] =
"__pyx_unpickle_RelaxationZoneWaveGenerator";
3849 static const char __pyx_k_pyx_unpickle___cppClass_WavesC[] =
"__pyx_unpickle___cppClass_WavesCharacteristics";
3850 static const char __pyx_k_strided_and_direct_or_indirect[] =
"<strided and direct or indirect>";
3851 static const char __pyx_k_Auxiliary_variable_used_to_calc[] =
"\n Auxiliary variable used to calculate attributes of an associated shape\n class instance acting as a wall.\n ";
3852 static const char __pyx_k_WARNING_Dirichlet_condition_for[] =
"WARNING: Dirichlet condition for k in ";
3853 static const char __pyx_k_cppClass_WavesCharacteristics_2[] =
"_cppClass_WavesCharacteristics";
3854 static const char __pyx_k_cppClass_WavesCharacteristics_3[] =
"__cppClass_WavesCharacteristics.__reduce_cython__";
3855 static const char __pyx_k_cppClass_WavesCharacteristics_4[] =
"__cppClass_WavesCharacteristics.__setstate_cython__";
3856 static const char __pyx_k_has_not_been_set_Ignore_if_RANS[] =
" has not been set. Ignore if RANS is not used";
3857 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
3858 static const char __pyx_k_oritentation_must_be_set_for_BC[] =
"oritentation must be set for BC";
3859 static const char __pyx_k_setRigidBodyMoveMesh_locals_get[] =
"setRigidBodyMoveMesh.<locals>.get_DBC_h.<locals>.DBC_h";
3860 static const char __pyx_k_setTwoPhaseVelocityInlet_locals[] =
"setTwoPhaseVelocityInlet.<locals>.get_inlet_ux_dirichlet.<locals>.ux_dirichlet";
3861 static const char __pyx_k_BC_RANS_setConstantInletVelocity[] =
"BC_RANS.setConstantInletVelocity";
3862 static const char __pyx_k_BC_RANS_setConstantOutletPressur[] =
"BC_RANS.setConstantOutletPressure";
3863 static const char __pyx_k_BC_RANS_setHydrostaticPressureOu[] =
"BC_RANS.setHydrostaticPressureOutletWithDepth";
3864 static const char __pyx_k_BC_RANS_setTurbulentZeroGradient[] =
"BC_RANS.setTurbulentZeroGradient";
3865 static const char __pyx_k_BC_RANS_setTwoPhaseVelocityInlet[] =
"BC_RANS.setTwoPhaseVelocityInlet";
3866 static const char __pyx_k_BC_RANS_setUnsteadyTwoPhaseVeloc[] =
"BC_RANS.setUnsteadyTwoPhaseVelocityInlet";
3867 static const char __pyx_k_Boundary_orientation_must_be_def[] =
"Boundary orientation must be defined!";
3868 static const char __pyx_k_Buffer_view_does_not_expose_stri[] =
"Buffer view does not expose strides";
3869 static const char __pyx_k_Can_only_create_a_buffer_that_is[] =
"Can only create a buffer that is contiguous in memory.";
3870 static const char __pyx_k_Cannot_assign_to_read_only_memor[] =
"Cannot assign to read-only memoryview";
3871 static const char __pyx_k_Cannot_create_writable_memory_vi[] =
"Cannot create writable memory view from read-only memoryview";
3872 static const char __pyx_k_ERROR_Boundary_orientation_for_H[] =
"ERROR: Boundary orientation for Hydrostatic flow outlet is not defined";
3873 static const char __pyx_k_ERROR_Boundary_orientation_for_U[] =
"ERROR: Boundary orientation for Unsteady flow inlet is not defined";
3874 static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] =
"Empty shape tuple for cython.array";
3875 static const char __pyx_k_Incompatible_checksums_0x_x_vs_0[] =
"Incompatible checksums (0x%x vs (0xb56ce2c, 0x5b1bad8, 0xceba269) = (BC_type, Shape, _b_or, body, body_python_h, body_python_last_pos, body_python_rot_matrix, clsvof_advective, clsvof_diffusive, clsvof_dirichlet, ct, dissipation_advective, dissipation_diffusive, dissipation_dirichlet, f, hx_dirichlet, hy_dirichlet, hz_dirichlet, k_advective, k_diffusive, k_dirichlet, name, nd, pAddedMass_dirichlet, pInc_advective, pInc_diffusive, pInc_dirichlet, pInit_advective, pInit_diffusive, pInit_dirichlet, p_advective, p_dirichlet, phi_dirichlet, u_advective, u_diffusive, u_dirichlet, u_stress, us_advective, us_diffusive, us_dirichlet, v_advective, v_diffusive, v_dirichlet, v_stress, vof_advective, vof_dirichlet, vos_advective, vos_dirichlet, vs_advective, vs_diffusive, vs_dirichlet, w_advective, w_diffusive, w_dirichlet, w_stress, waves, wind_speed, ws_advective, ws_diffusive, ws_dirichlet, zero_array))";
3876 static const char __pyx_k_Indirect_dimensions_not_supporte[] =
"Indirect dimensions not supported";
3877 static const char __pyx_k_Invalid_mode_expected_c_or_fortr[] =
"Invalid mode, expected 'c' or 'fortran', got %s";
3878 static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] =
"Out of bounds on buffer access (axis %d)";
3879 static const char __pyx_k_RelaxationZoneWaveGenerator___re[] =
"RelaxationZoneWaveGenerator.__reduce_cython__";
3880 static const char __pyx_k_RelaxationZoneWaveGenerator___se[] =
"RelaxationZoneWaveGenerator.__setstate_cython__";
3881 static const char __pyx_k_RelaxationZoneWaveGenerator_atta[] =
"RelaxationZoneWaveGenerator.attachModel";
3882 static const char __pyx_k_RelaxationZoneWaveGenerator_calc[] =
"RelaxationZoneWaveGenerator.calculate_init";
3883 static const char __pyx_k_RelaxationZone___setstate_cython[] =
"RelaxationZone.__setstate_cython__";
3884 static const char __pyx_k_RelaxationZone_calculate_phi_pyt[] =
"RelaxationZone.calculate_phi_python";
3885 static const char __pyx_k_RelaxationZone_calculate_vel_pyt[] =
"RelaxationZone.calculate_vel_python";
3886 static const char __pyx_k_Unable_to_convert_item_to_object[] =
"Unable to convert item to object";
3887 static const char __pyx_k_WallFunctions_attachAuxiliaryVar[] =
"WallFunctions.attachAuxiliaryVariables";
3888 static const char __pyx_k_WallFunctions_findElementContain[] =
"WallFunctions.findElementContainingCoords";
3889 static const char __pyx_k_WallFunctions_getFluidVelocityLo[] =
"WallFunctions.getFluidVelocityLocalCoords";
3890 static const char __pyx_k_WallFunctions_getLocalNearestNod[] =
"WallFunctions.getLocalNearestNode";
3891 static const char __pyx_k_WallFunctions_get_dissipation_di[] =
"WallFunctions.get_dissipation_dirichlet";
3892 static const char __pyx_k_WallFunctions_setYplusNormalDire[] =
"WallFunctions.setYplusNormalDirection";
3893 static const char __pyx_k_WallFunctions_tangentialVelocity[] =
"WallFunctions.tangentialVelocity";
3894 static const char __pyx_k_got_differing_extents_in_dimensi[] =
"got differing extents in dimension %d (got %d and %d)";
3895 static const char __pyx_k_hydrostaticPressureOutletWithDep[] =
"hydrostaticPressureOutletWithDepth_p_dirichlet";
3896 static const char __pyx_k_no_default___reduce___due_to_non[] =
"no default __reduce__ due to non-trivial __cinit__";
3897 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
3898 static const char __pyx_k_proteus_mprans_BoundaryCondition[] =
"proteus/mprans/BoundaryConditions.py";
3899 static const char __pyx_k_setHydrostaticPressureOutletWith[] =
"setHydrostaticPressureOutletWithDepth.<locals>.get_inlet_ux_dirichlet.<locals>.ux_dirichlet";
3900 static const char __pyx_k_setUnsteadyTwoPhaseVelocityInlet[] =
"setUnsteadyTwoPhaseVelocityInlet.<locals>.<lambda>";
3901 static const char __pyx_k_unable_to_allocate_shape_and_str[] =
"unable to allocate shape and strides.";
3902 static const char __pyx_k_Auxiliary_variable_used_to_calc_2[] =
"\n Auxiliary variable used to calculate attributes of an associated shape\n class instance acting as a wall for the k variable.\n ";
3903 static const char __pyx_k_WARNING_Dirichlet_condition_for_2[] =
"WARNING: Dirichlet condition for dissipation in ";
3904 static const char __pyx_k_setRigidBodyMoveMesh_locals_get_2[] =
"setRigidBodyMoveMesh.<locals>.get_DBC_h";
3905 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_2[] =
"setTwoPhaseVelocityInlet.<locals>.get_inlet_ux_dirichlet";
3906 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_3[] =
"setTwoPhaseVelocityInlet.<locals>.inlet_phi_dirichlet";
3907 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_4[] =
"setTwoPhaseVelocityInlet.<locals>.inlet_vof_dirichlet";
3908 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_5[] =
"setTwoPhaseVelocityInlet.<locals>.inlet_p_advective";
3909 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_6[] =
"setTwoPhaseVelocityInlet.<locals>.inlet_k_dirichlet";
3910 static const char __pyx_k_setTwoPhaseVelocityInlet_locals_7[] =
"setTwoPhaseVelocityInlet.<locals>.inlet_dissipation_dirichlet";
3911 static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_2[] =
"Incompatible checksums (0x%x vs (0x03213e4, 0xc570c34, 0xedef97b) = (ar, max_flag, model, nd, zones, zones_array))";
3912 static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_3[] =
"Incompatible checksums (0x%x vs (0x17beb7a, 0x99c0f35, 0x23a708e) = (WT, _b_or, center, orientation, smoothing, vert_axis, vof_air, vof_water, wind_speed, zero_vel))";
3913 static const char __pyx_k_Incompatible_checksums_0x_x_vs_0_4[] =
"Incompatible checksums (0x%x vs (0xb068931, 0x82a3537, 0x6ae9995) = (name))";
3914 static const char __pyx_k_RelaxationZoneWaveGenerator_atta_2[] =
"RelaxationZoneWaveGenerator.attachAuxiliaryVariables";
3915 static const char __pyx_k_RelaxationZoneWaveGenerator_calc_2[] =
"RelaxationZoneWaveGenerator.calculate";
3916 static const char __pyx_k_hydrostaticPressureOutletWithDep_2[] =
"hydrostaticPressureOutletWithDepth_phi_dirichlet";
3917 static const char __pyx_k_hydrostaticPressureOutletWithDep_3[] =
"hydrostaticPressureOutletWithDepth_vof_dirichlet";
3918 static const char __pyx_k_setHydrostaticPressureOutletWith_2[] =
"setHydrostaticPressureOutletWithDepth.<locals>.hydrostaticPressureOutletWithDepth_p_dirichlet";
3919 static const char __pyx_k_setHydrostaticPressureOutletWith_3[] =
"setHydrostaticPressureOutletWithDepth.<locals>.hydrostaticPressureOutletWithDepth_phi_dirichlet";
3920 static const char __pyx_k_setHydrostaticPressureOutletWith_4[] =
"setHydrostaticPressureOutletWithDepth.<locals>.hydrostaticPressureOutletWithDepth_vof_dirichlet";
3921 static const char __pyx_k_setHydrostaticPressureOutletWith_5[] =
"setHydrostaticPressureOutletWithDepth.<locals>.inlet_k_dirichlet";
3922 static const char __pyx_k_setHydrostaticPressureOutletWith_6[] =
"setHydrostaticPressureOutletWithDepth.<locals>.inlet_dissipation_dirichlet";
3923 static const char __pyx_k_setHydrostaticPressureOutletWith_7[] =
"setHydrostaticPressureOutletWithDepth.<locals>.get_inlet_ux_dirichlet";
3924 static const char __pyx_k_setHydrostaticPressureOutletWith_8[] =
"setHydrostaticPressureOutletWithDepth";
3925 static const char __pyx_k_setUnsteadyTwoPhaseVelocityInlet_2[] =
"setUnsteadyTwoPhaseVelocityInlet";
3926 static PyObject *__pyx_n_s_ASCII;
3927 static PyObject *__pyx_n_s_AV_base;
3928 static PyObject *__pyx_n_s_Atmosphere;
3929 static PyObject *__pyx_n_s_AuxiliaryVariables;
3930 static PyObject *__pyx_kp_s_Auxiliary_variable_used_to_calc;
3931 static PyObject *__pyx_kp_s_Auxiliary_variable_used_to_calc_2;
3932 static PyObject *__pyx_n_s_B;
3933 static PyObject *__pyx_n_s_BC_RANS;
3934 static PyObject *__pyx_n_s_BC_RANS___cpp_MoveMesh_h;
3935 static PyObject *__pyx_n_s_BC_RANS___cpp_MoveMesh_hx;
3936 static PyObject *__pyx_n_s_BC_RANS___cpp_MoveMesh_hy;
3937 static PyObject *__pyx_n_s_BC_RANS___cpp_MoveMesh_hz;
3938 static PyObject *__pyx_n_s_BC_RANS___reduce_cython;
3939 static PyObject *__pyx_n_s_BC_RANS___setstate_cython;
3940 static PyObject *__pyx_n_s_BC_RANS_reset;
3941 static PyObject *__pyx_n_s_BC_RANS_setAtmosphere;
3942 static PyObject *__pyx_n_s_BC_RANS_setChMoveMesh;
3943 static PyObject *__pyx_n_s_BC_RANS_setConstantInletVelocity;
3944 static PyObject *__pyx_n_s_BC_RANS_setConstantOutletPressur;
3945 static PyObject *__pyx_n_s_BC_RANS_setFixedNodes;
3946 static PyObject *__pyx_n_s_BC_RANS_setFreeSlip;
3947 static PyObject *__pyx_n_s_BC_RANS_setHydrostaticPressureOu;
3948 static PyObject *__pyx_n_s_BC_RANS_setMoveMesh;
3949 static PyObject *__pyx_n_s_BC_RANS_setNoSlip;
3950 static PyObject *__pyx_n_s_BC_RANS_setNonMaterial;
3951 static PyObject *__pyx_n_s_BC_RANS_setRigidBodyMoveMesh;
3952 static PyObject *__pyx_n_s_BC_RANS_setTank;
3953 static PyObject *__pyx_n_s_BC_RANS_setTurbulentDirichlet;
3954 static PyObject *__pyx_n_s_BC_RANS_setTurbulentZeroGradient;
3955 static PyObject *__pyx_n_s_BC_RANS_setTwoPhaseVelocityInlet;
3956 static PyObject *__pyx_n_s_BC_RANS_setUnsteadyTwoPhaseVeloc;
3957 static PyObject *__pyx_n_s_BC_RANS_setWallFunction;
3958 static PyObject *__pyx_n_s_BoundaryConditions;
3959 static PyObject *__pyx_kp_s_Boundary_orientation_must_be_def;
3960 static PyObject *__pyx_kp_s_Buffer_view_does_not_expose_stri;
3961 static PyObject *__pyx_kp_s_Can_only_create_a_buffer_that_is;
3962 static PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor;
3963 static PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi;
3964 static PyObject *__pyx_kp_s_Cannot_index_with_type_s;
3965 static PyObject *__pyx_n_s_Closure_0_model;
3966 static PyObject *__pyx_n_s_Closure_1_model;
3967 static PyObject *__pyx_n_s_Cmu;
3968 static PyObject *__pyx_n_s_Comm;
3969 static PyObject *__pyx_n_s_DBC_h;
3970 static PyObject *__pyx_n_s_Domain;
3971 static PyObject *__pyx_n_s_E;
3972 static PyObject *__pyx_kp_s_ERROR_Boundary_orientation_for_H;
3973 static PyObject *__pyx_kp_s_ERROR_Boundary_orientation_for_U;
3974 static PyObject *__pyx_n_s_Ellipsis;
3975 static PyObject *__pyx_kp_s_Empty_shape_tuple_for_cython_arr;
3976 static PyObject *__pyx_n_s_FreeSlip;
3977 static PyObject *__pyx_n_s_H;
3978 static PyObject *__pyx_n_s_ImportError;
3979 static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0;
3980 static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2;
3981 static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3;
3982 static PyObject *__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4;
3983 static PyObject *__pyx_n_s_IndexError;
3984 static PyObject *__pyx_kp_s_Indirect_dimensions_not_supporte;
3985 static PyObject *__pyx_kp_s_Invalid_mode_expected_c_or_fortr;
3986 static PyObject *__pyx_kp_s_Invalid_shape_in_axis_d_d;
3987 static PyObject *__pyx_n_s_K;
3988 static PyObject *__pyx_n_s_MPI;
3989 static PyObject *__pyx_n_s_MemoryError;
3990 static PyObject *__pyx_kp_s_MemoryView_of_r_at_0x_x;
3991 static PyObject *__pyx_kp_s_MemoryView_of_r_object;
3992 static PyObject *__pyx_n_s_NoSlip;
3993 static PyObject *__pyx_n_s_NonMaterial;
3994 static PyObject *__pyx_n_b_O;
3995 static PyObject *__pyx_kp_s_Out_of_bounds_on_buffer_access_a;
3996 static PyObject *__pyx_n_s_OverflowError;
3997 static PyObject *__pyx_n_s_PickleError;
3998 static PyObject *__pyx_n_s_RelaxationZone;
3999 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator;
4000 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator___re;
4001 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator___se;
4002 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator_atta;
4003 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator_atta_2;
4004 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator_calc;
4005 static PyObject *__pyx_n_s_RelaxationZoneWaveGenerator_calc_2;
4006 static PyObject *__pyx_n_s_RelaxationZone___reduce_cython;
4007 static PyObject *__pyx_n_s_RelaxationZone___setstate_cython;
4008 static PyObject *__pyx_n_s_RelaxationZone_calculate_init;
4009 static PyObject *__pyx_n_s_RelaxationZone_calculate_phi_pyt;
4010 static PyObject *__pyx_n_s_RelaxationZone_calculate_vel_pyt;
4011 static PyObject *__pyx_kp_b_T;
4012 static PyObject *__pyx_n_s_TwoPhaseVelocityInlet;
4013 static PyObject *__pyx_n_s_TypeError;
4014 static PyObject *__pyx_n_s_U;
4015 static PyObject *__pyx_n_s_U0;
4016 static PyObject *__pyx_n_s_Ubound;
4017 static PyObject *__pyx_n_s_Uin;
4018 static PyObject *__pyx_kp_s_Unable_to_convert_item_to_object;
4019 static PyObject *__pyx_n_s_Up;
4020 static PyObject *__pyx_n_s_Ustar;
4021 static PyObject *__pyx_n_s_Uwind;
4022 static PyObject *__pyx_n_s_ValueError;
4023 static PyObject *__pyx_n_s_View_MemoryView;
4024 static PyObject *__pyx_kp_s_WARNING_Dirichlet_condition_for;
4025 static PyObject *__pyx_kp_s_WARNING_Dirichlet_condition_for_2;
4026 static PyObject *__pyx_n_s_WallFunctions;
4027 static PyObject *__pyx_n_s_WallFunctions___init;
4028 static PyObject *__pyx_n_s_WallFunctions_attachAuxiliaryVar;
4029 static PyObject *__pyx_n_s_WallFunctions_attachModel;
4030 static PyObject *__pyx_n_s_WallFunctions_calculate;
4031 static PyObject *__pyx_n_s_WallFunctions_calculate_init;
4032 static PyObject *__pyx_n_s_WallFunctions_extractVelocity;
4033 static PyObject *__pyx_n_s_WallFunctions_findElementContain;
4034 static PyObject *__pyx_n_s_WallFunctions_getFluidVelocityLo;
4035 static PyObject *__pyx_n_s_WallFunctions_getLocalElement;
4036 static PyObject *__pyx_n_s_WallFunctions_getLocalNearestNod;
4037 static PyObject *__pyx_n_s_WallFunctions_getVariables;
4038 static PyObject *__pyx_n_s_WallFunctions_get_dissipation_di;
4039 static PyObject *__pyx_n_s_WallFunctions_get_k_dirichlet;
4040 static PyObject *__pyx_n_s_WallFunctions_get_u_diffusive;
4041 static PyObject *__pyx_n_s_WallFunctions_get_u_dirichlet;
4042 static PyObject *__pyx_n_s_WallFunctions_get_v_diffusive;
4043 static PyObject *__pyx_n_s_WallFunctions_get_v_dirichlet;
4044 static PyObject *__pyx_n_s_WallFunctions_get_w_diffusive;
4045 static PyObject *__pyx_n_s_WallFunctions_get_w_dirichlet;
4046 static PyObject *__pyx_n_s_WallFunctions_setYplusNormalDire;
4047 static PyObject *__pyx_n_s_WallFunctions_tangentialVelocity;
4048 static PyObject *__pyx_kp_s_Wall_function;
4049 static PyObject *__pyx_n_s_WaveTools;
4050 static PyObject *__pyx_n_s_Y;
4051 static PyObject *__pyx_n_s_Yplus;
4052 static PyObject *__pyx_n_s_Ystar;
4053 static PyObject *__pyx_kp_b__165;
4054 static PyObject *__pyx_kp_b__166;
4055 static PyObject *__pyx_kp_b__167;
4056 static PyObject *__pyx_kp_b__168;
4057 static PyObject *__pyx_kp_u__169;
4058 static PyObject *__pyx_n_s_a1;
4059 static PyObject *__pyx_n_s_abs;
4060 static PyObject *__pyx_n_s_absorption;
4061 static PyObject *__pyx_n_s_acos;
4062 static PyObject *__pyx_n_s_air;
4063 static PyObject *__pyx_n_s_all;
4064 static PyObject *__pyx_n_s_allocate_buffer;
4065 static PyObject *__pyx_n_s_ar;
4066 static PyObject *__pyx_n_s_array;
4067 static PyObject *__pyx_n_s_asin;
4068 static PyObject *__pyx_n_s_atan2;
4069 static PyObject *__pyx_n_s_attachAuxiliaryVariables;
4070 static PyObject *__pyx_n_s_attachModel;
4071 static PyObject *__pyx_n_s_avDict;
4072 static PyObject *__pyx_n_s_b_i;
4073 static PyObject *__pyx_n_s_b_or;
4074 static PyObject *__pyx_n_s_base;
4075 static PyObject *__pyx_n_s_body;
4076 static PyObject *__pyx_n_s_builtins;
4077 static PyObject *__pyx_n_s_c;
4078 static PyObject *__pyx_n_u_c;
4079 static PyObject *__pyx_n_s_cKDTree;
4080 static PyObject *__pyx_n_s_calculate;
4081 static PyObject *__pyx_n_s_calculate_init;
4082 static PyObject *__pyx_n_s_calculate_phi_python;
4083 static PyObject *__pyx_n_s_calculate_vel_python;
4084 static PyObject *__pyx_n_s_center;
4085 static PyObject *__pyx_n_s_checkedElements;
4086 static PyObject *__pyx_n_s_class;
4087 static PyObject *__pyx_n_s_cline_in_traceback;
4088 static PyObject *__pyx_n_s_coefficients;
4089 static PyObject *__pyx_n_s_comm;
4090 static PyObject *__pyx_n_s_constant;
4091 static PyObject *__pyx_n_s_constantInletVelocity;
4092 static PyObject *__pyx_n_s_constantOutletPressure;
4093 static PyObject *__pyx_n_s_constant_values;
4094 static PyObject *__pyx_kp_s_contiguous_and_direct;
4095 static PyObject *__pyx_kp_s_contiguous_and_indirect;
4096 static PyObject *__pyx_n_s_coords;
4097 static PyObject *__pyx_n_s_coords_relax;
4098 static PyObject *__pyx_n_s_cos;
4099 static PyObject *__pyx_n_s_cppClass_WavesCharacteristics;
4100 static PyObject *__pyx_n_s_cppClass_WavesCharacteristics_2;
4101 static PyObject *__pyx_n_s_cppClass_WavesCharacteristics_3;
4102 static PyObject *__pyx_n_s_cppClass_WavesCharacteristics_4;
4103 static PyObject *__pyx_n_s_cpp_MoveMesh_h;
4104 static PyObject *__pyx_n_s_cpp_MoveMesh_hx;
4105 static PyObject *__pyx_n_s_cpp_MoveMesh_hy;
4106 static PyObject *__pyx_n_s_cpp_MoveMesh_hz;
4107 static PyObject *__pyx_n_s_d;
4108 static PyObject *__pyx_n_s_dInflow;
4109 static PyObject *__pyx_n_s_dd;
4110 static PyObject *__pyx_n_s_dict;
4111 static PyObject *__pyx_n_s_dict_2;
4112 static PyObject *__pyx_n_s_dissipationInflow;
4113 static PyObject *__pyx_n_s_dissipationInflowAir;
4114 static PyObject *__pyx_n_s_dissipationVal;
4115 static PyObject *__pyx_n_s_distance;
4116 static PyObject *__pyx_n_s_doc;
4117 static PyObject *__pyx_n_s_dot;
4118 static PyObject *__pyx_n_s_dragAlpha;
4119 static PyObject *__pyx_n_s_dragBeta;
4120 static PyObject *__pyx_n_s_dtype;
4121 static PyObject *__pyx_n_s_dtype_is_object;
4122 static PyObject *__pyx_n_s_eN;
4123 static PyObject *__pyx_n_s_eOffset;
4124 static PyObject *__pyx_n_s_element;
4125 static PyObject *__pyx_n_s_elementMaps;
4126 static PyObject *__pyx_n_s_elementMaterialTypes;
4127 static PyObject *__pyx_n_s_elementNodesArray;
4128 static PyObject *__pyx_n_s_empty;
4129 static PyObject *__pyx_n_s_encode;
4130 static PyObject *__pyx_n_s_enumerate;
4131 static PyObject *__pyx_n_s_epsFact_porous;
4132 static PyObject *__pyx_n_s_error;
4133 static PyObject *__pyx_n_s_eta;
4134 static PyObject *__pyx_n_s_exp;
4135 static PyObject *__pyx_n_s_extractVelocity;
4136 static PyObject *__pyx_n_s_femSpace;
4137 static PyObject *__pyx_n_s_femSpace_velocity;
4138 static PyObject *__pyx_n_s_findElementContainingCoords;
4139 static PyObject *__pyx_n_s_flags;
4140 static PyObject *__pyx_n_s_format;
4141 static PyObject *__pyx_n_s_fortran;
4142 static PyObject *__pyx_n_u_fortran;
4143 static PyObject *__pyx_n_s_g;
4144 static PyObject *__pyx_n_s_generation;
4145 static PyObject *__pyx_n_s_get;
4146 static PyObject *__pyx_n_s_getFluidKappaLocalCoords;
4147 static PyObject *__pyx_n_s_getFluidVelocityLocalCoords;
4148 static PyObject *__pyx_n_s_getInverseValue;
4149 static PyObject *__pyx_n_s_getKappa;
4150 static PyObject *__pyx_n_s_getLocalElement;
4151 static PyObject *__pyx_n_s_getLocalNearestNode;
4152 static PyObject *__pyx_n_s_getValue;
4153 static PyObject *__pyx_n_s_getVariables;
4154 static PyObject *__pyx_n_s_get_DBC_h;
4155 static PyObject *__pyx_n_s_get_dissipation_dirichlet;
4156 static PyObject *__pyx_n_s_get_inlet_ux_dirichlet;
4157 static PyObject *__pyx_n_s_get_k_dirichlet;
4158 static PyObject *__pyx_n_s_get_u_diffusive;
4159 static PyObject *__pyx_n_s_get_u_dirichlet;
4160 static PyObject *__pyx_n_s_get_v_diffusive;
4161 static PyObject *__pyx_n_s_get_v_dirichlet;
4162 static PyObject *__pyx_n_s_get_w_diffusive;
4163 static PyObject *__pyx_n_s_get_w_dirichlet;
4164 static PyObject *__pyx_n_s_getstate;
4165 static PyObject *__pyx_kp_s_got_differing_extents_in_dimensi;
4166 static PyObject *__pyx_n_s_gradU;
4167 static PyObject *__pyx_n_s_h;
4168 static PyObject *__pyx_kp_s_has_not_been_set_Ignore_if_RANS;
4169 static PyObject *__pyx_n_s_hx;
4170 static PyObject *__pyx_n_s_hy;
4171 static PyObject *__pyx_n_s_hydrostaticPressureOutletWithDep;
4172 static PyObject *__pyx_n_s_hydrostaticPressureOutletWithDep_2;
4173 static PyObject *__pyx_n_s_hydrostaticPressureOutletWithDep_3;
4174 static PyObject *__pyx_n_s_hz;
4175 static PyObject *__pyx_n_s_i;
4176 static PyObject *__pyx_n_s_id;
4177 static PyObject *__pyx_n_s_import;
4178 static PyObject *__pyx_n_s_init;
4179 static PyObject *__pyx_n_s_inlet_dissipation_dirichlet;
4180 static PyObject *__pyx_n_s_inlet_k_dirichlet;
4181 static PyObject *__pyx_n_s_inlet_p_advective;
4182 static PyObject *__pyx_n_s_inlet_phi_dirichlet;
4183 static PyObject *__pyx_n_s_inlet_vof_dirichlet;
4184 static PyObject *__pyx_n_s_items;
4185 static PyObject *__pyx_n_s_itemsize;
4186 static PyObject *__pyx_kp_s_itemsize_0_for_cython_array;
4187 static PyObject *__pyx_n_s_join;
4188 static PyObject *__pyx_n_s_kInflow;
4189 static PyObject *__pyx_n_s_kInflowAir;
4190 static PyObject *__pyx_n_s_kInit;
4191 static PyObject *__pyx_n_s_kVal;
4192 static PyObject *__pyx_n_s_kWall;
4193 static PyObject *__pyx_n_s_kWall___init;
4194 static PyObject *__pyx_n_s_kWall_attachAuxiliaryVariables;
4195 static PyObject *__pyx_n_s_kWall_attachModel;
4196 static PyObject *__pyx_n_s_kWall_calculate;
4197 static PyObject *__pyx_n_s_kWall_calculate_init;
4198 static PyObject *__pyx_n_s_kWall_getFluidKappaLocalCoords;
4199 static PyObject *__pyx_n_s_kWall_getKappa;
4200 static PyObject *__pyx_n_s_kWall_kappaNearWall;
4201 static PyObject *__pyx_n_s_kappa;
4202 static PyObject *__pyx_n_s_kappaNearWall;
4203 static PyObject *__pyx_n_s_kdtree;
4204 static PyObject *__pyx_n_s_ke;
4205 static PyObject *__pyx_n_s_kk;
4206 static PyObject *__pyx_n_s_kw;
4207 static PyObject *__pyx_n_s_last_pos;
4208 static PyObject *__pyx_n_s_last_position;
4209 static PyObject *__pyx_n_s_levelModelList;
4210 static PyObject *__pyx_n_s_local_element;
4211 static PyObject *__pyx_n_s_log;
4212 static PyObject *__pyx_n_s_logEvent;
4213 static PyObject *__pyx_n_s_main;
4214 static PyObject *__pyx_n_s_math;
4215 static PyObject *__pyx_n_s_meanV;
4216 static PyObject *__pyx_n_s_memview;
4217 static PyObject *__pyx_n_s_mesh;
4218 static PyObject *__pyx_n_s_metaclass;
4219 static PyObject *__pyx_n_s_mode;
4220 static PyObject *__pyx_n_s_model;
4221 static PyObject *__pyx_n_s_module;
4222 static PyObject *__pyx_n_s_mpi4py;
4223 static PyObject *__pyx_n_s_mprans_BoundaryConditions;
4224 static PyObject *__pyx_n_s_mwl;
4225 static PyObject *__pyx_n_s_n;
4226 static PyObject *__pyx_n_s_nP;
4227 static PyObject *__pyx_n_s_nSpace_global;
4228 static PyObject *__pyx_n_s_name;
4229 static PyObject *__pyx_n_s_name_2;
4230 static PyObject *__pyx_n_s_nd;
4231 static PyObject *__pyx_n_s_ndim;
4232 static PyObject *__pyx_n_s_nearest_node;
4233 static PyObject *__pyx_n_s_nearest_node_distance;
4234 static PyObject *__pyx_n_s_new;
4235 static PyObject *__pyx_n_s_new_x_0;
4236 static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
4237 static PyObject *__pyx_n_s_node;
4238 static PyObject *__pyx_n_s_nodeArray;
4239 static PyObject *__pyx_n_s_nodeElementOffsets;
4240 static PyObject *__pyx_n_s_nodeElementsArray;
4241 static PyObject *__pyx_n_s_nodes_kdtree;
4242 static PyObject *__pyx_n_s_np;
4243 static PyObject *__pyx_n_s_nu;
4244 static PyObject *__pyx_n_s_numpy;
4245 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
4246 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
4247 static PyObject *__pyx_n_s_obj;
4248 static PyObject *__pyx_n_s_old_div;
4249 static PyObject *__pyx_n_s_onElement;
4250 static PyObject *__pyx_n_s_orientation;
4251 static PyObject *__pyx_kp_s_oritentation_must_be_set_for_BC;
4252 static PyObject *__pyx_n_s_os;
4253 static PyObject *__pyx_n_s_owning_proc;
4254 static PyObject *__pyx_n_s_p;
4255 static PyObject *__pyx_n_s_pRef;
4256 static PyObject *__pyx_n_s_p_top;
4257 static PyObject *__pyx_n_s_pack;
4258 static PyObject *__pyx_n_s_pad;
4259 static PyObject *__pyx_n_s_past_utils;
4260 static PyObject *__pyx_n_s_patchBoundaryNodes;
4261 static PyObject *__pyx_n_s_ph;
4262 static PyObject *__pyx_n_s_phi;
4263 static PyObject *__pyx_n_s_phi_porous;
4264 static PyObject *__pyx_n_s_phi_top;
4265 static PyObject *__pyx_n_s_pickle;
4266 static PyObject *__pyx_n_s_porosity;
4267 static PyObject *__pyx_n_s_porous;
4268 static PyObject *__pyx_n_s_prepare;
4269 static PyObject *__pyx_n_s_proteus;
4270 static PyObject *__pyx_n_s_proteus_Profiling;
4271 static PyObject *__pyx_n_s_proteus_ctransportCoefficients;
4272 static PyObject *__pyx_kp_s_proteus_mprans_BoundaryCondition;
4273 static PyObject *__pyx_n_s_pyx_PickleError;
4274 static PyObject *__pyx_n_s_pyx_checksum;
4275 static PyObject *__pyx_n_s_pyx_getbuffer;
4276 static PyObject *__pyx_n_s_pyx_result;
4277 static PyObject *__pyx_n_s_pyx_state;
4278 static PyObject *__pyx_n_s_pyx_type;
4279 static PyObject *__pyx_n_s_pyx_unpickle_BC_RANS;
4280 static PyObject *__pyx_n_s_pyx_unpickle_Enum;
4281 static PyObject *__pyx_n_s_pyx_unpickle_RelaxationZoneWav;
4282 static PyObject *__pyx_n_s_pyx_unpickle___cppClass_WavesC;
4283 static PyObject *__pyx_n_s_pyx_vtable;
4284 static PyObject *__pyx_n_s_q;
4285 static PyObject *__pyx_n_s_q_phi;
4286 static PyObject *__pyx_n_s_q_phi_porous;
4287 static PyObject *__pyx_n_s_q_velocity_porous;
4288 static PyObject *__pyx_n_s_qualname;
4289 static PyObject *__pyx_n_s_query;
4290 static PyObject *__pyx_n_s_ramp;
4291 static PyObject *__pyx_n_s_range;
4292 static PyObject *__pyx_n_s_rank;
4293 static PyObject *__pyx_n_s_reduce;
4294 static PyObject *__pyx_n_s_reduce_cython;
4295 static PyObject *__pyx_n_s_reduce_ex;
4296 static PyObject *__pyx_n_s_refLevel;
4297 static PyObject *__pyx_n_s_referenceElement;
4298 static PyObject *__pyx_n_s_relax;
4299 static PyObject *__pyx_n_s_reset;
4300 static PyObject *__pyx_n_s_rho;
4301 static PyObject *__pyx_n_s_rhoDown;
4302 static PyObject *__pyx_n_s_rhoUp;
4303 static PyObject *__pyx_n_s_rot_matrix;
4304 static PyObject *__pyx_n_s_rotation_matrix;
4305 static PyObject *__pyx_kp_u_s;
4306 static PyObject *__pyx_n_s_scipy;
4307 static PyObject *__pyx_n_s_seaLevel;
4308 static PyObject *__pyx_n_s_self;
4309 static PyObject *__pyx_n_s_setAtmosphere;
4310 static PyObject *__pyx_n_s_setChMoveMesh;
4311 static PyObject *__pyx_n_s_setChMoveMesh_locals_lambda;
4312 static PyObject *__pyx_n_s_setConstantBC;
4313 static PyObject *__pyx_n_s_setConstantInletVelocity;
4314 static PyObject *__pyx_n_s_setConstantOutletPressure;
4315 static PyObject *__pyx_n_s_setFixedNodes;
4316 static PyObject *__pyx_n_s_setFreeSlip;
4317 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith;
4318 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_2;
4319 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_3;
4320 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_4;
4321 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_5;
4322 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_6;
4323 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_7;
4324 static PyObject *__pyx_n_s_setHydrostaticPressureOutletWith_8;
4325 static PyObject *__pyx_n_s_setLinearBC;
4326 static PyObject *__pyx_n_s_setLinearRamp;
4327 static PyObject *__pyx_n_s_setMoveMesh;
4328 static PyObject *__pyx_n_s_setMoveMesh_locals_lambda;
4329 static PyObject *__pyx_n_s_setNoSlip;
4330 static PyObject *__pyx_n_s_setNonMaterial;
4331 static PyObject *__pyx_n_s_setRigidBodyMoveMesh;
4332 static PyObject *__pyx_n_s_setRigidBodyMoveMesh_locals_get;
4333 static PyObject *__pyx_n_s_setRigidBodyMoveMesh_locals_get_2;
4334 static PyObject *__pyx_n_s_setTank;
4335 static PyObject *__pyx_n_s_setTurbulentDirichlet;
4336 static PyObject *__pyx_n_s_setTurbulentZeroGradient;
4337 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet;
4338 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals;
4339 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_2;
4340 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_3;
4341 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_4;
4342 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_5;
4343 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_6;
4344 static PyObject *__pyx_n_s_setTwoPhaseVelocityInlet_locals_7;
4345 static PyObject *__pyx_n_s_setUnsteadyTwoPhaseVelocityInlet;
4346 static PyObject *__pyx_n_s_setUnsteadyTwoPhaseVelocityInlet_2;
4347 static PyObject *__pyx_n_s_setWallFunction;
4348 static PyObject *__pyx_n_s_setWallFunction_locals_lambda;
4349 static PyObject *__pyx_n_s_setYplusNormalDirection;
4350 static PyObject *__pyx_n_s_setstate;
4351 static PyObject *__pyx_n_s_setstate_cython;
4352 static PyObject *__pyx_n_s_shape;
4353 static PyObject *__pyx_n_s_shearStress;
4354 static PyObject *__pyx_n_s_sin;
4355 static PyObject *__pyx_n_s_size;
4356 static PyObject *__pyx_n_s_smoothedHeaviside;
4357 static PyObject *__pyx_n_s_smoothedHeaviside_integral;
4358 static PyObject *__pyx_n_s_smoothing;
4359 static PyObject *__pyx_n_s_spatial;
4360 static PyObject *__pyx_n_s_sqrt;
4361 static PyObject *__pyx_n_s_start;
4362 static PyObject *__pyx_n_s_state;
4363 static PyObject *__pyx_n_s_statem1;
4364 static PyObject *__pyx_n_s_step;
4365 static PyObject *__pyx_n_s_stop;
4366 static PyObject *__pyx_n_s_str;
4367 static PyObject *__pyx_kp_s_strided_and_direct;
4368 static PyObject *__pyx_kp_s_strided_and_direct_or_indirect;
4369 static PyObject *__pyx_kp_s_strided_and_indirect;
4370 static PyObject *__pyx_kp_s_stringsource;
4371 static PyObject *__pyx_n_s_struct;
4372 static PyObject *__pyx_n_s_sum;
4373 static PyObject *__pyx_n_s_super;
4374 static PyObject *__pyx_n_s_sys;
4375 static PyObject *__pyx_n_s_t;
4376 static PyObject *__pyx_n_s_tV;
4377 static PyObject *__pyx_n_s_tanU;
4378 static PyObject *__pyx_n_s_tangentialVelocity;
4379 static PyObject *__pyx_n_s_tau_rho;
4380 static PyObject *__pyx_n_s_test;
4381 static PyObject *__pyx_n_s_timeIntegration;
4382 static PyObject *__pyx_n_s_tompi4py;
4383 static PyObject *__pyx_n_s_tt;
4384 static PyObject *__pyx_n_s_turbModel;
4385 static PyObject *__pyx_n_s_u;
4386 static PyObject *__pyx_n_s_u0;
4387 static PyObject *__pyx_n_s_u1;
4388 static PyObject *__pyx_n_s_u2;
4389 static PyObject *__pyx_n_s_uDir;
4390 static PyObject *__pyx_n_s_uInit;
4391 static PyObject *__pyx_n_s_u_p;
4392 static PyObject *__pyx_kp_s_unable_to_allocate_array_data;
4393 static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str;
4394 static PyObject *__pyx_n_s_unpack;
4395 static PyObject *__pyx_n_s_update;
4396 static PyObject *__pyx_n_s_use_setstate;
4397 static PyObject *__pyx_n_s_ut;
4398 static PyObject *__pyx_n_s_utAbs;
4399 static PyObject *__pyx_n_s_utStar;
4400 static PyObject *__pyx_n_s_uu;
4401 static PyObject *__pyx_n_s_ux_dirichlet;
4402 static PyObject *__pyx_n_s_v;
4403 static PyObject *__pyx_n_s_velocity_porous;
4404 static PyObject *__pyx_n_s_vert_axis;
4405 static PyObject *__pyx_n_s_vof;
4406 static PyObject *__pyx_n_s_vof_air;
4407 static PyObject *__pyx_n_s_vof_water;
4408 static PyObject *__pyx_n_s_vv;
4409 static PyObject *__pyx_n_s_w;
4410 static PyObject *__pyx_n_s_wall;
4411 static PyObject *__pyx_n_s_water;
4412 static PyObject *__pyx_n_s_waterLevel;
4413 static PyObject *__pyx_n_s_wave;
4414 static PyObject *__pyx_n_s_waves;
4415 static PyObject *__pyx_n_s_wf;
4416 static PyObject *__pyx_n_s_wind_speed;
4417 static PyObject *__pyx_n_s_wt;
4418 static PyObject *__pyx_n_s_ww;
4419 static PyObject *__pyx_n_s_x;
4420 static PyObject *__pyx_n_s_x_0;
4421 static PyObject *__pyx_n_s_xi;
4422 static PyObject *__pyx_n_s_xx;
4423 static PyObject *__pyx_n_s_zeros;
4424 static PyObject *__pyx_n_s_zone_type;
4425 static PyObject *__pyx_n_s_zones;
4426 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS___init__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_shape, PyObject *__pyx_v_name, PyObject *__pyx_v_b_or, PyObject *__pyx_v_b_i, PyObject *__pyx_v_nd);
4427 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_2reset(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4428 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4429 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_6setTank(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_b_or);
4430 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4431 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4432 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4433 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_U, PyObject *__pyx_v_ramp, PyObject *__pyx_v_kk, PyObject *__pyx_v_dd, PyObject *__pyx_v_b_or);
4434 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_p, PyObject *__pyx_v_rho, PyObject *__pyx_v_g, PyObject *__pyx_v_kk, PyObject *__pyx_v_dd, PyObject *__pyx_v_b_or);
4435 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_orientation, PyObject *__pyx_v_vof_air, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dInflow);
4436 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4437 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_i);
4438 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_body);
4439 static PyObject *__pyx_lambda_funcdef_lambda(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4440 static PyObject *__pyx_lambda_funcdef_lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4441 static PyObject *__pyx_lambda_funcdef_lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4442 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_body);
4443 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_kVal, PyObject *__pyx_v_dissipationVal);
4444 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4445 static PyObject *__pyx_lambda_funcdef_lambda3(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4446 static PyObject *__pyx_lambda_funcdef_lambda4(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4447 static PyObject *__pyx_lambda_funcdef_lambda5(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4448 static PyObject *__pyx_lambda_funcdef_lambda6(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4449 static PyObject *__pyx_lambda_funcdef_lambda7(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4450 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_wall, CYTHON_UNUSED PyObject *__pyx_v_shearStress);
4451 static PyObject *__pyx_lambda_funcdef_lambda8(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4452 static PyObject *__pyx_lambda_funcdef_lambda9(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4453 static PyObject *__pyx_lambda_funcdef_lambda10(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4454 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_last_pos, PyObject *__pyx_v_h, PyObject *__pyx_v_rot_matrix);
4455 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_32__cpp_MoveMesh_h(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
4456 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_34__cpp_MoveMesh_hx(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
4457 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_36__cpp_MoveMesh_hy(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
4458 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_38__cpp_MoveMesh_hz(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t);
4459 static PyObject *__pyx_lambda_funcdef_lambda11(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4460 static PyObject *__pyx_lambda_funcdef_lambda12(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4461 static PyObject *__pyx_lambda_funcdef_lambda13(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4462 static PyObject *__pyx_lambda_funcdef_lambda14(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4463 static PyObject *__pyx_lambda_funcdef_lambda15(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4464 static PyObject *__pyx_lambda_funcdef_lambda16(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4465 static PyObject *__pyx_lambda_funcdef_lambda17(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4466 static PyObject *__pyx_lambda_funcdef_lambda18(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4467 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_wave, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_orientation, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_vof_air, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dInflow);
4468 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4469 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i);
4470 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_2inlet_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4471 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_4inlet_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4472 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_6inlet_p_advective(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4473 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_8inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4474 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_10inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4475 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_U, PyObject *__pyx_v_waterLevel, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_Uwind, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_air, PyObject *__pyx_v_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dissipationInflow, PyObject *__pyx_v_kInflowAir, PyObject *__pyx_v_dissipationInflowAir);
4476 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_hydrostaticPressureOutletWithDepth_p_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4477 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_2hydrostaticPressureOutletWithDepth_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4478 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_4hydrostaticPressureOutletWithDepth_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4479 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_6inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4480 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_8inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4481 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4482 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i);
4483 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_seaLevel, PyObject *__pyx_v_rhoUp, PyObject *__pyx_v_rhoDown, PyObject *__pyx_v_g, PyObject *__pyx_v_refLevel, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_orientation, PyObject *__pyx_v_U, PyObject *__pyx_v_Uwind, PyObject *__pyx_v_pRef, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_air, PyObject *__pyx_v_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dissipationInflow, PyObject *__pyx_v_kInflowAir, PyObject *__pyx_v_dissipationInflowAir);
4484 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4485 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4486 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4487 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4488 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4489 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4490 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4491 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4492 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4493 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4494 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4495 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4496 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4497 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4498 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4499 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4500 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4501 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4502 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4503 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4504 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4505 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4506 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4507 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4508 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4509 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4510 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4511 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4512 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4513 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4514 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4515 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4516 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4517 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4518 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4519 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4520 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4521 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4522 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4523 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4524 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4525 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4526 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4527 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4528 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4529 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4530 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4531 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4532 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4533 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4534 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4535 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4536 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4537 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4538 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4539 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4540 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4541 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4542 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4543 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4544 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4545 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4546 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4547 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4548 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4549 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4550 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4551 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4552 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4553 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4554 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4555 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4556 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4557 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4558 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4559 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4560 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4561 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4562 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4563 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4564 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4565 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4566 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4567 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4568 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4569 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4570 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4571 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4572 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4573 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4574 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4575 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4576 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4577 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4578 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4579 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4580 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4581 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4582 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4583 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4584 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4585 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4586 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4587 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4588 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4589 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4590 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4591 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4592 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4593 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4594 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4595 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4596 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4597 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4598 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4599 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4600 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4601 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4602 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4603 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4604 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4605 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4606 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4607 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4608 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4609 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4610 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4611 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4612 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4613 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4614 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4615 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4616 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4617 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4618 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4619 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4620 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4621 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4622 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4623 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value);
4624 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4625 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self);
4626 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v___pyx_state);
4627 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone___cinit__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_zone_type, PyObject *__pyx_v_center, PyObject *__pyx_v_orientation, PyObject *__pyx_v_epsFact_porous, PyObject *__pyx_v_waves, PyObject *__pyx_v_shape, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_dragAlpha, PyObject *__pyx_v_dragBeta, PyObject *__pyx_v_porosity, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_vof_air);
4628 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_2calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4629 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_x);
4630 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n);
4631 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4632 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4633 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4634 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4635 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4636 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4637 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4638 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4639 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4640 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4641 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4642 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4643 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4644 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4645 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4646 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4647 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4648 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4649 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4650 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4651 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4652 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value);
4653 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self);
4654 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
4655 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___init__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_zones, PyObject *__pyx_v_nd);
4656 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar);
4657 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict);
4658 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_6calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4659 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_8calculate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4660 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4661 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value);
4662 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4663 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4664 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value);
4665 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4666 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4667 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value);
4668 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4669 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self);
4670 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v___pyx_state);
4671 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___init__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v_waves, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_b_or, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_vof_air);
4672 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT___get__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self);
4673 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v_value);
4674 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self);
4675 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self);
4676 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v___pyx_state);
4677 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_turbModel, PyObject *__pyx_v_kWall, PyObject *__pyx_v_Y, PyObject *__pyx_v_Yplus, PyObject *__pyx_v_U0, PyObject *__pyx_v_nu, PyObject *__pyx_v_Cmu, PyObject *__pyx_v_K, PyObject *__pyx_v_B);
4678 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_2attachModel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar);
4679 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_4attachAuxiliaryVariables(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict);
4680 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_6calculate_init(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self);
4681 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_8calculate(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self);
4682 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_10getLocalNearestNode(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_coords, PyObject *__pyx_v_kdtree);
4683 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_12getLocalElement(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_femSpace, PyObject *__pyx_v_coords, PyObject *__pyx_v_node);
4684 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_14findElementContainingCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_coords);
4685 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_16getFluidVelocityLocalCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank);
4686 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_18setYplusNormalDirection(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, PyObject *__pyx_v_n, PyObject *__pyx_v_relax);
4687 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_20extractVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4688 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_22tangentialVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n, PyObject *__pyx_v_uInit);
4689 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_24getVariables(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t);
4690 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_26get_u_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4691 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_28get_v_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4692 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_30get_w_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4693 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_32get_k_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4694 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_34get_dissipation_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4695 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_36get_u_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4696 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_38get_v_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4697 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_40get_w_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n);
4698 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Y, PyObject *__pyx_v_Yplus, PyObject *__pyx_v_nu, PyObject *__pyx_v_Cmu);
4699 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_2attachModel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar);
4700 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_4attachAuxiliaryVariables(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict);
4701 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_6calculate_init(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self);
4702 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_8calculate(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self);
4703 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_10getFluidKappaLocalCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank);
4704 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_12kappaNearWall(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank, PyObject *__pyx_v_kInit);
4705 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_14getKappa(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank);
4706 static PyObject *__pyx_pf_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state);
4707 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_2__pyx_unpickle_RelaxationZoneWaveGenerator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state);
4708 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_4__pyx_unpickle___cppClass_WavesCharacteristics(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state);
4709 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode,
int __pyx_v_allocate_buffer);
4710 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(
struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
4711 static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(
struct __pyx_array_obj *__pyx_v_self);
4712 static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(
struct __pyx_array_obj *__pyx_v_self);
4713 static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(
struct __pyx_array_obj *__pyx_v_self);
4714 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr);
4715 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item);
4716 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value);
4717 static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self);
4718 static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
4719 static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name);
4720 static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(
struct __pyx_MemviewEnum_obj *__pyx_v_self);
4721 static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self);
4722 static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state);
4723 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj,
int __pyx_v_flags,
int __pyx_v_dtype_is_object);
4724 static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(
struct __pyx_memoryview_obj *__pyx_v_self);
4725 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index);
4726 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
4727 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(
struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
4728 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4729 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4730 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4731 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4732 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4733 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4734 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4735 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4736 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
4737 static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(
struct __pyx_memoryview_obj *__pyx_v_self);
4738 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(
struct __pyx_memoryview_obj *__pyx_v_self);
4739 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(
struct __pyx_memoryview_obj *__pyx_v_self);
4740 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(
struct __pyx_memoryview_obj *__pyx_v_self);
4741 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(
struct __pyx_memoryview_obj *__pyx_v_self);
4742 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(
struct __pyx_memoryview_obj *__pyx_v_self);
4743 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(
struct __pyx_memoryview_obj *__pyx_v_self);
4744 static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self);
4745 static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
4746 static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(
struct __pyx_memoryviewslice_obj *__pyx_v_self);
4747 static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(
struct __pyx_memoryviewslice_obj *__pyx_v_self);
4748 static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self);
4749 static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
4750 static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state);
4751 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_BC_RANS(PyTypeObject *t, PyObject *a, PyObject *k);
4752 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZone(PyTypeObject *t, PyObject *a, PyObject *k);
4753 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator(PyTypeObject *t, PyObject *a, PyObject *k);
4754 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics(PyTypeObject *t, PyObject *a, PyObject *k);
4755 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(PyTypeObject *t, PyObject *a, PyObject *k);
4756 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(PyTypeObject *t, PyObject *a, PyObject *k);
4757 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(PyTypeObject *t, PyObject *a, PyObject *k);
4758 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(PyTypeObject *t, PyObject *a, PyObject *k);
4759 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(PyTypeObject *t, PyObject *a, PyObject *k);
4760 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(PyTypeObject *t, PyObject *a, PyObject *k);
4761 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(PyTypeObject *t, PyObject *a, PyObject *k);
4762 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(PyTypeObject *t, PyObject *a, PyObject *k);
4763 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(PyTypeObject *t, PyObject *a, PyObject *k);
4764 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(PyTypeObject *t, PyObject *a, PyObject *k);
4765 static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k);
4766 static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, PyObject *a, PyObject *k);
4767 static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k);
4768 static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k);
4769 static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items = {0, &__pyx_n_s_items, 0, 0, 0};
4770 static PyObject *__pyx_float_0_;
4771 static PyObject *__pyx_float_1_;
4772 static PyObject *__pyx_float_2_;
4773 static PyObject *__pyx_float_0_0;
4774 static PyObject *__pyx_float_0_5;
4775 static PyObject *__pyx_float_1_0;
4776 static PyObject *__pyx_float_0_09;
4777 static PyObject *__pyx_float_0_25;
4778 static PyObject *__pyx_float_0_41;
4779 static PyObject *__pyx_float_5_57;
4780 static PyObject *__pyx_float_1eneg_10;
4781 static PyObject *__pyx_float_1eneg_20;
4782 static PyObject *__pyx_float_1eneg_30;
4783 static PyObject *__pyx_float_11_225;
4784 static PyObject *__pyx_float_1_004eneg_6;
4785 static PyObject *__pyx_float_1_005eneg_6;
4786 static PyObject *__pyx_float_neg_1_;
4787 static PyObject *__pyx_int_0;
4788 static PyObject *__pyx_int_1;
4789 static PyObject *__pyx_int_2;
4790 static PyObject *__pyx_int_3;
4791 static PyObject *__pyx_int_3281892;
4792 static PyObject *__pyx_int_24898426;
4793 static PyObject *__pyx_int_37384334;
4794 static PyObject *__pyx_int_95533784;
4795 static PyObject *__pyx_int_112105877;
4796 static PyObject *__pyx_int_136983863;
4797 static PyObject *__pyx_int_161222453;
4798 static PyObject *__pyx_int_184977713;
4799 static PyObject *__pyx_int_190238252;
4800 static PyObject *__pyx_int_207031348;
4801 static PyObject *__pyx_int_216769129;
4802 static PyObject *__pyx_int_249493883;
4803 static PyObject *__pyx_int_neg_1;
4804 static PyObject *__pyx_k__90;
4805 static PyObject *__pyx_k__91;
4806 static PyObject *__pyx_codeobj_;
4807 static PyObject *__pyx_tuple__10;
4808 static PyObject *__pyx_tuple__12;
4809 static PyObject *__pyx_tuple__14;
4810 static PyObject *__pyx_tuple__17;
4811 static PyObject *__pyx_tuple__18;
4812 static PyObject *__pyx_tuple__19;
4813 static PyObject *__pyx_tuple__23;
4814 static PyObject *__pyx_tuple__24;
4815 static PyObject *__pyx_tuple__25;
4816 static PyObject *__pyx_tuple__26;
4817 static PyObject *__pyx_tuple__27;
4818 static PyObject *__pyx_tuple__28;
4819 static PyObject *__pyx_tuple__30;
4820 static PyObject *__pyx_tuple__31;
4821 static PyObject *__pyx_tuple__32;
4822 static PyObject *__pyx_tuple__38;
4823 static PyObject *__pyx_tuple__39;
4824 static PyObject *__pyx_tuple__40;
4825 static PyObject *__pyx_tuple__41;
4826 static PyObject *__pyx_tuple__42;
4827 static PyObject *__pyx_tuple__43;
4828 static PyObject *__pyx_tuple__44;
4829 static PyObject *__pyx_tuple__45;
4830 static PyObject *__pyx_tuple__46;
4831 static PyObject *__pyx_tuple__48;
4832 static PyObject *__pyx_tuple__50;
4833 static PyObject *__pyx_tuple__52;
4834 static PyObject *__pyx_tuple__54;
4835 static PyObject *__pyx_tuple__55;
4836 static PyObject *__pyx_tuple__57;
4837 static PyObject *__pyx_tuple__58;
4838 static PyObject *__pyx_tuple__60;
4839 static PyObject *__pyx_tuple__61;
4840 static PyObject *__pyx_tuple__63;
4841 static PyObject *__pyx_tuple__64;
4842 static PyObject *__pyx_tuple__66;
4843 static PyObject *__pyx_tuple__67;
4844 static PyObject *__pyx_tuple__69;
4845 static PyObject *__pyx_tuple__71;
4846 static PyObject *__pyx_tuple__73;
4847 static PyObject *__pyx_tuple__74;
4848 static PyObject *__pyx_tuple__76;
4849 static PyObject *__pyx_tuple__77;
4850 static PyObject *__pyx_tuple__79;
4851 static PyObject *__pyx_tuple__80;
4852 static PyObject *__pyx_tuple__82;
4853 static PyObject *__pyx_tuple__83;
4854 static PyObject *__pyx_tuple__85;
4855 static PyObject *__pyx_tuple__86;
4856 static PyObject *__pyx_tuple__96;
4857 static PyObject *__pyx_tuple__98;
4858 static PyObject *__pyx_codeobj__2;
4859 static PyObject *__pyx_codeobj__3;
4860 static PyObject *__pyx_codeobj__4;
4861 static PyObject *__pyx_codeobj__5;
4862 static PyObject *__pyx_codeobj__6;
4863 static PyObject *__pyx_codeobj__7;
4864 static PyObject *__pyx_codeobj__8;
4865 static PyObject *__pyx_codeobj__9;
4866 static PyObject *__pyx_slice__117;
4867 static PyObject *__pyx_slice__159;
4868 static PyObject *__pyx_tuple__138;
4869 static PyObject *__pyx_tuple__140;
4870 static PyObject *__pyx_tuple__142;
4871 static PyObject *__pyx_tuple__143;
4872 static PyObject *__pyx_tuple__144;
4873 static PyObject *__pyx_tuple__145;
4874 static PyObject *__pyx_tuple__146;
4875 static PyObject *__pyx_tuple__147;
4876 static PyObject *__pyx_tuple__148;
4877 static PyObject *__pyx_tuple__149;
4878 static PyObject *__pyx_tuple__150;
4879 static PyObject *__pyx_tuple__151;
4880 static PyObject *__pyx_tuple__152;
4881 static PyObject *__pyx_tuple__153;
4882 static PyObject *__pyx_tuple__154;
4883 static PyObject *__pyx_tuple__155;
4884 static PyObject *__pyx_tuple__156;
4885 static PyObject *__pyx_tuple__157;
4886 static PyObject *__pyx_tuple__158;
4887 static PyObject *__pyx_tuple__160;
4888 static PyObject *__pyx_tuple__161;
4889 static PyObject *__pyx_tuple__162;
4890 static PyObject *__pyx_tuple__164;
4891 static PyObject *__pyx_tuple__170;
4892 static PyObject *__pyx_tuple__171;
4893 static PyObject *__pyx_tuple__172;
4894 static PyObject *__pyx_tuple__173;
4895 static PyObject *__pyx_tuple__174;
4896 static PyObject *__pyx_tuple__175;
4897 static PyObject *__pyx_tuple__176;
4898 static PyObject *__pyx_tuple__177;
4899 static PyObject *__pyx_tuple__178;
4900 static PyObject *__pyx_tuple__179;
4901 static PyObject *__pyx_tuple__180;
4902 static PyObject *__pyx_tuple__181;
4903 static PyObject *__pyx_tuple__182;
4904 static PyObject *__pyx_tuple__183;
4905 static PyObject *__pyx_tuple__184;
4906 static PyObject *__pyx_tuple__185;
4907 static PyObject *__pyx_tuple__186;
4908 static PyObject *__pyx_tuple__187;
4909 static PyObject *__pyx_tuple__188;
4910 static PyObject *__pyx_tuple__189;
4911 static PyObject *__pyx_tuple__190;
4912 static PyObject *__pyx_tuple__191;
4913 static PyObject *__pyx_tuple__192;
4914 static PyObject *__pyx_tuple__193;
4915 static PyObject *__pyx_tuple__194;
4916 static PyObject *__pyx_tuple__195;
4917 static PyObject *__pyx_tuple__196;
4918 static PyObject *__pyx_tuple__197;
4919 static PyObject *__pyx_tuple__198;
4920 static PyObject *__pyx_tuple__199;
4921 static PyObject *__pyx_tuple__200;
4922 static PyObject *__pyx_tuple__201;
4923 static PyObject *__pyx_tuple__202;
4924 static PyObject *__pyx_tuple__203;
4925 static PyObject *__pyx_tuple__204;
4926 static PyObject *__pyx_tuple__205;
4927 static PyObject *__pyx_tuple__206;
4928 static PyObject *__pyx_tuple__207;
4929 static PyObject *__pyx_tuple__208;
4930 static PyObject *__pyx_tuple__209;
4931 static PyObject *__pyx_tuple__210;
4932 static PyObject *__pyx_tuple__211;
4933 static PyObject *__pyx_tuple__212;
4934 static PyObject *__pyx_tuple__213;
4935 static PyObject *__pyx_tuple__214;
4936 static PyObject *__pyx_tuple__215;
4937 static PyObject *__pyx_tuple__216;
4938 static PyObject *__pyx_tuple__217;
4939 static PyObject *__pyx_tuple__218;
4940 static PyObject *__pyx_tuple__219;
4941 static PyObject *__pyx_tuple__220;
4942 static PyObject *__pyx_tuple__221;
4943 static PyObject *__pyx_tuple__222;
4944 static PyObject *__pyx_tuple__223;
4945 static PyObject *__pyx_tuple__224;
4946 static PyObject *__pyx_tuple__225;
4947 static PyObject *__pyx_tuple__226;
4948 static PyObject *__pyx_tuple__227;
4949 static PyObject *__pyx_tuple__228;
4950 static PyObject *__pyx_tuple__229;
4951 static PyObject *__pyx_tuple__230;
4952 static PyObject *__pyx_tuple__231;
4953 static PyObject *__pyx_tuple__232;
4954 static PyObject *__pyx_tuple__233;
4955 static PyObject *__pyx_tuple__234;
4956 static PyObject *__pyx_tuple__235;
4957 static PyObject *__pyx_tuple__236;
4958 static PyObject *__pyx_tuple__237;
4959 static PyObject *__pyx_tuple__238;
4960 static PyObject *__pyx_tuple__239;
4961 static PyObject *__pyx_tuple__240;
4962 static PyObject *__pyx_tuple__241;
4963 static PyObject *__pyx_tuple__242;
4964 static PyObject *__pyx_tuple__243;
4965 static PyObject *__pyx_tuple__244;
4966 static PyObject *__pyx_tuple__245;
4967 static PyObject *__pyx_tuple__246;
4968 static PyObject *__pyx_tuple__247;
4969 static PyObject *__pyx_tuple__248;
4970 static PyObject *__pyx_tuple__249;
4971 static PyObject *__pyx_tuple__250;
4972 static PyObject *__pyx_codeobj__11;
4973 static PyObject *__pyx_codeobj__13;
4974 static PyObject *__pyx_codeobj__15;
4975 static PyObject *__pyx_codeobj__16;
4976 static PyObject *__pyx_codeobj__20;
4977 static PyObject *__pyx_codeobj__21;
4978 static PyObject *__pyx_codeobj__22;
4979 static PyObject *__pyx_codeobj__29;
4980 static PyObject *__pyx_codeobj__33;
4981 static PyObject *__pyx_codeobj__34;
4982 static PyObject *__pyx_codeobj__35;
4983 static PyObject *__pyx_codeobj__36;
4984 static PyObject *__pyx_codeobj__37;
4985 static PyObject *__pyx_codeobj__47;
4986 static PyObject *__pyx_codeobj__49;
4987 static PyObject *__pyx_codeobj__51;
4988 static PyObject *__pyx_codeobj__53;
4989 static PyObject *__pyx_codeobj__56;
4990 static PyObject *__pyx_codeobj__59;
4991 static PyObject *__pyx_codeobj__62;
4992 static PyObject *__pyx_codeobj__65;
4993 static PyObject *__pyx_codeobj__68;
4994 static PyObject *__pyx_codeobj__70;
4995 static PyObject *__pyx_codeobj__72;
4996 static PyObject *__pyx_codeobj__75;
4997 static PyObject *__pyx_codeobj__78;
4998 static PyObject *__pyx_codeobj__81;
4999 static PyObject *__pyx_codeobj__84;
5000 static PyObject *__pyx_codeobj__87;
5001 static PyObject *__pyx_codeobj__88;
5002 static PyObject *__pyx_codeobj__89;
5003 static PyObject *__pyx_codeobj__92;
5004 static PyObject *__pyx_codeobj__93;
5005 static PyObject *__pyx_codeobj__94;
5006 static PyObject *__pyx_codeobj__95;
5007 static PyObject *__pyx_codeobj__97;
5008 static PyObject *__pyx_codeobj__99;
5009 static PyObject *__pyx_codeobj__100;
5010 static PyObject *__pyx_codeobj__101;
5011 static PyObject *__pyx_codeobj__102;
5012 static PyObject *__pyx_codeobj__103;
5013 static PyObject *__pyx_codeobj__104;
5014 static PyObject *__pyx_codeobj__105;
5015 static PyObject *__pyx_codeobj__106;
5016 static PyObject *__pyx_codeobj__107;
5017 static PyObject *__pyx_codeobj__108;
5018 static PyObject *__pyx_codeobj__109;
5019 static PyObject *__pyx_codeobj__110;
5020 static PyObject *__pyx_codeobj__111;
5021 static PyObject *__pyx_codeobj__112;
5022 static PyObject *__pyx_codeobj__113;
5023 static PyObject *__pyx_codeobj__114;
5024 static PyObject *__pyx_codeobj__115;
5025 static PyObject *__pyx_codeobj__116;
5026 static PyObject *__pyx_codeobj__118;
5027 static PyObject *__pyx_codeobj__119;
5028 static PyObject *__pyx_codeobj__120;
5029 static PyObject *__pyx_codeobj__121;
5030 static PyObject *__pyx_codeobj__122;
5031 static PyObject *__pyx_codeobj__123;
5032 static PyObject *__pyx_codeobj__124;
5033 static PyObject *__pyx_codeobj__125;
5034 static PyObject *__pyx_codeobj__126;
5035 static PyObject *__pyx_codeobj__127;
5036 static PyObject *__pyx_codeobj__128;
5037 static PyObject *__pyx_codeobj__129;
5038 static PyObject *__pyx_codeobj__130;
5039 static PyObject *__pyx_codeobj__131;
5040 static PyObject *__pyx_codeobj__132;
5041 static PyObject *__pyx_codeobj__133;
5042 static PyObject *__pyx_codeobj__134;
5043 static PyObject *__pyx_codeobj__135;
5044 static PyObject *__pyx_codeobj__136;
5045 static PyObject *__pyx_codeobj__137;
5046 static PyObject *__pyx_codeobj__139;
5047 static PyObject *__pyx_codeobj__141;
5048 static PyObject *__pyx_codeobj__163;
5060 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
5061 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
5062 PyObject *__pyx_v_shape = 0;
5063 PyObject *__pyx_v_name = 0;
5064 PyObject *__pyx_v_b_or = 0;
5065 PyObject *__pyx_v_b_i = 0;
5066 PyObject *__pyx_v_nd = 0;
5067 int __pyx_lineno = 0;
5068 const char *__pyx_filename = NULL;
5069 int __pyx_clineno = 0;
5071 __Pyx_RefNannyDeclarations
5072 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
5074 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shape,&__pyx_n_s_name,&__pyx_n_s_b_or,&__pyx_n_s_b_i,&__pyx_n_s_nd,0};
5075 PyObject* values[5] = {0,0,0,0,0};
5076 values[0] = ((PyObject *)Py_None);
5077 values[1] = ((PyObject *)Py_None);
5078 values[2] = ((PyObject *)Py_None);
5079 values[3] = ((PyObject *)__pyx_float_0_);
5080 values[4] = ((PyObject *)Py_None);
5081 if (unlikely(__pyx_kwds)) {
5083 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5085 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5087 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5089 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5091 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5093 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5096 default:
goto __pyx_L5_argtuple_error;
5098 kw_args = PyDict_Size(__pyx_kwds);
5102 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape);
5103 if (value) { values[0] = value; kw_args--; }
5108 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name);
5109 if (value) { values[1] = value; kw_args--; }
5114 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_or);
5115 if (value) { values[2] = value; kw_args--; }
5120 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_i);
5121 if (value) { values[3] = value; kw_args--; }
5126 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nd);
5127 if (value) { values[4] = value; kw_args--; }
5130 if (unlikely(kw_args > 0)) {
5131 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 43, __pyx_L3_error)
5134 switch (PyTuple_GET_SIZE(__pyx_args)) {
5135 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
5137 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
5139 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
5141 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5143 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5146 default:
goto __pyx_L5_argtuple_error;
5149 __pyx_v_shape = values[0];
5150 __pyx_v_name = values[1];
5151 __pyx_v_b_or = values[2];
5152 __pyx_v_b_i = values[3];
5153 __pyx_v_nd = values[4];
5155 goto __pyx_L4_argument_unpacking_done;
5156 __pyx_L5_argtuple_error:;
5157 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 0, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 43, __pyx_L3_error)
5159 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5160 __Pyx_RefNannyFinishContext();
5162 __pyx_L4_argument_unpacking_done:;
5163 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS___init__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_shape, __pyx_v_name, __pyx_v_b_or, __pyx_v_b_i, __pyx_v_nd);
5166 __Pyx_RefNannyFinishContext();
5170 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS___init__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_shape, PyObject *__pyx_v_name, PyObject *__pyx_v_b_or, PyObject *__pyx_v_b_i, PyObject *__pyx_v_nd) {
5172 __Pyx_TraceDeclarations
5173 __Pyx_RefNannyDeclarations
5174 PyObject *__pyx_t_1 = NULL;
5175 PyObject *__pyx_t_2 = NULL;
5176 PyObject *__pyx_t_3 = NULL;
5177 int __pyx_lineno = 0;
5178 const char *__pyx_filename = NULL;
5179 int __pyx_clineno = 0;
5180 __Pyx_RefNannySetupContext(
"__init__", 0);
5181 __Pyx_TraceCall(
"__init__", __pyx_f[0], 43, 0, __PYX_ERR(0, 43, __pyx_L1_error));
5190 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error)
5191 __Pyx_GOTREF(__pyx_t_1);
5192 __Pyx_INCREF(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS));
5193 __Pyx_GIVEREF(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS));
5194 PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS));
5195 __Pyx_INCREF(((PyObject *)__pyx_v_self));
5196 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
5197 PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
5198 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
5199 __Pyx_GOTREF(__pyx_t_2);
5200 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5201 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error)
5202 __Pyx_GOTREF(__pyx_t_1);
5203 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5204 __pyx_t_2 = __Pyx_PyDict_NewPresized(5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
5205 __Pyx_GOTREF(__pyx_t_2);
5206 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shape, __pyx_v_shape) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
5207 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
5208 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_b_or, __pyx_v_b_or) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
5209 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_b_i, __pyx_v_b_i) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
5210 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nd, __pyx_v_nd) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
5211 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 44, __pyx_L1_error)
5212 __Pyx_GOTREF(__pyx_t_3);
5213 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5214 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5215 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5224 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 46, __pyx_L1_error)
5225 __Pyx_GOTREF(__pyx_t_3);
5226 __Pyx_GIVEREF(__pyx_t_3);
5227 __Pyx_GOTREF(__pyx_v_self->p_dirichlet);
5228 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_dirichlet));
5229 __pyx_v_self->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5239 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error)
5240 __Pyx_GOTREF(__pyx_t_3);
5241 __Pyx_GIVEREF(__pyx_t_3);
5242 __Pyx_GOTREF(__pyx_v_self->u_dirichlet);
5243 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_dirichlet));
5244 __pyx_v_self->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5254 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 48, __pyx_L1_error)
5255 __Pyx_GOTREF(__pyx_t_3);
5256 __Pyx_GIVEREF(__pyx_t_3);
5257 __Pyx_GOTREF(__pyx_v_self->v_dirichlet);
5258 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_dirichlet));
5259 __pyx_v_self->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5269 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __pyx_L1_error)
5270 __Pyx_GOTREF(__pyx_t_3);
5271 __Pyx_GIVEREF(__pyx_t_3);
5272 __Pyx_GOTREF(__pyx_v_self->w_dirichlet);
5273 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_dirichlet));
5274 __pyx_v_self->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5284 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error)
5285 __Pyx_GOTREF(__pyx_t_3);
5286 __Pyx_GIVEREF(__pyx_t_3);
5287 __Pyx_GOTREF(__pyx_v_self->phi_dirichlet);
5288 __Pyx_DECREF(((PyObject *)__pyx_v_self->phi_dirichlet));
5289 __pyx_v_self->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5299 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 51, __pyx_L1_error)
5300 __Pyx_GOTREF(__pyx_t_3);
5301 __Pyx_GIVEREF(__pyx_t_3);
5302 __Pyx_GOTREF(__pyx_v_self->vof_dirichlet);
5303 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_dirichlet));
5304 __pyx_v_self->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5314 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 52, __pyx_L1_error)
5315 __Pyx_GOTREF(__pyx_t_3);
5316 __Pyx_GIVEREF(__pyx_t_3);
5317 __Pyx_GOTREF(__pyx_v_self->k_dirichlet);
5318 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_dirichlet));
5319 __pyx_v_self->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5329 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error)
5330 __Pyx_GOTREF(__pyx_t_3);
5331 __Pyx_GIVEREF(__pyx_t_3);
5332 __Pyx_GOTREF(__pyx_v_self->dissipation_dirichlet);
5333 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
5334 __pyx_v_self->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5344 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error)
5345 __Pyx_GOTREF(__pyx_t_3);
5346 __Pyx_GIVEREF(__pyx_t_3);
5347 __Pyx_GOTREF(__pyx_v_self->pAddedMass_dirichlet);
5348 __Pyx_DECREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
5349 __pyx_v_self->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5359 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error)
5360 __Pyx_GOTREF(__pyx_t_3);
5361 __Pyx_GIVEREF(__pyx_t_3);
5362 __Pyx_GOTREF(__pyx_v_self->p_advective);
5363 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_advective));
5364 __pyx_v_self->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5374 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error)
5375 __Pyx_GOTREF(__pyx_t_3);
5376 __Pyx_GIVEREF(__pyx_t_3);
5377 __Pyx_GOTREF(__pyx_v_self->u_advective);
5378 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_advective));
5379 __pyx_v_self->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5389 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 58, __pyx_L1_error)
5390 __Pyx_GOTREF(__pyx_t_3);
5391 __Pyx_GIVEREF(__pyx_t_3);
5392 __Pyx_GOTREF(__pyx_v_self->v_advective);
5393 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_advective));
5394 __pyx_v_self->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5404 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 59, __pyx_L1_error)
5405 __Pyx_GOTREF(__pyx_t_3);
5406 __Pyx_GIVEREF(__pyx_t_3);
5407 __Pyx_GOTREF(__pyx_v_self->w_advective);
5408 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_advective));
5409 __pyx_v_self->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5419 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error)
5420 __Pyx_GOTREF(__pyx_t_3);
5421 __Pyx_GIVEREF(__pyx_t_3);
5422 __Pyx_GOTREF(__pyx_v_self->vof_advective);
5423 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_advective));
5424 __pyx_v_self->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5434 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 61, __pyx_L1_error)
5435 __Pyx_GOTREF(__pyx_t_3);
5436 __Pyx_GIVEREF(__pyx_t_3);
5437 __Pyx_GOTREF(__pyx_v_self->k_advective);
5438 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_advective));
5439 __pyx_v_self->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5449 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 62, __pyx_L1_error)
5450 __Pyx_GOTREF(__pyx_t_3);
5451 __Pyx_GIVEREF(__pyx_t_3);
5452 __Pyx_GOTREF(__pyx_v_self->dissipation_advective);
5453 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_advective));
5454 __pyx_v_self->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5464 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error)
5465 __Pyx_GOTREF(__pyx_t_3);
5466 __Pyx_GIVEREF(__pyx_t_3);
5467 __Pyx_GOTREF(__pyx_v_self->u_diffusive);
5468 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_diffusive));
5469 __pyx_v_self->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5479 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 65, __pyx_L1_error)
5480 __Pyx_GOTREF(__pyx_t_3);
5481 __Pyx_GIVEREF(__pyx_t_3);
5482 __Pyx_GOTREF(__pyx_v_self->v_diffusive);
5483 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_diffusive));
5484 __pyx_v_self->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5494 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 66, __pyx_L1_error)
5495 __Pyx_GOTREF(__pyx_t_3);
5496 __Pyx_GIVEREF(__pyx_t_3);
5497 __Pyx_GOTREF(__pyx_v_self->w_diffusive);
5498 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_diffusive));
5499 __pyx_v_self->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5509 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 67, __pyx_L1_error)
5510 __Pyx_GOTREF(__pyx_t_3);
5511 __Pyx_GIVEREF(__pyx_t_3);
5512 __Pyx_GOTREF(__pyx_v_self->k_diffusive);
5513 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_diffusive));
5514 __pyx_v_self->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5524 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 68, __pyx_L1_error)
5525 __Pyx_GOTREF(__pyx_t_3);
5526 __Pyx_GIVEREF(__pyx_t_3);
5527 __Pyx_GOTREF(__pyx_v_self->dissipation_diffusive);
5528 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
5529 __pyx_v_self->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5539 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error)
5540 __Pyx_GOTREF(__pyx_t_3);
5541 __Pyx_GIVEREF(__pyx_t_3);
5542 __Pyx_GOTREF(__pyx_v_self->hx_dirichlet);
5543 __Pyx_DECREF(((PyObject *)__pyx_v_self->hx_dirichlet));
5544 __pyx_v_self->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5554 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error)
5555 __Pyx_GOTREF(__pyx_t_3);
5556 __Pyx_GIVEREF(__pyx_t_3);
5557 __Pyx_GOTREF(__pyx_v_self->hy_dirichlet);
5558 __Pyx_DECREF(((PyObject *)__pyx_v_self->hy_dirichlet));
5559 __pyx_v_self->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5569 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error)
5570 __Pyx_GOTREF(__pyx_t_3);
5571 __Pyx_GIVEREF(__pyx_t_3);
5572 __Pyx_GOTREF(__pyx_v_self->hz_dirichlet);
5573 __Pyx_DECREF(((PyObject *)__pyx_v_self->hz_dirichlet));
5574 __pyx_v_self->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5584 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error)
5585 __Pyx_GOTREF(__pyx_t_3);
5586 __Pyx_GIVEREF(__pyx_t_3);
5587 __Pyx_GOTREF(__pyx_v_self->u_stress);
5588 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_stress));
5589 __pyx_v_self->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5599 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 74, __pyx_L1_error)
5600 __Pyx_GOTREF(__pyx_t_3);
5601 __Pyx_GIVEREF(__pyx_t_3);
5602 __Pyx_GOTREF(__pyx_v_self->v_stress);
5603 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_stress));
5604 __pyx_v_self->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5614 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 75, __pyx_L1_error)
5615 __Pyx_GOTREF(__pyx_t_3);
5616 __Pyx_GIVEREF(__pyx_t_3);
5617 __Pyx_GOTREF(__pyx_v_self->w_stress);
5618 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_stress));
5619 __pyx_v_self->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5629 __Pyx_INCREF(__pyx_float_0_);
5630 __Pyx_GIVEREF(__pyx_float_0_);
5631 __Pyx_GOTREF(__pyx_v_self->u_stress->uOfXT);
5632 __Pyx_DECREF(__pyx_v_self->u_stress->uOfXT);
5633 __pyx_v_self->u_stress->uOfXT = __pyx_float_0_;
5642 __Pyx_INCREF(__pyx_float_0_);
5643 __Pyx_GIVEREF(__pyx_float_0_);
5644 __Pyx_GOTREF(__pyx_v_self->v_stress->uOfXT);
5645 __Pyx_DECREF(__pyx_v_self->v_stress->uOfXT);
5646 __pyx_v_self->v_stress->uOfXT = __pyx_float_0_;
5655 __Pyx_INCREF(__pyx_float_0_);
5656 __Pyx_GIVEREF(__pyx_float_0_);
5657 __Pyx_GOTREF(__pyx_v_self->w_stress->uOfXT);
5658 __Pyx_DECREF(__pyx_v_self->w_stress->uOfXT);
5659 __pyx_v_self->w_stress->uOfXT = __pyx_float_0_;
5668 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 80, __pyx_L1_error)
5669 __Pyx_GOTREF(__pyx_t_3);
5670 __Pyx_GIVEREF(__pyx_t_3);
5671 __Pyx_GOTREF(__pyx_v_self->us_dirichlet);
5672 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_dirichlet));
5673 __pyx_v_self->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5683 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error)
5684 __Pyx_GOTREF(__pyx_t_3);
5685 __Pyx_GIVEREF(__pyx_t_3);
5686 __Pyx_GOTREF(__pyx_v_self->vs_dirichlet);
5687 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_dirichlet));
5688 __pyx_v_self->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5698 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error)
5699 __Pyx_GOTREF(__pyx_t_3);
5700 __Pyx_GIVEREF(__pyx_t_3);
5701 __Pyx_GOTREF(__pyx_v_self->ws_dirichlet);
5702 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_dirichlet));
5703 __pyx_v_self->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5713 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error)
5714 __Pyx_GOTREF(__pyx_t_3);
5715 __Pyx_GIVEREF(__pyx_t_3);
5716 __Pyx_GOTREF(__pyx_v_self->vos_dirichlet);
5717 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_dirichlet));
5718 __pyx_v_self->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5728 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error)
5729 __Pyx_GOTREF(__pyx_t_3);
5730 __Pyx_GIVEREF(__pyx_t_3);
5731 __Pyx_GOTREF(__pyx_v_self->us_advective);
5732 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_advective));
5733 __pyx_v_self->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5743 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error)
5744 __Pyx_GOTREF(__pyx_t_3);
5745 __Pyx_GIVEREF(__pyx_t_3);
5746 __Pyx_GOTREF(__pyx_v_self->vs_advective);
5747 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_advective));
5748 __pyx_v_self->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5758 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error)
5759 __Pyx_GOTREF(__pyx_t_3);
5760 __Pyx_GIVEREF(__pyx_t_3);
5761 __Pyx_GOTREF(__pyx_v_self->ws_advective);
5762 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_advective));
5763 __pyx_v_self->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5773 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error)
5774 __Pyx_GOTREF(__pyx_t_3);
5775 __Pyx_GIVEREF(__pyx_t_3);
5776 __Pyx_GOTREF(__pyx_v_self->vos_advective);
5777 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_advective));
5778 __pyx_v_self->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5788 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error)
5789 __Pyx_GOTREF(__pyx_t_3);
5790 __Pyx_GIVEREF(__pyx_t_3);
5791 __Pyx_GOTREF(__pyx_v_self->us_diffusive);
5792 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_diffusive));
5793 __pyx_v_self->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5803 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error)
5804 __Pyx_GOTREF(__pyx_t_3);
5805 __Pyx_GIVEREF(__pyx_t_3);
5806 __Pyx_GOTREF(__pyx_v_self->vs_diffusive);
5807 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_diffusive));
5808 __pyx_v_self->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5818 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error)
5819 __Pyx_GOTREF(__pyx_t_3);
5820 __Pyx_GIVEREF(__pyx_t_3);
5821 __Pyx_GOTREF(__pyx_v_self->ws_diffusive);
5822 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_diffusive));
5823 __pyx_v_self->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5833 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 92, __pyx_L1_error)
5834 __Pyx_GOTREF(__pyx_t_3);
5835 __Pyx_GIVEREF(__pyx_t_3);
5836 __Pyx_GOTREF(__pyx_v_self->pInit_dirichlet);
5837 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
5838 __pyx_v_self->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5848 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 93, __pyx_L1_error)
5849 __Pyx_GOTREF(__pyx_t_3);
5850 __Pyx_GIVEREF(__pyx_t_3);
5851 __Pyx_GOTREF(__pyx_v_self->pInc_dirichlet);
5852 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
5853 __pyx_v_self->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5863 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
5864 __Pyx_GOTREF(__pyx_t_3);
5865 __Pyx_GIVEREF(__pyx_t_3);
5866 __Pyx_GOTREF(__pyx_v_self->pInit_advective);
5867 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_advective));
5868 __pyx_v_self->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5878 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error)
5879 __Pyx_GOTREF(__pyx_t_3);
5880 __Pyx_GIVEREF(__pyx_t_3);
5881 __Pyx_GOTREF(__pyx_v_self->pInc_advective);
5882 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_advective));
5883 __pyx_v_self->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5893 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
5894 __Pyx_GOTREF(__pyx_t_3);
5895 __Pyx_GIVEREF(__pyx_t_3);
5896 __Pyx_GOTREF(__pyx_v_self->pInit_diffusive);
5897 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_diffusive));
5898 __pyx_v_self->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5908 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error)
5909 __Pyx_GOTREF(__pyx_t_3);
5910 __Pyx_GIVEREF(__pyx_t_3);
5911 __Pyx_GOTREF(__pyx_v_self->pInc_diffusive);
5912 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_diffusive));
5913 __pyx_v_self->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5923 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error)
5924 __Pyx_GOTREF(__pyx_t_3);
5925 __Pyx_GIVEREF(__pyx_t_3);
5926 __Pyx_GOTREF(__pyx_v_self->clsvof_dirichlet);
5927 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
5928 __pyx_v_self->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5938 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
5939 __Pyx_GOTREF(__pyx_t_3);
5940 __Pyx_GIVEREF(__pyx_t_3);
5941 __Pyx_GOTREF(__pyx_v_self->clsvof_advective);
5942 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_advective));
5943 __pyx_v_self->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5953 __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error)
5954 __Pyx_GOTREF(__pyx_t_3);
5955 __Pyx_GIVEREF(__pyx_t_3);
5956 __Pyx_GOTREF(__pyx_v_self->clsvof_diffusive);
5957 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
5958 __pyx_v_self->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_3);
5973 __Pyx_XDECREF(__pyx_t_1);
5974 __Pyx_XDECREF(__pyx_t_2);
5975 __Pyx_XDECREF(__pyx_t_3);
5976 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5979 __Pyx_TraceReturn(Py_None, 0);
5980 __Pyx_RefNannyFinishContext();
5993 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_3reset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
5994 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_2reset[] =
"BC_RANS.reset(self)\n\n Resets all BoundaryCondtion functions to None, apart from the BCs\n affecting: moving mesh\n ";
5995 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_3reset = {
"reset", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_3reset, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_2reset};
5996 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_3reset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
5997 PyObject *__pyx_r = 0;
5998 __Pyx_RefNannyDeclarations
5999 __Pyx_RefNannySetupContext(
"reset (wrapper)", 0);
6000 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_2reset(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
6003 __Pyx_RefNannyFinishContext();
6007 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_2reset(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
6008 PyObject *__pyx_r = NULL;
6009 __Pyx_TraceDeclarations
6010 __Pyx_RefNannyDeclarations
6011 int __pyx_lineno = 0;
6012 const char *__pyx_filename = NULL;
6013 int __pyx_clineno = 0;
6014 __Pyx_TraceFrameInit(__pyx_codeobj_)
6015 __Pyx_RefNannySetupContext(
"reset", 0);
6016 __Pyx_TraceCall(
"reset", __pyx_f[0], 103, 0, __PYX_ERR(0, 103, __pyx_L1_error));
6025 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->p_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->p_dirichlet, 0);
6034 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInit_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->pInit_dirichlet, 0);
6043 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInc_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->pInc_dirichlet, 0);
6052 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->u_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->u_dirichlet, 0);
6061 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->v_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->v_dirichlet, 0);
6070 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->w_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->w_dirichlet, 0);
6079 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->phi_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->phi_dirichlet, 0);
6088 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vof_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->vof_dirichlet, 0);
6097 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->k_dirichlet, 0);
6106 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_dirichlet, 0);
6115 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->us_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->us_dirichlet, 0);
6124 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vs_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->vs_dirichlet, 0);
6133 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->ws_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->ws_dirichlet, 0);
6142 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vos_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->vos_dirichlet, 0);
6151 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->p_advective->__pyx_vtab)->resetBC(__pyx_v_self->p_advective, 0);
6160 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInit_advective->__pyx_vtab)->resetBC(__pyx_v_self->pInit_advective, 0);
6169 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInc_advective->__pyx_vtab)->resetBC(__pyx_v_self->pInc_advective, 0);
6178 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->u_advective->__pyx_vtab)->resetBC(__pyx_v_self->u_advective, 0);
6187 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->v_advective->__pyx_vtab)->resetBC(__pyx_v_self->v_advective, 0);
6196 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->w_advective->__pyx_vtab)->resetBC(__pyx_v_self->w_advective, 0);
6205 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vof_advective->__pyx_vtab)->resetBC(__pyx_v_self->vof_advective, 0);
6214 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_advective->__pyx_vtab)->resetBC(__pyx_v_self->k_advective, 0);
6223 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_advective->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_advective, 0);
6232 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->us_advective->__pyx_vtab)->resetBC(__pyx_v_self->us_advective, 0);
6241 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vs_advective->__pyx_vtab)->resetBC(__pyx_v_self->vs_advective, 0);
6250 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->ws_advective->__pyx_vtab)->resetBC(__pyx_v_self->ws_advective, 0);
6259 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vos_advective->__pyx_vtab)->resetBC(__pyx_v_self->vos_advective, 0);
6268 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInit_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->pInit_diffusive, 0);
6277 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->pInc_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->pInc_diffusive, 0);
6286 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->u_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->u_diffusive, 0);
6295 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->v_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->v_diffusive, 0);
6304 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->w_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->w_diffusive, 0);
6313 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->k_diffusive, 0);
6322 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_diffusive, 0);
6331 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->us_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->us_diffusive, 0);
6340 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->vs_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->vs_diffusive, 0);
6349 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->ws_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->ws_diffusive, 0);
6358 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->clsvof_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->clsvof_dirichlet, 0);
6367 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->clsvof_advective->__pyx_vtab)->resetBC(__pyx_v_self->clsvof_advective, 0);
6376 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->clsvof_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->clsvof_diffusive, 0);
6387 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6390 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.reset", __pyx_clineno, __pyx_lineno, __pyx_filename);
6393 __Pyx_XGIVEREF(__pyx_r);
6394 __Pyx_TraceReturn(__pyx_r, 0);
6395 __Pyx_RefNannyFinishContext();
6408 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
6409 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial[] =
"BC_RANS.setNonMaterial(self)\n\n Sets non-material boundary conditions (diffusive flux and advective vof\n to 0.).\n ";
6410 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial = {
"setNonMaterial", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial};
6411 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
6412 PyObject *__pyx_r = 0;
6413 __Pyx_RefNannyDeclarations
6414 __Pyx_RefNannySetupContext(
"setNonMaterial (wrapper)", 0);
6415 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
6418 __Pyx_RefNannyFinishContext();
6422 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
6423 PyObject *__pyx_r = NULL;
6424 __Pyx_TraceDeclarations
6425 __Pyx_RefNannyDeclarations
6426 PyObject *__pyx_t_1 = NULL;
6427 PyObject *__pyx_t_2 = NULL;
6428 PyObject *__pyx_t_3 = NULL;
6429 int __pyx_lineno = 0;
6430 const char *__pyx_filename = NULL;
6431 int __pyx_clineno = 0;
6432 __Pyx_TraceFrameInit(__pyx_codeobj__2)
6433 __Pyx_RefNannySetupContext(
"setNonMaterial", 0);
6434 __Pyx_TraceCall(
"setNonMaterial", __pyx_f[0], 150, 0, __PYX_ERR(0, 150, __pyx_L1_error));
6443 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
6444 __Pyx_GOTREF(__pyx_t_2);
6446 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6447 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6448 if (likely(__pyx_t_3)) {
6449 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6450 __Pyx_INCREF(__pyx_t_3);
6451 __Pyx_INCREF(
function);
6452 __Pyx_DECREF_SET(__pyx_t_2,
function);
6455 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
6456 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6457 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error)
6458 __Pyx_GOTREF(__pyx_t_1);
6459 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6460 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6469 __Pyx_INCREF(__pyx_n_s_NonMaterial);
6470 __Pyx_GIVEREF(__pyx_n_s_NonMaterial);
6471 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
6472 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
6473 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_NonMaterial;
6482 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vof_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error)
6483 __Pyx_GOTREF(__pyx_t_2);
6485 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6486 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6487 if (likely(__pyx_t_3)) {
6488 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6489 __Pyx_INCREF(__pyx_t_3);
6490 __Pyx_INCREF(
function);
6491 __Pyx_DECREF_SET(__pyx_t_2,
function);
6494 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6495 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6496 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error)
6497 __Pyx_GOTREF(__pyx_t_1);
6498 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6499 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6508 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vos_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
6509 __Pyx_GOTREF(__pyx_t_2);
6511 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6512 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6513 if (likely(__pyx_t_3)) {
6514 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6515 __Pyx_INCREF(__pyx_t_3);
6516 __Pyx_INCREF(
function);
6517 __Pyx_DECREF_SET(__pyx_t_2,
function);
6520 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6521 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6522 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 158, __pyx_L1_error)
6523 __Pyx_GOTREF(__pyx_t_1);
6524 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6525 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6534 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error)
6535 __Pyx_GOTREF(__pyx_t_2);
6537 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6538 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6539 if (likely(__pyx_t_3)) {
6540 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6541 __Pyx_INCREF(__pyx_t_3);
6542 __Pyx_INCREF(
function);
6543 __Pyx_DECREF_SET(__pyx_t_2,
function);
6546 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6547 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6548 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 159, __pyx_L1_error)
6549 __Pyx_GOTREF(__pyx_t_1);
6550 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6551 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6560 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 160, __pyx_L1_error)
6561 __Pyx_GOTREF(__pyx_t_2);
6563 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6564 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6565 if (likely(__pyx_t_3)) {
6566 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6567 __Pyx_INCREF(__pyx_t_3);
6568 __Pyx_INCREF(
function);
6569 __Pyx_DECREF_SET(__pyx_t_2,
function);
6572 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6573 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6574 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error)
6575 __Pyx_GOTREF(__pyx_t_1);
6576 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6577 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6586 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
6587 __Pyx_GOTREF(__pyx_t_2);
6589 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6590 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6591 if (likely(__pyx_t_3)) {
6592 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6593 __Pyx_INCREF(__pyx_t_3);
6594 __Pyx_INCREF(
function);
6595 __Pyx_DECREF_SET(__pyx_t_2,
function);
6598 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6599 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6600 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 161, __pyx_L1_error)
6601 __Pyx_GOTREF(__pyx_t_1);
6602 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6603 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6612 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
6613 __Pyx_GOTREF(__pyx_t_2);
6615 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6616 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6617 if (likely(__pyx_t_3)) {
6618 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6619 __Pyx_INCREF(__pyx_t_3);
6620 __Pyx_INCREF(
function);
6621 __Pyx_DECREF_SET(__pyx_t_2,
function);
6624 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6625 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6626 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 162, __pyx_L1_error)
6627 __Pyx_GOTREF(__pyx_t_1);
6628 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6629 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6638 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error)
6639 __Pyx_GOTREF(__pyx_t_2);
6641 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6642 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6643 if (likely(__pyx_t_3)) {
6644 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6645 __Pyx_INCREF(__pyx_t_3);
6646 __Pyx_INCREF(
function);
6647 __Pyx_DECREF_SET(__pyx_t_2,
function);
6650 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6651 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6652 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error)
6653 __Pyx_GOTREF(__pyx_t_1);
6654 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6655 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6664 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
6665 __Pyx_GOTREF(__pyx_t_2);
6667 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6668 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6669 if (likely(__pyx_t_3)) {
6670 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6671 __Pyx_INCREF(__pyx_t_3);
6672 __Pyx_INCREF(
function);
6673 __Pyx_DECREF_SET(__pyx_t_2,
function);
6676 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6677 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6678 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
6679 __Pyx_GOTREF(__pyx_t_1);
6680 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6681 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6690 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error)
6691 __Pyx_GOTREF(__pyx_t_2);
6693 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6694 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6695 if (likely(__pyx_t_3)) {
6696 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6697 __Pyx_INCREF(__pyx_t_3);
6698 __Pyx_INCREF(
function);
6699 __Pyx_DECREF_SET(__pyx_t_2,
function);
6702 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6703 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6704 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 165, __pyx_L1_error)
6705 __Pyx_GOTREF(__pyx_t_1);
6706 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6707 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6716 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
6717 __Pyx_GOTREF(__pyx_t_2);
6719 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6720 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6721 if (likely(__pyx_t_3)) {
6722 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6723 __Pyx_INCREF(__pyx_t_3);
6724 __Pyx_INCREF(
function);
6725 __Pyx_DECREF_SET(__pyx_t_2,
function);
6728 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6729 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6730 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
6731 __Pyx_GOTREF(__pyx_t_1);
6732 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6733 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6742 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L1_error)
6743 __Pyx_GOTREF(__pyx_t_2);
6745 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6746 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6747 if (likely(__pyx_t_3)) {
6748 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6749 __Pyx_INCREF(__pyx_t_3);
6750 __Pyx_INCREF(
function);
6751 __Pyx_DECREF_SET(__pyx_t_2,
function);
6754 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6755 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6756 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 167, __pyx_L1_error)
6757 __Pyx_GOTREF(__pyx_t_1);
6758 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6759 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6768 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error)
6769 __Pyx_GOTREF(__pyx_t_2);
6771 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6772 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6773 if (likely(__pyx_t_3)) {
6774 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6775 __Pyx_INCREF(__pyx_t_3);
6776 __Pyx_INCREF(
function);
6777 __Pyx_DECREF_SET(__pyx_t_2,
function);
6780 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6781 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6782 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 168, __pyx_L1_error)
6783 __Pyx_GOTREF(__pyx_t_1);
6784 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6785 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6794 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 169, __pyx_L1_error)
6795 __Pyx_GOTREF(__pyx_t_2);
6797 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6798 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6799 if (likely(__pyx_t_3)) {
6800 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6801 __Pyx_INCREF(__pyx_t_3);
6802 __Pyx_INCREF(
function);
6803 __Pyx_DECREF_SET(__pyx_t_2,
function);
6806 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6807 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6808 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 169, __pyx_L1_error)
6809 __Pyx_GOTREF(__pyx_t_1);
6810 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6811 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6820 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
6821 __Pyx_GOTREF(__pyx_t_2);
6823 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6824 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6825 if (likely(__pyx_t_3)) {
6826 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6827 __Pyx_INCREF(__pyx_t_3);
6828 __Pyx_INCREF(
function);
6829 __Pyx_DECREF_SET(__pyx_t_2,
function);
6832 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6833 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6834 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
6835 __Pyx_GOTREF(__pyx_t_1);
6836 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6837 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6846 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error)
6847 __Pyx_GOTREF(__pyx_t_2);
6849 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
6850 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
6851 if (likely(__pyx_t_3)) {
6852 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
6853 __Pyx_INCREF(__pyx_t_3);
6854 __Pyx_INCREF(
function);
6855 __Pyx_DECREF_SET(__pyx_t_2,
function);
6858 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
6859 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6860 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error)
6861 __Pyx_GOTREF(__pyx_t_1);
6862 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6863 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6874 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6877 __Pyx_XDECREF(__pyx_t_1);
6878 __Pyx_XDECREF(__pyx_t_2);
6879 __Pyx_XDECREF(__pyx_t_3);
6880 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setNonMaterial", __pyx_clineno, __pyx_lineno, __pyx_filename);
6883 __Pyx_XGIVEREF(__pyx_r);
6884 __Pyx_TraceReturn(__pyx_r, 0);
6885 __Pyx_RefNannyFinishContext();
6898 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_7setTank(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
6899 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_6setTank[] =
"BC_RANS.setTank(self, b_or=None)";
6900 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_7setTank = {
"setTank", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_7setTank, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_6setTank};
6901 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_7setTank(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
6902 PyObject *__pyx_v_b_or = 0;
6903 int __pyx_lineno = 0;
6904 const char *__pyx_filename = NULL;
6905 int __pyx_clineno = 0;
6906 PyObject *__pyx_r = 0;
6907 __Pyx_RefNannyDeclarations
6908 __Pyx_RefNannySetupContext(
"setTank (wrapper)", 0);
6910 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_b_or,0};
6911 PyObject* values[1] = {0};
6912 values[0] = ((PyObject *)Py_None);
6913 if (unlikely(__pyx_kwds)) {
6915 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
6917 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6920 default:
goto __pyx_L5_argtuple_error;
6922 kw_args = PyDict_Size(__pyx_kwds);
6926 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_or);
6927 if (value) { values[0] = value; kw_args--; }
6930 if (unlikely(kw_args > 0)) {
6931 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setTank") < 0)) __PYX_ERR(0, 173, __pyx_L3_error)
6934 switch (PyTuple_GET_SIZE(__pyx_args)) {
6935 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
6938 default:
goto __pyx_L5_argtuple_error;
6941 __pyx_v_b_or = values[0];
6943 goto __pyx_L4_argument_unpacking_done;
6944 __pyx_L5_argtuple_error:;
6945 __Pyx_RaiseArgtupleInvalid(
"setTank", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 173, __pyx_L3_error)
6947 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTank", __pyx_clineno, __pyx_lineno, __pyx_filename);
6948 __Pyx_RefNannyFinishContext();
6950 __pyx_L4_argument_unpacking_done:;
6951 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_6setTank(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_b_or);
6954 __Pyx_RefNannyFinishContext();
6958 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_6setTank(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_b_or) {
6959 PyObject *__pyx_r = NULL;
6960 __Pyx_TraceDeclarations
6961 __Pyx_RefNannyDeclarations
6964 PyObject *__pyx_t_3 = NULL;
6965 PyObject *__pyx_t_4 = NULL;
6966 PyObject *__pyx_t_5 = NULL;
6967 Py_ssize_t __pyx_t_6;
6968 int __pyx_lineno = 0;
6969 const char *__pyx_filename = NULL;
6970 int __pyx_clineno = 0;
6971 __Pyx_TraceFrameInit(__pyx_codeobj__3)
6972 __Pyx_RefNannySetupContext(
"setTank", 0);
6973 __Pyx_TraceCall(
"setTank", __pyx_f[0], 173, 0, __PYX_ERR(0, 173, __pyx_L1_error));
6974 __Pyx_INCREF(__pyx_v_b_or);
6983 __pyx_t_1 = (__pyx_v_b_or == Py_None);
6984 __pyx_t_2 = (__pyx_t_1 != 0);
6994 #ifndef CYTHON_WITHOUT_ASSERTIONS
6995 if (unlikely(!Py_OptimizeFlag)) {
6996 if (unlikely(!((((PyObject *) __pyx_v_self->__pyx_base._b_or.memview) != Py_None) != 0))) {
6997 PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Boundary_orientation_must_be_def);
6998 __PYX_ERR(0, 175, __pyx_L1_error)
7010 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error)
7011 __Pyx_GOTREF(__pyx_t_3);
7012 __Pyx_DECREF_SET(__pyx_v_b_or, __pyx_t_3);
7031 __Pyx_INCREF(__pyx_float_0_);
7032 __Pyx_GIVEREF(__pyx_float_0_);
7033 __Pyx_GOTREF(__pyx_v_self->u_stress->uOfXT);
7034 __Pyx_DECREF(__pyx_v_self->u_stress->uOfXT);
7035 __pyx_v_self->u_stress->uOfXT = __pyx_float_0_;
7044 __Pyx_INCREF(__pyx_float_0_);
7045 __Pyx_GIVEREF(__pyx_float_0_);
7046 __Pyx_GOTREF(__pyx_v_self->v_stress->uOfXT);
7047 __Pyx_DECREF(__pyx_v_self->v_stress->uOfXT);
7048 __pyx_v_self->v_stress->uOfXT = __pyx_float_0_;
7057 __Pyx_INCREF(__pyx_float_0_);
7058 __Pyx_GIVEREF(__pyx_float_0_);
7059 __Pyx_GOTREF(__pyx_v_self->w_stress->uOfXT);
7060 __Pyx_DECREF(__pyx_v_self->w_stress->uOfXT);
7061 __pyx_v_self->w_stress->uOfXT = __pyx_float_0_;
7070 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->hx_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->hx_dirichlet, 0);
7079 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->hy_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->hy_dirichlet, 0);
7088 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->hz_dirichlet->__pyx_vtab)->resetBC(__pyx_v_self->hz_dirichlet, 0);
7097 __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error)
7098 __Pyx_GOTREF(__pyx_t_3);
7099 __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error)
7100 __Pyx_GOTREF(__pyx_t_4);
7101 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7102 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 183, __pyx_L1_error)
7103 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7106 __pyx_t_2 = __pyx_t_1;
7107 goto __pyx_L5_bool_binop_done;
7109 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 183, __pyx_L1_error)
7110 __Pyx_GOTREF(__pyx_t_4);
7111 __pyx_t_3 = __Pyx_PyInt_EqObjC(__pyx_t_4, __pyx_int_neg_1, -1
L, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error)
7112 __Pyx_GOTREF(__pyx_t_3);
7113 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7114 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 183, __pyx_L1_error)
7115 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7116 __pyx_t_2 = __pyx_t_1;
7117 __pyx_L5_bool_binop_done:;
7127 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hx_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 184, __pyx_L1_error)
7128 __Pyx_GOTREF(__pyx_t_4);
7130 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
7131 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
7132 if (likely(__pyx_t_5)) {
7133 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
7134 __Pyx_INCREF(__pyx_t_5);
7135 __Pyx_INCREF(
function);
7136 __Pyx_DECREF_SET(__pyx_t_4,
function);
7139 __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_float_0_);
7140 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
7141 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error)
7142 __Pyx_GOTREF(__pyx_t_3);
7143 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7144 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7153 __Pyx_INCREF(Py_None);
7154 __Pyx_GIVEREF(Py_None);
7155 __Pyx_GOTREF(__pyx_v_self->u_stress->uOfXT);
7156 __Pyx_DECREF(__pyx_v_self->u_stress->uOfXT);
7157 __pyx_v_self->u_stress->uOfXT = Py_None;
7176 __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error)
7177 __Pyx_GOTREF(__pyx_t_3);
7178 __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error)
7179 __Pyx_GOTREF(__pyx_t_4);
7180 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7181 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 186, __pyx_L1_error)
7182 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7185 __pyx_t_2 = __pyx_t_1;
7186 goto __pyx_L7_bool_binop_done;
7188 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 186, __pyx_L1_error)
7189 __Pyx_GOTREF(__pyx_t_4);
7190 __pyx_t_3 = __Pyx_PyInt_EqObjC(__pyx_t_4, __pyx_int_neg_1, -1
L, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error)
7191 __Pyx_GOTREF(__pyx_t_3);
7192 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7193 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 186, __pyx_L1_error)
7194 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7195 __pyx_t_2 = __pyx_t_1;
7196 __pyx_L7_bool_binop_done:;
7206 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hy_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 187, __pyx_L1_error)
7207 __Pyx_GOTREF(__pyx_t_4);
7209 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
7210 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
7211 if (likely(__pyx_t_5)) {
7212 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
7213 __Pyx_INCREF(__pyx_t_5);
7214 __Pyx_INCREF(
function);
7215 __Pyx_DECREF_SET(__pyx_t_4,
function);
7218 __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_float_0_);
7219 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
7220 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error)
7221 __Pyx_GOTREF(__pyx_t_3);
7222 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7223 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7232 __Pyx_INCREF(Py_None);
7233 __Pyx_GIVEREF(Py_None);
7234 __Pyx_GOTREF(__pyx_v_self->v_stress->uOfXT);
7235 __Pyx_DECREF(__pyx_v_self->v_stress->uOfXT);
7236 __pyx_v_self->v_stress->uOfXT = Py_None;
7255 __pyx_t_6 = PyObject_Length(__pyx_v_b_or);
if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 189, __pyx_L1_error)
7256 __pyx_t_1 = ((__pyx_t_6 > 2) != 0);
7259 __pyx_t_2 = __pyx_t_1;
7260 goto __pyx_L9_bool_binop_done;
7262 __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 189, __pyx_L1_error)
7263 __Pyx_GOTREF(__pyx_t_3);
7264 __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 189, __pyx_L1_error)
7265 __Pyx_GOTREF(__pyx_t_4);
7266 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7267 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 189, __pyx_L1_error)
7268 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7271 __pyx_t_2 = __pyx_t_1;
7272 goto __pyx_L9_bool_binop_done;
7274 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 189, __pyx_L1_error)
7275 __Pyx_GOTREF(__pyx_t_4);
7276 __pyx_t_3 = __Pyx_PyInt_EqObjC(__pyx_t_4, __pyx_int_neg_1, -1
L, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 189, __pyx_L1_error)
7277 __Pyx_GOTREF(__pyx_t_3);
7278 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7279 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 189, __pyx_L1_error)
7280 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7281 __pyx_t_2 = __pyx_t_1;
7282 __pyx_L9_bool_binop_done:;
7292 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hz_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 190, __pyx_L1_error)
7293 __Pyx_GOTREF(__pyx_t_4);
7295 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
7296 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
7297 if (likely(__pyx_t_5)) {
7298 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
7299 __Pyx_INCREF(__pyx_t_5);
7300 __Pyx_INCREF(
function);
7301 __Pyx_DECREF_SET(__pyx_t_4,
function);
7304 __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_float_0_);
7305 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
7306 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error)
7307 __Pyx_GOTREF(__pyx_t_3);
7308 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
7309 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7318 __Pyx_INCREF(Py_None);
7319 __Pyx_GIVEREF(Py_None);
7320 __Pyx_GOTREF(__pyx_v_self->w_stress->uOfXT);
7321 __Pyx_DECREF(__pyx_v_self->w_stress->uOfXT);
7322 __pyx_v_self->w_stress->uOfXT = Py_None;
7343 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7346 __Pyx_XDECREF(__pyx_t_3);
7347 __Pyx_XDECREF(__pyx_t_4);
7348 __Pyx_XDECREF(__pyx_t_5);
7349 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTank", __pyx_clineno, __pyx_lineno, __pyx_filename);
7352 __Pyx_XDECREF(__pyx_v_b_or);
7353 __Pyx_XGIVEREF(__pyx_r);
7354 __Pyx_TraceReturn(__pyx_r, 0);
7355 __Pyx_RefNannyFinishContext();
7368 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
7369 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes[] =
"BC_RANS.setFixedNodes(self)\n\n For moving domains: fixes nodes/boundary\n ";
7370 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes = {
"setFixedNodes", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes};
7371 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
7372 PyObject *__pyx_r = 0;
7373 __Pyx_RefNannyDeclarations
7374 __Pyx_RefNannySetupContext(
"setFixedNodes (wrapper)", 0);
7375 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
7378 __Pyx_RefNannyFinishContext();
7382 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
7383 PyObject *__pyx_r = NULL;
7384 __Pyx_TraceDeclarations
7385 __Pyx_RefNannyDeclarations
7386 PyObject *__pyx_t_1 = NULL;
7387 PyObject *__pyx_t_2 = NULL;
7388 PyObject *__pyx_t_3 = NULL;
7389 int __pyx_lineno = 0;
7390 const char *__pyx_filename = NULL;
7391 int __pyx_clineno = 0;
7392 __Pyx_TraceFrameInit(__pyx_codeobj__4)
7393 __Pyx_RefNannySetupContext(
"setFixedNodes", 0);
7394 __Pyx_TraceCall(
"setFixedNodes", __pyx_f[0], 193, 0, __PYX_ERR(0, 193, __pyx_L1_error));
7403 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hx_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
7404 __Pyx_GOTREF(__pyx_t_2);
7406 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7407 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7408 if (likely(__pyx_t_3)) {
7409 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7410 __Pyx_INCREF(__pyx_t_3);
7411 __Pyx_INCREF(
function);
7412 __Pyx_DECREF_SET(__pyx_t_2,
function);
7415 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7416 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7417 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
7418 __Pyx_GOTREF(__pyx_t_1);
7419 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7420 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7429 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hy_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error)
7430 __Pyx_GOTREF(__pyx_t_2);
7432 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7433 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7434 if (likely(__pyx_t_3)) {
7435 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7436 __Pyx_INCREF(__pyx_t_3);
7437 __Pyx_INCREF(
function);
7438 __Pyx_DECREF_SET(__pyx_t_2,
function);
7441 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7442 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7443 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error)
7444 __Pyx_GOTREF(__pyx_t_1);
7445 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7446 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7455 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->hz_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
7456 __Pyx_GOTREF(__pyx_t_2);
7458 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7459 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7460 if (likely(__pyx_t_3)) {
7461 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7462 __Pyx_INCREF(__pyx_t_3);
7463 __Pyx_INCREF(
function);
7464 __Pyx_DECREF_SET(__pyx_t_2,
function);
7467 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7468 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7469 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
7470 __Pyx_GOTREF(__pyx_t_1);
7471 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7472 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7481 __Pyx_INCREF(__pyx_float_0_);
7482 __Pyx_GIVEREF(__pyx_float_0_);
7483 __Pyx_GOTREF(__pyx_v_self->u_stress->uOfXT);
7484 __Pyx_DECREF(__pyx_v_self->u_stress->uOfXT);
7485 __pyx_v_self->u_stress->uOfXT = __pyx_float_0_;
7494 __Pyx_INCREF(__pyx_float_0_);
7495 __Pyx_GIVEREF(__pyx_float_0_);
7496 __Pyx_GOTREF(__pyx_v_self->v_stress->uOfXT);
7497 __Pyx_DECREF(__pyx_v_self->v_stress->uOfXT);
7498 __pyx_v_self->v_stress->uOfXT = __pyx_float_0_;
7507 __Pyx_INCREF(__pyx_float_0_);
7508 __Pyx_GIVEREF(__pyx_float_0_);
7509 __Pyx_GOTREF(__pyx_v_self->w_stress->uOfXT);
7510 __Pyx_DECREF(__pyx_v_self->w_stress->uOfXT);
7511 __pyx_v_self->w_stress->uOfXT = __pyx_float_0_;
7522 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7525 __Pyx_XDECREF(__pyx_t_1);
7526 __Pyx_XDECREF(__pyx_t_2);
7527 __Pyx_XDECREF(__pyx_t_3);
7528 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setFixedNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
7531 __Pyx_XGIVEREF(__pyx_r);
7532 __Pyx_TraceReturn(__pyx_r, 0);
7533 __Pyx_RefNannyFinishContext();
7546 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
7547 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip[] =
"BC_RANS.setNoSlip(self)\n\n Sets no slip conditions at the boundary\n ";
7548 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip = {
"setNoSlip", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip};
7549 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
7550 PyObject *__pyx_r = 0;
7551 __Pyx_RefNannyDeclarations
7552 __Pyx_RefNannySetupContext(
"setNoSlip (wrapper)", 0);
7553 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
7556 __Pyx_RefNannyFinishContext();
7560 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
7561 PyObject *__pyx_r = NULL;
7562 __Pyx_TraceDeclarations
7563 __Pyx_RefNannyDeclarations
7564 PyObject *__pyx_t_1 = NULL;
7565 PyObject *__pyx_t_2 = NULL;
7566 PyObject *__pyx_t_3 = NULL;
7567 int __pyx_lineno = 0;
7568 const char *__pyx_filename = NULL;
7569 int __pyx_clineno = 0;
7570 __Pyx_TraceFrameInit(__pyx_codeobj__5)
7571 __Pyx_RefNannySetupContext(
"setNoSlip", 0);
7572 __Pyx_TraceCall(
"setNoSlip", __pyx_f[0], 204, 0, __PYX_ERR(0, 204, __pyx_L1_error));
7581 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
7582 __Pyx_GOTREF(__pyx_t_2);
7584 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7585 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7586 if (likely(__pyx_t_3)) {
7587 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7588 __Pyx_INCREF(__pyx_t_3);
7589 __Pyx_INCREF(
function);
7590 __Pyx_DECREF_SET(__pyx_t_2,
function);
7593 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
7594 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7595 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
7596 __Pyx_GOTREF(__pyx_t_1);
7597 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7598 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7607 __Pyx_INCREF(__pyx_n_s_NoSlip);
7608 __Pyx_GIVEREF(__pyx_n_s_NoSlip);
7609 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
7610 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
7611 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_NoSlip;
7620 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error)
7621 __Pyx_GOTREF(__pyx_t_2);
7623 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7624 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7625 if (likely(__pyx_t_3)) {
7626 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7627 __Pyx_INCREF(__pyx_t_3);
7628 __Pyx_INCREF(
function);
7629 __Pyx_DECREF_SET(__pyx_t_2,
function);
7632 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7633 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7634 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error)
7635 __Pyx_GOTREF(__pyx_t_1);
7636 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7637 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7646 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error)
7647 __Pyx_GOTREF(__pyx_t_2);
7649 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7650 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7651 if (likely(__pyx_t_3)) {
7652 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7653 __Pyx_INCREF(__pyx_t_3);
7654 __Pyx_INCREF(
function);
7655 __Pyx_DECREF_SET(__pyx_t_2,
function);
7658 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7659 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7660 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error)
7661 __Pyx_GOTREF(__pyx_t_1);
7662 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7663 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7672 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 213, __pyx_L1_error)
7673 __Pyx_GOTREF(__pyx_t_2);
7675 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7676 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7677 if (likely(__pyx_t_3)) {
7678 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7679 __Pyx_INCREF(__pyx_t_3);
7680 __Pyx_INCREF(
function);
7681 __Pyx_DECREF_SET(__pyx_t_2,
function);
7684 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7685 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7686 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
7687 __Pyx_GOTREF(__pyx_t_1);
7688 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7689 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7698 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error)
7699 __Pyx_GOTREF(__pyx_t_2);
7701 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7702 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7703 if (likely(__pyx_t_3)) {
7704 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7705 __Pyx_INCREF(__pyx_t_3);
7706 __Pyx_INCREF(
function);
7707 __Pyx_DECREF_SET(__pyx_t_2,
function);
7710 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7711 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7712 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error)
7713 __Pyx_GOTREF(__pyx_t_1);
7714 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7715 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7724 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 215, __pyx_L1_error)
7725 __Pyx_GOTREF(__pyx_t_2);
7727 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7728 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7729 if (likely(__pyx_t_3)) {
7730 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7731 __Pyx_INCREF(__pyx_t_3);
7732 __Pyx_INCREF(
function);
7733 __Pyx_DECREF_SET(__pyx_t_2,
function);
7736 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7737 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7738 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
7739 __Pyx_GOTREF(__pyx_t_1);
7740 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7741 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7750 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error)
7751 __Pyx_GOTREF(__pyx_t_2);
7753 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7754 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7755 if (likely(__pyx_t_3)) {
7756 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7757 __Pyx_INCREF(__pyx_t_3);
7758 __Pyx_INCREF(
function);
7759 __Pyx_DECREF_SET(__pyx_t_2,
function);
7762 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7763 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7764 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error)
7765 __Pyx_GOTREF(__pyx_t_1);
7766 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7767 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7776 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 217, __pyx_L1_error)
7777 __Pyx_GOTREF(__pyx_t_2);
7779 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7780 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7781 if (likely(__pyx_t_3)) {
7782 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7783 __Pyx_INCREF(__pyx_t_3);
7784 __Pyx_INCREF(
function);
7785 __Pyx_DECREF_SET(__pyx_t_2,
function);
7788 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_1eneg_20) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_1eneg_20);
7789 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7790 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error)
7791 __Pyx_GOTREF(__pyx_t_1);
7792 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7793 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7802 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error)
7803 __Pyx_GOTREF(__pyx_t_2);
7805 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7806 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7807 if (likely(__pyx_t_3)) {
7808 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7809 __Pyx_INCREF(__pyx_t_3);
7810 __Pyx_INCREF(
function);
7811 __Pyx_DECREF_SET(__pyx_t_2,
function);
7814 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_1eneg_10) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_1eneg_10);
7815 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7816 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 218, __pyx_L1_error)
7817 __Pyx_GOTREF(__pyx_t_1);
7818 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7819 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7828 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 220, __pyx_L1_error)
7829 __Pyx_GOTREF(__pyx_t_2);
7831 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7832 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7833 if (likely(__pyx_t_3)) {
7834 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7835 __Pyx_INCREF(__pyx_t_3);
7836 __Pyx_INCREF(
function);
7837 __Pyx_DECREF_SET(__pyx_t_2,
function);
7840 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7841 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7842 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
7843 __Pyx_GOTREF(__pyx_t_1);
7844 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7845 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7854 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInit_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 221, __pyx_L1_error)
7855 __Pyx_GOTREF(__pyx_t_2);
7857 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7858 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7859 if (likely(__pyx_t_3)) {
7860 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7861 __Pyx_INCREF(__pyx_t_3);
7862 __Pyx_INCREF(
function);
7863 __Pyx_DECREF_SET(__pyx_t_2,
function);
7866 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7867 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7868 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error)
7869 __Pyx_GOTREF(__pyx_t_1);
7870 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7871 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7880 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error)
7881 __Pyx_GOTREF(__pyx_t_2);
7883 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7884 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7885 if (likely(__pyx_t_3)) {
7886 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7887 __Pyx_INCREF(__pyx_t_3);
7888 __Pyx_INCREF(
function);
7889 __Pyx_DECREF_SET(__pyx_t_2,
function);
7892 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7893 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7894 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
7895 __Pyx_GOTREF(__pyx_t_1);
7896 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7897 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7906 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vof_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
7907 __Pyx_GOTREF(__pyx_t_2);
7909 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7910 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7911 if (likely(__pyx_t_3)) {
7912 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7913 __Pyx_INCREF(__pyx_t_3);
7914 __Pyx_INCREF(
function);
7915 __Pyx_DECREF_SET(__pyx_t_2,
function);
7918 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7919 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7920 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
7921 __Pyx_GOTREF(__pyx_t_1);
7922 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7923 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7932 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vos_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error)
7933 __Pyx_GOTREF(__pyx_t_2);
7935 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7936 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7937 if (likely(__pyx_t_3)) {
7938 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7939 __Pyx_INCREF(__pyx_t_3);
7940 __Pyx_INCREF(
function);
7941 __Pyx_DECREF_SET(__pyx_t_2,
function);
7944 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7945 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7946 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error)
7947 __Pyx_GOTREF(__pyx_t_1);
7948 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7949 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7958 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error)
7959 __Pyx_GOTREF(__pyx_t_2);
7961 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7962 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7963 if (likely(__pyx_t_3)) {
7964 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7965 __Pyx_INCREF(__pyx_t_3);
7966 __Pyx_INCREF(
function);
7967 __Pyx_DECREF_SET(__pyx_t_2,
function);
7970 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7971 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7972 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 226, __pyx_L1_error)
7973 __Pyx_GOTREF(__pyx_t_1);
7974 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7975 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7984 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error)
7985 __Pyx_GOTREF(__pyx_t_2);
7987 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
7988 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
7989 if (likely(__pyx_t_3)) {
7990 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
7991 __Pyx_INCREF(__pyx_t_3);
7992 __Pyx_INCREF(
function);
7993 __Pyx_DECREF_SET(__pyx_t_2,
function);
7996 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
7997 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
7998 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 227, __pyx_L1_error)
7999 __Pyx_GOTREF(__pyx_t_1);
8000 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8001 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8010 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error)
8011 __Pyx_GOTREF(__pyx_t_2);
8013 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8014 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8015 if (likely(__pyx_t_3)) {
8016 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8017 __Pyx_INCREF(__pyx_t_3);
8018 __Pyx_INCREF(
function);
8019 __Pyx_DECREF_SET(__pyx_t_2,
function);
8022 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8023 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8024 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
8025 __Pyx_GOTREF(__pyx_t_1);
8026 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8027 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8038 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8041 __Pyx_XDECREF(__pyx_t_1);
8042 __Pyx_XDECREF(__pyx_t_2);
8043 __Pyx_XDECREF(__pyx_t_3);
8044 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setNoSlip", __pyx_clineno, __pyx_lineno, __pyx_filename);
8047 __Pyx_XGIVEREF(__pyx_r);
8048 __Pyx_TraceReturn(__pyx_r, 0);
8049 __Pyx_RefNannyFinishContext();
8062 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
8063 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip[] =
"BC_RANS.setFreeSlip(self)\n\n Sets free slip conditions at the boundary\n ";
8064 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip = {
"setFreeSlip", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip};
8065 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
8066 PyObject *__pyx_r = 0;
8067 __Pyx_RefNannyDeclarations
8068 __Pyx_RefNannySetupContext(
"setFreeSlip (wrapper)", 0);
8069 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
8072 __Pyx_RefNannyFinishContext();
8076 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
8077 PyObject *__pyx_r = NULL;
8078 __Pyx_TraceDeclarations
8079 __Pyx_RefNannyDeclarations
8080 PyObject *__pyx_t_1 = NULL;
8081 PyObject *__pyx_t_2 = NULL;
8082 PyObject *__pyx_t_3 = NULL;
8083 int __pyx_lineno = 0;
8084 const char *__pyx_filename = NULL;
8085 int __pyx_clineno = 0;
8086 __Pyx_TraceFrameInit(__pyx_codeobj__6)
8087 __Pyx_RefNannySetupContext(
"setFreeSlip", 0);
8088 __Pyx_TraceCall(
"setFreeSlip", __pyx_f[0], 230, 0, __PYX_ERR(0, 230, __pyx_L1_error));
8097 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error)
8098 __Pyx_GOTREF(__pyx_t_2);
8100 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8101 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8102 if (likely(__pyx_t_3)) {
8103 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8104 __Pyx_INCREF(__pyx_t_3);
8105 __Pyx_INCREF(
function);
8106 __Pyx_DECREF_SET(__pyx_t_2,
function);
8109 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
8110 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8111 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error)
8112 __Pyx_GOTREF(__pyx_t_1);
8113 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8114 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8123 __Pyx_INCREF(__pyx_n_s_FreeSlip);
8124 __Pyx_GIVEREF(__pyx_n_s_FreeSlip);
8125 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
8126 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
8127 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_FreeSlip;
8136 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error)
8137 __Pyx_GOTREF(__pyx_t_2);
8139 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8140 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8141 if (likely(__pyx_t_3)) {
8142 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8143 __Pyx_INCREF(__pyx_t_3);
8144 __Pyx_INCREF(
function);
8145 __Pyx_DECREF_SET(__pyx_t_2,
function);
8148 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_1eneg_20) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_1eneg_20);
8149 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8150 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
8151 __Pyx_GOTREF(__pyx_t_1);
8152 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8153 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8162 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 238, __pyx_L1_error)
8163 __Pyx_GOTREF(__pyx_t_2);
8165 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8166 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8167 if (likely(__pyx_t_3)) {
8168 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8169 __Pyx_INCREF(__pyx_t_3);
8170 __Pyx_INCREF(
function);
8171 __Pyx_DECREF_SET(__pyx_t_2,
function);
8174 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_1eneg_10) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_1eneg_10);
8175 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8176 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 238, __pyx_L1_error)
8177 __Pyx_GOTREF(__pyx_t_1);
8178 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8179 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8188 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __pyx_L1_error)
8189 __Pyx_GOTREF(__pyx_t_2);
8191 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8192 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8193 if (likely(__pyx_t_3)) {
8194 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8195 __Pyx_INCREF(__pyx_t_3);
8196 __Pyx_INCREF(
function);
8197 __Pyx_DECREF_SET(__pyx_t_2,
function);
8200 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8201 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8202 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
8203 __Pyx_GOTREF(__pyx_t_1);
8204 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8205 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8214 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInit_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
8215 __Pyx_GOTREF(__pyx_t_2);
8217 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8218 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8219 if (likely(__pyx_t_3)) {
8220 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8221 __Pyx_INCREF(__pyx_t_3);
8222 __Pyx_INCREF(
function);
8223 __Pyx_DECREF_SET(__pyx_t_2,
function);
8226 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8227 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8228 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
8229 __Pyx_GOTREF(__pyx_t_1);
8230 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8231 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8240 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
8241 __Pyx_GOTREF(__pyx_t_2);
8243 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8244 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8245 if (likely(__pyx_t_3)) {
8246 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8247 __Pyx_INCREF(__pyx_t_3);
8248 __Pyx_INCREF(
function);
8249 __Pyx_DECREF_SET(__pyx_t_2,
function);
8252 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8253 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8254 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error)
8255 __Pyx_GOTREF(__pyx_t_1);
8256 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8266 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error)
8267 __Pyx_GOTREF(__pyx_t_2);
8269 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8270 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8271 if (likely(__pyx_t_3)) {
8272 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8273 __Pyx_INCREF(__pyx_t_3);
8274 __Pyx_INCREF(
function);
8275 __Pyx_DECREF_SET(__pyx_t_2,
function);
8278 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8279 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8280 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 243, __pyx_L1_error)
8281 __Pyx_GOTREF(__pyx_t_1);
8282 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8283 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8292 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error)
8293 __Pyx_GOTREF(__pyx_t_2);
8295 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8296 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8297 if (likely(__pyx_t_3)) {
8298 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8299 __Pyx_INCREF(__pyx_t_3);
8300 __Pyx_INCREF(
function);
8301 __Pyx_DECREF_SET(__pyx_t_2,
function);
8304 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8305 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8306 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
8307 __Pyx_GOTREF(__pyx_t_1);
8308 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8309 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8318 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L1_error)
8319 __Pyx_GOTREF(__pyx_t_2);
8321 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8322 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8323 if (likely(__pyx_t_3)) {
8324 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8325 __Pyx_INCREF(__pyx_t_3);
8326 __Pyx_INCREF(
function);
8327 __Pyx_DECREF_SET(__pyx_t_2,
function);
8330 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8331 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8332 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error)
8333 __Pyx_GOTREF(__pyx_t_1);
8334 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8335 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8344 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
8345 __Pyx_GOTREF(__pyx_t_2);
8347 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8348 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8349 if (likely(__pyx_t_3)) {
8350 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8351 __Pyx_INCREF(__pyx_t_3);
8352 __Pyx_INCREF(
function);
8353 __Pyx_DECREF_SET(__pyx_t_2,
function);
8356 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8357 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8358 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
8359 __Pyx_GOTREF(__pyx_t_1);
8360 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8361 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8370 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 247, __pyx_L1_error)
8371 __Pyx_GOTREF(__pyx_t_2);
8373 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8374 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8375 if (likely(__pyx_t_3)) {
8376 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8377 __Pyx_INCREF(__pyx_t_3);
8378 __Pyx_INCREF(
function);
8379 __Pyx_DECREF_SET(__pyx_t_2,
function);
8382 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8383 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8384 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 247, __pyx_L1_error)
8385 __Pyx_GOTREF(__pyx_t_1);
8386 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8387 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8396 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 248, __pyx_L1_error)
8397 __Pyx_GOTREF(__pyx_t_2);
8399 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8400 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8401 if (likely(__pyx_t_3)) {
8402 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8403 __Pyx_INCREF(__pyx_t_3);
8404 __Pyx_INCREF(
function);
8405 __Pyx_DECREF_SET(__pyx_t_2,
function);
8408 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8409 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8410 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error)
8411 __Pyx_GOTREF(__pyx_t_1);
8412 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8413 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8422 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vof_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 249, __pyx_L1_error)
8423 __Pyx_GOTREF(__pyx_t_2);
8425 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8426 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8427 if (likely(__pyx_t_3)) {
8428 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8429 __Pyx_INCREF(__pyx_t_3);
8430 __Pyx_INCREF(
function);
8431 __Pyx_DECREF_SET(__pyx_t_2,
function);
8434 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8435 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8436 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 249, __pyx_L1_error)
8437 __Pyx_GOTREF(__pyx_t_1);
8438 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8439 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8448 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vos_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
8449 __Pyx_GOTREF(__pyx_t_2);
8451 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8452 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8453 if (likely(__pyx_t_3)) {
8454 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8455 __Pyx_INCREF(__pyx_t_3);
8456 __Pyx_INCREF(
function);
8457 __Pyx_DECREF_SET(__pyx_t_2,
function);
8460 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8461 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8462 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 250, __pyx_L1_error)
8463 __Pyx_GOTREF(__pyx_t_1);
8464 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8465 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8474 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error)
8475 __Pyx_GOTREF(__pyx_t_2);
8477 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8478 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8479 if (likely(__pyx_t_3)) {
8480 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8481 __Pyx_INCREF(__pyx_t_3);
8482 __Pyx_INCREF(
function);
8483 __Pyx_DECREF_SET(__pyx_t_2,
function);
8486 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8487 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8488 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error)
8489 __Pyx_GOTREF(__pyx_t_1);
8490 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8491 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8500 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error)
8501 __Pyx_GOTREF(__pyx_t_2);
8503 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8504 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8505 if (likely(__pyx_t_3)) {
8506 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8507 __Pyx_INCREF(__pyx_t_3);
8508 __Pyx_INCREF(
function);
8509 __Pyx_DECREF_SET(__pyx_t_2,
function);
8512 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8513 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8514 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error)
8515 __Pyx_GOTREF(__pyx_t_1);
8516 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8517 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8526 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error)
8527 __Pyx_GOTREF(__pyx_t_2);
8529 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8530 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8531 if (likely(__pyx_t_3)) {
8532 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8533 __Pyx_INCREF(__pyx_t_3);
8534 __Pyx_INCREF(
function);
8535 __Pyx_DECREF_SET(__pyx_t_2,
function);
8538 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8539 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8540 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error)
8541 __Pyx_GOTREF(__pyx_t_1);
8542 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8543 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8552 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L1_error)
8553 __Pyx_GOTREF(__pyx_t_2);
8555 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8556 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8557 if (likely(__pyx_t_3)) {
8558 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8559 __Pyx_INCREF(__pyx_t_3);
8560 __Pyx_INCREF(
function);
8561 __Pyx_DECREF_SET(__pyx_t_2,
function);
8564 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8565 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8566 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error)
8567 __Pyx_GOTREF(__pyx_t_1);
8568 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8569 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8578 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error)
8579 __Pyx_GOTREF(__pyx_t_2);
8581 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8582 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8583 if (likely(__pyx_t_3)) {
8584 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8585 __Pyx_INCREF(__pyx_t_3);
8586 __Pyx_INCREF(
function);
8587 __Pyx_DECREF_SET(__pyx_t_2,
function);
8590 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8591 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8592 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 256, __pyx_L1_error)
8593 __Pyx_GOTREF(__pyx_t_1);
8594 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8595 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8604 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error)
8605 __Pyx_GOTREF(__pyx_t_2);
8607 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8608 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8609 if (likely(__pyx_t_3)) {
8610 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8611 __Pyx_INCREF(__pyx_t_3);
8612 __Pyx_INCREF(
function);
8613 __Pyx_DECREF_SET(__pyx_t_2,
function);
8616 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8617 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8618 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 257, __pyx_L1_error)
8619 __Pyx_GOTREF(__pyx_t_1);
8620 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8621 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8630 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L1_error)
8631 __Pyx_GOTREF(__pyx_t_2);
8633 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8634 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8635 if (likely(__pyx_t_3)) {
8636 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8637 __Pyx_INCREF(__pyx_t_3);
8638 __Pyx_INCREF(
function);
8639 __Pyx_DECREF_SET(__pyx_t_2,
function);
8642 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8643 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8644 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 258, __pyx_L1_error)
8645 __Pyx_GOTREF(__pyx_t_1);
8646 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8647 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8656 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L1_error)
8657 __Pyx_GOTREF(__pyx_t_2);
8659 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8660 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8661 if (likely(__pyx_t_3)) {
8662 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8663 __Pyx_INCREF(__pyx_t_3);
8664 __Pyx_INCREF(
function);
8665 __Pyx_DECREF_SET(__pyx_t_2,
function);
8668 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8669 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8670 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 259, __pyx_L1_error)
8671 __Pyx_GOTREF(__pyx_t_1);
8672 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8673 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8682 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L1_error)
8683 __Pyx_GOTREF(__pyx_t_2);
8685 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8686 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8687 if (likely(__pyx_t_3)) {
8688 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8689 __Pyx_INCREF(__pyx_t_3);
8690 __Pyx_INCREF(
function);
8691 __Pyx_DECREF_SET(__pyx_t_2,
function);
8694 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
8695 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8696 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __pyx_L1_error)
8697 __Pyx_GOTREF(__pyx_t_1);
8698 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8699 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8710 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8713 __Pyx_XDECREF(__pyx_t_1);
8714 __Pyx_XDECREF(__pyx_t_2);
8715 __Pyx_XDECREF(__pyx_t_3);
8716 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setFreeSlip", __pyx_clineno, __pyx_lineno, __pyx_filename);
8719 __Pyx_XGIVEREF(__pyx_r);
8720 __Pyx_TraceReturn(__pyx_r, 0);
8721 __Pyx_RefNannyFinishContext();
8734 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
8735 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity[] =
"BC_RANS.setConstantInletVelocity(self, U, ramp, kk, dd, b_or)\n\n Sets constant velocity in each inlet face with ramping up and turbulence properties\n ";
8736 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity = {
"setConstantInletVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity};
8737 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8738 PyObject *__pyx_v_U = 0;
8739 PyObject *__pyx_v_ramp = 0;
8740 PyObject *__pyx_v_kk = 0;
8741 PyObject *__pyx_v_dd = 0;
8742 PyObject *__pyx_v_b_or = 0;
8743 int __pyx_lineno = 0;
8744 const char *__pyx_filename = NULL;
8745 int __pyx_clineno = 0;
8746 PyObject *__pyx_r = 0;
8747 __Pyx_RefNannyDeclarations
8748 __Pyx_RefNannySetupContext(
"setConstantInletVelocity (wrapper)", 0);
8750 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_U,&__pyx_n_s_ramp,&__pyx_n_s_kk,&__pyx_n_s_dd,&__pyx_n_s_b_or,0};
8751 PyObject* values[5] = {0,0,0,0,0};
8752 if (unlikely(__pyx_kwds)) {
8754 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
8756 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8758 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8760 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8762 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8764 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8767 default:
goto __pyx_L5_argtuple_error;
8769 kw_args = PyDict_Size(__pyx_kwds);
8772 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_U)) != 0)) kw_args--;
8773 else goto __pyx_L5_argtuple_error;
8776 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ramp)) != 0)) kw_args--;
8778 __Pyx_RaiseArgtupleInvalid(
"setConstantInletVelocity", 1, 5, 5, 1); __PYX_ERR(0, 262, __pyx_L3_error)
8782 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kk)) != 0)) kw_args--;
8784 __Pyx_RaiseArgtupleInvalid(
"setConstantInletVelocity", 1, 5, 5, 2); __PYX_ERR(0, 262, __pyx_L3_error)
8788 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dd)) != 0)) kw_args--;
8790 __Pyx_RaiseArgtupleInvalid(
"setConstantInletVelocity", 1, 5, 5, 3); __PYX_ERR(0, 262, __pyx_L3_error)
8794 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_or)) != 0)) kw_args--;
8796 __Pyx_RaiseArgtupleInvalid(
"setConstantInletVelocity", 1, 5, 5, 4); __PYX_ERR(0, 262, __pyx_L3_error)
8799 if (unlikely(kw_args > 0)) {
8800 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setConstantInletVelocity") < 0)) __PYX_ERR(0, 262, __pyx_L3_error)
8802 }
else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
8803 goto __pyx_L5_argtuple_error;
8805 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8806 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8807 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
8808 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
8809 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
8811 __pyx_v_U = values[0];
8812 __pyx_v_ramp = values[1];
8813 __pyx_v_kk = values[2];
8814 __pyx_v_dd = values[3];
8815 __pyx_v_b_or = values[4];
8817 goto __pyx_L4_argument_unpacking_done;
8818 __pyx_L5_argtuple_error:;
8819 __Pyx_RaiseArgtupleInvalid(
"setConstantInletVelocity", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 262, __pyx_L3_error)
8821 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setConstantInletVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
8822 __Pyx_RefNannyFinishContext();
8824 __pyx_L4_argument_unpacking_done:;
8825 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_U, __pyx_v_ramp, __pyx_v_kk, __pyx_v_dd, __pyx_v_b_or);
8828 __Pyx_RefNannyFinishContext();
8832 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_U, PyObject *__pyx_v_ramp, PyObject *__pyx_v_kk, PyObject *__pyx_v_dd, PyObject *__pyx_v_b_or) {
8833 PyObject *__pyx_v_Uin = NULL;
8834 PyObject *__pyx_v_uu = NULL;
8835 PyObject *__pyx_v_vv = NULL;
8836 PyObject *__pyx_v_ww = NULL;
8837 PyObject *__pyx_r = NULL;
8838 __Pyx_TraceDeclarations
8839 __Pyx_RefNannyDeclarations
8840 PyObject *__pyx_t_1 = NULL;
8841 PyObject *__pyx_t_2 = NULL;
8842 PyObject *__pyx_t_3 = NULL;
8844 PyObject *__pyx_t_5 = NULL;
8845 int __pyx_lineno = 0;
8846 const char *__pyx_filename = NULL;
8847 int __pyx_clineno = 0;
8848 __Pyx_TraceFrameInit(__pyx_codeobj__7)
8849 __Pyx_RefNannySetupContext(
"setConstantInletVelocity", 0);
8850 __Pyx_TraceCall(
"setConstantInletVelocity", __pyx_f[0], 262, 0, __PYX_ERR(0, 262, __pyx_L1_error));
8859 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error)
8860 __Pyx_GOTREF(__pyx_t_2);
8862 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
8863 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
8864 if (likely(__pyx_t_3)) {
8865 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
8866 __Pyx_INCREF(__pyx_t_3);
8867 __Pyx_INCREF(
function);
8868 __Pyx_DECREF_SET(__pyx_t_2,
function);
8871 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
8872 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
8873 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error)
8874 __Pyx_GOTREF(__pyx_t_1);
8875 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8876 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8885 __Pyx_INCREF(__pyx_n_s_constantInletVelocity);
8886 __Pyx_GIVEREF(__pyx_n_s_constantInletVelocity);
8887 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
8888 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
8889 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_constantInletVelocity;
8898 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L1_error)
8899 __Pyx_GOTREF(__pyx_t_2);
8900 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_dot);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 268, __pyx_L1_error)
8901 __Pyx_GOTREF(__pyx_t_3);
8902 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8905 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
8906 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
8907 if (likely(__pyx_t_2)) {
8908 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
8909 __Pyx_INCREF(__pyx_t_2);
8910 __Pyx_INCREF(
function);
8911 __Pyx_DECREF_SET(__pyx_t_3,
function);
8915 #if CYTHON_FAST_PYCALL
8916 if (PyFunction_Check(__pyx_t_3)) {
8917 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_U, __pyx_v_b_or};
8918 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 268, __pyx_L1_error)
8919 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8920 __Pyx_GOTREF(__pyx_t_1);
8923 #if CYTHON_FAST_PYCCALL
8924 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
8925 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_U, __pyx_v_b_or};
8926 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 268, __pyx_L1_error)
8927 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
8928 __Pyx_GOTREF(__pyx_t_1);
8932 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 268, __pyx_L1_error)
8933 __Pyx_GOTREF(__pyx_t_5);
8935 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL;
8937 __Pyx_INCREF(__pyx_v_U);
8938 __Pyx_GIVEREF(__pyx_v_U);
8939 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_U);
8940 __Pyx_INCREF(__pyx_v_b_or);
8941 __Pyx_GIVEREF(__pyx_v_b_or);
8942 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_b_or);
8943 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 268, __pyx_L1_error)
8944 __Pyx_GOTREF(__pyx_t_1);
8945 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8947 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8948 __pyx_v_Uin = __pyx_t_1;
8958 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_U, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error)
8959 __Pyx_GOTREF(__pyx_t_1);
8960 __pyx_v_uu = __pyx_t_1;
8970 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_U, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L1_error)
8971 __Pyx_GOTREF(__pyx_t_1);
8972 __pyx_v_vv = __pyx_t_1;
8982 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_U, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 271, __pyx_L1_error)
8983 __Pyx_GOTREF(__pyx_t_1);
8984 __pyx_v_ww = __pyx_t_1;
8994 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setLinearRamp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 274, __pyx_L1_error)
8995 __Pyx_GOTREF(__pyx_t_3);
8998 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
8999 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
9000 if (likely(__pyx_t_5)) {
9001 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9002 __Pyx_INCREF(__pyx_t_5);
9003 __Pyx_INCREF(
function);
9004 __Pyx_DECREF_SET(__pyx_t_3,
function);
9008 #if CYTHON_FAST_PYCALL
9009 if (PyFunction_Check(__pyx_t_3)) {
9010 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_uu};
9011 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
9012 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9013 __Pyx_GOTREF(__pyx_t_1);
9016 #if CYTHON_FAST_PYCCALL
9017 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
9018 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_uu};
9019 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
9020 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9021 __Pyx_GOTREF(__pyx_t_1);
9025 __pyx_t_2 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L1_error)
9026 __Pyx_GOTREF(__pyx_t_2);
9028 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL;
9030 __Pyx_INCREF(__pyx_v_ramp);
9031 __Pyx_GIVEREF(__pyx_v_ramp);
9032 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_4, __pyx_v_ramp);
9033 __Pyx_INCREF(__pyx_v_uu);
9034 __Pyx_GIVEREF(__pyx_v_uu);
9035 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_4, __pyx_v_uu);
9036 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
9037 __Pyx_GOTREF(__pyx_t_1);
9038 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9040 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9041 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9050 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setLinearRamp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error)
9051 __Pyx_GOTREF(__pyx_t_3);
9054 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9055 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9056 if (likely(__pyx_t_2)) {
9057 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9058 __Pyx_INCREF(__pyx_t_2);
9059 __Pyx_INCREF(
function);
9060 __Pyx_DECREF_SET(__pyx_t_3,
function);
9064 #if CYTHON_FAST_PYCALL
9065 if (PyFunction_Check(__pyx_t_3)) {
9066 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_ramp, __pyx_v_vv};
9067 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
9068 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9069 __Pyx_GOTREF(__pyx_t_1);
9072 #if CYTHON_FAST_PYCCALL
9073 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
9074 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_ramp, __pyx_v_vv};
9075 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
9076 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9077 __Pyx_GOTREF(__pyx_t_1);
9081 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 275, __pyx_L1_error)
9082 __Pyx_GOTREF(__pyx_t_5);
9084 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL;
9086 __Pyx_INCREF(__pyx_v_ramp);
9087 __Pyx_GIVEREF(__pyx_v_ramp);
9088 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_ramp);
9089 __Pyx_INCREF(__pyx_v_vv);
9090 __Pyx_GIVEREF(__pyx_v_vv);
9091 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_vv);
9092 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
9093 __Pyx_GOTREF(__pyx_t_1);
9094 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
9096 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9097 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9106 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setLinearRamp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 276, __pyx_L1_error)
9107 __Pyx_GOTREF(__pyx_t_3);
9110 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9111 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
9112 if (likely(__pyx_t_5)) {
9113 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9114 __Pyx_INCREF(__pyx_t_5);
9115 __Pyx_INCREF(
function);
9116 __Pyx_DECREF_SET(__pyx_t_3,
function);
9120 #if CYTHON_FAST_PYCALL
9121 if (PyFunction_Check(__pyx_t_3)) {
9122 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_ww};
9123 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error)
9124 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9125 __Pyx_GOTREF(__pyx_t_1);
9128 #if CYTHON_FAST_PYCCALL
9129 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
9130 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_ww};
9131 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error)
9132 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9133 __Pyx_GOTREF(__pyx_t_1);
9137 __pyx_t_2 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error)
9138 __Pyx_GOTREF(__pyx_t_2);
9140 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL;
9142 __Pyx_INCREF(__pyx_v_ramp);
9143 __Pyx_GIVEREF(__pyx_v_ramp);
9144 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_4, __pyx_v_ramp);
9145 __Pyx_INCREF(__pyx_v_ww);
9146 __Pyx_GIVEREF(__pyx_v_ww);
9147 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_4, __pyx_v_ww);
9148 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error)
9149 __Pyx_GOTREF(__pyx_t_1);
9150 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9152 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9153 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9162 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L1_error)
9163 __Pyx_GOTREF(__pyx_t_3);
9165 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9166 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9167 if (likely(__pyx_t_2)) {
9168 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9169 __Pyx_INCREF(__pyx_t_2);
9170 __Pyx_INCREF(
function);
9171 __Pyx_DECREF_SET(__pyx_t_3,
function);
9174 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9175 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9176 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
9177 __Pyx_GOTREF(__pyx_t_1);
9178 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9179 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9188 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 278, __pyx_L1_error)
9189 __Pyx_GOTREF(__pyx_t_3);
9191 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9192 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9193 if (likely(__pyx_t_2)) {
9194 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9195 __Pyx_INCREF(__pyx_t_2);
9196 __Pyx_INCREF(
function);
9197 __Pyx_DECREF_SET(__pyx_t_3,
function);
9200 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9201 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9202 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
9203 __Pyx_GOTREF(__pyx_t_1);
9204 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9205 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9214 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error)
9215 __Pyx_GOTREF(__pyx_t_3);
9217 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9218 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9219 if (likely(__pyx_t_2)) {
9220 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9221 __Pyx_INCREF(__pyx_t_2);
9222 __Pyx_INCREF(
function);
9223 __Pyx_DECREF_SET(__pyx_t_3,
function);
9226 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9227 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9228 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error)
9229 __Pyx_GOTREF(__pyx_t_1);
9230 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9231 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9240 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 280, __pyx_L1_error)
9241 __Pyx_GOTREF(__pyx_t_3);
9243 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9244 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9245 if (likely(__pyx_t_2)) {
9246 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9247 __Pyx_INCREF(__pyx_t_2);
9248 __Pyx_INCREF(
function);
9249 __Pyx_DECREF_SET(__pyx_t_3,
function);
9252 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_kk) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_kk);
9253 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9254 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 280, __pyx_L1_error)
9255 __Pyx_GOTREF(__pyx_t_1);
9256 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9266 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 281, __pyx_L1_error)
9267 __Pyx_GOTREF(__pyx_t_3);
9269 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9270 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9271 if (likely(__pyx_t_2)) {
9272 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9273 __Pyx_INCREF(__pyx_t_2);
9274 __Pyx_INCREF(
function);
9275 __Pyx_DECREF_SET(__pyx_t_3,
function);
9278 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_dd) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_dd);
9279 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9280 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 281, __pyx_L1_error)
9281 __Pyx_GOTREF(__pyx_t_1);
9282 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9283 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9292 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_advective), __pyx_n_s_setLinearRamp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 283, __pyx_L1_error)
9293 __Pyx_GOTREF(__pyx_t_3);
9296 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9297 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9298 if (likely(__pyx_t_2)) {
9299 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9300 __Pyx_INCREF(__pyx_t_2);
9301 __Pyx_INCREF(
function);
9302 __Pyx_DECREF_SET(__pyx_t_3,
function);
9306 #if CYTHON_FAST_PYCALL
9307 if (PyFunction_Check(__pyx_t_3)) {
9308 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_ramp, __pyx_v_Uin};
9309 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 283, __pyx_L1_error)
9310 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9311 __Pyx_GOTREF(__pyx_t_1);
9314 #if CYTHON_FAST_PYCCALL
9315 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
9316 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_ramp, __pyx_v_Uin};
9317 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 283, __pyx_L1_error)
9318 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9319 __Pyx_GOTREF(__pyx_t_1);
9323 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 283, __pyx_L1_error)
9324 __Pyx_GOTREF(__pyx_t_5);
9326 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL;
9328 __Pyx_INCREF(__pyx_v_ramp);
9329 __Pyx_GIVEREF(__pyx_v_ramp);
9330 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_ramp);
9331 __Pyx_INCREF(__pyx_v_Uin);
9332 __Pyx_GIVEREF(__pyx_v_Uin);
9333 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_Uin);
9334 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 283, __pyx_L1_error)
9335 __Pyx_GOTREF(__pyx_t_1);
9336 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
9338 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9339 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9348 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInit_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error)
9349 __Pyx_GOTREF(__pyx_t_3);
9351 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9352 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
9353 if (likely(__pyx_t_5)) {
9354 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9355 __Pyx_INCREF(__pyx_t_5);
9356 __Pyx_INCREF(
function);
9357 __Pyx_DECREF_SET(__pyx_t_3,
function);
9360 __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9361 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9362 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 284, __pyx_L1_error)
9363 __Pyx_GOTREF(__pyx_t_1);
9364 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9365 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9374 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_advective), __pyx_n_s_setLinearRamp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error)
9375 __Pyx_GOTREF(__pyx_t_3);
9378 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9379 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
9380 if (likely(__pyx_t_5)) {
9381 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9382 __Pyx_INCREF(__pyx_t_5);
9383 __Pyx_INCREF(
function);
9384 __Pyx_DECREF_SET(__pyx_t_3,
function);
9388 #if CYTHON_FAST_PYCALL
9389 if (PyFunction_Check(__pyx_t_3)) {
9390 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_Uin};
9391 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
9392 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9393 __Pyx_GOTREF(__pyx_t_1);
9396 #if CYTHON_FAST_PYCCALL
9397 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
9398 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_ramp, __pyx_v_Uin};
9399 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
9400 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
9401 __Pyx_GOTREF(__pyx_t_1);
9405 __pyx_t_2 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
9406 __Pyx_GOTREF(__pyx_t_2);
9408 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL;
9410 __Pyx_INCREF(__pyx_v_ramp);
9411 __Pyx_GIVEREF(__pyx_v_ramp);
9412 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_4, __pyx_v_ramp);
9413 __Pyx_INCREF(__pyx_v_Uin);
9414 __Pyx_GIVEREF(__pyx_v_Uin);
9415 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_4, __pyx_v_Uin);
9416 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
9417 __Pyx_GOTREF(__pyx_t_1);
9418 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9420 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9421 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9430 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 287, __pyx_L1_error)
9431 __Pyx_GOTREF(__pyx_t_3);
9433 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9434 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9435 if (likely(__pyx_t_2)) {
9436 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9437 __Pyx_INCREF(__pyx_t_2);
9438 __Pyx_INCREF(
function);
9439 __Pyx_DECREF_SET(__pyx_t_3,
function);
9442 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9443 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9444 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
9445 __Pyx_GOTREF(__pyx_t_1);
9446 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9447 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9456 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 288, __pyx_L1_error)
9457 __Pyx_GOTREF(__pyx_t_3);
9459 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9460 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9461 if (likely(__pyx_t_2)) {
9462 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9463 __Pyx_INCREF(__pyx_t_2);
9464 __Pyx_INCREF(
function);
9465 __Pyx_DECREF_SET(__pyx_t_3,
function);
9468 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9469 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9470 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
9471 __Pyx_GOTREF(__pyx_t_1);
9472 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9473 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9482 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 289, __pyx_L1_error)
9483 __Pyx_GOTREF(__pyx_t_3);
9485 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9486 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9487 if (likely(__pyx_t_2)) {
9488 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9489 __Pyx_INCREF(__pyx_t_2);
9490 __Pyx_INCREF(
function);
9491 __Pyx_DECREF_SET(__pyx_t_3,
function);
9494 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9495 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9496 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L1_error)
9497 __Pyx_GOTREF(__pyx_t_1);
9498 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9499 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9508 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error)
9509 __Pyx_GOTREF(__pyx_t_3);
9511 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9512 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9513 if (likely(__pyx_t_2)) {
9514 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9515 __Pyx_INCREF(__pyx_t_2);
9516 __Pyx_INCREF(
function);
9517 __Pyx_DECREF_SET(__pyx_t_3,
function);
9520 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9521 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9522 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error)
9523 __Pyx_GOTREF(__pyx_t_1);
9524 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9525 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9534 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 291, __pyx_L1_error)
9535 __Pyx_GOTREF(__pyx_t_3);
9537 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
9538 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
9539 if (likely(__pyx_t_2)) {
9540 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
9541 __Pyx_INCREF(__pyx_t_2);
9542 __Pyx_INCREF(
function);
9543 __Pyx_DECREF_SET(__pyx_t_3,
function);
9546 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_);
9547 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
9548 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
9549 __Pyx_GOTREF(__pyx_t_1);
9550 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
9551 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9562 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9565 __Pyx_XDECREF(__pyx_t_1);
9566 __Pyx_XDECREF(__pyx_t_2);
9567 __Pyx_XDECREF(__pyx_t_3);
9568 __Pyx_XDECREF(__pyx_t_5);
9569 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setConstantInletVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
9572 __Pyx_XDECREF(__pyx_v_Uin);
9573 __Pyx_XDECREF(__pyx_v_uu);
9574 __Pyx_XDECREF(__pyx_v_vv);
9575 __Pyx_XDECREF(__pyx_v_ww);
9576 __Pyx_XGIVEREF(__pyx_r);
9577 __Pyx_TraceReturn(__pyx_r, 0);
9578 __Pyx_RefNannyFinishContext();
9591 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
9592 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure[] =
"BC_RANS.setConstantOutletPressure(self, p, rho, g, kk, dd, b_or)\n\n Sets constant pressure in each outlet face for single phase flows\n ";
9593 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure = {
"setConstantOutletPressure", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure};
9594 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
9595 PyObject *__pyx_v_p = 0;
9596 PyObject *__pyx_v_rho = 0;
9597 PyObject *__pyx_v_g = 0;
9598 PyObject *__pyx_v_kk = 0;
9599 PyObject *__pyx_v_dd = 0;
9600 PyObject *__pyx_v_b_or = 0;
9601 int __pyx_lineno = 0;
9602 const char *__pyx_filename = NULL;
9603 int __pyx_clineno = 0;
9604 PyObject *__pyx_r = 0;
9605 __Pyx_RefNannyDeclarations
9606 __Pyx_RefNannySetupContext(
"setConstantOutletPressure (wrapper)", 0);
9608 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_rho,&__pyx_n_s_g,&__pyx_n_s_kk,&__pyx_n_s_dd,&__pyx_n_s_b_or,0};
9609 PyObject* values[6] = {0,0,0,0,0,0};
9610 if (unlikely(__pyx_kwds)) {
9612 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
9614 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9616 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9618 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9620 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9622 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9624 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9627 default:
goto __pyx_L5_argtuple_error;
9629 kw_args = PyDict_Size(__pyx_kwds);
9632 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_p)) != 0)) kw_args--;
9633 else goto __pyx_L5_argtuple_error;
9636 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rho)) != 0)) kw_args--;
9638 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, 1); __PYX_ERR(0, 292, __pyx_L3_error)
9642 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
9644 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, 2); __PYX_ERR(0, 292, __pyx_L3_error)
9648 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kk)) != 0)) kw_args--;
9650 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, 3); __PYX_ERR(0, 292, __pyx_L3_error)
9654 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dd)) != 0)) kw_args--;
9656 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, 4); __PYX_ERR(0, 292, __pyx_L3_error)
9660 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_or)) != 0)) kw_args--;
9662 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, 5); __PYX_ERR(0, 292, __pyx_L3_error)
9665 if (unlikely(kw_args > 0)) {
9666 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setConstantOutletPressure") < 0)) __PYX_ERR(0, 292, __pyx_L3_error)
9668 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
9669 goto __pyx_L5_argtuple_error;
9671 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9672 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9673 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9674 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9675 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
9676 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
9678 __pyx_v_p = values[0];
9679 __pyx_v_rho = values[1];
9680 __pyx_v_g = values[2];
9681 __pyx_v_kk = values[3];
9682 __pyx_v_dd = values[4];
9683 __pyx_v_b_or = values[5];
9685 goto __pyx_L4_argument_unpacking_done;
9686 __pyx_L5_argtuple_error:;
9687 __Pyx_RaiseArgtupleInvalid(
"setConstantOutletPressure", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 292, __pyx_L3_error)
9689 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setConstantOutletPressure", __pyx_clineno, __pyx_lineno, __pyx_filename);
9690 __Pyx_RefNannyFinishContext();
9692 __pyx_L4_argument_unpacking_done:;
9693 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_p, __pyx_v_rho, __pyx_v_g, __pyx_v_kk, __pyx_v_dd, __pyx_v_b_or);
9696 __Pyx_RefNannyFinishContext();
9700 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_p, PyObject *__pyx_v_rho, PyObject *__pyx_v_g, PyObject *__pyx_v_kk, PyObject *__pyx_v_dd, PyObject *__pyx_v_b_or) {
9701 PyObject *__pyx_v_a1 = NULL;
9702 PyObject *__pyx_r = NULL;
9703 __Pyx_TraceDeclarations
9704 __Pyx_RefNannyDeclarations
9705 PyObject *__pyx_t_1 = NULL;
9706 PyObject *__pyx_t_2 = NULL;
9707 PyObject *__pyx_t_3 = NULL;
9709 PyObject *__pyx_t_5 = NULL;
9712 int __pyx_lineno = 0;
9713 const char *__pyx_filename = NULL;
9714 int __pyx_clineno = 0;
9715 __Pyx_TraceFrameInit(__pyx_codeobj__8)
9716 __Pyx_RefNannySetupContext(
"setConstantOutletPressure", 0);
9717 __Pyx_TraceCall(
"setConstantOutletPressure", __pyx_f[0], 292, 0, __PYX_ERR(0, 292, __pyx_L1_error));
9726 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error)
9727 __Pyx_GOTREF(__pyx_t_2);
9729 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9730 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9731 if (likely(__pyx_t_3)) {
9732 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9733 __Pyx_INCREF(__pyx_t_3);
9734 __Pyx_INCREF(
function);
9735 __Pyx_DECREF_SET(__pyx_t_2,
function);
9738 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
9739 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9740 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error)
9741 __Pyx_GOTREF(__pyx_t_1);
9742 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9743 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9752 __Pyx_INCREF(__pyx_n_s_constantOutletPressure);
9753 __Pyx_GIVEREF(__pyx_n_s_constantOutletPressure);
9754 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
9755 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
9756 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_constantOutletPressure;
9765 __pyx_t_1 = PyNumber_Multiply(__pyx_v_rho, __pyx_v_g);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
9766 __Pyx_GOTREF(__pyx_t_1);
9767 __pyx_v_a1 = __pyx_t_1;
9777 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error)
9778 __Pyx_GOTREF(__pyx_t_2);
9780 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9781 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9782 if (likely(__pyx_t_3)) {
9783 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9784 __Pyx_INCREF(__pyx_t_3);
9785 __Pyx_INCREF(
function);
9786 __Pyx_DECREF_SET(__pyx_t_2,
function);
9789 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9790 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9791 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error)
9792 __Pyx_GOTREF(__pyx_t_1);
9793 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9794 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9803 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error)
9804 __Pyx_GOTREF(__pyx_t_2);
9806 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9807 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9808 if (likely(__pyx_t_3)) {
9809 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9810 __Pyx_INCREF(__pyx_t_3);
9811 __Pyx_INCREF(
function);
9812 __Pyx_DECREF_SET(__pyx_t_2,
function);
9815 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9816 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9817 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
9818 __Pyx_GOTREF(__pyx_t_1);
9819 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9820 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9829 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 302, __pyx_L1_error)
9830 __Pyx_GOTREF(__pyx_t_2);
9832 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9833 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9834 if (likely(__pyx_t_3)) {
9835 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9836 __Pyx_INCREF(__pyx_t_3);
9837 __Pyx_INCREF(
function);
9838 __Pyx_DECREF_SET(__pyx_t_2,
function);
9841 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9842 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9843 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 302, __pyx_L1_error)
9844 __Pyx_GOTREF(__pyx_t_1);
9845 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9846 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9855 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
9856 __Pyx_GOTREF(__pyx_t_2);
9858 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9859 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9860 if (likely(__pyx_t_3)) {
9861 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9862 __Pyx_INCREF(__pyx_t_3);
9863 __Pyx_INCREF(
function);
9864 __Pyx_DECREF_SET(__pyx_t_2,
function);
9867 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9868 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9869 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
9870 __Pyx_GOTREF(__pyx_t_1);
9871 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9872 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9881 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L1_error)
9882 __Pyx_GOTREF(__pyx_t_2);
9884 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9885 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9886 if (likely(__pyx_t_3)) {
9887 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9888 __Pyx_INCREF(__pyx_t_3);
9889 __Pyx_INCREF(
function);
9890 __Pyx_DECREF_SET(__pyx_t_2,
function);
9893 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9894 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9895 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
9896 __Pyx_GOTREF(__pyx_t_1);
9897 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9898 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9907 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error)
9908 __Pyx_GOTREF(__pyx_t_2);
9910 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9911 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9912 if (likely(__pyx_t_3)) {
9913 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9914 __Pyx_INCREF(__pyx_t_3);
9915 __Pyx_INCREF(
function);
9916 __Pyx_DECREF_SET(__pyx_t_2,
function);
9919 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
9920 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9921 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error)
9922 __Pyx_GOTREF(__pyx_t_1);
9923 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9924 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9933 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_dirichlet), __pyx_n_s_setLinearBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 307, __pyx_L1_error)
9934 __Pyx_GOTREF(__pyx_t_2);
9937 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9938 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
9939 if (likely(__pyx_t_3)) {
9940 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9941 __Pyx_INCREF(__pyx_t_3);
9942 __Pyx_INCREF(
function);
9943 __Pyx_DECREF_SET(__pyx_t_2,
function);
9947 #if CYTHON_FAST_PYCALL
9948 if (PyFunction_Check(__pyx_t_2)) {
9949 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_p, __pyx_v_a1};
9950 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
9951 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9952 __Pyx_GOTREF(__pyx_t_1);
9955 #if CYTHON_FAST_PYCCALL
9956 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
9957 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_p, __pyx_v_a1};
9958 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
9959 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
9960 __Pyx_GOTREF(__pyx_t_1);
9964 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 307, __pyx_L1_error)
9965 __Pyx_GOTREF(__pyx_t_5);
9967 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
9969 __Pyx_INCREF(__pyx_v_p);
9970 __Pyx_GIVEREF(__pyx_v_p);
9971 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_p);
9972 __Pyx_INCREF(__pyx_v_a1);
9973 __Pyx_GIVEREF(__pyx_v_a1);
9974 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_a1);
9975 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
9976 __Pyx_GOTREF(__pyx_t_1);
9977 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
9979 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9980 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9989 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInit_dirichlet), __pyx_n_s_setLinearBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
9990 __Pyx_GOTREF(__pyx_t_2);
9993 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
9994 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
9995 if (likely(__pyx_t_5)) {
9996 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
9997 __Pyx_INCREF(__pyx_t_5);
9998 __Pyx_INCREF(
function);
9999 __Pyx_DECREF_SET(__pyx_t_2,
function);
10003 #if CYTHON_FAST_PYCALL
10004 if (PyFunction_Check(__pyx_t_2)) {
10005 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_p, __pyx_v_a1};
10006 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
10007 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
10008 __Pyx_GOTREF(__pyx_t_1);
10011 #if CYTHON_FAST_PYCCALL
10012 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
10013 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_p, __pyx_v_a1};
10014 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
10015 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
10016 __Pyx_GOTREF(__pyx_t_1);
10020 __pyx_t_3 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 308, __pyx_L1_error)
10021 __Pyx_GOTREF(__pyx_t_3);
10023 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL;
10025 __Pyx_INCREF(__pyx_v_p);
10026 __Pyx_GIVEREF(__pyx_v_p);
10027 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_4, __pyx_v_p);
10028 __Pyx_INCREF(__pyx_v_a1);
10029 __Pyx_GIVEREF(__pyx_v_a1);
10030 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_4, __pyx_v_a1);
10031 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
10032 __Pyx_GOTREF(__pyx_t_1);
10033 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10035 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10036 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10045 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error)
10046 __Pyx_GOTREF(__pyx_t_2);
10048 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10049 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10050 if (likely(__pyx_t_3)) {
10051 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10052 __Pyx_INCREF(__pyx_t_3);
10053 __Pyx_INCREF(
function);
10054 __Pyx_DECREF_SET(__pyx_t_2,
function);
10057 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10058 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10059 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
10060 __Pyx_GOTREF(__pyx_t_1);
10061 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10062 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10071 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 310, __pyx_L1_error)
10072 __Pyx_GOTREF(__pyx_t_2);
10074 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10075 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10076 if (likely(__pyx_t_3)) {
10077 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10078 __Pyx_INCREF(__pyx_t_3);
10079 __Pyx_INCREF(
function);
10080 __Pyx_DECREF_SET(__pyx_t_2,
function);
10083 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_kk) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_kk);
10084 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10085 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error)
10086 __Pyx_GOTREF(__pyx_t_1);
10087 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10088 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10097 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L1_error)
10098 __Pyx_GOTREF(__pyx_t_2);
10100 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10101 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10102 if (likely(__pyx_t_3)) {
10103 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10104 __Pyx_INCREF(__pyx_t_3);
10105 __Pyx_INCREF(
function);
10106 __Pyx_DECREF_SET(__pyx_t_2,
function);
10109 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_dd) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_dd);
10110 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10111 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error)
10112 __Pyx_GOTREF(__pyx_t_1);
10113 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10114 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10123 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 314, __pyx_L1_error)
10124 __Pyx_GOTREF(__pyx_t_1);
10125 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L1_error)
10126 __Pyx_GOTREF(__pyx_t_2);
10127 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10128 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 314, __pyx_L1_error)
10129 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10132 __pyx_t_6 = __pyx_t_7;
10133 goto __pyx_L4_bool_binop_done;
10135 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L1_error)
10136 __Pyx_GOTREF(__pyx_t_2);
10137 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 314, __pyx_L1_error)
10138 __Pyx_GOTREF(__pyx_t_1);
10139 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10140 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 314, __pyx_L1_error)
10141 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10142 __pyx_t_6 = __pyx_t_7;
10143 __pyx_L4_bool_binop_done:;
10153 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error)
10154 __Pyx_GOTREF(__pyx_t_2);
10156 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10157 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10158 if (likely(__pyx_t_3)) {
10159 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10160 __Pyx_INCREF(__pyx_t_3);
10161 __Pyx_INCREF(
function);
10162 __Pyx_DECREF_SET(__pyx_t_2,
function);
10165 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10166 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10167 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 315, __pyx_L1_error)
10168 __Pyx_GOTREF(__pyx_t_1);
10169 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10170 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10188 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L1_error)
10189 __Pyx_GOTREF(__pyx_t_1);
10190 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
10191 __Pyx_GOTREF(__pyx_t_2);
10192 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10193 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 316, __pyx_L1_error)
10194 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10197 __pyx_t_6 = __pyx_t_7;
10198 goto __pyx_L7_bool_binop_done;
10200 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
10201 __Pyx_GOTREF(__pyx_t_2);
10202 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L1_error)
10203 __Pyx_GOTREF(__pyx_t_1);
10204 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10205 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 316, __pyx_L1_error)
10206 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10207 __pyx_t_6 = __pyx_t_7;
10208 __pyx_L7_bool_binop_done:;
10218 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L1_error)
10219 __Pyx_GOTREF(__pyx_t_2);
10221 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10222 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10223 if (likely(__pyx_t_3)) {
10224 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10225 __Pyx_INCREF(__pyx_t_3);
10226 __Pyx_INCREF(
function);
10227 __Pyx_DECREF_SET(__pyx_t_2,
function);
10230 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10231 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10232 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 317, __pyx_L1_error)
10233 __Pyx_GOTREF(__pyx_t_1);
10234 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10235 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10253 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
10254 __Pyx_GOTREF(__pyx_t_1);
10255 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 318, __pyx_L1_error)
10256 __Pyx_GOTREF(__pyx_t_2);
10257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10258 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 318, __pyx_L1_error)
10259 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10262 __pyx_t_6 = __pyx_t_7;
10263 goto __pyx_L10_bool_binop_done;
10265 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 318, __pyx_L1_error)
10266 __Pyx_GOTREF(__pyx_t_2);
10267 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
10268 __Pyx_GOTREF(__pyx_t_1);
10269 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10270 __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 318, __pyx_L1_error)
10271 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10272 __pyx_t_6 = __pyx_t_7;
10273 __pyx_L10_bool_binop_done:;
10283 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 319, __pyx_L1_error)
10284 __Pyx_GOTREF(__pyx_t_2);
10286 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10287 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10288 if (likely(__pyx_t_3)) {
10289 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10290 __Pyx_INCREF(__pyx_t_3);
10291 __Pyx_INCREF(
function);
10292 __Pyx_DECREF_SET(__pyx_t_2,
function);
10295 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10296 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10297 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
10298 __Pyx_GOTREF(__pyx_t_1);
10299 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10300 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10318 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L1_error)
10319 __Pyx_GOTREF(__pyx_t_2);
10321 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10322 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10323 if (likely(__pyx_t_3)) {
10324 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10325 __Pyx_INCREF(__pyx_t_3);
10326 __Pyx_INCREF(
function);
10327 __Pyx_DECREF_SET(__pyx_t_2,
function);
10330 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10331 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10332 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
10333 __Pyx_GOTREF(__pyx_t_1);
10334 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10335 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10344 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
10345 __Pyx_GOTREF(__pyx_t_2);
10347 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10348 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10349 if (likely(__pyx_t_3)) {
10350 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10351 __Pyx_INCREF(__pyx_t_3);
10352 __Pyx_INCREF(
function);
10353 __Pyx_DECREF_SET(__pyx_t_2,
function);
10356 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10357 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10358 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
10359 __Pyx_GOTREF(__pyx_t_1);
10360 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10361 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10370 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 322, __pyx_L1_error)
10371 __Pyx_GOTREF(__pyx_t_2);
10373 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10374 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10375 if (likely(__pyx_t_3)) {
10376 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10377 __Pyx_INCREF(__pyx_t_3);
10378 __Pyx_INCREF(
function);
10379 __Pyx_DECREF_SET(__pyx_t_2,
function);
10382 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10383 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10384 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
10385 __Pyx_GOTREF(__pyx_t_1);
10386 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10387 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10396 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 323, __pyx_L1_error)
10397 __Pyx_GOTREF(__pyx_t_2);
10399 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10400 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10401 if (likely(__pyx_t_3)) {
10402 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10403 __Pyx_INCREF(__pyx_t_3);
10404 __Pyx_INCREF(
function);
10405 __Pyx_DECREF_SET(__pyx_t_2,
function);
10408 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10409 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10410 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 323, __pyx_L1_error)
10411 __Pyx_GOTREF(__pyx_t_1);
10412 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10413 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10422 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 324, __pyx_L1_error)
10423 __Pyx_GOTREF(__pyx_t_2);
10425 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10426 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10427 if (likely(__pyx_t_3)) {
10428 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10429 __Pyx_INCREF(__pyx_t_3);
10430 __Pyx_INCREF(
function);
10431 __Pyx_DECREF_SET(__pyx_t_2,
function);
10434 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
10435 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10436 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 324, __pyx_L1_error)
10437 __Pyx_GOTREF(__pyx_t_1);
10438 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10439 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10450 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10453 __Pyx_XDECREF(__pyx_t_1);
10454 __Pyx_XDECREF(__pyx_t_2);
10455 __Pyx_XDECREF(__pyx_t_3);
10456 __Pyx_XDECREF(__pyx_t_5);
10457 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setConstantOutletPressure", __pyx_clineno, __pyx_lineno, __pyx_filename);
10460 __Pyx_XDECREF(__pyx_v_a1);
10461 __Pyx_XGIVEREF(__pyx_r);
10462 __Pyx_TraceReturn(__pyx_r, 0);
10463 __Pyx_RefNannyFinishContext();
10476 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
10477 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere[] =
"BC_RANS.setAtmosphere(self, orientation=None, vof_air=1., kInflow=None, dInflow=None)\n\n Sets atmosphere boundary conditions (water can come out)\n (!) pressure dirichlet set to 0 for this BC\n Parameters\n ----------\n orientation: Optional[array_like]\n orientation of the boundary. Optional if orientation was already\n passed when creating the BC_RANS class instance.\n vof_air: Optional[float]\n VOF value of air (default is 1.)\n ";
10478 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere = {
"setAtmosphere", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere};
10479 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10480 PyObject *__pyx_v_orientation = 0;
10481 PyObject *__pyx_v_vof_air = 0;
10482 PyObject *__pyx_v_kInflow = 0;
10483 PyObject *__pyx_v_dInflow = 0;
10484 int __pyx_lineno = 0;
10485 const char *__pyx_filename = NULL;
10486 int __pyx_clineno = 0;
10487 PyObject *__pyx_r = 0;
10488 __Pyx_RefNannyDeclarations
10489 __Pyx_RefNannySetupContext(
"setAtmosphere (wrapper)", 0);
10491 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_orientation,&__pyx_n_s_vof_air,&__pyx_n_s_kInflow,&__pyx_n_s_dInflow,0};
10492 PyObject* values[4] = {0,0,0,0};
10493 values[0] = ((PyObject *)Py_None);
10494 values[1] = ((PyObject *)__pyx_float_1_);
10495 values[2] = ((PyObject *)Py_None);
10496 values[3] = ((PyObject *)Py_None);
10497 if (unlikely(__pyx_kwds)) {
10498 Py_ssize_t kw_args;
10499 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
10500 switch (pos_args) {
10501 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10502 CYTHON_FALLTHROUGH;
10503 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10504 CYTHON_FALLTHROUGH;
10505 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10506 CYTHON_FALLTHROUGH;
10507 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10508 CYTHON_FALLTHROUGH;
10510 default:
goto __pyx_L5_argtuple_error;
10512 kw_args = PyDict_Size(__pyx_kwds);
10513 switch (pos_args) {
10516 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_orientation);
10517 if (value) { values[0] = value; kw_args--; }
10519 CYTHON_FALLTHROUGH;
10522 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_air);
10523 if (value) { values[1] = value; kw_args--; }
10525 CYTHON_FALLTHROUGH;
10528 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflow);
10529 if (value) { values[2] = value; kw_args--; }
10531 CYTHON_FALLTHROUGH;
10534 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dInflow);
10535 if (value) { values[3] = value; kw_args--; }
10538 if (unlikely(kw_args > 0)) {
10539 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setAtmosphere") < 0)) __PYX_ERR(0, 326, __pyx_L3_error)
10542 switch (PyTuple_GET_SIZE(__pyx_args)) {
10543 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
10544 CYTHON_FALLTHROUGH;
10545 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
10546 CYTHON_FALLTHROUGH;
10547 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10548 CYTHON_FALLTHROUGH;
10549 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10550 CYTHON_FALLTHROUGH;
10552 default:
goto __pyx_L5_argtuple_error;
10555 __pyx_v_orientation = values[0];
10556 __pyx_v_vof_air = values[1];
10557 __pyx_v_kInflow = values[2];
10558 __pyx_v_dInflow = values[3];
10560 goto __pyx_L4_argument_unpacking_done;
10561 __pyx_L5_argtuple_error:;
10562 __Pyx_RaiseArgtupleInvalid(
"setAtmosphere", 0, 0, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 326, __pyx_L3_error)
10564 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setAtmosphere", __pyx_clineno, __pyx_lineno, __pyx_filename);
10565 __Pyx_RefNannyFinishContext();
10567 __pyx_L4_argument_unpacking_done:;
10568 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_orientation, __pyx_v_vof_air, __pyx_v_kInflow, __pyx_v_dInflow);
10571 __Pyx_RefNannyFinishContext();
10575 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_orientation, PyObject *__pyx_v_vof_air, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dInflow) {
10576 PyObject *__pyx_r = NULL;
10577 __Pyx_TraceDeclarations
10578 __Pyx_RefNannyDeclarations
10582 PyObject *__pyx_t_4 = NULL;
10583 PyObject *__pyx_t_5 = NULL;
10584 PyObject *__pyx_t_6 = NULL;
10585 PyObject *__pyx_t_7 = NULL;
10586 PyObject *__pyx_t_8 = NULL;
10587 int __pyx_lineno = 0;
10588 const char *__pyx_filename = NULL;
10589 int __pyx_clineno = 0;
10590 __Pyx_TraceFrameInit(__pyx_codeobj__9)
10591 __Pyx_RefNannySetupContext(
"setAtmosphere", 0);
10592 __Pyx_TraceCall(
"setAtmosphere", __pyx_f[0], 326, 0, __PYX_ERR(0, 326, __pyx_L1_error));
10593 __Pyx_INCREF(__pyx_v_orientation);
10602 __Pyx_INCREF(__pyx_n_s_Atmosphere);
10603 __Pyx_GIVEREF(__pyx_n_s_Atmosphere);
10604 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
10605 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
10606 __pyx_v_self->__pyx_base.BC_type = __pyx_n_s_Atmosphere;
10615 __pyx_t_2 = (__pyx_v_orientation == Py_None);
10616 __pyx_t_3 = (__pyx_t_2 != 0);
10619 __pyx_t_1 = __pyx_t_3;
10620 goto __pyx_L4_bool_binop_done;
10622 __pyx_t_3 = ((((PyObject *) __pyx_v_self->__pyx_base._b_or.memview) != Py_None) != 0);
10623 __pyx_t_1 = __pyx_t_3;
10624 __pyx_L4_bool_binop_done:;
10634 __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
10635 __Pyx_GOTREF(__pyx_t_4);
10636 __Pyx_DECREF_SET(__pyx_v_orientation, __pyx_t_4);
10655 #ifndef CYTHON_WITHOUT_ASSERTIONS
10656 if (unlikely(!Py_OptimizeFlag)) {
10657 __pyx_t_1 = (__pyx_v_orientation != Py_None);
10658 if (unlikely(!(__pyx_t_1 != 0))) {
10659 PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_oritentation_must_be_set_for_BC);
10660 __PYX_ERR(0, 341, __pyx_L1_error)
10672 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 342, __pyx_L1_error)
10673 __Pyx_GOTREF(__pyx_t_5);
10675 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10676 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10677 if (likely(__pyx_t_6)) {
10678 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10679 __Pyx_INCREF(__pyx_t_6);
10680 __Pyx_INCREF(
function);
10681 __Pyx_DECREF_SET(__pyx_t_5,
function);
10684 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
10685 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10686 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error)
10687 __Pyx_GOTREF(__pyx_t_4);
10688 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10689 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10698 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->p_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 343, __pyx_L1_error)
10699 __Pyx_GOTREF(__pyx_t_5);
10701 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10702 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10703 if (likely(__pyx_t_6)) {
10704 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10705 __Pyx_INCREF(__pyx_t_6);
10706 __Pyx_INCREF(
function);
10707 __Pyx_DECREF_SET(__pyx_t_5,
function);
10710 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10711 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10712 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 343, __pyx_L1_error)
10713 __Pyx_GOTREF(__pyx_t_4);
10714 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10715 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10724 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 344, __pyx_L1_error)
10725 __Pyx_GOTREF(__pyx_t_5);
10727 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10728 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10729 if (likely(__pyx_t_6)) {
10730 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10731 __Pyx_INCREF(__pyx_t_6);
10732 __Pyx_INCREF(
function);
10733 __Pyx_DECREF_SET(__pyx_t_5,
function);
10736 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10737 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10738 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error)
10739 __Pyx_GOTREF(__pyx_t_4);
10740 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10741 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10750 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInit_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 345, __pyx_L1_error)
10751 __Pyx_GOTREF(__pyx_t_5);
10753 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10754 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10755 if (likely(__pyx_t_6)) {
10756 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10757 __Pyx_INCREF(__pyx_t_6);
10758 __Pyx_INCREF(
function);
10759 __Pyx_DECREF_SET(__pyx_t_5,
function);
10762 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10763 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10764 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 345, __pyx_L1_error)
10765 __Pyx_GOTREF(__pyx_t_4);
10766 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10767 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10776 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vof_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 346, __pyx_L1_error)
10777 __Pyx_GOTREF(__pyx_t_5);
10779 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10780 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10781 if (likely(__pyx_t_6)) {
10782 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10783 __Pyx_INCREF(__pyx_t_6);
10784 __Pyx_INCREF(
function);
10785 __Pyx_DECREF_SET(__pyx_t_5,
function);
10788 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_vof_air) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_vof_air);
10789 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10790 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error)
10791 __Pyx_GOTREF(__pyx_t_4);
10792 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10793 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10802 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vos_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 347, __pyx_L1_error)
10803 __Pyx_GOTREF(__pyx_t_5);
10805 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10806 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10807 if (likely(__pyx_t_6)) {
10808 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10809 __Pyx_INCREF(__pyx_t_6);
10810 __Pyx_INCREF(
function);
10811 __Pyx_DECREF_SET(__pyx_t_5,
function);
10814 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10815 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10816 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 347, __pyx_L1_error)
10817 __Pyx_GOTREF(__pyx_t_4);
10818 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10819 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10828 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 348, __pyx_L1_error)
10829 __Pyx_GOTREF(__pyx_t_5);
10831 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10832 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10833 if (likely(__pyx_t_6)) {
10834 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10835 __Pyx_INCREF(__pyx_t_6);
10836 __Pyx_INCREF(
function);
10837 __Pyx_DECREF_SET(__pyx_t_5,
function);
10840 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10841 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10842 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 348, __pyx_L1_error)
10843 __Pyx_GOTREF(__pyx_t_4);
10844 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10845 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10854 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 349, __pyx_L1_error)
10855 __Pyx_GOTREF(__pyx_t_5);
10857 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10858 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10859 if (likely(__pyx_t_6)) {
10860 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10861 __Pyx_INCREF(__pyx_t_6);
10862 __Pyx_INCREF(
function);
10863 __Pyx_DECREF_SET(__pyx_t_5,
function);
10866 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10867 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10868 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 349, __pyx_L1_error)
10869 __Pyx_GOTREF(__pyx_t_4);
10870 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10871 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10880 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 350, __pyx_L1_error)
10881 __Pyx_GOTREF(__pyx_t_5);
10883 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10884 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10885 if (likely(__pyx_t_6)) {
10886 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10887 __Pyx_INCREF(__pyx_t_6);
10888 __Pyx_INCREF(
function);
10889 __Pyx_DECREF_SET(__pyx_t_5,
function);
10892 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10893 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10894 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 350, __pyx_L1_error)
10895 __Pyx_GOTREF(__pyx_t_4);
10896 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10897 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10906 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 351, __pyx_L1_error)
10907 __Pyx_GOTREF(__pyx_t_5);
10909 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10910 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10911 if (likely(__pyx_t_6)) {
10912 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10913 __Pyx_INCREF(__pyx_t_6);
10914 __Pyx_INCREF(
function);
10915 __Pyx_DECREF_SET(__pyx_t_5,
function);
10918 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10919 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10920 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 351, __pyx_L1_error)
10921 __Pyx_GOTREF(__pyx_t_4);
10922 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10923 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10932 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 352, __pyx_L1_error)
10933 __Pyx_GOTREF(__pyx_t_5);
10935 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10936 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10937 if (likely(__pyx_t_6)) {
10938 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10939 __Pyx_INCREF(__pyx_t_6);
10940 __Pyx_INCREF(
function);
10941 __Pyx_DECREF_SET(__pyx_t_5,
function);
10944 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10945 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10946 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 352, __pyx_L1_error)
10947 __Pyx_GOTREF(__pyx_t_4);
10948 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10949 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10958 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 353, __pyx_L1_error)
10959 __Pyx_GOTREF(__pyx_t_5);
10961 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10962 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10963 if (likely(__pyx_t_6)) {
10964 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10965 __Pyx_INCREF(__pyx_t_6);
10966 __Pyx_INCREF(
function);
10967 __Pyx_DECREF_SET(__pyx_t_5,
function);
10970 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
10971 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10972 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 353, __pyx_L1_error)
10973 __Pyx_GOTREF(__pyx_t_4);
10974 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
10975 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
10984 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 354, __pyx_L1_error)
10985 __Pyx_GOTREF(__pyx_t_5);
10987 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
10988 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
10989 if (likely(__pyx_t_6)) {
10990 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
10991 __Pyx_INCREF(__pyx_t_6);
10992 __Pyx_INCREF(
function);
10993 __Pyx_DECREF_SET(__pyx_t_5,
function);
10996 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_1eneg_20) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_1eneg_20);
10997 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
10998 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 354, __pyx_L1_error)
10999 __Pyx_GOTREF(__pyx_t_4);
11000 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11001 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11010 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 355, __pyx_L1_error)
11011 __Pyx_GOTREF(__pyx_t_5);
11013 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11014 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11015 if (likely(__pyx_t_6)) {
11016 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11017 __Pyx_INCREF(__pyx_t_6);
11018 __Pyx_INCREF(
function);
11019 __Pyx_DECREF_SET(__pyx_t_5,
function);
11022 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11023 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11024 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 355, __pyx_L1_error)
11025 __Pyx_GOTREF(__pyx_t_4);
11026 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11027 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11036 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error)
11037 __Pyx_GOTREF(__pyx_t_5);
11039 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11040 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11041 if (likely(__pyx_t_6)) {
11042 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11043 __Pyx_INCREF(__pyx_t_6);
11044 __Pyx_INCREF(
function);
11045 __Pyx_DECREF_SET(__pyx_t_5,
function);
11048 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_1eneg_10) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_1eneg_10);
11049 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11050 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 356, __pyx_L1_error)
11051 __Pyx_GOTREF(__pyx_t_4);
11052 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11053 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11062 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 357, __pyx_L1_error)
11063 __Pyx_GOTREF(__pyx_t_5);
11065 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11066 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11067 if (likely(__pyx_t_6)) {
11068 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11069 __Pyx_INCREF(__pyx_t_6);
11070 __Pyx_INCREF(
function);
11071 __Pyx_DECREF_SET(__pyx_t_5,
function);
11074 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11075 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11076 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 357, __pyx_L1_error)
11077 __Pyx_GOTREF(__pyx_t_4);
11078 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11079 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11088 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_orientation, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 359, __pyx_L1_error)
11089 __Pyx_GOTREF(__pyx_t_4);
11090 __pyx_t_5 = __Pyx_PyFloat_EqObjC(__pyx_t_4, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 359, __pyx_L1_error)
11091 __Pyx_GOTREF(__pyx_t_5);
11092 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11093 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 359, __pyx_L1_error)
11094 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11097 __pyx_t_1 = __pyx_t_3;
11098 goto __pyx_L7_bool_binop_done;
11100 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_orientation, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 359, __pyx_L1_error)
11101 __Pyx_GOTREF(__pyx_t_5);
11102 __pyx_t_4 = __Pyx_PyFloat_EqObjC(__pyx_t_5, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 359, __pyx_L1_error)
11103 __Pyx_GOTREF(__pyx_t_4);
11104 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11105 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 359, __pyx_L1_error)
11106 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11107 __pyx_t_1 = __pyx_t_3;
11108 __pyx_L7_bool_binop_done:;
11118 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 360, __pyx_L1_error)
11119 __Pyx_GOTREF(__pyx_t_5);
11121 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11122 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11123 if (likely(__pyx_t_6)) {
11124 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11125 __Pyx_INCREF(__pyx_t_6);
11126 __Pyx_INCREF(
function);
11127 __Pyx_DECREF_SET(__pyx_t_5,
function);
11130 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11131 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11132 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 360, __pyx_L1_error)
11133 __Pyx_GOTREF(__pyx_t_4);
11134 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11135 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11144 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 361, __pyx_L1_error)
11145 __Pyx_GOTREF(__pyx_t_5);
11147 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11148 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11149 if (likely(__pyx_t_6)) {
11150 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11151 __Pyx_INCREF(__pyx_t_6);
11152 __Pyx_INCREF(
function);
11153 __Pyx_DECREF_SET(__pyx_t_5,
function);
11156 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11157 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11158 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 361, __pyx_L1_error)
11159 __Pyx_GOTREF(__pyx_t_4);
11160 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11161 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11179 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_orientation, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 362, __pyx_L1_error)
11180 __Pyx_GOTREF(__pyx_t_4);
11181 __pyx_t_5 = __Pyx_PyFloat_EqObjC(__pyx_t_4, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error)
11182 __Pyx_GOTREF(__pyx_t_5);
11183 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11184 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 362, __pyx_L1_error)
11185 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11188 __pyx_t_1 = __pyx_t_3;
11189 goto __pyx_L10_bool_binop_done;
11191 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_orientation, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error)
11192 __Pyx_GOTREF(__pyx_t_5);
11193 __pyx_t_4 = __Pyx_PyFloat_EqObjC(__pyx_t_5, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 362, __pyx_L1_error)
11194 __Pyx_GOTREF(__pyx_t_4);
11195 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11196 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 362, __pyx_L1_error)
11197 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11198 __pyx_t_1 = __pyx_t_3;
11199 __pyx_L10_bool_binop_done:;
11209 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error)
11210 __Pyx_GOTREF(__pyx_t_5);
11212 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11213 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11214 if (likely(__pyx_t_6)) {
11215 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11216 __Pyx_INCREF(__pyx_t_6);
11217 __Pyx_INCREF(
function);
11218 __Pyx_DECREF_SET(__pyx_t_5,
function);
11221 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11222 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11223 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 363, __pyx_L1_error)
11224 __Pyx_GOTREF(__pyx_t_4);
11225 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11226 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11235 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error)
11236 __Pyx_GOTREF(__pyx_t_5);
11238 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11239 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11240 if (likely(__pyx_t_6)) {
11241 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11242 __Pyx_INCREF(__pyx_t_6);
11243 __Pyx_INCREF(
function);
11244 __Pyx_DECREF_SET(__pyx_t_5,
function);
11247 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11248 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11249 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 364, __pyx_L1_error)
11250 __Pyx_GOTREF(__pyx_t_4);
11251 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11252 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11270 __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_orientation, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 365, __pyx_L1_error)
11271 __Pyx_GOTREF(__pyx_t_4);
11272 __pyx_t_5 = __Pyx_PyFloat_EqObjC(__pyx_t_4, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error)
11273 __Pyx_GOTREF(__pyx_t_5);
11274 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11275 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 365, __pyx_L1_error)
11276 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11279 __pyx_t_1 = __pyx_t_3;
11280 goto __pyx_L13_bool_binop_done;
11282 __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_orientation, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error)
11283 __Pyx_GOTREF(__pyx_t_5);
11284 __pyx_t_4 = __Pyx_PyFloat_EqObjC(__pyx_t_5, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 365, __pyx_L1_error)
11285 __Pyx_GOTREF(__pyx_t_4);
11286 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11287 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 365, __pyx_L1_error)
11288 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11289 __pyx_t_1 = __pyx_t_3;
11290 __pyx_L13_bool_binop_done:;
11300 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 366, __pyx_L1_error)
11301 __Pyx_GOTREF(__pyx_t_5);
11303 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11304 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11305 if (likely(__pyx_t_6)) {
11306 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11307 __Pyx_INCREF(__pyx_t_6);
11308 __Pyx_INCREF(
function);
11309 __Pyx_DECREF_SET(__pyx_t_5,
function);
11312 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11313 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11314 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 366, __pyx_L1_error)
11315 __Pyx_GOTREF(__pyx_t_4);
11316 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11317 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11326 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 367, __pyx_L1_error)
11327 __Pyx_GOTREF(__pyx_t_5);
11329 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11330 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11331 if (likely(__pyx_t_6)) {
11332 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11333 __Pyx_INCREF(__pyx_t_6);
11334 __Pyx_INCREF(
function);
11335 __Pyx_DECREF_SET(__pyx_t_5,
function);
11338 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_);
11339 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11340 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 367, __pyx_L1_error)
11341 __Pyx_GOTREF(__pyx_t_4);
11342 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11343 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11361 __pyx_t_1 = (__pyx_v_kInflow != Py_None);
11362 __pyx_t_3 = (__pyx_t_1 != 0);
11372 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L1_error)
11373 __Pyx_GOTREF(__pyx_t_5);
11375 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11376 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11377 if (likely(__pyx_t_6)) {
11378 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11379 __Pyx_INCREF(__pyx_t_6);
11380 __Pyx_INCREF(
function);
11381 __Pyx_DECREF_SET(__pyx_t_5,
function);
11384 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_kInflow) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_kInflow);
11385 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11386 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 370, __pyx_L1_error)
11387 __Pyx_GOTREF(__pyx_t_4);
11388 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11389 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11409 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_logEvent);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 372, __pyx_L1_error)
11410 __Pyx_GOTREF(__pyx_t_5);
11411 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_str);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 372, __pyx_L1_error)
11412 __Pyx_GOTREF(__pyx_t_7);
11414 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
11415 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
11416 if (likely(__pyx_t_8)) {
11417 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
11418 __Pyx_INCREF(__pyx_t_8);
11419 __Pyx_INCREF(
function);
11420 __Pyx_DECREF_SET(__pyx_t_7,
function);
11423 __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_self->__pyx_base.BC_type) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_self->__pyx_base.BC_type);
11424 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
11425 if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 372, __pyx_L1_error)
11426 __Pyx_GOTREF(__pyx_t_6);
11427 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11428 __pyx_t_7 = PyNumber_Add(__pyx_kp_s_WARNING_Dirichlet_condition_for, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 372, __pyx_L1_error)
11429 __Pyx_GOTREF(__pyx_t_7);
11430 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11431 __pyx_t_6 = PyNumber_Add(__pyx_t_7, __pyx_kp_s_has_not_been_set_Ignore_if_RANS);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 372, __pyx_L1_error)
11432 __Pyx_GOTREF(__pyx_t_6);
11433 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11435 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
11436 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
11437 if (likely(__pyx_t_7)) {
11438 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11439 __Pyx_INCREF(__pyx_t_7);
11440 __Pyx_INCREF(
function);
11441 __Pyx_DECREF_SET(__pyx_t_5,
function);
11444 __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6);
11445 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11446 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11447 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 372, __pyx_L1_error)
11448 __Pyx_GOTREF(__pyx_t_4);
11449 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11450 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11461 __pyx_t_3 = (__pyx_v_dInflow != Py_None);
11462 __pyx_t_1 = (__pyx_t_3 != 0);
11472 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L1_error)
11473 __Pyx_GOTREF(__pyx_t_5);
11475 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
11476 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
11477 if (likely(__pyx_t_6)) {
11478 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11479 __Pyx_INCREF(__pyx_t_6);
11480 __Pyx_INCREF(
function);
11481 __Pyx_DECREF_SET(__pyx_t_5,
function);
11484 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_dInflow) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_dInflow);
11485 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
11486 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 374, __pyx_L1_error)
11487 __Pyx_GOTREF(__pyx_t_4);
11488 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11489 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11509 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_logEvent);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 376, __pyx_L1_error)
11510 __Pyx_GOTREF(__pyx_t_5);
11511 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_str);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error)
11512 __Pyx_GOTREF(__pyx_t_7);
11514 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
11515 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
11516 if (likely(__pyx_t_8)) {
11517 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
11518 __Pyx_INCREF(__pyx_t_8);
11519 __Pyx_INCREF(
function);
11520 __Pyx_DECREF_SET(__pyx_t_7,
function);
11523 __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_self->__pyx_base.BC_type) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_self->__pyx_base.BC_type);
11524 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
11525 if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 376, __pyx_L1_error)
11526 __Pyx_GOTREF(__pyx_t_6);
11527 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11528 __pyx_t_7 = PyNumber_Add(__pyx_kp_s_WARNING_Dirichlet_condition_for_2, __pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 376, __pyx_L1_error)
11529 __Pyx_GOTREF(__pyx_t_7);
11530 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11531 __pyx_t_6 = PyNumber_Add(__pyx_t_7, __pyx_kp_s_has_not_been_set_Ignore_if_RANS);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 376, __pyx_L1_error)
11532 __Pyx_GOTREF(__pyx_t_6);
11533 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
11535 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
11536 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
11537 if (likely(__pyx_t_7)) {
11538 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
11539 __Pyx_INCREF(__pyx_t_7);
11540 __Pyx_INCREF(
function);
11541 __Pyx_DECREF_SET(__pyx_t_5,
function);
11544 __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6);
11545 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
11546 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11547 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 376, __pyx_L1_error)
11548 __Pyx_GOTREF(__pyx_t_4);
11549 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11550 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11563 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11566 __Pyx_XDECREF(__pyx_t_4);
11567 __Pyx_XDECREF(__pyx_t_5);
11568 __Pyx_XDECREF(__pyx_t_6);
11569 __Pyx_XDECREF(__pyx_t_7);
11570 __Pyx_XDECREF(__pyx_t_8);
11571 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setAtmosphere", __pyx_clineno, __pyx_lineno, __pyx_filename);
11574 __Pyx_XDECREF(__pyx_v_orientation);
11575 __Pyx_XGIVEREF(__pyx_r);
11576 __Pyx_TraceReturn(__pyx_r, 0);
11577 __Pyx_RefNannyFinishContext();
11590 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_v_body);
11591 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh[] =
"BC_RANS.setRigidBodyMoveMesh(self, body)\n\n Sets boundary conditions for moving the mesh with a rigid body\n\n Parameters\n ----------\n last_pos: array_like\n last position of rigig body\n h: array_like\n displacement of the body\n rot_matrix:\n rotation matrix describing displament due to rotation between last\n position and new position (3x3 array)\n\n (!) if set manually, the input arrays should be updated externally\n without loosing their memory address\n ";
11592 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh = {
"setRigidBodyMoveMesh", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh};
11593 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_v_body) {
11594 PyObject *__pyx_r = 0;
11595 __Pyx_RefNannyDeclarations
11596 __Pyx_RefNannySetupContext(
"setRigidBodyMoveMesh (wrapper)", 0);
11597 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_body));
11600 __Pyx_RefNannyFinishContext();
11613 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_1get_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_i);
11614 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_1get_DBC_h = {
"get_DBC_h", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_1get_DBC_h, METH_O, 0};
11615 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_1get_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_i) {
11616 PyObject *__pyx_r = 0;
11617 __Pyx_RefNannyDeclarations
11618 __Pyx_RefNannySetupContext(
"get_DBC_h (wrapper)", 0);
11619 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(__pyx_self, ((PyObject *)__pyx_v_i));
11622 __Pyx_RefNannyFinishContext();
11635 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_1DBC_h(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11636 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_1DBC_h = {
"DBC_h", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_1DBC_h, METH_VARARGS|METH_KEYWORDS, 0};
11637 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_1DBC_h(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11638 PyObject *__pyx_v_x = 0;
11639 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
11640 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
11641 int __pyx_lineno = 0;
11642 const char *__pyx_filename = NULL;
11643 int __pyx_clineno = 0;
11644 PyObject *__pyx_r = 0;
11645 __Pyx_RefNannyDeclarations
11646 __Pyx_RefNannySetupContext(
"DBC_h (wrapper)", 0);
11648 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
11649 PyObject* values[3] = {0,0,0};
11650 values[2] = ((PyObject *)((PyObject *)Py_None));
11651 if (unlikely(__pyx_kwds)) {
11652 Py_ssize_t kw_args;
11653 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11654 switch (pos_args) {
11655 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11656 CYTHON_FALLTHROUGH;
11657 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11658 CYTHON_FALLTHROUGH;
11659 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11660 CYTHON_FALLTHROUGH;
11662 default:
goto __pyx_L5_argtuple_error;
11664 kw_args = PyDict_Size(__pyx_kwds);
11665 switch (pos_args) {
11667 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
11668 else goto __pyx_L5_argtuple_error;
11669 CYTHON_FALLTHROUGH;
11671 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
11673 __Pyx_RaiseArgtupleInvalid(
"DBC_h", 0, 2, 3, 1); __PYX_ERR(0, 395, __pyx_L3_error)
11675 CYTHON_FALLTHROUGH;
11678 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
11679 if (value) { values[2] = value; kw_args--; }
11682 if (unlikely(kw_args > 0)) {
11683 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"DBC_h") < 0)) __PYX_ERR(0, 395, __pyx_L3_error)
11686 switch (PyTuple_GET_SIZE(__pyx_args)) {
11687 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
11688 CYTHON_FALLTHROUGH;
11689 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11690 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11692 default:
goto __pyx_L5_argtuple_error;
11695 __pyx_v_x = values[0];
11696 __pyx_v_t = values[1];
11697 __pyx_v_n = values[2];
11699 goto __pyx_L4_argument_unpacking_done;
11700 __pyx_L5_argtuple_error:;
11701 __Pyx_RaiseArgtupleInvalid(
"DBC_h", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 395, __pyx_L3_error)
11703 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setRigidBodyMoveMesh.get_DBC_h.DBC_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
11704 __Pyx_RefNannyFinishContext();
11706 __pyx_L4_argument_unpacking_done:;
11707 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_DBC_h(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
11710 __Pyx_RefNannyFinishContext();
11714 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
11715 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *__pyx_cur_scope;
11716 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *__pyx_outer_scope;
11717 PyObject *__pyx_v_x_0 = NULL;
11718 PyObject *__pyx_v_new_x_0 = NULL;
11719 PyObject *__pyx_v_hx = NULL;
11720 PyObject *__pyx_r = NULL;
11721 __Pyx_TraceDeclarations
11722 __Pyx_RefNannyDeclarations
11723 PyObject *__pyx_t_1 = NULL;
11724 PyObject *__pyx_t_2 = NULL;
11725 PyObject *__pyx_t_3 = NULL;
11726 PyObject *__pyx_t_4 = NULL;
11728 PyObject *__pyx_t_6 = NULL;
11729 int __pyx_lineno = 0;
11730 const char *__pyx_filename = NULL;
11731 int __pyx_clineno = 0;
11732 __Pyx_RefNannySetupContext(
"DBC_h", 0);
11733 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *) __Pyx_CyFunction_GetClosure(__pyx_self);
11734 __pyx_cur_scope = __pyx_outer_scope;
11735 __Pyx_TraceCall(
"DBC_h", __pyx_f[0], 395, 0, __PYX_ERR(0, 395, __pyx_L1_error));
11744 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 396, __pyx_L1_error) }
11745 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body, __pyx_n_s_last_position);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error)
11746 __Pyx_GOTREF(__pyx_t_1);
11747 __pyx_t_2 = PyNumber_Subtract(__pyx_v_x, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 396, __pyx_L1_error)
11748 __Pyx_GOTREF(__pyx_t_2);
11749 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11750 __pyx_v_x_0 = __pyx_t_2;
11760 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error)
11761 __Pyx_GOTREF(__pyx_t_1);
11762 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_dot);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error)
11763 __Pyx_GOTREF(__pyx_t_3);
11764 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11765 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 397, __pyx_L1_error) }
11766 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body, __pyx_n_s_rotation_matrix);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 397, __pyx_L1_error)
11767 __Pyx_GOTREF(__pyx_t_1);
11770 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
11771 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
11772 if (likely(__pyx_t_4)) {
11773 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
11774 __Pyx_INCREF(__pyx_t_4);
11775 __Pyx_INCREF(
function);
11776 __Pyx_DECREF_SET(__pyx_t_3,
function);
11780 #if CYTHON_FAST_PYCALL
11781 if (PyFunction_Check(__pyx_t_3)) {
11782 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_x_0, __pyx_t_1};
11783 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
11784 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
11785 __Pyx_GOTREF(__pyx_t_2);
11786 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11789 #if CYTHON_FAST_PYCCALL
11790 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
11791 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_x_0, __pyx_t_1};
11792 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
11793 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
11794 __Pyx_GOTREF(__pyx_t_2);
11795 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11799 __pyx_t_6 = PyTuple_New(2+__pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 397, __pyx_L1_error)
11800 __Pyx_GOTREF(__pyx_t_6);
11802 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
11804 __Pyx_INCREF(__pyx_v_x_0);
11805 __Pyx_GIVEREF(__pyx_v_x_0);
11806 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_x_0);
11807 __Pyx_GIVEREF(__pyx_t_1);
11808 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_1);
11810 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
11811 __Pyx_GOTREF(__pyx_t_2);
11812 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
11814 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11815 __pyx_v_new_x_0 = __pyx_t_2;
11825 __pyx_t_2 = PyNumber_Subtract(__pyx_v_new_x_0, __pyx_v_x_0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
11826 __Pyx_GOTREF(__pyx_t_2);
11827 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 398, __pyx_L1_error) }
11828 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_body, __pyx_n_s_h);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 398, __pyx_L1_error)
11829 __Pyx_GOTREF(__pyx_t_3);
11830 __pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 398, __pyx_L1_error)
11831 __Pyx_GOTREF(__pyx_t_6);
11832 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11833 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11834 __pyx_v_hx = __pyx_t_6;
11844 __Pyx_XDECREF(__pyx_r);
11845 if (unlikely(!__pyx_cur_scope->__pyx_v_i)) { __Pyx_RaiseClosureNameError(
"i"); __PYX_ERR(0, 399, __pyx_L1_error) }
11846 __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_hx, __pyx_cur_scope->__pyx_v_i);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 399, __pyx_L1_error)
11847 __Pyx_GOTREF(__pyx_t_6);
11848 __pyx_r = __pyx_t_6;
11862 __Pyx_XDECREF(__pyx_t_1);
11863 __Pyx_XDECREF(__pyx_t_2);
11864 __Pyx_XDECREF(__pyx_t_3);
11865 __Pyx_XDECREF(__pyx_t_4);
11866 __Pyx_XDECREF(__pyx_t_6);
11867 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setRigidBodyMoveMesh.get_DBC_h.DBC_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
11870 __Pyx_XDECREF(__pyx_v_x_0);
11871 __Pyx_XDECREF(__pyx_v_new_x_0);
11872 __Pyx_XDECREF(__pyx_v_hx);
11873 __Pyx_XGIVEREF(__pyx_r);
11874 __Pyx_TraceReturn(__pyx_r, 0);
11875 __Pyx_RefNannyFinishContext();
11887 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(PyObject *__pyx_self, PyObject *__pyx_v_i) {
11888 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *__pyx_cur_scope;
11889 PyObject *__pyx_v_DBC_h = 0;
11890 PyObject *__pyx_r = NULL;
11891 __Pyx_TraceDeclarations
11892 __Pyx_RefNannyDeclarations
11893 PyObject *__pyx_t_1 = NULL;
11894 int __pyx_lineno = 0;
11895 const char *__pyx_filename = NULL;
11896 int __pyx_clineno = 0;
11897 __Pyx_RefNannySetupContext(
"get_DBC_h", 0);
11898 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h, __pyx_empty_tuple, NULL);
11899 if (unlikely(!__pyx_cur_scope)) {
11900 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)Py_None);
11901 __Pyx_INCREF(Py_None);
11902 __PYX_ERR(0, 394, __pyx_L1_error)
11904 __Pyx_GOTREF(__pyx_cur_scope);
11906 __pyx_cur_scope->__pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
11907 __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
11908 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
11909 __Pyx_TraceCall(
"get_DBC_h", __pyx_f[0], 394, 0, __PYX_ERR(0, 394, __pyx_L1_error));
11910 __pyx_cur_scope->__pyx_v_i = __pyx_v_i;
11911 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i);
11912 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i);
11921 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_9get_DBC_h_1DBC_h, 0, __pyx_n_s_setRigidBodyMoveMesh_locals_get, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__11));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 395, __pyx_L1_error)
11922 __Pyx_GOTREF(__pyx_t_1);
11923 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__12);
11924 __pyx_v_DBC_h = __pyx_t_1;
11934 __Pyx_XDECREF(__pyx_r);
11935 __Pyx_INCREF(__pyx_v_DBC_h);
11936 __pyx_r = __pyx_v_DBC_h;
11949 __Pyx_XDECREF(__pyx_t_1);
11950 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setRigidBodyMoveMesh.get_DBC_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
11953 __Pyx_XDECREF(__pyx_v_DBC_h);
11954 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
11955 __Pyx_XGIVEREF(__pyx_r);
11956 __Pyx_TraceReturn(__pyx_r, 0);
11957 __Pyx_RefNannyFinishContext();
11969 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_body) {
11970 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *__pyx_cur_scope;
11971 PyObject *__pyx_v_get_DBC_h = 0;
11972 PyObject *__pyx_r = NULL;
11973 __Pyx_TraceDeclarations
11974 __Pyx_RefNannyDeclarations
11975 PyObject *__pyx_t_1 = NULL;
11976 PyObject *__pyx_t_2 = NULL;
11978 int __pyx_lineno = 0;
11979 const char *__pyx_filename = NULL;
11980 int __pyx_clineno = 0;
11981 __Pyx_TraceFrameInit(__pyx_codeobj__13)
11982 __Pyx_RefNannySetupContext(
"setRigidBodyMoveMesh", 0);
11983 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh, __pyx_empty_tuple, NULL);
11984 if (unlikely(!__pyx_cur_scope)) {
11985 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)Py_None);
11986 __Pyx_INCREF(Py_None);
11987 __PYX_ERR(0, 377, __pyx_L1_error)
11989 __Pyx_GOTREF(__pyx_cur_scope);
11991 __Pyx_TraceCall(
"setRigidBodyMoveMesh", __pyx_f[0], 377, 0, __PYX_ERR(0, 377, __pyx_L1_error));
11992 __pyx_cur_scope->__pyx_v_body = __pyx_v_body;
11993 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_body);
11994 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_body);
12003 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_1get_DBC_h, 0, __pyx_n_s_setRigidBodyMoveMesh_locals_get_2, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__15));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error)
12004 __Pyx_GOTREF(__pyx_t_1);
12005 __pyx_v_get_DBC_h = __pyx_t_1;
12015 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(__pyx_v_get_DBC_h, __pyx_int_0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error)
12016 __Pyx_GOTREF(__pyx_t_1);
12017 __Pyx_GIVEREF(__pyx_t_1);
12018 __Pyx_GOTREF(__pyx_v_self->hx_dirichlet->uOfXT);
12019 __Pyx_DECREF(__pyx_v_self->hx_dirichlet->uOfXT);
12020 __pyx_v_self->hx_dirichlet->uOfXT = __pyx_t_1;
12030 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(__pyx_v_get_DBC_h, __pyx_int_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
12031 __Pyx_GOTREF(__pyx_t_1);
12032 __Pyx_GIVEREF(__pyx_t_1);
12033 __Pyx_GOTREF(__pyx_v_self->hy_dirichlet->uOfXT);
12034 __Pyx_DECREF(__pyx_v_self->hy_dirichlet->uOfXT);
12035 __pyx_v_self->hy_dirichlet->uOfXT = __pyx_t_1;
12045 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_body, __pyx_n_s_nd);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error)
12046 __Pyx_GOTREF(__pyx_t_1);
12047 __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_2, Py_GT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 403, __pyx_L1_error)
12048 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12049 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 403, __pyx_L1_error)
12050 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12060 __pyx_t_2 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh_get_DBC_h(__pyx_v_get_DBC_h, __pyx_int_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 404, __pyx_L1_error)
12061 __Pyx_GOTREF(__pyx_t_2);
12062 __Pyx_GIVEREF(__pyx_t_2);
12063 __Pyx_GOTREF(__pyx_v_self->hz_dirichlet->uOfXT);
12064 __Pyx_DECREF(__pyx_v_self->hz_dirichlet->uOfXT);
12065 __pyx_v_self->hz_dirichlet->uOfXT = __pyx_t_2;
12086 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12089 __Pyx_XDECREF(__pyx_t_1);
12090 __Pyx_XDECREF(__pyx_t_2);
12091 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setRigidBodyMoveMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
12094 __Pyx_XDECREF(__pyx_v_get_DBC_h);
12095 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
12096 __Pyx_XGIVEREF(__pyx_r);
12097 __Pyx_TraceReturn(__pyx_r, 0);
12098 __Pyx_RefNannyFinishContext();
12111 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_v_body);
12112 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh[] =
"BC_RANS.setChMoveMesh(self, body)";
12113 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh = {
"setChMoveMesh", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh};
12114 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_v_body) {
12115 PyObject *__pyx_r = 0;
12116 __Pyx_RefNannyDeclarations
12117 __Pyx_RefNannySetupContext(
"setChMoveMesh (wrapper)", 0);
12118 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_body));
12121 __Pyx_RefNannyFinishContext();
12134 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_lambda(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12135 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_lambda = {
"lambda", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_lambda, METH_VARARGS|METH_KEYWORDS, 0};
12136 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_lambda(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12137 PyObject *__pyx_v_x = 0;
12138 PyObject *__pyx_v_t = 0;
12139 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
12140 int __pyx_lineno = 0;
12141 const char *__pyx_filename = NULL;
12142 int __pyx_clineno = 0;
12143 PyObject *__pyx_r = 0;
12144 __Pyx_RefNannyDeclarations
12145 __Pyx_RefNannySetupContext(
"lambda (wrapper)", 0);
12147 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
12148 PyObject* values[3] = {0,0,0};
12149 values[2] = ((PyObject *)((PyObject *)Py_None));
12150 if (unlikely(__pyx_kwds)) {
12151 Py_ssize_t kw_args;
12152 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12153 switch (pos_args) {
12154 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12155 CYTHON_FALLTHROUGH;
12156 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12157 CYTHON_FALLTHROUGH;
12158 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12159 CYTHON_FALLTHROUGH;
12161 default:
goto __pyx_L5_argtuple_error;
12163 kw_args = PyDict_Size(__pyx_kwds);
12164 switch (pos_args) {
12166 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
12167 else goto __pyx_L5_argtuple_error;
12168 CYTHON_FALLTHROUGH;
12170 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
12172 __Pyx_RaiseArgtupleInvalid(
"lambda", 0, 2, 3, 1); __PYX_ERR(0, 407, __pyx_L3_error)
12174 CYTHON_FALLTHROUGH;
12177 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
12178 if (value) { values[2] = value; kw_args--; }
12181 if (unlikely(kw_args > 0)) {
12182 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda") < 0)) __PYX_ERR(0, 407, __pyx_L3_error)
12185 switch (PyTuple_GET_SIZE(__pyx_args)) {
12186 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12187 CYTHON_FALLTHROUGH;
12188 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12189 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12191 default:
goto __pyx_L5_argtuple_error;
12194 __pyx_v_x = values[0];
12195 __pyx_v_t = values[1];
12196 __pyx_v_n = values[2];
12198 goto __pyx_L4_argument_unpacking_done;
12199 __pyx_L5_argtuple_error:;
12200 __Pyx_RaiseArgtupleInvalid(
"lambda", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 407, __pyx_L3_error)
12202 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
12203 __Pyx_RefNannyFinishContext();
12205 __pyx_L4_argument_unpacking_done:;
12206 __pyx_r = __pyx_lambda_funcdef_lambda(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
12209 __Pyx_RefNannyFinishContext();
12213 static PyObject *__pyx_lambda_funcdef_lambda(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
12214 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_cur_scope;
12215 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_outer_scope;
12216 PyObject *__pyx_r = NULL;
12217 __Pyx_TraceDeclarations
12218 __Pyx_RefNannyDeclarations
12219 PyObject *__pyx_t_1 = NULL;
12220 PyObject *__pyx_t_2 = NULL;
12221 PyObject *__pyx_t_3 = NULL;
12223 PyObject *__pyx_t_5 = NULL;
12224 int __pyx_lineno = 0;
12225 const char *__pyx_filename = NULL;
12226 int __pyx_clineno = 0;
12227 __Pyx_RefNannySetupContext(
"lambda", 0);
12228 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
12229 __pyx_cur_scope = __pyx_outer_scope;
12230 __Pyx_TraceCall(
"lambda", __pyx_f[0], 407, 0, __PYX_ERR(0, 407, __pyx_L1_error));
12231 __Pyx_XDECREF(__pyx_r);
12232 if (unlikely(!__pyx_cur_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 407, __pyx_L1_error) }
12233 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_body, __pyx_n_s_hx);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 407, __pyx_L1_error)
12234 __Pyx_GOTREF(__pyx_t_2);
12237 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12238 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12239 if (likely(__pyx_t_3)) {
12240 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
12241 __Pyx_INCREF(__pyx_t_3);
12242 __Pyx_INCREF(
function);
12243 __Pyx_DECREF_SET(__pyx_t_2,
function);
12247 #if CYTHON_FAST_PYCALL
12248 if (PyFunction_Check(__pyx_t_2)) {
12249 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12250 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
12251 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12252 __Pyx_GOTREF(__pyx_t_1);
12255 #if CYTHON_FAST_PYCCALL
12256 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
12257 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12258 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
12259 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12260 __Pyx_GOTREF(__pyx_t_1);
12264 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 407, __pyx_L1_error)
12265 __Pyx_GOTREF(__pyx_t_5);
12267 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
12269 __Pyx_INCREF(__pyx_v_x);
12270 __Pyx_GIVEREF(__pyx_v_x);
12271 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
12272 __Pyx_INCREF(__pyx_v_t);
12273 __Pyx_GIVEREF(__pyx_v_t);
12274 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
12275 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
12276 __Pyx_GOTREF(__pyx_t_1);
12277 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12279 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12280 __pyx_r = __pyx_t_1;
12286 __Pyx_XDECREF(__pyx_t_1);
12287 __Pyx_XDECREF(__pyx_t_2);
12288 __Pyx_XDECREF(__pyx_t_3);
12289 __Pyx_XDECREF(__pyx_t_5);
12290 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
12293 __Pyx_XGIVEREF(__pyx_r);
12294 __Pyx_TraceReturn(__pyx_r, 0);
12295 __Pyx_RefNannyFinishContext();
12308 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_1lambda1(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12309 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_1lambda1 = {
"lambda1", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_1lambda1, METH_VARARGS|METH_KEYWORDS, 0};
12310 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_1lambda1(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12311 PyObject *__pyx_v_x = 0;
12312 PyObject *__pyx_v_t = 0;
12313 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
12314 int __pyx_lineno = 0;
12315 const char *__pyx_filename = NULL;
12316 int __pyx_clineno = 0;
12317 PyObject *__pyx_r = 0;
12318 __Pyx_RefNannyDeclarations
12319 __Pyx_RefNannySetupContext(
"lambda1 (wrapper)", 0);
12321 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
12322 PyObject* values[3] = {0,0,0};
12323 values[2] = ((PyObject *)((PyObject *)Py_None));
12324 if (unlikely(__pyx_kwds)) {
12325 Py_ssize_t kw_args;
12326 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12327 switch (pos_args) {
12328 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12329 CYTHON_FALLTHROUGH;
12330 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12331 CYTHON_FALLTHROUGH;
12332 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12333 CYTHON_FALLTHROUGH;
12335 default:
goto __pyx_L5_argtuple_error;
12337 kw_args = PyDict_Size(__pyx_kwds);
12338 switch (pos_args) {
12340 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
12341 else goto __pyx_L5_argtuple_error;
12342 CYTHON_FALLTHROUGH;
12344 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
12346 __Pyx_RaiseArgtupleInvalid(
"lambda1", 0, 2, 3, 1); __PYX_ERR(0, 408, __pyx_L3_error)
12348 CYTHON_FALLTHROUGH;
12351 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
12352 if (value) { values[2] = value; kw_args--; }
12355 if (unlikely(kw_args > 0)) {
12356 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda1") < 0)) __PYX_ERR(0, 408, __pyx_L3_error)
12359 switch (PyTuple_GET_SIZE(__pyx_args)) {
12360 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12361 CYTHON_FALLTHROUGH;
12362 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12363 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12365 default:
goto __pyx_L5_argtuple_error;
12368 __pyx_v_x = values[0];
12369 __pyx_v_t = values[1];
12370 __pyx_v_n = values[2];
12372 goto __pyx_L4_argument_unpacking_done;
12373 __pyx_L5_argtuple_error:;
12374 __Pyx_RaiseArgtupleInvalid(
"lambda1", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 408, __pyx_L3_error)
12376 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda1", __pyx_clineno, __pyx_lineno, __pyx_filename);
12377 __Pyx_RefNannyFinishContext();
12379 __pyx_L4_argument_unpacking_done:;
12380 __pyx_r = __pyx_lambda_funcdef_lambda1(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
12383 __Pyx_RefNannyFinishContext();
12387 static PyObject *__pyx_lambda_funcdef_lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
12388 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_cur_scope;
12389 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_outer_scope;
12390 PyObject *__pyx_r = NULL;
12391 __Pyx_TraceDeclarations
12392 __Pyx_RefNannyDeclarations
12393 PyObject *__pyx_t_1 = NULL;
12394 PyObject *__pyx_t_2 = NULL;
12395 PyObject *__pyx_t_3 = NULL;
12397 PyObject *__pyx_t_5 = NULL;
12398 int __pyx_lineno = 0;
12399 const char *__pyx_filename = NULL;
12400 int __pyx_clineno = 0;
12401 __Pyx_RefNannySetupContext(
"lambda1", 0);
12402 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
12403 __pyx_cur_scope = __pyx_outer_scope;
12404 __Pyx_TraceCall(
"lambda1", __pyx_f[0], 408, 0, __PYX_ERR(0, 408, __pyx_L1_error));
12405 __Pyx_XDECREF(__pyx_r);
12406 if (unlikely(!__pyx_cur_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 408, __pyx_L1_error) }
12407 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_body, __pyx_n_s_hy);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 408, __pyx_L1_error)
12408 __Pyx_GOTREF(__pyx_t_2);
12411 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12412 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12413 if (likely(__pyx_t_3)) {
12414 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
12415 __Pyx_INCREF(__pyx_t_3);
12416 __Pyx_INCREF(
function);
12417 __Pyx_DECREF_SET(__pyx_t_2,
function);
12421 #if CYTHON_FAST_PYCALL
12422 if (PyFunction_Check(__pyx_t_2)) {
12423 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12424 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
12425 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12426 __Pyx_GOTREF(__pyx_t_1);
12429 #if CYTHON_FAST_PYCCALL
12430 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
12431 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12432 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
12433 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12434 __Pyx_GOTREF(__pyx_t_1);
12438 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 408, __pyx_L1_error)
12439 __Pyx_GOTREF(__pyx_t_5);
12441 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
12443 __Pyx_INCREF(__pyx_v_x);
12444 __Pyx_GIVEREF(__pyx_v_x);
12445 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
12446 __Pyx_INCREF(__pyx_v_t);
12447 __Pyx_GIVEREF(__pyx_v_t);
12448 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
12449 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
12450 __Pyx_GOTREF(__pyx_t_1);
12451 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12453 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12454 __pyx_r = __pyx_t_1;
12460 __Pyx_XDECREF(__pyx_t_1);
12461 __Pyx_XDECREF(__pyx_t_2);
12462 __Pyx_XDECREF(__pyx_t_3);
12463 __Pyx_XDECREF(__pyx_t_5);
12464 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda1", __pyx_clineno, __pyx_lineno, __pyx_filename);
12467 __Pyx_XGIVEREF(__pyx_r);
12468 __Pyx_TraceReturn(__pyx_r, 0);
12469 __Pyx_RefNannyFinishContext();
12482 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_2lambda2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12483 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_2lambda2 = {
"lambda2", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_2lambda2, METH_VARARGS|METH_KEYWORDS, 0};
12484 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_2lambda2(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12485 PyObject *__pyx_v_x = 0;
12486 PyObject *__pyx_v_t = 0;
12487 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
12488 int __pyx_lineno = 0;
12489 const char *__pyx_filename = NULL;
12490 int __pyx_clineno = 0;
12491 PyObject *__pyx_r = 0;
12492 __Pyx_RefNannyDeclarations
12493 __Pyx_RefNannySetupContext(
"lambda2 (wrapper)", 0);
12495 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
12496 PyObject* values[3] = {0,0,0};
12497 values[2] = ((PyObject *)((PyObject *)Py_None));
12498 if (unlikely(__pyx_kwds)) {
12499 Py_ssize_t kw_args;
12500 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12501 switch (pos_args) {
12502 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
12503 CYTHON_FALLTHROUGH;
12504 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12505 CYTHON_FALLTHROUGH;
12506 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12507 CYTHON_FALLTHROUGH;
12509 default:
goto __pyx_L5_argtuple_error;
12511 kw_args = PyDict_Size(__pyx_kwds);
12512 switch (pos_args) {
12514 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
12515 else goto __pyx_L5_argtuple_error;
12516 CYTHON_FALLTHROUGH;
12518 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
12520 __Pyx_RaiseArgtupleInvalid(
"lambda2", 0, 2, 3, 1); __PYX_ERR(0, 409, __pyx_L3_error)
12522 CYTHON_FALLTHROUGH;
12525 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
12526 if (value) { values[2] = value; kw_args--; }
12529 if (unlikely(kw_args > 0)) {
12530 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda2") < 0)) __PYX_ERR(0, 409, __pyx_L3_error)
12533 switch (PyTuple_GET_SIZE(__pyx_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 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12539 default:
goto __pyx_L5_argtuple_error;
12542 __pyx_v_x = values[0];
12543 __pyx_v_t = values[1];
12544 __pyx_v_n = values[2];
12546 goto __pyx_L4_argument_unpacking_done;
12547 __pyx_L5_argtuple_error:;
12548 __Pyx_RaiseArgtupleInvalid(
"lambda2", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 409, __pyx_L3_error)
12550 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda2", __pyx_clineno, __pyx_lineno, __pyx_filename);
12551 __Pyx_RefNannyFinishContext();
12553 __pyx_L4_argument_unpacking_done:;
12554 __pyx_r = __pyx_lambda_funcdef_lambda2(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
12557 __Pyx_RefNannyFinishContext();
12561 static PyObject *__pyx_lambda_funcdef_lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
12562 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_cur_scope;
12563 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_outer_scope;
12564 PyObject *__pyx_r = NULL;
12565 __Pyx_TraceDeclarations
12566 __Pyx_RefNannyDeclarations
12567 PyObject *__pyx_t_1 = NULL;
12568 PyObject *__pyx_t_2 = NULL;
12569 PyObject *__pyx_t_3 = NULL;
12571 PyObject *__pyx_t_5 = NULL;
12572 int __pyx_lineno = 0;
12573 const char *__pyx_filename = NULL;
12574 int __pyx_clineno = 0;
12575 __Pyx_RefNannySetupContext(
"lambda2", 0);
12576 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
12577 __pyx_cur_scope = __pyx_outer_scope;
12578 __Pyx_TraceCall(
"lambda2", __pyx_f[0], 409, 0, __PYX_ERR(0, 409, __pyx_L1_error));
12579 __Pyx_XDECREF(__pyx_r);
12580 if (unlikely(!__pyx_cur_scope->__pyx_v_body)) { __Pyx_RaiseClosureNameError(
"body"); __PYX_ERR(0, 409, __pyx_L1_error) }
12581 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_body, __pyx_n_s_hz);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 409, __pyx_L1_error)
12582 __Pyx_GOTREF(__pyx_t_2);
12585 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12586 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12587 if (likely(__pyx_t_3)) {
12588 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
12589 __Pyx_INCREF(__pyx_t_3);
12590 __Pyx_INCREF(
function);
12591 __Pyx_DECREF_SET(__pyx_t_2,
function);
12595 #if CYTHON_FAST_PYCALL
12596 if (PyFunction_Check(__pyx_t_2)) {
12597 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12598 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error)
12599 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12600 __Pyx_GOTREF(__pyx_t_1);
12603 #if CYTHON_FAST_PYCCALL
12604 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
12605 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_x, __pyx_v_t};
12606 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error)
12607 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12608 __Pyx_GOTREF(__pyx_t_1);
12612 __pyx_t_5 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 409, __pyx_L1_error)
12613 __Pyx_GOTREF(__pyx_t_5);
12615 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
12617 __Pyx_INCREF(__pyx_v_x);
12618 __Pyx_GIVEREF(__pyx_v_x);
12619 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
12620 __Pyx_INCREF(__pyx_v_t);
12621 __Pyx_GIVEREF(__pyx_v_t);
12622 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
12623 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error)
12624 __Pyx_GOTREF(__pyx_t_1);
12625 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12627 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12628 __pyx_r = __pyx_t_1;
12634 __Pyx_XDECREF(__pyx_t_1);
12635 __Pyx_XDECREF(__pyx_t_2);
12636 __Pyx_XDECREF(__pyx_t_3);
12637 __Pyx_XDECREF(__pyx_t_5);
12638 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh.lambda2", __pyx_clineno, __pyx_lineno, __pyx_filename);
12641 __Pyx_XGIVEREF(__pyx_r);
12642 __Pyx_TraceReturn(__pyx_r, 0);
12643 __Pyx_RefNannyFinishContext();
12655 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_body) {
12656 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_cur_scope;
12657 PyObject *__pyx_r = NULL;
12658 __Pyx_TraceDeclarations
12659 __Pyx_RefNannyDeclarations
12660 PyObject *__pyx_t_1 = NULL;
12661 int __pyx_lineno = 0;
12662 const char *__pyx_filename = NULL;
12663 int __pyx_clineno = 0;
12664 __Pyx_TraceFrameInit(__pyx_codeobj__16)
12665 __Pyx_RefNannySetupContext(
"setChMoveMesh", 0);
12666 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh, __pyx_empty_tuple, NULL);
12667 if (unlikely(!__pyx_cur_scope)) {
12668 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)Py_None);
12669 __Pyx_INCREF(Py_None);
12670 __PYX_ERR(0, 406, __pyx_L1_error)
12672 __Pyx_GOTREF(__pyx_cur_scope);
12674 __Pyx_TraceCall(
"setChMoveMesh", __pyx_f[0], 406, 0, __PYX_ERR(0, 406, __pyx_L1_error));
12675 __pyx_cur_scope->__pyx_v_body = __pyx_v_body;
12676 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_body);
12677 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_body);
12686 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_lambda, 0, __pyx_n_s_setChMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
12687 __Pyx_GOTREF(__pyx_t_1);
12688 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__17);
12689 __Pyx_GIVEREF(__pyx_t_1);
12690 __Pyx_GOTREF(__pyx_v_self->hx_dirichlet->uOfXT);
12691 __Pyx_DECREF(__pyx_v_self->hx_dirichlet->uOfXT);
12692 __pyx_v_self->hx_dirichlet->uOfXT = __pyx_t_1;
12702 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_1lambda1, 0, __pyx_n_s_setChMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
12703 __Pyx_GOTREF(__pyx_t_1);
12704 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__18);
12705 __Pyx_GIVEREF(__pyx_t_1);
12706 __Pyx_GOTREF(__pyx_v_self->hy_dirichlet->uOfXT);
12707 __Pyx_DECREF(__pyx_v_self->hy_dirichlet->uOfXT);
12708 __pyx_v_self->hy_dirichlet->uOfXT = __pyx_t_1;
12718 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setChMoveMesh_2lambda2, 0, __pyx_n_s_setChMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 409, __pyx_L1_error)
12719 __Pyx_GOTREF(__pyx_t_1);
12720 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__19);
12721 __Pyx_GIVEREF(__pyx_t_1);
12722 __Pyx_GOTREF(__pyx_v_self->hz_dirichlet->uOfXT);
12723 __Pyx_DECREF(__pyx_v_self->hz_dirichlet->uOfXT);
12724 __pyx_v_self->hz_dirichlet->uOfXT = __pyx_t_1;
12736 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12739 __Pyx_XDECREF(__pyx_t_1);
12740 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setChMoveMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
12743 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
12744 __Pyx_XGIVEREF(__pyx_r);
12745 __Pyx_TraceReturn(__pyx_r, 0);
12746 __Pyx_RefNannyFinishContext();
12759 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
12760 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet[] =
"BC_RANS.setTurbulentDirichlet(self, kVal, dissipationVal)\n\n Sets only dirichlet conditions for turbulence at the boundary.\n It's a rough approximation for evalueting the near wall turbulence\n based on empirical assumptions.\n More sophisticated wall functions are recommended to be used.\n\n Parameters\n ----------\n kVal: float.\n constant value applied on k.\n dissipationVal: float.\n constant value applied on dissipation.\n ";
12761 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet = {
"setTurbulentDirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet};
12762 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12763 PyObject *__pyx_v_kVal = 0;
12764 PyObject *__pyx_v_dissipationVal = 0;
12765 int __pyx_lineno = 0;
12766 const char *__pyx_filename = NULL;
12767 int __pyx_clineno = 0;
12768 PyObject *__pyx_r = 0;
12769 __Pyx_RefNannyDeclarations
12770 __Pyx_RefNannySetupContext(
"setTurbulentDirichlet (wrapper)", 0);
12772 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_kVal,&__pyx_n_s_dissipationVal,0};
12773 PyObject* values[2] = {0,0};
12774 if (unlikely(__pyx_kwds)) {
12775 Py_ssize_t kw_args;
12776 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
12777 switch (pos_args) {
12778 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12779 CYTHON_FALLTHROUGH;
12780 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12781 CYTHON_FALLTHROUGH;
12783 default:
goto __pyx_L5_argtuple_error;
12785 kw_args = PyDict_Size(__pyx_kwds);
12786 switch (pos_args) {
12788 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kVal)) != 0)) kw_args--;
12789 else goto __pyx_L5_argtuple_error;
12790 CYTHON_FALLTHROUGH;
12792 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dissipationVal)) != 0)) kw_args--;
12794 __Pyx_RaiseArgtupleInvalid(
"setTurbulentDirichlet", 1, 2, 2, 1); __PYX_ERR(0, 411, __pyx_L3_error)
12797 if (unlikely(kw_args > 0)) {
12798 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setTurbulentDirichlet") < 0)) __PYX_ERR(0, 411, __pyx_L3_error)
12800 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
12801 goto __pyx_L5_argtuple_error;
12803 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12804 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12806 __pyx_v_kVal = values[0];
12807 __pyx_v_dissipationVal = values[1];
12809 goto __pyx_L4_argument_unpacking_done;
12810 __pyx_L5_argtuple_error:;
12811 __Pyx_RaiseArgtupleInvalid(
"setTurbulentDirichlet", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 411, __pyx_L3_error)
12813 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTurbulentDirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
12814 __Pyx_RefNannyFinishContext();
12816 __pyx_L4_argument_unpacking_done:;
12817 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_kVal, __pyx_v_dissipationVal);
12820 __Pyx_RefNannyFinishContext();
12824 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_kVal, PyObject *__pyx_v_dissipationVal) {
12825 PyObject *__pyx_r = NULL;
12826 __Pyx_TraceDeclarations
12827 __Pyx_RefNannyDeclarations
12828 PyObject *__pyx_t_1 = NULL;
12829 PyObject *__pyx_t_2 = NULL;
12830 PyObject *__pyx_t_3 = NULL;
12831 int __pyx_lineno = 0;
12832 const char *__pyx_filename = NULL;
12833 int __pyx_clineno = 0;
12834 __Pyx_TraceFrameInit(__pyx_codeobj__20)
12835 __Pyx_RefNannySetupContext(
"setTurbulentDirichlet", 0);
12836 __Pyx_TraceCall(
"setTurbulentDirichlet", __pyx_f[0], 411, 0, __PYX_ERR(0, 411, __pyx_L1_error));
12845 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 426, __pyx_L1_error)
12846 __Pyx_GOTREF(__pyx_t_2);
12848 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12849 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12850 if (likely(__pyx_t_3)) {
12851 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
12852 __Pyx_INCREF(__pyx_t_3);
12853 __Pyx_INCREF(
function);
12854 __Pyx_DECREF_SET(__pyx_t_2,
function);
12857 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_kVal) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_kVal);
12858 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12859 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 426, __pyx_L1_error)
12860 __Pyx_GOTREF(__pyx_t_1);
12861 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12862 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12871 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error)
12872 __Pyx_GOTREF(__pyx_t_2);
12874 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12875 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12876 if (likely(__pyx_t_3)) {
12877 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
12878 __Pyx_INCREF(__pyx_t_3);
12879 __Pyx_INCREF(
function);
12880 __Pyx_DECREF_SET(__pyx_t_2,
function);
12883 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_dissipationVal) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_dissipationVal);
12884 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
12885 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 427, __pyx_L1_error)
12886 __Pyx_GOTREF(__pyx_t_1);
12887 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12888 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12897 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_advective->__pyx_vtab)->resetBC(__pyx_v_self->k_advective, 0);
12906 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_advective->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_advective, 0);
12915 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->k_diffusive, 0);
12924 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_diffusive, 0);
12935 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12938 __Pyx_XDECREF(__pyx_t_1);
12939 __Pyx_XDECREF(__pyx_t_2);
12940 __Pyx_XDECREF(__pyx_t_3);
12941 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTurbulentDirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
12944 __Pyx_XGIVEREF(__pyx_r);
12945 __Pyx_TraceReturn(__pyx_r, 0);
12946 __Pyx_RefNannyFinishContext();
12959 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
12960 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient[] =
"BC_RANS.setTurbulentZeroGradient(self)\n\n Sets only zero-gradient conditions for turbulence at the boundary.\n More sophisticated wall functions are recommended to be used.\n ";
12961 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient = {
"setTurbulentZeroGradient", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient};
12962 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
12963 PyObject *__pyx_r = 0;
12964 __Pyx_RefNannyDeclarations
12965 __Pyx_RefNannySetupContext(
"setTurbulentZeroGradient (wrapper)", 0);
12966 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
12969 __Pyx_RefNannyFinishContext();
12973 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
12974 PyObject *__pyx_r = NULL;
12975 __Pyx_TraceDeclarations
12976 __Pyx_RefNannyDeclarations
12977 PyObject *__pyx_t_1 = NULL;
12978 PyObject *__pyx_t_2 = NULL;
12979 PyObject *__pyx_t_3 = NULL;
12980 int __pyx_lineno = 0;
12981 const char *__pyx_filename = NULL;
12982 int __pyx_clineno = 0;
12983 __Pyx_TraceFrameInit(__pyx_codeobj__21)
12984 __Pyx_RefNannySetupContext(
"setTurbulentZeroGradient", 0);
12985 __Pyx_TraceCall(
"setTurbulentZeroGradient", __pyx_f[0], 433, 0, __PYX_ERR(0, 433, __pyx_L1_error));
12994 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error)
12995 __Pyx_GOTREF(__pyx_t_2);
12997 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
12998 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
12999 if (likely(__pyx_t_3)) {
13000 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13001 __Pyx_INCREF(__pyx_t_3);
13002 __Pyx_INCREF(
function);
13003 __Pyx_DECREF_SET(__pyx_t_2,
function);
13006 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
13007 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13008 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error)
13009 __Pyx_GOTREF(__pyx_t_1);
13010 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13011 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13020 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 440, __pyx_L1_error)
13021 __Pyx_GOTREF(__pyx_t_2);
13023 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13024 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13025 if (likely(__pyx_t_3)) {
13026 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13027 __Pyx_INCREF(__pyx_t_3);
13028 __Pyx_INCREF(
function);
13029 __Pyx_DECREF_SET(__pyx_t_2,
function);
13032 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
13033 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13034 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
13035 __Pyx_GOTREF(__pyx_t_1);
13036 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13037 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13046 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_advective->__pyx_vtab)->resetBC(__pyx_v_self->k_advective, 0);
13055 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_advective->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_advective, 0);
13064 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 443, __pyx_L1_error)
13065 __Pyx_GOTREF(__pyx_t_2);
13067 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13068 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13069 if (likely(__pyx_t_3)) {
13070 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13071 __Pyx_INCREF(__pyx_t_3);
13072 __Pyx_INCREF(
function);
13073 __Pyx_DECREF_SET(__pyx_t_2,
function);
13076 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
13077 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13078 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
13079 __Pyx_GOTREF(__pyx_t_1);
13080 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13081 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13090 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 444, __pyx_L1_error)
13091 __Pyx_GOTREF(__pyx_t_2);
13093 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13094 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13095 if (likely(__pyx_t_3)) {
13096 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13097 __Pyx_INCREF(__pyx_t_3);
13098 __Pyx_INCREF(
function);
13099 __Pyx_DECREF_SET(__pyx_t_2,
function);
13102 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
13103 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13104 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 444, __pyx_L1_error)
13105 __Pyx_GOTREF(__pyx_t_1);
13106 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13107 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13118 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13121 __Pyx_XDECREF(__pyx_t_1);
13122 __Pyx_XDECREF(__pyx_t_2);
13123 __Pyx_XDECREF(__pyx_t_3);
13124 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTurbulentZeroGradient", __pyx_clineno, __pyx_lineno, __pyx_filename);
13127 __Pyx_XGIVEREF(__pyx_r);
13128 __Pyx_TraceReturn(__pyx_r, 0);
13129 __Pyx_RefNannyFinishContext();
13142 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13143 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction[] =
"BC_RANS.setWallFunction(self, wall, shearStress=False)\n\n Sets turbulent boundaries for wall treatment.\n Calculation made on nodes outside the viscous sublayer and based\n on assumption on the velocity profile close to the wall in order to\n impose the wall shear stress.\n\n Parameters\n ----------\n wall: wall object.\n BoundaryConditions class to be attached for setting up\n all the turbulent parameters.\n shearStress: True/False.\n At the moment version with shearStress=False is the only one that\n returns good results.\n Keep it False at the moment!\n - When True, the wall function prescribes diffusive boundaries\n for velocity and kappa. It's like imposing the shear stress.\n - If False, the wall function prescribes dirichlet conditions.\n\n ";
13144 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction = {
"setWallFunction", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction};
13145 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13146 PyObject *__pyx_v_wall = 0;
13147 CYTHON_UNUSED PyObject *__pyx_v_shearStress = 0;
13148 int __pyx_lineno = 0;
13149 const char *__pyx_filename = NULL;
13150 int __pyx_clineno = 0;
13151 PyObject *__pyx_r = 0;
13152 __Pyx_RefNannyDeclarations
13153 __Pyx_RefNannySetupContext(
"setWallFunction (wrapper)", 0);
13155 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_wall,&__pyx_n_s_shearStress,0};
13156 PyObject* values[2] = {0,0};
13157 values[1] = ((PyObject *)Py_False);
13158 if (unlikely(__pyx_kwds)) {
13159 Py_ssize_t kw_args;
13160 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13161 switch (pos_args) {
13162 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13163 CYTHON_FALLTHROUGH;
13164 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13165 CYTHON_FALLTHROUGH;
13167 default:
goto __pyx_L5_argtuple_error;
13169 kw_args = PyDict_Size(__pyx_kwds);
13170 switch (pos_args) {
13172 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wall)) != 0)) kw_args--;
13173 else goto __pyx_L5_argtuple_error;
13174 CYTHON_FALLTHROUGH;
13177 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shearStress);
13178 if (value) { values[1] = value; kw_args--; }
13181 if (unlikely(kw_args > 0)) {
13182 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setWallFunction") < 0)) __PYX_ERR(0, 446, __pyx_L3_error)
13185 switch (PyTuple_GET_SIZE(__pyx_args)) {
13186 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13187 CYTHON_FALLTHROUGH;
13188 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13190 default:
goto __pyx_L5_argtuple_error;
13193 __pyx_v_wall = values[0];
13194 __pyx_v_shearStress = values[1];
13196 goto __pyx_L4_argument_unpacking_done;
13197 __pyx_L5_argtuple_error:;
13198 __Pyx_RaiseArgtupleInvalid(
"setWallFunction", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 446, __pyx_L3_error)
13200 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
13201 __Pyx_RefNannyFinishContext();
13203 __pyx_L4_argument_unpacking_done:;
13204 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_wall, __pyx_v_shearStress);
13207 __Pyx_RefNannyFinishContext();
13220 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_lambda3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13221 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_lambda3 = {
"lambda3", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_lambda3, METH_VARARGS|METH_KEYWORDS, 0};
13222 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_lambda3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13223 PyObject *__pyx_v_x = 0;
13224 PyObject *__pyx_v_t = 0;
13225 PyObject *__pyx_v_n = 0;
13226 int __pyx_lineno = 0;
13227 const char *__pyx_filename = NULL;
13228 int __pyx_clineno = 0;
13229 PyObject *__pyx_r = 0;
13230 __Pyx_RefNannyDeclarations
13231 __Pyx_RefNannySetupContext(
"lambda3 (wrapper)", 0);
13233 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
13234 PyObject* values[3] = {0,0,0};
13235 values[2] = ((PyObject *)((PyObject *)Py_None));
13236 if (unlikely(__pyx_kwds)) {
13237 Py_ssize_t kw_args;
13238 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13239 switch (pos_args) {
13240 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13241 CYTHON_FALLTHROUGH;
13242 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13243 CYTHON_FALLTHROUGH;
13244 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13245 CYTHON_FALLTHROUGH;
13247 default:
goto __pyx_L5_argtuple_error;
13249 kw_args = PyDict_Size(__pyx_kwds);
13250 switch (pos_args) {
13252 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
13253 else goto __pyx_L5_argtuple_error;
13254 CYTHON_FALLTHROUGH;
13256 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
13258 __Pyx_RaiseArgtupleInvalid(
"lambda3", 0, 2, 3, 1); __PYX_ERR(0, 472, __pyx_L3_error)
13260 CYTHON_FALLTHROUGH;
13263 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
13264 if (value) { values[2] = value; kw_args--; }
13267 if (unlikely(kw_args > 0)) {
13268 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda3") < 0)) __PYX_ERR(0, 472, __pyx_L3_error)
13271 switch (PyTuple_GET_SIZE(__pyx_args)) {
13272 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13273 CYTHON_FALLTHROUGH;
13274 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13275 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13277 default:
goto __pyx_L5_argtuple_error;
13280 __pyx_v_x = values[0];
13281 __pyx_v_t = values[1];
13282 __pyx_v_n = values[2];
13284 goto __pyx_L4_argument_unpacking_done;
13285 __pyx_L5_argtuple_error:;
13286 __Pyx_RaiseArgtupleInvalid(
"lambda3", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 472, __pyx_L3_error)
13288 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda3", __pyx_clineno, __pyx_lineno, __pyx_filename);
13289 __Pyx_RefNannyFinishContext();
13291 __pyx_L4_argument_unpacking_done:;
13292 __pyx_r = __pyx_lambda_funcdef_lambda3(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
13295 __Pyx_RefNannyFinishContext();
13299 static PyObject *__pyx_lambda_funcdef_lambda3(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
13300 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
13301 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_outer_scope;
13302 PyObject *__pyx_r = NULL;
13303 __Pyx_TraceDeclarations
13304 __Pyx_RefNannyDeclarations
13305 PyObject *__pyx_t_1 = NULL;
13306 PyObject *__pyx_t_2 = NULL;
13307 PyObject *__pyx_t_3 = NULL;
13309 PyObject *__pyx_t_5 = NULL;
13310 int __pyx_lineno = 0;
13311 const char *__pyx_filename = NULL;
13312 int __pyx_clineno = 0;
13313 __Pyx_RefNannySetupContext(
"lambda3", 0);
13314 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *) __Pyx_CyFunction_GetClosure(__pyx_self);
13315 __pyx_cur_scope = __pyx_outer_scope;
13316 __Pyx_TraceCall(
"lambda3", __pyx_f[0], 472, 0, __PYX_ERR(0, 472, __pyx_L1_error));
13317 __Pyx_XDECREF(__pyx_r);
13318 if (unlikely(!__pyx_cur_scope->__pyx_v_wf)) { __Pyx_RaiseClosureNameError(
"wf"); __PYX_ERR(0, 472, __pyx_L1_error) }
13319 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_wf, __pyx_n_s_get_k_dirichlet);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 472, __pyx_L1_error)
13320 __Pyx_GOTREF(__pyx_t_2);
13323 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13324 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13325 if (likely(__pyx_t_3)) {
13326 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13327 __Pyx_INCREF(__pyx_t_3);
13328 __Pyx_INCREF(
function);
13329 __Pyx_DECREF_SET(__pyx_t_2,
function);
13333 #if CYTHON_FAST_PYCALL
13334 if (PyFunction_Check(__pyx_t_2)) {
13335 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13336 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
13337 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13338 __Pyx_GOTREF(__pyx_t_1);
13341 #if CYTHON_FAST_PYCCALL
13342 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
13343 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13344 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
13345 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13346 __Pyx_GOTREF(__pyx_t_1);
13350 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 472, __pyx_L1_error)
13351 __Pyx_GOTREF(__pyx_t_5);
13353 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
13355 __Pyx_INCREF(__pyx_v_x);
13356 __Pyx_GIVEREF(__pyx_v_x);
13357 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
13358 __Pyx_INCREF(__pyx_v_t);
13359 __Pyx_GIVEREF(__pyx_v_t);
13360 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
13361 __Pyx_INCREF(__pyx_v_n);
13362 __Pyx_GIVEREF(__pyx_v_n);
13363 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
13364 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
13365 __Pyx_GOTREF(__pyx_t_1);
13366 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13368 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13369 __pyx_r = __pyx_t_1;
13375 __Pyx_XDECREF(__pyx_t_1);
13376 __Pyx_XDECREF(__pyx_t_2);
13377 __Pyx_XDECREF(__pyx_t_3);
13378 __Pyx_XDECREF(__pyx_t_5);
13379 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda3", __pyx_clineno, __pyx_lineno, __pyx_filename);
13382 __Pyx_XGIVEREF(__pyx_r);
13383 __Pyx_TraceReturn(__pyx_r, 0);
13384 __Pyx_RefNannyFinishContext();
13397 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_1lambda4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13398 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_1lambda4 = {
"lambda4", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_1lambda4, METH_VARARGS|METH_KEYWORDS, 0};
13399 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_1lambda4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13400 PyObject *__pyx_v_x = 0;
13401 PyObject *__pyx_v_t = 0;
13402 PyObject *__pyx_v_n = 0;
13403 int __pyx_lineno = 0;
13404 const char *__pyx_filename = NULL;
13405 int __pyx_clineno = 0;
13406 PyObject *__pyx_r = 0;
13407 __Pyx_RefNannyDeclarations
13408 __Pyx_RefNannySetupContext(
"lambda4 (wrapper)", 0);
13410 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
13411 PyObject* values[3] = {0,0,0};
13412 values[2] = ((PyObject *)((PyObject *)Py_None));
13413 if (unlikely(__pyx_kwds)) {
13414 Py_ssize_t kw_args;
13415 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13416 switch (pos_args) {
13417 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13418 CYTHON_FALLTHROUGH;
13419 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13420 CYTHON_FALLTHROUGH;
13421 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13422 CYTHON_FALLTHROUGH;
13424 default:
goto __pyx_L5_argtuple_error;
13426 kw_args = PyDict_Size(__pyx_kwds);
13427 switch (pos_args) {
13429 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
13430 else goto __pyx_L5_argtuple_error;
13431 CYTHON_FALLTHROUGH;
13433 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
13435 __Pyx_RaiseArgtupleInvalid(
"lambda4", 0, 2, 3, 1); __PYX_ERR(0, 473, __pyx_L3_error)
13437 CYTHON_FALLTHROUGH;
13440 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
13441 if (value) { values[2] = value; kw_args--; }
13444 if (unlikely(kw_args > 0)) {
13445 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda4") < 0)) __PYX_ERR(0, 473, __pyx_L3_error)
13448 switch (PyTuple_GET_SIZE(__pyx_args)) {
13449 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13450 CYTHON_FALLTHROUGH;
13451 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13452 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13454 default:
goto __pyx_L5_argtuple_error;
13457 __pyx_v_x = values[0];
13458 __pyx_v_t = values[1];
13459 __pyx_v_n = values[2];
13461 goto __pyx_L4_argument_unpacking_done;
13462 __pyx_L5_argtuple_error:;
13463 __Pyx_RaiseArgtupleInvalid(
"lambda4", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 473, __pyx_L3_error)
13465 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda4", __pyx_clineno, __pyx_lineno, __pyx_filename);
13466 __Pyx_RefNannyFinishContext();
13468 __pyx_L4_argument_unpacking_done:;
13469 __pyx_r = __pyx_lambda_funcdef_lambda4(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
13472 __Pyx_RefNannyFinishContext();
13476 static PyObject *__pyx_lambda_funcdef_lambda4(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
13477 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
13478 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_outer_scope;
13479 PyObject *__pyx_r = NULL;
13480 __Pyx_TraceDeclarations
13481 __Pyx_RefNannyDeclarations
13482 PyObject *__pyx_t_1 = NULL;
13483 PyObject *__pyx_t_2 = NULL;
13484 PyObject *__pyx_t_3 = NULL;
13486 PyObject *__pyx_t_5 = NULL;
13487 int __pyx_lineno = 0;
13488 const char *__pyx_filename = NULL;
13489 int __pyx_clineno = 0;
13490 __Pyx_RefNannySetupContext(
"lambda4", 0);
13491 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *) __Pyx_CyFunction_GetClosure(__pyx_self);
13492 __pyx_cur_scope = __pyx_outer_scope;
13493 __Pyx_TraceCall(
"lambda4", __pyx_f[0], 473, 0, __PYX_ERR(0, 473, __pyx_L1_error));
13494 __Pyx_XDECREF(__pyx_r);
13495 if (unlikely(!__pyx_cur_scope->__pyx_v_wf)) { __Pyx_RaiseClosureNameError(
"wf"); __PYX_ERR(0, 473, __pyx_L1_error) }
13496 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_wf, __pyx_n_s_get_dissipation_dirichlet);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error)
13497 __Pyx_GOTREF(__pyx_t_2);
13500 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13501 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13502 if (likely(__pyx_t_3)) {
13503 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13504 __Pyx_INCREF(__pyx_t_3);
13505 __Pyx_INCREF(
function);
13506 __Pyx_DECREF_SET(__pyx_t_2,
function);
13510 #if CYTHON_FAST_PYCALL
13511 if (PyFunction_Check(__pyx_t_2)) {
13512 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13513 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error)
13514 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13515 __Pyx_GOTREF(__pyx_t_1);
13518 #if CYTHON_FAST_PYCCALL
13519 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
13520 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13521 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error)
13522 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13523 __Pyx_GOTREF(__pyx_t_1);
13527 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 473, __pyx_L1_error)
13528 __Pyx_GOTREF(__pyx_t_5);
13530 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
13532 __Pyx_INCREF(__pyx_v_x);
13533 __Pyx_GIVEREF(__pyx_v_x);
13534 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
13535 __Pyx_INCREF(__pyx_v_t);
13536 __Pyx_GIVEREF(__pyx_v_t);
13537 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
13538 __Pyx_INCREF(__pyx_v_n);
13539 __Pyx_GIVEREF(__pyx_v_n);
13540 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
13541 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error)
13542 __Pyx_GOTREF(__pyx_t_1);
13543 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13545 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13546 __pyx_r = __pyx_t_1;
13552 __Pyx_XDECREF(__pyx_t_1);
13553 __Pyx_XDECREF(__pyx_t_2);
13554 __Pyx_XDECREF(__pyx_t_3);
13555 __Pyx_XDECREF(__pyx_t_5);
13556 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda4", __pyx_clineno, __pyx_lineno, __pyx_filename);
13559 __Pyx_XGIVEREF(__pyx_r);
13560 __Pyx_TraceReturn(__pyx_r, 0);
13561 __Pyx_RefNannyFinishContext();
13574 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_2lambda5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13575 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_2lambda5 = {
"lambda5", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_2lambda5, METH_VARARGS|METH_KEYWORDS, 0};
13576 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_2lambda5(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13577 PyObject *__pyx_v_x = 0;
13578 PyObject *__pyx_v_t = 0;
13579 PyObject *__pyx_v_n = 0;
13580 int __pyx_lineno = 0;
13581 const char *__pyx_filename = NULL;
13582 int __pyx_clineno = 0;
13583 PyObject *__pyx_r = 0;
13584 __Pyx_RefNannyDeclarations
13585 __Pyx_RefNannySetupContext(
"lambda5 (wrapper)", 0);
13587 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
13588 PyObject* values[3] = {0,0,0};
13589 values[2] = ((PyObject *)((PyObject *)Py_None));
13590 if (unlikely(__pyx_kwds)) {
13591 Py_ssize_t kw_args;
13592 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13593 switch (pos_args) {
13594 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13595 CYTHON_FALLTHROUGH;
13596 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13597 CYTHON_FALLTHROUGH;
13598 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13599 CYTHON_FALLTHROUGH;
13601 default:
goto __pyx_L5_argtuple_error;
13603 kw_args = PyDict_Size(__pyx_kwds);
13604 switch (pos_args) {
13606 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
13607 else goto __pyx_L5_argtuple_error;
13608 CYTHON_FALLTHROUGH;
13610 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
13612 __Pyx_RaiseArgtupleInvalid(
"lambda5", 0, 2, 3, 1); __PYX_ERR(0, 474, __pyx_L3_error)
13614 CYTHON_FALLTHROUGH;
13617 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
13618 if (value) { values[2] = value; kw_args--; }
13621 if (unlikely(kw_args > 0)) {
13622 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda5") < 0)) __PYX_ERR(0, 474, __pyx_L3_error)
13625 switch (PyTuple_GET_SIZE(__pyx_args)) {
13626 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13627 CYTHON_FALLTHROUGH;
13628 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13629 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13631 default:
goto __pyx_L5_argtuple_error;
13634 __pyx_v_x = values[0];
13635 __pyx_v_t = values[1];
13636 __pyx_v_n = values[2];
13638 goto __pyx_L4_argument_unpacking_done;
13639 __pyx_L5_argtuple_error:;
13640 __Pyx_RaiseArgtupleInvalid(
"lambda5", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 474, __pyx_L3_error)
13642 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda5", __pyx_clineno, __pyx_lineno, __pyx_filename);
13643 __Pyx_RefNannyFinishContext();
13645 __pyx_L4_argument_unpacking_done:;
13646 __pyx_r = __pyx_lambda_funcdef_lambda5(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
13649 __Pyx_RefNannyFinishContext();
13653 static PyObject *__pyx_lambda_funcdef_lambda5(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
13654 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
13655 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_outer_scope;
13656 PyObject *__pyx_r = NULL;
13657 __Pyx_TraceDeclarations
13658 __Pyx_RefNannyDeclarations
13659 PyObject *__pyx_t_1 = NULL;
13660 PyObject *__pyx_t_2 = NULL;
13661 PyObject *__pyx_t_3 = NULL;
13663 PyObject *__pyx_t_5 = NULL;
13664 int __pyx_lineno = 0;
13665 const char *__pyx_filename = NULL;
13666 int __pyx_clineno = 0;
13667 __Pyx_RefNannySetupContext(
"lambda5", 0);
13668 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *) __Pyx_CyFunction_GetClosure(__pyx_self);
13669 __pyx_cur_scope = __pyx_outer_scope;
13670 __Pyx_TraceCall(
"lambda5", __pyx_f[0], 474, 0, __PYX_ERR(0, 474, __pyx_L1_error));
13671 __Pyx_XDECREF(__pyx_r);
13672 if (unlikely(!__pyx_cur_scope->__pyx_v_wf)) { __Pyx_RaiseClosureNameError(
"wf"); __PYX_ERR(0, 474, __pyx_L1_error) }
13673 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_wf, __pyx_n_s_get_u_dirichlet);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 474, __pyx_L1_error)
13674 __Pyx_GOTREF(__pyx_t_2);
13677 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13678 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13679 if (likely(__pyx_t_3)) {
13680 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13681 __Pyx_INCREF(__pyx_t_3);
13682 __Pyx_INCREF(
function);
13683 __Pyx_DECREF_SET(__pyx_t_2,
function);
13687 #if CYTHON_FAST_PYCALL
13688 if (PyFunction_Check(__pyx_t_2)) {
13689 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13690 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error)
13691 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13692 __Pyx_GOTREF(__pyx_t_1);
13695 #if CYTHON_FAST_PYCCALL
13696 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
13697 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13698 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error)
13699 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13700 __Pyx_GOTREF(__pyx_t_1);
13704 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 474, __pyx_L1_error)
13705 __Pyx_GOTREF(__pyx_t_5);
13707 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
13709 __Pyx_INCREF(__pyx_v_x);
13710 __Pyx_GIVEREF(__pyx_v_x);
13711 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
13712 __Pyx_INCREF(__pyx_v_t);
13713 __Pyx_GIVEREF(__pyx_v_t);
13714 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
13715 __Pyx_INCREF(__pyx_v_n);
13716 __Pyx_GIVEREF(__pyx_v_n);
13717 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
13718 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error)
13719 __Pyx_GOTREF(__pyx_t_1);
13720 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13722 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13723 __pyx_r = __pyx_t_1;
13729 __Pyx_XDECREF(__pyx_t_1);
13730 __Pyx_XDECREF(__pyx_t_2);
13731 __Pyx_XDECREF(__pyx_t_3);
13732 __Pyx_XDECREF(__pyx_t_5);
13733 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda5", __pyx_clineno, __pyx_lineno, __pyx_filename);
13736 __Pyx_XGIVEREF(__pyx_r);
13737 __Pyx_TraceReturn(__pyx_r, 0);
13738 __Pyx_RefNannyFinishContext();
13751 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_3lambda6(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13752 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_3lambda6 = {
"lambda6", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_3lambda6, METH_VARARGS|METH_KEYWORDS, 0};
13753 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_3lambda6(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13754 PyObject *__pyx_v_x = 0;
13755 PyObject *__pyx_v_t = 0;
13756 PyObject *__pyx_v_n = 0;
13757 int __pyx_lineno = 0;
13758 const char *__pyx_filename = NULL;
13759 int __pyx_clineno = 0;
13760 PyObject *__pyx_r = 0;
13761 __Pyx_RefNannyDeclarations
13762 __Pyx_RefNannySetupContext(
"lambda6 (wrapper)", 0);
13764 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
13765 PyObject* values[3] = {0,0,0};
13766 values[2] = ((PyObject *)((PyObject *)Py_None));
13767 if (unlikely(__pyx_kwds)) {
13768 Py_ssize_t kw_args;
13769 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13770 switch (pos_args) {
13771 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13772 CYTHON_FALLTHROUGH;
13773 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13774 CYTHON_FALLTHROUGH;
13775 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13776 CYTHON_FALLTHROUGH;
13778 default:
goto __pyx_L5_argtuple_error;
13780 kw_args = PyDict_Size(__pyx_kwds);
13781 switch (pos_args) {
13783 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
13784 else goto __pyx_L5_argtuple_error;
13785 CYTHON_FALLTHROUGH;
13787 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
13789 __Pyx_RaiseArgtupleInvalid(
"lambda6", 0, 2, 3, 1); __PYX_ERR(0, 475, __pyx_L3_error)
13791 CYTHON_FALLTHROUGH;
13794 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
13795 if (value) { values[2] = value; kw_args--; }
13798 if (unlikely(kw_args > 0)) {
13799 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda6") < 0)) __PYX_ERR(0, 475, __pyx_L3_error)
13802 switch (PyTuple_GET_SIZE(__pyx_args)) {
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 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13808 default:
goto __pyx_L5_argtuple_error;
13811 __pyx_v_x = values[0];
13812 __pyx_v_t = values[1];
13813 __pyx_v_n = values[2];
13815 goto __pyx_L4_argument_unpacking_done;
13816 __pyx_L5_argtuple_error:;
13817 __Pyx_RaiseArgtupleInvalid(
"lambda6", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 475, __pyx_L3_error)
13819 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda6", __pyx_clineno, __pyx_lineno, __pyx_filename);
13820 __Pyx_RefNannyFinishContext();
13822 __pyx_L4_argument_unpacking_done:;
13823 __pyx_r = __pyx_lambda_funcdef_lambda6(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
13826 __Pyx_RefNannyFinishContext();
13830 static PyObject *__pyx_lambda_funcdef_lambda6(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
13831 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
13832 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_outer_scope;
13833 PyObject *__pyx_r = NULL;
13834 __Pyx_TraceDeclarations
13835 __Pyx_RefNannyDeclarations
13836 PyObject *__pyx_t_1 = NULL;
13837 PyObject *__pyx_t_2 = NULL;
13838 PyObject *__pyx_t_3 = NULL;
13840 PyObject *__pyx_t_5 = NULL;
13841 int __pyx_lineno = 0;
13842 const char *__pyx_filename = NULL;
13843 int __pyx_clineno = 0;
13844 __Pyx_RefNannySetupContext(
"lambda6", 0);
13845 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *) __Pyx_CyFunction_GetClosure(__pyx_self);
13846 __pyx_cur_scope = __pyx_outer_scope;
13847 __Pyx_TraceCall(
"lambda6", __pyx_f[0], 475, 0, __PYX_ERR(0, 475, __pyx_L1_error));
13848 __Pyx_XDECREF(__pyx_r);
13849 if (unlikely(!__pyx_cur_scope->__pyx_v_wf)) { __Pyx_RaiseClosureNameError(
"wf"); __PYX_ERR(0, 475, __pyx_L1_error) }
13850 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_wf, __pyx_n_s_get_v_dirichlet);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 475, __pyx_L1_error)
13851 __Pyx_GOTREF(__pyx_t_2);
13854 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13855 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13856 if (likely(__pyx_t_3)) {
13857 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13858 __Pyx_INCREF(__pyx_t_3);
13859 __Pyx_INCREF(
function);
13860 __Pyx_DECREF_SET(__pyx_t_2,
function);
13864 #if CYTHON_FAST_PYCALL
13865 if (PyFunction_Check(__pyx_t_2)) {
13866 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13867 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
13868 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13869 __Pyx_GOTREF(__pyx_t_1);
13872 #if CYTHON_FAST_PYCCALL
13873 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
13874 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
13875 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
13876 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13877 __Pyx_GOTREF(__pyx_t_1);
13881 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 475, __pyx_L1_error)
13882 __Pyx_GOTREF(__pyx_t_5);
13884 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
13886 __Pyx_INCREF(__pyx_v_x);
13887 __Pyx_GIVEREF(__pyx_v_x);
13888 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
13889 __Pyx_INCREF(__pyx_v_t);
13890 __Pyx_GIVEREF(__pyx_v_t);
13891 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
13892 __Pyx_INCREF(__pyx_v_n);
13893 __Pyx_GIVEREF(__pyx_v_n);
13894 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
13895 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
13896 __Pyx_GOTREF(__pyx_t_1);
13897 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13899 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13900 __pyx_r = __pyx_t_1;
13906 __Pyx_XDECREF(__pyx_t_1);
13907 __Pyx_XDECREF(__pyx_t_2);
13908 __Pyx_XDECREF(__pyx_t_3);
13909 __Pyx_XDECREF(__pyx_t_5);
13910 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda6", __pyx_clineno, __pyx_lineno, __pyx_filename);
13913 __Pyx_XGIVEREF(__pyx_r);
13914 __Pyx_TraceReturn(__pyx_r, 0);
13915 __Pyx_RefNannyFinishContext();
13928 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_4lambda7(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13929 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_4lambda7 = {
"lambda7", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_4lambda7, METH_VARARGS|METH_KEYWORDS, 0};
13930 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_4lambda7(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13931 PyObject *__pyx_v_x = 0;
13932 PyObject *__pyx_v_t = 0;
13933 PyObject *__pyx_v_n = 0;
13934 int __pyx_lineno = 0;
13935 const char *__pyx_filename = NULL;
13936 int __pyx_clineno = 0;
13937 PyObject *__pyx_r = 0;
13938 __Pyx_RefNannyDeclarations
13939 __Pyx_RefNannySetupContext(
"lambda7 (wrapper)", 0);
13941 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
13942 PyObject* values[3] = {0,0,0};
13943 values[2] = ((PyObject *)((PyObject *)Py_None));
13944 if (unlikely(__pyx_kwds)) {
13945 Py_ssize_t kw_args;
13946 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13947 switch (pos_args) {
13948 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13949 CYTHON_FALLTHROUGH;
13950 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13951 CYTHON_FALLTHROUGH;
13952 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13953 CYTHON_FALLTHROUGH;
13955 default:
goto __pyx_L5_argtuple_error;
13957 kw_args = PyDict_Size(__pyx_kwds);
13958 switch (pos_args) {
13960 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
13961 else goto __pyx_L5_argtuple_error;
13962 CYTHON_FALLTHROUGH;
13964 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
13966 __Pyx_RaiseArgtupleInvalid(
"lambda7", 0, 2, 3, 1); __PYX_ERR(0, 476, __pyx_L3_error)
13968 CYTHON_FALLTHROUGH;
13971 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
13972 if (value) { values[2] = value; kw_args--; }
13975 if (unlikely(kw_args > 0)) {
13976 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda7") < 0)) __PYX_ERR(0, 476, __pyx_L3_error)
13979 switch (PyTuple_GET_SIZE(__pyx_args)) {
13980 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13981 CYTHON_FALLTHROUGH;
13982 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13983 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13985 default:
goto __pyx_L5_argtuple_error;
13988 __pyx_v_x = values[0];
13989 __pyx_v_t = values[1];
13990 __pyx_v_n = values[2];
13992 goto __pyx_L4_argument_unpacking_done;
13993 __pyx_L5_argtuple_error:;
13994 __Pyx_RaiseArgtupleInvalid(
"lambda7", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 476, __pyx_L3_error)
13996 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda7", __pyx_clineno, __pyx_lineno, __pyx_filename);
13997 __Pyx_RefNannyFinishContext();
13999 __pyx_L4_argument_unpacking_done:;
14000 __pyx_r = __pyx_lambda_funcdef_lambda7(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
14003 __Pyx_RefNannyFinishContext();
14007 static PyObject *__pyx_lambda_funcdef_lambda7(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
14008 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
14009 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_outer_scope;
14010 PyObject *__pyx_r = NULL;
14011 __Pyx_TraceDeclarations
14012 __Pyx_RefNannyDeclarations
14013 PyObject *__pyx_t_1 = NULL;
14014 PyObject *__pyx_t_2 = NULL;
14015 PyObject *__pyx_t_3 = NULL;
14017 PyObject *__pyx_t_5 = NULL;
14018 int __pyx_lineno = 0;
14019 const char *__pyx_filename = NULL;
14020 int __pyx_clineno = 0;
14021 __Pyx_RefNannySetupContext(
"lambda7", 0);
14022 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *) __Pyx_CyFunction_GetClosure(__pyx_self);
14023 __pyx_cur_scope = __pyx_outer_scope;
14024 __Pyx_TraceCall(
"lambda7", __pyx_f[0], 476, 0, __PYX_ERR(0, 476, __pyx_L1_error));
14025 __Pyx_XDECREF(__pyx_r);
14026 if (unlikely(!__pyx_cur_scope->__pyx_v_wf)) { __Pyx_RaiseClosureNameError(
"wf"); __PYX_ERR(0, 476, __pyx_L1_error) }
14027 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_wf, __pyx_n_s_get_w_dirichlet);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 476, __pyx_L1_error)
14028 __Pyx_GOTREF(__pyx_t_2);
14031 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
14032 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
14033 if (likely(__pyx_t_3)) {
14034 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
14035 __Pyx_INCREF(__pyx_t_3);
14036 __Pyx_INCREF(
function);
14037 __Pyx_DECREF_SET(__pyx_t_2,
function);
14041 #if CYTHON_FAST_PYCALL
14042 if (PyFunction_Check(__pyx_t_2)) {
14043 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
14044 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
14045 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14046 __Pyx_GOTREF(__pyx_t_1);
14049 #if CYTHON_FAST_PYCCALL
14050 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
14051 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
14052 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
14053 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14054 __Pyx_GOTREF(__pyx_t_1);
14058 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 476, __pyx_L1_error)
14059 __Pyx_GOTREF(__pyx_t_5);
14061 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
14063 __Pyx_INCREF(__pyx_v_x);
14064 __Pyx_GIVEREF(__pyx_v_x);
14065 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
14066 __Pyx_INCREF(__pyx_v_t);
14067 __Pyx_GIVEREF(__pyx_v_t);
14068 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
14069 __Pyx_INCREF(__pyx_v_n);
14070 __Pyx_GIVEREF(__pyx_v_n);
14071 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
14072 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
14073 __Pyx_GOTREF(__pyx_t_1);
14074 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14076 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14077 __pyx_r = __pyx_t_1;
14083 __Pyx_XDECREF(__pyx_t_1);
14084 __Pyx_XDECREF(__pyx_t_2);
14085 __Pyx_XDECREF(__pyx_t_3);
14086 __Pyx_XDECREF(__pyx_t_5);
14087 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction.lambda7", __pyx_clineno, __pyx_lineno, __pyx_filename);
14090 __Pyx_XGIVEREF(__pyx_r);
14091 __Pyx_TraceReturn(__pyx_r, 0);
14092 __Pyx_RefNannyFinishContext();
14104 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_wall, CYTHON_UNUSED PyObject *__pyx_v_shearStress) {
14105 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_cur_scope;
14106 PyObject *__pyx_r = NULL;
14107 __Pyx_TraceDeclarations
14108 __Pyx_RefNannyDeclarations
14109 PyObject *__pyx_t_1 = NULL;
14110 PyObject *__pyx_t_2 = NULL;
14111 PyObject *__pyx_t_3 = NULL;
14112 int __pyx_lineno = 0;
14113 const char *__pyx_filename = NULL;
14114 int __pyx_clineno = 0;
14115 __Pyx_TraceFrameInit(__pyx_codeobj__22)
14116 __Pyx_RefNannySetupContext(
"setWallFunction", 0);
14117 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction, __pyx_empty_tuple, NULL);
14118 if (unlikely(!__pyx_cur_scope)) {
14119 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)Py_None);
14120 __Pyx_INCREF(Py_None);
14121 __PYX_ERR(0, 446, __pyx_L1_error)
14123 __Pyx_GOTREF(__pyx_cur_scope);
14125 __Pyx_TraceCall(
"setWallFunction", __pyx_f[0], 446, 0, __PYX_ERR(0, 446, __pyx_L1_error));
14134 __Pyx_INCREF(__pyx_v_wall);
14135 __Pyx_GIVEREF(__pyx_v_wall);
14136 __pyx_cur_scope->__pyx_v_wf = __pyx_v_wall;
14145 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 468, __pyx_L1_error)
14146 __Pyx_GOTREF(__pyx_t_2);
14148 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
14149 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
14150 if (likely(__pyx_t_3)) {
14151 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
14152 __Pyx_INCREF(__pyx_t_3);
14153 __Pyx_INCREF(
function);
14154 __Pyx_DECREF_SET(__pyx_t_2,
function);
14157 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
14158 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14159 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error)
14160 __Pyx_GOTREF(__pyx_t_1);
14161 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14162 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14171 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_setNoSlip);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 469, __pyx_L1_error)
14172 __Pyx_GOTREF(__pyx_t_2);
14174 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
14175 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
14176 if (likely(__pyx_t_3)) {
14177 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
14178 __Pyx_INCREF(__pyx_t_3);
14179 __Pyx_INCREF(
function);
14180 __Pyx_DECREF_SET(__pyx_t_2,
function);
14183 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
14184 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14185 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 469, __pyx_L1_error)
14186 __Pyx_GOTREF(__pyx_t_1);
14187 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14188 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14197 __Pyx_INCREF(__pyx_kp_s_Wall_function);
14198 __Pyx_GIVEREF(__pyx_kp_s_Wall_function);
14199 __Pyx_GOTREF(__pyx_v_self->__pyx_base.BC_type);
14200 __Pyx_DECREF(__pyx_v_self->__pyx_base.BC_type);
14201 __pyx_v_self->__pyx_base.BC_type = __pyx_kp_s_Wall_function;
14210 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_diffusive, 0);
14219 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_lambda3, 0, __pyx_n_s_setWallFunction_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
14220 __Pyx_GOTREF(__pyx_t_1);
14221 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__23);
14222 __Pyx_GIVEREF(__pyx_t_1);
14223 __Pyx_GOTREF(__pyx_v_self->k_dirichlet->uOfXT);
14224 __Pyx_DECREF(__pyx_v_self->k_dirichlet->uOfXT);
14225 __pyx_v_self->k_dirichlet->uOfXT = __pyx_t_1;
14235 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_1lambda4, 0, __pyx_n_s_setWallFunction_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error)
14236 __Pyx_GOTREF(__pyx_t_1);
14237 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__24);
14238 __Pyx_GIVEREF(__pyx_t_1);
14239 __Pyx_GOTREF(__pyx_v_self->dissipation_dirichlet->uOfXT);
14240 __Pyx_DECREF(__pyx_v_self->dissipation_dirichlet->uOfXT);
14241 __pyx_v_self->dissipation_dirichlet->uOfXT = __pyx_t_1;
14251 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_2lambda5, 0, __pyx_n_s_setWallFunction_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error)
14252 __Pyx_GOTREF(__pyx_t_1);
14253 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__25);
14254 __Pyx_GIVEREF(__pyx_t_1);
14255 __Pyx_GOTREF(__pyx_v_self->u_dirichlet->uOfXT);
14256 __Pyx_DECREF(__pyx_v_self->u_dirichlet->uOfXT);
14257 __pyx_v_self->u_dirichlet->uOfXT = __pyx_t_1;
14267 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_3lambda6, 0, __pyx_n_s_setWallFunction_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
14268 __Pyx_GOTREF(__pyx_t_1);
14269 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__26);
14270 __Pyx_GIVEREF(__pyx_t_1);
14271 __Pyx_GOTREF(__pyx_v_self->v_dirichlet->uOfXT);
14272 __Pyx_DECREF(__pyx_v_self->v_dirichlet->uOfXT);
14273 __pyx_v_self->v_dirichlet->uOfXT = __pyx_t_1;
14283 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setWallFunction_4lambda7, 0, __pyx_n_s_setWallFunction_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
14284 __Pyx_GOTREF(__pyx_t_1);
14285 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__27);
14286 __Pyx_GIVEREF(__pyx_t_1);
14287 __Pyx_GOTREF(__pyx_v_self->w_dirichlet->uOfXT);
14288 __Pyx_DECREF(__pyx_v_self->w_dirichlet->uOfXT);
14289 __pyx_v_self->w_dirichlet->uOfXT = __pyx_t_1;
14301 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14304 __Pyx_XDECREF(__pyx_t_1);
14305 __Pyx_XDECREF(__pyx_t_2);
14306 __Pyx_XDECREF(__pyx_t_3);
14307 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setWallFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
14310 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
14311 __Pyx_XGIVEREF(__pyx_r);
14312 __Pyx_TraceReturn(__pyx_r, 0);
14313 __Pyx_RefNannyFinishContext();
14326 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14327 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh[] =
"BC_RANS.setMoveMesh(self, last_pos, h=(0., 0., 0.), rot_matrix=None)\n\n Sets boundary conditions for moving the mesh with a rigid body\n\n Parameters\n ----------\n last_pos: array_like\n last position of rigig body\n h: array_like\n displacement of the body\n rot_matrix:\n rotation matrix describing displament due to rotation between last\n position and new position (3x3 array)\n\n (!) if set manually, the input arrays should be updated externally\n without loosing their memory address\n ";
14328 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh = {
"setMoveMesh", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh};
14329 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14330 PyObject *__pyx_v_last_pos = 0;
14331 PyObject *__pyx_v_h = 0;
14332 PyObject *__pyx_v_rot_matrix = 0;
14333 int __pyx_lineno = 0;
14334 const char *__pyx_filename = NULL;
14335 int __pyx_clineno = 0;
14336 PyObject *__pyx_r = 0;
14337 __Pyx_RefNannyDeclarations
14338 __Pyx_RefNannySetupContext(
"setMoveMesh (wrapper)", 0);
14340 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_last_pos,&__pyx_n_s_h,&__pyx_n_s_rot_matrix,0};
14341 PyObject* values[3] = {0,0,0};
14342 values[1] = ((PyObject *)__pyx_tuple__28);
14343 values[2] = ((PyObject *)Py_None);
14344 if (unlikely(__pyx_kwds)) {
14345 Py_ssize_t kw_args;
14346 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14347 switch (pos_args) {
14348 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14349 CYTHON_FALLTHROUGH;
14350 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14351 CYTHON_FALLTHROUGH;
14352 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14353 CYTHON_FALLTHROUGH;
14355 default:
goto __pyx_L5_argtuple_error;
14357 kw_args = PyDict_Size(__pyx_kwds);
14358 switch (pos_args) {
14360 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_last_pos)) != 0)) kw_args--;
14361 else goto __pyx_L5_argtuple_error;
14362 CYTHON_FALLTHROUGH;
14365 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h);
14366 if (value) { values[1] = value; kw_args--; }
14368 CYTHON_FALLTHROUGH;
14371 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rot_matrix);
14372 if (value) { values[2] = value; kw_args--; }
14375 if (unlikely(kw_args > 0)) {
14376 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setMoveMesh") < 0)) __PYX_ERR(0, 494, __pyx_L3_error)
14379 switch (PyTuple_GET_SIZE(__pyx_args)) {
14380 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14381 CYTHON_FALLTHROUGH;
14382 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14383 CYTHON_FALLTHROUGH;
14384 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14386 default:
goto __pyx_L5_argtuple_error;
14389 __pyx_v_last_pos = values[0];
14390 __pyx_v_h = values[1];
14391 __pyx_v_rot_matrix = values[2];
14393 goto __pyx_L4_argument_unpacking_done;
14394 __pyx_L5_argtuple_error:;
14395 __Pyx_RaiseArgtupleInvalid(
"setMoveMesh", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 494, __pyx_L3_error)
14397 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
14398 __Pyx_RefNannyFinishContext();
14400 __pyx_L4_argument_unpacking_done:;
14401 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_last_pos, __pyx_v_h, __pyx_v_rot_matrix);
14404 __Pyx_RefNannyFinishContext();
14417 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_lambda8(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14418 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_lambda8 = {
"lambda8", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_lambda8, METH_VARARGS|METH_KEYWORDS, 0};
14419 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_lambda8(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14420 PyObject *__pyx_v_x = 0;
14421 PyObject *__pyx_v_t = 0;
14422 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
14423 int __pyx_lineno = 0;
14424 const char *__pyx_filename = NULL;
14425 int __pyx_clineno = 0;
14426 PyObject *__pyx_r = 0;
14427 __Pyx_RefNannyDeclarations
14428 __Pyx_RefNannySetupContext(
"lambda8 (wrapper)", 0);
14430 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
14431 PyObject* values[3] = {0,0,0};
14432 values[2] = ((PyObject *)((PyObject *)Py_None));
14433 if (unlikely(__pyx_kwds)) {
14434 Py_ssize_t kw_args;
14435 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14436 switch (pos_args) {
14437 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14438 CYTHON_FALLTHROUGH;
14439 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14440 CYTHON_FALLTHROUGH;
14441 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14442 CYTHON_FALLTHROUGH;
14444 default:
goto __pyx_L5_argtuple_error;
14446 kw_args = PyDict_Size(__pyx_kwds);
14447 switch (pos_args) {
14449 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
14450 else goto __pyx_L5_argtuple_error;
14451 CYTHON_FALLTHROUGH;
14453 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
14455 __Pyx_RaiseArgtupleInvalid(
"lambda8", 0, 2, 3, 1); __PYX_ERR(0, 518, __pyx_L3_error)
14457 CYTHON_FALLTHROUGH;
14460 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
14461 if (value) { values[2] = value; kw_args--; }
14464 if (unlikely(kw_args > 0)) {
14465 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda8") < 0)) __PYX_ERR(0, 518, __pyx_L3_error)
14468 switch (PyTuple_GET_SIZE(__pyx_args)) {
14469 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14470 CYTHON_FALLTHROUGH;
14471 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14472 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14474 default:
goto __pyx_L5_argtuple_error;
14477 __pyx_v_x = values[0];
14478 __pyx_v_t = values[1];
14479 __pyx_v_n = values[2];
14481 goto __pyx_L4_argument_unpacking_done;
14482 __pyx_L5_argtuple_error:;
14483 __Pyx_RaiseArgtupleInvalid(
"lambda8", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 518, __pyx_L3_error)
14485 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda8", __pyx_clineno, __pyx_lineno, __pyx_filename);
14486 __Pyx_RefNannyFinishContext();
14488 __pyx_L4_argument_unpacking_done:;
14489 __pyx_r = __pyx_lambda_funcdef_lambda8(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
14492 __Pyx_RefNannyFinishContext();
14496 static PyObject *__pyx_lambda_funcdef_lambda8(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
14497 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_cur_scope;
14498 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_outer_scope;
14499 PyObject *__pyx_r = NULL;
14500 __Pyx_TraceDeclarations
14501 __Pyx_RefNannyDeclarations
14502 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
14504 PyObject *__pyx_t_3 = NULL;
14505 int __pyx_lineno = 0;
14506 const char *__pyx_filename = NULL;
14507 int __pyx_clineno = 0;
14508 __Pyx_RefNannySetupContext(
"lambda8", 0);
14509 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
14510 __pyx_cur_scope = __pyx_outer_scope;
14511 __Pyx_TraceCall(
"lambda8", __pyx_f[0], 518, 0, __PYX_ERR(0, 518, __pyx_L1_error));
14512 __Pyx_XDECREF(__pyx_r);
14513 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 518, __pyx_L1_error) }
14514 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 518, __pyx_L1_error)
14515 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 518, __pyx_L1_error)
14516 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_hx(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2, 0));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 518, __pyx_L1_error)
14517 __Pyx_GOTREF(__pyx_t_3);
14518 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14519 __pyx_t_1.memview = NULL;
14520 __pyx_t_1.data = NULL;
14521 __pyx_r = __pyx_t_3;
14527 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14528 __Pyx_XDECREF(__pyx_t_3);
14529 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda8", __pyx_clineno, __pyx_lineno, __pyx_filename);
14532 __Pyx_XGIVEREF(__pyx_r);
14533 __Pyx_TraceReturn(__pyx_r, 0);
14534 __Pyx_RefNannyFinishContext();
14547 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_1lambda9(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14548 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_1lambda9 = {
"lambda9", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_1lambda9, METH_VARARGS|METH_KEYWORDS, 0};
14549 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_1lambda9(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14550 PyObject *__pyx_v_x = 0;
14551 PyObject *__pyx_v_t = 0;
14552 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
14553 int __pyx_lineno = 0;
14554 const char *__pyx_filename = NULL;
14555 int __pyx_clineno = 0;
14556 PyObject *__pyx_r = 0;
14557 __Pyx_RefNannyDeclarations
14558 __Pyx_RefNannySetupContext(
"lambda9 (wrapper)", 0);
14560 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
14561 PyObject* values[3] = {0,0,0};
14562 values[2] = ((PyObject *)((PyObject *)Py_None));
14563 if (unlikely(__pyx_kwds)) {
14564 Py_ssize_t kw_args;
14565 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14566 switch (pos_args) {
14567 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14568 CYTHON_FALLTHROUGH;
14569 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14570 CYTHON_FALLTHROUGH;
14571 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14572 CYTHON_FALLTHROUGH;
14574 default:
goto __pyx_L5_argtuple_error;
14576 kw_args = PyDict_Size(__pyx_kwds);
14577 switch (pos_args) {
14579 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
14580 else goto __pyx_L5_argtuple_error;
14581 CYTHON_FALLTHROUGH;
14583 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
14585 __Pyx_RaiseArgtupleInvalid(
"lambda9", 0, 2, 3, 1); __PYX_ERR(0, 519, __pyx_L3_error)
14587 CYTHON_FALLTHROUGH;
14590 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
14591 if (value) { values[2] = value; kw_args--; }
14594 if (unlikely(kw_args > 0)) {
14595 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda9") < 0)) __PYX_ERR(0, 519, __pyx_L3_error)
14598 switch (PyTuple_GET_SIZE(__pyx_args)) {
14599 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14600 CYTHON_FALLTHROUGH;
14601 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14602 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14604 default:
goto __pyx_L5_argtuple_error;
14607 __pyx_v_x = values[0];
14608 __pyx_v_t = values[1];
14609 __pyx_v_n = values[2];
14611 goto __pyx_L4_argument_unpacking_done;
14612 __pyx_L5_argtuple_error:;
14613 __Pyx_RaiseArgtupleInvalid(
"lambda9", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 519, __pyx_L3_error)
14615 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda9", __pyx_clineno, __pyx_lineno, __pyx_filename);
14616 __Pyx_RefNannyFinishContext();
14618 __pyx_L4_argument_unpacking_done:;
14619 __pyx_r = __pyx_lambda_funcdef_lambda9(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
14622 __Pyx_RefNannyFinishContext();
14626 static PyObject *__pyx_lambda_funcdef_lambda9(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
14627 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_cur_scope;
14628 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_outer_scope;
14629 PyObject *__pyx_r = NULL;
14630 __Pyx_TraceDeclarations
14631 __Pyx_RefNannyDeclarations
14632 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
14634 PyObject *__pyx_t_3 = NULL;
14635 int __pyx_lineno = 0;
14636 const char *__pyx_filename = NULL;
14637 int __pyx_clineno = 0;
14638 __Pyx_RefNannySetupContext(
"lambda9", 0);
14639 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
14640 __pyx_cur_scope = __pyx_outer_scope;
14641 __Pyx_TraceCall(
"lambda9", __pyx_f[0], 519, 0, __PYX_ERR(0, 519, __pyx_L1_error));
14642 __Pyx_XDECREF(__pyx_r);
14643 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 519, __pyx_L1_error) }
14644 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 519, __pyx_L1_error)
14645 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 519, __pyx_L1_error)
14646 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_hy(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2, 0));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 519, __pyx_L1_error)
14647 __Pyx_GOTREF(__pyx_t_3);
14648 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14649 __pyx_t_1.memview = NULL;
14650 __pyx_t_1.data = NULL;
14651 __pyx_r = __pyx_t_3;
14657 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14658 __Pyx_XDECREF(__pyx_t_3);
14659 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda9", __pyx_clineno, __pyx_lineno, __pyx_filename);
14662 __Pyx_XGIVEREF(__pyx_r);
14663 __Pyx_TraceReturn(__pyx_r, 0);
14664 __Pyx_RefNannyFinishContext();
14677 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_2lambda10(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14678 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_2lambda10 = {
"lambda10", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_2lambda10, METH_VARARGS|METH_KEYWORDS, 0};
14679 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_2lambda10(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14680 PyObject *__pyx_v_x = 0;
14681 PyObject *__pyx_v_t = 0;
14682 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
14683 int __pyx_lineno = 0;
14684 const char *__pyx_filename = NULL;
14685 int __pyx_clineno = 0;
14686 PyObject *__pyx_r = 0;
14687 __Pyx_RefNannyDeclarations
14688 __Pyx_RefNannySetupContext(
"lambda10 (wrapper)", 0);
14690 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
14691 PyObject* values[3] = {0,0,0};
14692 values[2] = ((PyObject *)((PyObject *)Py_None));
14693 if (unlikely(__pyx_kwds)) {
14694 Py_ssize_t kw_args;
14695 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14696 switch (pos_args) {
14697 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14698 CYTHON_FALLTHROUGH;
14699 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14700 CYTHON_FALLTHROUGH;
14701 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14702 CYTHON_FALLTHROUGH;
14704 default:
goto __pyx_L5_argtuple_error;
14706 kw_args = PyDict_Size(__pyx_kwds);
14707 switch (pos_args) {
14709 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
14710 else goto __pyx_L5_argtuple_error;
14711 CYTHON_FALLTHROUGH;
14713 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
14715 __Pyx_RaiseArgtupleInvalid(
"lambda10", 0, 2, 3, 1); __PYX_ERR(0, 520, __pyx_L3_error)
14717 CYTHON_FALLTHROUGH;
14720 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
14721 if (value) { values[2] = value; kw_args--; }
14724 if (unlikely(kw_args > 0)) {
14725 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda10") < 0)) __PYX_ERR(0, 520, __pyx_L3_error)
14728 switch (PyTuple_GET_SIZE(__pyx_args)) {
14729 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14730 CYTHON_FALLTHROUGH;
14731 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14732 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14734 default:
goto __pyx_L5_argtuple_error;
14737 __pyx_v_x = values[0];
14738 __pyx_v_t = values[1];
14739 __pyx_v_n = values[2];
14741 goto __pyx_L4_argument_unpacking_done;
14742 __pyx_L5_argtuple_error:;
14743 __Pyx_RaiseArgtupleInvalid(
"lambda10", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 520, __pyx_L3_error)
14745 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda10", __pyx_clineno, __pyx_lineno, __pyx_filename);
14746 __Pyx_RefNannyFinishContext();
14748 __pyx_L4_argument_unpacking_done:;
14749 __pyx_r = __pyx_lambda_funcdef_lambda10(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
14752 __Pyx_RefNannyFinishContext();
14756 static PyObject *__pyx_lambda_funcdef_lambda10(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
14757 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_cur_scope;
14758 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_outer_scope;
14759 PyObject *__pyx_r = NULL;
14760 __Pyx_TraceDeclarations
14761 __Pyx_RefNannyDeclarations
14762 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
14764 PyObject *__pyx_t_3 = NULL;
14765 int __pyx_lineno = 0;
14766 const char *__pyx_filename = NULL;
14767 int __pyx_clineno = 0;
14768 __Pyx_RefNannySetupContext(
"lambda10", 0);
14769 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *) __Pyx_CyFunction_GetClosure(__pyx_self);
14770 __pyx_cur_scope = __pyx_outer_scope;
14771 __Pyx_TraceCall(
"lambda10", __pyx_f[0], 520, 0, __PYX_ERR(0, 520, __pyx_L1_error));
14772 __Pyx_XDECREF(__pyx_r);
14773 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 520, __pyx_L1_error) }
14774 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 520, __pyx_L1_error)
14775 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 520, __pyx_L1_error)
14776 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_hz(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2, 0));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 520, __pyx_L1_error)
14777 __Pyx_GOTREF(__pyx_t_3);
14778 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14779 __pyx_t_1.memview = NULL;
14780 __pyx_t_1.data = NULL;
14781 __pyx_r = __pyx_t_3;
14787 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
14788 __Pyx_XDECREF(__pyx_t_3);
14789 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh.lambda10", __pyx_clineno, __pyx_lineno, __pyx_filename);
14792 __Pyx_XGIVEREF(__pyx_r);
14793 __Pyx_TraceReturn(__pyx_r, 0);
14794 __Pyx_RefNannyFinishContext();
14806 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_last_pos, PyObject *__pyx_v_h, PyObject *__pyx_v_rot_matrix) {
14807 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_cur_scope;
14808 PyObject *__pyx_r = NULL;
14809 __Pyx_TraceDeclarations
14810 __Pyx_RefNannyDeclarations
14813 PyObject *__pyx_t_3 = NULL;
14814 PyObject *__pyx_t_4 = NULL;
14815 PyObject *__pyx_t_5 = NULL;
14816 PyObject *__pyx_t_6 = NULL;
14817 PyObject *__pyx_t_7 = NULL;
14818 PyObject *__pyx_t_8 = NULL;
14819 __Pyx_memviewslice __pyx_t_9 = { 0, 0, { 0 }, { 0 }, { 0 } };
14820 __Pyx_memviewslice __pyx_t_10 = { 0, 0, { 0 }, { 0 }, { 0 } };
14821 int __pyx_lineno = 0;
14822 const char *__pyx_filename = NULL;
14823 int __pyx_clineno = 0;
14824 __Pyx_TraceFrameInit(__pyx_codeobj__29)
14825 __Pyx_RefNannySetupContext(
"setMoveMesh", 0);
14826 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh, __pyx_empty_tuple, NULL);
14827 if (unlikely(!__pyx_cur_scope)) {
14828 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)Py_None);
14829 __Pyx_INCREF(Py_None);
14830 __PYX_ERR(0, 494, __pyx_L1_error)
14832 __Pyx_GOTREF(__pyx_cur_scope);
14834 __Pyx_TraceCall(
"setMoveMesh", __pyx_f[0], 494, 0, __PYX_ERR(0, 494, __pyx_L1_error));
14835 __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
14836 __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
14837 __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
14838 __Pyx_INCREF(__pyx_v_rot_matrix);
14847 __pyx_t_1 = (__pyx_v_rot_matrix == Py_None);
14848 __pyx_t_2 = (__pyx_t_1 != 0);
14858 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 512, __pyx_L1_error)
14859 __Pyx_GOTREF(__pyx_t_4);
14860 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_array);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error)
14861 __Pyx_GOTREF(__pyx_t_5);
14862 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14863 __pyx_t_4 = PyList_New(3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 512, __pyx_L1_error)
14864 __Pyx_GOTREF(__pyx_t_4);
14865 __Pyx_INCREF(__pyx_float_1_);
14866 __Pyx_GIVEREF(__pyx_float_1_);
14867 PyList_SET_ITEM(__pyx_t_4, 0, __pyx_float_1_);
14868 __Pyx_INCREF(__pyx_float_0_);
14869 __Pyx_GIVEREF(__pyx_float_0_);
14870 PyList_SET_ITEM(__pyx_t_4, 1, __pyx_float_0_);
14871 __Pyx_INCREF(__pyx_float_0_);
14872 __Pyx_GIVEREF(__pyx_float_0_);
14873 PyList_SET_ITEM(__pyx_t_4, 2, __pyx_float_0_);
14882 __pyx_t_6 = PyList_New(3);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 513, __pyx_L1_error)
14883 __Pyx_GOTREF(__pyx_t_6);
14884 __Pyx_INCREF(__pyx_float_0_);
14885 __Pyx_GIVEREF(__pyx_float_0_);
14886 PyList_SET_ITEM(__pyx_t_6, 0, __pyx_float_0_);
14887 __Pyx_INCREF(__pyx_float_1_);
14888 __Pyx_GIVEREF(__pyx_float_1_);
14889 PyList_SET_ITEM(__pyx_t_6, 1, __pyx_float_1_);
14890 __Pyx_INCREF(__pyx_float_0_);
14891 __Pyx_GIVEREF(__pyx_float_0_);
14892 PyList_SET_ITEM(__pyx_t_6, 2, __pyx_float_0_);
14901 __pyx_t_7 = PyList_New(3);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 514, __pyx_L1_error)
14902 __Pyx_GOTREF(__pyx_t_7);
14903 __Pyx_INCREF(__pyx_float_0_);
14904 __Pyx_GIVEREF(__pyx_float_0_);
14905 PyList_SET_ITEM(__pyx_t_7, 0, __pyx_float_0_);
14906 __Pyx_INCREF(__pyx_float_0_);
14907 __Pyx_GIVEREF(__pyx_float_0_);
14908 PyList_SET_ITEM(__pyx_t_7, 1, __pyx_float_0_);
14909 __Pyx_INCREF(__pyx_float_1_);
14910 __Pyx_GIVEREF(__pyx_float_1_);
14911 PyList_SET_ITEM(__pyx_t_7, 2, __pyx_float_1_);
14920 __pyx_t_8 = PyList_New(3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 512, __pyx_L1_error)
14921 __Pyx_GOTREF(__pyx_t_8);
14922 __Pyx_GIVEREF(__pyx_t_4);
14923 PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
14924 __Pyx_GIVEREF(__pyx_t_6);
14925 PyList_SET_ITEM(__pyx_t_8, 1, __pyx_t_6);
14926 __Pyx_GIVEREF(__pyx_t_7);
14927 PyList_SET_ITEM(__pyx_t_8, 2, __pyx_t_7);
14932 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
14933 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
14934 if (likely(__pyx_t_7)) {
14935 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
14936 __Pyx_INCREF(__pyx_t_7);
14937 __Pyx_INCREF(
function);
14938 __Pyx_DECREF_SET(__pyx_t_5,
function);
14941 __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_8);
14942 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
14943 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
14944 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 512, __pyx_L1_error)
14945 __Pyx_GOTREF(__pyx_t_3);
14946 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14947 __Pyx_DECREF_SET(__pyx_v_rot_matrix, __pyx_t_3);
14966 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_dsds_double(__pyx_v_rot_matrix, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 515, __pyx_L1_error)
14967 __PYX_XDEC_MEMVIEW(&__pyx_cur_scope->__pyx_v_self->body_python_rot_matrix, 0);
14968 __pyx_cur_scope->__pyx_v_self->body_python_rot_matrix = __pyx_t_9;
14969 __pyx_t_9.memview = NULL;
14970 __pyx_t_9.data = NULL;
14979 __pyx_t_10 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_last_pos, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 516, __pyx_L1_error)
14980 __PYX_XDEC_MEMVIEW(&__pyx_cur_scope->__pyx_v_self->body_python_last_pos, 0);
14981 __pyx_cur_scope->__pyx_v_self->body_python_last_pos = __pyx_t_10;
14982 __pyx_t_10.memview = NULL;
14983 __pyx_t_10.data = NULL;
14992 __pyx_t_10 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_h, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 517, __pyx_L1_error)
14993 __PYX_XDEC_MEMVIEW(&__pyx_cur_scope->__pyx_v_self->body_python_h, 0);
14994 __pyx_cur_scope->__pyx_v_self->body_python_h = __pyx_t_10;
14995 __pyx_t_10.memview = NULL;
14996 __pyx_t_10.data = NULL;
15005 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_lambda8, 0, __pyx_n_s_setMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 518, __pyx_L1_error)
15006 __Pyx_GOTREF(__pyx_t_3);
15007 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__30);
15008 __Pyx_GIVEREF(__pyx_t_3);
15009 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->hx_dirichlet->uOfXT);
15010 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->hx_dirichlet->uOfXT);
15011 __pyx_cur_scope->__pyx_v_self->hx_dirichlet->uOfXT = __pyx_t_3;
15021 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_1lambda9, 0, __pyx_n_s_setMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 519, __pyx_L1_error)
15022 __Pyx_GOTREF(__pyx_t_3);
15023 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__31);
15024 __Pyx_GIVEREF(__pyx_t_3);
15025 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->hy_dirichlet->uOfXT);
15026 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->hy_dirichlet->uOfXT);
15027 __pyx_cur_scope->__pyx_v_self->hy_dirichlet->uOfXT = __pyx_t_3;
15037 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setMoveMesh_2lambda10, 0, __pyx_n_s_setMoveMesh_locals_lambda, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 520, __pyx_L1_error)
15038 __Pyx_GOTREF(__pyx_t_3);
15039 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__32);
15040 __Pyx_GIVEREF(__pyx_t_3);
15041 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->hz_dirichlet->uOfXT);
15042 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->hz_dirichlet->uOfXT);
15043 __pyx_cur_scope->__pyx_v_self->hz_dirichlet->uOfXT = __pyx_t_3;
15055 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
15058 __Pyx_XDECREF(__pyx_t_3);
15059 __Pyx_XDECREF(__pyx_t_4);
15060 __Pyx_XDECREF(__pyx_t_5);
15061 __Pyx_XDECREF(__pyx_t_6);
15062 __Pyx_XDECREF(__pyx_t_7);
15063 __Pyx_XDECREF(__pyx_t_8);
15064 __PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
15065 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
15066 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setMoveMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
15069 __Pyx_XDECREF(__pyx_v_rot_matrix);
15070 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
15071 __Pyx_XGIVEREF(__pyx_r);
15072 __Pyx_TraceReturn(__pyx_r, 0);
15073 __Pyx_RefNannyFinishContext();
15085 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15086 __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_h(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x, CYTHON_UNUSED
double __pyx_v_t,
int __pyx_skip_dispatch) {
15087 PyArrayObject *__pyx_v_hx = 0;
15088 double __pyx_v_x_0[3];
15089 double __pyx_v_new_x_0[3];
15090 __Pyx_memviewslice __pyx_r = { 0, 0, { 0 }, { 0 }, { 0 } };
15091 __Pyx_TraceDeclarations
15092 __Pyx_RefNannyDeclarations
15093 PyObject *__pyx_t_1 = NULL;
15094 PyObject *__pyx_t_2 = NULL;
15095 PyObject *__pyx_t_3 = NULL;
15096 PyObject *__pyx_t_4 = NULL;
15097 PyObject *__pyx_t_5 = NULL;
15098 PyObject *__pyx_t_6 = NULL;
15100 PyObject *__pyx_t_8 = NULL;
15101 __Pyx_memviewslice __pyx_t_9 = { 0, 0, { 0 }, { 0 }, { 0 } };
15102 Py_ssize_t __pyx_t_10;
15103 Py_ssize_t __pyx_t_11;
15104 double __pyx_t_12[3];
15105 int __pyx_lineno = 0;
15106 const char *__pyx_filename = NULL;
15107 int __pyx_clineno = 0;
15108 __Pyx_TraceFrameInit(__pyx_codeobj__33)
15109 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_h", 0);
15110 __Pyx_TraceCall(
"__cpp_MoveMesh_h", __pyx_f[0], 522, 0, __PYX_ERR(0, 522, __pyx_L1_error));
15112 if (unlikely(__pyx_skip_dispatch)) ;
15114 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
15115 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15116 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15117 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
15118 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15120 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cpp_MoveMesh_h);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 522, __pyx_L1_error)
15121 __Pyx_GOTREF(__pyx_t_1);
15122 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h)) {
15123 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_x, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error)
15124 __Pyx_GOTREF(__pyx_t_3);
15125 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 522, __pyx_L1_error)
15126 __Pyx_GOTREF(__pyx_t_4);
15127 __Pyx_INCREF(__pyx_t_1);
15128 __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
15130 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
15131 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
15132 if (likely(__pyx_t_6)) {
15133 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
15134 __Pyx_INCREF(__pyx_t_6);
15135 __Pyx_INCREF(
function);
15136 __Pyx_DECREF_SET(__pyx_t_5,
function);
15140 #if CYTHON_FAST_PYCALL
15141 if (PyFunction_Check(__pyx_t_5)) {
15142 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15143 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
15144 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15145 __Pyx_GOTREF(__pyx_t_2);
15146 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15147 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15150 #if CYTHON_FAST_PYCCALL
15151 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
15152 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15153 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
15154 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15155 __Pyx_GOTREF(__pyx_t_2);
15156 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15157 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15161 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 522, __pyx_L1_error)
15162 __Pyx_GOTREF(__pyx_t_8);
15164 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
15166 __Pyx_GIVEREF(__pyx_t_3);
15167 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_3);
15168 __Pyx_GIVEREF(__pyx_t_4);
15169 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
15172 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
15173 __Pyx_GOTREF(__pyx_t_2);
15174 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
15176 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15177 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_t_2, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 522, __pyx_L1_error)
15178 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15179 __pyx_r = __pyx_t_9;
15180 __pyx_t_9.memview = NULL;
15181 __pyx_t_9.data = NULL;
15182 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15185 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15186 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15187 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
15188 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
15189 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15192 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15193 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15205 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 525, __pyx_L1_error)
15206 __Pyx_GOTREF(__pyx_t_2);
15207 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 525, __pyx_L1_error)
15208 __Pyx_GOTREF(__pyx_t_5);
15209 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15211 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
15212 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
15213 if (likely(__pyx_t_2)) {
15214 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
15215 __Pyx_INCREF(__pyx_t_2);
15216 __Pyx_INCREF(
function);
15217 __Pyx_DECREF_SET(__pyx_t_5,
function);
15220 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_int_3);
15221 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
15222 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 525, __pyx_L1_error)
15223 __Pyx_GOTREF(__pyx_t_1);
15224 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15225 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 525, __pyx_L1_error)
15226 __pyx_v_hx = ((PyArrayObject *)__pyx_t_1);
15238 (__pyx_v_x_0[0]) = ((*((
double *) ( (__pyx_v_x.data + __pyx_t_10 * __pyx_v_x.strides[0]) ))) - (*((
double *) ( (__pyx_v_self->body_python_last_pos.data + __pyx_t_11 * __pyx_v_self->body_python_last_pos.strides[0]) ))));
15249 (__pyx_v_x_0[1]) = ((*((
double *) ( (__pyx_v_x.data + __pyx_t_11 * __pyx_v_x.strides[0]) ))) - (*((
double *) ( (__pyx_v_self->body_python_last_pos.data + __pyx_t_10 * __pyx_v_self->body_python_last_pos.strides[0]) ))));
15260 (__pyx_v_x_0[2]) = ((*((
double *) ( (__pyx_v_x.data + __pyx_t_10 * __pyx_v_x.strides[0]) ))) - (*((
double *) ( (__pyx_v_self->body_python_last_pos.data + __pyx_t_11 * __pyx_v_self->body_python_last_pos.strides[0]) ))));
15269 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 529, __pyx_L1_error)
15270 __Pyx_GOTREF(__pyx_t_5);
15271 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_dot);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 529, __pyx_L1_error)
15272 __Pyx_GOTREF(__pyx_t_2);
15273 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15274 __pyx_t_5 = __Pyx_carray_to_py_double(__pyx_v_x_0, 3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 529, __pyx_L1_error)
15275 __Pyx_GOTREF(__pyx_t_5);
15276 __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_self->body_python_rot_matrix, 2, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 529, __pyx_L1_error)
15277 __Pyx_GOTREF(__pyx_t_8);
15280 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
15281 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
15282 if (likely(__pyx_t_4)) {
15283 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
15284 __Pyx_INCREF(__pyx_t_4);
15285 __Pyx_INCREF(
function);
15286 __Pyx_DECREF_SET(__pyx_t_2,
function);
15290 #if CYTHON_FAST_PYCALL
15291 if (PyFunction_Check(__pyx_t_2)) {
15292 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_5, __pyx_t_8};
15293 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error)
15294 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
15295 __Pyx_GOTREF(__pyx_t_1);
15296 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15297 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
15300 #if CYTHON_FAST_PYCCALL
15301 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
15302 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_t_5, __pyx_t_8};
15303 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error)
15304 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
15305 __Pyx_GOTREF(__pyx_t_1);
15306 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15307 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
15311 __pyx_t_3 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 529, __pyx_L1_error)
15312 __Pyx_GOTREF(__pyx_t_3);
15314 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
15316 __Pyx_GIVEREF(__pyx_t_5);
15317 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_7, __pyx_t_5);
15318 __Pyx_GIVEREF(__pyx_t_8);
15319 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_7, __pyx_t_8);
15322 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error)
15323 __Pyx_GOTREF(__pyx_t_1);
15324 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15326 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15327 if (unlikely(__Pyx_carray_from_py_double(__pyx_t_1, __pyx_t_12, 3) < 0)) __PYX_ERR(0, 529, __pyx_L1_error)
15328 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15329 memcpy(&(__pyx_v_new_x_0[0]), __pyx_t_12,
sizeof(__pyx_v_new_x_0[0]) * (3));
15339 __pyx_t_1 = PyFloat_FromDouble((((__pyx_v_new_x_0[0]) - (__pyx_v_x_0[0])) + (*((
double *) ( (__pyx_v_self->body_python_h.data + __pyx_t_11 * __pyx_v_self->body_python_h.strides[0]) )))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 530, __pyx_L1_error)
15340 __Pyx_GOTREF(__pyx_t_1);
15341 if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_hx), 0, __pyx_t_1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0) < 0)) __PYX_ERR(0, 530, __pyx_L1_error)
15342 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15352 __pyx_t_1 = PyFloat_FromDouble((((__pyx_v_new_x_0[1]) - (__pyx_v_x_0[1])) + (*((
double *) ( (__pyx_v_self->body_python_h.data + __pyx_t_11 * __pyx_v_self->body_python_h.strides[0]) )))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error)
15353 __Pyx_GOTREF(__pyx_t_1);
15354 if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_hx), 1, __pyx_t_1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0) < 0)) __PYX_ERR(0, 531, __pyx_L1_error)
15355 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15365 __pyx_t_1 = PyFloat_FromDouble((((__pyx_v_new_x_0[2]) - (__pyx_v_x_0[2])) + (*((
double *) ( (__pyx_v_self->body_python_h.data + __pyx_t_11 * __pyx_v_self->body_python_h.strides[0]) )))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 532, __pyx_L1_error)
15366 __Pyx_GOTREF(__pyx_t_1);
15367 if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_hx), 2, __pyx_t_1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0) < 0)) __PYX_ERR(0, 532, __pyx_L1_error)
15368 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15377 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(((PyObject *)__pyx_v_hx), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 533, __pyx_L1_error)
15378 __pyx_r = __pyx_t_9;
15379 __pyx_t_9.memview = NULL;
15380 __pyx_t_9.data = NULL;
15393 __Pyx_XDECREF(__pyx_t_1);
15394 __Pyx_XDECREF(__pyx_t_2);
15395 __Pyx_XDECREF(__pyx_t_3);
15396 __Pyx_XDECREF(__pyx_t_4);
15397 __Pyx_XDECREF(__pyx_t_5);
15398 __Pyx_XDECREF(__pyx_t_6);
15399 __Pyx_XDECREF(__pyx_t_8);
15400 __PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
15401 __pyx_r.data = NULL;
15402 __pyx_r.memview = NULL;
15403 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
15406 if (unlikely(!__pyx_r.memview)) {
15407 PyErr_SetString(PyExc_TypeError,
"Memoryview return value is not initialized");
15410 __Pyx_XDECREF((PyObject *)__pyx_v_hx);
15411 __Pyx_TraceReturn(Py_None, 0);
15412 __Pyx_RefNannyFinishContext();
15417 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15418 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_32__cpp_MoveMesh_h[] =
"BC_RANS.__cpp_MoveMesh_h(self, double[:] x, double t) -> double[:]";
15419 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h = {
"__cpp_MoveMesh_h", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_32__cpp_MoveMesh_h};
15420 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15421 __Pyx_memviewslice __pyx_v_x = { 0, 0, { 0 }, { 0 }, { 0 } };
15423 int __pyx_lineno = 0;
15424 const char *__pyx_filename = NULL;
15425 int __pyx_clineno = 0;
15426 PyObject *__pyx_r = 0;
15427 __Pyx_RefNannyDeclarations
15428 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_h (wrapper)", 0);
15430 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,0};
15431 PyObject* values[2] = {0,0};
15432 if (unlikely(__pyx_kwds)) {
15433 Py_ssize_t kw_args;
15434 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15435 switch (pos_args) {
15436 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15437 CYTHON_FALLTHROUGH;
15438 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15439 CYTHON_FALLTHROUGH;
15441 default:
goto __pyx_L5_argtuple_error;
15443 kw_args = PyDict_Size(__pyx_kwds);
15444 switch (pos_args) {
15446 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
15447 else goto __pyx_L5_argtuple_error;
15448 CYTHON_FALLTHROUGH;
15450 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
15452 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_h", 1, 2, 2, 1); __PYX_ERR(0, 522, __pyx_L3_error)
15455 if (unlikely(kw_args > 0)) {
15456 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cpp_MoveMesh_h") < 0)) __PYX_ERR(0, 522, __pyx_L3_error)
15458 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
15459 goto __pyx_L5_argtuple_error;
15461 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15462 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15464 __pyx_v_x = __Pyx_PyObject_to_MemoryviewSlice_ds_double(values[0], PyBUF_WRITABLE);
if (unlikely(!__pyx_v_x.memview)) __PYX_ERR(0, 522, __pyx_L3_error)
15465 __pyx_v_t = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 522, __pyx_L3_error)
15467 goto __pyx_L4_argument_unpacking_done;
15468 __pyx_L5_argtuple_error:;
15469 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_h", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 522, __pyx_L3_error)
15471 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
15472 __Pyx_RefNannyFinishContext();
15474 __pyx_L4_argument_unpacking_done:;
15475 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_32__cpp_MoveMesh_h(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_x, __pyx_v_t);
15478 __Pyx_RefNannyFinishContext();
15482 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_32__cpp_MoveMesh_h(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
15483 PyObject *__pyx_r = NULL;
15484 __Pyx_TraceDeclarations
15485 __Pyx_RefNannyDeclarations
15486 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
15487 PyObject *__pyx_t_2 = NULL;
15488 int __pyx_lineno = 0;
15489 const char *__pyx_filename = NULL;
15490 int __pyx_clineno = 0;
15491 __Pyx_TraceFrameInit(__pyx_codeobj__33)
15492 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_h", 0);
15493 __Pyx_TraceCall(
"__cpp_MoveMesh_h (wrapper)", __pyx_f[0], 522, 0, __PYX_ERR(0, 522, __pyx_L1_error));
15494 __Pyx_XDECREF(__pyx_r);
15495 __pyx_t_1 = __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_h(__pyx_v_self, __pyx_v_x, __pyx_v_t, 1);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 522, __pyx_L1_error)
15496 __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_t_1, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
15497 __Pyx_GOTREF(__pyx_t_2);
15498 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
15499 __pyx_t_1.memview = NULL;
15500 __pyx_t_1.data = NULL;
15501 __pyx_r = __pyx_t_2;
15507 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
15508 __Pyx_XDECREF(__pyx_t_2);
15509 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_h", __pyx_clineno, __pyx_lineno, __pyx_filename);
15512 __PYX_XDEC_MEMVIEW(&__pyx_v_x, 1);
15513 __Pyx_XGIVEREF(__pyx_r);
15514 __Pyx_TraceReturn(__pyx_r, 0);
15515 __Pyx_RefNannyFinishContext();
15527 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15528 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hx(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch) {
15530 __Pyx_TraceDeclarations
15531 __Pyx_RefNannyDeclarations
15532 PyObject *__pyx_t_1 = NULL;
15533 PyObject *__pyx_t_2 = NULL;
15534 PyObject *__pyx_t_3 = NULL;
15535 PyObject *__pyx_t_4 = NULL;
15536 PyObject *__pyx_t_5 = NULL;
15537 PyObject *__pyx_t_6 = NULL;
15539 PyObject *__pyx_t_8 = NULL;
15541 __Pyx_memviewslice __pyx_t_10 = { 0, 0, { 0 }, { 0 }, { 0 } };
15542 Py_ssize_t __pyx_t_11;
15543 int __pyx_lineno = 0;
15544 const char *__pyx_filename = NULL;
15545 int __pyx_clineno = 0;
15546 __Pyx_TraceFrameInit(__pyx_codeobj__34)
15547 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hx", 0);
15548 __Pyx_TraceCall(
"__cpp_MoveMesh_hx", __pyx_f[0], 535, 0, __PYX_ERR(0, 535, __pyx_L1_error));
15550 if (unlikely(__pyx_skip_dispatch)) ;
15552 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
15553 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15554 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15555 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
15556 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15558 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cpp_MoveMesh_hx);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error)
15559 __Pyx_GOTREF(__pyx_t_1);
15560 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx)) {
15561 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_x, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 535, __pyx_L1_error)
15562 __Pyx_GOTREF(__pyx_t_3);
15563 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 535, __pyx_L1_error)
15564 __Pyx_GOTREF(__pyx_t_4);
15565 __Pyx_INCREF(__pyx_t_1);
15566 __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
15568 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
15569 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
15570 if (likely(__pyx_t_6)) {
15571 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
15572 __Pyx_INCREF(__pyx_t_6);
15573 __Pyx_INCREF(
function);
15574 __Pyx_DECREF_SET(__pyx_t_5,
function);
15578 #if CYTHON_FAST_PYCALL
15579 if (PyFunction_Check(__pyx_t_5)) {
15580 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15581 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
15582 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15583 __Pyx_GOTREF(__pyx_t_2);
15584 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15585 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15588 #if CYTHON_FAST_PYCCALL
15589 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
15590 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15591 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
15592 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15593 __Pyx_GOTREF(__pyx_t_2);
15594 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15595 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15599 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 535, __pyx_L1_error)
15600 __Pyx_GOTREF(__pyx_t_8);
15602 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
15604 __Pyx_GIVEREF(__pyx_t_3);
15605 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_3);
15606 __Pyx_GIVEREF(__pyx_t_4);
15607 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
15610 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
15611 __Pyx_GOTREF(__pyx_t_2);
15612 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
15614 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15615 __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_2);
if (unlikely((__pyx_t_9 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 535, __pyx_L1_error)
15616 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15617 __pyx_r = __pyx_t_9;
15618 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15621 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15622 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15623 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
15624 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
15625 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15628 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15629 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15641 __pyx_t_10 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_h(__pyx_v_self, __pyx_v_x, __pyx_v_t, 0);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 536, __pyx_L1_error)
15643 __pyx_r = (*((
double *) ( (__pyx_t_10.data + __pyx_t_11 * __pyx_t_10.strides[0]) )));
15644 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
15645 __pyx_t_10.memview = NULL;
15646 __pyx_t_10.data = NULL;
15659 __Pyx_XDECREF(__pyx_t_1);
15660 __Pyx_XDECREF(__pyx_t_2);
15661 __Pyx_XDECREF(__pyx_t_3);
15662 __Pyx_XDECREF(__pyx_t_4);
15663 __Pyx_XDECREF(__pyx_t_5);
15664 __Pyx_XDECREF(__pyx_t_6);
15665 __Pyx_XDECREF(__pyx_t_8);
15666 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
15667 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hx", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15670 __Pyx_TraceReturn(Py_None, 0);
15671 __Pyx_RefNannyFinishContext();
15676 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15677 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_34__cpp_MoveMesh_hx[] =
"BC_RANS.__cpp_MoveMesh_hx(self, double[:] x, double t) -> double";
15678 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx = {
"__cpp_MoveMesh_hx", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_34__cpp_MoveMesh_hx};
15679 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15680 __Pyx_memviewslice __pyx_v_x = { 0, 0, { 0 }, { 0 }, { 0 } };
15682 int __pyx_lineno = 0;
15683 const char *__pyx_filename = NULL;
15684 int __pyx_clineno = 0;
15685 PyObject *__pyx_r = 0;
15686 __Pyx_RefNannyDeclarations
15687 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hx (wrapper)", 0);
15689 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,0};
15690 PyObject* values[2] = {0,0};
15691 if (unlikely(__pyx_kwds)) {
15692 Py_ssize_t kw_args;
15693 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15694 switch (pos_args) {
15695 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15696 CYTHON_FALLTHROUGH;
15697 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15698 CYTHON_FALLTHROUGH;
15700 default:
goto __pyx_L5_argtuple_error;
15702 kw_args = PyDict_Size(__pyx_kwds);
15703 switch (pos_args) {
15705 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
15706 else goto __pyx_L5_argtuple_error;
15707 CYTHON_FALLTHROUGH;
15709 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
15711 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hx", 1, 2, 2, 1); __PYX_ERR(0, 535, __pyx_L3_error)
15714 if (unlikely(kw_args > 0)) {
15715 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cpp_MoveMesh_hx") < 0)) __PYX_ERR(0, 535, __pyx_L3_error)
15717 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
15718 goto __pyx_L5_argtuple_error;
15720 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15721 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15723 __pyx_v_x = __Pyx_PyObject_to_MemoryviewSlice_ds_double(values[0], PyBUF_WRITABLE);
if (unlikely(!__pyx_v_x.memview)) __PYX_ERR(0, 535, __pyx_L3_error)
15724 __pyx_v_t = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 535, __pyx_L3_error)
15726 goto __pyx_L4_argument_unpacking_done;
15727 __pyx_L5_argtuple_error:;
15728 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hx", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 535, __pyx_L3_error)
15730 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hx", __pyx_clineno, __pyx_lineno, __pyx_filename);
15731 __Pyx_RefNannyFinishContext();
15733 __pyx_L4_argument_unpacking_done:;
15734 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_34__cpp_MoveMesh_hx(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_x, __pyx_v_t);
15737 __Pyx_RefNannyFinishContext();
15741 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_34__cpp_MoveMesh_hx(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
15742 PyObject *__pyx_r = NULL;
15743 __Pyx_TraceDeclarations
15744 __Pyx_RefNannyDeclarations
15745 PyObject *__pyx_t_1 = NULL;
15746 int __pyx_lineno = 0;
15747 const char *__pyx_filename = NULL;
15748 int __pyx_clineno = 0;
15749 __Pyx_TraceFrameInit(__pyx_codeobj__34)
15750 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hx", 0);
15751 __Pyx_TraceCall(
"__cpp_MoveMesh_hx (wrapper)", __pyx_f[0], 535, 0, __PYX_ERR(0, 535, __pyx_L1_error));
15752 __Pyx_XDECREF(__pyx_r);
15753 __pyx_t_1 = PyFloat_FromDouble(__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hx(__pyx_v_self, __pyx_v_x, __pyx_v_t, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error)
15754 __Pyx_GOTREF(__pyx_t_1);
15755 __pyx_r = __pyx_t_1;
15761 __Pyx_XDECREF(__pyx_t_1);
15762 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hx", __pyx_clineno, __pyx_lineno, __pyx_filename);
15765 __PYX_XDEC_MEMVIEW(&__pyx_v_x, 1);
15766 __Pyx_XGIVEREF(__pyx_r);
15767 __Pyx_TraceReturn(__pyx_r, 0);
15768 __Pyx_RefNannyFinishContext();
15780 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15781 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hy(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch) {
15783 __Pyx_TraceDeclarations
15784 __Pyx_RefNannyDeclarations
15785 PyObject *__pyx_t_1 = NULL;
15786 PyObject *__pyx_t_2 = NULL;
15787 PyObject *__pyx_t_3 = NULL;
15788 PyObject *__pyx_t_4 = NULL;
15789 PyObject *__pyx_t_5 = NULL;
15790 PyObject *__pyx_t_6 = NULL;
15792 PyObject *__pyx_t_8 = NULL;
15794 __Pyx_memviewslice __pyx_t_10 = { 0, 0, { 0 }, { 0 }, { 0 } };
15795 Py_ssize_t __pyx_t_11;
15796 int __pyx_lineno = 0;
15797 const char *__pyx_filename = NULL;
15798 int __pyx_clineno = 0;
15799 __Pyx_TraceFrameInit(__pyx_codeobj__35)
15800 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hy", 0);
15801 __Pyx_TraceCall(
"__cpp_MoveMesh_hy", __pyx_f[0], 538, 0, __PYX_ERR(0, 538, __pyx_L1_error));
15803 if (unlikely(__pyx_skip_dispatch)) ;
15805 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
15806 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15807 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15808 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
15809 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15811 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cpp_MoveMesh_hy);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 538, __pyx_L1_error)
15812 __Pyx_GOTREF(__pyx_t_1);
15813 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy)) {
15814 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_x, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 538, __pyx_L1_error)
15815 __Pyx_GOTREF(__pyx_t_3);
15816 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 538, __pyx_L1_error)
15817 __Pyx_GOTREF(__pyx_t_4);
15818 __Pyx_INCREF(__pyx_t_1);
15819 __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
15821 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
15822 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
15823 if (likely(__pyx_t_6)) {
15824 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
15825 __Pyx_INCREF(__pyx_t_6);
15826 __Pyx_INCREF(
function);
15827 __Pyx_DECREF_SET(__pyx_t_5,
function);
15831 #if CYTHON_FAST_PYCALL
15832 if (PyFunction_Check(__pyx_t_5)) {
15833 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15834 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 538, __pyx_L1_error)
15835 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15836 __Pyx_GOTREF(__pyx_t_2);
15837 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15838 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15841 #if CYTHON_FAST_PYCCALL
15842 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
15843 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
15844 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 538, __pyx_L1_error)
15845 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
15846 __Pyx_GOTREF(__pyx_t_2);
15847 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
15848 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
15852 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 538, __pyx_L1_error)
15853 __Pyx_GOTREF(__pyx_t_8);
15855 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
15857 __Pyx_GIVEREF(__pyx_t_3);
15858 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_3);
15859 __Pyx_GIVEREF(__pyx_t_4);
15860 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
15863 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 538, __pyx_L1_error)
15864 __Pyx_GOTREF(__pyx_t_2);
15865 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
15867 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
15868 __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_2);
if (unlikely((__pyx_t_9 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L1_error)
15869 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15870 __pyx_r = __pyx_t_9;
15871 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15874 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15875 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
15876 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
15877 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
15878 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
15881 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15882 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
15894 __pyx_t_10 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_h(__pyx_v_self, __pyx_v_x, __pyx_v_t, 0);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 539, __pyx_L1_error)
15896 __pyx_r = (*((
double *) ( (__pyx_t_10.data + __pyx_t_11 * __pyx_t_10.strides[0]) )));
15897 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
15898 __pyx_t_10.memview = NULL;
15899 __pyx_t_10.data = NULL;
15912 __Pyx_XDECREF(__pyx_t_1);
15913 __Pyx_XDECREF(__pyx_t_2);
15914 __Pyx_XDECREF(__pyx_t_3);
15915 __Pyx_XDECREF(__pyx_t_4);
15916 __Pyx_XDECREF(__pyx_t_5);
15917 __Pyx_XDECREF(__pyx_t_6);
15918 __Pyx_XDECREF(__pyx_t_8);
15919 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
15920 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hy", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15923 __Pyx_TraceReturn(Py_None, 0);
15924 __Pyx_RefNannyFinishContext();
15929 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15930 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_36__cpp_MoveMesh_hy[] =
"BC_RANS.__cpp_MoveMesh_hy(self, double[:] x, double t) -> double";
15931 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy = {
"__cpp_MoveMesh_hy", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_36__cpp_MoveMesh_hy};
15932 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15933 __Pyx_memviewslice __pyx_v_x = { 0, 0, { 0 }, { 0 }, { 0 } };
15935 int __pyx_lineno = 0;
15936 const char *__pyx_filename = NULL;
15937 int __pyx_clineno = 0;
15938 PyObject *__pyx_r = 0;
15939 __Pyx_RefNannyDeclarations
15940 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hy (wrapper)", 0);
15942 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,0};
15943 PyObject* values[2] = {0,0};
15944 if (unlikely(__pyx_kwds)) {
15945 Py_ssize_t kw_args;
15946 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15947 switch (pos_args) {
15948 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15949 CYTHON_FALLTHROUGH;
15950 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15951 CYTHON_FALLTHROUGH;
15953 default:
goto __pyx_L5_argtuple_error;
15955 kw_args = PyDict_Size(__pyx_kwds);
15956 switch (pos_args) {
15958 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
15959 else goto __pyx_L5_argtuple_error;
15960 CYTHON_FALLTHROUGH;
15962 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
15964 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hy", 1, 2, 2, 1); __PYX_ERR(0, 538, __pyx_L3_error)
15967 if (unlikely(kw_args > 0)) {
15968 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cpp_MoveMesh_hy") < 0)) __PYX_ERR(0, 538, __pyx_L3_error)
15970 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
15971 goto __pyx_L5_argtuple_error;
15973 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15974 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15976 __pyx_v_x = __Pyx_PyObject_to_MemoryviewSlice_ds_double(values[0], PyBUF_WRITABLE);
if (unlikely(!__pyx_v_x.memview)) __PYX_ERR(0, 538, __pyx_L3_error)
15977 __pyx_v_t = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L3_error)
15979 goto __pyx_L4_argument_unpacking_done;
15980 __pyx_L5_argtuple_error:;
15981 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 538, __pyx_L3_error)
15983 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hy", __pyx_clineno, __pyx_lineno, __pyx_filename);
15984 __Pyx_RefNannyFinishContext();
15986 __pyx_L4_argument_unpacking_done:;
15987 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_36__cpp_MoveMesh_hy(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_x, __pyx_v_t);
15990 __Pyx_RefNannyFinishContext();
15994 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_36__cpp_MoveMesh_hy(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
15995 PyObject *__pyx_r = NULL;
15996 __Pyx_TraceDeclarations
15997 __Pyx_RefNannyDeclarations
15998 PyObject *__pyx_t_1 = NULL;
15999 int __pyx_lineno = 0;
16000 const char *__pyx_filename = NULL;
16001 int __pyx_clineno = 0;
16002 __Pyx_TraceFrameInit(__pyx_codeobj__35)
16003 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hy", 0);
16004 __Pyx_TraceCall(
"__cpp_MoveMesh_hy (wrapper)", __pyx_f[0], 538, 0, __PYX_ERR(0, 538, __pyx_L1_error));
16005 __Pyx_XDECREF(__pyx_r);
16006 __pyx_t_1 = PyFloat_FromDouble(__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hy(__pyx_v_self, __pyx_v_x, __pyx_v_t, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 538, __pyx_L1_error)
16007 __Pyx_GOTREF(__pyx_t_1);
16008 __pyx_r = __pyx_t_1;
16014 __Pyx_XDECREF(__pyx_t_1);
16015 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hy", __pyx_clineno, __pyx_lineno, __pyx_filename);
16018 __PYX_XDEC_MEMVIEW(&__pyx_v_x, 1);
16019 __Pyx_XGIVEREF(__pyx_r);
16020 __Pyx_TraceReturn(__pyx_r, 0);
16021 __Pyx_RefNannyFinishContext();
16033 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16034 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hz(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t,
int __pyx_skip_dispatch) {
16036 __Pyx_TraceDeclarations
16037 __Pyx_RefNannyDeclarations
16038 PyObject *__pyx_t_1 = NULL;
16039 PyObject *__pyx_t_2 = NULL;
16040 PyObject *__pyx_t_3 = NULL;
16041 PyObject *__pyx_t_4 = NULL;
16042 PyObject *__pyx_t_5 = NULL;
16043 PyObject *__pyx_t_6 = NULL;
16045 PyObject *__pyx_t_8 = NULL;
16047 __Pyx_memviewslice __pyx_t_10 = { 0, 0, { 0 }, { 0 }, { 0 } };
16048 Py_ssize_t __pyx_t_11;
16049 int __pyx_lineno = 0;
16050 const char *__pyx_filename = NULL;
16051 int __pyx_clineno = 0;
16052 __Pyx_TraceFrameInit(__pyx_codeobj__36)
16053 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hz", 0);
16054 __Pyx_TraceCall(
"__cpp_MoveMesh_hz", __pyx_f[0], 541, 0, __PYX_ERR(0, 541, __pyx_L1_error));
16056 if (unlikely(__pyx_skip_dispatch)) ;
16058 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
16059 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
16060 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
16061 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
16062 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
16064 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cpp_MoveMesh_hz);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error)
16065 __Pyx_GOTREF(__pyx_t_1);
16066 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz)) {
16067 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_x, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 541, __pyx_L1_error)
16068 __Pyx_GOTREF(__pyx_t_3);
16069 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 541, __pyx_L1_error)
16070 __Pyx_GOTREF(__pyx_t_4);
16071 __Pyx_INCREF(__pyx_t_1);
16072 __pyx_t_5 = __pyx_t_1; __pyx_t_6 = NULL;
16074 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
16075 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
16076 if (likely(__pyx_t_6)) {
16077 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
16078 __Pyx_INCREF(__pyx_t_6);
16079 __Pyx_INCREF(
function);
16080 __Pyx_DECREF_SET(__pyx_t_5,
function);
16084 #if CYTHON_FAST_PYCALL
16085 if (PyFunction_Check(__pyx_t_5)) {
16086 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
16087 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
16088 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
16089 __Pyx_GOTREF(__pyx_t_2);
16090 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16091 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
16094 #if CYTHON_FAST_PYCCALL
16095 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
16096 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_4};
16097 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
16098 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
16099 __Pyx_GOTREF(__pyx_t_2);
16100 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
16101 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
16105 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 541, __pyx_L1_error)
16106 __Pyx_GOTREF(__pyx_t_8);
16108 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
16110 __Pyx_GIVEREF(__pyx_t_3);
16111 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_3);
16112 __Pyx_GIVEREF(__pyx_t_4);
16113 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
16116 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
16117 __Pyx_GOTREF(__pyx_t_2);
16118 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
16120 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
16121 __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_2);
if (unlikely((__pyx_t_9 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 541, __pyx_L1_error)
16122 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16123 __pyx_r = __pyx_t_9;
16124 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16127 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
16128 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
16129 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
16130 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
16131 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
16134 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16135 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
16147 __pyx_t_10 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_MoveMesh_h(__pyx_v_self, __pyx_v_x, __pyx_v_t, 0);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 542, __pyx_L1_error)
16149 __pyx_r = (*((
double *) ( (__pyx_t_10.data + __pyx_t_11 * __pyx_t_10.strides[0]) )));
16150 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
16151 __pyx_t_10.memview = NULL;
16152 __pyx_t_10.data = NULL;
16165 __Pyx_XDECREF(__pyx_t_1);
16166 __Pyx_XDECREF(__pyx_t_2);
16167 __Pyx_XDECREF(__pyx_t_3);
16168 __Pyx_XDECREF(__pyx_t_4);
16169 __Pyx_XDECREF(__pyx_t_5);
16170 __Pyx_XDECREF(__pyx_t_6);
16171 __Pyx_XDECREF(__pyx_t_8);
16172 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
16173 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hz", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
16176 __Pyx_TraceReturn(Py_None, 0);
16177 __Pyx_RefNannyFinishContext();
16182 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16183 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_38__cpp_MoveMesh_hz[] =
"BC_RANS.__cpp_MoveMesh_hz(self, double[:] x, double t) -> double";
16184 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz = {
"__cpp_MoveMesh_hz", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_38__cpp_MoveMesh_hz};
16185 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16186 __Pyx_memviewslice __pyx_v_x = { 0, 0, { 0 }, { 0 }, { 0 } };
16188 int __pyx_lineno = 0;
16189 const char *__pyx_filename = NULL;
16190 int __pyx_clineno = 0;
16191 PyObject *__pyx_r = 0;
16192 __Pyx_RefNannyDeclarations
16193 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hz (wrapper)", 0);
16195 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,0};
16196 PyObject* values[2] = {0,0};
16197 if (unlikely(__pyx_kwds)) {
16198 Py_ssize_t kw_args;
16199 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16200 switch (pos_args) {
16201 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16202 CYTHON_FALLTHROUGH;
16203 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16204 CYTHON_FALLTHROUGH;
16206 default:
goto __pyx_L5_argtuple_error;
16208 kw_args = PyDict_Size(__pyx_kwds);
16209 switch (pos_args) {
16211 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
16212 else goto __pyx_L5_argtuple_error;
16213 CYTHON_FALLTHROUGH;
16215 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
16217 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hz", 1, 2, 2, 1); __PYX_ERR(0, 541, __pyx_L3_error)
16220 if (unlikely(kw_args > 0)) {
16221 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cpp_MoveMesh_hz") < 0)) __PYX_ERR(0, 541, __pyx_L3_error)
16223 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
16224 goto __pyx_L5_argtuple_error;
16226 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16227 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16229 __pyx_v_x = __Pyx_PyObject_to_MemoryviewSlice_ds_double(values[0], PyBUF_WRITABLE);
if (unlikely(!__pyx_v_x.memview)) __PYX_ERR(0, 541, __pyx_L3_error)
16230 __pyx_v_t = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_t == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 541, __pyx_L3_error)
16232 goto __pyx_L4_argument_unpacking_done;
16233 __pyx_L5_argtuple_error:;
16234 __Pyx_RaiseArgtupleInvalid(
"__cpp_MoveMesh_hz", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 541, __pyx_L3_error)
16236 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hz", __pyx_clineno, __pyx_lineno, __pyx_filename);
16237 __Pyx_RefNannyFinishContext();
16239 __pyx_L4_argument_unpacking_done:;
16240 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_38__cpp_MoveMesh_hz(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_x, __pyx_v_t);
16243 __Pyx_RefNannyFinishContext();
16247 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_38__cpp_MoveMesh_hz(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
16248 PyObject *__pyx_r = NULL;
16249 __Pyx_TraceDeclarations
16250 __Pyx_RefNannyDeclarations
16251 PyObject *__pyx_t_1 = NULL;
16252 int __pyx_lineno = 0;
16253 const char *__pyx_filename = NULL;
16254 int __pyx_clineno = 0;
16255 __Pyx_TraceFrameInit(__pyx_codeobj__36)
16256 __Pyx_RefNannySetupContext(
"__cpp_MoveMesh_hz", 0);
16257 __Pyx_TraceCall(
"__cpp_MoveMesh_hz (wrapper)", __pyx_f[0], 541, 0, __PYX_ERR(0, 541, __pyx_L1_error));
16258 __Pyx_XDECREF(__pyx_r);
16259 __pyx_t_1 = PyFloat_FromDouble(__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hz(__pyx_v_self, __pyx_v_x, __pyx_v_t, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error)
16260 __Pyx_GOTREF(__pyx_t_1);
16261 __pyx_r = __pyx_t_1;
16267 __Pyx_XDECREF(__pyx_t_1);
16268 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__cpp_MoveMesh_hz", __pyx_clineno, __pyx_lineno, __pyx_filename);
16271 __PYX_XDEC_MEMVIEW(&__pyx_v_x, 1);
16272 __Pyx_XGIVEREF(__pyx_r);
16273 __Pyx_TraceReturn(__pyx_r, 0);
16274 __Pyx_RefNannyFinishContext();
16287 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16288 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet[] =
"BC_RANS.setUnsteadyTwoPhaseVelocityInlet(self, wave, smoothing, vert_axis=None, orientation=None, wind_speed=None, vof_air=1., vof_water=0., kInflow=1e-30, dInflow=1e-10)\n\n Imposes a velocity profile on the fluid with input wave and wind\n conditions.\n\n Parameters\n ----------\n wave: proteus.WaveTools\n class describing a wave (from proteus.WaveTools)\n smoothing: float\n smoothing distance (typically 3.*he)\n vert_axis: Optional[int]\n index of vertical position vector (x:0, y:1, z:2), must always be\n aligned with gravity. If not set, will be 1 in 2D (y), 2 in 3D (z).\n wind_speed: Optional[array_like]\n speed of air phase\n vof_air: Optional[float]\n VOF value of air (default is 1.)\n vof_water: Optional[float]\n VOF value of water (default is 0.)\n\n Below the sea water level: fluid velocity to wave speed.\n Above the sea water level: fluid velocity set to wind speed\n (with smoothing).\n ";
16289 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet = {
"setUnsteadyTwoPhaseVelocityInlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet};
16290 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16291 PyObject *__pyx_v_wave = 0;
16292 PyObject *__pyx_v_smoothing = 0;
16293 PyObject *__pyx_v_vert_axis = 0;
16294 PyObject *__pyx_v_orientation = 0;
16295 PyObject *__pyx_v_wind_speed = 0;
16296 PyObject *__pyx_v_vof_air = 0;
16297 PyObject *__pyx_v_vof_water = 0;
16298 PyObject *__pyx_v_kInflow = 0;
16299 PyObject *__pyx_v_dInflow = 0;
16300 int __pyx_lineno = 0;
16301 const char *__pyx_filename = NULL;
16302 int __pyx_clineno = 0;
16303 PyObject *__pyx_r = 0;
16304 __Pyx_RefNannyDeclarations
16305 __Pyx_RefNannySetupContext(
"setUnsteadyTwoPhaseVelocityInlet (wrapper)", 0);
16307 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_wave,&__pyx_n_s_smoothing,&__pyx_n_s_vert_axis,&__pyx_n_s_orientation,&__pyx_n_s_wind_speed,&__pyx_n_s_vof_air,&__pyx_n_s_vof_water,&__pyx_n_s_kInflow,&__pyx_n_s_dInflow,0};
16308 PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
16309 values[2] = ((PyObject *)Py_None);
16310 values[3] = ((PyObject *)Py_None);
16319 values[4] = ((PyObject *)Py_None);
16320 values[5] = ((PyObject *)__pyx_float_1_);
16321 values[6] = ((PyObject *)__pyx_float_0_);
16322 values[7] = ((PyObject *)__pyx_float_1eneg_30);
16323 values[8] = ((PyObject *)__pyx_float_1eneg_10);
16324 if (unlikely(__pyx_kwds)) {
16325 Py_ssize_t kw_args;
16326 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16327 switch (pos_args) {
16328 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16329 CYTHON_FALLTHROUGH;
16330 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16331 CYTHON_FALLTHROUGH;
16332 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16333 CYTHON_FALLTHROUGH;
16334 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16335 CYTHON_FALLTHROUGH;
16336 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16337 CYTHON_FALLTHROUGH;
16338 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16339 CYTHON_FALLTHROUGH;
16340 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16341 CYTHON_FALLTHROUGH;
16342 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16343 CYTHON_FALLTHROUGH;
16344 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16345 CYTHON_FALLTHROUGH;
16347 default:
goto __pyx_L5_argtuple_error;
16349 kw_args = PyDict_Size(__pyx_kwds);
16350 switch (pos_args) {
16352 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wave)) != 0)) kw_args--;
16353 else goto __pyx_L5_argtuple_error;
16354 CYTHON_FALLTHROUGH;
16356 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smoothing)) != 0)) kw_args--;
16358 __Pyx_RaiseArgtupleInvalid(
"setUnsteadyTwoPhaseVelocityInlet", 0, 2, 9, 1); __PYX_ERR(0, 544, __pyx_L3_error)
16360 CYTHON_FALLTHROUGH;
16363 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vert_axis);
16364 if (value) { values[2] = value; kw_args--; }
16366 CYTHON_FALLTHROUGH;
16369 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_orientation);
16370 if (value) { values[3] = value; kw_args--; }
16372 CYTHON_FALLTHROUGH;
16375 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wind_speed);
16376 if (value) { values[4] = value; kw_args--; }
16378 CYTHON_FALLTHROUGH;
16381 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_air);
16382 if (value) { values[5] = value; kw_args--; }
16384 CYTHON_FALLTHROUGH;
16387 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_water);
16388 if (value) { values[6] = value; kw_args--; }
16390 CYTHON_FALLTHROUGH;
16393 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflow);
16394 if (value) { values[7] = value; kw_args--; }
16396 CYTHON_FALLTHROUGH;
16399 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dInflow);
16400 if (value) { values[8] = value; kw_args--; }
16403 if (unlikely(kw_args > 0)) {
16404 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setUnsteadyTwoPhaseVelocityInlet") < 0)) __PYX_ERR(0, 544, __pyx_L3_error)
16407 switch (PyTuple_GET_SIZE(__pyx_args)) {
16408 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16409 CYTHON_FALLTHROUGH;
16410 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16411 CYTHON_FALLTHROUGH;
16412 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16413 CYTHON_FALLTHROUGH;
16414 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16415 CYTHON_FALLTHROUGH;
16416 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16417 CYTHON_FALLTHROUGH;
16418 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16419 CYTHON_FALLTHROUGH;
16420 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16421 CYTHON_FALLTHROUGH;
16422 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16423 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16425 default:
goto __pyx_L5_argtuple_error;
16428 __pyx_v_wave = values[0];
16429 __pyx_v_smoothing = values[1];
16430 __pyx_v_vert_axis = values[2];
16431 __pyx_v_orientation = values[3];
16432 __pyx_v_wind_speed = values[4];
16433 __pyx_v_vof_air = values[5];
16434 __pyx_v_vof_water = values[6];
16435 __pyx_v_kInflow = values[7];
16436 __pyx_v_dInflow = values[8];
16438 goto __pyx_L4_argument_unpacking_done;
16439 __pyx_L5_argtuple_error:;
16440 __Pyx_RaiseArgtupleInvalid(
"setUnsteadyTwoPhaseVelocityInlet", 0, 2, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 544, __pyx_L3_error)
16442 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
16443 __Pyx_RefNannyFinishContext();
16445 __pyx_L4_argument_unpacking_done:;
16446 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_wave, __pyx_v_smoothing, __pyx_v_vert_axis, __pyx_v_orientation, __pyx_v_wind_speed, __pyx_v_vof_air, __pyx_v_vof_water, __pyx_v_kInflow, __pyx_v_dInflow);
16457 __Pyx_RefNannyFinishContext();
16470 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_lambda11(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16471 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_lambda11 = {
"lambda11", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_lambda11, METH_VARARGS|METH_KEYWORDS, 0};
16472 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_lambda11(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16473 PyObject *__pyx_v_x = 0;
16474 PyObject *__pyx_v_t = 0;
16475 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
16476 int __pyx_lineno = 0;
16477 const char *__pyx_filename = NULL;
16478 int __pyx_clineno = 0;
16479 PyObject *__pyx_r = 0;
16480 __Pyx_RefNannyDeclarations
16481 __Pyx_RefNannySetupContext(
"lambda11 (wrapper)", 0);
16483 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
16484 PyObject* values[3] = {0,0,0};
16485 values[2] = ((PyObject *)((PyObject *)Py_None));
16486 if (unlikely(__pyx_kwds)) {
16487 Py_ssize_t kw_args;
16488 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16489 switch (pos_args) {
16490 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16491 CYTHON_FALLTHROUGH;
16492 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16493 CYTHON_FALLTHROUGH;
16494 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16495 CYTHON_FALLTHROUGH;
16497 default:
goto __pyx_L5_argtuple_error;
16499 kw_args = PyDict_Size(__pyx_kwds);
16500 switch (pos_args) {
16502 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
16503 else goto __pyx_L5_argtuple_error;
16504 CYTHON_FALLTHROUGH;
16506 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
16508 __Pyx_RaiseArgtupleInvalid(
"lambda11", 0, 2, 3, 1); __PYX_ERR(0, 583, __pyx_L3_error)
16510 CYTHON_FALLTHROUGH;
16513 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
16514 if (value) { values[2] = value; kw_args--; }
16517 if (unlikely(kw_args > 0)) {
16518 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda11") < 0)) __PYX_ERR(0, 583, __pyx_L3_error)
16521 switch (PyTuple_GET_SIZE(__pyx_args)) {
16522 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16523 CYTHON_FALLTHROUGH;
16524 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16525 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16527 default:
goto __pyx_L5_argtuple_error;
16530 __pyx_v_x = values[0];
16531 __pyx_v_t = values[1];
16532 __pyx_v_n = values[2];
16534 goto __pyx_L4_argument_unpacking_done;
16535 __pyx_L5_argtuple_error:;
16536 __Pyx_RaiseArgtupleInvalid(
"lambda11", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 583, __pyx_L3_error)
16538 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda11", __pyx_clineno, __pyx_lineno, __pyx_filename);
16539 __Pyx_RefNannyFinishContext();
16541 __pyx_L4_argument_unpacking_done:;
16542 __pyx_r = __pyx_lambda_funcdef_lambda11(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
16545 __Pyx_RefNannyFinishContext();
16549 static PyObject *__pyx_lambda_funcdef_lambda11(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
16550 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
16551 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
16552 PyObject *__pyx_r = NULL;
16553 __Pyx_TraceDeclarations
16554 __Pyx_RefNannyDeclarations
16555 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
16557 PyObject *__pyx_t_3 = NULL;
16558 int __pyx_lineno = 0;
16559 const char *__pyx_filename = NULL;
16560 int __pyx_clineno = 0;
16561 __Pyx_RefNannySetupContext(
"lambda11", 0);
16562 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
16563 __pyx_cur_scope = __pyx_outer_scope;
16564 __Pyx_TraceCall(
"lambda11", __pyx_f[0], 583, 0, __PYX_ERR(0, 583, __pyx_L1_error));
16565 __Pyx_XDECREF(__pyx_r);
16566 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 583, __pyx_L1_error) }
16567 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 583, __pyx_L1_error)
16568 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 583, __pyx_L1_error)
16569 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
16570 __Pyx_GOTREF(__pyx_t_3);
16571 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16572 __pyx_t_1.memview = NULL;
16573 __pyx_t_1.data = NULL;
16574 __pyx_r = __pyx_t_3;
16580 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16581 __Pyx_XDECREF(__pyx_t_3);
16582 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda11", __pyx_clineno, __pyx_lineno, __pyx_filename);
16585 __Pyx_XGIVEREF(__pyx_r);
16586 __Pyx_TraceReturn(__pyx_r, 0);
16587 __Pyx_RefNannyFinishContext();
16600 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_1lambda12(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16601 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_1lambda12 = {
"lambda12", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_1lambda12, METH_VARARGS|METH_KEYWORDS, 0};
16602 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_1lambda12(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16603 PyObject *__pyx_v_x = 0;
16604 PyObject *__pyx_v_t = 0;
16605 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
16606 int __pyx_lineno = 0;
16607 const char *__pyx_filename = NULL;
16608 int __pyx_clineno = 0;
16609 PyObject *__pyx_r = 0;
16610 __Pyx_RefNannyDeclarations
16611 __Pyx_RefNannySetupContext(
"lambda12 (wrapper)", 0);
16613 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
16614 PyObject* values[3] = {0,0,0};
16615 values[2] = ((PyObject *)((PyObject *)Py_None));
16616 if (unlikely(__pyx_kwds)) {
16617 Py_ssize_t kw_args;
16618 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16619 switch (pos_args) {
16620 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16621 CYTHON_FALLTHROUGH;
16622 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16623 CYTHON_FALLTHROUGH;
16624 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16625 CYTHON_FALLTHROUGH;
16627 default:
goto __pyx_L5_argtuple_error;
16629 kw_args = PyDict_Size(__pyx_kwds);
16630 switch (pos_args) {
16632 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
16633 else goto __pyx_L5_argtuple_error;
16634 CYTHON_FALLTHROUGH;
16636 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
16638 __Pyx_RaiseArgtupleInvalid(
"lambda12", 0, 2, 3, 1); __PYX_ERR(0, 584, __pyx_L3_error)
16640 CYTHON_FALLTHROUGH;
16643 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
16644 if (value) { values[2] = value; kw_args--; }
16647 if (unlikely(kw_args > 0)) {
16648 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda12") < 0)) __PYX_ERR(0, 584, __pyx_L3_error)
16651 switch (PyTuple_GET_SIZE(__pyx_args)) {
16652 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16653 CYTHON_FALLTHROUGH;
16654 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16655 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16657 default:
goto __pyx_L5_argtuple_error;
16660 __pyx_v_x = values[0];
16661 __pyx_v_t = values[1];
16662 __pyx_v_n = values[2];
16664 goto __pyx_L4_argument_unpacking_done;
16665 __pyx_L5_argtuple_error:;
16666 __Pyx_RaiseArgtupleInvalid(
"lambda12", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 584, __pyx_L3_error)
16668 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda12", __pyx_clineno, __pyx_lineno, __pyx_filename);
16669 __Pyx_RefNannyFinishContext();
16671 __pyx_L4_argument_unpacking_done:;
16672 __pyx_r = __pyx_lambda_funcdef_lambda12(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
16675 __Pyx_RefNannyFinishContext();
16679 static PyObject *__pyx_lambda_funcdef_lambda12(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
16680 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
16681 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
16682 PyObject *__pyx_r = NULL;
16683 __Pyx_TraceDeclarations
16684 __Pyx_RefNannyDeclarations
16685 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
16687 PyObject *__pyx_t_3 = NULL;
16688 int __pyx_lineno = 0;
16689 const char *__pyx_filename = NULL;
16690 int __pyx_clineno = 0;
16691 __Pyx_RefNannySetupContext(
"lambda12", 0);
16692 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
16693 __pyx_cur_scope = __pyx_outer_scope;
16694 __Pyx_TraceCall(
"lambda12", __pyx_f[0], 584, 0, __PYX_ERR(0, 584, __pyx_L1_error));
16695 __Pyx_XDECREF(__pyx_r);
16696 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 584, __pyx_L1_error) }
16697 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 584, __pyx_L1_error)
16698 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 584, __pyx_L1_error)
16699 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 584, __pyx_L1_error)
16700 __Pyx_GOTREF(__pyx_t_3);
16701 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16702 __pyx_t_1.memview = NULL;
16703 __pyx_t_1.data = NULL;
16704 __pyx_r = __pyx_t_3;
16710 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16711 __Pyx_XDECREF(__pyx_t_3);
16712 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda12", __pyx_clineno, __pyx_lineno, __pyx_filename);
16715 __Pyx_XGIVEREF(__pyx_r);
16716 __Pyx_TraceReturn(__pyx_r, 0);
16717 __Pyx_RefNannyFinishContext();
16730 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_2lambda13(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16731 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_2lambda13 = {
"lambda13", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_2lambda13, METH_VARARGS|METH_KEYWORDS, 0};
16732 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_2lambda13(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16733 PyObject *__pyx_v_x = 0;
16734 PyObject *__pyx_v_t = 0;
16735 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
16736 int __pyx_lineno = 0;
16737 const char *__pyx_filename = NULL;
16738 int __pyx_clineno = 0;
16739 PyObject *__pyx_r = 0;
16740 __Pyx_RefNannyDeclarations
16741 __Pyx_RefNannySetupContext(
"lambda13 (wrapper)", 0);
16743 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
16744 PyObject* values[3] = {0,0,0};
16745 values[2] = ((PyObject *)((PyObject *)Py_None));
16746 if (unlikely(__pyx_kwds)) {
16747 Py_ssize_t kw_args;
16748 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16749 switch (pos_args) {
16750 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16751 CYTHON_FALLTHROUGH;
16752 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16753 CYTHON_FALLTHROUGH;
16754 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16755 CYTHON_FALLTHROUGH;
16757 default:
goto __pyx_L5_argtuple_error;
16759 kw_args = PyDict_Size(__pyx_kwds);
16760 switch (pos_args) {
16762 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
16763 else goto __pyx_L5_argtuple_error;
16764 CYTHON_FALLTHROUGH;
16766 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
16768 __Pyx_RaiseArgtupleInvalid(
"lambda13", 0, 2, 3, 1); __PYX_ERR(0, 585, __pyx_L3_error)
16770 CYTHON_FALLTHROUGH;
16773 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
16774 if (value) { values[2] = value; kw_args--; }
16777 if (unlikely(kw_args > 0)) {
16778 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda13") < 0)) __PYX_ERR(0, 585, __pyx_L3_error)
16781 switch (PyTuple_GET_SIZE(__pyx_args)) {
16782 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16783 CYTHON_FALLTHROUGH;
16784 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16785 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16787 default:
goto __pyx_L5_argtuple_error;
16790 __pyx_v_x = values[0];
16791 __pyx_v_t = values[1];
16792 __pyx_v_n = values[2];
16794 goto __pyx_L4_argument_unpacking_done;
16795 __pyx_L5_argtuple_error:;
16796 __Pyx_RaiseArgtupleInvalid(
"lambda13", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 585, __pyx_L3_error)
16798 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda13", __pyx_clineno, __pyx_lineno, __pyx_filename);
16799 __Pyx_RefNannyFinishContext();
16801 __pyx_L4_argument_unpacking_done:;
16802 __pyx_r = __pyx_lambda_funcdef_lambda13(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
16805 __Pyx_RefNannyFinishContext();
16809 static PyObject *__pyx_lambda_funcdef_lambda13(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
16810 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
16811 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
16812 PyObject *__pyx_r = NULL;
16813 __Pyx_TraceDeclarations
16814 __Pyx_RefNannyDeclarations
16815 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
16817 PyObject *__pyx_t_3 = NULL;
16818 int __pyx_lineno = 0;
16819 const char *__pyx_filename = NULL;
16820 int __pyx_clineno = 0;
16821 __Pyx_RefNannySetupContext(
"lambda13", 0);
16822 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
16823 __pyx_cur_scope = __pyx_outer_scope;
16824 __Pyx_TraceCall(
"lambda13", __pyx_f[0], 585, 0, __PYX_ERR(0, 585, __pyx_L1_error));
16825 __Pyx_XDECREF(__pyx_r);
16826 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 585, __pyx_L1_error) }
16827 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 585, __pyx_L1_error)
16828 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 585, __pyx_L1_error)
16829 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 585, __pyx_L1_error)
16830 __Pyx_GOTREF(__pyx_t_3);
16831 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16832 __pyx_t_1.memview = NULL;
16833 __pyx_t_1.data = NULL;
16834 __pyx_r = __pyx_t_3;
16840 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16841 __Pyx_XDECREF(__pyx_t_3);
16842 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda13", __pyx_clineno, __pyx_lineno, __pyx_filename);
16845 __Pyx_XGIVEREF(__pyx_r);
16846 __Pyx_TraceReturn(__pyx_r, 0);
16847 __Pyx_RefNannyFinishContext();
16860 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_3lambda14(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16861 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_3lambda14 = {
"lambda14", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_3lambda14, METH_VARARGS|METH_KEYWORDS, 0};
16862 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_3lambda14(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16863 PyObject *__pyx_v_x = 0;
16864 PyObject *__pyx_v_t = 0;
16865 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
16866 int __pyx_lineno = 0;
16867 const char *__pyx_filename = NULL;
16868 int __pyx_clineno = 0;
16869 PyObject *__pyx_r = 0;
16870 __Pyx_RefNannyDeclarations
16871 __Pyx_RefNannySetupContext(
"lambda14 (wrapper)", 0);
16873 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
16874 PyObject* values[3] = {0,0,0};
16875 values[2] = ((PyObject *)((PyObject *)Py_None));
16876 if (unlikely(__pyx_kwds)) {
16877 Py_ssize_t kw_args;
16878 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16879 switch (pos_args) {
16880 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16881 CYTHON_FALLTHROUGH;
16882 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16883 CYTHON_FALLTHROUGH;
16884 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16885 CYTHON_FALLTHROUGH;
16887 default:
goto __pyx_L5_argtuple_error;
16889 kw_args = PyDict_Size(__pyx_kwds);
16890 switch (pos_args) {
16892 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
16893 else goto __pyx_L5_argtuple_error;
16894 CYTHON_FALLTHROUGH;
16896 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
16898 __Pyx_RaiseArgtupleInvalid(
"lambda14", 0, 2, 3, 1); __PYX_ERR(0, 586, __pyx_L3_error)
16900 CYTHON_FALLTHROUGH;
16903 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
16904 if (value) { values[2] = value; kw_args--; }
16907 if (unlikely(kw_args > 0)) {
16908 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda14") < 0)) __PYX_ERR(0, 586, __pyx_L3_error)
16911 switch (PyTuple_GET_SIZE(__pyx_args)) {
16912 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16913 CYTHON_FALLTHROUGH;
16914 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16915 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16917 default:
goto __pyx_L5_argtuple_error;
16920 __pyx_v_x = values[0];
16921 __pyx_v_t = values[1];
16922 __pyx_v_n = values[2];
16924 goto __pyx_L4_argument_unpacking_done;
16925 __pyx_L5_argtuple_error:;
16926 __Pyx_RaiseArgtupleInvalid(
"lambda14", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 586, __pyx_L3_error)
16928 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda14", __pyx_clineno, __pyx_lineno, __pyx_filename);
16929 __Pyx_RefNannyFinishContext();
16931 __pyx_L4_argument_unpacking_done:;
16932 __pyx_r = __pyx_lambda_funcdef_lambda14(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
16935 __Pyx_RefNannyFinishContext();
16939 static PyObject *__pyx_lambda_funcdef_lambda14(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
16940 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
16941 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
16942 PyObject *__pyx_r = NULL;
16943 __Pyx_TraceDeclarations
16944 __Pyx_RefNannyDeclarations
16945 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
16947 PyObject *__pyx_t_3 = NULL;
16948 int __pyx_lineno = 0;
16949 const char *__pyx_filename = NULL;
16950 int __pyx_clineno = 0;
16951 __Pyx_RefNannySetupContext(
"lambda14", 0);
16952 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
16953 __pyx_cur_scope = __pyx_outer_scope;
16954 __Pyx_TraceCall(
"lambda14", __pyx_f[0], 586, 0, __PYX_ERR(0, 586, __pyx_L1_error));
16955 __Pyx_XDECREF(__pyx_r);
16956 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 586, __pyx_L1_error) }
16957 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 586, __pyx_L1_error)
16958 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 586, __pyx_L1_error)
16959 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
16960 __Pyx_GOTREF(__pyx_t_3);
16961 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16962 __pyx_t_1.memview = NULL;
16963 __pyx_t_1.data = NULL;
16964 __pyx_r = __pyx_t_3;
16970 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
16971 __Pyx_XDECREF(__pyx_t_3);
16972 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda14", __pyx_clineno, __pyx_lineno, __pyx_filename);
16975 __Pyx_XGIVEREF(__pyx_r);
16976 __Pyx_TraceReturn(__pyx_r, 0);
16977 __Pyx_RefNannyFinishContext();
16990 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_4lambda15(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16991 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_4lambda15 = {
"lambda15", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_4lambda15, METH_VARARGS|METH_KEYWORDS, 0};
16992 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_4lambda15(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16993 PyObject *__pyx_v_x = 0;
16994 PyObject *__pyx_v_t = 0;
16995 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
16996 int __pyx_lineno = 0;
16997 const char *__pyx_filename = NULL;
16998 int __pyx_clineno = 0;
16999 PyObject *__pyx_r = 0;
17000 __Pyx_RefNannyDeclarations
17001 __Pyx_RefNannySetupContext(
"lambda15 (wrapper)", 0);
17003 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
17004 PyObject* values[3] = {0,0,0};
17005 values[2] = ((PyObject *)((PyObject *)Py_None));
17006 if (unlikely(__pyx_kwds)) {
17007 Py_ssize_t kw_args;
17008 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17009 switch (pos_args) {
17010 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17011 CYTHON_FALLTHROUGH;
17012 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17013 CYTHON_FALLTHROUGH;
17014 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17015 CYTHON_FALLTHROUGH;
17017 default:
goto __pyx_L5_argtuple_error;
17019 kw_args = PyDict_Size(__pyx_kwds);
17020 switch (pos_args) {
17022 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
17023 else goto __pyx_L5_argtuple_error;
17024 CYTHON_FALLTHROUGH;
17026 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
17028 __Pyx_RaiseArgtupleInvalid(
"lambda15", 0, 2, 3, 1); __PYX_ERR(0, 587, __pyx_L3_error)
17030 CYTHON_FALLTHROUGH;
17033 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
17034 if (value) { values[2] = value; kw_args--; }
17037 if (unlikely(kw_args > 0)) {
17038 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda15") < 0)) __PYX_ERR(0, 587, __pyx_L3_error)
17041 switch (PyTuple_GET_SIZE(__pyx_args)) {
17042 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17043 CYTHON_FALLTHROUGH;
17044 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17045 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17047 default:
goto __pyx_L5_argtuple_error;
17050 __pyx_v_x = values[0];
17051 __pyx_v_t = values[1];
17052 __pyx_v_n = values[2];
17054 goto __pyx_L4_argument_unpacking_done;
17055 __pyx_L5_argtuple_error:;
17056 __Pyx_RaiseArgtupleInvalid(
"lambda15", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 587, __pyx_L3_error)
17058 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda15", __pyx_clineno, __pyx_lineno, __pyx_filename);
17059 __Pyx_RefNannyFinishContext();
17061 __pyx_L4_argument_unpacking_done:;
17062 __pyx_r = __pyx_lambda_funcdef_lambda15(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
17065 __Pyx_RefNannyFinishContext();
17069 static PyObject *__pyx_lambda_funcdef_lambda15(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
17070 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
17071 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
17072 PyObject *__pyx_r = NULL;
17073 __Pyx_TraceDeclarations
17074 __Pyx_RefNannyDeclarations
17075 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
17077 PyObject *__pyx_t_3 = NULL;
17078 int __pyx_lineno = 0;
17079 const char *__pyx_filename = NULL;
17080 int __pyx_clineno = 0;
17081 __Pyx_RefNannySetupContext(
"lambda15", 0);
17082 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
17083 __pyx_cur_scope = __pyx_outer_scope;
17084 __Pyx_TraceCall(
"lambda15", __pyx_f[0], 587, 0, __PYX_ERR(0, 587, __pyx_L1_error));
17085 __Pyx_XDECREF(__pyx_r);
17086 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 587, __pyx_L1_error) }
17087 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 587, __pyx_L1_error)
17088 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 587, __pyx_L1_error)
17089 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error)
17090 __Pyx_GOTREF(__pyx_t_3);
17091 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17092 __pyx_t_1.memview = NULL;
17093 __pyx_t_1.data = NULL;
17094 __pyx_r = __pyx_t_3;
17100 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17101 __Pyx_XDECREF(__pyx_t_3);
17102 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda15", __pyx_clineno, __pyx_lineno, __pyx_filename);
17105 __Pyx_XGIVEREF(__pyx_r);
17106 __Pyx_TraceReturn(__pyx_r, 0);
17107 __Pyx_RefNannyFinishContext();
17120 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_5lambda16(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17121 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_5lambda16 = {
"lambda16", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_5lambda16, METH_VARARGS|METH_KEYWORDS, 0};
17122 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_5lambda16(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17123 PyObject *__pyx_v_x = 0;
17124 PyObject *__pyx_v_t = 0;
17125 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
17126 int __pyx_lineno = 0;
17127 const char *__pyx_filename = NULL;
17128 int __pyx_clineno = 0;
17129 PyObject *__pyx_r = 0;
17130 __Pyx_RefNannyDeclarations
17131 __Pyx_RefNannySetupContext(
"lambda16 (wrapper)", 0);
17133 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
17134 PyObject* values[3] = {0,0,0};
17135 values[2] = ((PyObject *)((PyObject *)Py_None));
17136 if (unlikely(__pyx_kwds)) {
17137 Py_ssize_t kw_args;
17138 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17139 switch (pos_args) {
17140 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17141 CYTHON_FALLTHROUGH;
17142 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17143 CYTHON_FALLTHROUGH;
17144 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17145 CYTHON_FALLTHROUGH;
17147 default:
goto __pyx_L5_argtuple_error;
17149 kw_args = PyDict_Size(__pyx_kwds);
17150 switch (pos_args) {
17152 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
17153 else goto __pyx_L5_argtuple_error;
17154 CYTHON_FALLTHROUGH;
17156 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
17158 __Pyx_RaiseArgtupleInvalid(
"lambda16", 0, 2, 3, 1); __PYX_ERR(0, 588, __pyx_L3_error)
17160 CYTHON_FALLTHROUGH;
17163 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
17164 if (value) { values[2] = value; kw_args--; }
17167 if (unlikely(kw_args > 0)) {
17168 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda16") < 0)) __PYX_ERR(0, 588, __pyx_L3_error)
17171 switch (PyTuple_GET_SIZE(__pyx_args)) {
17172 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17173 CYTHON_FALLTHROUGH;
17174 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17175 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17177 default:
goto __pyx_L5_argtuple_error;
17180 __pyx_v_x = values[0];
17181 __pyx_v_t = values[1];
17182 __pyx_v_n = values[2];
17184 goto __pyx_L4_argument_unpacking_done;
17185 __pyx_L5_argtuple_error:;
17186 __Pyx_RaiseArgtupleInvalid(
"lambda16", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 588, __pyx_L3_error)
17188 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda16", __pyx_clineno, __pyx_lineno, __pyx_filename);
17189 __Pyx_RefNannyFinishContext();
17191 __pyx_L4_argument_unpacking_done:;
17192 __pyx_r = __pyx_lambda_funcdef_lambda16(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
17195 __Pyx_RefNannyFinishContext();
17199 static PyObject *__pyx_lambda_funcdef_lambda16(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
17200 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
17201 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
17202 PyObject *__pyx_r = NULL;
17203 __Pyx_TraceDeclarations
17204 __Pyx_RefNannyDeclarations
17205 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
17207 PyObject *__pyx_t_3 = NULL;
17208 int __pyx_lineno = 0;
17209 const char *__pyx_filename = NULL;
17210 int __pyx_clineno = 0;
17211 __Pyx_RefNannySetupContext(
"lambda16", 0);
17212 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
17213 __pyx_cur_scope = __pyx_outer_scope;
17214 __Pyx_TraceCall(
"lambda16", __pyx_f[0], 588, 0, __PYX_ERR(0, 588, __pyx_L1_error));
17215 __Pyx_XDECREF(__pyx_r);
17216 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 588, __pyx_L1_error) }
17217 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 588, __pyx_L1_error)
17218 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L1_error)
17219 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 588, __pyx_L1_error)
17220 __Pyx_GOTREF(__pyx_t_3);
17221 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17222 __pyx_t_1.memview = NULL;
17223 __pyx_t_1.data = NULL;
17224 __pyx_r = __pyx_t_3;
17230 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17231 __Pyx_XDECREF(__pyx_t_3);
17232 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda16", __pyx_clineno, __pyx_lineno, __pyx_filename);
17235 __Pyx_XGIVEREF(__pyx_r);
17236 __Pyx_TraceReturn(__pyx_r, 0);
17237 __Pyx_RefNannyFinishContext();
17250 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_6lambda17(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17251 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_6lambda17 = {
"lambda17", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_6lambda17, METH_VARARGS|METH_KEYWORDS, 0};
17252 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_6lambda17(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17253 PyObject *__pyx_v_x = 0;
17254 PyObject *__pyx_v_t = 0;
17255 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
17256 int __pyx_lineno = 0;
17257 const char *__pyx_filename = NULL;
17258 int __pyx_clineno = 0;
17259 PyObject *__pyx_r = 0;
17260 __Pyx_RefNannyDeclarations
17261 __Pyx_RefNannySetupContext(
"lambda17 (wrapper)", 0);
17263 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
17264 PyObject* values[3] = {0,0,0};
17265 values[2] = ((PyObject *)((PyObject *)Py_None));
17266 if (unlikely(__pyx_kwds)) {
17267 Py_ssize_t kw_args;
17268 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17269 switch (pos_args) {
17270 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17271 CYTHON_FALLTHROUGH;
17272 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17273 CYTHON_FALLTHROUGH;
17274 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17275 CYTHON_FALLTHROUGH;
17277 default:
goto __pyx_L5_argtuple_error;
17279 kw_args = PyDict_Size(__pyx_kwds);
17280 switch (pos_args) {
17282 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
17283 else goto __pyx_L5_argtuple_error;
17284 CYTHON_FALLTHROUGH;
17286 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
17288 __Pyx_RaiseArgtupleInvalid(
"lambda17", 0, 2, 3, 1); __PYX_ERR(0, 589, __pyx_L3_error)
17290 CYTHON_FALLTHROUGH;
17293 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
17294 if (value) { values[2] = value; kw_args--; }
17297 if (unlikely(kw_args > 0)) {
17298 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda17") < 0)) __PYX_ERR(0, 589, __pyx_L3_error)
17301 switch (PyTuple_GET_SIZE(__pyx_args)) {
17302 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17303 CYTHON_FALLTHROUGH;
17304 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17305 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17307 default:
goto __pyx_L5_argtuple_error;
17310 __pyx_v_x = values[0];
17311 __pyx_v_t = values[1];
17312 __pyx_v_n = values[2];
17314 goto __pyx_L4_argument_unpacking_done;
17315 __pyx_L5_argtuple_error:;
17316 __Pyx_RaiseArgtupleInvalid(
"lambda17", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 589, __pyx_L3_error)
17318 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda17", __pyx_clineno, __pyx_lineno, __pyx_filename);
17319 __Pyx_RefNannyFinishContext();
17321 __pyx_L4_argument_unpacking_done:;
17322 __pyx_r = __pyx_lambda_funcdef_lambda17(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
17325 __Pyx_RefNannyFinishContext();
17329 static PyObject *__pyx_lambda_funcdef_lambda17(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
17330 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
17331 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
17332 PyObject *__pyx_r = NULL;
17333 __Pyx_TraceDeclarations
17334 __Pyx_RefNannyDeclarations
17335 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
17337 PyObject *__pyx_t_3 = NULL;
17338 int __pyx_lineno = 0;
17339 const char *__pyx_filename = NULL;
17340 int __pyx_clineno = 0;
17341 __Pyx_RefNannySetupContext(
"lambda17", 0);
17342 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
17343 __pyx_cur_scope = __pyx_outer_scope;
17344 __Pyx_TraceCall(
"lambda17", __pyx_f[0], 589, 0, __PYX_ERR(0, 589, __pyx_L1_error));
17345 __Pyx_XDECREF(__pyx_r);
17346 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 589, __pyx_L1_error) }
17347 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 589, __pyx_L1_error)
17348 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 589, __pyx_L1_error)
17349 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 589, __pyx_L1_error)
17350 __Pyx_GOTREF(__pyx_t_3);
17351 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17352 __pyx_t_1.memview = NULL;
17353 __pyx_t_1.data = NULL;
17354 __pyx_r = __pyx_t_3;
17360 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17361 __Pyx_XDECREF(__pyx_t_3);
17362 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda17", __pyx_clineno, __pyx_lineno, __pyx_filename);
17365 __Pyx_XGIVEREF(__pyx_r);
17366 __Pyx_TraceReturn(__pyx_r, 0);
17367 __Pyx_RefNannyFinishContext();
17380 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_7lambda18(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17381 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_7lambda18 = {
"lambda18", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_7lambda18, METH_VARARGS|METH_KEYWORDS, 0};
17382 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_7lambda18(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17383 PyObject *__pyx_v_x = 0;
17384 PyObject *__pyx_v_t = 0;
17385 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
17386 int __pyx_lineno = 0;
17387 const char *__pyx_filename = NULL;
17388 int __pyx_clineno = 0;
17389 PyObject *__pyx_r = 0;
17390 __Pyx_RefNannyDeclarations
17391 __Pyx_RefNannySetupContext(
"lambda18 (wrapper)", 0);
17393 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
17394 PyObject* values[3] = {0,0,0};
17395 values[2] = ((PyObject *)((PyObject *)Py_None));
17396 if (unlikely(__pyx_kwds)) {
17397 Py_ssize_t kw_args;
17398 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17399 switch (pos_args) {
17400 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17401 CYTHON_FALLTHROUGH;
17402 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17403 CYTHON_FALLTHROUGH;
17404 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17405 CYTHON_FALLTHROUGH;
17407 default:
goto __pyx_L5_argtuple_error;
17409 kw_args = PyDict_Size(__pyx_kwds);
17410 switch (pos_args) {
17412 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
17413 else goto __pyx_L5_argtuple_error;
17414 CYTHON_FALLTHROUGH;
17416 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
17418 __Pyx_RaiseArgtupleInvalid(
"lambda18", 0, 2, 3, 1); __PYX_ERR(0, 592, __pyx_L3_error)
17420 CYTHON_FALLTHROUGH;
17423 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
17424 if (value) { values[2] = value; kw_args--; }
17427 if (unlikely(kw_args > 0)) {
17428 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"lambda18") < 0)) __PYX_ERR(0, 592, __pyx_L3_error)
17431 switch (PyTuple_GET_SIZE(__pyx_args)) {
17432 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17433 CYTHON_FALLTHROUGH;
17434 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17435 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17437 default:
goto __pyx_L5_argtuple_error;
17440 __pyx_v_x = values[0];
17441 __pyx_v_t = values[1];
17442 __pyx_v_n = values[2];
17444 goto __pyx_L4_argument_unpacking_done;
17445 __pyx_L5_argtuple_error:;
17446 __Pyx_RaiseArgtupleInvalid(
"lambda18", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 592, __pyx_L3_error)
17448 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda18", __pyx_clineno, __pyx_lineno, __pyx_filename);
17449 __Pyx_RefNannyFinishContext();
17451 __pyx_L4_argument_unpacking_done:;
17452 __pyx_r = __pyx_lambda_funcdef_lambda18(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
17455 __Pyx_RefNannyFinishContext();
17459 static PyObject *__pyx_lambda_funcdef_lambda18(PyObject *__pyx_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
17460 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
17461 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_outer_scope;
17462 PyObject *__pyx_r = NULL;
17463 __Pyx_TraceDeclarations
17464 __Pyx_RefNannyDeclarations
17465 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
17467 PyObject *__pyx_t_3 = NULL;
17468 int __pyx_lineno = 0;
17469 const char *__pyx_filename = NULL;
17470 int __pyx_clineno = 0;
17471 __Pyx_RefNannySetupContext(
"lambda18", 0);
17472 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
17473 __pyx_cur_scope = __pyx_outer_scope;
17474 __Pyx_TraceCall(
"lambda18", __pyx_f[0], 592, 0, __PYX_ERR(0, 592, __pyx_L1_error));
17475 __Pyx_XDECREF(__pyx_r);
17476 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 592, __pyx_L1_error) }
17477 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_x, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 592, __pyx_L1_error)
17478 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 592, __pyx_L1_error)
17479 __pyx_t_3 = PyFloat_FromDouble(((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective(__pyx_cur_scope->__pyx_v_self, __pyx_t_1, __pyx_t_2));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error)
17480 __Pyx_GOTREF(__pyx_t_3);
17481 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17482 __pyx_t_1.memview = NULL;
17483 __pyx_t_1.data = NULL;
17484 __pyx_r = __pyx_t_3;
17490 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
17491 __Pyx_XDECREF(__pyx_t_3);
17492 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet.lambda18", __pyx_clineno, __pyx_lineno, __pyx_filename);
17495 __Pyx_XGIVEREF(__pyx_r);
17496 __Pyx_TraceReturn(__pyx_r, 0);
17497 __Pyx_RefNannyFinishContext();
17509 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_wave, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_orientation, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_vof_air, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dInflow) {
17510 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_cur_scope;
17511 PyObject *__pyx_v_b_or = NULL;
17512 PyObject *__pyx_r = NULL;
17513 __Pyx_TraceDeclarations
17514 __Pyx_RefNannyDeclarations
17515 PyObject *__pyx_t_1 = NULL;
17516 PyObject *__pyx_t_2 = NULL;
17517 PyObject *__pyx_t_3 = NULL;
17520 int __pyx_lineno = 0;
17521 const char *__pyx_filename = NULL;
17522 int __pyx_clineno = 0;
17523 __Pyx_TraceFrameInit(__pyx_codeobj__37)
17524 __Pyx_RefNannySetupContext(
"setUnsteadyTwoPhaseVelocityInlet", 0);
17525 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet, __pyx_empty_tuple, NULL);
17526 if (unlikely(!__pyx_cur_scope)) {
17527 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)Py_None);
17528 __Pyx_INCREF(Py_None);
17529 __PYX_ERR(0, 544, __pyx_L1_error)
17531 __Pyx_GOTREF(__pyx_cur_scope);
17533 __Pyx_TraceCall(
"setUnsteadyTwoPhaseVelocityInlet", __pyx_f[0], 544, 0, __PYX_ERR(0, 544, __pyx_L1_error));
17534 __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
17535 __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
17536 __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
17537 __Pyx_INCREF(__pyx_v_vert_axis);
17538 __Pyx_INCREF(__pyx_v_wind_speed);
17547 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 570, __pyx_L1_error)
17548 __Pyx_GOTREF(__pyx_t_2);
17550 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
17551 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
17552 if (likely(__pyx_t_3)) {
17553 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
17554 __Pyx_INCREF(__pyx_t_3);
17555 __Pyx_INCREF(
function);
17556 __Pyx_DECREF_SET(__pyx_t_2,
function);
17559 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
17560 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
17561 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 570, __pyx_L1_error)
17562 __Pyx_GOTREF(__pyx_t_1);
17563 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17564 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17573 __pyx_t_4 = (__pyx_v_vert_axis == Py_None);
17574 __pyx_t_5 = (__pyx_t_4 != 0);
17584 __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_cur_scope->__pyx_v_self->__pyx_base.nd - 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error)
17585 __Pyx_GOTREF(__pyx_t_1);
17586 __Pyx_DECREF_SET(__pyx_v_vert_axis, __pyx_t_1);
17605 __pyx_t_5 = (__pyx_v_wind_speed == Py_None);
17606 __pyx_t_4 = (__pyx_t_5 != 0);
17616 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
17617 __Pyx_GOTREF(__pyx_t_2);
17618 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 574, __pyx_L1_error)
17619 __Pyx_GOTREF(__pyx_t_3);
17620 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17622 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
17623 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
17624 if (likely(__pyx_t_2)) {
17625 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
17626 __Pyx_INCREF(__pyx_t_2);
17627 __Pyx_INCREF(
function);
17628 __Pyx_DECREF_SET(__pyx_t_3,
function);
17631 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_3);
17632 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
17633 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
17634 __Pyx_GOTREF(__pyx_t_1);
17635 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17636 __Pyx_DECREF_SET(__pyx_v_wind_speed, __pyx_t_1);
17655 __pyx_t_4 = (__pyx_v_orientation != Py_None);
17656 __pyx_t_5 = (__pyx_t_4 != 0);
17666 __Pyx_INCREF(__pyx_v_orientation);
17667 __pyx_v_b_or = __pyx_v_orientation;
17687 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_cur_scope->__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 578, __pyx_L1_error)
17688 __Pyx_GOTREF(__pyx_t_1);
17689 __pyx_v_b_or = __pyx_t_1;
17701 #ifndef CYTHON_WITHOUT_ASSERTIONS
17702 if (unlikely(!Py_OptimizeFlag)) {
17703 __pyx_t_5 = (__pyx_v_b_or != Py_None);
17704 if (unlikely(!(__pyx_t_5 != 0))) {
17705 PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_ERROR_Boundary_orientation_for_U);
17706 __PYX_ERR(0, 579, __pyx_L1_error)
17718 __pyx_t_1 = __Pyx_PyDict_NewPresized(7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
17719 __Pyx_GOTREF(__pyx_t_1);
17720 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_waves, __pyx_v_wave) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17721 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_vert_axis, __pyx_v_vert_axis) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17722 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_b_or, __pyx_v_b_or) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17731 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_wind_speed, __pyx_v_wind_speed) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17732 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_smoothing, __pyx_v_smoothing) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17733 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_vof_water, __pyx_v_vof_water) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17734 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_vof_air, __pyx_v_vof_air) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
17743 __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics), __pyx_empty_tuple, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
17744 __Pyx_GOTREF(__pyx_t_3);
17745 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17746 __Pyx_GIVEREF(__pyx_t_3);
17747 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->waves);
17748 __Pyx_DECREF(((PyObject *)__pyx_cur_scope->__pyx_v_self->waves));
17749 __pyx_cur_scope->__pyx_v_self->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_t_3);
17759 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_lambda11, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
17760 __Pyx_GOTREF(__pyx_t_3);
17761 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__38);
17762 __Pyx_GIVEREF(__pyx_t_3);
17763 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT);
17764 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT);
17765 __pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT = __pyx_t_3;
17775 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_1lambda12, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 584, __pyx_L1_error)
17776 __Pyx_GOTREF(__pyx_t_3);
17777 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__39);
17778 __Pyx_GIVEREF(__pyx_t_3);
17779 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT);
17780 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT);
17781 __pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT = __pyx_t_3;
17791 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_2lambda13, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 585, __pyx_L1_error)
17792 __Pyx_GOTREF(__pyx_t_3);
17793 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__40);
17794 __Pyx_GIVEREF(__pyx_t_3);
17795 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT);
17796 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT);
17797 __pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT = __pyx_t_3;
17807 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_3lambda14, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
17808 __Pyx_GOTREF(__pyx_t_3);
17809 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__41);
17810 __Pyx_GIVEREF(__pyx_t_3);
17811 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT);
17812 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT);
17813 __pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT = __pyx_t_3;
17823 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_4lambda15, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error)
17824 __Pyx_GOTREF(__pyx_t_3);
17825 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__42);
17826 __Pyx_GIVEREF(__pyx_t_3);
17827 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT);
17828 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT);
17829 __pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT = __pyx_t_3;
17839 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_5lambda16, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 588, __pyx_L1_error)
17840 __Pyx_GOTREF(__pyx_t_3);
17841 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__43);
17842 __Pyx_GIVEREF(__pyx_t_3);
17843 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->p_advective->uOfXT);
17844 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->p_advective->uOfXT);
17845 __pyx_cur_scope->__pyx_v_self->p_advective->uOfXT = __pyx_t_3;
17855 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_6lambda17, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 589, __pyx_L1_error)
17856 __Pyx_GOTREF(__pyx_t_3);
17857 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__44);
17858 __Pyx_GIVEREF(__pyx_t_3);
17859 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->pInc_advective->uOfXT);
17860 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->pInc_advective->uOfXT);
17861 __pyx_cur_scope->__pyx_v_self->pInc_advective->uOfXT = __pyx_t_3;
17871 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->pInc_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error)
17872 __Pyx_GOTREF(__pyx_t_1);
17874 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
17875 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
17876 if (likely(__pyx_t_2)) {
17877 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
17878 __Pyx_INCREF(__pyx_t_2);
17879 __Pyx_INCREF(
function);
17880 __Pyx_DECREF_SET(__pyx_t_1,
function);
17883 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
17884 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
17885 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 591, __pyx_L1_error)
17886 __Pyx_GOTREF(__pyx_t_3);
17887 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17888 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17897 __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_32setUnsteadyTwoPhaseVelocityInlet_7lambda18, 0, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 592, __pyx_L1_error)
17898 __Pyx_GOTREF(__pyx_t_3);
17899 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__45);
17900 __Pyx_GIVEREF(__pyx_t_3);
17901 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->pInit_advective->uOfXT);
17902 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->pInit_advective->uOfXT);
17903 __pyx_cur_scope->__pyx_v_self->pInit_advective->uOfXT = __pyx_t_3;
17913 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->vos_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error)
17914 __Pyx_GOTREF(__pyx_t_1);
17916 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
17917 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
17918 if (likely(__pyx_t_2)) {
17919 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
17920 __Pyx_INCREF(__pyx_t_2);
17921 __Pyx_INCREF(
function);
17922 __Pyx_DECREF_SET(__pyx_t_1,
function);
17925 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
17926 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
17927 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 593, __pyx_L1_error)
17928 __Pyx_GOTREF(__pyx_t_3);
17929 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17930 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17939 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->us_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __pyx_L1_error)
17940 __Pyx_GOTREF(__pyx_t_1);
17942 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
17943 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
17944 if (likely(__pyx_t_2)) {
17945 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
17946 __Pyx_INCREF(__pyx_t_2);
17947 __Pyx_INCREF(
function);
17948 __Pyx_DECREF_SET(__pyx_t_1,
function);
17951 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
17952 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
17953 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 594, __pyx_L1_error)
17954 __Pyx_GOTREF(__pyx_t_3);
17955 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17956 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17965 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->vs_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 595, __pyx_L1_error)
17966 __Pyx_GOTREF(__pyx_t_1);
17968 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
17969 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
17970 if (likely(__pyx_t_2)) {
17971 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
17972 __Pyx_INCREF(__pyx_t_2);
17973 __Pyx_INCREF(
function);
17974 __Pyx_DECREF_SET(__pyx_t_1,
function);
17977 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
17978 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
17979 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 595, __pyx_L1_error)
17980 __Pyx_GOTREF(__pyx_t_3);
17981 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17982 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17991 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->ws_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 596, __pyx_L1_error)
17992 __Pyx_GOTREF(__pyx_t_1);
17994 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
17995 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
17996 if (likely(__pyx_t_2)) {
17997 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
17998 __Pyx_INCREF(__pyx_t_2);
17999 __Pyx_INCREF(
function);
18000 __Pyx_DECREF_SET(__pyx_t_1,
function);
18003 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
18004 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
18005 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 596, __pyx_L1_error)
18006 __Pyx_GOTREF(__pyx_t_3);
18007 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18008 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18017 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->k_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
18018 __Pyx_GOTREF(__pyx_t_1);
18020 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
18021 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
18022 if (likely(__pyx_t_2)) {
18023 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
18024 __Pyx_INCREF(__pyx_t_2);
18025 __Pyx_INCREF(
function);
18026 __Pyx_DECREF_SET(__pyx_t_1,
function);
18029 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_v_kInflow) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_kInflow);
18030 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
18031 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 597, __pyx_L1_error)
18032 __Pyx_GOTREF(__pyx_t_3);
18033 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18034 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18043 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->dissipation_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 598, __pyx_L1_error)
18044 __Pyx_GOTREF(__pyx_t_1);
18046 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
18047 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
18048 if (likely(__pyx_t_2)) {
18049 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
18050 __Pyx_INCREF(__pyx_t_2);
18051 __Pyx_INCREF(
function);
18052 __Pyx_DECREF_SET(__pyx_t_1,
function);
18055 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_v_dInflow) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_dInflow);
18056 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
18057 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 598, __pyx_L1_error)
18058 __Pyx_GOTREF(__pyx_t_3);
18059 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18060 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18069 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error)
18070 __Pyx_GOTREF(__pyx_t_1);
18072 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
18073 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
18074 if (likely(__pyx_t_2)) {
18075 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
18076 __Pyx_INCREF(__pyx_t_2);
18077 __Pyx_INCREF(
function);
18078 __Pyx_DECREF_SET(__pyx_t_1,
function);
18081 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_);
18082 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
18083 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 599, __pyx_L1_error)
18084 __Pyx_GOTREF(__pyx_t_3);
18085 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18086 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18095 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
18096 __Pyx_GOTREF(__pyx_t_1);
18098 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
18099 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
18100 if (likely(__pyx_t_2)) {
18101 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
18102 __Pyx_INCREF(__pyx_t_2);
18103 __Pyx_INCREF(
function);
18104 __Pyx_DECREF_SET(__pyx_t_1,
function);
18107 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_2, __pyx_float_0_0) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_float_0_0);
18108 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
18109 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 600, __pyx_L1_error)
18110 __Pyx_GOTREF(__pyx_t_3);
18111 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18112 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18123 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18126 __Pyx_XDECREF(__pyx_t_1);
18127 __Pyx_XDECREF(__pyx_t_2);
18128 __Pyx_XDECREF(__pyx_t_3);
18129 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setUnsteadyTwoPhaseVelocityInlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
18132 __Pyx_XDECREF(__pyx_v_b_or);
18133 __Pyx_XDECREF(__pyx_v_vert_axis);
18134 __Pyx_XDECREF(__pyx_v_wind_speed);
18135 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
18136 __Pyx_XGIVEREF(__pyx_r);
18137 __Pyx_TraceReturn(__pyx_r, 0);
18138 __Pyx_RefNannyFinishContext();
18150 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18151 double __pyx_v_xx[3];
18153 __Pyx_TraceDeclarations
18154 __Pyx_RefNannyDeclarations
18155 Py_ssize_t __pyx_t_1;
18156 __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
18157 int __pyx_lineno = 0;
18158 const char *__pyx_filename = NULL;
18159 int __pyx_clineno = 0;
18160 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet", 0);
18161 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet", __pyx_f[0], 602, 0, __PYX_ERR(0, 602, __pyx_L1_error));
18171 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18181 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18191 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18200 __pyx_t_2 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_velocity(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(0, 607, __pyx_L1_error)
18202 __pyx_r = (*((
double *) ( (__pyx_t_2.data + __pyx_t_1 * __pyx_t_2.strides[0]) )));
18203 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18204 __pyx_t_2.memview = NULL;
18205 __pyx_t_2.data = NULL;
18218 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18219 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18222 __Pyx_TraceReturn(Py_None, 0);
18223 __Pyx_RefNannyFinishContext();
18235 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18236 double __pyx_v_xx[3];
18238 __Pyx_TraceDeclarations
18239 __Pyx_RefNannyDeclarations
18240 Py_ssize_t __pyx_t_1;
18241 __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
18242 int __pyx_lineno = 0;
18243 const char *__pyx_filename = NULL;
18244 int __pyx_clineno = 0;
18245 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet", 0);
18246 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet", __pyx_f[0], 609, 0, __PYX_ERR(0, 609, __pyx_L1_error));
18256 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18266 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18276 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18285 __pyx_t_2 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_velocity(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(0, 614, __pyx_L1_error)
18287 __pyx_r = (*((
double *) ( (__pyx_t_2.data + __pyx_t_1 * __pyx_t_2.strides[0]) )));
18288 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18289 __pyx_t_2.memview = NULL;
18290 __pyx_t_2.data = NULL;
18303 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18304 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18307 __Pyx_TraceReturn(Py_None, 0);
18308 __Pyx_RefNannyFinishContext();
18320 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18321 double __pyx_v_xx[3];
18323 __Pyx_TraceDeclarations
18324 __Pyx_RefNannyDeclarations
18325 Py_ssize_t __pyx_t_1;
18326 __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
18327 int __pyx_lineno = 0;
18328 const char *__pyx_filename = NULL;
18329 int __pyx_clineno = 0;
18330 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet", 0);
18331 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet", __pyx_f[0], 616, 0, __PYX_ERR(0, 616, __pyx_L1_error));
18341 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18351 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18361 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18370 __pyx_t_2 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_velocity(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(0, 621, __pyx_L1_error)
18372 __pyx_r = (*((
double *) ( (__pyx_t_2.data + __pyx_t_1 * __pyx_t_2.strides[0]) )));
18373 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18374 __pyx_t_2.memview = NULL;
18375 __pyx_t_2.data = NULL;
18388 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
18389 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18392 __Pyx_TraceReturn(Py_None, 0);
18393 __Pyx_RefNannyFinishContext();
18405 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18406 double __pyx_v_xx[3];
18408 __Pyx_TraceDeclarations
18409 __Pyx_RefNannyDeclarations
18410 Py_ssize_t __pyx_t_1;
18411 int __pyx_lineno = 0;
18412 const char *__pyx_filename = NULL;
18413 int __pyx_clineno = 0;
18414 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_p_advective", 0);
18415 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_p_advective", __pyx_f[0], 623, 0, __PYX_ERR(0, 623, __pyx_L1_error));
18425 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18435 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18445 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18454 __pyx_r = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_pressure(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
18467 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_p_advective", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18470 __Pyx_TraceReturn(Py_None, 0);
18471 __Pyx_RefNannyFinishContext();
18483 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18484 double __pyx_v_xx[3];
18486 __Pyx_TraceDeclarations
18487 __Pyx_RefNannyDeclarations
18488 Py_ssize_t __pyx_t_1;
18489 int __pyx_lineno = 0;
18490 const char *__pyx_filename = NULL;
18491 int __pyx_clineno = 0;
18492 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet", 0);
18493 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet", __pyx_f[0], 630, 0, __PYX_ERR(0, 630, __pyx_L1_error));
18503 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18513 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18523 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18532 __pyx_r = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_phi(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
18545 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18548 __Pyx_TraceReturn(Py_None, 0);
18549 __Pyx_RefNannyFinishContext();
18561 double __pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, __Pyx_memviewslice __pyx_v_x,
double __pyx_v_t) {
18562 double __pyx_v_xx[3];
18564 __Pyx_TraceDeclarations
18565 __Pyx_RefNannyDeclarations
18566 Py_ssize_t __pyx_t_1;
18567 int __pyx_lineno = 0;
18568 const char *__pyx_filename = NULL;
18569 int __pyx_clineno = 0;
18570 __Pyx_RefNannySetupContext(
"__cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet", 0);
18571 __Pyx_TraceCall(
"__cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet", __pyx_f[0], 637, 0, __PYX_ERR(0, 637, __pyx_L1_error));
18581 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18591 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18601 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
18610 __pyx_r = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_vof(__pyx_v_self->waves, __pyx_v_xx, __pyx_v_t);
18623 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.BC_RANS.__cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
18626 __Pyx_TraceReturn(Py_None, 0);
18627 __Pyx_RefNannyFinishContext();
18640 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18641 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet[] =
"BC_RANS.setTwoPhaseVelocityInlet(self, U, waterLevel, smoothing, Uwind=None, vert_axis=None, air=1., water=0., kInflow=None, dissipationInflow=None, kInflowAir=None, dissipationInflowAir=None)\n\n Imposes a velocity profile lower than the sea level and an open\n boundary for higher than the sealevel.\n Parameters\n ----------\n U: list.\n Velocity vector at the global system.\n Uwind: list.\n Air velocity vector at the global system.\n waterLevel: float.\n water level at global coordinate system.\n smoothing: float.\n range within smoothing function is valid.\n [3.0 times mesh element size can be a good value]\n vert_axis: optional. \n index of vertical in position vector, must always be\n aligned with gravity, by default set to 1].\n air: optional.\n Volume fraction for air (1.0 by default).\n water: optional.\n Volume fraction for water (0.0 by default).\n kInflow: float (optional).\n K inflow value for turbulent model imposed at the boundary.\n dissipationInflow: float (optional).\n Dissipation inflow value for turbulent model imposed at the boundary.\n kInflowAir: float (optional).\n Air K inflow value for turbulent model imposed at the boundary.\n dissipationInflowAir: float (optional).\n Air dissipation inflow value for turbulent model imposed at the boundary.\n Below the seawater level, the condition returns the _dirichlet and\n p_advective condition according to the inflow velocity.\n Above the sea water level, the condition returns the gravity as zero,\n and sets _dirichlet condition to zero, only if there is a zero inflow\n velocity component.\n (!) This condition is best used for boundaries and gravity aligned with\n one of the main axes.\n ";
18642 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet = {
"setTwoPhaseVelocityInlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet};
18643 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18644 PyObject *__pyx_v_U = 0;
18645 PyObject *__pyx_v_waterLevel = 0;
18646 PyObject *__pyx_v_smoothing = 0;
18647 PyObject *__pyx_v_Uwind = 0;
18648 PyObject *__pyx_v_vert_axis = 0;
18649 PyObject *__pyx_v_air = 0;
18650 PyObject *__pyx_v_water = 0;
18651 PyObject *__pyx_v_kInflow = 0;
18652 PyObject *__pyx_v_dissipationInflow = 0;
18653 PyObject *__pyx_v_kInflowAir = 0;
18654 PyObject *__pyx_v_dissipationInflowAir = 0;
18655 int __pyx_lineno = 0;
18656 const char *__pyx_filename = NULL;
18657 int __pyx_clineno = 0;
18658 PyObject *__pyx_r = 0;
18659 __Pyx_RefNannyDeclarations
18660 __Pyx_RefNannySetupContext(
"setTwoPhaseVelocityInlet (wrapper)", 0);
18662 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_U,&__pyx_n_s_waterLevel,&__pyx_n_s_smoothing,&__pyx_n_s_Uwind,&__pyx_n_s_vert_axis,&__pyx_n_s_air,&__pyx_n_s_water,&__pyx_n_s_kInflow,&__pyx_n_s_dissipationInflow,&__pyx_n_s_kInflowAir,&__pyx_n_s_dissipationInflowAir,0};
18663 PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
18664 values[3] = ((PyObject *)Py_None);
18673 values[4] = ((PyObject *)Py_None);
18674 values[5] = ((PyObject *)__pyx_float_1_);
18675 values[6] = ((PyObject *)__pyx_float_0_);
18684 values[7] = ((PyObject *)Py_None);
18685 values[8] = ((PyObject *)Py_None);
18694 values[9] = ((PyObject *)Py_None);
18695 values[10] = ((PyObject *)Py_None);
18696 if (unlikely(__pyx_kwds)) {
18697 Py_ssize_t kw_args;
18698 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18699 switch (pos_args) {
18700 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18701 CYTHON_FALLTHROUGH;
18702 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18703 CYTHON_FALLTHROUGH;
18704 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18705 CYTHON_FALLTHROUGH;
18706 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18707 CYTHON_FALLTHROUGH;
18708 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18709 CYTHON_FALLTHROUGH;
18710 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18711 CYTHON_FALLTHROUGH;
18712 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18713 CYTHON_FALLTHROUGH;
18714 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18715 CYTHON_FALLTHROUGH;
18716 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18717 CYTHON_FALLTHROUGH;
18718 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18719 CYTHON_FALLTHROUGH;
18720 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18721 CYTHON_FALLTHROUGH;
18723 default:
goto __pyx_L5_argtuple_error;
18725 kw_args = PyDict_Size(__pyx_kwds);
18726 switch (pos_args) {
18728 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_U)) != 0)) kw_args--;
18729 else goto __pyx_L5_argtuple_error;
18730 CYTHON_FALLTHROUGH;
18732 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waterLevel)) != 0)) kw_args--;
18734 __Pyx_RaiseArgtupleInvalid(
"setTwoPhaseVelocityInlet", 0, 3, 11, 1); __PYX_ERR(0, 644, __pyx_L3_error)
18736 CYTHON_FALLTHROUGH;
18738 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smoothing)) != 0)) kw_args--;
18740 __Pyx_RaiseArgtupleInvalid(
"setTwoPhaseVelocityInlet", 0, 3, 11, 2); __PYX_ERR(0, 644, __pyx_L3_error)
18742 CYTHON_FALLTHROUGH;
18745 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Uwind);
18746 if (value) { values[3] = value; kw_args--; }
18748 CYTHON_FALLTHROUGH;
18751 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vert_axis);
18752 if (value) { values[4] = value; kw_args--; }
18754 CYTHON_FALLTHROUGH;
18757 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_air);
18758 if (value) { values[5] = value; kw_args--; }
18760 CYTHON_FALLTHROUGH;
18763 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_water);
18764 if (value) { values[6] = value; kw_args--; }
18766 CYTHON_FALLTHROUGH;
18769 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflow);
18770 if (value) { values[7] = value; kw_args--; }
18772 CYTHON_FALLTHROUGH;
18775 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dissipationInflow);
18776 if (value) { values[8] = value; kw_args--; }
18778 CYTHON_FALLTHROUGH;
18781 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflowAir);
18782 if (value) { values[9] = value; kw_args--; }
18784 CYTHON_FALLTHROUGH;
18787 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dissipationInflowAir);
18788 if (value) { values[10] = value; kw_args--; }
18791 if (unlikely(kw_args > 0)) {
18792 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setTwoPhaseVelocityInlet") < 0)) __PYX_ERR(0, 644, __pyx_L3_error)
18795 switch (PyTuple_GET_SIZE(__pyx_args)) {
18796 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
18797 CYTHON_FALLTHROUGH;
18798 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
18799 CYTHON_FALLTHROUGH;
18800 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
18801 CYTHON_FALLTHROUGH;
18802 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
18803 CYTHON_FALLTHROUGH;
18804 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
18805 CYTHON_FALLTHROUGH;
18806 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
18807 CYTHON_FALLTHROUGH;
18808 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
18809 CYTHON_FALLTHROUGH;
18810 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
18811 CYTHON_FALLTHROUGH;
18812 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18813 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18814 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18816 default:
goto __pyx_L5_argtuple_error;
18819 __pyx_v_U = values[0];
18820 __pyx_v_waterLevel = values[1];
18821 __pyx_v_smoothing = values[2];
18822 __pyx_v_Uwind = values[3];
18823 __pyx_v_vert_axis = values[4];
18824 __pyx_v_air = values[5];
18825 __pyx_v_water = values[6];
18826 __pyx_v_kInflow = values[7];
18827 __pyx_v_dissipationInflow = values[8];
18828 __pyx_v_kInflowAir = values[9];
18829 __pyx_v_dissipationInflowAir = values[10];
18831 goto __pyx_L4_argument_unpacking_done;
18832 __pyx_L5_argtuple_error:;
18833 __Pyx_RaiseArgtupleInvalid(
"setTwoPhaseVelocityInlet", 0, 3, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 644, __pyx_L3_error)
18835 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
18836 __Pyx_RefNannyFinishContext();
18838 __pyx_L4_argument_unpacking_done:;
18839 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_U, __pyx_v_waterLevel, __pyx_v_smoothing, __pyx_v_Uwind, __pyx_v_vert_axis, __pyx_v_air, __pyx_v_water, __pyx_v_kInflow, __pyx_v_dissipationInflow, __pyx_v_kInflowAir, __pyx_v_dissipationInflowAir);
18850 __Pyx_RefNannyFinishContext();
18863 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_1get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i);
18864 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_1get_inlet_ux_dirichlet = {
"get_inlet_ux_dirichlet", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_1get_inlet_ux_dirichlet, METH_O, 0};
18865 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_1get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i) {
18866 PyObject *__pyx_r = 0;
18867 __Pyx_RefNannyDeclarations
18868 __Pyx_RefNannySetupContext(
"get_inlet_ux_dirichlet (wrapper)", 0);
18869 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(__pyx_self, ((PyObject *)__pyx_v_i));
18872 __Pyx_RefNannyFinishContext();
18885 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_1ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18886 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_1ux_dirichlet = {
"ux_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_1ux_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
18887 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_1ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18888 PyObject *__pyx_v_x = 0;
18889 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
18890 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
18891 int __pyx_lineno = 0;
18892 const char *__pyx_filename = NULL;
18893 int __pyx_clineno = 0;
18894 PyObject *__pyx_r = 0;
18895 __Pyx_RefNannyDeclarations
18896 __Pyx_RefNannySetupContext(
"ux_dirichlet (wrapper)", 0);
18898 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
18899 PyObject* values[3] = {0,0,0};
18900 values[2] = ((PyObject *)((PyObject *)Py_None));
18901 if (unlikely(__pyx_kwds)) {
18902 Py_ssize_t kw_args;
18903 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18904 switch (pos_args) {
18905 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18906 CYTHON_FALLTHROUGH;
18907 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18908 CYTHON_FALLTHROUGH;
18909 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18910 CYTHON_FALLTHROUGH;
18912 default:
goto __pyx_L5_argtuple_error;
18914 kw_args = PyDict_Size(__pyx_kwds);
18915 switch (pos_args) {
18917 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
18918 else goto __pyx_L5_argtuple_error;
18919 CYTHON_FALLTHROUGH;
18921 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
18923 __Pyx_RaiseArgtupleInvalid(
"ux_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 697, __pyx_L3_error)
18925 CYTHON_FALLTHROUGH;
18928 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
18929 if (value) { values[2] = value; kw_args--; }
18932 if (unlikely(kw_args > 0)) {
18933 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ux_dirichlet") < 0)) __PYX_ERR(0, 697, __pyx_L3_error)
18936 switch (PyTuple_GET_SIZE(__pyx_args)) {
18937 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
18938 CYTHON_FALLTHROUGH;
18939 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18940 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18942 default:
goto __pyx_L5_argtuple_error;
18945 __pyx_v_x = values[0];
18946 __pyx_v_t = values[1];
18947 __pyx_v_n = values[2];
18949 goto __pyx_L4_argument_unpacking_done;
18950 __pyx_L5_argtuple_error:;
18951 __Pyx_RaiseArgtupleInvalid(
"ux_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 697, __pyx_L3_error)
18953 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.get_inlet_ux_dirichlet.ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
18954 __Pyx_RefNannyFinishContext();
18956 __pyx_L4_argument_unpacking_done:;
18957 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_ux_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
18960 __Pyx_RefNannyFinishContext();
18964 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
18965 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *__pyx_cur_scope;
18966 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *__pyx_outer_scope;
18967 PyObject *__pyx_v_phi = NULL;
18968 PyObject *__pyx_v_H = NULL;
18969 PyObject *__pyx_v_u = NULL;
18970 PyObject *__pyx_r = NULL;
18971 __Pyx_TraceDeclarations
18972 __Pyx_RefNannyDeclarations
18973 PyObject *__pyx_t_1 = NULL;
18974 PyObject *__pyx_t_2 = NULL;
18976 PyObject *__pyx_t_4 = NULL;
18977 PyObject *__pyx_t_5 = NULL;
18979 PyObject *__pyx_t_7 = NULL;
18980 int __pyx_lineno = 0;
18981 const char *__pyx_filename = NULL;
18982 int __pyx_clineno = 0;
18983 __Pyx_RefNannySetupContext(
"ux_dirichlet", 0);
18984 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
18985 __pyx_cur_scope = __pyx_outer_scope;
18986 __Pyx_TraceCall(
"ux_dirichlet", __pyx_f[0], 697, 0, __PYX_ERR(0, 697, __pyx_L1_error));
18995 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 698, __pyx_L1_error) }
18996 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
18997 __Pyx_GOTREF(__pyx_t_1);
18998 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 698, __pyx_L1_error) }
18999 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
19000 __Pyx_GOTREF(__pyx_t_2);
19001 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19002 __pyx_v_phi = __pyx_t_2;
19012 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 699, __pyx_L1_error)
19013 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 699, __pyx_L1_error)
19014 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19024 __Pyx_INCREF(__pyx_float_0_0);
19025 __pyx_v_H = __pyx_float_0_0;
19044 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 701, __pyx_L1_error)
19045 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
19046 __Pyx_DECREF(__pyx_t_2);
19047 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 701, __pyx_L1_error) }
19048 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 701, __pyx_L1_error)
19050 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 701, __pyx_L1_error)
19051 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19061 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error)
19062 __Pyx_GOTREF(__pyx_t_1);
19063 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 702, __pyx_L1_error) }
19064 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 702, __pyx_L1_error) }
19065 __pyx_t_4 = __Pyx_PyFloat_TrueDivideObjC(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_float_2_, 2., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error)
19066 __Pyx_GOTREF(__pyx_t_4);
19067 __pyx_t_5 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 702, __pyx_L1_error)
19068 __Pyx_GOTREF(__pyx_t_5);
19069 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19072 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
19073 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
19074 if (likely(__pyx_t_4)) {
19075 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
19076 __Pyx_INCREF(__pyx_t_4);
19077 __Pyx_INCREF(
function);
19078 __Pyx_DECREF_SET(__pyx_t_1,
function);
19082 #if CYTHON_FAST_PYCALL
19083 if (PyFunction_Check(__pyx_t_1)) {
19084 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_t_5};
19085 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
19086 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
19087 __Pyx_GOTREF(__pyx_t_2);
19088 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
19091 #if CYTHON_FAST_PYCCALL
19092 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
19093 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_t_5};
19094 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
19095 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
19096 __Pyx_GOTREF(__pyx_t_2);
19097 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
19101 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 702, __pyx_L1_error)
19102 __Pyx_GOTREF(__pyx_t_7);
19104 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
19106 __Pyx_INCREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
19107 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
19108 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
19109 __Pyx_GIVEREF(__pyx_t_5);
19110 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5);
19112 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
19113 __Pyx_GOTREF(__pyx_t_2);
19114 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
19116 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19117 __pyx_v_H = __pyx_t_2;
19138 __Pyx_INCREF(__pyx_float_1_0);
19139 __pyx_v_H = __pyx_float_1_0;
19150 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_Uwind)) { __Pyx_RaiseClosureNameError(
"Uwind"); __PYX_ERR(0, 705, __pyx_L1_error) }
19151 if (unlikely(!__pyx_cur_scope->__pyx_v_i)) { __Pyx_RaiseClosureNameError(
"i"); __PYX_ERR(0, 705, __pyx_L1_error) }
19152 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_Uwind, __pyx_cur_scope->__pyx_v_i);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
19153 __Pyx_GOTREF(__pyx_t_2);
19154 __pyx_t_1 = PyNumber_Multiply(__pyx_v_H, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
19155 __Pyx_GOTREF(__pyx_t_1);
19156 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19157 __pyx_t_2 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
19158 __Pyx_GOTREF(__pyx_t_2);
19159 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_U)) { __Pyx_RaiseClosureNameError(
"U"); __PYX_ERR(0, 705, __pyx_L1_error) }
19160 if (unlikely(!__pyx_cur_scope->__pyx_v_i)) { __Pyx_RaiseClosureNameError(
"i"); __PYX_ERR(0, 705, __pyx_L1_error) }
19161 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_U, __pyx_cur_scope->__pyx_v_i);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 705, __pyx_L1_error)
19162 __Pyx_GOTREF(__pyx_t_7);
19163 __pyx_t_5 = PyNumber_Multiply(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 705, __pyx_L1_error)
19164 __Pyx_GOTREF(__pyx_t_5);
19165 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19166 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
19167 __pyx_t_7 = PyNumber_Add(__pyx_t_1, __pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 705, __pyx_L1_error)
19168 __Pyx_GOTREF(__pyx_t_7);
19169 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19170 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
19171 __pyx_v_u = __pyx_t_7;
19181 __Pyx_XDECREF(__pyx_r);
19182 __Pyx_INCREF(__pyx_v_u);
19183 __pyx_r = __pyx_v_u;
19196 __Pyx_XDECREF(__pyx_t_1);
19197 __Pyx_XDECREF(__pyx_t_2);
19198 __Pyx_XDECREF(__pyx_t_4);
19199 __Pyx_XDECREF(__pyx_t_5);
19200 __Pyx_XDECREF(__pyx_t_7);
19201 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.get_inlet_ux_dirichlet.ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19204 __Pyx_XDECREF(__pyx_v_phi);
19205 __Pyx_XDECREF(__pyx_v_H);
19206 __Pyx_XDECREF(__pyx_v_u);
19207 __Pyx_XGIVEREF(__pyx_r);
19208 __Pyx_TraceReturn(__pyx_r, 0);
19209 __Pyx_RefNannyFinishContext();
19221 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i) {
19222 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *__pyx_cur_scope;
19223 PyObject *__pyx_v_ux_dirichlet = 0;
19224 PyObject *__pyx_r = NULL;
19225 __Pyx_TraceDeclarations
19226 __Pyx_RefNannyDeclarations
19227 PyObject *__pyx_t_1 = NULL;
19228 int __pyx_lineno = 0;
19229 const char *__pyx_filename = NULL;
19230 int __pyx_clineno = 0;
19231 __Pyx_RefNannySetupContext(
"get_inlet_ux_dirichlet", 0);
19232 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet, __pyx_empty_tuple, NULL);
19233 if (unlikely(!__pyx_cur_scope)) {
19234 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)Py_None);
19235 __Pyx_INCREF(Py_None);
19236 __PYX_ERR(0, 696, __pyx_L1_error)
19238 __Pyx_GOTREF(__pyx_cur_scope);
19240 __pyx_cur_scope->__pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
19241 __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
19242 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
19243 __Pyx_TraceCall(
"get_inlet_ux_dirichlet", __pyx_f[0], 696, 0, __PYX_ERR(0, 696, __pyx_L1_error));
19244 __pyx_cur_scope->__pyx_v_i = __pyx_v_i;
19245 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i);
19246 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i);
19255 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_22get_inlet_ux_dirichlet_1ux_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__47));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 697, __pyx_L1_error)
19256 __Pyx_GOTREF(__pyx_t_1);
19257 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__48);
19258 __pyx_v_ux_dirichlet = __pyx_t_1;
19268 __Pyx_XDECREF(__pyx_r);
19269 __Pyx_INCREF(__pyx_v_ux_dirichlet);
19270 __pyx_r = __pyx_v_ux_dirichlet;
19283 __Pyx_XDECREF(__pyx_t_1);
19284 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.get_inlet_ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19287 __Pyx_XDECREF(__pyx_v_ux_dirichlet);
19288 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
19289 __Pyx_XGIVEREF(__pyx_r);
19290 __Pyx_TraceReturn(__pyx_r, 0);
19291 __Pyx_RefNannyFinishContext();
19304 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_3inlet_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19305 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_3inlet_phi_dirichlet = {
"inlet_phi_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_3inlet_phi_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
19306 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_3inlet_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19307 PyObject *__pyx_v_x = 0;
19308 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
19309 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
19310 int __pyx_lineno = 0;
19311 const char *__pyx_filename = NULL;
19312 int __pyx_clineno = 0;
19313 PyObject *__pyx_r = 0;
19314 __Pyx_RefNannyDeclarations
19315 __Pyx_RefNannySetupContext(
"inlet_phi_dirichlet (wrapper)", 0);
19317 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
19318 PyObject* values[3] = {0,0,0};
19319 values[2] = ((PyObject *)((PyObject *)Py_None));
19320 if (unlikely(__pyx_kwds)) {
19321 Py_ssize_t kw_args;
19322 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19323 switch (pos_args) {
19324 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19325 CYTHON_FALLTHROUGH;
19326 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19327 CYTHON_FALLTHROUGH;
19328 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19329 CYTHON_FALLTHROUGH;
19331 default:
goto __pyx_L5_argtuple_error;
19333 kw_args = PyDict_Size(__pyx_kwds);
19334 switch (pos_args) {
19336 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
19337 else goto __pyx_L5_argtuple_error;
19338 CYTHON_FALLTHROUGH;
19340 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
19342 __Pyx_RaiseArgtupleInvalid(
"inlet_phi_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 709, __pyx_L3_error)
19344 CYTHON_FALLTHROUGH;
19347 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
19348 if (value) { values[2] = value; kw_args--; }
19351 if (unlikely(kw_args > 0)) {
19352 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_phi_dirichlet") < 0)) __PYX_ERR(0, 709, __pyx_L3_error)
19355 switch (PyTuple_GET_SIZE(__pyx_args)) {
19356 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19357 CYTHON_FALLTHROUGH;
19358 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19359 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19361 default:
goto __pyx_L5_argtuple_error;
19364 __pyx_v_x = values[0];
19365 __pyx_v_t = values[1];
19366 __pyx_v_n = values[2];
19368 goto __pyx_L4_argument_unpacking_done;
19369 __pyx_L5_argtuple_error:;
19370 __Pyx_RaiseArgtupleInvalid(
"inlet_phi_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 709, __pyx_L3_error)
19372 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_phi_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19373 __Pyx_RefNannyFinishContext();
19375 __pyx_L4_argument_unpacking_done:;
19376 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_2inlet_phi_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
19379 __Pyx_RefNannyFinishContext();
19383 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_2inlet_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
19384 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
19385 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
19386 PyObject *__pyx_v_phi = NULL;
19387 PyObject *__pyx_r = NULL;
19388 __Pyx_TraceDeclarations
19389 __Pyx_RefNannyDeclarations
19390 PyObject *__pyx_t_1 = NULL;
19391 PyObject *__pyx_t_2 = NULL;
19392 int __pyx_lineno = 0;
19393 const char *__pyx_filename = NULL;
19394 int __pyx_clineno = 0;
19395 __Pyx_RefNannySetupContext(
"inlet_phi_dirichlet", 0);
19396 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
19397 __pyx_cur_scope = __pyx_outer_scope;
19398 __Pyx_TraceCall(
"inlet_phi_dirichlet", __pyx_f[0], 709, 0, __PYX_ERR(0, 709, __pyx_L1_error));
19407 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 710, __pyx_L1_error) }
19408 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 710, __pyx_L1_error)
19409 __Pyx_GOTREF(__pyx_t_1);
19410 if (unlikely(!__pyx_cur_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 710, __pyx_L1_error) }
19411 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 710, __pyx_L1_error)
19412 __Pyx_GOTREF(__pyx_t_2);
19413 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19414 __pyx_v_phi = __pyx_t_2;
19424 __Pyx_XDECREF(__pyx_r);
19425 __Pyx_INCREF(__pyx_v_phi);
19426 __pyx_r = __pyx_v_phi;
19439 __Pyx_XDECREF(__pyx_t_1);
19440 __Pyx_XDECREF(__pyx_t_2);
19441 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_phi_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19444 __Pyx_XDECREF(__pyx_v_phi);
19445 __Pyx_XGIVEREF(__pyx_r);
19446 __Pyx_TraceReturn(__pyx_r, 0);
19447 __Pyx_RefNannyFinishContext();
19460 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_5inlet_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19461 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_5inlet_vof_dirichlet = {
"inlet_vof_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_5inlet_vof_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
19462 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_5inlet_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19463 PyObject *__pyx_v_x = 0;
19464 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
19465 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
19466 int __pyx_lineno = 0;
19467 const char *__pyx_filename = NULL;
19468 int __pyx_clineno = 0;
19469 PyObject *__pyx_r = 0;
19470 __Pyx_RefNannyDeclarations
19471 __Pyx_RefNannySetupContext(
"inlet_vof_dirichlet (wrapper)", 0);
19473 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
19474 PyObject* values[3] = {0,0,0};
19475 values[2] = ((PyObject *)((PyObject *)Py_None));
19476 if (unlikely(__pyx_kwds)) {
19477 Py_ssize_t kw_args;
19478 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19479 switch (pos_args) {
19480 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19481 CYTHON_FALLTHROUGH;
19482 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19483 CYTHON_FALLTHROUGH;
19484 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19485 CYTHON_FALLTHROUGH;
19487 default:
goto __pyx_L5_argtuple_error;
19489 kw_args = PyDict_Size(__pyx_kwds);
19490 switch (pos_args) {
19492 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
19493 else goto __pyx_L5_argtuple_error;
19494 CYTHON_FALLTHROUGH;
19496 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
19498 __Pyx_RaiseArgtupleInvalid(
"inlet_vof_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 713, __pyx_L3_error)
19500 CYTHON_FALLTHROUGH;
19503 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
19504 if (value) { values[2] = value; kw_args--; }
19507 if (unlikely(kw_args > 0)) {
19508 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_vof_dirichlet") < 0)) __PYX_ERR(0, 713, __pyx_L3_error)
19511 switch (PyTuple_GET_SIZE(__pyx_args)) {
19512 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19513 CYTHON_FALLTHROUGH;
19514 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19515 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19517 default:
goto __pyx_L5_argtuple_error;
19520 __pyx_v_x = values[0];
19521 __pyx_v_t = values[1];
19522 __pyx_v_n = values[2];
19524 goto __pyx_L4_argument_unpacking_done;
19525 __pyx_L5_argtuple_error:;
19526 __Pyx_RaiseArgtupleInvalid(
"inlet_vof_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 713, __pyx_L3_error)
19528 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_vof_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19529 __Pyx_RefNannyFinishContext();
19531 __pyx_L4_argument_unpacking_done:;
19532 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_4inlet_vof_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
19535 __Pyx_RefNannyFinishContext();
19539 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_4inlet_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
19540 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
19541 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
19542 PyObject *__pyx_v_phi = NULL;
19543 PyObject *__pyx_v_H = NULL;
19544 PyObject *__pyx_v_vof = NULL;
19545 PyObject *__pyx_r = NULL;
19546 __Pyx_TraceDeclarations
19547 __Pyx_RefNannyDeclarations
19548 PyObject *__pyx_t_1 = NULL;
19549 PyObject *__pyx_t_2 = NULL;
19552 PyObject *__pyx_t_5 = NULL;
19554 PyObject *__pyx_t_7 = NULL;
19555 int __pyx_lineno = 0;
19556 const char *__pyx_filename = NULL;
19557 int __pyx_clineno = 0;
19558 __Pyx_RefNannySetupContext(
"inlet_vof_dirichlet", 0);
19559 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
19560 __pyx_cur_scope = __pyx_outer_scope;
19561 __Pyx_TraceCall(
"inlet_vof_dirichlet", __pyx_f[0], 713, 0, __PYX_ERR(0, 713, __pyx_L1_error));
19570 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 714, __pyx_L1_error) }
19571 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __pyx_L1_error)
19572 __Pyx_GOTREF(__pyx_t_1);
19573 if (unlikely(!__pyx_cur_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 714, __pyx_L1_error) }
19574 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 714, __pyx_L1_error)
19575 __Pyx_GOTREF(__pyx_t_2);
19576 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19577 __pyx_v_phi = __pyx_t_2;
19587 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 715, __pyx_L1_error) }
19588 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_GE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 715, __pyx_L1_error)
19589 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 715, __pyx_L1_error)
19590 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19600 __Pyx_INCREF(__pyx_float_1_);
19601 __pyx_v_H = __pyx_float_1_;
19620 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 717, __pyx_L1_error) }
19621 __pyx_t_2 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_smoothing, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 717, __pyx_L1_error)
19622 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 717, __pyx_L1_error)
19623 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19626 __pyx_t_3 = __pyx_t_4;
19627 goto __pyx_L4_bool_binop_done;
19629 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 717, __pyx_L1_error) }
19630 __pyx_t_2 = PyNumber_Negative(__pyx_cur_scope->__pyx_v_smoothing);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 717, __pyx_L1_error)
19631 __Pyx_GOTREF(__pyx_t_2);
19632 __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
19633 if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
19634 __Pyx_DECREF(__pyx_t_1);
19635 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 717, __pyx_L1_error) }
19636 __pyx_t_1 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
19638 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19639 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 717, __pyx_L1_error)
19640 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19641 __pyx_t_3 = __pyx_t_4;
19642 __pyx_L4_bool_binop_done:;
19652 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 718, __pyx_L1_error)
19653 __Pyx_GOTREF(__pyx_t_2);
19654 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 718, __pyx_L1_error) }
19657 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
19658 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
19659 if (likely(__pyx_t_5)) {
19660 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
19661 __Pyx_INCREF(__pyx_t_5);
19662 __Pyx_INCREF(
function);
19663 __Pyx_DECREF_SET(__pyx_t_2,
function);
19667 #if CYTHON_FAST_PYCALL
19668 if (PyFunction_Check(__pyx_t_2)) {
19669 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
19670 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
19671 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
19672 __Pyx_GOTREF(__pyx_t_1);
19675 #if CYTHON_FAST_PYCCALL
19676 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
19677 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
19678 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
19679 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
19680 __Pyx_GOTREF(__pyx_t_1);
19684 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 718, __pyx_L1_error)
19685 __Pyx_GOTREF(__pyx_t_7);
19687 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
19689 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
19690 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
19691 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing);
19692 __Pyx_INCREF(__pyx_v_phi);
19693 __Pyx_GIVEREF(__pyx_v_phi);
19694 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_phi);
19695 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
19696 __Pyx_GOTREF(__pyx_t_1);
19697 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
19699 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19700 __pyx_v_H = __pyx_t_1;
19720 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 719, __pyx_L1_error) }
19721 __pyx_t_1 = PyNumber_Negative(__pyx_cur_scope->__pyx_v_smoothing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error)
19722 __Pyx_GOTREF(__pyx_t_1);
19723 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 719, __pyx_L1_error)
19724 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19725 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 719, __pyx_L1_error)
19726 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19736 __Pyx_INCREF(__pyx_float_0_);
19737 __pyx_v_H = __pyx_float_0_;
19756 if (unlikely(!__pyx_v_H)) { __Pyx_RaiseUnboundLocalError(
"H"); __PYX_ERR(0, 721, __pyx_L1_error) }
19757 if (unlikely(!__pyx_cur_scope->__pyx_v_air)) { __Pyx_RaiseClosureNameError(
"air"); __PYX_ERR(0, 721, __pyx_L1_error) }
19758 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_air);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 721, __pyx_L1_error)
19759 __Pyx_GOTREF(__pyx_t_2);
19760 if (unlikely(!__pyx_v_H)) { __Pyx_RaiseUnboundLocalError(
"H"); __PYX_ERR(0, 721, __pyx_L1_error) }
19761 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 721, __pyx_L1_error)
19762 __Pyx_GOTREF(__pyx_t_1);
19763 if (unlikely(!__pyx_cur_scope->__pyx_v_water)) { __Pyx_RaiseClosureNameError(
"water"); __PYX_ERR(0, 721, __pyx_L1_error) }
19764 __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_water);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 721, __pyx_L1_error)
19765 __Pyx_GOTREF(__pyx_t_7);
19766 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19767 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 721, __pyx_L1_error)
19768 __Pyx_GOTREF(__pyx_t_1);
19769 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19770 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
19771 __pyx_v_vof = __pyx_t_1;
19781 __Pyx_XDECREF(__pyx_r);
19782 __Pyx_INCREF(__pyx_v_vof);
19783 __pyx_r = __pyx_v_vof;
19796 __Pyx_XDECREF(__pyx_t_1);
19797 __Pyx_XDECREF(__pyx_t_2);
19798 __Pyx_XDECREF(__pyx_t_5);
19799 __Pyx_XDECREF(__pyx_t_7);
19800 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_vof_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
19803 __Pyx_XDECREF(__pyx_v_phi);
19804 __Pyx_XDECREF(__pyx_v_H);
19805 __Pyx_XDECREF(__pyx_v_vof);
19806 __Pyx_XGIVEREF(__pyx_r);
19807 __Pyx_TraceReturn(__pyx_r, 0);
19808 __Pyx_RefNannyFinishContext();
19821 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_7inlet_p_advective(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
19822 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_7inlet_p_advective = {
"inlet_p_advective", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_7inlet_p_advective, METH_VARARGS|METH_KEYWORDS, 0};
19823 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_7inlet_p_advective(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19824 PyObject *__pyx_v_x = 0;
19825 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
19826 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
19827 int __pyx_lineno = 0;
19828 const char *__pyx_filename = NULL;
19829 int __pyx_clineno = 0;
19830 PyObject *__pyx_r = 0;
19831 __Pyx_RefNannyDeclarations
19832 __Pyx_RefNannySetupContext(
"inlet_p_advective (wrapper)", 0);
19834 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
19835 PyObject* values[3] = {0,0,0};
19836 values[2] = ((PyObject *)((PyObject *)Py_None));
19837 if (unlikely(__pyx_kwds)) {
19838 Py_ssize_t kw_args;
19839 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
19840 switch (pos_args) {
19841 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19842 CYTHON_FALLTHROUGH;
19843 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19844 CYTHON_FALLTHROUGH;
19845 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19846 CYTHON_FALLTHROUGH;
19848 default:
goto __pyx_L5_argtuple_error;
19850 kw_args = PyDict_Size(__pyx_kwds);
19851 switch (pos_args) {
19853 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
19854 else goto __pyx_L5_argtuple_error;
19855 CYTHON_FALLTHROUGH;
19857 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
19859 __Pyx_RaiseArgtupleInvalid(
"inlet_p_advective", 0, 2, 3, 1); __PYX_ERR(0, 724, __pyx_L3_error)
19861 CYTHON_FALLTHROUGH;
19864 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
19865 if (value) { values[2] = value; kw_args--; }
19868 if (unlikely(kw_args > 0)) {
19869 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_p_advective") < 0)) __PYX_ERR(0, 724, __pyx_L3_error)
19872 switch (PyTuple_GET_SIZE(__pyx_args)) {
19873 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
19874 CYTHON_FALLTHROUGH;
19875 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19876 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19878 default:
goto __pyx_L5_argtuple_error;
19881 __pyx_v_x = values[0];
19882 __pyx_v_t = values[1];
19883 __pyx_v_n = values[2];
19885 goto __pyx_L4_argument_unpacking_done;
19886 __pyx_L5_argtuple_error:;
19887 __Pyx_RaiseArgtupleInvalid(
"inlet_p_advective", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 724, __pyx_L3_error)
19889 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_p_advective", __pyx_clineno, __pyx_lineno, __pyx_filename);
19890 __Pyx_RefNannyFinishContext();
19892 __pyx_L4_argument_unpacking_done:;
19893 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_6inlet_p_advective(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
19896 __Pyx_RefNannyFinishContext();
19900 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_6inlet_p_advective(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
19901 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
19902 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
19903 PyObject *__pyx_v_b_or = NULL;
19904 PyObject *__pyx_v_phi = NULL;
19905 PyObject *__pyx_v_H = NULL;
19906 PyObject *__pyx_v_u = NULL;
19907 PyObject *__pyx_v_u_p = NULL;
19908 PyObject *__pyx_r = NULL;
19909 __Pyx_TraceDeclarations
19910 __Pyx_RefNannyDeclarations
19911 PyObject *__pyx_t_1 = NULL;
19912 PyObject *__pyx_t_2 = NULL;
19914 PyObject *__pyx_t_4 = NULL;
19915 PyObject *__pyx_t_5 = NULL;
19917 PyObject *__pyx_t_7 = NULL;
19918 int __pyx_lineno = 0;
19919 const char *__pyx_filename = NULL;
19920 int __pyx_clineno = 0;
19921 __Pyx_RefNannySetupContext(
"inlet_p_advective", 0);
19922 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
19923 __pyx_cur_scope = __pyx_outer_scope;
19924 __Pyx_TraceCall(
"inlet_p_advective", __pyx_f[0], 724, 0, __PYX_ERR(0, 724, __pyx_L1_error));
19933 if (unlikely(!__pyx_cur_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError(
"self"); __PYX_ERR(0, 725, __pyx_L1_error) }
19934 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_cur_scope->__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error)
19935 __Pyx_GOTREF(__pyx_t_1);
19936 __pyx_v_b_or = __pyx_t_1;
19946 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 726, __pyx_L1_error) }
19947 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
19948 __Pyx_GOTREF(__pyx_t_1);
19949 if (unlikely(!__pyx_cur_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 726, __pyx_L1_error) }
19950 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 726, __pyx_L1_error)
19951 __Pyx_GOTREF(__pyx_t_2);
19952 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19953 __pyx_v_phi = __pyx_t_2;
19963 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error)
19964 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 727, __pyx_L1_error)
19965 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19975 __Pyx_INCREF(__pyx_float_0_0);
19976 __pyx_v_H = __pyx_float_0_0;
19995 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 729, __pyx_L1_error)
19996 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
19997 __Pyx_DECREF(__pyx_t_2);
19998 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 729, __pyx_L1_error) }
19999 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 729, __pyx_L1_error)
20001 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 729, __pyx_L1_error)
20002 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20012 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 730, __pyx_L1_error)
20013 __Pyx_GOTREF(__pyx_t_1);
20014 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 730, __pyx_L1_error) }
20015 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 730, __pyx_L1_error) }
20016 __pyx_t_4 = __Pyx_PyFloat_TrueDivideObjC(__pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_, 2., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 730, __pyx_L1_error)
20017 __Pyx_GOTREF(__pyx_t_4);
20018 __pyx_t_5 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 730, __pyx_L1_error)
20019 __Pyx_GOTREF(__pyx_t_5);
20020 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20023 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
20024 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
20025 if (likely(__pyx_t_4)) {
20026 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
20027 __Pyx_INCREF(__pyx_t_4);
20028 __Pyx_INCREF(
function);
20029 __Pyx_DECREF_SET(__pyx_t_1,
function);
20033 #if CYTHON_FAST_PYCALL
20034 if (PyFunction_Check(__pyx_t_1)) {
20035 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20036 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error)
20037 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20038 __Pyx_GOTREF(__pyx_t_2);
20039 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20042 #if CYTHON_FAST_PYCCALL
20043 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
20044 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20045 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error)
20046 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20047 __Pyx_GOTREF(__pyx_t_2);
20048 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20052 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 730, __pyx_L1_error)
20053 __Pyx_GOTREF(__pyx_t_7);
20055 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
20057 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
20058 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
20059 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing);
20060 __Pyx_GIVEREF(__pyx_t_5);
20061 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5);
20063 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error)
20064 __Pyx_GOTREF(__pyx_t_2);
20065 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20067 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20068 __pyx_v_H = __pyx_t_2;
20089 __Pyx_INCREF(__pyx_float_1_0);
20090 __pyx_v_H = __pyx_float_1_0;
20101 if (unlikely(!__pyx_cur_scope->__pyx_v_Uwind)) { __Pyx_RaiseClosureNameError(
"Uwind"); __PYX_ERR(0, 733, __pyx_L1_error) }
20102 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_Uwind);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 733, __pyx_L1_error)
20103 __Pyx_GOTREF(__pyx_t_2);
20104 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
20105 __Pyx_GOTREF(__pyx_t_1);
20106 if (unlikely(!__pyx_cur_scope->__pyx_v_U)) { __Pyx_RaiseClosureNameError(
"U"); __PYX_ERR(0, 733, __pyx_L1_error) }
20107 __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_U);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 733, __pyx_L1_error)
20108 __Pyx_GOTREF(__pyx_t_7);
20109 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20110 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
20111 __Pyx_GOTREF(__pyx_t_1);
20112 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20113 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20114 __pyx_v_u = __pyx_t_1;
20124 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 736, __pyx_L1_error)
20125 __Pyx_GOTREF(__pyx_t_7);
20126 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sum);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
20127 __Pyx_GOTREF(__pyx_t_2);
20128 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20129 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
20130 __Pyx_GOTREF(__pyx_t_5);
20131 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_abs);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 736, __pyx_L1_error)
20132 __Pyx_GOTREF(__pyx_t_4);
20133 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20135 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
20136 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
20137 if (likely(__pyx_t_5)) {
20138 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
20139 __Pyx_INCREF(__pyx_t_5);
20140 __Pyx_INCREF(
function);
20141 __Pyx_DECREF_SET(__pyx_t_4,
function);
20144 __pyx_t_7 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_b_or) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_b_or);
20145 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
20146 if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 736, __pyx_L1_error)
20147 __Pyx_GOTREF(__pyx_t_7);
20148 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20149 __pyx_t_4 = PyNumber_Multiply(__pyx_v_u, __pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 736, __pyx_L1_error)
20150 __Pyx_GOTREF(__pyx_t_4);
20151 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20153 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
20154 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
20155 if (likely(__pyx_t_7)) {
20156 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20157 __Pyx_INCREF(__pyx_t_7);
20158 __Pyx_INCREF(
function);
20159 __Pyx_DECREF_SET(__pyx_t_2,
function);
20162 __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
20163 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
20164 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20165 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
20166 __Pyx_GOTREF(__pyx_t_1);
20167 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20168 __pyx_v_u_p = __pyx_t_1;
20178 __Pyx_XDECREF(__pyx_r);
20179 __pyx_t_1 = PyNumber_Negative(__pyx_v_u_p);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 737, __pyx_L1_error)
20180 __Pyx_GOTREF(__pyx_t_1);
20181 __pyx_r = __pyx_t_1;
20195 __Pyx_XDECREF(__pyx_t_1);
20196 __Pyx_XDECREF(__pyx_t_2);
20197 __Pyx_XDECREF(__pyx_t_4);
20198 __Pyx_XDECREF(__pyx_t_5);
20199 __Pyx_XDECREF(__pyx_t_7);
20200 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_p_advective", __pyx_clineno, __pyx_lineno, __pyx_filename);
20203 __Pyx_XDECREF(__pyx_v_b_or);
20204 __Pyx_XDECREF(__pyx_v_phi);
20205 __Pyx_XDECREF(__pyx_v_H);
20206 __Pyx_XDECREF(__pyx_v_u);
20207 __Pyx_XDECREF(__pyx_v_u_p);
20208 __Pyx_XGIVEREF(__pyx_r);
20209 __Pyx_TraceReturn(__pyx_r, 0);
20210 __Pyx_RefNannyFinishContext();
20223 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_9inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20224 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_9inlet_k_dirichlet = {
"inlet_k_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_9inlet_k_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
20225 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_9inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20226 PyObject *__pyx_v_x = 0;
20227 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
20228 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
20229 int __pyx_lineno = 0;
20230 const char *__pyx_filename = NULL;
20231 int __pyx_clineno = 0;
20232 PyObject *__pyx_r = 0;
20233 __Pyx_RefNannyDeclarations
20234 __Pyx_RefNannySetupContext(
"inlet_k_dirichlet (wrapper)", 0);
20236 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
20237 PyObject* values[3] = {0,0,0};
20238 values[2] = ((PyObject *)((PyObject *)Py_None));
20239 if (unlikely(__pyx_kwds)) {
20240 Py_ssize_t kw_args;
20241 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20242 switch (pos_args) {
20243 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20244 CYTHON_FALLTHROUGH;
20245 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20246 CYTHON_FALLTHROUGH;
20247 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20248 CYTHON_FALLTHROUGH;
20250 default:
goto __pyx_L5_argtuple_error;
20252 kw_args = PyDict_Size(__pyx_kwds);
20253 switch (pos_args) {
20255 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
20256 else goto __pyx_L5_argtuple_error;
20257 CYTHON_FALLTHROUGH;
20259 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
20261 __Pyx_RaiseArgtupleInvalid(
"inlet_k_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 739, __pyx_L3_error)
20263 CYTHON_FALLTHROUGH;
20266 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
20267 if (value) { values[2] = value; kw_args--; }
20270 if (unlikely(kw_args > 0)) {
20271 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_k_dirichlet") < 0)) __PYX_ERR(0, 739, __pyx_L3_error)
20274 switch (PyTuple_GET_SIZE(__pyx_args)) {
20275 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20276 CYTHON_FALLTHROUGH;
20277 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20278 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20280 default:
goto __pyx_L5_argtuple_error;
20283 __pyx_v_x = values[0];
20284 __pyx_v_t = values[1];
20285 __pyx_v_n = values[2];
20287 goto __pyx_L4_argument_unpacking_done;
20288 __pyx_L5_argtuple_error:;
20289 __Pyx_RaiseArgtupleInvalid(
"inlet_k_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 739, __pyx_L3_error)
20291 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
20292 __Pyx_RefNannyFinishContext();
20294 __pyx_L4_argument_unpacking_done:;
20295 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_8inlet_k_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
20298 __Pyx_RefNannyFinishContext();
20302 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_8inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
20303 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
20304 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
20305 PyObject *__pyx_v_phi = NULL;
20306 PyObject *__pyx_v_H = NULL;
20307 PyObject *__pyx_r = NULL;
20308 __Pyx_TraceDeclarations
20309 __Pyx_RefNannyDeclarations
20310 PyObject *__pyx_t_1 = NULL;
20311 PyObject *__pyx_t_2 = NULL;
20313 PyObject *__pyx_t_4 = NULL;
20314 PyObject *__pyx_t_5 = NULL;
20316 PyObject *__pyx_t_7 = NULL;
20317 int __pyx_lineno = 0;
20318 const char *__pyx_filename = NULL;
20319 int __pyx_clineno = 0;
20320 __Pyx_RefNannySetupContext(
"inlet_k_dirichlet", 0);
20321 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
20322 __pyx_cur_scope = __pyx_outer_scope;
20323 __Pyx_TraceCall(
"inlet_k_dirichlet", __pyx_f[0], 739, 0, __PYX_ERR(0, 739, __pyx_L1_error));
20332 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 740, __pyx_L1_error) }
20333 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
20334 __Pyx_GOTREF(__pyx_t_1);
20335 if (unlikely(!__pyx_cur_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 740, __pyx_L1_error) }
20336 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
20337 __Pyx_GOTREF(__pyx_t_2);
20338 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20339 __pyx_v_phi = __pyx_t_2;
20349 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 741, __pyx_L1_error)
20350 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 741, __pyx_L1_error)
20351 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20361 __Pyx_INCREF(__pyx_float_0_0);
20362 __pyx_v_H = __pyx_float_0_0;
20381 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
20382 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
20383 __Pyx_DECREF(__pyx_t_2);
20384 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 743, __pyx_L1_error) }
20385 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
20387 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 743, __pyx_L1_error)
20388 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20398 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 744, __pyx_L1_error)
20399 __Pyx_GOTREF(__pyx_t_1);
20400 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 744, __pyx_L1_error) }
20401 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 744, __pyx_L1_error) }
20402 __pyx_t_4 = __Pyx_PyFloat_TrueDivideObjC(__pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_, 2., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 744, __pyx_L1_error)
20403 __Pyx_GOTREF(__pyx_t_4);
20404 __pyx_t_5 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 744, __pyx_L1_error)
20405 __Pyx_GOTREF(__pyx_t_5);
20406 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20409 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
20410 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
20411 if (likely(__pyx_t_4)) {
20412 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
20413 __Pyx_INCREF(__pyx_t_4);
20414 __Pyx_INCREF(
function);
20415 __Pyx_DECREF_SET(__pyx_t_1,
function);
20419 #if CYTHON_FAST_PYCALL
20420 if (PyFunction_Check(__pyx_t_1)) {
20421 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20422 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 744, __pyx_L1_error)
20423 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20424 __Pyx_GOTREF(__pyx_t_2);
20425 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20428 #if CYTHON_FAST_PYCCALL
20429 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
20430 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20431 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 744, __pyx_L1_error)
20432 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20433 __Pyx_GOTREF(__pyx_t_2);
20434 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20438 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 744, __pyx_L1_error)
20439 __Pyx_GOTREF(__pyx_t_7);
20441 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
20443 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
20444 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
20445 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing);
20446 __Pyx_GIVEREF(__pyx_t_5);
20447 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5);
20449 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 744, __pyx_L1_error)
20450 __Pyx_GOTREF(__pyx_t_2);
20451 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20453 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20454 __pyx_v_H = __pyx_t_2;
20475 __Pyx_INCREF(__pyx_float_1_0);
20476 __pyx_v_H = __pyx_float_1_0;
20487 __Pyx_XDECREF(__pyx_r);
20488 if (unlikely(!__pyx_cur_scope->__pyx_v_kInflowAir)) { __Pyx_RaiseClosureNameError(
"kInflowAir"); __PYX_ERR(0, 747, __pyx_L1_error) }
20489 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_kInflowAir);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 747, __pyx_L1_error)
20490 __Pyx_GOTREF(__pyx_t_2);
20491 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error)
20492 __Pyx_GOTREF(__pyx_t_1);
20493 if (unlikely(!__pyx_cur_scope->__pyx_v_kInflow)) { __Pyx_RaiseClosureNameError(
"kInflow"); __PYX_ERR(0, 747, __pyx_L1_error) }
20494 __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_kInflow);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 747, __pyx_L1_error)
20495 __Pyx_GOTREF(__pyx_t_7);
20496 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20497 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error)
20498 __Pyx_GOTREF(__pyx_t_1);
20499 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20500 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20501 __pyx_r = __pyx_t_1;
20515 __Pyx_XDECREF(__pyx_t_1);
20516 __Pyx_XDECREF(__pyx_t_2);
20517 __Pyx_XDECREF(__pyx_t_4);
20518 __Pyx_XDECREF(__pyx_t_5);
20519 __Pyx_XDECREF(__pyx_t_7);
20520 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
20523 __Pyx_XDECREF(__pyx_v_phi);
20524 __Pyx_XDECREF(__pyx_v_H);
20525 __Pyx_XGIVEREF(__pyx_r);
20526 __Pyx_TraceReturn(__pyx_r, 0);
20527 __Pyx_RefNannyFinishContext();
20540 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_11inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20541 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_11inlet_dissipation_dirichlet = {
"inlet_dissipation_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_11inlet_dissipation_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
20542 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_11inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20543 PyObject *__pyx_v_x = 0;
20544 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
20545 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
20546 int __pyx_lineno = 0;
20547 const char *__pyx_filename = NULL;
20548 int __pyx_clineno = 0;
20549 PyObject *__pyx_r = 0;
20550 __Pyx_RefNannyDeclarations
20551 __Pyx_RefNannySetupContext(
"inlet_dissipation_dirichlet (wrapper)", 0);
20553 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
20554 PyObject* values[3] = {0,0,0};
20555 values[2] = ((PyObject *)((PyObject *)Py_None));
20556 if (unlikely(__pyx_kwds)) {
20557 Py_ssize_t kw_args;
20558 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20559 switch (pos_args) {
20560 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20561 CYTHON_FALLTHROUGH;
20562 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20563 CYTHON_FALLTHROUGH;
20564 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20565 CYTHON_FALLTHROUGH;
20567 default:
goto __pyx_L5_argtuple_error;
20569 kw_args = PyDict_Size(__pyx_kwds);
20570 switch (pos_args) {
20572 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
20573 else goto __pyx_L5_argtuple_error;
20574 CYTHON_FALLTHROUGH;
20576 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
20578 __Pyx_RaiseArgtupleInvalid(
"inlet_dissipation_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 749, __pyx_L3_error)
20580 CYTHON_FALLTHROUGH;
20583 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
20584 if (value) { values[2] = value; kw_args--; }
20587 if (unlikely(kw_args > 0)) {
20588 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_dissipation_dirichlet") < 0)) __PYX_ERR(0, 749, __pyx_L3_error)
20591 switch (PyTuple_GET_SIZE(__pyx_args)) {
20592 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20593 CYTHON_FALLTHROUGH;
20594 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20595 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20597 default:
goto __pyx_L5_argtuple_error;
20600 __pyx_v_x = values[0];
20601 __pyx_v_t = values[1];
20602 __pyx_v_n = values[2];
20604 goto __pyx_L4_argument_unpacking_done;
20605 __pyx_L5_argtuple_error:;
20606 __Pyx_RaiseArgtupleInvalid(
"inlet_dissipation_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 749, __pyx_L3_error)
20608 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
20609 __Pyx_RefNannyFinishContext();
20611 __pyx_L4_argument_unpacking_done:;
20612 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_10inlet_dissipation_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
20615 __Pyx_RefNannyFinishContext();
20619 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_10inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
20620 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
20621 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_outer_scope;
20622 PyObject *__pyx_v_phi = NULL;
20623 PyObject *__pyx_v_H = NULL;
20624 PyObject *__pyx_r = NULL;
20625 __Pyx_TraceDeclarations
20626 __Pyx_RefNannyDeclarations
20627 PyObject *__pyx_t_1 = NULL;
20628 PyObject *__pyx_t_2 = NULL;
20630 PyObject *__pyx_t_4 = NULL;
20631 PyObject *__pyx_t_5 = NULL;
20633 PyObject *__pyx_t_7 = NULL;
20634 int __pyx_lineno = 0;
20635 const char *__pyx_filename = NULL;
20636 int __pyx_clineno = 0;
20637 __Pyx_RefNannySetupContext(
"inlet_dissipation_dirichlet", 0);
20638 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
20639 __pyx_cur_scope = __pyx_outer_scope;
20640 __Pyx_TraceCall(
"inlet_dissipation_dirichlet", __pyx_f[0], 749, 0, __PYX_ERR(0, 749, __pyx_L1_error));
20649 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 750, __pyx_L1_error) }
20650 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 750, __pyx_L1_error)
20651 __Pyx_GOTREF(__pyx_t_1);
20652 if (unlikely(!__pyx_cur_scope->__pyx_v_waterLevel)) { __Pyx_RaiseClosureNameError(
"waterLevel"); __PYX_ERR(0, 750, __pyx_L1_error) }
20653 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_waterLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 750, __pyx_L1_error)
20654 __Pyx_GOTREF(__pyx_t_2);
20655 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20656 __pyx_v_phi = __pyx_t_2;
20666 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 751, __pyx_L1_error)
20667 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 751, __pyx_L1_error)
20668 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20678 __Pyx_INCREF(__pyx_float_0_0);
20679 __pyx_v_H = __pyx_float_0_0;
20698 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 753, __pyx_L1_error)
20699 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
20700 __Pyx_DECREF(__pyx_t_2);
20701 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 753, __pyx_L1_error) }
20702 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 753, __pyx_L1_error)
20704 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 753, __pyx_L1_error)
20705 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20715 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 754, __pyx_L1_error)
20716 __Pyx_GOTREF(__pyx_t_1);
20717 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 754, __pyx_L1_error) }
20718 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 754, __pyx_L1_error) }
20719 __pyx_t_4 = __Pyx_PyFloat_TrueDivideObjC(__pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_, 2., 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 754, __pyx_L1_error)
20720 __Pyx_GOTREF(__pyx_t_4);
20721 __pyx_t_5 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 754, __pyx_L1_error)
20722 __Pyx_GOTREF(__pyx_t_5);
20723 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20726 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
20727 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
20728 if (likely(__pyx_t_4)) {
20729 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
20730 __Pyx_INCREF(__pyx_t_4);
20731 __Pyx_INCREF(
function);
20732 __Pyx_DECREF_SET(__pyx_t_1,
function);
20736 #if CYTHON_FAST_PYCALL
20737 if (PyFunction_Check(__pyx_t_1)) {
20738 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20739 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L1_error)
20740 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20741 __Pyx_GOTREF(__pyx_t_2);
20742 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20745 #if CYTHON_FAST_PYCCALL
20746 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
20747 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_smoothing, __pyx_t_5};
20748 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L1_error)
20749 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
20750 __Pyx_GOTREF(__pyx_t_2);
20751 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
20755 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 754, __pyx_L1_error)
20756 __Pyx_GOTREF(__pyx_t_7);
20758 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
20760 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
20761 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
20762 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing);
20763 __Pyx_GIVEREF(__pyx_t_5);
20764 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5);
20766 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L1_error)
20767 __Pyx_GOTREF(__pyx_t_2);
20768 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20770 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20771 __pyx_v_H = __pyx_t_2;
20792 __Pyx_INCREF(__pyx_float_1_0);
20793 __pyx_v_H = __pyx_float_1_0;
20804 __Pyx_XDECREF(__pyx_r);
20805 if (unlikely(!__pyx_cur_scope->__pyx_v_dissipationInflowAir)) { __Pyx_RaiseClosureNameError(
"dissipationInflowAir"); __PYX_ERR(0, 757, __pyx_L1_error) }
20806 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_dissipationInflowAir);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 757, __pyx_L1_error)
20807 __Pyx_GOTREF(__pyx_t_2);
20808 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
20809 __Pyx_GOTREF(__pyx_t_1);
20810 if (unlikely(!__pyx_cur_scope->__pyx_v_dissipationInflow)) { __Pyx_RaiseClosureNameError(
"dissipationInflow"); __PYX_ERR(0, 757, __pyx_L1_error) }
20811 __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_dissipationInflow);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 757, __pyx_L1_error)
20812 __Pyx_GOTREF(__pyx_t_7);
20813 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20814 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
20815 __Pyx_GOTREF(__pyx_t_1);
20816 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20817 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
20818 __pyx_r = __pyx_t_1;
20832 __Pyx_XDECREF(__pyx_t_1);
20833 __Pyx_XDECREF(__pyx_t_2);
20834 __Pyx_XDECREF(__pyx_t_4);
20835 __Pyx_XDECREF(__pyx_t_5);
20836 __Pyx_XDECREF(__pyx_t_7);
20837 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet.inlet_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
20840 __Pyx_XDECREF(__pyx_v_phi);
20841 __Pyx_XDECREF(__pyx_v_H);
20842 __Pyx_XGIVEREF(__pyx_r);
20843 __Pyx_TraceReturn(__pyx_r, 0);
20844 __Pyx_RefNannyFinishContext();
20856 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_U, PyObject *__pyx_v_waterLevel, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_Uwind, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_air, PyObject *__pyx_v_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dissipationInflow, PyObject *__pyx_v_kInflowAir, PyObject *__pyx_v_dissipationInflowAir) {
20857 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_cur_scope;
20858 PyObject *__pyx_v_get_inlet_ux_dirichlet = 0;
20859 PyObject *__pyx_v_inlet_phi_dirichlet = 0;
20860 PyObject *__pyx_v_inlet_vof_dirichlet = 0;
20861 PyObject *__pyx_v_inlet_p_advective = 0;
20862 PyObject *__pyx_v_inlet_k_dirichlet = 0;
20863 PyObject *__pyx_v_inlet_dissipation_dirichlet = 0;
20864 PyObject *__pyx_r = NULL;
20865 __Pyx_TraceDeclarations
20866 __Pyx_RefNannyDeclarations
20867 PyObject *__pyx_t_1 = NULL;
20868 PyObject *__pyx_t_2 = NULL;
20869 PyObject *__pyx_t_3 = NULL;
20872 int __pyx_lineno = 0;
20873 const char *__pyx_filename = NULL;
20874 int __pyx_clineno = 0;
20875 __Pyx_TraceFrameInit(__pyx_codeobj__49)
20876 __Pyx_RefNannySetupContext(
"setTwoPhaseVelocityInlet", 0);
20877 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet, __pyx_empty_tuple, NULL);
20878 if (unlikely(!__pyx_cur_scope)) {
20879 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)Py_None);
20880 __Pyx_INCREF(Py_None);
20881 __PYX_ERR(0, 644, __pyx_L1_error)
20883 __Pyx_GOTREF(__pyx_cur_scope);
20885 __Pyx_TraceCall(
"setTwoPhaseVelocityInlet", __pyx_f[0], 644, 0, __PYX_ERR(0, 644, __pyx_L1_error));
20886 __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
20887 __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
20888 __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
20889 __pyx_cur_scope->__pyx_v_U = __pyx_v_U;
20890 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_U);
20891 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_U);
20892 __pyx_cur_scope->__pyx_v_waterLevel = __pyx_v_waterLevel;
20893 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_waterLevel);
20894 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_waterLevel);
20895 __pyx_cur_scope->__pyx_v_smoothing = __pyx_v_smoothing;
20896 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
20897 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
20898 __pyx_cur_scope->__pyx_v_Uwind = __pyx_v_Uwind;
20899 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_Uwind);
20900 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_Uwind);
20901 __pyx_cur_scope->__pyx_v_vert_axis = __pyx_v_vert_axis;
20902 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_vert_axis);
20903 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_vert_axis);
20904 __pyx_cur_scope->__pyx_v_air = __pyx_v_air;
20905 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_air);
20906 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_air);
20907 __pyx_cur_scope->__pyx_v_water = __pyx_v_water;
20908 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_water);
20909 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_water);
20910 __pyx_cur_scope->__pyx_v_kInflow = __pyx_v_kInflow;
20911 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_kInflow);
20912 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_kInflow);
20913 __pyx_cur_scope->__pyx_v_dissipationInflow = __pyx_v_dissipationInflow;
20914 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dissipationInflow);
20915 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_dissipationInflow);
20916 __pyx_cur_scope->__pyx_v_kInflowAir = __pyx_v_kInflowAir;
20917 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_kInflowAir);
20918 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_kInflowAir);
20919 __pyx_cur_scope->__pyx_v_dissipationInflowAir = __pyx_v_dissipationInflowAir;
20920 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dissipationInflowAir);
20921 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_dissipationInflowAir);
20930 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_cur_scope->__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
20931 __Pyx_GOTREF(__pyx_t_2);
20933 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
20934 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
20935 if (likely(__pyx_t_3)) {
20936 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
20937 __Pyx_INCREF(__pyx_t_3);
20938 __Pyx_INCREF(
function);
20939 __Pyx_DECREF_SET(__pyx_t_2,
function);
20942 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
20943 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20944 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error)
20945 __Pyx_GOTREF(__pyx_t_1);
20946 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20947 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20956 __Pyx_INCREF(__pyx_n_s_TwoPhaseVelocityInlet);
20957 __Pyx_GIVEREF(__pyx_n_s_TwoPhaseVelocityInlet);
20958 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->__pyx_base.BC_type);
20959 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->__pyx_base.BC_type);
20960 __pyx_cur_scope->__pyx_v_self->__pyx_base.BC_type = __pyx_n_s_TwoPhaseVelocityInlet;
20969 __pyx_t_4 = (__pyx_cur_scope->__pyx_v_vert_axis == Py_None);
20970 __pyx_t_5 = (__pyx_t_4 != 0);
20980 __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_cur_scope->__pyx_v_self->__pyx_base.nd - 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L1_error)
20981 __Pyx_GOTREF(__pyx_t_1);
20982 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_vert_axis);
20983 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_vert_axis, __pyx_t_1);
20984 __Pyx_GIVEREF(__pyx_t_1);
21003 __pyx_t_5 = (__pyx_cur_scope->__pyx_v_Uwind == Py_None);
21004 __pyx_t_4 = (__pyx_t_5 != 0);
21014 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 691, __pyx_L1_error)
21015 __Pyx_GOTREF(__pyx_t_2);
21016 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 691, __pyx_L1_error)
21017 __Pyx_GOTREF(__pyx_t_3);
21018 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21020 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
21021 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
21022 if (likely(__pyx_t_2)) {
21023 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
21024 __Pyx_INCREF(__pyx_t_2);
21025 __Pyx_INCREF(
function);
21026 __Pyx_DECREF_SET(__pyx_t_3,
function);
21029 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_3);
21030 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
21031 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error)
21032 __Pyx_GOTREF(__pyx_t_1);
21033 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21034 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_Uwind);
21035 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_Uwind, __pyx_t_1);
21036 __Pyx_GIVEREF(__pyx_t_1);
21055 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 693, __pyx_L1_error)
21056 __Pyx_GOTREF(__pyx_t_3);
21057 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 693, __pyx_L1_error)
21058 __Pyx_GOTREF(__pyx_t_2);
21059 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21061 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
21062 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
21063 if (likely(__pyx_t_3)) {
21064 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
21065 __Pyx_INCREF(__pyx_t_3);
21066 __Pyx_INCREF(
function);
21067 __Pyx_DECREF_SET(__pyx_t_2,
function);
21070 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_cur_scope->__pyx_v_U) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_cur_scope->__pyx_v_U);
21071 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
21072 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 693, __pyx_L1_error)
21073 __Pyx_GOTREF(__pyx_t_1);
21074 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21075 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_U);
21076 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_U, __pyx_t_1);
21077 __Pyx_GIVEREF(__pyx_t_1);
21087 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error)
21088 __Pyx_GOTREF(__pyx_t_2);
21089 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 694, __pyx_L1_error)
21090 __Pyx_GOTREF(__pyx_t_3);
21091 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21093 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
21094 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
21095 if (likely(__pyx_t_2)) {
21096 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
21097 __Pyx_INCREF(__pyx_t_2);
21098 __Pyx_INCREF(
function);
21099 __Pyx_DECREF_SET(__pyx_t_3,
function);
21102 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_cur_scope->__pyx_v_Uwind) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_cur_scope->__pyx_v_Uwind);
21103 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
21104 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
21105 __Pyx_GOTREF(__pyx_t_1);
21106 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21107 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_Uwind);
21108 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_Uwind, __pyx_t_1);
21109 __Pyx_GIVEREF(__pyx_t_1);
21119 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_1get_inlet_ux_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_2, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__51));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L1_error)
21120 __Pyx_GOTREF(__pyx_t_1);
21121 __pyx_v_get_inlet_ux_dirichlet = __pyx_t_1;
21131 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_3inlet_phi_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_3, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__53));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L1_error)
21132 __Pyx_GOTREF(__pyx_t_1);
21133 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__54);
21134 __pyx_v_inlet_phi_dirichlet = __pyx_t_1;
21144 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_5inlet_vof_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_4, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__56));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 713, __pyx_L1_error)
21145 __Pyx_GOTREF(__pyx_t_1);
21146 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__57);
21147 __pyx_v_inlet_vof_dirichlet = __pyx_t_1;
21157 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_7inlet_p_advective, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_5, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__59));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 724, __pyx_L1_error)
21158 __Pyx_GOTREF(__pyx_t_1);
21159 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__60);
21160 __pyx_v_inlet_p_advective = __pyx_t_1;
21170 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_9inlet_k_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_6, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__62));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 739, __pyx_L1_error)
21171 __Pyx_GOTREF(__pyx_t_1);
21172 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__63);
21173 __pyx_v_inlet_k_dirichlet = __pyx_t_1;
21183 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_11inlet_dissipation_dirichlet, 0, __pyx_n_s_setTwoPhaseVelocityInlet_locals_7, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__65));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 749, __pyx_L1_error)
21184 __Pyx_GOTREF(__pyx_t_1);
21185 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__66);
21186 __pyx_v_inlet_dissipation_dirichlet = __pyx_t_1;
21196 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 759, __pyx_L1_error)
21197 __Pyx_GOTREF(__pyx_t_1);
21198 __Pyx_GIVEREF(__pyx_t_1);
21199 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT);
21200 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT);
21201 __pyx_cur_scope->__pyx_v_self->u_dirichlet->uOfXT = __pyx_t_1;
21211 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 760, __pyx_L1_error)
21212 __Pyx_GOTREF(__pyx_t_1);
21213 __Pyx_GIVEREF(__pyx_t_1);
21214 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT);
21215 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT);
21216 __pyx_cur_scope->__pyx_v_self->v_dirichlet->uOfXT = __pyx_t_1;
21226 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_24setTwoPhaseVelocityInlet_get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 761, __pyx_L1_error)
21227 __Pyx_GOTREF(__pyx_t_1);
21228 __Pyx_GIVEREF(__pyx_t_1);
21229 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT);
21230 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT);
21231 __pyx_cur_scope->__pyx_v_self->w_dirichlet->uOfXT = __pyx_t_1;
21241 __Pyx_INCREF(__pyx_v_inlet_phi_dirichlet);
21242 __Pyx_GIVEREF(__pyx_v_inlet_phi_dirichlet);
21243 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT);
21244 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT);
21245 __pyx_cur_scope->__pyx_v_self->phi_dirichlet->uOfXT = __pyx_v_inlet_phi_dirichlet;
21254 __Pyx_INCREF(__pyx_v_inlet_vof_dirichlet);
21255 __Pyx_GIVEREF(__pyx_v_inlet_vof_dirichlet);
21256 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT);
21257 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT);
21258 __pyx_cur_scope->__pyx_v_self->vof_dirichlet->uOfXT = __pyx_v_inlet_vof_dirichlet;
21267 __Pyx_INCREF(__pyx_v_inlet_p_advective);
21268 __Pyx_GIVEREF(__pyx_v_inlet_p_advective);
21269 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->p_advective->uOfXT);
21270 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->p_advective->uOfXT);
21271 __pyx_cur_scope->__pyx_v_self->p_advective->uOfXT = __pyx_v_inlet_p_advective;
21280 __pyx_t_4 = (__pyx_cur_scope->__pyx_v_kInflow != Py_None);
21281 __pyx_t_5 = (__pyx_t_4 != 0);
21291 __Pyx_INCREF(__pyx_v_inlet_k_dirichlet);
21292 __Pyx_GIVEREF(__pyx_v_inlet_k_dirichlet);
21293 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->k_dirichlet->uOfXT);
21294 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->k_dirichlet->uOfXT);
21295 __pyx_cur_scope->__pyx_v_self->k_dirichlet->uOfXT = __pyx_v_inlet_k_dirichlet;
21304 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_cur_scope->__pyx_v_self->k_advective->__pyx_vtab)->resetBC(__pyx_cur_scope->__pyx_v_self->k_advective, 0);
21313 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_cur_scope->__pyx_v_self->k_diffusive->__pyx_vtab)->resetBC(__pyx_cur_scope->__pyx_v_self->k_diffusive, 0);
21331 __pyx_t_5 = (__pyx_cur_scope->__pyx_v_dissipationInflow != Py_None);
21332 __pyx_t_4 = (__pyx_t_5 != 0);
21342 __Pyx_INCREF(__pyx_v_inlet_dissipation_dirichlet);
21343 __Pyx_GIVEREF(__pyx_v_inlet_dissipation_dirichlet);
21344 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_self->dissipation_dirichlet->uOfXT);
21345 __Pyx_DECREF(__pyx_cur_scope->__pyx_v_self->dissipation_dirichlet->uOfXT);
21346 __pyx_cur_scope->__pyx_v_self->dissipation_dirichlet->uOfXT = __pyx_v_inlet_dissipation_dirichlet;
21355 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_cur_scope->__pyx_v_self->dissipation_advective->__pyx_vtab)->resetBC(__pyx_cur_scope->__pyx_v_self->dissipation_advective, 0);
21364 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_cur_scope->__pyx_v_self->dissipation_diffusive->__pyx_vtab)->resetBC(__pyx_cur_scope->__pyx_v_self->dissipation_diffusive, 0);
21384 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21387 __Pyx_XDECREF(__pyx_t_1);
21388 __Pyx_XDECREF(__pyx_t_2);
21389 __Pyx_XDECREF(__pyx_t_3);
21390 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setTwoPhaseVelocityInlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
21393 __Pyx_XDECREF(__pyx_v_get_inlet_ux_dirichlet);
21394 __Pyx_XDECREF(__pyx_v_inlet_phi_dirichlet);
21395 __Pyx_XDECREF(__pyx_v_inlet_vof_dirichlet);
21396 __Pyx_XDECREF(__pyx_v_inlet_p_advective);
21397 __Pyx_XDECREF(__pyx_v_inlet_k_dirichlet);
21398 __Pyx_XDECREF(__pyx_v_inlet_dissipation_dirichlet);
21399 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
21400 __Pyx_XGIVEREF(__pyx_r);
21401 __Pyx_TraceReturn(__pyx_r, 0);
21402 __Pyx_RefNannyFinishContext();
21415 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21416 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth[] =
"BC_RANS.setHydrostaticPressureOutletWithDepth(self, seaLevel, rhoUp, rhoDown, g, refLevel, smoothing, orientation=None, U=None, Uwind=None, pRef=0.0, vert_axis=None, air=1.0, water=0.0, kInflow=None, dissipationInflow=None, kInflowAir=None, dissipationInflowAir=None)\n\n Returns the pressure and vof profile based on the known depth.\n If the boundary is aligned with one of the main axes, sets the tangential\n velocity components to zero as well.\n (!) This condition is best used for boundaries and gravity aligned with\n one of the main axes.\n\n Parameters\n ----------\n rhoUp: Phase density of the upper part.\n rhoDown: Phase density of the lower part.\n g: Gravitational acceleration vector.\n refLevel: Level at which pressure = pRef.\n pRef: Reference value for the pressure at x[vert_axis]=refLevel, by default set to 0.\n vert_axis: index of vertical in position vector, must always be aligned with gravity, by default set to 1.\n ";
21417 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth = {
"setHydrostaticPressureOutletWithDepth", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth};
21418 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21419 PyObject *__pyx_v_seaLevel = 0;
21420 PyObject *__pyx_v_rhoUp = 0;
21421 PyObject *__pyx_v_rhoDown = 0;
21422 PyObject *__pyx_v_g = 0;
21423 PyObject *__pyx_v_refLevel = 0;
21424 PyObject *__pyx_v_smoothing = 0;
21425 PyObject *__pyx_v_orientation = 0;
21426 PyObject *__pyx_v_U = 0;
21427 PyObject *__pyx_v_Uwind = 0;
21428 PyObject *__pyx_v_pRef = 0;
21429 PyObject *__pyx_v_vert_axis = 0;
21430 PyObject *__pyx_v_air = 0;
21431 PyObject *__pyx_v_water = 0;
21432 PyObject *__pyx_v_kInflow = 0;
21433 PyObject *__pyx_v_dissipationInflow = 0;
21434 PyObject *__pyx_v_kInflowAir = 0;
21435 PyObject *__pyx_v_dissipationInflowAir = 0;
21436 int __pyx_lineno = 0;
21437 const char *__pyx_filename = NULL;
21438 int __pyx_clineno = 0;
21439 PyObject *__pyx_r = 0;
21440 __Pyx_RefNannyDeclarations
21441 __Pyx_RefNannySetupContext(
"setHydrostaticPressureOutletWithDepth (wrapper)", 0);
21443 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_seaLevel,&__pyx_n_s_rhoUp,&__pyx_n_s_rhoDown,&__pyx_n_s_g,&__pyx_n_s_refLevel,&__pyx_n_s_smoothing,&__pyx_n_s_orientation,&__pyx_n_s_U,&__pyx_n_s_Uwind,&__pyx_n_s_pRef,&__pyx_n_s_vert_axis,&__pyx_n_s_air,&__pyx_n_s_water,&__pyx_n_s_kInflow,&__pyx_n_s_dissipationInflow,&__pyx_n_s_kInflowAir,&__pyx_n_s_dissipationInflowAir,0};
21444 PyObject* values[17] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
21453 values[6] = ((PyObject *)Py_None);
21454 values[7] = ((PyObject *)Py_None);
21455 values[8] = ((PyObject *)Py_None);
21456 values[9] = ((PyObject *)__pyx_float_0_0);
21465 values[10] = ((PyObject *)Py_None);
21466 values[11] = ((PyObject *)__pyx_float_1_0);
21467 values[12] = ((PyObject *)__pyx_float_0_0);
21476 values[13] = ((PyObject *)Py_None);
21477 values[14] = ((PyObject *)Py_None);
21486 values[15] = ((PyObject *)Py_None);
21487 values[16] = ((PyObject *)Py_None);
21488 if (unlikely(__pyx_kwds)) {
21489 Py_ssize_t kw_args;
21490 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21491 switch (pos_args) {
21492 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21493 CYTHON_FALLTHROUGH;
21494 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21495 CYTHON_FALLTHROUGH;
21496 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21497 CYTHON_FALLTHROUGH;
21498 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21499 CYTHON_FALLTHROUGH;
21500 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21501 CYTHON_FALLTHROUGH;
21502 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21503 CYTHON_FALLTHROUGH;
21504 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21505 CYTHON_FALLTHROUGH;
21506 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21507 CYTHON_FALLTHROUGH;
21508 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21509 CYTHON_FALLTHROUGH;
21510 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21511 CYTHON_FALLTHROUGH;
21512 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21513 CYTHON_FALLTHROUGH;
21514 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21515 CYTHON_FALLTHROUGH;
21516 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21517 CYTHON_FALLTHROUGH;
21518 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21519 CYTHON_FALLTHROUGH;
21520 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21521 CYTHON_FALLTHROUGH;
21522 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21523 CYTHON_FALLTHROUGH;
21524 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21525 CYTHON_FALLTHROUGH;
21527 default:
goto __pyx_L5_argtuple_error;
21529 kw_args = PyDict_Size(__pyx_kwds);
21530 switch (pos_args) {
21532 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_seaLevel)) != 0)) kw_args--;
21533 else goto __pyx_L5_argtuple_error;
21534 CYTHON_FALLTHROUGH;
21536 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoUp)) != 0)) kw_args--;
21538 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, 1); __PYX_ERR(0, 774, __pyx_L3_error)
21540 CYTHON_FALLTHROUGH;
21542 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rhoDown)) != 0)) kw_args--;
21544 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, 2); __PYX_ERR(0, 774, __pyx_L3_error)
21546 CYTHON_FALLTHROUGH;
21548 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_g)) != 0)) kw_args--;
21550 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, 3); __PYX_ERR(0, 774, __pyx_L3_error)
21552 CYTHON_FALLTHROUGH;
21554 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_refLevel)) != 0)) kw_args--;
21556 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, 4); __PYX_ERR(0, 774, __pyx_L3_error)
21558 CYTHON_FALLTHROUGH;
21560 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smoothing)) != 0)) kw_args--;
21562 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, 5); __PYX_ERR(0, 774, __pyx_L3_error)
21564 CYTHON_FALLTHROUGH;
21567 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_orientation);
21568 if (value) { values[6] = value; kw_args--; }
21570 CYTHON_FALLTHROUGH;
21573 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_U);
21574 if (value) { values[7] = value; kw_args--; }
21576 CYTHON_FALLTHROUGH;
21579 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Uwind);
21580 if (value) { values[8] = value; kw_args--; }
21582 CYTHON_FALLTHROUGH;
21585 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pRef);
21586 if (value) { values[9] = value; kw_args--; }
21588 CYTHON_FALLTHROUGH;
21591 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vert_axis);
21592 if (value) { values[10] = value; kw_args--; }
21594 CYTHON_FALLTHROUGH;
21597 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_air);
21598 if (value) { values[11] = value; kw_args--; }
21600 CYTHON_FALLTHROUGH;
21603 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_water);
21604 if (value) { values[12] = value; kw_args--; }
21606 CYTHON_FALLTHROUGH;
21609 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflow);
21610 if (value) { values[13] = value; kw_args--; }
21612 CYTHON_FALLTHROUGH;
21615 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dissipationInflow);
21616 if (value) { values[14] = value; kw_args--; }
21618 CYTHON_FALLTHROUGH;
21621 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInflowAir);
21622 if (value) { values[15] = value; kw_args--; }
21624 CYTHON_FALLTHROUGH;
21627 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dissipationInflowAir);
21628 if (value) { values[16] = value; kw_args--; }
21631 if (unlikely(kw_args > 0)) {
21632 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setHydrostaticPressureOutletWithDepth") < 0)) __PYX_ERR(0, 774, __pyx_L3_error)
21635 switch (PyTuple_GET_SIZE(__pyx_args)) {
21636 case 17: values[16] = PyTuple_GET_ITEM(__pyx_args, 16);
21637 CYTHON_FALLTHROUGH;
21638 case 16: values[15] = PyTuple_GET_ITEM(__pyx_args, 15);
21639 CYTHON_FALLTHROUGH;
21640 case 15: values[14] = PyTuple_GET_ITEM(__pyx_args, 14);
21641 CYTHON_FALLTHROUGH;
21642 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
21643 CYTHON_FALLTHROUGH;
21644 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
21645 CYTHON_FALLTHROUGH;
21646 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
21647 CYTHON_FALLTHROUGH;
21648 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
21649 CYTHON_FALLTHROUGH;
21650 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
21651 CYTHON_FALLTHROUGH;
21652 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
21653 CYTHON_FALLTHROUGH;
21654 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
21655 CYTHON_FALLTHROUGH;
21656 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
21657 CYTHON_FALLTHROUGH;
21658 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
21659 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
21660 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
21661 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21662 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21663 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21665 default:
goto __pyx_L5_argtuple_error;
21668 __pyx_v_seaLevel = values[0];
21669 __pyx_v_rhoUp = values[1];
21670 __pyx_v_rhoDown = values[2];
21671 __pyx_v_g = values[3];
21672 __pyx_v_refLevel = values[4];
21673 __pyx_v_smoothing = values[5];
21674 __pyx_v_orientation = values[6];
21675 __pyx_v_U = values[7];
21676 __pyx_v_Uwind = values[8];
21677 __pyx_v_pRef = values[9];
21678 __pyx_v_vert_axis = values[10];
21679 __pyx_v_air = values[11];
21680 __pyx_v_water = values[12];
21681 __pyx_v_kInflow = values[13];
21682 __pyx_v_dissipationInflow = values[14];
21683 __pyx_v_kInflowAir = values[15];
21684 __pyx_v_dissipationInflowAir = values[16];
21686 goto __pyx_L4_argument_unpacking_done;
21687 __pyx_L5_argtuple_error:;
21688 __Pyx_RaiseArgtupleInvalid(
"setHydrostaticPressureOutletWithDepth", 0, 6, 17, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 774, __pyx_L3_error)
21690 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth", __pyx_clineno, __pyx_lineno, __pyx_filename);
21691 __Pyx_RefNannyFinishContext();
21693 __pyx_L4_argument_unpacking_done:;
21694 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), __pyx_v_seaLevel, __pyx_v_rhoUp, __pyx_v_rhoDown, __pyx_v_g, __pyx_v_refLevel, __pyx_v_smoothing, __pyx_v_orientation, __pyx_v_U, __pyx_v_Uwind, __pyx_v_pRef, __pyx_v_vert_axis, __pyx_v_air, __pyx_v_water, __pyx_v_kInflow, __pyx_v_dissipationInflow, __pyx_v_kInflowAir, __pyx_v_dissipationInflowAir);
21705 __Pyx_RefNannyFinishContext();
21718 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_1hydrostaticPressureOutletWithDepth_p_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
21719 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_1hydrostaticPressureOutletWithDepth_p_dirichlet = {
"hydrostaticPressureOutletWithDepth_p_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_1hydrostaticPressureOutletWithDepth_p_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
21720 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_1hydrostaticPressureOutletWithDepth_p_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
21721 PyObject *__pyx_v_x = 0;
21722 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
21723 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
21724 int __pyx_lineno = 0;
21725 const char *__pyx_filename = NULL;
21726 int __pyx_clineno = 0;
21727 PyObject *__pyx_r = 0;
21728 __Pyx_RefNannyDeclarations
21729 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_p_dirichlet (wrapper)", 0);
21731 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
21732 PyObject* values[3] = {0,0,0};
21733 values[2] = ((PyObject *)((PyObject *)Py_None));
21734 if (unlikely(__pyx_kwds)) {
21735 Py_ssize_t kw_args;
21736 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
21737 switch (pos_args) {
21738 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21739 CYTHON_FALLTHROUGH;
21740 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21741 CYTHON_FALLTHROUGH;
21742 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21743 CYTHON_FALLTHROUGH;
21745 default:
goto __pyx_L5_argtuple_error;
21747 kw_args = PyDict_Size(__pyx_kwds);
21748 switch (pos_args) {
21750 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
21751 else goto __pyx_L5_argtuple_error;
21752 CYTHON_FALLTHROUGH;
21754 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
21756 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_p_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 801, __pyx_L3_error)
21758 CYTHON_FALLTHROUGH;
21761 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
21762 if (value) { values[2] = value; kw_args--; }
21765 if (unlikely(kw_args > 0)) {
21766 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"hydrostaticPressureOutletWithDepth_p_dirichlet") < 0)) __PYX_ERR(0, 801, __pyx_L3_error)
21769 switch (PyTuple_GET_SIZE(__pyx_args)) {
21770 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
21771 CYTHON_FALLTHROUGH;
21772 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
21773 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
21775 default:
goto __pyx_L5_argtuple_error;
21778 __pyx_v_x = values[0];
21779 __pyx_v_t = values[1];
21780 __pyx_v_n = values[2];
21782 goto __pyx_L4_argument_unpacking_done;
21783 __pyx_L5_argtuple_error:;
21784 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_p_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 801, __pyx_L3_error)
21786 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_p_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
21787 __Pyx_RefNannyFinishContext();
21789 __pyx_L4_argument_unpacking_done:;
21790 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_hydrostaticPressureOutletWithDepth_p_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
21793 __Pyx_RefNannyFinishContext();
21797 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_hydrostaticPressureOutletWithDepth_p_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
21798 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
21799 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
21800 PyObject *__pyx_v_p_top = NULL;
21801 PyObject *__pyx_v_phi_top = NULL;
21802 PyObject *__pyx_v_phi = NULL;
21803 PyObject *__pyx_r = NULL;
21804 __Pyx_TraceDeclarations
21805 __Pyx_RefNannyDeclarations
21806 PyObject *__pyx_t_1 = NULL;
21807 PyObject *__pyx_t_2 = NULL;
21808 PyObject *__pyx_t_3 = NULL;
21809 PyObject *__pyx_t_4 = NULL;
21810 PyObject *__pyx_t_5 = NULL;
21811 PyObject *__pyx_t_6 = NULL;
21813 PyObject *__pyx_t_8 = NULL;
21814 PyObject *__pyx_t_9 = NULL;
21815 int __pyx_lineno = 0;
21816 const char *__pyx_filename = NULL;
21817 int __pyx_clineno = 0;
21818 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_p_dirichlet", 0);
21819 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
21820 __pyx_cur_scope = __pyx_outer_scope;
21821 __Pyx_TraceCall(
"hydrostaticPressureOutletWithDepth_p_dirichlet", __pyx_f[0], 801, 0, __PYX_ERR(0, 801, __pyx_L1_error));
21830 if (unlikely(!__pyx_cur_scope->__pyx_v_pRef)) { __Pyx_RaiseClosureNameError(
"pRef"); __PYX_ERR(0, 802, __pyx_L1_error) }
21831 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_pRef);
21832 __pyx_v_p_top = __pyx_cur_scope->__pyx_v_pRef;
21841 if (unlikely(!__pyx_cur_scope->__pyx_v_refLevel)) { __Pyx_RaiseClosureNameError(
"refLevel"); __PYX_ERR(0, 803, __pyx_L1_error) }
21842 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 803, __pyx_L1_error) }
21843 __pyx_t_1 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_refLevel, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error)
21844 __Pyx_GOTREF(__pyx_t_1);
21845 __pyx_v_phi_top = __pyx_t_1;
21855 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 804, __pyx_L1_error) }
21856 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
21857 __Pyx_GOTREF(__pyx_t_1);
21858 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 804, __pyx_L1_error) }
21859 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
21860 __Pyx_GOTREF(__pyx_t_2);
21861 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21862 __pyx_v_phi = __pyx_t_2;
21872 __Pyx_XDECREF(__pyx_r);
21873 if (unlikely(!__pyx_cur_scope->__pyx_v_g)) { __Pyx_RaiseClosureNameError(
"g"); __PYX_ERR(0, 805, __pyx_L1_error) }
21874 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 805, __pyx_L1_error) }
21875 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_v_g, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 805, __pyx_L1_error)
21876 __Pyx_GOTREF(__pyx_t_2);
21877 if (unlikely(!__pyx_cur_scope->__pyx_v_rhoDown)) { __Pyx_RaiseClosureNameError(
"rhoDown"); __PYX_ERR(0, 805, __pyx_L1_error) }
21878 __pyx_t_1 = PyNumber_Subtract(__pyx_v_phi_top, __pyx_v_phi);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
21879 __Pyx_GOTREF(__pyx_t_1);
21880 __pyx_t_3 = PyNumber_Multiply(__pyx_cur_scope->__pyx_v_rhoDown, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 805, __pyx_L1_error)
21881 __Pyx_GOTREF(__pyx_t_3);
21882 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21891 if (unlikely(!__pyx_cur_scope->__pyx_v_rhoUp)) { __Pyx_RaiseClosureNameError(
"rhoUp"); __PYX_ERR(0, 806, __pyx_L1_error) }
21892 if (unlikely(!__pyx_cur_scope->__pyx_v_rhoDown)) { __Pyx_RaiseClosureNameError(
"rhoDown"); __PYX_ERR(0, 806, __pyx_L1_error) }
21893 __pyx_t_1 = PyNumber_Subtract(__pyx_cur_scope->__pyx_v_rhoUp, __pyx_cur_scope->__pyx_v_rhoDown);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 806, __pyx_L1_error)
21894 __Pyx_GOTREF(__pyx_t_1);
21903 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_smoothedHeaviside_integral);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 807, __pyx_L1_error)
21904 __Pyx_GOTREF(__pyx_t_5);
21905 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 807, __pyx_L1_error) }
21908 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
21909 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
21910 if (likely(__pyx_t_6)) {
21911 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
21912 __Pyx_INCREF(__pyx_t_6);
21913 __Pyx_INCREF(
function);
21914 __Pyx_DECREF_SET(__pyx_t_5,
function);
21918 #if CYTHON_FAST_PYCALL
21919 if (PyFunction_Check(__pyx_t_5)) {
21920 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi_top};
21921 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 807, __pyx_L1_error)
21922 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
21923 __Pyx_GOTREF(__pyx_t_4);
21926 #if CYTHON_FAST_PYCCALL
21927 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
21928 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi_top};
21929 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 807, __pyx_L1_error)
21930 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
21931 __Pyx_GOTREF(__pyx_t_4);
21935 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 807, __pyx_L1_error)
21936 __Pyx_GOTREF(__pyx_t_8);
21938 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
21940 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
21941 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
21942 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
21943 __Pyx_INCREF(__pyx_v_phi_top);
21944 __Pyx_GIVEREF(__pyx_v_phi_top);
21945 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_phi_top);
21946 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 807, __pyx_L1_error)
21947 __Pyx_GOTREF(__pyx_t_4);
21948 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
21950 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21959 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_smoothedHeaviside_integral);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 809, __pyx_L1_error)
21960 __Pyx_GOTREF(__pyx_t_8);
21961 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 809, __pyx_L1_error) }
21964 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
21965 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
21966 if (likely(__pyx_t_6)) {
21967 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
21968 __Pyx_INCREF(__pyx_t_6);
21969 __Pyx_INCREF(
function);
21970 __Pyx_DECREF_SET(__pyx_t_8,
function);
21974 #if CYTHON_FAST_PYCALL
21975 if (PyFunction_Check(__pyx_t_8)) {
21976 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
21977 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 809, __pyx_L1_error)
21978 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
21979 __Pyx_GOTREF(__pyx_t_5);
21982 #if CYTHON_FAST_PYCCALL
21983 if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
21984 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
21985 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 809, __pyx_L1_error)
21986 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
21987 __Pyx_GOTREF(__pyx_t_5);
21991 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 809, __pyx_L1_error)
21992 __Pyx_GOTREF(__pyx_t_9);
21994 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL;
21996 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
21997 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
21998 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
21999 __Pyx_INCREF(__pyx_v_phi);
22000 __Pyx_GIVEREF(__pyx_v_phi);
22001 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_v_phi);
22002 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 809, __pyx_L1_error)
22003 __Pyx_GOTREF(__pyx_t_5);
22004 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
22006 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22015 __pyx_t_8 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 808, __pyx_L1_error)
22016 __Pyx_GOTREF(__pyx_t_8);
22017 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
22018 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22027 __pyx_t_5 = PyNumber_Multiply(__pyx_t_1, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 806, __pyx_L1_error)
22028 __Pyx_GOTREF(__pyx_t_5);
22029 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22030 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22039 __pyx_t_8 = PyNumber_Add(__pyx_t_3, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 805, __pyx_L1_error)
22040 __Pyx_GOTREF(__pyx_t_8);
22041 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
22042 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22043 __pyx_t_5 = PyNumber_Multiply(__pyx_t_2, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 805, __pyx_L1_error)
22044 __Pyx_GOTREF(__pyx_t_5);
22045 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22046 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22047 __pyx_t_8 = PyNumber_Subtract(__pyx_v_p_top, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 805, __pyx_L1_error)
22048 __Pyx_GOTREF(__pyx_t_8);
22049 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22050 __pyx_r = __pyx_t_8;
22064 __Pyx_XDECREF(__pyx_t_1);
22065 __Pyx_XDECREF(__pyx_t_2);
22066 __Pyx_XDECREF(__pyx_t_3);
22067 __Pyx_XDECREF(__pyx_t_4);
22068 __Pyx_XDECREF(__pyx_t_5);
22069 __Pyx_XDECREF(__pyx_t_6);
22070 __Pyx_XDECREF(__pyx_t_8);
22071 __Pyx_XDECREF(__pyx_t_9);
22072 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_p_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22075 __Pyx_XDECREF(__pyx_v_p_top);
22076 __Pyx_XDECREF(__pyx_v_phi_top);
22077 __Pyx_XDECREF(__pyx_v_phi);
22078 __Pyx_XGIVEREF(__pyx_r);
22079 __Pyx_TraceReturn(__pyx_r, 0);
22080 __Pyx_RefNannyFinishContext();
22093 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_3hydrostaticPressureOutletWithDepth_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22094 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_3hydrostaticPressureOutletWithDepth_phi_dirichlet = {
"hydrostaticPressureOutletWithDepth_phi_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_3hydrostaticPressureOutletWithDepth_phi_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
22095 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_3hydrostaticPressureOutletWithDepth_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22096 PyObject *__pyx_v_x = 0;
22097 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
22098 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
22099 int __pyx_lineno = 0;
22100 const char *__pyx_filename = NULL;
22101 int __pyx_clineno = 0;
22102 PyObject *__pyx_r = 0;
22103 __Pyx_RefNannyDeclarations
22104 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_phi_dirichlet (wrapper)", 0);
22106 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
22107 PyObject* values[3] = {0,0,0};
22108 values[2] = ((PyObject *)((PyObject *)Py_None));
22109 if (unlikely(__pyx_kwds)) {
22110 Py_ssize_t kw_args;
22111 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22112 switch (pos_args) {
22113 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22114 CYTHON_FALLTHROUGH;
22115 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22116 CYTHON_FALLTHROUGH;
22117 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22118 CYTHON_FALLTHROUGH;
22120 default:
goto __pyx_L5_argtuple_error;
22122 kw_args = PyDict_Size(__pyx_kwds);
22123 switch (pos_args) {
22125 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
22126 else goto __pyx_L5_argtuple_error;
22127 CYTHON_FALLTHROUGH;
22129 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
22131 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_phi_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 811, __pyx_L3_error)
22133 CYTHON_FALLTHROUGH;
22136 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
22137 if (value) { values[2] = value; kw_args--; }
22140 if (unlikely(kw_args > 0)) {
22141 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"hydrostaticPressureOutletWithDepth_phi_dirichlet") < 0)) __PYX_ERR(0, 811, __pyx_L3_error)
22144 switch (PyTuple_GET_SIZE(__pyx_args)) {
22145 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22146 CYTHON_FALLTHROUGH;
22147 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22148 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22150 default:
goto __pyx_L5_argtuple_error;
22153 __pyx_v_x = values[0];
22154 __pyx_v_t = values[1];
22155 __pyx_v_n = values[2];
22157 goto __pyx_L4_argument_unpacking_done;
22158 __pyx_L5_argtuple_error:;
22159 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_phi_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 811, __pyx_L3_error)
22161 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_phi_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22162 __Pyx_RefNannyFinishContext();
22164 __pyx_L4_argument_unpacking_done:;
22165 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_2hydrostaticPressureOutletWithDepth_phi_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
22168 __Pyx_RefNannyFinishContext();
22172 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_2hydrostaticPressureOutletWithDepth_phi_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
22173 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
22174 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
22175 PyObject *__pyx_v_phi = NULL;
22176 PyObject *__pyx_r = NULL;
22177 __Pyx_TraceDeclarations
22178 __Pyx_RefNannyDeclarations
22179 PyObject *__pyx_t_1 = NULL;
22180 PyObject *__pyx_t_2 = NULL;
22181 int __pyx_lineno = 0;
22182 const char *__pyx_filename = NULL;
22183 int __pyx_clineno = 0;
22184 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_phi_dirichlet", 0);
22185 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
22186 __pyx_cur_scope = __pyx_outer_scope;
22187 __Pyx_TraceCall(
"hydrostaticPressureOutletWithDepth_phi_dirichlet", __pyx_f[0], 811, 0, __PYX_ERR(0, 811, __pyx_L1_error));
22196 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 812, __pyx_L1_error) }
22197 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
22198 __Pyx_GOTREF(__pyx_t_1);
22199 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 812, __pyx_L1_error) }
22200 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 812, __pyx_L1_error)
22201 __Pyx_GOTREF(__pyx_t_2);
22202 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22203 __pyx_v_phi = __pyx_t_2;
22213 __Pyx_XDECREF(__pyx_r);
22214 __Pyx_INCREF(__pyx_v_phi);
22215 __pyx_r = __pyx_v_phi;
22228 __Pyx_XDECREF(__pyx_t_1);
22229 __Pyx_XDECREF(__pyx_t_2);
22230 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_phi_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22233 __Pyx_XDECREF(__pyx_v_phi);
22234 __Pyx_XGIVEREF(__pyx_r);
22235 __Pyx_TraceReturn(__pyx_r, 0);
22236 __Pyx_RefNannyFinishContext();
22249 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_5hydrostaticPressureOutletWithDepth_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22250 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_5hydrostaticPressureOutletWithDepth_vof_dirichlet = {
"hydrostaticPressureOutletWithDepth_vof_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_5hydrostaticPressureOutletWithDepth_vof_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
22251 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_5hydrostaticPressureOutletWithDepth_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22252 PyObject *__pyx_v_x = 0;
22253 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
22254 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
22255 int __pyx_lineno = 0;
22256 const char *__pyx_filename = NULL;
22257 int __pyx_clineno = 0;
22258 PyObject *__pyx_r = 0;
22259 __Pyx_RefNannyDeclarations
22260 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_vof_dirichlet (wrapper)", 0);
22262 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
22263 PyObject* values[3] = {0,0,0};
22264 values[2] = ((PyObject *)((PyObject *)Py_None));
22265 if (unlikely(__pyx_kwds)) {
22266 Py_ssize_t kw_args;
22267 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22268 switch (pos_args) {
22269 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22270 CYTHON_FALLTHROUGH;
22271 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22272 CYTHON_FALLTHROUGH;
22273 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22274 CYTHON_FALLTHROUGH;
22276 default:
goto __pyx_L5_argtuple_error;
22278 kw_args = PyDict_Size(__pyx_kwds);
22279 switch (pos_args) {
22281 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
22282 else goto __pyx_L5_argtuple_error;
22283 CYTHON_FALLTHROUGH;
22285 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
22287 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_vof_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 815, __pyx_L3_error)
22289 CYTHON_FALLTHROUGH;
22292 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
22293 if (value) { values[2] = value; kw_args--; }
22296 if (unlikely(kw_args > 0)) {
22297 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"hydrostaticPressureOutletWithDepth_vof_dirichlet") < 0)) __PYX_ERR(0, 815, __pyx_L3_error)
22300 switch (PyTuple_GET_SIZE(__pyx_args)) {
22301 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22302 CYTHON_FALLTHROUGH;
22303 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22304 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22306 default:
goto __pyx_L5_argtuple_error;
22309 __pyx_v_x = values[0];
22310 __pyx_v_t = values[1];
22311 __pyx_v_n = values[2];
22313 goto __pyx_L4_argument_unpacking_done;
22314 __pyx_L5_argtuple_error:;
22315 __Pyx_RaiseArgtupleInvalid(
"hydrostaticPressureOutletWithDepth_vof_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 815, __pyx_L3_error)
22317 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_vof_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22318 __Pyx_RefNannyFinishContext();
22320 __pyx_L4_argument_unpacking_done:;
22321 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_4hydrostaticPressureOutletWithDepth_vof_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
22324 __Pyx_RefNannyFinishContext();
22328 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_4hydrostaticPressureOutletWithDepth_vof_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
22329 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
22330 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
22331 PyObject *__pyx_v_phi = NULL;
22332 PyObject *__pyx_v_H = NULL;
22333 PyObject *__pyx_r = NULL;
22334 __Pyx_TraceDeclarations
22335 __Pyx_RefNannyDeclarations
22336 PyObject *__pyx_t_1 = NULL;
22337 PyObject *__pyx_t_2 = NULL;
22340 PyObject *__pyx_t_5 = NULL;
22342 PyObject *__pyx_t_7 = NULL;
22343 int __pyx_lineno = 0;
22344 const char *__pyx_filename = NULL;
22345 int __pyx_clineno = 0;
22346 __Pyx_RefNannySetupContext(
"hydrostaticPressureOutletWithDepth_vof_dirichlet", 0);
22347 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
22348 __pyx_cur_scope = __pyx_outer_scope;
22349 __Pyx_TraceCall(
"hydrostaticPressureOutletWithDepth_vof_dirichlet", __pyx_f[0], 815, 0, __PYX_ERR(0, 815, __pyx_L1_error));
22358 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 816, __pyx_L1_error) }
22359 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 816, __pyx_L1_error)
22360 __Pyx_GOTREF(__pyx_t_1);
22361 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 816, __pyx_L1_error) }
22362 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __pyx_L1_error)
22363 __Pyx_GOTREF(__pyx_t_2);
22364 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22365 __pyx_v_phi = __pyx_t_2;
22375 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 817, __pyx_L1_error) }
22376 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_GE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 817, __pyx_L1_error)
22377 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 817, __pyx_L1_error)
22378 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22388 __Pyx_INCREF(__pyx_float_1_);
22389 __pyx_v_H = __pyx_float_1_;
22408 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 819, __pyx_L1_error) }
22409 __pyx_t_2 = PyObject_RichCompare(__pyx_cur_scope->__pyx_v_smoothing, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
22410 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 819, __pyx_L1_error)
22411 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22414 __pyx_t_3 = __pyx_t_4;
22415 goto __pyx_L4_bool_binop_done;
22417 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 819, __pyx_L1_error) }
22418 __pyx_t_2 = PyNumber_Negative(__pyx_cur_scope->__pyx_v_smoothing);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
22419 __Pyx_GOTREF(__pyx_t_2);
22420 __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
22421 if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
22422 __Pyx_DECREF(__pyx_t_1);
22423 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 819, __pyx_L1_error) }
22424 __pyx_t_1 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
22426 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22427 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 819, __pyx_L1_error)
22428 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22429 __pyx_t_3 = __pyx_t_4;
22430 __pyx_L4_bool_binop_done:;
22440 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 820, __pyx_L1_error)
22441 __Pyx_GOTREF(__pyx_t_2);
22442 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 820, __pyx_L1_error) }
22445 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
22446 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
22447 if (likely(__pyx_t_5)) {
22448 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
22449 __Pyx_INCREF(__pyx_t_5);
22450 __Pyx_INCREF(
function);
22451 __Pyx_DECREF_SET(__pyx_t_2,
function);
22455 #if CYTHON_FAST_PYCALL
22456 if (PyFunction_Check(__pyx_t_2)) {
22457 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
22458 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
22459 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
22460 __Pyx_GOTREF(__pyx_t_1);
22463 #if CYTHON_FAST_PYCCALL
22464 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
22465 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_cur_scope->__pyx_v_smoothing, __pyx_v_phi};
22466 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
22467 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
22468 __Pyx_GOTREF(__pyx_t_1);
22472 __pyx_t_7 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 820, __pyx_L1_error)
22473 __Pyx_GOTREF(__pyx_t_7);
22475 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
22477 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
22478 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
22479 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing);
22480 __Pyx_INCREF(__pyx_v_phi);
22481 __Pyx_GIVEREF(__pyx_v_phi);
22482 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_phi);
22483 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
22484 __Pyx_GOTREF(__pyx_t_1);
22485 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
22487 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22488 __pyx_v_H = __pyx_t_1;
22508 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 821, __pyx_L1_error) }
22509 __pyx_t_1 = PyNumber_Negative(__pyx_cur_scope->__pyx_v_smoothing);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 821, __pyx_L1_error)
22510 __Pyx_GOTREF(__pyx_t_1);
22511 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 821, __pyx_L1_error)
22512 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22513 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 821, __pyx_L1_error)
22514 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22524 __Pyx_INCREF(__pyx_float_0_);
22525 __pyx_v_H = __pyx_float_0_;
22544 __Pyx_XDECREF(__pyx_r);
22545 if (unlikely(!__pyx_v_H)) { __Pyx_RaiseUnboundLocalError(
"H"); __PYX_ERR(0, 823, __pyx_L1_error) }
22546 if (unlikely(!__pyx_cur_scope->__pyx_v_air)) { __Pyx_RaiseClosureNameError(
"air"); __PYX_ERR(0, 823, __pyx_L1_error) }
22547 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_air);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 823, __pyx_L1_error)
22548 __Pyx_GOTREF(__pyx_t_2);
22549 if (unlikely(!__pyx_v_H)) { __Pyx_RaiseUnboundLocalError(
"H"); __PYX_ERR(0, 823, __pyx_L1_error) }
22550 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
22551 __Pyx_GOTREF(__pyx_t_1);
22552 if (unlikely(!__pyx_cur_scope->__pyx_v_water)) { __Pyx_RaiseClosureNameError(
"water"); __PYX_ERR(0, 823, __pyx_L1_error) }
22553 __pyx_t_7 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_water);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 823, __pyx_L1_error)
22554 __Pyx_GOTREF(__pyx_t_7);
22555 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22556 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
22557 __Pyx_GOTREF(__pyx_t_1);
22558 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22559 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
22560 __pyx_r = __pyx_t_1;
22574 __Pyx_XDECREF(__pyx_t_1);
22575 __Pyx_XDECREF(__pyx_t_2);
22576 __Pyx_XDECREF(__pyx_t_5);
22577 __Pyx_XDECREF(__pyx_t_7);
22578 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.hydrostaticPressureOutletWithDepth_vof_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22581 __Pyx_XDECREF(__pyx_v_phi);
22582 __Pyx_XDECREF(__pyx_v_H);
22583 __Pyx_XGIVEREF(__pyx_r);
22584 __Pyx_TraceReturn(__pyx_r, 0);
22585 __Pyx_RefNannyFinishContext();
22598 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_7inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22599 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_7inlet_k_dirichlet = {
"inlet_k_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_7inlet_k_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
22600 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_7inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22601 PyObject *__pyx_v_x = 0;
22602 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
22603 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
22604 int __pyx_lineno = 0;
22605 const char *__pyx_filename = NULL;
22606 int __pyx_clineno = 0;
22607 PyObject *__pyx_r = 0;
22608 __Pyx_RefNannyDeclarations
22609 __Pyx_RefNannySetupContext(
"inlet_k_dirichlet (wrapper)", 0);
22611 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
22612 PyObject* values[3] = {0,0,0};
22613 values[2] = ((PyObject *)((PyObject *)Py_None));
22614 if (unlikely(__pyx_kwds)) {
22615 Py_ssize_t kw_args;
22616 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22617 switch (pos_args) {
22618 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22619 CYTHON_FALLTHROUGH;
22620 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22621 CYTHON_FALLTHROUGH;
22622 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22623 CYTHON_FALLTHROUGH;
22625 default:
goto __pyx_L5_argtuple_error;
22627 kw_args = PyDict_Size(__pyx_kwds);
22628 switch (pos_args) {
22630 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
22631 else goto __pyx_L5_argtuple_error;
22632 CYTHON_FALLTHROUGH;
22634 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
22636 __Pyx_RaiseArgtupleInvalid(
"inlet_k_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 825, __pyx_L3_error)
22638 CYTHON_FALLTHROUGH;
22641 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
22642 if (value) { values[2] = value; kw_args--; }
22645 if (unlikely(kw_args > 0)) {
22646 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_k_dirichlet") < 0)) __PYX_ERR(0, 825, __pyx_L3_error)
22649 switch (PyTuple_GET_SIZE(__pyx_args)) {
22650 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
22651 CYTHON_FALLTHROUGH;
22652 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
22653 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22655 default:
goto __pyx_L5_argtuple_error;
22658 __pyx_v_x = values[0];
22659 __pyx_v_t = values[1];
22660 __pyx_v_n = values[2];
22662 goto __pyx_L4_argument_unpacking_done;
22663 __pyx_L5_argtuple_error:;
22664 __Pyx_RaiseArgtupleInvalid(
"inlet_k_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 825, __pyx_L3_error)
22666 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.inlet_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22667 __Pyx_RefNannyFinishContext();
22669 __pyx_L4_argument_unpacking_done:;
22670 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_6inlet_k_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
22673 __Pyx_RefNannyFinishContext();
22677 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_6inlet_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
22678 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
22679 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
22680 PyObject *__pyx_v_phi = NULL;
22681 PyObject *__pyx_v_H = NULL;
22682 PyObject *__pyx_r = NULL;
22683 __Pyx_TraceDeclarations
22684 __Pyx_RefNannyDeclarations
22685 PyObject *__pyx_t_1 = NULL;
22686 PyObject *__pyx_t_2 = NULL;
22688 PyObject *__pyx_t_4 = NULL;
22689 PyObject *__pyx_t_5 = NULL;
22690 PyObject *__pyx_t_6 = NULL;
22692 PyObject *__pyx_t_8 = NULL;
22693 PyObject *__pyx_t_9 = NULL;
22694 int __pyx_lineno = 0;
22695 const char *__pyx_filename = NULL;
22696 int __pyx_clineno = 0;
22697 __Pyx_RefNannySetupContext(
"inlet_k_dirichlet", 0);
22698 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
22699 __pyx_cur_scope = __pyx_outer_scope;
22700 __Pyx_TraceCall(
"inlet_k_dirichlet", __pyx_f[0], 825, 0, __PYX_ERR(0, 825, __pyx_L1_error));
22709 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 826, __pyx_L1_error) }
22710 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
22711 __Pyx_GOTREF(__pyx_t_1);
22712 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 826, __pyx_L1_error) }
22713 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 826, __pyx_L1_error)
22714 __Pyx_GOTREF(__pyx_t_2);
22715 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22716 __pyx_v_phi = __pyx_t_2;
22726 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
22727 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 827, __pyx_L1_error)
22728 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22738 __Pyx_INCREF(__pyx_float_0_0);
22739 __pyx_v_H = __pyx_float_0_0;
22758 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 829, __pyx_L1_error)
22759 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
22760 __Pyx_DECREF(__pyx_t_2);
22761 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 829, __pyx_L1_error) }
22762 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 829, __pyx_L1_error)
22764 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 829, __pyx_L1_error)
22765 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22775 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error)
22776 __Pyx_GOTREF(__pyx_t_1);
22777 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 830, __pyx_L1_error)
22778 __Pyx_GOTREF(__pyx_t_5);
22779 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 830, __pyx_L1_error) }
22782 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
22783 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
22784 if (likely(__pyx_t_6)) {
22785 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
22786 __Pyx_INCREF(__pyx_t_6);
22787 __Pyx_INCREF(
function);
22788 __Pyx_DECREF_SET(__pyx_t_5,
function);
22792 #if CYTHON_FAST_PYCALL
22793 if (PyFunction_Check(__pyx_t_5)) {
22794 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
22795 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error)
22796 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
22797 __Pyx_GOTREF(__pyx_t_4);
22800 #if CYTHON_FAST_PYCCALL
22801 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
22802 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
22803 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error)
22804 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
22805 __Pyx_GOTREF(__pyx_t_4);
22809 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 830, __pyx_L1_error)
22810 __Pyx_GOTREF(__pyx_t_8);
22812 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
22814 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
22815 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
22816 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
22817 __Pyx_INCREF(__pyx_float_2_);
22818 __Pyx_GIVEREF(__pyx_float_2_);
22819 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_float_2_);
22820 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 830, __pyx_L1_error)
22821 __Pyx_GOTREF(__pyx_t_4);
22822 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22824 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22825 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 830, __pyx_L1_error)
22826 __Pyx_GOTREF(__pyx_t_8);
22827 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 830, __pyx_L1_error) }
22830 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
22831 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
22832 if (likely(__pyx_t_6)) {
22833 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
22834 __Pyx_INCREF(__pyx_t_6);
22835 __Pyx_INCREF(
function);
22836 __Pyx_DECREF_SET(__pyx_t_8,
function);
22840 #if CYTHON_FAST_PYCALL
22841 if (PyFunction_Check(__pyx_t_8)) {
22842 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
22843 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 830, __pyx_L1_error)
22844 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
22845 __Pyx_GOTREF(__pyx_t_5);
22848 #if CYTHON_FAST_PYCCALL
22849 if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
22850 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
22851 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 830, __pyx_L1_error)
22852 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
22853 __Pyx_GOTREF(__pyx_t_5);
22857 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 830, __pyx_L1_error)
22858 __Pyx_GOTREF(__pyx_t_9);
22860 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL;
22862 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
22863 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
22864 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
22865 __Pyx_INCREF(__pyx_float_2_);
22866 __Pyx_GIVEREF(__pyx_float_2_);
22867 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_float_2_);
22868 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 830, __pyx_L1_error)
22869 __Pyx_GOTREF(__pyx_t_5);
22870 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
22872 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22873 __pyx_t_8 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 830, __pyx_L1_error)
22874 __Pyx_GOTREF(__pyx_t_8);
22875 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22878 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
22879 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
22880 if (likely(__pyx_t_5)) {
22881 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
22882 __Pyx_INCREF(__pyx_t_5);
22883 __Pyx_INCREF(
function);
22884 __Pyx_DECREF_SET(__pyx_t_1,
function);
22888 #if CYTHON_FAST_PYCALL
22889 if (PyFunction_Check(__pyx_t_1)) {
22890 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
22891 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 830, __pyx_L1_error)
22892 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
22893 __Pyx_GOTREF(__pyx_t_2);
22894 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
22895 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22898 #if CYTHON_FAST_PYCCALL
22899 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
22900 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
22901 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 830, __pyx_L1_error)
22902 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
22903 __Pyx_GOTREF(__pyx_t_2);
22904 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
22905 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
22909 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 830, __pyx_L1_error)
22910 __Pyx_GOTREF(__pyx_t_9);
22912 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = NULL;
22914 __Pyx_GIVEREF(__pyx_t_4);
22915 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_t_4);
22916 __Pyx_GIVEREF(__pyx_t_8);
22917 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_t_8);
22920 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 830, __pyx_L1_error)
22921 __Pyx_GOTREF(__pyx_t_2);
22922 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
22924 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22925 __pyx_v_H = __pyx_t_2;
22946 __Pyx_INCREF(__pyx_float_1_0);
22947 __pyx_v_H = __pyx_float_1_0;
22958 __Pyx_XDECREF(__pyx_r);
22959 if (unlikely(!__pyx_cur_scope->__pyx_v_kInflowAir)) { __Pyx_RaiseClosureNameError(
"kInflowAir"); __PYX_ERR(0, 833, __pyx_L1_error) }
22960 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_kInflowAir);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 833, __pyx_L1_error)
22961 __Pyx_GOTREF(__pyx_t_2);
22962 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
22963 __Pyx_GOTREF(__pyx_t_1);
22964 if (unlikely(!__pyx_cur_scope->__pyx_v_kInflow)) { __Pyx_RaiseClosureNameError(
"kInflow"); __PYX_ERR(0, 833, __pyx_L1_error) }
22965 __pyx_t_9 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_kInflow);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 833, __pyx_L1_error)
22966 __Pyx_GOTREF(__pyx_t_9);
22967 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22968 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_9);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
22969 __Pyx_GOTREF(__pyx_t_1);
22970 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22971 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
22972 __pyx_r = __pyx_t_1;
22986 __Pyx_XDECREF(__pyx_t_1);
22987 __Pyx_XDECREF(__pyx_t_2);
22988 __Pyx_XDECREF(__pyx_t_4);
22989 __Pyx_XDECREF(__pyx_t_5);
22990 __Pyx_XDECREF(__pyx_t_6);
22991 __Pyx_XDECREF(__pyx_t_8);
22992 __Pyx_XDECREF(__pyx_t_9);
22993 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.inlet_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
22996 __Pyx_XDECREF(__pyx_v_phi);
22997 __Pyx_XDECREF(__pyx_v_H);
22998 __Pyx_XGIVEREF(__pyx_r);
22999 __Pyx_TraceReturn(__pyx_r, 0);
23000 __Pyx_RefNannyFinishContext();
23013 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_9inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23014 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_9inlet_dissipation_dirichlet = {
"inlet_dissipation_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_9inlet_dissipation_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
23015 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_9inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23016 PyObject *__pyx_v_x = 0;
23017 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
23018 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
23019 int __pyx_lineno = 0;
23020 const char *__pyx_filename = NULL;
23021 int __pyx_clineno = 0;
23022 PyObject *__pyx_r = 0;
23023 __Pyx_RefNannyDeclarations
23024 __Pyx_RefNannySetupContext(
"inlet_dissipation_dirichlet (wrapper)", 0);
23026 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
23027 PyObject* values[3] = {0,0,0};
23028 values[2] = ((PyObject *)((PyObject *)Py_None));
23029 if (unlikely(__pyx_kwds)) {
23030 Py_ssize_t kw_args;
23031 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23032 switch (pos_args) {
23033 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23034 CYTHON_FALLTHROUGH;
23035 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23036 CYTHON_FALLTHROUGH;
23037 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23038 CYTHON_FALLTHROUGH;
23040 default:
goto __pyx_L5_argtuple_error;
23042 kw_args = PyDict_Size(__pyx_kwds);
23043 switch (pos_args) {
23045 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23046 else goto __pyx_L5_argtuple_error;
23047 CYTHON_FALLTHROUGH;
23049 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
23051 __Pyx_RaiseArgtupleInvalid(
"inlet_dissipation_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 835, __pyx_L3_error)
23053 CYTHON_FALLTHROUGH;
23056 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
23057 if (value) { values[2] = value; kw_args--; }
23060 if (unlikely(kw_args > 0)) {
23061 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"inlet_dissipation_dirichlet") < 0)) __PYX_ERR(0, 835, __pyx_L3_error)
23064 switch (PyTuple_GET_SIZE(__pyx_args)) {
23065 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23066 CYTHON_FALLTHROUGH;
23067 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23068 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23070 default:
goto __pyx_L5_argtuple_error;
23073 __pyx_v_x = values[0];
23074 __pyx_v_t = values[1];
23075 __pyx_v_n = values[2];
23077 goto __pyx_L4_argument_unpacking_done;
23078 __pyx_L5_argtuple_error:;
23079 __Pyx_RaiseArgtupleInvalid(
"inlet_dissipation_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 835, __pyx_L3_error)
23081 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.inlet_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
23082 __Pyx_RefNannyFinishContext();
23084 __pyx_L4_argument_unpacking_done:;
23085 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_8inlet_dissipation_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
23088 __Pyx_RefNannyFinishContext();
23092 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_8inlet_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
23093 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
23094 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_outer_scope;
23095 PyObject *__pyx_v_phi = NULL;
23096 PyObject *__pyx_v_H = NULL;
23097 PyObject *__pyx_r = NULL;
23098 __Pyx_TraceDeclarations
23099 __Pyx_RefNannyDeclarations
23100 PyObject *__pyx_t_1 = NULL;
23101 PyObject *__pyx_t_2 = NULL;
23103 PyObject *__pyx_t_4 = NULL;
23104 PyObject *__pyx_t_5 = NULL;
23105 PyObject *__pyx_t_6 = NULL;
23107 PyObject *__pyx_t_8 = NULL;
23108 PyObject *__pyx_t_9 = NULL;
23109 int __pyx_lineno = 0;
23110 const char *__pyx_filename = NULL;
23111 int __pyx_clineno = 0;
23112 __Pyx_RefNannySetupContext(
"inlet_dissipation_dirichlet", 0);
23113 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
23114 __pyx_cur_scope = __pyx_outer_scope;
23115 __Pyx_TraceCall(
"inlet_dissipation_dirichlet", __pyx_f[0], 835, 0, __PYX_ERR(0, 835, __pyx_L1_error));
23124 if (unlikely(!__pyx_cur_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 836, __pyx_L1_error) }
23125 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
23126 __Pyx_GOTREF(__pyx_t_1);
23127 if (unlikely(!__pyx_cur_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 836, __pyx_L1_error) }
23128 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 836, __pyx_L1_error)
23129 __Pyx_GOTREF(__pyx_t_2);
23130 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23131 __pyx_v_phi = __pyx_t_2;
23141 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
23142 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 837, __pyx_L1_error)
23143 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23153 __Pyx_INCREF(__pyx_float_0_0);
23154 __pyx_v_H = __pyx_float_0_0;
23173 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 839, __pyx_L1_error)
23174 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
23175 __Pyx_DECREF(__pyx_t_2);
23176 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 839, __pyx_L1_error) }
23177 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 839, __pyx_L1_error)
23179 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 839, __pyx_L1_error)
23180 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23190 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 840, __pyx_L1_error)
23191 __Pyx_GOTREF(__pyx_t_1);
23192 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 840, __pyx_L1_error)
23193 __Pyx_GOTREF(__pyx_t_5);
23194 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 840, __pyx_L1_error) }
23197 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
23198 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
23199 if (likely(__pyx_t_6)) {
23200 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
23201 __Pyx_INCREF(__pyx_t_6);
23202 __Pyx_INCREF(
function);
23203 __Pyx_DECREF_SET(__pyx_t_5,
function);
23207 #if CYTHON_FAST_PYCALL
23208 if (PyFunction_Check(__pyx_t_5)) {
23209 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
23210 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error)
23211 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23212 __Pyx_GOTREF(__pyx_t_4);
23215 #if CYTHON_FAST_PYCCALL
23216 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
23217 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
23218 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error)
23219 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23220 __Pyx_GOTREF(__pyx_t_4);
23224 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 840, __pyx_L1_error)
23225 __Pyx_GOTREF(__pyx_t_8);
23227 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
23229 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
23230 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
23231 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
23232 __Pyx_INCREF(__pyx_float_2_);
23233 __Pyx_GIVEREF(__pyx_float_2_);
23234 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_float_2_);
23235 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 840, __pyx_L1_error)
23236 __Pyx_GOTREF(__pyx_t_4);
23237 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23239 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
23240 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 840, __pyx_L1_error)
23241 __Pyx_GOTREF(__pyx_t_8);
23242 if (unlikely(!__pyx_cur_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 840, __pyx_L1_error) }
23245 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
23246 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
23247 if (likely(__pyx_t_6)) {
23248 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
23249 __Pyx_INCREF(__pyx_t_6);
23250 __Pyx_INCREF(
function);
23251 __Pyx_DECREF_SET(__pyx_t_8,
function);
23255 #if CYTHON_FAST_PYCALL
23256 if (PyFunction_Check(__pyx_t_8)) {
23257 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
23258 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 840, __pyx_L1_error)
23259 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23260 __Pyx_GOTREF(__pyx_t_5);
23263 #if CYTHON_FAST_PYCCALL
23264 if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
23265 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_v_smoothing, __pyx_float_2_};
23266 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 840, __pyx_L1_error)
23267 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23268 __Pyx_GOTREF(__pyx_t_5);
23272 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 840, __pyx_L1_error)
23273 __Pyx_GOTREF(__pyx_t_9);
23275 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL;
23277 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
23278 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
23279 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_cur_scope->__pyx_v_smoothing);
23280 __Pyx_INCREF(__pyx_float_2_);
23281 __Pyx_GIVEREF(__pyx_float_2_);
23282 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_float_2_);
23283 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 840, __pyx_L1_error)
23284 __Pyx_GOTREF(__pyx_t_5);
23285 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23287 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23288 __pyx_t_8 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 840, __pyx_L1_error)
23289 __Pyx_GOTREF(__pyx_t_8);
23290 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
23293 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
23294 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
23295 if (likely(__pyx_t_5)) {
23296 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
23297 __Pyx_INCREF(__pyx_t_5);
23298 __Pyx_INCREF(
function);
23299 __Pyx_DECREF_SET(__pyx_t_1,
function);
23303 #if CYTHON_FAST_PYCALL
23304 if (PyFunction_Check(__pyx_t_1)) {
23305 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
23306 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 840, __pyx_L1_error)
23307 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
23308 __Pyx_GOTREF(__pyx_t_2);
23309 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
23310 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23313 #if CYTHON_FAST_PYCCALL
23314 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
23315 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
23316 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 840, __pyx_L1_error)
23317 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
23318 __Pyx_GOTREF(__pyx_t_2);
23319 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
23320 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23324 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 840, __pyx_L1_error)
23325 __Pyx_GOTREF(__pyx_t_9);
23327 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = NULL;
23329 __Pyx_GIVEREF(__pyx_t_4);
23330 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_t_4);
23331 __Pyx_GIVEREF(__pyx_t_8);
23332 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_t_8);
23335 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 840, __pyx_L1_error)
23336 __Pyx_GOTREF(__pyx_t_2);
23337 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23339 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23340 __pyx_v_H = __pyx_t_2;
23361 __Pyx_INCREF(__pyx_float_1_0);
23362 __pyx_v_H = __pyx_float_1_0;
23373 __Pyx_XDECREF(__pyx_r);
23374 if (unlikely(!__pyx_cur_scope->__pyx_v_dissipationInflowAir)) { __Pyx_RaiseClosureNameError(
"dissipationInflowAir"); __PYX_ERR(0, 843, __pyx_L1_error) }
23375 __pyx_t_2 = PyNumber_Multiply(__pyx_v_H, __pyx_cur_scope->__pyx_v_dissipationInflowAir);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 843, __pyx_L1_error)
23376 __Pyx_GOTREF(__pyx_t_2);
23377 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
23378 __Pyx_GOTREF(__pyx_t_1);
23379 if (unlikely(!__pyx_cur_scope->__pyx_v_dissipationInflow)) { __Pyx_RaiseClosureNameError(
"dissipationInflow"); __PYX_ERR(0, 843, __pyx_L1_error) }
23380 __pyx_t_9 = PyNumber_Multiply(__pyx_t_1, __pyx_cur_scope->__pyx_v_dissipationInflow);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 843, __pyx_L1_error)
23381 __Pyx_GOTREF(__pyx_t_9);
23382 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23383 __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_9);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
23384 __Pyx_GOTREF(__pyx_t_1);
23385 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23386 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23387 __pyx_r = __pyx_t_1;
23401 __Pyx_XDECREF(__pyx_t_1);
23402 __Pyx_XDECREF(__pyx_t_2);
23403 __Pyx_XDECREF(__pyx_t_4);
23404 __Pyx_XDECREF(__pyx_t_5);
23405 __Pyx_XDECREF(__pyx_t_6);
23406 __Pyx_XDECREF(__pyx_t_8);
23407 __Pyx_XDECREF(__pyx_t_9);
23408 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.inlet_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
23411 __Pyx_XDECREF(__pyx_v_phi);
23412 __Pyx_XDECREF(__pyx_v_H);
23413 __Pyx_XGIVEREF(__pyx_r);
23414 __Pyx_TraceReturn(__pyx_r, 0);
23415 __Pyx_RefNannyFinishContext();
23428 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_11get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i);
23429 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_11get_inlet_ux_dirichlet = {
"get_inlet_ux_dirichlet", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_11get_inlet_ux_dirichlet, METH_O, 0};
23430 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_11get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i) {
23431 PyObject *__pyx_r = 0;
23432 __Pyx_RefNannyDeclarations
23433 __Pyx_RefNannySetupContext(
"get_inlet_ux_dirichlet (wrapper)", 0);
23434 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(__pyx_self, ((PyObject *)__pyx_v_i));
23437 __Pyx_RefNannyFinishContext();
23450 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_1ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23451 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_1ux_dirichlet = {
"ux_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_1ux_dirichlet, METH_VARARGS|METH_KEYWORDS, 0};
23452 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_1ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23453 PyObject *__pyx_v_x = 0;
23454 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
23455 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
23456 int __pyx_lineno = 0;
23457 const char *__pyx_filename = NULL;
23458 int __pyx_clineno = 0;
23459 PyObject *__pyx_r = 0;
23460 __Pyx_RefNannyDeclarations
23461 __Pyx_RefNannySetupContext(
"ux_dirichlet (wrapper)", 0);
23463 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
23464 PyObject* values[3] = {0,0,0};
23465 values[2] = ((PyObject *)((PyObject *)Py_None));
23466 if (unlikely(__pyx_kwds)) {
23467 Py_ssize_t kw_args;
23468 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23469 switch (pos_args) {
23470 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23471 CYTHON_FALLTHROUGH;
23472 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23473 CYTHON_FALLTHROUGH;
23474 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23475 CYTHON_FALLTHROUGH;
23477 default:
goto __pyx_L5_argtuple_error;
23479 kw_args = PyDict_Size(__pyx_kwds);
23480 switch (pos_args) {
23482 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
23483 else goto __pyx_L5_argtuple_error;
23484 CYTHON_FALLTHROUGH;
23486 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
23488 __Pyx_RaiseArgtupleInvalid(
"ux_dirichlet", 0, 2, 3, 1); __PYX_ERR(0, 879, __pyx_L3_error)
23490 CYTHON_FALLTHROUGH;
23493 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
23494 if (value) { values[2] = value; kw_args--; }
23497 if (unlikely(kw_args > 0)) {
23498 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"ux_dirichlet") < 0)) __PYX_ERR(0, 879, __pyx_L3_error)
23501 switch (PyTuple_GET_SIZE(__pyx_args)) {
23502 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23503 CYTHON_FALLTHROUGH;
23504 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23505 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23507 default:
goto __pyx_L5_argtuple_error;
23510 __pyx_v_x = values[0];
23511 __pyx_v_t = values[1];
23512 __pyx_v_n = values[2];
23514 goto __pyx_L4_argument_unpacking_done;
23515 __pyx_L5_argtuple_error:;
23516 __Pyx_RaiseArgtupleInvalid(
"ux_dirichlet", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 879, __pyx_L3_error)
23518 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.get_inlet_ux_dirichlet.ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
23519 __Pyx_RefNannyFinishContext();
23521 __pyx_L4_argument_unpacking_done:;
23522 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_ux_dirichlet(__pyx_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
23525 __Pyx_RefNannyFinishContext();
23529 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
23530 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *__pyx_cur_scope;
23531 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *__pyx_outer_scope;
23532 PyObject *__pyx_v_phi = NULL;
23533 PyObject *__pyx_v_H = NULL;
23534 PyObject *__pyx_r = NULL;
23535 __Pyx_TraceDeclarations
23536 __Pyx_RefNannyDeclarations
23537 PyObject *__pyx_t_1 = NULL;
23538 PyObject *__pyx_t_2 = NULL;
23540 PyObject *__pyx_t_4 = NULL;
23541 PyObject *__pyx_t_5 = NULL;
23542 PyObject *__pyx_t_6 = NULL;
23544 PyObject *__pyx_t_8 = NULL;
23545 PyObject *__pyx_t_9 = NULL;
23546 int __pyx_lineno = 0;
23547 const char *__pyx_filename = NULL;
23548 int __pyx_clineno = 0;
23549 __Pyx_RefNannySetupContext(
"ux_dirichlet", 0);
23550 __pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *) __Pyx_CyFunction_GetClosure(__pyx_self);
23551 __pyx_cur_scope = __pyx_outer_scope;
23552 __Pyx_TraceCall(
"ux_dirichlet", __pyx_f[0], 879, 0, __PYX_ERR(0, 879, __pyx_L1_error));
23561 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_vert_axis)) { __Pyx_RaiseClosureNameError(
"vert_axis"); __PYX_ERR(0, 880, __pyx_L1_error) }
23562 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_x, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error)
23563 __Pyx_GOTREF(__pyx_t_1);
23564 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_seaLevel)) { __Pyx_RaiseClosureNameError(
"seaLevel"); __PYX_ERR(0, 880, __pyx_L1_error) }
23565 __pyx_t_2 = PyNumber_Subtract(__pyx_t_1, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_seaLevel);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 880, __pyx_L1_error)
23566 __Pyx_GOTREF(__pyx_t_2);
23567 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23568 __pyx_v_phi = __pyx_t_2;
23578 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_float_0_, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 881, __pyx_L1_error)
23579 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 881, __pyx_L1_error)
23580 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23590 __Pyx_INCREF(__pyx_float_0_0);
23591 __pyx_v_H = __pyx_float_0_0;
23610 __pyx_t_2 = PyObject_RichCompare(__pyx_int_0, __pyx_v_phi, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
23611 if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
23612 __Pyx_DECREF(__pyx_t_2);
23613 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 883, __pyx_L1_error) }
23614 __pyx_t_2 = PyObject_RichCompare(__pyx_v_phi, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
23616 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 883, __pyx_L1_error)
23617 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23627 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error)
23628 __Pyx_GOTREF(__pyx_t_1);
23629 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 884, __pyx_L1_error)
23630 __Pyx_GOTREF(__pyx_t_5);
23631 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 884, __pyx_L1_error) }
23634 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
23635 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
23636 if (likely(__pyx_t_6)) {
23637 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
23638 __Pyx_INCREF(__pyx_t_6);
23639 __Pyx_INCREF(
function);
23640 __Pyx_DECREF_SET(__pyx_t_5,
function);
23644 #if CYTHON_FAST_PYCALL
23645 if (PyFunction_Check(__pyx_t_5)) {
23646 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_float_2_};
23647 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error)
23648 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23649 __Pyx_GOTREF(__pyx_t_4);
23652 #if CYTHON_FAST_PYCCALL
23653 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
23654 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_float_2_};
23655 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error)
23656 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23657 __Pyx_GOTREF(__pyx_t_4);
23661 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 884, __pyx_L1_error)
23662 __Pyx_GOTREF(__pyx_t_8);
23664 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
23666 __Pyx_INCREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23667 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23668 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23669 __Pyx_INCREF(__pyx_float_2_);
23670 __Pyx_GIVEREF(__pyx_float_2_);
23671 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_float_2_);
23672 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error)
23673 __Pyx_GOTREF(__pyx_t_4);
23674 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23676 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
23677 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 884, __pyx_L1_error)
23678 __Pyx_GOTREF(__pyx_t_8);
23679 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing)) { __Pyx_RaiseClosureNameError(
"smoothing"); __PYX_ERR(0, 884, __pyx_L1_error) }
23682 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
23683 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
23684 if (likely(__pyx_t_6)) {
23685 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
23686 __Pyx_INCREF(__pyx_t_6);
23687 __Pyx_INCREF(
function);
23688 __Pyx_DECREF_SET(__pyx_t_8,
function);
23692 #if CYTHON_FAST_PYCALL
23693 if (PyFunction_Check(__pyx_t_8)) {
23694 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_float_2_};
23695 __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 884, __pyx_L1_error)
23696 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23697 __Pyx_GOTREF(__pyx_t_5);
23700 #if CYTHON_FAST_PYCCALL
23701 if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
23702 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing, __pyx_float_2_};
23703 __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 884, __pyx_L1_error)
23704 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
23705 __Pyx_GOTREF(__pyx_t_5);
23709 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 884, __pyx_L1_error)
23710 __Pyx_GOTREF(__pyx_t_9);
23712 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = NULL;
23714 __Pyx_INCREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23715 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23716 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_smoothing);
23717 __Pyx_INCREF(__pyx_float_2_);
23718 __Pyx_GIVEREF(__pyx_float_2_);
23719 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_float_2_);
23720 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 884, __pyx_L1_error)
23721 __Pyx_GOTREF(__pyx_t_5);
23722 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23724 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23725 __pyx_t_8 = PyNumber_Subtract(__pyx_v_phi, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 884, __pyx_L1_error)
23726 __Pyx_GOTREF(__pyx_t_8);
23727 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
23730 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
23731 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
23732 if (likely(__pyx_t_5)) {
23733 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
23734 __Pyx_INCREF(__pyx_t_5);
23735 __Pyx_INCREF(
function);
23736 __Pyx_DECREF_SET(__pyx_t_1,
function);
23740 #if CYTHON_FAST_PYCALL
23741 if (PyFunction_Check(__pyx_t_1)) {
23742 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
23743 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 884, __pyx_L1_error)
23744 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
23745 __Pyx_GOTREF(__pyx_t_2);
23746 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
23747 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23750 #if CYTHON_FAST_PYCCALL
23751 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
23752 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_4, __pyx_t_8};
23753 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 884, __pyx_L1_error)
23754 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
23755 __Pyx_GOTREF(__pyx_t_2);
23756 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
23757 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23761 __pyx_t_9 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 884, __pyx_L1_error)
23762 __Pyx_GOTREF(__pyx_t_9);
23764 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = NULL;
23766 __Pyx_GIVEREF(__pyx_t_4);
23767 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_7, __pyx_t_4);
23768 __Pyx_GIVEREF(__pyx_t_8);
23769 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_7, __pyx_t_8);
23772 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 884, __pyx_L1_error)
23773 __Pyx_GOTREF(__pyx_t_2);
23774 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23776 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23777 __pyx_v_H = __pyx_t_2;
23798 __Pyx_INCREF(__pyx_float_1_0);
23799 __pyx_v_H = __pyx_float_1_0;
23810 __Pyx_XDECREF(__pyx_r);
23811 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_Uwind)) { __Pyx_RaiseClosureNameError(
"Uwind"); __PYX_ERR(0, 887, __pyx_L1_error) }
23812 if (unlikely(!__pyx_cur_scope->__pyx_v_i)) { __Pyx_RaiseClosureNameError(
"i"); __PYX_ERR(0, 887, __pyx_L1_error) }
23813 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_Uwind, __pyx_cur_scope->__pyx_v_i);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 887, __pyx_L1_error)
23814 __Pyx_GOTREF(__pyx_t_2);
23815 __pyx_t_1 = PyNumber_Multiply(__pyx_v_H, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
23816 __Pyx_GOTREF(__pyx_t_1);
23817 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23818 __pyx_t_2 = __Pyx_PyInt_SubtractCObj(__pyx_int_1, __pyx_v_H, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 887, __pyx_L1_error)
23819 __Pyx_GOTREF(__pyx_t_2);
23820 if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_U)) { __Pyx_RaiseClosureNameError(
"U"); __PYX_ERR(0, 887, __pyx_L1_error) }
23821 if (unlikely(!__pyx_cur_scope->__pyx_v_i)) { __Pyx_RaiseClosureNameError(
"i"); __PYX_ERR(0, 887, __pyx_L1_error) }
23822 __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_U, __pyx_cur_scope->__pyx_v_i);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 887, __pyx_L1_error)
23823 __Pyx_GOTREF(__pyx_t_9);
23824 __pyx_t_8 = PyNumber_Multiply(__pyx_t_2, __pyx_t_9);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 887, __pyx_L1_error)
23825 __Pyx_GOTREF(__pyx_t_8);
23826 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23827 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
23828 __pyx_t_9 = PyNumber_Add(__pyx_t_1, __pyx_t_8);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 887, __pyx_L1_error)
23829 __Pyx_GOTREF(__pyx_t_9);
23830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
23831 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
23832 __pyx_r = __pyx_t_9;
23846 __Pyx_XDECREF(__pyx_t_1);
23847 __Pyx_XDECREF(__pyx_t_2);
23848 __Pyx_XDECREF(__pyx_t_4);
23849 __Pyx_XDECREF(__pyx_t_5);
23850 __Pyx_XDECREF(__pyx_t_6);
23851 __Pyx_XDECREF(__pyx_t_8);
23852 __Pyx_XDECREF(__pyx_t_9);
23853 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.get_inlet_ux_dirichlet.ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
23856 __Pyx_XDECREF(__pyx_v_phi);
23857 __Pyx_XDECREF(__pyx_v_H);
23858 __Pyx_XGIVEREF(__pyx_r);
23859 __Pyx_TraceReturn(__pyx_r, 0);
23860 __Pyx_RefNannyFinishContext();
23872 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(PyObject *__pyx_self, PyObject *__pyx_v_i) {
23873 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *__pyx_cur_scope;
23874 PyObject *__pyx_v_ux_dirichlet = 0;
23875 PyObject *__pyx_r = NULL;
23876 __Pyx_TraceDeclarations
23877 __Pyx_RefNannyDeclarations
23878 PyObject *__pyx_t_1 = NULL;
23879 int __pyx_lineno = 0;
23880 const char *__pyx_filename = NULL;
23881 int __pyx_clineno = 0;
23882 __Pyx_RefNannySetupContext(
"get_inlet_ux_dirichlet", 0);
23883 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet, __pyx_empty_tuple, NULL);
23884 if (unlikely(!__pyx_cur_scope)) {
23885 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)Py_None);
23886 __Pyx_INCREF(Py_None);
23887 __PYX_ERR(0, 878, __pyx_L1_error)
23889 __Pyx_GOTREF(__pyx_cur_scope);
23891 __pyx_cur_scope->__pyx_outer_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *) __Pyx_CyFunction_GetClosure(__pyx_self);
23892 __Pyx_INCREF(((PyObject *)__pyx_cur_scope->__pyx_outer_scope));
23893 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_outer_scope);
23894 __Pyx_TraceCall(
"get_inlet_ux_dirichlet", __pyx_f[0], 878, 0, __PYX_ERR(0, 878, __pyx_L1_error));
23895 __pyx_cur_scope->__pyx_v_i = __pyx_v_i;
23896 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_i);
23897 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_i);
23906 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_22get_inlet_ux_dirichlet_1ux_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__68));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 879, __pyx_L1_error)
23907 __Pyx_GOTREF(__pyx_t_1);
23908 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__69);
23909 __pyx_v_ux_dirichlet = __pyx_t_1;
23919 __Pyx_XDECREF(__pyx_r);
23920 __Pyx_INCREF(__pyx_v_ux_dirichlet);
23921 __pyx_r = __pyx_v_ux_dirichlet;
23934 __Pyx_XDECREF(__pyx_t_1);
23935 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth.get_inlet_ux_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
23938 __Pyx_XDECREF(__pyx_v_ux_dirichlet);
23939 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
23940 __Pyx_XGIVEREF(__pyx_r);
23941 __Pyx_TraceReturn(__pyx_r, 0);
23942 __Pyx_RefNannyFinishContext();
23954 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_seaLevel, PyObject *__pyx_v_rhoUp, PyObject *__pyx_v_rhoDown, PyObject *__pyx_v_g, PyObject *__pyx_v_refLevel, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_orientation, PyObject *__pyx_v_U, PyObject *__pyx_v_Uwind, PyObject *__pyx_v_pRef, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_air, PyObject *__pyx_v_water, PyObject *__pyx_v_kInflow, PyObject *__pyx_v_dissipationInflow, PyObject *__pyx_v_kInflowAir, PyObject *__pyx_v_dissipationInflowAir) {
23955 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_cur_scope;
23956 PyObject *__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet = 0;
23957 PyObject *__pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet = 0;
23958 PyObject *__pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet = 0;
23959 PyObject *__pyx_v_inlet_k_dirichlet = 0;
23960 PyObject *__pyx_v_inlet_dissipation_dirichlet = 0;
23961 PyObject *__pyx_v_b_or = NULL;
23962 PyObject *__pyx_v_get_inlet_ux_dirichlet = 0;
23963 PyObject *__pyx_r = NULL;
23964 __Pyx_TraceDeclarations
23965 __Pyx_RefNannyDeclarations
23966 PyObject *__pyx_t_1 = NULL;
23967 PyObject *__pyx_t_2 = NULL;
23968 PyObject *__pyx_t_3 = NULL;
23971 int __pyx_lineno = 0;
23972 const char *__pyx_filename = NULL;
23973 int __pyx_clineno = 0;
23974 __Pyx_TraceFrameInit(__pyx_codeobj__70)
23975 __Pyx_RefNannySetupContext(
"setHydrostaticPressureOutletWithDepth", 0);
23976 __pyx_cur_scope = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(__pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth, __pyx_empty_tuple, NULL);
23977 if (unlikely(!__pyx_cur_scope)) {
23978 __pyx_cur_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)Py_None);
23979 __Pyx_INCREF(Py_None);
23980 __PYX_ERR(0, 774, __pyx_L1_error)
23982 __Pyx_GOTREF(__pyx_cur_scope);
23984 __Pyx_TraceCall(
"setHydrostaticPressureOutletWithDepth", __pyx_f[0], 774, 0, __PYX_ERR(0, 774, __pyx_L1_error));
23985 __pyx_cur_scope->__pyx_v_seaLevel = __pyx_v_seaLevel;
23986 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_seaLevel);
23987 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_seaLevel);
23988 __pyx_cur_scope->__pyx_v_rhoUp = __pyx_v_rhoUp;
23989 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_rhoUp);
23990 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_rhoUp);
23991 __pyx_cur_scope->__pyx_v_rhoDown = __pyx_v_rhoDown;
23992 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_rhoDown);
23993 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_rhoDown);
23994 __pyx_cur_scope->__pyx_v_g = __pyx_v_g;
23995 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_g);
23996 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_g);
23997 __pyx_cur_scope->__pyx_v_refLevel = __pyx_v_refLevel;
23998 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_refLevel);
23999 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_refLevel);
24000 __pyx_cur_scope->__pyx_v_smoothing = __pyx_v_smoothing;
24001 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_smoothing);
24002 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_smoothing);
24003 __pyx_cur_scope->__pyx_v_U = __pyx_v_U;
24004 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_U);
24005 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_U);
24006 __pyx_cur_scope->__pyx_v_Uwind = __pyx_v_Uwind;
24007 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_Uwind);
24008 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_Uwind);
24009 __pyx_cur_scope->__pyx_v_pRef = __pyx_v_pRef;
24010 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_pRef);
24011 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_pRef);
24012 __pyx_cur_scope->__pyx_v_vert_axis = __pyx_v_vert_axis;
24013 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_vert_axis);
24014 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_vert_axis);
24015 __pyx_cur_scope->__pyx_v_air = __pyx_v_air;
24016 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_air);
24017 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_air);
24018 __pyx_cur_scope->__pyx_v_water = __pyx_v_water;
24019 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_water);
24020 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_water);
24021 __pyx_cur_scope->__pyx_v_kInflow = __pyx_v_kInflow;
24022 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_kInflow);
24023 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_kInflow);
24024 __pyx_cur_scope->__pyx_v_dissipationInflow = __pyx_v_dissipationInflow;
24025 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dissipationInflow);
24026 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_dissipationInflow);
24027 __pyx_cur_scope->__pyx_v_kInflowAir = __pyx_v_kInflowAir;
24028 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_kInflowAir);
24029 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_kInflowAir);
24030 __pyx_cur_scope->__pyx_v_dissipationInflowAir = __pyx_v_dissipationInflowAir;
24031 __Pyx_INCREF(__pyx_cur_scope->__pyx_v_dissipationInflowAir);
24032 __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_dissipationInflowAir);
24041 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
24042 __Pyx_GOTREF(__pyx_t_2);
24044 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24045 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24046 if (likely(__pyx_t_3)) {
24047 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24048 __Pyx_INCREF(__pyx_t_3);
24049 __Pyx_INCREF(
function);
24050 __Pyx_DECREF_SET(__pyx_t_2,
function);
24053 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
24054 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24055 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
24056 __Pyx_GOTREF(__pyx_t_1);
24057 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24058 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24067 __pyx_t_4 = (__pyx_cur_scope->__pyx_v_vert_axis == Py_None);
24068 __pyx_t_5 = (__pyx_t_4 != 0);
24078 __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_v_self->__pyx_base.nd - 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
24079 __Pyx_GOTREF(__pyx_t_1);
24080 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_vert_axis);
24081 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_vert_axis, __pyx_t_1);
24082 __Pyx_GIVEREF(__pyx_t_1);
24101 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_1hydrostaticPressureOutletWithDepth_p_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_2, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__72));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 801, __pyx_L1_error)
24102 __Pyx_GOTREF(__pyx_t_1);
24103 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__73);
24104 __pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet = __pyx_t_1;
24114 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_3hydrostaticPressureOutletWithDepth_phi_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_3, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__75));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
24115 __Pyx_GOTREF(__pyx_t_1);
24116 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__76);
24117 __pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet = __pyx_t_1;
24127 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_5hydrostaticPressureOutletWithDepth_vof_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_4, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__78));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 815, __pyx_L1_error)
24128 __Pyx_GOTREF(__pyx_t_1);
24129 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__79);
24130 __pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet = __pyx_t_1;
24140 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_7inlet_k_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_5, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__81));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 825, __pyx_L1_error)
24141 __Pyx_GOTREF(__pyx_t_1);
24142 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__82);
24143 __pyx_v_inlet_k_dirichlet = __pyx_t_1;
24153 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_9inlet_dissipation_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_6, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__84));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
24154 __Pyx_GOTREF(__pyx_t_1);
24155 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__85);
24156 __pyx_v_inlet_dissipation_dirichlet = __pyx_t_1;
24166 __pyx_t_5 = (__pyx_v_orientation != Py_None);
24167 __pyx_t_4 = (__pyx_t_5 != 0);
24177 __Pyx_INCREF(__pyx_v_orientation);
24178 __pyx_v_b_or = __pyx_v_orientation;
24198 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 848, __pyx_L1_error)
24199 __Pyx_GOTREF(__pyx_t_1);
24200 __pyx_v_b_or = __pyx_t_1;
24212 #ifndef CYTHON_WITHOUT_ASSERTIONS
24213 if (unlikely(!Py_OptimizeFlag)) {
24214 __pyx_t_4 = (__pyx_v_b_or != Py_None);
24215 if (unlikely(!(__pyx_t_4 != 0))) {
24216 PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_ERROR_Boundary_orientation_for_H);
24217 __PYX_ERR(0, 849, __pyx_L1_error)
24229 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 850, __pyx_L1_error)
24230 __Pyx_GOTREF(__pyx_t_1);
24231 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 850, __pyx_L1_error)
24232 __Pyx_GOTREF(__pyx_t_2);
24233 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24234 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 850, __pyx_L1_error)
24235 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24238 __pyx_t_4 = __pyx_t_5;
24239 goto __pyx_L6_bool_binop_done;
24241 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 850, __pyx_L1_error)
24242 __Pyx_GOTREF(__pyx_t_2);
24243 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 850, __pyx_L1_error)
24244 __Pyx_GOTREF(__pyx_t_1);
24245 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24246 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 850, __pyx_L1_error)
24247 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24248 __pyx_t_4 = __pyx_t_5;
24249 __pyx_L6_bool_binop_done:;
24259 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
24260 __Pyx_GOTREF(__pyx_t_2);
24262 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24263 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24264 if (likely(__pyx_t_3)) {
24265 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24266 __Pyx_INCREF(__pyx_t_3);
24267 __Pyx_INCREF(
function);
24268 __Pyx_DECREF_SET(__pyx_t_2,
function);
24271 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24272 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24273 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
24274 __Pyx_GOTREF(__pyx_t_1);
24275 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24276 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24285 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 852, __pyx_L1_error)
24286 __Pyx_GOTREF(__pyx_t_2);
24288 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24289 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24290 if (likely(__pyx_t_3)) {
24291 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24292 __Pyx_INCREF(__pyx_t_3);
24293 __Pyx_INCREF(
function);
24294 __Pyx_DECREF_SET(__pyx_t_2,
function);
24297 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24298 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24299 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 852, __pyx_L1_error)
24300 __Pyx_GOTREF(__pyx_t_1);
24301 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24302 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24311 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 853, __pyx_L1_error)
24312 __Pyx_GOTREF(__pyx_t_2);
24314 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24315 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24316 if (likely(__pyx_t_3)) {
24317 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24318 __Pyx_INCREF(__pyx_t_3);
24319 __Pyx_INCREF(
function);
24320 __Pyx_DECREF_SET(__pyx_t_2,
function);
24323 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24324 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24325 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 853, __pyx_L1_error)
24326 __Pyx_GOTREF(__pyx_t_1);
24327 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24328 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24346 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 854, __pyx_L1_error)
24347 __Pyx_GOTREF(__pyx_t_1);
24348 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 854, __pyx_L1_error)
24349 __Pyx_GOTREF(__pyx_t_2);
24350 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24351 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 854, __pyx_L1_error)
24352 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24355 __pyx_t_4 = __pyx_t_5;
24356 goto __pyx_L9_bool_binop_done;
24358 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 854, __pyx_L1_error)
24359 __Pyx_GOTREF(__pyx_t_2);
24360 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 854, __pyx_L1_error)
24361 __Pyx_GOTREF(__pyx_t_1);
24362 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24363 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 854, __pyx_L1_error)
24364 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24365 __pyx_t_4 = __pyx_t_5;
24366 __pyx_L9_bool_binop_done:;
24376 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
24377 __Pyx_GOTREF(__pyx_t_2);
24379 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24380 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24381 if (likely(__pyx_t_3)) {
24382 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24383 __Pyx_INCREF(__pyx_t_3);
24384 __Pyx_INCREF(
function);
24385 __Pyx_DECREF_SET(__pyx_t_2,
function);
24388 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24389 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24390 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
24391 __Pyx_GOTREF(__pyx_t_1);
24392 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24393 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24402 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 856, __pyx_L1_error)
24403 __Pyx_GOTREF(__pyx_t_2);
24405 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24406 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24407 if (likely(__pyx_t_3)) {
24408 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24409 __Pyx_INCREF(__pyx_t_3);
24410 __Pyx_INCREF(
function);
24411 __Pyx_DECREF_SET(__pyx_t_2,
function);
24414 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24415 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24416 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 856, __pyx_L1_error)
24417 __Pyx_GOTREF(__pyx_t_1);
24418 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24419 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24428 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 857, __pyx_L1_error)
24429 __Pyx_GOTREF(__pyx_t_2);
24431 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24432 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24433 if (likely(__pyx_t_3)) {
24434 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24435 __Pyx_INCREF(__pyx_t_3);
24436 __Pyx_INCREF(
function);
24437 __Pyx_DECREF_SET(__pyx_t_2,
function);
24440 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24441 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24442 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 857, __pyx_L1_error)
24443 __Pyx_GOTREF(__pyx_t_1);
24444 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24445 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24463 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 858, __pyx_L1_error)
24464 __Pyx_GOTREF(__pyx_t_1);
24465 __pyx_t_2 = __Pyx_PyFloat_EqObjC(__pyx_t_1, __pyx_float_1_, 1., 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 858, __pyx_L1_error)
24466 __Pyx_GOTREF(__pyx_t_2);
24467 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24468 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 858, __pyx_L1_error)
24469 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24472 __pyx_t_4 = __pyx_t_5;
24473 goto __pyx_L12_bool_binop_done;
24475 __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_b_or, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 858, __pyx_L1_error)
24476 __Pyx_GOTREF(__pyx_t_2);
24477 __pyx_t_1 = __Pyx_PyFloat_EqObjC(__pyx_t_2, __pyx_float_neg_1_, -1., 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 858, __pyx_L1_error)
24478 __Pyx_GOTREF(__pyx_t_1);
24479 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24480 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 858, __pyx_L1_error)
24481 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24482 __pyx_t_4 = __pyx_t_5;
24483 __pyx_L12_bool_binop_done:;
24493 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->u_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 859, __pyx_L1_error)
24494 __Pyx_GOTREF(__pyx_t_2);
24496 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24497 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24498 if (likely(__pyx_t_3)) {
24499 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24500 __Pyx_INCREF(__pyx_t_3);
24501 __Pyx_INCREF(
function);
24502 __Pyx_DECREF_SET(__pyx_t_2,
function);
24505 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24506 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24507 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 859, __pyx_L1_error)
24508 __Pyx_GOTREF(__pyx_t_1);
24509 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24510 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24519 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->v_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 860, __pyx_L1_error)
24520 __Pyx_GOTREF(__pyx_t_2);
24522 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24523 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24524 if (likely(__pyx_t_3)) {
24525 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24526 __Pyx_INCREF(__pyx_t_3);
24527 __Pyx_INCREF(
function);
24528 __Pyx_DECREF_SET(__pyx_t_2,
function);
24531 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24532 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24533 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 860, __pyx_L1_error)
24534 __Pyx_GOTREF(__pyx_t_1);
24535 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24536 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24545 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->w_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
24546 __Pyx_GOTREF(__pyx_t_2);
24548 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24549 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24550 if (likely(__pyx_t_3)) {
24551 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24552 __Pyx_INCREF(__pyx_t_3);
24553 __Pyx_INCREF(
function);
24554 __Pyx_DECREF_SET(__pyx_t_2,
function);
24557 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24558 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24559 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
24560 __Pyx_GOTREF(__pyx_t_1);
24561 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24562 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24580 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 863, __pyx_L1_error)
24581 __Pyx_GOTREF(__pyx_t_2);
24583 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24584 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24585 if (likely(__pyx_t_3)) {
24586 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24587 __Pyx_INCREF(__pyx_t_3);
24588 __Pyx_INCREF(
function);
24589 __Pyx_DECREF_SET(__pyx_t_2,
function);
24592 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24593 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24594 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 863, __pyx_L1_error)
24595 __Pyx_GOTREF(__pyx_t_1);
24596 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24597 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24606 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 864, __pyx_L1_error)
24607 __Pyx_GOTREF(__pyx_t_2);
24609 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24610 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24611 if (likely(__pyx_t_3)) {
24612 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24613 __Pyx_INCREF(__pyx_t_3);
24614 __Pyx_INCREF(
function);
24615 __Pyx_DECREF_SET(__pyx_t_2,
function);
24618 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24619 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24620 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
24621 __Pyx_GOTREF(__pyx_t_1);
24622 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24623 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24632 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->ws_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error)
24633 __Pyx_GOTREF(__pyx_t_2);
24635 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24636 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24637 if (likely(__pyx_t_3)) {
24638 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24639 __Pyx_INCREF(__pyx_t_3);
24640 __Pyx_INCREF(
function);
24641 __Pyx_DECREF_SET(__pyx_t_2,
function);
24644 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24645 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24646 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
24647 __Pyx_GOTREF(__pyx_t_1);
24648 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24649 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24658 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vos_advective), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 866, __pyx_L1_error)
24659 __Pyx_GOTREF(__pyx_t_2);
24661 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24662 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24663 if (likely(__pyx_t_3)) {
24664 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24665 __Pyx_INCREF(__pyx_t_3);
24666 __Pyx_INCREF(
function);
24667 __Pyx_DECREF_SET(__pyx_t_2,
function);
24670 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24671 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24672 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __pyx_L1_error)
24673 __Pyx_GOTREF(__pyx_t_1);
24674 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24675 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24684 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->us_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 867, __pyx_L1_error)
24685 __Pyx_GOTREF(__pyx_t_2);
24687 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24688 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24689 if (likely(__pyx_t_3)) {
24690 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24691 __Pyx_INCREF(__pyx_t_3);
24692 __Pyx_INCREF(
function);
24693 __Pyx_DECREF_SET(__pyx_t_2,
function);
24696 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24697 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24698 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 867, __pyx_L1_error)
24699 __Pyx_GOTREF(__pyx_t_1);
24700 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24701 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24710 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->vs_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 868, __pyx_L1_error)
24711 __Pyx_GOTREF(__pyx_t_2);
24713 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24714 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24715 if (likely(__pyx_t_3)) {
24716 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24717 __Pyx_INCREF(__pyx_t_3);
24718 __Pyx_INCREF(
function);
24719 __Pyx_DECREF_SET(__pyx_t_2,
function);
24722 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24723 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24724 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error)
24725 __Pyx_GOTREF(__pyx_t_1);
24726 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24727 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24736 __Pyx_INCREF(__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet);
24737 __Pyx_GIVEREF(__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet);
24738 __Pyx_GOTREF(__pyx_v_self->p_dirichlet->uOfXT);
24739 __Pyx_DECREF(__pyx_v_self->p_dirichlet->uOfXT);
24740 __pyx_v_self->p_dirichlet->uOfXT = __pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet;
24749 __Pyx_INCREF(__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet);
24750 __Pyx_GIVEREF(__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet);
24751 __Pyx_GOTREF(__pyx_v_self->pInit_dirichlet->uOfXT);
24752 __Pyx_DECREF(__pyx_v_self->pInit_dirichlet->uOfXT);
24753 __pyx_v_self->pInit_dirichlet->uOfXT = __pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet;
24762 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->pInc_dirichlet), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 872, __pyx_L1_error)
24763 __Pyx_GOTREF(__pyx_t_2);
24765 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24766 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24767 if (likely(__pyx_t_3)) {
24768 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24769 __Pyx_INCREF(__pyx_t_3);
24770 __Pyx_INCREF(
function);
24771 __Pyx_DECREF_SET(__pyx_t_2,
function);
24774 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24775 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24776 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error)
24777 __Pyx_GOTREF(__pyx_t_1);
24778 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24779 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24788 __Pyx_INCREF(__pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet);
24789 __Pyx_GIVEREF(__pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet);
24790 __Pyx_GOTREF(__pyx_v_self->phi_dirichlet->uOfXT);
24791 __Pyx_DECREF(__pyx_v_self->phi_dirichlet->uOfXT);
24792 __pyx_v_self->phi_dirichlet->uOfXT = __pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet;
24801 __Pyx_INCREF(__pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet);
24802 __Pyx_GIVEREF(__pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet);
24803 __Pyx_GOTREF(__pyx_v_self->vof_dirichlet->uOfXT);
24804 __Pyx_DECREF(__pyx_v_self->vof_dirichlet->uOfXT);
24805 __pyx_v_self->vof_dirichlet->uOfXT = __pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet;
24814 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->k_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 875, __pyx_L1_error)
24815 __Pyx_GOTREF(__pyx_t_2);
24817 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24818 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24819 if (likely(__pyx_t_3)) {
24820 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24821 __Pyx_INCREF(__pyx_t_3);
24822 __Pyx_INCREF(
function);
24823 __Pyx_DECREF_SET(__pyx_t_2,
function);
24826 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24827 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24828 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error)
24829 __Pyx_GOTREF(__pyx_t_1);
24830 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24831 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24840 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->dissipation_diffusive), __pyx_n_s_setConstantBC);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 876, __pyx_L1_error)
24841 __Pyx_GOTREF(__pyx_t_2);
24843 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
24844 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24845 if (likely(__pyx_t_3)) {
24846 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24847 __Pyx_INCREF(__pyx_t_3);
24848 __Pyx_INCREF(
function);
24849 __Pyx_DECREF_SET(__pyx_t_2,
function);
24852 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_float_0_) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_float_0_);
24853 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24854 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error)
24855 __Pyx_GOTREF(__pyx_t_1);
24856 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24857 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24866 __pyx_t_4 = (__pyx_cur_scope->__pyx_v_U != Py_None);
24867 __pyx_t_5 = (__pyx_t_4 != 0);
24877 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_11get_inlet_ux_dirichlet, 0, __pyx_n_s_setHydrostaticPressureOutletWith_7, ((PyObject*)__pyx_cur_scope), __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__87));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 878, __pyx_L1_error)
24878 __Pyx_GOTREF(__pyx_t_1);
24879 __pyx_v_get_inlet_ux_dirichlet = __pyx_t_1;
24889 __pyx_t_5 = (__pyx_cur_scope->__pyx_v_Uwind == Py_None);
24890 __pyx_t_4 = (__pyx_t_5 != 0);
24900 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 891, __pyx_L1_error)
24901 __Pyx_GOTREF(__pyx_t_2);
24902 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 891, __pyx_L1_error)
24903 __Pyx_GOTREF(__pyx_t_3);
24904 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24906 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
24907 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
24908 if (likely(__pyx_t_2)) {
24909 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
24910 __Pyx_INCREF(__pyx_t_2);
24911 __Pyx_INCREF(
function);
24912 __Pyx_DECREF_SET(__pyx_t_3,
function);
24915 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_3);
24916 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
24917 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error)
24918 __Pyx_GOTREF(__pyx_t_1);
24919 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
24920 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_Uwind);
24921 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_Uwind, __pyx_t_1);
24922 __Pyx_GIVEREF(__pyx_t_1);
24941 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 892, __pyx_L1_error)
24942 __Pyx_GOTREF(__pyx_t_3);
24943 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 892, __pyx_L1_error)
24944 __Pyx_GOTREF(__pyx_t_2);
24945 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
24947 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
24948 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
24949 if (likely(__pyx_t_3)) {
24950 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
24951 __Pyx_INCREF(__pyx_t_3);
24952 __Pyx_INCREF(
function);
24953 __Pyx_DECREF_SET(__pyx_t_2,
function);
24956 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_cur_scope->__pyx_v_U) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_cur_scope->__pyx_v_U);
24957 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24958 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 892, __pyx_L1_error)
24959 __Pyx_GOTREF(__pyx_t_1);
24960 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24961 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_U);
24962 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_U, __pyx_t_1);
24963 __Pyx_GIVEREF(__pyx_t_1);
24973 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 893, __pyx_L1_error)
24974 __Pyx_GOTREF(__pyx_t_2);
24975 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 893, __pyx_L1_error)
24976 __Pyx_GOTREF(__pyx_t_3);
24977 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24979 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
24980 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
24981 if (likely(__pyx_t_2)) {
24982 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
24983 __Pyx_INCREF(__pyx_t_2);
24984 __Pyx_INCREF(
function);
24985 __Pyx_DECREF_SET(__pyx_t_3,
function);
24988 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_cur_scope->__pyx_v_Uwind) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_cur_scope->__pyx_v_Uwind);
24989 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
24990 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error)
24991 __Pyx_GOTREF(__pyx_t_1);
24992 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
24993 __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_Uwind);
24994 __Pyx_DECREF_SET(__pyx_cur_scope->__pyx_v_Uwind, __pyx_t_1);
24995 __Pyx_GIVEREF(__pyx_t_1);
25005 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 894, __pyx_L1_error)
25006 __Pyx_GOTREF(__pyx_t_1);
25007 __Pyx_GIVEREF(__pyx_t_1);
25008 __Pyx_GOTREF(__pyx_v_self->u_dirichlet->uOfXT);
25009 __Pyx_DECREF(__pyx_v_self->u_dirichlet->uOfXT);
25010 __pyx_v_self->u_dirichlet->uOfXT = __pyx_t_1;
25020 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 895, __pyx_L1_error)
25021 __Pyx_GOTREF(__pyx_t_1);
25022 __Pyx_GIVEREF(__pyx_t_1);
25023 __Pyx_GOTREF(__pyx_v_self->v_dirichlet->uOfXT);
25024 __Pyx_DECREF(__pyx_v_self->v_dirichlet->uOfXT);
25025 __pyx_v_self->v_dirichlet->uOfXT = __pyx_t_1;
25035 __pyx_t_1 = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_37setHydrostaticPressureOutletWithDepth_10get_inlet_ux_dirichlet(__pyx_v_get_inlet_ux_dirichlet, __pyx_int_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 896, __pyx_L1_error)
25036 __Pyx_GOTREF(__pyx_t_1);
25037 __Pyx_GIVEREF(__pyx_t_1);
25038 __Pyx_GOTREF(__pyx_v_self->w_dirichlet->uOfXT);
25039 __Pyx_DECREF(__pyx_v_self->w_dirichlet->uOfXT);
25040 __pyx_v_self->w_dirichlet->uOfXT = __pyx_t_1;
25050 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->u_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->u_diffusive, 0);
25068 __pyx_t_4 = (__pyx_cur_scope->__pyx_v_kInflow != Py_None);
25069 __pyx_t_5 = (__pyx_t_4 != 0);
25079 __Pyx_INCREF(__pyx_v_inlet_k_dirichlet);
25080 __Pyx_GIVEREF(__pyx_v_inlet_k_dirichlet);
25081 __Pyx_GOTREF(__pyx_v_self->k_dirichlet->uOfXT);
25082 __Pyx_DECREF(__pyx_v_self->k_dirichlet->uOfXT);
25083 __pyx_v_self->k_dirichlet->uOfXT = __pyx_v_inlet_k_dirichlet;
25092 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_advective->__pyx_vtab)->resetBC(__pyx_v_self->k_advective, 0);
25101 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->k_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->k_diffusive, 0);
25119 __pyx_t_5 = (__pyx_cur_scope->__pyx_v_dissipationInflow != Py_None);
25120 __pyx_t_4 = (__pyx_t_5 != 0);
25130 __Pyx_INCREF(__pyx_v_inlet_dissipation_dirichlet);
25131 __Pyx_GIVEREF(__pyx_v_inlet_dissipation_dirichlet);
25132 __Pyx_GOTREF(__pyx_v_self->dissipation_dirichlet->uOfXT);
25133 __Pyx_DECREF(__pyx_v_self->dissipation_dirichlet->uOfXT);
25134 __pyx_v_self->dissipation_dirichlet->uOfXT = __pyx_v_inlet_dissipation_dirichlet;
25143 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_advective->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_advective, 0);
25152 ((
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_v_self->dissipation_diffusive->__pyx_vtab)->resetBC(__pyx_v_self->dissipation_diffusive, 0);
25172 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25175 __Pyx_XDECREF(__pyx_t_1);
25176 __Pyx_XDECREF(__pyx_t_2);
25177 __Pyx_XDECREF(__pyx_t_3);
25178 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.setHydrostaticPressureOutletWithDepth", __pyx_clineno, __pyx_lineno, __pyx_filename);
25181 __Pyx_XDECREF(__pyx_v_hydrostaticPressureOutletWithDepth_p_dirichlet);
25182 __Pyx_XDECREF(__pyx_v_hydrostaticPressureOutletWithDepth_phi_dirichlet);
25183 __Pyx_XDECREF(__pyx_v_hydrostaticPressureOutletWithDepth_vof_dirichlet);
25184 __Pyx_XDECREF(__pyx_v_inlet_k_dirichlet);
25185 __Pyx_XDECREF(__pyx_v_inlet_dissipation_dirichlet);
25186 __Pyx_XDECREF(__pyx_v_b_or);
25187 __Pyx_XDECREF(__pyx_v_get_inlet_ux_dirichlet);
25188 __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
25189 __Pyx_XGIVEREF(__pyx_r);
25190 __Pyx_TraceReturn(__pyx_r, 0);
25191 __Pyx_RefNannyFinishContext();
25204 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_1__get__(PyObject *__pyx_v_self);
25205 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_1__get__(PyObject *__pyx_v_self) {
25206 PyObject *__pyx_r = 0;
25207 __Pyx_RefNannyDeclarations
25208 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25209 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25212 __Pyx_RefNannyFinishContext();
25216 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25217 PyObject *__pyx_r = NULL;
25218 __Pyx_TraceDeclarations
25219 __Pyx_RefNannyDeclarations
25220 int __pyx_lineno = 0;
25221 const char *__pyx_filename = NULL;
25222 int __pyx_clineno = 0;
25223 __Pyx_RefNannySetupContext(
"__get__", 0);
25224 __Pyx_TraceCall(
"__get__", __pyx_f[2], 27, 0, __PYX_ERR(2, 27, __pyx_L1_error));
25225 __Pyx_XDECREF(__pyx_r);
25226 __Pyx_INCREF(((PyObject *)__pyx_v_self->p_dirichlet));
25227 __pyx_r = ((PyObject *)__pyx_v_self->p_dirichlet);
25232 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25235 __Pyx_XGIVEREF(__pyx_r);
25236 __Pyx_TraceReturn(__pyx_r, 0);
25237 __Pyx_RefNannyFinishContext();
25242 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25243 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25245 __Pyx_RefNannyDeclarations
25246 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25247 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25250 __Pyx_RefNannyFinishContext();
25254 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25256 __Pyx_TraceDeclarations
25257 __Pyx_RefNannyDeclarations
25258 PyObject *__pyx_t_1 = NULL;
25259 int __pyx_lineno = 0;
25260 const char *__pyx_filename = NULL;
25261 int __pyx_clineno = 0;
25262 __Pyx_RefNannySetupContext(
"__set__", 0);
25263 __Pyx_TraceCall(
"__set__", __pyx_f[2], 27, 0, __PYX_ERR(2, 27, __pyx_L1_error));
25264 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 27, __pyx_L1_error)
25265 __pyx_t_1 = __pyx_v_value;
25266 __Pyx_INCREF(__pyx_t_1);
25267 __Pyx_GIVEREF(__pyx_t_1);
25268 __Pyx_GOTREF(__pyx_v_self->p_dirichlet);
25269 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_dirichlet));
25270 __pyx_v_self->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25277 __Pyx_XDECREF(__pyx_t_1);
25278 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25281 __Pyx_TraceReturn(Py_None, 0);
25282 __Pyx_RefNannyFinishContext();
25287 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_5__del__(PyObject *__pyx_v_self);
25288 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_5__del__(PyObject *__pyx_v_self) {
25290 __Pyx_RefNannyDeclarations
25291 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25292 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25295 __Pyx_RefNannyFinishContext();
25299 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25301 __Pyx_TraceDeclarations
25302 __Pyx_RefNannyDeclarations
25303 int __pyx_lineno = 0;
25304 const char *__pyx_filename = NULL;
25305 int __pyx_clineno = 0;
25306 __Pyx_RefNannySetupContext(
"__del__", 0);
25307 __Pyx_TraceCall(
"__del__", __pyx_f[2], 27, 0, __PYX_ERR(2, 27, __pyx_L1_error));
25308 __Pyx_INCREF(Py_None);
25309 __Pyx_GIVEREF(Py_None);
25310 __Pyx_GOTREF(__pyx_v_self->p_dirichlet);
25311 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_dirichlet));
25312 __pyx_v_self->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25318 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25321 __Pyx_TraceReturn(Py_None, 0);
25322 __Pyx_RefNannyFinishContext();
25335 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_1__get__(PyObject *__pyx_v_self);
25336 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_1__get__(PyObject *__pyx_v_self) {
25337 PyObject *__pyx_r = 0;
25338 __Pyx_RefNannyDeclarations
25339 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25340 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25343 __Pyx_RefNannyFinishContext();
25347 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25348 PyObject *__pyx_r = NULL;
25349 __Pyx_TraceDeclarations
25350 __Pyx_RefNannyDeclarations
25351 int __pyx_lineno = 0;
25352 const char *__pyx_filename = NULL;
25353 int __pyx_clineno = 0;
25354 __Pyx_RefNannySetupContext(
"__get__", 0);
25355 __Pyx_TraceCall(
"__get__", __pyx_f[2], 28, 0, __PYX_ERR(2, 28, __pyx_L1_error));
25356 __Pyx_XDECREF(__pyx_r);
25357 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_dirichlet));
25358 __pyx_r = ((PyObject *)__pyx_v_self->u_dirichlet);
25363 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25366 __Pyx_XGIVEREF(__pyx_r);
25367 __Pyx_TraceReturn(__pyx_r, 0);
25368 __Pyx_RefNannyFinishContext();
25373 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25374 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25376 __Pyx_RefNannyDeclarations
25377 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25378 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25381 __Pyx_RefNannyFinishContext();
25385 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25387 __Pyx_TraceDeclarations
25388 __Pyx_RefNannyDeclarations
25389 PyObject *__pyx_t_1 = NULL;
25390 int __pyx_lineno = 0;
25391 const char *__pyx_filename = NULL;
25392 int __pyx_clineno = 0;
25393 __Pyx_RefNannySetupContext(
"__set__", 0);
25394 __Pyx_TraceCall(
"__set__", __pyx_f[2], 28, 0, __PYX_ERR(2, 28, __pyx_L1_error));
25395 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 28, __pyx_L1_error)
25396 __pyx_t_1 = __pyx_v_value;
25397 __Pyx_INCREF(__pyx_t_1);
25398 __Pyx_GIVEREF(__pyx_t_1);
25399 __Pyx_GOTREF(__pyx_v_self->u_dirichlet);
25400 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_dirichlet));
25401 __pyx_v_self->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25408 __Pyx_XDECREF(__pyx_t_1);
25409 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25412 __Pyx_TraceReturn(Py_None, 0);
25413 __Pyx_RefNannyFinishContext();
25418 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_5__del__(PyObject *__pyx_v_self);
25419 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_5__del__(PyObject *__pyx_v_self) {
25421 __Pyx_RefNannyDeclarations
25422 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25423 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25426 __Pyx_RefNannyFinishContext();
25430 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25432 __Pyx_TraceDeclarations
25433 __Pyx_RefNannyDeclarations
25434 int __pyx_lineno = 0;
25435 const char *__pyx_filename = NULL;
25436 int __pyx_clineno = 0;
25437 __Pyx_RefNannySetupContext(
"__del__", 0);
25438 __Pyx_TraceCall(
"__del__", __pyx_f[2], 28, 0, __PYX_ERR(2, 28, __pyx_L1_error));
25439 __Pyx_INCREF(Py_None);
25440 __Pyx_GIVEREF(Py_None);
25441 __Pyx_GOTREF(__pyx_v_self->u_dirichlet);
25442 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_dirichlet));
25443 __pyx_v_self->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25449 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25452 __Pyx_TraceReturn(Py_None, 0);
25453 __Pyx_RefNannyFinishContext();
25466 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_1__get__(PyObject *__pyx_v_self);
25467 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_1__get__(PyObject *__pyx_v_self) {
25468 PyObject *__pyx_r = 0;
25469 __Pyx_RefNannyDeclarations
25470 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25471 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25474 __Pyx_RefNannyFinishContext();
25478 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25479 PyObject *__pyx_r = NULL;
25480 __Pyx_TraceDeclarations
25481 __Pyx_RefNannyDeclarations
25482 int __pyx_lineno = 0;
25483 const char *__pyx_filename = NULL;
25484 int __pyx_clineno = 0;
25485 __Pyx_RefNannySetupContext(
"__get__", 0);
25486 __Pyx_TraceCall(
"__get__", __pyx_f[2], 29, 0, __PYX_ERR(2, 29, __pyx_L1_error));
25487 __Pyx_XDECREF(__pyx_r);
25488 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_dirichlet));
25489 __pyx_r = ((PyObject *)__pyx_v_self->v_dirichlet);
25494 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25497 __Pyx_XGIVEREF(__pyx_r);
25498 __Pyx_TraceReturn(__pyx_r, 0);
25499 __Pyx_RefNannyFinishContext();
25504 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25505 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25507 __Pyx_RefNannyDeclarations
25508 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25509 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25512 __Pyx_RefNannyFinishContext();
25516 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25518 __Pyx_TraceDeclarations
25519 __Pyx_RefNannyDeclarations
25520 PyObject *__pyx_t_1 = NULL;
25521 int __pyx_lineno = 0;
25522 const char *__pyx_filename = NULL;
25523 int __pyx_clineno = 0;
25524 __Pyx_RefNannySetupContext(
"__set__", 0);
25525 __Pyx_TraceCall(
"__set__", __pyx_f[2], 29, 0, __PYX_ERR(2, 29, __pyx_L1_error));
25526 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 29, __pyx_L1_error)
25527 __pyx_t_1 = __pyx_v_value;
25528 __Pyx_INCREF(__pyx_t_1);
25529 __Pyx_GIVEREF(__pyx_t_1);
25530 __Pyx_GOTREF(__pyx_v_self->v_dirichlet);
25531 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_dirichlet));
25532 __pyx_v_self->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25539 __Pyx_XDECREF(__pyx_t_1);
25540 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25543 __Pyx_TraceReturn(Py_None, 0);
25544 __Pyx_RefNannyFinishContext();
25549 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_5__del__(PyObject *__pyx_v_self);
25550 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_5__del__(PyObject *__pyx_v_self) {
25552 __Pyx_RefNannyDeclarations
25553 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25554 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25557 __Pyx_RefNannyFinishContext();
25561 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25563 __Pyx_TraceDeclarations
25564 __Pyx_RefNannyDeclarations
25565 int __pyx_lineno = 0;
25566 const char *__pyx_filename = NULL;
25567 int __pyx_clineno = 0;
25568 __Pyx_RefNannySetupContext(
"__del__", 0);
25569 __Pyx_TraceCall(
"__del__", __pyx_f[2], 29, 0, __PYX_ERR(2, 29, __pyx_L1_error));
25570 __Pyx_INCREF(Py_None);
25571 __Pyx_GIVEREF(Py_None);
25572 __Pyx_GOTREF(__pyx_v_self->v_dirichlet);
25573 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_dirichlet));
25574 __pyx_v_self->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25580 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25583 __Pyx_TraceReturn(Py_None, 0);
25584 __Pyx_RefNannyFinishContext();
25597 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_1__get__(PyObject *__pyx_v_self);
25598 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_1__get__(PyObject *__pyx_v_self) {
25599 PyObject *__pyx_r = 0;
25600 __Pyx_RefNannyDeclarations
25601 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25602 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25605 __Pyx_RefNannyFinishContext();
25609 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25610 PyObject *__pyx_r = NULL;
25611 __Pyx_TraceDeclarations
25612 __Pyx_RefNannyDeclarations
25613 int __pyx_lineno = 0;
25614 const char *__pyx_filename = NULL;
25615 int __pyx_clineno = 0;
25616 __Pyx_RefNannySetupContext(
"__get__", 0);
25617 __Pyx_TraceCall(
"__get__", __pyx_f[2], 30, 0, __PYX_ERR(2, 30, __pyx_L1_error));
25618 __Pyx_XDECREF(__pyx_r);
25619 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_dirichlet));
25620 __pyx_r = ((PyObject *)__pyx_v_self->w_dirichlet);
25625 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25628 __Pyx_XGIVEREF(__pyx_r);
25629 __Pyx_TraceReturn(__pyx_r, 0);
25630 __Pyx_RefNannyFinishContext();
25635 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25636 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25638 __Pyx_RefNannyDeclarations
25639 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25640 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25643 __Pyx_RefNannyFinishContext();
25647 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25649 __Pyx_TraceDeclarations
25650 __Pyx_RefNannyDeclarations
25651 PyObject *__pyx_t_1 = NULL;
25652 int __pyx_lineno = 0;
25653 const char *__pyx_filename = NULL;
25654 int __pyx_clineno = 0;
25655 __Pyx_RefNannySetupContext(
"__set__", 0);
25656 __Pyx_TraceCall(
"__set__", __pyx_f[2], 30, 0, __PYX_ERR(2, 30, __pyx_L1_error));
25657 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 30, __pyx_L1_error)
25658 __pyx_t_1 = __pyx_v_value;
25659 __Pyx_INCREF(__pyx_t_1);
25660 __Pyx_GIVEREF(__pyx_t_1);
25661 __Pyx_GOTREF(__pyx_v_self->w_dirichlet);
25662 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_dirichlet));
25663 __pyx_v_self->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25670 __Pyx_XDECREF(__pyx_t_1);
25671 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25674 __Pyx_TraceReturn(Py_None, 0);
25675 __Pyx_RefNannyFinishContext();
25680 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_5__del__(PyObject *__pyx_v_self);
25681 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_5__del__(PyObject *__pyx_v_self) {
25683 __Pyx_RefNannyDeclarations
25684 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25685 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25688 __Pyx_RefNannyFinishContext();
25692 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25694 __Pyx_TraceDeclarations
25695 __Pyx_RefNannyDeclarations
25696 int __pyx_lineno = 0;
25697 const char *__pyx_filename = NULL;
25698 int __pyx_clineno = 0;
25699 __Pyx_RefNannySetupContext(
"__del__", 0);
25700 __Pyx_TraceCall(
"__del__", __pyx_f[2], 30, 0, __PYX_ERR(2, 30, __pyx_L1_error));
25701 __Pyx_INCREF(Py_None);
25702 __Pyx_GIVEREF(Py_None);
25703 __Pyx_GOTREF(__pyx_v_self->w_dirichlet);
25704 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_dirichlet));
25705 __pyx_v_self->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25711 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25714 __Pyx_TraceReturn(Py_None, 0);
25715 __Pyx_RefNannyFinishContext();
25728 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_1__get__(PyObject *__pyx_v_self);
25729 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_1__get__(PyObject *__pyx_v_self) {
25730 PyObject *__pyx_r = 0;
25731 __Pyx_RefNannyDeclarations
25732 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25733 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25736 __Pyx_RefNannyFinishContext();
25740 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25741 PyObject *__pyx_r = NULL;
25742 __Pyx_TraceDeclarations
25743 __Pyx_RefNannyDeclarations
25744 int __pyx_lineno = 0;
25745 const char *__pyx_filename = NULL;
25746 int __pyx_clineno = 0;
25747 __Pyx_RefNannySetupContext(
"__get__", 0);
25748 __Pyx_TraceCall(
"__get__", __pyx_f[2], 31, 0, __PYX_ERR(2, 31, __pyx_L1_error));
25749 __Pyx_XDECREF(__pyx_r);
25750 __Pyx_INCREF(((PyObject *)__pyx_v_self->phi_dirichlet));
25751 __pyx_r = ((PyObject *)__pyx_v_self->phi_dirichlet);
25756 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.phi_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25759 __Pyx_XGIVEREF(__pyx_r);
25760 __Pyx_TraceReturn(__pyx_r, 0);
25761 __Pyx_RefNannyFinishContext();
25766 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25767 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25769 __Pyx_RefNannyDeclarations
25770 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25771 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25774 __Pyx_RefNannyFinishContext();
25778 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25780 __Pyx_TraceDeclarations
25781 __Pyx_RefNannyDeclarations
25782 PyObject *__pyx_t_1 = NULL;
25783 int __pyx_lineno = 0;
25784 const char *__pyx_filename = NULL;
25785 int __pyx_clineno = 0;
25786 __Pyx_RefNannySetupContext(
"__set__", 0);
25787 __Pyx_TraceCall(
"__set__", __pyx_f[2], 31, 0, __PYX_ERR(2, 31, __pyx_L1_error));
25788 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 31, __pyx_L1_error)
25789 __pyx_t_1 = __pyx_v_value;
25790 __Pyx_INCREF(__pyx_t_1);
25791 __Pyx_GIVEREF(__pyx_t_1);
25792 __Pyx_GOTREF(__pyx_v_self->phi_dirichlet);
25793 __Pyx_DECREF(((PyObject *)__pyx_v_self->phi_dirichlet));
25794 __pyx_v_self->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25801 __Pyx_XDECREF(__pyx_t_1);
25802 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.phi_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25805 __Pyx_TraceReturn(Py_None, 0);
25806 __Pyx_RefNannyFinishContext();
25811 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_5__del__(PyObject *__pyx_v_self);
25812 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_5__del__(PyObject *__pyx_v_self) {
25814 __Pyx_RefNannyDeclarations
25815 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25816 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25819 __Pyx_RefNannyFinishContext();
25823 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25825 __Pyx_TraceDeclarations
25826 __Pyx_RefNannyDeclarations
25827 int __pyx_lineno = 0;
25828 const char *__pyx_filename = NULL;
25829 int __pyx_clineno = 0;
25830 __Pyx_RefNannySetupContext(
"__del__", 0);
25831 __Pyx_TraceCall(
"__del__", __pyx_f[2], 31, 0, __PYX_ERR(2, 31, __pyx_L1_error));
25832 __Pyx_INCREF(Py_None);
25833 __Pyx_GIVEREF(Py_None);
25834 __Pyx_GOTREF(__pyx_v_self->phi_dirichlet);
25835 __Pyx_DECREF(((PyObject *)__pyx_v_self->phi_dirichlet));
25836 __pyx_v_self->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25842 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.phi_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25845 __Pyx_TraceReturn(Py_None, 0);
25846 __Pyx_RefNannyFinishContext();
25859 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_1__get__(PyObject *__pyx_v_self);
25860 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_1__get__(PyObject *__pyx_v_self) {
25861 PyObject *__pyx_r = 0;
25862 __Pyx_RefNannyDeclarations
25863 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25864 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25867 __Pyx_RefNannyFinishContext();
25871 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25872 PyObject *__pyx_r = NULL;
25873 __Pyx_TraceDeclarations
25874 __Pyx_RefNannyDeclarations
25875 int __pyx_lineno = 0;
25876 const char *__pyx_filename = NULL;
25877 int __pyx_clineno = 0;
25878 __Pyx_RefNannySetupContext(
"__get__", 0);
25879 __Pyx_TraceCall(
"__get__", __pyx_f[2], 32, 0, __PYX_ERR(2, 32, __pyx_L1_error));
25880 __Pyx_XDECREF(__pyx_r);
25881 __Pyx_INCREF(((PyObject *)__pyx_v_self->vof_dirichlet));
25882 __pyx_r = ((PyObject *)__pyx_v_self->vof_dirichlet);
25887 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25890 __Pyx_XGIVEREF(__pyx_r);
25891 __Pyx_TraceReturn(__pyx_r, 0);
25892 __Pyx_RefNannyFinishContext();
25897 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
25898 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
25900 __Pyx_RefNannyDeclarations
25901 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
25902 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
25905 __Pyx_RefNannyFinishContext();
25909 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
25911 __Pyx_TraceDeclarations
25912 __Pyx_RefNannyDeclarations
25913 PyObject *__pyx_t_1 = NULL;
25914 int __pyx_lineno = 0;
25915 const char *__pyx_filename = NULL;
25916 int __pyx_clineno = 0;
25917 __Pyx_RefNannySetupContext(
"__set__", 0);
25918 __Pyx_TraceCall(
"__set__", __pyx_f[2], 32, 0, __PYX_ERR(2, 32, __pyx_L1_error));
25919 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 32, __pyx_L1_error)
25920 __pyx_t_1 = __pyx_v_value;
25921 __Pyx_INCREF(__pyx_t_1);
25922 __Pyx_GIVEREF(__pyx_t_1);
25923 __Pyx_GOTREF(__pyx_v_self->vof_dirichlet);
25924 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_dirichlet));
25925 __pyx_v_self->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
25932 __Pyx_XDECREF(__pyx_t_1);
25933 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25936 __Pyx_TraceReturn(Py_None, 0);
25937 __Pyx_RefNannyFinishContext();
25942 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_5__del__(PyObject *__pyx_v_self);
25943 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_5__del__(PyObject *__pyx_v_self) {
25945 __Pyx_RefNannyDeclarations
25946 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
25947 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25950 __Pyx_RefNannyFinishContext();
25954 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
25956 __Pyx_TraceDeclarations
25957 __Pyx_RefNannyDeclarations
25958 int __pyx_lineno = 0;
25959 const char *__pyx_filename = NULL;
25960 int __pyx_clineno = 0;
25961 __Pyx_RefNannySetupContext(
"__del__", 0);
25962 __Pyx_TraceCall(
"__del__", __pyx_f[2], 32, 0, __PYX_ERR(2, 32, __pyx_L1_error));
25963 __Pyx_INCREF(Py_None);
25964 __Pyx_GIVEREF(Py_None);
25965 __Pyx_GOTREF(__pyx_v_self->vof_dirichlet);
25966 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_dirichlet));
25967 __pyx_v_self->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
25973 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25976 __Pyx_TraceReturn(Py_None, 0);
25977 __Pyx_RefNannyFinishContext();
25990 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_1__get__(PyObject *__pyx_v_self);
25991 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_1__get__(PyObject *__pyx_v_self) {
25992 PyObject *__pyx_r = 0;
25993 __Pyx_RefNannyDeclarations
25994 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25995 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
25998 __Pyx_RefNannyFinishContext();
26002 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26003 PyObject *__pyx_r = NULL;
26004 __Pyx_TraceDeclarations
26005 __Pyx_RefNannyDeclarations
26006 int __pyx_lineno = 0;
26007 const char *__pyx_filename = NULL;
26008 int __pyx_clineno = 0;
26009 __Pyx_RefNannySetupContext(
"__get__", 0);
26010 __Pyx_TraceCall(
"__get__", __pyx_f[2], 33, 0, __PYX_ERR(2, 33, __pyx_L1_error));
26011 __Pyx_XDECREF(__pyx_r);
26012 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_dirichlet));
26013 __pyx_r = ((PyObject *)__pyx_v_self->k_dirichlet);
26018 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26021 __Pyx_XGIVEREF(__pyx_r);
26022 __Pyx_TraceReturn(__pyx_r, 0);
26023 __Pyx_RefNannyFinishContext();
26028 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26029 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26031 __Pyx_RefNannyDeclarations
26032 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26033 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26036 __Pyx_RefNannyFinishContext();
26040 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26042 __Pyx_TraceDeclarations
26043 __Pyx_RefNannyDeclarations
26044 PyObject *__pyx_t_1 = NULL;
26045 int __pyx_lineno = 0;
26046 const char *__pyx_filename = NULL;
26047 int __pyx_clineno = 0;
26048 __Pyx_RefNannySetupContext(
"__set__", 0);
26049 __Pyx_TraceCall(
"__set__", __pyx_f[2], 33, 0, __PYX_ERR(2, 33, __pyx_L1_error));
26050 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 33, __pyx_L1_error)
26051 __pyx_t_1 = __pyx_v_value;
26052 __Pyx_INCREF(__pyx_t_1);
26053 __Pyx_GIVEREF(__pyx_t_1);
26054 __Pyx_GOTREF(__pyx_v_self->k_dirichlet);
26055 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_dirichlet));
26056 __pyx_v_self->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26063 __Pyx_XDECREF(__pyx_t_1);
26064 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26067 __Pyx_TraceReturn(Py_None, 0);
26068 __Pyx_RefNannyFinishContext();
26073 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_5__del__(PyObject *__pyx_v_self);
26074 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_5__del__(PyObject *__pyx_v_self) {
26076 __Pyx_RefNannyDeclarations
26077 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26078 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26081 __Pyx_RefNannyFinishContext();
26085 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26087 __Pyx_TraceDeclarations
26088 __Pyx_RefNannyDeclarations
26089 int __pyx_lineno = 0;
26090 const char *__pyx_filename = NULL;
26091 int __pyx_clineno = 0;
26092 __Pyx_RefNannySetupContext(
"__del__", 0);
26093 __Pyx_TraceCall(
"__del__", __pyx_f[2], 33, 0, __PYX_ERR(2, 33, __pyx_L1_error));
26094 __Pyx_INCREF(Py_None);
26095 __Pyx_GIVEREF(Py_None);
26096 __Pyx_GOTREF(__pyx_v_self->k_dirichlet);
26097 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_dirichlet));
26098 __pyx_v_self->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26104 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26107 __Pyx_TraceReturn(Py_None, 0);
26108 __Pyx_RefNannyFinishContext();
26121 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_1__get__(PyObject *__pyx_v_self);
26122 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_1__get__(PyObject *__pyx_v_self) {
26123 PyObject *__pyx_r = 0;
26124 __Pyx_RefNannyDeclarations
26125 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26126 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26129 __Pyx_RefNannyFinishContext();
26133 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26134 PyObject *__pyx_r = NULL;
26135 __Pyx_TraceDeclarations
26136 __Pyx_RefNannyDeclarations
26137 int __pyx_lineno = 0;
26138 const char *__pyx_filename = NULL;
26139 int __pyx_clineno = 0;
26140 __Pyx_RefNannySetupContext(
"__get__", 0);
26141 __Pyx_TraceCall(
"__get__", __pyx_f[2], 34, 0, __PYX_ERR(2, 34, __pyx_L1_error));
26142 __Pyx_XDECREF(__pyx_r);
26143 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
26144 __pyx_r = ((PyObject *)__pyx_v_self->dissipation_dirichlet);
26149 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26152 __Pyx_XGIVEREF(__pyx_r);
26153 __Pyx_TraceReturn(__pyx_r, 0);
26154 __Pyx_RefNannyFinishContext();
26159 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26160 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26162 __Pyx_RefNannyDeclarations
26163 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26164 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26167 __Pyx_RefNannyFinishContext();
26171 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26173 __Pyx_TraceDeclarations
26174 __Pyx_RefNannyDeclarations
26175 PyObject *__pyx_t_1 = NULL;
26176 int __pyx_lineno = 0;
26177 const char *__pyx_filename = NULL;
26178 int __pyx_clineno = 0;
26179 __Pyx_RefNannySetupContext(
"__set__", 0);
26180 __Pyx_TraceCall(
"__set__", __pyx_f[2], 34, 0, __PYX_ERR(2, 34, __pyx_L1_error));
26181 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 34, __pyx_L1_error)
26182 __pyx_t_1 = __pyx_v_value;
26183 __Pyx_INCREF(__pyx_t_1);
26184 __Pyx_GIVEREF(__pyx_t_1);
26185 __Pyx_GOTREF(__pyx_v_self->dissipation_dirichlet);
26186 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
26187 __pyx_v_self->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26194 __Pyx_XDECREF(__pyx_t_1);
26195 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26198 __Pyx_TraceReturn(Py_None, 0);
26199 __Pyx_RefNannyFinishContext();
26204 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_5__del__(PyObject *__pyx_v_self);
26205 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_5__del__(PyObject *__pyx_v_self) {
26207 __Pyx_RefNannyDeclarations
26208 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26209 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26212 __Pyx_RefNannyFinishContext();
26216 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26218 __Pyx_TraceDeclarations
26219 __Pyx_RefNannyDeclarations
26220 int __pyx_lineno = 0;
26221 const char *__pyx_filename = NULL;
26222 int __pyx_clineno = 0;
26223 __Pyx_RefNannySetupContext(
"__del__", 0);
26224 __Pyx_TraceCall(
"__del__", __pyx_f[2], 34, 0, __PYX_ERR(2, 34, __pyx_L1_error));
26225 __Pyx_INCREF(Py_None);
26226 __Pyx_GIVEREF(Py_None);
26227 __Pyx_GOTREF(__pyx_v_self->dissipation_dirichlet);
26228 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
26229 __pyx_v_self->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26235 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26238 __Pyx_TraceReturn(Py_None, 0);
26239 __Pyx_RefNannyFinishContext();
26252 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_1__get__(PyObject *__pyx_v_self);
26253 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_1__get__(PyObject *__pyx_v_self) {
26254 PyObject *__pyx_r = 0;
26255 __Pyx_RefNannyDeclarations
26256 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26257 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26260 __Pyx_RefNannyFinishContext();
26264 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26265 PyObject *__pyx_r = NULL;
26266 __Pyx_TraceDeclarations
26267 __Pyx_RefNannyDeclarations
26268 int __pyx_lineno = 0;
26269 const char *__pyx_filename = NULL;
26270 int __pyx_clineno = 0;
26271 __Pyx_RefNannySetupContext(
"__get__", 0);
26272 __Pyx_TraceCall(
"__get__", __pyx_f[2], 35, 0, __PYX_ERR(2, 35, __pyx_L1_error));
26273 __Pyx_XDECREF(__pyx_r);
26274 __Pyx_INCREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
26275 __pyx_r = ((PyObject *)__pyx_v_self->pAddedMass_dirichlet);
26280 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pAddedMass_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26283 __Pyx_XGIVEREF(__pyx_r);
26284 __Pyx_TraceReturn(__pyx_r, 0);
26285 __Pyx_RefNannyFinishContext();
26290 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26291 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26293 __Pyx_RefNannyDeclarations
26294 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26295 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26298 __Pyx_RefNannyFinishContext();
26302 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26304 __Pyx_TraceDeclarations
26305 __Pyx_RefNannyDeclarations
26306 PyObject *__pyx_t_1 = NULL;
26307 int __pyx_lineno = 0;
26308 const char *__pyx_filename = NULL;
26309 int __pyx_clineno = 0;
26310 __Pyx_RefNannySetupContext(
"__set__", 0);
26311 __Pyx_TraceCall(
"__set__", __pyx_f[2], 35, 0, __PYX_ERR(2, 35, __pyx_L1_error));
26312 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 35, __pyx_L1_error)
26313 __pyx_t_1 = __pyx_v_value;
26314 __Pyx_INCREF(__pyx_t_1);
26315 __Pyx_GIVEREF(__pyx_t_1);
26316 __Pyx_GOTREF(__pyx_v_self->pAddedMass_dirichlet);
26317 __Pyx_DECREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
26318 __pyx_v_self->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26325 __Pyx_XDECREF(__pyx_t_1);
26326 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pAddedMass_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26329 __Pyx_TraceReturn(Py_None, 0);
26330 __Pyx_RefNannyFinishContext();
26335 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_5__del__(PyObject *__pyx_v_self);
26336 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_5__del__(PyObject *__pyx_v_self) {
26338 __Pyx_RefNannyDeclarations
26339 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26340 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26343 __Pyx_RefNannyFinishContext();
26347 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26349 __Pyx_TraceDeclarations
26350 __Pyx_RefNannyDeclarations
26351 int __pyx_lineno = 0;
26352 const char *__pyx_filename = NULL;
26353 int __pyx_clineno = 0;
26354 __Pyx_RefNannySetupContext(
"__del__", 0);
26355 __Pyx_TraceCall(
"__del__", __pyx_f[2], 35, 0, __PYX_ERR(2, 35, __pyx_L1_error));
26356 __Pyx_INCREF(Py_None);
26357 __Pyx_GIVEREF(Py_None);
26358 __Pyx_GOTREF(__pyx_v_self->pAddedMass_dirichlet);
26359 __Pyx_DECREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
26360 __pyx_v_self->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26366 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pAddedMass_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26369 __Pyx_TraceReturn(Py_None, 0);
26370 __Pyx_RefNannyFinishContext();
26383 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_1__get__(PyObject *__pyx_v_self);
26384 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_1__get__(PyObject *__pyx_v_self) {
26385 PyObject *__pyx_r = 0;
26386 __Pyx_RefNannyDeclarations
26387 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26388 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26391 __Pyx_RefNannyFinishContext();
26395 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26396 PyObject *__pyx_r = NULL;
26397 __Pyx_TraceDeclarations
26398 __Pyx_RefNannyDeclarations
26399 int __pyx_lineno = 0;
26400 const char *__pyx_filename = NULL;
26401 int __pyx_clineno = 0;
26402 __Pyx_RefNannySetupContext(
"__get__", 0);
26403 __Pyx_TraceCall(
"__get__", __pyx_f[2], 37, 0, __PYX_ERR(2, 37, __pyx_L1_error));
26404 __Pyx_XDECREF(__pyx_r);
26405 __Pyx_INCREF(((PyObject *)__pyx_v_self->p_advective));
26406 __pyx_r = ((PyObject *)__pyx_v_self->p_advective);
26411 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26414 __Pyx_XGIVEREF(__pyx_r);
26415 __Pyx_TraceReturn(__pyx_r, 0);
26416 __Pyx_RefNannyFinishContext();
26421 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26422 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26424 __Pyx_RefNannyDeclarations
26425 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26426 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26429 __Pyx_RefNannyFinishContext();
26433 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26435 __Pyx_TraceDeclarations
26436 __Pyx_RefNannyDeclarations
26437 PyObject *__pyx_t_1 = NULL;
26438 int __pyx_lineno = 0;
26439 const char *__pyx_filename = NULL;
26440 int __pyx_clineno = 0;
26441 __Pyx_RefNannySetupContext(
"__set__", 0);
26442 __Pyx_TraceCall(
"__set__", __pyx_f[2], 37, 0, __PYX_ERR(2, 37, __pyx_L1_error));
26443 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 37, __pyx_L1_error)
26444 __pyx_t_1 = __pyx_v_value;
26445 __Pyx_INCREF(__pyx_t_1);
26446 __Pyx_GIVEREF(__pyx_t_1);
26447 __Pyx_GOTREF(__pyx_v_self->p_advective);
26448 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_advective));
26449 __pyx_v_self->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26456 __Pyx_XDECREF(__pyx_t_1);
26457 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26460 __Pyx_TraceReturn(Py_None, 0);
26461 __Pyx_RefNannyFinishContext();
26466 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_5__del__(PyObject *__pyx_v_self);
26467 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_5__del__(PyObject *__pyx_v_self) {
26469 __Pyx_RefNannyDeclarations
26470 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26471 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26474 __Pyx_RefNannyFinishContext();
26478 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26480 __Pyx_TraceDeclarations
26481 __Pyx_RefNannyDeclarations
26482 int __pyx_lineno = 0;
26483 const char *__pyx_filename = NULL;
26484 int __pyx_clineno = 0;
26485 __Pyx_RefNannySetupContext(
"__del__", 0);
26486 __Pyx_TraceCall(
"__del__", __pyx_f[2], 37, 0, __PYX_ERR(2, 37, __pyx_L1_error));
26487 __Pyx_INCREF(Py_None);
26488 __Pyx_GIVEREF(Py_None);
26489 __Pyx_GOTREF(__pyx_v_self->p_advective);
26490 __Pyx_DECREF(((PyObject *)__pyx_v_self->p_advective));
26491 __pyx_v_self->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26497 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.p_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26500 __Pyx_TraceReturn(Py_None, 0);
26501 __Pyx_RefNannyFinishContext();
26514 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_1__get__(PyObject *__pyx_v_self);
26515 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_1__get__(PyObject *__pyx_v_self) {
26516 PyObject *__pyx_r = 0;
26517 __Pyx_RefNannyDeclarations
26518 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26519 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26522 __Pyx_RefNannyFinishContext();
26526 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26527 PyObject *__pyx_r = NULL;
26528 __Pyx_TraceDeclarations
26529 __Pyx_RefNannyDeclarations
26530 int __pyx_lineno = 0;
26531 const char *__pyx_filename = NULL;
26532 int __pyx_clineno = 0;
26533 __Pyx_RefNannySetupContext(
"__get__", 0);
26534 __Pyx_TraceCall(
"__get__", __pyx_f[2], 38, 0, __PYX_ERR(2, 38, __pyx_L1_error));
26535 __Pyx_XDECREF(__pyx_r);
26536 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_advective));
26537 __pyx_r = ((PyObject *)__pyx_v_self->u_advective);
26542 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26545 __Pyx_XGIVEREF(__pyx_r);
26546 __Pyx_TraceReturn(__pyx_r, 0);
26547 __Pyx_RefNannyFinishContext();
26552 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26553 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26555 __Pyx_RefNannyDeclarations
26556 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26557 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26560 __Pyx_RefNannyFinishContext();
26564 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26566 __Pyx_TraceDeclarations
26567 __Pyx_RefNannyDeclarations
26568 PyObject *__pyx_t_1 = NULL;
26569 int __pyx_lineno = 0;
26570 const char *__pyx_filename = NULL;
26571 int __pyx_clineno = 0;
26572 __Pyx_RefNannySetupContext(
"__set__", 0);
26573 __Pyx_TraceCall(
"__set__", __pyx_f[2], 38, 0, __PYX_ERR(2, 38, __pyx_L1_error));
26574 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 38, __pyx_L1_error)
26575 __pyx_t_1 = __pyx_v_value;
26576 __Pyx_INCREF(__pyx_t_1);
26577 __Pyx_GIVEREF(__pyx_t_1);
26578 __Pyx_GOTREF(__pyx_v_self->u_advective);
26579 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_advective));
26580 __pyx_v_self->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26587 __Pyx_XDECREF(__pyx_t_1);
26588 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26591 __Pyx_TraceReturn(Py_None, 0);
26592 __Pyx_RefNannyFinishContext();
26597 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_5__del__(PyObject *__pyx_v_self);
26598 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_5__del__(PyObject *__pyx_v_self) {
26600 __Pyx_RefNannyDeclarations
26601 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26602 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26605 __Pyx_RefNannyFinishContext();
26609 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26611 __Pyx_TraceDeclarations
26612 __Pyx_RefNannyDeclarations
26613 int __pyx_lineno = 0;
26614 const char *__pyx_filename = NULL;
26615 int __pyx_clineno = 0;
26616 __Pyx_RefNannySetupContext(
"__del__", 0);
26617 __Pyx_TraceCall(
"__del__", __pyx_f[2], 38, 0, __PYX_ERR(2, 38, __pyx_L1_error));
26618 __Pyx_INCREF(Py_None);
26619 __Pyx_GIVEREF(Py_None);
26620 __Pyx_GOTREF(__pyx_v_self->u_advective);
26621 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_advective));
26622 __pyx_v_self->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26628 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26631 __Pyx_TraceReturn(Py_None, 0);
26632 __Pyx_RefNannyFinishContext();
26645 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_1__get__(PyObject *__pyx_v_self);
26646 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_1__get__(PyObject *__pyx_v_self) {
26647 PyObject *__pyx_r = 0;
26648 __Pyx_RefNannyDeclarations
26649 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26650 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26653 __Pyx_RefNannyFinishContext();
26657 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26658 PyObject *__pyx_r = NULL;
26659 __Pyx_TraceDeclarations
26660 __Pyx_RefNannyDeclarations
26661 int __pyx_lineno = 0;
26662 const char *__pyx_filename = NULL;
26663 int __pyx_clineno = 0;
26664 __Pyx_RefNannySetupContext(
"__get__", 0);
26665 __Pyx_TraceCall(
"__get__", __pyx_f[2], 39, 0, __PYX_ERR(2, 39, __pyx_L1_error));
26666 __Pyx_XDECREF(__pyx_r);
26667 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_advective));
26668 __pyx_r = ((PyObject *)__pyx_v_self->v_advective);
26673 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26676 __Pyx_XGIVEREF(__pyx_r);
26677 __Pyx_TraceReturn(__pyx_r, 0);
26678 __Pyx_RefNannyFinishContext();
26683 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26684 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26686 __Pyx_RefNannyDeclarations
26687 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26688 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26691 __Pyx_RefNannyFinishContext();
26695 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26697 __Pyx_TraceDeclarations
26698 __Pyx_RefNannyDeclarations
26699 PyObject *__pyx_t_1 = NULL;
26700 int __pyx_lineno = 0;
26701 const char *__pyx_filename = NULL;
26702 int __pyx_clineno = 0;
26703 __Pyx_RefNannySetupContext(
"__set__", 0);
26704 __Pyx_TraceCall(
"__set__", __pyx_f[2], 39, 0, __PYX_ERR(2, 39, __pyx_L1_error));
26705 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 39, __pyx_L1_error)
26706 __pyx_t_1 = __pyx_v_value;
26707 __Pyx_INCREF(__pyx_t_1);
26708 __Pyx_GIVEREF(__pyx_t_1);
26709 __Pyx_GOTREF(__pyx_v_self->v_advective);
26710 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_advective));
26711 __pyx_v_self->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26718 __Pyx_XDECREF(__pyx_t_1);
26719 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26722 __Pyx_TraceReturn(Py_None, 0);
26723 __Pyx_RefNannyFinishContext();
26728 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_5__del__(PyObject *__pyx_v_self);
26729 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_5__del__(PyObject *__pyx_v_self) {
26731 __Pyx_RefNannyDeclarations
26732 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26733 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26736 __Pyx_RefNannyFinishContext();
26740 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26742 __Pyx_TraceDeclarations
26743 __Pyx_RefNannyDeclarations
26744 int __pyx_lineno = 0;
26745 const char *__pyx_filename = NULL;
26746 int __pyx_clineno = 0;
26747 __Pyx_RefNannySetupContext(
"__del__", 0);
26748 __Pyx_TraceCall(
"__del__", __pyx_f[2], 39, 0, __PYX_ERR(2, 39, __pyx_L1_error));
26749 __Pyx_INCREF(Py_None);
26750 __Pyx_GIVEREF(Py_None);
26751 __Pyx_GOTREF(__pyx_v_self->v_advective);
26752 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_advective));
26753 __pyx_v_self->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26759 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26762 __Pyx_TraceReturn(Py_None, 0);
26763 __Pyx_RefNannyFinishContext();
26776 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_1__get__(PyObject *__pyx_v_self);
26777 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_1__get__(PyObject *__pyx_v_self) {
26778 PyObject *__pyx_r = 0;
26779 __Pyx_RefNannyDeclarations
26780 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26781 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26784 __Pyx_RefNannyFinishContext();
26788 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26789 PyObject *__pyx_r = NULL;
26790 __Pyx_TraceDeclarations
26791 __Pyx_RefNannyDeclarations
26792 int __pyx_lineno = 0;
26793 const char *__pyx_filename = NULL;
26794 int __pyx_clineno = 0;
26795 __Pyx_RefNannySetupContext(
"__get__", 0);
26796 __Pyx_TraceCall(
"__get__", __pyx_f[2], 40, 0, __PYX_ERR(2, 40, __pyx_L1_error));
26797 __Pyx_XDECREF(__pyx_r);
26798 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_advective));
26799 __pyx_r = ((PyObject *)__pyx_v_self->w_advective);
26804 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26807 __Pyx_XGIVEREF(__pyx_r);
26808 __Pyx_TraceReturn(__pyx_r, 0);
26809 __Pyx_RefNannyFinishContext();
26814 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26815 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26817 __Pyx_RefNannyDeclarations
26818 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26819 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26822 __Pyx_RefNannyFinishContext();
26826 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26828 __Pyx_TraceDeclarations
26829 __Pyx_RefNannyDeclarations
26830 PyObject *__pyx_t_1 = NULL;
26831 int __pyx_lineno = 0;
26832 const char *__pyx_filename = NULL;
26833 int __pyx_clineno = 0;
26834 __Pyx_RefNannySetupContext(
"__set__", 0);
26835 __Pyx_TraceCall(
"__set__", __pyx_f[2], 40, 0, __PYX_ERR(2, 40, __pyx_L1_error));
26836 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 40, __pyx_L1_error)
26837 __pyx_t_1 = __pyx_v_value;
26838 __Pyx_INCREF(__pyx_t_1);
26839 __Pyx_GIVEREF(__pyx_t_1);
26840 __Pyx_GOTREF(__pyx_v_self->w_advective);
26841 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_advective));
26842 __pyx_v_self->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26849 __Pyx_XDECREF(__pyx_t_1);
26850 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26853 __Pyx_TraceReturn(Py_None, 0);
26854 __Pyx_RefNannyFinishContext();
26859 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_5__del__(PyObject *__pyx_v_self);
26860 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_5__del__(PyObject *__pyx_v_self) {
26862 __Pyx_RefNannyDeclarations
26863 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26864 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26867 __Pyx_RefNannyFinishContext();
26871 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26873 __Pyx_TraceDeclarations
26874 __Pyx_RefNannyDeclarations
26875 int __pyx_lineno = 0;
26876 const char *__pyx_filename = NULL;
26877 int __pyx_clineno = 0;
26878 __Pyx_RefNannySetupContext(
"__del__", 0);
26879 __Pyx_TraceCall(
"__del__", __pyx_f[2], 40, 0, __PYX_ERR(2, 40, __pyx_L1_error));
26880 __Pyx_INCREF(Py_None);
26881 __Pyx_GIVEREF(Py_None);
26882 __Pyx_GOTREF(__pyx_v_self->w_advective);
26883 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_advective));
26884 __pyx_v_self->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
26890 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26893 __Pyx_TraceReturn(Py_None, 0);
26894 __Pyx_RefNannyFinishContext();
26907 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_1__get__(PyObject *__pyx_v_self);
26908 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_1__get__(PyObject *__pyx_v_self) {
26909 PyObject *__pyx_r = 0;
26910 __Pyx_RefNannyDeclarations
26911 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26912 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26915 __Pyx_RefNannyFinishContext();
26919 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
26920 PyObject *__pyx_r = NULL;
26921 __Pyx_TraceDeclarations
26922 __Pyx_RefNannyDeclarations
26923 int __pyx_lineno = 0;
26924 const char *__pyx_filename = NULL;
26925 int __pyx_clineno = 0;
26926 __Pyx_RefNannySetupContext(
"__get__", 0);
26927 __Pyx_TraceCall(
"__get__", __pyx_f[2], 41, 0, __PYX_ERR(2, 41, __pyx_L1_error));
26928 __Pyx_XDECREF(__pyx_r);
26929 __Pyx_INCREF(((PyObject *)__pyx_v_self->vof_advective));
26930 __pyx_r = ((PyObject *)__pyx_v_self->vof_advective);
26935 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26938 __Pyx_XGIVEREF(__pyx_r);
26939 __Pyx_TraceReturn(__pyx_r, 0);
26940 __Pyx_RefNannyFinishContext();
26945 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
26946 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
26948 __Pyx_RefNannyDeclarations
26949 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
26950 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
26953 __Pyx_RefNannyFinishContext();
26957 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
26959 __Pyx_TraceDeclarations
26960 __Pyx_RefNannyDeclarations
26961 PyObject *__pyx_t_1 = NULL;
26962 int __pyx_lineno = 0;
26963 const char *__pyx_filename = NULL;
26964 int __pyx_clineno = 0;
26965 __Pyx_RefNannySetupContext(
"__set__", 0);
26966 __Pyx_TraceCall(
"__set__", __pyx_f[2], 41, 0, __PYX_ERR(2, 41, __pyx_L1_error));
26967 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 41, __pyx_L1_error)
26968 __pyx_t_1 = __pyx_v_value;
26969 __Pyx_INCREF(__pyx_t_1);
26970 __Pyx_GIVEREF(__pyx_t_1);
26971 __Pyx_GOTREF(__pyx_v_self->vof_advective);
26972 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_advective));
26973 __pyx_v_self->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
26980 __Pyx_XDECREF(__pyx_t_1);
26981 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26984 __Pyx_TraceReturn(Py_None, 0);
26985 __Pyx_RefNannyFinishContext();
26990 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_5__del__(PyObject *__pyx_v_self);
26991 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_5__del__(PyObject *__pyx_v_self) {
26993 __Pyx_RefNannyDeclarations
26994 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
26995 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
26998 __Pyx_RefNannyFinishContext();
27002 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27004 __Pyx_TraceDeclarations
27005 __Pyx_RefNannyDeclarations
27006 int __pyx_lineno = 0;
27007 const char *__pyx_filename = NULL;
27008 int __pyx_clineno = 0;
27009 __Pyx_RefNannySetupContext(
"__del__", 0);
27010 __Pyx_TraceCall(
"__del__", __pyx_f[2], 41, 0, __PYX_ERR(2, 41, __pyx_L1_error));
27011 __Pyx_INCREF(Py_None);
27012 __Pyx_GIVEREF(Py_None);
27013 __Pyx_GOTREF(__pyx_v_self->vof_advective);
27014 __Pyx_DECREF(((PyObject *)__pyx_v_self->vof_advective));
27015 __pyx_v_self->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27021 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vof_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27024 __Pyx_TraceReturn(Py_None, 0);
27025 __Pyx_RefNannyFinishContext();
27038 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_1__get__(PyObject *__pyx_v_self);
27039 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_1__get__(PyObject *__pyx_v_self) {
27040 PyObject *__pyx_r = 0;
27041 __Pyx_RefNannyDeclarations
27042 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27043 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27046 __Pyx_RefNannyFinishContext();
27050 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27051 PyObject *__pyx_r = NULL;
27052 __Pyx_TraceDeclarations
27053 __Pyx_RefNannyDeclarations
27054 int __pyx_lineno = 0;
27055 const char *__pyx_filename = NULL;
27056 int __pyx_clineno = 0;
27057 __Pyx_RefNannySetupContext(
"__get__", 0);
27058 __Pyx_TraceCall(
"__get__", __pyx_f[2], 42, 0, __PYX_ERR(2, 42, __pyx_L1_error));
27059 __Pyx_XDECREF(__pyx_r);
27060 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_advective));
27061 __pyx_r = ((PyObject *)__pyx_v_self->k_advective);
27066 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27069 __Pyx_XGIVEREF(__pyx_r);
27070 __Pyx_TraceReturn(__pyx_r, 0);
27071 __Pyx_RefNannyFinishContext();
27076 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27077 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27079 __Pyx_RefNannyDeclarations
27080 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27081 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27084 __Pyx_RefNannyFinishContext();
27088 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27090 __Pyx_TraceDeclarations
27091 __Pyx_RefNannyDeclarations
27092 PyObject *__pyx_t_1 = NULL;
27093 int __pyx_lineno = 0;
27094 const char *__pyx_filename = NULL;
27095 int __pyx_clineno = 0;
27096 __Pyx_RefNannySetupContext(
"__set__", 0);
27097 __Pyx_TraceCall(
"__set__", __pyx_f[2], 42, 0, __PYX_ERR(2, 42, __pyx_L1_error));
27098 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 42, __pyx_L1_error)
27099 __pyx_t_1 = __pyx_v_value;
27100 __Pyx_INCREF(__pyx_t_1);
27101 __Pyx_GIVEREF(__pyx_t_1);
27102 __Pyx_GOTREF(__pyx_v_self->k_advective);
27103 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_advective));
27104 __pyx_v_self->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27111 __Pyx_XDECREF(__pyx_t_1);
27112 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27115 __Pyx_TraceReturn(Py_None, 0);
27116 __Pyx_RefNannyFinishContext();
27121 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_5__del__(PyObject *__pyx_v_self);
27122 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_5__del__(PyObject *__pyx_v_self) {
27124 __Pyx_RefNannyDeclarations
27125 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27126 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27129 __Pyx_RefNannyFinishContext();
27133 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27135 __Pyx_TraceDeclarations
27136 __Pyx_RefNannyDeclarations
27137 int __pyx_lineno = 0;
27138 const char *__pyx_filename = NULL;
27139 int __pyx_clineno = 0;
27140 __Pyx_RefNannySetupContext(
"__del__", 0);
27141 __Pyx_TraceCall(
"__del__", __pyx_f[2], 42, 0, __PYX_ERR(2, 42, __pyx_L1_error));
27142 __Pyx_INCREF(Py_None);
27143 __Pyx_GIVEREF(Py_None);
27144 __Pyx_GOTREF(__pyx_v_self->k_advective);
27145 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_advective));
27146 __pyx_v_self->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27152 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27155 __Pyx_TraceReturn(Py_None, 0);
27156 __Pyx_RefNannyFinishContext();
27169 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_1__get__(PyObject *__pyx_v_self);
27170 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_1__get__(PyObject *__pyx_v_self) {
27171 PyObject *__pyx_r = 0;
27172 __Pyx_RefNannyDeclarations
27173 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27174 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27177 __Pyx_RefNannyFinishContext();
27181 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27182 PyObject *__pyx_r = NULL;
27183 __Pyx_TraceDeclarations
27184 __Pyx_RefNannyDeclarations
27185 int __pyx_lineno = 0;
27186 const char *__pyx_filename = NULL;
27187 int __pyx_clineno = 0;
27188 __Pyx_RefNannySetupContext(
"__get__", 0);
27189 __Pyx_TraceCall(
"__get__", __pyx_f[2], 43, 0, __PYX_ERR(2, 43, __pyx_L1_error));
27190 __Pyx_XDECREF(__pyx_r);
27191 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_advective));
27192 __pyx_r = ((PyObject *)__pyx_v_self->dissipation_advective);
27197 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27200 __Pyx_XGIVEREF(__pyx_r);
27201 __Pyx_TraceReturn(__pyx_r, 0);
27202 __Pyx_RefNannyFinishContext();
27207 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27208 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27210 __Pyx_RefNannyDeclarations
27211 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27212 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27215 __Pyx_RefNannyFinishContext();
27219 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27221 __Pyx_TraceDeclarations
27222 __Pyx_RefNannyDeclarations
27223 PyObject *__pyx_t_1 = NULL;
27224 int __pyx_lineno = 0;
27225 const char *__pyx_filename = NULL;
27226 int __pyx_clineno = 0;
27227 __Pyx_RefNannySetupContext(
"__set__", 0);
27228 __Pyx_TraceCall(
"__set__", __pyx_f[2], 43, 0, __PYX_ERR(2, 43, __pyx_L1_error));
27229 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 43, __pyx_L1_error)
27230 __pyx_t_1 = __pyx_v_value;
27231 __Pyx_INCREF(__pyx_t_1);
27232 __Pyx_GIVEREF(__pyx_t_1);
27233 __Pyx_GOTREF(__pyx_v_self->dissipation_advective);
27234 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_advective));
27235 __pyx_v_self->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27242 __Pyx_XDECREF(__pyx_t_1);
27243 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27246 __Pyx_TraceReturn(Py_None, 0);
27247 __Pyx_RefNannyFinishContext();
27252 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_5__del__(PyObject *__pyx_v_self);
27253 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_5__del__(PyObject *__pyx_v_self) {
27255 __Pyx_RefNannyDeclarations
27256 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27257 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27260 __Pyx_RefNannyFinishContext();
27264 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27266 __Pyx_TraceDeclarations
27267 __Pyx_RefNannyDeclarations
27268 int __pyx_lineno = 0;
27269 const char *__pyx_filename = NULL;
27270 int __pyx_clineno = 0;
27271 __Pyx_RefNannySetupContext(
"__del__", 0);
27272 __Pyx_TraceCall(
"__del__", __pyx_f[2], 43, 0, __PYX_ERR(2, 43, __pyx_L1_error));
27273 __Pyx_INCREF(Py_None);
27274 __Pyx_GIVEREF(Py_None);
27275 __Pyx_GOTREF(__pyx_v_self->dissipation_advective);
27276 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_advective));
27277 __pyx_v_self->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27283 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27286 __Pyx_TraceReturn(Py_None, 0);
27287 __Pyx_RefNannyFinishContext();
27300 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_1__get__(PyObject *__pyx_v_self);
27301 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_1__get__(PyObject *__pyx_v_self) {
27302 PyObject *__pyx_r = 0;
27303 __Pyx_RefNannyDeclarations
27304 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27305 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27308 __Pyx_RefNannyFinishContext();
27312 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27313 PyObject *__pyx_r = NULL;
27314 __Pyx_TraceDeclarations
27315 __Pyx_RefNannyDeclarations
27316 int __pyx_lineno = 0;
27317 const char *__pyx_filename = NULL;
27318 int __pyx_clineno = 0;
27319 __Pyx_RefNannySetupContext(
"__get__", 0);
27320 __Pyx_TraceCall(
"__get__", __pyx_f[2], 45, 0, __PYX_ERR(2, 45, __pyx_L1_error));
27321 __Pyx_XDECREF(__pyx_r);
27322 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_diffusive));
27323 __pyx_r = ((PyObject *)__pyx_v_self->u_diffusive);
27328 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27331 __Pyx_XGIVEREF(__pyx_r);
27332 __Pyx_TraceReturn(__pyx_r, 0);
27333 __Pyx_RefNannyFinishContext();
27338 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27339 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27341 __Pyx_RefNannyDeclarations
27342 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27343 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27346 __Pyx_RefNannyFinishContext();
27350 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27352 __Pyx_TraceDeclarations
27353 __Pyx_RefNannyDeclarations
27354 PyObject *__pyx_t_1 = NULL;
27355 int __pyx_lineno = 0;
27356 const char *__pyx_filename = NULL;
27357 int __pyx_clineno = 0;
27358 __Pyx_RefNannySetupContext(
"__set__", 0);
27359 __Pyx_TraceCall(
"__set__", __pyx_f[2], 45, 0, __PYX_ERR(2, 45, __pyx_L1_error));
27360 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 45, __pyx_L1_error)
27361 __pyx_t_1 = __pyx_v_value;
27362 __Pyx_INCREF(__pyx_t_1);
27363 __Pyx_GIVEREF(__pyx_t_1);
27364 __Pyx_GOTREF(__pyx_v_self->u_diffusive);
27365 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_diffusive));
27366 __pyx_v_self->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27373 __Pyx_XDECREF(__pyx_t_1);
27374 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27377 __Pyx_TraceReturn(Py_None, 0);
27378 __Pyx_RefNannyFinishContext();
27383 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_5__del__(PyObject *__pyx_v_self);
27384 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_5__del__(PyObject *__pyx_v_self) {
27386 __Pyx_RefNannyDeclarations
27387 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27388 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27391 __Pyx_RefNannyFinishContext();
27395 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27397 __Pyx_TraceDeclarations
27398 __Pyx_RefNannyDeclarations
27399 int __pyx_lineno = 0;
27400 const char *__pyx_filename = NULL;
27401 int __pyx_clineno = 0;
27402 __Pyx_RefNannySetupContext(
"__del__", 0);
27403 __Pyx_TraceCall(
"__del__", __pyx_f[2], 45, 0, __PYX_ERR(2, 45, __pyx_L1_error));
27404 __Pyx_INCREF(Py_None);
27405 __Pyx_GIVEREF(Py_None);
27406 __Pyx_GOTREF(__pyx_v_self->u_diffusive);
27407 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_diffusive));
27408 __pyx_v_self->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27414 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27417 __Pyx_TraceReturn(Py_None, 0);
27418 __Pyx_RefNannyFinishContext();
27431 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_1__get__(PyObject *__pyx_v_self);
27432 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_1__get__(PyObject *__pyx_v_self) {
27433 PyObject *__pyx_r = 0;
27434 __Pyx_RefNannyDeclarations
27435 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27436 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27439 __Pyx_RefNannyFinishContext();
27443 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27444 PyObject *__pyx_r = NULL;
27445 __Pyx_TraceDeclarations
27446 __Pyx_RefNannyDeclarations
27447 int __pyx_lineno = 0;
27448 const char *__pyx_filename = NULL;
27449 int __pyx_clineno = 0;
27450 __Pyx_RefNannySetupContext(
"__get__", 0);
27451 __Pyx_TraceCall(
"__get__", __pyx_f[2], 46, 0, __PYX_ERR(2, 46, __pyx_L1_error));
27452 __Pyx_XDECREF(__pyx_r);
27453 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_diffusive));
27454 __pyx_r = ((PyObject *)__pyx_v_self->v_diffusive);
27459 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27462 __Pyx_XGIVEREF(__pyx_r);
27463 __Pyx_TraceReturn(__pyx_r, 0);
27464 __Pyx_RefNannyFinishContext();
27469 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27470 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27472 __Pyx_RefNannyDeclarations
27473 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27474 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27477 __Pyx_RefNannyFinishContext();
27481 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27483 __Pyx_TraceDeclarations
27484 __Pyx_RefNannyDeclarations
27485 PyObject *__pyx_t_1 = NULL;
27486 int __pyx_lineno = 0;
27487 const char *__pyx_filename = NULL;
27488 int __pyx_clineno = 0;
27489 __Pyx_RefNannySetupContext(
"__set__", 0);
27490 __Pyx_TraceCall(
"__set__", __pyx_f[2], 46, 0, __PYX_ERR(2, 46, __pyx_L1_error));
27491 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 46, __pyx_L1_error)
27492 __pyx_t_1 = __pyx_v_value;
27493 __Pyx_INCREF(__pyx_t_1);
27494 __Pyx_GIVEREF(__pyx_t_1);
27495 __Pyx_GOTREF(__pyx_v_self->v_diffusive);
27496 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_diffusive));
27497 __pyx_v_self->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27504 __Pyx_XDECREF(__pyx_t_1);
27505 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27508 __Pyx_TraceReturn(Py_None, 0);
27509 __Pyx_RefNannyFinishContext();
27514 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_5__del__(PyObject *__pyx_v_self);
27515 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_5__del__(PyObject *__pyx_v_self) {
27517 __Pyx_RefNannyDeclarations
27518 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27519 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27522 __Pyx_RefNannyFinishContext();
27526 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27528 __Pyx_TraceDeclarations
27529 __Pyx_RefNannyDeclarations
27530 int __pyx_lineno = 0;
27531 const char *__pyx_filename = NULL;
27532 int __pyx_clineno = 0;
27533 __Pyx_RefNannySetupContext(
"__del__", 0);
27534 __Pyx_TraceCall(
"__del__", __pyx_f[2], 46, 0, __PYX_ERR(2, 46, __pyx_L1_error));
27535 __Pyx_INCREF(Py_None);
27536 __Pyx_GIVEREF(Py_None);
27537 __Pyx_GOTREF(__pyx_v_self->v_diffusive);
27538 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_diffusive));
27539 __pyx_v_self->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27545 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27548 __Pyx_TraceReturn(Py_None, 0);
27549 __Pyx_RefNannyFinishContext();
27562 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_1__get__(PyObject *__pyx_v_self);
27563 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_1__get__(PyObject *__pyx_v_self) {
27564 PyObject *__pyx_r = 0;
27565 __Pyx_RefNannyDeclarations
27566 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27567 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27570 __Pyx_RefNannyFinishContext();
27574 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27575 PyObject *__pyx_r = NULL;
27576 __Pyx_TraceDeclarations
27577 __Pyx_RefNannyDeclarations
27578 int __pyx_lineno = 0;
27579 const char *__pyx_filename = NULL;
27580 int __pyx_clineno = 0;
27581 __Pyx_RefNannySetupContext(
"__get__", 0);
27582 __Pyx_TraceCall(
"__get__", __pyx_f[2], 47, 0, __PYX_ERR(2, 47, __pyx_L1_error));
27583 __Pyx_XDECREF(__pyx_r);
27584 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_diffusive));
27585 __pyx_r = ((PyObject *)__pyx_v_self->w_diffusive);
27590 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27593 __Pyx_XGIVEREF(__pyx_r);
27594 __Pyx_TraceReturn(__pyx_r, 0);
27595 __Pyx_RefNannyFinishContext();
27600 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27601 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27603 __Pyx_RefNannyDeclarations
27604 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27605 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27608 __Pyx_RefNannyFinishContext();
27612 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27614 __Pyx_TraceDeclarations
27615 __Pyx_RefNannyDeclarations
27616 PyObject *__pyx_t_1 = NULL;
27617 int __pyx_lineno = 0;
27618 const char *__pyx_filename = NULL;
27619 int __pyx_clineno = 0;
27620 __Pyx_RefNannySetupContext(
"__set__", 0);
27621 __Pyx_TraceCall(
"__set__", __pyx_f[2], 47, 0, __PYX_ERR(2, 47, __pyx_L1_error));
27622 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 47, __pyx_L1_error)
27623 __pyx_t_1 = __pyx_v_value;
27624 __Pyx_INCREF(__pyx_t_1);
27625 __Pyx_GIVEREF(__pyx_t_1);
27626 __Pyx_GOTREF(__pyx_v_self->w_diffusive);
27627 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_diffusive));
27628 __pyx_v_self->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27635 __Pyx_XDECREF(__pyx_t_1);
27636 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27639 __Pyx_TraceReturn(Py_None, 0);
27640 __Pyx_RefNannyFinishContext();
27645 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_5__del__(PyObject *__pyx_v_self);
27646 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_5__del__(PyObject *__pyx_v_self) {
27648 __Pyx_RefNannyDeclarations
27649 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27650 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27653 __Pyx_RefNannyFinishContext();
27657 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27659 __Pyx_TraceDeclarations
27660 __Pyx_RefNannyDeclarations
27661 int __pyx_lineno = 0;
27662 const char *__pyx_filename = NULL;
27663 int __pyx_clineno = 0;
27664 __Pyx_RefNannySetupContext(
"__del__", 0);
27665 __Pyx_TraceCall(
"__del__", __pyx_f[2], 47, 0, __PYX_ERR(2, 47, __pyx_L1_error));
27666 __Pyx_INCREF(Py_None);
27667 __Pyx_GIVEREF(Py_None);
27668 __Pyx_GOTREF(__pyx_v_self->w_diffusive);
27669 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_diffusive));
27670 __pyx_v_self->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27676 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27679 __Pyx_TraceReturn(Py_None, 0);
27680 __Pyx_RefNannyFinishContext();
27693 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_1__get__(PyObject *__pyx_v_self);
27694 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_1__get__(PyObject *__pyx_v_self) {
27695 PyObject *__pyx_r = 0;
27696 __Pyx_RefNannyDeclarations
27697 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27698 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27701 __Pyx_RefNannyFinishContext();
27705 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27706 PyObject *__pyx_r = NULL;
27707 __Pyx_TraceDeclarations
27708 __Pyx_RefNannyDeclarations
27709 int __pyx_lineno = 0;
27710 const char *__pyx_filename = NULL;
27711 int __pyx_clineno = 0;
27712 __Pyx_RefNannySetupContext(
"__get__", 0);
27713 __Pyx_TraceCall(
"__get__", __pyx_f[2], 48, 0, __PYX_ERR(2, 48, __pyx_L1_error));
27714 __Pyx_XDECREF(__pyx_r);
27715 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_diffusive));
27716 __pyx_r = ((PyObject *)__pyx_v_self->k_diffusive);
27721 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27724 __Pyx_XGIVEREF(__pyx_r);
27725 __Pyx_TraceReturn(__pyx_r, 0);
27726 __Pyx_RefNannyFinishContext();
27731 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27732 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27734 __Pyx_RefNannyDeclarations
27735 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27736 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27739 __Pyx_RefNannyFinishContext();
27743 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27745 __Pyx_TraceDeclarations
27746 __Pyx_RefNannyDeclarations
27747 PyObject *__pyx_t_1 = NULL;
27748 int __pyx_lineno = 0;
27749 const char *__pyx_filename = NULL;
27750 int __pyx_clineno = 0;
27751 __Pyx_RefNannySetupContext(
"__set__", 0);
27752 __Pyx_TraceCall(
"__set__", __pyx_f[2], 48, 0, __PYX_ERR(2, 48, __pyx_L1_error));
27753 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 48, __pyx_L1_error)
27754 __pyx_t_1 = __pyx_v_value;
27755 __Pyx_INCREF(__pyx_t_1);
27756 __Pyx_GIVEREF(__pyx_t_1);
27757 __Pyx_GOTREF(__pyx_v_self->k_diffusive);
27758 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_diffusive));
27759 __pyx_v_self->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27766 __Pyx_XDECREF(__pyx_t_1);
27767 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27770 __Pyx_TraceReturn(Py_None, 0);
27771 __Pyx_RefNannyFinishContext();
27776 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_5__del__(PyObject *__pyx_v_self);
27777 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_5__del__(PyObject *__pyx_v_self) {
27779 __Pyx_RefNannyDeclarations
27780 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27781 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27784 __Pyx_RefNannyFinishContext();
27788 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27790 __Pyx_TraceDeclarations
27791 __Pyx_RefNannyDeclarations
27792 int __pyx_lineno = 0;
27793 const char *__pyx_filename = NULL;
27794 int __pyx_clineno = 0;
27795 __Pyx_RefNannySetupContext(
"__del__", 0);
27796 __Pyx_TraceCall(
"__del__", __pyx_f[2], 48, 0, __PYX_ERR(2, 48, __pyx_L1_error));
27797 __Pyx_INCREF(Py_None);
27798 __Pyx_GIVEREF(Py_None);
27799 __Pyx_GOTREF(__pyx_v_self->k_diffusive);
27800 __Pyx_DECREF(((PyObject *)__pyx_v_self->k_diffusive));
27801 __pyx_v_self->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27807 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.k_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27810 __Pyx_TraceReturn(Py_None, 0);
27811 __Pyx_RefNannyFinishContext();
27824 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_1__get__(PyObject *__pyx_v_self);
27825 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_1__get__(PyObject *__pyx_v_self) {
27826 PyObject *__pyx_r = 0;
27827 __Pyx_RefNannyDeclarations
27828 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27829 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27832 __Pyx_RefNannyFinishContext();
27836 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27837 PyObject *__pyx_r = NULL;
27838 __Pyx_TraceDeclarations
27839 __Pyx_RefNannyDeclarations
27840 int __pyx_lineno = 0;
27841 const char *__pyx_filename = NULL;
27842 int __pyx_clineno = 0;
27843 __Pyx_RefNannySetupContext(
"__get__", 0);
27844 __Pyx_TraceCall(
"__get__", __pyx_f[2], 49, 0, __PYX_ERR(2, 49, __pyx_L1_error));
27845 __Pyx_XDECREF(__pyx_r);
27846 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
27847 __pyx_r = ((PyObject *)__pyx_v_self->dissipation_diffusive);
27852 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27855 __Pyx_XGIVEREF(__pyx_r);
27856 __Pyx_TraceReturn(__pyx_r, 0);
27857 __Pyx_RefNannyFinishContext();
27862 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27863 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27865 __Pyx_RefNannyDeclarations
27866 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27867 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
27870 __Pyx_RefNannyFinishContext();
27874 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
27876 __Pyx_TraceDeclarations
27877 __Pyx_RefNannyDeclarations
27878 PyObject *__pyx_t_1 = NULL;
27879 int __pyx_lineno = 0;
27880 const char *__pyx_filename = NULL;
27881 int __pyx_clineno = 0;
27882 __Pyx_RefNannySetupContext(
"__set__", 0);
27883 __Pyx_TraceCall(
"__set__", __pyx_f[2], 49, 0, __PYX_ERR(2, 49, __pyx_L1_error));
27884 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 49, __pyx_L1_error)
27885 __pyx_t_1 = __pyx_v_value;
27886 __Pyx_INCREF(__pyx_t_1);
27887 __Pyx_GIVEREF(__pyx_t_1);
27888 __Pyx_GOTREF(__pyx_v_self->dissipation_diffusive);
27889 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
27890 __pyx_v_self->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
27897 __Pyx_XDECREF(__pyx_t_1);
27898 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27901 __Pyx_TraceReturn(Py_None, 0);
27902 __Pyx_RefNannyFinishContext();
27907 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_5__del__(PyObject *__pyx_v_self);
27908 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_5__del__(PyObject *__pyx_v_self) {
27910 __Pyx_RefNannyDeclarations
27911 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
27912 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27915 __Pyx_RefNannyFinishContext();
27919 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27921 __Pyx_TraceDeclarations
27922 __Pyx_RefNannyDeclarations
27923 int __pyx_lineno = 0;
27924 const char *__pyx_filename = NULL;
27925 int __pyx_clineno = 0;
27926 __Pyx_RefNannySetupContext(
"__del__", 0);
27927 __Pyx_TraceCall(
"__del__", __pyx_f[2], 49, 0, __PYX_ERR(2, 49, __pyx_L1_error));
27928 __Pyx_INCREF(Py_None);
27929 __Pyx_GIVEREF(Py_None);
27930 __Pyx_GOTREF(__pyx_v_self->dissipation_diffusive);
27931 __Pyx_DECREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
27932 __pyx_v_self->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
27938 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.dissipation_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27941 __Pyx_TraceReturn(Py_None, 0);
27942 __Pyx_RefNannyFinishContext();
27955 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_1__get__(PyObject *__pyx_v_self);
27956 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_1__get__(PyObject *__pyx_v_self) {
27957 PyObject *__pyx_r = 0;
27958 __Pyx_RefNannyDeclarations
27959 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
27960 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
27963 __Pyx_RefNannyFinishContext();
27967 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
27968 PyObject *__pyx_r = NULL;
27969 __Pyx_TraceDeclarations
27970 __Pyx_RefNannyDeclarations
27971 int __pyx_lineno = 0;
27972 const char *__pyx_filename = NULL;
27973 int __pyx_clineno = 0;
27974 __Pyx_RefNannySetupContext(
"__get__", 0);
27975 __Pyx_TraceCall(
"__get__", __pyx_f[2], 51, 0, __PYX_ERR(2, 51, __pyx_L1_error));
27976 __Pyx_XDECREF(__pyx_r);
27977 __Pyx_INCREF(((PyObject *)__pyx_v_self->hx_dirichlet));
27978 __pyx_r = ((PyObject *)__pyx_v_self->hx_dirichlet);
27983 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hx_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27986 __Pyx_XGIVEREF(__pyx_r);
27987 __Pyx_TraceReturn(__pyx_r, 0);
27988 __Pyx_RefNannyFinishContext();
27993 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
27994 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
27996 __Pyx_RefNannyDeclarations
27997 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
27998 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28001 __Pyx_RefNannyFinishContext();
28005 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28007 __Pyx_TraceDeclarations
28008 __Pyx_RefNannyDeclarations
28009 PyObject *__pyx_t_1 = NULL;
28010 int __pyx_lineno = 0;
28011 const char *__pyx_filename = NULL;
28012 int __pyx_clineno = 0;
28013 __Pyx_RefNannySetupContext(
"__set__", 0);
28014 __Pyx_TraceCall(
"__set__", __pyx_f[2], 51, 0, __PYX_ERR(2, 51, __pyx_L1_error));
28015 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 51, __pyx_L1_error)
28016 __pyx_t_1 = __pyx_v_value;
28017 __Pyx_INCREF(__pyx_t_1);
28018 __Pyx_GIVEREF(__pyx_t_1);
28019 __Pyx_GOTREF(__pyx_v_self->hx_dirichlet);
28020 __Pyx_DECREF(((PyObject *)__pyx_v_self->hx_dirichlet));
28021 __pyx_v_self->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28028 __Pyx_XDECREF(__pyx_t_1);
28029 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hx_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28032 __Pyx_TraceReturn(Py_None, 0);
28033 __Pyx_RefNannyFinishContext();
28038 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_5__del__(PyObject *__pyx_v_self);
28039 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_5__del__(PyObject *__pyx_v_self) {
28041 __Pyx_RefNannyDeclarations
28042 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28043 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28046 __Pyx_RefNannyFinishContext();
28050 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28052 __Pyx_TraceDeclarations
28053 __Pyx_RefNannyDeclarations
28054 int __pyx_lineno = 0;
28055 const char *__pyx_filename = NULL;
28056 int __pyx_clineno = 0;
28057 __Pyx_RefNannySetupContext(
"__del__", 0);
28058 __Pyx_TraceCall(
"__del__", __pyx_f[2], 51, 0, __PYX_ERR(2, 51, __pyx_L1_error));
28059 __Pyx_INCREF(Py_None);
28060 __Pyx_GIVEREF(Py_None);
28061 __Pyx_GOTREF(__pyx_v_self->hx_dirichlet);
28062 __Pyx_DECREF(((PyObject *)__pyx_v_self->hx_dirichlet));
28063 __pyx_v_self->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28069 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hx_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28072 __Pyx_TraceReturn(Py_None, 0);
28073 __Pyx_RefNannyFinishContext();
28086 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_1__get__(PyObject *__pyx_v_self);
28087 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_1__get__(PyObject *__pyx_v_self) {
28088 PyObject *__pyx_r = 0;
28089 __Pyx_RefNannyDeclarations
28090 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28091 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28094 __Pyx_RefNannyFinishContext();
28098 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28099 PyObject *__pyx_r = NULL;
28100 __Pyx_TraceDeclarations
28101 __Pyx_RefNannyDeclarations
28102 int __pyx_lineno = 0;
28103 const char *__pyx_filename = NULL;
28104 int __pyx_clineno = 0;
28105 __Pyx_RefNannySetupContext(
"__get__", 0);
28106 __Pyx_TraceCall(
"__get__", __pyx_f[2], 52, 0, __PYX_ERR(2, 52, __pyx_L1_error));
28107 __Pyx_XDECREF(__pyx_r);
28108 __Pyx_INCREF(((PyObject *)__pyx_v_self->hy_dirichlet));
28109 __pyx_r = ((PyObject *)__pyx_v_self->hy_dirichlet);
28114 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hy_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28117 __Pyx_XGIVEREF(__pyx_r);
28118 __Pyx_TraceReturn(__pyx_r, 0);
28119 __Pyx_RefNannyFinishContext();
28124 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28125 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28127 __Pyx_RefNannyDeclarations
28128 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28129 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28132 __Pyx_RefNannyFinishContext();
28136 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28138 __Pyx_TraceDeclarations
28139 __Pyx_RefNannyDeclarations
28140 PyObject *__pyx_t_1 = NULL;
28141 int __pyx_lineno = 0;
28142 const char *__pyx_filename = NULL;
28143 int __pyx_clineno = 0;
28144 __Pyx_RefNannySetupContext(
"__set__", 0);
28145 __Pyx_TraceCall(
"__set__", __pyx_f[2], 52, 0, __PYX_ERR(2, 52, __pyx_L1_error));
28146 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 52, __pyx_L1_error)
28147 __pyx_t_1 = __pyx_v_value;
28148 __Pyx_INCREF(__pyx_t_1);
28149 __Pyx_GIVEREF(__pyx_t_1);
28150 __Pyx_GOTREF(__pyx_v_self->hy_dirichlet);
28151 __Pyx_DECREF(((PyObject *)__pyx_v_self->hy_dirichlet));
28152 __pyx_v_self->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28159 __Pyx_XDECREF(__pyx_t_1);
28160 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hy_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28163 __Pyx_TraceReturn(Py_None, 0);
28164 __Pyx_RefNannyFinishContext();
28169 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_5__del__(PyObject *__pyx_v_self);
28170 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_5__del__(PyObject *__pyx_v_self) {
28172 __Pyx_RefNannyDeclarations
28173 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28174 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28177 __Pyx_RefNannyFinishContext();
28181 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28183 __Pyx_TraceDeclarations
28184 __Pyx_RefNannyDeclarations
28185 int __pyx_lineno = 0;
28186 const char *__pyx_filename = NULL;
28187 int __pyx_clineno = 0;
28188 __Pyx_RefNannySetupContext(
"__del__", 0);
28189 __Pyx_TraceCall(
"__del__", __pyx_f[2], 52, 0, __PYX_ERR(2, 52, __pyx_L1_error));
28190 __Pyx_INCREF(Py_None);
28191 __Pyx_GIVEREF(Py_None);
28192 __Pyx_GOTREF(__pyx_v_self->hy_dirichlet);
28193 __Pyx_DECREF(((PyObject *)__pyx_v_self->hy_dirichlet));
28194 __pyx_v_self->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28200 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hy_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28203 __Pyx_TraceReturn(Py_None, 0);
28204 __Pyx_RefNannyFinishContext();
28217 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_1__get__(PyObject *__pyx_v_self);
28218 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_1__get__(PyObject *__pyx_v_self) {
28219 PyObject *__pyx_r = 0;
28220 __Pyx_RefNannyDeclarations
28221 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28222 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28225 __Pyx_RefNannyFinishContext();
28229 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28230 PyObject *__pyx_r = NULL;
28231 __Pyx_TraceDeclarations
28232 __Pyx_RefNannyDeclarations
28233 int __pyx_lineno = 0;
28234 const char *__pyx_filename = NULL;
28235 int __pyx_clineno = 0;
28236 __Pyx_RefNannySetupContext(
"__get__", 0);
28237 __Pyx_TraceCall(
"__get__", __pyx_f[2], 53, 0, __PYX_ERR(2, 53, __pyx_L1_error));
28238 __Pyx_XDECREF(__pyx_r);
28239 __Pyx_INCREF(((PyObject *)__pyx_v_self->hz_dirichlet));
28240 __pyx_r = ((PyObject *)__pyx_v_self->hz_dirichlet);
28245 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hz_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28248 __Pyx_XGIVEREF(__pyx_r);
28249 __Pyx_TraceReturn(__pyx_r, 0);
28250 __Pyx_RefNannyFinishContext();
28255 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28256 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28258 __Pyx_RefNannyDeclarations
28259 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28260 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28263 __Pyx_RefNannyFinishContext();
28267 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28269 __Pyx_TraceDeclarations
28270 __Pyx_RefNannyDeclarations
28271 PyObject *__pyx_t_1 = NULL;
28272 int __pyx_lineno = 0;
28273 const char *__pyx_filename = NULL;
28274 int __pyx_clineno = 0;
28275 __Pyx_RefNannySetupContext(
"__set__", 0);
28276 __Pyx_TraceCall(
"__set__", __pyx_f[2], 53, 0, __PYX_ERR(2, 53, __pyx_L1_error));
28277 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 53, __pyx_L1_error)
28278 __pyx_t_1 = __pyx_v_value;
28279 __Pyx_INCREF(__pyx_t_1);
28280 __Pyx_GIVEREF(__pyx_t_1);
28281 __Pyx_GOTREF(__pyx_v_self->hz_dirichlet);
28282 __Pyx_DECREF(((PyObject *)__pyx_v_self->hz_dirichlet));
28283 __pyx_v_self->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28290 __Pyx_XDECREF(__pyx_t_1);
28291 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hz_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28294 __Pyx_TraceReturn(Py_None, 0);
28295 __Pyx_RefNannyFinishContext();
28300 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_5__del__(PyObject *__pyx_v_self);
28301 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_5__del__(PyObject *__pyx_v_self) {
28303 __Pyx_RefNannyDeclarations
28304 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28305 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28308 __Pyx_RefNannyFinishContext();
28312 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28314 __Pyx_TraceDeclarations
28315 __Pyx_RefNannyDeclarations
28316 int __pyx_lineno = 0;
28317 const char *__pyx_filename = NULL;
28318 int __pyx_clineno = 0;
28319 __Pyx_RefNannySetupContext(
"__del__", 0);
28320 __Pyx_TraceCall(
"__del__", __pyx_f[2], 53, 0, __PYX_ERR(2, 53, __pyx_L1_error));
28321 __Pyx_INCREF(Py_None);
28322 __Pyx_GIVEREF(Py_None);
28323 __Pyx_GOTREF(__pyx_v_self->hz_dirichlet);
28324 __Pyx_DECREF(((PyObject *)__pyx_v_self->hz_dirichlet));
28325 __pyx_v_self->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28331 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.hz_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28334 __Pyx_TraceReturn(Py_None, 0);
28335 __Pyx_RefNannyFinishContext();
28348 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_1__get__(PyObject *__pyx_v_self);
28349 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_1__get__(PyObject *__pyx_v_self) {
28350 PyObject *__pyx_r = 0;
28351 __Pyx_RefNannyDeclarations
28352 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28353 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28356 __Pyx_RefNannyFinishContext();
28360 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28361 PyObject *__pyx_r = NULL;
28362 __Pyx_TraceDeclarations
28363 __Pyx_RefNannyDeclarations
28364 int __pyx_lineno = 0;
28365 const char *__pyx_filename = NULL;
28366 int __pyx_clineno = 0;
28367 __Pyx_RefNannySetupContext(
"__get__", 0);
28368 __Pyx_TraceCall(
"__get__", __pyx_f[2], 54, 0, __PYX_ERR(2, 54, __pyx_L1_error));
28369 __Pyx_XDECREF(__pyx_r);
28370 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_stress));
28371 __pyx_r = ((PyObject *)__pyx_v_self->u_stress);
28376 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_stress.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28379 __Pyx_XGIVEREF(__pyx_r);
28380 __Pyx_TraceReturn(__pyx_r, 0);
28381 __Pyx_RefNannyFinishContext();
28386 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28387 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28389 __Pyx_RefNannyDeclarations
28390 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28391 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28394 __Pyx_RefNannyFinishContext();
28398 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28400 __Pyx_TraceDeclarations
28401 __Pyx_RefNannyDeclarations
28402 PyObject *__pyx_t_1 = NULL;
28403 int __pyx_lineno = 0;
28404 const char *__pyx_filename = NULL;
28405 int __pyx_clineno = 0;
28406 __Pyx_RefNannySetupContext(
"__set__", 0);
28407 __Pyx_TraceCall(
"__set__", __pyx_f[2], 54, 0, __PYX_ERR(2, 54, __pyx_L1_error));
28408 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 54, __pyx_L1_error)
28409 __pyx_t_1 = __pyx_v_value;
28410 __Pyx_INCREF(__pyx_t_1);
28411 __Pyx_GIVEREF(__pyx_t_1);
28412 __Pyx_GOTREF(__pyx_v_self->u_stress);
28413 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_stress));
28414 __pyx_v_self->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28421 __Pyx_XDECREF(__pyx_t_1);
28422 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_stress.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28425 __Pyx_TraceReturn(Py_None, 0);
28426 __Pyx_RefNannyFinishContext();
28431 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_5__del__(PyObject *__pyx_v_self);
28432 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_5__del__(PyObject *__pyx_v_self) {
28434 __Pyx_RefNannyDeclarations
28435 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28436 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28439 __Pyx_RefNannyFinishContext();
28443 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28445 __Pyx_TraceDeclarations
28446 __Pyx_RefNannyDeclarations
28447 int __pyx_lineno = 0;
28448 const char *__pyx_filename = NULL;
28449 int __pyx_clineno = 0;
28450 __Pyx_RefNannySetupContext(
"__del__", 0);
28451 __Pyx_TraceCall(
"__del__", __pyx_f[2], 54, 0, __PYX_ERR(2, 54, __pyx_L1_error));
28452 __Pyx_INCREF(Py_None);
28453 __Pyx_GIVEREF(Py_None);
28454 __Pyx_GOTREF(__pyx_v_self->u_stress);
28455 __Pyx_DECREF(((PyObject *)__pyx_v_self->u_stress));
28456 __pyx_v_self->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28462 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.u_stress.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28465 __Pyx_TraceReturn(Py_None, 0);
28466 __Pyx_RefNannyFinishContext();
28479 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_1__get__(PyObject *__pyx_v_self);
28480 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_1__get__(PyObject *__pyx_v_self) {
28481 PyObject *__pyx_r = 0;
28482 __Pyx_RefNannyDeclarations
28483 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28484 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28487 __Pyx_RefNannyFinishContext();
28491 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28492 PyObject *__pyx_r = NULL;
28493 __Pyx_TraceDeclarations
28494 __Pyx_RefNannyDeclarations
28495 int __pyx_lineno = 0;
28496 const char *__pyx_filename = NULL;
28497 int __pyx_clineno = 0;
28498 __Pyx_RefNannySetupContext(
"__get__", 0);
28499 __Pyx_TraceCall(
"__get__", __pyx_f[2], 55, 0, __PYX_ERR(2, 55, __pyx_L1_error));
28500 __Pyx_XDECREF(__pyx_r);
28501 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_stress));
28502 __pyx_r = ((PyObject *)__pyx_v_self->v_stress);
28507 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_stress.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28510 __Pyx_XGIVEREF(__pyx_r);
28511 __Pyx_TraceReturn(__pyx_r, 0);
28512 __Pyx_RefNannyFinishContext();
28517 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28518 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28520 __Pyx_RefNannyDeclarations
28521 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28522 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28525 __Pyx_RefNannyFinishContext();
28529 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28531 __Pyx_TraceDeclarations
28532 __Pyx_RefNannyDeclarations
28533 PyObject *__pyx_t_1 = NULL;
28534 int __pyx_lineno = 0;
28535 const char *__pyx_filename = NULL;
28536 int __pyx_clineno = 0;
28537 __Pyx_RefNannySetupContext(
"__set__", 0);
28538 __Pyx_TraceCall(
"__set__", __pyx_f[2], 55, 0, __PYX_ERR(2, 55, __pyx_L1_error));
28539 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 55, __pyx_L1_error)
28540 __pyx_t_1 = __pyx_v_value;
28541 __Pyx_INCREF(__pyx_t_1);
28542 __Pyx_GIVEREF(__pyx_t_1);
28543 __Pyx_GOTREF(__pyx_v_self->v_stress);
28544 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_stress));
28545 __pyx_v_self->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28552 __Pyx_XDECREF(__pyx_t_1);
28553 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_stress.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28556 __Pyx_TraceReturn(Py_None, 0);
28557 __Pyx_RefNannyFinishContext();
28562 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_5__del__(PyObject *__pyx_v_self);
28563 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_5__del__(PyObject *__pyx_v_self) {
28565 __Pyx_RefNannyDeclarations
28566 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28567 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28570 __Pyx_RefNannyFinishContext();
28574 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28576 __Pyx_TraceDeclarations
28577 __Pyx_RefNannyDeclarations
28578 int __pyx_lineno = 0;
28579 const char *__pyx_filename = NULL;
28580 int __pyx_clineno = 0;
28581 __Pyx_RefNannySetupContext(
"__del__", 0);
28582 __Pyx_TraceCall(
"__del__", __pyx_f[2], 55, 0, __PYX_ERR(2, 55, __pyx_L1_error));
28583 __Pyx_INCREF(Py_None);
28584 __Pyx_GIVEREF(Py_None);
28585 __Pyx_GOTREF(__pyx_v_self->v_stress);
28586 __Pyx_DECREF(((PyObject *)__pyx_v_self->v_stress));
28587 __pyx_v_self->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28593 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.v_stress.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28596 __Pyx_TraceReturn(Py_None, 0);
28597 __Pyx_RefNannyFinishContext();
28610 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_1__get__(PyObject *__pyx_v_self);
28611 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_1__get__(PyObject *__pyx_v_self) {
28612 PyObject *__pyx_r = 0;
28613 __Pyx_RefNannyDeclarations
28614 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28615 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28618 __Pyx_RefNannyFinishContext();
28622 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28623 PyObject *__pyx_r = NULL;
28624 __Pyx_TraceDeclarations
28625 __Pyx_RefNannyDeclarations
28626 int __pyx_lineno = 0;
28627 const char *__pyx_filename = NULL;
28628 int __pyx_clineno = 0;
28629 __Pyx_RefNannySetupContext(
"__get__", 0);
28630 __Pyx_TraceCall(
"__get__", __pyx_f[2], 56, 0, __PYX_ERR(2, 56, __pyx_L1_error));
28631 __Pyx_XDECREF(__pyx_r);
28632 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_stress));
28633 __pyx_r = ((PyObject *)__pyx_v_self->w_stress);
28638 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_stress.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28641 __Pyx_XGIVEREF(__pyx_r);
28642 __Pyx_TraceReturn(__pyx_r, 0);
28643 __Pyx_RefNannyFinishContext();
28648 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28649 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28651 __Pyx_RefNannyDeclarations
28652 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28653 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28656 __Pyx_RefNannyFinishContext();
28660 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28662 __Pyx_TraceDeclarations
28663 __Pyx_RefNannyDeclarations
28664 PyObject *__pyx_t_1 = NULL;
28665 int __pyx_lineno = 0;
28666 const char *__pyx_filename = NULL;
28667 int __pyx_clineno = 0;
28668 __Pyx_RefNannySetupContext(
"__set__", 0);
28669 __Pyx_TraceCall(
"__set__", __pyx_f[2], 56, 0, __PYX_ERR(2, 56, __pyx_L1_error));
28670 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 56, __pyx_L1_error)
28671 __pyx_t_1 = __pyx_v_value;
28672 __Pyx_INCREF(__pyx_t_1);
28673 __Pyx_GIVEREF(__pyx_t_1);
28674 __Pyx_GOTREF(__pyx_v_self->w_stress);
28675 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_stress));
28676 __pyx_v_self->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28683 __Pyx_XDECREF(__pyx_t_1);
28684 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_stress.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28687 __Pyx_TraceReturn(Py_None, 0);
28688 __Pyx_RefNannyFinishContext();
28693 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_5__del__(PyObject *__pyx_v_self);
28694 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_5__del__(PyObject *__pyx_v_self) {
28696 __Pyx_RefNannyDeclarations
28697 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28698 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28701 __Pyx_RefNannyFinishContext();
28705 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28707 __Pyx_TraceDeclarations
28708 __Pyx_RefNannyDeclarations
28709 int __pyx_lineno = 0;
28710 const char *__pyx_filename = NULL;
28711 int __pyx_clineno = 0;
28712 __Pyx_RefNannySetupContext(
"__del__", 0);
28713 __Pyx_TraceCall(
"__del__", __pyx_f[2], 56, 0, __PYX_ERR(2, 56, __pyx_L1_error));
28714 __Pyx_INCREF(Py_None);
28715 __Pyx_GIVEREF(Py_None);
28716 __Pyx_GOTREF(__pyx_v_self->w_stress);
28717 __Pyx_DECREF(((PyObject *)__pyx_v_self->w_stress));
28718 __pyx_v_self->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28724 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.w_stress.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28727 __Pyx_TraceReturn(Py_None, 0);
28728 __Pyx_RefNannyFinishContext();
28741 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_1__get__(PyObject *__pyx_v_self);
28742 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_1__get__(PyObject *__pyx_v_self) {
28743 PyObject *__pyx_r = 0;
28744 __Pyx_RefNannyDeclarations
28745 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28746 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28749 __Pyx_RefNannyFinishContext();
28753 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28754 PyObject *__pyx_r = NULL;
28755 __Pyx_TraceDeclarations
28756 __Pyx_RefNannyDeclarations
28757 int __pyx_lineno = 0;
28758 const char *__pyx_filename = NULL;
28759 int __pyx_clineno = 0;
28760 __Pyx_RefNannySetupContext(
"__get__", 0);
28761 __Pyx_TraceCall(
"__get__", __pyx_f[2], 58, 0, __PYX_ERR(2, 58, __pyx_L1_error));
28762 __Pyx_XDECREF(__pyx_r);
28763 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_dirichlet));
28764 __pyx_r = ((PyObject *)__pyx_v_self->us_dirichlet);
28769 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28772 __Pyx_XGIVEREF(__pyx_r);
28773 __Pyx_TraceReturn(__pyx_r, 0);
28774 __Pyx_RefNannyFinishContext();
28779 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28780 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28782 __Pyx_RefNannyDeclarations
28783 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28784 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28787 __Pyx_RefNannyFinishContext();
28791 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28793 __Pyx_TraceDeclarations
28794 __Pyx_RefNannyDeclarations
28795 PyObject *__pyx_t_1 = NULL;
28796 int __pyx_lineno = 0;
28797 const char *__pyx_filename = NULL;
28798 int __pyx_clineno = 0;
28799 __Pyx_RefNannySetupContext(
"__set__", 0);
28800 __Pyx_TraceCall(
"__set__", __pyx_f[2], 58, 0, __PYX_ERR(2, 58, __pyx_L1_error));
28801 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 58, __pyx_L1_error)
28802 __pyx_t_1 = __pyx_v_value;
28803 __Pyx_INCREF(__pyx_t_1);
28804 __Pyx_GIVEREF(__pyx_t_1);
28805 __Pyx_GOTREF(__pyx_v_self->us_dirichlet);
28806 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_dirichlet));
28807 __pyx_v_self->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28814 __Pyx_XDECREF(__pyx_t_1);
28815 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28818 __Pyx_TraceReturn(Py_None, 0);
28819 __Pyx_RefNannyFinishContext();
28824 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_5__del__(PyObject *__pyx_v_self);
28825 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_5__del__(PyObject *__pyx_v_self) {
28827 __Pyx_RefNannyDeclarations
28828 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28829 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28832 __Pyx_RefNannyFinishContext();
28836 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28838 __Pyx_TraceDeclarations
28839 __Pyx_RefNannyDeclarations
28840 int __pyx_lineno = 0;
28841 const char *__pyx_filename = NULL;
28842 int __pyx_clineno = 0;
28843 __Pyx_RefNannySetupContext(
"__del__", 0);
28844 __Pyx_TraceCall(
"__del__", __pyx_f[2], 58, 0, __PYX_ERR(2, 58, __pyx_L1_error));
28845 __Pyx_INCREF(Py_None);
28846 __Pyx_GIVEREF(Py_None);
28847 __Pyx_GOTREF(__pyx_v_self->us_dirichlet);
28848 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_dirichlet));
28849 __pyx_v_self->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28855 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28858 __Pyx_TraceReturn(Py_None, 0);
28859 __Pyx_RefNannyFinishContext();
28872 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_1__get__(PyObject *__pyx_v_self);
28873 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_1__get__(PyObject *__pyx_v_self) {
28874 PyObject *__pyx_r = 0;
28875 __Pyx_RefNannyDeclarations
28876 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
28877 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28880 __Pyx_RefNannyFinishContext();
28884 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28885 PyObject *__pyx_r = NULL;
28886 __Pyx_TraceDeclarations
28887 __Pyx_RefNannyDeclarations
28888 int __pyx_lineno = 0;
28889 const char *__pyx_filename = NULL;
28890 int __pyx_clineno = 0;
28891 __Pyx_RefNannySetupContext(
"__get__", 0);
28892 __Pyx_TraceCall(
"__get__", __pyx_f[2], 59, 0, __PYX_ERR(2, 59, __pyx_L1_error));
28893 __Pyx_XDECREF(__pyx_r);
28894 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_dirichlet));
28895 __pyx_r = ((PyObject *)__pyx_v_self->vs_dirichlet);
28900 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28903 __Pyx_XGIVEREF(__pyx_r);
28904 __Pyx_TraceReturn(__pyx_r, 0);
28905 __Pyx_RefNannyFinishContext();
28910 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
28911 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
28913 __Pyx_RefNannyDeclarations
28914 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
28915 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
28918 __Pyx_RefNannyFinishContext();
28922 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
28924 __Pyx_TraceDeclarations
28925 __Pyx_RefNannyDeclarations
28926 PyObject *__pyx_t_1 = NULL;
28927 int __pyx_lineno = 0;
28928 const char *__pyx_filename = NULL;
28929 int __pyx_clineno = 0;
28930 __Pyx_RefNannySetupContext(
"__set__", 0);
28931 __Pyx_TraceCall(
"__set__", __pyx_f[2], 59, 0, __PYX_ERR(2, 59, __pyx_L1_error));
28932 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 59, __pyx_L1_error)
28933 __pyx_t_1 = __pyx_v_value;
28934 __Pyx_INCREF(__pyx_t_1);
28935 __Pyx_GIVEREF(__pyx_t_1);
28936 __Pyx_GOTREF(__pyx_v_self->vs_dirichlet);
28937 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_dirichlet));
28938 __pyx_v_self->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
28945 __Pyx_XDECREF(__pyx_t_1);
28946 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28949 __Pyx_TraceReturn(Py_None, 0);
28950 __Pyx_RefNannyFinishContext();
28955 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_5__del__(PyObject *__pyx_v_self);
28956 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_5__del__(PyObject *__pyx_v_self) {
28958 __Pyx_RefNannyDeclarations
28959 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
28960 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
28963 __Pyx_RefNannyFinishContext();
28967 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
28969 __Pyx_TraceDeclarations
28970 __Pyx_RefNannyDeclarations
28971 int __pyx_lineno = 0;
28972 const char *__pyx_filename = NULL;
28973 int __pyx_clineno = 0;
28974 __Pyx_RefNannySetupContext(
"__del__", 0);
28975 __Pyx_TraceCall(
"__del__", __pyx_f[2], 59, 0, __PYX_ERR(2, 59, __pyx_L1_error));
28976 __Pyx_INCREF(Py_None);
28977 __Pyx_GIVEREF(Py_None);
28978 __Pyx_GOTREF(__pyx_v_self->vs_dirichlet);
28979 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_dirichlet));
28980 __pyx_v_self->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
28986 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
28989 __Pyx_TraceReturn(Py_None, 0);
28990 __Pyx_RefNannyFinishContext();
29003 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_1__get__(PyObject *__pyx_v_self);
29004 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_1__get__(PyObject *__pyx_v_self) {
29005 PyObject *__pyx_r = 0;
29006 __Pyx_RefNannyDeclarations
29007 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29008 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29011 __Pyx_RefNannyFinishContext();
29015 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29016 PyObject *__pyx_r = NULL;
29017 __Pyx_TraceDeclarations
29018 __Pyx_RefNannyDeclarations
29019 int __pyx_lineno = 0;
29020 const char *__pyx_filename = NULL;
29021 int __pyx_clineno = 0;
29022 __Pyx_RefNannySetupContext(
"__get__", 0);
29023 __Pyx_TraceCall(
"__get__", __pyx_f[2], 60, 0, __PYX_ERR(2, 60, __pyx_L1_error));
29024 __Pyx_XDECREF(__pyx_r);
29025 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_dirichlet));
29026 __pyx_r = ((PyObject *)__pyx_v_self->ws_dirichlet);
29031 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29034 __Pyx_XGIVEREF(__pyx_r);
29035 __Pyx_TraceReturn(__pyx_r, 0);
29036 __Pyx_RefNannyFinishContext();
29041 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29042 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29044 __Pyx_RefNannyDeclarations
29045 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29046 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29049 __Pyx_RefNannyFinishContext();
29053 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29055 __Pyx_TraceDeclarations
29056 __Pyx_RefNannyDeclarations
29057 PyObject *__pyx_t_1 = NULL;
29058 int __pyx_lineno = 0;
29059 const char *__pyx_filename = NULL;
29060 int __pyx_clineno = 0;
29061 __Pyx_RefNannySetupContext(
"__set__", 0);
29062 __Pyx_TraceCall(
"__set__", __pyx_f[2], 60, 0, __PYX_ERR(2, 60, __pyx_L1_error));
29063 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 60, __pyx_L1_error)
29064 __pyx_t_1 = __pyx_v_value;
29065 __Pyx_INCREF(__pyx_t_1);
29066 __Pyx_GIVEREF(__pyx_t_1);
29067 __Pyx_GOTREF(__pyx_v_self->ws_dirichlet);
29068 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_dirichlet));
29069 __pyx_v_self->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29076 __Pyx_XDECREF(__pyx_t_1);
29077 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29080 __Pyx_TraceReturn(Py_None, 0);
29081 __Pyx_RefNannyFinishContext();
29086 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_5__del__(PyObject *__pyx_v_self);
29087 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_5__del__(PyObject *__pyx_v_self) {
29089 __Pyx_RefNannyDeclarations
29090 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29091 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29094 __Pyx_RefNannyFinishContext();
29098 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29100 __Pyx_TraceDeclarations
29101 __Pyx_RefNannyDeclarations
29102 int __pyx_lineno = 0;
29103 const char *__pyx_filename = NULL;
29104 int __pyx_clineno = 0;
29105 __Pyx_RefNannySetupContext(
"__del__", 0);
29106 __Pyx_TraceCall(
"__del__", __pyx_f[2], 60, 0, __PYX_ERR(2, 60, __pyx_L1_error));
29107 __Pyx_INCREF(Py_None);
29108 __Pyx_GIVEREF(Py_None);
29109 __Pyx_GOTREF(__pyx_v_self->ws_dirichlet);
29110 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_dirichlet));
29111 __pyx_v_self->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29117 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29120 __Pyx_TraceReturn(Py_None, 0);
29121 __Pyx_RefNannyFinishContext();
29134 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_1__get__(PyObject *__pyx_v_self);
29135 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_1__get__(PyObject *__pyx_v_self) {
29136 PyObject *__pyx_r = 0;
29137 __Pyx_RefNannyDeclarations
29138 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29139 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29142 __Pyx_RefNannyFinishContext();
29146 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29147 PyObject *__pyx_r = NULL;
29148 __Pyx_TraceDeclarations
29149 __Pyx_RefNannyDeclarations
29150 int __pyx_lineno = 0;
29151 const char *__pyx_filename = NULL;
29152 int __pyx_clineno = 0;
29153 __Pyx_RefNannySetupContext(
"__get__", 0);
29154 __Pyx_TraceCall(
"__get__", __pyx_f[2], 61, 0, __PYX_ERR(2, 61, __pyx_L1_error));
29155 __Pyx_XDECREF(__pyx_r);
29156 __Pyx_INCREF(((PyObject *)__pyx_v_self->vos_dirichlet));
29157 __pyx_r = ((PyObject *)__pyx_v_self->vos_dirichlet);
29162 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29165 __Pyx_XGIVEREF(__pyx_r);
29166 __Pyx_TraceReturn(__pyx_r, 0);
29167 __Pyx_RefNannyFinishContext();
29172 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29173 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29175 __Pyx_RefNannyDeclarations
29176 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29177 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29180 __Pyx_RefNannyFinishContext();
29184 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29186 __Pyx_TraceDeclarations
29187 __Pyx_RefNannyDeclarations
29188 PyObject *__pyx_t_1 = NULL;
29189 int __pyx_lineno = 0;
29190 const char *__pyx_filename = NULL;
29191 int __pyx_clineno = 0;
29192 __Pyx_RefNannySetupContext(
"__set__", 0);
29193 __Pyx_TraceCall(
"__set__", __pyx_f[2], 61, 0, __PYX_ERR(2, 61, __pyx_L1_error));
29194 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 61, __pyx_L1_error)
29195 __pyx_t_1 = __pyx_v_value;
29196 __Pyx_INCREF(__pyx_t_1);
29197 __Pyx_GIVEREF(__pyx_t_1);
29198 __Pyx_GOTREF(__pyx_v_self->vos_dirichlet);
29199 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_dirichlet));
29200 __pyx_v_self->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29207 __Pyx_XDECREF(__pyx_t_1);
29208 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29211 __Pyx_TraceReturn(Py_None, 0);
29212 __Pyx_RefNannyFinishContext();
29217 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_5__del__(PyObject *__pyx_v_self);
29218 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_5__del__(PyObject *__pyx_v_self) {
29220 __Pyx_RefNannyDeclarations
29221 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29222 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29225 __Pyx_RefNannyFinishContext();
29229 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29231 __Pyx_TraceDeclarations
29232 __Pyx_RefNannyDeclarations
29233 int __pyx_lineno = 0;
29234 const char *__pyx_filename = NULL;
29235 int __pyx_clineno = 0;
29236 __Pyx_RefNannySetupContext(
"__del__", 0);
29237 __Pyx_TraceCall(
"__del__", __pyx_f[2], 61, 0, __PYX_ERR(2, 61, __pyx_L1_error));
29238 __Pyx_INCREF(Py_None);
29239 __Pyx_GIVEREF(Py_None);
29240 __Pyx_GOTREF(__pyx_v_self->vos_dirichlet);
29241 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_dirichlet));
29242 __pyx_v_self->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29248 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29251 __Pyx_TraceReturn(Py_None, 0);
29252 __Pyx_RefNannyFinishContext();
29265 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_1__get__(PyObject *__pyx_v_self);
29266 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_1__get__(PyObject *__pyx_v_self) {
29267 PyObject *__pyx_r = 0;
29268 __Pyx_RefNannyDeclarations
29269 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29270 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29273 __Pyx_RefNannyFinishContext();
29277 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29278 PyObject *__pyx_r = NULL;
29279 __Pyx_TraceDeclarations
29280 __Pyx_RefNannyDeclarations
29281 int __pyx_lineno = 0;
29282 const char *__pyx_filename = NULL;
29283 int __pyx_clineno = 0;
29284 __Pyx_RefNannySetupContext(
"__get__", 0);
29285 __Pyx_TraceCall(
"__get__", __pyx_f[2], 62, 0, __PYX_ERR(2, 62, __pyx_L1_error));
29286 __Pyx_XDECREF(__pyx_r);
29287 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_advective));
29288 __pyx_r = ((PyObject *)__pyx_v_self->us_advective);
29293 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29296 __Pyx_XGIVEREF(__pyx_r);
29297 __Pyx_TraceReturn(__pyx_r, 0);
29298 __Pyx_RefNannyFinishContext();
29303 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29304 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29306 __Pyx_RefNannyDeclarations
29307 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29308 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29311 __Pyx_RefNannyFinishContext();
29315 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29317 __Pyx_TraceDeclarations
29318 __Pyx_RefNannyDeclarations
29319 PyObject *__pyx_t_1 = NULL;
29320 int __pyx_lineno = 0;
29321 const char *__pyx_filename = NULL;
29322 int __pyx_clineno = 0;
29323 __Pyx_RefNannySetupContext(
"__set__", 0);
29324 __Pyx_TraceCall(
"__set__", __pyx_f[2], 62, 0, __PYX_ERR(2, 62, __pyx_L1_error));
29325 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 62, __pyx_L1_error)
29326 __pyx_t_1 = __pyx_v_value;
29327 __Pyx_INCREF(__pyx_t_1);
29328 __Pyx_GIVEREF(__pyx_t_1);
29329 __Pyx_GOTREF(__pyx_v_self->us_advective);
29330 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_advective));
29331 __pyx_v_self->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29338 __Pyx_XDECREF(__pyx_t_1);
29339 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29342 __Pyx_TraceReturn(Py_None, 0);
29343 __Pyx_RefNannyFinishContext();
29348 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_5__del__(PyObject *__pyx_v_self);
29349 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_5__del__(PyObject *__pyx_v_self) {
29351 __Pyx_RefNannyDeclarations
29352 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29353 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29356 __Pyx_RefNannyFinishContext();
29360 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29362 __Pyx_TraceDeclarations
29363 __Pyx_RefNannyDeclarations
29364 int __pyx_lineno = 0;
29365 const char *__pyx_filename = NULL;
29366 int __pyx_clineno = 0;
29367 __Pyx_RefNannySetupContext(
"__del__", 0);
29368 __Pyx_TraceCall(
"__del__", __pyx_f[2], 62, 0, __PYX_ERR(2, 62, __pyx_L1_error));
29369 __Pyx_INCREF(Py_None);
29370 __Pyx_GIVEREF(Py_None);
29371 __Pyx_GOTREF(__pyx_v_self->us_advective);
29372 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_advective));
29373 __pyx_v_self->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29379 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29382 __Pyx_TraceReturn(Py_None, 0);
29383 __Pyx_RefNannyFinishContext();
29396 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_1__get__(PyObject *__pyx_v_self);
29397 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_1__get__(PyObject *__pyx_v_self) {
29398 PyObject *__pyx_r = 0;
29399 __Pyx_RefNannyDeclarations
29400 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29401 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29404 __Pyx_RefNannyFinishContext();
29408 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29409 PyObject *__pyx_r = NULL;
29410 __Pyx_TraceDeclarations
29411 __Pyx_RefNannyDeclarations
29412 int __pyx_lineno = 0;
29413 const char *__pyx_filename = NULL;
29414 int __pyx_clineno = 0;
29415 __Pyx_RefNannySetupContext(
"__get__", 0);
29416 __Pyx_TraceCall(
"__get__", __pyx_f[2], 63, 0, __PYX_ERR(2, 63, __pyx_L1_error));
29417 __Pyx_XDECREF(__pyx_r);
29418 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_advective));
29419 __pyx_r = ((PyObject *)__pyx_v_self->vs_advective);
29424 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29427 __Pyx_XGIVEREF(__pyx_r);
29428 __Pyx_TraceReturn(__pyx_r, 0);
29429 __Pyx_RefNannyFinishContext();
29434 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29435 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29437 __Pyx_RefNannyDeclarations
29438 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29439 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29442 __Pyx_RefNannyFinishContext();
29446 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29448 __Pyx_TraceDeclarations
29449 __Pyx_RefNannyDeclarations
29450 PyObject *__pyx_t_1 = NULL;
29451 int __pyx_lineno = 0;
29452 const char *__pyx_filename = NULL;
29453 int __pyx_clineno = 0;
29454 __Pyx_RefNannySetupContext(
"__set__", 0);
29455 __Pyx_TraceCall(
"__set__", __pyx_f[2], 63, 0, __PYX_ERR(2, 63, __pyx_L1_error));
29456 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 63, __pyx_L1_error)
29457 __pyx_t_1 = __pyx_v_value;
29458 __Pyx_INCREF(__pyx_t_1);
29459 __Pyx_GIVEREF(__pyx_t_1);
29460 __Pyx_GOTREF(__pyx_v_self->vs_advective);
29461 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_advective));
29462 __pyx_v_self->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29469 __Pyx_XDECREF(__pyx_t_1);
29470 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29473 __Pyx_TraceReturn(Py_None, 0);
29474 __Pyx_RefNannyFinishContext();
29479 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_5__del__(PyObject *__pyx_v_self);
29480 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_5__del__(PyObject *__pyx_v_self) {
29482 __Pyx_RefNannyDeclarations
29483 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29484 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29487 __Pyx_RefNannyFinishContext();
29491 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29493 __Pyx_TraceDeclarations
29494 __Pyx_RefNannyDeclarations
29495 int __pyx_lineno = 0;
29496 const char *__pyx_filename = NULL;
29497 int __pyx_clineno = 0;
29498 __Pyx_RefNannySetupContext(
"__del__", 0);
29499 __Pyx_TraceCall(
"__del__", __pyx_f[2], 63, 0, __PYX_ERR(2, 63, __pyx_L1_error));
29500 __Pyx_INCREF(Py_None);
29501 __Pyx_GIVEREF(Py_None);
29502 __Pyx_GOTREF(__pyx_v_self->vs_advective);
29503 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_advective));
29504 __pyx_v_self->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29510 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29513 __Pyx_TraceReturn(Py_None, 0);
29514 __Pyx_RefNannyFinishContext();
29527 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_1__get__(PyObject *__pyx_v_self);
29528 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_1__get__(PyObject *__pyx_v_self) {
29529 PyObject *__pyx_r = 0;
29530 __Pyx_RefNannyDeclarations
29531 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29532 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29535 __Pyx_RefNannyFinishContext();
29539 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29540 PyObject *__pyx_r = NULL;
29541 __Pyx_TraceDeclarations
29542 __Pyx_RefNannyDeclarations
29543 int __pyx_lineno = 0;
29544 const char *__pyx_filename = NULL;
29545 int __pyx_clineno = 0;
29546 __Pyx_RefNannySetupContext(
"__get__", 0);
29547 __Pyx_TraceCall(
"__get__", __pyx_f[2], 64, 0, __PYX_ERR(2, 64, __pyx_L1_error));
29548 __Pyx_XDECREF(__pyx_r);
29549 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_advective));
29550 __pyx_r = ((PyObject *)__pyx_v_self->ws_advective);
29555 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29558 __Pyx_XGIVEREF(__pyx_r);
29559 __Pyx_TraceReturn(__pyx_r, 0);
29560 __Pyx_RefNannyFinishContext();
29565 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29566 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29568 __Pyx_RefNannyDeclarations
29569 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29570 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29573 __Pyx_RefNannyFinishContext();
29577 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29579 __Pyx_TraceDeclarations
29580 __Pyx_RefNannyDeclarations
29581 PyObject *__pyx_t_1 = NULL;
29582 int __pyx_lineno = 0;
29583 const char *__pyx_filename = NULL;
29584 int __pyx_clineno = 0;
29585 __Pyx_RefNannySetupContext(
"__set__", 0);
29586 __Pyx_TraceCall(
"__set__", __pyx_f[2], 64, 0, __PYX_ERR(2, 64, __pyx_L1_error));
29587 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 64, __pyx_L1_error)
29588 __pyx_t_1 = __pyx_v_value;
29589 __Pyx_INCREF(__pyx_t_1);
29590 __Pyx_GIVEREF(__pyx_t_1);
29591 __Pyx_GOTREF(__pyx_v_self->ws_advective);
29592 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_advective));
29593 __pyx_v_self->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29600 __Pyx_XDECREF(__pyx_t_1);
29601 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29604 __Pyx_TraceReturn(Py_None, 0);
29605 __Pyx_RefNannyFinishContext();
29610 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_5__del__(PyObject *__pyx_v_self);
29611 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_5__del__(PyObject *__pyx_v_self) {
29613 __Pyx_RefNannyDeclarations
29614 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29615 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29618 __Pyx_RefNannyFinishContext();
29622 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29624 __Pyx_TraceDeclarations
29625 __Pyx_RefNannyDeclarations
29626 int __pyx_lineno = 0;
29627 const char *__pyx_filename = NULL;
29628 int __pyx_clineno = 0;
29629 __Pyx_RefNannySetupContext(
"__del__", 0);
29630 __Pyx_TraceCall(
"__del__", __pyx_f[2], 64, 0, __PYX_ERR(2, 64, __pyx_L1_error));
29631 __Pyx_INCREF(Py_None);
29632 __Pyx_GIVEREF(Py_None);
29633 __Pyx_GOTREF(__pyx_v_self->ws_advective);
29634 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_advective));
29635 __pyx_v_self->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29641 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29644 __Pyx_TraceReturn(Py_None, 0);
29645 __Pyx_RefNannyFinishContext();
29658 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_1__get__(PyObject *__pyx_v_self);
29659 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_1__get__(PyObject *__pyx_v_self) {
29660 PyObject *__pyx_r = 0;
29661 __Pyx_RefNannyDeclarations
29662 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29663 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29666 __Pyx_RefNannyFinishContext();
29670 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29671 PyObject *__pyx_r = NULL;
29672 __Pyx_TraceDeclarations
29673 __Pyx_RefNannyDeclarations
29674 int __pyx_lineno = 0;
29675 const char *__pyx_filename = NULL;
29676 int __pyx_clineno = 0;
29677 __Pyx_RefNannySetupContext(
"__get__", 0);
29678 __Pyx_TraceCall(
"__get__", __pyx_f[2], 65, 0, __PYX_ERR(2, 65, __pyx_L1_error));
29679 __Pyx_XDECREF(__pyx_r);
29680 __Pyx_INCREF(((PyObject *)__pyx_v_self->vos_advective));
29681 __pyx_r = ((PyObject *)__pyx_v_self->vos_advective);
29686 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29689 __Pyx_XGIVEREF(__pyx_r);
29690 __Pyx_TraceReturn(__pyx_r, 0);
29691 __Pyx_RefNannyFinishContext();
29696 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29697 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29699 __Pyx_RefNannyDeclarations
29700 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29701 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29704 __Pyx_RefNannyFinishContext();
29708 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29710 __Pyx_TraceDeclarations
29711 __Pyx_RefNannyDeclarations
29712 PyObject *__pyx_t_1 = NULL;
29713 int __pyx_lineno = 0;
29714 const char *__pyx_filename = NULL;
29715 int __pyx_clineno = 0;
29716 __Pyx_RefNannySetupContext(
"__set__", 0);
29717 __Pyx_TraceCall(
"__set__", __pyx_f[2], 65, 0, __PYX_ERR(2, 65, __pyx_L1_error));
29718 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 65, __pyx_L1_error)
29719 __pyx_t_1 = __pyx_v_value;
29720 __Pyx_INCREF(__pyx_t_1);
29721 __Pyx_GIVEREF(__pyx_t_1);
29722 __Pyx_GOTREF(__pyx_v_self->vos_advective);
29723 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_advective));
29724 __pyx_v_self->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29731 __Pyx_XDECREF(__pyx_t_1);
29732 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29735 __Pyx_TraceReturn(Py_None, 0);
29736 __Pyx_RefNannyFinishContext();
29741 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_5__del__(PyObject *__pyx_v_self);
29742 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_5__del__(PyObject *__pyx_v_self) {
29744 __Pyx_RefNannyDeclarations
29745 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29746 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29749 __Pyx_RefNannyFinishContext();
29753 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29755 __Pyx_TraceDeclarations
29756 __Pyx_RefNannyDeclarations
29757 int __pyx_lineno = 0;
29758 const char *__pyx_filename = NULL;
29759 int __pyx_clineno = 0;
29760 __Pyx_RefNannySetupContext(
"__del__", 0);
29761 __Pyx_TraceCall(
"__del__", __pyx_f[2], 65, 0, __PYX_ERR(2, 65, __pyx_L1_error));
29762 __Pyx_INCREF(Py_None);
29763 __Pyx_GIVEREF(Py_None);
29764 __Pyx_GOTREF(__pyx_v_self->vos_advective);
29765 __Pyx_DECREF(((PyObject *)__pyx_v_self->vos_advective));
29766 __pyx_v_self->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29772 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vos_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29775 __Pyx_TraceReturn(Py_None, 0);
29776 __Pyx_RefNannyFinishContext();
29789 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_1__get__(PyObject *__pyx_v_self);
29790 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_1__get__(PyObject *__pyx_v_self) {
29791 PyObject *__pyx_r = 0;
29792 __Pyx_RefNannyDeclarations
29793 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29794 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29797 __Pyx_RefNannyFinishContext();
29801 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29802 PyObject *__pyx_r = NULL;
29803 __Pyx_TraceDeclarations
29804 __Pyx_RefNannyDeclarations
29805 int __pyx_lineno = 0;
29806 const char *__pyx_filename = NULL;
29807 int __pyx_clineno = 0;
29808 __Pyx_RefNannySetupContext(
"__get__", 0);
29809 __Pyx_TraceCall(
"__get__", __pyx_f[2], 66, 0, __PYX_ERR(2, 66, __pyx_L1_error));
29810 __Pyx_XDECREF(__pyx_r);
29811 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_diffusive));
29812 __pyx_r = ((PyObject *)__pyx_v_self->us_diffusive);
29817 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29820 __Pyx_XGIVEREF(__pyx_r);
29821 __Pyx_TraceReturn(__pyx_r, 0);
29822 __Pyx_RefNannyFinishContext();
29827 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29828 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29830 __Pyx_RefNannyDeclarations
29831 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29832 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29835 __Pyx_RefNannyFinishContext();
29839 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29841 __Pyx_TraceDeclarations
29842 __Pyx_RefNannyDeclarations
29843 PyObject *__pyx_t_1 = NULL;
29844 int __pyx_lineno = 0;
29845 const char *__pyx_filename = NULL;
29846 int __pyx_clineno = 0;
29847 __Pyx_RefNannySetupContext(
"__set__", 0);
29848 __Pyx_TraceCall(
"__set__", __pyx_f[2], 66, 0, __PYX_ERR(2, 66, __pyx_L1_error));
29849 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 66, __pyx_L1_error)
29850 __pyx_t_1 = __pyx_v_value;
29851 __Pyx_INCREF(__pyx_t_1);
29852 __Pyx_GIVEREF(__pyx_t_1);
29853 __Pyx_GOTREF(__pyx_v_self->us_diffusive);
29854 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_diffusive));
29855 __pyx_v_self->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29862 __Pyx_XDECREF(__pyx_t_1);
29863 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29866 __Pyx_TraceReturn(Py_None, 0);
29867 __Pyx_RefNannyFinishContext();
29872 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_5__del__(PyObject *__pyx_v_self);
29873 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_5__del__(PyObject *__pyx_v_self) {
29875 __Pyx_RefNannyDeclarations
29876 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
29877 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29880 __Pyx_RefNannyFinishContext();
29884 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29886 __Pyx_TraceDeclarations
29887 __Pyx_RefNannyDeclarations
29888 int __pyx_lineno = 0;
29889 const char *__pyx_filename = NULL;
29890 int __pyx_clineno = 0;
29891 __Pyx_RefNannySetupContext(
"__del__", 0);
29892 __Pyx_TraceCall(
"__del__", __pyx_f[2], 66, 0, __PYX_ERR(2, 66, __pyx_L1_error));
29893 __Pyx_INCREF(Py_None);
29894 __Pyx_GIVEREF(Py_None);
29895 __Pyx_GOTREF(__pyx_v_self->us_diffusive);
29896 __Pyx_DECREF(((PyObject *)__pyx_v_self->us_diffusive));
29897 __pyx_v_self->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
29903 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.us_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29906 __Pyx_TraceReturn(Py_None, 0);
29907 __Pyx_RefNannyFinishContext();
29920 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_1__get__(PyObject *__pyx_v_self);
29921 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_1__get__(PyObject *__pyx_v_self) {
29922 PyObject *__pyx_r = 0;
29923 __Pyx_RefNannyDeclarations
29924 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29925 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
29928 __Pyx_RefNannyFinishContext();
29932 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
29933 PyObject *__pyx_r = NULL;
29934 __Pyx_TraceDeclarations
29935 __Pyx_RefNannyDeclarations
29936 int __pyx_lineno = 0;
29937 const char *__pyx_filename = NULL;
29938 int __pyx_clineno = 0;
29939 __Pyx_RefNannySetupContext(
"__get__", 0);
29940 __Pyx_TraceCall(
"__get__", __pyx_f[2], 67, 0, __PYX_ERR(2, 67, __pyx_L1_error));
29941 __Pyx_XDECREF(__pyx_r);
29942 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_diffusive));
29943 __pyx_r = ((PyObject *)__pyx_v_self->vs_diffusive);
29948 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29951 __Pyx_XGIVEREF(__pyx_r);
29952 __Pyx_TraceReturn(__pyx_r, 0);
29953 __Pyx_RefNannyFinishContext();
29958 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
29959 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
29961 __Pyx_RefNannyDeclarations
29962 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
29963 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
29966 __Pyx_RefNannyFinishContext();
29970 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
29972 __Pyx_TraceDeclarations
29973 __Pyx_RefNannyDeclarations
29974 PyObject *__pyx_t_1 = NULL;
29975 int __pyx_lineno = 0;
29976 const char *__pyx_filename = NULL;
29977 int __pyx_clineno = 0;
29978 __Pyx_RefNannySetupContext(
"__set__", 0);
29979 __Pyx_TraceCall(
"__set__", __pyx_f[2], 67, 0, __PYX_ERR(2, 67, __pyx_L1_error));
29980 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 67, __pyx_L1_error)
29981 __pyx_t_1 = __pyx_v_value;
29982 __Pyx_INCREF(__pyx_t_1);
29983 __Pyx_GIVEREF(__pyx_t_1);
29984 __Pyx_GOTREF(__pyx_v_self->vs_diffusive);
29985 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_diffusive));
29986 __pyx_v_self->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
29993 __Pyx_XDECREF(__pyx_t_1);
29994 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29997 __Pyx_TraceReturn(Py_None, 0);
29998 __Pyx_RefNannyFinishContext();
30003 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_5__del__(PyObject *__pyx_v_self);
30004 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_5__del__(PyObject *__pyx_v_self) {
30006 __Pyx_RefNannyDeclarations
30007 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30008 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30011 __Pyx_RefNannyFinishContext();
30015 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30017 __Pyx_TraceDeclarations
30018 __Pyx_RefNannyDeclarations
30019 int __pyx_lineno = 0;
30020 const char *__pyx_filename = NULL;
30021 int __pyx_clineno = 0;
30022 __Pyx_RefNannySetupContext(
"__del__", 0);
30023 __Pyx_TraceCall(
"__del__", __pyx_f[2], 67, 0, __PYX_ERR(2, 67, __pyx_L1_error));
30024 __Pyx_INCREF(Py_None);
30025 __Pyx_GIVEREF(Py_None);
30026 __Pyx_GOTREF(__pyx_v_self->vs_diffusive);
30027 __Pyx_DECREF(((PyObject *)__pyx_v_self->vs_diffusive));
30028 __pyx_v_self->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30034 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.vs_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30037 __Pyx_TraceReturn(Py_None, 0);
30038 __Pyx_RefNannyFinishContext();
30051 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_1__get__(PyObject *__pyx_v_self);
30052 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_1__get__(PyObject *__pyx_v_self) {
30053 PyObject *__pyx_r = 0;
30054 __Pyx_RefNannyDeclarations
30055 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30056 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30059 __Pyx_RefNannyFinishContext();
30063 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30064 PyObject *__pyx_r = NULL;
30065 __Pyx_TraceDeclarations
30066 __Pyx_RefNannyDeclarations
30067 int __pyx_lineno = 0;
30068 const char *__pyx_filename = NULL;
30069 int __pyx_clineno = 0;
30070 __Pyx_RefNannySetupContext(
"__get__", 0);
30071 __Pyx_TraceCall(
"__get__", __pyx_f[2], 68, 0, __PYX_ERR(2, 68, __pyx_L1_error));
30072 __Pyx_XDECREF(__pyx_r);
30073 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_diffusive));
30074 __pyx_r = ((PyObject *)__pyx_v_self->ws_diffusive);
30079 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30082 __Pyx_XGIVEREF(__pyx_r);
30083 __Pyx_TraceReturn(__pyx_r, 0);
30084 __Pyx_RefNannyFinishContext();
30089 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30090 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30092 __Pyx_RefNannyDeclarations
30093 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30094 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30097 __Pyx_RefNannyFinishContext();
30101 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30103 __Pyx_TraceDeclarations
30104 __Pyx_RefNannyDeclarations
30105 PyObject *__pyx_t_1 = NULL;
30106 int __pyx_lineno = 0;
30107 const char *__pyx_filename = NULL;
30108 int __pyx_clineno = 0;
30109 __Pyx_RefNannySetupContext(
"__set__", 0);
30110 __Pyx_TraceCall(
"__set__", __pyx_f[2], 68, 0, __PYX_ERR(2, 68, __pyx_L1_error));
30111 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 68, __pyx_L1_error)
30112 __pyx_t_1 = __pyx_v_value;
30113 __Pyx_INCREF(__pyx_t_1);
30114 __Pyx_GIVEREF(__pyx_t_1);
30115 __Pyx_GOTREF(__pyx_v_self->ws_diffusive);
30116 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_diffusive));
30117 __pyx_v_self->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30124 __Pyx_XDECREF(__pyx_t_1);
30125 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30128 __Pyx_TraceReturn(Py_None, 0);
30129 __Pyx_RefNannyFinishContext();
30134 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_5__del__(PyObject *__pyx_v_self);
30135 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_5__del__(PyObject *__pyx_v_self) {
30137 __Pyx_RefNannyDeclarations
30138 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30139 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30142 __Pyx_RefNannyFinishContext();
30146 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30148 __Pyx_TraceDeclarations
30149 __Pyx_RefNannyDeclarations
30150 int __pyx_lineno = 0;
30151 const char *__pyx_filename = NULL;
30152 int __pyx_clineno = 0;
30153 __Pyx_RefNannySetupContext(
"__del__", 0);
30154 __Pyx_TraceCall(
"__del__", __pyx_f[2], 68, 0, __PYX_ERR(2, 68, __pyx_L1_error));
30155 __Pyx_INCREF(Py_None);
30156 __Pyx_GIVEREF(Py_None);
30157 __Pyx_GOTREF(__pyx_v_self->ws_diffusive);
30158 __Pyx_DECREF(((PyObject *)__pyx_v_self->ws_diffusive));
30159 __pyx_v_self->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30165 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.ws_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30168 __Pyx_TraceReturn(Py_None, 0);
30169 __Pyx_RefNannyFinishContext();
30182 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_1__get__(PyObject *__pyx_v_self);
30183 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_1__get__(PyObject *__pyx_v_self) {
30184 PyObject *__pyx_r = 0;
30185 __Pyx_RefNannyDeclarations
30186 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30187 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30190 __Pyx_RefNannyFinishContext();
30194 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30195 PyObject *__pyx_r = NULL;
30196 __Pyx_TraceDeclarations
30197 __Pyx_RefNannyDeclarations
30198 int __pyx_lineno = 0;
30199 const char *__pyx_filename = NULL;
30200 int __pyx_clineno = 0;
30201 __Pyx_RefNannySetupContext(
"__get__", 0);
30202 __Pyx_TraceCall(
"__get__", __pyx_f[2], 70, 0, __PYX_ERR(2, 70, __pyx_L1_error));
30203 __Pyx_XDECREF(__pyx_r);
30204 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
30205 __pyx_r = ((PyObject *)__pyx_v_self->pInit_dirichlet);
30210 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30213 __Pyx_XGIVEREF(__pyx_r);
30214 __Pyx_TraceReturn(__pyx_r, 0);
30215 __Pyx_RefNannyFinishContext();
30220 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30221 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30223 __Pyx_RefNannyDeclarations
30224 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30225 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30228 __Pyx_RefNannyFinishContext();
30232 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30234 __Pyx_TraceDeclarations
30235 __Pyx_RefNannyDeclarations
30236 PyObject *__pyx_t_1 = NULL;
30237 int __pyx_lineno = 0;
30238 const char *__pyx_filename = NULL;
30239 int __pyx_clineno = 0;
30240 __Pyx_RefNannySetupContext(
"__set__", 0);
30241 __Pyx_TraceCall(
"__set__", __pyx_f[2], 70, 0, __PYX_ERR(2, 70, __pyx_L1_error));
30242 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 70, __pyx_L1_error)
30243 __pyx_t_1 = __pyx_v_value;
30244 __Pyx_INCREF(__pyx_t_1);
30245 __Pyx_GIVEREF(__pyx_t_1);
30246 __Pyx_GOTREF(__pyx_v_self->pInit_dirichlet);
30247 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
30248 __pyx_v_self->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30255 __Pyx_XDECREF(__pyx_t_1);
30256 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30259 __Pyx_TraceReturn(Py_None, 0);
30260 __Pyx_RefNannyFinishContext();
30265 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_5__del__(PyObject *__pyx_v_self);
30266 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_5__del__(PyObject *__pyx_v_self) {
30268 __Pyx_RefNannyDeclarations
30269 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30270 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30273 __Pyx_RefNannyFinishContext();
30277 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30279 __Pyx_TraceDeclarations
30280 __Pyx_RefNannyDeclarations
30281 int __pyx_lineno = 0;
30282 const char *__pyx_filename = NULL;
30283 int __pyx_clineno = 0;
30284 __Pyx_RefNannySetupContext(
"__del__", 0);
30285 __Pyx_TraceCall(
"__del__", __pyx_f[2], 70, 0, __PYX_ERR(2, 70, __pyx_L1_error));
30286 __Pyx_INCREF(Py_None);
30287 __Pyx_GIVEREF(Py_None);
30288 __Pyx_GOTREF(__pyx_v_self->pInit_dirichlet);
30289 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
30290 __pyx_v_self->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30296 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30299 __Pyx_TraceReturn(Py_None, 0);
30300 __Pyx_RefNannyFinishContext();
30313 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_1__get__(PyObject *__pyx_v_self);
30314 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_1__get__(PyObject *__pyx_v_self) {
30315 PyObject *__pyx_r = 0;
30316 __Pyx_RefNannyDeclarations
30317 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30318 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30321 __Pyx_RefNannyFinishContext();
30325 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30326 PyObject *__pyx_r = NULL;
30327 __Pyx_TraceDeclarations
30328 __Pyx_RefNannyDeclarations
30329 int __pyx_lineno = 0;
30330 const char *__pyx_filename = NULL;
30331 int __pyx_clineno = 0;
30332 __Pyx_RefNannySetupContext(
"__get__", 0);
30333 __Pyx_TraceCall(
"__get__", __pyx_f[2], 71, 0, __PYX_ERR(2, 71, __pyx_L1_error));
30334 __Pyx_XDECREF(__pyx_r);
30335 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
30336 __pyx_r = ((PyObject *)__pyx_v_self->pInc_dirichlet);
30341 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30344 __Pyx_XGIVEREF(__pyx_r);
30345 __Pyx_TraceReturn(__pyx_r, 0);
30346 __Pyx_RefNannyFinishContext();
30351 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30352 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30354 __Pyx_RefNannyDeclarations
30355 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30356 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30359 __Pyx_RefNannyFinishContext();
30363 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30365 __Pyx_TraceDeclarations
30366 __Pyx_RefNannyDeclarations
30367 PyObject *__pyx_t_1 = NULL;
30368 int __pyx_lineno = 0;
30369 const char *__pyx_filename = NULL;
30370 int __pyx_clineno = 0;
30371 __Pyx_RefNannySetupContext(
"__set__", 0);
30372 __Pyx_TraceCall(
"__set__", __pyx_f[2], 71, 0, __PYX_ERR(2, 71, __pyx_L1_error));
30373 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 71, __pyx_L1_error)
30374 __pyx_t_1 = __pyx_v_value;
30375 __Pyx_INCREF(__pyx_t_1);
30376 __Pyx_GIVEREF(__pyx_t_1);
30377 __Pyx_GOTREF(__pyx_v_self->pInc_dirichlet);
30378 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
30379 __pyx_v_self->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30386 __Pyx_XDECREF(__pyx_t_1);
30387 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30390 __Pyx_TraceReturn(Py_None, 0);
30391 __Pyx_RefNannyFinishContext();
30396 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_5__del__(PyObject *__pyx_v_self);
30397 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_5__del__(PyObject *__pyx_v_self) {
30399 __Pyx_RefNannyDeclarations
30400 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30401 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30404 __Pyx_RefNannyFinishContext();
30408 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30410 __Pyx_TraceDeclarations
30411 __Pyx_RefNannyDeclarations
30412 int __pyx_lineno = 0;
30413 const char *__pyx_filename = NULL;
30414 int __pyx_clineno = 0;
30415 __Pyx_RefNannySetupContext(
"__del__", 0);
30416 __Pyx_TraceCall(
"__del__", __pyx_f[2], 71, 0, __PYX_ERR(2, 71, __pyx_L1_error));
30417 __Pyx_INCREF(Py_None);
30418 __Pyx_GIVEREF(Py_None);
30419 __Pyx_GOTREF(__pyx_v_self->pInc_dirichlet);
30420 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
30421 __pyx_v_self->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30427 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30430 __Pyx_TraceReturn(Py_None, 0);
30431 __Pyx_RefNannyFinishContext();
30444 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_1__get__(PyObject *__pyx_v_self);
30445 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_1__get__(PyObject *__pyx_v_self) {
30446 PyObject *__pyx_r = 0;
30447 __Pyx_RefNannyDeclarations
30448 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30449 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30452 __Pyx_RefNannyFinishContext();
30456 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30457 PyObject *__pyx_r = NULL;
30458 __Pyx_TraceDeclarations
30459 __Pyx_RefNannyDeclarations
30460 int __pyx_lineno = 0;
30461 const char *__pyx_filename = NULL;
30462 int __pyx_clineno = 0;
30463 __Pyx_RefNannySetupContext(
"__get__", 0);
30464 __Pyx_TraceCall(
"__get__", __pyx_f[2], 72, 0, __PYX_ERR(2, 72, __pyx_L1_error));
30465 __Pyx_XDECREF(__pyx_r);
30466 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_advective));
30467 __pyx_r = ((PyObject *)__pyx_v_self->pInit_advective);
30472 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30475 __Pyx_XGIVEREF(__pyx_r);
30476 __Pyx_TraceReturn(__pyx_r, 0);
30477 __Pyx_RefNannyFinishContext();
30482 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30483 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30485 __Pyx_RefNannyDeclarations
30486 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30487 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30490 __Pyx_RefNannyFinishContext();
30494 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30496 __Pyx_TraceDeclarations
30497 __Pyx_RefNannyDeclarations
30498 PyObject *__pyx_t_1 = NULL;
30499 int __pyx_lineno = 0;
30500 const char *__pyx_filename = NULL;
30501 int __pyx_clineno = 0;
30502 __Pyx_RefNannySetupContext(
"__set__", 0);
30503 __Pyx_TraceCall(
"__set__", __pyx_f[2], 72, 0, __PYX_ERR(2, 72, __pyx_L1_error));
30504 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 72, __pyx_L1_error)
30505 __pyx_t_1 = __pyx_v_value;
30506 __Pyx_INCREF(__pyx_t_1);
30507 __Pyx_GIVEREF(__pyx_t_1);
30508 __Pyx_GOTREF(__pyx_v_self->pInit_advective);
30509 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_advective));
30510 __pyx_v_self->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30517 __Pyx_XDECREF(__pyx_t_1);
30518 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30521 __Pyx_TraceReturn(Py_None, 0);
30522 __Pyx_RefNannyFinishContext();
30527 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_5__del__(PyObject *__pyx_v_self);
30528 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_5__del__(PyObject *__pyx_v_self) {
30530 __Pyx_RefNannyDeclarations
30531 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30532 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30535 __Pyx_RefNannyFinishContext();
30539 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30541 __Pyx_TraceDeclarations
30542 __Pyx_RefNannyDeclarations
30543 int __pyx_lineno = 0;
30544 const char *__pyx_filename = NULL;
30545 int __pyx_clineno = 0;
30546 __Pyx_RefNannySetupContext(
"__del__", 0);
30547 __Pyx_TraceCall(
"__del__", __pyx_f[2], 72, 0, __PYX_ERR(2, 72, __pyx_L1_error));
30548 __Pyx_INCREF(Py_None);
30549 __Pyx_GIVEREF(Py_None);
30550 __Pyx_GOTREF(__pyx_v_self->pInit_advective);
30551 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_advective));
30552 __pyx_v_self->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30558 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30561 __Pyx_TraceReturn(Py_None, 0);
30562 __Pyx_RefNannyFinishContext();
30575 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_1__get__(PyObject *__pyx_v_self);
30576 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_1__get__(PyObject *__pyx_v_self) {
30577 PyObject *__pyx_r = 0;
30578 __Pyx_RefNannyDeclarations
30579 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30580 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30583 __Pyx_RefNannyFinishContext();
30587 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30588 PyObject *__pyx_r = NULL;
30589 __Pyx_TraceDeclarations
30590 __Pyx_RefNannyDeclarations
30591 int __pyx_lineno = 0;
30592 const char *__pyx_filename = NULL;
30593 int __pyx_clineno = 0;
30594 __Pyx_RefNannySetupContext(
"__get__", 0);
30595 __Pyx_TraceCall(
"__get__", __pyx_f[2], 73, 0, __PYX_ERR(2, 73, __pyx_L1_error));
30596 __Pyx_XDECREF(__pyx_r);
30597 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_advective));
30598 __pyx_r = ((PyObject *)__pyx_v_self->pInc_advective);
30603 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30606 __Pyx_XGIVEREF(__pyx_r);
30607 __Pyx_TraceReturn(__pyx_r, 0);
30608 __Pyx_RefNannyFinishContext();
30613 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30614 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30616 __Pyx_RefNannyDeclarations
30617 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30618 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30621 __Pyx_RefNannyFinishContext();
30625 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30627 __Pyx_TraceDeclarations
30628 __Pyx_RefNannyDeclarations
30629 PyObject *__pyx_t_1 = NULL;
30630 int __pyx_lineno = 0;
30631 const char *__pyx_filename = NULL;
30632 int __pyx_clineno = 0;
30633 __Pyx_RefNannySetupContext(
"__set__", 0);
30634 __Pyx_TraceCall(
"__set__", __pyx_f[2], 73, 0, __PYX_ERR(2, 73, __pyx_L1_error));
30635 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 73, __pyx_L1_error)
30636 __pyx_t_1 = __pyx_v_value;
30637 __Pyx_INCREF(__pyx_t_1);
30638 __Pyx_GIVEREF(__pyx_t_1);
30639 __Pyx_GOTREF(__pyx_v_self->pInc_advective);
30640 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_advective));
30641 __pyx_v_self->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30648 __Pyx_XDECREF(__pyx_t_1);
30649 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30652 __Pyx_TraceReturn(Py_None, 0);
30653 __Pyx_RefNannyFinishContext();
30658 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_5__del__(PyObject *__pyx_v_self);
30659 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_5__del__(PyObject *__pyx_v_self) {
30661 __Pyx_RefNannyDeclarations
30662 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30663 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30666 __Pyx_RefNannyFinishContext();
30670 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30672 __Pyx_TraceDeclarations
30673 __Pyx_RefNannyDeclarations
30674 int __pyx_lineno = 0;
30675 const char *__pyx_filename = NULL;
30676 int __pyx_clineno = 0;
30677 __Pyx_RefNannySetupContext(
"__del__", 0);
30678 __Pyx_TraceCall(
"__del__", __pyx_f[2], 73, 0, __PYX_ERR(2, 73, __pyx_L1_error));
30679 __Pyx_INCREF(Py_None);
30680 __Pyx_GIVEREF(Py_None);
30681 __Pyx_GOTREF(__pyx_v_self->pInc_advective);
30682 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_advective));
30683 __pyx_v_self->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30689 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30692 __Pyx_TraceReturn(Py_None, 0);
30693 __Pyx_RefNannyFinishContext();
30706 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_1__get__(PyObject *__pyx_v_self);
30707 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_1__get__(PyObject *__pyx_v_self) {
30708 PyObject *__pyx_r = 0;
30709 __Pyx_RefNannyDeclarations
30710 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30711 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30714 __Pyx_RefNannyFinishContext();
30718 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30719 PyObject *__pyx_r = NULL;
30720 __Pyx_TraceDeclarations
30721 __Pyx_RefNannyDeclarations
30722 int __pyx_lineno = 0;
30723 const char *__pyx_filename = NULL;
30724 int __pyx_clineno = 0;
30725 __Pyx_RefNannySetupContext(
"__get__", 0);
30726 __Pyx_TraceCall(
"__get__", __pyx_f[2], 74, 0, __PYX_ERR(2, 74, __pyx_L1_error));
30727 __Pyx_XDECREF(__pyx_r);
30728 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_diffusive));
30729 __pyx_r = ((PyObject *)__pyx_v_self->pInit_diffusive);
30734 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30737 __Pyx_XGIVEREF(__pyx_r);
30738 __Pyx_TraceReturn(__pyx_r, 0);
30739 __Pyx_RefNannyFinishContext();
30744 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30745 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30747 __Pyx_RefNannyDeclarations
30748 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30749 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30752 __Pyx_RefNannyFinishContext();
30756 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30758 __Pyx_TraceDeclarations
30759 __Pyx_RefNannyDeclarations
30760 PyObject *__pyx_t_1 = NULL;
30761 int __pyx_lineno = 0;
30762 const char *__pyx_filename = NULL;
30763 int __pyx_clineno = 0;
30764 __Pyx_RefNannySetupContext(
"__set__", 0);
30765 __Pyx_TraceCall(
"__set__", __pyx_f[2], 74, 0, __PYX_ERR(2, 74, __pyx_L1_error));
30766 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 74, __pyx_L1_error)
30767 __pyx_t_1 = __pyx_v_value;
30768 __Pyx_INCREF(__pyx_t_1);
30769 __Pyx_GIVEREF(__pyx_t_1);
30770 __Pyx_GOTREF(__pyx_v_self->pInit_diffusive);
30771 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_diffusive));
30772 __pyx_v_self->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30779 __Pyx_XDECREF(__pyx_t_1);
30780 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30783 __Pyx_TraceReturn(Py_None, 0);
30784 __Pyx_RefNannyFinishContext();
30789 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_5__del__(PyObject *__pyx_v_self);
30790 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_5__del__(PyObject *__pyx_v_self) {
30792 __Pyx_RefNannyDeclarations
30793 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30794 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30797 __Pyx_RefNannyFinishContext();
30801 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30803 __Pyx_TraceDeclarations
30804 __Pyx_RefNannyDeclarations
30805 int __pyx_lineno = 0;
30806 const char *__pyx_filename = NULL;
30807 int __pyx_clineno = 0;
30808 __Pyx_RefNannySetupContext(
"__del__", 0);
30809 __Pyx_TraceCall(
"__del__", __pyx_f[2], 74, 0, __PYX_ERR(2, 74, __pyx_L1_error));
30810 __Pyx_INCREF(Py_None);
30811 __Pyx_GIVEREF(Py_None);
30812 __Pyx_GOTREF(__pyx_v_self->pInit_diffusive);
30813 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInit_diffusive));
30814 __pyx_v_self->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30820 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInit_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30823 __Pyx_TraceReturn(Py_None, 0);
30824 __Pyx_RefNannyFinishContext();
30837 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_1__get__(PyObject *__pyx_v_self);
30838 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_1__get__(PyObject *__pyx_v_self) {
30839 PyObject *__pyx_r = 0;
30840 __Pyx_RefNannyDeclarations
30841 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30842 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30845 __Pyx_RefNannyFinishContext();
30849 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30850 PyObject *__pyx_r = NULL;
30851 __Pyx_TraceDeclarations
30852 __Pyx_RefNannyDeclarations
30853 int __pyx_lineno = 0;
30854 const char *__pyx_filename = NULL;
30855 int __pyx_clineno = 0;
30856 __Pyx_RefNannySetupContext(
"__get__", 0);
30857 __Pyx_TraceCall(
"__get__", __pyx_f[2], 75, 0, __PYX_ERR(2, 75, __pyx_L1_error));
30858 __Pyx_XDECREF(__pyx_r);
30859 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_diffusive));
30860 __pyx_r = ((PyObject *)__pyx_v_self->pInc_diffusive);
30865 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30868 __Pyx_XGIVEREF(__pyx_r);
30869 __Pyx_TraceReturn(__pyx_r, 0);
30870 __Pyx_RefNannyFinishContext();
30875 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
30876 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
30878 __Pyx_RefNannyDeclarations
30879 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
30880 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
30883 __Pyx_RefNannyFinishContext();
30887 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
30889 __Pyx_TraceDeclarations
30890 __Pyx_RefNannyDeclarations
30891 PyObject *__pyx_t_1 = NULL;
30892 int __pyx_lineno = 0;
30893 const char *__pyx_filename = NULL;
30894 int __pyx_clineno = 0;
30895 __Pyx_RefNannySetupContext(
"__set__", 0);
30896 __Pyx_TraceCall(
"__set__", __pyx_f[2], 75, 0, __PYX_ERR(2, 75, __pyx_L1_error));
30897 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 75, __pyx_L1_error)
30898 __pyx_t_1 = __pyx_v_value;
30899 __Pyx_INCREF(__pyx_t_1);
30900 __Pyx_GIVEREF(__pyx_t_1);
30901 __Pyx_GOTREF(__pyx_v_self->pInc_diffusive);
30902 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_diffusive));
30903 __pyx_v_self->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
30910 __Pyx_XDECREF(__pyx_t_1);
30911 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30914 __Pyx_TraceReturn(Py_None, 0);
30915 __Pyx_RefNannyFinishContext();
30920 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_5__del__(PyObject *__pyx_v_self);
30921 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_5__del__(PyObject *__pyx_v_self) {
30923 __Pyx_RefNannyDeclarations
30924 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
30925 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30928 __Pyx_RefNannyFinishContext();
30932 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30934 __Pyx_TraceDeclarations
30935 __Pyx_RefNannyDeclarations
30936 int __pyx_lineno = 0;
30937 const char *__pyx_filename = NULL;
30938 int __pyx_clineno = 0;
30939 __Pyx_RefNannySetupContext(
"__del__", 0);
30940 __Pyx_TraceCall(
"__del__", __pyx_f[2], 75, 0, __PYX_ERR(2, 75, __pyx_L1_error));
30941 __Pyx_INCREF(Py_None);
30942 __Pyx_GIVEREF(Py_None);
30943 __Pyx_GOTREF(__pyx_v_self->pInc_diffusive);
30944 __Pyx_DECREF(((PyObject *)__pyx_v_self->pInc_diffusive));
30945 __pyx_v_self->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
30951 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.pInc_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30954 __Pyx_TraceReturn(Py_None, 0);
30955 __Pyx_RefNannyFinishContext();
30968 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_1__get__(PyObject *__pyx_v_self);
30969 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_1__get__(PyObject *__pyx_v_self) {
30970 PyObject *__pyx_r = 0;
30971 __Pyx_RefNannyDeclarations
30972 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
30973 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
30976 __Pyx_RefNannyFinishContext();
30980 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
30981 PyObject *__pyx_r = NULL;
30982 __Pyx_TraceDeclarations
30983 __Pyx_RefNannyDeclarations
30984 int __pyx_lineno = 0;
30985 const char *__pyx_filename = NULL;
30986 int __pyx_clineno = 0;
30987 __Pyx_RefNannySetupContext(
"__get__", 0);
30988 __Pyx_TraceCall(
"__get__", __pyx_f[2], 77, 0, __PYX_ERR(2, 77, __pyx_L1_error));
30989 __Pyx_XDECREF(__pyx_r);
30990 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
30991 __pyx_r = ((PyObject *)__pyx_v_self->clsvof_dirichlet);
30996 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_dirichlet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
30999 __Pyx_XGIVEREF(__pyx_r);
31000 __Pyx_TraceReturn(__pyx_r, 0);
31001 __Pyx_RefNannyFinishContext();
31006 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
31007 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
31009 __Pyx_RefNannyDeclarations
31010 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
31011 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
31014 __Pyx_RefNannyFinishContext();
31018 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
31020 __Pyx_TraceDeclarations
31021 __Pyx_RefNannyDeclarations
31022 PyObject *__pyx_t_1 = NULL;
31023 int __pyx_lineno = 0;
31024 const char *__pyx_filename = NULL;
31025 int __pyx_clineno = 0;
31026 __Pyx_RefNannySetupContext(
"__set__", 0);
31027 __Pyx_TraceCall(
"__set__", __pyx_f[2], 77, 0, __PYX_ERR(2, 77, __pyx_L1_error));
31028 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 77, __pyx_L1_error)
31029 __pyx_t_1 = __pyx_v_value;
31030 __Pyx_INCREF(__pyx_t_1);
31031 __Pyx_GIVEREF(__pyx_t_1);
31032 __Pyx_GOTREF(__pyx_v_self->clsvof_dirichlet);
31033 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
31034 __pyx_v_self->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
31041 __Pyx_XDECREF(__pyx_t_1);
31042 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_dirichlet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31045 __Pyx_TraceReturn(Py_None, 0);
31046 __Pyx_RefNannyFinishContext();
31051 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_5__del__(PyObject *__pyx_v_self);
31052 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_5__del__(PyObject *__pyx_v_self) {
31054 __Pyx_RefNannyDeclarations
31055 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
31056 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31059 __Pyx_RefNannyFinishContext();
31063 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31065 __Pyx_TraceDeclarations
31066 __Pyx_RefNannyDeclarations
31067 int __pyx_lineno = 0;
31068 const char *__pyx_filename = NULL;
31069 int __pyx_clineno = 0;
31070 __Pyx_RefNannySetupContext(
"__del__", 0);
31071 __Pyx_TraceCall(
"__del__", __pyx_f[2], 77, 0, __PYX_ERR(2, 77, __pyx_L1_error));
31072 __Pyx_INCREF(Py_None);
31073 __Pyx_GIVEREF(Py_None);
31074 __Pyx_GOTREF(__pyx_v_self->clsvof_dirichlet);
31075 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
31076 __pyx_v_self->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
31082 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_dirichlet.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31085 __Pyx_TraceReturn(Py_None, 0);
31086 __Pyx_RefNannyFinishContext();
31099 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_1__get__(PyObject *__pyx_v_self);
31100 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_1__get__(PyObject *__pyx_v_self) {
31101 PyObject *__pyx_r = 0;
31102 __Pyx_RefNannyDeclarations
31103 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
31104 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31107 __Pyx_RefNannyFinishContext();
31111 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31112 PyObject *__pyx_r = NULL;
31113 __Pyx_TraceDeclarations
31114 __Pyx_RefNannyDeclarations
31115 int __pyx_lineno = 0;
31116 const char *__pyx_filename = NULL;
31117 int __pyx_clineno = 0;
31118 __Pyx_RefNannySetupContext(
"__get__", 0);
31119 __Pyx_TraceCall(
"__get__", __pyx_f[2], 78, 0, __PYX_ERR(2, 78, __pyx_L1_error));
31120 __Pyx_XDECREF(__pyx_r);
31121 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_advective));
31122 __pyx_r = ((PyObject *)__pyx_v_self->clsvof_advective);
31127 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_advective.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31130 __Pyx_XGIVEREF(__pyx_r);
31131 __Pyx_TraceReturn(__pyx_r, 0);
31132 __Pyx_RefNannyFinishContext();
31137 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
31138 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
31140 __Pyx_RefNannyDeclarations
31141 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
31142 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
31145 __Pyx_RefNannyFinishContext();
31149 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
31151 __Pyx_TraceDeclarations
31152 __Pyx_RefNannyDeclarations
31153 PyObject *__pyx_t_1 = NULL;
31154 int __pyx_lineno = 0;
31155 const char *__pyx_filename = NULL;
31156 int __pyx_clineno = 0;
31157 __Pyx_RefNannySetupContext(
"__set__", 0);
31158 __Pyx_TraceCall(
"__set__", __pyx_f[2], 78, 0, __PYX_ERR(2, 78, __pyx_L1_error));
31159 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 78, __pyx_L1_error)
31160 __pyx_t_1 = __pyx_v_value;
31161 __Pyx_INCREF(__pyx_t_1);
31162 __Pyx_GIVEREF(__pyx_t_1);
31163 __Pyx_GOTREF(__pyx_v_self->clsvof_advective);
31164 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_advective));
31165 __pyx_v_self->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
31172 __Pyx_XDECREF(__pyx_t_1);
31173 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_advective.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31176 __Pyx_TraceReturn(Py_None, 0);
31177 __Pyx_RefNannyFinishContext();
31182 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_5__del__(PyObject *__pyx_v_self);
31183 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_5__del__(PyObject *__pyx_v_self) {
31185 __Pyx_RefNannyDeclarations
31186 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
31187 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31190 __Pyx_RefNannyFinishContext();
31194 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31196 __Pyx_TraceDeclarations
31197 __Pyx_RefNannyDeclarations
31198 int __pyx_lineno = 0;
31199 const char *__pyx_filename = NULL;
31200 int __pyx_clineno = 0;
31201 __Pyx_RefNannySetupContext(
"__del__", 0);
31202 __Pyx_TraceCall(
"__del__", __pyx_f[2], 78, 0, __PYX_ERR(2, 78, __pyx_L1_error));
31203 __Pyx_INCREF(Py_None);
31204 __Pyx_GIVEREF(Py_None);
31205 __Pyx_GOTREF(__pyx_v_self->clsvof_advective);
31206 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_advective));
31207 __pyx_v_self->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
31213 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_advective.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31216 __Pyx_TraceReturn(Py_None, 0);
31217 __Pyx_RefNannyFinishContext();
31230 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_1__get__(PyObject *__pyx_v_self);
31231 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_1__get__(PyObject *__pyx_v_self) {
31232 PyObject *__pyx_r = 0;
31233 __Pyx_RefNannyDeclarations
31234 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
31235 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31238 __Pyx_RefNannyFinishContext();
31242 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31243 PyObject *__pyx_r = NULL;
31244 __Pyx_TraceDeclarations
31245 __Pyx_RefNannyDeclarations
31246 int __pyx_lineno = 0;
31247 const char *__pyx_filename = NULL;
31248 int __pyx_clineno = 0;
31249 __Pyx_RefNannySetupContext(
"__get__", 0);
31250 __Pyx_TraceCall(
"__get__", __pyx_f[2], 79, 0, __PYX_ERR(2, 79, __pyx_L1_error));
31251 __Pyx_XDECREF(__pyx_r);
31252 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
31253 __pyx_r = ((PyObject *)__pyx_v_self->clsvof_diffusive);
31258 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_diffusive.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31261 __Pyx_XGIVEREF(__pyx_r);
31262 __Pyx_TraceReturn(__pyx_r, 0);
31263 __Pyx_RefNannyFinishContext();
31268 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
31269 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
31271 __Pyx_RefNannyDeclarations
31272 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
31273 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v_value));
31276 __Pyx_RefNannyFinishContext();
31280 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v_value) {
31282 __Pyx_TraceDeclarations
31283 __Pyx_RefNannyDeclarations
31284 PyObject *__pyx_t_1 = NULL;
31285 int __pyx_lineno = 0;
31286 const char *__pyx_filename = NULL;
31287 int __pyx_clineno = 0;
31288 __Pyx_RefNannySetupContext(
"__set__", 0);
31289 __Pyx_TraceCall(
"__set__", __pyx_f[2], 79, 0, __PYX_ERR(2, 79, __pyx_L1_error));
31290 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(2, 79, __pyx_L1_error)
31291 __pyx_t_1 = __pyx_v_value;
31292 __Pyx_INCREF(__pyx_t_1);
31293 __Pyx_GIVEREF(__pyx_t_1);
31294 __Pyx_GOTREF(__pyx_v_self->clsvof_diffusive);
31295 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
31296 __pyx_v_self->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
31303 __Pyx_XDECREF(__pyx_t_1);
31304 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_diffusive.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31307 __Pyx_TraceReturn(Py_None, 0);
31308 __Pyx_RefNannyFinishContext();
31313 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_5__del__(PyObject *__pyx_v_self);
31314 static int __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_5__del__(PyObject *__pyx_v_self) {
31316 __Pyx_RefNannyDeclarations
31317 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
31318 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31321 __Pyx_RefNannyFinishContext();
31325 static int __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31327 __Pyx_TraceDeclarations
31328 __Pyx_RefNannyDeclarations
31329 int __pyx_lineno = 0;
31330 const char *__pyx_filename = NULL;
31331 int __pyx_clineno = 0;
31332 __Pyx_RefNannySetupContext(
"__del__", 0);
31333 __Pyx_TraceCall(
"__del__", __pyx_f[2], 79, 0, __PYX_ERR(2, 79, __pyx_L1_error));
31334 __Pyx_INCREF(Py_None);
31335 __Pyx_GIVEREF(Py_None);
31336 __Pyx_GOTREF(__pyx_v_self->clsvof_diffusive);
31337 __Pyx_DECREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
31338 __pyx_v_self->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None);
31344 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.clsvof_diffusive.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
31347 __Pyx_TraceReturn(Py_None, 0);
31348 __Pyx_RefNannyFinishContext();
31359 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
31360 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__[] =
"BC_RANS.__reduce_cython__(self)";
31361 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__};
31362 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
31363 PyObject *__pyx_r = 0;
31364 __Pyx_RefNannyDeclarations
31365 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
31366 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self));
31369 __Pyx_RefNannyFinishContext();
31373 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self) {
31374 PyObject *__pyx_v_state = 0;
31375 PyObject *__pyx_v__dict = 0;
31376 int __pyx_v_use_setstate;
31377 PyObject *__pyx_r = NULL;
31378 __Pyx_TraceDeclarations
31379 __Pyx_RefNannyDeclarations
31380 PyObject *__pyx_t_1 = NULL;
31381 PyObject *__pyx_t_2 = NULL;
31382 PyObject *__pyx_t_3 = NULL;
31383 PyObject *__pyx_t_4 = NULL;
31384 PyObject *__pyx_t_5 = NULL;
31385 PyObject *__pyx_t_6 = NULL;
31386 PyObject *__pyx_t_7 = NULL;
31387 PyObject *__pyx_t_8 = NULL;
31388 PyObject *__pyx_t_9 = NULL;
31392 int __pyx_lineno = 0;
31393 const char *__pyx_filename = NULL;
31394 int __pyx_clineno = 0;
31395 __Pyx_TraceFrameInit(__pyx_codeobj__88)
31396 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
31397 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
31406 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->__pyx_base._b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
31407 __Pyx_GOTREF(__pyx_t_1);
31408 __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->body_python_h, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
31409 __Pyx_GOTREF(__pyx_t_2);
31410 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->body_python_last_pos, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
31411 __Pyx_GOTREF(__pyx_t_3);
31412 __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_self->body_python_rot_matrix, 2, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
31413 __Pyx_GOTREF(__pyx_t_4);
31414 __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->f);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
31415 __Pyx_GOTREF(__pyx_t_5);
31416 __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->__pyx_base.nd);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
31417 __Pyx_GOTREF(__pyx_t_6);
31418 __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_self->wind_speed, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
31419 __Pyx_GOTREF(__pyx_t_7);
31420 __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_self->zero_array, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 5, __pyx_L1_error)
31421 __Pyx_GOTREF(__pyx_t_8);
31422 __pyx_t_9 = PyTuple_New(61);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 5, __pyx_L1_error)
31423 __Pyx_GOTREF(__pyx_t_9);
31424 __Pyx_INCREF(__pyx_v_self->__pyx_base.BC_type);
31425 __Pyx_GIVEREF(__pyx_v_self->__pyx_base.BC_type);
31426 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_self->__pyx_base.BC_type);
31427 __Pyx_INCREF(__pyx_v_self->__pyx_base.Shape);
31428 __Pyx_GIVEREF(__pyx_v_self->__pyx_base.Shape);
31429 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_self->__pyx_base.Shape);
31430 __Pyx_GIVEREF(__pyx_t_1);
31431 PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_1);
31432 __Pyx_INCREF(__pyx_v_self->body);
31433 __Pyx_GIVEREF(__pyx_v_self->body);
31434 PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_v_self->body);
31435 __Pyx_GIVEREF(__pyx_t_2);
31436 PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_t_2);
31437 __Pyx_GIVEREF(__pyx_t_3);
31438 PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
31439 __Pyx_GIVEREF(__pyx_t_4);
31440 PyTuple_SET_ITEM(__pyx_t_9, 6, __pyx_t_4);
31441 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_advective));
31442 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->clsvof_advective));
31443 PyTuple_SET_ITEM(__pyx_t_9, 7, ((PyObject *)__pyx_v_self->clsvof_advective));
31444 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
31445 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->clsvof_diffusive));
31446 PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_v_self->clsvof_diffusive));
31447 __Pyx_INCREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
31448 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->clsvof_dirichlet));
31449 PyTuple_SET_ITEM(__pyx_t_9, 9, ((PyObject *)__pyx_v_self->clsvof_dirichlet));
31450 __Pyx_INCREF(__pyx_v_self->__pyx_base.ct);
31451 __Pyx_GIVEREF(__pyx_v_self->__pyx_base.ct);
31452 PyTuple_SET_ITEM(__pyx_t_9, 10, __pyx_v_self->__pyx_base.ct);
31453 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_advective));
31454 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dissipation_advective));
31455 PyTuple_SET_ITEM(__pyx_t_9, 11, ((PyObject *)__pyx_v_self->dissipation_advective));
31456 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
31457 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dissipation_diffusive));
31458 PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_v_self->dissipation_diffusive));
31459 __Pyx_INCREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
31460 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->dissipation_dirichlet));
31461 PyTuple_SET_ITEM(__pyx_t_9, 13, ((PyObject *)__pyx_v_self->dissipation_dirichlet));
31462 __Pyx_GIVEREF(__pyx_t_5);
31463 PyTuple_SET_ITEM(__pyx_t_9, 14, __pyx_t_5);
31464 __Pyx_INCREF(((PyObject *)__pyx_v_self->hx_dirichlet));
31465 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->hx_dirichlet));
31466 PyTuple_SET_ITEM(__pyx_t_9, 15, ((PyObject *)__pyx_v_self->hx_dirichlet));
31467 __Pyx_INCREF(((PyObject *)__pyx_v_self->hy_dirichlet));
31468 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->hy_dirichlet));
31469 PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_v_self->hy_dirichlet));
31470 __Pyx_INCREF(((PyObject *)__pyx_v_self->hz_dirichlet));
31471 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->hz_dirichlet));
31472 PyTuple_SET_ITEM(__pyx_t_9, 17, ((PyObject *)__pyx_v_self->hz_dirichlet));
31473 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_advective));
31474 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->k_advective));
31475 PyTuple_SET_ITEM(__pyx_t_9, 18, ((PyObject *)__pyx_v_self->k_advective));
31476 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_diffusive));
31477 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->k_diffusive));
31478 PyTuple_SET_ITEM(__pyx_t_9, 19, ((PyObject *)__pyx_v_self->k_diffusive));
31479 __Pyx_INCREF(((PyObject *)__pyx_v_self->k_dirichlet));
31480 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->k_dirichlet));
31481 PyTuple_SET_ITEM(__pyx_t_9, 20, ((PyObject *)__pyx_v_self->k_dirichlet));
31482 __Pyx_INCREF(__pyx_v_self->__pyx_base.name);
31483 __Pyx_GIVEREF(__pyx_v_self->__pyx_base.name);
31484 PyTuple_SET_ITEM(__pyx_t_9, 21, __pyx_v_self->__pyx_base.name);
31485 __Pyx_GIVEREF(__pyx_t_6);
31486 PyTuple_SET_ITEM(__pyx_t_9, 22, __pyx_t_6);
31487 __Pyx_INCREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
31488 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
31489 PyTuple_SET_ITEM(__pyx_t_9, 23, ((PyObject *)__pyx_v_self->pAddedMass_dirichlet));
31490 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_advective));
31491 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInc_advective));
31492 PyTuple_SET_ITEM(__pyx_t_9, 24, ((PyObject *)__pyx_v_self->pInc_advective));
31493 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_diffusive));
31494 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInc_diffusive));
31495 PyTuple_SET_ITEM(__pyx_t_9, 25, ((PyObject *)__pyx_v_self->pInc_diffusive));
31496 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
31497 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInc_dirichlet));
31498 PyTuple_SET_ITEM(__pyx_t_9, 26, ((PyObject *)__pyx_v_self->pInc_dirichlet));
31499 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_advective));
31500 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInit_advective));
31501 PyTuple_SET_ITEM(__pyx_t_9, 27, ((PyObject *)__pyx_v_self->pInit_advective));
31502 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_diffusive));
31503 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInit_diffusive));
31504 PyTuple_SET_ITEM(__pyx_t_9, 28, ((PyObject *)__pyx_v_self->pInit_diffusive));
31505 __Pyx_INCREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
31506 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->pInit_dirichlet));
31507 PyTuple_SET_ITEM(__pyx_t_9, 29, ((PyObject *)__pyx_v_self->pInit_dirichlet));
31508 __Pyx_INCREF(((PyObject *)__pyx_v_self->p_advective));
31509 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->p_advective));
31510 PyTuple_SET_ITEM(__pyx_t_9, 30, ((PyObject *)__pyx_v_self->p_advective));
31511 __Pyx_INCREF(((PyObject *)__pyx_v_self->p_dirichlet));
31512 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->p_dirichlet));
31513 PyTuple_SET_ITEM(__pyx_t_9, 31, ((PyObject *)__pyx_v_self->p_dirichlet));
31514 __Pyx_INCREF(((PyObject *)__pyx_v_self->phi_dirichlet));
31515 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->phi_dirichlet));
31516 PyTuple_SET_ITEM(__pyx_t_9, 32, ((PyObject *)__pyx_v_self->phi_dirichlet));
31517 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_advective));
31518 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->u_advective));
31519 PyTuple_SET_ITEM(__pyx_t_9, 33, ((PyObject *)__pyx_v_self->u_advective));
31520 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_diffusive));
31521 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->u_diffusive));
31522 PyTuple_SET_ITEM(__pyx_t_9, 34, ((PyObject *)__pyx_v_self->u_diffusive));
31523 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_dirichlet));
31524 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->u_dirichlet));
31525 PyTuple_SET_ITEM(__pyx_t_9, 35, ((PyObject *)__pyx_v_self->u_dirichlet));
31526 __Pyx_INCREF(((PyObject *)__pyx_v_self->u_stress));
31527 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->u_stress));
31528 PyTuple_SET_ITEM(__pyx_t_9, 36, ((PyObject *)__pyx_v_self->u_stress));
31529 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_advective));
31530 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->us_advective));
31531 PyTuple_SET_ITEM(__pyx_t_9, 37, ((PyObject *)__pyx_v_self->us_advective));
31532 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_diffusive));
31533 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->us_diffusive));
31534 PyTuple_SET_ITEM(__pyx_t_9, 38, ((PyObject *)__pyx_v_self->us_diffusive));
31535 __Pyx_INCREF(((PyObject *)__pyx_v_self->us_dirichlet));
31536 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->us_dirichlet));
31537 PyTuple_SET_ITEM(__pyx_t_9, 39, ((PyObject *)__pyx_v_self->us_dirichlet));
31538 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_advective));
31539 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->v_advective));
31540 PyTuple_SET_ITEM(__pyx_t_9, 40, ((PyObject *)__pyx_v_self->v_advective));
31541 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_diffusive));
31542 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->v_diffusive));
31543 PyTuple_SET_ITEM(__pyx_t_9, 41, ((PyObject *)__pyx_v_self->v_diffusive));
31544 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_dirichlet));
31545 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->v_dirichlet));
31546 PyTuple_SET_ITEM(__pyx_t_9, 42, ((PyObject *)__pyx_v_self->v_dirichlet));
31547 __Pyx_INCREF(((PyObject *)__pyx_v_self->v_stress));
31548 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->v_stress));
31549 PyTuple_SET_ITEM(__pyx_t_9, 43, ((PyObject *)__pyx_v_self->v_stress));
31550 __Pyx_INCREF(((PyObject *)__pyx_v_self->vof_advective));
31551 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vof_advective));
31552 PyTuple_SET_ITEM(__pyx_t_9, 44, ((PyObject *)__pyx_v_self->vof_advective));
31553 __Pyx_INCREF(((PyObject *)__pyx_v_self->vof_dirichlet));
31554 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vof_dirichlet));
31555 PyTuple_SET_ITEM(__pyx_t_9, 45, ((PyObject *)__pyx_v_self->vof_dirichlet));
31556 __Pyx_INCREF(((PyObject *)__pyx_v_self->vos_advective));
31557 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vos_advective));
31558 PyTuple_SET_ITEM(__pyx_t_9, 46, ((PyObject *)__pyx_v_self->vos_advective));
31559 __Pyx_INCREF(((PyObject *)__pyx_v_self->vos_dirichlet));
31560 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vos_dirichlet));
31561 PyTuple_SET_ITEM(__pyx_t_9, 47, ((PyObject *)__pyx_v_self->vos_dirichlet));
31562 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_advective));
31563 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vs_advective));
31564 PyTuple_SET_ITEM(__pyx_t_9, 48, ((PyObject *)__pyx_v_self->vs_advective));
31565 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_diffusive));
31566 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vs_diffusive));
31567 PyTuple_SET_ITEM(__pyx_t_9, 49, ((PyObject *)__pyx_v_self->vs_diffusive));
31568 __Pyx_INCREF(((PyObject *)__pyx_v_self->vs_dirichlet));
31569 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->vs_dirichlet));
31570 PyTuple_SET_ITEM(__pyx_t_9, 50, ((PyObject *)__pyx_v_self->vs_dirichlet));
31571 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_advective));
31572 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->w_advective));
31573 PyTuple_SET_ITEM(__pyx_t_9, 51, ((PyObject *)__pyx_v_self->w_advective));
31574 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_diffusive));
31575 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->w_diffusive));
31576 PyTuple_SET_ITEM(__pyx_t_9, 52, ((PyObject *)__pyx_v_self->w_diffusive));
31577 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_dirichlet));
31578 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->w_dirichlet));
31579 PyTuple_SET_ITEM(__pyx_t_9, 53, ((PyObject *)__pyx_v_self->w_dirichlet));
31580 __Pyx_INCREF(((PyObject *)__pyx_v_self->w_stress));
31581 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->w_stress));
31582 PyTuple_SET_ITEM(__pyx_t_9, 54, ((PyObject *)__pyx_v_self->w_stress));
31583 __Pyx_INCREF(((PyObject *)__pyx_v_self->waves));
31584 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->waves));
31585 PyTuple_SET_ITEM(__pyx_t_9, 55, ((PyObject *)__pyx_v_self->waves));
31586 __Pyx_GIVEREF(__pyx_t_7);
31587 PyTuple_SET_ITEM(__pyx_t_9, 56, __pyx_t_7);
31588 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_advective));
31589 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->ws_advective));
31590 PyTuple_SET_ITEM(__pyx_t_9, 57, ((PyObject *)__pyx_v_self->ws_advective));
31591 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_diffusive));
31592 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->ws_diffusive));
31593 PyTuple_SET_ITEM(__pyx_t_9, 58, ((PyObject *)__pyx_v_self->ws_diffusive));
31594 __Pyx_INCREF(((PyObject *)__pyx_v_self->ws_dirichlet));
31595 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->ws_dirichlet));
31596 PyTuple_SET_ITEM(__pyx_t_9, 59, ((PyObject *)__pyx_v_self->ws_dirichlet));
31597 __Pyx_GIVEREF(__pyx_t_8);
31598 PyTuple_SET_ITEM(__pyx_t_9, 60, __pyx_t_8);
31607 __pyx_v_state = ((PyObject*)__pyx_t_9);
31617 __pyx_t_9 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 6, __pyx_L1_error)
31618 __Pyx_GOTREF(__pyx_t_9);
31619 __pyx_v__dict = __pyx_t_9;
31629 __pyx_t_10 = (__pyx_v__dict != Py_None);
31630 __pyx_t_11 = (__pyx_t_10 != 0);
31640 __pyx_t_9 = PyTuple_New(1);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 8, __pyx_L1_error)
31641 __Pyx_GOTREF(__pyx_t_9);
31642 __Pyx_INCREF(__pyx_v__dict);
31643 __Pyx_GIVEREF(__pyx_v__dict);
31644 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v__dict);
31645 __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_9);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 8, __pyx_L1_error)
31646 __Pyx_GOTREF(__pyx_t_8);
31647 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
31648 __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_8));
31658 __pyx_v_use_setstate = 1;
31678 __pyx_t_10 = (__pyx_v_self->__pyx_base.BC_type != ((PyObject*)Py_None));
31679 __pyx_t_12 = (__pyx_t_10 != 0);
31682 __pyx_t_11 = __pyx_t_12;
31683 goto __pyx_L4_bool_binop_done;
31685 __pyx_t_12 = (__pyx_v_self->__pyx_base.Shape != Py_None);
31686 __pyx_t_10 = (__pyx_t_12 != 0);
31689 __pyx_t_11 = __pyx_t_10;
31690 goto __pyx_L4_bool_binop_done;
31692 __pyx_t_10 = (__pyx_v_self->body != Py_None);
31693 __pyx_t_12 = (__pyx_t_10 != 0);
31696 __pyx_t_11 = __pyx_t_12;
31697 goto __pyx_L4_bool_binop_done;
31699 __pyx_t_12 = (((PyObject *)__pyx_v_self->clsvof_advective) != Py_None);
31700 __pyx_t_10 = (__pyx_t_12 != 0);
31703 __pyx_t_11 = __pyx_t_10;
31704 goto __pyx_L4_bool_binop_done;
31706 __pyx_t_10 = (((PyObject *)__pyx_v_self->clsvof_diffusive) != Py_None);
31707 __pyx_t_12 = (__pyx_t_10 != 0);
31710 __pyx_t_11 = __pyx_t_12;
31711 goto __pyx_L4_bool_binop_done;
31713 __pyx_t_12 = (((PyObject *)__pyx_v_self->clsvof_dirichlet) != Py_None);
31714 __pyx_t_10 = (__pyx_t_12 != 0);
31717 __pyx_t_11 = __pyx_t_10;
31718 goto __pyx_L4_bool_binop_done;
31720 __pyx_t_10 = (__pyx_v_self->__pyx_base.ct != Py_None);
31721 __pyx_t_12 = (__pyx_t_10 != 0);
31724 __pyx_t_11 = __pyx_t_12;
31725 goto __pyx_L4_bool_binop_done;
31727 __pyx_t_12 = (((PyObject *)__pyx_v_self->dissipation_advective) != Py_None);
31728 __pyx_t_10 = (__pyx_t_12 != 0);
31731 __pyx_t_11 = __pyx_t_10;
31732 goto __pyx_L4_bool_binop_done;
31734 __pyx_t_10 = (((PyObject *)__pyx_v_self->dissipation_diffusive) != Py_None);
31735 __pyx_t_12 = (__pyx_t_10 != 0);
31738 __pyx_t_11 = __pyx_t_12;
31739 goto __pyx_L4_bool_binop_done;
31741 __pyx_t_12 = (((PyObject *)__pyx_v_self->dissipation_dirichlet) != Py_None);
31742 __pyx_t_10 = (__pyx_t_12 != 0);
31745 __pyx_t_11 = __pyx_t_10;
31746 goto __pyx_L4_bool_binop_done;
31748 __pyx_t_10 = (((PyObject *)__pyx_v_self->hx_dirichlet) != Py_None);
31749 __pyx_t_12 = (__pyx_t_10 != 0);
31752 __pyx_t_11 = __pyx_t_12;
31753 goto __pyx_L4_bool_binop_done;
31755 __pyx_t_12 = (((PyObject *)__pyx_v_self->hy_dirichlet) != Py_None);
31756 __pyx_t_10 = (__pyx_t_12 != 0);
31759 __pyx_t_11 = __pyx_t_10;
31760 goto __pyx_L4_bool_binop_done;
31762 __pyx_t_10 = (((PyObject *)__pyx_v_self->hz_dirichlet) != Py_None);
31763 __pyx_t_12 = (__pyx_t_10 != 0);
31766 __pyx_t_11 = __pyx_t_12;
31767 goto __pyx_L4_bool_binop_done;
31769 __pyx_t_12 = (((PyObject *)__pyx_v_self->k_advective) != Py_None);
31770 __pyx_t_10 = (__pyx_t_12 != 0);
31773 __pyx_t_11 = __pyx_t_10;
31774 goto __pyx_L4_bool_binop_done;
31776 __pyx_t_10 = (((PyObject *)__pyx_v_self->k_diffusive) != Py_None);
31777 __pyx_t_12 = (__pyx_t_10 != 0);
31780 __pyx_t_11 = __pyx_t_12;
31781 goto __pyx_L4_bool_binop_done;
31783 __pyx_t_12 = (((PyObject *)__pyx_v_self->k_dirichlet) != Py_None);
31784 __pyx_t_10 = (__pyx_t_12 != 0);
31787 __pyx_t_11 = __pyx_t_10;
31788 goto __pyx_L4_bool_binop_done;
31790 __pyx_t_10 = (__pyx_v_self->__pyx_base.name != ((PyObject*)Py_None));
31791 __pyx_t_12 = (__pyx_t_10 != 0);
31794 __pyx_t_11 = __pyx_t_12;
31795 goto __pyx_L4_bool_binop_done;
31797 __pyx_t_12 = (((PyObject *)__pyx_v_self->pAddedMass_dirichlet) != Py_None);
31798 __pyx_t_10 = (__pyx_t_12 != 0);
31801 __pyx_t_11 = __pyx_t_10;
31802 goto __pyx_L4_bool_binop_done;
31804 __pyx_t_10 = (((PyObject *)__pyx_v_self->pInc_advective) != Py_None);
31805 __pyx_t_12 = (__pyx_t_10 != 0);
31808 __pyx_t_11 = __pyx_t_12;
31809 goto __pyx_L4_bool_binop_done;
31811 __pyx_t_12 = (((PyObject *)__pyx_v_self->pInc_diffusive) != Py_None);
31812 __pyx_t_10 = (__pyx_t_12 != 0);
31815 __pyx_t_11 = __pyx_t_10;
31816 goto __pyx_L4_bool_binop_done;
31818 __pyx_t_10 = (((PyObject *)__pyx_v_self->pInc_dirichlet) != Py_None);
31819 __pyx_t_12 = (__pyx_t_10 != 0);
31822 __pyx_t_11 = __pyx_t_12;
31823 goto __pyx_L4_bool_binop_done;
31825 __pyx_t_12 = (((PyObject *)__pyx_v_self->pInit_advective) != Py_None);
31826 __pyx_t_10 = (__pyx_t_12 != 0);
31829 __pyx_t_11 = __pyx_t_10;
31830 goto __pyx_L4_bool_binop_done;
31832 __pyx_t_10 = (((PyObject *)__pyx_v_self->pInit_diffusive) != Py_None);
31833 __pyx_t_12 = (__pyx_t_10 != 0);
31836 __pyx_t_11 = __pyx_t_12;
31837 goto __pyx_L4_bool_binop_done;
31839 __pyx_t_12 = (((PyObject *)__pyx_v_self->pInit_dirichlet) != Py_None);
31840 __pyx_t_10 = (__pyx_t_12 != 0);
31843 __pyx_t_11 = __pyx_t_10;
31844 goto __pyx_L4_bool_binop_done;
31846 __pyx_t_10 = (((PyObject *)__pyx_v_self->p_advective) != Py_None);
31847 __pyx_t_12 = (__pyx_t_10 != 0);
31850 __pyx_t_11 = __pyx_t_12;
31851 goto __pyx_L4_bool_binop_done;
31853 __pyx_t_12 = (((PyObject *)__pyx_v_self->p_dirichlet) != Py_None);
31854 __pyx_t_10 = (__pyx_t_12 != 0);
31857 __pyx_t_11 = __pyx_t_10;
31858 goto __pyx_L4_bool_binop_done;
31860 __pyx_t_10 = (((PyObject *)__pyx_v_self->phi_dirichlet) != Py_None);
31861 __pyx_t_12 = (__pyx_t_10 != 0);
31864 __pyx_t_11 = __pyx_t_12;
31865 goto __pyx_L4_bool_binop_done;
31867 __pyx_t_12 = (((PyObject *)__pyx_v_self->u_advective) != Py_None);
31868 __pyx_t_10 = (__pyx_t_12 != 0);
31871 __pyx_t_11 = __pyx_t_10;
31872 goto __pyx_L4_bool_binop_done;
31874 __pyx_t_10 = (((PyObject *)__pyx_v_self->u_diffusive) != Py_None);
31875 __pyx_t_12 = (__pyx_t_10 != 0);
31878 __pyx_t_11 = __pyx_t_12;
31879 goto __pyx_L4_bool_binop_done;
31881 __pyx_t_12 = (((PyObject *)__pyx_v_self->u_dirichlet) != Py_None);
31882 __pyx_t_10 = (__pyx_t_12 != 0);
31885 __pyx_t_11 = __pyx_t_10;
31886 goto __pyx_L4_bool_binop_done;
31888 __pyx_t_10 = (((PyObject *)__pyx_v_self->u_stress) != Py_None);
31889 __pyx_t_12 = (__pyx_t_10 != 0);
31892 __pyx_t_11 = __pyx_t_12;
31893 goto __pyx_L4_bool_binop_done;
31895 __pyx_t_12 = (((PyObject *)__pyx_v_self->us_advective) != Py_None);
31896 __pyx_t_10 = (__pyx_t_12 != 0);
31899 __pyx_t_11 = __pyx_t_10;
31900 goto __pyx_L4_bool_binop_done;
31902 __pyx_t_10 = (((PyObject *)__pyx_v_self->us_diffusive) != Py_None);
31903 __pyx_t_12 = (__pyx_t_10 != 0);
31906 __pyx_t_11 = __pyx_t_12;
31907 goto __pyx_L4_bool_binop_done;
31909 __pyx_t_12 = (((PyObject *)__pyx_v_self->us_dirichlet) != Py_None);
31910 __pyx_t_10 = (__pyx_t_12 != 0);
31913 __pyx_t_11 = __pyx_t_10;
31914 goto __pyx_L4_bool_binop_done;
31916 __pyx_t_10 = (((PyObject *)__pyx_v_self->v_advective) != Py_None);
31917 __pyx_t_12 = (__pyx_t_10 != 0);
31920 __pyx_t_11 = __pyx_t_12;
31921 goto __pyx_L4_bool_binop_done;
31923 __pyx_t_12 = (((PyObject *)__pyx_v_self->v_diffusive) != Py_None);
31924 __pyx_t_10 = (__pyx_t_12 != 0);
31927 __pyx_t_11 = __pyx_t_10;
31928 goto __pyx_L4_bool_binop_done;
31930 __pyx_t_10 = (((PyObject *)__pyx_v_self->v_dirichlet) != Py_None);
31931 __pyx_t_12 = (__pyx_t_10 != 0);
31934 __pyx_t_11 = __pyx_t_12;
31935 goto __pyx_L4_bool_binop_done;
31937 __pyx_t_12 = (((PyObject *)__pyx_v_self->v_stress) != Py_None);
31938 __pyx_t_10 = (__pyx_t_12 != 0);
31941 __pyx_t_11 = __pyx_t_10;
31942 goto __pyx_L4_bool_binop_done;
31944 __pyx_t_10 = (((PyObject *)__pyx_v_self->vof_advective) != Py_None);
31945 __pyx_t_12 = (__pyx_t_10 != 0);
31948 __pyx_t_11 = __pyx_t_12;
31949 goto __pyx_L4_bool_binop_done;
31951 __pyx_t_12 = (((PyObject *)__pyx_v_self->vof_dirichlet) != Py_None);
31952 __pyx_t_10 = (__pyx_t_12 != 0);
31955 __pyx_t_11 = __pyx_t_10;
31956 goto __pyx_L4_bool_binop_done;
31958 __pyx_t_10 = (((PyObject *)__pyx_v_self->vos_advective) != Py_None);
31959 __pyx_t_12 = (__pyx_t_10 != 0);
31962 __pyx_t_11 = __pyx_t_12;
31963 goto __pyx_L4_bool_binop_done;
31965 __pyx_t_12 = (((PyObject *)__pyx_v_self->vos_dirichlet) != Py_None);
31966 __pyx_t_10 = (__pyx_t_12 != 0);
31969 __pyx_t_11 = __pyx_t_10;
31970 goto __pyx_L4_bool_binop_done;
31972 __pyx_t_10 = (((PyObject *)__pyx_v_self->vs_advective) != Py_None);
31973 __pyx_t_12 = (__pyx_t_10 != 0);
31976 __pyx_t_11 = __pyx_t_12;
31977 goto __pyx_L4_bool_binop_done;
31979 __pyx_t_12 = (((PyObject *)__pyx_v_self->vs_diffusive) != Py_None);
31980 __pyx_t_10 = (__pyx_t_12 != 0);
31983 __pyx_t_11 = __pyx_t_10;
31984 goto __pyx_L4_bool_binop_done;
31986 __pyx_t_10 = (((PyObject *)__pyx_v_self->vs_dirichlet) != Py_None);
31987 __pyx_t_12 = (__pyx_t_10 != 0);
31990 __pyx_t_11 = __pyx_t_12;
31991 goto __pyx_L4_bool_binop_done;
31993 __pyx_t_12 = (((PyObject *)__pyx_v_self->w_advective) != Py_None);
31994 __pyx_t_10 = (__pyx_t_12 != 0);
31997 __pyx_t_11 = __pyx_t_10;
31998 goto __pyx_L4_bool_binop_done;
32000 __pyx_t_10 = (((PyObject *)__pyx_v_self->w_diffusive) != Py_None);
32001 __pyx_t_12 = (__pyx_t_10 != 0);
32004 __pyx_t_11 = __pyx_t_12;
32005 goto __pyx_L4_bool_binop_done;
32007 __pyx_t_12 = (((PyObject *)__pyx_v_self->w_dirichlet) != Py_None);
32008 __pyx_t_10 = (__pyx_t_12 != 0);
32011 __pyx_t_11 = __pyx_t_10;
32012 goto __pyx_L4_bool_binop_done;
32014 __pyx_t_10 = (((PyObject *)__pyx_v_self->w_stress) != Py_None);
32015 __pyx_t_12 = (__pyx_t_10 != 0);
32018 __pyx_t_11 = __pyx_t_12;
32019 goto __pyx_L4_bool_binop_done;
32021 __pyx_t_12 = (((PyObject *)__pyx_v_self->waves) != Py_None);
32022 __pyx_t_10 = (__pyx_t_12 != 0);
32025 __pyx_t_11 = __pyx_t_10;
32026 goto __pyx_L4_bool_binop_done;
32028 __pyx_t_10 = (((PyObject *)__pyx_v_self->ws_advective) != Py_None);
32029 __pyx_t_12 = (__pyx_t_10 != 0);
32032 __pyx_t_11 = __pyx_t_12;
32033 goto __pyx_L4_bool_binop_done;
32035 __pyx_t_12 = (((PyObject *)__pyx_v_self->ws_diffusive) != Py_None);
32036 __pyx_t_10 = (__pyx_t_12 != 0);
32039 __pyx_t_11 = __pyx_t_10;
32040 goto __pyx_L4_bool_binop_done;
32042 __pyx_t_10 = (((PyObject *)__pyx_v_self->ws_dirichlet) != Py_None);
32043 __pyx_t_12 = (__pyx_t_10 != 0);
32044 __pyx_t_11 = __pyx_t_12;
32045 __pyx_L4_bool_binop_done:;
32046 __pyx_v_use_setstate = __pyx_t_11;
32057 __pyx_t_11 = (__pyx_v_use_setstate != 0);
32067 __Pyx_XDECREF(__pyx_r);
32068 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pyx_unpickle_BC_RANS);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error)
32069 __Pyx_GOTREF(__pyx_t_8);
32070 __pyx_t_9 = PyTuple_New(3);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error)
32071 __Pyx_GOTREF(__pyx_t_9);
32072 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32073 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32074 PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32075 __Pyx_INCREF(__pyx_int_190238252);
32076 __Pyx_GIVEREF(__pyx_int_190238252);
32077 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_int_190238252);
32078 __Pyx_INCREF(Py_None);
32079 __Pyx_GIVEREF(Py_None);
32080 PyTuple_SET_ITEM(__pyx_t_9, 2, Py_None);
32081 __pyx_t_7 = PyTuple_New(3);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 13, __pyx_L1_error)
32082 __Pyx_GOTREF(__pyx_t_7);
32083 __Pyx_GIVEREF(__pyx_t_8);
32084 PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8);
32085 __Pyx_GIVEREF(__pyx_t_9);
32086 PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_9);
32087 __Pyx_INCREF(__pyx_v_state);
32088 __Pyx_GIVEREF(__pyx_v_state);
32089 PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_state);
32092 __pyx_r = __pyx_t_7;
32113 __Pyx_XDECREF(__pyx_r);
32114 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_pyx_unpickle_BC_RANS);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 15, __pyx_L1_error)
32115 __Pyx_GOTREF(__pyx_t_7);
32116 __pyx_t_9 = PyTuple_New(3);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error)
32117 __Pyx_GOTREF(__pyx_t_9);
32118 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32119 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32120 PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
32121 __Pyx_INCREF(__pyx_int_190238252);
32122 __Pyx_GIVEREF(__pyx_int_190238252);
32123 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_int_190238252);
32124 __Pyx_INCREF(__pyx_v_state);
32125 __Pyx_GIVEREF(__pyx_v_state);
32126 PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_state);
32127 __pyx_t_8 = PyTuple_New(2);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error)
32128 __Pyx_GOTREF(__pyx_t_8);
32129 __Pyx_GIVEREF(__pyx_t_7);
32130 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7);
32131 __Pyx_GIVEREF(__pyx_t_9);
32132 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9);
32135 __pyx_r = __pyx_t_8;
32148 __Pyx_XDECREF(__pyx_t_1);
32149 __Pyx_XDECREF(__pyx_t_2);
32150 __Pyx_XDECREF(__pyx_t_3);
32151 __Pyx_XDECREF(__pyx_t_4);
32152 __Pyx_XDECREF(__pyx_t_5);
32153 __Pyx_XDECREF(__pyx_t_6);
32154 __Pyx_XDECREF(__pyx_t_7);
32155 __Pyx_XDECREF(__pyx_t_8);
32156 __Pyx_XDECREF(__pyx_t_9);
32157 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
32160 __Pyx_XDECREF(__pyx_v_state);
32161 __Pyx_XDECREF(__pyx_v__dict);
32162 __Pyx_XGIVEREF(__pyx_r);
32163 __Pyx_TraceReturn(__pyx_r, 0);
32164 __Pyx_RefNannyFinishContext();
32176 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
32177 static char __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__[] =
"BC_RANS.__setstate_cython__(self, __pyx_state)";
32178 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__};
32179 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
32180 PyObject *__pyx_r = 0;
32181 __Pyx_RefNannyDeclarations
32182 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
32183 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
32186 __Pyx_RefNannyFinishContext();
32190 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
32191 PyObject *__pyx_r = NULL;
32192 __Pyx_TraceDeclarations
32193 __Pyx_RefNannyDeclarations
32194 PyObject *__pyx_t_1 = NULL;
32195 int __pyx_lineno = 0;
32196 const char *__pyx_filename = NULL;
32197 int __pyx_clineno = 0;
32198 __Pyx_TraceFrameInit(__pyx_codeobj__89)
32199 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
32200 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 16, 0, __PYX_ERR(1, 16, __pyx_L1_error));
32207 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
32208 __pyx_t_1 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
32209 __Pyx_GOTREF(__pyx_t_1);
32210 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32220 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
32223 __Pyx_XDECREF(__pyx_t_1);
32224 __Pyx_AddTraceback(
"mprans.BoundaryConditions.BC_RANS.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
32227 __Pyx_XGIVEREF(__pyx_r);
32228 __Pyx_TraceReturn(__pyx_r, 0);
32229 __Pyx_RefNannyFinishContext();
32242 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
32243 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
32244 PyObject *__pyx_v_zone_type = 0;
32245 PyObject *__pyx_v_center = 0;
32246 PyObject *__pyx_v_orientation = 0;
32247 PyObject *__pyx_v_epsFact_porous = 0;
32248 PyObject *__pyx_v_waves = 0;
32249 PyObject *__pyx_v_shape = 0;
32250 PyObject *__pyx_v_wind_speed = 0;
32251 PyObject *__pyx_v_dragAlpha = 0;
32252 PyObject *__pyx_v_dragBeta = 0;
32253 PyObject *__pyx_v_porosity = 0;
32254 PyObject *__pyx_v_vert_axis = 0;
32255 PyObject *__pyx_v_smoothing = 0;
32256 PyObject *__pyx_v_vof_water = 0;
32257 PyObject *__pyx_v_vof_air = 0;
32258 int __pyx_lineno = 0;
32259 const char *__pyx_filename = NULL;
32260 int __pyx_clineno = 0;
32262 __Pyx_RefNannyDeclarations
32263 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
32265 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_zone_type,&__pyx_n_s_center,&__pyx_n_s_orientation,&__pyx_n_s_epsFact_porous,&__pyx_n_s_waves,&__pyx_n_s_shape,&__pyx_n_s_wind_speed,&__pyx_n_s_dragAlpha,&__pyx_n_s_dragBeta,&__pyx_n_s_porosity,&__pyx_n_s_vert_axis,&__pyx_n_s_smoothing,&__pyx_n_s_vof_water,&__pyx_n_s_vof_air,0};
32266 PyObject* values[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
32275 values[4] = ((PyObject *)Py_None);
32276 values[5] = ((PyObject *)Py_None);
32277 values[6] = __pyx_k__90;
32278 values[7] = __pyx_k__91;
32279 values[8] = ((PyObject *)__pyx_float_0_);
32280 values[9] = ((PyObject *)__pyx_float_1_);
32289 values[10] = ((PyObject *)Py_None);
32290 values[11] = ((PyObject *)__pyx_float_0_);
32291 values[12] = ((PyObject *)__pyx_float_0_);
32292 values[13] = ((PyObject *)__pyx_float_1_);
32293 if (unlikely(__pyx_kwds)) {
32294 Py_ssize_t kw_args;
32295 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
32296 switch (pos_args) {
32297 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32298 CYTHON_FALLTHROUGH;
32299 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32300 CYTHON_FALLTHROUGH;
32301 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32302 CYTHON_FALLTHROUGH;
32303 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32304 CYTHON_FALLTHROUGH;
32305 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32306 CYTHON_FALLTHROUGH;
32307 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32308 CYTHON_FALLTHROUGH;
32309 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32310 CYTHON_FALLTHROUGH;
32311 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32312 CYTHON_FALLTHROUGH;
32313 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32314 CYTHON_FALLTHROUGH;
32315 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32316 CYTHON_FALLTHROUGH;
32317 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32318 CYTHON_FALLTHROUGH;
32319 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32320 CYTHON_FALLTHROUGH;
32321 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32322 CYTHON_FALLTHROUGH;
32323 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32324 CYTHON_FALLTHROUGH;
32326 default:
goto __pyx_L5_argtuple_error;
32328 kw_args = PyDict_Size(__pyx_kwds);
32329 switch (pos_args) {
32331 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_zone_type)) != 0)) kw_args--;
32332 else goto __pyx_L5_argtuple_error;
32333 CYTHON_FALLTHROUGH;
32335 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
32337 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 4, 14, 1); __PYX_ERR(0, 947, __pyx_L3_error)
32339 CYTHON_FALLTHROUGH;
32341 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_orientation)) != 0)) kw_args--;
32343 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 4, 14, 2); __PYX_ERR(0, 947, __pyx_L3_error)
32345 CYTHON_FALLTHROUGH;
32347 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_epsFact_porous)) != 0)) kw_args--;
32349 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 4, 14, 3); __PYX_ERR(0, 947, __pyx_L3_error)
32351 CYTHON_FALLTHROUGH;
32354 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waves);
32355 if (value) { values[4] = value; kw_args--; }
32357 CYTHON_FALLTHROUGH;
32360 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape);
32361 if (value) { values[5] = value; kw_args--; }
32363 CYTHON_FALLTHROUGH;
32366 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wind_speed);
32367 if (value) { values[6] = value; kw_args--; }
32369 CYTHON_FALLTHROUGH;
32372 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dragAlpha);
32373 if (value) { values[7] = value; kw_args--; }
32375 CYTHON_FALLTHROUGH;
32378 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dragBeta);
32379 if (value) { values[8] = value; kw_args--; }
32381 CYTHON_FALLTHROUGH;
32384 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_porosity);
32385 if (value) { values[9] = value; kw_args--; }
32387 CYTHON_FALLTHROUGH;
32390 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vert_axis);
32391 if (value) { values[10] = value; kw_args--; }
32393 CYTHON_FALLTHROUGH;
32396 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smoothing);
32397 if (value) { values[11] = value; kw_args--; }
32399 CYTHON_FALLTHROUGH;
32402 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_water);
32403 if (value) { values[12] = value; kw_args--; }
32405 CYTHON_FALLTHROUGH;
32408 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_air);
32409 if (value) { values[13] = value; kw_args--; }
32412 if (unlikely(kw_args > 0)) {
32413 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(0, 947, __pyx_L3_error)
32416 switch (PyTuple_GET_SIZE(__pyx_args)) {
32417 case 14: values[13] = PyTuple_GET_ITEM(__pyx_args, 13);
32418 CYTHON_FALLTHROUGH;
32419 case 13: values[12] = PyTuple_GET_ITEM(__pyx_args, 12);
32420 CYTHON_FALLTHROUGH;
32421 case 12: values[11] = PyTuple_GET_ITEM(__pyx_args, 11);
32422 CYTHON_FALLTHROUGH;
32423 case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
32424 CYTHON_FALLTHROUGH;
32425 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
32426 CYTHON_FALLTHROUGH;
32427 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
32428 CYTHON_FALLTHROUGH;
32429 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
32430 CYTHON_FALLTHROUGH;
32431 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
32432 CYTHON_FALLTHROUGH;
32433 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
32434 CYTHON_FALLTHROUGH;
32435 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
32436 CYTHON_FALLTHROUGH;
32437 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
32438 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
32439 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
32440 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
32442 default:
goto __pyx_L5_argtuple_error;
32445 __pyx_v_zone_type = values[0];
32446 __pyx_v_center = values[1];
32447 __pyx_v_orientation = values[2];
32448 __pyx_v_epsFact_porous = values[3];
32449 __pyx_v_waves = values[4];
32450 __pyx_v_shape = values[5];
32451 __pyx_v_wind_speed = values[6];
32452 __pyx_v_dragAlpha = values[7];
32453 __pyx_v_dragBeta = values[8];
32454 __pyx_v_porosity = values[9];
32455 __pyx_v_vert_axis = values[10];
32456 __pyx_v_smoothing = values[11];
32457 __pyx_v_vof_water = values[12];
32458 __pyx_v_vof_air = values[13];
32460 goto __pyx_L4_argument_unpacking_done;
32461 __pyx_L5_argtuple_error:;
32462 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 4, 14, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 947, __pyx_L3_error)
32464 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
32465 __Pyx_RefNannyFinishContext();
32467 __pyx_L4_argument_unpacking_done:;
32468 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone___cinit__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), __pyx_v_zone_type, __pyx_v_center, __pyx_v_orientation, __pyx_v_epsFact_porous, __pyx_v_waves, __pyx_v_shape, __pyx_v_wind_speed, __pyx_v_dragAlpha, __pyx_v_dragBeta, __pyx_v_porosity, __pyx_v_vert_axis, __pyx_v_smoothing, __pyx_v_vof_water, __pyx_v_vof_air);
32479 __Pyx_RefNannyFinishContext();
32483 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone___cinit__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_zone_type, PyObject *__pyx_v_center, PyObject *__pyx_v_orientation, PyObject *__pyx_v_epsFact_porous, PyObject *__pyx_v_waves, PyObject *__pyx_v_shape, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_dragAlpha, PyObject *__pyx_v_dragBeta, PyObject *__pyx_v_porosity, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_vof_air) {
32485 __Pyx_TraceDeclarations
32486 __Pyx_RefNannyDeclarations
32487 PyObject *__pyx_t_1 = NULL;
32488 PyObject *__pyx_t_2 = NULL;
32490 __Pyx_memviewslice __pyx_t_4 = { 0, 0, { 0 }, { 0 }, { 0 } };
32494 PyObject *__pyx_t_8 = NULL;
32495 int __pyx_lineno = 0;
32496 const char *__pyx_filename = NULL;
32497 int __pyx_clineno = 0;
32498 __Pyx_RefNannySetupContext(
"__cinit__", 0);
32499 __Pyx_TraceCall(
"__cinit__", __pyx_f[0], 947, 0, __PYX_ERR(0, 947, __pyx_L1_error));
32500 __Pyx_INCREF(__pyx_v_vert_axis);
32509 __Pyx_INCREF(__pyx_v_shape);
32510 __Pyx_GIVEREF(__pyx_v_shape);
32511 __Pyx_GOTREF(__pyx_v_self->Shape);
32512 __Pyx_DECREF(__pyx_v_self->Shape);
32513 __pyx_v_self->Shape = __pyx_v_shape;
32522 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->Shape, __pyx_n_s_Domain);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error)
32523 __Pyx_GOTREF(__pyx_t_1);
32524 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_nd);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 952, __pyx_L1_error)
32525 __Pyx_GOTREF(__pyx_t_2);
32526 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32527 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_t_2);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 952, __pyx_L1_error)
32528 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
32529 __pyx_v_self->nd = __pyx_t_3;
32538 if (!(likely(PyString_CheckExact(__pyx_v_zone_type))||((__pyx_v_zone_type) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"str", Py_TYPE(__pyx_v_zone_type)->tp_name), 0))) __PYX_ERR(0, 953, __pyx_L1_error)
32539 __pyx_t_2 = __pyx_v_zone_type;
32540 __Pyx_INCREF(__pyx_t_2);
32541 __Pyx_GIVEREF(__pyx_t_2);
32542 __Pyx_GOTREF(__pyx_v_self->zone_type);
32543 __Pyx_DECREF(__pyx_v_self->zone_type);
32544 __pyx_v_self->zone_type = ((PyObject*)__pyx_t_2);
32554 __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_center, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(0, 954, __pyx_L1_error)
32555 __PYX_XDEC_MEMVIEW(&__pyx_v_self->center, 0);
32556 __pyx_v_self->center = __pyx_t_4;
32557 __pyx_t_4.memview = NULL;
32558 __pyx_t_4.data = NULL;
32567 __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_orientation, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(0, 955, __pyx_L1_error)
32568 __PYX_XDEC_MEMVIEW(&__pyx_v_self->orientation, 0);
32569 __pyx_v_self->orientation = __pyx_t_4;
32570 __pyx_t_4.memview = NULL;
32571 __pyx_t_4.data = NULL;
32580 __pyx_t_5 = (__pyx_v_vert_axis == Py_None);
32581 __pyx_t_6 = (__pyx_t_5 != 0);
32591 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->Shape, __pyx_n_s_Domain);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 957, __pyx_L1_error)
32592 __Pyx_GOTREF(__pyx_t_2);
32593 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nd);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 957, __pyx_L1_error)
32594 __Pyx_GOTREF(__pyx_t_1);
32595 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
32596 __pyx_t_2 = __Pyx_PyInt_SubtractObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 957, __pyx_L1_error)
32597 __Pyx_GOTREF(__pyx_t_2);
32598 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32599 __Pyx_DECREF_SET(__pyx_v_vert_axis, __pyx_t_2);
32618 __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_vert_axis);
if (unlikely((__pyx_t_7 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 958, __pyx_L1_error)
32619 __pyx_v_self->vert_axis = __pyx_t_7;
32628 __pyx_t_6 = (__pyx_v_waves != Py_None);
32629 __pyx_t_5 = (__pyx_t_6 != 0);
32639 __pyx_t_2 = __Pyx_PyDict_NewPresized(6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 960, __pyx_L1_error)
32640 __Pyx_GOTREF(__pyx_t_2);
32641 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_waves, __pyx_v_waves) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32642 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_wind_speed, __pyx_v_wind_speed) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32643 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_vert_axis, __pyx_v_vert_axis) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32652 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_smoothing, __pyx_v_smoothing) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32653 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_vof_water, __pyx_v_vof_water) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32654 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_vof_air, __pyx_v_vof_air) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
32663 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics), __pyx_empty_tuple, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
32664 __Pyx_GOTREF(__pyx_t_1);
32665 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
32666 __Pyx_GIVEREF(__pyx_t_1);
32667 __Pyx_GOTREF(__pyx_v_self->waves);
32668 __Pyx_DECREF(((PyObject *)__pyx_v_self->waves));
32669 __pyx_v_self->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_t_1);
32688 __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_epsFact_porous);
if (unlikely((__pyx_t_7 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
32689 __pyx_v_self->epsFact_porous = __pyx_t_7;
32698 __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_dragAlpha);
if (unlikely((__pyx_t_7 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 963, __pyx_L1_error)
32699 __pyx_v_self->dragAlpha = __pyx_t_7;
32708 __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_dragBeta);
if (unlikely((__pyx_t_7 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 964, __pyx_L1_error)
32709 __pyx_v_self->dragBeta = __pyx_t_7;
32718 __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_porosity);
if (unlikely((__pyx_t_7 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 965, __pyx_L1_error)
32719 __pyx_v_self->porosity = __pyx_t_7;
32728 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 966, __pyx_L1_error)
32729 __Pyx_GOTREF(__pyx_t_2);
32730 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 966, __pyx_L1_error)
32731 __Pyx_GOTREF(__pyx_t_8);
32732 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
32734 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
32735 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8);
32736 if (likely(__pyx_t_2)) {
32737 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
32738 __Pyx_INCREF(__pyx_t_2);
32739 __Pyx_INCREF(
function);
32740 __Pyx_DECREF_SET(__pyx_t_8,
function);
32743 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_int_3);
32744 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
32745 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error)
32746 __Pyx_GOTREF(__pyx_t_1);
32747 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
32748 __pyx_t_4 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_t_1, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_4.memview)) __PYX_ERR(0, 966, __pyx_L1_error)
32749 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32750 __PYX_XDEC_MEMVIEW(&__pyx_v_self->zero_vel, 0);
32751 __pyx_v_self->zero_vel = __pyx_t_4;
32752 __pyx_t_4.memview = NULL;
32753 __pyx_t_4.data = NULL;
32767 __Pyx_XDECREF(__pyx_t_1);
32768 __Pyx_XDECREF(__pyx_t_2);
32769 __PYX_XDEC_MEMVIEW(&__pyx_t_4, 1);
32770 __Pyx_XDECREF(__pyx_t_8);
32771 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
32774 __Pyx_XDECREF(__pyx_v_vert_axis);
32775 __Pyx_TraceReturn(Py_None, 0);
32776 __Pyx_RefNannyFinishContext();
32788 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
32789 static void __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
int __pyx_skip_dispatch) {
32790 __Pyx_TraceDeclarations
32791 __Pyx_RefNannyDeclarations
32792 PyObject *__pyx_t_1 = NULL;
32793 PyObject *__pyx_t_2 = NULL;
32794 PyObject *__pyx_t_3 = NULL;
32795 PyObject *__pyx_t_4 = NULL;
32798 __Pyx_memviewslice (*__pyx_t_7)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
32799 double (*__pyx_t_8)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
32800 __Pyx_memviewslice (*__pyx_t_9)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double);
32801 double (*__pyx_t_10)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *);
32802 int __pyx_lineno = 0;
32803 const char *__pyx_filename = NULL;
32804 int __pyx_clineno = 0;
32805 __Pyx_TraceFrameInit(__pyx_codeobj__92)
32806 __Pyx_RefNannySetupContext(
"calculate_init", 0);
32807 __Pyx_TraceCall(
"calculate_init", __pyx_f[0], 968, 0, __PYX_ERR(0, 968, __pyx_L1_error));
32809 if (unlikely(__pyx_skip_dispatch)) ;
32811 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
32812 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
32813 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
32814 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
32815 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
32817 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_calculate_init);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 968, __pyx_L1_error)
32818 __Pyx_GOTREF(__pyx_t_1);
32819 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init)) {
32820 __Pyx_INCREF(__pyx_t_1);
32821 __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
32822 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
32823 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
32824 if (likely(__pyx_t_4)) {
32825 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
32826 __Pyx_INCREF(__pyx_t_4);
32827 __Pyx_INCREF(
function);
32828 __Pyx_DECREF_SET(__pyx_t_3,
function);
32831 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
32832 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
32833 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 968, __pyx_L1_error)
32834 __Pyx_GOTREF(__pyx_t_2);
32835 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
32836 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
32837 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32840 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
32841 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
32842 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
32843 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
32844 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
32847 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
32848 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
32860 __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_v_self->zone_type, __pyx_n_s_generation, Py_EQ));
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 969, __pyx_L1_error)
32861 __pyx_t_6 = (__pyx_t_5 != 0);
32871 __pyx_t_7 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_vel_wave;
32872 __pyx_v_self->uu = __pyx_t_7;
32881 __pyx_t_8 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_phi_porous_sponge;
32882 __pyx_v_self->phi = __pyx_t_8;
32901 __pyx_t_6 = (__Pyx_PyString_Equals(__pyx_v_self->zone_type, __pyx_n_s_absorption, Py_EQ));
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 974, __pyx_L1_error)
32902 __pyx_t_5 = (__pyx_t_6 != 0);
32912 __pyx_t_9 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_vel_zero;
32913 __pyx_v_self->uu = __pyx_t_9;
32922 __pyx_t_8 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_phi_porous_sponge;
32923 __pyx_v_self->phi = __pyx_t_8;
32942 __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_v_self->zone_type, __pyx_n_s_porous, Py_EQ));
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 977, __pyx_L1_error)
32943 __pyx_t_6 = (__pyx_t_5 != 0);
32953 __pyx_t_9 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_vel_zero;
32954 __pyx_v_self->uu = __pyx_t_9;
32963 __pyx_t_10 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_phi_porous;
32964 __pyx_v_self->phi = __pyx_t_10;
32987 __Pyx_XDECREF(__pyx_t_1);
32988 __Pyx_XDECREF(__pyx_t_2);
32989 __Pyx_XDECREF(__pyx_t_3);
32990 __Pyx_XDECREF(__pyx_t_4);
32991 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZone.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
32993 __Pyx_TraceReturn(Py_None, 0);
32994 __Pyx_RefNannyFinishContext();
32998 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
32999 static char __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_2calculate_init[] =
"RelaxationZone.calculate_init(self) -> void";
33000 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init = {
"calculate_init", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_2calculate_init};
33001 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
33002 PyObject *__pyx_r = 0;
33003 __Pyx_RefNannyDeclarations
33004 __Pyx_RefNannySetupContext(
"calculate_init (wrapper)", 0);
33005 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_2calculate_init(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
33008 __Pyx_RefNannyFinishContext();
33012 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_2calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
33013 PyObject *__pyx_r = NULL;
33014 __Pyx_TraceDeclarations
33015 __Pyx_RefNannyDeclarations
33016 PyObject *__pyx_t_1 = NULL;
33017 int __pyx_lineno = 0;
33018 const char *__pyx_filename = NULL;
33019 int __pyx_clineno = 0;
33020 __Pyx_TraceFrameInit(__pyx_codeobj__92)
33021 __Pyx_RefNannySetupContext(
"calculate_init", 0);
33022 __Pyx_TraceCall(
"calculate_init (wrapper)", __pyx_f[0], 968, 0, __PYX_ERR(0, 968, __pyx_L1_error));
33023 __Pyx_XDECREF(__pyx_r);
33024 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_init(__pyx_v_self, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 968, __pyx_L1_error)
33025 __Pyx_GOTREF(__pyx_t_1);
33026 __pyx_r = __pyx_t_1;
33032 __Pyx_XDECREF(__pyx_t_1);
33033 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
33036 __Pyx_XGIVEREF(__pyx_r);
33037 __Pyx_TraceReturn(__pyx_r, 0);
33038 __Pyx_RefNannyFinishContext();
33050 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_phi(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x) {
33052 __Pyx_TraceDeclarations
33053 __Pyx_RefNannyDeclarations
33054 int __pyx_lineno = 0;
33055 const char *__pyx_filename = NULL;
33056 int __pyx_clineno = 0;
33057 __Pyx_RefNannySetupContext(
"calculate_phi", 0);
33058 __Pyx_TraceCall(
"calculate_phi", __pyx_f[0], 981, 0, __PYX_ERR(0, 981, __pyx_L1_error));
33067 __pyx_r = __pyx_v_self->phi(__pyx_v_self, __pyx_v_x);
33080 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZone.calculate_phi", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
33083 __Pyx_TraceReturn(Py_None, 0);
33084 __Pyx_RefNannyFinishContext();
33096 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous_sponge(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x) {
33097 double __pyx_v_d[3];
33098 double __pyx_v_o[3];
33099 double __pyx_v_phi;
33101 __Pyx_TraceDeclarations
33102 __Pyx_RefNannyDeclarations
33103 Py_ssize_t __pyx_t_1;
33105 int __pyx_lineno = 0;
33106 const char *__pyx_filename = NULL;
33107 int __pyx_clineno = 0;
33108 __Pyx_RefNannySetupContext(
"__cpp_calculate_phi_porous_sponge", 0);
33109 __Pyx_TraceCall(
"__cpp_calculate_phi_porous_sponge", __pyx_f[0], 984, 0, __PYX_ERR(0, 984, __pyx_L1_error));
33119 (__pyx_v_d[0]) = ((*((
double *) ( (__pyx_v_self->center.data + __pyx_t_1 * __pyx_v_self->center.strides[0]) ))) - (__pyx_v_x[0]));
33129 (__pyx_v_d[1]) = ((*((
double *) ( (__pyx_v_self->center.data + __pyx_t_1 * __pyx_v_self->center.strides[0]) ))) - (__pyx_v_x[1]));
33139 (__pyx_v_o[0]) = (*((
double *) ( (__pyx_v_self->orientation.data + __pyx_t_1 * __pyx_v_self->orientation.strides[0]) )));
33149 (__pyx_v_o[1]) = (*((
double *) ( (__pyx_v_self->orientation.data + __pyx_t_1 * __pyx_v_self->orientation.strides[0]) )));
33158 __pyx_t_2 = ((__pyx_v_self->nd > 2) != 0);
33169 (__pyx_v_d[2]) = ((*((
double *) ( (__pyx_v_self->center.data + __pyx_t_1 * __pyx_v_self->center.strides[0]) ))) - (__pyx_v_x[2]));
33179 (__pyx_v_o[2]) = (*((
double *) ( (__pyx_v_self->orientation.data + __pyx_t_1 * __pyx_v_self->orientation.strides[0]) )));
33199 (__pyx_v_d[2]) = 0.0;
33208 (__pyx_v_o[2]) = 0.0;
33219 __pyx_v_phi = ((((__pyx_v_o[0]) * (__pyx_v_d[0])) + ((__pyx_v_o[1]) * (__pyx_v_d[1]))) + ((__pyx_v_o[2]) * (__pyx_v_d[2])));
33228 __pyx_r = __pyx_v_phi;
33241 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZone.__cpp_calculate_phi_porous_sponge", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
33244 __Pyx_TraceReturn(Py_None, 0);
33245 __Pyx_RefNannyFinishContext();
33257 static double __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED
double *__pyx_v_x) {
33258 double __pyx_v_IN_POROUS_ZONE;
33260 __Pyx_TraceDeclarations
33261 __Pyx_RefNannyDeclarations
33262 int __pyx_lineno = 0;
33263 const char *__pyx_filename = NULL;
33264 int __pyx_clineno = 0;
33265 __Pyx_RefNannySetupContext(
"__cpp_calculate_phi_porous", 0);
33266 __Pyx_TraceCall(
"__cpp_calculate_phi_porous", __pyx_f[0], 1002, 0, __PYX_ERR(0, 1002, __pyx_L1_error));
33275 __pyx_v_IN_POROUS_ZONE = -10000.0;
33284 __pyx_r = __pyx_v_IN_POROUS_ZONE;
33297 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZone.__cpp_calculate_phi_porous", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
33300 __Pyx_TraceReturn(Py_None, 0);
33301 __Pyx_RefNannyFinishContext();
33313 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_vel(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
33314 double __pyx_v_d[3];
33315 __Pyx_memviewslice __pyx_r = { 0, 0, { 0 }, { 0 }, { 0 } };
33316 __Pyx_TraceDeclarations
33317 __Pyx_RefNannyDeclarations
33318 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
33319 int __pyx_lineno = 0;
33320 const char *__pyx_filename = NULL;
33321 int __pyx_clineno = 0;
33322 __Pyx_RefNannySetupContext(
"calculate_vel", 0);
33323 __Pyx_TraceCall(
"calculate_vel", __pyx_f[0], 1006, 0, __PYX_ERR(0, 1006, __pyx_L1_error));
33332 (__pyx_v_d[0]) = (__pyx_v_x[0]);
33341 (__pyx_v_d[1]) = (__pyx_v_x[1]);
33350 (__pyx_v_d[2]) = (__pyx_v_x[2]);
33359 __pyx_t_1 = __pyx_v_self->uu(__pyx_v_self, __pyx_v_d, __pyx_v_t);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 1011, __pyx_L1_error)
33360 __pyx_r = __pyx_t_1;
33361 __pyx_t_1.memview = NULL;
33362 __pyx_t_1.data = NULL;
33375 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
33376 __pyx_r.data = NULL;
33377 __pyx_r.memview = NULL;
33378 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.calculate_vel", __pyx_clineno, __pyx_lineno, __pyx_filename);
33381 if (unlikely(!__pyx_r.memview)) {
33382 PyErr_SetString(PyExc_TypeError,
"Memoryview return value is not initialized");
33385 __Pyx_TraceReturn(Py_None, 0);
33386 __Pyx_RefNannyFinishContext();
33399 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python(PyObject *__pyx_v_self, PyObject *__pyx_v_x);
33400 static char __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python[] =
"RelaxationZone.calculate_phi_python(self, x)";
33401 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python = {
"calculate_phi_python", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python, METH_O, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python};
33402 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python(PyObject *__pyx_v_self, PyObject *__pyx_v_x) {
33403 PyObject *__pyx_r = 0;
33404 __Pyx_RefNannyDeclarations
33405 __Pyx_RefNannySetupContext(
"calculate_phi_python (wrapper)", 0);
33406 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_x));
33409 __Pyx_RefNannyFinishContext();
33413 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_x) {
33414 double __pyx_v_xx[3];
33416 PyObject *__pyx_r = NULL;
33417 __Pyx_TraceDeclarations
33418 __Pyx_RefNannyDeclarations
33419 PyObject *__pyx_t_1 = NULL;
33421 int __pyx_lineno = 0;
33422 const char *__pyx_filename = NULL;
33423 int __pyx_clineno = 0;
33424 __Pyx_TraceFrameInit(__pyx_codeobj__93)
33425 __Pyx_RefNannySetupContext(
"calculate_phi_python", 0);
33426 __Pyx_TraceCall(
"calculate_phi_python", __pyx_f[0], 1013, 0, __PYX_ERR(0, 1013, __pyx_L1_error));
33435 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1015, __pyx_L1_error)
33436 __Pyx_GOTREF(__pyx_t_1);
33437 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1015, __pyx_L1_error)
33438 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33439 (__pyx_v_xx[0]) = __pyx_t_2;
33448 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error)
33449 __Pyx_GOTREF(__pyx_t_1);
33450 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1016, __pyx_L1_error)
33451 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33452 (__pyx_v_xx[1]) = __pyx_t_2;
33461 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error)
33462 __Pyx_GOTREF(__pyx_t_1);
33463 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1017, __pyx_L1_error)
33464 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33465 (__pyx_v_xx[2]) = __pyx_t_2;
33474 __pyx_v_ph = __pyx_v_self->phi(__pyx_v_self, __pyx_v_xx);
33483 __Pyx_XDECREF(__pyx_r);
33484 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_ph);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error)
33485 __Pyx_GOTREF(__pyx_t_1);
33486 __pyx_r = __pyx_t_1;
33500 __Pyx_XDECREF(__pyx_t_1);
33501 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.calculate_phi_python", __pyx_clineno, __pyx_lineno, __pyx_filename);
33504 __Pyx_XGIVEREF(__pyx_r);
33505 __Pyx_TraceReturn(__pyx_r, 0);
33506 __Pyx_RefNannyFinishContext();
33519 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33520 static char __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python[] =
"RelaxationZone.calculate_vel_python(self, x, t, n=None)";
33521 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python = {
"calculate_vel_python", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python};
33522 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33523 PyObject *__pyx_v_x = 0;
33524 PyObject *__pyx_v_t = 0;
33525 CYTHON_UNUSED PyObject *__pyx_v_n = 0;
33526 int __pyx_lineno = 0;
33527 const char *__pyx_filename = NULL;
33528 int __pyx_clineno = 0;
33529 PyObject *__pyx_r = 0;
33530 __Pyx_RefNannyDeclarations
33531 __Pyx_RefNannySetupContext(
"calculate_vel_python (wrapper)", 0);
33533 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
33534 PyObject* values[3] = {0,0,0};
33535 values[2] = ((PyObject *)Py_None);
33536 if (unlikely(__pyx_kwds)) {
33537 Py_ssize_t kw_args;
33538 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33539 switch (pos_args) {
33540 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33541 CYTHON_FALLTHROUGH;
33542 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33543 CYTHON_FALLTHROUGH;
33544 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33545 CYTHON_FALLTHROUGH;
33547 default:
goto __pyx_L5_argtuple_error;
33549 kw_args = PyDict_Size(__pyx_kwds);
33550 switch (pos_args) {
33552 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
33553 else goto __pyx_L5_argtuple_error;
33554 CYTHON_FALLTHROUGH;
33556 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
33558 __Pyx_RaiseArgtupleInvalid(
"calculate_vel_python", 0, 2, 3, 1); __PYX_ERR(0, 1021, __pyx_L3_error)
33560 CYTHON_FALLTHROUGH;
33563 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n);
33564 if (value) { values[2] = value; kw_args--; }
33567 if (unlikely(kw_args > 0)) {
33568 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"calculate_vel_python") < 0)) __PYX_ERR(0, 1021, __pyx_L3_error)
33571 switch (PyTuple_GET_SIZE(__pyx_args)) {
33572 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33573 CYTHON_FALLTHROUGH;
33574 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33575 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33577 default:
goto __pyx_L5_argtuple_error;
33580 __pyx_v_x = values[0];
33581 __pyx_v_t = values[1];
33582 __pyx_v_n = values[2];
33584 goto __pyx_L4_argument_unpacking_done;
33585 __pyx_L5_argtuple_error:;
33586 __Pyx_RaiseArgtupleInvalid(
"calculate_vel_python", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1021, __pyx_L3_error)
33588 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.calculate_vel_python", __pyx_clineno, __pyx_lineno, __pyx_filename);
33589 __Pyx_RefNannyFinishContext();
33591 __pyx_L4_argument_unpacking_done:;
33592 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), __pyx_v_x, __pyx_v_t, __pyx_v_n);
33595 __Pyx_RefNannyFinishContext();
33599 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, CYTHON_UNUSED PyObject *__pyx_v_n) {
33600 double __pyx_v_xx[3];
33602 PyObject *__pyx_r = NULL;
33603 __Pyx_TraceDeclarations
33604 __Pyx_RefNannyDeclarations
33605 PyObject *__pyx_t_1 = NULL;
33607 __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
33608 int __pyx_lineno = 0;
33609 const char *__pyx_filename = NULL;
33610 int __pyx_clineno = 0;
33611 __Pyx_TraceFrameInit(__pyx_codeobj__94)
33612 __Pyx_RefNannySetupContext(
"calculate_vel_python", 0);
33613 __Pyx_TraceCall(
"calculate_vel_python", __pyx_f[0], 1021, 0, __PYX_ERR(0, 1021, __pyx_L1_error));
33622 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1023, __pyx_L1_error)
33623 __Pyx_GOTREF(__pyx_t_1);
33624 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1023, __pyx_L1_error)
33625 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33626 (__pyx_v_xx[0]) = __pyx_t_2;
33635 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error)
33636 __Pyx_GOTREF(__pyx_t_1);
33637 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1024, __pyx_L1_error)
33638 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33639 (__pyx_v_xx[1]) = __pyx_t_2;
33648 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_x, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error)
33649 __Pyx_GOTREF(__pyx_t_1);
33650 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1025, __pyx_L1_error)
33651 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33652 (__pyx_v_xx[2]) = __pyx_t_2;
33661 __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_v_t);
if (unlikely((__pyx_t_2 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1026, __pyx_L1_error)
33662 __pyx_v_tt = __pyx_t_2;
33671 __Pyx_XDECREF(__pyx_r);
33672 __pyx_t_3 = __pyx_v_self->uu(__pyx_v_self, __pyx_v_xx, __pyx_v_tt);
if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(0, 1027, __pyx_L1_error)
33673 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_t_3, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error)
33674 __Pyx_GOTREF(__pyx_t_1);
33675 __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
33676 __pyx_t_3.memview = NULL;
33677 __pyx_t_3.data = NULL;
33678 __pyx_r = __pyx_t_1;
33692 __Pyx_XDECREF(__pyx_t_1);
33693 __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
33694 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.calculate_vel_python", __pyx_clineno, __pyx_lineno, __pyx_filename);
33697 __Pyx_XGIVEREF(__pyx_r);
33698 __Pyx_TraceReturn(__pyx_r, 0);
33699 __Pyx_RefNannyFinishContext();
33711 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_zero(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED
double *__pyx_v_x, CYTHON_UNUSED
double __pyx_v_t) {
33712 __Pyx_memviewslice __pyx_r = { 0, 0, { 0 }, { 0 }, { 0 } };
33713 __Pyx_TraceDeclarations
33714 __Pyx_RefNannyDeclarations
33715 int __pyx_lineno = 0;
33716 const char *__pyx_filename = NULL;
33717 int __pyx_clineno = 0;
33718 __Pyx_RefNannySetupContext(
"__cpp_calculate_vel_zero", 0);
33719 __Pyx_TraceCall(
"__cpp_calculate_vel_zero", __pyx_f[0], 1029, 0, __PYX_ERR(0, 1029, __pyx_L1_error));
33728 __PYX_INC_MEMVIEW(&__pyx_v_self->zero_vel, 0);
33729 __pyx_r = __pyx_v_self->zero_vel;
33742 __pyx_r.data = NULL;
33743 __pyx_r.memview = NULL;
33744 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__cpp_calculate_vel_zero", __pyx_clineno, __pyx_lineno, __pyx_filename);
33747 if (unlikely(!__pyx_r.memview)) {
33748 PyErr_SetString(PyExc_TypeError,
"Memoryview return value is not initialized");
33751 __Pyx_TraceReturn(Py_None, 0);
33752 __Pyx_RefNannyFinishContext();
33764 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_wave(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
33765 __Pyx_memviewslice __pyx_r = { 0, 0, { 0 }, { 0 }, { 0 } };
33766 __Pyx_TraceDeclarations
33767 __Pyx_RefNannyDeclarations
33768 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
33769 int __pyx_lineno = 0;
33770 const char *__pyx_filename = NULL;
33771 int __pyx_clineno = 0;
33772 __Pyx_RefNannySetupContext(
"__cpp_calculate_vel_wave", 0);
33773 __Pyx_TraceCall(
"__cpp_calculate_vel_wave", __pyx_f[0], 1032, 0, __PYX_ERR(0, 1032, __pyx_L1_error));
33782 __pyx_t_1 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->waves->__pyx_vtab)->__pyx___cpp_calculate_velocity(__pyx_v_self->waves, __pyx_v_x, __pyx_v_t);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 1033, __pyx_L1_error)
33783 __pyx_r = __pyx_t_1;
33784 __pyx_t_1.memview = NULL;
33785 __pyx_t_1.data = NULL;
33798 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
33799 __pyx_r.data = NULL;
33800 __pyx_r.memview = NULL;
33801 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__cpp_calculate_vel_wave", __pyx_clineno, __pyx_lineno, __pyx_filename);
33804 if (unlikely(!__pyx_r.memview)) {
33805 PyErr_SetString(PyExc_TypeError,
"Memoryview return value is not initialized");
33808 __Pyx_TraceReturn(Py_None, 0);
33809 __Pyx_RefNannyFinishContext();
33822 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_1__get__(PyObject *__pyx_v_self);
33823 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_1__get__(PyObject *__pyx_v_self) {
33824 PyObject *__pyx_r = 0;
33825 __Pyx_RefNannyDeclarations
33826 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
33827 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
33830 __Pyx_RefNannyFinishContext();
33834 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
33835 PyObject *__pyx_r = NULL;
33836 __Pyx_TraceDeclarations
33837 __Pyx_RefNannyDeclarations
33838 int __pyx_lineno = 0;
33839 const char *__pyx_filename = NULL;
33840 int __pyx_clineno = 0;
33841 __Pyx_RefNannySetupContext(
"__get__", 0);
33842 __Pyx_TraceCall(
"__get__", __pyx_f[2], 129, 0, __PYX_ERR(2, 129, __pyx_L1_error));
33843 __Pyx_XDECREF(__pyx_r);
33844 __Pyx_INCREF(__pyx_v_self->Shape);
33845 __pyx_r = __pyx_v_self->Shape;
33850 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.Shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
33853 __Pyx_XGIVEREF(__pyx_r);
33854 __Pyx_TraceReturn(__pyx_r, 0);
33855 __Pyx_RefNannyFinishContext();
33860 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
33861 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
33863 __Pyx_RefNannyDeclarations
33864 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
33865 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
33868 __Pyx_RefNannyFinishContext();
33872 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
33874 __Pyx_TraceDeclarations
33875 __Pyx_RefNannyDeclarations
33876 int __pyx_lineno = 0;
33877 const char *__pyx_filename = NULL;
33878 int __pyx_clineno = 0;
33879 __Pyx_RefNannySetupContext(
"__set__", 0);
33880 __Pyx_TraceCall(
"__set__", __pyx_f[2], 129, 0, __PYX_ERR(2, 129, __pyx_L1_error));
33881 __Pyx_INCREF(__pyx_v_value);
33882 __Pyx_GIVEREF(__pyx_v_value);
33883 __Pyx_GOTREF(__pyx_v_self->Shape);
33884 __Pyx_DECREF(__pyx_v_self->Shape);
33885 __pyx_v_self->Shape = __pyx_v_value;
33891 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.Shape.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
33894 __Pyx_TraceReturn(Py_None, 0);
33895 __Pyx_RefNannyFinishContext();
33900 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_5__del__(PyObject *__pyx_v_self);
33901 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_5__del__(PyObject *__pyx_v_self) {
33903 __Pyx_RefNannyDeclarations
33904 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
33905 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
33908 __Pyx_RefNannyFinishContext();
33912 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
33914 __Pyx_TraceDeclarations
33915 __Pyx_RefNannyDeclarations
33916 int __pyx_lineno = 0;
33917 const char *__pyx_filename = NULL;
33918 int __pyx_clineno = 0;
33919 __Pyx_RefNannySetupContext(
"__del__", 0);
33920 __Pyx_TraceCall(
"__del__", __pyx_f[2], 129, 0, __PYX_ERR(2, 129, __pyx_L1_error));
33921 __Pyx_INCREF(Py_None);
33922 __Pyx_GIVEREF(Py_None);
33923 __Pyx_GOTREF(__pyx_v_self->Shape);
33924 __Pyx_DECREF(__pyx_v_self->Shape);
33925 __pyx_v_self->Shape = Py_None;
33931 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.Shape.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
33934 __Pyx_TraceReturn(Py_None, 0);
33935 __Pyx_RefNannyFinishContext();
33948 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_1__get__(PyObject *__pyx_v_self);
33949 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_1__get__(PyObject *__pyx_v_self) {
33950 PyObject *__pyx_r = 0;
33951 __Pyx_RefNannyDeclarations
33952 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
33953 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
33956 __Pyx_RefNannyFinishContext();
33960 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
33961 PyObject *__pyx_r = NULL;
33962 __Pyx_TraceDeclarations
33963 __Pyx_RefNannyDeclarations
33964 int __pyx_lineno = 0;
33965 const char *__pyx_filename = NULL;
33966 int __pyx_clineno = 0;
33967 __Pyx_RefNannySetupContext(
"__get__", 0);
33968 __Pyx_TraceCall(
"__get__", __pyx_f[2], 130, 0, __PYX_ERR(2, 130, __pyx_L1_error));
33969 __Pyx_XDECREF(__pyx_r);
33970 __Pyx_INCREF(__pyx_v_self->zone_type);
33971 __pyx_r = __pyx_v_self->zone_type;
33976 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.zone_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
33979 __Pyx_XGIVEREF(__pyx_r);
33980 __Pyx_TraceReturn(__pyx_r, 0);
33981 __Pyx_RefNannyFinishContext();
33986 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
33987 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
33989 __Pyx_RefNannyDeclarations
33990 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
33991 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
33994 __Pyx_RefNannyFinishContext();
33998 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34000 __Pyx_TraceDeclarations
34001 __Pyx_RefNannyDeclarations
34002 PyObject *__pyx_t_1 = NULL;
34003 int __pyx_lineno = 0;
34004 const char *__pyx_filename = NULL;
34005 int __pyx_clineno = 0;
34006 __Pyx_RefNannySetupContext(
"__set__", 0);
34007 __Pyx_TraceCall(
"__set__", __pyx_f[2], 130, 0, __PYX_ERR(2, 130, __pyx_L1_error));
34008 if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(2, 130, __pyx_L1_error)
34009 __pyx_t_1 = __pyx_v_value;
34010 __Pyx_INCREF(__pyx_t_1);
34011 __Pyx_GIVEREF(__pyx_t_1);
34012 __Pyx_GOTREF(__pyx_v_self->zone_type);
34013 __Pyx_DECREF(__pyx_v_self->zone_type);
34014 __pyx_v_self->zone_type = ((PyObject*)__pyx_t_1);
34021 __Pyx_XDECREF(__pyx_t_1);
34022 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.zone_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34025 __Pyx_TraceReturn(Py_None, 0);
34026 __Pyx_RefNannyFinishContext();
34031 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_5__del__(PyObject *__pyx_v_self);
34032 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_5__del__(PyObject *__pyx_v_self) {
34034 __Pyx_RefNannyDeclarations
34035 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
34036 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34039 __Pyx_RefNannyFinishContext();
34043 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34045 __Pyx_TraceDeclarations
34046 __Pyx_RefNannyDeclarations
34047 int __pyx_lineno = 0;
34048 const char *__pyx_filename = NULL;
34049 int __pyx_clineno = 0;
34050 __Pyx_RefNannySetupContext(
"__del__", 0);
34051 __Pyx_TraceCall(
"__del__", __pyx_f[2], 130, 0, __PYX_ERR(2, 130, __pyx_L1_error));
34052 __Pyx_INCREF(Py_None);
34053 __Pyx_GIVEREF(Py_None);
34054 __Pyx_GOTREF(__pyx_v_self->zone_type);
34055 __Pyx_DECREF(__pyx_v_self->zone_type);
34056 __pyx_v_self->zone_type = ((PyObject*)Py_None);
34062 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.zone_type.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34065 __Pyx_TraceReturn(Py_None, 0);
34066 __Pyx_RefNannyFinishContext();
34079 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_1__get__(PyObject *__pyx_v_self);
34080 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_1__get__(PyObject *__pyx_v_self) {
34081 PyObject *__pyx_r = 0;
34082 __Pyx_RefNannyDeclarations
34083 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34084 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34087 __Pyx_RefNannyFinishContext();
34091 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34092 PyObject *__pyx_r = NULL;
34093 __Pyx_TraceDeclarations
34094 __Pyx_RefNannyDeclarations
34095 PyObject *__pyx_t_1 = NULL;
34096 int __pyx_lineno = 0;
34097 const char *__pyx_filename = NULL;
34098 int __pyx_clineno = 0;
34099 __Pyx_RefNannySetupContext(
"__get__", 0);
34100 __Pyx_TraceCall(
"__get__", __pyx_f[2], 131, 0, __PYX_ERR(2, 131, __pyx_L1_error));
34101 __Pyx_XDECREF(__pyx_r);
34102 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->dragAlpha);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
34103 __Pyx_GOTREF(__pyx_t_1);
34104 __pyx_r = __pyx_t_1;
34110 __Pyx_XDECREF(__pyx_t_1);
34111 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.dragAlpha.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34114 __Pyx_XGIVEREF(__pyx_r);
34115 __Pyx_TraceReturn(__pyx_r, 0);
34116 __Pyx_RefNannyFinishContext();
34121 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34122 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34124 __Pyx_RefNannyDeclarations
34125 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34126 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34129 __Pyx_RefNannyFinishContext();
34133 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34135 __Pyx_TraceDeclarations
34136 __Pyx_RefNannyDeclarations
34138 int __pyx_lineno = 0;
34139 const char *__pyx_filename = NULL;
34140 int __pyx_clineno = 0;
34141 __Pyx_RefNannySetupContext(
"__set__", 0);
34142 __Pyx_TraceCall(
"__set__", __pyx_f[2], 131, 0, __PYX_ERR(2, 131, __pyx_L1_error));
34143 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 131, __pyx_L1_error)
34144 __pyx_v_self->dragAlpha = __pyx_t_1;
34150 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.dragAlpha.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34153 __Pyx_TraceReturn(Py_None, 0);
34154 __Pyx_RefNannyFinishContext();
34167 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_1__get__(PyObject *__pyx_v_self);
34168 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_1__get__(PyObject *__pyx_v_self) {
34169 PyObject *__pyx_r = 0;
34170 __Pyx_RefNannyDeclarations
34171 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34172 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34175 __Pyx_RefNannyFinishContext();
34179 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34180 PyObject *__pyx_r = NULL;
34181 __Pyx_TraceDeclarations
34182 __Pyx_RefNannyDeclarations
34183 PyObject *__pyx_t_1 = NULL;
34184 int __pyx_lineno = 0;
34185 const char *__pyx_filename = NULL;
34186 int __pyx_clineno = 0;
34187 __Pyx_RefNannySetupContext(
"__get__", 0);
34188 __Pyx_TraceCall(
"__get__", __pyx_f[2], 132, 0, __PYX_ERR(2, 132, __pyx_L1_error));
34189 __Pyx_XDECREF(__pyx_r);
34190 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->dragBeta);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 132, __pyx_L1_error)
34191 __Pyx_GOTREF(__pyx_t_1);
34192 __pyx_r = __pyx_t_1;
34198 __Pyx_XDECREF(__pyx_t_1);
34199 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.dragBeta.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34202 __Pyx_XGIVEREF(__pyx_r);
34203 __Pyx_TraceReturn(__pyx_r, 0);
34204 __Pyx_RefNannyFinishContext();
34209 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34210 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34212 __Pyx_RefNannyDeclarations
34213 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34214 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34217 __Pyx_RefNannyFinishContext();
34221 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34223 __Pyx_TraceDeclarations
34224 __Pyx_RefNannyDeclarations
34226 int __pyx_lineno = 0;
34227 const char *__pyx_filename = NULL;
34228 int __pyx_clineno = 0;
34229 __Pyx_RefNannySetupContext(
"__set__", 0);
34230 __Pyx_TraceCall(
"__set__", __pyx_f[2], 132, 0, __PYX_ERR(2, 132, __pyx_L1_error));
34231 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 132, __pyx_L1_error)
34232 __pyx_v_self->dragBeta = __pyx_t_1;
34238 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.dragBeta.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34241 __Pyx_TraceReturn(Py_None, 0);
34242 __Pyx_RefNannyFinishContext();
34255 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_1__get__(PyObject *__pyx_v_self);
34256 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_1__get__(PyObject *__pyx_v_self) {
34257 PyObject *__pyx_r = 0;
34258 __Pyx_RefNannyDeclarations
34259 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34260 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34263 __Pyx_RefNannyFinishContext();
34267 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34268 PyObject *__pyx_r = NULL;
34269 __Pyx_TraceDeclarations
34270 __Pyx_RefNannyDeclarations
34271 PyObject *__pyx_t_1 = NULL;
34272 int __pyx_lineno = 0;
34273 const char *__pyx_filename = NULL;
34274 int __pyx_clineno = 0;
34275 __Pyx_RefNannySetupContext(
"__get__", 0);
34276 __Pyx_TraceCall(
"__get__", __pyx_f[2], 133, 0, __PYX_ERR(2, 133, __pyx_L1_error));
34277 __Pyx_XDECREF(__pyx_r);
34278 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->porosity);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 133, __pyx_L1_error)
34279 __Pyx_GOTREF(__pyx_t_1);
34280 __pyx_r = __pyx_t_1;
34286 __Pyx_XDECREF(__pyx_t_1);
34287 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.porosity.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34290 __Pyx_XGIVEREF(__pyx_r);
34291 __Pyx_TraceReturn(__pyx_r, 0);
34292 __Pyx_RefNannyFinishContext();
34297 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34298 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34300 __Pyx_RefNannyDeclarations
34301 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34302 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34305 __Pyx_RefNannyFinishContext();
34309 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34311 __Pyx_TraceDeclarations
34312 __Pyx_RefNannyDeclarations
34314 int __pyx_lineno = 0;
34315 const char *__pyx_filename = NULL;
34316 int __pyx_clineno = 0;
34317 __Pyx_RefNannySetupContext(
"__set__", 0);
34318 __Pyx_TraceCall(
"__set__", __pyx_f[2], 133, 0, __PYX_ERR(2, 133, __pyx_L1_error));
34319 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 133, __pyx_L1_error)
34320 __pyx_v_self->porosity = __pyx_t_1;
34326 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.porosity.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34329 __Pyx_TraceReturn(Py_None, 0);
34330 __Pyx_RefNannyFinishContext();
34343 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_1__get__(PyObject *__pyx_v_self);
34344 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_1__get__(PyObject *__pyx_v_self) {
34345 PyObject *__pyx_r = 0;
34346 __Pyx_RefNannyDeclarations
34347 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34348 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34351 __Pyx_RefNannyFinishContext();
34355 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34356 PyObject *__pyx_r = NULL;
34357 __Pyx_TraceDeclarations
34358 __Pyx_RefNannyDeclarations
34359 PyObject *__pyx_t_1 = NULL;
34360 int __pyx_lineno = 0;
34361 const char *__pyx_filename = NULL;
34362 int __pyx_clineno = 0;
34363 __Pyx_RefNannySetupContext(
"__get__", 0);
34364 __Pyx_TraceCall(
"__get__", __pyx_f[2], 134, 0, __PYX_ERR(2, 134, __pyx_L1_error));
34365 __Pyx_XDECREF(__pyx_r);
34366 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->epsFact_solid);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 134, __pyx_L1_error)
34367 __Pyx_GOTREF(__pyx_t_1);
34368 __pyx_r = __pyx_t_1;
34374 __Pyx_XDECREF(__pyx_t_1);
34375 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.epsFact_solid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34378 __Pyx_XGIVEREF(__pyx_r);
34379 __Pyx_TraceReturn(__pyx_r, 0);
34380 __Pyx_RefNannyFinishContext();
34385 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34386 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34388 __Pyx_RefNannyDeclarations
34389 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34390 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34393 __Pyx_RefNannyFinishContext();
34397 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34399 __Pyx_TraceDeclarations
34400 __Pyx_RefNannyDeclarations
34402 int __pyx_lineno = 0;
34403 const char *__pyx_filename = NULL;
34404 int __pyx_clineno = 0;
34405 __Pyx_RefNannySetupContext(
"__set__", 0);
34406 __Pyx_TraceCall(
"__set__", __pyx_f[2], 134, 0, __PYX_ERR(2, 134, __pyx_L1_error));
34407 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 134, __pyx_L1_error)
34408 __pyx_v_self->epsFact_solid = __pyx_t_1;
34414 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.epsFact_solid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34417 __Pyx_TraceReturn(Py_None, 0);
34418 __Pyx_RefNannyFinishContext();
34431 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_1__get__(PyObject *__pyx_v_self);
34432 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_1__get__(PyObject *__pyx_v_self) {
34433 PyObject *__pyx_r = 0;
34434 __Pyx_RefNannyDeclarations
34435 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34436 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34439 __Pyx_RefNannyFinishContext();
34443 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34444 PyObject *__pyx_r = NULL;
34445 __Pyx_TraceDeclarations
34446 __Pyx_RefNannyDeclarations
34447 PyObject *__pyx_t_1 = NULL;
34448 int __pyx_lineno = 0;
34449 const char *__pyx_filename = NULL;
34450 int __pyx_clineno = 0;
34451 __Pyx_RefNannySetupContext(
"__get__", 0);
34452 __Pyx_TraceCall(
"__get__", __pyx_f[2], 135, 0, __PYX_ERR(2, 135, __pyx_L1_error));
34453 __Pyx_XDECREF(__pyx_r);
34454 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->epsFact_porous);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 135, __pyx_L1_error)
34455 __Pyx_GOTREF(__pyx_t_1);
34456 __pyx_r = __pyx_t_1;
34462 __Pyx_XDECREF(__pyx_t_1);
34463 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.epsFact_porous.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34466 __Pyx_XGIVEREF(__pyx_r);
34467 __Pyx_TraceReturn(__pyx_r, 0);
34468 __Pyx_RefNannyFinishContext();
34473 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34474 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34476 __Pyx_RefNannyDeclarations
34477 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34478 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34481 __Pyx_RefNannyFinishContext();
34485 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34487 __Pyx_TraceDeclarations
34488 __Pyx_RefNannyDeclarations
34490 int __pyx_lineno = 0;
34491 const char *__pyx_filename = NULL;
34492 int __pyx_clineno = 0;
34493 __Pyx_RefNannySetupContext(
"__set__", 0);
34494 __Pyx_TraceCall(
"__set__", __pyx_f[2], 135, 0, __PYX_ERR(2, 135, __pyx_L1_error));
34495 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 135, __pyx_L1_error)
34496 __pyx_v_self->epsFact_porous = __pyx_t_1;
34502 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.epsFact_porous.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34505 __Pyx_TraceReturn(Py_None, 0);
34506 __Pyx_RefNannyFinishContext();
34519 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_1__get__(PyObject *__pyx_v_self);
34520 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_1__get__(PyObject *__pyx_v_self) {
34521 PyObject *__pyx_r = 0;
34522 __Pyx_RefNannyDeclarations
34523 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34524 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34527 __Pyx_RefNannyFinishContext();
34531 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34532 PyObject *__pyx_r = NULL;
34533 __Pyx_TraceDeclarations
34534 __Pyx_RefNannyDeclarations
34535 PyObject *__pyx_t_1 = NULL;
34536 int __pyx_lineno = 0;
34537 const char *__pyx_filename = NULL;
34538 int __pyx_clineno = 0;
34539 __Pyx_RefNannySetupContext(
"__get__", 0);
34540 __Pyx_TraceCall(
"__get__", __pyx_f[2], 136, 0, __PYX_ERR(2, 136, __pyx_L1_error));
34541 __Pyx_XDECREF(__pyx_r);
34542 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->vert_axis);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 136, __pyx_L1_error)
34543 __Pyx_GOTREF(__pyx_t_1);
34544 __pyx_r = __pyx_t_1;
34550 __Pyx_XDECREF(__pyx_t_1);
34551 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.vert_axis.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34554 __Pyx_XGIVEREF(__pyx_r);
34555 __Pyx_TraceReturn(__pyx_r, 0);
34556 __Pyx_RefNannyFinishContext();
34561 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34562 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34564 __Pyx_RefNannyDeclarations
34565 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34566 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34569 __Pyx_RefNannyFinishContext();
34573 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34575 __Pyx_TraceDeclarations
34576 __Pyx_RefNannyDeclarations
34578 int __pyx_lineno = 0;
34579 const char *__pyx_filename = NULL;
34580 int __pyx_clineno = 0;
34581 __Pyx_RefNannySetupContext(
"__set__", 0);
34582 __Pyx_TraceCall(
"__set__", __pyx_f[2], 136, 0, __PYX_ERR(2, 136, __pyx_L1_error));
34583 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 136, __pyx_L1_error)
34584 __pyx_v_self->vert_axis = __pyx_t_1;
34590 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.vert_axis.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34593 __Pyx_TraceReturn(Py_None, 0);
34594 __Pyx_RefNannyFinishContext();
34607 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_1__get__(PyObject *__pyx_v_self);
34608 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_1__get__(PyObject *__pyx_v_self) {
34609 PyObject *__pyx_r = 0;
34610 __Pyx_RefNannyDeclarations
34611 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34612 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34615 __Pyx_RefNannyFinishContext();
34619 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34620 PyObject *__pyx_r = NULL;
34621 __Pyx_TraceDeclarations
34622 __Pyx_RefNannyDeclarations
34623 PyObject *__pyx_t_1 = NULL;
34624 int __pyx_lineno = 0;
34625 const char *__pyx_filename = NULL;
34626 int __pyx_clineno = 0;
34627 __Pyx_RefNannySetupContext(
"__get__", 0);
34628 __Pyx_TraceCall(
"__get__", __pyx_f[2], 137, 0, __PYX_ERR(2, 137, __pyx_L1_error));
34629 __Pyx_XDECREF(__pyx_r);
34630 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->center, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 137, __pyx_L1_error)
34631 __Pyx_GOTREF(__pyx_t_1);
34632 __pyx_r = __pyx_t_1;
34638 __Pyx_XDECREF(__pyx_t_1);
34639 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.center.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34642 __Pyx_XGIVEREF(__pyx_r);
34643 __Pyx_TraceReturn(__pyx_r, 0);
34644 __Pyx_RefNannyFinishContext();
34649 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34650 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34652 __Pyx_RefNannyDeclarations
34653 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34654 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34657 __Pyx_RefNannyFinishContext();
34661 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_6center_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34663 __Pyx_TraceDeclarations
34664 __Pyx_RefNannyDeclarations
34665 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
34666 int __pyx_lineno = 0;
34667 const char *__pyx_filename = NULL;
34668 int __pyx_clineno = 0;
34669 __Pyx_RefNannySetupContext(
"__set__", 0);
34670 __Pyx_TraceCall(
"__set__", __pyx_f[2], 137, 0, __PYX_ERR(2, 137, __pyx_L1_error));
34671 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_value, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(2, 137, __pyx_L1_error)
34672 __PYX_XDEC_MEMVIEW(&__pyx_v_self->center, 0);
34673 __pyx_v_self->center = __pyx_t_1;
34674 __pyx_t_1.memview = NULL;
34675 __pyx_t_1.data = NULL;
34681 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
34682 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.center.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34685 __Pyx_TraceReturn(Py_None, 0);
34686 __Pyx_RefNannyFinishContext();
34699 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_1__get__(PyObject *__pyx_v_self);
34700 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_1__get__(PyObject *__pyx_v_self) {
34701 PyObject *__pyx_r = 0;
34702 __Pyx_RefNannyDeclarations
34703 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
34704 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34707 __Pyx_RefNannyFinishContext();
34711 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34712 PyObject *__pyx_r = NULL;
34713 __Pyx_TraceDeclarations
34714 __Pyx_RefNannyDeclarations
34715 PyObject *__pyx_t_1 = NULL;
34716 int __pyx_lineno = 0;
34717 const char *__pyx_filename = NULL;
34718 int __pyx_clineno = 0;
34719 __Pyx_RefNannySetupContext(
"__get__", 0);
34720 __Pyx_TraceCall(
"__get__", __pyx_f[2], 138, 0, __PYX_ERR(2, 138, __pyx_L1_error));
34721 __Pyx_XDECREF(__pyx_r);
34722 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->orientation, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 138, __pyx_L1_error)
34723 __Pyx_GOTREF(__pyx_t_1);
34724 __pyx_r = __pyx_t_1;
34730 __Pyx_XDECREF(__pyx_t_1);
34731 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.orientation.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34734 __Pyx_XGIVEREF(__pyx_r);
34735 __Pyx_TraceReturn(__pyx_r, 0);
34736 __Pyx_RefNannyFinishContext();
34741 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
34742 static int __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
34744 __Pyx_RefNannyDeclarations
34745 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
34746 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v_value));
34749 __Pyx_RefNannyFinishContext();
34753 static int __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, PyObject *__pyx_v_value) {
34755 __Pyx_TraceDeclarations
34756 __Pyx_RefNannyDeclarations
34757 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
34758 int __pyx_lineno = 0;
34759 const char *__pyx_filename = NULL;
34760 int __pyx_clineno = 0;
34761 __Pyx_RefNannySetupContext(
"__set__", 0);
34762 __Pyx_TraceCall(
"__set__", __pyx_f[2], 138, 0, __PYX_ERR(2, 138, __pyx_L1_error));
34763 __pyx_t_1 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_value, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(2, 138, __pyx_L1_error)
34764 __PYX_XDEC_MEMVIEW(&__pyx_v_self->orientation, 0);
34765 __pyx_v_self->orientation = __pyx_t_1;
34766 __pyx_t_1.memview = NULL;
34767 __pyx_t_1.data = NULL;
34773 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
34774 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.orientation.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34777 __Pyx_TraceReturn(Py_None, 0);
34778 __Pyx_RefNannyFinishContext();
34789 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
34790 static char __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__[] =
"RelaxationZone.__reduce_cython__(self)";
34791 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__};
34792 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
34793 PyObject *__pyx_r = 0;
34794 __Pyx_RefNannyDeclarations
34795 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
34796 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self));
34799 __Pyx_RefNannyFinishContext();
34803 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self) {
34804 PyObject *__pyx_r = NULL;
34805 __Pyx_TraceDeclarations
34806 __Pyx_RefNannyDeclarations
34807 PyObject *__pyx_t_1 = NULL;
34808 int __pyx_lineno = 0;
34809 const char *__pyx_filename = NULL;
34810 int __pyx_clineno = 0;
34811 __Pyx_TraceFrameInit(__pyx_codeobj__95)
34812 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
34813 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
34821 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__96, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
34822 __Pyx_GOTREF(__pyx_t_1);
34823 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
34824 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
34825 __PYX_ERR(1, 2, __pyx_L1_error)
34835 __Pyx_XDECREF(__pyx_t_1);
34836 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34838 __Pyx_XGIVEREF(__pyx_r);
34839 __Pyx_TraceReturn(__pyx_r, 0);
34840 __Pyx_RefNannyFinishContext();
34852 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
34853 static char __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__[] =
"RelaxationZone.__setstate_cython__(self, __pyx_state)";
34854 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__};
34855 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
34856 PyObject *__pyx_r = 0;
34857 __Pyx_RefNannyDeclarations
34858 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
34859 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
34862 __Pyx_RefNannyFinishContext();
34866 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
34867 PyObject *__pyx_r = NULL;
34868 __Pyx_TraceDeclarations
34869 __Pyx_RefNannyDeclarations
34870 PyObject *__pyx_t_1 = NULL;
34871 int __pyx_lineno = 0;
34872 const char *__pyx_filename = NULL;
34873 int __pyx_clineno = 0;
34874 __Pyx_TraceFrameInit(__pyx_codeobj__97)
34875 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
34876 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error));
34883 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__98, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
34884 __Pyx_GOTREF(__pyx_t_1);
34885 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
34886 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
34887 __PYX_ERR(1, 4, __pyx_L1_error)
34898 __Pyx_XDECREF(__pyx_t_1);
34899 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZone.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34901 __Pyx_XGIVEREF(__pyx_r);
34902 __Pyx_TraceReturn(__pyx_r, 0);
34903 __Pyx_RefNannyFinishContext();
34916 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
34917 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
34918 PyObject *__pyx_v_zones = 0;
34919 PyObject *__pyx_v_nd = 0;
34920 int __pyx_lineno = 0;
34921 const char *__pyx_filename = NULL;
34922 int __pyx_clineno = 0;
34924 __Pyx_RefNannyDeclarations
34925 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
34927 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_zones,&__pyx_n_s_nd,0};
34928 PyObject* values[2] = {0,0};
34929 if (unlikely(__pyx_kwds)) {
34930 Py_ssize_t kw_args;
34931 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
34932 switch (pos_args) {
34933 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34934 CYTHON_FALLTHROUGH;
34935 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34936 CYTHON_FALLTHROUGH;
34938 default:
goto __pyx_L5_argtuple_error;
34940 kw_args = PyDict_Size(__pyx_kwds);
34941 switch (pos_args) {
34943 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_zones)) != 0)) kw_args--;
34944 else goto __pyx_L5_argtuple_error;
34945 CYTHON_FALLTHROUGH;
34947 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nd)) != 0)) kw_args--;
34949 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, 1); __PYX_ERR(0, 1050, __pyx_L3_error)
34952 if (unlikely(kw_args > 0)) {
34953 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 1050, __pyx_L3_error)
34955 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
34956 goto __pyx_L5_argtuple_error;
34958 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
34959 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
34961 __pyx_v_zones = values[0];
34962 __pyx_v_nd = values[1];
34964 goto __pyx_L4_argument_unpacking_done;
34965 __pyx_L5_argtuple_error:;
34966 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1050, __pyx_L3_error)
34968 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
34969 __Pyx_RefNannyFinishContext();
34971 __pyx_L4_argument_unpacking_done:;
34972 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___init__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), __pyx_v_zones, __pyx_v_nd);
34975 __Pyx_RefNannyFinishContext();
34979 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___init__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_zones, PyObject *__pyx_v_nd) {
34981 __Pyx_TraceDeclarations
34982 __Pyx_RefNannyDeclarations
34983 PyObject *__pyx_t_1 = NULL;
34985 int __pyx_lineno = 0;
34986 const char *__pyx_filename = NULL;
34987 int __pyx_clineno = 0;
34988 __Pyx_RefNannySetupContext(
"__init__", 0);
34989 __Pyx_TraceCall(
"__init__", __pyx_f[0], 1050, 0, __PYX_ERR(0, 1050, __pyx_L1_error));
34998 if (!(likely(PyDict_CheckExact(__pyx_v_zones))||((__pyx_v_zones) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"dict", Py_TYPE(__pyx_v_zones)->tp_name), 0))) __PYX_ERR(0, 1051, __pyx_L1_error)
34999 __pyx_t_1 = __pyx_v_zones;
35000 __Pyx_INCREF(__pyx_t_1);
35001 __Pyx_GIVEREF(__pyx_t_1);
35002 __Pyx_GOTREF(__pyx_v_self->zones);
35003 __Pyx_DECREF(__pyx_v_self->zones);
35004 __pyx_v_self->zones = ((PyObject*)__pyx_t_1);
35014 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_v_nd);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1052, __pyx_L1_error)
35015 __pyx_v_self->nd = __pyx_t_2;
35029 __Pyx_XDECREF(__pyx_t_1);
35030 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
35033 __Pyx_TraceReturn(Py_None, 0);
35034 __Pyx_RefNannyFinishContext();
35047 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
35048 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel[] =
"RelaxationZoneWaveGenerator.attachModel(self, model, ar)";
35049 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel = {
"attachModel", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel};
35050 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
35051 PyObject *__pyx_v_model = 0;
35052 PyObject *__pyx_v_ar = 0;
35053 int __pyx_lineno = 0;
35054 const char *__pyx_filename = NULL;
35055 int __pyx_clineno = 0;
35056 PyObject *__pyx_r = 0;
35057 __Pyx_RefNannyDeclarations
35058 __Pyx_RefNannySetupContext(
"attachModel (wrapper)", 0);
35060 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_model,&__pyx_n_s_ar,0};
35061 PyObject* values[2] = {0,0};
35062 if (unlikely(__pyx_kwds)) {
35063 Py_ssize_t kw_args;
35064 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
35065 switch (pos_args) {
35066 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35067 CYTHON_FALLTHROUGH;
35068 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35069 CYTHON_FALLTHROUGH;
35071 default:
goto __pyx_L5_argtuple_error;
35073 kw_args = PyDict_Size(__pyx_kwds);
35074 switch (pos_args) {
35076 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_model)) != 0)) kw_args--;
35077 else goto __pyx_L5_argtuple_error;
35078 CYTHON_FALLTHROUGH;
35080 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ar)) != 0)) kw_args--;
35082 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 2, 2, 1); __PYX_ERR(0, 1054, __pyx_L3_error)
35085 if (unlikely(kw_args > 0)) {
35086 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"attachModel") < 0)) __PYX_ERR(0, 1054, __pyx_L3_error)
35088 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
35089 goto __pyx_L5_argtuple_error;
35091 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
35092 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
35094 __pyx_v_model = values[0];
35095 __pyx_v_ar = values[1];
35097 goto __pyx_L4_argument_unpacking_done;
35098 __pyx_L5_argtuple_error:;
35099 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1054, __pyx_L3_error)
35101 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
35102 __Pyx_RefNannyFinishContext();
35104 __pyx_L4_argument_unpacking_done:;
35105 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), __pyx_v_model, __pyx_v_ar);
35108 __Pyx_RefNannyFinishContext();
35112 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar) {
35113 PyObject *__pyx_r = NULL;
35114 __Pyx_TraceDeclarations
35115 __Pyx_RefNannyDeclarations
35116 int __pyx_lineno = 0;
35117 const char *__pyx_filename = NULL;
35118 int __pyx_clineno = 0;
35119 __Pyx_TraceFrameInit(__pyx_codeobj__99)
35120 __Pyx_RefNannySetupContext(
"attachModel", 0);
35121 __Pyx_TraceCall(
"attachModel", __pyx_f[0], 1054, 0, __PYX_ERR(0, 1054, __pyx_L1_error));
35130 __Pyx_INCREF(__pyx_v_model);
35131 __Pyx_GIVEREF(__pyx_v_model);
35132 __Pyx_GOTREF(__pyx_v_self->model);
35133 __Pyx_DECREF(__pyx_v_self->model);
35134 __pyx_v_self->model = __pyx_v_model;
35143 __Pyx_INCREF(__pyx_v_ar);
35144 __Pyx_GIVEREF(__pyx_v_ar);
35145 __Pyx_GOTREF(__pyx_v_self->ar);
35146 __Pyx_DECREF(__pyx_v_self->ar);
35147 __pyx_v_self->ar = __pyx_v_ar;
35156 __Pyx_XDECREF(__pyx_r);
35157 __Pyx_INCREF(((PyObject *)__pyx_v_self));
35158 __pyx_r = ((PyObject *)__pyx_v_self);
35171 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
35174 __Pyx_XGIVEREF(__pyx_r);
35175 __Pyx_TraceReturn(__pyx_r, 0);
35176 __Pyx_RefNannyFinishContext();
35189 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables(PyObject *__pyx_v_self, PyObject *__pyx_v_avDict);
35190 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables[] =
"RelaxationZoneWaveGenerator.attachAuxiliaryVariables(self, avDict)";
35191 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables = {
"attachAuxiliaryVariables", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables, METH_O, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables};
35192 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables(PyObject *__pyx_v_self, PyObject *__pyx_v_avDict) {
35193 PyObject *__pyx_r = 0;
35194 __Pyx_RefNannyDeclarations
35195 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables (wrapper)", 0);
35196 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_avDict));
35199 __Pyx_RefNannyFinishContext();
35203 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables(CYTHON_UNUSED
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict) {
35204 PyObject *__pyx_r = NULL;
35205 __Pyx_TraceDeclarations
35206 __Pyx_RefNannyDeclarations
35207 int __pyx_lineno = 0;
35208 const char *__pyx_filename = NULL;
35209 int __pyx_clineno = 0;
35210 __Pyx_TraceFrameInit(__pyx_codeobj__100)
35211 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables", 0);
35212 __Pyx_TraceCall(
"attachAuxiliaryVariables", __pyx_f[0], 1059, 0, __PYX_ERR(0, 1059, __pyx_L1_error));
35215 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
35218 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.attachAuxiliaryVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
35221 __Pyx_XGIVEREF(__pyx_r);
35222 __Pyx_TraceReturn(__pyx_r, 0);
35223 __Pyx_RefNannyFinishContext();
35235 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
35236 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self,
int __pyx_skip_dispatch) {
35237 PyObject *__pyx_v_max_key = NULL;
35238 PyObject *__pyx_v_key = NULL;
35239 PyObject *__pyx_v_zone = NULL;
35240 __Pyx_TraceDeclarations
35241 __Pyx_RefNannyDeclarations
35242 PyObject *__pyx_t_1 = NULL;
35243 PyObject *__pyx_t_2 = NULL;
35244 PyObject *__pyx_t_3 = NULL;
35245 PyObject *__pyx_t_4 = NULL;
35246 Py_ssize_t __pyx_t_5;
35247 PyObject *__pyx_t_6 = NULL;
35248 PyObject *(*__pyx_t_7)(PyObject *);
35251 int __pyx_lineno = 0;
35252 const char *__pyx_filename = NULL;
35253 int __pyx_clineno = 0;
35254 __Pyx_TraceFrameInit(__pyx_codeobj__101)
35255 __Pyx_RefNannySetupContext(
"calculate_init", 0);
35256 __Pyx_TraceCall(
"calculate_init", __pyx_f[0], 1062, 0, __PYX_ERR(0, 1062, __pyx_L1_error));
35258 if (unlikely(__pyx_skip_dispatch)) ;
35260 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
35261 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35262 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
35263 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
35264 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
35266 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_calculate_init);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error)
35267 __Pyx_GOTREF(__pyx_t_1);
35268 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init)) {
35269 __Pyx_INCREF(__pyx_t_1);
35270 __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
35271 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
35272 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
35273 if (likely(__pyx_t_4)) {
35274 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
35275 __Pyx_INCREF(__pyx_t_4);
35276 __Pyx_INCREF(
function);
35277 __Pyx_DECREF_SET(__pyx_t_3,
function);
35280 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
35281 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
35282 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1062, __pyx_L1_error)
35283 __Pyx_GOTREF(__pyx_t_2);
35284 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35285 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35286 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35289 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35290 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
35291 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
35292 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
35293 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
35296 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35297 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35309 __Pyx_INCREF(__pyx_int_0);
35310 __pyx_v_max_key = __pyx_int_0;
35319 if (unlikely(__pyx_v_self->zones == Py_None)) {
35320 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"items");
35321 __PYX_ERR(0, 1064, __pyx_L1_error)
35323 __pyx_t_1 = __Pyx_PyDict_Items(__pyx_v_self->zones);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error)
35324 __Pyx_GOTREF(__pyx_t_1);
35325 __pyx_t_2 = PySequence_List(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error)
35326 __Pyx_GOTREF(__pyx_t_2);
35327 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35328 __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_5 = 0;
35329 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35331 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_1))
break;
35332 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35333 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1064, __pyx_L1_error)
35335 __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1064, __pyx_L1_error)
35336 __Pyx_GOTREF(__pyx_t_2);
35338 if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
35339 PyObject* sequence = __pyx_t_2;
35340 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
35341 if (unlikely(size != 2)) {
35342 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
35343 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
35344 __PYX_ERR(0, 1064, __pyx_L1_error)
35346 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35347 if (likely(PyTuple_CheckExact(sequence))) {
35348 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
35349 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
35351 __pyx_t_3 = PyList_GET_ITEM(sequence, 0);
35352 __pyx_t_4 = PyList_GET_ITEM(sequence, 1);
35354 __Pyx_INCREF(__pyx_t_3);
35355 __Pyx_INCREF(__pyx_t_4);
35357 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1064, __pyx_L1_error)
35358 __Pyx_GOTREF(__pyx_t_3);
35359 __pyx_t_4 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1064, __pyx_L1_error)
35360 __Pyx_GOTREF(__pyx_t_4);
35362 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35364 Py_ssize_t index = -1;
35365 __pyx_t_6 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1064, __pyx_L1_error)
35366 __Pyx_GOTREF(__pyx_t_6);
35367 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35368 __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
35369 index = 0; __pyx_t_3 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_3))
goto __pyx_L5_unpacking_failed;
35370 __Pyx_GOTREF(__pyx_t_3);
35371 index = 1; __pyx_t_4 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_4))
goto __pyx_L5_unpacking_failed;
35372 __Pyx_GOTREF(__pyx_t_4);
35373 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 1064, __pyx_L1_error)
35375 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
35376 goto __pyx_L6_unpacking_done;
35377 __pyx_L5_unpacking_failed:;
35378 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
35380 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
35381 __PYX_ERR(0, 1064, __pyx_L1_error)
35382 __pyx_L6_unpacking_done:;
35384 __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_3);
35386 __Pyx_XDECREF_SET(__pyx_v_zone, __pyx_t_4);
35396 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_zone, __pyx_n_s_calculate_init);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error)
35397 __Pyx_GOTREF(__pyx_t_4);
35399 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
35400 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
35401 if (likely(__pyx_t_3)) {
35402 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
35403 __Pyx_INCREF(__pyx_t_3);
35404 __Pyx_INCREF(
function);
35405 __Pyx_DECREF_SET(__pyx_t_4,
function);
35408 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
35409 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
35410 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error)
35411 __Pyx_GOTREF(__pyx_t_2);
35412 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
35413 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35422 __pyx_t_2 = PyObject_RichCompare(__pyx_v_key, __pyx_v_max_key, Py_GT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1066, __pyx_L1_error)
35423 __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1066, __pyx_L1_error)
35424 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35434 __Pyx_INCREF(__pyx_v_key);
35435 __Pyx_DECREF_SET(__pyx_v_max_key, __pyx_v_key);
35454 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35463 __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_max_key);
if (unlikely((__pyx_t_9 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1068, __pyx_L1_error)
35464 __pyx_v_self->max_flag = __pyx_t_9;
35473 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
35474 __Pyx_GOTREF(__pyx_t_1);
35475 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_empty);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1069, __pyx_L1_error)
35476 __Pyx_GOTREF(__pyx_t_2);
35477 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35478 __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_v_self->max_flag + 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
35479 __Pyx_GOTREF(__pyx_t_1);
35480 __pyx_t_4 = PyTuple_New(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1069, __pyx_L1_error)
35481 __Pyx_GOTREF(__pyx_t_4);
35482 __Pyx_GIVEREF(__pyx_t_1);
35483 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
35485 __pyx_t_1 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
35486 __Pyx_GOTREF(__pyx_t_1);
35487 if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, ((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone)) < 0) __PYX_ERR(0, 1069, __pyx_L1_error)
35488 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1069, __pyx_L1_error)
35489 __Pyx_GOTREF(__pyx_t_3);
35490 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35491 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
35492 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35493 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1069, __pyx_L1_error)
35494 __Pyx_GIVEREF(__pyx_t_3);
35495 __Pyx_GOTREF(__pyx_v_self->zones_array);
35496 __Pyx_DECREF(((PyObject *)__pyx_v_self->zones_array));
35497 __pyx_v_self->zones_array = ((PyArrayObject *)__pyx_t_3);
35507 if (unlikely(__pyx_v_self->zones == Py_None)) {
35508 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"items");
35509 __PYX_ERR(0, 1070, __pyx_L1_error)
35511 __pyx_t_3 = __Pyx_PyDict_Items(__pyx_v_self->zones);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1070, __pyx_L1_error)
35512 __Pyx_GOTREF(__pyx_t_3);
35513 __pyx_t_1 = PySequence_List(__pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error)
35514 __Pyx_GOTREF(__pyx_t_1);
35515 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35516 __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0;
35517 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35519 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3))
break;
35520 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35521 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1070, __pyx_L1_error)
35523 __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error)
35524 __Pyx_GOTREF(__pyx_t_1);
35526 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
35527 PyObject* sequence = __pyx_t_1;
35528 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
35529 if (unlikely(size != 2)) {
35530 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
35531 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
35532 __PYX_ERR(0, 1070, __pyx_L1_error)
35534 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35535 if (likely(PyTuple_CheckExact(sequence))) {
35536 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
35537 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
35539 __pyx_t_4 = PyList_GET_ITEM(sequence, 0);
35540 __pyx_t_2 = PyList_GET_ITEM(sequence, 1);
35542 __Pyx_INCREF(__pyx_t_4);
35543 __Pyx_INCREF(__pyx_t_2);
35545 __pyx_t_4 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1070, __pyx_L1_error)
35546 __Pyx_GOTREF(__pyx_t_4);
35547 __pyx_t_2 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1070, __pyx_L1_error)
35548 __Pyx_GOTREF(__pyx_t_2);
35550 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35552 Py_ssize_t index = -1;
35553 __pyx_t_6 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1070, __pyx_L1_error)
35554 __Pyx_GOTREF(__pyx_t_6);
35555 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35556 __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
35557 index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_4))
goto __pyx_L10_unpacking_failed;
35558 __Pyx_GOTREF(__pyx_t_4);
35559 index = 1; __pyx_t_2 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_2))
goto __pyx_L10_unpacking_failed;
35560 __Pyx_GOTREF(__pyx_t_2);
35561 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 1070, __pyx_L1_error)
35563 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
35564 goto __pyx_L11_unpacking_done;
35565 __pyx_L10_unpacking_failed:;
35566 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
35568 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
35569 __PYX_ERR(0, 1070, __pyx_L1_error)
35570 __pyx_L11_unpacking_done:;
35572 __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_4);
35574 __Pyx_XDECREF_SET(__pyx_v_zone, __pyx_t_2);
35584 if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self->zones_array), __pyx_v_key, __pyx_v_zone) < 0)) __PYX_ERR(0, 1071, __pyx_L1_error)
35594 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35607 __Pyx_XDECREF(__pyx_t_1);
35608 __Pyx_XDECREF(__pyx_t_2);
35609 __Pyx_XDECREF(__pyx_t_3);
35610 __Pyx_XDECREF(__pyx_t_4);
35611 __Pyx_XDECREF(__pyx_t_6);
35612 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
35614 __Pyx_XDECREF(__pyx_v_max_key);
35615 __Pyx_XDECREF(__pyx_v_key);
35616 __Pyx_XDECREF(__pyx_v_zone);
35617 __Pyx_TraceReturn(Py_None, 0);
35618 __Pyx_RefNannyFinishContext();
35622 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
35623 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_6calculate_init[] =
"RelaxationZoneWaveGenerator.calculate_init(self) -> void";
35624 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init = {
"calculate_init", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_6calculate_init};
35625 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
35626 PyObject *__pyx_r = 0;
35627 __Pyx_RefNannyDeclarations
35628 __Pyx_RefNannySetupContext(
"calculate_init (wrapper)", 0);
35629 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_6calculate_init(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
35632 __Pyx_RefNannyFinishContext();
35636 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_6calculate_init(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
35637 PyObject *__pyx_r = NULL;
35638 __Pyx_TraceDeclarations
35639 __Pyx_RefNannyDeclarations
35640 PyObject *__pyx_t_1 = NULL;
35641 int __pyx_lineno = 0;
35642 const char *__pyx_filename = NULL;
35643 int __pyx_clineno = 0;
35644 __Pyx_TraceFrameInit(__pyx_codeobj__101)
35645 __Pyx_RefNannySetupContext(
"calculate_init", 0);
35646 __Pyx_TraceCall(
"calculate_init (wrapper)", __pyx_f[0], 1062, 0, __PYX_ERR(0, 1062, __pyx_L1_error));
35647 __Pyx_XDECREF(__pyx_r);
35648 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate_init(__pyx_v_self, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error)
35649 __Pyx_GOTREF(__pyx_t_1);
35650 __pyx_r = __pyx_t_1;
35656 __Pyx_XDECREF(__pyx_t_1);
35657 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
35660 __Pyx_XGIVEREF(__pyx_r);
35661 __Pyx_TraceReturn(__pyx_r, 0);
35662 __Pyx_RefNannyFinishContext();
35674 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
35675 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self,
int __pyx_skip_dispatch) {
35676 __Pyx_TraceDeclarations
35677 __Pyx_RefNannyDeclarations
35678 PyObject *__pyx_t_1 = NULL;
35679 PyObject *__pyx_t_2 = NULL;
35680 PyObject *__pyx_t_3 = NULL;
35681 PyObject *__pyx_t_4 = NULL;
35682 int __pyx_lineno = 0;
35683 const char *__pyx_filename = NULL;
35684 int __pyx_clineno = 0;
35685 __Pyx_TraceFrameInit(__pyx_codeobj__102)
35686 __Pyx_RefNannySetupContext(
"calculate", 0);
35687 __Pyx_TraceCall(
"calculate", __pyx_f[0], 1073, 0, __PYX_ERR(0, 1073, __pyx_L1_error));
35689 if (unlikely(__pyx_skip_dispatch)) ;
35691 else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
35692 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35693 static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
35694 if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
35695 PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
35697 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_calculate);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
35698 __Pyx_GOTREF(__pyx_t_1);
35699 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(
void*)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate)) {
35700 __Pyx_INCREF(__pyx_t_1);
35701 __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
35702 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
35703 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
35704 if (likely(__pyx_t_4)) {
35705 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
35706 __Pyx_INCREF(__pyx_t_4);
35707 __Pyx_INCREF(
function);
35708 __Pyx_DECREF_SET(__pyx_t_3,
function);
35711 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
35712 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
35713 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1073, __pyx_L1_error)
35714 __Pyx_GOTREF(__pyx_t_2);
35715 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35716 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
35717 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35720 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35721 __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
35722 __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
35723 if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
35724 __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
35727 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35728 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
35740 ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_iterate(__pyx_v_self);
35753 __Pyx_XDECREF(__pyx_t_1);
35754 __Pyx_XDECREF(__pyx_t_2);
35755 __Pyx_XDECREF(__pyx_t_3);
35756 __Pyx_XDECREF(__pyx_t_4);
35757 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.calculate", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
35759 __Pyx_TraceReturn(Py_None, 0);
35760 __Pyx_RefNannyFinishContext();
35764 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
35765 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_8calculate[] =
"RelaxationZoneWaveGenerator.calculate(self) -> void";
35766 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate = {
"calculate", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_8calculate};
35767 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
35768 PyObject *__pyx_r = 0;
35769 __Pyx_RefNannyDeclarations
35770 __Pyx_RefNannySetupContext(
"calculate (wrapper)", 0);
35771 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_8calculate(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
35774 __Pyx_RefNannyFinishContext();
35778 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_8calculate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
35779 PyObject *__pyx_r = NULL;
35780 __Pyx_TraceDeclarations
35781 __Pyx_RefNannyDeclarations
35782 PyObject *__pyx_t_1 = NULL;
35783 int __pyx_lineno = 0;
35784 const char *__pyx_filename = NULL;
35785 int __pyx_clineno = 0;
35786 __Pyx_TraceFrameInit(__pyx_codeobj__102)
35787 __Pyx_RefNannySetupContext(
"calculate", 0);
35788 __Pyx_TraceCall(
"calculate (wrapper)", __pyx_f[0], 1073, 0, __PYX_ERR(0, 1073, __pyx_L1_error));
35789 __Pyx_XDECREF(__pyx_r);
35790 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate(__pyx_v_self, 1));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
35791 __Pyx_GOTREF(__pyx_t_1);
35792 __pyx_r = __pyx_t_1;
35798 __Pyx_XDECREF(__pyx_t_1);
35799 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.calculate", __pyx_clineno, __pyx_lineno, __pyx_filename);
35802 __Pyx_XGIVEREF(__pyx_r);
35803 __Pyx_TraceReturn(__pyx_r, 0);
35804 __Pyx_RefNannyFinishContext();
35816 static void __pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___cpp_iterate(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
35817 PyObject *__pyx_v_m = 0;
35818 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *__pyx_v_zone = 0;
35822 __pyx_t_6mprans_18BoundaryConditions_double_memview3 __pyx_v_qx = { 0, 0, { 0 }, { 0 }, { 0 } };
35823 double __pyx_v_x[3];
35826 __pyx_t_6mprans_18BoundaryConditions_double_memview2 __pyx_v_q_phi_porous = { 0, 0, { 0 }, { 0 }, { 0 } };
35827 double __pyx_v_phi;
35828 __pyx_t_6mprans_18BoundaryConditions_double_memview1 __pyx_v_u = { 0, 0, { 0 }, { 0 }, { 0 } };
35829 __pyx_t_6mprans_18BoundaryConditions_int_memview1 __pyx_v_mTypes = { 0, 0, { 0 }, { 0 }, { 0 } };
35830 PyObject *__pyx_v_l = NULL;
35831 PyObject *__pyx_v_q_velocity_porous = NULL;
35832 PyObject *__pyx_v_eN = NULL;
35833 PyObject *__pyx_v_k = NULL;
35834 __Pyx_TraceDeclarations
35835 __Pyx_RefNannyDeclarations
35836 PyObject *__pyx_t_1 = NULL;
35837 Py_ssize_t __pyx_t_2;
35838 PyObject *__pyx_t_3 = NULL;
35839 PyObject *__pyx_t_4 = NULL;
35840 PyObject *__pyx_t_5 = NULL;
35841 PyObject *(*__pyx_t_6)(PyObject *);
35844 __pyx_t_6mprans_18BoundaryConditions_double_memview3 __pyx_t_9 = { 0, 0, { 0 }, { 0 }, { 0 } };
35845 __pyx_t_6mprans_18BoundaryConditions_double_memview2 __pyx_t_10 = { 0, 0, { 0 }, { 0 }, { 0 } };
35846 __pyx_t_6mprans_18BoundaryConditions_int_memview1 __pyx_t_11 = { 0, 0, { 0 }, { 0 }, { 0 } };
35847 PyObject *__pyx_t_12 = NULL;
35848 Py_ssize_t __pyx_t_13;
35849 PyObject *(*__pyx_t_14)(PyObject *);
35850 Py_ssize_t __pyx_t_15;
35851 Py_ssize_t __pyx_t_16;
35854 PyObject *__pyx_t_19 = NULL;
35855 PyObject *(*__pyx_t_20)(PyObject *);
35856 Py_ssize_t __pyx_t_21;
35857 Py_ssize_t __pyx_t_22;
35858 Py_ssize_t __pyx_t_23;
35859 Py_ssize_t __pyx_t_24;
35860 __Pyx_memviewslice __pyx_t_25 = { 0, 0, { 0 }, { 0 }, { 0 } };
35861 int __pyx_lineno = 0;
35862 const char *__pyx_filename = NULL;
35863 int __pyx_clineno = 0;
35864 __Pyx_RefNannySetupContext(
"__cpp_iterate", 0);
35865 __Pyx_TraceCall(
"__cpp_iterate", __pyx_f[0], 1076, 0, __PYX_ERR(0, 1076, __pyx_L1_error));
35874 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1077, __pyx_L1_error)
35875 __Pyx_GOTREF(__pyx_t_1);
35876 __pyx_t_2 = PyObject_Length(__pyx_t_1);
if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1077, __pyx_L1_error)
35877 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35878 __pyx_v_nl = __pyx_t_2;
35887 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_range);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1078, __pyx_L1_error)
35888 __Pyx_GOTREF(__pyx_t_3);
35889 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_nl);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1078, __pyx_L1_error)
35890 __Pyx_GOTREF(__pyx_t_4);
35892 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
35893 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
35894 if (likely(__pyx_t_5)) {
35895 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
35896 __Pyx_INCREF(__pyx_t_5);
35897 __Pyx_INCREF(
function);
35898 __Pyx_DECREF_SET(__pyx_t_3,
function);
35901 __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
35902 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
35903 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
35904 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
35905 __Pyx_GOTREF(__pyx_t_1);
35906 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
35907 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
35908 __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_2 = 0;
35911 __pyx_t_2 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1078, __pyx_L1_error)
35912 __Pyx_GOTREF(__pyx_t_3);
35913 __pyx_t_6 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1078, __pyx_L1_error)
35915 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35917 if (likely(!__pyx_t_6)) {
35918 if (likely(PyList_CheckExact(__pyx_t_3))) {
35919 if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_3))
break;
35920 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35921 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1078, __pyx_L1_error)
35923 __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_2); __pyx_t_2++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
35924 __Pyx_GOTREF(__pyx_t_1);
35927 if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
35928 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
35929 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1078, __pyx_L1_error)
35931 __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_2); __pyx_t_2++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
35932 __Pyx_GOTREF(__pyx_t_1);
35936 __pyx_t_1 = __pyx_t_6(__pyx_t_3);
35937 if (unlikely(!__pyx_t_1)) {
35938 PyObject* exc_type = PyErr_Occurred();
35940 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
35941 else __PYX_ERR(0, 1078, __pyx_L1_error)
35945 __Pyx_GOTREF(__pyx_t_1);
35947 __Pyx_XDECREF_SET(__pyx_v_l, __pyx_t_1);
35957 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error)
35958 __Pyx_GOTREF(__pyx_t_1);
35959 __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_l);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1080, __pyx_L1_error)
35960 __Pyx_GOTREF(__pyx_t_4);
35961 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35962 __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_4);
35972 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1081, __pyx_L1_error)
35973 __Pyx_GOTREF(__pyx_t_4);
35974 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_q_phi);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error)
35975 __Pyx_GOTREF(__pyx_t_1);
35976 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
35977 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_shape);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1081, __pyx_L1_error)
35978 __Pyx_GOTREF(__pyx_t_4);
35979 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35980 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_4, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error)
35981 __Pyx_GOTREF(__pyx_t_1);
35982 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
35983 __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_7 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1081, __pyx_L1_error)
35984 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35985 __pyx_v_nE = __pyx_t_7;
35994 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error)
35995 __Pyx_GOTREF(__pyx_t_1);
35996 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_q_phi);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1082, __pyx_L1_error)
35997 __Pyx_GOTREF(__pyx_t_4);
35998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
35999 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_shape);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error)
36000 __Pyx_GOTREF(__pyx_t_1);
36001 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36002 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1082, __pyx_L1_error)
36003 __Pyx_GOTREF(__pyx_t_4);
36004 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36005 __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_4);
if (unlikely((__pyx_t_7 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1082, __pyx_L1_error)
36006 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36007 __pyx_v_nk = __pyx_t_7;
36016 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_timeIntegration);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1083, __pyx_L1_error)
36017 __Pyx_GOTREF(__pyx_t_4);
36018 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_t);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1083, __pyx_L1_error)
36019 __Pyx_GOTREF(__pyx_t_1);
36020 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36021 __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_1);
if (unlikely((__pyx_t_8 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1083, __pyx_L1_error)
36022 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36023 __pyx_v_t = __pyx_t_8;
36032 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_q);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error)
36033 __Pyx_GOTREF(__pyx_t_1);
36034 __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_x);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1084, __pyx_L1_error)
36035 __Pyx_GOTREF(__pyx_t_4);
36036 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36037 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_dsdsds_double(__pyx_t_4, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 1084, __pyx_L1_error)
36038 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36039 __PYX_XDEC_MEMVIEW(&__pyx_v_qx, 1);
36040 __pyx_v_qx = __pyx_t_9;
36041 __pyx_t_9.memview = NULL;
36042 __pyx_t_9.data = NULL;
36051 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1085, __pyx_L1_error)
36052 __Pyx_GOTREF(__pyx_t_4);
36053 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_q_phi_porous);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error)
36054 __Pyx_GOTREF(__pyx_t_1);
36055 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36056 __pyx_t_10 = __Pyx_PyObject_to_MemoryviewSlice_dsds_double(__pyx_t_1, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_10.memview)) __PYX_ERR(0, 1085, __pyx_L1_error)
36057 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36058 __PYX_XDEC_MEMVIEW(&__pyx_v_q_phi_porous, 1);
36059 __pyx_v_q_phi_porous = __pyx_t_10;
36060 __pyx_t_10.memview = NULL;
36061 __pyx_t_10.data = NULL;
36070 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error)
36071 __Pyx_GOTREF(__pyx_t_1);
36072 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_q_velocity_porous);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1086, __pyx_L1_error)
36073 __Pyx_GOTREF(__pyx_t_4);
36074 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36075 __Pyx_XDECREF_SET(__pyx_v_q_velocity_porous, __pyx_t_4);
36085 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1087, __pyx_L1_error)
36086 __Pyx_GOTREF(__pyx_t_4);
36087 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_elementMaterialTypes);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error)
36088 __Pyx_GOTREF(__pyx_t_1);
36089 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36090 __pyx_t_11 = __Pyx_PyObject_to_MemoryviewSlice_ds_int(__pyx_t_1, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_11.memview)) __PYX_ERR(0, 1087, __pyx_L1_error)
36091 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36092 __PYX_XDEC_MEMVIEW(&__pyx_v_mTypes, 1);
36093 __pyx_v_mTypes = __pyx_t_11;
36094 __pyx_t_11.memview = NULL;
36095 __pyx_t_11.data = NULL;
36104 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_range);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1089, __pyx_L1_error)
36105 __Pyx_GOTREF(__pyx_t_4);
36106 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_nE);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1089, __pyx_L1_error)
36107 __Pyx_GOTREF(__pyx_t_5);
36109 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
36110 __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4);
36111 if (likely(__pyx_t_12)) {
36112 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
36113 __Pyx_INCREF(__pyx_t_12);
36114 __Pyx_INCREF(
function);
36115 __Pyx_DECREF_SET(__pyx_t_4,
function);
36118 __pyx_t_1 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_12, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
36119 __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
36120 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
36121 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error)
36122 __Pyx_GOTREF(__pyx_t_1);
36123 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36124 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
36125 __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_13 = 0;
36128 __pyx_t_13 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1089, __pyx_L1_error)
36129 __Pyx_GOTREF(__pyx_t_4);
36130 __pyx_t_14 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1089, __pyx_L1_error)
36132 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36134 if (likely(!__pyx_t_14)) {
36135 if (likely(PyList_CheckExact(__pyx_t_4))) {
36136 if (__pyx_t_13 >= PyList_GET_SIZE(__pyx_t_4))
break;
36137 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
36138 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_13); __Pyx_INCREF(__pyx_t_1); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1089, __pyx_L1_error)
36140 __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error)
36141 __Pyx_GOTREF(__pyx_t_1);
36144 if (__pyx_t_13 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
36145 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
36146 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_13); __Pyx_INCREF(__pyx_t_1); __pyx_t_13++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1089, __pyx_L1_error)
36148 __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_13); __pyx_t_13++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error)
36149 __Pyx_GOTREF(__pyx_t_1);
36153 __pyx_t_1 = __pyx_t_14(__pyx_t_4);
36154 if (unlikely(!__pyx_t_1)) {
36155 PyObject* exc_type = PyErr_Occurred();
36157 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
36158 else __PYX_ERR(0, 1089, __pyx_L1_error)
36162 __Pyx_GOTREF(__pyx_t_1);
36164 __Pyx_XDECREF_SET(__pyx_v_eN, __pyx_t_1);
36174 __pyx_t_15 = __Pyx_PyIndex_AsSsize_t(__pyx_v_eN);
if (unlikely((__pyx_t_15 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1090, __pyx_L1_error)
36175 __pyx_t_16 = __pyx_t_15;
36176 __pyx_v_mType = (*((
int *) ( (__pyx_v_mTypes.data + __pyx_t_16 * __pyx_v_mTypes.strides[0]) )));
36185 __pyx_t_17 = ((__pyx_v_mType <= __pyx_v_self->max_flag) != 0);
36195 __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_self->zones_array), __pyx_v_mType,
int, 1, __Pyx_PyInt_From_int, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1092, __pyx_L1_error)
36196 __Pyx_GOTREF(__pyx_t_1);
36197 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone))))) __PYX_ERR(0, 1092, __pyx_L1_error)
36198 __Pyx_XDECREF_SET(__pyx_v_zone, ((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_t_1));
36208 __pyx_t_17 = (((PyObject *)__pyx_v_zone) != Py_None);
36209 __pyx_t_18 = (__pyx_t_17 != 0);
36219 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_range);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1094, __pyx_L1_error)
36220 __Pyx_GOTREF(__pyx_t_5);
36221 __pyx_t_12 = __Pyx_PyInt_From_int(__pyx_v_nk);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1094, __pyx_L1_error)
36222 __Pyx_GOTREF(__pyx_t_12);
36224 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
36225 __pyx_t_19 = PyMethod_GET_SELF(__pyx_t_5);
36226 if (likely(__pyx_t_19)) {
36227 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
36228 __Pyx_INCREF(__pyx_t_19);
36229 __Pyx_INCREF(
function);
36230 __Pyx_DECREF_SET(__pyx_t_5,
function);
36233 __pyx_t_1 = (__pyx_t_19) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_19, __pyx_t_12) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_12);
36234 __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
36235 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
36236 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error)
36237 __Pyx_GOTREF(__pyx_t_1);
36238 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
36239 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
36240 __pyx_t_5 = __pyx_t_1; __Pyx_INCREF(__pyx_t_5); __pyx_t_15 = 0;
36243 __pyx_t_15 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1094, __pyx_L1_error)
36244 __Pyx_GOTREF(__pyx_t_5);
36245 __pyx_t_20 = Py_TYPE(__pyx_t_5)->tp_iternext;
if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1094, __pyx_L1_error)
36247 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36249 if (likely(!__pyx_t_20)) {
36250 if (likely(PyList_CheckExact(__pyx_t_5))) {
36251 if (__pyx_t_15 >= PyList_GET_SIZE(__pyx_t_5))
break;
36252 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
36253 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_15); __Pyx_INCREF(__pyx_t_1); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1094, __pyx_L1_error)
36255 __pyx_t_1 = PySequence_ITEM(__pyx_t_5, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error)
36256 __Pyx_GOTREF(__pyx_t_1);
36259 if (__pyx_t_15 >= PyTuple_GET_SIZE(__pyx_t_5))
break;
36260 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
36261 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_15); __Pyx_INCREF(__pyx_t_1); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1094, __pyx_L1_error)
36263 __pyx_t_1 = PySequence_ITEM(__pyx_t_5, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1094, __pyx_L1_error)
36264 __Pyx_GOTREF(__pyx_t_1);
36268 __pyx_t_1 = __pyx_t_20(__pyx_t_5);
36269 if (unlikely(!__pyx_t_1)) {
36270 PyObject* exc_type = PyErr_Occurred();
36272 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
36273 else __PYX_ERR(0, 1094, __pyx_L1_error)
36277 __Pyx_GOTREF(__pyx_t_1);
36279 __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_1);
36289 __pyx_t_21 = __Pyx_PyIndex_AsSsize_t(__pyx_v_eN);
if (unlikely((__pyx_t_21 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1095, __pyx_L1_error)
36290 __pyx_t_22 = __Pyx_PyIndex_AsSsize_t(__pyx_v_k);
if (unlikely((__pyx_t_22 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1095, __pyx_L1_error)
36291 __pyx_t_16 = __pyx_t_21;
36292 __pyx_t_23 = __pyx_t_22;
36294 (__pyx_v_x[0]) = (*((
double *) ( (( (( (__pyx_v_qx.data + __pyx_t_16 * __pyx_v_qx.strides[0]) ) + __pyx_t_23 * __pyx_v_qx.strides[1]) ) + __pyx_t_24 * __pyx_v_qx.strides[2]) )));
36303 __pyx_t_22 = __Pyx_PyIndex_AsSsize_t(__pyx_v_eN);
if (unlikely((__pyx_t_22 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1096, __pyx_L1_error)
36304 __pyx_t_21 = __Pyx_PyIndex_AsSsize_t(__pyx_v_k);
if (unlikely((__pyx_t_21 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1096, __pyx_L1_error)
36305 __pyx_t_24 = __pyx_t_22;
36306 __pyx_t_23 = __pyx_t_21;
36308 (__pyx_v_x[1]) = (*((
double *) ( (( (( (__pyx_v_qx.data + __pyx_t_24 * __pyx_v_qx.strides[0]) ) + __pyx_t_23 * __pyx_v_qx.strides[1]) ) + __pyx_t_16 * __pyx_v_qx.strides[2]) )));
36317 __pyx_t_21 = __Pyx_PyIndex_AsSsize_t(__pyx_v_eN);
if (unlikely((__pyx_t_21 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1097, __pyx_L1_error)
36318 __pyx_t_22 = __Pyx_PyIndex_AsSsize_t(__pyx_v_k);
if (unlikely((__pyx_t_22 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1097, __pyx_L1_error)
36319 __pyx_t_16 = __pyx_t_21;
36320 __pyx_t_23 = __pyx_t_22;
36322 (__pyx_v_x[2]) = (*((
double *) ( (( (( (__pyx_v_qx.data + __pyx_t_16 * __pyx_v_qx.strides[0]) ) + __pyx_t_23 * __pyx_v_qx.strides[1]) ) + __pyx_t_24 * __pyx_v_qx.strides[2]) )));
36331 __pyx_v_phi = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_zone->__pyx_vtab)->calculate_phi(__pyx_v_zone, __pyx_v_x);
36340 __pyx_t_22 = __Pyx_PyIndex_AsSsize_t(__pyx_v_eN);
if (unlikely((__pyx_t_22 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1099, __pyx_L1_error)
36341 __pyx_t_21 = __Pyx_PyIndex_AsSsize_t(__pyx_v_k);
if (unlikely((__pyx_t_21 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1099, __pyx_L1_error)
36342 __pyx_t_24 = __pyx_t_22;
36343 __pyx_t_23 = __pyx_t_21;
36344 *((
double *) ( (( (__pyx_v_q_phi_porous.data + __pyx_t_24 * __pyx_v_q_phi_porous.strides[0]) ) + __pyx_t_23 * __pyx_v_q_phi_porous.strides[1]) )) = __pyx_v_phi;
36353 __pyx_t_25 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone *)__pyx_v_zone->__pyx_vtab)->calculate_vel(__pyx_v_zone, __pyx_v_x, __pyx_v_t);
if (unlikely(!__pyx_t_25.memview)) __PYX_ERR(0, 1100, __pyx_L1_error)
36354 __PYX_XDEC_MEMVIEW(&__pyx_v_u, 1);
36355 __pyx_v_u = __pyx_t_25;
36356 __pyx_t_25.memview = NULL;
36357 __pyx_t_25.data = NULL;
36367 __pyx_t_1 = PyFloat_FromDouble((*((
double *) ( (__pyx_v_u.data + __pyx_t_23 * __pyx_v_u.strides[0]) ))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error)
36368 __Pyx_GOTREF(__pyx_t_1);
36369 __pyx_t_12 = PyTuple_New(3);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1101, __pyx_L1_error)
36370 __Pyx_GOTREF(__pyx_t_12);
36371 __Pyx_INCREF(__pyx_v_eN);
36372 __Pyx_GIVEREF(__pyx_v_eN);
36373 PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_eN);
36374 __Pyx_INCREF(__pyx_v_k);
36375 __Pyx_GIVEREF(__pyx_v_k);
36376 PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_v_k);
36377 __Pyx_INCREF(__pyx_int_0);
36378 __Pyx_GIVEREF(__pyx_int_0);
36379 PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_int_0);
36380 if (unlikely(PyObject_SetItem(__pyx_v_q_velocity_porous, __pyx_t_12, __pyx_t_1) < 0)) __PYX_ERR(0, 1101, __pyx_L1_error)
36381 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
36382 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36392 __pyx_t_1 = PyFloat_FromDouble((*((
double *) ( (__pyx_v_u.data + __pyx_t_23 * __pyx_v_u.strides[0]) ))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error)
36393 __Pyx_GOTREF(__pyx_t_1);
36394 __pyx_t_12 = PyTuple_New(3);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1102, __pyx_L1_error)
36395 __Pyx_GOTREF(__pyx_t_12);
36396 __Pyx_INCREF(__pyx_v_eN);
36397 __Pyx_GIVEREF(__pyx_v_eN);
36398 PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_eN);
36399 __Pyx_INCREF(__pyx_v_k);
36400 __Pyx_GIVEREF(__pyx_v_k);
36401 PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_v_k);
36402 __Pyx_INCREF(__pyx_int_1);
36403 __Pyx_GIVEREF(__pyx_int_1);
36404 PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_int_1);
36405 if (unlikely(PyObject_SetItem(__pyx_v_q_velocity_porous, __pyx_t_12, __pyx_t_1) < 0)) __PYX_ERR(0, 1102, __pyx_L1_error)
36406 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
36407 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36416 __pyx_t_18 = ((__pyx_v_self->nd > 2) != 0);
36427 __pyx_t_1 = PyFloat_FromDouble((*((
double *) ( (__pyx_v_u.data + __pyx_t_23 * __pyx_v_u.strides[0]) ))));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error)
36428 __Pyx_GOTREF(__pyx_t_1);
36429 __pyx_t_12 = PyTuple_New(3);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1104, __pyx_L1_error)
36430 __Pyx_GOTREF(__pyx_t_12);
36431 __Pyx_INCREF(__pyx_v_eN);
36432 __Pyx_GIVEREF(__pyx_v_eN);
36433 PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_v_eN);
36434 __Pyx_INCREF(__pyx_v_k);
36435 __Pyx_GIVEREF(__pyx_v_k);
36436 PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_v_k);
36437 __Pyx_INCREF(__pyx_int_2);
36438 __Pyx_GIVEREF(__pyx_int_2);
36439 PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_int_2);
36440 if (unlikely(PyObject_SetItem(__pyx_v_q_velocity_porous, __pyx_t_12, __pyx_t_1) < 0)) __PYX_ERR(0, 1104, __pyx_L1_error)
36441 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
36442 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36461 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
36489 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36498 __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_q_phi_porous, 2, (PyObject *(*)(
char *)) __pyx_memview_get_double, (
int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1105, __pyx_L1_error)
36499 __Pyx_GOTREF(__pyx_t_4);
36500 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_q);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1105, __pyx_L1_error)
36501 __Pyx_GOTREF(__pyx_t_5);
36502 if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_n_s_phi_porous, __pyx_t_4) < 0)) __PYX_ERR(0, 1105, __pyx_L1_error)
36503 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
36504 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36513 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_n_s_q);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1106, __pyx_L1_error)
36514 __Pyx_GOTREF(__pyx_t_4);
36515 if (unlikely(PyObject_SetItem(__pyx_t_4, __pyx_n_s_velocity_porous, __pyx_v_q_velocity_porous) < 0)) __PYX_ERR(0, 1106, __pyx_L1_error)
36516 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
36526 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
36539 __Pyx_XDECREF(__pyx_t_1);
36540 __Pyx_XDECREF(__pyx_t_3);
36541 __Pyx_XDECREF(__pyx_t_4);
36542 __Pyx_XDECREF(__pyx_t_5);
36543 __PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
36544 __PYX_XDEC_MEMVIEW(&__pyx_t_10, 1);
36545 __PYX_XDEC_MEMVIEW(&__pyx_t_11, 1);
36546 __Pyx_XDECREF(__pyx_t_12);
36547 __Pyx_XDECREF(__pyx_t_19);
36548 __PYX_XDEC_MEMVIEW(&__pyx_t_25, 1);
36549 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.__cpp_iterate", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
36551 __Pyx_XDECREF(__pyx_v_m);
36552 __Pyx_XDECREF((PyObject *)__pyx_v_zone);
36553 __PYX_XDEC_MEMVIEW(&__pyx_v_qx, 1);
36554 __PYX_XDEC_MEMVIEW(&__pyx_v_q_phi_porous, 1);
36555 __PYX_XDEC_MEMVIEW(&__pyx_v_u, 1);
36556 __PYX_XDEC_MEMVIEW(&__pyx_v_mTypes, 1);
36557 __Pyx_XDECREF(__pyx_v_l);
36558 __Pyx_XDECREF(__pyx_v_q_velocity_porous);
36559 __Pyx_XDECREF(__pyx_v_eN);
36560 __Pyx_XDECREF(__pyx_v_k);
36561 __Pyx_TraceReturn(Py_None, 0);
36562 __Pyx_RefNannyFinishContext();
36574 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_1__get__(PyObject *__pyx_v_self);
36575 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_1__get__(PyObject *__pyx_v_self) {
36576 PyObject *__pyx_r = 0;
36577 __Pyx_RefNannyDeclarations
36578 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
36579 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36582 __Pyx_RefNannyFinishContext();
36586 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36587 PyObject *__pyx_r = NULL;
36588 __Pyx_TraceDeclarations
36589 __Pyx_RefNannyDeclarations
36590 int __pyx_lineno = 0;
36591 const char *__pyx_filename = NULL;
36592 int __pyx_clineno = 0;
36593 __Pyx_RefNannySetupContext(
"__get__", 0);
36594 __Pyx_TraceCall(
"__get__", __pyx_f[2], 157, 0, __PYX_ERR(2, 157, __pyx_L1_error));
36595 __Pyx_XDECREF(__pyx_r);
36596 __Pyx_INCREF(__pyx_v_self->zones);
36597 __pyx_r = __pyx_v_self->zones;
36602 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.zones.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36605 __Pyx_XGIVEREF(__pyx_r);
36606 __Pyx_TraceReturn(__pyx_r, 0);
36607 __Pyx_RefNannyFinishContext();
36612 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
36613 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
36615 __Pyx_RefNannyDeclarations
36616 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
36617 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_value));
36620 __Pyx_RefNannyFinishContext();
36624 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value) {
36626 __Pyx_TraceDeclarations
36627 __Pyx_RefNannyDeclarations
36628 PyObject *__pyx_t_1 = NULL;
36629 int __pyx_lineno = 0;
36630 const char *__pyx_filename = NULL;
36631 int __pyx_clineno = 0;
36632 __Pyx_RefNannySetupContext(
"__set__", 0);
36633 __Pyx_TraceCall(
"__set__", __pyx_f[2], 157, 0, __PYX_ERR(2, 157, __pyx_L1_error));
36634 if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(2, 157, __pyx_L1_error)
36635 __pyx_t_1 = __pyx_v_value;
36636 __Pyx_INCREF(__pyx_t_1);
36637 __Pyx_GIVEREF(__pyx_t_1);
36638 __Pyx_GOTREF(__pyx_v_self->zones);
36639 __Pyx_DECREF(__pyx_v_self->zones);
36640 __pyx_v_self->zones = ((PyObject*)__pyx_t_1);
36647 __Pyx_XDECREF(__pyx_t_1);
36648 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.zones.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36651 __Pyx_TraceReturn(Py_None, 0);
36652 __Pyx_RefNannyFinishContext();
36657 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_5__del__(PyObject *__pyx_v_self);
36658 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_5__del__(PyObject *__pyx_v_self) {
36660 __Pyx_RefNannyDeclarations
36661 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
36662 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36665 __Pyx_RefNannyFinishContext();
36669 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36671 __Pyx_TraceDeclarations
36672 __Pyx_RefNannyDeclarations
36673 int __pyx_lineno = 0;
36674 const char *__pyx_filename = NULL;
36675 int __pyx_clineno = 0;
36676 __Pyx_RefNannySetupContext(
"__del__", 0);
36677 __Pyx_TraceCall(
"__del__", __pyx_f[2], 157, 0, __PYX_ERR(2, 157, __pyx_L1_error));
36678 __Pyx_INCREF(Py_None);
36679 __Pyx_GIVEREF(Py_None);
36680 __Pyx_GOTREF(__pyx_v_self->zones);
36681 __Pyx_DECREF(__pyx_v_self->zones);
36682 __pyx_v_self->zones = ((PyObject*)Py_None);
36688 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.zones.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36691 __Pyx_TraceReturn(Py_None, 0);
36692 __Pyx_RefNannyFinishContext();
36705 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_1__get__(PyObject *__pyx_v_self);
36706 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_1__get__(PyObject *__pyx_v_self) {
36707 PyObject *__pyx_r = 0;
36708 __Pyx_RefNannyDeclarations
36709 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
36710 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36713 __Pyx_RefNannyFinishContext();
36717 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36718 PyObject *__pyx_r = NULL;
36719 __Pyx_TraceDeclarations
36720 __Pyx_RefNannyDeclarations
36721 int __pyx_lineno = 0;
36722 const char *__pyx_filename = NULL;
36723 int __pyx_clineno = 0;
36724 __Pyx_RefNannySetupContext(
"__get__", 0);
36725 __Pyx_TraceCall(
"__get__", __pyx_f[2], 158, 0, __PYX_ERR(2, 158, __pyx_L1_error));
36726 __Pyx_XDECREF(__pyx_r);
36727 __Pyx_INCREF(__pyx_v_self->model);
36728 __pyx_r = __pyx_v_self->model;
36733 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.model.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36736 __Pyx_XGIVEREF(__pyx_r);
36737 __Pyx_TraceReturn(__pyx_r, 0);
36738 __Pyx_RefNannyFinishContext();
36743 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
36744 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
36746 __Pyx_RefNannyDeclarations
36747 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
36748 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_value));
36751 __Pyx_RefNannyFinishContext();
36755 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value) {
36757 __Pyx_TraceDeclarations
36758 __Pyx_RefNannyDeclarations
36759 int __pyx_lineno = 0;
36760 const char *__pyx_filename = NULL;
36761 int __pyx_clineno = 0;
36762 __Pyx_RefNannySetupContext(
"__set__", 0);
36763 __Pyx_TraceCall(
"__set__", __pyx_f[2], 158, 0, __PYX_ERR(2, 158, __pyx_L1_error));
36764 __Pyx_INCREF(__pyx_v_value);
36765 __Pyx_GIVEREF(__pyx_v_value);
36766 __Pyx_GOTREF(__pyx_v_self->model);
36767 __Pyx_DECREF(__pyx_v_self->model);
36768 __pyx_v_self->model = __pyx_v_value;
36774 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.model.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36777 __Pyx_TraceReturn(Py_None, 0);
36778 __Pyx_RefNannyFinishContext();
36783 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_5__del__(PyObject *__pyx_v_self);
36784 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_5__del__(PyObject *__pyx_v_self) {
36786 __Pyx_RefNannyDeclarations
36787 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
36788 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36791 __Pyx_RefNannyFinishContext();
36795 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36797 __Pyx_TraceDeclarations
36798 __Pyx_RefNannyDeclarations
36799 int __pyx_lineno = 0;
36800 const char *__pyx_filename = NULL;
36801 int __pyx_clineno = 0;
36802 __Pyx_RefNannySetupContext(
"__del__", 0);
36803 __Pyx_TraceCall(
"__del__", __pyx_f[2], 158, 0, __PYX_ERR(2, 158, __pyx_L1_error));
36804 __Pyx_INCREF(Py_None);
36805 __Pyx_GIVEREF(Py_None);
36806 __Pyx_GOTREF(__pyx_v_self->model);
36807 __Pyx_DECREF(__pyx_v_self->model);
36808 __pyx_v_self->model = Py_None;
36814 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.model.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36817 __Pyx_TraceReturn(Py_None, 0);
36818 __Pyx_RefNannyFinishContext();
36831 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_1__get__(PyObject *__pyx_v_self);
36832 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_1__get__(PyObject *__pyx_v_self) {
36833 PyObject *__pyx_r = 0;
36834 __Pyx_RefNannyDeclarations
36835 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
36836 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36839 __Pyx_RefNannyFinishContext();
36843 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar___get__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36844 PyObject *__pyx_r = NULL;
36845 __Pyx_TraceDeclarations
36846 __Pyx_RefNannyDeclarations
36847 int __pyx_lineno = 0;
36848 const char *__pyx_filename = NULL;
36849 int __pyx_clineno = 0;
36850 __Pyx_RefNannySetupContext(
"__get__", 0);
36851 __Pyx_TraceCall(
"__get__", __pyx_f[2], 159, 0, __PYX_ERR(2, 159, __pyx_L1_error));
36852 __Pyx_XDECREF(__pyx_r);
36853 __Pyx_INCREF(__pyx_v_self->ar);
36854 __pyx_r = __pyx_v_self->ar;
36859 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.ar.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36862 __Pyx_XGIVEREF(__pyx_r);
36863 __Pyx_TraceReturn(__pyx_r, 0);
36864 __Pyx_RefNannyFinishContext();
36869 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
36870 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
36872 __Pyx_RefNannyDeclarations
36873 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
36874 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), ((PyObject *)__pyx_v_value));
36877 __Pyx_RefNannyFinishContext();
36881 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v_value) {
36883 __Pyx_TraceDeclarations
36884 __Pyx_RefNannyDeclarations
36885 int __pyx_lineno = 0;
36886 const char *__pyx_filename = NULL;
36887 int __pyx_clineno = 0;
36888 __Pyx_RefNannySetupContext(
"__set__", 0);
36889 __Pyx_TraceCall(
"__set__", __pyx_f[2], 159, 0, __PYX_ERR(2, 159, __pyx_L1_error));
36890 __Pyx_INCREF(__pyx_v_value);
36891 __Pyx_GIVEREF(__pyx_v_value);
36892 __Pyx_GOTREF(__pyx_v_self->ar);
36893 __Pyx_DECREF(__pyx_v_self->ar);
36894 __pyx_v_self->ar = __pyx_v_value;
36900 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.ar.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36903 __Pyx_TraceReturn(Py_None, 0);
36904 __Pyx_RefNannyFinishContext();
36909 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_5__del__(PyObject *__pyx_v_self);
36910 static int __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_5__del__(PyObject *__pyx_v_self) {
36912 __Pyx_RefNannyDeclarations
36913 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
36914 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36917 __Pyx_RefNannyFinishContext();
36921 static int __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36923 __Pyx_TraceDeclarations
36924 __Pyx_RefNannyDeclarations
36925 int __pyx_lineno = 0;
36926 const char *__pyx_filename = NULL;
36927 int __pyx_clineno = 0;
36928 __Pyx_RefNannySetupContext(
"__del__", 0);
36929 __Pyx_TraceCall(
"__del__", __pyx_f[2], 159, 0, __PYX_ERR(2, 159, __pyx_L1_error));
36930 __Pyx_INCREF(Py_None);
36931 __Pyx_GIVEREF(Py_None);
36932 __Pyx_GOTREF(__pyx_v_self->ar);
36933 __Pyx_DECREF(__pyx_v_self->ar);
36934 __pyx_v_self->ar = Py_None;
36940 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.ar.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
36943 __Pyx_TraceReturn(Py_None, 0);
36944 __Pyx_RefNannyFinishContext();
36955 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
36956 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__[] =
"RelaxationZoneWaveGenerator.__reduce_cython__(self)";
36957 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__};
36958 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
36959 PyObject *__pyx_r = 0;
36960 __Pyx_RefNannyDeclarations
36961 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
36962 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self));
36965 __Pyx_RefNannyFinishContext();
36969 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self) {
36970 PyObject *__pyx_v_state = 0;
36971 PyObject *__pyx_v__dict = 0;
36972 int __pyx_v_use_setstate;
36973 PyObject *__pyx_r = NULL;
36974 __Pyx_TraceDeclarations
36975 __Pyx_RefNannyDeclarations
36976 PyObject *__pyx_t_1 = NULL;
36977 PyObject *__pyx_t_2 = NULL;
36978 PyObject *__pyx_t_3 = NULL;
36982 int __pyx_lineno = 0;
36983 const char *__pyx_filename = NULL;
36984 int __pyx_clineno = 0;
36985 __Pyx_TraceFrameInit(__pyx_codeobj__103)
36986 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
36987 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
36996 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->max_flag);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
36997 __Pyx_GOTREF(__pyx_t_1);
36998 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->nd);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
36999 __Pyx_GOTREF(__pyx_t_2);
37000 __pyx_t_3 = PyTuple_New(6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
37001 __Pyx_GOTREF(__pyx_t_3);
37002 __Pyx_INCREF(__pyx_v_self->ar);
37003 __Pyx_GIVEREF(__pyx_v_self->ar);
37004 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->ar);
37005 __Pyx_GIVEREF(__pyx_t_1);
37006 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
37007 __Pyx_INCREF(__pyx_v_self->model);
37008 __Pyx_GIVEREF(__pyx_v_self->model);
37009 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_self->model);
37010 __Pyx_GIVEREF(__pyx_t_2);
37011 PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
37012 __Pyx_INCREF(__pyx_v_self->zones);
37013 __Pyx_GIVEREF(__pyx_v_self->zones);
37014 PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_v_self->zones);
37015 __Pyx_INCREF(((PyObject *)__pyx_v_self->zones_array));
37016 __Pyx_GIVEREF(((PyObject *)__pyx_v_self->zones_array));
37017 PyTuple_SET_ITEM(__pyx_t_3, 5, ((PyObject *)__pyx_v_self->zones_array));
37020 __pyx_v_state = ((PyObject*)__pyx_t_3);
37030 __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 6, __pyx_L1_error)
37031 __Pyx_GOTREF(__pyx_t_3);
37032 __pyx_v__dict = __pyx_t_3;
37042 __pyx_t_4 = (__pyx_v__dict != Py_None);
37043 __pyx_t_5 = (__pyx_t_4 != 0);
37053 __pyx_t_3 = PyTuple_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 8, __pyx_L1_error)
37054 __Pyx_GOTREF(__pyx_t_3);
37055 __Pyx_INCREF(__pyx_v__dict);
37056 __Pyx_GIVEREF(__pyx_v__dict);
37057 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict);
37058 __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 8, __pyx_L1_error)
37059 __Pyx_GOTREF(__pyx_t_2);
37060 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
37061 __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2));
37071 __pyx_v_use_setstate = 1;
37091 __pyx_t_4 = (__pyx_v_self->ar != Py_None);
37092 __pyx_t_6 = (__pyx_t_4 != 0);
37095 __pyx_t_5 = __pyx_t_6;
37096 goto __pyx_L4_bool_binop_done;
37098 __pyx_t_6 = (__pyx_v_self->model != Py_None);
37099 __pyx_t_4 = (__pyx_t_6 != 0);
37102 __pyx_t_5 = __pyx_t_4;
37103 goto __pyx_L4_bool_binop_done;
37105 __pyx_t_4 = (__pyx_v_self->zones != ((PyObject*)Py_None));
37106 __pyx_t_6 = (__pyx_t_4 != 0);
37109 __pyx_t_5 = __pyx_t_6;
37110 goto __pyx_L4_bool_binop_done;
37112 __pyx_t_6 = (((PyObject *)__pyx_v_self->zones_array) != Py_None);
37113 __pyx_t_4 = (__pyx_t_6 != 0);
37114 __pyx_t_5 = __pyx_t_4;
37115 __pyx_L4_bool_binop_done:;
37116 __pyx_v_use_setstate = __pyx_t_5;
37127 __pyx_t_5 = (__pyx_v_use_setstate != 0);
37137 __Pyx_XDECREF(__pyx_r);
37138 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_RelaxationZoneWav);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 13, __pyx_L1_error)
37139 __Pyx_GOTREF(__pyx_t_2);
37140 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 13, __pyx_L1_error)
37141 __Pyx_GOTREF(__pyx_t_3);
37142 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37143 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37144 PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37145 __Pyx_INCREF(__pyx_int_3281892);
37146 __Pyx_GIVEREF(__pyx_int_3281892);
37147 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_3281892);
37148 __Pyx_INCREF(Py_None);
37149 __Pyx_GIVEREF(Py_None);
37150 PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None);
37151 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
37152 __Pyx_GOTREF(__pyx_t_1);
37153 __Pyx_GIVEREF(__pyx_t_2);
37154 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
37155 __Pyx_GIVEREF(__pyx_t_3);
37156 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
37157 __Pyx_INCREF(__pyx_v_state);
37158 __Pyx_GIVEREF(__pyx_v_state);
37159 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
37162 __pyx_r = __pyx_t_1;
37183 __Pyx_XDECREF(__pyx_r);
37184 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_RelaxationZoneWav);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
37185 __Pyx_GOTREF(__pyx_t_1);
37186 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
37187 __Pyx_GOTREF(__pyx_t_3);
37188 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37189 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37190 PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
37191 __Pyx_INCREF(__pyx_int_3281892);
37192 __Pyx_GIVEREF(__pyx_int_3281892);
37193 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_3281892);
37194 __Pyx_INCREF(__pyx_v_state);
37195 __Pyx_GIVEREF(__pyx_v_state);
37196 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
37197 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 15, __pyx_L1_error)
37198 __Pyx_GOTREF(__pyx_t_2);
37199 __Pyx_GIVEREF(__pyx_t_1);
37200 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
37201 __Pyx_GIVEREF(__pyx_t_3);
37202 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
37205 __pyx_r = __pyx_t_2;
37218 __Pyx_XDECREF(__pyx_t_1);
37219 __Pyx_XDECREF(__pyx_t_2);
37220 __Pyx_XDECREF(__pyx_t_3);
37221 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
37224 __Pyx_XDECREF(__pyx_v_state);
37225 __Pyx_XDECREF(__pyx_v__dict);
37226 __Pyx_XGIVEREF(__pyx_r);
37227 __Pyx_TraceReturn(__pyx_r, 0);
37228 __Pyx_RefNannyFinishContext();
37240 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
37241 static char __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__[] =
"RelaxationZoneWaveGenerator.__setstate_cython__(self, __pyx_state)";
37242 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__};
37243 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
37244 PyObject *__pyx_r = 0;
37245 __Pyx_RefNannyDeclarations
37246 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
37247 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
37250 __Pyx_RefNannyFinishContext();
37254 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
37255 PyObject *__pyx_r = NULL;
37256 __Pyx_TraceDeclarations
37257 __Pyx_RefNannyDeclarations
37258 PyObject *__pyx_t_1 = NULL;
37259 int __pyx_lineno = 0;
37260 const char *__pyx_filename = NULL;
37261 int __pyx_clineno = 0;
37262 __Pyx_TraceFrameInit(__pyx_codeobj__104)
37263 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
37264 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 16, 0, __PYX_ERR(1, 16, __pyx_L1_error));
37271 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
37272 __pyx_t_1 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_RelaxationZoneWaveGenerator__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
37273 __Pyx_GOTREF(__pyx_t_1);
37274 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37284 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
37287 __Pyx_XDECREF(__pyx_t_1);
37288 __Pyx_AddTraceback(
"mprans.BoundaryConditions.RelaxationZoneWaveGenerator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
37291 __Pyx_XGIVEREF(__pyx_r);
37292 __Pyx_TraceReturn(__pyx_r, 0);
37293 __Pyx_RefNannyFinishContext();
37306 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
37307 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
37308 PyObject *__pyx_v_waves = 0;
37309 PyObject *__pyx_v_vert_axis = 0;
37310 PyObject *__pyx_v_wind_speed = 0;
37311 PyObject *__pyx_v_b_or = 0;
37312 PyObject *__pyx_v_smoothing = 0;
37313 PyObject *__pyx_v_vof_water = 0;
37314 PyObject *__pyx_v_vof_air = 0;
37315 int __pyx_lineno = 0;
37316 const char *__pyx_filename = NULL;
37317 int __pyx_clineno = 0;
37319 __Pyx_RefNannyDeclarations
37320 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
37322 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_waves,&__pyx_n_s_vert_axis,&__pyx_n_s_wind_speed,&__pyx_n_s_b_or,&__pyx_n_s_smoothing,&__pyx_n_s_vof_water,&__pyx_n_s_vof_air,0};
37323 PyObject* values[7] = {0,0,0,0,0,0,0};
37324 values[2] = ((PyObject *)Py_None);
37325 values[3] = ((PyObject *)Py_None);
37326 values[4] = ((PyObject *)__pyx_float_0_);
37327 values[5] = ((PyObject *)__pyx_float_0_);
37328 values[6] = ((PyObject *)__pyx_float_1_);
37329 if (unlikely(__pyx_kwds)) {
37330 Py_ssize_t kw_args;
37331 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
37332 switch (pos_args) {
37333 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37334 CYTHON_FALLTHROUGH;
37335 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37336 CYTHON_FALLTHROUGH;
37337 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37338 CYTHON_FALLTHROUGH;
37339 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37340 CYTHON_FALLTHROUGH;
37341 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37342 CYTHON_FALLTHROUGH;
37343 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37344 CYTHON_FALLTHROUGH;
37345 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37346 CYTHON_FALLTHROUGH;
37348 default:
goto __pyx_L5_argtuple_error;
37350 kw_args = PyDict_Size(__pyx_kwds);
37351 switch (pos_args) {
37353 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_waves)) != 0)) kw_args--;
37354 else goto __pyx_L5_argtuple_error;
37355 CYTHON_FALLTHROUGH;
37357 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vert_axis)) != 0)) kw_args--;
37359 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 2, 7, 1); __PYX_ERR(0, 1136, __pyx_L3_error)
37361 CYTHON_FALLTHROUGH;
37364 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wind_speed);
37365 if (value) { values[2] = value; kw_args--; }
37367 CYTHON_FALLTHROUGH;
37370 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b_or);
37371 if (value) { values[3] = value; kw_args--; }
37373 CYTHON_FALLTHROUGH;
37376 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_smoothing);
37377 if (value) { values[4] = value; kw_args--; }
37379 CYTHON_FALLTHROUGH;
37382 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_water);
37383 if (value) { values[5] = value; kw_args--; }
37385 CYTHON_FALLTHROUGH;
37388 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vof_air);
37389 if (value) { values[6] = value; kw_args--; }
37392 if (unlikely(kw_args > 0)) {
37393 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 1136, __pyx_L3_error)
37396 switch (PyTuple_GET_SIZE(__pyx_args)) {
37397 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
37398 CYTHON_FALLTHROUGH;
37399 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
37400 CYTHON_FALLTHROUGH;
37401 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
37402 CYTHON_FALLTHROUGH;
37403 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
37404 CYTHON_FALLTHROUGH;
37405 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
37406 CYTHON_FALLTHROUGH;
37407 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
37408 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
37410 default:
goto __pyx_L5_argtuple_error;
37413 __pyx_v_waves = values[0];
37414 __pyx_v_vert_axis = values[1];
37415 __pyx_v_wind_speed = values[2];
37416 __pyx_v_b_or = values[3];
37417 __pyx_v_smoothing = values[4];
37418 __pyx_v_vof_water = values[5];
37419 __pyx_v_vof_air = values[6];
37421 goto __pyx_L4_argument_unpacking_done;
37422 __pyx_L5_argtuple_error:;
37423 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 2, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1136, __pyx_L3_error)
37425 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
37426 __Pyx_RefNannyFinishContext();
37428 __pyx_L4_argument_unpacking_done:;
37429 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___init__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self), __pyx_v_waves, __pyx_v_vert_axis, __pyx_v_wind_speed, __pyx_v_b_or, __pyx_v_smoothing, __pyx_v_vof_water, __pyx_v_vof_air);
37432 __Pyx_RefNannyFinishContext();
37436 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___init__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v_waves, PyObject *__pyx_v_vert_axis, PyObject *__pyx_v_wind_speed, PyObject *__pyx_v_b_or, PyObject *__pyx_v_smoothing, PyObject *__pyx_v_vof_water, PyObject *__pyx_v_vof_air) {
37438 __Pyx_TraceDeclarations
37439 __Pyx_RefNannyDeclarations
37441 PyObject *__pyx_t_2 = NULL;
37442 PyObject *__pyx_t_3 = NULL;
37443 PyObject *__pyx_t_4 = NULL;
37444 __Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
37448 int __pyx_lineno = 0;
37449 const char *__pyx_filename = NULL;
37450 int __pyx_clineno = 0;
37451 __Pyx_RefNannySetupContext(
"__init__", 0);
37452 __Pyx_TraceCall(
"__init__", __pyx_f[0], 1136, 0, __PYX_ERR(0, 1136, __pyx_L1_error));
37461 __Pyx_INCREF(__pyx_v_waves);
37462 __Pyx_GIVEREF(__pyx_v_waves);
37463 __Pyx_GOTREF(__pyx_v_self->WT);
37464 __Pyx_DECREF(__pyx_v_self->WT);
37465 __pyx_v_self->WT = __pyx_v_waves;
37474 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_vert_axis);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1139, __pyx_L1_error)
37475 __pyx_v_self->vert_axis = __pyx_t_1;
37484 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1140, __pyx_L1_error)
37485 __Pyx_GOTREF(__pyx_t_3);
37486 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1140, __pyx_L1_error)
37487 __Pyx_GOTREF(__pyx_t_4);
37488 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
37490 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
37491 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
37492 if (likely(__pyx_t_3)) {
37493 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
37494 __Pyx_INCREF(__pyx_t_3);
37495 __Pyx_INCREF(
function);
37496 __Pyx_DECREF_SET(__pyx_t_4,
function);
37499 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_int_3);
37500 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
37501 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1140, __pyx_L1_error)
37502 __Pyx_GOTREF(__pyx_t_2);
37503 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37504 __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_t_2, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1140, __pyx_L1_error)
37505 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
37506 __PYX_XDEC_MEMVIEW(&__pyx_v_self->zero_vel, 0);
37507 __pyx_v_self->zero_vel = __pyx_t_5;
37508 __pyx_t_5.memview = NULL;
37509 __pyx_t_5.data = NULL;
37518 __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_b_or, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1141, __pyx_L1_error)
37519 __PYX_XDEC_MEMVIEW(&__pyx_v_self->_b_or, 0);
37520 __pyx_v_self->_b_or = __pyx_t_5;
37521 __pyx_t_5.memview = NULL;
37522 __pyx_t_5.data = NULL;
37531 __pyx_t_6 = __pyx_PyFloat_AsDouble(__pyx_v_smoothing);
if (unlikely((__pyx_t_6 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L1_error)
37532 __pyx_v_self->smoothing = __pyx_t_6;
37541 __pyx_t_6 = __pyx_PyFloat_AsDouble(__pyx_v_vof_air);
if (unlikely((__pyx_t_6 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1143, __pyx_L1_error)
37542 __pyx_v_self->vof_air = __pyx_t_6;
37551 __pyx_t_6 = __pyx_PyFloat_AsDouble(__pyx_v_vof_water);
if (unlikely((__pyx_t_6 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1144, __pyx_L1_error)
37552 __pyx_v_self->vof_water = __pyx_t_6;
37561 __pyx_t_7 = (__pyx_v_wind_speed == Py_None);
37562 __pyx_t_8 = (__pyx_t_7 != 0);
37572 __pyx_t_5 = __pyx_v_self->zero_vel;
37573 __PYX_INC_MEMVIEW(&__pyx_t_5, 1);
37574 __PYX_XDEC_MEMVIEW(&__pyx_v_self->wind_speed, 0);
37575 __pyx_v_self->wind_speed = __pyx_t_5;
37576 __pyx_t_5.memview = NULL;
37577 __pyx_t_5.data = NULL;
37597 __pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_v_wind_speed, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 1148, __pyx_L1_error)
37598 __PYX_XDEC_MEMVIEW(&__pyx_v_self->wind_speed, 0);
37599 __pyx_v_self->wind_speed = __pyx_t_5;
37600 __pyx_t_5.memview = NULL;
37601 __pyx_t_5.data = NULL;
37617 __Pyx_XDECREF(__pyx_t_2);
37618 __Pyx_XDECREF(__pyx_t_3);
37619 __Pyx_XDECREF(__pyx_t_4);
37620 __PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
37621 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
37624 __Pyx_TraceReturn(Py_None, 0);
37625 __Pyx_RefNannyFinishContext();
37637 static __Pyx_memviewslice __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_velocity(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
37638 double __pyx_v_phi;
37639 __pyx_t_6mprans_18BoundaryConditions_double_memview1 __pyx_v_waterSpeed = { 0, 0, { 0 }, { 0 }, { 0 } };
37641 double __pyx_v_u[3];
37642 double __pyx_v_xx[3];
37643 double __pyx_v_x_max[3];
37644 __Pyx_memviewslice __pyx_r = { 0, 0, { 0 }, { 0 }, { 0 } };
37645 __Pyx_TraceDeclarations
37646 __Pyx_RefNannyDeclarations
37648 PyObject *__pyx_t_2 = NULL;
37649 PyObject *__pyx_t_3 = NULL;
37650 PyObject *__pyx_t_4 = NULL;
37651 PyObject *__pyx_t_5 = NULL;
37652 PyObject *__pyx_t_6 = NULL;
37654 PyObject *__pyx_t_8 = NULL;
37655 __pyx_t_6mprans_18BoundaryConditions_double_memview1 __pyx_t_9 = { 0, 0, { 0 }, { 0 }, { 0 } };
37657 PyObject *__pyx_t_11 = NULL;
37658 PyObject *__pyx_t_12 = NULL;
37659 PyObject *__pyx_t_13 = NULL;
37661 __Pyx_memviewslice __pyx_t_15 = { 0, 0, { 0 }, { 0 }, { 0 } };
37662 Py_ssize_t __pyx_t_16;
37663 Py_ssize_t __pyx_t_17;
37664 struct __pyx_array_obj *__pyx_t_18 = NULL;
37665 int __pyx_lineno = 0;
37666 const char *__pyx_filename = NULL;
37667 int __pyx_clineno = 0;
37668 __Pyx_RefNannySetupContext(
"__cpp_calculate_velocity", 0);
37669 __Pyx_TraceCall(
"__cpp_calculate_velocity", __pyx_f[0], 1150, 0, __PYX_ERR(0, 1150, __pyx_L1_error));
37678 (__pyx_v_xx[0]) = (__pyx_v_x[0]);
37687 (__pyx_v_xx[1]) = (__pyx_v_x[1]);
37696 (__pyx_v_xx[2]) = (__pyx_v_x[2]);
37705 __pyx_v_phi = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_phi(__pyx_v_self, __pyx_v_x, __pyx_v_t);
37714 __pyx_t_1 = ((__pyx_v_phi <= 0.) != 0);
37733 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->WT, __pyx_n_s_u);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1161, __pyx_L1_error)
37734 __Pyx_GOTREF(__pyx_t_3);
37735 __pyx_t_4 = __Pyx_carray_to_py_double(__pyx_v_xx, 3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1161, __pyx_L1_error)
37736 __Pyx_GOTREF(__pyx_t_4);
37737 __pyx_t_5 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1161, __pyx_L1_error)
37738 __Pyx_GOTREF(__pyx_t_5);
37741 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
37742 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
37743 if (likely(__pyx_t_6)) {
37744 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
37745 __Pyx_INCREF(__pyx_t_6);
37746 __Pyx_INCREF(
function);
37747 __Pyx_DECREF_SET(__pyx_t_3,
function);
37751 #if CYTHON_FAST_PYCALL
37752 if (PyFunction_Check(__pyx_t_3)) {
37753 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5};
37754 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1161, __pyx_L1_error)
37755 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
37756 __Pyx_GOTREF(__pyx_t_2);
37757 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37758 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
37761 #if CYTHON_FAST_PYCCALL
37762 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
37763 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5};
37764 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1161, __pyx_L1_error)
37765 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
37766 __Pyx_GOTREF(__pyx_t_2);
37767 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37768 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
37772 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1161, __pyx_L1_error)
37773 __Pyx_GOTREF(__pyx_t_8);
37775 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
37777 __Pyx_GIVEREF(__pyx_t_4);
37778 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4);
37779 __Pyx_GIVEREF(__pyx_t_5);
37780 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5);
37783 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1161, __pyx_L1_error)
37784 __Pyx_GOTREF(__pyx_t_2);
37785 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37787 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
37788 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_t_2, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 1161, __pyx_L1_error)
37789 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
37790 __pyx_v_waterSpeed = __pyx_t_9;
37791 __pyx_t_9.memview = NULL;
37792 __pyx_t_9.data = NULL;
37811 __pyx_t_1 = (0.0 < __pyx_v_phi);
37813 __pyx_t_1 = (__pyx_v_phi <= __pyx_v_self->smoothing);
37815 __pyx_t_10 = (__pyx_t_1 != 0);
37825 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1164, __pyx_L1_error)
37826 __Pyx_GOTREF(__pyx_t_3);
37827 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1164, __pyx_L1_error)
37828 __Pyx_GOTREF(__pyx_t_5);
37829 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->smoothing);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1164, __pyx_L1_error)
37830 __Pyx_GOTREF(__pyx_t_4);
37833 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
37834 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
37835 if (likely(__pyx_t_6)) {
37836 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
37837 __Pyx_INCREF(__pyx_t_6);
37838 __Pyx_INCREF(
function);
37839 __Pyx_DECREF_SET(__pyx_t_5,
function);
37843 #if CYTHON_FAST_PYCALL
37844 if (PyFunction_Check(__pyx_t_5)) {
37845 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_float_2_};
37846 __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1164, __pyx_L1_error)
37847 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
37848 __Pyx_GOTREF(__pyx_t_8);
37849 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37852 #if CYTHON_FAST_PYCCALL
37853 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
37854 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_float_2_};
37855 __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1164, __pyx_L1_error)
37856 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
37857 __Pyx_GOTREF(__pyx_t_8);
37858 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37862 __pyx_t_11 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1164, __pyx_L1_error)
37863 __Pyx_GOTREF(__pyx_t_11);
37865 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_6); __pyx_t_6 = NULL;
37867 __Pyx_GIVEREF(__pyx_t_4);
37868 PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_7, __pyx_t_4);
37869 __Pyx_INCREF(__pyx_float_2_);
37870 __Pyx_GIVEREF(__pyx_float_2_);
37871 PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_7, __pyx_float_2_);
37873 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_11, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1164, __pyx_L1_error)
37874 __Pyx_GOTREF(__pyx_t_8);
37875 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
37877 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
37878 __pyx_t_5 = PyFloat_FromDouble(__pyx_v_phi);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1164, __pyx_L1_error)
37879 __Pyx_GOTREF(__pyx_t_5);
37880 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1164, __pyx_L1_error)
37881 __Pyx_GOTREF(__pyx_t_4);
37882 __pyx_t_6 = PyFloat_FromDouble(__pyx_v_self->smoothing);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1164, __pyx_L1_error)
37883 __Pyx_GOTREF(__pyx_t_6);
37886 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
37887 __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_4);
37888 if (likely(__pyx_t_12)) {
37889 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
37890 __Pyx_INCREF(__pyx_t_12);
37891 __Pyx_INCREF(
function);
37892 __Pyx_DECREF_SET(__pyx_t_4,
function);
37896 #if CYTHON_FAST_PYCALL
37897 if (PyFunction_Check(__pyx_t_4)) {
37898 PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_t_6, __pyx_float_2_};
37899 __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1164, __pyx_L1_error)
37900 __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
37901 __Pyx_GOTREF(__pyx_t_11);
37902 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
37905 #if CYTHON_FAST_PYCCALL
37906 if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
37907 PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_t_6, __pyx_float_2_};
37908 __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1164, __pyx_L1_error)
37909 __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
37910 __Pyx_GOTREF(__pyx_t_11);
37911 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
37915 __pyx_t_13 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1164, __pyx_L1_error)
37916 __Pyx_GOTREF(__pyx_t_13);
37918 __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_12); __pyx_t_12 = NULL;
37920 __Pyx_GIVEREF(__pyx_t_6);
37921 PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_7, __pyx_t_6);
37922 __Pyx_INCREF(__pyx_float_2_);
37923 __Pyx_GIVEREF(__pyx_float_2_);
37924 PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_7, __pyx_float_2_);
37926 __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_13, NULL);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1164, __pyx_L1_error)
37927 __Pyx_GOTREF(__pyx_t_11);
37928 __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
37930 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37931 __pyx_t_4 = PyNumber_Subtract(__pyx_t_5, __pyx_t_11);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1164, __pyx_L1_error)
37932 __Pyx_GOTREF(__pyx_t_4);
37933 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
37934 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
37937 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
37938 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_3);
37939 if (likely(__pyx_t_11)) {
37940 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
37941 __Pyx_INCREF(__pyx_t_11);
37942 __Pyx_INCREF(
function);
37943 __Pyx_DECREF_SET(__pyx_t_3,
function);
37947 #if CYTHON_FAST_PYCALL
37948 if (PyFunction_Check(__pyx_t_3)) {
37949 PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_8, __pyx_t_4};
37950 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L1_error)
37951 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
37952 __Pyx_GOTREF(__pyx_t_2);
37953 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37954 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37957 #if CYTHON_FAST_PYCCALL
37958 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
37959 PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_8, __pyx_t_4};
37960 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L1_error)
37961 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
37962 __Pyx_GOTREF(__pyx_t_2);
37963 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
37964 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
37968 __pyx_t_5 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1164, __pyx_L1_error)
37969 __Pyx_GOTREF(__pyx_t_5);
37971 __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_11); __pyx_t_11 = NULL;
37973 __Pyx_GIVEREF(__pyx_t_8);
37974 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_7, __pyx_t_8);
37975 __Pyx_GIVEREF(__pyx_t_4);
37976 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_7, __pyx_t_4);
37979 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1164, __pyx_L1_error)
37980 __Pyx_GOTREF(__pyx_t_2);
37981 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
37983 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
37984 __pyx_t_14 = __pyx_PyFloat_AsDouble(__pyx_t_2);
if (unlikely((__pyx_t_14 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1164, __pyx_L1_error)
37985 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
37986 __pyx_v_H = __pyx_t_14;
37995 (__pyx_v_x_max[0]) = (__pyx_v_x[0]);
38004 (__pyx_v_x_max[1]) = (__pyx_v_x[1]);
38013 (__pyx_v_x_max[2]) = (__pyx_v_x[2]);
38022 (__pyx_v_x_max[__pyx_v_self->vert_axis]) = ((__pyx_v_x[__pyx_v_self->vert_axis]) - __pyx_v_phi);
38031 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->WT, __pyx_n_s_u);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1170, __pyx_L1_error)
38032 __Pyx_GOTREF(__pyx_t_3);
38033 __pyx_t_5 = __Pyx_carray_to_py_double(__pyx_v_x_max, 3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1170, __pyx_L1_error)
38034 __Pyx_GOTREF(__pyx_t_5);
38035 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1170, __pyx_L1_error)
38036 __Pyx_GOTREF(__pyx_t_4);
38039 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
38040 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
38041 if (likely(__pyx_t_8)) {
38042 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
38043 __Pyx_INCREF(__pyx_t_8);
38044 __Pyx_INCREF(
function);
38045 __Pyx_DECREF_SET(__pyx_t_3,
function);
38049 #if CYTHON_FAST_PYCALL
38050 if (PyFunction_Check(__pyx_t_3)) {
38051 PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_5, __pyx_t_4};
38052 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1170, __pyx_L1_error)
38053 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
38054 __Pyx_GOTREF(__pyx_t_2);
38055 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
38056 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
38059 #if CYTHON_FAST_PYCCALL
38060 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
38061 PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_5, __pyx_t_4};
38062 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1170, __pyx_L1_error)
38063 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
38064 __Pyx_GOTREF(__pyx_t_2);
38065 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
38066 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
38070 __pyx_t_11 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1170, __pyx_L1_error)
38071 __Pyx_GOTREF(__pyx_t_11);
38073 __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_8); __pyx_t_8 = NULL;
38075 __Pyx_GIVEREF(__pyx_t_5);
38076 PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_7, __pyx_t_5);
38077 __Pyx_GIVEREF(__pyx_t_4);
38078 PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_7, __pyx_t_4);
38081 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_11, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1170, __pyx_L1_error)
38082 __Pyx_GOTREF(__pyx_t_2);
38083 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
38085 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
38086 __pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(__pyx_t_2, PyBUF_WRITABLE);
if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 1170, __pyx_L1_error)
38087 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
38088 __pyx_v_waterSpeed = __pyx_t_9;
38089 __pyx_t_9.memview = NULL;
38090 __pyx_t_9.data = NULL;
38119 __pyx_t_15 = __pyx_v_self->zero_vel;
38120 __PYX_INC_MEMVIEW(&__pyx_t_15, 1);
38121 __pyx_v_waterSpeed = __pyx_t_15;
38122 __pyx_t_15.memview = NULL;
38123 __pyx_t_15.data = NULL;
38136 (__pyx_v_u[0]) = ((__pyx_v_H * (*((
double *) ( (__pyx_v_self->wind_speed.data + __pyx_t_16 * __pyx_v_self->wind_speed.strides[0]) )))) + ((1.0 - __pyx_v_H) * (*((
double *) ( (__pyx_v_waterSpeed.data + __pyx_t_17 * __pyx_v_waterSpeed.strides[0]) )))));
38147 (__pyx_v_u[1]) = ((__pyx_v_H * (*((
double *) ( (__pyx_v_self->wind_speed.data + __pyx_t_17 * __pyx_v_self->wind_speed.strides[0]) )))) + ((1.0 - __pyx_v_H) * (*((
double *) ( (__pyx_v_waterSpeed.data + __pyx_t_16 * __pyx_v_waterSpeed.strides[0]) )))));
38158 (__pyx_v_u[2]) = ((__pyx_v_H * (*((
double *) ( (__pyx_v_self->wind_speed.data + __pyx_t_16 * __pyx_v_self->wind_speed.strides[0]) )))) + ((1.0 - __pyx_v_H) * (*((
double *) ( (__pyx_v_waterSpeed.data + __pyx_t_17 * __pyx_v_waterSpeed.strides[0]) )))));
38167 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1177, __pyx_L1_error)
38168 __Pyx_GOTREF(__pyx_t_3);
38169 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)3));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1177, __pyx_L1_error)
38170 __Pyx_GOTREF(__pyx_t_2);
38171 __pyx_t_18 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"fortran", (
char *) __pyx_v_u);
38172 if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1177, __pyx_L1_error)
38173 __Pyx_GOTREF(__pyx_t_18);
38174 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
38175 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
38176 __pyx_t_15 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(((PyObject *)__pyx_t_18), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_15.memview)) __PYX_ERR(0, 1177, __pyx_L1_error)
38177 __Pyx_DECREF(((PyObject *)__pyx_t_18)); __pyx_t_18 = 0;
38178 __pyx_r = __pyx_t_15;
38179 __pyx_t_15.memview = NULL;
38180 __pyx_t_15.data = NULL;
38193 __Pyx_XDECREF(__pyx_t_2);
38194 __Pyx_XDECREF(__pyx_t_3);
38195 __Pyx_XDECREF(__pyx_t_4);
38196 __Pyx_XDECREF(__pyx_t_5);
38197 __Pyx_XDECREF(__pyx_t_6);
38198 __Pyx_XDECREF(__pyx_t_8);
38199 __PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
38200 __Pyx_XDECREF(__pyx_t_11);
38201 __Pyx_XDECREF(__pyx_t_12);
38202 __Pyx_XDECREF(__pyx_t_13);
38203 __PYX_XDEC_MEMVIEW(&__pyx_t_15, 1);
38204 __Pyx_XDECREF(((PyObject *)__pyx_t_18));
38205 __pyx_r.data = NULL;
38206 __pyx_r.memview = NULL;
38207 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__cpp_calculate_velocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
38210 if (unlikely(!__pyx_r.memview)) {
38211 PyErr_SetString(PyExc_TypeError,
"Memoryview return value is not initialized");
38214 __PYX_XDEC_MEMVIEW(&__pyx_v_waterSpeed, 1);
38215 __Pyx_TraceReturn(Py_None, 0);
38216 __Pyx_RefNannyFinishContext();
38228 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_pressure(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
38229 __pyx_t_6mprans_18BoundaryConditions_double_memview1 __pyx_v_ux = { 0, 0, { 0 }, { 0 }, { 0 } };
38237 __Pyx_TraceDeclarations
38238 __Pyx_RefNannyDeclarations
38239 __Pyx_memviewslice __pyx_t_1 = { 0, 0, { 0 }, { 0 }, { 0 } };
38240 Py_ssize_t __pyx_t_2;
38244 int __pyx_lineno = 0;
38245 const char *__pyx_filename = NULL;
38246 int __pyx_clineno = 0;
38247 __Pyx_RefNannySetupContext(
"__cpp_calculate_pressure", 0);
38248 __Pyx_TraceCall(
"__cpp_calculate_pressure", __pyx_f[0], 1179, 0, __PYX_ERR(0, 1179, __pyx_L1_error));
38257 __pyx_t_1 = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_velocity(__pyx_v_self, __pyx_v_x, __pyx_v_t);
if (unlikely(!__pyx_t_1.memview)) __PYX_ERR(0, 1183, __pyx_L1_error)
38258 __pyx_v_ux = __pyx_t_1;
38259 __pyx_t_1.memview = NULL;
38260 __pyx_t_1.data = NULL;
38270 __pyx_t_3 = (*((
double *) ( (__pyx_v_self->_b_or.data + __pyx_t_2 * __pyx_v_self->_b_or.strides[0]) )));
38272 __pyx_t_4 = (*((
double *) ( (__pyx_v_self->_b_or.data + __pyx_t_2 * __pyx_v_self->_b_or.strides[0]) )));
38274 __pyx_t_5 = (*((
double *) ( (__pyx_v_self->_b_or.data + __pyx_t_2 * __pyx_v_self->_b_or.strides[0]) )));
38275 __pyx_v_b0 = __pyx_t_3;
38276 __pyx_v_b1 = __pyx_t_4;
38277 __pyx_v_b2 = __pyx_t_5;
38287 __pyx_t_5 = (*((
double *) ( (__pyx_v_ux.data + __pyx_t_2 * __pyx_v_ux.strides[0]) )));
38289 __pyx_t_4 = (*((
double *) ( (__pyx_v_ux.data + __pyx_t_2 * __pyx_v_ux.strides[0]) )));
38291 __pyx_t_3 = (*((
double *) ( (__pyx_v_ux.data + __pyx_t_2 * __pyx_v_ux.strides[0]) )));
38292 __pyx_v_u0 = __pyx_t_5;
38293 __pyx_v_u1 = __pyx_t_4;
38294 __pyx_v_u2 = __pyx_t_3;
38303 __pyx_r = (((__pyx_v_b0 * __pyx_v_u0) + (__pyx_v_b1 * __pyx_v_u1)) + (__pyx_v_b2 * __pyx_v_u2));
38316 __PYX_XDEC_MEMVIEW(&__pyx_t_1, 1);
38317 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__cpp_calculate_pressure", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
38320 __PYX_XDEC_MEMVIEW(&__pyx_v_ux, 1);
38321 __Pyx_TraceReturn(Py_None, 0);
38322 __Pyx_RefNannyFinishContext();
38334 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_phi(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
38335 double __pyx_v_level;
38336 double __pyx_v_xx[3];
38338 __Pyx_TraceDeclarations
38339 __Pyx_RefNannyDeclarations
38340 PyObject *__pyx_t_1 = NULL;
38341 PyObject *__pyx_t_2 = NULL;
38342 PyObject *__pyx_t_3 = NULL;
38343 PyObject *__pyx_t_4 = NULL;
38344 PyObject *__pyx_t_5 = NULL;
38345 PyObject *__pyx_t_6 = NULL;
38347 PyObject *__pyx_t_8 = NULL;
38349 int __pyx_lineno = 0;
38350 const char *__pyx_filename = NULL;
38351 int __pyx_clineno = 0;
38352 __Pyx_RefNannySetupContext(
"__cpp_calculate_phi", 0);
38353 __Pyx_TraceCall(
"__cpp_calculate_phi", __pyx_f[0], 1188, 0, __PYX_ERR(0, 1188, __pyx_L1_error));
38362 (__pyx_v_xx[0]) = (__pyx_v_x[0]);
38371 (__pyx_v_xx[1]) = (__pyx_v_x[1]);
38380 (__pyx_v_xx[2]) = (__pyx_v_x[2]);
38389 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->WT, __pyx_n_s_mwl);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1193, __pyx_L1_error)
38390 __Pyx_GOTREF(__pyx_t_1);
38391 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->WT, __pyx_n_s_eta);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1193, __pyx_L1_error)
38392 __Pyx_GOTREF(__pyx_t_3);
38393 __pyx_t_4 = __Pyx_carray_to_py_double(__pyx_v_xx, 3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1193, __pyx_L1_error)
38394 __Pyx_GOTREF(__pyx_t_4);
38395 __pyx_t_5 = PyFloat_FromDouble(__pyx_v_t);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1193, __pyx_L1_error)
38396 __Pyx_GOTREF(__pyx_t_5);
38399 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
38400 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
38401 if (likely(__pyx_t_6)) {
38402 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
38403 __Pyx_INCREF(__pyx_t_6);
38404 __Pyx_INCREF(
function);
38405 __Pyx_DECREF_SET(__pyx_t_3,
function);
38409 #if CYTHON_FAST_PYCALL
38410 if (PyFunction_Check(__pyx_t_3)) {
38411 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5};
38412 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
38413 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
38414 __Pyx_GOTREF(__pyx_t_2);
38415 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
38416 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
38419 #if CYTHON_FAST_PYCCALL
38420 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
38421 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_4, __pyx_t_5};
38422 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
38423 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
38424 __Pyx_GOTREF(__pyx_t_2);
38425 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
38426 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
38430 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1193, __pyx_L1_error)
38431 __Pyx_GOTREF(__pyx_t_8);
38433 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
38435 __Pyx_GIVEREF(__pyx_t_4);
38436 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4);
38437 __Pyx_GIVEREF(__pyx_t_5);
38438 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5);
38441 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
38442 __Pyx_GOTREF(__pyx_t_2);
38443 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
38445 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
38446 __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1193, __pyx_L1_error)
38447 __Pyx_GOTREF(__pyx_t_3);
38448 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
38449 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
38450 __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_3);
if (unlikely((__pyx_t_9 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1193, __pyx_L1_error)
38451 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
38452 __pyx_v_level = __pyx_t_9;
38461 __pyx_r = ((__pyx_v_x[__pyx_v_self->vert_axis]) - __pyx_v_level);
38474 __Pyx_XDECREF(__pyx_t_1);
38475 __Pyx_XDECREF(__pyx_t_2);
38476 __Pyx_XDECREF(__pyx_t_3);
38477 __Pyx_XDECREF(__pyx_t_4);
38478 __Pyx_XDECREF(__pyx_t_5);
38479 __Pyx_XDECREF(__pyx_t_6);
38480 __Pyx_XDECREF(__pyx_t_8);
38481 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__cpp_calculate_phi", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
38484 __Pyx_TraceReturn(Py_None, 0);
38485 __Pyx_RefNannyFinishContext();
38497 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_vof(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double *__pyx_v_x,
double __pyx_v_t) {
38498 double __pyx_v_phi;
38501 __Pyx_TraceDeclarations
38502 __Pyx_RefNannyDeclarations
38503 int __pyx_lineno = 0;
38504 const char *__pyx_filename = NULL;
38505 int __pyx_clineno = 0;
38506 __Pyx_RefNannySetupContext(
"__cpp_calculate_vof", 0);
38507 __Pyx_TraceCall(
"__cpp_calculate_vof", __pyx_f[0], 1196, 0, __PYX_ERR(0, 1196, __pyx_L1_error));
38516 __pyx_v_phi = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_phi(__pyx_v_self, __pyx_v_x, __pyx_v_t);
38525 __pyx_v_H = ((
struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self->__pyx_vtab)->__pyx___cpp_calculate_smoothing_H(__pyx_v_self, __pyx_v_phi);
38534 __pyx_r = __pyx_v_H;
38547 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__cpp_calculate_vof", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
38550 __Pyx_TraceReturn(Py_None, 0);
38551 __Pyx_RefNannyFinishContext();
38563 static double __pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_smoothing_H(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self,
double __pyx_v_phi) {
38566 __Pyx_TraceDeclarations
38567 __Pyx_RefNannyDeclarations
38571 PyObject *__pyx_t_4 = NULL;
38572 PyObject *__pyx_t_5 = NULL;
38573 PyObject *__pyx_t_6 = NULL;
38574 PyObject *__pyx_t_7 = NULL;
38575 PyObject *__pyx_t_8 = NULL;
38577 PyObject *__pyx_t_10 = NULL;
38579 int __pyx_lineno = 0;
38580 const char *__pyx_filename = NULL;
38581 int __pyx_clineno = 0;
38582 __Pyx_RefNannySetupContext(
"__cpp_calculate_smoothing_H", 0);
38583 __Pyx_TraceCall(
"__cpp_calculate_smoothing_H", __pyx_f[0], 1201, 0, __PYX_ERR(0, 1201, __pyx_L1_error));
38592 __pyx_t_1 = ((__pyx_v_phi >= __pyx_v_self->smoothing) != 0);
38621 __pyx_t_2 = ((__pyx_v_self->smoothing > 0.0) != 0);
38624 __pyx_t_1 = __pyx_t_2;
38625 goto __pyx_L4_bool_binop_done;
38627 __pyx_t_2 = ((-__pyx_v_self->smoothing) < __pyx_v_phi);
38629 __pyx_t_2 = (__pyx_v_phi < __pyx_v_self->smoothing);
38631 __pyx_t_3 = (__pyx_t_2 != 0);
38632 __pyx_t_1 = __pyx_t_3;
38633 __pyx_L4_bool_binop_done:;
38643 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1205, __pyx_L1_error)
38644 __Pyx_GOTREF(__pyx_t_5);
38645 __pyx_t_6 = PyFloat_FromDouble(__pyx_v_self->smoothing);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1205, __pyx_L1_error)
38646 __Pyx_GOTREF(__pyx_t_6);
38647 __pyx_t_7 = PyFloat_FromDouble(__pyx_v_phi);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1205, __pyx_L1_error)
38648 __Pyx_GOTREF(__pyx_t_7);
38651 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
38652 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5);
38653 if (likely(__pyx_t_8)) {
38654 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
38655 __Pyx_INCREF(__pyx_t_8);
38656 __Pyx_INCREF(
function);
38657 __Pyx_DECREF_SET(__pyx_t_5,
function);
38661 #if CYTHON_FAST_PYCALL
38662 if (PyFunction_Check(__pyx_t_5)) {
38663 PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_t_7};
38664 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1205, __pyx_L1_error)
38665 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
38666 __Pyx_GOTREF(__pyx_t_4);
38667 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
38668 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
38671 #if CYTHON_FAST_PYCCALL
38672 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
38673 PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_6, __pyx_t_7};
38674 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1205, __pyx_L1_error)
38675 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
38676 __Pyx_GOTREF(__pyx_t_4);
38677 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
38678 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
38682 __pyx_t_10 = PyTuple_New(2+__pyx_t_9);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1205, __pyx_L1_error)
38683 __Pyx_GOTREF(__pyx_t_10);
38685 __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL;
38687 __Pyx_GIVEREF(__pyx_t_6);
38688 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_6);
38689 __Pyx_GIVEREF(__pyx_t_7);
38690 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_7);
38693 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1205, __pyx_L1_error)
38694 __Pyx_GOTREF(__pyx_t_4);
38695 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
38697 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
38698 __pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_t_4);
if (unlikely((__pyx_t_11 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1205, __pyx_L1_error)
38699 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
38700 __pyx_v_H = __pyx_t_11;
38719 __pyx_t_1 = ((__pyx_v_phi <= (-__pyx_v_self->smoothing)) != 0);
38748 __pyx_r = __pyx_v_H;
38761 __Pyx_XDECREF(__pyx_t_4);
38762 __Pyx_XDECREF(__pyx_t_5);
38763 __Pyx_XDECREF(__pyx_t_6);
38764 __Pyx_XDECREF(__pyx_t_7);
38765 __Pyx_XDECREF(__pyx_t_8);
38766 __Pyx_XDECREF(__pyx_t_10);
38767 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__cpp_calculate_smoothing_H", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
38770 __Pyx_TraceReturn(Py_None, 0);
38771 __Pyx_RefNannyFinishContext();
38784 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_1__get__(PyObject *__pyx_v_self);
38785 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_1__get__(PyObject *__pyx_v_self) {
38786 PyObject *__pyx_r = 0;
38787 __Pyx_RefNannyDeclarations
38788 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
38789 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT___get__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self));
38792 __Pyx_RefNannyFinishContext();
38796 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT___get__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self) {
38797 PyObject *__pyx_r = NULL;
38798 __Pyx_TraceDeclarations
38799 __Pyx_RefNannyDeclarations
38800 int __pyx_lineno = 0;
38801 const char *__pyx_filename = NULL;
38802 int __pyx_clineno = 0;
38803 __Pyx_RefNannySetupContext(
"__get__", 0);
38804 __Pyx_TraceCall(
"__get__", __pyx_f[2], 186, 0, __PYX_ERR(2, 186, __pyx_L1_error));
38805 __Pyx_XDECREF(__pyx_r);
38806 __Pyx_INCREF(__pyx_v_self->WT);
38807 __pyx_r = __pyx_v_self->WT;
38812 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.WT.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
38815 __Pyx_XGIVEREF(__pyx_r);
38816 __Pyx_TraceReturn(__pyx_r, 0);
38817 __Pyx_RefNannyFinishContext();
38822 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
38823 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
38825 __Pyx_RefNannyDeclarations
38826 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
38827 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_2__set__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self), ((PyObject *)__pyx_v_value));
38830 __Pyx_RefNannyFinishContext();
38834 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_2__set__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v_value) {
38836 __Pyx_TraceDeclarations
38837 __Pyx_RefNannyDeclarations
38838 int __pyx_lineno = 0;
38839 const char *__pyx_filename = NULL;
38840 int __pyx_clineno = 0;
38841 __Pyx_RefNannySetupContext(
"__set__", 0);
38842 __Pyx_TraceCall(
"__set__", __pyx_f[2], 186, 0, __PYX_ERR(2, 186, __pyx_L1_error));
38843 __Pyx_INCREF(__pyx_v_value);
38844 __Pyx_GIVEREF(__pyx_v_value);
38845 __Pyx_GOTREF(__pyx_v_self->WT);
38846 __Pyx_DECREF(__pyx_v_self->WT);
38847 __pyx_v_self->WT = __pyx_v_value;
38853 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.WT.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
38856 __Pyx_TraceReturn(Py_None, 0);
38857 __Pyx_RefNannyFinishContext();
38862 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_5__del__(PyObject *__pyx_v_self);
38863 static int __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_5__del__(PyObject *__pyx_v_self) {
38865 __Pyx_RefNannyDeclarations
38866 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
38867 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_4__del__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self));
38870 __Pyx_RefNannyFinishContext();
38874 static int __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_4__del__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self) {
38876 __Pyx_TraceDeclarations
38877 __Pyx_RefNannyDeclarations
38878 int __pyx_lineno = 0;
38879 const char *__pyx_filename = NULL;
38880 int __pyx_clineno = 0;
38881 __Pyx_RefNannySetupContext(
"__del__", 0);
38882 __Pyx_TraceCall(
"__del__", __pyx_f[2], 186, 0, __PYX_ERR(2, 186, __pyx_L1_error));
38883 __Pyx_INCREF(Py_None);
38884 __Pyx_GIVEREF(Py_None);
38885 __Pyx_GOTREF(__pyx_v_self->WT);
38886 __Pyx_DECREF(__pyx_v_self->WT);
38887 __pyx_v_self->WT = Py_None;
38893 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.WT.__del__", __pyx_clineno, __pyx_lineno, __pyx_filename);
38896 __Pyx_TraceReturn(Py_None, 0);
38897 __Pyx_RefNannyFinishContext();
38908 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
38909 static char __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__[] =
"__cppClass_WavesCharacteristics.__reduce_cython__(self)";
38910 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__};
38911 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
38912 PyObject *__pyx_r = 0;
38913 __Pyx_RefNannyDeclarations
38914 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
38915 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self));
38918 __Pyx_RefNannyFinishContext();
38922 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self) {
38923 PyObject *__pyx_v_state = 0;
38924 PyObject *__pyx_v__dict = 0;
38925 int __pyx_v_use_setstate;
38926 PyObject *__pyx_r = NULL;
38927 __Pyx_TraceDeclarations
38928 __Pyx_RefNannyDeclarations
38929 PyObject *__pyx_t_1 = NULL;
38930 PyObject *__pyx_t_2 = NULL;
38931 PyObject *__pyx_t_3 = NULL;
38932 PyObject *__pyx_t_4 = NULL;
38933 PyObject *__pyx_t_5 = NULL;
38934 PyObject *__pyx_t_6 = NULL;
38935 PyObject *__pyx_t_7 = NULL;
38936 PyObject *__pyx_t_8 = NULL;
38937 PyObject *__pyx_t_9 = NULL;
38938 PyObject *__pyx_t_10 = NULL;
38941 int __pyx_lineno = 0;
38942 const char *__pyx_filename = NULL;
38943 int __pyx_clineno = 0;
38944 __Pyx_TraceFrameInit(__pyx_codeobj__105)
38945 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
38946 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
38955 __pyx_t_1 = __pyx_memoryview_fromslice(__pyx_v_self->_b_or, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
38956 __Pyx_GOTREF(__pyx_t_1);
38957 __pyx_t_2 = __pyx_memoryview_fromslice(__pyx_v_self->center, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error)
38958 __Pyx_GOTREF(__pyx_t_2);
38959 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_self->orientation, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 5, __pyx_L1_error)
38960 __Pyx_GOTREF(__pyx_t_3);
38961 __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->smoothing);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
38962 __Pyx_GOTREF(__pyx_t_4);
38963 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->vert_axis);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 5, __pyx_L1_error)
38964 __Pyx_GOTREF(__pyx_t_5);
38965 __pyx_t_6 = PyFloat_FromDouble(__pyx_v_self->vof_air);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 5, __pyx_L1_error)
38966 __Pyx_GOTREF(__pyx_t_6);
38967 __pyx_t_7 = PyFloat_FromDouble(__pyx_v_self->vof_water);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 5, __pyx_L1_error)
38968 __Pyx_GOTREF(__pyx_t_7);
38969 __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_self->wind_speed, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 5, __pyx_L1_error)
38970 __Pyx_GOTREF(__pyx_t_8);
38971 __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_self->zero_vel, 1, (PyObject *(*)(
char *)) __pyx_memview_get_double, (int (*)(
char *, PyObject *)) __pyx_memview_set_double, 0);;
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 5, __pyx_L1_error)
38972 __Pyx_GOTREF(__pyx_t_9);
38973 __pyx_t_10 = PyTuple_New(10);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 5, __pyx_L1_error)
38974 __Pyx_GOTREF(__pyx_t_10);
38975 __Pyx_INCREF(__pyx_v_self->WT);
38976 __Pyx_GIVEREF(__pyx_v_self->WT);
38977 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_self->WT);
38978 __Pyx_GIVEREF(__pyx_t_1);
38979 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_1);
38980 __Pyx_GIVEREF(__pyx_t_2);
38981 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_2);
38982 __Pyx_GIVEREF(__pyx_t_3);
38983 PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_3);
38984 __Pyx_GIVEREF(__pyx_t_4);
38985 PyTuple_SET_ITEM(__pyx_t_10, 4, __pyx_t_4);
38986 __Pyx_GIVEREF(__pyx_t_5);
38987 PyTuple_SET_ITEM(__pyx_t_10, 5, __pyx_t_5);
38988 __Pyx_GIVEREF(__pyx_t_6);
38989 PyTuple_SET_ITEM(__pyx_t_10, 6, __pyx_t_6);
38990 __Pyx_GIVEREF(__pyx_t_7);
38991 PyTuple_SET_ITEM(__pyx_t_10, 7, __pyx_t_7);
38992 __Pyx_GIVEREF(__pyx_t_8);
38993 PyTuple_SET_ITEM(__pyx_t_10, 8, __pyx_t_8);
38994 __Pyx_GIVEREF(__pyx_t_9);
38995 PyTuple_SET_ITEM(__pyx_t_10, 9, __pyx_t_9);
39005 __pyx_v_state = ((PyObject*)__pyx_t_10);
39015 __pyx_t_10 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 6, __pyx_L1_error)
39016 __Pyx_GOTREF(__pyx_t_10);
39017 __pyx_v__dict = __pyx_t_10;
39027 __pyx_t_11 = (__pyx_v__dict != Py_None);
39028 __pyx_t_12 = (__pyx_t_11 != 0);
39038 __pyx_t_10 = PyTuple_New(1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 8, __pyx_L1_error)
39039 __Pyx_GOTREF(__pyx_t_10);
39040 __Pyx_INCREF(__pyx_v__dict);
39041 __Pyx_GIVEREF(__pyx_v__dict);
39042 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v__dict);
39043 __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_10);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 8, __pyx_L1_error)
39044 __Pyx_GOTREF(__pyx_t_9);
39045 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
39046 __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_9));
39056 __pyx_v_use_setstate = 1;
39076 __pyx_t_12 = (__pyx_v_self->WT != Py_None);
39077 __pyx_v_use_setstate = __pyx_t_12;
39088 __pyx_t_12 = (__pyx_v_use_setstate != 0);
39098 __Pyx_XDECREF(__pyx_r);
39099 __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pyx_unpickle___cppClass_WavesC);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 13, __pyx_L1_error)
39100 __Pyx_GOTREF(__pyx_t_9);
39101 __pyx_t_10 = PyTuple_New(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 13, __pyx_L1_error)
39102 __Pyx_GOTREF(__pyx_t_10);
39103 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39104 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39105 PyTuple_SET_ITEM(__pyx_t_10, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39106 __Pyx_INCREF(__pyx_int_24898426);
39107 __Pyx_GIVEREF(__pyx_int_24898426);
39108 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_int_24898426);
39109 __Pyx_INCREF(Py_None);
39110 __Pyx_GIVEREF(Py_None);
39111 PyTuple_SET_ITEM(__pyx_t_10, 2, Py_None);
39112 __pyx_t_8 = PyTuple_New(3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 13, __pyx_L1_error)
39113 __Pyx_GOTREF(__pyx_t_8);
39114 __Pyx_GIVEREF(__pyx_t_9);
39115 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9);
39116 __Pyx_GIVEREF(__pyx_t_10);
39117 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_10);
39118 __Pyx_INCREF(__pyx_v_state);
39119 __Pyx_GIVEREF(__pyx_v_state);
39120 PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_state);
39123 __pyx_r = __pyx_t_8;
39144 __Pyx_XDECREF(__pyx_r);
39145 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pyx_unpickle___cppClass_WavesC);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 15, __pyx_L1_error)
39146 __Pyx_GOTREF(__pyx_t_8);
39147 __pyx_t_10 = PyTuple_New(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 15, __pyx_L1_error)
39148 __Pyx_GOTREF(__pyx_t_10);
39149 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39150 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39151 PyTuple_SET_ITEM(__pyx_t_10, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
39152 __Pyx_INCREF(__pyx_int_24898426);
39153 __Pyx_GIVEREF(__pyx_int_24898426);
39154 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_int_24898426);
39155 __Pyx_INCREF(__pyx_v_state);
39156 __Pyx_GIVEREF(__pyx_v_state);
39157 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_state);
39158 __pyx_t_9 = PyTuple_New(2);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 15, __pyx_L1_error)
39159 __Pyx_GOTREF(__pyx_t_9);
39160 __Pyx_GIVEREF(__pyx_t_8);
39161 PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8);
39162 __Pyx_GIVEREF(__pyx_t_10);
39163 PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10);
39166 __pyx_r = __pyx_t_9;
39179 __Pyx_XDECREF(__pyx_t_1);
39180 __Pyx_XDECREF(__pyx_t_2);
39181 __Pyx_XDECREF(__pyx_t_3);
39182 __Pyx_XDECREF(__pyx_t_4);
39183 __Pyx_XDECREF(__pyx_t_5);
39184 __Pyx_XDECREF(__pyx_t_6);
39185 __Pyx_XDECREF(__pyx_t_7);
39186 __Pyx_XDECREF(__pyx_t_8);
39187 __Pyx_XDECREF(__pyx_t_9);
39188 __Pyx_XDECREF(__pyx_t_10);
39189 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
39192 __Pyx_XDECREF(__pyx_v_state);
39193 __Pyx_XDECREF(__pyx_v__dict);
39194 __Pyx_XGIVEREF(__pyx_r);
39195 __Pyx_TraceReturn(__pyx_r, 0);
39196 __Pyx_RefNannyFinishContext();
39208 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
39209 static char __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__[] =
"__cppClass_WavesCharacteristics.__setstate_cython__(self, __pyx_state)";
39210 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__};
39211 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
39212 PyObject *__pyx_r = 0;
39213 __Pyx_RefNannyDeclarations
39214 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
39215 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
39218 __Pyx_RefNannyFinishContext();
39222 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
39223 PyObject *__pyx_r = NULL;
39224 __Pyx_TraceDeclarations
39225 __Pyx_RefNannyDeclarations
39226 PyObject *__pyx_t_1 = NULL;
39227 int __pyx_lineno = 0;
39228 const char *__pyx_filename = NULL;
39229 int __pyx_clineno = 0;
39230 __Pyx_TraceFrameInit(__pyx_codeobj__106)
39231 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
39232 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 16, 0, __PYX_ERR(1, 16, __pyx_L1_error));
39239 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
39240 __pyx_t_1 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle___cppClass_WavesCharacteristics__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
39241 __Pyx_GOTREF(__pyx_t_1);
39242 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39252 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39255 __Pyx_XDECREF(__pyx_t_1);
39256 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__cppClass_WavesCharacteristics.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
39259 __Pyx_XGIVEREF(__pyx_r);
39260 __Pyx_TraceReturn(__pyx_r, 0);
39261 __Pyx_RefNannyFinishContext();
39273 static double *__pyx_f_6mprans_18BoundaryConditions___x_to_cpp(__Pyx_memviewslice __pyx_v_x) {
39274 double __pyx_v_xx[3];
39276 __Pyx_TraceDeclarations
39277 __Pyx_RefNannyDeclarations
39278 Py_ssize_t __pyx_t_1;
39279 int __pyx_lineno = 0;
39280 const char *__pyx_filename = NULL;
39281 int __pyx_clineno = 0;
39282 __Pyx_RefNannySetupContext(
"__x_to_cpp", 0);
39283 __Pyx_TraceCall(
"__x_to_cpp", __pyx_f[0], 1211, 0, __PYX_ERR(0, 1211, __pyx_L1_error));
39293 (__pyx_v_xx[0]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
39303 (__pyx_v_xx[1]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
39313 (__pyx_v_xx[2]) = (*((
double *) ( (__pyx_v_x.data + __pyx_t_1 * __pyx_v_x.strides[0]) )));
39322 __pyx_r = __pyx_v_xx;
39335 __Pyx_WriteUnraisable(
"mprans.BoundaryConditions.__x_to_cpp", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
39338 __Pyx_TraceReturn(Py_None, 0);
39339 __Pyx_RefNannyFinishContext();
39352 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39353 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions___init__[] =
"WallFunctions.__init__(self, turbModel, kWall, Y, Yplus, U0, nu=1.004e-6, Cmu=0.09, K=0.41, B=5.57)\n\n Sets turbulent boundaries for wall treatment.\n Calculation made on nodes outside the viscous sublayer and based\n on assumption on the velocity profile close to the wall in order to\n impose the wall shear stress.\n\n - k is assumed to be constant in the fully turbulent region close to the wall,\n in this way kv = kp.\n - dissipation is calculated.\n\n Parameters\n ----------\n turbModel: string.\n 'ke' or 'kw', for switching between k-epsilon or k-omega models.\n kWall: object.\n Class kWall object for extracting kappa from the model.\n Y: float.\n size of the nearest element to the boundary.\n Yplus: float.\n size of the nearest element to the boundary in terms of wall unit.\n U0: array_like.\n stream velocity.\n nu: float.\n fluid viscosity.\n Cmu: float.\n turbulent viscosity constant.\n K: float.\n von Karman coefficient.\n B: float.\n roughness coefficient for walls.\n ";
39354 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_1__init__ = {
"__init__", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions___init__};
39355 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39356 PyObject *__pyx_v_self = 0;
39357 PyObject *__pyx_v_turbModel = 0;
39358 PyObject *__pyx_v_kWall = 0;
39359 PyObject *__pyx_v_Y = 0;
39360 PyObject *__pyx_v_Yplus = 0;
39361 PyObject *__pyx_v_U0 = 0;
39362 PyObject *__pyx_v_nu = 0;
39363 PyObject *__pyx_v_Cmu = 0;
39364 PyObject *__pyx_v_K = 0;
39365 PyObject *__pyx_v_B = 0;
39366 int __pyx_lineno = 0;
39367 const char *__pyx_filename = NULL;
39368 int __pyx_clineno = 0;
39369 PyObject *__pyx_r = 0;
39370 __Pyx_RefNannyDeclarations
39371 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
39373 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_turbModel,&__pyx_n_s_kWall,&__pyx_n_s_Y,&__pyx_n_s_Yplus,&__pyx_n_s_U0,&__pyx_n_s_nu,&__pyx_n_s_Cmu,&__pyx_n_s_K,&__pyx_n_s_B,0};
39374 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
39375 values[6] = ((PyObject *)((PyObject*)__pyx_float_1_004eneg_6));
39376 values[7] = ((PyObject *)((PyObject*)__pyx_float_0_09));
39377 values[8] = ((PyObject *)((PyObject*)__pyx_float_0_41));
39378 values[9] = ((PyObject *)((PyObject*)__pyx_float_5_57));
39379 if (unlikely(__pyx_kwds)) {
39380 Py_ssize_t kw_args;
39381 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39382 switch (pos_args) {
39383 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39384 CYTHON_FALLTHROUGH;
39385 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39386 CYTHON_FALLTHROUGH;
39387 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39388 CYTHON_FALLTHROUGH;
39389 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39390 CYTHON_FALLTHROUGH;
39391 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39392 CYTHON_FALLTHROUGH;
39393 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39394 CYTHON_FALLTHROUGH;
39395 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39396 CYTHON_FALLTHROUGH;
39397 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39398 CYTHON_FALLTHROUGH;
39399 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39400 CYTHON_FALLTHROUGH;
39401 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39402 CYTHON_FALLTHROUGH;
39404 default:
goto __pyx_L5_argtuple_error;
39406 kw_args = PyDict_Size(__pyx_kwds);
39407 switch (pos_args) {
39409 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
39410 else goto __pyx_L5_argtuple_error;
39411 CYTHON_FALLTHROUGH;
39413 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_turbModel)) != 0)) kw_args--;
39415 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, 1); __PYX_ERR(0, 1225, __pyx_L3_error)
39417 CYTHON_FALLTHROUGH;
39419 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kWall)) != 0)) kw_args--;
39421 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, 2); __PYX_ERR(0, 1225, __pyx_L3_error)
39423 CYTHON_FALLTHROUGH;
39425 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Y)) != 0)) kw_args--;
39427 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, 3); __PYX_ERR(0, 1225, __pyx_L3_error)
39429 CYTHON_FALLTHROUGH;
39431 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Yplus)) != 0)) kw_args--;
39433 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, 4); __PYX_ERR(0, 1225, __pyx_L3_error)
39435 CYTHON_FALLTHROUGH;
39437 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_U0)) != 0)) kw_args--;
39439 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, 5); __PYX_ERR(0, 1225, __pyx_L3_error)
39441 CYTHON_FALLTHROUGH;
39444 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu);
39445 if (value) { values[6] = value; kw_args--; }
39447 CYTHON_FALLTHROUGH;
39450 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Cmu);
39451 if (value) { values[7] = value; kw_args--; }
39453 CYTHON_FALLTHROUGH;
39456 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_K);
39457 if (value) { values[8] = value; kw_args--; }
39459 CYTHON_FALLTHROUGH;
39462 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_B);
39463 if (value) { values[9] = value; kw_args--; }
39466 if (unlikely(kw_args > 0)) {
39467 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 1225, __pyx_L3_error)
39470 switch (PyTuple_GET_SIZE(__pyx_args)) {
39471 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
39472 CYTHON_FALLTHROUGH;
39473 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
39474 CYTHON_FALLTHROUGH;
39475 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
39476 CYTHON_FALLTHROUGH;
39477 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
39478 CYTHON_FALLTHROUGH;
39479 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
39480 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
39481 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
39482 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39483 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39484 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39486 default:
goto __pyx_L5_argtuple_error;
39489 __pyx_v_self = values[0];
39490 __pyx_v_turbModel = values[1];
39491 __pyx_v_kWall = values[2];
39492 __pyx_v_Y = values[3];
39493 __pyx_v_Yplus = values[4];
39494 __pyx_v_U0 = values[5];
39495 __pyx_v_nu = values[6];
39496 __pyx_v_Cmu = values[7];
39497 __pyx_v_K = values[8];
39498 __pyx_v_B = values[9];
39500 goto __pyx_L4_argument_unpacking_done;
39501 __pyx_L5_argtuple_error:;
39502 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 6, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1225, __pyx_L3_error)
39504 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
39505 __Pyx_RefNannyFinishContext();
39507 __pyx_L4_argument_unpacking_done:;
39508 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions___init__(__pyx_self, __pyx_v_self, __pyx_v_turbModel, __pyx_v_kWall, __pyx_v_Y, __pyx_v_Yplus, __pyx_v_U0, __pyx_v_nu, __pyx_v_Cmu, __pyx_v_K, __pyx_v_B);
39511 __Pyx_RefNannyFinishContext();
39515 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_turbModel, PyObject *__pyx_v_kWall, PyObject *__pyx_v_Y, PyObject *__pyx_v_Yplus, PyObject *__pyx_v_U0, PyObject *__pyx_v_nu, PyObject *__pyx_v_Cmu, PyObject *__pyx_v_K, PyObject *__pyx_v_B) {
39516 PyObject *__pyx_r = NULL;
39517 __Pyx_TraceDeclarations
39518 __Pyx_RefNannyDeclarations
39519 PyObject *__pyx_t_1 = NULL;
39520 PyObject *__pyx_t_2 = NULL;
39521 PyObject *__pyx_t_3 = NULL;
39522 int __pyx_lineno = 0;
39523 const char *__pyx_filename = NULL;
39524 int __pyx_clineno = 0;
39525 __Pyx_TraceFrameInit(__pyx_codeobj__107)
39526 __Pyx_RefNannySetupContext(
"__init__", 0);
39527 __Pyx_TraceCall(
"__init__", __pyx_f[0], 1225, 0, __PYX_ERR(0, 1225, __pyx_L1_error));
39536 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_turbModel, __pyx_v_turbModel) < 0) __PYX_ERR(0, 1257, __pyx_L1_error)
39545 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Y, __pyx_v_Y) < 0) __PYX_ERR(0, 1258, __pyx_L1_error)
39554 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Yplus, __pyx_v_Yplus) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)
39563 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_U0, __pyx_v_U0) < 0) __PYX_ERR(0, 1260, __pyx_L1_error)
39572 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nu, __pyx_v_nu) < 0) __PYX_ERR(0, 1261, __pyx_L1_error)
39581 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Cmu, __pyx_v_Cmu) < 0) __PYX_ERR(0, 1262, __pyx_L1_error)
39590 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_K, __pyx_v_K) < 0) __PYX_ERR(0, 1263, __pyx_L1_error)
39599 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_B, __pyx_v_B) < 0) __PYX_ERR(0, 1264, __pyx_L1_error)
39608 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1266, __pyx_L1_error)
39609 __Pyx_GOTREF(__pyx_t_2);
39610 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1266, __pyx_L1_error)
39611 __Pyx_GOTREF(__pyx_t_3);
39612 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39614 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
39615 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
39616 if (likely(__pyx_t_2)) {
39617 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
39618 __Pyx_INCREF(__pyx_t_2);
39619 __Pyx_INCREF(
function);
39620 __Pyx_DECREF_SET(__pyx_t_3,
function);
39623 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_3);
39624 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
39625 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1266, __pyx_L1_error)
39626 __Pyx_GOTREF(__pyx_t_1);
39627 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
39628 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Ubound, __pyx_t_1) < 0) __PYX_ERR(0, 1266, __pyx_L1_error)
39629 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39638 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kappa, __pyx_float_1eneg_10) < 0) __PYX_ERR(0, 1267, __pyx_L1_error)
39647 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tau_rho, __pyx_float_0_) < 0) __PYX_ERR(0, 1268, __pyx_L1_error)
39656 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_utAbs, __pyx_float_1eneg_10) < 0) __PYX_ERR(0, 1269, __pyx_L1_error)
39665 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1270, __pyx_L1_error)
39666 __Pyx_GOTREF(__pyx_t_3);
39667 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1270, __pyx_L1_error)
39668 __Pyx_GOTREF(__pyx_t_2);
39669 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
39671 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
39672 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
39673 if (likely(__pyx_t_3)) {
39674 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
39675 __Pyx_INCREF(__pyx_t_3);
39676 __Pyx_INCREF(
function);
39677 __Pyx_DECREF_SET(__pyx_t_2,
function);
39680 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_3);
39681 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
39682 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1270, __pyx_L1_error)
39683 __Pyx_GOTREF(__pyx_t_1);
39684 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39685 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ut, __pyx_t_1) < 0) __PYX_ERR(0, 1270, __pyx_L1_error)
39686 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39695 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1271, __pyx_L1_error)
39696 __Pyx_GOTREF(__pyx_t_2);
39697 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1271, __pyx_L1_error)
39698 __Pyx_GOTREF(__pyx_t_3);
39699 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39701 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
39702 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
39703 if (likely(__pyx_t_2)) {
39704 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
39705 __Pyx_INCREF(__pyx_t_2);
39706 __Pyx_INCREF(
function);
39707 __Pyx_DECREF_SET(__pyx_t_3,
function);
39710 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_int_3) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_3);
39711 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
39712 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1271, __pyx_L1_error)
39713 __Pyx_GOTREF(__pyx_t_1);
39714 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
39715 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_x, __pyx_t_1) < 0) __PYX_ERR(0, 1271, __pyx_L1_error)
39716 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39725 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_t, __pyx_float_0_) < 0) __PYX_ERR(0, 1272, __pyx_L1_error)
39734 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_model, Py_None) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
39743 __pyx_t_1 = Py_None;
39744 __Pyx_INCREF(__pyx_t_1);
39745 __pyx_t_3 = Py_None;
39746 __Pyx_INCREF(__pyx_t_3);
39747 __pyx_t_2 = Py_None;
39748 __Pyx_INCREF(__pyx_t_2);
39749 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_xi, __pyx_t_1) < 0) __PYX_ERR(0, 1274, __pyx_L1_error)
39750 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39751 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_element, __pyx_t_3) < 0) __PYX_ERR(0, 1274, __pyx_L1_error)
39752 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
39753 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rank, __pyx_t_2) < 0) __PYX_ERR(0, 1274, __pyx_L1_error)
39754 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39763 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kWall, __pyx_v_kWall) < 0) __PYX_ERR(0, 1275, __pyx_L1_error)
39774 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
39777 __Pyx_XDECREF(__pyx_t_1);
39778 __Pyx_XDECREF(__pyx_t_2);
39779 __Pyx_XDECREF(__pyx_t_3);
39780 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
39783 __Pyx_XGIVEREF(__pyx_r);
39784 __Pyx_TraceReturn(__pyx_r, 0);
39785 __Pyx_RefNannyFinishContext();
39798 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_3attachModel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
39799 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_2attachModel[] =
"WallFunctions.attachModel(self, model, ar)\n\n Attaches model to auxiliary variable\n ";
39800 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_3attachModel = {
"attachModel", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_3attachModel, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_2attachModel};
39801 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_3attachModel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
39802 PyObject *__pyx_v_self = 0;
39803 PyObject *__pyx_v_model = 0;
39804 PyObject *__pyx_v_ar = 0;
39805 int __pyx_lineno = 0;
39806 const char *__pyx_filename = NULL;
39807 int __pyx_clineno = 0;
39808 PyObject *__pyx_r = 0;
39809 __Pyx_RefNannyDeclarations
39810 __Pyx_RefNannySetupContext(
"attachModel (wrapper)", 0);
39812 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_model,&__pyx_n_s_ar,0};
39813 PyObject* values[3] = {0,0,0};
39814 if (unlikely(__pyx_kwds)) {
39815 Py_ssize_t kw_args;
39816 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
39817 switch (pos_args) {
39818 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39819 CYTHON_FALLTHROUGH;
39820 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39821 CYTHON_FALLTHROUGH;
39822 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39823 CYTHON_FALLTHROUGH;
39825 default:
goto __pyx_L5_argtuple_error;
39827 kw_args = PyDict_Size(__pyx_kwds);
39828 switch (pos_args) {
39830 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
39831 else goto __pyx_L5_argtuple_error;
39832 CYTHON_FALLTHROUGH;
39834 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_model)) != 0)) kw_args--;
39836 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, 1); __PYX_ERR(0, 1277, __pyx_L3_error)
39838 CYTHON_FALLTHROUGH;
39840 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ar)) != 0)) kw_args--;
39842 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, 2); __PYX_ERR(0, 1277, __pyx_L3_error)
39845 if (unlikely(kw_args > 0)) {
39846 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"attachModel") < 0)) __PYX_ERR(0, 1277, __pyx_L3_error)
39848 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
39849 goto __pyx_L5_argtuple_error;
39851 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
39852 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
39853 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
39855 __pyx_v_self = values[0];
39856 __pyx_v_model = values[1];
39857 __pyx_v_ar = values[2];
39859 goto __pyx_L4_argument_unpacking_done;
39860 __pyx_L5_argtuple_error:;
39861 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1277, __pyx_L3_error)
39863 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
39864 __Pyx_RefNannyFinishContext();
39866 __pyx_L4_argument_unpacking_done:;
39867 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_2attachModel(__pyx_self, __pyx_v_self, __pyx_v_model, __pyx_v_ar);
39870 __Pyx_RefNannyFinishContext();
39874 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_2attachModel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar) {
39875 PyObject *__pyx_r = NULL;
39876 __Pyx_TraceDeclarations
39877 __Pyx_RefNannyDeclarations
39878 PyObject *__pyx_t_1 = NULL;
39879 PyObject *__pyx_t_2 = NULL;
39880 int __pyx_lineno = 0;
39881 const char *__pyx_filename = NULL;
39882 int __pyx_clineno = 0;
39883 __Pyx_TraceFrameInit(__pyx_codeobj__108)
39884 __Pyx_RefNannySetupContext(
"attachModel", 0);
39885 __Pyx_TraceCall(
"attachModel", __pyx_f[0], 1277, 0, __PYX_ERR(0, 1277, __pyx_L1_error));
39894 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_model, __pyx_v_model) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
39903 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ar, __pyx_v_ar) < 0) __PYX_ERR(0, 1282, __pyx_L1_error)
39912 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1283, __pyx_L1_error)
39913 __Pyx_GOTREF(__pyx_t_1);
39914 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1283, __pyx_L1_error)
39915 __Pyx_GOTREF(__pyx_t_2);
39916 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39917 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1283, __pyx_L1_error)
39918 __Pyx_GOTREF(__pyx_t_1);
39919 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39920 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nd, __pyx_t_1) < 0) __PYX_ERR(0, 1283, __pyx_L1_error)
39921 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39930 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1284, __pyx_L1_error)
39931 __Pyx_GOTREF(__pyx_t_1);
39932 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
39933 __Pyx_GOTREF(__pyx_t_2);
39934 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39935 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1284, __pyx_L1_error)
39936 __Pyx_GOTREF(__pyx_t_1);
39937 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39938 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Closure_0_model);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
39939 __Pyx_GOTREF(__pyx_t_2);
39940 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39941 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Closure_0_model, __pyx_t_2) < 0) __PYX_ERR(0, 1284, __pyx_L1_error)
39942 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39951 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L1_error)
39952 __Pyx_GOTREF(__pyx_t_2);
39953 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L1_error)
39954 __Pyx_GOTREF(__pyx_t_1);
39955 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39956 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_coefficients);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L1_error)
39957 __Pyx_GOTREF(__pyx_t_2);
39958 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39959 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Closure_1_model);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L1_error)
39960 __Pyx_GOTREF(__pyx_t_1);
39961 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
39962 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Closure_1_model, __pyx_t_1) < 0) __PYX_ERR(0, 1285, __pyx_L1_error)
39963 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
39972 __Pyx_XDECREF(__pyx_r);
39973 __Pyx_INCREF(__pyx_v_self);
39974 __pyx_r = __pyx_v_self;
39987 __Pyx_XDECREF(__pyx_t_1);
39988 __Pyx_XDECREF(__pyx_t_2);
39989 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
39992 __Pyx_XGIVEREF(__pyx_r);
39993 __Pyx_TraceReturn(__pyx_r, 0);
39994 __Pyx_RefNannyFinishContext();
40007 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_5attachAuxiliaryVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40008 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_4attachAuxiliaryVariables[] =
"WallFunctions.attachAuxiliaryVariables(self, avDict)";
40009 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_5attachAuxiliaryVariables = {
"attachAuxiliaryVariables", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_5attachAuxiliaryVariables, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_4attachAuxiliaryVariables};
40010 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_5attachAuxiliaryVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40011 CYTHON_UNUSED PyObject *__pyx_v_self = 0;
40012 CYTHON_UNUSED PyObject *__pyx_v_avDict = 0;
40013 int __pyx_lineno = 0;
40014 const char *__pyx_filename = NULL;
40015 int __pyx_clineno = 0;
40016 PyObject *__pyx_r = 0;
40017 __Pyx_RefNannyDeclarations
40018 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables (wrapper)", 0);
40020 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_avDict,0};
40021 PyObject* values[2] = {0,0};
40022 if (unlikely(__pyx_kwds)) {
40023 Py_ssize_t kw_args;
40024 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40025 switch (pos_args) {
40026 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40027 CYTHON_FALLTHROUGH;
40028 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40029 CYTHON_FALLTHROUGH;
40031 default:
goto __pyx_L5_argtuple_error;
40033 kw_args = PyDict_Size(__pyx_kwds);
40034 switch (pos_args) {
40036 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
40037 else goto __pyx_L5_argtuple_error;
40038 CYTHON_FALLTHROUGH;
40040 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_avDict)) != 0)) kw_args--;
40042 __Pyx_RaiseArgtupleInvalid(
"attachAuxiliaryVariables", 1, 2, 2, 1); __PYX_ERR(0, 1288, __pyx_L3_error)
40045 if (unlikely(kw_args > 0)) {
40046 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"attachAuxiliaryVariables") < 0)) __PYX_ERR(0, 1288, __pyx_L3_error)
40048 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
40049 goto __pyx_L5_argtuple_error;
40051 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40052 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40054 __pyx_v_self = values[0];
40055 __pyx_v_avDict = values[1];
40057 goto __pyx_L4_argument_unpacking_done;
40058 __pyx_L5_argtuple_error:;
40059 __Pyx_RaiseArgtupleInvalid(
"attachAuxiliaryVariables", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1288, __pyx_L3_error)
40061 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.attachAuxiliaryVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
40062 __Pyx_RefNannyFinishContext();
40064 __pyx_L4_argument_unpacking_done:;
40065 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_4attachAuxiliaryVariables(__pyx_self, __pyx_v_self, __pyx_v_avDict);
40068 __Pyx_RefNannyFinishContext();
40072 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_4attachAuxiliaryVariables(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict) {
40073 PyObject *__pyx_r = NULL;
40074 __Pyx_TraceDeclarations
40075 __Pyx_RefNannyDeclarations
40076 int __pyx_lineno = 0;
40077 const char *__pyx_filename = NULL;
40078 int __pyx_clineno = 0;
40079 __Pyx_TraceFrameInit(__pyx_codeobj__109)
40080 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables", 0);
40081 __Pyx_TraceCall(
"attachAuxiliaryVariables", __pyx_f[0], 1288, 0, __PYX_ERR(0, 1288, __pyx_L1_error));
40084 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40087 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.attachAuxiliaryVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
40090 __Pyx_XGIVEREF(__pyx_r);
40091 __Pyx_TraceReturn(__pyx_r, 0);
40092 __Pyx_RefNannyFinishContext();
40105 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_7calculate_init(PyObject *__pyx_self, PyObject *__pyx_v_self);
40106 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_6calculate_init[] =
"WallFunctions.calculate_init(self)";
40107 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_7calculate_init = {
"calculate_init", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_7calculate_init, METH_O, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_6calculate_init};
40108 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_7calculate_init(PyObject *__pyx_self, PyObject *__pyx_v_self) {
40109 PyObject *__pyx_r = 0;
40110 __Pyx_RefNannyDeclarations
40111 __Pyx_RefNannySetupContext(
"calculate_init (wrapper)", 0);
40112 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_6calculate_init(__pyx_self, ((PyObject *)__pyx_v_self));
40115 __Pyx_RefNannyFinishContext();
40119 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_6calculate_init(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
40120 PyObject *__pyx_r = NULL;
40121 __Pyx_TraceDeclarations
40122 __Pyx_RefNannyDeclarations
40123 int __pyx_lineno = 0;
40124 const char *__pyx_filename = NULL;
40125 int __pyx_clineno = 0;
40126 __Pyx_TraceFrameInit(__pyx_codeobj__110)
40127 __Pyx_RefNannySetupContext(
"calculate_init", 0);
40128 __Pyx_TraceCall(
"calculate_init", __pyx_f[0], 1291, 0, __PYX_ERR(0, 1291, __pyx_L1_error));
40131 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40134 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
40137 __Pyx_XGIVEREF(__pyx_r);
40138 __Pyx_TraceReturn(__pyx_r, 0);
40139 __Pyx_RefNannyFinishContext();
40152 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_9calculate(PyObject *__pyx_self, PyObject *__pyx_v_self);
40153 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_8calculate[] =
"WallFunctions.calculate(self)";
40154 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_9calculate = {
"calculate", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_9calculate, METH_O, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_8calculate};
40155 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_9calculate(PyObject *__pyx_self, PyObject *__pyx_v_self) {
40156 PyObject *__pyx_r = 0;
40157 __Pyx_RefNannyDeclarations
40158 __Pyx_RefNannySetupContext(
"calculate (wrapper)", 0);
40159 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_8calculate(__pyx_self, ((PyObject *)__pyx_v_self));
40162 __Pyx_RefNannyFinishContext();
40166 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_8calculate(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
40167 PyObject *__pyx_r = NULL;
40168 __Pyx_TraceDeclarations
40169 __Pyx_RefNannyDeclarations
40170 int __pyx_lineno = 0;
40171 const char *__pyx_filename = NULL;
40172 int __pyx_clineno = 0;
40173 __Pyx_TraceFrameInit(__pyx_codeobj__111)
40174 __Pyx_RefNannySetupContext(
"calculate", 0);
40175 __Pyx_TraceCall(
"calculate", __pyx_f[0], 1294, 0, __PYX_ERR(0, 1294, __pyx_L1_error));
40178 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
40181 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.calculate", __pyx_clineno, __pyx_lineno, __pyx_filename);
40184 __Pyx_XGIVEREF(__pyx_r);
40185 __Pyx_TraceReturn(__pyx_r, 0);
40186 __Pyx_RefNannyFinishContext();
40199 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_11getLocalNearestNode(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40200 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_10getLocalNearestNode[] =
"WallFunctions.getLocalNearestNode(self, coords, kdtree)\n\n Finds nearest node to coordinates (local)\n Parameters\n ----------\n coords: array_like\n coordinates from which to find nearest node\n kdtree: scipy.spatial.cKDTree\n instance of scipy kdtree\n Returns\n -------\n node: int\n nearest node index\n distance: float\n distance to nearest node\n ";
40201 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_11getLocalNearestNode = {
"getLocalNearestNode", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_11getLocalNearestNode, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_10getLocalNearestNode};
40202 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_11getLocalNearestNode(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40203 CYTHON_UNUSED PyObject *__pyx_v_self = 0;
40204 PyObject *__pyx_v_coords = 0;
40205 PyObject *__pyx_v_kdtree = 0;
40206 int __pyx_lineno = 0;
40207 const char *__pyx_filename = NULL;
40208 int __pyx_clineno = 0;
40209 PyObject *__pyx_r = 0;
40210 __Pyx_RefNannyDeclarations
40211 __Pyx_RefNannySetupContext(
"getLocalNearestNode (wrapper)", 0);
40213 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_coords,&__pyx_n_s_kdtree,0};
40214 PyObject* values[3] = {0,0,0};
40215 if (unlikely(__pyx_kwds)) {
40216 Py_ssize_t kw_args;
40217 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40218 switch (pos_args) {
40219 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40220 CYTHON_FALLTHROUGH;
40221 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40222 CYTHON_FALLTHROUGH;
40223 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40224 CYTHON_FALLTHROUGH;
40226 default:
goto __pyx_L5_argtuple_error;
40228 kw_args = PyDict_Size(__pyx_kwds);
40229 switch (pos_args) {
40231 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
40232 else goto __pyx_L5_argtuple_error;
40233 CYTHON_FALLTHROUGH;
40235 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coords)) != 0)) kw_args--;
40237 __Pyx_RaiseArgtupleInvalid(
"getLocalNearestNode", 1, 3, 3, 1); __PYX_ERR(0, 1297, __pyx_L3_error)
40239 CYTHON_FALLTHROUGH;
40241 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kdtree)) != 0)) kw_args--;
40243 __Pyx_RaiseArgtupleInvalid(
"getLocalNearestNode", 1, 3, 3, 2); __PYX_ERR(0, 1297, __pyx_L3_error)
40246 if (unlikely(kw_args > 0)) {
40247 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getLocalNearestNode") < 0)) __PYX_ERR(0, 1297, __pyx_L3_error)
40249 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
40250 goto __pyx_L5_argtuple_error;
40252 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40253 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40254 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40256 __pyx_v_self = values[0];
40257 __pyx_v_coords = values[1];
40258 __pyx_v_kdtree = values[2];
40260 goto __pyx_L4_argument_unpacking_done;
40261 __pyx_L5_argtuple_error:;
40262 __Pyx_RaiseArgtupleInvalid(
"getLocalNearestNode", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1297, __pyx_L3_error)
40264 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getLocalNearestNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
40265 __Pyx_RefNannyFinishContext();
40267 __pyx_L4_argument_unpacking_done:;
40268 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_10getLocalNearestNode(__pyx_self, __pyx_v_self, __pyx_v_coords, __pyx_v_kdtree);
40271 __Pyx_RefNannyFinishContext();
40275 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_10getLocalNearestNode(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_coords, PyObject *__pyx_v_kdtree) {
40276 PyObject *__pyx_v_distance = NULL;
40277 PyObject *__pyx_v_node = NULL;
40278 PyObject *__pyx_r = NULL;
40279 __Pyx_TraceDeclarations
40280 __Pyx_RefNannyDeclarations
40281 PyObject *__pyx_t_1 = NULL;
40282 PyObject *__pyx_t_2 = NULL;
40283 PyObject *__pyx_t_3 = NULL;
40284 PyObject *__pyx_t_4 = NULL;
40285 PyObject *(*__pyx_t_5)(PyObject *);
40286 int __pyx_lineno = 0;
40287 const char *__pyx_filename = NULL;
40288 int __pyx_clineno = 0;
40289 __Pyx_TraceFrameInit(__pyx_codeobj__112)
40290 __Pyx_RefNannySetupContext(
"getLocalNearestNode", 0);
40291 __Pyx_TraceCall(
"getLocalNearestNode", __pyx_f[0], 1297, 0, __PYX_ERR(0, 1297, __pyx_L1_error));
40300 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kdtree, __pyx_n_s_query);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1314, __pyx_L1_error)
40301 __Pyx_GOTREF(__pyx_t_2);
40303 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
40304 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
40305 if (likely(__pyx_t_3)) {
40306 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
40307 __Pyx_INCREF(__pyx_t_3);
40308 __Pyx_INCREF(
function);
40309 __Pyx_DECREF_SET(__pyx_t_2,
function);
40312 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_coords) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_coords);
40313 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
40314 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1314, __pyx_L1_error)
40315 __Pyx_GOTREF(__pyx_t_1);
40316 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40317 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
40318 PyObject* sequence = __pyx_t_1;
40319 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
40320 if (unlikely(size != 2)) {
40321 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
40322 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
40323 __PYX_ERR(0, 1314, __pyx_L1_error)
40325 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
40326 if (likely(PyTuple_CheckExact(sequence))) {
40327 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
40328 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
40330 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
40331 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
40333 __Pyx_INCREF(__pyx_t_2);
40334 __Pyx_INCREF(__pyx_t_3);
40336 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1314, __pyx_L1_error)
40337 __Pyx_GOTREF(__pyx_t_2);
40338 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1314, __pyx_L1_error)
40339 __Pyx_GOTREF(__pyx_t_3);
40341 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40343 Py_ssize_t index = -1;
40344 __pyx_t_4 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1314, __pyx_L1_error)
40345 __Pyx_GOTREF(__pyx_t_4);
40346 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40347 __pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
40348 index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_4);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
40349 __Pyx_GOTREF(__pyx_t_2);
40350 index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
40351 __Pyx_GOTREF(__pyx_t_3);
40352 if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < 0) __PYX_ERR(0, 1314, __pyx_L1_error)
40354 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
40355 goto __pyx_L4_unpacking_done;
40356 __pyx_L3_unpacking_failed:;
40357 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
40359 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
40360 __PYX_ERR(0, 1314, __pyx_L1_error)
40361 __pyx_L4_unpacking_done:;
40363 __pyx_v_distance = __pyx_t_2;
40365 __pyx_v_node = __pyx_t_3;
40375 __Pyx_XDECREF(__pyx_r);
40376 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1315, __pyx_L1_error)
40377 __Pyx_GOTREF(__pyx_t_1);
40378 __Pyx_INCREF(__pyx_v_node);
40379 __Pyx_GIVEREF(__pyx_v_node);
40380 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_node);
40381 __Pyx_INCREF(__pyx_v_distance);
40382 __Pyx_GIVEREF(__pyx_v_distance);
40383 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_distance);
40384 __pyx_r = __pyx_t_1;
40398 __Pyx_XDECREF(__pyx_t_1);
40399 __Pyx_XDECREF(__pyx_t_2);
40400 __Pyx_XDECREF(__pyx_t_3);
40401 __Pyx_XDECREF(__pyx_t_4);
40402 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getLocalNearestNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
40405 __Pyx_XDECREF(__pyx_v_distance);
40406 __Pyx_XDECREF(__pyx_v_node);
40407 __Pyx_XGIVEREF(__pyx_r);
40408 __Pyx_TraceReturn(__pyx_r, 0);
40409 __Pyx_RefNannyFinishContext();
40422 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_13getLocalElement(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
40423 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_12getLocalElement[] =
"WallFunctions.getLocalElement(self, femSpace, coords, node)\n\n Given coordinates and its nearest node, determine if it is on a\n local element.\n Parameters\n ----------\n femSpace: object\n finite element space\n coords: array_like\n coordinates from which to element\n node: int\n nearest node index\n Returns\n -------\n eN: int or None\n local index of element (None if not found)\n ";
40424 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_13getLocalElement = {
"getLocalElement", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_13getLocalElement, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_12getLocalElement};
40425 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_13getLocalElement(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
40426 CYTHON_UNUSED PyObject *__pyx_v_self = 0;
40427 PyObject *__pyx_v_femSpace = 0;
40428 PyObject *__pyx_v_coords = 0;
40429 PyObject *__pyx_v_node = 0;
40430 int __pyx_lineno = 0;
40431 const char *__pyx_filename = NULL;
40432 int __pyx_clineno = 0;
40433 PyObject *__pyx_r = 0;
40434 __Pyx_RefNannyDeclarations
40435 __Pyx_RefNannySetupContext(
"getLocalElement (wrapper)", 0);
40437 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_femSpace,&__pyx_n_s_coords,&__pyx_n_s_node,0};
40438 PyObject* values[4] = {0,0,0,0};
40439 if (unlikely(__pyx_kwds)) {
40440 Py_ssize_t kw_args;
40441 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
40442 switch (pos_args) {
40443 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40444 CYTHON_FALLTHROUGH;
40445 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40446 CYTHON_FALLTHROUGH;
40447 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40448 CYTHON_FALLTHROUGH;
40449 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40450 CYTHON_FALLTHROUGH;
40452 default:
goto __pyx_L5_argtuple_error;
40454 kw_args = PyDict_Size(__pyx_kwds);
40455 switch (pos_args) {
40457 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
40458 else goto __pyx_L5_argtuple_error;
40459 CYTHON_FALLTHROUGH;
40461 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_femSpace)) != 0)) kw_args--;
40463 __Pyx_RaiseArgtupleInvalid(
"getLocalElement", 1, 4, 4, 1); __PYX_ERR(0, 1317, __pyx_L3_error)
40465 CYTHON_FALLTHROUGH;
40467 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coords)) != 0)) kw_args--;
40469 __Pyx_RaiseArgtupleInvalid(
"getLocalElement", 1, 4, 4, 2); __PYX_ERR(0, 1317, __pyx_L3_error)
40471 CYTHON_FALLTHROUGH;
40473 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_node)) != 0)) kw_args--;
40475 __Pyx_RaiseArgtupleInvalid(
"getLocalElement", 1, 4, 4, 3); __PYX_ERR(0, 1317, __pyx_L3_error)
40478 if (unlikely(kw_args > 0)) {
40479 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getLocalElement") < 0)) __PYX_ERR(0, 1317, __pyx_L3_error)
40481 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
40482 goto __pyx_L5_argtuple_error;
40484 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
40485 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
40486 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
40487 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
40489 __pyx_v_self = values[0];
40490 __pyx_v_femSpace = values[1];
40491 __pyx_v_coords = values[2];
40492 __pyx_v_node = values[3];
40494 goto __pyx_L4_argument_unpacking_done;
40495 __pyx_L5_argtuple_error:;
40496 __Pyx_RaiseArgtupleInvalid(
"getLocalElement", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1317, __pyx_L3_error)
40498 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getLocalElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
40499 __Pyx_RefNannyFinishContext();
40501 __pyx_L4_argument_unpacking_done:;
40502 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_12getLocalElement(__pyx_self, __pyx_v_self, __pyx_v_femSpace, __pyx_v_coords, __pyx_v_node);
40505 __Pyx_RefNannyFinishContext();
40509 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_12getLocalElement(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_femSpace, PyObject *__pyx_v_coords, PyObject *__pyx_v_node) {
40510 PyObject *__pyx_v_patchBoundaryNodes = NULL;
40511 PyObject *__pyx_v_checkedElements = NULL;
40512 CYTHON_UNUSED PyObject *__pyx_v_statem1 = NULL;
40513 PyObject *__pyx_v_eOffset = NULL;
40514 PyObject *__pyx_v_eN = NULL;
40515 PyObject *__pyx_v_xi = NULL;
40516 PyObject *__pyx_r = NULL;
40517 __Pyx_TraceDeclarations
40518 __Pyx_RefNannyDeclarations
40519 PyObject *__pyx_t_1 = NULL;
40520 PyObject *__pyx_t_2 = NULL;
40521 PyObject *__pyx_t_3 = NULL;
40522 Py_ssize_t __pyx_t_4;
40523 PyObject *__pyx_t_5 = NULL;
40524 PyObject *__pyx_t_6 = NULL;
40525 PyObject *__pyx_t_7 = NULL;
40527 PyObject *(*__pyx_t_9)(PyObject *);
40530 Py_ssize_t __pyx_t_12;
40532 PyObject *__pyx_t_14 = NULL;
40533 Py_ssize_t __pyx_t_15;
40535 int __pyx_lineno = 0;
40536 const char *__pyx_filename = NULL;
40537 int __pyx_clineno = 0;
40538 __Pyx_TraceFrameInit(__pyx_codeobj__113)
40539 __Pyx_RefNannySetupContext(
"getLocalElement", 0);
40540 __Pyx_TraceCall(
"getLocalElement", __pyx_f[0], 1317, 0, __PYX_ERR(0, 1317, __pyx_L1_error));
40541 __Pyx_INCREF(__pyx_v_node);
40550 __pyx_t_1 = PySet_New(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1334, __pyx_L1_error)
40551 __Pyx_GOTREF(__pyx_t_1);
40552 __pyx_v_patchBoundaryNodes = ((PyObject*)__pyx_t_1);
40562 __pyx_t_1 = PyList_New(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1335, __pyx_L1_error)
40563 __Pyx_GOTREF(__pyx_t_1);
40564 __pyx_v_checkedElements = ((PyObject*)__pyx_t_1);
40574 __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_node, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1337, __pyx_L1_error)
40575 __Pyx_GOTREF(__pyx_t_1);
40576 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1337, __pyx_L1_error)
40577 __Pyx_GOTREF(__pyx_t_2);
40578 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1337, __pyx_L1_error)
40579 __Pyx_GOTREF(__pyx_t_3);
40580 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40581 __pyx_t_4 = PyObject_Length(__pyx_t_3);
if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1337, __pyx_L1_error)
40582 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
40583 __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1337, __pyx_L1_error)
40584 __Pyx_GOTREF(__pyx_t_3);
40585 __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1337, __pyx_L1_error)
40586 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40587 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
40588 __pyx_v_statem1 = __pyx_t_2;
40598 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_range);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1338, __pyx_L1_error)
40599 __Pyx_GOTREF(__pyx_t_3);
40600 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1338, __pyx_L1_error)
40601 __Pyx_GOTREF(__pyx_t_1);
40602 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1338, __pyx_L1_error)
40603 __Pyx_GOTREF(__pyx_t_5);
40604 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40605 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_v_node);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1338, __pyx_L1_error)
40606 __Pyx_GOTREF(__pyx_t_1);
40607 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
40608 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1338, __pyx_L1_error)
40609 __Pyx_GOTREF(__pyx_t_5);
40610 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1338, __pyx_L1_error)
40611 __Pyx_GOTREF(__pyx_t_6);
40612 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
40613 __pyx_t_5 = __Pyx_PyInt_AddObjC(__pyx_v_node, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1338, __pyx_L1_error)
40614 __Pyx_GOTREF(__pyx_t_5);
40615 __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1338, __pyx_L1_error)
40616 __Pyx_GOTREF(__pyx_t_7);
40617 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40618 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
40621 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
40622 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
40623 if (likely(__pyx_t_5)) {
40624 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
40625 __Pyx_INCREF(__pyx_t_5);
40626 __Pyx_INCREF(
function);
40627 __Pyx_DECREF_SET(__pyx_t_3,
function);
40631 #if CYTHON_FAST_PYCALL
40632 if (PyFunction_Check(__pyx_t_3)) {
40633 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_t_7};
40634 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
40635 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
40636 __Pyx_GOTREF(__pyx_t_2);
40637 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40638 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40641 #if CYTHON_FAST_PYCCALL
40642 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
40643 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_t_7};
40644 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
40645 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
40646 __Pyx_GOTREF(__pyx_t_2);
40647 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40648 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40652 __pyx_t_6 = PyTuple_New(2+__pyx_t_8);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1338, __pyx_L1_error)
40653 __Pyx_GOTREF(__pyx_t_6);
40655 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
40657 __Pyx_GIVEREF(__pyx_t_1);
40658 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_8, __pyx_t_1);
40659 __Pyx_GIVEREF(__pyx_t_7);
40660 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_8, __pyx_t_7);
40663 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
40664 __Pyx_GOTREF(__pyx_t_2);
40665 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40667 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
40668 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
40669 __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
40672 __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1338, __pyx_L1_error)
40673 __Pyx_GOTREF(__pyx_t_3);
40674 __pyx_t_9 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1338, __pyx_L1_error)
40676 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40678 if (likely(!__pyx_t_9)) {
40679 if (likely(PyList_CheckExact(__pyx_t_3))) {
40680 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3))
break;
40681 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
40682 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1338, __pyx_L1_error)
40684 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
40685 __Pyx_GOTREF(__pyx_t_2);
40688 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
40689 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
40690 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1338, __pyx_L1_error)
40692 __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
40693 __Pyx_GOTREF(__pyx_t_2);
40697 __pyx_t_2 = __pyx_t_9(__pyx_t_3);
40698 if (unlikely(!__pyx_t_2)) {
40699 PyObject* exc_type = PyErr_Occurred();
40701 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
40702 else __PYX_ERR(0, 1338, __pyx_L1_error)
40706 __Pyx_GOTREF(__pyx_t_2);
40708 __Pyx_XDECREF_SET(__pyx_v_eOffset, __pyx_t_2);
40718 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
40719 __Pyx_GOTREF(__pyx_t_2);
40720 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nodeElementsArray);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1339, __pyx_L1_error)
40721 __Pyx_GOTREF(__pyx_t_6);
40722 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40723 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_eOffset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
40724 __Pyx_GOTREF(__pyx_t_2);
40725 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40726 __Pyx_XDECREF_SET(__pyx_v_eN, __pyx_t_2);
40736 __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_checkedElements, __pyx_v_eN);
if (unlikely(__pyx_t_10 == ((
int)-1))) __PYX_ERR(0, 1340, __pyx_L1_error)
40745 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1342, __pyx_L1_error)
40746 __Pyx_GOTREF(__pyx_t_2);
40747 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_elementNodesArray);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1342, __pyx_L1_error)
40748 __Pyx_GOTREF(__pyx_t_6);
40749 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40750 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_eN);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1342, __pyx_L1_error)
40751 __Pyx_GOTREF(__pyx_t_2);
40752 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40753 __pyx_t_6 = PySet_New(__pyx_t_2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1342, __pyx_L1_error)
40754 __Pyx_GOTREF(__pyx_t_6);
40755 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40756 __pyx_t_2 = PyNumber_InPlaceOr(__pyx_v_patchBoundaryNodes, __pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1342, __pyx_L1_error)
40757 __Pyx_GOTREF(__pyx_t_2);
40758 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40759 __Pyx_DECREF_SET(__pyx_v_patchBoundaryNodes, ((PyObject*)__pyx_t_2));
40769 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1344, __pyx_L1_error)
40770 __Pyx_GOTREF(__pyx_t_6);
40771 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_getInverseValue);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1344, __pyx_L1_error)
40772 __Pyx_GOTREF(__pyx_t_7);
40773 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40776 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
40777 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
40778 if (likely(__pyx_t_6)) {
40779 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
40780 __Pyx_INCREF(__pyx_t_6);
40781 __Pyx_INCREF(
function);
40782 __Pyx_DECREF_SET(__pyx_t_7,
function);
40786 #if CYTHON_FAST_PYCALL
40787 if (PyFunction_Check(__pyx_t_7)) {
40788 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_eN, __pyx_v_coords};
40789 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1344, __pyx_L1_error)
40790 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
40791 __Pyx_GOTREF(__pyx_t_2);
40794 #if CYTHON_FAST_PYCCALL
40795 if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
40796 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_eN, __pyx_v_coords};
40797 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1344, __pyx_L1_error)
40798 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
40799 __Pyx_GOTREF(__pyx_t_2);
40803 __pyx_t_1 = PyTuple_New(2+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1344, __pyx_L1_error)
40804 __Pyx_GOTREF(__pyx_t_1);
40806 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6); __pyx_t_6 = NULL;
40808 __Pyx_INCREF(__pyx_v_eN);
40809 __Pyx_GIVEREF(__pyx_v_eN);
40810 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_8, __pyx_v_eN);
40811 __Pyx_INCREF(__pyx_v_coords);
40812 __Pyx_GIVEREF(__pyx_v_coords);
40813 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_8, __pyx_v_coords);
40814 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1344, __pyx_L1_error)
40815 __Pyx_GOTREF(__pyx_t_2);
40816 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40818 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40819 __Pyx_XDECREF_SET(__pyx_v_xi, __pyx_t_2);
40829 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1347, __pyx_L1_error)
40830 __Pyx_GOTREF(__pyx_t_7);
40831 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_referenceElement);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1347, __pyx_L1_error)
40832 __Pyx_GOTREF(__pyx_t_1);
40833 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40834 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_onElement);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1347, __pyx_L1_error)
40835 __Pyx_GOTREF(__pyx_t_7);
40836 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40838 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
40839 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7);
40840 if (likely(__pyx_t_1)) {
40841 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
40842 __Pyx_INCREF(__pyx_t_1);
40843 __Pyx_INCREF(
function);
40844 __Pyx_DECREF_SET(__pyx_t_7,
function);
40847 __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_1, __pyx_v_xi) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_xi);
40848 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
40849 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1347, __pyx_L1_error)
40850 __Pyx_GOTREF(__pyx_t_2);
40851 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40852 __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1347, __pyx_L1_error)
40853 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40863 __Pyx_XDECREF(__pyx_r);
40864 __Pyx_INCREF(__pyx_v_eN);
40865 __pyx_r = __pyx_v_eN;
40866 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
40886 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
40896 __pyx_t_2 = __Pyx_set_iterator(__pyx_v_patchBoundaryNodes, 1, (&__pyx_t_12), (&__pyx_t_8));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1350, __pyx_L1_error)
40897 __Pyx_GOTREF(__pyx_t_2);
40898 __Pyx_XDECREF(__pyx_t_3);
40899 __pyx_t_3 = __pyx_t_2;
40902 __pyx_t_13 = __Pyx_set_iter_next(__pyx_t_3, __pyx_t_12, &__pyx_t_4, &__pyx_t_2, __pyx_t_8);
40903 if (unlikely(__pyx_t_13 == 0))
break;
40904 if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(0, 1350, __pyx_L1_error)
40905 __Pyx_GOTREF(__pyx_t_2);
40906 __Pyx_DECREF_SET(__pyx_v_node, __pyx_t_2);
40916 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_range);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1351, __pyx_L1_error)
40917 __Pyx_GOTREF(__pyx_t_7);
40918 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
40919 __Pyx_GOTREF(__pyx_t_1);
40920 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1351, __pyx_L1_error)
40921 __Pyx_GOTREF(__pyx_t_6);
40922 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40923 __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_node);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
40924 __Pyx_GOTREF(__pyx_t_1);
40925 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40926 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1351, __pyx_L1_error)
40927 __Pyx_GOTREF(__pyx_t_6);
40928 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1351, __pyx_L1_error)
40929 __Pyx_GOTREF(__pyx_t_5);
40930 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40931 __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_node, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1351, __pyx_L1_error)
40932 __Pyx_GOTREF(__pyx_t_6);
40933 __pyx_t_14 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1351, __pyx_L1_error)
40934 __Pyx_GOTREF(__pyx_t_14);
40935 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
40936 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
40939 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
40940 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
40941 if (likely(__pyx_t_6)) {
40942 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
40943 __Pyx_INCREF(__pyx_t_6);
40944 __Pyx_INCREF(
function);
40945 __Pyx_DECREF_SET(__pyx_t_7,
function);
40949 #if CYTHON_FAST_PYCALL
40950 if (PyFunction_Check(__pyx_t_7)) {
40951 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_1, __pyx_t_14};
40952 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
40953 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
40954 __Pyx_GOTREF(__pyx_t_2);
40955 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40956 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
40959 #if CYTHON_FAST_PYCCALL
40960 if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
40961 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_t_1, __pyx_t_14};
40962 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
40963 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
40964 __Pyx_GOTREF(__pyx_t_2);
40965 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
40966 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
40970 __pyx_t_5 = PyTuple_New(2+__pyx_t_13);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1351, __pyx_L1_error)
40971 __Pyx_GOTREF(__pyx_t_5);
40973 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL;
40975 __Pyx_GIVEREF(__pyx_t_1);
40976 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_13, __pyx_t_1);
40977 __Pyx_GIVEREF(__pyx_t_14);
40978 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_13, __pyx_t_14);
40981 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
40982 __Pyx_GOTREF(__pyx_t_2);
40983 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
40985 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
40986 if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
40987 __pyx_t_7 = __pyx_t_2; __Pyx_INCREF(__pyx_t_7); __pyx_t_15 = 0;
40990 __pyx_t_15 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1351, __pyx_L1_error)
40991 __Pyx_GOTREF(__pyx_t_7);
40992 __pyx_t_9 = Py_TYPE(__pyx_t_7)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1351, __pyx_L1_error)
40994 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
40996 if (likely(!__pyx_t_9)) {
40997 if (likely(PyList_CheckExact(__pyx_t_7))) {
40998 if (__pyx_t_15 >= PyList_GET_SIZE(__pyx_t_7))
break;
40999 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
41000 __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_15); __Pyx_INCREF(__pyx_t_2); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1351, __pyx_L1_error)
41002 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
41003 __Pyx_GOTREF(__pyx_t_2);
41006 if (__pyx_t_15 >= PyTuple_GET_SIZE(__pyx_t_7))
break;
41007 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
41008 __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_15); __Pyx_INCREF(__pyx_t_2); __pyx_t_15++;
if (unlikely(0 < 0)) __PYX_ERR(0, 1351, __pyx_L1_error)
41010 __pyx_t_2 = PySequence_ITEM(__pyx_t_7, __pyx_t_15); __pyx_t_15++;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
41011 __Pyx_GOTREF(__pyx_t_2);
41015 __pyx_t_2 = __pyx_t_9(__pyx_t_7);
41016 if (unlikely(!__pyx_t_2)) {
41017 PyObject* exc_type = PyErr_Occurred();
41019 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
41020 else __PYX_ERR(0, 1351, __pyx_L1_error)
41024 __Pyx_GOTREF(__pyx_t_2);
41026 __Pyx_XDECREF_SET(__pyx_v_eOffset, __pyx_t_2);
41036 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error)
41037 __Pyx_GOTREF(__pyx_t_2);
41038 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nodeElementsArray);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1352, __pyx_L1_error)
41039 __Pyx_GOTREF(__pyx_t_5);
41040 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41041 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_v_eOffset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error)
41042 __Pyx_GOTREF(__pyx_t_2);
41043 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
41044 __Pyx_XDECREF_SET(__pyx_v_eN, __pyx_t_2);
41054 __pyx_t_11 = (__Pyx_PySequence_ContainsTF(__pyx_v_eN, __pyx_v_checkedElements, Py_NE));
if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1353, __pyx_L1_error)
41055 __pyx_t_16 = (__pyx_t_11 != 0);
41065 __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_checkedElements, __pyx_v_eN);
if (unlikely(__pyx_t_10 == ((
int)-1))) __PYX_ERR(0, 1354, __pyx_L1_error)
41074 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1356, __pyx_L1_error)
41075 __Pyx_GOTREF(__pyx_t_5);
41076 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getInverseValue);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1356, __pyx_L1_error)
41077 __Pyx_GOTREF(__pyx_t_14);
41078 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
41081 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
41082 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_14);
41083 if (likely(__pyx_t_5)) {
41084 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_14);
41085 __Pyx_INCREF(__pyx_t_5);
41086 __Pyx_INCREF(
function);
41087 __Pyx_DECREF_SET(__pyx_t_14,
function);
41091 #if CYTHON_FAST_PYCALL
41092 if (PyFunction_Check(__pyx_t_14)) {
41093 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_eN, __pyx_v_coords};
41094 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
41095 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
41096 __Pyx_GOTREF(__pyx_t_2);
41099 #if CYTHON_FAST_PYCCALL
41100 if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
41101 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_eN, __pyx_v_coords};
41102 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
41103 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
41104 __Pyx_GOTREF(__pyx_t_2);
41108 __pyx_t_1 = PyTuple_New(2+__pyx_t_13);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1356, __pyx_L1_error)
41109 __Pyx_GOTREF(__pyx_t_1);
41111 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL;
41113 __Pyx_INCREF(__pyx_v_eN);
41114 __Pyx_GIVEREF(__pyx_v_eN);
41115 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_13, __pyx_v_eN);
41116 __Pyx_INCREF(__pyx_v_coords);
41117 __Pyx_GIVEREF(__pyx_v_coords);
41118 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_13, __pyx_v_coords);
41119 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_1, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
41120 __Pyx_GOTREF(__pyx_t_2);
41121 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41123 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
41124 __Pyx_XDECREF_SET(__pyx_v_xi, __pyx_t_2);
41134 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_femSpace, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1358, __pyx_L1_error)
41135 __Pyx_GOTREF(__pyx_t_14);
41136 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_n_s_referenceElement);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1358, __pyx_L1_error)
41137 __Pyx_GOTREF(__pyx_t_1);
41138 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
41139 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_onElement);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1358, __pyx_L1_error)
41140 __Pyx_GOTREF(__pyx_t_14);
41141 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41143 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
41144 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_14);
41145 if (likely(__pyx_t_1)) {
41146 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_14);
41147 __Pyx_INCREF(__pyx_t_1);
41148 __Pyx_INCREF(
function);
41149 __Pyx_DECREF_SET(__pyx_t_14,
function);
41152 __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_14, __pyx_t_1, __pyx_v_xi) : __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_v_xi);
41153 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
41154 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1358, __pyx_L1_error)
41155 __Pyx_GOTREF(__pyx_t_2);
41156 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
41157 __pyx_t_16 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_16 < 0)) __PYX_ERR(0, 1358, __pyx_L1_error)
41158 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41168 __Pyx_XDECREF(__pyx_r);
41169 __Pyx_INCREF(__pyx_v_eN);
41170 __pyx_r = __pyx_v_eN;
41171 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41172 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
41201 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
41203 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41212 __Pyx_XDECREF(__pyx_r);
41213 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
41226 __Pyx_XDECREF(__pyx_t_1);
41227 __Pyx_XDECREF(__pyx_t_2);
41228 __Pyx_XDECREF(__pyx_t_3);
41229 __Pyx_XDECREF(__pyx_t_5);
41230 __Pyx_XDECREF(__pyx_t_6);
41231 __Pyx_XDECREF(__pyx_t_7);
41232 __Pyx_XDECREF(__pyx_t_14);
41233 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getLocalElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
41236 __Pyx_XDECREF(__pyx_v_patchBoundaryNodes);
41237 __Pyx_XDECREF(__pyx_v_checkedElements);
41238 __Pyx_XDECREF(__pyx_v_statem1);
41239 __Pyx_XDECREF(__pyx_v_eOffset);
41240 __Pyx_XDECREF(__pyx_v_eN);
41241 __Pyx_XDECREF(__pyx_v_xi);
41242 __Pyx_XDECREF(__pyx_v_node);
41243 __Pyx_XGIVEREF(__pyx_r);
41244 __Pyx_TraceReturn(__pyx_r, 0);
41245 __Pyx_RefNannyFinishContext();
41258 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_15findElementContainingCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41259 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_14findElementContainingCoords[] =
"WallFunctions.findElementContainingCoords(self, coords)\n\n Given global coordinates of a point, returns\n local coordinates and the owner of the point.\n\n Parameters\n ----------\n coords: array_like\n global coordinates to look for\n Returns\n -------\n xi:\n local coordinates\n eN: int\n (local) element number\n rank: int\n processor rank containing element\n ";
41260 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_15findElementContainingCoords = {
"findElementContainingCoords", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_15findElementContainingCoords, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_14findElementContainingCoords};
41261 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_15findElementContainingCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41262 PyObject *__pyx_v_self = 0;
41263 PyObject *__pyx_v_coords = 0;
41264 int __pyx_lineno = 0;
41265 const char *__pyx_filename = NULL;
41266 int __pyx_clineno = 0;
41267 PyObject *__pyx_r = 0;
41268 __Pyx_RefNannyDeclarations
41269 __Pyx_RefNannySetupContext(
"findElementContainingCoords (wrapper)", 0);
41271 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_coords,0};
41272 PyObject* values[2] = {0,0};
41273 if (unlikely(__pyx_kwds)) {
41274 Py_ssize_t kw_args;
41275 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41276 switch (pos_args) {
41277 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41278 CYTHON_FALLTHROUGH;
41279 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41280 CYTHON_FALLTHROUGH;
41282 default:
goto __pyx_L5_argtuple_error;
41284 kw_args = PyDict_Size(__pyx_kwds);
41285 switch (pos_args) {
41287 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
41288 else goto __pyx_L5_argtuple_error;
41289 CYTHON_FALLTHROUGH;
41291 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coords)) != 0)) kw_args--;
41293 __Pyx_RaiseArgtupleInvalid(
"findElementContainingCoords", 1, 2, 2, 1); __PYX_ERR(0, 1363, __pyx_L3_error)
41296 if (unlikely(kw_args > 0)) {
41297 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"findElementContainingCoords") < 0)) __PYX_ERR(0, 1363, __pyx_L3_error)
41299 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
41300 goto __pyx_L5_argtuple_error;
41302 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41303 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41305 __pyx_v_self = values[0];
41306 __pyx_v_coords = values[1];
41308 goto __pyx_L4_argument_unpacking_done;
41309 __pyx_L5_argtuple_error:;
41310 __Pyx_RaiseArgtupleInvalid(
"findElementContainingCoords", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1363, __pyx_L3_error)
41312 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.findElementContainingCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
41313 __Pyx_RefNannyFinishContext();
41315 __pyx_L4_argument_unpacking_done:;
41316 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_14findElementContainingCoords(__pyx_self, __pyx_v_self, __pyx_v_coords);
41319 __Pyx_RefNannyFinishContext();
41323 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_14findElementContainingCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_coords) {
41324 PyObject *__pyx_v_comm = NULL;
41325 PyObject *__pyx_v_xi = NULL;
41326 CYTHON_UNUSED PyObject *__pyx_v_owning_proc = NULL;
41327 PyObject *__pyx_v_element = NULL;
41328 PyObject *__pyx_v_rank = NULL;
41329 PyObject *__pyx_v_nodes_kdtree = NULL;
41330 PyObject *__pyx_v_nearest_node = NULL;
41331 CYTHON_UNUSED PyObject *__pyx_v_nearest_node_distance = NULL;
41332 PyObject *__pyx_v_local_element = NULL;
41333 PyObject *__pyx_r = NULL;
41334 __Pyx_TraceDeclarations
41335 __Pyx_RefNannyDeclarations
41336 PyObject *__pyx_t_1 = NULL;
41337 PyObject *__pyx_t_2 = NULL;
41338 PyObject *__pyx_t_3 = NULL;
41339 PyObject *__pyx_t_4 = NULL;
41341 PyObject *(*__pyx_t_6)(PyObject *);
41342 PyObject *__pyx_t_7 = NULL;
41344 int __pyx_lineno = 0;
41345 const char *__pyx_filename = NULL;
41346 int __pyx_clineno = 0;
41347 __Pyx_TraceFrameInit(__pyx_codeobj__114)
41348 __Pyx_RefNannySetupContext(
"findElementContainingCoords", 0);
41349 __Pyx_TraceCall(
"findElementContainingCoords", __pyx_f[0], 1363, 0, __PYX_ERR(0, 1363, __pyx_L1_error));
41358 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1381, __pyx_L1_error)
41359 __Pyx_GOTREF(__pyx_t_3);
41360 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_get);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1381, __pyx_L1_error)
41361 __Pyx_GOTREF(__pyx_t_4);
41362 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41364 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
41365 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
41366 if (likely(__pyx_t_3)) {
41367 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
41368 __Pyx_INCREF(__pyx_t_3);
41369 __Pyx_INCREF(
function);
41370 __Pyx_DECREF_SET(__pyx_t_4,
function);
41373 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
41374 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
41375 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1381, __pyx_L1_error)
41376 __Pyx_GOTREF(__pyx_t_2);
41377 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41378 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_comm);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1381, __pyx_L1_error)
41379 __Pyx_GOTREF(__pyx_t_4);
41380 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41381 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_tompi4py);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1381, __pyx_L1_error)
41382 __Pyx_GOTREF(__pyx_t_2);
41383 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41385 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
41386 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
41387 if (likely(__pyx_t_4)) {
41388 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
41389 __Pyx_INCREF(__pyx_t_4);
41390 __Pyx_INCREF(
function);
41391 __Pyx_DECREF_SET(__pyx_t_2,
function);
41394 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
41395 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
41396 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1381, __pyx_L1_error)
41397 __Pyx_GOTREF(__pyx_t_1);
41398 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41399 __pyx_v_comm = __pyx_t_1;
41409 __Pyx_INCREF(Py_None);
41410 __pyx_v_xi = Py_None;
41411 __Pyx_INCREF(Py_None);
41412 __pyx_v_owning_proc = Py_None;
41413 __Pyx_INCREF(Py_None);
41414 __pyx_v_element = Py_None;
41415 __Pyx_INCREF(Py_None);
41416 __pyx_v_rank = Py_None;
41425 __pyx_t_1 = __pyx_v_xi;
41426 __Pyx_INCREF(__pyx_t_1);
41427 __pyx_t_2 = __pyx_v_element;
41428 __Pyx_INCREF(__pyx_t_2);
41429 __pyx_t_4 = __pyx_v_rank;
41430 __Pyx_INCREF(__pyx_t_4);
41431 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_xi, __pyx_t_1) < 0) __PYX_ERR(0, 1383, __pyx_L1_error)
41432 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41433 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_element, __pyx_t_2) < 0) __PYX_ERR(0, 1383, __pyx_L1_error)
41434 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41435 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rank, __pyx_t_4) < 0) __PYX_ERR(0, 1383, __pyx_L1_error)
41436 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41445 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_model);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1386, __pyx_L1_error)
41446 __Pyx_GOTREF(__pyx_t_4);
41447 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1386, __pyx_L1_error)
41448 __Pyx_GOTREF(__pyx_t_2);
41449 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41450 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1386, __pyx_L1_error)
41451 __Pyx_GOTREF(__pyx_t_4);
41452 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41453 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_u);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1386, __pyx_L1_error)
41454 __Pyx_GOTREF(__pyx_t_2);
41455 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41456 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_u, __pyx_t_2) < 0) __PYX_ERR(0, 1386, __pyx_L1_error)
41457 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41466 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_u);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1387, __pyx_L1_error)
41467 __Pyx_GOTREF(__pyx_t_2);
41468 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1387, __pyx_L1_error)
41469 __Pyx_GOTREF(__pyx_t_4);
41470 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41471 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_femSpace);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1387, __pyx_L1_error)
41472 __Pyx_GOTREF(__pyx_t_2);
41473 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41474 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_femSpace_velocity, __pyx_t_2) < 0) __PYX_ERR(0, 1387, __pyx_L1_error)
41475 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41484 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_spatial);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1388, __pyx_L1_error)
41485 __Pyx_GOTREF(__pyx_t_4);
41486 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_cKDTree);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1388, __pyx_L1_error)
41487 __Pyx_GOTREF(__pyx_t_1);
41488 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41489 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_model);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1388, __pyx_L1_error)
41490 __Pyx_GOTREF(__pyx_t_4);
41491 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1388, __pyx_L1_error)
41492 __Pyx_GOTREF(__pyx_t_3);
41493 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41494 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_3, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1388, __pyx_L1_error)
41495 __Pyx_GOTREF(__pyx_t_4);
41496 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41497 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_mesh);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1388, __pyx_L1_error)
41498 __Pyx_GOTREF(__pyx_t_3);
41499 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41500 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_nodeArray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1388, __pyx_L1_error)
41501 __Pyx_GOTREF(__pyx_t_4);
41502 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41504 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
41505 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
41506 if (likely(__pyx_t_3)) {
41507 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
41508 __Pyx_INCREF(__pyx_t_3);
41509 __Pyx_INCREF(
function);
41510 __Pyx_DECREF_SET(__pyx_t_1,
function);
41513 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4);
41514 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
41515 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41516 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1388, __pyx_L1_error)
41517 __Pyx_GOTREF(__pyx_t_2);
41518 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41519 __pyx_v_nodes_kdtree = __pyx_t_2;
41529 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getLocalNearestNode);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1389, __pyx_L1_error)
41530 __Pyx_GOTREF(__pyx_t_1);
41533 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
41534 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
41535 if (likely(__pyx_t_4)) {
41536 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
41537 __Pyx_INCREF(__pyx_t_4);
41538 __Pyx_INCREF(
function);
41539 __Pyx_DECREF_SET(__pyx_t_1,
function);
41543 #if CYTHON_FAST_PYCALL
41544 if (PyFunction_Check(__pyx_t_1)) {
41545 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_coords, __pyx_v_nodes_kdtree};
41546 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1389, __pyx_L1_error)
41547 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
41548 __Pyx_GOTREF(__pyx_t_2);
41551 #if CYTHON_FAST_PYCCALL
41552 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
41553 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_coords, __pyx_v_nodes_kdtree};
41554 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1389, __pyx_L1_error)
41555 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
41556 __Pyx_GOTREF(__pyx_t_2);
41560 __pyx_t_3 = PyTuple_New(2+__pyx_t_5);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1389, __pyx_L1_error)
41561 __Pyx_GOTREF(__pyx_t_3);
41563 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
41565 __Pyx_INCREF(__pyx_v_coords);
41566 __Pyx_GIVEREF(__pyx_v_coords);
41567 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_5, __pyx_v_coords);
41568 __Pyx_INCREF(__pyx_v_nodes_kdtree);
41569 __Pyx_GIVEREF(__pyx_v_nodes_kdtree);
41570 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_5, __pyx_v_nodes_kdtree);
41571 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1389, __pyx_L1_error)
41572 __Pyx_GOTREF(__pyx_t_2);
41573 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41575 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41576 if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
41577 PyObject* sequence = __pyx_t_2;
41578 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
41579 if (unlikely(size != 2)) {
41580 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
41581 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
41582 __PYX_ERR(0, 1389, __pyx_L1_error)
41584 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
41585 if (likely(PyTuple_CheckExact(sequence))) {
41586 __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
41587 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
41589 __pyx_t_1 = PyList_GET_ITEM(sequence, 0);
41590 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
41592 __Pyx_INCREF(__pyx_t_1);
41593 __Pyx_INCREF(__pyx_t_3);
41595 __pyx_t_1 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1389, __pyx_L1_error)
41596 __Pyx_GOTREF(__pyx_t_1);
41597 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1389, __pyx_L1_error)
41598 __Pyx_GOTREF(__pyx_t_3);
41600 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41602 Py_ssize_t index = -1;
41603 __pyx_t_4 = PyObject_GetIter(__pyx_t_2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1389, __pyx_L1_error)
41604 __Pyx_GOTREF(__pyx_t_4);
41605 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
41606 __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext;
41607 index = 0; __pyx_t_1 = __pyx_t_6(__pyx_t_4);
if (unlikely(!__pyx_t_1))
goto __pyx_L3_unpacking_failed;
41608 __Pyx_GOTREF(__pyx_t_1);
41609 index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_4);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
41610 __Pyx_GOTREF(__pyx_t_3);
41611 if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_4), 2) < 0) __PYX_ERR(0, 1389, __pyx_L1_error)
41613 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41614 goto __pyx_L4_unpacking_done;
41615 __pyx_L3_unpacking_failed:;
41616 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
41618 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
41619 __PYX_ERR(0, 1389, __pyx_L1_error)
41620 __pyx_L4_unpacking_done:;
41622 __pyx_v_nearest_node = __pyx_t_1;
41624 __pyx_v_nearest_node_distance = __pyx_t_3;
41634 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getLocalElement);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1391, __pyx_L1_error)
41635 __Pyx_GOTREF(__pyx_t_3);
41636 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_femSpace_velocity);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1391, __pyx_L1_error)
41637 __Pyx_GOTREF(__pyx_t_1);
41640 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
41641 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
41642 if (likely(__pyx_t_4)) {
41643 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
41644 __Pyx_INCREF(__pyx_t_4);
41645 __Pyx_INCREF(
function);
41646 __Pyx_DECREF_SET(__pyx_t_3,
function);
41650 #if CYTHON_FAST_PYCALL
41651 if (PyFunction_Check(__pyx_t_3)) {
41652 PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_t_1, __pyx_v_coords, __pyx_v_nearest_node};
41653 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 3+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1391, __pyx_L1_error)
41654 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
41655 __Pyx_GOTREF(__pyx_t_2);
41656 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41659 #if CYTHON_FAST_PYCCALL
41660 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
41661 PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_t_1, __pyx_v_coords, __pyx_v_nearest_node};
41662 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 3+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1391, __pyx_L1_error)
41663 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
41664 __Pyx_GOTREF(__pyx_t_2);
41665 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41669 __pyx_t_7 = PyTuple_New(3+__pyx_t_5);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1391, __pyx_L1_error)
41670 __Pyx_GOTREF(__pyx_t_7);
41672 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
41674 __Pyx_GIVEREF(__pyx_t_1);
41675 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_5, __pyx_t_1);
41676 __Pyx_INCREF(__pyx_v_coords);
41677 __Pyx_GIVEREF(__pyx_v_coords);
41678 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_5, __pyx_v_coords);
41679 __Pyx_INCREF(__pyx_v_nearest_node);
41680 __Pyx_GIVEREF(__pyx_v_nearest_node);
41681 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_5, __pyx_v_nearest_node);
41683 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1391, __pyx_L1_error)
41684 __Pyx_GOTREF(__pyx_t_2);
41685 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
41687 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41688 __pyx_v_local_element = __pyx_t_2;
41698 __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_local_element);
if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1392, __pyx_L1_error)
41708 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_femSpace_velocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1393, __pyx_L1_error)
41709 __Pyx_GOTREF(__pyx_t_3);
41710 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1393, __pyx_L1_error)
41711 __Pyx_GOTREF(__pyx_t_7);
41712 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41713 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_getInverseValue);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1393, __pyx_L1_error)
41714 __Pyx_GOTREF(__pyx_t_3);
41715 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
41718 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
41719 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
41720 if (likely(__pyx_t_7)) {
41721 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
41722 __Pyx_INCREF(__pyx_t_7);
41723 __Pyx_INCREF(
function);
41724 __Pyx_DECREF_SET(__pyx_t_3,
function);
41728 #if CYTHON_FAST_PYCALL
41729 if (PyFunction_Check(__pyx_t_3)) {
41730 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_local_element, __pyx_v_coords};
41731 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1393, __pyx_L1_error)
41732 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
41733 __Pyx_GOTREF(__pyx_t_2);
41736 #if CYTHON_FAST_PYCCALL
41737 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
41738 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_local_element, __pyx_v_coords};
41739 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1393, __pyx_L1_error)
41740 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
41741 __Pyx_GOTREF(__pyx_t_2);
41745 __pyx_t_1 = PyTuple_New(2+__pyx_t_5);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1393, __pyx_L1_error)
41746 __Pyx_GOTREF(__pyx_t_1);
41748 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); __pyx_t_7 = NULL;
41750 __Pyx_INCREF(__pyx_v_local_element);
41751 __Pyx_GIVEREF(__pyx_v_local_element);
41752 PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_5, __pyx_v_local_element);
41753 __Pyx_INCREF(__pyx_v_coords);
41754 __Pyx_GIVEREF(__pyx_v_coords);
41755 PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_5, __pyx_v_coords);
41756 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1393, __pyx_L1_error)
41757 __Pyx_GOTREF(__pyx_t_2);
41758 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
41760 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41761 __Pyx_DECREF_SET(__pyx_v_xi, __pyx_t_2);
41771 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_comm, __pyx_n_s_rank);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1394, __pyx_L1_error)
41772 __Pyx_GOTREF(__pyx_t_2);
41773 __Pyx_DECREF_SET(__pyx_v_rank, __pyx_t_2);
41794 __Pyx_INCREF(Py_None);
41795 __Pyx_DECREF_SET(__pyx_v_xi, Py_None);
41804 __Pyx_INCREF(Py_None);
41805 __Pyx_DECREF_SET(__pyx_v_rank, Py_None);
41816 __Pyx_XDECREF(__pyx_r);
41817 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1399, __pyx_L1_error)
41818 __Pyx_GOTREF(__pyx_t_2);
41819 __Pyx_INCREF(__pyx_v_xi);
41820 __Pyx_GIVEREF(__pyx_v_xi);
41821 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_xi);
41822 __Pyx_INCREF(__pyx_v_local_element);
41823 __Pyx_GIVEREF(__pyx_v_local_element);
41824 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_local_element);
41825 __Pyx_INCREF(__pyx_v_rank);
41826 __Pyx_GIVEREF(__pyx_v_rank);
41827 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_rank);
41828 __pyx_r = __pyx_t_2;
41842 __Pyx_XDECREF(__pyx_t_1);
41843 __Pyx_XDECREF(__pyx_t_2);
41844 __Pyx_XDECREF(__pyx_t_3);
41845 __Pyx_XDECREF(__pyx_t_4);
41846 __Pyx_XDECREF(__pyx_t_7);
41847 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.findElementContainingCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
41850 __Pyx_XDECREF(__pyx_v_comm);
41851 __Pyx_XDECREF(__pyx_v_xi);
41852 __Pyx_XDECREF(__pyx_v_owning_proc);
41853 __Pyx_XDECREF(__pyx_v_element);
41854 __Pyx_XDECREF(__pyx_v_rank);
41855 __Pyx_XDECREF(__pyx_v_nodes_kdtree);
41856 __Pyx_XDECREF(__pyx_v_nearest_node);
41857 __Pyx_XDECREF(__pyx_v_nearest_node_distance);
41858 __Pyx_XDECREF(__pyx_v_local_element);
41859 __Pyx_XGIVEREF(__pyx_r);
41860 __Pyx_TraceReturn(__pyx_r, 0);
41861 __Pyx_RefNannyFinishContext();
41874 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_17getFluidVelocityLocalCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
41875 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_16getFluidVelocityLocalCoords[] =
"WallFunctions.getFluidVelocityLocalCoords(self, xi, element, rank)\n\n Given local details, returns velocity field at those coordinates.\n\n Parameters\n ----------\n xi:\n local coords in element\n element: int\n element number (local to processor 'rank')\n rank: int\n rank of processor owning the element\n ";
41876 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_17getFluidVelocityLocalCoords = {
"getFluidVelocityLocalCoords", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_17getFluidVelocityLocalCoords, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_16getFluidVelocityLocalCoords};
41877 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_17getFluidVelocityLocalCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
41878 PyObject *__pyx_v_self = 0;
41879 PyObject *__pyx_v_xi = 0;
41880 PyObject *__pyx_v_element = 0;
41881 PyObject *__pyx_v_rank = 0;
41882 int __pyx_lineno = 0;
41883 const char *__pyx_filename = NULL;
41884 int __pyx_clineno = 0;
41885 PyObject *__pyx_r = 0;
41886 __Pyx_RefNannyDeclarations
41887 __Pyx_RefNannySetupContext(
"getFluidVelocityLocalCoords (wrapper)", 0);
41889 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_xi,&__pyx_n_s_element,&__pyx_n_s_rank,0};
41890 PyObject* values[4] = {0,0,0,0};
41891 if (unlikely(__pyx_kwds)) {
41892 Py_ssize_t kw_args;
41893 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
41894 switch (pos_args) {
41895 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41896 CYTHON_FALLTHROUGH;
41897 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41898 CYTHON_FALLTHROUGH;
41899 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41900 CYTHON_FALLTHROUGH;
41901 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41902 CYTHON_FALLTHROUGH;
41904 default:
goto __pyx_L5_argtuple_error;
41906 kw_args = PyDict_Size(__pyx_kwds);
41907 switch (pos_args) {
41909 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
41910 else goto __pyx_L5_argtuple_error;
41911 CYTHON_FALLTHROUGH;
41913 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xi)) != 0)) kw_args--;
41915 __Pyx_RaiseArgtupleInvalid(
"getFluidVelocityLocalCoords", 1, 4, 4, 1); __PYX_ERR(0, 1401, __pyx_L3_error)
41917 CYTHON_FALLTHROUGH;
41919 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
41921 __Pyx_RaiseArgtupleInvalid(
"getFluidVelocityLocalCoords", 1, 4, 4, 2); __PYX_ERR(0, 1401, __pyx_L3_error)
41923 CYTHON_FALLTHROUGH;
41925 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
41927 __Pyx_RaiseArgtupleInvalid(
"getFluidVelocityLocalCoords", 1, 4, 4, 3); __PYX_ERR(0, 1401, __pyx_L3_error)
41930 if (unlikely(kw_args > 0)) {
41931 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getFluidVelocityLocalCoords") < 0)) __PYX_ERR(0, 1401, __pyx_L3_error)
41933 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
41934 goto __pyx_L5_argtuple_error;
41936 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
41937 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
41938 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
41939 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
41941 __pyx_v_self = values[0];
41942 __pyx_v_xi = values[1];
41943 __pyx_v_element = values[2];
41944 __pyx_v_rank = values[3];
41946 goto __pyx_L4_argument_unpacking_done;
41947 __pyx_L5_argtuple_error:;
41948 __Pyx_RaiseArgtupleInvalid(
"getFluidVelocityLocalCoords", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1401, __pyx_L3_error)
41950 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getFluidVelocityLocalCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
41951 __Pyx_RefNannyFinishContext();
41953 __pyx_L4_argument_unpacking_done:;
41954 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_16getFluidVelocityLocalCoords(__pyx_self, __pyx_v_self, __pyx_v_xi, __pyx_v_element, __pyx_v_rank);
41957 __Pyx_RefNannyFinishContext();
41961 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_16getFluidVelocityLocalCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank) {
41962 PyObject *__pyx_v_comm = NULL;
41963 PyObject *__pyx_v_u = NULL;
41964 PyObject *__pyx_v_v = NULL;
41965 PyObject *__pyx_v_w = NULL;
41966 PyObject *__pyx_r = NULL;
41967 __Pyx_TraceDeclarations
41968 __Pyx_RefNannyDeclarations
41969 PyObject *__pyx_t_1 = NULL;
41970 PyObject *__pyx_t_2 = NULL;
41971 PyObject *__pyx_t_3 = NULL;
41972 PyObject *__pyx_t_4 = NULL;
41975 int __pyx_lineno = 0;
41976 const char *__pyx_filename = NULL;
41977 int __pyx_clineno = 0;
41978 __Pyx_TraceFrameInit(__pyx_codeobj__115)
41979 __Pyx_RefNannySetupContext(
"getFluidVelocityLocalCoords", 0);
41980 __Pyx_TraceCall(
"getFluidVelocityLocalCoords", __pyx_f[0], 1401, 0, __PYX_ERR(0, 1401, __pyx_L1_error));
41989 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1414, __pyx_L1_error)
41990 __Pyx_GOTREF(__pyx_t_3);
41991 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_get);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1414, __pyx_L1_error)
41992 __Pyx_GOTREF(__pyx_t_4);
41993 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
41995 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
41996 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
41997 if (likely(__pyx_t_3)) {
41998 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
41999 __Pyx_INCREF(__pyx_t_3);
42000 __Pyx_INCREF(
function);
42001 __Pyx_DECREF_SET(__pyx_t_4,
function);
42004 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
42005 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42006 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1414, __pyx_L1_error)
42007 __Pyx_GOTREF(__pyx_t_2);
42008 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42009 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_comm);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1414, __pyx_L1_error)
42010 __Pyx_GOTREF(__pyx_t_4);
42011 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42012 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_tompi4py);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1414, __pyx_L1_error)
42013 __Pyx_GOTREF(__pyx_t_2);
42014 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42016 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
42017 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
42018 if (likely(__pyx_t_4)) {
42019 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
42020 __Pyx_INCREF(__pyx_t_4);
42021 __Pyx_INCREF(
function);
42022 __Pyx_DECREF_SET(__pyx_t_2,
function);
42025 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
42026 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
42027 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1414, __pyx_L1_error)
42028 __Pyx_GOTREF(__pyx_t_1);
42029 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42030 __pyx_v_comm = __pyx_t_1;
42040 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_comm, __pyx_n_s_rank);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1415, __pyx_L1_error)
42041 __Pyx_GOTREF(__pyx_t_1);
42042 __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_rank, Py_EQ); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1415, __pyx_L1_error)
42043 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42044 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1415, __pyx_L1_error)
42045 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42055 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_u);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1416, __pyx_L1_error)
42056 __Pyx_GOTREF(__pyx_t_1);
42057 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1416, __pyx_L1_error)
42058 __Pyx_GOTREF(__pyx_t_4);
42059 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42060 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_getValue);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1416, __pyx_L1_error)
42061 __Pyx_GOTREF(__pyx_t_1);
42062 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42065 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
42066 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
42067 if (likely(__pyx_t_4)) {
42068 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
42069 __Pyx_INCREF(__pyx_t_4);
42070 __Pyx_INCREF(
function);
42071 __Pyx_DECREF_SET(__pyx_t_1,
function);
42075 #if CYTHON_FAST_PYCALL
42076 if (PyFunction_Check(__pyx_t_1)) {
42077 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
42078 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
42079 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
42080 __Pyx_GOTREF(__pyx_t_2);
42083 #if CYTHON_FAST_PYCCALL
42084 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
42085 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
42086 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
42087 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
42088 __Pyx_GOTREF(__pyx_t_2);
42092 __pyx_t_3 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1416, __pyx_L1_error)
42093 __Pyx_GOTREF(__pyx_t_3);
42095 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
42097 __Pyx_INCREF(__pyx_v_element);
42098 __Pyx_GIVEREF(__pyx_v_element);
42099 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_v_element);
42100 __Pyx_INCREF(__pyx_v_xi);
42101 __Pyx_GIVEREF(__pyx_v_xi);
42102 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_v_xi);
42103 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
42104 __Pyx_GOTREF(__pyx_t_2);
42105 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42107 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42108 __pyx_v_u = __pyx_t_2;
42118 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_u);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1417, __pyx_L1_error)
42119 __Pyx_GOTREF(__pyx_t_1);
42120 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1417, __pyx_L1_error)
42121 __Pyx_GOTREF(__pyx_t_3);
42122 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42123 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getValue);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1417, __pyx_L1_error)
42124 __Pyx_GOTREF(__pyx_t_1);
42125 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42128 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
42129 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
42130 if (likely(__pyx_t_3)) {
42131 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
42132 __Pyx_INCREF(__pyx_t_3);
42133 __Pyx_INCREF(
function);
42134 __Pyx_DECREF_SET(__pyx_t_1,
function);
42138 #if CYTHON_FAST_PYCALL
42139 if (PyFunction_Check(__pyx_t_1)) {
42140 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_element, __pyx_v_xi};
42141 __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1417, __pyx_L1_error)
42142 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42143 __Pyx_GOTREF(__pyx_t_2);
42146 #if CYTHON_FAST_PYCCALL
42147 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
42148 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_element, __pyx_v_xi};
42149 __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1417, __pyx_L1_error)
42150 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42151 __Pyx_GOTREF(__pyx_t_2);
42155 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1417, __pyx_L1_error)
42156 __Pyx_GOTREF(__pyx_t_4);
42158 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL;
42160 __Pyx_INCREF(__pyx_v_element);
42161 __Pyx_GIVEREF(__pyx_v_element);
42162 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_element);
42163 __Pyx_INCREF(__pyx_v_xi);
42164 __Pyx_GIVEREF(__pyx_v_xi);
42165 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_xi);
42166 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1417, __pyx_L1_error)
42167 __Pyx_GOTREF(__pyx_t_2);
42168 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42170 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42171 __pyx_v_v = __pyx_t_2;
42181 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nd);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1418, __pyx_L1_error)
42182 __Pyx_GOTREF(__pyx_t_2);
42183 __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_int_2, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1418, __pyx_L1_error)
42184 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42185 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1418, __pyx_L1_error)
42186 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42196 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_u);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1419, __pyx_L1_error)
42197 __Pyx_GOTREF(__pyx_t_2);
42198 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 3,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1419, __pyx_L1_error)
42199 __Pyx_GOTREF(__pyx_t_4);
42200 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42201 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_getValue);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1419, __pyx_L1_error)
42202 __Pyx_GOTREF(__pyx_t_2);
42203 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42206 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
42207 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
42208 if (likely(__pyx_t_4)) {
42209 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
42210 __Pyx_INCREF(__pyx_t_4);
42211 __Pyx_INCREF(
function);
42212 __Pyx_DECREF_SET(__pyx_t_2,
function);
42216 #if CYTHON_FAST_PYCALL
42217 if (PyFunction_Check(__pyx_t_2)) {
42218 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
42219 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1419, __pyx_L1_error)
42220 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
42221 __Pyx_GOTREF(__pyx_t_1);
42224 #if CYTHON_FAST_PYCCALL
42225 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
42226 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
42227 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1419, __pyx_L1_error)
42228 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
42229 __Pyx_GOTREF(__pyx_t_1);
42233 __pyx_t_3 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1419, __pyx_L1_error)
42234 __Pyx_GOTREF(__pyx_t_3);
42236 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
42238 __Pyx_INCREF(__pyx_v_element);
42239 __Pyx_GIVEREF(__pyx_v_element);
42240 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_v_element);
42241 __Pyx_INCREF(__pyx_v_xi);
42242 __Pyx_GIVEREF(__pyx_v_xi);
42243 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_v_xi);
42244 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1419, __pyx_L1_error)
42245 __Pyx_GOTREF(__pyx_t_1);
42246 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42248 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42249 __pyx_v_w = __pyx_t_1;
42268 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nd);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1420, __pyx_L1_error)
42269 __Pyx_GOTREF(__pyx_t_1);
42270 __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_2, Py_LE); __Pyx_XGOTREF(__pyx_t_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1420, __pyx_L1_error)
42271 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42272 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1420, __pyx_L1_error)
42273 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42283 __Pyx_INCREF(__pyx_float_0_);
42284 __Pyx_XDECREF_SET(__pyx_v_w, __pyx_float_0_);
42313 __Pyx_INCREF(Py_None);
42314 __pyx_v_u = Py_None;
42315 __Pyx_INCREF(Py_None);
42316 __pyx_v_v = Py_None;
42317 __Pyx_INCREF(Py_None);
42318 __pyx_v_w = Py_None;
42329 __Pyx_XDECREF(__pyx_r);
42330 if (unlikely(!__pyx_v_w)) { __Pyx_RaiseUnboundLocalError(
"w"); __PYX_ERR(0, 1424, __pyx_L1_error) }
42331 __pyx_t_2 = PyTuple_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1424, __pyx_L1_error)
42332 __Pyx_GOTREF(__pyx_t_2);
42333 __Pyx_INCREF(__pyx_v_u);
42334 __Pyx_GIVEREF(__pyx_v_u);
42335 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_u);
42336 __Pyx_INCREF(__pyx_v_v);
42337 __Pyx_GIVEREF(__pyx_v_v);
42338 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_v);
42339 __Pyx_INCREF(__pyx_v_w);
42340 __Pyx_GIVEREF(__pyx_v_w);
42341 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_w);
42342 __pyx_r = __pyx_t_2;
42356 __Pyx_XDECREF(__pyx_t_1);
42357 __Pyx_XDECREF(__pyx_t_2);
42358 __Pyx_XDECREF(__pyx_t_3);
42359 __Pyx_XDECREF(__pyx_t_4);
42360 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getFluidVelocityLocalCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
42363 __Pyx_XDECREF(__pyx_v_comm);
42364 __Pyx_XDECREF(__pyx_v_u);
42365 __Pyx_XDECREF(__pyx_v_v);
42366 __Pyx_XDECREF(__pyx_v_w);
42367 __Pyx_XGIVEREF(__pyx_r);
42368 __Pyx_TraceReturn(__pyx_r, 0);
42369 __Pyx_RefNannyFinishContext();
42382 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_19setYplusNormalDirection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42383 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_18setYplusNormalDirection[] =
"WallFunctions.setYplusNormalDirection(self, x, t, n, relax=1.0)\n\n Return the point at y+ distance in normal\n direction from the boundary.\n ";
42384 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_19setYplusNormalDirection = {
"setYplusNormalDirection", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_19setYplusNormalDirection, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_18setYplusNormalDirection};
42385 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_19setYplusNormalDirection(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42386 PyObject *__pyx_v_self = 0;
42387 PyObject *__pyx_v_x = 0;
42388 CYTHON_UNUSED PyObject *__pyx_v_t = 0;
42389 PyObject *__pyx_v_n = 0;
42390 PyObject *__pyx_v_relax = 0;
42391 int __pyx_lineno = 0;
42392 const char *__pyx_filename = NULL;
42393 int __pyx_clineno = 0;
42394 PyObject *__pyx_r = 0;
42395 __Pyx_RefNannyDeclarations
42396 __Pyx_RefNannySetupContext(
"setYplusNormalDirection (wrapper)", 0);
42398 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,&__pyx_n_s_relax,0};
42399 PyObject* values[5] = {0,0,0,0,0};
42400 values[4] = ((PyObject *)((PyObject*)__pyx_float_1_0));
42401 if (unlikely(__pyx_kwds)) {
42402 Py_ssize_t kw_args;
42403 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42404 switch (pos_args) {
42405 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42406 CYTHON_FALLTHROUGH;
42407 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42408 CYTHON_FALLTHROUGH;
42409 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42410 CYTHON_FALLTHROUGH;
42411 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42412 CYTHON_FALLTHROUGH;
42413 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42414 CYTHON_FALLTHROUGH;
42416 default:
goto __pyx_L5_argtuple_error;
42418 kw_args = PyDict_Size(__pyx_kwds);
42419 switch (pos_args) {
42421 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
42422 else goto __pyx_L5_argtuple_error;
42423 CYTHON_FALLTHROUGH;
42425 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
42427 __Pyx_RaiseArgtupleInvalid(
"setYplusNormalDirection", 0, 4, 5, 1); __PYX_ERR(0, 1426, __pyx_L3_error)
42429 CYTHON_FALLTHROUGH;
42431 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
42433 __Pyx_RaiseArgtupleInvalid(
"setYplusNormalDirection", 0, 4, 5, 2); __PYX_ERR(0, 1426, __pyx_L3_error)
42435 CYTHON_FALLTHROUGH;
42437 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
42439 __Pyx_RaiseArgtupleInvalid(
"setYplusNormalDirection", 0, 4, 5, 3); __PYX_ERR(0, 1426, __pyx_L3_error)
42441 CYTHON_FALLTHROUGH;
42444 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_relax);
42445 if (value) { values[4] = value; kw_args--; }
42448 if (unlikely(kw_args > 0)) {
42449 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setYplusNormalDirection") < 0)) __PYX_ERR(0, 1426, __pyx_L3_error)
42452 switch (PyTuple_GET_SIZE(__pyx_args)) {
42453 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
42454 CYTHON_FALLTHROUGH;
42455 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42456 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42457 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42458 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42460 default:
goto __pyx_L5_argtuple_error;
42463 __pyx_v_self = values[0];
42464 __pyx_v_x = values[1];
42465 __pyx_v_t = values[2];
42466 __pyx_v_n = values[3];
42467 __pyx_v_relax = values[4];
42469 goto __pyx_L4_argument_unpacking_done;
42470 __pyx_L5_argtuple_error:;
42471 __Pyx_RaiseArgtupleInvalid(
"setYplusNormalDirection", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1426, __pyx_L3_error)
42473 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.setYplusNormalDirection", __pyx_clineno, __pyx_lineno, __pyx_filename);
42474 __Pyx_RefNannyFinishContext();
42476 __pyx_L4_argument_unpacking_done:;
42477 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_18setYplusNormalDirection(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_v_relax);
42480 __Pyx_RefNannyFinishContext();
42484 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_18setYplusNormalDirection(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, CYTHON_UNUSED PyObject *__pyx_v_t, PyObject *__pyx_v_n, PyObject *__pyx_v_relax) {
42485 PyObject *__pyx_v_nP = NULL;
42486 PyObject *__pyx_r = NULL;
42487 __Pyx_TraceDeclarations
42488 __Pyx_RefNannyDeclarations
42489 Py_ssize_t __pyx_t_1;
42491 PyObject *__pyx_t_3 = NULL;
42492 PyObject *__pyx_t_4 = NULL;
42493 PyObject *__pyx_t_5 = NULL;
42494 int __pyx_lineno = 0;
42495 const char *__pyx_filename = NULL;
42496 int __pyx_clineno = 0;
42497 __Pyx_TraceFrameInit(__pyx_codeobj__116)
42498 __Pyx_RefNannySetupContext(
"setYplusNormalDirection", 0);
42499 __Pyx_TraceCall(
"setYplusNormalDirection", __pyx_f[0], 1426, 0, __PYX_ERR(0, 1426, __pyx_L1_error));
42508 __pyx_t_1 = PyObject_Length(__pyx_v_n);
if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1432, __pyx_L1_error)
42509 __pyx_t_2 = ((__pyx_t_1 < 3) != 0);
42519 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1433, __pyx_L1_error)
42520 __Pyx_GOTREF(__pyx_t_3);
42521 __pyx_t_4 = PyNumber_Multiply(__pyx_v_relax, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1433, __pyx_L1_error)
42522 __Pyx_GOTREF(__pyx_t_4);
42523 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42524 __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_n, 0, 2, NULL, NULL, &__pyx_slice__117, 0, 1, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1433, __pyx_L1_error)
42525 __Pyx_GOTREF(__pyx_t_3);
42526 __pyx_t_5 = PyNumber_Negative(__pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1433, __pyx_L1_error)
42527 __Pyx_GOTREF(__pyx_t_5);
42528 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42529 __pyx_t_3 = PyNumber_Multiply(__pyx_t_4, __pyx_t_5);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1433, __pyx_L1_error)
42530 __Pyx_GOTREF(__pyx_t_3);
42531 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42532 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42533 __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_x, 0, 2, NULL, NULL, &__pyx_slice__117, 0, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1433, __pyx_L1_error)
42534 __Pyx_GOTREF(__pyx_t_5);
42535 __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1433, __pyx_L1_error)
42536 __Pyx_GOTREF(__pyx_t_4);
42537 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42538 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42539 __pyx_v_nP = __pyx_t_4;
42560 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1435, __pyx_L1_error)
42561 __Pyx_GOTREF(__pyx_t_4);
42562 __pyx_t_5 = PyNumber_Multiply(__pyx_v_relax, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1435, __pyx_L1_error)
42563 __Pyx_GOTREF(__pyx_t_5);
42564 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42565 __pyx_t_4 = PyNumber_Negative(__pyx_v_n);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1435, __pyx_L1_error)
42566 __Pyx_GOTREF(__pyx_t_4);
42567 __pyx_t_3 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1435, __pyx_L1_error)
42568 __Pyx_GOTREF(__pyx_t_3);
42569 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42570 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
42571 __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_v_x);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1435, __pyx_L1_error)
42572 __Pyx_GOTREF(__pyx_t_4);
42573 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42574 __pyx_v_nP = __pyx_t_4;
42586 __Pyx_XDECREF(__pyx_r);
42587 __Pyx_INCREF(__pyx_v_nP);
42588 __pyx_r = __pyx_v_nP;
42601 __Pyx_XDECREF(__pyx_t_3);
42602 __Pyx_XDECREF(__pyx_t_4);
42603 __Pyx_XDECREF(__pyx_t_5);
42604 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.setYplusNormalDirection", __pyx_clineno, __pyx_lineno, __pyx_filename);
42607 __Pyx_XDECREF(__pyx_v_nP);
42608 __Pyx_XGIVEREF(__pyx_r);
42609 __Pyx_TraceReturn(__pyx_r, 0);
42610 __Pyx_RefNannyFinishContext();
42623 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_21extractVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
42624 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_20extractVelocity[] =
"WallFunctions.extractVelocity(self, x, t, n)\n\n Extraction of the velocity at y+ distance from the boundary.\n ";
42625 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_21extractVelocity = {
"extractVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_21extractVelocity, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_20extractVelocity};
42626 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_21extractVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
42627 PyObject *__pyx_v_self = 0;
42628 PyObject *__pyx_v_x = 0;
42629 PyObject *__pyx_v_t = 0;
42630 PyObject *__pyx_v_n = 0;
42631 int __pyx_lineno = 0;
42632 const char *__pyx_filename = NULL;
42633 int __pyx_clineno = 0;
42634 PyObject *__pyx_r = 0;
42635 __Pyx_RefNannyDeclarations
42636 __Pyx_RefNannySetupContext(
"extractVelocity (wrapper)", 0);
42638 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
42639 PyObject* values[4] = {0,0,0,0};
42640 if (unlikely(__pyx_kwds)) {
42641 Py_ssize_t kw_args;
42642 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
42643 switch (pos_args) {
42644 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42645 CYTHON_FALLTHROUGH;
42646 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42647 CYTHON_FALLTHROUGH;
42648 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42649 CYTHON_FALLTHROUGH;
42650 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42651 CYTHON_FALLTHROUGH;
42653 default:
goto __pyx_L5_argtuple_error;
42655 kw_args = PyDict_Size(__pyx_kwds);
42656 switch (pos_args) {
42658 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
42659 else goto __pyx_L5_argtuple_error;
42660 CYTHON_FALLTHROUGH;
42662 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
42664 __Pyx_RaiseArgtupleInvalid(
"extractVelocity", 1, 4, 4, 1); __PYX_ERR(0, 1438, __pyx_L3_error)
42666 CYTHON_FALLTHROUGH;
42668 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
42670 __Pyx_RaiseArgtupleInvalid(
"extractVelocity", 1, 4, 4, 2); __PYX_ERR(0, 1438, __pyx_L3_error)
42672 CYTHON_FALLTHROUGH;
42674 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
42676 __Pyx_RaiseArgtupleInvalid(
"extractVelocity", 1, 4, 4, 3); __PYX_ERR(0, 1438, __pyx_L3_error)
42679 if (unlikely(kw_args > 0)) {
42680 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"extractVelocity") < 0)) __PYX_ERR(0, 1438, __pyx_L3_error)
42682 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
42683 goto __pyx_L5_argtuple_error;
42685 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
42686 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
42687 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
42688 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
42690 __pyx_v_self = values[0];
42691 __pyx_v_x = values[1];
42692 __pyx_v_t = values[2];
42693 __pyx_v_n = values[3];
42695 goto __pyx_L4_argument_unpacking_done;
42696 __pyx_L5_argtuple_error:;
42697 __Pyx_RaiseArgtupleInvalid(
"extractVelocity", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1438, __pyx_L3_error)
42699 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.extractVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
42700 __Pyx_RefNannyFinishContext();
42702 __pyx_L4_argument_unpacking_done:;
42703 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_20extractVelocity(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
42706 __Pyx_RefNannyFinishContext();
42710 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_20extractVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
42711 PyObject *__pyx_v_coords = NULL;
42712 PyObject *__pyx_v_xi = NULL;
42713 PyObject *__pyx_v_element = NULL;
42714 PyObject *__pyx_v_rank = NULL;
42715 PyObject *__pyx_v_u = NULL;
42716 PyObject *__pyx_v_v = NULL;
42717 PyObject *__pyx_v_w = NULL;
42718 double __pyx_v_relax;
42719 PyObject *__pyx_v_coords_relax = NULL;
42720 PyObject *__pyx_r = NULL;
42721 __Pyx_TraceDeclarations
42722 __Pyx_RefNannyDeclarations
42723 PyObject *__pyx_t_1 = NULL;
42724 PyObject *__pyx_t_2 = NULL;
42725 PyObject *__pyx_t_3 = NULL;
42727 PyObject *__pyx_t_5 = NULL;
42728 PyObject *__pyx_t_6 = NULL;
42729 PyObject *(*__pyx_t_7)(PyObject *);
42732 PyObject *__pyx_t_10 = NULL;
42733 int __pyx_lineno = 0;
42734 const char *__pyx_filename = NULL;
42735 int __pyx_clineno = 0;
42736 __Pyx_TraceFrameInit(__pyx_codeobj__118)
42737 __Pyx_RefNannySetupContext(
"extractVelocity", 0);
42738 __Pyx_TraceCall(
"extractVelocity", __pyx_f[0], 1438, 0, __PYX_ERR(0, 1438, __pyx_L1_error));
42747 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_setYplusNormalDirection);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1442, __pyx_L1_error)
42748 __Pyx_GOTREF(__pyx_t_2);
42751 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
42752 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
42753 if (likely(__pyx_t_3)) {
42754 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
42755 __Pyx_INCREF(__pyx_t_3);
42756 __Pyx_INCREF(
function);
42757 __Pyx_DECREF_SET(__pyx_t_2,
function);
42761 #if CYTHON_FAST_PYCALL
42762 if (PyFunction_Check(__pyx_t_2)) {
42763 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
42764 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1442, __pyx_L1_error)
42765 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42766 __Pyx_GOTREF(__pyx_t_1);
42769 #if CYTHON_FAST_PYCCALL
42770 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
42771 PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n};
42772 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1442, __pyx_L1_error)
42773 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
42774 __Pyx_GOTREF(__pyx_t_1);
42778 __pyx_t_5 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1442, __pyx_L1_error)
42779 __Pyx_GOTREF(__pyx_t_5);
42781 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
42783 __Pyx_INCREF(__pyx_v_x);
42784 __Pyx_GIVEREF(__pyx_v_x);
42785 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_x);
42786 __Pyx_INCREF(__pyx_v_t);
42787 __Pyx_GIVEREF(__pyx_v_t);
42788 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_t);
42789 __Pyx_INCREF(__pyx_v_n);
42790 __Pyx_GIVEREF(__pyx_v_n);
42791 PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_n);
42792 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1442, __pyx_L1_error)
42793 __Pyx_GOTREF(__pyx_t_1);
42794 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
42796 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42797 __pyx_v_coords = __pyx_t_1;
42807 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findElementContainingCoords);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1443, __pyx_L1_error)
42808 __Pyx_GOTREF(__pyx_t_2);
42810 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
42811 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
42812 if (likely(__pyx_t_5)) {
42813 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
42814 __Pyx_INCREF(__pyx_t_5);
42815 __Pyx_INCREF(
function);
42816 __Pyx_DECREF_SET(__pyx_t_2,
function);
42819 __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_v_coords) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_coords);
42820 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
42821 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1443, __pyx_L1_error)
42822 __Pyx_GOTREF(__pyx_t_1);
42823 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42824 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
42825 PyObject* sequence = __pyx_t_1;
42826 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
42827 if (unlikely(size != 3)) {
42828 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
42829 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
42830 __PYX_ERR(0, 1443, __pyx_L1_error)
42832 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
42833 if (likely(PyTuple_CheckExact(sequence))) {
42834 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
42835 __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
42836 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2);
42838 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
42839 __pyx_t_5 = PyList_GET_ITEM(sequence, 1);
42840 __pyx_t_3 = PyList_GET_ITEM(sequence, 2);
42842 __Pyx_INCREF(__pyx_t_2);
42843 __Pyx_INCREF(__pyx_t_5);
42844 __Pyx_INCREF(__pyx_t_3);
42846 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1443, __pyx_L1_error)
42847 __Pyx_GOTREF(__pyx_t_2);
42848 __pyx_t_5 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1443, __pyx_L1_error)
42849 __Pyx_GOTREF(__pyx_t_5);
42850 __pyx_t_3 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1443, __pyx_L1_error)
42851 __Pyx_GOTREF(__pyx_t_3);
42853 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42855 Py_ssize_t index = -1;
42856 __pyx_t_6 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1443, __pyx_L1_error)
42857 __Pyx_GOTREF(__pyx_t_6);
42858 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42859 __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
42860 index = 0; __pyx_t_2 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_2))
goto __pyx_L3_unpacking_failed;
42861 __Pyx_GOTREF(__pyx_t_2);
42862 index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_5))
goto __pyx_L3_unpacking_failed;
42863 __Pyx_GOTREF(__pyx_t_5);
42864 index = 2; __pyx_t_3 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_3))
goto __pyx_L3_unpacking_failed;
42865 __Pyx_GOTREF(__pyx_t_3);
42866 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 3) < 0) __PYX_ERR(0, 1443, __pyx_L1_error)
42868 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
42869 goto __pyx_L4_unpacking_done;
42870 __pyx_L3_unpacking_failed:;
42871 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
42873 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
42874 __PYX_ERR(0, 1443, __pyx_L1_error)
42875 __pyx_L4_unpacking_done:;
42877 __pyx_v_xi = __pyx_t_2;
42879 __pyx_v_element = __pyx_t_5;
42881 __pyx_v_rank = __pyx_t_3;
42891 __pyx_t_8 = (__pyx_v_rank != Py_None);
42892 __pyx_t_9 = (__pyx_t_8 != 0);
42902 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getFluidVelocityLocalCoords);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1445, __pyx_L1_error)
42903 __Pyx_GOTREF(__pyx_t_3);
42906 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
42907 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
42908 if (likely(__pyx_t_5)) {
42909 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
42910 __Pyx_INCREF(__pyx_t_5);
42911 __Pyx_INCREF(
function);
42912 __Pyx_DECREF_SET(__pyx_t_3,
function);
42916 #if CYTHON_FAST_PYCALL
42917 if (PyFunction_Check(__pyx_t_3)) {
42918 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_xi, __pyx_v_element, __pyx_v_rank};
42919 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1445, __pyx_L1_error)
42920 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
42921 __Pyx_GOTREF(__pyx_t_1);
42924 #if CYTHON_FAST_PYCCALL
42925 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
42926 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_xi, __pyx_v_element, __pyx_v_rank};
42927 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1445, __pyx_L1_error)
42928 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
42929 __Pyx_GOTREF(__pyx_t_1);
42933 __pyx_t_2 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1445, __pyx_L1_error)
42934 __Pyx_GOTREF(__pyx_t_2);
42936 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); __pyx_t_5 = NULL;
42938 __Pyx_INCREF(__pyx_v_xi);
42939 __Pyx_GIVEREF(__pyx_v_xi);
42940 PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_4, __pyx_v_xi);
42941 __Pyx_INCREF(__pyx_v_element);
42942 __Pyx_GIVEREF(__pyx_v_element);
42943 PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_4, __pyx_v_element);
42944 __Pyx_INCREF(__pyx_v_rank);
42945 __Pyx_GIVEREF(__pyx_v_rank);
42946 PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_4, __pyx_v_rank);
42947 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1445, __pyx_L1_error)
42948 __Pyx_GOTREF(__pyx_t_1);
42949 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
42951 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
42952 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
42953 PyObject* sequence = __pyx_t_1;
42954 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
42955 if (unlikely(size != 3)) {
42956 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
42957 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
42958 __PYX_ERR(0, 1445, __pyx_L1_error)
42960 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
42961 if (likely(PyTuple_CheckExact(sequence))) {
42962 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
42963 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
42964 __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2);
42966 __pyx_t_3 = PyList_GET_ITEM(sequence, 0);
42967 __pyx_t_2 = PyList_GET_ITEM(sequence, 1);
42968 __pyx_t_5 = PyList_GET_ITEM(sequence, 2);
42970 __Pyx_INCREF(__pyx_t_3);
42971 __Pyx_INCREF(__pyx_t_2);
42972 __Pyx_INCREF(__pyx_t_5);
42974 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1445, __pyx_L1_error)
42975 __Pyx_GOTREF(__pyx_t_3);
42976 __pyx_t_2 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1445, __pyx_L1_error)
42977 __Pyx_GOTREF(__pyx_t_2);
42978 __pyx_t_5 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1445, __pyx_L1_error)
42979 __Pyx_GOTREF(__pyx_t_5);
42981 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42983 Py_ssize_t index = -1;
42984 __pyx_t_6 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1445, __pyx_L1_error)
42985 __Pyx_GOTREF(__pyx_t_6);
42986 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
42987 __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
42988 index = 0; __pyx_t_3 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_3))
goto __pyx_L6_unpacking_failed;
42989 __Pyx_GOTREF(__pyx_t_3);
42990 index = 1; __pyx_t_2 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_2))
goto __pyx_L6_unpacking_failed;
42991 __Pyx_GOTREF(__pyx_t_2);
42992 index = 2; __pyx_t_5 = __pyx_t_7(__pyx_t_6);
if (unlikely(!__pyx_t_5))
goto __pyx_L6_unpacking_failed;
42993 __Pyx_GOTREF(__pyx_t_5);
42994 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 3) < 0) __PYX_ERR(0, 1445, __pyx_L1_error)
42996 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
42997 goto __pyx_L7_unpacking_done;
42998 __pyx_L6_unpacking_failed:;
42999 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
43001 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43002 __PYX_ERR(0, 1445, __pyx_L1_error)
43003 __pyx_L7_unpacking_done:;
43005 __pyx_v_u = __pyx_t_3;
43007 __pyx_v_v = __pyx_t_2;
43009 __pyx_v_w = __pyx_t_5;
43030 __pyx_v_relax = 0.5;
43040 __pyx_t_9 = (__pyx_v_rank == Py_None);
43041 __pyx_t_8 = (__pyx_t_9 != 0);
43042 if (!__pyx_t_8)
break;
43051 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_setYplusNormalDirection);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1449, __pyx_L1_error)
43052 __Pyx_GOTREF(__pyx_t_5);
43053 __pyx_t_2 = PyFloat_FromDouble(__pyx_v_relax);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1449, __pyx_L1_error)
43054 __Pyx_GOTREF(__pyx_t_2);
43057 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
43058 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
43059 if (likely(__pyx_t_3)) {
43060 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
43061 __Pyx_INCREF(__pyx_t_3);
43062 __Pyx_INCREF(
function);
43063 __Pyx_DECREF_SET(__pyx_t_5,
function);
43067 #if CYTHON_FAST_PYCALL
43068 if (PyFunction_Check(__pyx_t_5)) {
43069 PyObject *__pyx_temp[5] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_2};
43070 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 4+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1449, __pyx_L1_error)
43071 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
43072 __Pyx_GOTREF(__pyx_t_1);
43073 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43076 #if CYTHON_FAST_PYCCALL
43077 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
43078 PyObject *__pyx_temp[5] = {__pyx_t_3, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_2};
43079 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 4+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1449, __pyx_L1_error)
43080 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
43081 __Pyx_GOTREF(__pyx_t_1);
43082 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43086 __pyx_t_6 = PyTuple_New(4+__pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1449, __pyx_L1_error)
43087 __Pyx_GOTREF(__pyx_t_6);
43089 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
43091 __Pyx_INCREF(__pyx_v_x);
43092 __Pyx_GIVEREF(__pyx_v_x);
43093 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_4, __pyx_v_x);
43094 __Pyx_INCREF(__pyx_v_t);
43095 __Pyx_GIVEREF(__pyx_v_t);
43096 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_4, __pyx_v_t);
43097 __Pyx_INCREF(__pyx_v_n);
43098 __Pyx_GIVEREF(__pyx_v_n);
43099 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_4, __pyx_v_n);
43100 __Pyx_GIVEREF(__pyx_t_2);
43101 PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_4, __pyx_t_2);
43103 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1449, __pyx_L1_error)
43104 __Pyx_GOTREF(__pyx_t_1);
43105 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
43107 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43108 __Pyx_XDECREF_SET(__pyx_v_coords_relax, __pyx_t_1);
43118 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_findElementContainingCoords);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1450, __pyx_L1_error)
43119 __Pyx_GOTREF(__pyx_t_5);
43121 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
43122 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
43123 if (likely(__pyx_t_6)) {
43124 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
43125 __Pyx_INCREF(__pyx_t_6);
43126 __Pyx_INCREF(
function);
43127 __Pyx_DECREF_SET(__pyx_t_5,
function);
43130 __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_coords_relax) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_coords_relax);
43131 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
43132 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1450, __pyx_L1_error)
43133 __Pyx_GOTREF(__pyx_t_1);
43134 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43135 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
43136 PyObject* sequence = __pyx_t_1;
43137 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
43138 if (unlikely(size != 3)) {
43139 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
43140 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
43141 __PYX_ERR(0, 1450, __pyx_L1_error)
43143 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
43144 if (likely(PyTuple_CheckExact(sequence))) {
43145 __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
43146 __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
43147 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
43149 __pyx_t_5 = PyList_GET_ITEM(sequence, 0);
43150 __pyx_t_6 = PyList_GET_ITEM(sequence, 1);
43151 __pyx_t_2 = PyList_GET_ITEM(sequence, 2);
43153 __Pyx_INCREF(__pyx_t_5);
43154 __Pyx_INCREF(__pyx_t_6);
43155 __Pyx_INCREF(__pyx_t_2);
43157 __pyx_t_5 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1450, __pyx_L1_error)
43158 __Pyx_GOTREF(__pyx_t_5);
43159 __pyx_t_6 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1450, __pyx_L1_error)
43160 __Pyx_GOTREF(__pyx_t_6);
43161 __pyx_t_2 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1450, __pyx_L1_error)
43162 __Pyx_GOTREF(__pyx_t_2);
43164 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43166 Py_ssize_t index = -1;
43167 __pyx_t_3 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1450, __pyx_L1_error)
43168 __Pyx_GOTREF(__pyx_t_3);
43169 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43170 __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext;
43171 index = 0; __pyx_t_5 = __pyx_t_7(__pyx_t_3);
if (unlikely(!__pyx_t_5))
goto __pyx_L10_unpacking_failed;
43172 __Pyx_GOTREF(__pyx_t_5);
43173 index = 1; __pyx_t_6 = __pyx_t_7(__pyx_t_3);
if (unlikely(!__pyx_t_6))
goto __pyx_L10_unpacking_failed;
43174 __Pyx_GOTREF(__pyx_t_6);
43175 index = 2; __pyx_t_2 = __pyx_t_7(__pyx_t_3);
if (unlikely(!__pyx_t_2))
goto __pyx_L10_unpacking_failed;
43176 __Pyx_GOTREF(__pyx_t_2);
43177 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_3), 3) < 0) __PYX_ERR(0, 1450, __pyx_L1_error)
43179 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43180 goto __pyx_L11_unpacking_done;
43181 __pyx_L10_unpacking_failed:;
43182 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43184 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43185 __PYX_ERR(0, 1450, __pyx_L1_error)
43186 __pyx_L11_unpacking_done:;
43188 __Pyx_DECREF_SET(__pyx_v_xi, __pyx_t_5);
43190 __Pyx_DECREF_SET(__pyx_v_element, __pyx_t_6);
43192 __Pyx_DECREF_SET(__pyx_v_rank, __pyx_t_2);
43202 __pyx_v_relax = (__pyx_v_relax * 0.5);
43212 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getFluidVelocityLocalCoords);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1453, __pyx_L1_error)
43213 __Pyx_GOTREF(__pyx_t_2);
43214 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_femSpace_velocity);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1453, __pyx_L1_error)
43215 __Pyx_GOTREF(__pyx_t_5);
43216 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_elementMaps);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1453, __pyx_L1_error)
43217 __Pyx_GOTREF(__pyx_t_3);
43218 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43219 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getInverseValue);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1453, __pyx_L1_error)
43220 __Pyx_GOTREF(__pyx_t_5);
43221 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43224 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
43225 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
43226 if (likely(__pyx_t_3)) {
43227 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
43228 __Pyx_INCREF(__pyx_t_3);
43229 __Pyx_INCREF(
function);
43230 __Pyx_DECREF_SET(__pyx_t_5,
function);
43234 #if CYTHON_FAST_PYCALL
43235 if (PyFunction_Check(__pyx_t_5)) {
43236 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_element, __pyx_v_coords};
43237 __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1453, __pyx_L1_error)
43238 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
43239 __Pyx_GOTREF(__pyx_t_6);
43242 #if CYTHON_FAST_PYCCALL
43243 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
43244 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_element, __pyx_v_coords};
43245 __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1453, __pyx_L1_error)
43246 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
43247 __Pyx_GOTREF(__pyx_t_6);
43251 __pyx_t_10 = PyTuple_New(2+__pyx_t_4);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1453, __pyx_L1_error)
43252 __Pyx_GOTREF(__pyx_t_10);
43254 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL;
43256 __Pyx_INCREF(__pyx_v_element);
43257 __Pyx_GIVEREF(__pyx_v_element);
43258 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_4, __pyx_v_element);
43259 __Pyx_INCREF(__pyx_v_coords);
43260 __Pyx_GIVEREF(__pyx_v_coords);
43261 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_4, __pyx_v_coords);
43262 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1453, __pyx_L1_error)
43263 __Pyx_GOTREF(__pyx_t_6);
43264 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
43266 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43277 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
43278 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
43279 if (likely(__pyx_t_5)) {
43280 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
43281 __Pyx_INCREF(__pyx_t_5);
43282 __Pyx_INCREF(
function);
43283 __Pyx_DECREF_SET(__pyx_t_2,
function);
43287 #if CYTHON_FAST_PYCALL
43288 if (PyFunction_Check(__pyx_t_2)) {
43289 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_t_6, __pyx_v_element, __pyx_v_rank};
43290 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
43291 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
43292 __Pyx_GOTREF(__pyx_t_1);
43293 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
43296 #if CYTHON_FAST_PYCCALL
43297 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
43298 PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_t_6, __pyx_v_element, __pyx_v_rank};
43299 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
43300 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
43301 __Pyx_GOTREF(__pyx_t_1);
43302 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
43306 __pyx_t_10 = PyTuple_New(3+__pyx_t_4);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1453, __pyx_L1_error)
43307 __Pyx_GOTREF(__pyx_t_10);
43309 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __pyx_t_5 = NULL;
43311 __Pyx_GIVEREF(__pyx_t_6);
43312 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_4, __pyx_t_6);
43313 __Pyx_INCREF(__pyx_v_element);
43314 __Pyx_GIVEREF(__pyx_v_element);
43315 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_4, __pyx_v_element);
43316 __Pyx_INCREF(__pyx_v_rank);
43317 __Pyx_GIVEREF(__pyx_v_rank);
43318 PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_4, __pyx_v_rank);
43320 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1453, __pyx_L1_error)
43321 __Pyx_GOTREF(__pyx_t_1);
43322 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
43324 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43325 if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
43326 PyObject* sequence = __pyx_t_1;
43327 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
43328 if (unlikely(size != 3)) {
43329 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
43330 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
43331 __PYX_ERR(0, 1453, __pyx_L1_error)
43333 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
43334 if (likely(PyTuple_CheckExact(sequence))) {
43335 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
43336 __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
43337 __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
43339 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
43340 __pyx_t_10 = PyList_GET_ITEM(sequence, 1);
43341 __pyx_t_6 = PyList_GET_ITEM(sequence, 2);
43343 __Pyx_INCREF(__pyx_t_2);
43344 __Pyx_INCREF(__pyx_t_10);
43345 __Pyx_INCREF(__pyx_t_6);
43347 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1453, __pyx_L1_error)
43348 __Pyx_GOTREF(__pyx_t_2);
43349 __pyx_t_10 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1453, __pyx_L1_error)
43350 __Pyx_GOTREF(__pyx_t_10);
43351 __pyx_t_6 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1453, __pyx_L1_error)
43352 __Pyx_GOTREF(__pyx_t_6);
43354 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43356 Py_ssize_t index = -1;
43357 __pyx_t_5 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1453, __pyx_L1_error)
43358 __Pyx_GOTREF(__pyx_t_5);
43359 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43360 __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext;
43361 index = 0; __pyx_t_2 = __pyx_t_7(__pyx_t_5);
if (unlikely(!__pyx_t_2))
goto __pyx_L12_unpacking_failed;
43362 __Pyx_GOTREF(__pyx_t_2);
43363 index = 1; __pyx_t_10 = __pyx_t_7(__pyx_t_5);
if (unlikely(!__pyx_t_10))
goto __pyx_L12_unpacking_failed;
43364 __Pyx_GOTREF(__pyx_t_10);
43365 index = 2; __pyx_t_6 = __pyx_t_7(__pyx_t_5);
if (unlikely(!__pyx_t_6))
goto __pyx_L12_unpacking_failed;
43366 __Pyx_GOTREF(__pyx_t_6);
43367 if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_5), 3) < 0) __PYX_ERR(0, 1453, __pyx_L1_error)
43369 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43370 goto __pyx_L13_unpacking_done;
43371 __pyx_L12_unpacking_failed:;
43372 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
43374 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43375 __PYX_ERR(0, 1453, __pyx_L1_error)
43376 __pyx_L13_unpacking_done:;
43386 __pyx_v_u = __pyx_t_2;
43388 __pyx_v_v = __pyx_t_10;
43390 __pyx_v_w = __pyx_t_6;
43402 __pyx_t_1 = __pyx_v_xi;
43403 __Pyx_INCREF(__pyx_t_1);
43404 __pyx_t_6 = __pyx_v_element;
43405 __Pyx_INCREF(__pyx_t_6);
43406 __pyx_t_10 = __pyx_v_rank;
43407 __Pyx_INCREF(__pyx_t_10);
43408 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_xi, __pyx_t_1) < 0) __PYX_ERR(0, 1456, __pyx_L1_error)
43409 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43410 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_element, __pyx_t_6) < 0) __PYX_ERR(0, 1456, __pyx_L1_error)
43411 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
43412 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_rank, __pyx_t_10) < 0) __PYX_ERR(0, 1456, __pyx_L1_error)
43413 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
43422 __Pyx_XDECREF(__pyx_r);
43423 __pyx_t_10 = PyTuple_New(3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1457, __pyx_L1_error)
43424 __Pyx_GOTREF(__pyx_t_10);
43425 __Pyx_INCREF(__pyx_v_u);
43426 __Pyx_GIVEREF(__pyx_v_u);
43427 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_u);
43428 __Pyx_INCREF(__pyx_v_v);
43429 __Pyx_GIVEREF(__pyx_v_v);
43430 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_v);
43431 __Pyx_INCREF(__pyx_v_w);
43432 __Pyx_GIVEREF(__pyx_v_w);
43433 PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_w);
43434 __pyx_r = __pyx_t_10;
43448 __Pyx_XDECREF(__pyx_t_1);
43449 __Pyx_XDECREF(__pyx_t_2);
43450 __Pyx_XDECREF(__pyx_t_3);
43451 __Pyx_XDECREF(__pyx_t_5);
43452 __Pyx_XDECREF(__pyx_t_6);
43453 __Pyx_XDECREF(__pyx_t_10);
43454 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.extractVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
43457 __Pyx_XDECREF(__pyx_v_coords);
43458 __Pyx_XDECREF(__pyx_v_xi);
43459 __Pyx_XDECREF(__pyx_v_element);
43460 __Pyx_XDECREF(__pyx_v_rank);
43461 __Pyx_XDECREF(__pyx_v_u);
43462 __Pyx_XDECREF(__pyx_v_v);
43463 __Pyx_XDECREF(__pyx_v_w);
43464 __Pyx_XDECREF(__pyx_v_coords_relax);
43465 __Pyx_XGIVEREF(__pyx_r);
43466 __Pyx_TraceReturn(__pyx_r, 0);
43467 __Pyx_RefNannyFinishContext();
43480 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_23tangentialVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
43481 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_22tangentialVelocity[] =
"WallFunctions.tangentialVelocity(self, x, t, n, uInit=None)\n\n Given the velocity, calculates its\n tangential component to the wall.\n\n Parameters\n ----------\n uInit: True/False.\n Switch for initializing the module.\n True only during the first time step.\n ";
43482 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_23tangentialVelocity = {
"tangentialVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_23tangentialVelocity, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_22tangentialVelocity};
43483 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_23tangentialVelocity(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
43484 PyObject *__pyx_v_self = 0;
43485 PyObject *__pyx_v_x = 0;
43486 PyObject *__pyx_v_t = 0;
43487 PyObject *__pyx_v_n = 0;
43488 PyObject *__pyx_v_uInit = 0;
43489 int __pyx_lineno = 0;
43490 const char *__pyx_filename = NULL;
43491 int __pyx_clineno = 0;
43492 PyObject *__pyx_r = 0;
43493 __Pyx_RefNannyDeclarations
43494 __Pyx_RefNannySetupContext(
"tangentialVelocity (wrapper)", 0);
43496 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,&__pyx_n_s_uInit,0};
43497 PyObject* values[5] = {0,0,0,0,0};
43498 values[4] = ((PyObject *)((PyObject *)Py_None));
43499 if (unlikely(__pyx_kwds)) {
43500 Py_ssize_t kw_args;
43501 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
43502 switch (pos_args) {
43503 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43504 CYTHON_FALLTHROUGH;
43505 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43506 CYTHON_FALLTHROUGH;
43507 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43508 CYTHON_FALLTHROUGH;
43509 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43510 CYTHON_FALLTHROUGH;
43511 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43512 CYTHON_FALLTHROUGH;
43514 default:
goto __pyx_L5_argtuple_error;
43516 kw_args = PyDict_Size(__pyx_kwds);
43517 switch (pos_args) {
43519 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
43520 else goto __pyx_L5_argtuple_error;
43521 CYTHON_FALLTHROUGH;
43523 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
43525 __Pyx_RaiseArgtupleInvalid(
"tangentialVelocity", 0, 4, 5, 1); __PYX_ERR(0, 1459, __pyx_L3_error)
43527 CYTHON_FALLTHROUGH;
43529 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
43531 __Pyx_RaiseArgtupleInvalid(
"tangentialVelocity", 0, 4, 5, 2); __PYX_ERR(0, 1459, __pyx_L3_error)
43533 CYTHON_FALLTHROUGH;
43535 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
43537 __Pyx_RaiseArgtupleInvalid(
"tangentialVelocity", 0, 4, 5, 3); __PYX_ERR(0, 1459, __pyx_L3_error)
43539 CYTHON_FALLTHROUGH;
43542 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uInit);
43543 if (value) { values[4] = value; kw_args--; }
43546 if (unlikely(kw_args > 0)) {
43547 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"tangentialVelocity") < 0)) __PYX_ERR(0, 1459, __pyx_L3_error)
43550 switch (PyTuple_GET_SIZE(__pyx_args)) {
43551 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
43552 CYTHON_FALLTHROUGH;
43553 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
43554 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
43555 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
43556 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
43558 default:
goto __pyx_L5_argtuple_error;
43561 __pyx_v_self = values[0];
43562 __pyx_v_x = values[1];
43563 __pyx_v_t = values[2];
43564 __pyx_v_n = values[3];
43565 __pyx_v_uInit = values[4];
43567 goto __pyx_L4_argument_unpacking_done;
43568 __pyx_L5_argtuple_error:;
43569 __Pyx_RaiseArgtupleInvalid(
"tangentialVelocity", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1459, __pyx_L3_error)
43571 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.tangentialVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
43572 __Pyx_RefNannyFinishContext();
43574 __pyx_L4_argument_unpacking_done:;
43575 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_22tangentialVelocity(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_v_uInit);
43578 __Pyx_RefNannyFinishContext();
43582 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_22tangentialVelocity(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n, PyObject *__pyx_v_uInit) {
43583 PyObject *__pyx_v_u0 = NULL;
43584 PyObject *__pyx_v_u1 = NULL;
43585 PyObject *__pyx_v_u2 = NULL;
43586 PyObject *__pyx_r = NULL;
43587 __Pyx_TraceDeclarations
43588 __Pyx_RefNannyDeclarations
43589 PyObject *__pyx_t_1 = NULL;
43590 PyObject *__pyx_t_2 = NULL;
43591 PyObject *__pyx_t_3 = NULL;
43592 PyObject *__pyx_t_4 = NULL;
43596 PyObject *__pyx_t_8 = NULL;
43597 PyObject *(*__pyx_t_9)(PyObject *);
43599 PyObject *__pyx_t_11 = NULL;
43600 PyObject *__pyx_t_12 = NULL;
43601 PyObject *__pyx_t_13 = NULL;
43602 PyObject *__pyx_t_14 = NULL;
43603 int __pyx_lineno = 0;
43604 const char *__pyx_filename = NULL;
43605 int __pyx_clineno = 0;
43606 __Pyx_TraceFrameInit(__pyx_codeobj__119)
43607 __Pyx_RefNannySetupContext(
"tangentialVelocity", 0);
43608 __Pyx_TraceCall(
"tangentialVelocity", __pyx_f[0], 1459, 0, __PYX_ERR(0, 1459, __pyx_L1_error));
43609 __Pyx_INCREF(__pyx_v_n);
43618 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1470, __pyx_L1_error)
43619 __Pyx_GOTREF(__pyx_t_1);
43620 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pad);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1470, __pyx_L1_error)
43621 __Pyx_GOTREF(__pyx_t_2);
43622 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43623 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_n, __pyx_n_s_shape);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1470, __pyx_L1_error)
43624 __Pyx_GOTREF(__pyx_t_1);
43625 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1470, __pyx_L1_error)
43626 __Pyx_GOTREF(__pyx_t_3);
43627 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43628 __pyx_t_1 = __Pyx_PyInt_SubtractCObj(__pyx_int_3, __pyx_t_3, 3, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1470, __pyx_L1_error)
43629 __Pyx_GOTREF(__pyx_t_1);
43630 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43631 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1470, __pyx_L1_error)
43632 __Pyx_GOTREF(__pyx_t_3);
43633 __Pyx_INCREF(__pyx_int_0);
43634 __Pyx_GIVEREF(__pyx_int_0);
43635 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_int_0);
43636 __Pyx_GIVEREF(__pyx_t_1);
43637 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
43639 __pyx_t_1 = PyTuple_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1470, __pyx_L1_error)
43640 __Pyx_GOTREF(__pyx_t_1);
43641 __Pyx_INCREF(__pyx_v_n);
43642 __Pyx_GIVEREF(__pyx_v_n);
43643 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_n);
43644 __Pyx_GIVEREF(__pyx_t_3);
43645 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
43647 __pyx_t_3 = __Pyx_PyDict_NewPresized(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1470, __pyx_L1_error)
43648 __Pyx_GOTREF(__pyx_t_3);
43649 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_mode, __pyx_n_s_constant) < 0) __PYX_ERR(0, 1470, __pyx_L1_error)
43650 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_constant_values, __pyx_float_0_0) < 0) __PYX_ERR(0, 1470, __pyx_L1_error)
43651 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1470, __pyx_L1_error)
43652 __Pyx_GOTREF(__pyx_t_4);
43653 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43654 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43655 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43656 __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_4);
43666 __pyx_t_6 = (__pyx_v_uInit == Py_True);
43667 __pyx_t_7 = (__pyx_t_6 != 0);
43670 __pyx_t_5 = __pyx_t_7;
43671 goto __pyx_L4_bool_binop_done;
43673 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_model);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1471, __pyx_L1_error)
43674 __Pyx_GOTREF(__pyx_t_4);
43675 __pyx_t_7 = (__pyx_t_4 == Py_None);
43676 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43677 __pyx_t_6 = (__pyx_t_7 != 0);
43678 __pyx_t_5 = __pyx_t_6;
43679 __pyx_L4_bool_binop_done:;
43689 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_U0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1472, __pyx_L1_error)
43690 __Pyx_GOTREF(__pyx_t_4);
43691 if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
43692 PyObject* sequence = __pyx_t_4;
43693 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
43694 if (unlikely(size != 3)) {
43695 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
43696 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
43697 __PYX_ERR(0, 1472, __pyx_L1_error)
43699 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
43700 if (likely(PyTuple_CheckExact(sequence))) {
43701 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
43702 __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
43703 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
43705 __pyx_t_3 = PyList_GET_ITEM(sequence, 0);
43706 __pyx_t_1 = PyList_GET_ITEM(sequence, 1);
43707 __pyx_t_2 = PyList_GET_ITEM(sequence, 2);
43709 __Pyx_INCREF(__pyx_t_3);
43710 __Pyx_INCREF(__pyx_t_1);
43711 __Pyx_INCREF(__pyx_t_2);
43713 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1472, __pyx_L1_error)
43714 __Pyx_GOTREF(__pyx_t_3);
43715 __pyx_t_1 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1472, __pyx_L1_error)
43716 __Pyx_GOTREF(__pyx_t_1);
43717 __pyx_t_2 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1472, __pyx_L1_error)
43718 __Pyx_GOTREF(__pyx_t_2);
43720 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43722 Py_ssize_t index = -1;
43723 __pyx_t_8 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1472, __pyx_L1_error)
43724 __Pyx_GOTREF(__pyx_t_8);
43725 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43726 __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
43727 index = 0; __pyx_t_3 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_3))
goto __pyx_L6_unpacking_failed;
43728 __Pyx_GOTREF(__pyx_t_3);
43729 index = 1; __pyx_t_1 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_1))
goto __pyx_L6_unpacking_failed;
43730 __Pyx_GOTREF(__pyx_t_1);
43731 index = 2; __pyx_t_2 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_2))
goto __pyx_L6_unpacking_failed;
43732 __Pyx_GOTREF(__pyx_t_2);
43733 if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < 0) __PYX_ERR(0, 1472, __pyx_L1_error)
43735 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
43736 goto __pyx_L7_unpacking_done;
43737 __pyx_L6_unpacking_failed:;
43738 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
43740 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43741 __PYX_ERR(0, 1472, __pyx_L1_error)
43742 __pyx_L7_unpacking_done:;
43744 __pyx_v_u0 = __pyx_t_3;
43746 __pyx_v_u1 = __pyx_t_1;
43748 __pyx_v_u2 = __pyx_t_2;
43769 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_extractVelocity);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1474, __pyx_L1_error)
43770 __Pyx_GOTREF(__pyx_t_2);
43773 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
43774 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
43775 if (likely(__pyx_t_1)) {
43776 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
43777 __Pyx_INCREF(__pyx_t_1);
43778 __Pyx_INCREF(
function);
43779 __Pyx_DECREF_SET(__pyx_t_2,
function);
43783 #if CYTHON_FAST_PYCALL
43784 if (PyFunction_Check(__pyx_t_2)) {
43785 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_v_x, __pyx_v_t, __pyx_v_n};
43786 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1474, __pyx_L1_error)
43787 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
43788 __Pyx_GOTREF(__pyx_t_4);
43791 #if CYTHON_FAST_PYCCALL
43792 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
43793 PyObject *__pyx_temp[4] = {__pyx_t_1, __pyx_v_x, __pyx_v_t, __pyx_v_n};
43794 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1474, __pyx_L1_error)
43795 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
43796 __Pyx_GOTREF(__pyx_t_4);
43800 __pyx_t_3 = PyTuple_New(3+__pyx_t_10);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1474, __pyx_L1_error)
43801 __Pyx_GOTREF(__pyx_t_3);
43803 __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL;
43805 __Pyx_INCREF(__pyx_v_x);
43806 __Pyx_GIVEREF(__pyx_v_x);
43807 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_10, __pyx_v_x);
43808 __Pyx_INCREF(__pyx_v_t);
43809 __Pyx_GIVEREF(__pyx_v_t);
43810 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_10, __pyx_v_t);
43811 __Pyx_INCREF(__pyx_v_n);
43812 __Pyx_GIVEREF(__pyx_v_n);
43813 PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_10, __pyx_v_n);
43814 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1474, __pyx_L1_error)
43815 __Pyx_GOTREF(__pyx_t_4);
43816 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43818 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43819 if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
43820 PyObject* sequence = __pyx_t_4;
43821 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
43822 if (unlikely(size != 3)) {
43823 if (size > 3) __Pyx_RaiseTooManyValuesError(3);
43824 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
43825 __PYX_ERR(0, 1474, __pyx_L1_error)
43827 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
43828 if (likely(PyTuple_CheckExact(sequence))) {
43829 __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
43830 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
43831 __pyx_t_1 = PyTuple_GET_ITEM(sequence, 2);
43833 __pyx_t_2 = PyList_GET_ITEM(sequence, 0);
43834 __pyx_t_3 = PyList_GET_ITEM(sequence, 1);
43835 __pyx_t_1 = PyList_GET_ITEM(sequence, 2);
43837 __Pyx_INCREF(__pyx_t_2);
43838 __Pyx_INCREF(__pyx_t_3);
43839 __Pyx_INCREF(__pyx_t_1);
43841 __pyx_t_2 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1474, __pyx_L1_error)
43842 __Pyx_GOTREF(__pyx_t_2);
43843 __pyx_t_3 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1474, __pyx_L1_error)
43844 __Pyx_GOTREF(__pyx_t_3);
43845 __pyx_t_1 = PySequence_ITEM(sequence, 2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1474, __pyx_L1_error)
43846 __Pyx_GOTREF(__pyx_t_1);
43848 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43850 Py_ssize_t index = -1;
43851 __pyx_t_8 = PyObject_GetIter(__pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1474, __pyx_L1_error)
43852 __Pyx_GOTREF(__pyx_t_8);
43853 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43854 __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
43855 index = 0; __pyx_t_2 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_2))
goto __pyx_L8_unpacking_failed;
43856 __Pyx_GOTREF(__pyx_t_2);
43857 index = 1; __pyx_t_3 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_3))
goto __pyx_L8_unpacking_failed;
43858 __Pyx_GOTREF(__pyx_t_3);
43859 index = 2; __pyx_t_1 = __pyx_t_9(__pyx_t_8);
if (unlikely(!__pyx_t_1))
goto __pyx_L8_unpacking_failed;
43860 __Pyx_GOTREF(__pyx_t_1);
43861 if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < 0) __PYX_ERR(0, 1474, __pyx_L1_error)
43863 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
43864 goto __pyx_L9_unpacking_done;
43865 __pyx_L8_unpacking_failed:;
43866 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
43868 if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
43869 __PYX_ERR(0, 1474, __pyx_L1_error)
43870 __pyx_L9_unpacking_done:;
43872 __pyx_v_u0 = __pyx_t_2;
43874 __pyx_v_u1 = __pyx_t_3;
43876 __pyx_v_u2 = __pyx_t_1;
43888 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1475, __pyx_L1_error)
43889 __Pyx_GOTREF(__pyx_t_1);
43890 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_array);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1475, __pyx_L1_error)
43891 __Pyx_GOTREF(__pyx_t_3);
43892 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43893 __pyx_t_1 = PyList_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1475, __pyx_L1_error)
43894 __Pyx_GOTREF(__pyx_t_1);
43895 __Pyx_INCREF(__pyx_v_u0);
43896 __Pyx_GIVEREF(__pyx_v_u0);
43897 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_v_u0);
43898 __Pyx_INCREF(__pyx_v_u1);
43899 __Pyx_GIVEREF(__pyx_v_u1);
43900 PyList_SET_ITEM(__pyx_t_1, 1, __pyx_v_u1);
43901 __Pyx_INCREF(__pyx_v_u2);
43902 __Pyx_GIVEREF(__pyx_v_u2);
43903 PyList_SET_ITEM(__pyx_t_1, 2, __pyx_v_u2);
43905 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
43906 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
43907 if (likely(__pyx_t_2)) {
43908 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
43909 __Pyx_INCREF(__pyx_t_2);
43910 __Pyx_INCREF(
function);
43911 __Pyx_DECREF_SET(__pyx_t_3,
function);
43914 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1);
43915 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
43916 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43917 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1475, __pyx_L1_error)
43918 __Pyx_GOTREF(__pyx_t_4);
43919 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43920 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_meanV, __pyx_t_4) < 0) __PYX_ERR(0, 1475, __pyx_L1_error)
43921 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43930 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_meanV);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1477, __pyx_L1_error)
43931 __Pyx_GOTREF(__pyx_t_4);
43932 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_meanV);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1477, __pyx_L1_error)
43933 __Pyx_GOTREF(__pyx_t_3);
43934 __pyx_t_1 = PyNumber_Power(__pyx_v_n, __pyx_int_2, Py_None);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1477, __pyx_L1_error)
43935 __Pyx_GOTREF(__pyx_t_1);
43936 __pyx_t_2 = PyNumber_Multiply(__pyx_t_3, __pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1477, __pyx_L1_error)
43937 __Pyx_GOTREF(__pyx_t_2);
43938 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
43939 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43940 __pyx_t_1 = PyNumber_Subtract(__pyx_t_4, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1477, __pyx_L1_error)
43941 __Pyx_GOTREF(__pyx_t_1);
43942 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
43943 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
43944 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tanU, __pyx_t_1) < 0) __PYX_ERR(0, 1477, __pyx_L1_error)
43945 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
43954 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1479, __pyx_L1_error)
43955 __Pyx_GOTREF(__pyx_t_2);
43956 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tanU);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1479, __pyx_L1_error)
43957 __Pyx_GOTREF(__pyx_t_4);
43958 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1479, __pyx_L1_error)
43959 __Pyx_GOTREF(__pyx_t_8);
43960 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1479, __pyx_L1_error)
43961 __Pyx_GOTREF(__pyx_t_11);
43962 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
43963 __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_np);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1479, __pyx_L1_error)
43964 __Pyx_GOTREF(__pyx_t_12);
43965 __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_sum);
if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1479, __pyx_L1_error)
43966 __Pyx_GOTREF(__pyx_t_13);
43967 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
43968 __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tanU);
if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1479, __pyx_L1_error)
43969 __Pyx_GOTREF(__pyx_t_12);
43970 __pyx_t_14 = PyNumber_Power(__pyx_t_12, __pyx_int_2, Py_None);
if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1479, __pyx_L1_error)
43971 __Pyx_GOTREF(__pyx_t_14);
43972 __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
43974 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_13))) {
43975 __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_13);
43976 if (likely(__pyx_t_12)) {
43977 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_13);
43978 __Pyx_INCREF(__pyx_t_12);
43979 __Pyx_INCREF(
function);
43980 __Pyx_DECREF_SET(__pyx_t_13,
function);
43983 __pyx_t_8 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_13, __pyx_t_12, __pyx_t_14) : __Pyx_PyObject_CallOneArg(__pyx_t_13, __pyx_t_14);
43984 __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
43985 __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
43986 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1479, __pyx_L1_error)
43987 __Pyx_GOTREF(__pyx_t_8);
43988 __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
43990 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
43991 __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_11);
43992 if (likely(__pyx_t_13)) {
43993 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
43994 __Pyx_INCREF(__pyx_t_13);
43995 __Pyx_INCREF(
function);
43996 __Pyx_DECREF_SET(__pyx_t_11,
function);
43999 __pyx_t_3 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_13, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_t_8);
44000 __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
44001 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44002 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1479, __pyx_L1_error)
44003 __Pyx_GOTREF(__pyx_t_3);
44004 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
44007 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
44008 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2);
44009 if (likely(__pyx_t_11)) {
44010 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
44011 __Pyx_INCREF(__pyx_t_11);
44012 __Pyx_INCREF(
function);
44013 __Pyx_DECREF_SET(__pyx_t_2,
function);
44017 #if CYTHON_FAST_PYCALL
44018 if (PyFunction_Check(__pyx_t_2)) {
44019 PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_4, __pyx_t_3};
44020 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1479, __pyx_L1_error)
44021 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
44022 __Pyx_GOTREF(__pyx_t_1);
44023 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44024 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44027 #if CYTHON_FAST_PYCCALL
44028 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
44029 PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_4, __pyx_t_3};
44030 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1479, __pyx_L1_error)
44031 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
44032 __Pyx_GOTREF(__pyx_t_1);
44033 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44034 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44038 __pyx_t_8 = PyTuple_New(2+__pyx_t_10);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1479, __pyx_L1_error)
44039 __Pyx_GOTREF(__pyx_t_8);
44041 __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_11); __pyx_t_11 = NULL;
44043 __Pyx_GIVEREF(__pyx_t_4);
44044 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_10, __pyx_t_4);
44045 __Pyx_GIVEREF(__pyx_t_3);
44046 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_10, __pyx_t_3);
44049 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1479, __pyx_L1_error)
44050 __Pyx_GOTREF(__pyx_t_1);
44051 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44053 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44054 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_tV, __pyx_t_1) < 0) __PYX_ERR(0, 1479, __pyx_L1_error)
44055 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44066 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44069 __Pyx_XDECREF(__pyx_t_1);
44070 __Pyx_XDECREF(__pyx_t_2);
44071 __Pyx_XDECREF(__pyx_t_3);
44072 __Pyx_XDECREF(__pyx_t_4);
44073 __Pyx_XDECREF(__pyx_t_8);
44074 __Pyx_XDECREF(__pyx_t_11);
44075 __Pyx_XDECREF(__pyx_t_12);
44076 __Pyx_XDECREF(__pyx_t_13);
44077 __Pyx_XDECREF(__pyx_t_14);
44078 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.tangentialVelocity", __pyx_clineno, __pyx_lineno, __pyx_filename);
44081 __Pyx_XDECREF(__pyx_v_u0);
44082 __Pyx_XDECREF(__pyx_v_u1);
44083 __Pyx_XDECREF(__pyx_v_u2);
44084 __Pyx_XDECREF(__pyx_v_n);
44085 __Pyx_XGIVEREF(__pyx_r);
44086 __Pyx_TraceReturn(__pyx_r, 0);
44087 __Pyx_RefNannyFinishContext();
44100 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_25getVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44101 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_24getVariables[] =
"WallFunctions.getVariables(self, x, t)\n\n Calculates velocity, gradient of the velocity and\n kappa according with wall functions theory (see\n S. B. Pope pg 442-443).\n ";
44102 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_25getVariables = {
"getVariables", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_25getVariables, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_24getVariables};
44103 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_25getVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44104 PyObject *__pyx_v_self = 0;
44105 PyObject *__pyx_v_x = 0;
44106 PyObject *__pyx_v_t = 0;
44107 int __pyx_lineno = 0;
44108 const char *__pyx_filename = NULL;
44109 int __pyx_clineno = 0;
44110 PyObject *__pyx_r = 0;
44111 __Pyx_RefNannyDeclarations
44112 __Pyx_RefNannySetupContext(
"getVariables (wrapper)", 0);
44114 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,0};
44115 PyObject* values[3] = {0,0,0};
44116 if (unlikely(__pyx_kwds)) {
44117 Py_ssize_t kw_args;
44118 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44119 switch (pos_args) {
44120 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44121 CYTHON_FALLTHROUGH;
44122 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44123 CYTHON_FALLTHROUGH;
44124 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44125 CYTHON_FALLTHROUGH;
44127 default:
goto __pyx_L5_argtuple_error;
44129 kw_args = PyDict_Size(__pyx_kwds);
44130 switch (pos_args) {
44132 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
44133 else goto __pyx_L5_argtuple_error;
44134 CYTHON_FALLTHROUGH;
44136 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
44138 __Pyx_RaiseArgtupleInvalid(
"getVariables", 1, 3, 3, 1); __PYX_ERR(0, 1481, __pyx_L3_error)
44140 CYTHON_FALLTHROUGH;
44142 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
44144 __Pyx_RaiseArgtupleInvalid(
"getVariables", 1, 3, 3, 2); __PYX_ERR(0, 1481, __pyx_L3_error)
44147 if (unlikely(kw_args > 0)) {
44148 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getVariables") < 0)) __PYX_ERR(0, 1481, __pyx_L3_error)
44150 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
44151 goto __pyx_L5_argtuple_error;
44153 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44154 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44155 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44157 __pyx_v_self = values[0];
44158 __pyx_v_x = values[1];
44159 __pyx_v_t = values[2];
44161 goto __pyx_L4_argument_unpacking_done;
44162 __pyx_L5_argtuple_error:;
44163 __Pyx_RaiseArgtupleInvalid(
"getVariables", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1481, __pyx_L3_error)
44165 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
44166 __Pyx_RefNannyFinishContext();
44168 __pyx_L4_argument_unpacking_done:;
44169 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_24getVariables(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t);
44172 __Pyx_RefNannyFinishContext();
44176 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_24getVariables(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t) {
44177 CYTHON_UNUSED PyObject *__pyx_v_comm = NULL;
44178 PyObject *__pyx_v_Up = NULL;
44179 PyObject *__pyx_v_E = NULL;
44180 PyObject *__pyx_r = NULL;
44181 __Pyx_TraceDeclarations
44182 __Pyx_RefNannyDeclarations
44183 PyObject *__pyx_t_1 = NULL;
44184 PyObject *__pyx_t_2 = NULL;
44185 PyObject *__pyx_t_3 = NULL;
44186 PyObject *__pyx_t_4 = NULL;
44187 PyObject *__pyx_t_5 = NULL;
44188 PyObject *__pyx_t_6 = NULL;
44190 PyObject *__pyx_t_8 = NULL;
44192 PyObject *__pyx_t_10 = NULL;
44193 int __pyx_lineno = 0;
44194 const char *__pyx_filename = NULL;
44195 int __pyx_clineno = 0;
44196 __Pyx_TraceFrameInit(__pyx_codeobj__120)
44197 __Pyx_RefNannySetupContext(
"getVariables", 0);
44198 __Pyx_TraceCall(
"getVariables", __pyx_f[0], 1481, 0, __PYX_ERR(0, 1481, __pyx_L1_error));
44207 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1487, __pyx_L1_error)
44208 __Pyx_GOTREF(__pyx_t_3);
44209 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_get);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1487, __pyx_L1_error)
44210 __Pyx_GOTREF(__pyx_t_4);
44211 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44213 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
44214 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
44215 if (likely(__pyx_t_3)) {
44216 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
44217 __Pyx_INCREF(__pyx_t_3);
44218 __Pyx_INCREF(
function);
44219 __Pyx_DECREF_SET(__pyx_t_4,
function);
44222 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
44223 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44224 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1487, __pyx_L1_error)
44225 __Pyx_GOTREF(__pyx_t_2);
44226 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44227 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_comm);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1487, __pyx_L1_error)
44228 __Pyx_GOTREF(__pyx_t_4);
44229 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44230 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_tompi4py);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1487, __pyx_L1_error)
44231 __Pyx_GOTREF(__pyx_t_2);
44232 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44234 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
44235 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
44236 if (likely(__pyx_t_4)) {
44237 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
44238 __Pyx_INCREF(__pyx_t_4);
44239 __Pyx_INCREF(
function);
44240 __Pyx_DECREF_SET(__pyx_t_2,
function);
44243 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
44244 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
44245 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1487, __pyx_L1_error)
44246 __Pyx_GOTREF(__pyx_t_1);
44247 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44248 __pyx_v_comm = __pyx_t_1;
44258 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kWall);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error)
44259 __Pyx_GOTREF(__pyx_t_2);
44260 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_getKappa);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
44261 __Pyx_GOTREF(__pyx_t_4);
44262 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44263 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_xi);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error)
44264 __Pyx_GOTREF(__pyx_t_2);
44265 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_element);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1489, __pyx_L1_error)
44266 __Pyx_GOTREF(__pyx_t_3);
44267 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_rank);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1489, __pyx_L1_error)
44268 __Pyx_GOTREF(__pyx_t_5);
44271 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
44272 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
44273 if (likely(__pyx_t_6)) {
44274 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
44275 __Pyx_INCREF(__pyx_t_6);
44276 __Pyx_INCREF(
function);
44277 __Pyx_DECREF_SET(__pyx_t_4,
function);
44281 #if CYTHON_FAST_PYCALL
44282 if (PyFunction_Check(__pyx_t_4)) {
44283 PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_x, __pyx_v_t, __pyx_t_2, __pyx_t_3, __pyx_t_5};
44284 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error)
44285 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
44286 __Pyx_GOTREF(__pyx_t_1);
44287 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44288 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44289 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44292 #if CYTHON_FAST_PYCCALL
44293 if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
44294 PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_x, __pyx_v_t, __pyx_t_2, __pyx_t_3, __pyx_t_5};
44295 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error)
44296 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
44297 __Pyx_GOTREF(__pyx_t_1);
44298 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44299 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44300 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44304 __pyx_t_8 = PyTuple_New(5+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1489, __pyx_L1_error)
44305 __Pyx_GOTREF(__pyx_t_8);
44307 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
44309 __Pyx_INCREF(__pyx_v_x);
44310 __Pyx_GIVEREF(__pyx_v_x);
44311 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_x);
44312 __Pyx_INCREF(__pyx_v_t);
44313 __Pyx_GIVEREF(__pyx_v_t);
44314 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_t);
44315 __Pyx_GIVEREF(__pyx_t_2);
44316 PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_2);
44317 __Pyx_GIVEREF(__pyx_t_3);
44318 PyTuple_SET_ITEM(__pyx_t_8, 3+__pyx_t_7, __pyx_t_3);
44319 __Pyx_GIVEREF(__pyx_t_5);
44320 PyTuple_SET_ITEM(__pyx_t_8, 4+__pyx_t_7, __pyx_t_5);
44324 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error)
44325 __Pyx_GOTREF(__pyx_t_1);
44326 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44328 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44329 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kappa, __pyx_t_1) < 0) __PYX_ERR(0, 1489, __pyx_L1_error)
44330 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44339 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappa);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1491, __pyx_L1_error)
44340 __Pyx_GOTREF(__pyx_t_1);
44341 __pyx_t_4 = PyNumber_Power(__pyx_t_1, __pyx_float_0_5, Py_None);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1491, __pyx_L1_error)
44342 __Pyx_GOTREF(__pyx_t_4);
44343 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44344 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Cmu);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1491, __pyx_L1_error)
44345 __Pyx_GOTREF(__pyx_t_1);
44346 __pyx_t_8 = PyNumber_Power(__pyx_t_1, __pyx_float_0_25, Py_None);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1491, __pyx_L1_error)
44347 __Pyx_GOTREF(__pyx_t_8);
44348 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44349 __pyx_t_1 = PyNumber_Multiply(__pyx_t_4, __pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1491, __pyx_L1_error)
44350 __Pyx_GOTREF(__pyx_t_1);
44351 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44352 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44353 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_utStar, __pyx_t_1) < 0) __PYX_ERR(0, 1491, __pyx_L1_error)
44354 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44363 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1492, __pyx_L1_error)
44364 __Pyx_GOTREF(__pyx_t_1);
44365 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1492, __pyx_L1_error)
44366 __Pyx_GOTREF(__pyx_t_8);
44367 __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_t_8);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1492, __pyx_L1_error)
44368 __Pyx_GOTREF(__pyx_t_4);
44369 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44370 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44371 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nu);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1492, __pyx_L1_error)
44372 __Pyx_GOTREF(__pyx_t_8);
44373 __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_t_4, __pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1492, __pyx_L1_error)
44374 __Pyx_GOTREF(__pyx_t_1);
44375 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44376 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44377 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Ystar, __pyx_t_1) < 0) __PYX_ERR(0, 1492, __pyx_L1_error)
44378 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44387 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1494, __pyx_L1_error)
44388 __Pyx_GOTREF(__pyx_t_8);
44389 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1494, __pyx_L1_error)
44390 __Pyx_GOTREF(__pyx_t_4);
44391 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44392 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1494, __pyx_L1_error)
44393 __Pyx_GOTREF(__pyx_t_5);
44394 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_sum);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1494, __pyx_L1_error)
44395 __Pyx_GOTREF(__pyx_t_3);
44396 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44397 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tanU);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1494, __pyx_L1_error)
44398 __Pyx_GOTREF(__pyx_t_5);
44399 __pyx_t_2 = PyNumber_Power(__pyx_t_5, __pyx_int_2, Py_None);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1494, __pyx_L1_error)
44400 __Pyx_GOTREF(__pyx_t_2);
44401 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44403 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
44404 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
44405 if (likely(__pyx_t_5)) {
44406 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
44407 __Pyx_INCREF(__pyx_t_5);
44408 __Pyx_INCREF(
function);
44409 __Pyx_DECREF_SET(__pyx_t_3,
function);
44412 __pyx_t_8 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
44413 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
44414 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44415 if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1494, __pyx_L1_error)
44416 __Pyx_GOTREF(__pyx_t_8);
44417 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44419 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
44420 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
44421 if (likely(__pyx_t_3)) {
44422 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
44423 __Pyx_INCREF(__pyx_t_3);
44424 __Pyx_INCREF(
function);
44425 __Pyx_DECREF_SET(__pyx_t_4,
function);
44428 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_8);
44429 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44430 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44431 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1494, __pyx_L1_error)
44432 __Pyx_GOTREF(__pyx_t_1);
44433 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44434 __pyx_v_Up = __pyx_t_1;
44444 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Ystar);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1496, __pyx_L1_error)
44445 __Pyx_GOTREF(__pyx_t_1);
44446 __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_float_11_225, Py_LT); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1496, __pyx_L1_error)
44447 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44448 __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 1496, __pyx_L1_error)
44449 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44459 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Ystar);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1497, __pyx_L1_error)
44460 __Pyx_GOTREF(__pyx_t_4);
44461 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Ustar, __pyx_t_4) < 0) __PYX_ERR(0, 1497, __pyx_L1_error)
44462 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44471 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1498, __pyx_L1_error)
44472 __Pyx_GOTREF(__pyx_t_4);
44473 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Ystar);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1498, __pyx_L1_error)
44474 __Pyx_GOTREF(__pyx_t_1);
44475 __pyx_t_8 = PyNumber_Multiply(__pyx_t_4, __pyx_t_1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1498, __pyx_L1_error)
44476 __Pyx_GOTREF(__pyx_t_8);
44477 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44478 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44479 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tV);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1498, __pyx_L1_error)
44480 __Pyx_GOTREF(__pyx_t_1);
44481 __pyx_t_4 = PyNumber_Multiply(__pyx_t_8, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1498, __pyx_L1_error)
44482 __Pyx_GOTREF(__pyx_t_4);
44483 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44484 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44485 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_uDir, __pyx_t_4) < 0) __PYX_ERR(0, 1498, __pyx_L1_error)
44486 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44495 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1499, __pyx_L1_error)
44496 __Pyx_GOTREF(__pyx_t_1);
44497 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1499, __pyx_L1_error)
44498 __Pyx_GOTREF(__pyx_t_8);
44499 __pyx_t_3 = PyNumber_Power(__pyx_t_8, __pyx_int_2, Py_None);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1499, __pyx_L1_error)
44500 __Pyx_GOTREF(__pyx_t_3);
44501 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44502 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nu);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1499, __pyx_L1_error)
44503 __Pyx_GOTREF(__pyx_t_8);
44506 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
44507 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
44508 if (likely(__pyx_t_2)) {
44509 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
44510 __Pyx_INCREF(__pyx_t_2);
44511 __Pyx_INCREF(
function);
44512 __Pyx_DECREF_SET(__pyx_t_1,
function);
44516 #if CYTHON_FAST_PYCALL
44517 if (PyFunction_Check(__pyx_t_1)) {
44518 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_8};
44519 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1499, __pyx_L1_error)
44520 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
44521 __Pyx_GOTREF(__pyx_t_4);
44522 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44523 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44526 #if CYTHON_FAST_PYCCALL
44527 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
44528 PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_8};
44529 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1499, __pyx_L1_error)
44530 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
44531 __Pyx_GOTREF(__pyx_t_4);
44532 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44533 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44537 __pyx_t_5 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1499, __pyx_L1_error)
44538 __Pyx_GOTREF(__pyx_t_5);
44540 __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL;
44542 __Pyx_GIVEREF(__pyx_t_3);
44543 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_7, __pyx_t_3);
44544 __Pyx_GIVEREF(__pyx_t_8);
44545 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_7, __pyx_t_8);
44548 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1499, __pyx_L1_error)
44549 __Pyx_GOTREF(__pyx_t_4);
44550 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44552 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44553 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tV);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1499, __pyx_L1_error)
44554 __Pyx_GOTREF(__pyx_t_1);
44555 __pyx_t_5 = PyNumber_Multiply(__pyx_t_4, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1499, __pyx_L1_error)
44556 __Pyx_GOTREF(__pyx_t_5);
44557 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44558 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44559 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gradU, __pyx_t_5) < 0) __PYX_ERR(0, 1499, __pyx_L1_error)
44560 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44580 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1503, __pyx_L1_error)
44581 __Pyx_GOTREF(__pyx_t_1);
44582 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_exp);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1503, __pyx_L1_error)
44583 __Pyx_GOTREF(__pyx_t_4);
44584 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44585 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_B);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1503, __pyx_L1_error)
44586 __Pyx_GOTREF(__pyx_t_1);
44587 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_K);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1503, __pyx_L1_error)
44588 __Pyx_GOTREF(__pyx_t_8);
44589 __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_8);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1503, __pyx_L1_error)
44590 __Pyx_GOTREF(__pyx_t_3);
44591 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44592 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44594 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
44595 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4);
44596 if (likely(__pyx_t_8)) {
44597 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
44598 __Pyx_INCREF(__pyx_t_8);
44599 __Pyx_INCREF(
function);
44600 __Pyx_DECREF_SET(__pyx_t_4,
function);
44603 __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_8, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
44604 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
44605 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44606 if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1503, __pyx_L1_error)
44607 __Pyx_GOTREF(__pyx_t_5);
44608 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44609 __pyx_v_E = __pyx_t_5;
44619 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1504, __pyx_L1_error)
44620 __Pyx_GOTREF(__pyx_t_5);
44621 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1504, __pyx_L1_error)
44622 __Pyx_GOTREF(__pyx_t_3);
44623 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_log);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1504, __pyx_L1_error)
44624 __Pyx_GOTREF(__pyx_t_8);
44625 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44626 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Ystar);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1504, __pyx_L1_error)
44627 __Pyx_GOTREF(__pyx_t_3);
44628 __pyx_t_1 = PyNumber_Multiply(__pyx_v_E, __pyx_t_3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1504, __pyx_L1_error)
44629 __Pyx_GOTREF(__pyx_t_1);
44630 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44632 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
44633 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
44634 if (likely(__pyx_t_3)) {
44635 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
44636 __Pyx_INCREF(__pyx_t_3);
44637 __Pyx_INCREF(
function);
44638 __Pyx_DECREF_SET(__pyx_t_8,
function);
44641 __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1);
44642 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44643 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44644 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1504, __pyx_L1_error)
44645 __Pyx_GOTREF(__pyx_t_4);
44646 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44647 __pyx_t_8 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1504, __pyx_L1_error)
44648 __Pyx_GOTREF(__pyx_t_8);
44649 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44650 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44651 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_K);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1504, __pyx_L1_error)
44652 __Pyx_GOTREF(__pyx_t_4);
44653 __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_8, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1504, __pyx_L1_error)
44654 __Pyx_GOTREF(__pyx_t_5);
44655 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44656 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44657 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Ustar, __pyx_t_5) < 0) __PYX_ERR(0, 1504, __pyx_L1_error)
44658 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44667 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1505, __pyx_L1_error)
44668 __Pyx_GOTREF(__pyx_t_5);
44669 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1505, __pyx_L1_error)
44670 __Pyx_GOTREF(__pyx_t_8);
44671 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1505, __pyx_L1_error)
44672 __Pyx_GOTREF(__pyx_t_1);
44673 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44674 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1505, __pyx_L1_error)
44675 __Pyx_GOTREF(__pyx_t_3);
44676 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Ustar);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1505, __pyx_L1_error)
44677 __Pyx_GOTREF(__pyx_t_2);
44680 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
44681 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
44682 if (likely(__pyx_t_6)) {
44683 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
44684 __Pyx_INCREF(__pyx_t_6);
44685 __Pyx_INCREF(
function);
44686 __Pyx_DECREF_SET(__pyx_t_3,
function);
44690 #if CYTHON_FAST_PYCALL
44691 if (PyFunction_Check(__pyx_t_3)) {
44692 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_Up, __pyx_t_2};
44693 __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1505, __pyx_L1_error)
44694 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
44695 __Pyx_GOTREF(__pyx_t_8);
44696 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44699 #if CYTHON_FAST_PYCCALL
44700 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
44701 PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_Up, __pyx_t_2};
44702 __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1505, __pyx_L1_error)
44703 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
44704 __Pyx_GOTREF(__pyx_t_8);
44705 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
44709 __pyx_t_10 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1505, __pyx_L1_error)
44710 __Pyx_GOTREF(__pyx_t_10);
44712 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL;
44714 __Pyx_INCREF(__pyx_v_Up);
44715 __Pyx_GIVEREF(__pyx_v_Up);
44716 PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_7, __pyx_v_Up);
44717 __Pyx_GIVEREF(__pyx_t_2);
44718 PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_7, __pyx_t_2);
44720 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1505, __pyx_L1_error)
44721 __Pyx_GOTREF(__pyx_t_8);
44722 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
44724 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44726 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
44727 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
44728 if (likely(__pyx_t_3)) {
44729 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
44730 __Pyx_INCREF(__pyx_t_3);
44731 __Pyx_INCREF(
function);
44732 __Pyx_DECREF_SET(__pyx_t_1,
function);
44735 __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_8);
44736 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44737 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44738 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1505, __pyx_L1_error)
44739 __Pyx_GOTREF(__pyx_t_4);
44740 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44741 __pyx_t_1 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1505, __pyx_L1_error)
44742 __Pyx_GOTREF(__pyx_t_1);
44743 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44744 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44745 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_utAbs, __pyx_t_1) < 0) __PYX_ERR(0, 1505, __pyx_L1_error)
44746 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44755 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1507, __pyx_L1_error)
44756 __Pyx_GOTREF(__pyx_t_4);
44757 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utAbs);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1507, __pyx_L1_error)
44758 __Pyx_GOTREF(__pyx_t_5);
44759 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_K);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1507, __pyx_L1_error)
44760 __Pyx_GOTREF(__pyx_t_8);
44761 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1507, __pyx_L1_error)
44762 __Pyx_GOTREF(__pyx_t_3);
44763 __pyx_t_10 = PyNumber_Multiply(__pyx_t_8, __pyx_t_3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1507, __pyx_L1_error)
44764 __Pyx_GOTREF(__pyx_t_10);
44765 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44766 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
44769 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
44770 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
44771 if (likely(__pyx_t_3)) {
44772 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
44773 __Pyx_INCREF(__pyx_t_3);
44774 __Pyx_INCREF(
function);
44775 __Pyx_DECREF_SET(__pyx_t_4,
function);
44779 #if CYTHON_FAST_PYCALL
44780 if (PyFunction_Check(__pyx_t_4)) {
44781 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_10};
44782 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1507, __pyx_L1_error)
44783 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44784 __Pyx_GOTREF(__pyx_t_1);
44785 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44786 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
44789 #if CYTHON_FAST_PYCCALL
44790 if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
44791 PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_t_10};
44792 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1507, __pyx_L1_error)
44793 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
44794 __Pyx_GOTREF(__pyx_t_1);
44795 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
44796 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
44800 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1507, __pyx_L1_error)
44801 __Pyx_GOTREF(__pyx_t_8);
44803 __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); __pyx_t_3 = NULL;
44805 __Pyx_GIVEREF(__pyx_t_5);
44806 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_5);
44807 __Pyx_GIVEREF(__pyx_t_10);
44808 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_10);
44811 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1507, __pyx_L1_error)
44812 __Pyx_GOTREF(__pyx_t_1);
44813 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44815 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44816 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tV);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1507, __pyx_L1_error)
44817 __Pyx_GOTREF(__pyx_t_4);
44818 __pyx_t_8 = PyNumber_Multiply(__pyx_t_1, __pyx_t_4);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1507, __pyx_L1_error)
44819 __Pyx_GOTREF(__pyx_t_8);
44820 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44821 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44822 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_gradU, __pyx_t_8) < 0) __PYX_ERR(0, 1507, __pyx_L1_error)
44823 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44832 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tanU);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1509, __pyx_L1_error)
44833 __Pyx_GOTREF(__pyx_t_8);
44834 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gradU);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1509, __pyx_L1_error)
44835 __Pyx_GOTREF(__pyx_t_4);
44836 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1509, __pyx_L1_error)
44837 __Pyx_GOTREF(__pyx_t_1);
44838 __pyx_t_10 = PyNumber_Multiply(__pyx_t_4, __pyx_t_1);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1509, __pyx_L1_error)
44839 __Pyx_GOTREF(__pyx_t_10);
44840 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
44841 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44842 __pyx_t_1 = PyNumber_Subtract(__pyx_t_8, __pyx_t_10);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1509, __pyx_L1_error)
44843 __Pyx_GOTREF(__pyx_t_1);
44844 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
44845 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
44846 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_uDir, __pyx_t_1) < 0) __PYX_ERR(0, 1509, __pyx_L1_error)
44847 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
44860 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
44863 __Pyx_XDECREF(__pyx_t_1);
44864 __Pyx_XDECREF(__pyx_t_2);
44865 __Pyx_XDECREF(__pyx_t_3);
44866 __Pyx_XDECREF(__pyx_t_4);
44867 __Pyx_XDECREF(__pyx_t_5);
44868 __Pyx_XDECREF(__pyx_t_6);
44869 __Pyx_XDECREF(__pyx_t_8);
44870 __Pyx_XDECREF(__pyx_t_10);
44871 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.getVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
44874 __Pyx_XDECREF(__pyx_v_comm);
44875 __Pyx_XDECREF(__pyx_v_Up);
44876 __Pyx_XDECREF(__pyx_v_E);
44877 __Pyx_XGIVEREF(__pyx_r);
44878 __Pyx_TraceReturn(__pyx_r, 0);
44879 __Pyx_RefNannyFinishContext();
44892 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_27get_u_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
44893 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_26get_u_dirichlet[] =
"WallFunctions.get_u_dirichlet(self, x, t, n)";
44894 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_27get_u_dirichlet = {
"get_u_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_27get_u_dirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_26get_u_dirichlet};
44895 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_27get_u_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
44896 PyObject *__pyx_v_self = 0;
44897 PyObject *__pyx_v_x = 0;
44898 PyObject *__pyx_v_t = 0;
44899 PyObject *__pyx_v_n = 0;
44900 int __pyx_lineno = 0;
44901 const char *__pyx_filename = NULL;
44902 int __pyx_clineno = 0;
44903 PyObject *__pyx_r = 0;
44904 __Pyx_RefNannyDeclarations
44905 __Pyx_RefNannySetupContext(
"get_u_dirichlet (wrapper)", 0);
44907 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
44908 PyObject* values[4] = {0,0,0,0};
44909 if (unlikely(__pyx_kwds)) {
44910 Py_ssize_t kw_args;
44911 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
44912 switch (pos_args) {
44913 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44914 CYTHON_FALLTHROUGH;
44915 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44916 CYTHON_FALLTHROUGH;
44917 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44918 CYTHON_FALLTHROUGH;
44919 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44920 CYTHON_FALLTHROUGH;
44922 default:
goto __pyx_L5_argtuple_error;
44924 kw_args = PyDict_Size(__pyx_kwds);
44925 switch (pos_args) {
44927 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
44928 else goto __pyx_L5_argtuple_error;
44929 CYTHON_FALLTHROUGH;
44931 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
44933 __Pyx_RaiseArgtupleInvalid(
"get_u_dirichlet", 1, 4, 4, 1); __PYX_ERR(0, 1511, __pyx_L3_error)
44935 CYTHON_FALLTHROUGH;
44937 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
44939 __Pyx_RaiseArgtupleInvalid(
"get_u_dirichlet", 1, 4, 4, 2); __PYX_ERR(0, 1511, __pyx_L3_error)
44941 CYTHON_FALLTHROUGH;
44943 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
44945 __Pyx_RaiseArgtupleInvalid(
"get_u_dirichlet", 1, 4, 4, 3); __PYX_ERR(0, 1511, __pyx_L3_error)
44948 if (unlikely(kw_args > 0)) {
44949 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_u_dirichlet") < 0)) __PYX_ERR(0, 1511, __pyx_L3_error)
44951 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
44952 goto __pyx_L5_argtuple_error;
44954 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
44955 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
44956 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
44957 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
44959 __pyx_v_self = values[0];
44960 __pyx_v_x = values[1];
44961 __pyx_v_t = values[2];
44962 __pyx_v_n = values[3];
44964 goto __pyx_L4_argument_unpacking_done;
44965 __pyx_L5_argtuple_error:;
44966 __Pyx_RaiseArgtupleInvalid(
"get_u_dirichlet", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1511, __pyx_L3_error)
44968 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_u_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
44969 __Pyx_RefNannyFinishContext();
44971 __pyx_L4_argument_unpacking_done:;
44972 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_26get_u_dirichlet(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
44975 __Pyx_RefNannyFinishContext();
44979 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_26get_u_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
44981 PyObject *__pyx_r = NULL;
44982 __Pyx_TraceDeclarations
44983 __Pyx_RefNannyDeclarations
44984 PyObject *__pyx_t_1 = NULL;
44986 PyObject *__pyx_t_3 = NULL;
44987 PyObject *__pyx_t_4 = NULL;
44988 PyObject *__pyx_t_5 = NULL;
44990 PyObject *__pyx_t_7 = NULL;
44991 int __pyx_lineno = 0;
44992 const char *__pyx_filename = NULL;
44993 int __pyx_clineno = 0;
44994 __Pyx_TraceFrameInit(__pyx_codeobj__121)
44995 __Pyx_RefNannySetupContext(
"get_u_dirichlet", 0);
44996 __Pyx_TraceCall(
"get_u_dirichlet", __pyx_f[0], 1511, 0, __PYX_ERR(0, 1511, __pyx_L1_error));
45005 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1512, __pyx_L1_error)
45006 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1512, __pyx_L1_error)
45007 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45048 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1516, __pyx_L1_error)
45049 __Pyx_GOTREF(__pyx_t_3);
45050 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1516, __pyx_L1_error)
45051 __Pyx_GOTREF(__pyx_t_4);
45054 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45055 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
45056 if (likely(__pyx_t_5)) {
45057 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45058 __Pyx_INCREF(__pyx_t_5);
45059 __Pyx_INCREF(
function);
45060 __Pyx_DECREF_SET(__pyx_t_3,
function);
45064 #if CYTHON_FAST_PYCALL
45065 if (PyFunction_Check(__pyx_t_3)) {
45066 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45067 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1516, __pyx_L1_error)
45068 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45069 __Pyx_GOTREF(__pyx_t_1);
45070 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45073 #if CYTHON_FAST_PYCCALL
45074 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45075 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45076 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1516, __pyx_L1_error)
45077 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45078 __Pyx_GOTREF(__pyx_t_1);
45079 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45083 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1516, __pyx_L1_error)
45084 __Pyx_GOTREF(__pyx_t_7);
45086 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
45088 __Pyx_INCREF(__pyx_v_x);
45089 __Pyx_GIVEREF(__pyx_v_x);
45090 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
45091 __Pyx_INCREF(__pyx_v_t);
45092 __Pyx_GIVEREF(__pyx_v_t);
45093 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
45094 __Pyx_INCREF(__pyx_v_n);
45095 __Pyx_GIVEREF(__pyx_v_n);
45096 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
45097 __Pyx_GIVEREF(__pyx_t_4);
45098 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
45100 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1516, __pyx_L1_error)
45101 __Pyx_GOTREF(__pyx_t_1);
45102 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
45104 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45105 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45114 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1517, __pyx_L1_error)
45115 __Pyx_GOTREF(__pyx_t_3);
45118 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45119 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
45120 if (likely(__pyx_t_7)) {
45121 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45122 __Pyx_INCREF(__pyx_t_7);
45123 __Pyx_INCREF(
function);
45124 __Pyx_DECREF_SET(__pyx_t_3,
function);
45128 #if CYTHON_FAST_PYCALL
45129 if (PyFunction_Check(__pyx_t_3)) {
45130 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45131 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1517, __pyx_L1_error)
45132 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45133 __Pyx_GOTREF(__pyx_t_1);
45136 #if CYTHON_FAST_PYCCALL
45137 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45138 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45139 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1517, __pyx_L1_error)
45140 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45141 __Pyx_GOTREF(__pyx_t_1);
45145 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1517, __pyx_L1_error)
45146 __Pyx_GOTREF(__pyx_t_4);
45148 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
45150 __Pyx_INCREF(__pyx_v_x);
45151 __Pyx_GIVEREF(__pyx_v_x);
45152 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
45153 __Pyx_INCREF(__pyx_v_t);
45154 __Pyx_GIVEREF(__pyx_v_t);
45155 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
45156 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1517, __pyx_L1_error)
45157 __Pyx_GOTREF(__pyx_t_1);
45158 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45160 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45161 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45170 __Pyx_XDECREF(__pyx_r);
45171 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_uDir);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1518, __pyx_L1_error)
45172 __Pyx_GOTREF(__pyx_t_1);
45173 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1518, __pyx_L1_error)
45174 __Pyx_GOTREF(__pyx_t_3);
45175 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45176 __pyx_r = __pyx_t_3;
45190 __Pyx_XDECREF(__pyx_t_1);
45191 __Pyx_XDECREF(__pyx_t_3);
45192 __Pyx_XDECREF(__pyx_t_4);
45193 __Pyx_XDECREF(__pyx_t_5);
45194 __Pyx_XDECREF(__pyx_t_7);
45195 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_u_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45198 __Pyx_XGIVEREF(__pyx_r);
45199 __Pyx_TraceReturn(__pyx_r, 0);
45200 __Pyx_RefNannyFinishContext();
45213 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_29get_v_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45214 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_28get_v_dirichlet[] =
"WallFunctions.get_v_dirichlet(self, x, t, n)";
45215 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_29get_v_dirichlet = {
"get_v_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_29get_v_dirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_28get_v_dirichlet};
45216 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_29get_v_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45217 PyObject *__pyx_v_self = 0;
45218 PyObject *__pyx_v_x = 0;
45219 PyObject *__pyx_v_t = 0;
45220 PyObject *__pyx_v_n = 0;
45221 int __pyx_lineno = 0;
45222 const char *__pyx_filename = NULL;
45223 int __pyx_clineno = 0;
45224 PyObject *__pyx_r = 0;
45225 __Pyx_RefNannyDeclarations
45226 __Pyx_RefNannySetupContext(
"get_v_dirichlet (wrapper)", 0);
45228 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
45229 PyObject* values[4] = {0,0,0,0};
45230 if (unlikely(__pyx_kwds)) {
45231 Py_ssize_t kw_args;
45232 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45233 switch (pos_args) {
45234 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45235 CYTHON_FALLTHROUGH;
45236 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45237 CYTHON_FALLTHROUGH;
45238 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45239 CYTHON_FALLTHROUGH;
45240 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45241 CYTHON_FALLTHROUGH;
45243 default:
goto __pyx_L5_argtuple_error;
45245 kw_args = PyDict_Size(__pyx_kwds);
45246 switch (pos_args) {
45248 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
45249 else goto __pyx_L5_argtuple_error;
45250 CYTHON_FALLTHROUGH;
45252 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
45254 __Pyx_RaiseArgtupleInvalid(
"get_v_dirichlet", 1, 4, 4, 1); __PYX_ERR(0, 1520, __pyx_L3_error)
45256 CYTHON_FALLTHROUGH;
45258 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
45260 __Pyx_RaiseArgtupleInvalid(
"get_v_dirichlet", 1, 4, 4, 2); __PYX_ERR(0, 1520, __pyx_L3_error)
45262 CYTHON_FALLTHROUGH;
45264 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
45266 __Pyx_RaiseArgtupleInvalid(
"get_v_dirichlet", 1, 4, 4, 3); __PYX_ERR(0, 1520, __pyx_L3_error)
45269 if (unlikely(kw_args > 0)) {
45270 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_v_dirichlet") < 0)) __PYX_ERR(0, 1520, __pyx_L3_error)
45272 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
45273 goto __pyx_L5_argtuple_error;
45275 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45276 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45277 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45278 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45280 __pyx_v_self = values[0];
45281 __pyx_v_x = values[1];
45282 __pyx_v_t = values[2];
45283 __pyx_v_n = values[3];
45285 goto __pyx_L4_argument_unpacking_done;
45286 __pyx_L5_argtuple_error:;
45287 __Pyx_RaiseArgtupleInvalid(
"get_v_dirichlet", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1520, __pyx_L3_error)
45289 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_v_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45290 __Pyx_RefNannyFinishContext();
45292 __pyx_L4_argument_unpacking_done:;
45293 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_28get_v_dirichlet(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
45296 __Pyx_RefNannyFinishContext();
45300 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_28get_v_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
45302 PyObject *__pyx_r = NULL;
45303 __Pyx_TraceDeclarations
45304 __Pyx_RefNannyDeclarations
45305 PyObject *__pyx_t_1 = NULL;
45307 PyObject *__pyx_t_3 = NULL;
45308 PyObject *__pyx_t_4 = NULL;
45309 PyObject *__pyx_t_5 = NULL;
45311 PyObject *__pyx_t_7 = NULL;
45312 int __pyx_lineno = 0;
45313 const char *__pyx_filename = NULL;
45314 int __pyx_clineno = 0;
45315 __Pyx_TraceFrameInit(__pyx_codeobj__122)
45316 __Pyx_RefNannySetupContext(
"get_v_dirichlet", 0);
45317 __Pyx_TraceCall(
"get_v_dirichlet", __pyx_f[0], 1520, 0, __PYX_ERR(0, 1520, __pyx_L1_error));
45326 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1521, __pyx_L1_error)
45327 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1521, __pyx_L1_error)
45328 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45369 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1525, __pyx_L1_error)
45370 __Pyx_GOTREF(__pyx_t_3);
45371 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1525, __pyx_L1_error)
45372 __Pyx_GOTREF(__pyx_t_4);
45375 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45376 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
45377 if (likely(__pyx_t_5)) {
45378 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45379 __Pyx_INCREF(__pyx_t_5);
45380 __Pyx_INCREF(
function);
45381 __Pyx_DECREF_SET(__pyx_t_3,
function);
45385 #if CYTHON_FAST_PYCALL
45386 if (PyFunction_Check(__pyx_t_3)) {
45387 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45388 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1525, __pyx_L1_error)
45389 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45390 __Pyx_GOTREF(__pyx_t_1);
45391 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45394 #if CYTHON_FAST_PYCCALL
45395 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45396 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45397 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1525, __pyx_L1_error)
45398 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45399 __Pyx_GOTREF(__pyx_t_1);
45400 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45404 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1525, __pyx_L1_error)
45405 __Pyx_GOTREF(__pyx_t_7);
45407 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
45409 __Pyx_INCREF(__pyx_v_x);
45410 __Pyx_GIVEREF(__pyx_v_x);
45411 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
45412 __Pyx_INCREF(__pyx_v_t);
45413 __Pyx_GIVEREF(__pyx_v_t);
45414 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
45415 __Pyx_INCREF(__pyx_v_n);
45416 __Pyx_GIVEREF(__pyx_v_n);
45417 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
45418 __Pyx_GIVEREF(__pyx_t_4);
45419 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
45421 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1525, __pyx_L1_error)
45422 __Pyx_GOTREF(__pyx_t_1);
45423 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
45425 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45426 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45435 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1526, __pyx_L1_error)
45436 __Pyx_GOTREF(__pyx_t_3);
45439 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45440 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
45441 if (likely(__pyx_t_7)) {
45442 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45443 __Pyx_INCREF(__pyx_t_7);
45444 __Pyx_INCREF(
function);
45445 __Pyx_DECREF_SET(__pyx_t_3,
function);
45449 #if CYTHON_FAST_PYCALL
45450 if (PyFunction_Check(__pyx_t_3)) {
45451 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45452 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1526, __pyx_L1_error)
45453 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45454 __Pyx_GOTREF(__pyx_t_1);
45457 #if CYTHON_FAST_PYCCALL
45458 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45459 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45460 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1526, __pyx_L1_error)
45461 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45462 __Pyx_GOTREF(__pyx_t_1);
45466 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1526, __pyx_L1_error)
45467 __Pyx_GOTREF(__pyx_t_4);
45469 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
45471 __Pyx_INCREF(__pyx_v_x);
45472 __Pyx_GIVEREF(__pyx_v_x);
45473 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
45474 __Pyx_INCREF(__pyx_v_t);
45475 __Pyx_GIVEREF(__pyx_v_t);
45476 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
45477 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1526, __pyx_L1_error)
45478 __Pyx_GOTREF(__pyx_t_1);
45479 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45481 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45482 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45491 __Pyx_XDECREF(__pyx_r);
45492 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_uDir);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1527, __pyx_L1_error)
45493 __Pyx_GOTREF(__pyx_t_1);
45494 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1527, __pyx_L1_error)
45495 __Pyx_GOTREF(__pyx_t_3);
45496 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45497 __pyx_r = __pyx_t_3;
45511 __Pyx_XDECREF(__pyx_t_1);
45512 __Pyx_XDECREF(__pyx_t_3);
45513 __Pyx_XDECREF(__pyx_t_4);
45514 __Pyx_XDECREF(__pyx_t_5);
45515 __Pyx_XDECREF(__pyx_t_7);
45516 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_v_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45519 __Pyx_XGIVEREF(__pyx_r);
45520 __Pyx_TraceReturn(__pyx_r, 0);
45521 __Pyx_RefNannyFinishContext();
45534 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_31get_w_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45535 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_30get_w_dirichlet[] =
"WallFunctions.get_w_dirichlet(self, x, t, n)";
45536 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_31get_w_dirichlet = {
"get_w_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_31get_w_dirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_30get_w_dirichlet};
45537 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_31get_w_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45538 PyObject *__pyx_v_self = 0;
45539 PyObject *__pyx_v_x = 0;
45540 PyObject *__pyx_v_t = 0;
45541 PyObject *__pyx_v_n = 0;
45542 int __pyx_lineno = 0;
45543 const char *__pyx_filename = NULL;
45544 int __pyx_clineno = 0;
45545 PyObject *__pyx_r = 0;
45546 __Pyx_RefNannyDeclarations
45547 __Pyx_RefNannySetupContext(
"get_w_dirichlet (wrapper)", 0);
45549 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
45550 PyObject* values[4] = {0,0,0,0};
45551 if (unlikely(__pyx_kwds)) {
45552 Py_ssize_t kw_args;
45553 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45554 switch (pos_args) {
45555 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45556 CYTHON_FALLTHROUGH;
45557 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45558 CYTHON_FALLTHROUGH;
45559 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45560 CYTHON_FALLTHROUGH;
45561 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45562 CYTHON_FALLTHROUGH;
45564 default:
goto __pyx_L5_argtuple_error;
45566 kw_args = PyDict_Size(__pyx_kwds);
45567 switch (pos_args) {
45569 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
45570 else goto __pyx_L5_argtuple_error;
45571 CYTHON_FALLTHROUGH;
45573 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
45575 __Pyx_RaiseArgtupleInvalid(
"get_w_dirichlet", 1, 4, 4, 1); __PYX_ERR(0, 1529, __pyx_L3_error)
45577 CYTHON_FALLTHROUGH;
45579 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
45581 __Pyx_RaiseArgtupleInvalid(
"get_w_dirichlet", 1, 4, 4, 2); __PYX_ERR(0, 1529, __pyx_L3_error)
45583 CYTHON_FALLTHROUGH;
45585 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
45587 __Pyx_RaiseArgtupleInvalid(
"get_w_dirichlet", 1, 4, 4, 3); __PYX_ERR(0, 1529, __pyx_L3_error)
45590 if (unlikely(kw_args > 0)) {
45591 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_w_dirichlet") < 0)) __PYX_ERR(0, 1529, __pyx_L3_error)
45593 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
45594 goto __pyx_L5_argtuple_error;
45596 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45597 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45598 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45599 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45601 __pyx_v_self = values[0];
45602 __pyx_v_x = values[1];
45603 __pyx_v_t = values[2];
45604 __pyx_v_n = values[3];
45606 goto __pyx_L4_argument_unpacking_done;
45607 __pyx_L5_argtuple_error:;
45608 __Pyx_RaiseArgtupleInvalid(
"get_w_dirichlet", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1529, __pyx_L3_error)
45610 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_w_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45611 __Pyx_RefNannyFinishContext();
45613 __pyx_L4_argument_unpacking_done:;
45614 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_30get_w_dirichlet(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
45617 __Pyx_RefNannyFinishContext();
45621 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_30get_w_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
45623 PyObject *__pyx_r = NULL;
45624 __Pyx_TraceDeclarations
45625 __Pyx_RefNannyDeclarations
45626 PyObject *__pyx_t_1 = NULL;
45628 PyObject *__pyx_t_3 = NULL;
45629 PyObject *__pyx_t_4 = NULL;
45630 PyObject *__pyx_t_5 = NULL;
45632 PyObject *__pyx_t_7 = NULL;
45633 int __pyx_lineno = 0;
45634 const char *__pyx_filename = NULL;
45635 int __pyx_clineno = 0;
45636 __Pyx_TraceFrameInit(__pyx_codeobj__123)
45637 __Pyx_RefNannySetupContext(
"get_w_dirichlet", 0);
45638 __Pyx_TraceCall(
"get_w_dirichlet", __pyx_f[0], 1529, 0, __PYX_ERR(0, 1529, __pyx_L1_error));
45647 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1530, __pyx_L1_error)
45648 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1530, __pyx_L1_error)
45649 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45690 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1534, __pyx_L1_error)
45691 __Pyx_GOTREF(__pyx_t_3);
45692 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1534, __pyx_L1_error)
45693 __Pyx_GOTREF(__pyx_t_4);
45696 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45697 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
45698 if (likely(__pyx_t_5)) {
45699 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45700 __Pyx_INCREF(__pyx_t_5);
45701 __Pyx_INCREF(
function);
45702 __Pyx_DECREF_SET(__pyx_t_3,
function);
45706 #if CYTHON_FAST_PYCALL
45707 if (PyFunction_Check(__pyx_t_3)) {
45708 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45709 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1534, __pyx_L1_error)
45710 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45711 __Pyx_GOTREF(__pyx_t_1);
45712 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45715 #if CYTHON_FAST_PYCCALL
45716 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45717 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
45718 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1534, __pyx_L1_error)
45719 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
45720 __Pyx_GOTREF(__pyx_t_1);
45721 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45725 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1534, __pyx_L1_error)
45726 __Pyx_GOTREF(__pyx_t_7);
45728 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
45730 __Pyx_INCREF(__pyx_v_x);
45731 __Pyx_GIVEREF(__pyx_v_x);
45732 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
45733 __Pyx_INCREF(__pyx_v_t);
45734 __Pyx_GIVEREF(__pyx_v_t);
45735 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
45736 __Pyx_INCREF(__pyx_v_n);
45737 __Pyx_GIVEREF(__pyx_v_n);
45738 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
45739 __Pyx_GIVEREF(__pyx_t_4);
45740 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
45742 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1534, __pyx_L1_error)
45743 __Pyx_GOTREF(__pyx_t_1);
45744 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
45746 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45747 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45756 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1535, __pyx_L1_error)
45757 __Pyx_GOTREF(__pyx_t_3);
45760 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
45761 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
45762 if (likely(__pyx_t_7)) {
45763 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
45764 __Pyx_INCREF(__pyx_t_7);
45765 __Pyx_INCREF(
function);
45766 __Pyx_DECREF_SET(__pyx_t_3,
function);
45770 #if CYTHON_FAST_PYCALL
45771 if (PyFunction_Check(__pyx_t_3)) {
45772 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45773 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1535, __pyx_L1_error)
45774 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45775 __Pyx_GOTREF(__pyx_t_1);
45778 #if CYTHON_FAST_PYCCALL
45779 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
45780 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
45781 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1535, __pyx_L1_error)
45782 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
45783 __Pyx_GOTREF(__pyx_t_1);
45787 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1535, __pyx_L1_error)
45788 __Pyx_GOTREF(__pyx_t_4);
45790 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
45792 __Pyx_INCREF(__pyx_v_x);
45793 __Pyx_GIVEREF(__pyx_v_x);
45794 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
45795 __Pyx_INCREF(__pyx_v_t);
45796 __Pyx_GIVEREF(__pyx_v_t);
45797 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
45798 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1535, __pyx_L1_error)
45799 __Pyx_GOTREF(__pyx_t_1);
45800 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
45802 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
45803 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45812 __Pyx_XDECREF(__pyx_r);
45813 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_uDir);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1536, __pyx_L1_error)
45814 __Pyx_GOTREF(__pyx_t_1);
45815 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1536, __pyx_L1_error)
45816 __Pyx_GOTREF(__pyx_t_3);
45817 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
45818 __pyx_r = __pyx_t_3;
45832 __Pyx_XDECREF(__pyx_t_1);
45833 __Pyx_XDECREF(__pyx_t_3);
45834 __Pyx_XDECREF(__pyx_t_4);
45835 __Pyx_XDECREF(__pyx_t_5);
45836 __Pyx_XDECREF(__pyx_t_7);
45837 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_w_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45840 __Pyx_XGIVEREF(__pyx_r);
45841 __Pyx_TraceReturn(__pyx_r, 0);
45842 __Pyx_RefNannyFinishContext();
45855 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_33get_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
45856 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_32get_k_dirichlet[] =
"WallFunctions.get_k_dirichlet(self, x, t, n)";
45857 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_33get_k_dirichlet = {
"get_k_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_33get_k_dirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_32get_k_dirichlet};
45858 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_33get_k_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
45859 PyObject *__pyx_v_self = 0;
45860 PyObject *__pyx_v_x = 0;
45861 PyObject *__pyx_v_t = 0;
45862 PyObject *__pyx_v_n = 0;
45863 int __pyx_lineno = 0;
45864 const char *__pyx_filename = NULL;
45865 int __pyx_clineno = 0;
45866 PyObject *__pyx_r = 0;
45867 __Pyx_RefNannyDeclarations
45868 __Pyx_RefNannySetupContext(
"get_k_dirichlet (wrapper)", 0);
45870 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
45871 PyObject* values[4] = {0,0,0,0};
45872 if (unlikely(__pyx_kwds)) {
45873 Py_ssize_t kw_args;
45874 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
45875 switch (pos_args) {
45876 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45877 CYTHON_FALLTHROUGH;
45878 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45879 CYTHON_FALLTHROUGH;
45880 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45881 CYTHON_FALLTHROUGH;
45882 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45883 CYTHON_FALLTHROUGH;
45885 default:
goto __pyx_L5_argtuple_error;
45887 kw_args = PyDict_Size(__pyx_kwds);
45888 switch (pos_args) {
45890 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
45891 else goto __pyx_L5_argtuple_error;
45892 CYTHON_FALLTHROUGH;
45894 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
45896 __Pyx_RaiseArgtupleInvalid(
"get_k_dirichlet", 1, 4, 4, 1); __PYX_ERR(0, 1538, __pyx_L3_error)
45898 CYTHON_FALLTHROUGH;
45900 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
45902 __Pyx_RaiseArgtupleInvalid(
"get_k_dirichlet", 1, 4, 4, 2); __PYX_ERR(0, 1538, __pyx_L3_error)
45904 CYTHON_FALLTHROUGH;
45906 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
45908 __Pyx_RaiseArgtupleInvalid(
"get_k_dirichlet", 1, 4, 4, 3); __PYX_ERR(0, 1538, __pyx_L3_error)
45911 if (unlikely(kw_args > 0)) {
45912 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_k_dirichlet") < 0)) __PYX_ERR(0, 1538, __pyx_L3_error)
45914 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
45915 goto __pyx_L5_argtuple_error;
45917 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
45918 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
45919 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
45920 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
45922 __pyx_v_self = values[0];
45923 __pyx_v_x = values[1];
45924 __pyx_v_t = values[2];
45925 __pyx_v_n = values[3];
45927 goto __pyx_L4_argument_unpacking_done;
45928 __pyx_L5_argtuple_error:;
45929 __Pyx_RaiseArgtupleInvalid(
"get_k_dirichlet", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1538, __pyx_L3_error)
45931 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
45932 __Pyx_RefNannyFinishContext();
45934 __pyx_L4_argument_unpacking_done:;
45935 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_32get_k_dirichlet(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
45938 __Pyx_RefNannyFinishContext();
45942 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_32get_k_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
45944 PyObject *__pyx_r = NULL;
45945 __Pyx_TraceDeclarations
45946 __Pyx_RefNannyDeclarations
45947 PyObject *__pyx_t_1 = NULL;
45949 PyObject *__pyx_t_3 = NULL;
45950 PyObject *__pyx_t_4 = NULL;
45951 PyObject *__pyx_t_5 = NULL;
45953 PyObject *__pyx_t_7 = NULL;
45954 int __pyx_lineno = 0;
45955 const char *__pyx_filename = NULL;
45956 int __pyx_clineno = 0;
45957 __Pyx_TraceFrameInit(__pyx_codeobj__124)
45958 __Pyx_RefNannySetupContext(
"get_k_dirichlet", 0);
45959 __Pyx_TraceCall(
"get_k_dirichlet", __pyx_f[0], 1538, 0, __PYX_ERR(0, 1538, __pyx_L1_error));
45968 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1539, __pyx_L1_error)
45969 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1539, __pyx_L1_error)
45970 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46011 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1543, __pyx_L1_error)
46012 __Pyx_GOTREF(__pyx_t_3);
46013 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1543, __pyx_L1_error)
46014 __Pyx_GOTREF(__pyx_t_4);
46017 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46018 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
46019 if (likely(__pyx_t_5)) {
46020 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46021 __Pyx_INCREF(__pyx_t_5);
46022 __Pyx_INCREF(
function);
46023 __Pyx_DECREF_SET(__pyx_t_3,
function);
46027 #if CYTHON_FAST_PYCALL
46028 if (PyFunction_Check(__pyx_t_3)) {
46029 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46030 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
46031 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46032 __Pyx_GOTREF(__pyx_t_1);
46033 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46036 #if CYTHON_FAST_PYCCALL
46037 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46038 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46039 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
46040 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46041 __Pyx_GOTREF(__pyx_t_1);
46042 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46046 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1543, __pyx_L1_error)
46047 __Pyx_GOTREF(__pyx_t_7);
46049 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
46051 __Pyx_INCREF(__pyx_v_x);
46052 __Pyx_GIVEREF(__pyx_v_x);
46053 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
46054 __Pyx_INCREF(__pyx_v_t);
46055 __Pyx_GIVEREF(__pyx_v_t);
46056 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
46057 __Pyx_INCREF(__pyx_v_n);
46058 __Pyx_GIVEREF(__pyx_v_n);
46059 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
46060 __Pyx_GIVEREF(__pyx_t_4);
46061 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
46063 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1543, __pyx_L1_error)
46064 __Pyx_GOTREF(__pyx_t_1);
46065 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46067 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46068 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46077 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1544, __pyx_L1_error)
46078 __Pyx_GOTREF(__pyx_t_3);
46081 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46082 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
46083 if (likely(__pyx_t_7)) {
46084 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46085 __Pyx_INCREF(__pyx_t_7);
46086 __Pyx_INCREF(
function);
46087 __Pyx_DECREF_SET(__pyx_t_3,
function);
46091 #if CYTHON_FAST_PYCALL
46092 if (PyFunction_Check(__pyx_t_3)) {
46093 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46094 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1544, __pyx_L1_error)
46095 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46096 __Pyx_GOTREF(__pyx_t_1);
46099 #if CYTHON_FAST_PYCCALL
46100 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46101 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46102 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1544, __pyx_L1_error)
46103 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46104 __Pyx_GOTREF(__pyx_t_1);
46108 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1544, __pyx_L1_error)
46109 __Pyx_GOTREF(__pyx_t_4);
46111 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
46113 __Pyx_INCREF(__pyx_v_x);
46114 __Pyx_GIVEREF(__pyx_v_x);
46115 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
46116 __Pyx_INCREF(__pyx_v_t);
46117 __Pyx_GIVEREF(__pyx_v_t);
46118 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
46119 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1544, __pyx_L1_error)
46120 __Pyx_GOTREF(__pyx_t_1);
46121 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46123 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46124 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46133 __Pyx_XDECREF(__pyx_r);
46134 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappa);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1545, __pyx_L1_error)
46135 __Pyx_GOTREF(__pyx_t_1);
46136 __pyx_r = __pyx_t_1;
46150 __Pyx_XDECREF(__pyx_t_1);
46151 __Pyx_XDECREF(__pyx_t_3);
46152 __Pyx_XDECREF(__pyx_t_4);
46153 __Pyx_XDECREF(__pyx_t_5);
46154 __Pyx_XDECREF(__pyx_t_7);
46155 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_k_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
46158 __Pyx_XGIVEREF(__pyx_r);
46159 __Pyx_TraceReturn(__pyx_r, 0);
46160 __Pyx_RefNannyFinishContext();
46173 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_35get_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46174 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_34get_dissipation_dirichlet[] =
"WallFunctions.get_dissipation_dirichlet(self, x, t, n)";
46175 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_35get_dissipation_dirichlet = {
"get_dissipation_dirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_35get_dissipation_dirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_34get_dissipation_dirichlet};
46176 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_35get_dissipation_dirichlet(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46177 PyObject *__pyx_v_self = 0;
46178 PyObject *__pyx_v_x = 0;
46179 PyObject *__pyx_v_t = 0;
46180 PyObject *__pyx_v_n = 0;
46181 int __pyx_lineno = 0;
46182 const char *__pyx_filename = NULL;
46183 int __pyx_clineno = 0;
46184 PyObject *__pyx_r = 0;
46185 __Pyx_RefNannyDeclarations
46186 __Pyx_RefNannySetupContext(
"get_dissipation_dirichlet (wrapper)", 0);
46188 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
46189 PyObject* values[4] = {0,0,0,0};
46190 if (unlikely(__pyx_kwds)) {
46191 Py_ssize_t kw_args;
46192 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46193 switch (pos_args) {
46194 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46195 CYTHON_FALLTHROUGH;
46196 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46197 CYTHON_FALLTHROUGH;
46198 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46199 CYTHON_FALLTHROUGH;
46200 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46201 CYTHON_FALLTHROUGH;
46203 default:
goto __pyx_L5_argtuple_error;
46205 kw_args = PyDict_Size(__pyx_kwds);
46206 switch (pos_args) {
46208 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
46209 else goto __pyx_L5_argtuple_error;
46210 CYTHON_FALLTHROUGH;
46212 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
46214 __Pyx_RaiseArgtupleInvalid(
"get_dissipation_dirichlet", 1, 4, 4, 1); __PYX_ERR(0, 1547, __pyx_L3_error)
46216 CYTHON_FALLTHROUGH;
46218 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
46220 __Pyx_RaiseArgtupleInvalid(
"get_dissipation_dirichlet", 1, 4, 4, 2); __PYX_ERR(0, 1547, __pyx_L3_error)
46222 CYTHON_FALLTHROUGH;
46224 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
46226 __Pyx_RaiseArgtupleInvalid(
"get_dissipation_dirichlet", 1, 4, 4, 3); __PYX_ERR(0, 1547, __pyx_L3_error)
46229 if (unlikely(kw_args > 0)) {
46230 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_dissipation_dirichlet") < 0)) __PYX_ERR(0, 1547, __pyx_L3_error)
46232 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
46233 goto __pyx_L5_argtuple_error;
46235 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46236 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46237 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46238 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46240 __pyx_v_self = values[0];
46241 __pyx_v_x = values[1];
46242 __pyx_v_t = values[2];
46243 __pyx_v_n = values[3];
46245 goto __pyx_L4_argument_unpacking_done;
46246 __pyx_L5_argtuple_error:;
46247 __Pyx_RaiseArgtupleInvalid(
"get_dissipation_dirichlet", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1547, __pyx_L3_error)
46249 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
46250 __Pyx_RefNannyFinishContext();
46252 __pyx_L4_argument_unpacking_done:;
46253 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_34get_dissipation_dirichlet(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
46256 __Pyx_RefNannyFinishContext();
46260 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_34get_dissipation_dirichlet(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
46262 PyObject *__pyx_v_d = NULL;
46263 PyObject *__pyx_r = NULL;
46264 __Pyx_TraceDeclarations
46265 __Pyx_RefNannyDeclarations
46266 PyObject *__pyx_t_1 = NULL;
46268 PyObject *__pyx_t_3 = NULL;
46269 PyObject *__pyx_t_4 = NULL;
46270 PyObject *__pyx_t_5 = NULL;
46272 PyObject *__pyx_t_7 = NULL;
46273 PyObject *__pyx_t_8 = NULL;
46275 int __pyx_lineno = 0;
46276 const char *__pyx_filename = NULL;
46277 int __pyx_clineno = 0;
46278 __Pyx_TraceFrameInit(__pyx_codeobj__125)
46279 __Pyx_RefNannySetupContext(
"get_dissipation_dirichlet", 0);
46280 __Pyx_TraceCall(
"get_dissipation_dirichlet", __pyx_f[0], 1547, 0, __PYX_ERR(0, 1547, __pyx_L1_error));
46289 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1548, __pyx_L1_error)
46290 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1548, __pyx_L1_error)
46291 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46332 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1552, __pyx_L1_error)
46333 __Pyx_GOTREF(__pyx_t_3);
46334 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1552, __pyx_L1_error)
46335 __Pyx_GOTREF(__pyx_t_4);
46338 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46339 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
46340 if (likely(__pyx_t_5)) {
46341 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46342 __Pyx_INCREF(__pyx_t_5);
46343 __Pyx_INCREF(
function);
46344 __Pyx_DECREF_SET(__pyx_t_3,
function);
46348 #if CYTHON_FAST_PYCALL
46349 if (PyFunction_Check(__pyx_t_3)) {
46350 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46351 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1552, __pyx_L1_error)
46352 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46353 __Pyx_GOTREF(__pyx_t_1);
46354 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46357 #if CYTHON_FAST_PYCCALL
46358 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46359 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46360 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1552, __pyx_L1_error)
46361 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46362 __Pyx_GOTREF(__pyx_t_1);
46363 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46367 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1552, __pyx_L1_error)
46368 __Pyx_GOTREF(__pyx_t_7);
46370 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
46372 __Pyx_INCREF(__pyx_v_x);
46373 __Pyx_GIVEREF(__pyx_v_x);
46374 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
46375 __Pyx_INCREF(__pyx_v_t);
46376 __Pyx_GIVEREF(__pyx_v_t);
46377 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
46378 __Pyx_INCREF(__pyx_v_n);
46379 __Pyx_GIVEREF(__pyx_v_n);
46380 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
46381 __Pyx_GIVEREF(__pyx_t_4);
46382 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
46384 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1552, __pyx_L1_error)
46385 __Pyx_GOTREF(__pyx_t_1);
46386 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46388 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46389 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46398 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1553, __pyx_L1_error)
46399 __Pyx_GOTREF(__pyx_t_3);
46402 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46403 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
46404 if (likely(__pyx_t_7)) {
46405 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46406 __Pyx_INCREF(__pyx_t_7);
46407 __Pyx_INCREF(
function);
46408 __Pyx_DECREF_SET(__pyx_t_3,
function);
46412 #if CYTHON_FAST_PYCALL
46413 if (PyFunction_Check(__pyx_t_3)) {
46414 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46415 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L1_error)
46416 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46417 __Pyx_GOTREF(__pyx_t_1);
46420 #if CYTHON_FAST_PYCCALL
46421 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46422 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46423 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L1_error)
46424 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46425 __Pyx_GOTREF(__pyx_t_1);
46429 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1553, __pyx_L1_error)
46430 __Pyx_GOTREF(__pyx_t_4);
46432 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
46434 __Pyx_INCREF(__pyx_v_x);
46435 __Pyx_GIVEREF(__pyx_v_x);
46436 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
46437 __Pyx_INCREF(__pyx_v_t);
46438 __Pyx_GIVEREF(__pyx_v_t);
46439 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
46440 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L1_error)
46441 __Pyx_GOTREF(__pyx_t_1);
46442 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46444 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46445 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46454 __Pyx_INCREF(__pyx_float_0_);
46455 __pyx_v_d = __pyx_float_0_;
46464 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_turbModel);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1555, __pyx_L1_error)
46465 __Pyx_GOTREF(__pyx_t_1);
46466 __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_ke, Py_EQ));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1555, __pyx_L1_error)
46467 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46477 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1556, __pyx_L1_error)
46478 __Pyx_GOTREF(__pyx_t_3);
46479 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_utStar);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1556, __pyx_L1_error)
46480 __Pyx_GOTREF(__pyx_t_4);
46481 __pyx_t_7 = PyNumber_Power(__pyx_t_4, __pyx_int_3, Py_None);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1556, __pyx_L1_error)
46482 __Pyx_GOTREF(__pyx_t_7);
46483 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46484 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_K);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1556, __pyx_L1_error)
46485 __Pyx_GOTREF(__pyx_t_4);
46486 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1556, __pyx_L1_error)
46487 __Pyx_GOTREF(__pyx_t_5);
46488 __pyx_t_8 = PyNumber_Multiply(__pyx_t_4, __pyx_t_5);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1556, __pyx_L1_error)
46489 __Pyx_GOTREF(__pyx_t_8);
46490 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46491 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
46494 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
46495 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
46496 if (likely(__pyx_t_5)) {
46497 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46498 __Pyx_INCREF(__pyx_t_5);
46499 __Pyx_INCREF(
function);
46500 __Pyx_DECREF_SET(__pyx_t_3,
function);
46504 #if CYTHON_FAST_PYCALL
46505 if (PyFunction_Check(__pyx_t_3)) {
46506 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_7, __pyx_t_8};
46507 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1556, __pyx_L1_error)
46508 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46509 __Pyx_GOTREF(__pyx_t_1);
46510 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46511 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46514 #if CYTHON_FAST_PYCCALL
46515 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46516 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_7, __pyx_t_8};
46517 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1556, __pyx_L1_error)
46518 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46519 __Pyx_GOTREF(__pyx_t_1);
46520 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46521 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46525 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1556, __pyx_L1_error)
46526 __Pyx_GOTREF(__pyx_t_4);
46528 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
46530 __Pyx_GIVEREF(__pyx_t_7);
46531 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_t_7);
46532 __Pyx_GIVEREF(__pyx_t_8);
46533 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_t_8);
46536 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1556, __pyx_L1_error)
46537 __Pyx_GOTREF(__pyx_t_1);
46538 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46540 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46541 __Pyx_DECREF_SET(__pyx_v_d, __pyx_t_1);
46561 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_turbModel);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1557, __pyx_L1_error)
46562 __Pyx_GOTREF(__pyx_t_1);
46563 __pyx_t_9 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_kw, Py_EQ));
if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 1557, __pyx_L1_error)
46564 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46567 __pyx_t_2 = __pyx_t_9;
46568 goto __pyx_L5_bool_binop_done;
46570 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappa);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1557, __pyx_L1_error)
46571 __Pyx_GOTREF(__pyx_t_1);
46572 __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1557, __pyx_L1_error)
46573 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46574 __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 1557, __pyx_L1_error)
46575 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46576 __pyx_t_2 = __pyx_t_9;
46577 __pyx_L5_bool_binop_done:;
46587 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1558, __pyx_L1_error)
46588 __Pyx_GOTREF(__pyx_t_1);
46589 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1558, __pyx_L1_error)
46590 __Pyx_GOTREF(__pyx_t_8);
46591 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1558, __pyx_L1_error)
46592 __Pyx_GOTREF(__pyx_t_7);
46593 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46594 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1558, __pyx_L1_error)
46595 __Pyx_GOTREF(__pyx_t_8);
46597 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
46598 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7);
46599 if (likely(__pyx_t_5)) {
46600 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
46601 __Pyx_INCREF(__pyx_t_5);
46602 __Pyx_INCREF(
function);
46603 __Pyx_DECREF_SET(__pyx_t_7,
function);
46606 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
46607 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46608 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46609 if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1558, __pyx_L1_error)
46610 __Pyx_GOTREF(__pyx_t_4);
46611 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46612 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_K);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1558, __pyx_L1_error)
46613 __Pyx_GOTREF(__pyx_t_7);
46614 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1558, __pyx_L1_error)
46615 __Pyx_GOTREF(__pyx_t_8);
46616 __pyx_t_5 = PyNumber_Multiply(__pyx_t_7, __pyx_t_8);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1558, __pyx_L1_error)
46617 __Pyx_GOTREF(__pyx_t_5);
46618 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46619 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46620 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Cmu);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1558, __pyx_L1_error)
46621 __Pyx_GOTREF(__pyx_t_8);
46622 __pyx_t_7 = PyNumber_Power(__pyx_t_8, __pyx_float_0_25, Py_None);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1558, __pyx_L1_error)
46623 __Pyx_GOTREF(__pyx_t_7);
46624 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46625 __pyx_t_8 = PyNumber_Multiply(__pyx_t_5, __pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1558, __pyx_L1_error)
46626 __Pyx_GOTREF(__pyx_t_8);
46627 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
46628 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46631 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
46632 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
46633 if (likely(__pyx_t_7)) {
46634 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
46635 __Pyx_INCREF(__pyx_t_7);
46636 __Pyx_INCREF(
function);
46637 __Pyx_DECREF_SET(__pyx_t_1,
function);
46641 #if CYTHON_FAST_PYCALL
46642 if (PyFunction_Check(__pyx_t_1)) {
46643 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_8};
46644 __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1558, __pyx_L1_error)
46645 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46646 __Pyx_GOTREF(__pyx_t_3);
46647 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46648 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46651 #if CYTHON_FAST_PYCCALL
46652 if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
46653 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_8};
46654 __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1558, __pyx_L1_error)
46655 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46656 __Pyx_GOTREF(__pyx_t_3);
46657 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46658 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
46662 __pyx_t_5 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1558, __pyx_L1_error)
46663 __Pyx_GOTREF(__pyx_t_5);
46665 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); __pyx_t_7 = NULL;
46667 __Pyx_GIVEREF(__pyx_t_4);
46668 PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_t_4);
46669 __Pyx_GIVEREF(__pyx_t_8);
46670 PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_t_8);
46673 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1558, __pyx_L1_error)
46674 __Pyx_GOTREF(__pyx_t_3);
46675 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
46677 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46678 __Pyx_DECREF_SET(__pyx_v_d, __pyx_t_3);
46698 __Pyx_XDECREF(__pyx_r);
46699 __Pyx_INCREF(__pyx_v_d);
46700 __pyx_r = __pyx_v_d;
46713 __Pyx_XDECREF(__pyx_t_1);
46714 __Pyx_XDECREF(__pyx_t_3);
46715 __Pyx_XDECREF(__pyx_t_4);
46716 __Pyx_XDECREF(__pyx_t_5);
46717 __Pyx_XDECREF(__pyx_t_7);
46718 __Pyx_XDECREF(__pyx_t_8);
46719 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_dissipation_dirichlet", __pyx_clineno, __pyx_lineno, __pyx_filename);
46722 __Pyx_XDECREF(__pyx_v_d);
46723 __Pyx_XGIVEREF(__pyx_r);
46724 __Pyx_TraceReturn(__pyx_r, 0);
46725 __Pyx_RefNannyFinishContext();
46738 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_37get_u_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
46739 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_36get_u_diffusive[] =
"WallFunctions.get_u_diffusive(self, x, t, n)";
46740 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_37get_u_diffusive = {
"get_u_diffusive", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_37get_u_diffusive, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_36get_u_diffusive};
46741 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_37get_u_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
46742 PyObject *__pyx_v_self = 0;
46743 PyObject *__pyx_v_x = 0;
46744 PyObject *__pyx_v_t = 0;
46745 PyObject *__pyx_v_n = 0;
46746 int __pyx_lineno = 0;
46747 const char *__pyx_filename = NULL;
46748 int __pyx_clineno = 0;
46749 PyObject *__pyx_r = 0;
46750 __Pyx_RefNannyDeclarations
46751 __Pyx_RefNannySetupContext(
"get_u_diffusive (wrapper)", 0);
46753 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
46754 PyObject* values[4] = {0,0,0,0};
46755 if (unlikely(__pyx_kwds)) {
46756 Py_ssize_t kw_args;
46757 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
46758 switch (pos_args) {
46759 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46760 CYTHON_FALLTHROUGH;
46761 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46762 CYTHON_FALLTHROUGH;
46763 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46764 CYTHON_FALLTHROUGH;
46765 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46766 CYTHON_FALLTHROUGH;
46768 default:
goto __pyx_L5_argtuple_error;
46770 kw_args = PyDict_Size(__pyx_kwds);
46771 switch (pos_args) {
46773 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
46774 else goto __pyx_L5_argtuple_error;
46775 CYTHON_FALLTHROUGH;
46777 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
46779 __Pyx_RaiseArgtupleInvalid(
"get_u_diffusive", 1, 4, 4, 1); __PYX_ERR(0, 1561, __pyx_L3_error)
46781 CYTHON_FALLTHROUGH;
46783 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
46785 __Pyx_RaiseArgtupleInvalid(
"get_u_diffusive", 1, 4, 4, 2); __PYX_ERR(0, 1561, __pyx_L3_error)
46787 CYTHON_FALLTHROUGH;
46789 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
46791 __Pyx_RaiseArgtupleInvalid(
"get_u_diffusive", 1, 4, 4, 3); __PYX_ERR(0, 1561, __pyx_L3_error)
46794 if (unlikely(kw_args > 0)) {
46795 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_u_diffusive") < 0)) __PYX_ERR(0, 1561, __pyx_L3_error)
46797 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
46798 goto __pyx_L5_argtuple_error;
46800 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
46801 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
46802 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
46803 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
46805 __pyx_v_self = values[0];
46806 __pyx_v_x = values[1];
46807 __pyx_v_t = values[2];
46808 __pyx_v_n = values[3];
46810 goto __pyx_L4_argument_unpacking_done;
46811 __pyx_L5_argtuple_error:;
46812 __Pyx_RaiseArgtupleInvalid(
"get_u_diffusive", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1561, __pyx_L3_error)
46814 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_u_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
46815 __Pyx_RefNannyFinishContext();
46817 __pyx_L4_argument_unpacking_done:;
46818 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_36get_u_diffusive(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
46821 __Pyx_RefNannyFinishContext();
46825 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_36get_u_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
46827 PyObject *__pyx_v_gradU = NULL;
46828 PyObject *__pyx_r = NULL;
46829 __Pyx_TraceDeclarations
46830 __Pyx_RefNannyDeclarations
46831 PyObject *__pyx_t_1 = NULL;
46833 PyObject *__pyx_t_3 = NULL;
46834 PyObject *__pyx_t_4 = NULL;
46835 PyObject *__pyx_t_5 = NULL;
46837 PyObject *__pyx_t_7 = NULL;
46838 int __pyx_lineno = 0;
46839 const char *__pyx_filename = NULL;
46840 int __pyx_clineno = 0;
46841 __Pyx_TraceFrameInit(__pyx_codeobj__126)
46842 __Pyx_RefNannySetupContext(
"get_u_diffusive", 0);
46843 __Pyx_TraceCall(
"get_u_diffusive", __pyx_f[0], 1561, 0, __PYX_ERR(0, 1561, __pyx_L1_error));
46852 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1562, __pyx_L1_error)
46853 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1562, __pyx_L1_error)
46854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46895 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1566, __pyx_L1_error)
46896 __Pyx_GOTREF(__pyx_t_3);
46897 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1566, __pyx_L1_error)
46898 __Pyx_GOTREF(__pyx_t_4);
46901 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46902 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
46903 if (likely(__pyx_t_5)) {
46904 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46905 __Pyx_INCREF(__pyx_t_5);
46906 __Pyx_INCREF(
function);
46907 __Pyx_DECREF_SET(__pyx_t_3,
function);
46911 #if CYTHON_FAST_PYCALL
46912 if (PyFunction_Check(__pyx_t_3)) {
46913 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46914 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1566, __pyx_L1_error)
46915 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46916 __Pyx_GOTREF(__pyx_t_1);
46917 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46920 #if CYTHON_FAST_PYCCALL
46921 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46922 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
46923 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1566, __pyx_L1_error)
46924 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
46925 __Pyx_GOTREF(__pyx_t_1);
46926 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
46930 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1566, __pyx_L1_error)
46931 __Pyx_GOTREF(__pyx_t_7);
46933 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
46935 __Pyx_INCREF(__pyx_v_x);
46936 __Pyx_GIVEREF(__pyx_v_x);
46937 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
46938 __Pyx_INCREF(__pyx_v_t);
46939 __Pyx_GIVEREF(__pyx_v_t);
46940 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
46941 __Pyx_INCREF(__pyx_v_n);
46942 __Pyx_GIVEREF(__pyx_v_n);
46943 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
46944 __Pyx_GIVEREF(__pyx_t_4);
46945 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
46947 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1566, __pyx_L1_error)
46948 __Pyx_GOTREF(__pyx_t_1);
46949 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
46951 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
46952 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
46961 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1567, __pyx_L1_error)
46962 __Pyx_GOTREF(__pyx_t_3);
46965 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
46966 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
46967 if (likely(__pyx_t_7)) {
46968 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
46969 __Pyx_INCREF(__pyx_t_7);
46970 __Pyx_INCREF(
function);
46971 __Pyx_DECREF_SET(__pyx_t_3,
function);
46975 #if CYTHON_FAST_PYCALL
46976 if (PyFunction_Check(__pyx_t_3)) {
46977 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46978 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1567, __pyx_L1_error)
46979 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46980 __Pyx_GOTREF(__pyx_t_1);
46983 #if CYTHON_FAST_PYCCALL
46984 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
46985 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
46986 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1567, __pyx_L1_error)
46987 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
46988 __Pyx_GOTREF(__pyx_t_1);
46992 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1567, __pyx_L1_error)
46993 __Pyx_GOTREF(__pyx_t_4);
46995 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
46997 __Pyx_INCREF(__pyx_v_x);
46998 __Pyx_GIVEREF(__pyx_v_x);
46999 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
47000 __Pyx_INCREF(__pyx_v_t);
47001 __Pyx_GIVEREF(__pyx_v_t);
47002 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
47003 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1567, __pyx_L1_error)
47004 __Pyx_GOTREF(__pyx_t_1);
47005 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47007 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47008 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47017 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gradU);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1568, __pyx_L1_error)
47018 __Pyx_GOTREF(__pyx_t_1);
47019 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1568, __pyx_L1_error)
47020 __Pyx_GOTREF(__pyx_t_3);
47021 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47022 __pyx_v_gradU = __pyx_t_3;
47032 __Pyx_XDECREF(__pyx_r);
47033 __Pyx_INCREF(__pyx_v_gradU);
47034 __pyx_r = __pyx_v_gradU;
47047 __Pyx_XDECREF(__pyx_t_1);
47048 __Pyx_XDECREF(__pyx_t_3);
47049 __Pyx_XDECREF(__pyx_t_4);
47050 __Pyx_XDECREF(__pyx_t_5);
47051 __Pyx_XDECREF(__pyx_t_7);
47052 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_u_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
47055 __Pyx_XDECREF(__pyx_v_gradU);
47056 __Pyx_XGIVEREF(__pyx_r);
47057 __Pyx_TraceReturn(__pyx_r, 0);
47058 __Pyx_RefNannyFinishContext();
47071 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_39get_v_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47072 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_38get_v_diffusive[] =
"WallFunctions.get_v_diffusive(self, x, t, n)";
47073 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_39get_v_diffusive = {
"get_v_diffusive", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_39get_v_diffusive, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_38get_v_diffusive};
47074 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_39get_v_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47075 PyObject *__pyx_v_self = 0;
47076 PyObject *__pyx_v_x = 0;
47077 PyObject *__pyx_v_t = 0;
47078 PyObject *__pyx_v_n = 0;
47079 int __pyx_lineno = 0;
47080 const char *__pyx_filename = NULL;
47081 int __pyx_clineno = 0;
47082 PyObject *__pyx_r = 0;
47083 __Pyx_RefNannyDeclarations
47084 __Pyx_RefNannySetupContext(
"get_v_diffusive (wrapper)", 0);
47086 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
47087 PyObject* values[4] = {0,0,0,0};
47088 if (unlikely(__pyx_kwds)) {
47089 Py_ssize_t kw_args;
47090 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47091 switch (pos_args) {
47092 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47093 CYTHON_FALLTHROUGH;
47094 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47095 CYTHON_FALLTHROUGH;
47096 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47097 CYTHON_FALLTHROUGH;
47098 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47099 CYTHON_FALLTHROUGH;
47101 default:
goto __pyx_L5_argtuple_error;
47103 kw_args = PyDict_Size(__pyx_kwds);
47104 switch (pos_args) {
47106 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
47107 else goto __pyx_L5_argtuple_error;
47108 CYTHON_FALLTHROUGH;
47110 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
47112 __Pyx_RaiseArgtupleInvalid(
"get_v_diffusive", 1, 4, 4, 1); __PYX_ERR(0, 1571, __pyx_L3_error)
47114 CYTHON_FALLTHROUGH;
47116 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
47118 __Pyx_RaiseArgtupleInvalid(
"get_v_diffusive", 1, 4, 4, 2); __PYX_ERR(0, 1571, __pyx_L3_error)
47120 CYTHON_FALLTHROUGH;
47122 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
47124 __Pyx_RaiseArgtupleInvalid(
"get_v_diffusive", 1, 4, 4, 3); __PYX_ERR(0, 1571, __pyx_L3_error)
47127 if (unlikely(kw_args > 0)) {
47128 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_v_diffusive") < 0)) __PYX_ERR(0, 1571, __pyx_L3_error)
47130 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
47131 goto __pyx_L5_argtuple_error;
47133 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47134 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47135 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47136 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47138 __pyx_v_self = values[0];
47139 __pyx_v_x = values[1];
47140 __pyx_v_t = values[2];
47141 __pyx_v_n = values[3];
47143 goto __pyx_L4_argument_unpacking_done;
47144 __pyx_L5_argtuple_error:;
47145 __Pyx_RaiseArgtupleInvalid(
"get_v_diffusive", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1571, __pyx_L3_error)
47147 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_v_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
47148 __Pyx_RefNannyFinishContext();
47150 __pyx_L4_argument_unpacking_done:;
47151 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_38get_v_diffusive(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
47154 __Pyx_RefNannyFinishContext();
47158 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_38get_v_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
47160 PyObject *__pyx_v_gradU = NULL;
47161 PyObject *__pyx_r = NULL;
47162 __Pyx_TraceDeclarations
47163 __Pyx_RefNannyDeclarations
47164 PyObject *__pyx_t_1 = NULL;
47166 PyObject *__pyx_t_3 = NULL;
47167 PyObject *__pyx_t_4 = NULL;
47168 PyObject *__pyx_t_5 = NULL;
47170 PyObject *__pyx_t_7 = NULL;
47171 int __pyx_lineno = 0;
47172 const char *__pyx_filename = NULL;
47173 int __pyx_clineno = 0;
47174 __Pyx_TraceFrameInit(__pyx_codeobj__127)
47175 __Pyx_RefNannySetupContext(
"get_v_diffusive", 0);
47176 __Pyx_TraceCall(
"get_v_diffusive", __pyx_f[0], 1571, 0, __PYX_ERR(0, 1571, __pyx_L1_error));
47185 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1572, __pyx_L1_error)
47186 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1572, __pyx_L1_error)
47187 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47228 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1576, __pyx_L1_error)
47229 __Pyx_GOTREF(__pyx_t_3);
47230 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1576, __pyx_L1_error)
47231 __Pyx_GOTREF(__pyx_t_4);
47234 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
47235 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
47236 if (likely(__pyx_t_5)) {
47237 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
47238 __Pyx_INCREF(__pyx_t_5);
47239 __Pyx_INCREF(
function);
47240 __Pyx_DECREF_SET(__pyx_t_3,
function);
47244 #if CYTHON_FAST_PYCALL
47245 if (PyFunction_Check(__pyx_t_3)) {
47246 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
47247 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1576, __pyx_L1_error)
47248 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47249 __Pyx_GOTREF(__pyx_t_1);
47250 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47253 #if CYTHON_FAST_PYCCALL
47254 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
47255 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
47256 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1576, __pyx_L1_error)
47257 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47258 __Pyx_GOTREF(__pyx_t_1);
47259 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47263 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1576, __pyx_L1_error)
47264 __Pyx_GOTREF(__pyx_t_7);
47266 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
47268 __Pyx_INCREF(__pyx_v_x);
47269 __Pyx_GIVEREF(__pyx_v_x);
47270 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
47271 __Pyx_INCREF(__pyx_v_t);
47272 __Pyx_GIVEREF(__pyx_v_t);
47273 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
47274 __Pyx_INCREF(__pyx_v_n);
47275 __Pyx_GIVEREF(__pyx_v_n);
47276 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
47277 __Pyx_GIVEREF(__pyx_t_4);
47278 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
47280 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1576, __pyx_L1_error)
47281 __Pyx_GOTREF(__pyx_t_1);
47282 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47284 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47285 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47294 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1577, __pyx_L1_error)
47295 __Pyx_GOTREF(__pyx_t_3);
47298 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
47299 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
47300 if (likely(__pyx_t_7)) {
47301 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
47302 __Pyx_INCREF(__pyx_t_7);
47303 __Pyx_INCREF(
function);
47304 __Pyx_DECREF_SET(__pyx_t_3,
function);
47308 #if CYTHON_FAST_PYCALL
47309 if (PyFunction_Check(__pyx_t_3)) {
47310 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
47311 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L1_error)
47312 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47313 __Pyx_GOTREF(__pyx_t_1);
47316 #if CYTHON_FAST_PYCCALL
47317 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
47318 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
47319 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L1_error)
47320 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47321 __Pyx_GOTREF(__pyx_t_1);
47325 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1577, __pyx_L1_error)
47326 __Pyx_GOTREF(__pyx_t_4);
47328 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
47330 __Pyx_INCREF(__pyx_v_x);
47331 __Pyx_GIVEREF(__pyx_v_x);
47332 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
47333 __Pyx_INCREF(__pyx_v_t);
47334 __Pyx_GIVEREF(__pyx_v_t);
47335 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
47336 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L1_error)
47337 __Pyx_GOTREF(__pyx_t_1);
47338 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47340 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47341 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47350 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gradU);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1578, __pyx_L1_error)
47351 __Pyx_GOTREF(__pyx_t_1);
47352 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1578, __pyx_L1_error)
47353 __Pyx_GOTREF(__pyx_t_3);
47354 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47355 __pyx_v_gradU = __pyx_t_3;
47365 __Pyx_XDECREF(__pyx_r);
47366 __Pyx_INCREF(__pyx_v_gradU);
47367 __pyx_r = __pyx_v_gradU;
47380 __Pyx_XDECREF(__pyx_t_1);
47381 __Pyx_XDECREF(__pyx_t_3);
47382 __Pyx_XDECREF(__pyx_t_4);
47383 __Pyx_XDECREF(__pyx_t_5);
47384 __Pyx_XDECREF(__pyx_t_7);
47385 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_v_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
47388 __Pyx_XDECREF(__pyx_v_gradU);
47389 __Pyx_XGIVEREF(__pyx_r);
47390 __Pyx_TraceReturn(__pyx_r, 0);
47391 __Pyx_RefNannyFinishContext();
47404 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_41get_w_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47405 static char __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_40get_w_diffusive[] =
"WallFunctions.get_w_diffusive(self, x, t, n)";
47406 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_41get_w_diffusive = {
"get_w_diffusive", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_41get_w_diffusive, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_13WallFunctions_40get_w_diffusive};
47407 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_13WallFunctions_41get_w_diffusive(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47408 PyObject *__pyx_v_self = 0;
47409 PyObject *__pyx_v_x = 0;
47410 PyObject *__pyx_v_t = 0;
47411 PyObject *__pyx_v_n = 0;
47412 int __pyx_lineno = 0;
47413 const char *__pyx_filename = NULL;
47414 int __pyx_clineno = 0;
47415 PyObject *__pyx_r = 0;
47416 __Pyx_RefNannyDeclarations
47417 __Pyx_RefNannySetupContext(
"get_w_diffusive (wrapper)", 0);
47419 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_n,0};
47420 PyObject* values[4] = {0,0,0,0};
47421 if (unlikely(__pyx_kwds)) {
47422 Py_ssize_t kw_args;
47423 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47424 switch (pos_args) {
47425 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47426 CYTHON_FALLTHROUGH;
47427 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47428 CYTHON_FALLTHROUGH;
47429 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47430 CYTHON_FALLTHROUGH;
47431 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47432 CYTHON_FALLTHROUGH;
47434 default:
goto __pyx_L5_argtuple_error;
47436 kw_args = PyDict_Size(__pyx_kwds);
47437 switch (pos_args) {
47439 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
47440 else goto __pyx_L5_argtuple_error;
47441 CYTHON_FALLTHROUGH;
47443 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
47445 __Pyx_RaiseArgtupleInvalid(
"get_w_diffusive", 1, 4, 4, 1); __PYX_ERR(0, 1581, __pyx_L3_error)
47447 CYTHON_FALLTHROUGH;
47449 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
47451 __Pyx_RaiseArgtupleInvalid(
"get_w_diffusive", 1, 4, 4, 2); __PYX_ERR(0, 1581, __pyx_L3_error)
47453 CYTHON_FALLTHROUGH;
47455 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
47457 __Pyx_RaiseArgtupleInvalid(
"get_w_diffusive", 1, 4, 4, 3); __PYX_ERR(0, 1581, __pyx_L3_error)
47460 if (unlikely(kw_args > 0)) {
47461 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"get_w_diffusive") < 0)) __PYX_ERR(0, 1581, __pyx_L3_error)
47463 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
47464 goto __pyx_L5_argtuple_error;
47466 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47467 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47468 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47469 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47471 __pyx_v_self = values[0];
47472 __pyx_v_x = values[1];
47473 __pyx_v_t = values[2];
47474 __pyx_v_n = values[3];
47476 goto __pyx_L4_argument_unpacking_done;
47477 __pyx_L5_argtuple_error:;
47478 __Pyx_RaiseArgtupleInvalid(
"get_w_diffusive", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1581, __pyx_L3_error)
47480 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_w_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
47481 __Pyx_RefNannyFinishContext();
47483 __pyx_L4_argument_unpacking_done:;
47484 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_40get_w_diffusive(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_n);
47487 __Pyx_RefNannyFinishContext();
47491 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_13WallFunctions_40get_w_diffusive(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_n) {
47493 PyObject *__pyx_v_gradU = NULL;
47494 PyObject *__pyx_r = NULL;
47495 __Pyx_TraceDeclarations
47496 __Pyx_RefNannyDeclarations
47497 PyObject *__pyx_t_1 = NULL;
47499 PyObject *__pyx_t_3 = NULL;
47500 PyObject *__pyx_t_4 = NULL;
47501 PyObject *__pyx_t_5 = NULL;
47503 PyObject *__pyx_t_7 = NULL;
47504 int __pyx_lineno = 0;
47505 const char *__pyx_filename = NULL;
47506 int __pyx_clineno = 0;
47507 __Pyx_TraceFrameInit(__pyx_codeobj__128)
47508 __Pyx_RefNannySetupContext(
"get_w_diffusive", 0);
47509 __Pyx_TraceCall(
"get_w_diffusive", __pyx_f[0], 1581, 0, __PYX_ERR(0, 1581, __pyx_L1_error));
47518 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1582, __pyx_L1_error)
47519 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1582, __pyx_L1_error)
47520 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47561 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_tangentialVelocity);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1586, __pyx_L1_error)
47562 __Pyx_GOTREF(__pyx_t_3);
47563 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_uInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1586, __pyx_L1_error)
47564 __Pyx_GOTREF(__pyx_t_4);
47567 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
47568 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
47569 if (likely(__pyx_t_5)) {
47570 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
47571 __Pyx_INCREF(__pyx_t_5);
47572 __Pyx_INCREF(
function);
47573 __Pyx_DECREF_SET(__pyx_t_3,
function);
47577 #if CYTHON_FAST_PYCALL
47578 if (PyFunction_Check(__pyx_t_3)) {
47579 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
47580 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1586, __pyx_L1_error)
47581 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47582 __Pyx_GOTREF(__pyx_t_1);
47583 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47586 #if CYTHON_FAST_PYCCALL
47587 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
47588 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_x, __pyx_v_t, __pyx_v_n, __pyx_t_4};
47589 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1586, __pyx_L1_error)
47590 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
47591 __Pyx_GOTREF(__pyx_t_1);
47592 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47596 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1586, __pyx_L1_error)
47597 __Pyx_GOTREF(__pyx_t_7);
47599 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
47601 __Pyx_INCREF(__pyx_v_x);
47602 __Pyx_GIVEREF(__pyx_v_x);
47603 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_x);
47604 __Pyx_INCREF(__pyx_v_t);
47605 __Pyx_GIVEREF(__pyx_v_t);
47606 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_t);
47607 __Pyx_INCREF(__pyx_v_n);
47608 __Pyx_GIVEREF(__pyx_v_n);
47609 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_n);
47610 __Pyx_GIVEREF(__pyx_t_4);
47611 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
47613 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1586, __pyx_L1_error)
47614 __Pyx_GOTREF(__pyx_t_1);
47615 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
47617 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47618 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47627 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getVariables);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1587, __pyx_L1_error)
47628 __Pyx_GOTREF(__pyx_t_3);
47631 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
47632 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
47633 if (likely(__pyx_t_7)) {
47634 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
47635 __Pyx_INCREF(__pyx_t_7);
47636 __Pyx_INCREF(
function);
47637 __Pyx_DECREF_SET(__pyx_t_3,
function);
47641 #if CYTHON_FAST_PYCALL
47642 if (PyFunction_Check(__pyx_t_3)) {
47643 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
47644 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1587, __pyx_L1_error)
47645 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47646 __Pyx_GOTREF(__pyx_t_1);
47649 #if CYTHON_FAST_PYCCALL
47650 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
47651 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_x, __pyx_v_t};
47652 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1587, __pyx_L1_error)
47653 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
47654 __Pyx_GOTREF(__pyx_t_1);
47658 __pyx_t_4 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1587, __pyx_L1_error)
47659 __Pyx_GOTREF(__pyx_t_4);
47661 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
47663 __Pyx_INCREF(__pyx_v_x);
47664 __Pyx_GIVEREF(__pyx_v_x);
47665 PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_6, __pyx_v_x);
47666 __Pyx_INCREF(__pyx_v_t);
47667 __Pyx_GIVEREF(__pyx_v_t);
47668 PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_6, __pyx_v_t);
47669 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1587, __pyx_L1_error)
47670 __Pyx_GOTREF(__pyx_t_1);
47671 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
47673 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
47674 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47683 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_gradU);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1588, __pyx_L1_error)
47684 __Pyx_GOTREF(__pyx_t_1);
47685 __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 2,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1588, __pyx_L1_error)
47686 __Pyx_GOTREF(__pyx_t_3);
47687 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
47688 __pyx_v_gradU = __pyx_t_3;
47698 __Pyx_XDECREF(__pyx_r);
47699 __Pyx_INCREF(__pyx_v_gradU);
47700 __pyx_r = __pyx_v_gradU;
47713 __Pyx_XDECREF(__pyx_t_1);
47714 __Pyx_XDECREF(__pyx_t_3);
47715 __Pyx_XDECREF(__pyx_t_4);
47716 __Pyx_XDECREF(__pyx_t_5);
47717 __Pyx_XDECREF(__pyx_t_7);
47718 __Pyx_AddTraceback(
"mprans.BoundaryConditions.WallFunctions.get_w_diffusive", __pyx_clineno, __pyx_lineno, __pyx_filename);
47721 __Pyx_XDECREF(__pyx_v_gradU);
47722 __Pyx_XGIVEREF(__pyx_r);
47723 __Pyx_TraceReturn(__pyx_r, 0);
47724 __Pyx_RefNannyFinishContext();
47737 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47738 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall___init__[] =
"kWall.__init__(self, Y, Yplus, nu=1.004e-6, Cmu=0.09)\n\n Sets turbulent boundaries for wall treatment.\n ";
47739 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_1__init__ = {
"__init__", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall___init__};
47740 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47741 PyObject *__pyx_v_self = 0;
47742 PyObject *__pyx_v_Y = 0;
47743 PyObject *__pyx_v_Yplus = 0;
47744 PyObject *__pyx_v_nu = 0;
47745 PyObject *__pyx_v_Cmu = 0;
47746 int __pyx_lineno = 0;
47747 const char *__pyx_filename = NULL;
47748 int __pyx_clineno = 0;
47749 PyObject *__pyx_r = 0;
47750 __Pyx_RefNannyDeclarations
47751 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
47753 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_Y,&__pyx_n_s_Yplus,&__pyx_n_s_nu,&__pyx_n_s_Cmu,0};
47754 PyObject* values[5] = {0,0,0,0,0};
47755 values[3] = ((PyObject *)((PyObject*)__pyx_float_1_004eneg_6));
47756 values[4] = ((PyObject *)((PyObject*)__pyx_float_0_09));
47757 if (unlikely(__pyx_kwds)) {
47758 Py_ssize_t kw_args;
47759 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47760 switch (pos_args) {
47761 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47762 CYTHON_FALLTHROUGH;
47763 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47764 CYTHON_FALLTHROUGH;
47765 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47766 CYTHON_FALLTHROUGH;
47767 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47768 CYTHON_FALLTHROUGH;
47769 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47770 CYTHON_FALLTHROUGH;
47772 default:
goto __pyx_L5_argtuple_error;
47774 kw_args = PyDict_Size(__pyx_kwds);
47775 switch (pos_args) {
47777 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
47778 else goto __pyx_L5_argtuple_error;
47779 CYTHON_FALLTHROUGH;
47781 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Y)) != 0)) kw_args--;
47783 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 3, 5, 1); __PYX_ERR(0, 1598, __pyx_L3_error)
47785 CYTHON_FALLTHROUGH;
47787 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Yplus)) != 0)) kw_args--;
47789 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 3, 5, 2); __PYX_ERR(0, 1598, __pyx_L3_error)
47791 CYTHON_FALLTHROUGH;
47794 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nu);
47795 if (value) { values[3] = value; kw_args--; }
47797 CYTHON_FALLTHROUGH;
47800 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Cmu);
47801 if (value) { values[4] = value; kw_args--; }
47804 if (unlikely(kw_args > 0)) {
47805 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 1598, __pyx_L3_error)
47808 switch (PyTuple_GET_SIZE(__pyx_args)) {
47809 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
47810 CYTHON_FALLTHROUGH;
47811 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
47812 CYTHON_FALLTHROUGH;
47813 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47814 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47815 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47817 default:
goto __pyx_L5_argtuple_error;
47820 __pyx_v_self = values[0];
47821 __pyx_v_Y = values[1];
47822 __pyx_v_Yplus = values[2];
47823 __pyx_v_nu = values[3];
47824 __pyx_v_Cmu = values[4];
47826 goto __pyx_L4_argument_unpacking_done;
47827 __pyx_L5_argtuple_error:;
47828 __Pyx_RaiseArgtupleInvalid(
"__init__", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1598, __pyx_L3_error)
47830 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
47831 __Pyx_RefNannyFinishContext();
47833 __pyx_L4_argument_unpacking_done:;
47834 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall___init__(__pyx_self, __pyx_v_self, __pyx_v_Y, __pyx_v_Yplus, __pyx_v_nu, __pyx_v_Cmu);
47837 __Pyx_RefNannyFinishContext();
47841 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_Y, PyObject *__pyx_v_Yplus, PyObject *__pyx_v_nu, PyObject *__pyx_v_Cmu) {
47842 PyObject *__pyx_r = NULL;
47843 __Pyx_TraceDeclarations
47844 __Pyx_RefNannyDeclarations
47845 int __pyx_lineno = 0;
47846 const char *__pyx_filename = NULL;
47847 int __pyx_clineno = 0;
47848 __Pyx_TraceFrameInit(__pyx_codeobj__129)
47849 __Pyx_RefNannySetupContext(
"__init__", 0);
47850 __Pyx_TraceCall(
"__init__", __pyx_f[0], 1598, 0, __PYX_ERR(0, 1598, __pyx_L1_error));
47859 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kappa, __pyx_float_1eneg_10) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
47868 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Y, __pyx_v_Y) < 0) __PYX_ERR(0, 1603, __pyx_L1_error)
47877 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Yplus, __pyx_v_Yplus) < 0) __PYX_ERR(0, 1604, __pyx_L1_error)
47886 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nu, __pyx_v_nu) < 0) __PYX_ERR(0, 1605, __pyx_L1_error)
47895 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_model, Py_None) < 0) __PYX_ERR(0, 1606, __pyx_L1_error)
47904 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Cmu, __pyx_v_Cmu) < 0) __PYX_ERR(0, 1607, __pyx_L1_error)
47915 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
47918 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
47921 __Pyx_XGIVEREF(__pyx_r);
47922 __Pyx_TraceReturn(__pyx_r, 0);
47923 __Pyx_RefNannyFinishContext();
47936 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_3attachModel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
47937 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_2attachModel[] =
"kWall.attachModel(self, model, ar)\n\n Attaches model to auxiliary variable\n ";
47938 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_3attachModel = {
"attachModel", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_3attachModel, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall_2attachModel};
47939 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_3attachModel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
47940 PyObject *__pyx_v_self = 0;
47941 PyObject *__pyx_v_model = 0;
47942 PyObject *__pyx_v_ar = 0;
47943 int __pyx_lineno = 0;
47944 const char *__pyx_filename = NULL;
47945 int __pyx_clineno = 0;
47946 PyObject *__pyx_r = 0;
47947 __Pyx_RefNannyDeclarations
47948 __Pyx_RefNannySetupContext(
"attachModel (wrapper)", 0);
47950 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_model,&__pyx_n_s_ar,0};
47951 PyObject* values[3] = {0,0,0};
47952 if (unlikely(__pyx_kwds)) {
47953 Py_ssize_t kw_args;
47954 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
47955 switch (pos_args) {
47956 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47957 CYTHON_FALLTHROUGH;
47958 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47959 CYTHON_FALLTHROUGH;
47960 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47961 CYTHON_FALLTHROUGH;
47963 default:
goto __pyx_L5_argtuple_error;
47965 kw_args = PyDict_Size(__pyx_kwds);
47966 switch (pos_args) {
47968 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
47969 else goto __pyx_L5_argtuple_error;
47970 CYTHON_FALLTHROUGH;
47972 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_model)) != 0)) kw_args--;
47974 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, 1); __PYX_ERR(0, 1609, __pyx_L3_error)
47976 CYTHON_FALLTHROUGH;
47978 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ar)) != 0)) kw_args--;
47980 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, 2); __PYX_ERR(0, 1609, __pyx_L3_error)
47983 if (unlikely(kw_args > 0)) {
47984 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"attachModel") < 0)) __PYX_ERR(0, 1609, __pyx_L3_error)
47986 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
47987 goto __pyx_L5_argtuple_error;
47989 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
47990 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
47991 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
47993 __pyx_v_self = values[0];
47994 __pyx_v_model = values[1];
47995 __pyx_v_ar = values[2];
47997 goto __pyx_L4_argument_unpacking_done;
47998 __pyx_L5_argtuple_error:;
47999 __Pyx_RaiseArgtupleInvalid(
"attachModel", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1609, __pyx_L3_error)
48001 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
48002 __Pyx_RefNannyFinishContext();
48004 __pyx_L4_argument_unpacking_done:;
48005 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_2attachModel(__pyx_self, __pyx_v_self, __pyx_v_model, __pyx_v_ar);
48008 __Pyx_RefNannyFinishContext();
48012 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_2attachModel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_model, PyObject *__pyx_v_ar) {
48013 PyObject *__pyx_r = NULL;
48014 __Pyx_TraceDeclarations
48015 __Pyx_RefNannyDeclarations
48016 PyObject *__pyx_t_1 = NULL;
48017 PyObject *__pyx_t_2 = NULL;
48018 int __pyx_lineno = 0;
48019 const char *__pyx_filename = NULL;
48020 int __pyx_clineno = 0;
48021 __Pyx_TraceFrameInit(__pyx_codeobj__130)
48022 __Pyx_RefNannySetupContext(
"attachModel", 0);
48023 __Pyx_TraceCall(
"attachModel", __pyx_f[0], 1609, 0, __PYX_ERR(0, 1609, __pyx_L1_error));
48032 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_model, __pyx_v_model) < 0) __PYX_ERR(0, 1613, __pyx_L1_error)
48041 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ar, __pyx_v_ar) < 0) __PYX_ERR(0, 1614, __pyx_L1_error)
48050 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_model, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
48051 __Pyx_GOTREF(__pyx_t_1);
48052 __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1615, __pyx_L1_error)
48053 __Pyx_GOTREF(__pyx_t_2);
48054 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48055 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_nSpace_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
48056 __Pyx_GOTREF(__pyx_t_1);
48057 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48058 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nd, __pyx_t_1) < 0) __PYX_ERR(0, 1615, __pyx_L1_error)
48059 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48068 __Pyx_XDECREF(__pyx_r);
48069 __Pyx_INCREF(__pyx_v_self);
48070 __pyx_r = __pyx_v_self;
48083 __Pyx_XDECREF(__pyx_t_1);
48084 __Pyx_XDECREF(__pyx_t_2);
48085 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.attachModel", __pyx_clineno, __pyx_lineno, __pyx_filename);
48088 __Pyx_XGIVEREF(__pyx_r);
48089 __Pyx_TraceReturn(__pyx_r, 0);
48090 __Pyx_RefNannyFinishContext();
48103 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_5attachAuxiliaryVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48104 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_4attachAuxiliaryVariables[] =
"kWall.attachAuxiliaryVariables(self, avDict)";
48105 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_5attachAuxiliaryVariables = {
"attachAuxiliaryVariables", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_5attachAuxiliaryVariables, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall_4attachAuxiliaryVariables};
48106 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_5attachAuxiliaryVariables(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48107 CYTHON_UNUSED PyObject *__pyx_v_self = 0;
48108 CYTHON_UNUSED PyObject *__pyx_v_avDict = 0;
48109 int __pyx_lineno = 0;
48110 const char *__pyx_filename = NULL;
48111 int __pyx_clineno = 0;
48112 PyObject *__pyx_r = 0;
48113 __Pyx_RefNannyDeclarations
48114 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables (wrapper)", 0);
48116 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_avDict,0};
48117 PyObject* values[2] = {0,0};
48118 if (unlikely(__pyx_kwds)) {
48119 Py_ssize_t kw_args;
48120 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48121 switch (pos_args) {
48122 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48123 CYTHON_FALLTHROUGH;
48124 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48125 CYTHON_FALLTHROUGH;
48127 default:
goto __pyx_L5_argtuple_error;
48129 kw_args = PyDict_Size(__pyx_kwds);
48130 switch (pos_args) {
48132 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
48133 else goto __pyx_L5_argtuple_error;
48134 CYTHON_FALLTHROUGH;
48136 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_avDict)) != 0)) kw_args--;
48138 __Pyx_RaiseArgtupleInvalid(
"attachAuxiliaryVariables", 1, 2, 2, 1); __PYX_ERR(0, 1618, __pyx_L3_error)
48141 if (unlikely(kw_args > 0)) {
48142 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"attachAuxiliaryVariables") < 0)) __PYX_ERR(0, 1618, __pyx_L3_error)
48144 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
48145 goto __pyx_L5_argtuple_error;
48147 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48148 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48150 __pyx_v_self = values[0];
48151 __pyx_v_avDict = values[1];
48153 goto __pyx_L4_argument_unpacking_done;
48154 __pyx_L5_argtuple_error:;
48155 __Pyx_RaiseArgtupleInvalid(
"attachAuxiliaryVariables", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1618, __pyx_L3_error)
48157 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.attachAuxiliaryVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
48158 __Pyx_RefNannyFinishContext();
48160 __pyx_L4_argument_unpacking_done:;
48161 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_4attachAuxiliaryVariables(__pyx_self, __pyx_v_self, __pyx_v_avDict);
48164 __Pyx_RefNannyFinishContext();
48168 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_4attachAuxiliaryVariables(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_avDict) {
48169 PyObject *__pyx_r = NULL;
48170 __Pyx_TraceDeclarations
48171 __Pyx_RefNannyDeclarations
48172 int __pyx_lineno = 0;
48173 const char *__pyx_filename = NULL;
48174 int __pyx_clineno = 0;
48175 __Pyx_TraceFrameInit(__pyx_codeobj__131)
48176 __Pyx_RefNannySetupContext(
"attachAuxiliaryVariables", 0);
48177 __Pyx_TraceCall(
"attachAuxiliaryVariables", __pyx_f[0], 1618, 0, __PYX_ERR(0, 1618, __pyx_L1_error));
48180 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48183 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.attachAuxiliaryVariables", __pyx_clineno, __pyx_lineno, __pyx_filename);
48186 __Pyx_XGIVEREF(__pyx_r);
48187 __Pyx_TraceReturn(__pyx_r, 0);
48188 __Pyx_RefNannyFinishContext();
48201 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_7calculate_init(PyObject *__pyx_self, PyObject *__pyx_v_self);
48202 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_6calculate_init[] =
"kWall.calculate_init(self)";
48203 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_7calculate_init = {
"calculate_init", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_5kWall_7calculate_init, METH_O, __pyx_doc_6mprans_18BoundaryConditions_5kWall_6calculate_init};
48204 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_7calculate_init(PyObject *__pyx_self, PyObject *__pyx_v_self) {
48205 PyObject *__pyx_r = 0;
48206 __Pyx_RefNannyDeclarations
48207 __Pyx_RefNannySetupContext(
"calculate_init (wrapper)", 0);
48208 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_6calculate_init(__pyx_self, ((PyObject *)__pyx_v_self));
48211 __Pyx_RefNannyFinishContext();
48215 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_6calculate_init(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
48216 PyObject *__pyx_r = NULL;
48217 __Pyx_TraceDeclarations
48218 __Pyx_RefNannyDeclarations
48219 int __pyx_lineno = 0;
48220 const char *__pyx_filename = NULL;
48221 int __pyx_clineno = 0;
48222 __Pyx_TraceFrameInit(__pyx_codeobj__132)
48223 __Pyx_RefNannySetupContext(
"calculate_init", 0);
48224 __Pyx_TraceCall(
"calculate_init", __pyx_f[0], 1621, 0, __PYX_ERR(0, 1621, __pyx_L1_error));
48227 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48230 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.calculate_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
48233 __Pyx_XGIVEREF(__pyx_r);
48234 __Pyx_TraceReturn(__pyx_r, 0);
48235 __Pyx_RefNannyFinishContext();
48248 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_9calculate(PyObject *__pyx_self, PyObject *__pyx_v_self);
48249 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_8calculate[] =
"kWall.calculate(self)";
48250 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_9calculate = {
"calculate", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_5kWall_9calculate, METH_O, __pyx_doc_6mprans_18BoundaryConditions_5kWall_8calculate};
48251 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_9calculate(PyObject *__pyx_self, PyObject *__pyx_v_self) {
48252 PyObject *__pyx_r = 0;
48253 __Pyx_RefNannyDeclarations
48254 __Pyx_RefNannySetupContext(
"calculate (wrapper)", 0);
48255 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_8calculate(__pyx_self, ((PyObject *)__pyx_v_self));
48258 __Pyx_RefNannyFinishContext();
48262 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_8calculate(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
48263 PyObject *__pyx_r = NULL;
48264 __Pyx_TraceDeclarations
48265 __Pyx_RefNannyDeclarations
48266 int __pyx_lineno = 0;
48267 const char *__pyx_filename = NULL;
48268 int __pyx_clineno = 0;
48269 __Pyx_TraceFrameInit(__pyx_codeobj__133)
48270 __Pyx_RefNannySetupContext(
"calculate", 0);
48271 __Pyx_TraceCall(
"calculate", __pyx_f[0], 1624, 0, __PYX_ERR(0, 1624, __pyx_L1_error));
48274 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48277 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.calculate", __pyx_clineno, __pyx_lineno, __pyx_filename);
48280 __Pyx_XGIVEREF(__pyx_r);
48281 __Pyx_TraceReturn(__pyx_r, 0);
48282 __Pyx_RefNannyFinishContext();
48295 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_11getFluidKappaLocalCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48296 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_10getFluidKappaLocalCoords[] =
"kWall.getFluidKappaLocalCoords(self, xi, element, rank)\n\n\n Parameters\n ----------\n xi:\n local coords in element\n element: int\n element number (local to processor 'rank')\n rank: int\n rank of processor owning the element\n ";
48297 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_11getFluidKappaLocalCoords = {
"getFluidKappaLocalCoords", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_11getFluidKappaLocalCoords, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall_10getFluidKappaLocalCoords};
48298 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_11getFluidKappaLocalCoords(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48299 PyObject *__pyx_v_self = 0;
48300 PyObject *__pyx_v_xi = 0;
48301 PyObject *__pyx_v_element = 0;
48302 PyObject *__pyx_v_rank = 0;
48303 int __pyx_lineno = 0;
48304 const char *__pyx_filename = NULL;
48305 int __pyx_clineno = 0;
48306 PyObject *__pyx_r = 0;
48307 __Pyx_RefNannyDeclarations
48308 __Pyx_RefNannySetupContext(
"getFluidKappaLocalCoords (wrapper)", 0);
48310 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_xi,&__pyx_n_s_element,&__pyx_n_s_rank,0};
48311 PyObject* values[4] = {0,0,0,0};
48312 if (unlikely(__pyx_kwds)) {
48313 Py_ssize_t kw_args;
48314 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48315 switch (pos_args) {
48316 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48317 CYTHON_FALLTHROUGH;
48318 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48319 CYTHON_FALLTHROUGH;
48320 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48321 CYTHON_FALLTHROUGH;
48322 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48323 CYTHON_FALLTHROUGH;
48325 default:
goto __pyx_L5_argtuple_error;
48327 kw_args = PyDict_Size(__pyx_kwds);
48328 switch (pos_args) {
48330 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
48331 else goto __pyx_L5_argtuple_error;
48332 CYTHON_FALLTHROUGH;
48334 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xi)) != 0)) kw_args--;
48336 __Pyx_RaiseArgtupleInvalid(
"getFluidKappaLocalCoords", 1, 4, 4, 1); __PYX_ERR(0, 1627, __pyx_L3_error)
48338 CYTHON_FALLTHROUGH;
48340 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
48342 __Pyx_RaiseArgtupleInvalid(
"getFluidKappaLocalCoords", 1, 4, 4, 2); __PYX_ERR(0, 1627, __pyx_L3_error)
48344 CYTHON_FALLTHROUGH;
48346 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
48348 __Pyx_RaiseArgtupleInvalid(
"getFluidKappaLocalCoords", 1, 4, 4, 3); __PYX_ERR(0, 1627, __pyx_L3_error)
48351 if (unlikely(kw_args > 0)) {
48352 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getFluidKappaLocalCoords") < 0)) __PYX_ERR(0, 1627, __pyx_L3_error)
48354 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
48355 goto __pyx_L5_argtuple_error;
48357 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48358 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48359 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48360 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48362 __pyx_v_self = values[0];
48363 __pyx_v_xi = values[1];
48364 __pyx_v_element = values[2];
48365 __pyx_v_rank = values[3];
48367 goto __pyx_L4_argument_unpacking_done;
48368 __pyx_L5_argtuple_error:;
48369 __Pyx_RaiseArgtupleInvalid(
"getFluidKappaLocalCoords", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1627, __pyx_L3_error)
48371 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.getFluidKappaLocalCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
48372 __Pyx_RefNannyFinishContext();
48374 __pyx_L4_argument_unpacking_done:;
48375 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_10getFluidKappaLocalCoords(__pyx_self, __pyx_v_self, __pyx_v_xi, __pyx_v_element, __pyx_v_rank);
48378 __Pyx_RefNannyFinishContext();
48382 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_10getFluidKappaLocalCoords(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank) {
48383 PyObject *__pyx_v_comm = NULL;
48384 PyObject *__pyx_v_kappa = NULL;
48385 PyObject *__pyx_r = NULL;
48386 __Pyx_TraceDeclarations
48387 __Pyx_RefNannyDeclarations
48388 PyObject *__pyx_t_1 = NULL;
48389 PyObject *__pyx_t_2 = NULL;
48390 PyObject *__pyx_t_3 = NULL;
48391 PyObject *__pyx_t_4 = NULL;
48394 int __pyx_lineno = 0;
48395 const char *__pyx_filename = NULL;
48396 int __pyx_clineno = 0;
48397 __Pyx_TraceFrameInit(__pyx_codeobj__134)
48398 __Pyx_RefNannySetupContext(
"getFluidKappaLocalCoords", 0);
48399 __Pyx_TraceCall(
"getFluidKappaLocalCoords", __pyx_f[0], 1627, 0, __PYX_ERR(0, 1627, __pyx_L1_error));
48408 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1639, __pyx_L1_error)
48409 __Pyx_GOTREF(__pyx_t_3);
48410 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_get);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1639, __pyx_L1_error)
48411 __Pyx_GOTREF(__pyx_t_4);
48412 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
48414 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
48415 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
48416 if (likely(__pyx_t_3)) {
48417 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
48418 __Pyx_INCREF(__pyx_t_3);
48419 __Pyx_INCREF(
function);
48420 __Pyx_DECREF_SET(__pyx_t_4,
function);
48423 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
48424 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
48425 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1639, __pyx_L1_error)
48426 __Pyx_GOTREF(__pyx_t_2);
48427 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48428 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_comm);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1639, __pyx_L1_error)
48429 __Pyx_GOTREF(__pyx_t_4);
48430 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48431 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_tompi4py);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1639, __pyx_L1_error)
48432 __Pyx_GOTREF(__pyx_t_2);
48433 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48435 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
48436 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
48437 if (likely(__pyx_t_4)) {
48438 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
48439 __Pyx_INCREF(__pyx_t_4);
48440 __Pyx_INCREF(
function);
48441 __Pyx_DECREF_SET(__pyx_t_2,
function);
48444 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
48445 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
48446 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1639, __pyx_L1_error)
48447 __Pyx_GOTREF(__pyx_t_1);
48448 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48449 __pyx_v_comm = __pyx_t_1;
48459 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_model);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1641, __pyx_L1_error)
48460 __Pyx_GOTREF(__pyx_t_1);
48461 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_levelModelList);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1641, __pyx_L1_error)
48462 __Pyx_GOTREF(__pyx_t_2);
48463 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48464 __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1641, __pyx_L1_error)
48465 __Pyx_GOTREF(__pyx_t_1);
48466 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48467 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_u);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1641, __pyx_L1_error)
48468 __Pyx_GOTREF(__pyx_t_2);
48469 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48470 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_u, __pyx_t_2) < 0) __PYX_ERR(0, 1641, __pyx_L1_error)
48471 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48480 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_comm, __pyx_n_s_rank);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1643, __pyx_L1_error)
48481 __Pyx_GOTREF(__pyx_t_2);
48482 __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_v_rank, Py_EQ); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1643, __pyx_L1_error)
48483 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48484 __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1643, __pyx_L1_error)
48485 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
48495 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_u);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1644, __pyx_L1_error)
48496 __Pyx_GOTREF(__pyx_t_2);
48497 __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
48498 __Pyx_GOTREF(__pyx_t_4);
48499 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48500 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_getValue);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1644, __pyx_L1_error)
48501 __Pyx_GOTREF(__pyx_t_2);
48502 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48505 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
48506 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
48507 if (likely(__pyx_t_4)) {
48508 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
48509 __Pyx_INCREF(__pyx_t_4);
48510 __Pyx_INCREF(
function);
48511 __Pyx_DECREF_SET(__pyx_t_2,
function);
48515 #if CYTHON_FAST_PYCALL
48516 if (PyFunction_Check(__pyx_t_2)) {
48517 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
48518 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1644, __pyx_L1_error)
48519 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
48520 __Pyx_GOTREF(__pyx_t_1);
48523 #if CYTHON_FAST_PYCCALL
48524 if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
48525 PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_element, __pyx_v_xi};
48526 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1644, __pyx_L1_error)
48527 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
48528 __Pyx_GOTREF(__pyx_t_1);
48532 __pyx_t_3 = PyTuple_New(2+__pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1644, __pyx_L1_error)
48533 __Pyx_GOTREF(__pyx_t_3);
48535 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
48537 __Pyx_INCREF(__pyx_v_element);
48538 __Pyx_GIVEREF(__pyx_v_element);
48539 PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_v_element);
48540 __Pyx_INCREF(__pyx_v_xi);
48541 __Pyx_GIVEREF(__pyx_v_xi);
48542 PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_v_xi);
48543 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1644, __pyx_L1_error)
48544 __Pyx_GOTREF(__pyx_t_1);
48545 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
48547 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
48548 __pyx_v_kappa = __pyx_t_1;
48569 __Pyx_INCREF(Py_None);
48570 __pyx_v_kappa = Py_None;
48581 __Pyx_XDECREF(__pyx_r);
48582 __Pyx_INCREF(__pyx_v_kappa);
48583 __pyx_r = __pyx_v_kappa;
48596 __Pyx_XDECREF(__pyx_t_1);
48597 __Pyx_XDECREF(__pyx_t_2);
48598 __Pyx_XDECREF(__pyx_t_3);
48599 __Pyx_XDECREF(__pyx_t_4);
48600 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.getFluidKappaLocalCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
48603 __Pyx_XDECREF(__pyx_v_comm);
48604 __Pyx_XDECREF(__pyx_v_kappa);
48605 __Pyx_XGIVEREF(__pyx_r);
48606 __Pyx_TraceReturn(__pyx_r, 0);
48607 __Pyx_RefNannyFinishContext();
48620 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_13kappaNearWall(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48621 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_12kappaNearWall[] =
"kWall.kappaNearWall(self, xi, element, rank, kInit=None)";
48622 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_13kappaNearWall = {
"kappaNearWall", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_13kappaNearWall, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall_12kappaNearWall};
48623 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_13kappaNearWall(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48624 PyObject *__pyx_v_self = 0;
48625 PyObject *__pyx_v_xi = 0;
48626 PyObject *__pyx_v_element = 0;
48627 PyObject *__pyx_v_rank = 0;
48628 PyObject *__pyx_v_kInit = 0;
48629 int __pyx_lineno = 0;
48630 const char *__pyx_filename = NULL;
48631 int __pyx_clineno = 0;
48632 PyObject *__pyx_r = 0;
48633 __Pyx_RefNannyDeclarations
48634 __Pyx_RefNannySetupContext(
"kappaNearWall (wrapper)", 0);
48636 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_xi,&__pyx_n_s_element,&__pyx_n_s_rank,&__pyx_n_s_kInit,0};
48637 PyObject* values[5] = {0,0,0,0,0};
48638 values[4] = ((PyObject *)((PyObject *)Py_None));
48639 if (unlikely(__pyx_kwds)) {
48640 Py_ssize_t kw_args;
48641 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
48642 switch (pos_args) {
48643 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48644 CYTHON_FALLTHROUGH;
48645 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48646 CYTHON_FALLTHROUGH;
48647 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48648 CYTHON_FALLTHROUGH;
48649 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48650 CYTHON_FALLTHROUGH;
48651 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48652 CYTHON_FALLTHROUGH;
48654 default:
goto __pyx_L5_argtuple_error;
48656 kw_args = PyDict_Size(__pyx_kwds);
48657 switch (pos_args) {
48659 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
48660 else goto __pyx_L5_argtuple_error;
48661 CYTHON_FALLTHROUGH;
48663 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xi)) != 0)) kw_args--;
48665 __Pyx_RaiseArgtupleInvalid(
"kappaNearWall", 0, 4, 5, 1); __PYX_ERR(0, 1649, __pyx_L3_error)
48667 CYTHON_FALLTHROUGH;
48669 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
48671 __Pyx_RaiseArgtupleInvalid(
"kappaNearWall", 0, 4, 5, 2); __PYX_ERR(0, 1649, __pyx_L3_error)
48673 CYTHON_FALLTHROUGH;
48675 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
48677 __Pyx_RaiseArgtupleInvalid(
"kappaNearWall", 0, 4, 5, 3); __PYX_ERR(0, 1649, __pyx_L3_error)
48679 CYTHON_FALLTHROUGH;
48682 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kInit);
48683 if (value) { values[4] = value; kw_args--; }
48686 if (unlikely(kw_args > 0)) {
48687 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"kappaNearWall") < 0)) __PYX_ERR(0, 1649, __pyx_L3_error)
48690 switch (PyTuple_GET_SIZE(__pyx_args)) {
48691 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
48692 CYTHON_FALLTHROUGH;
48693 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
48694 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
48695 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
48696 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
48698 default:
goto __pyx_L5_argtuple_error;
48701 __pyx_v_self = values[0];
48702 __pyx_v_xi = values[1];
48703 __pyx_v_element = values[2];
48704 __pyx_v_rank = values[3];
48705 __pyx_v_kInit = values[4];
48707 goto __pyx_L4_argument_unpacking_done;
48708 __pyx_L5_argtuple_error:;
48709 __Pyx_RaiseArgtupleInvalid(
"kappaNearWall", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1649, __pyx_L3_error)
48711 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.kappaNearWall", __pyx_clineno, __pyx_lineno, __pyx_filename);
48712 __Pyx_RefNannyFinishContext();
48714 __pyx_L4_argument_unpacking_done:;
48715 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_12kappaNearWall(__pyx_self, __pyx_v_self, __pyx_v_xi, __pyx_v_element, __pyx_v_rank, __pyx_v_kInit);
48718 __Pyx_RefNannyFinishContext();
48722 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_12kappaNearWall(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank, PyObject *__pyx_v_kInit) {
48723 PyObject *__pyx_r = NULL;
48724 __Pyx_TraceDeclarations
48725 __Pyx_RefNannyDeclarations
48729 PyObject *__pyx_t_4 = NULL;
48730 PyObject *__pyx_t_5 = NULL;
48731 PyObject *__pyx_t_6 = NULL;
48732 PyObject *__pyx_t_7 = NULL;
48733 PyObject *__pyx_t_8 = NULL;
48734 PyObject *__pyx_t_9 = NULL;
48735 PyObject *__pyx_t_10 = NULL;
48737 int __pyx_lineno = 0;
48738 const char *__pyx_filename = NULL;
48739 int __pyx_clineno = 0;
48740 __Pyx_TraceFrameInit(__pyx_codeobj__135)
48741 __Pyx_RefNannySetupContext(
"kappaNearWall", 0);
48742 __Pyx_TraceCall(
"kappaNearWall", __pyx_f[0], 1649, 0, __PYX_ERR(0, 1649, __pyx_L1_error));
48751 __pyx_t_2 = (__pyx_v_kInit == Py_True);
48752 __pyx_t_3 = (__pyx_t_2 != 0);
48755 __pyx_t_1 = __pyx_t_3;
48756 goto __pyx_L4_bool_binop_done;
48758 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_model);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1650, __pyx_L1_error)
48759 __Pyx_GOTREF(__pyx_t_4);
48760 __pyx_t_3 = (__pyx_t_4 == Py_None);
48761 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48762 __pyx_t_2 = (__pyx_t_3 != 0);
48763 __pyx_t_1 = __pyx_t_2;
48764 __pyx_L4_bool_binop_done:;
48774 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Yplus);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1651, __pyx_L1_error)
48775 __Pyx_GOTREF(__pyx_t_4);
48776 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nu);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1651, __pyx_L1_error)
48777 __Pyx_GOTREF(__pyx_t_5);
48778 __pyx_t_6 = PyNumber_Multiply(__pyx_t_4, __pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1651, __pyx_L1_error)
48779 __Pyx_GOTREF(__pyx_t_6);
48780 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48781 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
48782 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Y);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1651, __pyx_L1_error)
48783 __Pyx_GOTREF(__pyx_t_5);
48784 __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_6, __pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1651, __pyx_L1_error)
48785 __Pyx_GOTREF(__pyx_t_4);
48786 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
48787 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
48788 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_ut, __pyx_t_4) < 0) __PYX_ERR(0, 1651, __pyx_L1_error)
48789 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48798 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1652, __pyx_L1_error)
48799 __Pyx_GOTREF(__pyx_t_5);
48800 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ut);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1652, __pyx_L1_error)
48801 __Pyx_GOTREF(__pyx_t_6);
48802 __pyx_t_7 = PyNumber_Power(__pyx_t_6, __pyx_int_2, Py_None);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1652, __pyx_L1_error)
48803 __Pyx_GOTREF(__pyx_t_7);
48804 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
48805 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1652, __pyx_L1_error)
48806 __Pyx_GOTREF(__pyx_t_8);
48807 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1652, __pyx_L1_error)
48808 __Pyx_GOTREF(__pyx_t_9);
48809 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
48810 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Cmu);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1652, __pyx_L1_error)
48811 __Pyx_GOTREF(__pyx_t_8);
48813 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
48814 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
48815 if (likely(__pyx_t_10)) {
48816 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_9);
48817 __Pyx_INCREF(__pyx_t_10);
48818 __Pyx_INCREF(
function);
48819 __Pyx_DECREF_SET(__pyx_t_9,
function);
48822 __pyx_t_6 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_8);
48823 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
48824 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
48825 if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1652, __pyx_L1_error)
48826 __Pyx_GOTREF(__pyx_t_6);
48827 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
48830 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
48831 __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5);
48832 if (likely(__pyx_t_9)) {
48833 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
48834 __Pyx_INCREF(__pyx_t_9);
48835 __Pyx_INCREF(
function);
48836 __Pyx_DECREF_SET(__pyx_t_5,
function);
48840 #if CYTHON_FAST_PYCALL
48841 if (PyFunction_Check(__pyx_t_5)) {
48842 PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_7, __pyx_t_6};
48843 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1652, __pyx_L1_error)
48844 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
48845 __Pyx_GOTREF(__pyx_t_4);
48846 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
48847 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
48850 #if CYTHON_FAST_PYCCALL
48851 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
48852 PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_7, __pyx_t_6};
48853 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1652, __pyx_L1_error)
48854 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
48855 __Pyx_GOTREF(__pyx_t_4);
48856 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
48857 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
48861 __pyx_t_8 = PyTuple_New(2+__pyx_t_11);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1652, __pyx_L1_error)
48862 __Pyx_GOTREF(__pyx_t_8);
48864 __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); __pyx_t_9 = NULL;
48866 __Pyx_GIVEREF(__pyx_t_7);
48867 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_11, __pyx_t_7);
48868 __Pyx_GIVEREF(__pyx_t_6);
48869 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_11, __pyx_t_6);
48872 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1652, __pyx_L1_error)
48873 __Pyx_GOTREF(__pyx_t_4);
48874 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
48876 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
48877 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kappa, __pyx_t_4) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
48878 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48898 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_getFluidKappaLocalCoords);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1654, __pyx_L1_error)
48899 __Pyx_GOTREF(__pyx_t_5);
48902 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
48903 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5);
48904 if (likely(__pyx_t_8)) {
48905 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
48906 __Pyx_INCREF(__pyx_t_8);
48907 __Pyx_INCREF(
function);
48908 __Pyx_DECREF_SET(__pyx_t_5,
function);
48912 #if CYTHON_FAST_PYCALL
48913 if (PyFunction_Check(__pyx_t_5)) {
48914 PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_xi, __pyx_v_element, __pyx_v_rank};
48915 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error)
48916 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
48917 __Pyx_GOTREF(__pyx_t_4);
48920 #if CYTHON_FAST_PYCCALL
48921 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
48922 PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_xi, __pyx_v_element, __pyx_v_rank};
48923 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error)
48924 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
48925 __Pyx_GOTREF(__pyx_t_4);
48929 __pyx_t_6 = PyTuple_New(3+__pyx_t_11);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1654, __pyx_L1_error)
48930 __Pyx_GOTREF(__pyx_t_6);
48932 __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); __pyx_t_8 = NULL;
48934 __Pyx_INCREF(__pyx_v_xi);
48935 __Pyx_GIVEREF(__pyx_v_xi);
48936 PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_11, __pyx_v_xi);
48937 __Pyx_INCREF(__pyx_v_element);
48938 __Pyx_GIVEREF(__pyx_v_element);
48939 PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_11, __pyx_v_element);
48940 __Pyx_INCREF(__pyx_v_rank);
48941 __Pyx_GIVEREF(__pyx_v_rank);
48942 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_11, __pyx_v_rank);
48943 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error)
48944 __Pyx_GOTREF(__pyx_t_4);
48945 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
48947 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
48948 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_kappa, __pyx_t_4) < 0) __PYX_ERR(0, 1654, __pyx_L1_error)
48949 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
48962 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
48965 __Pyx_XDECREF(__pyx_t_4);
48966 __Pyx_XDECREF(__pyx_t_5);
48967 __Pyx_XDECREF(__pyx_t_6);
48968 __Pyx_XDECREF(__pyx_t_7);
48969 __Pyx_XDECREF(__pyx_t_8);
48970 __Pyx_XDECREF(__pyx_t_9);
48971 __Pyx_XDECREF(__pyx_t_10);
48972 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.kappaNearWall", __pyx_clineno, __pyx_lineno, __pyx_filename);
48975 __Pyx_XGIVEREF(__pyx_r);
48976 __Pyx_TraceReturn(__pyx_r, 0);
48977 __Pyx_RefNannyFinishContext();
48990 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_15getKappa(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
48991 static char __pyx_doc_6mprans_18BoundaryConditions_5kWall_14getKappa[] =
"kWall.getKappa(self, x, t, xi, element, rank)";
48992 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5kWall_15getKappa = {
"getKappa", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5kWall_15getKappa, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_5kWall_14getKappa};
48993 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5kWall_15getKappa(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
48994 PyObject *__pyx_v_self = 0;
48995 CYTHON_UNUSED PyObject *__pyx_v_x = 0;
48996 PyObject *__pyx_v_t = 0;
48997 PyObject *__pyx_v_xi = 0;
48998 PyObject *__pyx_v_element = 0;
48999 PyObject *__pyx_v_rank = 0;
49000 int __pyx_lineno = 0;
49001 const char *__pyx_filename = NULL;
49002 int __pyx_clineno = 0;
49003 PyObject *__pyx_r = 0;
49004 __Pyx_RefNannyDeclarations
49005 __Pyx_RefNannySetupContext(
"getKappa (wrapper)", 0);
49007 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_x,&__pyx_n_s_t,&__pyx_n_s_xi,&__pyx_n_s_element,&__pyx_n_s_rank,0};
49008 PyObject* values[6] = {0,0,0,0,0,0};
49009 if (unlikely(__pyx_kwds)) {
49010 Py_ssize_t kw_args;
49011 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
49012 switch (pos_args) {
49013 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
49014 CYTHON_FALLTHROUGH;
49015 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
49016 CYTHON_FALLTHROUGH;
49017 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
49018 CYTHON_FALLTHROUGH;
49019 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
49020 CYTHON_FALLTHROUGH;
49021 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
49022 CYTHON_FALLTHROUGH;
49023 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
49024 CYTHON_FALLTHROUGH;
49026 default:
goto __pyx_L5_argtuple_error;
49028 kw_args = PyDict_Size(__pyx_kwds);
49029 switch (pos_args) {
49031 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--;
49032 else goto __pyx_L5_argtuple_error;
49033 CYTHON_FALLTHROUGH;
49035 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
49037 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, 1); __PYX_ERR(0, 1656, __pyx_L3_error)
49039 CYTHON_FALLTHROUGH;
49041 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
49043 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, 2); __PYX_ERR(0, 1656, __pyx_L3_error)
49045 CYTHON_FALLTHROUGH;
49047 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xi)) != 0)) kw_args--;
49049 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, 3); __PYX_ERR(0, 1656, __pyx_L3_error)
49051 CYTHON_FALLTHROUGH;
49053 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
49055 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, 4); __PYX_ERR(0, 1656, __pyx_L3_error)
49057 CYTHON_FALLTHROUGH;
49059 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rank)) != 0)) kw_args--;
49061 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, 5); __PYX_ERR(0, 1656, __pyx_L3_error)
49064 if (unlikely(kw_args > 0)) {
49065 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"getKappa") < 0)) __PYX_ERR(0, 1656, __pyx_L3_error)
49067 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
49068 goto __pyx_L5_argtuple_error;
49070 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
49071 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
49072 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
49073 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
49074 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
49075 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
49077 __pyx_v_self = values[0];
49078 __pyx_v_x = values[1];
49079 __pyx_v_t = values[2];
49080 __pyx_v_xi = values[3];
49081 __pyx_v_element = values[4];
49082 __pyx_v_rank = values[5];
49084 goto __pyx_L4_argument_unpacking_done;
49085 __pyx_L5_argtuple_error:;
49086 __Pyx_RaiseArgtupleInvalid(
"getKappa", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1656, __pyx_L3_error)
49088 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.getKappa", __pyx_clineno, __pyx_lineno, __pyx_filename);
49089 __Pyx_RefNannyFinishContext();
49091 __pyx_L4_argument_unpacking_done:;
49092 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_5kWall_14getKappa(__pyx_self, __pyx_v_self, __pyx_v_x, __pyx_v_t, __pyx_v_xi, __pyx_v_element, __pyx_v_rank);
49095 __Pyx_RefNannyFinishContext();
49099 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_5kWall_14getKappa(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_x, PyObject *__pyx_v_t, PyObject *__pyx_v_xi, PyObject *__pyx_v_element, PyObject *__pyx_v_rank) {
49101 PyObject *__pyx_r = NULL;
49102 __Pyx_TraceDeclarations
49103 __Pyx_RefNannyDeclarations
49104 PyObject *__pyx_t_1 = NULL;
49106 PyObject *__pyx_t_3 = NULL;
49107 PyObject *__pyx_t_4 = NULL;
49108 PyObject *__pyx_t_5 = NULL;
49110 PyObject *__pyx_t_7 = NULL;
49111 int __pyx_lineno = 0;
49112 const char *__pyx_filename = NULL;
49113 int __pyx_clineno = 0;
49114 __Pyx_TraceFrameInit(__pyx_codeobj__136)
49115 __Pyx_RefNannySetupContext(
"getKappa", 0);
49116 __Pyx_TraceCall(
"getKappa", __pyx_f[0], 1656, 0, __PYX_ERR(0, 1656, __pyx_L1_error));
49125 __pyx_t_1 = PyObject_RichCompare(__pyx_v_t, __pyx_float_0_, Py_GT); __Pyx_XGOTREF(__pyx_t_1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1657, __pyx_L1_error)
49126 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1657, __pyx_L1_error)
49127 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49167 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappaNearWall);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1661, __pyx_L1_error)
49168 __Pyx_GOTREF(__pyx_t_3);
49169 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_kInit);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1661, __pyx_L1_error)
49170 __Pyx_GOTREF(__pyx_t_4);
49173 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
49174 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
49175 if (likely(__pyx_t_5)) {
49176 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
49177 __Pyx_INCREF(__pyx_t_5);
49178 __Pyx_INCREF(
function);
49179 __Pyx_DECREF_SET(__pyx_t_3,
function);
49183 #if CYTHON_FAST_PYCALL
49184 if (PyFunction_Check(__pyx_t_3)) {
49185 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_xi, __pyx_v_element, __pyx_v_rank, __pyx_t_4};
49186 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1661, __pyx_L1_error)
49187 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
49188 __Pyx_GOTREF(__pyx_t_1);
49189 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
49192 #if CYTHON_FAST_PYCCALL
49193 if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
49194 PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_xi, __pyx_v_element, __pyx_v_rank, __pyx_t_4};
49195 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1661, __pyx_L1_error)
49196 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
49197 __Pyx_GOTREF(__pyx_t_1);
49198 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
49202 __pyx_t_7 = PyTuple_New(4+__pyx_t_6);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1661, __pyx_L1_error)
49203 __Pyx_GOTREF(__pyx_t_7);
49205 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
49207 __Pyx_INCREF(__pyx_v_xi);
49208 __Pyx_GIVEREF(__pyx_v_xi);
49209 PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_xi);
49210 __Pyx_INCREF(__pyx_v_element);
49211 __Pyx_GIVEREF(__pyx_v_element);
49212 PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_element);
49213 __Pyx_INCREF(__pyx_v_rank);
49214 __Pyx_GIVEREF(__pyx_v_rank);
49215 PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_rank);
49216 __Pyx_GIVEREF(__pyx_t_4);
49217 PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4);
49219 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1661, __pyx_L1_error)
49220 __Pyx_GOTREF(__pyx_t_1);
49221 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
49223 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
49224 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49231 __Pyx_XDECREF(__pyx_r);
49232 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_kappa);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1662, __pyx_L1_error)
49233 __Pyx_GOTREF(__pyx_t_1);
49234 __pyx_t_3 = __Pyx_PyNumber_Absolute(__pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1662, __pyx_L1_error)
49235 __Pyx_GOTREF(__pyx_t_3);
49236 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49237 __pyx_r = __pyx_t_3;
49251 __Pyx_XDECREF(__pyx_t_1);
49252 __Pyx_XDECREF(__pyx_t_3);
49253 __Pyx_XDECREF(__pyx_t_4);
49254 __Pyx_XDECREF(__pyx_t_5);
49255 __Pyx_XDECREF(__pyx_t_7);
49256 __Pyx_AddTraceback(
"mprans.BoundaryConditions.kWall.getKappa", __pyx_clineno, __pyx_lineno, __pyx_filename);
49259 __Pyx_XGIVEREF(__pyx_r);
49260 __Pyx_TraceReturn(__pyx_r, 0);
49261 __Pyx_RefNannyFinishContext();
49272 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_1__pyx_unpickle_BC_RANS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
49273 static char __pyx_doc_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS[] =
"__pyx_unpickle_BC_RANS(__pyx_type, long __pyx_checksum, __pyx_state)";
49274 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_1__pyx_unpickle_BC_RANS = {
"__pyx_unpickle_BC_RANS", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_1__pyx_unpickle_BC_RANS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS};
49275 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_1__pyx_unpickle_BC_RANS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
49276 PyObject *__pyx_v___pyx_type = 0;
49277 long __pyx_v___pyx_checksum;
49278 PyObject *__pyx_v___pyx_state = 0;
49279 int __pyx_lineno = 0;
49280 const char *__pyx_filename = NULL;
49281 int __pyx_clineno = 0;
49282 PyObject *__pyx_r = 0;
49283 __Pyx_RefNannyDeclarations
49284 __Pyx_RefNannySetupContext(
"__pyx_unpickle_BC_RANS (wrapper)", 0);
49286 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
49287 PyObject* values[3] = {0,0,0};
49288 if (unlikely(__pyx_kwds)) {
49289 Py_ssize_t kw_args;
49290 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
49291 switch (pos_args) {
49292 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
49293 CYTHON_FALLTHROUGH;
49294 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
49295 CYTHON_FALLTHROUGH;
49296 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
49297 CYTHON_FALLTHROUGH;
49299 default:
goto __pyx_L5_argtuple_error;
49301 kw_args = PyDict_Size(__pyx_kwds);
49302 switch (pos_args) {
49304 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
49305 else goto __pyx_L5_argtuple_error;
49306 CYTHON_FALLTHROUGH;
49308 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
49310 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_BC_RANS", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
49312 CYTHON_FALLTHROUGH;
49314 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
49316 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_BC_RANS", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
49319 if (unlikely(kw_args > 0)) {
49320 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__pyx_unpickle_BC_RANS") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
49322 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
49323 goto __pyx_L5_argtuple_error;
49325 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
49326 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
49327 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
49329 __pyx_v___pyx_type = values[0];
49330 __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]);
if (unlikely((__pyx_v___pyx_checksum == (
long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
49331 __pyx_v___pyx_state = values[2];
49333 goto __pyx_L4_argument_unpacking_done;
49334 __pyx_L5_argtuple_error:;
49335 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_BC_RANS", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
49337 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_BC_RANS", __pyx_clineno, __pyx_lineno, __pyx_filename);
49338 __Pyx_RefNannyFinishContext();
49340 __pyx_L4_argument_unpacking_done:;
49341 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);
49344 __Pyx_RefNannyFinishContext();
49348 static PyObject *__pyx_pf_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
49349 PyObject *__pyx_v___pyx_PickleError = 0;
49350 PyObject *__pyx_v___pyx_result = 0;
49351 PyObject *__pyx_r = NULL;
49352 __Pyx_TraceDeclarations
49353 __Pyx_RefNannyDeclarations
49354 PyObject *__pyx_t_1 = NULL;
49357 PyObject *__pyx_t_4 = NULL;
49358 PyObject *__pyx_t_5 = NULL;
49359 PyObject *__pyx_t_6 = NULL;
49360 int __pyx_lineno = 0;
49361 const char *__pyx_filename = NULL;
49362 int __pyx_clineno = 0;
49363 __Pyx_TraceFrameInit(__pyx_codeobj__137)
49364 __Pyx_RefNannySetupContext(
"__pyx_unpickle_BC_RANS", 0);
49365 __Pyx_TraceCall(
"__pyx_unpickle_BC_RANS", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
49374 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
49375 __Pyx_GOTREF(__pyx_t_1);
49376 __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__138, Py_NE));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 4, __pyx_L1_error)
49377 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49378 __pyx_t_3 = (__pyx_t_2 != 0);
49388 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
49389 __Pyx_GOTREF(__pyx_t_1);
49390 __Pyx_INCREF(__pyx_n_s_PickleError);
49391 __Pyx_GIVEREF(__pyx_n_s_PickleError);
49392 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError);
49393 __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, -1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
49394 __Pyx_GOTREF(__pyx_t_4);
49395 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49396 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
49397 __Pyx_GOTREF(__pyx_t_1);
49398 __Pyx_INCREF(__pyx_t_1);
49399 __pyx_v___pyx_PickleError = __pyx_t_1;
49400 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49401 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
49410 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
49411 __Pyx_GOTREF(__pyx_t_1);
49412 __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
49413 __Pyx_GOTREF(__pyx_t_5);
49414 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49415 __Pyx_INCREF(__pyx_v___pyx_PickleError);
49416 __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL;
49417 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
49418 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
49419 if (likely(__pyx_t_6)) {
49420 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
49421 __Pyx_INCREF(__pyx_t_6);
49422 __Pyx_INCREF(
function);
49423 __Pyx_DECREF_SET(__pyx_t_1,
function);
49426 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
49427 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
49428 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
49429 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
49430 __Pyx_GOTREF(__pyx_t_4);
49431 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49432 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
49433 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
49434 __PYX_ERR(1, 6, __pyx_L1_error)
49452 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS), __pyx_n_s_new);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
49453 __Pyx_GOTREF(__pyx_t_1);
49455 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
49456 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
49457 if (likely(__pyx_t_5)) {
49458 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
49459 __Pyx_INCREF(__pyx_t_5);
49460 __Pyx_INCREF(
function);
49461 __Pyx_DECREF_SET(__pyx_t_1,
function);
49464 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type);
49465 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
49466 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 7, __pyx_L1_error)
49467 __Pyx_GOTREF(__pyx_t_4);
49468 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
49469 __pyx_v___pyx_result = __pyx_t_4;
49479 __pyx_t_3 = (__pyx_v___pyx_state != Py_None);
49480 __pyx_t_2 = (__pyx_t_3 != 0);
49490 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
49491 __pyx_t_4 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS__set_state(((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 9, __pyx_L1_error)
49492 __Pyx_GOTREF(__pyx_t_4);
49493 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
49511 __Pyx_XDECREF(__pyx_r);
49512 __Pyx_INCREF(__pyx_v___pyx_result);
49513 __pyx_r = __pyx_v___pyx_result;
49524 __Pyx_XDECREF(__pyx_t_1);
49525 __Pyx_XDECREF(__pyx_t_4);
49526 __Pyx_XDECREF(__pyx_t_5);
49527 __Pyx_XDECREF(__pyx_t_6);
49528 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_BC_RANS", __pyx_clineno, __pyx_lineno, __pyx_filename);
49531 __Pyx_XDECREF(__pyx_v___pyx_PickleError);
49532 __Pyx_XDECREF(__pyx_v___pyx_result);
49533 __Pyx_XGIVEREF(__pyx_r);
49534 __Pyx_TraceReturn(__pyx_r, 0);
49535 __Pyx_RefNannyFinishContext();
49547 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_BC_RANS__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
49548 PyObject *__pyx_r = NULL;
49549 __Pyx_TraceDeclarations
49550 __Pyx_RefNannyDeclarations
49551 PyObject *__pyx_t_1 = NULL;
49552 __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
49553 __Pyx_memviewslice __pyx_t_3 = { 0, 0, { 0 }, { 0 }, { 0 } };
49557 Py_ssize_t __pyx_t_7;
49560 PyObject *__pyx_t_10 = NULL;
49561 PyObject *__pyx_t_11 = NULL;
49562 int __pyx_lineno = 0;
49563 const char *__pyx_filename = NULL;
49564 int __pyx_clineno = 0;
49565 __Pyx_RefNannySetupContext(
"__pyx_unpickle_BC_RANS__set_state", 0);
49566 __Pyx_TraceCall(
"__pyx_unpickle_BC_RANS__set_state", __pyx_f[1], 11, 0, __PYX_ERR(1, 11, __pyx_L1_error));
49575 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49576 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49577 __PYX_ERR(1, 12, __pyx_L1_error)
49579 if (!(likely(PyString_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 0)) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"str", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 0))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
49580 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
49581 __Pyx_INCREF(__pyx_t_1);
49582 __Pyx_GIVEREF(__pyx_t_1);
49583 __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.BC_type);
49584 __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.BC_type);
49585 __pyx_v___pyx_result->__pyx_base.BC_type = ((PyObject*)__pyx_t_1);
49587 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49588 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49589 __PYX_ERR(1, 12, __pyx_L1_error)
49591 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 1);
49592 __Pyx_INCREF(__pyx_t_1);
49593 __Pyx_GIVEREF(__pyx_t_1);
49594 __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.Shape);
49595 __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.Shape);
49596 __pyx_v___pyx_result->__pyx_base.Shape = __pyx_t_1;
49598 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49599 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49600 __PYX_ERR(1, 12, __pyx_L1_error)
49602 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
49603 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->__pyx_base._b_or, 0);
49604 __pyx_v___pyx_result->__pyx_base._b_or = __pyx_t_2;
49605 __pyx_t_2.memview = NULL;
49606 __pyx_t_2.data = NULL;
49607 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49608 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49609 __PYX_ERR(1, 12, __pyx_L1_error)
49611 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 3);
49612 __Pyx_INCREF(__pyx_t_1);
49613 __Pyx_GIVEREF(__pyx_t_1);
49614 __Pyx_GOTREF(__pyx_v___pyx_result->body);
49615 __Pyx_DECREF(__pyx_v___pyx_result->body);
49616 __pyx_v___pyx_result->body = __pyx_t_1;
49618 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49619 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49620 __PYX_ERR(1, 12, __pyx_L1_error)
49622 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
49623 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->body_python_h, 0);
49624 __pyx_v___pyx_result->body_python_h = __pyx_t_2;
49625 __pyx_t_2.memview = NULL;
49626 __pyx_t_2.data = NULL;
49627 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49628 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49629 __PYX_ERR(1, 12, __pyx_L1_error)
49631 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
49632 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->body_python_last_pos, 0);
49633 __pyx_v___pyx_result->body_python_last_pos = __pyx_t_2;
49634 __pyx_t_2.memview = NULL;
49635 __pyx_t_2.data = NULL;
49636 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49637 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49638 __PYX_ERR(1, 12, __pyx_L1_error)
49640 __pyx_t_3 = __Pyx_PyObject_to_MemoryviewSlice_dsds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_3.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
49641 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->body_python_rot_matrix, 0);
49642 __pyx_v___pyx_result->body_python_rot_matrix = __pyx_t_3;
49643 __pyx_t_3.memview = NULL;
49644 __pyx_t_3.data = NULL;
49645 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49646 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49647 __PYX_ERR(1, 12, __pyx_L1_error)
49649 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 7)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49650 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 7);
49651 __Pyx_INCREF(__pyx_t_1);
49652 __Pyx_GIVEREF(__pyx_t_1);
49653 __Pyx_GOTREF(__pyx_v___pyx_result->clsvof_advective);
49654 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->clsvof_advective));
49655 __pyx_v___pyx_result->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49657 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49658 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49659 __PYX_ERR(1, 12, __pyx_L1_error)
49661 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 8)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49662 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 8);
49663 __Pyx_INCREF(__pyx_t_1);
49664 __Pyx_GIVEREF(__pyx_t_1);
49665 __Pyx_GOTREF(__pyx_v___pyx_result->clsvof_diffusive);
49666 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->clsvof_diffusive));
49667 __pyx_v___pyx_result->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49669 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49670 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49671 __PYX_ERR(1, 12, __pyx_L1_error)
49673 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 9)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49674 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 9);
49675 __Pyx_INCREF(__pyx_t_1);
49676 __Pyx_GIVEREF(__pyx_t_1);
49677 __Pyx_GOTREF(__pyx_v___pyx_result->clsvof_dirichlet);
49678 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->clsvof_dirichlet));
49679 __pyx_v___pyx_result->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49681 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49682 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49683 __PYX_ERR(1, 12, __pyx_L1_error)
49685 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 10);
49686 __Pyx_INCREF(__pyx_t_1);
49687 __Pyx_GIVEREF(__pyx_t_1);
49688 __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.ct);
49689 __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.ct);
49690 __pyx_v___pyx_result->__pyx_base.ct = __pyx_t_1;
49692 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49693 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49694 __PYX_ERR(1, 12, __pyx_L1_error)
49696 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 11)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 11), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49697 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 11);
49698 __Pyx_INCREF(__pyx_t_1);
49699 __Pyx_GIVEREF(__pyx_t_1);
49700 __Pyx_GOTREF(__pyx_v___pyx_result->dissipation_advective);
49701 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dissipation_advective));
49702 __pyx_v___pyx_result->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49704 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49705 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49706 __PYX_ERR(1, 12, __pyx_L1_error)
49708 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 12)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 12), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49709 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 12);
49710 __Pyx_INCREF(__pyx_t_1);
49711 __Pyx_GIVEREF(__pyx_t_1);
49712 __Pyx_GOTREF(__pyx_v___pyx_result->dissipation_diffusive);
49713 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dissipation_diffusive));
49714 __pyx_v___pyx_result->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49716 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49717 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49718 __PYX_ERR(1, 12, __pyx_L1_error)
49720 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 13)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 13), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49721 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 13);
49722 __Pyx_INCREF(__pyx_t_1);
49723 __Pyx_GIVEREF(__pyx_t_1);
49724 __Pyx_GOTREF(__pyx_v___pyx_result->dissipation_dirichlet);
49725 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->dissipation_dirichlet));
49726 __pyx_v___pyx_result->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49728 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49729 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49730 __PYX_ERR(1, 12, __pyx_L1_error)
49732 __pyx_t_4 = __pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(__pyx_v___pyx_state, 14));
if (unlikely((__pyx_t_4 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
49733 __pyx_v___pyx_result->f = __pyx_t_4;
49734 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49735 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49736 __PYX_ERR(1, 12, __pyx_L1_error)
49738 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 15)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 15), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49739 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 15);
49740 __Pyx_INCREF(__pyx_t_1);
49741 __Pyx_GIVEREF(__pyx_t_1);
49742 __Pyx_GOTREF(__pyx_v___pyx_result->hx_dirichlet);
49743 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->hx_dirichlet));
49744 __pyx_v___pyx_result->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49746 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49747 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49748 __PYX_ERR(1, 12, __pyx_L1_error)
49750 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 16)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 16), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49751 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 16);
49752 __Pyx_INCREF(__pyx_t_1);
49753 __Pyx_GIVEREF(__pyx_t_1);
49754 __Pyx_GOTREF(__pyx_v___pyx_result->hy_dirichlet);
49755 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->hy_dirichlet));
49756 __pyx_v___pyx_result->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49758 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49759 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49760 __PYX_ERR(1, 12, __pyx_L1_error)
49762 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 17)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 17), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49763 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 17);
49764 __Pyx_INCREF(__pyx_t_1);
49765 __Pyx_GIVEREF(__pyx_t_1);
49766 __Pyx_GOTREF(__pyx_v___pyx_result->hz_dirichlet);
49767 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->hz_dirichlet));
49768 __pyx_v___pyx_result->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49770 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49771 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49772 __PYX_ERR(1, 12, __pyx_L1_error)
49774 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 18)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 18), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49775 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 18);
49776 __Pyx_INCREF(__pyx_t_1);
49777 __Pyx_GIVEREF(__pyx_t_1);
49778 __Pyx_GOTREF(__pyx_v___pyx_result->k_advective);
49779 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->k_advective));
49780 __pyx_v___pyx_result->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49782 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49783 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49784 __PYX_ERR(1, 12, __pyx_L1_error)
49786 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 19)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 19), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49787 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 19);
49788 __Pyx_INCREF(__pyx_t_1);
49789 __Pyx_GIVEREF(__pyx_t_1);
49790 __Pyx_GOTREF(__pyx_v___pyx_result->k_diffusive);
49791 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->k_diffusive));
49792 __pyx_v___pyx_result->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49794 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49795 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49796 __PYX_ERR(1, 12, __pyx_L1_error)
49798 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 20)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 20), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49799 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 20);
49800 __Pyx_INCREF(__pyx_t_1);
49801 __Pyx_GIVEREF(__pyx_t_1);
49802 __Pyx_GOTREF(__pyx_v___pyx_result->k_dirichlet);
49803 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->k_dirichlet));
49804 __pyx_v___pyx_result->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49806 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49807 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49808 __PYX_ERR(1, 12, __pyx_L1_error)
49810 if (!(likely(PyString_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 21)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 21)) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"str", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 21))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
49811 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 21);
49812 __Pyx_INCREF(__pyx_t_1);
49813 __Pyx_GIVEREF(__pyx_t_1);
49814 __Pyx_GOTREF(__pyx_v___pyx_result->__pyx_base.name);
49815 __Pyx_DECREF(__pyx_v___pyx_result->__pyx_base.name);
49816 __pyx_v___pyx_result->__pyx_base.name = ((PyObject*)__pyx_t_1);
49818 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49819 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49820 __PYX_ERR(1, 12, __pyx_L1_error)
49822 __pyx_t_5 = __Pyx_PyInt_As_int(PyTuple_GET_ITEM(__pyx_v___pyx_state, 22));
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
49823 __pyx_v___pyx_result->__pyx_base.nd = __pyx_t_5;
49824 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49825 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49826 __PYX_ERR(1, 12, __pyx_L1_error)
49828 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 23)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 23), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49829 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 23);
49830 __Pyx_INCREF(__pyx_t_1);
49831 __Pyx_GIVEREF(__pyx_t_1);
49832 __Pyx_GOTREF(__pyx_v___pyx_result->pAddedMass_dirichlet);
49833 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pAddedMass_dirichlet));
49834 __pyx_v___pyx_result->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49836 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49837 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49838 __PYX_ERR(1, 12, __pyx_L1_error)
49840 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 24)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 24), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49841 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 24);
49842 __Pyx_INCREF(__pyx_t_1);
49843 __Pyx_GIVEREF(__pyx_t_1);
49844 __Pyx_GOTREF(__pyx_v___pyx_result->pInc_advective);
49845 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInc_advective));
49846 __pyx_v___pyx_result->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49848 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49849 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49850 __PYX_ERR(1, 12, __pyx_L1_error)
49852 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 25)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 25), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49853 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 25);
49854 __Pyx_INCREF(__pyx_t_1);
49855 __Pyx_GIVEREF(__pyx_t_1);
49856 __Pyx_GOTREF(__pyx_v___pyx_result->pInc_diffusive);
49857 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInc_diffusive));
49858 __pyx_v___pyx_result->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49860 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49861 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49862 __PYX_ERR(1, 12, __pyx_L1_error)
49864 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 26)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 26), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49865 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 26);
49866 __Pyx_INCREF(__pyx_t_1);
49867 __Pyx_GIVEREF(__pyx_t_1);
49868 __Pyx_GOTREF(__pyx_v___pyx_result->pInc_dirichlet);
49869 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInc_dirichlet));
49870 __pyx_v___pyx_result->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49872 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49873 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49874 __PYX_ERR(1, 12, __pyx_L1_error)
49876 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 27)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 27), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49877 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 27);
49878 __Pyx_INCREF(__pyx_t_1);
49879 __Pyx_GIVEREF(__pyx_t_1);
49880 __Pyx_GOTREF(__pyx_v___pyx_result->pInit_advective);
49881 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInit_advective));
49882 __pyx_v___pyx_result->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49884 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49885 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49886 __PYX_ERR(1, 12, __pyx_L1_error)
49888 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 28)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 28), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49889 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 28);
49890 __Pyx_INCREF(__pyx_t_1);
49891 __Pyx_GIVEREF(__pyx_t_1);
49892 __Pyx_GOTREF(__pyx_v___pyx_result->pInit_diffusive);
49893 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInit_diffusive));
49894 __pyx_v___pyx_result->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49896 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49897 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49898 __PYX_ERR(1, 12, __pyx_L1_error)
49900 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 29)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 29), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49901 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 29);
49902 __Pyx_INCREF(__pyx_t_1);
49903 __Pyx_GIVEREF(__pyx_t_1);
49904 __Pyx_GOTREF(__pyx_v___pyx_result->pInit_dirichlet);
49905 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->pInit_dirichlet));
49906 __pyx_v___pyx_result->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49908 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49909 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49910 __PYX_ERR(1, 12, __pyx_L1_error)
49912 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 30)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 30), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49913 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 30);
49914 __Pyx_INCREF(__pyx_t_1);
49915 __Pyx_GIVEREF(__pyx_t_1);
49916 __Pyx_GOTREF(__pyx_v___pyx_result->p_advective);
49917 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->p_advective));
49918 __pyx_v___pyx_result->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49920 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49921 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49922 __PYX_ERR(1, 12, __pyx_L1_error)
49924 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 31)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 31), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49925 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 31);
49926 __Pyx_INCREF(__pyx_t_1);
49927 __Pyx_GIVEREF(__pyx_t_1);
49928 __Pyx_GOTREF(__pyx_v___pyx_result->p_dirichlet);
49929 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->p_dirichlet));
49930 __pyx_v___pyx_result->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49932 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49933 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49934 __PYX_ERR(1, 12, __pyx_L1_error)
49936 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 32)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 32), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49937 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 32);
49938 __Pyx_INCREF(__pyx_t_1);
49939 __Pyx_GIVEREF(__pyx_t_1);
49940 __Pyx_GOTREF(__pyx_v___pyx_result->phi_dirichlet);
49941 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->phi_dirichlet));
49942 __pyx_v___pyx_result->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49944 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49945 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49946 __PYX_ERR(1, 12, __pyx_L1_error)
49948 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 33)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 33), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49949 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 33);
49950 __Pyx_INCREF(__pyx_t_1);
49951 __Pyx_GIVEREF(__pyx_t_1);
49952 __Pyx_GOTREF(__pyx_v___pyx_result->u_advective);
49953 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->u_advective));
49954 __pyx_v___pyx_result->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49956 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49957 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49958 __PYX_ERR(1, 12, __pyx_L1_error)
49960 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 34)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 34), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49961 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 34);
49962 __Pyx_INCREF(__pyx_t_1);
49963 __Pyx_GIVEREF(__pyx_t_1);
49964 __Pyx_GOTREF(__pyx_v___pyx_result->u_diffusive);
49965 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->u_diffusive));
49966 __pyx_v___pyx_result->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49968 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49969 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49970 __PYX_ERR(1, 12, __pyx_L1_error)
49972 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 35)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 35), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49973 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 35);
49974 __Pyx_INCREF(__pyx_t_1);
49975 __Pyx_GIVEREF(__pyx_t_1);
49976 __Pyx_GOTREF(__pyx_v___pyx_result->u_dirichlet);
49977 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->u_dirichlet));
49978 __pyx_v___pyx_result->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49980 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49981 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49982 __PYX_ERR(1, 12, __pyx_L1_error)
49984 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 36)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 36), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49985 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 36);
49986 __Pyx_INCREF(__pyx_t_1);
49987 __Pyx_GIVEREF(__pyx_t_1);
49988 __Pyx_GOTREF(__pyx_v___pyx_result->u_stress);
49989 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->u_stress));
49990 __pyx_v___pyx_result->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
49992 if (unlikely(__pyx_v___pyx_state == Py_None)) {
49993 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
49994 __PYX_ERR(1, 12, __pyx_L1_error)
49996 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 37)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 37), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
49997 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 37);
49998 __Pyx_INCREF(__pyx_t_1);
49999 __Pyx_GIVEREF(__pyx_t_1);
50000 __Pyx_GOTREF(__pyx_v___pyx_result->us_advective);
50001 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->us_advective));
50002 __pyx_v___pyx_result->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50004 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50005 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50006 __PYX_ERR(1, 12, __pyx_L1_error)
50008 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 38)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 38), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50009 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 38);
50010 __Pyx_INCREF(__pyx_t_1);
50011 __Pyx_GIVEREF(__pyx_t_1);
50012 __Pyx_GOTREF(__pyx_v___pyx_result->us_diffusive);
50013 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->us_diffusive));
50014 __pyx_v___pyx_result->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50016 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50017 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50018 __PYX_ERR(1, 12, __pyx_L1_error)
50020 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 39)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 39), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50021 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 39);
50022 __Pyx_INCREF(__pyx_t_1);
50023 __Pyx_GIVEREF(__pyx_t_1);
50024 __Pyx_GOTREF(__pyx_v___pyx_result->us_dirichlet);
50025 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->us_dirichlet));
50026 __pyx_v___pyx_result->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50028 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50029 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50030 __PYX_ERR(1, 12, __pyx_L1_error)
50032 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 40)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 40), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50033 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 40);
50034 __Pyx_INCREF(__pyx_t_1);
50035 __Pyx_GIVEREF(__pyx_t_1);
50036 __Pyx_GOTREF(__pyx_v___pyx_result->v_advective);
50037 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->v_advective));
50038 __pyx_v___pyx_result->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50040 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50041 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50042 __PYX_ERR(1, 12, __pyx_L1_error)
50044 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 41)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 41), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50045 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 41);
50046 __Pyx_INCREF(__pyx_t_1);
50047 __Pyx_GIVEREF(__pyx_t_1);
50048 __Pyx_GOTREF(__pyx_v___pyx_result->v_diffusive);
50049 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->v_diffusive));
50050 __pyx_v___pyx_result->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50052 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50053 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50054 __PYX_ERR(1, 12, __pyx_L1_error)
50056 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 42)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 42), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50057 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 42);
50058 __Pyx_INCREF(__pyx_t_1);
50059 __Pyx_GIVEREF(__pyx_t_1);
50060 __Pyx_GOTREF(__pyx_v___pyx_result->v_dirichlet);
50061 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->v_dirichlet));
50062 __pyx_v___pyx_result->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50064 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50065 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50066 __PYX_ERR(1, 12, __pyx_L1_error)
50068 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 43)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 43), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50069 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 43);
50070 __Pyx_INCREF(__pyx_t_1);
50071 __Pyx_GIVEREF(__pyx_t_1);
50072 __Pyx_GOTREF(__pyx_v___pyx_result->v_stress);
50073 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->v_stress));
50074 __pyx_v___pyx_result->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50076 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50077 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50078 __PYX_ERR(1, 12, __pyx_L1_error)
50080 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 44)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 44), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50081 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 44);
50082 __Pyx_INCREF(__pyx_t_1);
50083 __Pyx_GIVEREF(__pyx_t_1);
50084 __Pyx_GOTREF(__pyx_v___pyx_result->vof_advective);
50085 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vof_advective));
50086 __pyx_v___pyx_result->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50088 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50089 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50090 __PYX_ERR(1, 12, __pyx_L1_error)
50092 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 45)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 45), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50093 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 45);
50094 __Pyx_INCREF(__pyx_t_1);
50095 __Pyx_GIVEREF(__pyx_t_1);
50096 __Pyx_GOTREF(__pyx_v___pyx_result->vof_dirichlet);
50097 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vof_dirichlet));
50098 __pyx_v___pyx_result->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50100 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50101 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50102 __PYX_ERR(1, 12, __pyx_L1_error)
50104 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 46)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 46), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50105 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 46);
50106 __Pyx_INCREF(__pyx_t_1);
50107 __Pyx_GIVEREF(__pyx_t_1);
50108 __Pyx_GOTREF(__pyx_v___pyx_result->vos_advective);
50109 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vos_advective));
50110 __pyx_v___pyx_result->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50112 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50113 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50114 __PYX_ERR(1, 12, __pyx_L1_error)
50116 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 47)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 47), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50117 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 47);
50118 __Pyx_INCREF(__pyx_t_1);
50119 __Pyx_GIVEREF(__pyx_t_1);
50120 __Pyx_GOTREF(__pyx_v___pyx_result->vos_dirichlet);
50121 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vos_dirichlet));
50122 __pyx_v___pyx_result->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50124 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50125 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50126 __PYX_ERR(1, 12, __pyx_L1_error)
50128 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 48)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 48), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50129 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 48);
50130 __Pyx_INCREF(__pyx_t_1);
50131 __Pyx_GIVEREF(__pyx_t_1);
50132 __Pyx_GOTREF(__pyx_v___pyx_result->vs_advective);
50133 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vs_advective));
50134 __pyx_v___pyx_result->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50136 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50137 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50138 __PYX_ERR(1, 12, __pyx_L1_error)
50140 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 49)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 49), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50141 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 49);
50142 __Pyx_INCREF(__pyx_t_1);
50143 __Pyx_GIVEREF(__pyx_t_1);
50144 __Pyx_GOTREF(__pyx_v___pyx_result->vs_diffusive);
50145 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vs_diffusive));
50146 __pyx_v___pyx_result->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50148 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50149 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50150 __PYX_ERR(1, 12, __pyx_L1_error)
50152 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 50)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 50), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50153 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 50);
50154 __Pyx_INCREF(__pyx_t_1);
50155 __Pyx_GIVEREF(__pyx_t_1);
50156 __Pyx_GOTREF(__pyx_v___pyx_result->vs_dirichlet);
50157 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->vs_dirichlet));
50158 __pyx_v___pyx_result->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50160 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50161 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50162 __PYX_ERR(1, 12, __pyx_L1_error)
50164 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 51)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 51), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50165 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 51);
50166 __Pyx_INCREF(__pyx_t_1);
50167 __Pyx_GIVEREF(__pyx_t_1);
50168 __Pyx_GOTREF(__pyx_v___pyx_result->w_advective);
50169 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->w_advective));
50170 __pyx_v___pyx_result->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50172 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50173 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50174 __PYX_ERR(1, 12, __pyx_L1_error)
50176 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 52)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 52), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50177 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 52);
50178 __Pyx_INCREF(__pyx_t_1);
50179 __Pyx_GIVEREF(__pyx_t_1);
50180 __Pyx_GOTREF(__pyx_v___pyx_result->w_diffusive);
50181 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->w_diffusive));
50182 __pyx_v___pyx_result->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50184 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50185 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50186 __PYX_ERR(1, 12, __pyx_L1_error)
50188 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 53)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 53), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50189 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 53);
50190 __Pyx_INCREF(__pyx_t_1);
50191 __Pyx_GIVEREF(__pyx_t_1);
50192 __Pyx_GOTREF(__pyx_v___pyx_result->w_dirichlet);
50193 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->w_dirichlet));
50194 __pyx_v___pyx_result->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50196 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50197 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50198 __PYX_ERR(1, 12, __pyx_L1_error)
50200 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 54)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 54), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50201 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 54);
50202 __Pyx_INCREF(__pyx_t_1);
50203 __Pyx_GIVEREF(__pyx_t_1);
50204 __Pyx_GOTREF(__pyx_v___pyx_result->w_stress);
50205 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->w_stress));
50206 __pyx_v___pyx_result->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50208 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50209 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50210 __PYX_ERR(1, 12, __pyx_L1_error)
50212 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 55)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 55), __pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics))))) __PYX_ERR(1, 12, __pyx_L1_error)
50213 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 55);
50214 __Pyx_INCREF(__pyx_t_1);
50215 __Pyx_GIVEREF(__pyx_t_1);
50216 __Pyx_GOTREF(__pyx_v___pyx_result->waves);
50217 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->waves));
50218 __pyx_v___pyx_result->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_t_1);
50220 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50221 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50222 __PYX_ERR(1, 12, __pyx_L1_error)
50224 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 56), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
50225 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->wind_speed, 0);
50226 __pyx_v___pyx_result->wind_speed = __pyx_t_2;
50227 __pyx_t_2.memview = NULL;
50228 __pyx_t_2.data = NULL;
50229 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50230 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50231 __PYX_ERR(1, 12, __pyx_L1_error)
50233 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 57)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 57), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50234 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 57);
50235 __Pyx_INCREF(__pyx_t_1);
50236 __Pyx_GIVEREF(__pyx_t_1);
50237 __Pyx_GOTREF(__pyx_v___pyx_result->ws_advective);
50238 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->ws_advective));
50239 __pyx_v___pyx_result->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50241 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50242 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50243 __PYX_ERR(1, 12, __pyx_L1_error)
50245 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 58)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 58), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50246 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 58);
50247 __Pyx_INCREF(__pyx_t_1);
50248 __Pyx_GIVEREF(__pyx_t_1);
50249 __Pyx_GOTREF(__pyx_v___pyx_result->ws_diffusive);
50250 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->ws_diffusive));
50251 __pyx_v___pyx_result->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50253 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50254 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50255 __PYX_ERR(1, 12, __pyx_L1_error)
50257 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 59)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 59), __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition))))) __PYX_ERR(1, 12, __pyx_L1_error)
50258 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 59);
50259 __Pyx_INCREF(__pyx_t_1);
50260 __Pyx_GIVEREF(__pyx_t_1);
50261 __Pyx_GOTREF(__pyx_v___pyx_result->ws_dirichlet);
50262 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->ws_dirichlet));
50263 __pyx_v___pyx_result->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)__pyx_t_1);
50265 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50266 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50267 __PYX_ERR(1, 12, __pyx_L1_error)
50269 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 60), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
50270 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->zero_array, 0);
50271 __pyx_v___pyx_result->zero_array = __pyx_t_2;
50272 __pyx_t_2.memview = NULL;
50273 __pyx_t_2.data = NULL;
50281 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50282 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
50283 __PYX_ERR(1, 13, __pyx_L1_error)
50285 __pyx_t_7 = PyTuple_GET_SIZE(__pyx_v___pyx_state);
if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
50286 __pyx_t_8 = ((__pyx_t_7 > 61) != 0);
50289 __pyx_t_6 = __pyx_t_8;
50290 goto __pyx_L4_bool_binop_done;
50292 __pyx_t_8 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(__pyx_t_8 == ((
int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
50293 __pyx_t_9 = (__pyx_t_8 != 0);
50294 __pyx_t_6 = __pyx_t_9;
50295 __pyx_L4_bool_binop_done:;
50303 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 14, __pyx_L1_error)
50304 __Pyx_GOTREF(__pyx_t_10);
50305 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_update);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 14, __pyx_L1_error)
50306 __Pyx_GOTREF(__pyx_t_11);
50307 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
50308 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50309 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50310 __PYX_ERR(1, 14, __pyx_L1_error)
50313 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
50314 __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11);
50315 if (likely(__pyx_t_10)) {
50316 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
50317 __Pyx_INCREF(__pyx_t_10);
50318 __Pyx_INCREF(
function);
50319 __Pyx_DECREF_SET(__pyx_t_11,
function);
50322 __pyx_t_1 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_10, PyTuple_GET_ITEM(__pyx_v___pyx_state, 61)) : __Pyx_PyObject_CallOneArg(__pyx_t_11, PyTuple_GET_ITEM(__pyx_v___pyx_state, 61));
50323 __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
50324 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
50325 __Pyx_GOTREF(__pyx_t_1);
50326 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
50327 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50346 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
50349 __Pyx_XDECREF(__pyx_t_1);
50350 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
50351 __PYX_XDEC_MEMVIEW(&__pyx_t_3, 1);
50352 __Pyx_XDECREF(__pyx_t_10);
50353 __Pyx_XDECREF(__pyx_t_11);
50354 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_BC_RANS__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
50357 __Pyx_XGIVEREF(__pyx_r);
50358 __Pyx_TraceReturn(__pyx_r, 0);
50359 __Pyx_RefNannyFinishContext();
50370 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_3__pyx_unpickle_RelaxationZoneWaveGenerator(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
50371 static char __pyx_doc_6mprans_18BoundaryConditions_2__pyx_unpickle_RelaxationZoneWaveGenerator[] =
"__pyx_unpickle_RelaxationZoneWaveGenerator(__pyx_type, long __pyx_checksum, __pyx_state)";
50372 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_3__pyx_unpickle_RelaxationZoneWaveGenerator = {
"__pyx_unpickle_RelaxationZoneWaveGenerator", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_3__pyx_unpickle_RelaxationZoneWaveGenerator, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_2__pyx_unpickle_RelaxationZoneWaveGenerator};
50373 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_3__pyx_unpickle_RelaxationZoneWaveGenerator(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
50374 PyObject *__pyx_v___pyx_type = 0;
50375 long __pyx_v___pyx_checksum;
50376 PyObject *__pyx_v___pyx_state = 0;
50377 int __pyx_lineno = 0;
50378 const char *__pyx_filename = NULL;
50379 int __pyx_clineno = 0;
50380 PyObject *__pyx_r = 0;
50381 __Pyx_RefNannyDeclarations
50382 __Pyx_RefNannySetupContext(
"__pyx_unpickle_RelaxationZoneWaveGenerator (wrapper)", 0);
50384 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
50385 PyObject* values[3] = {0,0,0};
50386 if (unlikely(__pyx_kwds)) {
50387 Py_ssize_t kw_args;
50388 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
50389 switch (pos_args) {
50390 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
50391 CYTHON_FALLTHROUGH;
50392 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
50393 CYTHON_FALLTHROUGH;
50394 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
50395 CYTHON_FALLTHROUGH;
50397 default:
goto __pyx_L5_argtuple_error;
50399 kw_args = PyDict_Size(__pyx_kwds);
50400 switch (pos_args) {
50402 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
50403 else goto __pyx_L5_argtuple_error;
50404 CYTHON_FALLTHROUGH;
50406 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
50408 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_RelaxationZoneWaveGenerator", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
50410 CYTHON_FALLTHROUGH;
50412 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
50414 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_RelaxationZoneWaveGenerator", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
50417 if (unlikely(kw_args > 0)) {
50418 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__pyx_unpickle_RelaxationZoneWaveGenerator") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
50420 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
50421 goto __pyx_L5_argtuple_error;
50423 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
50424 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
50425 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
50427 __pyx_v___pyx_type = values[0];
50428 __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]);
if (unlikely((__pyx_v___pyx_checksum == (
long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
50429 __pyx_v___pyx_state = values[2];
50431 goto __pyx_L4_argument_unpacking_done;
50432 __pyx_L5_argtuple_error:;
50433 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_RelaxationZoneWaveGenerator", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
50435 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_RelaxationZoneWaveGenerator", __pyx_clineno, __pyx_lineno, __pyx_filename);
50436 __Pyx_RefNannyFinishContext();
50438 __pyx_L4_argument_unpacking_done:;
50439 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_2__pyx_unpickle_RelaxationZoneWaveGenerator(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);
50442 __Pyx_RefNannyFinishContext();
50446 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_2__pyx_unpickle_RelaxationZoneWaveGenerator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
50447 PyObject *__pyx_v___pyx_PickleError = 0;
50448 PyObject *__pyx_v___pyx_result = 0;
50449 PyObject *__pyx_r = NULL;
50450 __Pyx_TraceDeclarations
50451 __Pyx_RefNannyDeclarations
50452 PyObject *__pyx_t_1 = NULL;
50455 PyObject *__pyx_t_4 = NULL;
50456 PyObject *__pyx_t_5 = NULL;
50457 PyObject *__pyx_t_6 = NULL;
50458 int __pyx_lineno = 0;
50459 const char *__pyx_filename = NULL;
50460 int __pyx_clineno = 0;
50461 __Pyx_TraceFrameInit(__pyx_codeobj__139)
50462 __Pyx_RefNannySetupContext(
"__pyx_unpickle_RelaxationZoneWaveGenerator", 0);
50463 __Pyx_TraceCall(
"__pyx_unpickle_RelaxationZoneWaveGenerator", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
50472 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
50473 __Pyx_GOTREF(__pyx_t_1);
50474 __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__140, Py_NE));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 4, __pyx_L1_error)
50475 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50476 __pyx_t_3 = (__pyx_t_2 != 0);
50486 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
50487 __Pyx_GOTREF(__pyx_t_1);
50488 __Pyx_INCREF(__pyx_n_s_PickleError);
50489 __Pyx_GIVEREF(__pyx_n_s_PickleError);
50490 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError);
50491 __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, -1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
50492 __Pyx_GOTREF(__pyx_t_4);
50493 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50494 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
50495 __Pyx_GOTREF(__pyx_t_1);
50496 __Pyx_INCREF(__pyx_t_1);
50497 __pyx_v___pyx_PickleError = __pyx_t_1;
50498 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50499 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
50508 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
50509 __Pyx_GOTREF(__pyx_t_1);
50510 __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
50511 __Pyx_GOTREF(__pyx_t_5);
50512 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50513 __Pyx_INCREF(__pyx_v___pyx_PickleError);
50514 __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL;
50515 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
50516 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
50517 if (likely(__pyx_t_6)) {
50518 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
50519 __Pyx_INCREF(__pyx_t_6);
50520 __Pyx_INCREF(
function);
50521 __Pyx_DECREF_SET(__pyx_t_1,
function);
50524 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
50525 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
50526 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
50527 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
50528 __Pyx_GOTREF(__pyx_t_4);
50529 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50530 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
50531 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
50532 __PYX_ERR(1, 6, __pyx_L1_error)
50550 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator), __pyx_n_s_new);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
50551 __Pyx_GOTREF(__pyx_t_1);
50553 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
50554 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
50555 if (likely(__pyx_t_5)) {
50556 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
50557 __Pyx_INCREF(__pyx_t_5);
50558 __Pyx_INCREF(
function);
50559 __Pyx_DECREF_SET(__pyx_t_1,
function);
50562 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type);
50563 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
50564 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 7, __pyx_L1_error)
50565 __Pyx_GOTREF(__pyx_t_4);
50566 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50567 __pyx_v___pyx_result = __pyx_t_4;
50577 __pyx_t_3 = (__pyx_v___pyx_state != Py_None);
50578 __pyx_t_2 = (__pyx_t_3 != 0);
50588 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
50589 __pyx_t_4 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_RelaxationZoneWaveGenerator__set_state(((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 9, __pyx_L1_error)
50590 __Pyx_GOTREF(__pyx_t_4);
50591 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
50609 __Pyx_XDECREF(__pyx_r);
50610 __Pyx_INCREF(__pyx_v___pyx_result);
50611 __pyx_r = __pyx_v___pyx_result;
50622 __Pyx_XDECREF(__pyx_t_1);
50623 __Pyx_XDECREF(__pyx_t_4);
50624 __Pyx_XDECREF(__pyx_t_5);
50625 __Pyx_XDECREF(__pyx_t_6);
50626 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_RelaxationZoneWaveGenerator", __pyx_clineno, __pyx_lineno, __pyx_filename);
50629 __Pyx_XDECREF(__pyx_v___pyx_PickleError);
50630 __Pyx_XDECREF(__pyx_v___pyx_result);
50631 __Pyx_XGIVEREF(__pyx_r);
50632 __Pyx_TraceReturn(__pyx_r, 0);
50633 __Pyx_RefNannyFinishContext();
50645 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle_RelaxationZoneWaveGenerator__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
50646 PyObject *__pyx_r = NULL;
50647 __Pyx_TraceDeclarations
50648 __Pyx_RefNannyDeclarations
50649 PyObject *__pyx_t_1 = NULL;
50652 Py_ssize_t __pyx_t_4;
50655 PyObject *__pyx_t_7 = NULL;
50656 PyObject *__pyx_t_8 = NULL;
50657 int __pyx_lineno = 0;
50658 const char *__pyx_filename = NULL;
50659 int __pyx_clineno = 0;
50660 __Pyx_RefNannySetupContext(
"__pyx_unpickle_RelaxationZoneWaveGenerator__set_state", 0);
50661 __Pyx_TraceCall(
"__pyx_unpickle_RelaxationZoneWaveGenerator__set_state", __pyx_f[1], 11, 0, __PYX_ERR(1, 11, __pyx_L1_error));
50670 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50671 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50672 __PYX_ERR(1, 12, __pyx_L1_error)
50674 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
50675 __Pyx_INCREF(__pyx_t_1);
50676 __Pyx_GIVEREF(__pyx_t_1);
50677 __Pyx_GOTREF(__pyx_v___pyx_result->ar);
50678 __Pyx_DECREF(__pyx_v___pyx_result->ar);
50679 __pyx_v___pyx_result->ar = __pyx_t_1;
50681 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50682 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50683 __PYX_ERR(1, 12, __pyx_L1_error)
50685 __pyx_t_2 = __Pyx_PyInt_As_int(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1));
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
50686 __pyx_v___pyx_result->max_flag = __pyx_t_2;
50687 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50688 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50689 __PYX_ERR(1, 12, __pyx_L1_error)
50691 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 2);
50692 __Pyx_INCREF(__pyx_t_1);
50693 __Pyx_GIVEREF(__pyx_t_1);
50694 __Pyx_GOTREF(__pyx_v___pyx_result->model);
50695 __Pyx_DECREF(__pyx_v___pyx_result->model);
50696 __pyx_v___pyx_result->model = __pyx_t_1;
50698 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50699 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50700 __PYX_ERR(1, 12, __pyx_L1_error)
50702 __pyx_t_2 = __Pyx_PyInt_As_int(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3));
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
50703 __pyx_v___pyx_result->nd = __pyx_t_2;
50704 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50705 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50706 __PYX_ERR(1, 12, __pyx_L1_error)
50708 if (!(likely(PyDict_CheckExact(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)))||((PyTuple_GET_ITEM(__pyx_v___pyx_state, 4)) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"dict", Py_TYPE(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4))->tp_name), 0))) __PYX_ERR(1, 12, __pyx_L1_error)
50709 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 4);
50710 __Pyx_INCREF(__pyx_t_1);
50711 __Pyx_GIVEREF(__pyx_t_1);
50712 __Pyx_GOTREF(__pyx_v___pyx_result->zones);
50713 __Pyx_DECREF(__pyx_v___pyx_result->zones);
50714 __pyx_v___pyx_result->zones = ((PyObject*)__pyx_t_1);
50716 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50717 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50718 __PYX_ERR(1, 12, __pyx_L1_error)
50720 if (!(likely(((PyTuple_GET_ITEM(__pyx_v___pyx_state, 5)) == Py_None) || likely(__Pyx_TypeTest(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5), __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 12, __pyx_L1_error)
50721 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 5);
50722 __Pyx_INCREF(__pyx_t_1);
50723 __Pyx_GIVEREF(__pyx_t_1);
50724 __Pyx_GOTREF(__pyx_v___pyx_result->zones_array);
50725 __Pyx_DECREF(((PyObject *)__pyx_v___pyx_result->zones_array));
50726 __pyx_v___pyx_result->zones_array = ((PyArrayObject *)__pyx_t_1);
50735 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50736 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
50737 __PYX_ERR(1, 13, __pyx_L1_error)
50739 __pyx_t_4 = PyTuple_GET_SIZE(__pyx_v___pyx_state);
if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
50740 __pyx_t_5 = ((__pyx_t_4 > 6) != 0);
50743 __pyx_t_3 = __pyx_t_5;
50744 goto __pyx_L4_bool_binop_done;
50746 __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(__pyx_t_5 == ((
int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
50747 __pyx_t_6 = (__pyx_t_5 != 0);
50748 __pyx_t_3 = __pyx_t_6;
50749 __pyx_L4_bool_binop_done:;
50757 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
50758 __Pyx_GOTREF(__pyx_t_7);
50759 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 14, __pyx_L1_error)
50760 __Pyx_GOTREF(__pyx_t_8);
50761 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
50762 if (unlikely(__pyx_v___pyx_state == Py_None)) {
50763 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
50764 __PYX_ERR(1, 14, __pyx_L1_error)
50767 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
50768 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
50769 if (likely(__pyx_t_7)) {
50770 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
50771 __Pyx_INCREF(__pyx_t_7);
50772 __Pyx_INCREF(
function);
50773 __Pyx_DECREF_SET(__pyx_t_8,
function);
50776 __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_7, PyTuple_GET_ITEM(__pyx_v___pyx_state, 6)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, PyTuple_GET_ITEM(__pyx_v___pyx_state, 6));
50777 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
50778 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
50779 __Pyx_GOTREF(__pyx_t_1);
50780 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
50781 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50800 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
50803 __Pyx_XDECREF(__pyx_t_1);
50804 __Pyx_XDECREF(__pyx_t_7);
50805 __Pyx_XDECREF(__pyx_t_8);
50806 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle_RelaxationZoneWaveGenerator__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
50809 __Pyx_XGIVEREF(__pyx_r);
50810 __Pyx_TraceReturn(__pyx_r, 0);
50811 __Pyx_RefNannyFinishContext();
50822 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5__pyx_unpickle___cppClass_WavesCharacteristics(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
50823 static char __pyx_doc_6mprans_18BoundaryConditions_4__pyx_unpickle___cppClass_WavesCharacteristics[] =
"__pyx_unpickle___cppClass_WavesCharacteristics(__pyx_type, long __pyx_checksum, __pyx_state)";
50824 static PyMethodDef __pyx_mdef_6mprans_18BoundaryConditions_5__pyx_unpickle___cppClass_WavesCharacteristics = {
"__pyx_unpickle___cppClass_WavesCharacteristics", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_5__pyx_unpickle___cppClass_WavesCharacteristics, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_4__pyx_unpickle___cppClass_WavesCharacteristics};
50825 static PyObject *__pyx_pw_6mprans_18BoundaryConditions_5__pyx_unpickle___cppClass_WavesCharacteristics(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
50826 PyObject *__pyx_v___pyx_type = 0;
50827 long __pyx_v___pyx_checksum;
50828 PyObject *__pyx_v___pyx_state = 0;
50829 int __pyx_lineno = 0;
50830 const char *__pyx_filename = NULL;
50831 int __pyx_clineno = 0;
50832 PyObject *__pyx_r = 0;
50833 __Pyx_RefNannyDeclarations
50834 __Pyx_RefNannySetupContext(
"__pyx_unpickle___cppClass_WavesCharacteristics (wrapper)", 0);
50836 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
50837 PyObject* values[3] = {0,0,0};
50838 if (unlikely(__pyx_kwds)) {
50839 Py_ssize_t kw_args;
50840 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
50841 switch (pos_args) {
50842 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
50843 CYTHON_FALLTHROUGH;
50844 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
50845 CYTHON_FALLTHROUGH;
50846 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
50847 CYTHON_FALLTHROUGH;
50849 default:
goto __pyx_L5_argtuple_error;
50851 kw_args = PyDict_Size(__pyx_kwds);
50852 switch (pos_args) {
50854 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
50855 else goto __pyx_L5_argtuple_error;
50856 CYTHON_FALLTHROUGH;
50858 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
50860 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle___cppClass_WavesCharacteristics", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
50862 CYTHON_FALLTHROUGH;
50864 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
50866 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle___cppClass_WavesCharacteristics", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
50869 if (unlikely(kw_args > 0)) {
50870 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__pyx_unpickle___cppClass_WavesCharacteristics") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
50872 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
50873 goto __pyx_L5_argtuple_error;
50875 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
50876 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
50877 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
50879 __pyx_v___pyx_type = values[0];
50880 __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]);
if (unlikely((__pyx_v___pyx_checksum == (
long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
50881 __pyx_v___pyx_state = values[2];
50883 goto __pyx_L4_argument_unpacking_done;
50884 __pyx_L5_argtuple_error:;
50885 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle___cppClass_WavesCharacteristics", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
50887 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle___cppClass_WavesCharacteristics", __pyx_clineno, __pyx_lineno, __pyx_filename);
50888 __Pyx_RefNannyFinishContext();
50890 __pyx_L4_argument_unpacking_done:;
50891 __pyx_r = __pyx_pf_6mprans_18BoundaryConditions_4__pyx_unpickle___cppClass_WavesCharacteristics(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);
50894 __Pyx_RefNannyFinishContext();
50898 static PyObject *__pyx_pf_6mprans_18BoundaryConditions_4__pyx_unpickle___cppClass_WavesCharacteristics(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
50899 PyObject *__pyx_v___pyx_PickleError = 0;
50900 PyObject *__pyx_v___pyx_result = 0;
50901 PyObject *__pyx_r = NULL;
50902 __Pyx_TraceDeclarations
50903 __Pyx_RefNannyDeclarations
50904 PyObject *__pyx_t_1 = NULL;
50907 PyObject *__pyx_t_4 = NULL;
50908 PyObject *__pyx_t_5 = NULL;
50909 PyObject *__pyx_t_6 = NULL;
50910 int __pyx_lineno = 0;
50911 const char *__pyx_filename = NULL;
50912 int __pyx_clineno = 0;
50913 __Pyx_TraceFrameInit(__pyx_codeobj__141)
50914 __Pyx_RefNannySetupContext(
"__pyx_unpickle___cppClass_WavesCharacteristics", 0);
50915 __Pyx_TraceCall(
"__pyx_unpickle___cppClass_WavesCharacteristics", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
50924 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
50925 __Pyx_GOTREF(__pyx_t_1);
50926 __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__142, Py_NE));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 4, __pyx_L1_error)
50927 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50928 __pyx_t_3 = (__pyx_t_2 != 0);
50938 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
50939 __Pyx_GOTREF(__pyx_t_1);
50940 __Pyx_INCREF(__pyx_n_s_PickleError);
50941 __Pyx_GIVEREF(__pyx_n_s_PickleError);
50942 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError);
50943 __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, -1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
50944 __Pyx_GOTREF(__pyx_t_4);
50945 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50946 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
50947 __Pyx_GOTREF(__pyx_t_1);
50948 __Pyx_INCREF(__pyx_t_1);
50949 __pyx_v___pyx_PickleError = __pyx_t_1;
50950 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50951 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
50960 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
50961 __Pyx_GOTREF(__pyx_t_1);
50962 __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
50963 __Pyx_GOTREF(__pyx_t_5);
50964 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50965 __Pyx_INCREF(__pyx_v___pyx_PickleError);
50966 __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL;
50967 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
50968 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
50969 if (likely(__pyx_t_6)) {
50970 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
50971 __Pyx_INCREF(__pyx_t_6);
50972 __Pyx_INCREF(
function);
50973 __Pyx_DECREF_SET(__pyx_t_1,
function);
50976 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
50977 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
50978 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
50979 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
50980 __Pyx_GOTREF(__pyx_t_4);
50981 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
50982 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
50983 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
50984 __PYX_ERR(1, 6, __pyx_L1_error)
51002 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics), __pyx_n_s_new);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
51003 __Pyx_GOTREF(__pyx_t_1);
51005 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
51006 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
51007 if (likely(__pyx_t_5)) {
51008 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
51009 __Pyx_INCREF(__pyx_t_5);
51010 __Pyx_INCREF(
function);
51011 __Pyx_DECREF_SET(__pyx_t_1,
function);
51014 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type);
51015 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
51016 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 7, __pyx_L1_error)
51017 __Pyx_GOTREF(__pyx_t_4);
51018 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51019 __pyx_v___pyx_result = __pyx_t_4;
51029 __pyx_t_3 = (__pyx_v___pyx_state != Py_None);
51030 __pyx_t_2 = (__pyx_t_3 != 0);
51040 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
51041 __pyx_t_4 = __pyx_f_6mprans_18BoundaryConditions___pyx_unpickle___cppClass_WavesCharacteristics__set_state(((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 9, __pyx_L1_error)
51042 __Pyx_GOTREF(__pyx_t_4);
51043 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
51061 __Pyx_XDECREF(__pyx_r);
51062 __Pyx_INCREF(__pyx_v___pyx_result);
51063 __pyx_r = __pyx_v___pyx_result;
51074 __Pyx_XDECREF(__pyx_t_1);
51075 __Pyx_XDECREF(__pyx_t_4);
51076 __Pyx_XDECREF(__pyx_t_5);
51077 __Pyx_XDECREF(__pyx_t_6);
51078 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle___cppClass_WavesCharacteristics", __pyx_clineno, __pyx_lineno, __pyx_filename);
51081 __Pyx_XDECREF(__pyx_v___pyx_PickleError);
51082 __Pyx_XDECREF(__pyx_v___pyx_result);
51083 __Pyx_XGIVEREF(__pyx_r);
51084 __Pyx_TraceReturn(__pyx_r, 0);
51085 __Pyx_RefNannyFinishContext();
51097 static PyObject *__pyx_f_6mprans_18BoundaryConditions___pyx_unpickle___cppClass_WavesCharacteristics__set_state(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
51098 PyObject *__pyx_r = NULL;
51099 __Pyx_TraceDeclarations
51100 __Pyx_RefNannyDeclarations
51101 PyObject *__pyx_t_1 = NULL;
51102 __Pyx_memviewslice __pyx_t_2 = { 0, 0, { 0 }, { 0 }, { 0 } };
51106 Py_ssize_t __pyx_t_6;
51109 PyObject *__pyx_t_9 = NULL;
51110 PyObject *__pyx_t_10 = NULL;
51111 int __pyx_lineno = 0;
51112 const char *__pyx_filename = NULL;
51113 int __pyx_clineno = 0;
51114 __Pyx_RefNannySetupContext(
"__pyx_unpickle___cppClass_WavesCharacteristics__set_state", 0);
51115 __Pyx_TraceCall(
"__pyx_unpickle___cppClass_WavesCharacteristics__set_state", __pyx_f[1], 11, 0, __PYX_ERR(1, 11, __pyx_L1_error));
51124 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51125 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51126 __PYX_ERR(1, 12, __pyx_L1_error)
51128 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_v___pyx_state, 0);
51129 __Pyx_INCREF(__pyx_t_1);
51130 __Pyx_GIVEREF(__pyx_t_1);
51131 __Pyx_GOTREF(__pyx_v___pyx_result->WT);
51132 __Pyx_DECREF(__pyx_v___pyx_result->WT);
51133 __pyx_v___pyx_result->WT = __pyx_t_1;
51135 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51136 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51137 __PYX_ERR(1, 12, __pyx_L1_error)
51139 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 1), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
51140 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->_b_or, 0);
51141 __pyx_v___pyx_result->_b_or = __pyx_t_2;
51142 __pyx_t_2.memview = NULL;
51143 __pyx_t_2.data = NULL;
51144 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51145 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51146 __PYX_ERR(1, 12, __pyx_L1_error)
51148 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 2), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
51149 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->center, 0);
51150 __pyx_v___pyx_result->center = __pyx_t_2;
51151 __pyx_t_2.memview = NULL;
51152 __pyx_t_2.data = NULL;
51153 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51154 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51155 __PYX_ERR(1, 12, __pyx_L1_error)
51157 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 3), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
51158 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->orientation, 0);
51159 __pyx_v___pyx_result->orientation = __pyx_t_2;
51160 __pyx_t_2.memview = NULL;
51161 __pyx_t_2.data = NULL;
51162 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51163 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51164 __PYX_ERR(1, 12, __pyx_L1_error)
51166 __pyx_t_3 = __pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(__pyx_v___pyx_state, 4));
if (unlikely((__pyx_t_3 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
51167 __pyx_v___pyx_result->smoothing = __pyx_t_3;
51168 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51169 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51170 __PYX_ERR(1, 12, __pyx_L1_error)
51172 __pyx_t_4 = __Pyx_PyInt_As_int(PyTuple_GET_ITEM(__pyx_v___pyx_state, 5));
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
51173 __pyx_v___pyx_result->vert_axis = __pyx_t_4;
51174 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51175 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51176 __PYX_ERR(1, 12, __pyx_L1_error)
51178 __pyx_t_3 = __pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(__pyx_v___pyx_state, 6));
if (unlikely((__pyx_t_3 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
51179 __pyx_v___pyx_result->vof_air = __pyx_t_3;
51180 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51181 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51182 __PYX_ERR(1, 12, __pyx_L1_error)
51184 __pyx_t_3 = __pyx_PyFloat_AsDouble(PyTuple_GET_ITEM(__pyx_v___pyx_state, 7));
if (unlikely((__pyx_t_3 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error)
51185 __pyx_v___pyx_result->vof_water = __pyx_t_3;
51186 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51187 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51188 __PYX_ERR(1, 12, __pyx_L1_error)
51190 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 8), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
51191 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->wind_speed, 0);
51192 __pyx_v___pyx_result->wind_speed = __pyx_t_2;
51193 __pyx_t_2.memview = NULL;
51194 __pyx_t_2.data = NULL;
51195 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51196 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51197 __PYX_ERR(1, 12, __pyx_L1_error)
51199 __pyx_t_2 = __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyTuple_GET_ITEM(__pyx_v___pyx_state, 9), PyBUF_WRITABLE);
if (unlikely(!__pyx_t_2.memview)) __PYX_ERR(1, 12, __pyx_L1_error)
51200 __PYX_XDEC_MEMVIEW(&__pyx_v___pyx_result->zero_vel, 0);
51201 __pyx_v___pyx_result->zero_vel = __pyx_t_2;
51202 __pyx_t_2.memview = NULL;
51203 __pyx_t_2.data = NULL;
51211 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51212 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
51213 __PYX_ERR(1, 13, __pyx_L1_error)
51215 __pyx_t_6 = PyTuple_GET_SIZE(__pyx_v___pyx_state);
if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
51216 __pyx_t_7 = ((__pyx_t_6 > 10) != 0);
51219 __pyx_t_5 = __pyx_t_7;
51220 goto __pyx_L4_bool_binop_done;
51222 __pyx_t_7 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(__pyx_t_7 == ((
int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
51223 __pyx_t_8 = (__pyx_t_7 != 0);
51224 __pyx_t_5 = __pyx_t_8;
51225 __pyx_L4_bool_binop_done:;
51233 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 14, __pyx_L1_error)
51234 __Pyx_GOTREF(__pyx_t_9);
51235 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_update);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 14, __pyx_L1_error)
51236 __Pyx_GOTREF(__pyx_t_10);
51237 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
51238 if (unlikely(__pyx_v___pyx_state == Py_None)) {
51239 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
51240 __PYX_ERR(1, 14, __pyx_L1_error)
51243 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
51244 __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
51245 if (likely(__pyx_t_9)) {
51246 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_10);
51247 __Pyx_INCREF(__pyx_t_9);
51248 __Pyx_INCREF(
function);
51249 __Pyx_DECREF_SET(__pyx_t_10,
function);
51252 __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, PyTuple_GET_ITEM(__pyx_v___pyx_state, 10)) : __Pyx_PyObject_CallOneArg(__pyx_t_10, PyTuple_GET_ITEM(__pyx_v___pyx_state, 10));
51253 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
51254 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
51255 __Pyx_GOTREF(__pyx_t_1);
51256 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
51257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
51276 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
51279 __Pyx_XDECREF(__pyx_t_1);
51280 __PYX_XDEC_MEMVIEW(&__pyx_t_2, 1);
51281 __Pyx_XDECREF(__pyx_t_9);
51282 __Pyx_XDECREF(__pyx_t_10);
51283 __Pyx_AddTraceback(
"mprans.BoundaryConditions.__pyx_unpickle___cppClass_WavesCharacteristics__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
51286 __Pyx_XGIVEREF(__pyx_r);
51287 __Pyx_TraceReturn(__pyx_r, 0);
51288 __Pyx_RefNannyFinishContext();
51300 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
51301 PyObject *__pyx_r = NULL;
51302 __Pyx_TraceDeclarations
51303 __Pyx_RefNannyDeclarations
51304 PyObject *__pyx_t_1 = NULL;
51305 int __pyx_lineno = 0;
51306 const char *__pyx_filename = NULL;
51307 int __pyx_clineno = 0;
51308 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
51309 __Pyx_TraceCall(
"PyArray_MultiIterNew1", __pyx_f[3], 735, 0, __PYX_ERR(3, 735, __pyx_L1_error));
51318 __Pyx_XDECREF(__pyx_r);
51319 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 736, __pyx_L1_error)
51320 __Pyx_GOTREF(__pyx_t_1);
51321 __pyx_r = __pyx_t_1;
51335 __Pyx_XDECREF(__pyx_t_1);
51336 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
51339 __Pyx_XGIVEREF(__pyx_r);
51340 __Pyx_TraceReturn(__pyx_r, 0);
51341 __Pyx_RefNannyFinishContext();
51353 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
51354 PyObject *__pyx_r = NULL;
51355 __Pyx_TraceDeclarations
51356 __Pyx_RefNannyDeclarations
51357 PyObject *__pyx_t_1 = NULL;
51358 int __pyx_lineno = 0;
51359 const char *__pyx_filename = NULL;
51360 int __pyx_clineno = 0;
51361 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
51362 __Pyx_TraceCall(
"PyArray_MultiIterNew2", __pyx_f[3], 738, 0, __PYX_ERR(3, 738, __pyx_L1_error));
51371 __Pyx_XDECREF(__pyx_r);
51372 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 739, __pyx_L1_error)
51373 __Pyx_GOTREF(__pyx_t_1);
51374 __pyx_r = __pyx_t_1;
51388 __Pyx_XDECREF(__pyx_t_1);
51389 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
51392 __Pyx_XGIVEREF(__pyx_r);
51393 __Pyx_TraceReturn(__pyx_r, 0);
51394 __Pyx_RefNannyFinishContext();
51406 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
51407 PyObject *__pyx_r = NULL;
51408 __Pyx_TraceDeclarations
51409 __Pyx_RefNannyDeclarations
51410 PyObject *__pyx_t_1 = NULL;
51411 int __pyx_lineno = 0;
51412 const char *__pyx_filename = NULL;
51413 int __pyx_clineno = 0;
51414 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
51415 __Pyx_TraceCall(
"PyArray_MultiIterNew3", __pyx_f[3], 741, 0, __PYX_ERR(3, 741, __pyx_L1_error));
51424 __Pyx_XDECREF(__pyx_r);
51425 __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(3, 742, __pyx_L1_error)
51426 __Pyx_GOTREF(__pyx_t_1);
51427 __pyx_r = __pyx_t_1;
51441 __Pyx_XDECREF(__pyx_t_1);
51442 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
51445 __Pyx_XGIVEREF(__pyx_r);
51446 __Pyx_TraceReturn(__pyx_r, 0);
51447 __Pyx_RefNannyFinishContext();
51459 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) {
51460 PyObject *__pyx_r = NULL;
51461 __Pyx_TraceDeclarations
51462 __Pyx_RefNannyDeclarations
51463 PyObject *__pyx_t_1 = NULL;
51464 int __pyx_lineno = 0;
51465 const char *__pyx_filename = NULL;
51466 int __pyx_clineno = 0;
51467 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
51468 __Pyx_TraceCall(
"PyArray_MultiIterNew4", __pyx_f[3], 744, 0, __PYX_ERR(3, 744, __pyx_L1_error));
51477 __Pyx_XDECREF(__pyx_r);
51478 __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(3, 745, __pyx_L1_error)
51479 __Pyx_GOTREF(__pyx_t_1);
51480 __pyx_r = __pyx_t_1;
51494 __Pyx_XDECREF(__pyx_t_1);
51495 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
51498 __Pyx_XGIVEREF(__pyx_r);
51499 __Pyx_TraceReturn(__pyx_r, 0);
51500 __Pyx_RefNannyFinishContext();
51512 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) {
51513 PyObject *__pyx_r = NULL;
51514 __Pyx_TraceDeclarations
51515 __Pyx_RefNannyDeclarations
51516 PyObject *__pyx_t_1 = NULL;
51517 int __pyx_lineno = 0;
51518 const char *__pyx_filename = NULL;
51519 int __pyx_clineno = 0;
51520 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
51521 __Pyx_TraceCall(
"PyArray_MultiIterNew5", __pyx_f[3], 747, 0, __PYX_ERR(3, 747, __pyx_L1_error));
51530 __Pyx_XDECREF(__pyx_r);
51531 __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(3, 748, __pyx_L1_error)
51532 __Pyx_GOTREF(__pyx_t_1);
51533 __pyx_r = __pyx_t_1;
51547 __Pyx_XDECREF(__pyx_t_1);
51548 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
51551 __Pyx_XGIVEREF(__pyx_r);
51552 __Pyx_TraceReturn(__pyx_r, 0);
51553 __Pyx_RefNannyFinishContext();
51565 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
51566 PyObject *__pyx_r = NULL;
51567 __Pyx_TraceDeclarations
51568 __Pyx_RefNannyDeclarations
51570 int __pyx_lineno = 0;
51571 const char *__pyx_filename = NULL;
51572 int __pyx_clineno = 0;
51573 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
51574 __Pyx_TraceCall(
"PyDataType_SHAPE", __pyx_f[3], 750, 0, __PYX_ERR(3, 750, __pyx_L1_error));
51583 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
51593 __Pyx_XDECREF(__pyx_r);
51594 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
51595 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
51615 __Pyx_XDECREF(__pyx_r);
51616 __Pyx_INCREF(__pyx_empty_tuple);
51617 __pyx_r = __pyx_empty_tuple;
51631 __Pyx_AddTraceback(
"numpy.PyDataType_SHAPE", __pyx_clineno, __pyx_lineno, __pyx_filename);
51634 __Pyx_XGIVEREF(__pyx_r);
51635 __Pyx_TraceReturn(__pyx_r, 0);
51636 __Pyx_RefNannyFinishContext();
51648 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
51649 __Pyx_TraceDeclarations
51650 __Pyx_RefNannyDeclarations
51651 int __pyx_lineno = 0;
51652 const char *__pyx_filename = NULL;
51653 int __pyx_clineno = 0;
51654 __Pyx_RefNannySetupContext(
"set_array_base", 0);
51655 __Pyx_TraceCall(
"set_array_base", __pyx_f[3], 929, 0, __PYX_ERR(3, 929, __pyx_L1_error));
51664 Py_INCREF(__pyx_v_base);
51673 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
51686 __Pyx_WriteUnraisable(
"numpy.set_array_base", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
51688 __Pyx_TraceReturn(Py_None, 0);
51689 __Pyx_RefNannyFinishContext();
51700 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
51701 PyObject *__pyx_v_base;
51702 PyObject *__pyx_r = NULL;
51703 __Pyx_TraceDeclarations
51704 __Pyx_RefNannyDeclarations
51706 int __pyx_lineno = 0;
51707 const char *__pyx_filename = NULL;
51708 int __pyx_clineno = 0;
51709 __Pyx_RefNannySetupContext(
"get_array_base", 0);
51710 __Pyx_TraceCall(
"get_array_base", __pyx_f[3], 933, 0, __PYX_ERR(3, 933, __pyx_L1_error));
51719 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
51728 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
51738 __Pyx_XDECREF(__pyx_r);
51739 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
51758 __Pyx_XDECREF(__pyx_r);
51759 __Pyx_INCREF(((PyObject *)__pyx_v_base));
51760 __pyx_r = ((PyObject *)__pyx_v_base);
51773 __Pyx_AddTraceback(
"numpy.get_array_base", __pyx_clineno, __pyx_lineno, __pyx_filename);
51776 __Pyx_XGIVEREF(__pyx_r);
51777 __Pyx_TraceReturn(__pyx_r, 0);
51778 __Pyx_RefNannyFinishContext();
51790 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
51792 __Pyx_TraceDeclarations
51793 __Pyx_RefNannyDeclarations
51794 PyObject *__pyx_t_1 = NULL;
51795 PyObject *__pyx_t_2 = NULL;
51796 PyObject *__pyx_t_3 = NULL;
51798 PyObject *__pyx_t_5 = NULL;
51799 PyObject *__pyx_t_6 = NULL;
51800 PyObject *__pyx_t_7 = NULL;
51801 PyObject *__pyx_t_8 = NULL;
51802 int __pyx_lineno = 0;
51803 const char *__pyx_filename = NULL;
51804 int __pyx_clineno = 0;
51805 __Pyx_RefNannySetupContext(
"import_array", 0);
51806 __Pyx_TraceCall(
"import_array", __pyx_f[3], 941, 0, __PYX_ERR(3, 941, __pyx_L1_error));
51816 __Pyx_PyThreadState_declare
51817 __Pyx_PyThreadState_assign
51818 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
51819 __Pyx_XGOTREF(__pyx_t_1);
51820 __Pyx_XGOTREF(__pyx_t_2);
51821 __Pyx_XGOTREF(__pyx_t_3);
51831 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 943, __pyx_L3_error)
51841 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
51842 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
51843 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
51844 goto __pyx_L8_try_end;
51854 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
51856 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
51857 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 944, __pyx_L5_except_error)
51858 __Pyx_GOTREF(__pyx_t_5);
51859 __Pyx_GOTREF(__pyx_t_6);
51860 __Pyx_GOTREF(__pyx_t_7);
51869 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__143, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 945, __pyx_L5_except_error)
51870 __Pyx_GOTREF(__pyx_t_8);
51871 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
51872 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
51873 __PYX_ERR(3, 945, __pyx_L5_except_error)
51875 goto __pyx_L5_except_error;
51876 __pyx_L5_except_error:;
51885 __Pyx_XGIVEREF(__pyx_t_1);
51886 __Pyx_XGIVEREF(__pyx_t_2);
51887 __Pyx_XGIVEREF(__pyx_t_3);
51888 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
51889 goto __pyx_L1_error;
51905 __Pyx_XDECREF(__pyx_t_5);
51906 __Pyx_XDECREF(__pyx_t_6);
51907 __Pyx_XDECREF(__pyx_t_7);
51908 __Pyx_XDECREF(__pyx_t_8);
51909 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
51912 __Pyx_TraceReturn(Py_None, 0);
51913 __Pyx_RefNannyFinishContext();
51925 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
51927 __Pyx_TraceDeclarations
51928 __Pyx_RefNannyDeclarations
51929 PyObject *__pyx_t_1 = NULL;
51930 PyObject *__pyx_t_2 = NULL;
51931 PyObject *__pyx_t_3 = NULL;
51933 PyObject *__pyx_t_5 = NULL;
51934 PyObject *__pyx_t_6 = NULL;
51935 PyObject *__pyx_t_7 = NULL;
51936 PyObject *__pyx_t_8 = NULL;
51937 int __pyx_lineno = 0;
51938 const char *__pyx_filename = NULL;
51939 int __pyx_clineno = 0;
51940 __Pyx_RefNannySetupContext(
"import_umath", 0);
51941 __Pyx_TraceCall(
"import_umath", __pyx_f[3], 947, 0, __PYX_ERR(3, 947, __pyx_L1_error));
51951 __Pyx_PyThreadState_declare
51952 __Pyx_PyThreadState_assign
51953 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
51954 __Pyx_XGOTREF(__pyx_t_1);
51955 __Pyx_XGOTREF(__pyx_t_2);
51956 __Pyx_XGOTREF(__pyx_t_3);
51966 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 949, __pyx_L3_error)
51976 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
51977 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
51978 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
51979 goto __pyx_L8_try_end;
51989 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
51991 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
51992 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 950, __pyx_L5_except_error)
51993 __Pyx_GOTREF(__pyx_t_5);
51994 __Pyx_GOTREF(__pyx_t_6);
51995 __Pyx_GOTREF(__pyx_t_7);
52004 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__144, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 951, __pyx_L5_except_error)
52005 __Pyx_GOTREF(__pyx_t_8);
52006 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
52007 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
52008 __PYX_ERR(3, 951, __pyx_L5_except_error)
52010 goto __pyx_L5_except_error;
52011 __pyx_L5_except_error:;
52020 __Pyx_XGIVEREF(__pyx_t_1);
52021 __Pyx_XGIVEREF(__pyx_t_2);
52022 __Pyx_XGIVEREF(__pyx_t_3);
52023 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
52024 goto __pyx_L1_error;
52040 __Pyx_XDECREF(__pyx_t_5);
52041 __Pyx_XDECREF(__pyx_t_6);
52042 __Pyx_XDECREF(__pyx_t_7);
52043 __Pyx_XDECREF(__pyx_t_8);
52044 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
52047 __Pyx_TraceReturn(Py_None, 0);
52048 __Pyx_RefNannyFinishContext();
52060 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
52062 __Pyx_TraceDeclarations
52063 __Pyx_RefNannyDeclarations
52064 PyObject *__pyx_t_1 = NULL;
52065 PyObject *__pyx_t_2 = NULL;
52066 PyObject *__pyx_t_3 = NULL;
52068 PyObject *__pyx_t_5 = NULL;
52069 PyObject *__pyx_t_6 = NULL;
52070 PyObject *__pyx_t_7 = NULL;
52071 PyObject *__pyx_t_8 = NULL;
52072 int __pyx_lineno = 0;
52073 const char *__pyx_filename = NULL;
52074 int __pyx_clineno = 0;
52075 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
52076 __Pyx_TraceCall(
"import_ufunc", __pyx_f[3], 953, 0, __PYX_ERR(3, 953, __pyx_L1_error));
52086 __Pyx_PyThreadState_declare
52087 __Pyx_PyThreadState_assign
52088 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
52089 __Pyx_XGOTREF(__pyx_t_1);
52090 __Pyx_XGOTREF(__pyx_t_2);
52091 __Pyx_XGOTREF(__pyx_t_3);
52101 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 955, __pyx_L3_error)
52111 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
52112 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
52113 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
52114 goto __pyx_L8_try_end;
52124 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
52126 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
52127 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 956, __pyx_L5_except_error)
52128 __Pyx_GOTREF(__pyx_t_5);
52129 __Pyx_GOTREF(__pyx_t_6);
52130 __Pyx_GOTREF(__pyx_t_7);
52139 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__144, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 957, __pyx_L5_except_error)
52140 __Pyx_GOTREF(__pyx_t_8);
52141 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
52142 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
52143 __PYX_ERR(3, 957, __pyx_L5_except_error)
52145 goto __pyx_L5_except_error;
52146 __pyx_L5_except_error:;
52155 __Pyx_XGIVEREF(__pyx_t_1);
52156 __Pyx_XGIVEREF(__pyx_t_2);
52157 __Pyx_XGIVEREF(__pyx_t_3);
52158 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
52159 goto __pyx_L1_error;
52175 __Pyx_XDECREF(__pyx_t_5);
52176 __Pyx_XDECREF(__pyx_t_6);
52177 __Pyx_XDECREF(__pyx_t_7);
52178 __Pyx_XDECREF(__pyx_t_8);
52179 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
52182 __Pyx_TraceReturn(Py_None, 0);
52183 __Pyx_RefNannyFinishContext();
52195 static CYTHON_INLINE
int __pyx_f_5numpy_is_timedelta64_object(PyObject *__pyx_v_obj) {
52197 __Pyx_TraceDeclarations
52198 __Pyx_RefNannyDeclarations
52199 int __pyx_lineno = 0;
52200 const char *__pyx_filename = NULL;
52201 int __pyx_clineno = 0;
52202 __Pyx_RefNannySetupContext(
"is_timedelta64_object", 0);
52203 __Pyx_TraceCall(
"is_timedelta64_object", __pyx_f[3], 967, 0, __PYX_ERR(3, 967, __pyx_L1_error));
52212 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyTimedeltaArrType_Type));
52225 __Pyx_WriteUnraisable(
"numpy.is_timedelta64_object", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
52228 __Pyx_TraceReturn(Py_None, 0);
52229 __Pyx_RefNannyFinishContext();
52241 static CYTHON_INLINE
int __pyx_f_5numpy_is_datetime64_object(PyObject *__pyx_v_obj) {
52243 __Pyx_TraceDeclarations
52244 __Pyx_RefNannyDeclarations
52245 int __pyx_lineno = 0;
52246 const char *__pyx_filename = NULL;
52247 int __pyx_clineno = 0;
52248 __Pyx_RefNannySetupContext(
"is_datetime64_object", 0);
52249 __Pyx_TraceCall(
"is_datetime64_object", __pyx_f[3], 982, 0, __PYX_ERR(3, 982, __pyx_L1_error));
52258 __pyx_r = PyObject_TypeCheck(__pyx_v_obj, (&PyDatetimeArrType_Type));
52271 __Pyx_WriteUnraisable(
"numpy.is_datetime64_object", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
52274 __Pyx_TraceReturn(Py_None, 0);
52275 __Pyx_RefNannyFinishContext();
52287 static CYTHON_INLINE npy_datetime __pyx_f_5numpy_get_datetime64_value(PyObject *__pyx_v_obj) {
52288 npy_datetime __pyx_r;
52289 __Pyx_TraceDeclarations
52290 int __pyx_lineno = 0;
52291 const char *__pyx_filename = NULL;
52292 int __pyx_clineno = 0;
52293 __Pyx_TraceCall(
"get_datetime64_value", __pyx_f[3], 997, 1, __PYX_ERR(3, 997, __pyx_L1_error));
52302 __pyx_r = ((PyDatetimeScalarObject *)__pyx_v_obj)->obval;
52315 __Pyx_WriteUnraisable(
"numpy.get_datetime64_value", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
52318 __Pyx_TraceReturn(Py_None, 1);
52330 static CYTHON_INLINE npy_timedelta __pyx_f_5numpy_get_timedelta64_value(PyObject *__pyx_v_obj) {
52331 npy_timedelta __pyx_r;
52332 __Pyx_TraceDeclarations
52333 int __pyx_lineno = 0;
52334 const char *__pyx_filename = NULL;
52335 int __pyx_clineno = 0;
52336 __Pyx_TraceCall(
"get_timedelta64_value", __pyx_f[3], 1007, 1, __PYX_ERR(3, 1007, __pyx_L1_error));
52345 __pyx_r = ((PyTimedeltaScalarObject *)__pyx_v_obj)->obval;
52358 __Pyx_WriteUnraisable(
"numpy.get_timedelta64_value", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
52361 __Pyx_TraceReturn(Py_None, 1);
52373 static CYTHON_INLINE NPY_DATETIMEUNIT __pyx_f_5numpy_get_datetime64_unit(PyObject *__pyx_v_obj) {
52374 NPY_DATETIMEUNIT __pyx_r;
52375 __Pyx_TraceDeclarations
52376 int __pyx_lineno = 0;
52377 const char *__pyx_filename = NULL;
52378 int __pyx_clineno = 0;
52379 __Pyx_TraceCall(
"get_datetime64_unit", __pyx_f[3], 1014, 1, __PYX_ERR(3, 1014, __pyx_L1_error));
52386 __pyx_r = ((NPY_DATETIMEUNIT)((PyDatetimeScalarObject *)__pyx_v_obj)->obmeta.base);
52399 __Pyx_WriteUnraisable(
"numpy.get_datetime64_unit", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
52400 __pyx_r = (NPY_DATETIMEUNIT) 0;
52402 __Pyx_TraceReturn(Py_None, 1);
52414 static CYTHON_INLINE PyObject *__Pyx_carray_to_py_double(
double *__pyx_v_v, Py_ssize_t __pyx_v_length) {
52416 PyObject *__pyx_v_value = 0;
52417 PyObject *__pyx_v_l = NULL;
52418 PyObject *__pyx_r = NULL;
52419 __Pyx_TraceDeclarations
52420 __Pyx_RefNannyDeclarations
52421 PyObject *__pyx_t_1 = NULL;
52422 PyObject *__pyx_t_2 = NULL;
52423 PyObject *__pyx_t_3 = NULL;
52424 PyObject *__pyx_t_4 = NULL;
52425 Py_ssize_t __pyx_t_5;
52426 PyObject *(*__pyx_t_6)(PyObject *);
52428 int __pyx_lineno = 0;
52429 const char *__pyx_filename = NULL;
52430 int __pyx_clineno = 0;
52431 __Pyx_RefNannySetupContext(
"__Pyx_carray_to_py_double", 0);
52432 __Pyx_TraceCall(
"__Pyx_carray_to_py_double", __pyx_f[1], 112, 0, __PYX_ERR(1, 112, __pyx_L1_error));
52441 __pyx_t_1 = PyList_New(__pyx_v_length);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 115, __pyx_L1_error)
52442 __Pyx_GOTREF(__pyx_t_1);
52443 __pyx_v_l = ((PyObject*)__pyx_t_1);
52453 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_range);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 116, __pyx_L1_error)
52454 __Pyx_GOTREF(__pyx_t_2);
52455 __pyx_t_3 = __Pyx_PyInt_FromSize_t(((
size_t)__pyx_v_length));
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 116, __pyx_L1_error)
52456 __Pyx_GOTREF(__pyx_t_3);
52458 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
52459 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
52460 if (likely(__pyx_t_4)) {
52461 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
52462 __Pyx_INCREF(__pyx_t_4);
52463 __Pyx_INCREF(
function);
52464 __Pyx_DECREF_SET(__pyx_t_2,
function);
52467 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
52468 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
52469 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
52470 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error)
52471 __Pyx_GOTREF(__pyx_t_1);
52472 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
52473 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
52474 __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0;
52477 __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 116, __pyx_L1_error)
52478 __Pyx_GOTREF(__pyx_t_2);
52479 __pyx_t_6 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 116, __pyx_L1_error)
52481 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52483 if (likely(!__pyx_t_6)) {
52484 if (likely(PyList_CheckExact(__pyx_t_2))) {
52485 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2))
break;
52486 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52487 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 116, __pyx_L1_error)
52489 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error)
52490 __Pyx_GOTREF(__pyx_t_1);
52493 if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
52494 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52495 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 116, __pyx_L1_error)
52497 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error)
52498 __Pyx_GOTREF(__pyx_t_1);
52502 __pyx_t_1 = __pyx_t_6(__pyx_t_2);
52503 if (unlikely(!__pyx_t_1)) {
52504 PyObject* exc_type = PyErr_Occurred();
52506 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
52507 else __PYX_ERR(1, 116, __pyx_L1_error)
52511 __Pyx_GOTREF(__pyx_t_1);
52513 __pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_t_1);
if (unlikely((__pyx_t_7 == (
size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 116, __pyx_L1_error)
52514 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52515 __pyx_v_i = __pyx_t_7;
52524 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i]));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error)
52525 __Pyx_GOTREF(__pyx_t_1);
52526 __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
52536 Py_INCREF(__pyx_v_value);
52545 PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value);
52555 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
52564 __Pyx_XDECREF(__pyx_r);
52565 __Pyx_INCREF(__pyx_v_l);
52566 __pyx_r = __pyx_v_l;
52579 __Pyx_XDECREF(__pyx_t_1);
52580 __Pyx_XDECREF(__pyx_t_2);
52581 __Pyx_XDECREF(__pyx_t_3);
52582 __Pyx_XDECREF(__pyx_t_4);
52583 __Pyx_AddTraceback(
"carray.to_py.__Pyx_carray_to_py_double", __pyx_clineno, __pyx_lineno, __pyx_filename);
52586 __Pyx_XDECREF(__pyx_v_value);
52587 __Pyx_XDECREF(__pyx_v_l);
52588 __Pyx_XGIVEREF(__pyx_r);
52589 __Pyx_TraceReturn(__pyx_r, 0);
52590 __Pyx_RefNannyFinishContext();
52602 static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_double(
double *__pyx_v_v, Py_ssize_t __pyx_v_length) {
52604 PyObject *__pyx_v_value = 0;
52605 PyObject *__pyx_v_t = NULL;
52606 PyObject *__pyx_r = NULL;
52607 __Pyx_TraceDeclarations
52608 __Pyx_RefNannyDeclarations
52609 PyObject *__pyx_t_1 = NULL;
52610 PyObject *__pyx_t_2 = NULL;
52611 PyObject *__pyx_t_3 = NULL;
52612 PyObject *__pyx_t_4 = NULL;
52613 Py_ssize_t __pyx_t_5;
52614 PyObject *(*__pyx_t_6)(PyObject *);
52616 int __pyx_lineno = 0;
52617 const char *__pyx_filename = NULL;
52618 int __pyx_clineno = 0;
52619 __Pyx_RefNannySetupContext(
"__Pyx_carray_to_tuple_double", 0);
52620 __Pyx_TraceCall(
"__Pyx_carray_to_tuple_double", __pyx_f[1], 124, 0, __PYX_ERR(1, 124, __pyx_L1_error));
52629 __pyx_t_1 = PyTuple_New(__pyx_v_length);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error)
52630 __Pyx_GOTREF(__pyx_t_1);
52631 __pyx_v_t = ((PyObject*)__pyx_t_1);
52641 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_range);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 128, __pyx_L1_error)
52642 __Pyx_GOTREF(__pyx_t_2);
52643 __pyx_t_3 = __Pyx_PyInt_FromSize_t(((
size_t)__pyx_v_length));
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 128, __pyx_L1_error)
52644 __Pyx_GOTREF(__pyx_t_3);
52646 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
52647 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
52648 if (likely(__pyx_t_4)) {
52649 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
52650 __Pyx_INCREF(__pyx_t_4);
52651 __Pyx_INCREF(
function);
52652 __Pyx_DECREF_SET(__pyx_t_2,
function);
52655 __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
52656 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
52657 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
52658 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 128, __pyx_L1_error)
52659 __Pyx_GOTREF(__pyx_t_1);
52660 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
52661 if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
52662 __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0;
52665 __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 128, __pyx_L1_error)
52666 __Pyx_GOTREF(__pyx_t_2);
52667 __pyx_t_6 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 128, __pyx_L1_error)
52669 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52671 if (likely(!__pyx_t_6)) {
52672 if (likely(PyList_CheckExact(__pyx_t_2))) {
52673 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2))
break;
52674 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52675 __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 128, __pyx_L1_error)
52677 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 128, __pyx_L1_error)
52678 __Pyx_GOTREF(__pyx_t_1);
52681 if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
52682 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52683 __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 128, __pyx_L1_error)
52685 __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 128, __pyx_L1_error)
52686 __Pyx_GOTREF(__pyx_t_1);
52690 __pyx_t_1 = __pyx_t_6(__pyx_t_2);
52691 if (unlikely(!__pyx_t_1)) {
52692 PyObject* exc_type = PyErr_Occurred();
52694 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
52695 else __PYX_ERR(1, 128, __pyx_L1_error)
52699 __Pyx_GOTREF(__pyx_t_1);
52701 __pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_t_1);
if (unlikely((__pyx_t_7 == (
size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 128, __pyx_L1_error)
52702 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
52703 __pyx_v_i = __pyx_t_7;
52712 __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i]));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 129, __pyx_L1_error)
52713 __Pyx_GOTREF(__pyx_t_1);
52714 __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
52724 Py_INCREF(__pyx_v_value);
52732 PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value);
52742 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
52749 __Pyx_XDECREF(__pyx_r);
52750 __Pyx_INCREF(__pyx_v_t);
52751 __pyx_r = __pyx_v_t;
52764 __Pyx_XDECREF(__pyx_t_1);
52765 __Pyx_XDECREF(__pyx_t_2);
52766 __Pyx_XDECREF(__pyx_t_3);
52767 __Pyx_XDECREF(__pyx_t_4);
52768 __Pyx_AddTraceback(
"carray.to_py.__Pyx_carray_to_tuple_double", __pyx_clineno, __pyx_lineno, __pyx_filename);
52771 __Pyx_XDECREF(__pyx_v_value);
52772 __Pyx_XDECREF(__pyx_v_t);
52773 __Pyx_XGIVEREF(__pyx_r);
52774 __Pyx_TraceReturn(__pyx_r, 0);
52775 __Pyx_RefNannyFinishContext();
52787 static int __Pyx_carray_from_py_double(PyObject *__pyx_v_o,
double *__pyx_v_v, Py_ssize_t __pyx_v_length) {
52788 Py_ssize_t __pyx_v_i;
52789 PyObject *__pyx_v_item = NULL;
52791 __Pyx_TraceDeclarations
52792 __Pyx_RefNannyDeclarations
52793 PyObject *__pyx_t_1 = NULL;
52794 PyObject *__pyx_t_2 = NULL;
52795 PyObject *__pyx_t_3 = NULL;
52796 Py_ssize_t __pyx_t_4;
52799 PyObject *__pyx_t_7 = NULL;
52800 Py_ssize_t __pyx_t_8;
52801 PyObject *(*__pyx_t_9)(PyObject *);
52802 PyObject *__pyx_t_10 = NULL;
52804 char const *__pyx_t_12;
52805 int __pyx_lineno = 0;
52806 const char *__pyx_filename = NULL;
52807 int __pyx_clineno = 0;
52808 __Pyx_RefNannySetupContext(
"__Pyx_carray_from_py_double", 0);
52809 __Pyx_TraceCall(
"__Pyx_carray_from_py_double", __pyx_f[1], 77, 0, __PYX_ERR(1, 77, __pyx_L1_error));
52818 __pyx_v_i = __pyx_v_length;
52828 __Pyx_PyThreadState_declare
52829 __Pyx_PyThreadState_assign
52830 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
52831 __Pyx_XGOTREF(__pyx_t_1);
52832 __Pyx_XGOTREF(__pyx_t_2);
52833 __Pyx_XGOTREF(__pyx_t_3);
52843 __pyx_t_4 = PyObject_Length(__pyx_v_o);
if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(1, 80, __pyx_L3_error)
52844 __pyx_v_i = __pyx_t_4;
52854 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
52855 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
52856 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
52857 goto __pyx_L8_try_end;
52867 __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError) || __Pyx_PyErr_ExceptionMatches(__pyx_builtin_OverflowError);
52869 __Pyx_ErrRestore(0,0,0);
52870 goto __pyx_L4_exception_handled;
52872 goto __pyx_L5_except_error;
52873 __pyx_L5_except_error:;
52882 __Pyx_XGIVEREF(__pyx_t_1);
52883 __Pyx_XGIVEREF(__pyx_t_2);
52884 __Pyx_XGIVEREF(__pyx_t_3);
52885 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
52886 goto __pyx_L1_error;
52887 __pyx_L4_exception_handled:;
52888 __Pyx_XGIVEREF(__pyx_t_1);
52889 __Pyx_XGIVEREF(__pyx_t_2);
52890 __Pyx_XGIVEREF(__pyx_t_3);
52891 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
52902 __pyx_t_6 = ((__pyx_v_i == __pyx_v_length) != 0);
52913 if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
52914 __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7); __pyx_t_8 = 0;
52917 __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 84, __pyx_L1_error)
52918 __Pyx_GOTREF(__pyx_t_7);
52919 __pyx_t_9 = Py_TYPE(__pyx_t_7)->tp_iternext;
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 84, __pyx_L1_error)
52922 if (likely(!__pyx_t_9)) {
52923 if (likely(PyList_CheckExact(__pyx_t_7))) {
52924 if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_7))
break;
52925 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52926 __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(1, 84, __pyx_L1_error)
52928 __pyx_t_10 = PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 84, __pyx_L1_error)
52929 __Pyx_GOTREF(__pyx_t_10);
52932 if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_7))
break;
52933 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
52934 __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++;
if (unlikely(0 < 0)) __PYX_ERR(1, 84, __pyx_L1_error)
52936 __pyx_t_10 = PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++;
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 84, __pyx_L1_error)
52937 __Pyx_GOTREF(__pyx_t_10);
52941 __pyx_t_10 = __pyx_t_9(__pyx_t_7);
52942 if (unlikely(!__pyx_t_10)) {
52943 PyObject* exc_type = PyErr_Occurred();
52945 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
52946 else __PYX_ERR(1, 84, __pyx_L1_error)
52950 __Pyx_GOTREF(__pyx_t_10);
52952 __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
52954 __pyx_v_i = __pyx_t_4;
52955 __pyx_t_4 = (__pyx_t_4 + 1);
52964 __pyx_t_6 = ((__pyx_v_i >= __pyx_v_length) != 0);
52974 goto __pyx_L11_break;
52992 __pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_v_item);
if (unlikely((__pyx_t_11 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 87, __pyx_L1_error)
52993 (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;
53012 __pyx_v_i = (__pyx_v_i + 1);
53021 __pyx_t_6 = ((__pyx_v_i == __pyx_v_length) != 0);
53032 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
53053 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
53071 if (((__pyx_v_i >= __pyx_v_length) != 0)) {
53072 __pyx_t_12 = ((
char const *)
"too many values found during array assignment, expected %zd");
53074 __pyx_t_12 = ((
char const *)
"not enough values found during array assignment, expected %zd, got %zd");
53084 __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 93, __pyx_L1_error)
53085 __Pyx_GOTREF(__pyx_t_7);
53086 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
53100 __Pyx_XDECREF(__pyx_t_7);
53101 __Pyx_XDECREF(__pyx_t_10);
53102 __Pyx_AddTraceback(
"carray.from_py.__Pyx_carray_from_py_double", __pyx_clineno, __pyx_lineno, __pyx_filename);
53105 __Pyx_XDECREF(__pyx_v_item);
53106 __Pyx_TraceReturn(Py_None, 0);
53107 __Pyx_RefNannyFinishContext();
53120 static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
53121 static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
53122 PyObject *__pyx_v_shape = 0;
53123 Py_ssize_t __pyx_v_itemsize;
53124 PyObject *__pyx_v_format = 0;
53125 PyObject *__pyx_v_mode = 0;
53126 int __pyx_v_allocate_buffer;
53127 int __pyx_lineno = 0;
53128 const char *__pyx_filename = NULL;
53129 int __pyx_clineno = 0;
53131 __Pyx_RefNannyDeclarations
53132 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
53134 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shape,&__pyx_n_s_itemsize,&__pyx_n_s_format,&__pyx_n_s_mode,&__pyx_n_s_allocate_buffer,0};
53135 PyObject* values[5] = {0,0,0,0,0};
53136 values[3] = ((PyObject *)__pyx_n_s_c);
53137 if (unlikely(__pyx_kwds)) {
53138 Py_ssize_t kw_args;
53139 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
53140 switch (pos_args) {
53141 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
53142 CYTHON_FALLTHROUGH;
53143 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
53144 CYTHON_FALLTHROUGH;
53145 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
53146 CYTHON_FALLTHROUGH;
53147 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
53148 CYTHON_FALLTHROUGH;
53149 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
53150 CYTHON_FALLTHROUGH;
53152 default:
goto __pyx_L5_argtuple_error;
53154 kw_args = PyDict_Size(__pyx_kwds);
53155 switch (pos_args) {
53157 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--;
53158 else goto __pyx_L5_argtuple_error;
53159 CYTHON_FALLTHROUGH;
53161 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_itemsize)) != 0)) kw_args--;
53163 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, 1); __PYX_ERR(1, 122, __pyx_L3_error)
53165 CYTHON_FALLTHROUGH;
53167 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format)) != 0)) kw_args--;
53169 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, 2); __PYX_ERR(1, 122, __pyx_L3_error)
53171 CYTHON_FALLTHROUGH;
53174 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode);
53175 if (value) { values[3] = value; kw_args--; }
53177 CYTHON_FALLTHROUGH;
53180 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_allocate_buffer);
53181 if (value) { values[4] = value; kw_args--; }
53184 if (unlikely(kw_args > 0)) {
53185 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(1, 122, __pyx_L3_error)
53188 switch (PyTuple_GET_SIZE(__pyx_args)) {
53189 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
53190 CYTHON_FALLTHROUGH;
53191 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
53192 CYTHON_FALLTHROUGH;
53193 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
53194 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
53195 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
53197 default:
goto __pyx_L5_argtuple_error;
53200 __pyx_v_shape = ((PyObject*)values[0]);
53201 __pyx_v_itemsize = __Pyx_PyIndex_AsSsize_t(values[1]);
if (unlikely((__pyx_v_itemsize == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 122, __pyx_L3_error)
53202 __pyx_v_format = values[2];
53203 __pyx_v_mode = values[3];
53205 __pyx_v_allocate_buffer = __Pyx_PyObject_IsTrue(values[4]);
if (unlikely((__pyx_v_allocate_buffer == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 123, __pyx_L3_error)
53215 __pyx_v_allocate_buffer = ((int)1);
53218 goto __pyx_L4_argument_unpacking_done;
53219 __pyx_L5_argtuple_error:;
53220 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 122, __pyx_L3_error)
53222 __Pyx_AddTraceback(
"View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
53223 __Pyx_RefNannyFinishContext();
53225 __pyx_L4_argument_unpacking_done:;
53226 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shape), (&PyTuple_Type), 1,
"shape", 1))) __PYX_ERR(1, 122, __pyx_L1_error)
53227 if (unlikely(((PyObject *)__pyx_v_format) == Py_None)) {
53228 PyErr_Format(PyExc_TypeError,
"Argument '%.200s' must not be None",
"format"); __PYX_ERR(1, 122, __pyx_L1_error)
53230 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(((
struct __pyx_array_obj *)__pyx_v_self), __pyx_v_shape, __pyx_v_itemsize, __pyx_v_format, __pyx_v_mode, __pyx_v_allocate_buffer);
53245 __Pyx_RefNannyFinishContext();
53249 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode,
int __pyx_v_allocate_buffer) {
53251 Py_ssize_t __pyx_v_i;
53252 Py_ssize_t __pyx_v_dim;
53253 PyObject **__pyx_v_p;
53254 char __pyx_v_order;
53256 __Pyx_TraceDeclarations
53257 __Pyx_RefNannyDeclarations
53258 Py_ssize_t __pyx_t_1;
53260 PyObject *__pyx_t_3 = NULL;
53262 PyObject *__pyx_t_5 = NULL;
53263 PyObject *__pyx_t_6 = NULL;
53266 Py_ssize_t __pyx_t_9;
53267 PyObject *__pyx_t_10 = NULL;
53268 Py_ssize_t __pyx_t_11;
53269 int __pyx_lineno = 0;
53270 const char *__pyx_filename = NULL;
53271 int __pyx_clineno = 0;
53272 __Pyx_RefNannySetupContext(
"__cinit__", 0);
53273 __Pyx_TraceCall(
"__cinit__", __pyx_f[1], 122, 0, __PYX_ERR(1, 122, __pyx_L1_error));
53274 __Pyx_INCREF(__pyx_v_format);
53283 if (unlikely(__pyx_v_shape == Py_None)) {
53284 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
53285 __PYX_ERR(1, 129, __pyx_L1_error)
53287 __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_shape);
if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 129, __pyx_L1_error)
53288 __pyx_v_self->ndim = ((int)__pyx_t_1);
53297 __pyx_v_self->itemsize = __pyx_v_itemsize;
53306 __pyx_t_2 = ((!(__pyx_v_self->ndim != 0)) != 0);
53307 if (unlikely(__pyx_t_2)) {
53316 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__145, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 133, __pyx_L1_error)
53317 __Pyx_GOTREF(__pyx_t_3);
53318 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
53319 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
53320 __PYX_ERR(1, 133, __pyx_L1_error)
53338 __pyx_t_2 = ((__pyx_v_itemsize <= 0) != 0);
53339 if (unlikely(__pyx_t_2)) {
53348 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__146, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 136, __pyx_L1_error)
53349 __Pyx_GOTREF(__pyx_t_3);
53350 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
53351 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
53352 __PYX_ERR(1, 136, __pyx_L1_error)
53370 __pyx_t_2 = PyBytes_Check(__pyx_v_format);
53371 __pyx_t_4 = ((!(__pyx_t_2 != 0)) != 0);
53381 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_n_s_encode);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 139, __pyx_L1_error)
53382 __Pyx_GOTREF(__pyx_t_5);
53384 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
53385 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
53386 if (likely(__pyx_t_6)) {
53387 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
53388 __Pyx_INCREF(__pyx_t_6);
53389 __Pyx_INCREF(
function);
53390 __Pyx_DECREF_SET(__pyx_t_5,
function);
53393 __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_n_s_ASCII) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ASCII);
53394 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
53395 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 139, __pyx_L1_error)
53396 __Pyx_GOTREF(__pyx_t_3);
53397 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
53398 __Pyx_DECREF_SET(__pyx_v_format, __pyx_t_3);
53417 if (!(likely(PyBytes_CheckExact(__pyx_v_format))||((__pyx_v_format) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_v_format)->tp_name), 0))) __PYX_ERR(1, 140, __pyx_L1_error)
53418 __pyx_t_3 = __pyx_v_format;
53419 __Pyx_INCREF(__pyx_t_3);
53420 __Pyx_GIVEREF(__pyx_t_3);
53421 __Pyx_GOTREF(__pyx_v_self->_format);
53422 __Pyx_DECREF(__pyx_v_self->_format);
53423 __pyx_v_self->_format = ((PyObject*)__pyx_t_3);
53433 if (unlikely(__pyx_v_self->_format == Py_None)) {
53434 PyErr_SetString(PyExc_TypeError,
"expected bytes, NoneType found");
53435 __PYX_ERR(1, 141, __pyx_L1_error)
53437 __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_self->_format);
if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(1, 141, __pyx_L1_error)
53438 __pyx_v_self->format = __pyx_t_7;
53447 __pyx_v_self->_shape = ((Py_ssize_t *)PyObject_Malloc((((
sizeof(Py_ssize_t)) * __pyx_v_self->ndim) * 2)));
53456 __pyx_v_self->_strides = (__pyx_v_self->_shape + __pyx_v_self->ndim);
53465 __pyx_t_4 = ((!(__pyx_v_self->_shape != 0)) != 0);
53466 if (unlikely(__pyx_t_4)) {
53475 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__147, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 148, __pyx_L1_error)
53476 __Pyx_GOTREF(__pyx_t_3);
53477 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
53478 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
53479 __PYX_ERR(1, 148, __pyx_L1_error)
53498 __pyx_t_3 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0;
53500 if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
53501 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
53502 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++;
if (unlikely(0 < 0)) __PYX_ERR(1, 151, __pyx_L1_error)
53504 __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 151, __pyx_L1_error)
53505 __Pyx_GOTREF(__pyx_t_5);
53507 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 151, __pyx_L1_error)
53508 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
53509 __pyx_v_dim = __pyx_t_9;
53510 __pyx_v_idx = __pyx_t_8;
53511 __pyx_t_8 = (__pyx_t_8 + 1);
53520 __pyx_t_4 = ((__pyx_v_dim <= 0) != 0);
53521 if (unlikely(__pyx_t_4)) {
53530 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_idx);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 153, __pyx_L1_error)
53531 __Pyx_GOTREF(__pyx_t_5);
53532 __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 153, __pyx_L1_error)
53533 __Pyx_GOTREF(__pyx_t_6);
53534 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 153, __pyx_L1_error)
53535 __Pyx_GOTREF(__pyx_t_10);
53536 __Pyx_GIVEREF(__pyx_t_5);
53537 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5);
53538 __Pyx_GIVEREF(__pyx_t_6);
53539 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_6);
53542 __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_t_10);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 153, __pyx_L1_error)
53543 __Pyx_GOTREF(__pyx_t_6);
53544 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
53545 __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_6);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 153, __pyx_L1_error)
53546 __Pyx_GOTREF(__pyx_t_10);
53547 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
53548 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
53549 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
53550 __PYX_ERR(1, 153, __pyx_L1_error)
53568 (__pyx_v_self->_shape[__pyx_v_idx]) = __pyx_v_dim;
53578 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
53587 __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_fortran, Py_EQ));
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(1, 157, __pyx_L1_error)
53597 __pyx_v_order =
'F';
53606 __Pyx_INCREF(__pyx_n_u_fortran);
53607 __Pyx_GIVEREF(__pyx_n_u_fortran);
53608 __Pyx_GOTREF(__pyx_v_self->mode);
53609 __Pyx_DECREF(__pyx_v_self->mode);
53610 __pyx_v_self->mode = __pyx_n_u_fortran;
53629 __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_c, Py_EQ));
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(1, 160, __pyx_L1_error)
53630 if (likely(__pyx_t_4)) {
53639 __pyx_v_order =
'C';
53648 __Pyx_INCREF(__pyx_n_u_c);
53649 __Pyx_GIVEREF(__pyx_n_u_c);
53650 __Pyx_GOTREF(__pyx_v_self->mode);
53651 __Pyx_DECREF(__pyx_v_self->mode);
53652 __pyx_v_self->mode = __pyx_n_u_c;
53672 __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_v_mode);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 164, __pyx_L1_error)
53673 __Pyx_GOTREF(__pyx_t_3);
53674 __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 164, __pyx_L1_error)
53675 __Pyx_GOTREF(__pyx_t_10);
53676 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
53677 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
53678 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
53679 __PYX_ERR(1, 164, __pyx_L1_error)
53690 __pyx_v_self->len = __pyx_fill_contig_strides_array(__pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_itemsize, __pyx_v_self->ndim, __pyx_v_order);
53699 __pyx_v_self->free_data = __pyx_v_allocate_buffer;
53708 __pyx_t_10 = PyObject_RichCompare(__pyx_v_format, __pyx_n_b_O, Py_EQ); __Pyx_XGOTREF(__pyx_t_10);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 170, __pyx_L1_error)
53709 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_10);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 170, __pyx_L1_error)
53710 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
53711 __pyx_v_self->dtype_is_object = __pyx_t_4;
53720 __pyx_t_4 = (__pyx_v_allocate_buffer != 0);
53730 __pyx_v_self->data = ((
char *)malloc(__pyx_v_self->len));
53739 __pyx_t_4 = ((!(__pyx_v_self->data != 0)) != 0);
53740 if (unlikely(__pyx_t_4)) {
53749 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__148, NULL);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 176, __pyx_L1_error)
53750 __Pyx_GOTREF(__pyx_t_10);
53751 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
53752 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
53753 __PYX_ERR(1, 176, __pyx_L1_error)
53771 __pyx_t_4 = (__pyx_v_self->dtype_is_object != 0);
53781 __pyx_v_p = ((PyObject **)__pyx_v_self->data);
53790 if (unlikely(__pyx_v_itemsize == 0)) {
53791 PyErr_SetString(PyExc_ZeroDivisionError,
"integer division or modulo by zero");
53792 __PYX_ERR(1, 180, __pyx_L1_error)
53794 else if (
sizeof(Py_ssize_t) ==
sizeof(
long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_self->len))) {
53795 PyErr_SetString(PyExc_OverflowError,
"value too large to perform division");
53796 __PYX_ERR(1, 180, __pyx_L1_error)
53798 __pyx_t_1 = __Pyx_div_Py_ssize_t(__pyx_v_self->len, __pyx_v_itemsize);
53799 __pyx_t_9 = __pyx_t_1;
53800 for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_9; __pyx_t_11+=1) {
53801 __pyx_v_i = __pyx_t_11;
53810 (__pyx_v_p[__pyx_v_i]) = Py_None;
53819 Py_INCREF(Py_None);
53852 __Pyx_XDECREF(__pyx_t_3);
53853 __Pyx_XDECREF(__pyx_t_5);
53854 __Pyx_XDECREF(__pyx_t_6);
53855 __Pyx_XDECREF(__pyx_t_10);
53856 __Pyx_AddTraceback(
"View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
53859 __Pyx_XDECREF(__pyx_v_format);
53860 __Pyx_TraceReturn(Py_None, 0);
53861 __Pyx_RefNannyFinishContext();
53874 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
53875 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
53877 __Pyx_RefNannyDeclarations
53878 __Pyx_RefNannySetupContext(
"__getbuffer__ (wrapper)", 0);
53879 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(((
struct __pyx_array_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((
int)__pyx_v_flags));
53882 __Pyx_RefNannyFinishContext();
53886 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(
struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
53887 int __pyx_v_bufmode;
53889 __Pyx_TraceDeclarations
53890 __Pyx_RefNannyDeclarations
53893 PyObject *__pyx_t_3 = NULL;
53895 Py_ssize_t __pyx_t_5;
53897 Py_ssize_t *__pyx_t_7;
53898 int __pyx_lineno = 0;
53899 const char *__pyx_filename = NULL;
53900 int __pyx_clineno = 0;
53901 if (__pyx_v_info == NULL) {
53902 PyErr_SetString(PyExc_BufferError,
"PyObject_GetBuffer: view==NULL argument is obsolete");
53905 __Pyx_RefNannySetupContext(
"__getbuffer__", 0);
53906 __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
53907 __Pyx_GIVEREF(__pyx_v_info->obj);
53908 __Pyx_TraceCall(
"__getbuffer__", __pyx_f[1], 185, 0, __PYX_ERR(1, 185, __pyx_L1_error));
53917 __pyx_v_bufmode = -1;
53926 __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_c, Py_EQ));
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 187, __pyx_L1_error)
53927 __pyx_t_2 = (__pyx_t_1 != 0);
53937 __pyx_v_bufmode = (PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);
53956 __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_fortran, Py_EQ));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 189, __pyx_L1_error)
53957 __pyx_t_1 = (__pyx_t_2 != 0);
53967 __pyx_v_bufmode = (PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);
53986 __pyx_t_1 = ((!((__pyx_v_flags & __pyx_v_bufmode) != 0)) != 0);
53987 if (unlikely(__pyx_t_1)) {
53996 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__149, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 192, __pyx_L1_error)
53997 __Pyx_GOTREF(__pyx_t_3);
53998 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
53999 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
54000 __PYX_ERR(1, 192, __pyx_L1_error)
54018 __pyx_t_4 = __pyx_v_self->data;
54019 __pyx_v_info->buf = __pyx_t_4;
54028 __pyx_t_5 = __pyx_v_self->len;
54029 __pyx_v_info->len = __pyx_t_5;
54038 __pyx_t_6 = __pyx_v_self->ndim;
54039 __pyx_v_info->ndim = __pyx_t_6;
54048 __pyx_t_7 = __pyx_v_self->_shape;
54049 __pyx_v_info->shape = __pyx_t_7;
54058 __pyx_t_7 = __pyx_v_self->_strides;
54059 __pyx_v_info->strides = __pyx_t_7;
54068 __pyx_v_info->suboffsets = NULL;
54077 __pyx_t_5 = __pyx_v_self->itemsize;
54078 __pyx_v_info->itemsize = __pyx_t_5;
54087 __pyx_v_info->readonly = 0;
54096 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
54106 __pyx_t_4 = __pyx_v_self->format;
54107 __pyx_v_info->format = __pyx_t_4;
54127 __pyx_v_info->format = NULL;
54138 __Pyx_INCREF(((PyObject *)__pyx_v_self));
54139 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
54140 __Pyx_GOTREF(__pyx_v_info->obj);
54141 __Pyx_DECREF(__pyx_v_info->obj);
54142 __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
54156 __Pyx_XDECREF(__pyx_t_3);
54157 __Pyx_AddTraceback(
"View.MemoryView.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54159 if (__pyx_v_info->obj != NULL) {
54160 __Pyx_GOTREF(__pyx_v_info->obj);
54161 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
54165 if (__pyx_v_info->obj == Py_None) {
54166 __Pyx_GOTREF(__pyx_v_info->obj);
54167 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
54170 __Pyx_TraceReturn(Py_None, 0);
54171 __Pyx_RefNannyFinishContext();
54184 static void __pyx_array___dealloc__(PyObject *__pyx_v_self);
54185 static void __pyx_array___dealloc__(PyObject *__pyx_v_self) {
54186 __Pyx_RefNannyDeclarations
54187 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
54188 __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(((
struct __pyx_array_obj *)__pyx_v_self));
54191 __Pyx_RefNannyFinishContext();
54194 static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(
struct __pyx_array_obj *__pyx_v_self) {
54195 __Pyx_TraceDeclarations
54196 __Pyx_RefNannyDeclarations
54198 int __pyx_lineno = 0;
54199 const char *__pyx_filename = NULL;
54200 int __pyx_clineno = 0;
54201 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
54202 __Pyx_TraceCall(
"__dealloc__", __pyx_f[1], 211, 0, __PYX_ERR(1, 211, __pyx_L1_error));
54211 __pyx_t_1 = ((__pyx_v_self->callback_free_data != NULL) != 0);
54221 __pyx_v_self->callback_free_data(__pyx_v_self->data);
54240 __pyx_t_1 = (__pyx_v_self->free_data != 0);
54250 __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0);
54260 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_self->data, __pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_self->ndim, 0);
54278 free(__pyx_v_self->data);
54297 PyObject_Free(__pyx_v_self->_shape);
54310 __Pyx_WriteUnraisable(
"View.MemoryView.array.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
54312 __Pyx_TraceReturn(Py_None, 0);
54313 __Pyx_RefNannyFinishContext();
54325 static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self);
54326 static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self) {
54327 PyObject *__pyx_r = 0;
54328 __Pyx_RefNannyDeclarations
54329 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
54330 __pyx_r = __pyx_pf_15View_dot_MemoryView_5array_7memview___get__(((
struct __pyx_array_obj *)__pyx_v_self));
54333 __Pyx_RefNannyFinishContext();
54337 static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(
struct __pyx_array_obj *__pyx_v_self) {
54338 PyObject *__pyx_r = NULL;
54339 __Pyx_TraceDeclarations
54340 __Pyx_RefNannyDeclarations
54341 PyObject *__pyx_t_1 = NULL;
54342 int __pyx_lineno = 0;
54343 const char *__pyx_filename = NULL;
54344 int __pyx_clineno = 0;
54345 __Pyx_RefNannySetupContext(
"__get__", 0);
54346 __Pyx_TraceCall(
"__get__", __pyx_f[1], 222, 0, __PYX_ERR(1, 222, __pyx_L1_error));
54355 __Pyx_XDECREF(__pyx_r);
54356 __pyx_t_1 = ((
struct __pyx_vtabstruct_array *)__pyx_v_self->__pyx_vtab)->get_memview(__pyx_v_self);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 223, __pyx_L1_error)
54357 __Pyx_GOTREF(__pyx_t_1);
54358 __pyx_r = __pyx_t_1;
54372 __Pyx_XDECREF(__pyx_t_1);
54373 __Pyx_AddTraceback(
"View.MemoryView.array.memview.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54376 __Pyx_XGIVEREF(__pyx_r);
54377 __Pyx_TraceReturn(__pyx_r, 0);
54378 __Pyx_RefNannyFinishContext();
54390 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *__pyx_v_self) {
54392 PyObject *__pyx_r = NULL;
54393 __Pyx_TraceDeclarations
54394 __Pyx_RefNannyDeclarations
54395 PyObject *__pyx_t_1 = NULL;
54396 PyObject *__pyx_t_2 = NULL;
54397 PyObject *__pyx_t_3 = NULL;
54398 int __pyx_lineno = 0;
54399 const char *__pyx_filename = NULL;
54400 int __pyx_clineno = 0;
54401 __Pyx_RefNannySetupContext(
"get_memview", 0);
54402 __Pyx_TraceCall(
"get_memview", __pyx_f[1], 226, 0, __PYX_ERR(1, 226, __pyx_L1_error));
54411 __pyx_v_flags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_FORMAT) | PyBUF_WRITABLE);
54420 __Pyx_XDECREF(__pyx_r);
54421 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 228, __pyx_L1_error)
54422 __Pyx_GOTREF(__pyx_t_1);
54423 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 228, __pyx_L1_error)
54424 __Pyx_GOTREF(__pyx_t_2);
54425 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 228, __pyx_L1_error)
54426 __Pyx_GOTREF(__pyx_t_3);
54427 __Pyx_INCREF(((PyObject *)__pyx_v_self));
54428 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
54429 PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self));
54430 __Pyx_GIVEREF(__pyx_t_1);
54431 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
54432 __Pyx_GIVEREF(__pyx_t_2);
54433 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
54436 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 228, __pyx_L1_error)
54437 __Pyx_GOTREF(__pyx_t_2);
54438 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
54439 __pyx_r = __pyx_t_2;
54453 __Pyx_XDECREF(__pyx_t_1);
54454 __Pyx_XDECREF(__pyx_t_2);
54455 __Pyx_XDECREF(__pyx_t_3);
54456 __Pyx_AddTraceback(
"View.MemoryView.array.get_memview", __pyx_clineno, __pyx_lineno, __pyx_filename);
54459 __Pyx_XGIVEREF(__pyx_r);
54460 __Pyx_TraceReturn(__pyx_r, 0);
54461 __Pyx_RefNannyFinishContext();
54474 static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self);
54475 static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self) {
54476 Py_ssize_t __pyx_r;
54477 __Pyx_RefNannyDeclarations
54478 __Pyx_RefNannySetupContext(
"__len__ (wrapper)", 0);
54479 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(((
struct __pyx_array_obj *)__pyx_v_self));
54482 __Pyx_RefNannyFinishContext();
54486 static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(
struct __pyx_array_obj *__pyx_v_self) {
54487 Py_ssize_t __pyx_r;
54488 __Pyx_TraceDeclarations
54489 __Pyx_RefNannyDeclarations
54490 int __pyx_lineno = 0;
54491 const char *__pyx_filename = NULL;
54492 int __pyx_clineno = 0;
54493 __Pyx_RefNannySetupContext(
"__len__", 0);
54494 __Pyx_TraceCall(
"__len__", __pyx_f[1], 230, 0, __PYX_ERR(1, 230, __pyx_L1_error));
54503 __pyx_r = (__pyx_v_self->_shape[0]);
54516 __Pyx_AddTraceback(
"View.MemoryView.array.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54519 __Pyx_TraceReturn(Py_None, 0);
54520 __Pyx_RefNannyFinishContext();
54533 static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr);
54534 static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr) {
54535 PyObject *__pyx_r = 0;
54536 __Pyx_RefNannyDeclarations
54537 __Pyx_RefNannySetupContext(
"__getattr__ (wrapper)", 0);
54538 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_attr));
54541 __Pyx_RefNannyFinishContext();
54545 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr) {
54546 PyObject *__pyx_r = NULL;
54547 __Pyx_TraceDeclarations
54548 __Pyx_RefNannyDeclarations
54549 PyObject *__pyx_t_1 = NULL;
54550 PyObject *__pyx_t_2 = NULL;
54551 int __pyx_lineno = 0;
54552 const char *__pyx_filename = NULL;
54553 int __pyx_clineno = 0;
54554 __Pyx_RefNannySetupContext(
"__getattr__", 0);
54555 __Pyx_TraceCall(
"__getattr__", __pyx_f[1], 233, 0, __PYX_ERR(1, 233, __pyx_L1_error));
54564 __Pyx_XDECREF(__pyx_r);
54565 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 234, __pyx_L1_error)
54566 __Pyx_GOTREF(__pyx_t_1);
54567 __pyx_t_2 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_attr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 234, __pyx_L1_error)
54568 __Pyx_GOTREF(__pyx_t_2);
54569 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54570 __pyx_r = __pyx_t_2;
54584 __Pyx_XDECREF(__pyx_t_1);
54585 __Pyx_XDECREF(__pyx_t_2);
54586 __Pyx_AddTraceback(
"View.MemoryView.array.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54589 __Pyx_XGIVEREF(__pyx_r);
54590 __Pyx_TraceReturn(__pyx_r, 0);
54591 __Pyx_RefNannyFinishContext();
54604 static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item);
54605 static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) {
54606 PyObject *__pyx_r = 0;
54607 __Pyx_RefNannyDeclarations
54608 __Pyx_RefNannySetupContext(
"__getitem__ (wrapper)", 0);
54609 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item));
54612 __Pyx_RefNannyFinishContext();
54616 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item) {
54617 PyObject *__pyx_r = NULL;
54618 __Pyx_TraceDeclarations
54619 __Pyx_RefNannyDeclarations
54620 PyObject *__pyx_t_1 = NULL;
54621 PyObject *__pyx_t_2 = NULL;
54622 int __pyx_lineno = 0;
54623 const char *__pyx_filename = NULL;
54624 int __pyx_clineno = 0;
54625 __Pyx_RefNannySetupContext(
"__getitem__", 0);
54626 __Pyx_TraceCall(
"__getitem__", __pyx_f[1], 236, 0, __PYX_ERR(1, 236, __pyx_L1_error));
54635 __Pyx_XDECREF(__pyx_r);
54636 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 237, __pyx_L1_error)
54637 __Pyx_GOTREF(__pyx_t_1);
54638 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_item);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 237, __pyx_L1_error)
54639 __Pyx_GOTREF(__pyx_t_2);
54640 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54641 __pyx_r = __pyx_t_2;
54655 __Pyx_XDECREF(__pyx_t_1);
54656 __Pyx_XDECREF(__pyx_t_2);
54657 __Pyx_AddTraceback(
"View.MemoryView.array.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54660 __Pyx_XGIVEREF(__pyx_r);
54661 __Pyx_TraceReturn(__pyx_r, 0);
54662 __Pyx_RefNannyFinishContext();
54675 static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value);
54676 static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
54678 __Pyx_RefNannyDeclarations
54679 __Pyx_RefNannySetupContext(
"__setitem__ (wrapper)", 0);
54680 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item), ((PyObject *)__pyx_v_value));
54683 __Pyx_RefNannyFinishContext();
54687 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
54689 __Pyx_TraceDeclarations
54690 __Pyx_RefNannyDeclarations
54691 PyObject *__pyx_t_1 = NULL;
54692 int __pyx_lineno = 0;
54693 const char *__pyx_filename = NULL;
54694 int __pyx_clineno = 0;
54695 __Pyx_RefNannySetupContext(
"__setitem__", 0);
54696 __Pyx_TraceCall(
"__setitem__", __pyx_f[1], 239, 0, __PYX_ERR(1, 239, __pyx_L1_error));
54705 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error)
54706 __Pyx_GOTREF(__pyx_t_1);
54707 if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_item, __pyx_v_value) < 0)) __PYX_ERR(1, 240, __pyx_L1_error)
54708 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54722 __Pyx_XDECREF(__pyx_t_1);
54723 __Pyx_AddTraceback(
"View.MemoryView.array.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54726 __Pyx_TraceReturn(Py_None, 0);
54727 __Pyx_RefNannyFinishContext();
54738 static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
54739 static PyMethodDef __pyx_mdef___pyx_array_1__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_array_1__reduce_cython__, METH_NOARGS, 0};
54740 static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
54741 PyObject *__pyx_r = 0;
54742 __Pyx_RefNannyDeclarations
54743 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
54744 __pyx_r = __pyx_pf___pyx_array___reduce_cython__(((
struct __pyx_array_obj *)__pyx_v_self));
54747 __Pyx_RefNannyFinishContext();
54751 static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self) {
54752 PyObject *__pyx_r = NULL;
54753 __Pyx_TraceDeclarations
54754 __Pyx_RefNannyDeclarations
54755 PyObject *__pyx_t_1 = NULL;
54756 int __pyx_lineno = 0;
54757 const char *__pyx_filename = NULL;
54758 int __pyx_clineno = 0;
54759 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
54760 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
54768 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__150, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
54769 __Pyx_GOTREF(__pyx_t_1);
54770 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
54771 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54772 __PYX_ERR(1, 2, __pyx_L1_error)
54782 __Pyx_XDECREF(__pyx_t_1);
54783 __Pyx_AddTraceback(
"View.MemoryView.array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54785 __Pyx_XGIVEREF(__pyx_r);
54786 __Pyx_TraceReturn(__pyx_r, 0);
54787 __Pyx_RefNannyFinishContext();
54799 static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
54800 static PyMethodDef __pyx_mdef___pyx_array_3__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_array_3__setstate_cython__, METH_O, 0};
54801 static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
54802 PyObject *__pyx_r = 0;
54803 __Pyx_RefNannyDeclarations
54804 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
54805 __pyx_r = __pyx_pf___pyx_array_2__setstate_cython__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
54808 __Pyx_RefNannyFinishContext();
54812 static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
54813 PyObject *__pyx_r = NULL;
54814 __Pyx_TraceDeclarations
54815 __Pyx_RefNannyDeclarations
54816 PyObject *__pyx_t_1 = NULL;
54817 int __pyx_lineno = 0;
54818 const char *__pyx_filename = NULL;
54819 int __pyx_clineno = 0;
54820 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
54821 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error));
54828 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__151, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
54829 __Pyx_GOTREF(__pyx_t_1);
54830 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
54831 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
54832 __PYX_ERR(1, 4, __pyx_L1_error)
54843 __Pyx_XDECREF(__pyx_t_1);
54844 __Pyx_AddTraceback(
"View.MemoryView.array.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
54846 __Pyx_XGIVEREF(__pyx_r);
54847 __Pyx_TraceReturn(__pyx_r, 0);
54848 __Pyx_RefNannyFinishContext();
54860 static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize,
char *__pyx_v_format,
char *__pyx_v_mode,
char *__pyx_v_buf) {
54861 struct __pyx_array_obj *__pyx_v_result = 0;
54862 struct __pyx_array_obj *__pyx_r = NULL;
54863 __Pyx_TraceDeclarations
54864 __Pyx_RefNannyDeclarations
54866 PyObject *__pyx_t_2 = NULL;
54867 PyObject *__pyx_t_3 = NULL;
54868 PyObject *__pyx_t_4 = NULL;
54869 PyObject *__pyx_t_5 = NULL;
54870 int __pyx_lineno = 0;
54871 const char *__pyx_filename = NULL;
54872 int __pyx_clineno = 0;
54873 __Pyx_RefNannySetupContext(
"array_cwrapper", 0);
54874 __Pyx_TraceCall(
"array_cwrapper", __pyx_f[1], 244, 0, __PYX_ERR(1, 244, __pyx_L1_error));
54883 __pyx_t_1 = ((__pyx_v_buf == NULL) != 0);
54893 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_itemsize);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 249, __pyx_L1_error)
54894 __Pyx_GOTREF(__pyx_t_2);
54895 __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_format);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 249, __pyx_L1_error)
54896 __Pyx_GOTREF(__pyx_t_3);
54897 __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 249, __pyx_L1_error)
54898 __Pyx_GOTREF(__pyx_t_4);
54899 __pyx_t_5 = PyTuple_New(4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 249, __pyx_L1_error)
54900 __Pyx_GOTREF(__pyx_t_5);
54901 __Pyx_INCREF(__pyx_v_shape);
54902 __Pyx_GIVEREF(__pyx_v_shape);
54903 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_shape);
54904 __Pyx_GIVEREF(__pyx_t_2);
54905 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
54906 __Pyx_GIVEREF(__pyx_t_3);
54907 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
54908 __Pyx_GIVEREF(__pyx_t_4);
54909 PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
54913 __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_5, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 249, __pyx_L1_error)
54914 __Pyx_GOTREF(__pyx_t_4);
54915 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
54916 __pyx_v_result = ((
struct __pyx_array_obj *)__pyx_t_4);
54937 __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_itemsize);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 251, __pyx_L1_error)
54938 __Pyx_GOTREF(__pyx_t_4);
54939 __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_format);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 251, __pyx_L1_error)
54940 __Pyx_GOTREF(__pyx_t_5);
54941 __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 251, __pyx_L1_error)
54942 __Pyx_GOTREF(__pyx_t_3);
54943 __pyx_t_2 = PyTuple_New(4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 251, __pyx_L1_error)
54944 __Pyx_GOTREF(__pyx_t_2);
54945 __Pyx_INCREF(__pyx_v_shape);
54946 __Pyx_GIVEREF(__pyx_v_shape);
54947 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape);
54948 __Pyx_GIVEREF(__pyx_t_4);
54949 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
54950 __Pyx_GIVEREF(__pyx_t_5);
54951 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
54952 __Pyx_GIVEREF(__pyx_t_3);
54953 PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
54965 __pyx_t_3 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 252, __pyx_L1_error)
54966 __Pyx_GOTREF(__pyx_t_3);
54967 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(1, 252, __pyx_L1_error)
54976 __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 251, __pyx_L1_error)
54977 __Pyx_GOTREF(__pyx_t_5);
54978 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
54979 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
54980 __pyx_v_result = ((
struct __pyx_array_obj *)__pyx_t_5);
54990 __pyx_v_result->data = __pyx_v_buf;
55001 __Pyx_XDECREF(((PyObject *)__pyx_r));
55002 __Pyx_INCREF(((PyObject *)__pyx_v_result));
55003 __pyx_r = __pyx_v_result;
55016 __Pyx_XDECREF(__pyx_t_2);
55017 __Pyx_XDECREF(__pyx_t_3);
55018 __Pyx_XDECREF(__pyx_t_4);
55019 __Pyx_XDECREF(__pyx_t_5);
55020 __Pyx_AddTraceback(
"View.MemoryView.array_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
55023 __Pyx_XDECREF((PyObject *)__pyx_v_result);
55024 __Pyx_XGIVEREF((PyObject *)__pyx_r);
55025 __Pyx_TraceReturn(__pyx_r, 0);
55026 __Pyx_RefNannyFinishContext();
55039 static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
55040 static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
55041 PyObject *__pyx_v_name = 0;
55042 int __pyx_lineno = 0;
55043 const char *__pyx_filename = NULL;
55044 int __pyx_clineno = 0;
55046 __Pyx_RefNannyDeclarations
55047 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
55049 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,0};
55050 PyObject* values[1] = {0};
55051 if (unlikely(__pyx_kwds)) {
55052 Py_ssize_t kw_args;
55053 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
55054 switch (pos_args) {
55055 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
55056 CYTHON_FALLTHROUGH;
55058 default:
goto __pyx_L5_argtuple_error;
55060 kw_args = PyDict_Size(__pyx_kwds);
55061 switch (pos_args) {
55063 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
55064 else goto __pyx_L5_argtuple_error;
55066 if (unlikely(kw_args > 0)) {
55067 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(1, 281, __pyx_L3_error)
55069 }
else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
55070 goto __pyx_L5_argtuple_error;
55072 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
55074 __pyx_v_name = values[0];
55076 goto __pyx_L4_argument_unpacking_done;
55077 __pyx_L5_argtuple_error:;
55078 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 281, __pyx_L3_error)
55080 __Pyx_AddTraceback(
"View.MemoryView.Enum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55081 __Pyx_RefNannyFinishContext();
55083 __pyx_L4_argument_unpacking_done:;
55084 __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self), __pyx_v_name);
55087 __Pyx_RefNannyFinishContext();
55091 static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name) {
55093 __Pyx_TraceDeclarations
55094 __Pyx_RefNannyDeclarations
55095 int __pyx_lineno = 0;
55096 const char *__pyx_filename = NULL;
55097 int __pyx_clineno = 0;
55098 __Pyx_RefNannySetupContext(
"__init__", 0);
55099 __Pyx_TraceCall(
"__init__", __pyx_f[1], 281, 0, __PYX_ERR(1, 281, __pyx_L1_error));
55108 __Pyx_INCREF(__pyx_v_name);
55109 __Pyx_GIVEREF(__pyx_v_name);
55110 __Pyx_GOTREF(__pyx_v_self->name);
55111 __Pyx_DECREF(__pyx_v_self->name);
55112 __pyx_v_self->name = __pyx_v_name;
55126 __Pyx_AddTraceback(
"View.MemoryView.Enum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55129 __Pyx_TraceReturn(Py_None, 0);
55130 __Pyx_RefNannyFinishContext();
55143 static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self);
55144 static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self) {
55145 PyObject *__pyx_r = 0;
55146 __Pyx_RefNannyDeclarations
55147 __Pyx_RefNannySetupContext(
"__repr__ (wrapper)", 0);
55148 __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self));
55151 __Pyx_RefNannyFinishContext();
55155 static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(
struct __pyx_MemviewEnum_obj *__pyx_v_self) {
55156 PyObject *__pyx_r = NULL;
55157 __Pyx_TraceDeclarations
55158 __Pyx_RefNannyDeclarations
55159 int __pyx_lineno = 0;
55160 const char *__pyx_filename = NULL;
55161 int __pyx_clineno = 0;
55162 __Pyx_RefNannySetupContext(
"__repr__", 0);
55163 __Pyx_TraceCall(
"__repr__", __pyx_f[1], 283, 0, __PYX_ERR(1, 283, __pyx_L1_error));
55172 __Pyx_XDECREF(__pyx_r);
55173 __Pyx_INCREF(__pyx_v_self->name);
55174 __pyx_r = __pyx_v_self->name;
55187 __Pyx_AddTraceback(
"View.MemoryView.Enum.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55190 __Pyx_XGIVEREF(__pyx_r);
55191 __Pyx_TraceReturn(__pyx_r, 0);
55192 __Pyx_RefNannyFinishContext();
55203 static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
55204 static PyMethodDef __pyx_mdef___pyx_MemviewEnum_1__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_1__reduce_cython__, METH_NOARGS, 0};
55205 static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
55206 PyObject *__pyx_r = 0;
55207 __Pyx_RefNannyDeclarations
55208 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
55209 __pyx_r = __pyx_pf___pyx_MemviewEnum___reduce_cython__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self));
55212 __Pyx_RefNannyFinishContext();
55216 static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self) {
55217 PyObject *__pyx_v_state = 0;
55218 PyObject *__pyx_v__dict = 0;
55219 int __pyx_v_use_setstate;
55220 PyObject *__pyx_r = NULL;
55221 __Pyx_TraceDeclarations
55222 __Pyx_RefNannyDeclarations
55223 PyObject *__pyx_t_1 = NULL;
55226 PyObject *__pyx_t_4 = NULL;
55227 PyObject *__pyx_t_5 = NULL;
55228 int __pyx_lineno = 0;
55229 const char *__pyx_filename = NULL;
55230 int __pyx_clineno = 0;
55231 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
55232 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
55241 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
55242 __Pyx_GOTREF(__pyx_t_1);
55243 __Pyx_INCREF(__pyx_v_self->name);
55244 __Pyx_GIVEREF(__pyx_v_self->name);
55245 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->name);
55246 __pyx_v_state = ((PyObject*)__pyx_t_1);
55256 __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
55257 __Pyx_GOTREF(__pyx_t_1);
55258 __pyx_v__dict = __pyx_t_1;
55268 __pyx_t_2 = (__pyx_v__dict != Py_None);
55269 __pyx_t_3 = (__pyx_t_2 != 0);
55279 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 8, __pyx_L1_error)
55280 __Pyx_GOTREF(__pyx_t_1);
55281 __Pyx_INCREF(__pyx_v__dict);
55282 __Pyx_GIVEREF(__pyx_v__dict);
55283 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict);
55284 __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 8, __pyx_L1_error)
55285 __Pyx_GOTREF(__pyx_t_4);
55286 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
55287 __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
55297 __pyx_v_use_setstate = 1;
55317 __pyx_t_3 = (__pyx_v_self->name != Py_None);
55318 __pyx_v_use_setstate = __pyx_t_3;
55329 __pyx_t_3 = (__pyx_v_use_setstate != 0);
55339 __Pyx_XDECREF(__pyx_r);
55340 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Enum);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
55341 __Pyx_GOTREF(__pyx_t_4);
55342 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
55343 __Pyx_GOTREF(__pyx_t_1);
55344 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55345 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55346 PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55347 __Pyx_INCREF(__pyx_int_184977713);
55348 __Pyx_GIVEREF(__pyx_int_184977713);
55349 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
55350 __Pyx_INCREF(Py_None);
55351 __Pyx_GIVEREF(Py_None);
55352 PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
55353 __pyx_t_5 = PyTuple_New(3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 13, __pyx_L1_error)
55354 __Pyx_GOTREF(__pyx_t_5);
55355 __Pyx_GIVEREF(__pyx_t_4);
55356 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
55357 __Pyx_GIVEREF(__pyx_t_1);
55358 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
55359 __Pyx_INCREF(__pyx_v_state);
55360 __Pyx_GIVEREF(__pyx_v_state);
55361 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
55364 __pyx_r = __pyx_t_5;
55385 __Pyx_XDECREF(__pyx_r);
55386 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Enum);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error)
55387 __Pyx_GOTREF(__pyx_t_5);
55388 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 15, __pyx_L1_error)
55389 __Pyx_GOTREF(__pyx_t_1);
55390 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55391 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55392 PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
55393 __Pyx_INCREF(__pyx_int_184977713);
55394 __Pyx_GIVEREF(__pyx_int_184977713);
55395 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
55396 __Pyx_INCREF(__pyx_v_state);
55397 __Pyx_GIVEREF(__pyx_v_state);
55398 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
55399 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 15, __pyx_L1_error)
55400 __Pyx_GOTREF(__pyx_t_4);
55401 __Pyx_GIVEREF(__pyx_t_5);
55402 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
55403 __Pyx_GIVEREF(__pyx_t_1);
55404 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
55407 __pyx_r = __pyx_t_4;
55420 __Pyx_XDECREF(__pyx_t_1);
55421 __Pyx_XDECREF(__pyx_t_4);
55422 __Pyx_XDECREF(__pyx_t_5);
55423 __Pyx_AddTraceback(
"View.MemoryView.Enum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55426 __Pyx_XDECREF(__pyx_v_state);
55427 __Pyx_XDECREF(__pyx_v__dict);
55428 __Pyx_XGIVEREF(__pyx_r);
55429 __Pyx_TraceReturn(__pyx_r, 0);
55430 __Pyx_RefNannyFinishContext();
55442 static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
55443 static PyMethodDef __pyx_mdef___pyx_MemviewEnum_3__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_3__setstate_cython__, METH_O, 0};
55444 static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
55445 PyObject *__pyx_r = 0;
55446 __Pyx_RefNannyDeclarations
55447 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
55448 __pyx_r = __pyx_pf___pyx_MemviewEnum_2__setstate_cython__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
55451 __Pyx_RefNannyFinishContext();
55455 static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
55456 PyObject *__pyx_r = NULL;
55457 __Pyx_TraceDeclarations
55458 __Pyx_RefNannyDeclarations
55459 PyObject *__pyx_t_1 = NULL;
55460 int __pyx_lineno = 0;
55461 const char *__pyx_filename = NULL;
55462 int __pyx_clineno = 0;
55463 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
55464 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 16, 0, __PYX_ERR(1, 16, __pyx_L1_error));
55471 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 17, __pyx_L1_error)
55472 __pyx_t_1 = __pyx_unpickle_Enum__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 17, __pyx_L1_error)
55473 __Pyx_GOTREF(__pyx_t_1);
55474 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
55484 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
55487 __Pyx_XDECREF(__pyx_t_1);
55488 __Pyx_AddTraceback(
"View.MemoryView.Enum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55491 __Pyx_XGIVEREF(__pyx_r);
55492 __Pyx_TraceReturn(__pyx_r, 0);
55493 __Pyx_RefNannyFinishContext();
55505 static void *__pyx_align_pointer(
void *__pyx_v_memory,
size_t __pyx_v_alignment) {
55506 Py_intptr_t __pyx_v_aligned_p;
55507 size_t __pyx_v_offset;
55509 __Pyx_TraceDeclarations
55511 int __pyx_lineno = 0;
55512 const char *__pyx_filename = NULL;
55513 int __pyx_clineno = 0;
55514 __Pyx_TraceCall(
"align_pointer", __pyx_f[1], 298, 1, __PYX_ERR(1, 298, __pyx_L1_error));
55523 __pyx_v_aligned_p = ((Py_intptr_t)__pyx_v_memory);
55532 __pyx_v_offset = (__pyx_v_aligned_p % __pyx_v_alignment);
55541 __pyx_t_1 = ((__pyx_v_offset > 0) != 0);
55551 __pyx_v_aligned_p = (__pyx_v_aligned_p + (__pyx_v_alignment - __pyx_v_offset));
55569 __pyx_r = ((
void *)__pyx_v_aligned_p);
55582 __Pyx_WriteUnraisable(
"View.MemoryView.align_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
55585 __Pyx_TraceReturn(Py_None, 1);
55598 static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
55599 static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
55600 PyObject *__pyx_v_obj = 0;
55602 int __pyx_v_dtype_is_object;
55603 int __pyx_lineno = 0;
55604 const char *__pyx_filename = NULL;
55605 int __pyx_clineno = 0;
55607 __Pyx_RefNannyDeclarations
55608 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
55610 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_flags,&__pyx_n_s_dtype_is_object,0};
55611 PyObject* values[3] = {0,0,0};
55612 if (unlikely(__pyx_kwds)) {
55613 Py_ssize_t kw_args;
55614 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
55615 switch (pos_args) {
55616 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
55617 CYTHON_FALLTHROUGH;
55618 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
55619 CYTHON_FALLTHROUGH;
55620 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
55621 CYTHON_FALLTHROUGH;
55623 default:
goto __pyx_L5_argtuple_error;
55625 kw_args = PyDict_Size(__pyx_kwds);
55626 switch (pos_args) {
55628 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--;
55629 else goto __pyx_L5_argtuple_error;
55630 CYTHON_FALLTHROUGH;
55632 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags)) != 0)) kw_args--;
55634 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 2, 3, 1); __PYX_ERR(1, 345, __pyx_L3_error)
55636 CYTHON_FALLTHROUGH;
55639 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype_is_object);
55640 if (value) { values[2] = value; kw_args--; }
55643 if (unlikely(kw_args > 0)) {
55644 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(1, 345, __pyx_L3_error)
55647 switch (PyTuple_GET_SIZE(__pyx_args)) {
55648 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
55649 CYTHON_FALLTHROUGH;
55650 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
55651 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
55653 default:
goto __pyx_L5_argtuple_error;
55656 __pyx_v_obj = values[0];
55657 __pyx_v_flags = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_flags == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 345, __pyx_L3_error)
55659 __pyx_v_dtype_is_object = __Pyx_PyObject_IsTrue(values[2]);
if (unlikely((__pyx_v_dtype_is_object == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 345, __pyx_L3_error)
55661 __pyx_v_dtype_is_object = ((int)0);
55664 goto __pyx_L4_argument_unpacking_done;
55665 __pyx_L5_argtuple_error:;
55666 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 345, __pyx_L3_error)
55668 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55669 __Pyx_RefNannyFinishContext();
55671 __pyx_L4_argument_unpacking_done:;
55672 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_obj, __pyx_v_flags, __pyx_v_dtype_is_object);
55675 __Pyx_RefNannyFinishContext();
55679 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj,
int __pyx_v_flags,
int __pyx_v_dtype_is_object) {
55681 __Pyx_TraceDeclarations
55682 __Pyx_RefNannyDeclarations
55687 int __pyx_lineno = 0;
55688 const char *__pyx_filename = NULL;
55689 int __pyx_clineno = 0;
55690 __Pyx_RefNannySetupContext(
"__cinit__", 0);
55691 __Pyx_TraceCall(
"__cinit__", __pyx_f[1], 345, 0, __PYX_ERR(1, 345, __pyx_L1_error));
55700 __Pyx_INCREF(__pyx_v_obj);
55701 __Pyx_GIVEREF(__pyx_v_obj);
55702 __Pyx_GOTREF(__pyx_v_self->obj);
55703 __Pyx_DECREF(__pyx_v_self->obj);
55704 __pyx_v_self->obj = __pyx_v_obj;
55713 __pyx_v_self->flags = __pyx_v_flags;
55722 __pyx_t_2 = (((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))) == ((PyObject *)__pyx_memoryview_type));
55723 __pyx_t_3 = (__pyx_t_2 != 0);
55726 __pyx_t_1 = __pyx_t_3;
55727 goto __pyx_L4_bool_binop_done;
55729 __pyx_t_3 = (__pyx_v_obj != Py_None);
55730 __pyx_t_2 = (__pyx_t_3 != 0);
55731 __pyx_t_1 = __pyx_t_2;
55732 __pyx_L4_bool_binop_done:;
55742 __pyx_t_4 = __Pyx_GetBuffer(__pyx_v_obj, (&__pyx_v_self->view), __pyx_v_flags);
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 349, __pyx_L1_error)
55751 __pyx_t_1 = ((((PyObject *)__pyx_v_self->view.obj) == NULL) != 0);
55761 ((Py_buffer *)(&__pyx_v_self->view))->obj = Py_None;
55770 Py_INCREF(Py_None);
55797 __pyx_t_1 = ((__pyx_memoryview_thread_locks_used < 8) != 0);
55807 __pyx_v_self->lock = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);
55816 __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used + 1);
55834 __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
55844 __pyx_v_self->lock = PyThread_allocate_lock();
55853 __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
55854 if (unlikely(__pyx_t_1)) {
55863 PyErr_NoMemory(); __PYX_ERR(1, 361, __pyx_L1_error)
55890 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
55900 __pyx_t_2 = (((__pyx_v_self->view.format[0]) ==
'O') != 0);
55903 __pyx_t_1 = __pyx_t_2;
55904 goto __pyx_L11_bool_binop_done;
55906 __pyx_t_2 = (((__pyx_v_self->view.format[1]) ==
'\x00') != 0);
55907 __pyx_t_1 = __pyx_t_2;
55908 __pyx_L11_bool_binop_done:;
55909 __pyx_v_self->dtype_is_object = __pyx_t_1;
55929 __pyx_v_self->dtype_is_object = __pyx_v_dtype_is_object;
55940 __pyx_v_self->acquisition_count_aligned_p = ((__pyx_atomic_int *)__pyx_align_pointer(((
void *)(&(__pyx_v_self->acquisition_count[0]))), (
sizeof(__pyx_atomic_int))));
55949 __pyx_v_self->typeinfo = NULL;
55963 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
55966 __Pyx_TraceReturn(Py_None, 0);
55967 __Pyx_RefNannyFinishContext();
55980 static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self);
55981 static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self) {
55982 __Pyx_RefNannyDeclarations
55983 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
55984 __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
55987 __Pyx_RefNannyFinishContext();
55990 static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(
struct __pyx_memoryview_obj *__pyx_v_self) {
55992 __Pyx_TraceDeclarations
55993 __Pyx_RefNannyDeclarations
55999 PyThread_type_lock __pyx_t_6;
56000 PyThread_type_lock __pyx_t_7;
56001 int __pyx_lineno = 0;
56002 const char *__pyx_filename = NULL;
56003 int __pyx_clineno = 0;
56004 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
56005 __Pyx_TraceCall(
"__dealloc__", __pyx_f[1], 372, 0, __PYX_ERR(1, 372, __pyx_L1_error));
56014 __pyx_t_1 = (__pyx_v_self->obj != Py_None);
56015 __pyx_t_2 = (__pyx_t_1 != 0);
56025 __Pyx_ReleaseBuffer((&__pyx_v_self->view));
56044 __pyx_t_2 = ((((Py_buffer *)(&__pyx_v_self->view))->obj == Py_None) != 0);
56054 ((Py_buffer *)(&__pyx_v_self->view))->obj = NULL;
56063 Py_DECREF(Py_None);
56082 __pyx_t_2 = ((__pyx_v_self->lock != NULL) != 0);
56092 __pyx_t_3 = __pyx_memoryview_thread_locks_used;
56093 __pyx_t_4 = __pyx_t_3;
56094 for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
56095 __pyx_v_i = __pyx_t_5;
56104 __pyx_t_2 = (((__pyx_memoryview_thread_locks[__pyx_v_i]) == __pyx_v_self->lock) != 0);
56114 __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used - 1);
56123 __pyx_t_2 = ((__pyx_v_i != __pyx_memoryview_thread_locks_used) != 0);
56133 __pyx_t_6 = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);
56134 __pyx_t_7 = (__pyx_memoryview_thread_locks[__pyx_v_i]);
56143 (__pyx_memoryview_thread_locks[__pyx_v_i]) = __pyx_t_6;
56144 (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]) = __pyx_t_7;
56162 goto __pyx_L6_break;
56182 PyThread_free_lock(__pyx_v_self->lock);
56206 __Pyx_WriteUnraisable(
"View.MemoryView.memoryview.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
56208 __Pyx_TraceReturn(Py_None, 0);
56209 __Pyx_RefNannyFinishContext();
56220 static char *__pyx_memoryview_get_item_pointer(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
56221 Py_ssize_t __pyx_v_dim;
56222 char *__pyx_v_itemp;
56223 PyObject *__pyx_v_idx = NULL;
56225 __Pyx_TraceDeclarations
56226 __Pyx_RefNannyDeclarations
56227 Py_ssize_t __pyx_t_1;
56228 PyObject *__pyx_t_2 = NULL;
56229 Py_ssize_t __pyx_t_3;
56230 PyObject *(*__pyx_t_4)(PyObject *);
56231 PyObject *__pyx_t_5 = NULL;
56232 Py_ssize_t __pyx_t_6;
56234 int __pyx_lineno = 0;
56235 const char *__pyx_filename = NULL;
56236 int __pyx_clineno = 0;
56237 __Pyx_RefNannySetupContext(
"get_item_pointer", 0);
56238 __Pyx_TraceCall(
"get_item_pointer", __pyx_f[1], 393, 0, __PYX_ERR(1, 393, __pyx_L1_error));
56247 __pyx_v_itemp = ((
char *)__pyx_v_self->view.buf);
56257 if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) {
56258 __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
56261 __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_index);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 397, __pyx_L1_error)
56262 __Pyx_GOTREF(__pyx_t_2);
56263 __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 397, __pyx_L1_error)
56266 if (likely(!__pyx_t_4)) {
56267 if (likely(PyList_CheckExact(__pyx_t_2))) {
56268 if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2))
break;
56269 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
56270 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
if (unlikely(0 < 0)) __PYX_ERR(1, 397, __pyx_L1_error)
56272 __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 397, __pyx_L1_error)
56273 __Pyx_GOTREF(__pyx_t_5);
56276 if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
56277 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
56278 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
if (unlikely(0 < 0)) __PYX_ERR(1, 397, __pyx_L1_error)
56280 __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 397, __pyx_L1_error)
56281 __Pyx_GOTREF(__pyx_t_5);
56285 __pyx_t_5 = __pyx_t_4(__pyx_t_2);
56286 if (unlikely(!__pyx_t_5)) {
56287 PyObject* exc_type = PyErr_Occurred();
56289 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
56290 else __PYX_ERR(1, 397, __pyx_L1_error)
56294 __Pyx_GOTREF(__pyx_t_5);
56296 __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_5);
56298 __pyx_v_dim = __pyx_t_1;
56299 __pyx_t_1 = (__pyx_t_1 + 1);
56308 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 398, __pyx_L1_error)
56309 __pyx_t_7 = __pyx_pybuffer_index((&__pyx_v_self->view), __pyx_v_itemp, __pyx_t_6, __pyx_v_dim);
if (unlikely(__pyx_t_7 == ((
char *)NULL))) __PYX_ERR(1, 398, __pyx_L1_error)
56310 __pyx_v_itemp = __pyx_t_7;
56320 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56329 __pyx_r = __pyx_v_itemp;
56342 __Pyx_XDECREF(__pyx_t_2);
56343 __Pyx_XDECREF(__pyx_t_5);
56344 __Pyx_AddTraceback(
"View.MemoryView.memoryview.get_item_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
56347 __Pyx_XDECREF(__pyx_v_idx);
56348 __Pyx_TraceReturn(Py_None, 0);
56349 __Pyx_RefNannyFinishContext();
56362 static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index);
56363 static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
56364 PyObject *__pyx_r = 0;
56365 __Pyx_RefNannyDeclarations
56366 __Pyx_RefNannySetupContext(
"__getitem__ (wrapper)", 0);
56367 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index));
56370 __Pyx_RefNannyFinishContext();
56374 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
56375 PyObject *__pyx_v_have_slices = NULL;
56376 PyObject *__pyx_v_indices = NULL;
56377 char *__pyx_v_itemp;
56378 PyObject *__pyx_r = NULL;
56379 __Pyx_TraceDeclarations
56380 __Pyx_RefNannyDeclarations
56383 PyObject *__pyx_t_3 = NULL;
56384 PyObject *__pyx_t_4 = NULL;
56385 PyObject *__pyx_t_5 = NULL;
56387 int __pyx_lineno = 0;
56388 const char *__pyx_filename = NULL;
56389 int __pyx_clineno = 0;
56390 __Pyx_RefNannySetupContext(
"__getitem__", 0);
56391 __Pyx_TraceCall(
"__getitem__", __pyx_f[1], 403, 0, __PYX_ERR(1, 403, __pyx_L1_error));
56400 __pyx_t_1 = (__pyx_v_index == __pyx_builtin_Ellipsis);
56401 __pyx_t_2 = (__pyx_t_1 != 0);
56411 __Pyx_XDECREF(__pyx_r);
56412 __Pyx_INCREF(((PyObject *)__pyx_v_self));
56413 __pyx_r = ((PyObject *)__pyx_v_self);
56432 __pyx_t_3 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 407, __pyx_L1_error)
56433 __Pyx_GOTREF(__pyx_t_3);
56434 if (likely(__pyx_t_3 != Py_None)) {
56435 PyObject* sequence = __pyx_t_3;
56436 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
56437 if (unlikely(size != 2)) {
56438 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
56439 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
56440 __PYX_ERR(1, 407, __pyx_L1_error)
56442 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
56443 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
56444 __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
56445 __Pyx_INCREF(__pyx_t_4);
56446 __Pyx_INCREF(__pyx_t_5);
56448 __pyx_t_4 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 407, __pyx_L1_error)
56449 __Pyx_GOTREF(__pyx_t_4);
56450 __pyx_t_5 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 407, __pyx_L1_error)
56451 __Pyx_GOTREF(__pyx_t_5);
56453 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
56455 __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 407, __pyx_L1_error)
56457 __pyx_v_have_slices = __pyx_t_4;
56459 __pyx_v_indices = __pyx_t_5;
56469 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 410, __pyx_L1_error)
56479 __Pyx_XDECREF(__pyx_r);
56480 __pyx_t_3 = ((PyObject *)__pyx_memview_slice(__pyx_v_self, __pyx_v_indices));
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 411, __pyx_L1_error)
56481 __Pyx_GOTREF(__pyx_t_3);
56482 __pyx_r = __pyx_t_3;
56503 __pyx_t_6 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_indices);
if (unlikely(__pyx_t_6 == ((
char *)NULL))) __PYX_ERR(1, 413, __pyx_L1_error)
56504 __pyx_v_itemp = __pyx_t_6;
56513 __Pyx_XDECREF(__pyx_r);
56514 __pyx_t_3 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->convert_item_to_object(__pyx_v_self, __pyx_v_itemp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 414, __pyx_L1_error)
56515 __Pyx_GOTREF(__pyx_t_3);
56516 __pyx_r = __pyx_t_3;
56531 __Pyx_XDECREF(__pyx_t_3);
56532 __Pyx_XDECREF(__pyx_t_4);
56533 __Pyx_XDECREF(__pyx_t_5);
56534 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
56537 __Pyx_XDECREF(__pyx_v_have_slices);
56538 __Pyx_XDECREF(__pyx_v_indices);
56539 __Pyx_XGIVEREF(__pyx_r);
56540 __Pyx_TraceReturn(__pyx_r, 0);
56541 __Pyx_RefNannyFinishContext();
56554 static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
56555 static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
56557 __Pyx_RefNannyDeclarations
56558 __Pyx_RefNannySetupContext(
"__setitem__ (wrapper)", 0);
56559 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));
56562 __Pyx_RefNannyFinishContext();
56566 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
56567 PyObject *__pyx_v_have_slices = NULL;
56568 PyObject *__pyx_v_obj = NULL;
56570 __Pyx_TraceDeclarations
56571 __Pyx_RefNannyDeclarations
56573 PyObject *__pyx_t_2 = NULL;
56574 PyObject *__pyx_t_3 = NULL;
56575 PyObject *__pyx_t_4 = NULL;
56576 int __pyx_lineno = 0;
56577 const char *__pyx_filename = NULL;
56578 int __pyx_clineno = 0;
56579 __Pyx_RefNannySetupContext(
"__setitem__", 0);
56580 __Pyx_TraceCall(
"__setitem__", __pyx_f[1], 416, 0, __PYX_ERR(1, 416, __pyx_L1_error));
56581 __Pyx_INCREF(__pyx_v_index);
56590 __pyx_t_1 = (__pyx_v_self->view.readonly != 0);
56591 if (unlikely(__pyx_t_1)) {
56600 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__152, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 418, __pyx_L1_error)
56601 __Pyx_GOTREF(__pyx_t_2);
56602 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
56603 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56604 __PYX_ERR(1, 418, __pyx_L1_error)
56622 __pyx_t_2 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 420, __pyx_L1_error)
56623 __Pyx_GOTREF(__pyx_t_2);
56624 if (likely(__pyx_t_2 != Py_None)) {
56625 PyObject* sequence = __pyx_t_2;
56626 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
56627 if (unlikely(size != 2)) {
56628 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
56629 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
56630 __PYX_ERR(1, 420, __pyx_L1_error)
56632 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
56633 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
56634 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
56635 __Pyx_INCREF(__pyx_t_3);
56636 __Pyx_INCREF(__pyx_t_4);
56638 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 420, __pyx_L1_error)
56639 __Pyx_GOTREF(__pyx_t_3);
56640 __pyx_t_4 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 420, __pyx_L1_error)
56641 __Pyx_GOTREF(__pyx_t_4);
56643 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56645 __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 420, __pyx_L1_error)
56647 __pyx_v_have_slices = __pyx_t_3;
56649 __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_4);
56659 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 422, __pyx_L1_error)
56669 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 423, __pyx_L1_error)
56670 __Pyx_GOTREF(__pyx_t_2);
56671 __pyx_v_obj = __pyx_t_2;
56681 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_obj);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 424, __pyx_L1_error)
56691 __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 425, __pyx_L1_error)
56692 __Pyx_GOTREF(__pyx_t_2);
56693 __pyx_t_4 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assignment(__pyx_v_self, __pyx_t_2, __pyx_v_obj);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 425, __pyx_L1_error)
56694 __Pyx_GOTREF(__pyx_t_4);
56695 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56696 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
56716 __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 427, __pyx_L1_error)
56717 __Pyx_GOTREF(__pyx_t_4);
56718 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_memoryview_type))))) __PYX_ERR(1, 427, __pyx_L1_error)
56719 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assign_scalar(__pyx_v_self, ((
struct __pyx_memoryview_obj *)__pyx_t_4), __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 427, __pyx_L1_error)
56720 __Pyx_GOTREF(__pyx_t_2);
56721 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
56722 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56744 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_indexed(__pyx_v_self, __pyx_v_index, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 429, __pyx_L1_error)
56745 __Pyx_GOTREF(__pyx_t_2);
56746 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
56762 __Pyx_XDECREF(__pyx_t_2);
56763 __Pyx_XDECREF(__pyx_t_3);
56764 __Pyx_XDECREF(__pyx_t_4);
56765 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
56768 __Pyx_XDECREF(__pyx_v_have_slices);
56769 __Pyx_XDECREF(__pyx_v_obj);
56770 __Pyx_XDECREF(__pyx_v_index);
56771 __Pyx_TraceReturn(Py_None, 0);
56772 __Pyx_RefNannyFinishContext();
56784 static PyObject *__pyx_memoryview_is_slice(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj) {
56785 PyObject *__pyx_r = NULL;
56786 __Pyx_TraceDeclarations
56787 __Pyx_RefNannyDeclarations
56790 PyObject *__pyx_t_3 = NULL;
56791 PyObject *__pyx_t_4 = NULL;
56792 PyObject *__pyx_t_5 = NULL;
56793 PyObject *__pyx_t_6 = NULL;
56794 PyObject *__pyx_t_7 = NULL;
56795 PyObject *__pyx_t_8 = NULL;
56797 int __pyx_lineno = 0;
56798 const char *__pyx_filename = NULL;
56799 int __pyx_clineno = 0;
56800 __Pyx_RefNannySetupContext(
"is_slice", 0);
56801 __Pyx_TraceCall(
"is_slice", __pyx_f[1], 431, 0, __PYX_ERR(1, 431, __pyx_L1_error));
56802 __Pyx_INCREF(__pyx_v_obj);
56811 __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type);
56812 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
56823 __Pyx_PyThreadState_declare
56824 __Pyx_PyThreadState_assign
56825 __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
56826 __Pyx_XGOTREF(__pyx_t_3);
56827 __Pyx_XGOTREF(__pyx_t_4);
56828 __Pyx_XGOTREF(__pyx_t_5);
56838 __pyx_t_6 = __Pyx_PyInt_From_int(((__pyx_v_self->flags & (~PyBUF_WRITABLE)) | PyBUF_ANY_CONTIGUOUS));
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 434, __pyx_L4_error)
56839 __Pyx_GOTREF(__pyx_t_6);
56848 __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 435, __pyx_L4_error)
56849 __Pyx_GOTREF(__pyx_t_7);
56858 __pyx_t_8 = PyTuple_New(3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 434, __pyx_L4_error)
56859 __Pyx_GOTREF(__pyx_t_8);
56860 __Pyx_INCREF(__pyx_v_obj);
56861 __Pyx_GIVEREF(__pyx_v_obj);
56862 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_obj);
56863 __Pyx_GIVEREF(__pyx_t_6);
56864 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6);
56865 __Pyx_GIVEREF(__pyx_t_7);
56866 PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7);
56869 __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_8, NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 434, __pyx_L4_error)
56870 __Pyx_GOTREF(__pyx_t_7);
56871 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
56872 __Pyx_DECREF_SET(__pyx_v_obj, __pyx_t_7);
56883 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
56884 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
56885 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
56886 goto __pyx_L9_try_end;
56888 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
56889 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
56890 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
56899 __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError);
56901 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
56902 if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(1, 436, __pyx_L6_except_error)
56903 __Pyx_GOTREF(__pyx_t_7);
56904 __Pyx_GOTREF(__pyx_t_8);
56905 __Pyx_GOTREF(__pyx_t_6);
56914 __Pyx_XDECREF(__pyx_r);
56915 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
56916 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
56917 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
56918 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
56919 goto __pyx_L7_except_return;
56921 goto __pyx_L6_except_error;
56922 __pyx_L6_except_error:;
56931 __Pyx_XGIVEREF(__pyx_t_3);
56932 __Pyx_XGIVEREF(__pyx_t_4);
56933 __Pyx_XGIVEREF(__pyx_t_5);
56934 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
56935 goto __pyx_L1_error;
56936 __pyx_L7_except_return:;
56937 __Pyx_XGIVEREF(__pyx_t_3);
56938 __Pyx_XGIVEREF(__pyx_t_4);
56939 __Pyx_XGIVEREF(__pyx_t_5);
56940 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
56961 __Pyx_XDECREF(__pyx_r);
56962 __Pyx_INCREF(__pyx_v_obj);
56963 __pyx_r = __pyx_v_obj;
56976 __Pyx_XDECREF(__pyx_t_6);
56977 __Pyx_XDECREF(__pyx_t_7);
56978 __Pyx_XDECREF(__pyx_t_8);
56979 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
56982 __Pyx_XDECREF(__pyx_v_obj);
56983 __Pyx_XGIVEREF(__pyx_r);
56984 __Pyx_TraceReturn(__pyx_r, 0);
56985 __Pyx_RefNannyFinishContext();
56997 static PyObject *__pyx_memoryview_setitem_slice_assignment(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) {
56998 __Pyx_memviewslice __pyx_v_dst_slice;
56999 __Pyx_memviewslice __pyx_v_src_slice;
57000 PyObject *__pyx_r = NULL;
57001 __Pyx_TraceDeclarations
57002 __Pyx_RefNannyDeclarations
57003 __Pyx_memviewslice *__pyx_t_1;
57004 __Pyx_memviewslice *__pyx_t_2;
57005 PyObject *__pyx_t_3 = NULL;
57009 int __pyx_lineno = 0;
57010 const char *__pyx_filename = NULL;
57011 int __pyx_clineno = 0;
57012 __Pyx_RefNannySetupContext(
"setitem_slice_assignment", 0);
57013 __Pyx_TraceCall(
"setitem_slice_assignment", __pyx_f[1], 441, 0, __PYX_ERR(1, 441, __pyx_L1_error));
57022 if (!(likely(((__pyx_v_src) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_src, __pyx_memoryview_type))))) __PYX_ERR(1, 445, __pyx_L1_error)
57023 __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(((
struct __pyx_memoryview_obj *)__pyx_v_src), (&__pyx_v_src_slice));
if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(1, 445, __pyx_L1_error)
57032 if (!(likely(((__pyx_v_dst) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dst, __pyx_memoryview_type))))) __PYX_ERR(1, 446, __pyx_L1_error)
57033 __pyx_t_2 = __pyx_memoryview_get_slice_from_memoryview(((
struct __pyx_memoryview_obj *)__pyx_v_dst), (&__pyx_v_dst_slice));
if (unlikely(__pyx_t_2 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(1, 446, __pyx_L1_error)
57042 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_src, __pyx_n_s_ndim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 447, __pyx_L1_error)
57043 __Pyx_GOTREF(__pyx_t_3);
57044 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 447, __pyx_L1_error)
57045 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
57046 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_dst, __pyx_n_s_ndim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 447, __pyx_L1_error)
57047 __Pyx_GOTREF(__pyx_t_3);
57048 __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 447, __pyx_L1_error)
57049 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
57058 __pyx_t_6 = __pyx_memoryview_copy_contents((__pyx_t_1[0]), (__pyx_t_2[0]), __pyx_t_4, __pyx_t_5, __pyx_v_self->dtype_is_object);
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(1, 445, __pyx_L1_error)
57069 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
57072 __Pyx_XDECREF(__pyx_t_3);
57073 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_slice_assignment", __pyx_clineno, __pyx_lineno, __pyx_filename);
57076 __Pyx_XGIVEREF(__pyx_r);
57077 __Pyx_TraceReturn(__pyx_r, 0);
57078 __Pyx_RefNannyFinishContext();
57090 static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(
struct __pyx_memoryview_obj *__pyx_v_self,
struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value) {
57091 int __pyx_v_array[0x80];
57093 void *__pyx_v_item;
57094 __Pyx_memviewslice *__pyx_v_dst_slice;
57095 __Pyx_memviewslice __pyx_v_tmp_slice;
57096 PyObject *__pyx_r = NULL;
57097 __Pyx_TraceDeclarations
57098 __Pyx_RefNannyDeclarations
57099 __Pyx_memviewslice *__pyx_t_1;
57101 PyObject *__pyx_t_3 = NULL;
57104 char const *__pyx_t_6;
57105 PyObject *__pyx_t_7 = NULL;
57106 PyObject *__pyx_t_8 = NULL;
57107 PyObject *__pyx_t_9 = NULL;
57108 PyObject *__pyx_t_10 = NULL;
57109 PyObject *__pyx_t_11 = NULL;
57110 PyObject *__pyx_t_12 = NULL;
57111 int __pyx_lineno = 0;
57112 const char *__pyx_filename = NULL;
57113 int __pyx_clineno = 0;
57114 __Pyx_RefNannySetupContext(
"setitem_slice_assign_scalar", 0);
57115 __Pyx_TraceCall(
"setitem_slice_assign_scalar", __pyx_f[1], 449, 0, __PYX_ERR(1, 449, __pyx_L1_error));
57124 __pyx_v_tmp = NULL;
57133 __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_dst, (&__pyx_v_tmp_slice));
if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(1, 456, __pyx_L1_error)
57134 __pyx_v_dst_slice = __pyx_t_1;
57143 __pyx_t_2 = ((((size_t)__pyx_v_self->view.itemsize) > (
sizeof(__pyx_v_array))) != 0);
57153 __pyx_v_tmp = PyMem_Malloc(__pyx_v_self->view.itemsize);
57162 __pyx_t_2 = ((__pyx_v_tmp == NULL) != 0);
57163 if (unlikely(__pyx_t_2)) {
57172 PyErr_NoMemory(); __PYX_ERR(1, 461, __pyx_L1_error)
57190 __pyx_v_item = __pyx_v_tmp;
57210 __pyx_v_item = ((
void *)__pyx_v_array);
57230 __pyx_t_2 = (__pyx_v_self->dtype_is_object != 0);
57240 (((PyObject **)__pyx_v_item)[0]) = ((PyObject *)__pyx_v_value);
57260 __pyx_t_3 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, ((
char *)__pyx_v_item), __pyx_v_value);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 470, __pyx_L6_error)
57261 __Pyx_GOTREF(__pyx_t_3);
57262 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
57273 __pyx_t_2 = ((__pyx_v_self->view.suboffsets != NULL) != 0);
57283 __pyx_t_3 = assert_direct_dimensions(__pyx_v_self->view.suboffsets, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 475, __pyx_L6_error)
57284 __Pyx_GOTREF(__pyx_t_3);
57285 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
57303 __pyx_memoryview_slice_assign_scalar(__pyx_v_dst_slice, __pyx_v_dst->view.ndim, __pyx_v_self->view.itemsize, __pyx_v_item, __pyx_v_self->dtype_is_object);
57315 PyMem_Free(__pyx_v_tmp);
57320 __Pyx_PyThreadState_declare
57321 __Pyx_PyThreadState_assign
57322 __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0;
57323 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
57324 if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
57325 if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
57326 __Pyx_XGOTREF(__pyx_t_7);
57327 __Pyx_XGOTREF(__pyx_t_8);
57328 __Pyx_XGOTREF(__pyx_t_9);
57329 __Pyx_XGOTREF(__pyx_t_10);
57330 __Pyx_XGOTREF(__pyx_t_11);
57331 __Pyx_XGOTREF(__pyx_t_12);
57332 __pyx_t_4 = __pyx_lineno; __pyx_t_5 = __pyx_clineno; __pyx_t_6 = __pyx_filename;
57334 PyMem_Free(__pyx_v_tmp);
57336 if (PY_MAJOR_VERSION >= 3) {
57337 __Pyx_XGIVEREF(__pyx_t_10);
57338 __Pyx_XGIVEREF(__pyx_t_11);
57339 __Pyx_XGIVEREF(__pyx_t_12);
57340 __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
57342 __Pyx_XGIVEREF(__pyx_t_7);
57343 __Pyx_XGIVEREF(__pyx_t_8);
57344 __Pyx_XGIVEREF(__pyx_t_9);
57345 __Pyx_ErrRestore(__pyx_t_7, __pyx_t_8, __pyx_t_9);
57346 __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0;
57347 __pyx_lineno = __pyx_t_4; __pyx_clineno = __pyx_t_5; __pyx_filename = __pyx_t_6;
57348 goto __pyx_L1_error;
57362 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
57365 __Pyx_XDECREF(__pyx_t_3);
57366 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
57369 __Pyx_XGIVEREF(__pyx_r);
57370 __Pyx_TraceReturn(__pyx_r, 0);
57371 __Pyx_RefNannyFinishContext();
57383 static PyObject *__pyx_memoryview_setitem_indexed(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
57384 char *__pyx_v_itemp;
57385 PyObject *__pyx_r = NULL;
57386 __Pyx_TraceDeclarations
57387 __Pyx_RefNannyDeclarations
57389 PyObject *__pyx_t_2 = NULL;
57390 int __pyx_lineno = 0;
57391 const char *__pyx_filename = NULL;
57392 int __pyx_clineno = 0;
57393 __Pyx_RefNannySetupContext(
"setitem_indexed", 0);
57394 __Pyx_TraceCall(
"setitem_indexed", __pyx_f[1], 481, 0, __PYX_ERR(1, 481, __pyx_L1_error));
57403 __pyx_t_1 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_index);
if (unlikely(__pyx_t_1 == ((
char *)NULL))) __PYX_ERR(1, 482, __pyx_L1_error)
57404 __pyx_v_itemp = __pyx_t_1;
57413 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, __pyx_v_itemp, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 483, __pyx_L1_error)
57414 __Pyx_GOTREF(__pyx_t_2);
57415 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
57426 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
57429 __Pyx_XDECREF(__pyx_t_2);
57430 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_indexed", __pyx_clineno, __pyx_lineno, __pyx_filename);
57433 __Pyx_XGIVEREF(__pyx_r);
57434 __Pyx_TraceReturn(__pyx_r, 0);
57435 __Pyx_RefNannyFinishContext();
57447 static PyObject *__pyx_memoryview_convert_item_to_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp) {
57448 PyObject *__pyx_v_struct = NULL;
57449 PyObject *__pyx_v_bytesitem = 0;
57450 PyObject *__pyx_v_result = NULL;
57451 PyObject *__pyx_r = NULL;
57452 __Pyx_TraceDeclarations
57453 __Pyx_RefNannyDeclarations
57454 PyObject *__pyx_t_1 = NULL;
57455 PyObject *__pyx_t_2 = NULL;
57456 PyObject *__pyx_t_3 = NULL;
57457 PyObject *__pyx_t_4 = NULL;
57458 PyObject *__pyx_t_5 = NULL;
57459 PyObject *__pyx_t_6 = NULL;
57460 PyObject *__pyx_t_7 = NULL;
57462 PyObject *__pyx_t_9 = NULL;
57465 int __pyx_lineno = 0;
57466 const char *__pyx_filename = NULL;
57467 int __pyx_clineno = 0;
57468 __Pyx_RefNannySetupContext(
"convert_item_to_object", 0);
57469 __Pyx_TraceCall(
"convert_item_to_object", __pyx_f[1], 485, 0, __PYX_ERR(1, 485, __pyx_L1_error));
57478 __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 488, __pyx_L1_error)
57479 __Pyx_GOTREF(__pyx_t_1);
57480 __pyx_v_struct = __pyx_t_1;
57490 __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_itemp + 0, __pyx_v_self->view.itemsize - 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 491, __pyx_L1_error)
57491 __Pyx_GOTREF(__pyx_t_1);
57492 __pyx_v_bytesitem = ((PyObject*)__pyx_t_1);
57503 __Pyx_PyThreadState_declare
57504 __Pyx_PyThreadState_assign
57505 __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
57506 __Pyx_XGOTREF(__pyx_t_2);
57507 __Pyx_XGOTREF(__pyx_t_3);
57508 __Pyx_XGOTREF(__pyx_t_4);
57518 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_unpack);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 493, __pyx_L3_error)
57519 __Pyx_GOTREF(__pyx_t_5);
57520 __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 493, __pyx_L3_error)
57521 __Pyx_GOTREF(__pyx_t_6);
57524 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
57525 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
57526 if (likely(__pyx_t_7)) {
57527 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
57528 __Pyx_INCREF(__pyx_t_7);
57529 __Pyx_INCREF(
function);
57530 __Pyx_DECREF_SET(__pyx_t_5,
function);
57534 #if CYTHON_FAST_PYCALL
57535 if (PyFunction_Check(__pyx_t_5)) {
57536 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
57537 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 493, __pyx_L3_error)
57538 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
57539 __Pyx_GOTREF(__pyx_t_1);
57540 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57543 #if CYTHON_FAST_PYCCALL
57544 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
57545 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
57546 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 493, __pyx_L3_error)
57547 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
57548 __Pyx_GOTREF(__pyx_t_1);
57549 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57553 __pyx_t_9 = PyTuple_New(2+__pyx_t_8);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 493, __pyx_L3_error)
57554 __Pyx_GOTREF(__pyx_t_9);
57556 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL;
57558 __Pyx_GIVEREF(__pyx_t_6);
57559 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_6);
57560 __Pyx_INCREF(__pyx_v_bytesitem);
57561 __Pyx_GIVEREF(__pyx_v_bytesitem);
57562 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_bytesitem);
57564 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 493, __pyx_L3_error)
57565 __Pyx_GOTREF(__pyx_t_1);
57566 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
57568 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
57569 __pyx_v_result = __pyx_t_1;
57589 __pyx_t_10 = strlen(__pyx_v_self->view.format);
57590 __pyx_t_11 = ((__pyx_t_10 == 1) != 0);
57600 __Pyx_XDECREF(__pyx_r);
57601 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_result, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 498, __pyx_L5_except_error)
57602 __Pyx_GOTREF(__pyx_t_1);
57603 __pyx_r = __pyx_t_1;
57605 goto __pyx_L6_except_return;
57623 __Pyx_XDECREF(__pyx_r);
57624 __Pyx_INCREF(__pyx_v_result);
57625 __pyx_r = __pyx_v_result;
57626 goto __pyx_L6_except_return;
57629 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
57630 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
57631 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
57632 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
57633 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
57642 __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_9);
57643 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 494, __pyx_L5_except_error)
57644 __Pyx_GOTREF(__pyx_t_6);
57645 __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_6);
57646 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57647 __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_9);
57648 __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0;
57650 __Pyx_AddTraceback(
"View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
57651 if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(1, 494, __pyx_L5_except_error)
57652 __Pyx_GOTREF(__pyx_t_9);
57653 __Pyx_GOTREF(__pyx_t_5);
57654 __Pyx_GOTREF(__pyx_t_1);
57663 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__153, NULL);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 495, __pyx_L5_except_error)
57664 __Pyx_GOTREF(__pyx_t_6);
57665 __Pyx_Raise(__pyx_t_6, 0, 0, 0);
57666 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57667 __PYX_ERR(1, 495, __pyx_L5_except_error)
57669 goto __pyx_L5_except_error;
57670 __pyx_L5_except_error:;
57679 __Pyx_XGIVEREF(__pyx_t_2);
57680 __Pyx_XGIVEREF(__pyx_t_3);
57681 __Pyx_XGIVEREF(__pyx_t_4);
57682 __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
57683 goto __pyx_L1_error;
57684 __pyx_L6_except_return:;
57685 __Pyx_XGIVEREF(__pyx_t_2);
57686 __Pyx_XGIVEREF(__pyx_t_3);
57687 __Pyx_XGIVEREF(__pyx_t_4);
57688 __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
57702 __Pyx_XDECREF(__pyx_t_1);
57703 __Pyx_XDECREF(__pyx_t_5);
57704 __Pyx_XDECREF(__pyx_t_6);
57705 __Pyx_XDECREF(__pyx_t_7);
57706 __Pyx_XDECREF(__pyx_t_9);
57707 __Pyx_AddTraceback(
"View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
57710 __Pyx_XDECREF(__pyx_v_struct);
57711 __Pyx_XDECREF(__pyx_v_bytesitem);
57712 __Pyx_XDECREF(__pyx_v_result);
57713 __Pyx_XGIVEREF(__pyx_r);
57714 __Pyx_TraceReturn(__pyx_r, 0);
57715 __Pyx_RefNannyFinishContext();
57727 static PyObject *__pyx_memoryview_assign_item_from_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value) {
57728 PyObject *__pyx_v_struct = NULL;
57730 PyObject *__pyx_v_bytesvalue = 0;
57731 Py_ssize_t __pyx_v_i;
57732 PyObject *__pyx_r = NULL;
57733 __Pyx_TraceDeclarations
57734 __Pyx_RefNannyDeclarations
57735 PyObject *__pyx_t_1 = NULL;
57738 PyObject *__pyx_t_4 = NULL;
57739 PyObject *__pyx_t_5 = NULL;
57740 PyObject *__pyx_t_6 = NULL;
57742 PyObject *__pyx_t_8 = NULL;
57743 Py_ssize_t __pyx_t_9;
57744 PyObject *__pyx_t_10 = NULL;
57749 int __pyx_lineno = 0;
57750 const char *__pyx_filename = NULL;
57751 int __pyx_clineno = 0;
57752 __Pyx_RefNannySetupContext(
"assign_item_from_object", 0);
57753 __Pyx_TraceCall(
"assign_item_from_object", __pyx_f[1], 501, 0, __PYX_ERR(1, 501, __pyx_L1_error));
57762 __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 504, __pyx_L1_error)
57763 __Pyx_GOTREF(__pyx_t_1);
57764 __pyx_v_struct = __pyx_t_1;
57774 __pyx_t_2 = PyTuple_Check(__pyx_v_value);
57775 __pyx_t_3 = (__pyx_t_2 != 0);
57785 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 510, __pyx_L1_error)
57786 __Pyx_GOTREF(__pyx_t_1);
57787 __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 510, __pyx_L1_error)
57788 __Pyx_GOTREF(__pyx_t_4);
57789 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 510, __pyx_L1_error)
57790 __Pyx_GOTREF(__pyx_t_5);
57791 __Pyx_GIVEREF(__pyx_t_4);
57792 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
57794 __pyx_t_4 = __Pyx_PySequence_Tuple(__pyx_v_value);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 510, __pyx_L1_error)
57795 __Pyx_GOTREF(__pyx_t_4);
57796 __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 510, __pyx_L1_error)
57797 __Pyx_GOTREF(__pyx_t_6);
57798 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
57799 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
57800 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 510, __pyx_L1_error)
57801 __Pyx_GOTREF(__pyx_t_4);
57802 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
57803 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57804 if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 510, __pyx_L1_error)
57805 __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
57826 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 512, __pyx_L1_error)
57827 __Pyx_GOTREF(__pyx_t_6);
57828 __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 512, __pyx_L1_error)
57829 __Pyx_GOTREF(__pyx_t_1);
57832 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
57833 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
57834 if (likely(__pyx_t_5)) {
57835 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
57836 __Pyx_INCREF(__pyx_t_5);
57837 __Pyx_INCREF(
function);
57838 __Pyx_DECREF_SET(__pyx_t_6,
function);
57842 #if CYTHON_FAST_PYCALL
57843 if (PyFunction_Check(__pyx_t_6)) {
57844 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
57845 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 512, __pyx_L1_error)
57846 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
57847 __Pyx_GOTREF(__pyx_t_4);
57848 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
57851 #if CYTHON_FAST_PYCCALL
57852 if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
57853 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
57854 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 512, __pyx_L1_error)
57855 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
57856 __Pyx_GOTREF(__pyx_t_4);
57857 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
57861 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 512, __pyx_L1_error)
57862 __Pyx_GOTREF(__pyx_t_8);
57864 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL;
57866 __Pyx_GIVEREF(__pyx_t_1);
57867 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_1);
57868 __Pyx_INCREF(__pyx_v_value);
57869 __Pyx_GIVEREF(__pyx_v_value);
57870 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_value);
57872 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 512, __pyx_L1_error)
57873 __Pyx_GOTREF(__pyx_t_4);
57874 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
57876 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
57877 if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 512, __pyx_L1_error)
57878 __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
57891 if (unlikely(__pyx_v_bytesvalue == Py_None)) {
57892 PyErr_SetString(PyExc_TypeError,
"'NoneType' is not iterable");
57893 __PYX_ERR(1, 514, __pyx_L1_error)
57895 __Pyx_INCREF(__pyx_v_bytesvalue);
57896 __pyx_t_10 = __pyx_v_bytesvalue;
57897 __pyx_t_12 = PyBytes_AS_STRING(__pyx_t_10);
57898 __pyx_t_13 = (__pyx_t_12 + PyBytes_GET_SIZE(__pyx_t_10));
57899 for (__pyx_t_14 = __pyx_t_12; __pyx_t_14 < __pyx_t_13; __pyx_t_14++) {
57900 __pyx_t_11 = __pyx_t_14;
57901 __pyx_v_c = (__pyx_t_11[0]);
57910 __pyx_v_i = __pyx_t_9;
57919 __pyx_t_9 = (__pyx_t_9 + 1);
57928 (__pyx_v_itemp[__pyx_v_i]) = __pyx_v_c;
57930 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
57941 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
57944 __Pyx_XDECREF(__pyx_t_1);
57945 __Pyx_XDECREF(__pyx_t_4);
57946 __Pyx_XDECREF(__pyx_t_5);
57947 __Pyx_XDECREF(__pyx_t_6);
57948 __Pyx_XDECREF(__pyx_t_8);
57949 __Pyx_XDECREF(__pyx_t_10);
57950 __Pyx_AddTraceback(
"View.MemoryView.memoryview.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
57953 __Pyx_XDECREF(__pyx_v_struct);
57954 __Pyx_XDECREF(__pyx_v_bytesvalue);
57955 __Pyx_XGIVEREF(__pyx_r);
57956 __Pyx_TraceReturn(__pyx_r, 0);
57957 __Pyx_RefNannyFinishContext();
57970 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
57971 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
57973 __Pyx_RefNannyDeclarations
57974 __Pyx_RefNannySetupContext(
"__getbuffer__ (wrapper)", 0);
57975 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((
int)__pyx_v_flags));
57978 __Pyx_RefNannyFinishContext();
57982 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(
struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
57984 __Pyx_TraceDeclarations
57985 __Pyx_RefNannyDeclarations
57988 PyObject *__pyx_t_3 = NULL;
57989 Py_ssize_t *__pyx_t_4;
57993 Py_ssize_t __pyx_t_8;
57994 int __pyx_lineno = 0;
57995 const char *__pyx_filename = NULL;
57996 int __pyx_clineno = 0;
57997 if (__pyx_v_info == NULL) {
57998 PyErr_SetString(PyExc_BufferError,
"PyObject_GetBuffer: view==NULL argument is obsolete");
58001 __Pyx_RefNannySetupContext(
"__getbuffer__", 0);
58002 __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
58003 __Pyx_GIVEREF(__pyx_v_info->obj);
58004 __Pyx_TraceCall(
"__getbuffer__", __pyx_f[1], 518, 0, __PYX_ERR(1, 518, __pyx_L1_error));
58013 __pyx_t_2 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0);
58016 __pyx_t_1 = __pyx_t_2;
58017 goto __pyx_L4_bool_binop_done;
58019 __pyx_t_2 = (__pyx_v_self->view.readonly != 0);
58020 __pyx_t_1 = __pyx_t_2;
58021 __pyx_L4_bool_binop_done:;
58022 if (unlikely(__pyx_t_1)) {
58031 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__154, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 520, __pyx_L1_error)
58032 __Pyx_GOTREF(__pyx_t_3);
58033 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
58034 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
58035 __PYX_ERR(1, 520, __pyx_L1_error)
58053 __pyx_t_1 = ((__pyx_v_flags & PyBUF_ND) != 0);
58063 __pyx_t_4 = __pyx_v_self->view.shape;
58064 __pyx_v_info->shape = __pyx_t_4;
58084 __pyx_v_info->shape = NULL;
58095 __pyx_t_1 = ((__pyx_v_flags & PyBUF_STRIDES) != 0);
58105 __pyx_t_4 = __pyx_v_self->view.strides;
58106 __pyx_v_info->strides = __pyx_t_4;
58126 __pyx_v_info->strides = NULL;
58137 __pyx_t_1 = ((__pyx_v_flags & PyBUF_INDIRECT) != 0);
58147 __pyx_t_4 = __pyx_v_self->view.suboffsets;
58148 __pyx_v_info->suboffsets = __pyx_t_4;
58168 __pyx_v_info->suboffsets = NULL;
58179 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
58189 __pyx_t_5 = __pyx_v_self->view.format;
58190 __pyx_v_info->format = __pyx_t_5;
58210 __pyx_v_info->format = NULL;
58221 __pyx_t_6 = __pyx_v_self->view.buf;
58222 __pyx_v_info->buf = __pyx_t_6;
58231 __pyx_t_7 = __pyx_v_self->view.ndim;
58232 __pyx_v_info->ndim = __pyx_t_7;
58241 __pyx_t_8 = __pyx_v_self->view.itemsize;
58242 __pyx_v_info->itemsize = __pyx_t_8;
58251 __pyx_t_8 = __pyx_v_self->view.len;
58252 __pyx_v_info->len = __pyx_t_8;
58261 __pyx_t_1 = __pyx_v_self->view.readonly;
58262 __pyx_v_info->readonly = __pyx_t_1;
58271 __Pyx_INCREF(((PyObject *)__pyx_v_self));
58272 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
58273 __Pyx_GOTREF(__pyx_v_info->obj);
58274 __Pyx_DECREF(__pyx_v_info->obj);
58275 __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
58289 __Pyx_XDECREF(__pyx_t_3);
58290 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58292 if (__pyx_v_info->obj != NULL) {
58293 __Pyx_GOTREF(__pyx_v_info->obj);
58294 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
58298 if (__pyx_v_info->obj == Py_None) {
58299 __Pyx_GOTREF(__pyx_v_info->obj);
58300 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
58303 __Pyx_TraceReturn(Py_None, 0);
58304 __Pyx_RefNannyFinishContext();
58317 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self);
58318 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self) {
58319 PyObject *__pyx_r = 0;
58320 __Pyx_RefNannyDeclarations
58321 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58322 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58325 __Pyx_RefNannyFinishContext();
58329 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58330 struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
58331 PyObject *__pyx_r = NULL;
58332 __Pyx_TraceDeclarations
58333 __Pyx_RefNannyDeclarations
58334 PyObject *__pyx_t_1 = NULL;
58336 int __pyx_lineno = 0;
58337 const char *__pyx_filename = NULL;
58338 int __pyx_clineno = 0;
58339 __Pyx_RefNannySetupContext(
"__get__", 0);
58340 __Pyx_TraceCall(
"__get__", __pyx_f[1], 553, 0, __PYX_ERR(1, 553, __pyx_L1_error));
58349 __pyx_t_1 = __pyx_memoryview_copy_object(__pyx_v_self);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 554, __pyx_L1_error)
58350 __Pyx_GOTREF(__pyx_t_1);
58351 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_memoryviewslice_type))))) __PYX_ERR(1, 554, __pyx_L1_error)
58352 __pyx_v_result = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_1);
58362 __pyx_t_2 = __pyx_memslice_transpose((&__pyx_v_result->from_slice));
if (unlikely(__pyx_t_2 == ((
int)0))) __PYX_ERR(1, 555, __pyx_L1_error)
58371 __Pyx_XDECREF(__pyx_r);
58372 __Pyx_INCREF(((PyObject *)__pyx_v_result));
58373 __pyx_r = ((PyObject *)__pyx_v_result);
58386 __Pyx_XDECREF(__pyx_t_1);
58387 __Pyx_AddTraceback(
"View.MemoryView.memoryview.T.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58390 __Pyx_XDECREF((PyObject *)__pyx_v_result);
58391 __Pyx_XGIVEREF(__pyx_r);
58392 __Pyx_TraceReturn(__pyx_r, 0);
58393 __Pyx_RefNannyFinishContext();
58406 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self);
58407 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self) {
58408 PyObject *__pyx_r = 0;
58409 __Pyx_RefNannyDeclarations
58410 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58411 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58414 __Pyx_RefNannyFinishContext();
58418 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58419 PyObject *__pyx_r = NULL;
58420 __Pyx_TraceDeclarations
58421 __Pyx_RefNannyDeclarations
58422 int __pyx_lineno = 0;
58423 const char *__pyx_filename = NULL;
58424 int __pyx_clineno = 0;
58425 __Pyx_RefNannySetupContext(
"__get__", 0);
58426 __Pyx_TraceCall(
"__get__", __pyx_f[1], 559, 0, __PYX_ERR(1, 559, __pyx_L1_error));
58435 __Pyx_XDECREF(__pyx_r);
58436 __Pyx_INCREF(__pyx_v_self->obj);
58437 __pyx_r = __pyx_v_self->obj;
58450 __Pyx_AddTraceback(
"View.MemoryView.memoryview.base.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58453 __Pyx_XGIVEREF(__pyx_r);
58454 __Pyx_TraceReturn(__pyx_r, 0);
58455 __Pyx_RefNannyFinishContext();
58468 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self);
58469 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self) {
58470 PyObject *__pyx_r = 0;
58471 __Pyx_RefNannyDeclarations
58472 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58473 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58476 __Pyx_RefNannyFinishContext();
58480 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58481 Py_ssize_t __pyx_v_length;
58482 PyObject *__pyx_r = NULL;
58483 __Pyx_TraceDeclarations
58484 __Pyx_RefNannyDeclarations
58485 PyObject *__pyx_t_1 = NULL;
58486 Py_ssize_t *__pyx_t_2;
58487 Py_ssize_t *__pyx_t_3;
58488 Py_ssize_t *__pyx_t_4;
58489 PyObject *__pyx_t_5 = NULL;
58490 int __pyx_lineno = 0;
58491 const char *__pyx_filename = NULL;
58492 int __pyx_clineno = 0;
58493 __Pyx_RefNannySetupContext(
"__get__", 0);
58494 __Pyx_TraceCall(
"__get__", __pyx_f[1], 563, 0, __PYX_ERR(1, 563, __pyx_L1_error));
58503 __Pyx_XDECREF(__pyx_r);
58504 __pyx_t_1 = PyList_New(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 564, __pyx_L1_error)
58505 __Pyx_GOTREF(__pyx_t_1);
58506 __pyx_t_3 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
58507 for (__pyx_t_4 = __pyx_v_self->view.shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
58508 __pyx_t_2 = __pyx_t_4;
58509 __pyx_v_length = (__pyx_t_2[0]);
58510 __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_length);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 564, __pyx_L1_error)
58511 __Pyx_GOTREF(__pyx_t_5);
58512 if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(1, 564, __pyx_L1_error)
58513 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
58515 __pyx_t_5 = PyList_AsTuple(((PyObject*)__pyx_t_1));
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 564, __pyx_L1_error)
58516 __Pyx_GOTREF(__pyx_t_5);
58517 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
58518 __pyx_r = __pyx_t_5;
58532 __Pyx_XDECREF(__pyx_t_1);
58533 __Pyx_XDECREF(__pyx_t_5);
58534 __Pyx_AddTraceback(
"View.MemoryView.memoryview.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58537 __Pyx_XGIVEREF(__pyx_r);
58538 __Pyx_TraceReturn(__pyx_r, 0);
58539 __Pyx_RefNannyFinishContext();
58552 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self);
58553 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self) {
58554 PyObject *__pyx_r = 0;
58555 __Pyx_RefNannyDeclarations
58556 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58557 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58560 __Pyx_RefNannyFinishContext();
58564 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58565 Py_ssize_t __pyx_v_stride;
58566 PyObject *__pyx_r = NULL;
58567 __Pyx_TraceDeclarations
58568 __Pyx_RefNannyDeclarations
58570 PyObject *__pyx_t_2 = NULL;
58571 Py_ssize_t *__pyx_t_3;
58572 Py_ssize_t *__pyx_t_4;
58573 Py_ssize_t *__pyx_t_5;
58574 PyObject *__pyx_t_6 = NULL;
58575 int __pyx_lineno = 0;
58576 const char *__pyx_filename = NULL;
58577 int __pyx_clineno = 0;
58578 __Pyx_RefNannySetupContext(
"__get__", 0);
58579 __Pyx_TraceCall(
"__get__", __pyx_f[1], 567, 0, __PYX_ERR(1, 567, __pyx_L1_error));
58588 __pyx_t_1 = ((__pyx_v_self->view.strides == NULL) != 0);
58589 if (unlikely(__pyx_t_1)) {
58598 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__155, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 570, __pyx_L1_error)
58599 __Pyx_GOTREF(__pyx_t_2);
58600 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
58601 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
58602 __PYX_ERR(1, 570, __pyx_L1_error)
58620 __Pyx_XDECREF(__pyx_r);
58621 __pyx_t_2 = PyList_New(0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 572, __pyx_L1_error)
58622 __Pyx_GOTREF(__pyx_t_2);
58623 __pyx_t_4 = (__pyx_v_self->view.strides + __pyx_v_self->view.ndim);
58624 for (__pyx_t_5 = __pyx_v_self->view.strides; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
58625 __pyx_t_3 = __pyx_t_5;
58626 __pyx_v_stride = (__pyx_t_3[0]);
58627 __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_stride);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 572, __pyx_L1_error)
58628 __Pyx_GOTREF(__pyx_t_6);
58629 if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(1, 572, __pyx_L1_error)
58630 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
58632 __pyx_t_6 = PyList_AsTuple(((PyObject*)__pyx_t_2));
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 572, __pyx_L1_error)
58633 __Pyx_GOTREF(__pyx_t_6);
58634 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
58635 __pyx_r = __pyx_t_6;
58649 __Pyx_XDECREF(__pyx_t_2);
58650 __Pyx_XDECREF(__pyx_t_6);
58651 __Pyx_AddTraceback(
"View.MemoryView.memoryview.strides.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58654 __Pyx_XGIVEREF(__pyx_r);
58655 __Pyx_TraceReturn(__pyx_r, 0);
58656 __Pyx_RefNannyFinishContext();
58669 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self);
58670 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self) {
58671 PyObject *__pyx_r = 0;
58672 __Pyx_RefNannyDeclarations
58673 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58674 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58677 __Pyx_RefNannyFinishContext();
58681 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58682 Py_ssize_t __pyx_v_suboffset;
58683 PyObject *__pyx_r = NULL;
58684 __Pyx_TraceDeclarations
58685 __Pyx_RefNannyDeclarations
58687 PyObject *__pyx_t_2 = NULL;
58688 PyObject *__pyx_t_3 = NULL;
58689 Py_ssize_t *__pyx_t_4;
58690 Py_ssize_t *__pyx_t_5;
58691 Py_ssize_t *__pyx_t_6;
58692 int __pyx_lineno = 0;
58693 const char *__pyx_filename = NULL;
58694 int __pyx_clineno = 0;
58695 __Pyx_RefNannySetupContext(
"__get__", 0);
58696 __Pyx_TraceCall(
"__get__", __pyx_f[1], 575, 0, __PYX_ERR(1, 575, __pyx_L1_error));
58705 __pyx_t_1 = ((__pyx_v_self->view.suboffsets == NULL) != 0);
58715 __Pyx_XDECREF(__pyx_r);
58716 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 577, __pyx_L1_error)
58717 __Pyx_GOTREF(__pyx_t_2);
58718 __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__156, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 577, __pyx_L1_error)
58719 __Pyx_GOTREF(__pyx_t_3);
58720 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
58721 __pyx_r = __pyx_t_3;
58741 __Pyx_XDECREF(__pyx_r);
58742 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 579, __pyx_L1_error)
58743 __Pyx_GOTREF(__pyx_t_3);
58744 __pyx_t_5 = (__pyx_v_self->view.suboffsets + __pyx_v_self->view.ndim);
58745 for (__pyx_t_6 = __pyx_v_self->view.suboffsets; __pyx_t_6 < __pyx_t_5; __pyx_t_6++) {
58746 __pyx_t_4 = __pyx_t_6;
58747 __pyx_v_suboffset = (__pyx_t_4[0]);
58748 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_suboffset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 579, __pyx_L1_error)
58749 __Pyx_GOTREF(__pyx_t_2);
58750 if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_2))) __PYX_ERR(1, 579, __pyx_L1_error)
58751 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
58753 __pyx_t_2 = PyList_AsTuple(((PyObject*)__pyx_t_3));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 579, __pyx_L1_error)
58754 __Pyx_GOTREF(__pyx_t_2);
58755 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
58756 __pyx_r = __pyx_t_2;
58770 __Pyx_XDECREF(__pyx_t_2);
58771 __Pyx_XDECREF(__pyx_t_3);
58772 __Pyx_AddTraceback(
"View.MemoryView.memoryview.suboffsets.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58775 __Pyx_XGIVEREF(__pyx_r);
58776 __Pyx_TraceReturn(__pyx_r, 0);
58777 __Pyx_RefNannyFinishContext();
58790 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self);
58791 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self) {
58792 PyObject *__pyx_r = 0;
58793 __Pyx_RefNannyDeclarations
58794 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58795 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58798 __Pyx_RefNannyFinishContext();
58802 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58803 PyObject *__pyx_r = NULL;
58804 __Pyx_TraceDeclarations
58805 __Pyx_RefNannyDeclarations
58806 PyObject *__pyx_t_1 = NULL;
58807 int __pyx_lineno = 0;
58808 const char *__pyx_filename = NULL;
58809 int __pyx_clineno = 0;
58810 __Pyx_RefNannySetupContext(
"__get__", 0);
58811 __Pyx_TraceCall(
"__get__", __pyx_f[1], 582, 0, __PYX_ERR(1, 582, __pyx_L1_error));
58820 __Pyx_XDECREF(__pyx_r);
58821 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 583, __pyx_L1_error)
58822 __Pyx_GOTREF(__pyx_t_1);
58823 __pyx_r = __pyx_t_1;
58837 __Pyx_XDECREF(__pyx_t_1);
58838 __Pyx_AddTraceback(
"View.MemoryView.memoryview.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58841 __Pyx_XGIVEREF(__pyx_r);
58842 __Pyx_TraceReturn(__pyx_r, 0);
58843 __Pyx_RefNannyFinishContext();
58856 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self);
58857 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self) {
58858 PyObject *__pyx_r = 0;
58859 __Pyx_RefNannyDeclarations
58860 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58861 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58864 __Pyx_RefNannyFinishContext();
58868 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58869 PyObject *__pyx_r = NULL;
58870 __Pyx_TraceDeclarations
58871 __Pyx_RefNannyDeclarations
58872 PyObject *__pyx_t_1 = NULL;
58873 int __pyx_lineno = 0;
58874 const char *__pyx_filename = NULL;
58875 int __pyx_clineno = 0;
58876 __Pyx_RefNannySetupContext(
"__get__", 0);
58877 __Pyx_TraceCall(
"__get__", __pyx_f[1], 586, 0, __PYX_ERR(1, 586, __pyx_L1_error));
58886 __Pyx_XDECREF(__pyx_r);
58887 __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 587, __pyx_L1_error)
58888 __Pyx_GOTREF(__pyx_t_1);
58889 __pyx_r = __pyx_t_1;
58903 __Pyx_XDECREF(__pyx_t_1);
58904 __Pyx_AddTraceback(
"View.MemoryView.memoryview.itemsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58907 __Pyx_XGIVEREF(__pyx_r);
58908 __Pyx_TraceReturn(__pyx_r, 0);
58909 __Pyx_RefNannyFinishContext();
58922 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self);
58923 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self) {
58924 PyObject *__pyx_r = 0;
58925 __Pyx_RefNannyDeclarations
58926 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
58927 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
58930 __Pyx_RefNannyFinishContext();
58934 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
58935 PyObject *__pyx_r = NULL;
58936 __Pyx_TraceDeclarations
58937 __Pyx_RefNannyDeclarations
58938 PyObject *__pyx_t_1 = NULL;
58939 PyObject *__pyx_t_2 = NULL;
58940 PyObject *__pyx_t_3 = NULL;
58941 int __pyx_lineno = 0;
58942 const char *__pyx_filename = NULL;
58943 int __pyx_clineno = 0;
58944 __Pyx_RefNannySetupContext(
"__get__", 0);
58945 __Pyx_TraceCall(
"__get__", __pyx_f[1], 590, 0, __PYX_ERR(1, 590, __pyx_L1_error));
58954 __Pyx_XDECREF(__pyx_r);
58955 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 591, __pyx_L1_error)
58956 __Pyx_GOTREF(__pyx_t_1);
58957 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 591, __pyx_L1_error)
58958 __Pyx_GOTREF(__pyx_t_2);
58959 __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 591, __pyx_L1_error)
58960 __Pyx_GOTREF(__pyx_t_3);
58961 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
58962 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
58963 __pyx_r = __pyx_t_3;
58977 __Pyx_XDECREF(__pyx_t_1);
58978 __Pyx_XDECREF(__pyx_t_2);
58979 __Pyx_XDECREF(__pyx_t_3);
58980 __Pyx_AddTraceback(
"View.MemoryView.memoryview.nbytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
58983 __Pyx_XGIVEREF(__pyx_r);
58984 __Pyx_TraceReturn(__pyx_r, 0);
58985 __Pyx_RefNannyFinishContext();
58998 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self);
58999 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self) {
59000 PyObject *__pyx_r = 0;
59001 __Pyx_RefNannyDeclarations
59002 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
59003 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59006 __Pyx_RefNannyFinishContext();
59010 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
59011 PyObject *__pyx_v_result = NULL;
59012 PyObject *__pyx_v_length = NULL;
59013 PyObject *__pyx_r = NULL;
59014 __Pyx_TraceDeclarations
59015 __Pyx_RefNannyDeclarations
59018 Py_ssize_t *__pyx_t_3;
59019 Py_ssize_t *__pyx_t_4;
59020 Py_ssize_t *__pyx_t_5;
59021 PyObject *__pyx_t_6 = NULL;
59022 int __pyx_lineno = 0;
59023 const char *__pyx_filename = NULL;
59024 int __pyx_clineno = 0;
59025 __Pyx_RefNannySetupContext(
"__get__", 0);
59026 __Pyx_TraceCall(
"__get__", __pyx_f[1], 594, 0, __PYX_ERR(1, 594, __pyx_L1_error));
59035 __pyx_t_1 = (__pyx_v_self->_size == Py_None);
59036 __pyx_t_2 = (__pyx_t_1 != 0);
59046 __Pyx_INCREF(__pyx_int_1);
59047 __pyx_v_result = __pyx_int_1;
59056 __pyx_t_4 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
59057 for (__pyx_t_5 = __pyx_v_self->view.shape; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
59058 __pyx_t_3 = __pyx_t_5;
59059 __pyx_t_6 = PyInt_FromSsize_t((__pyx_t_3[0]));
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 598, __pyx_L1_error)
59060 __Pyx_GOTREF(__pyx_t_6);
59061 __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_6);
59071 __pyx_t_6 = PyNumber_InPlaceMultiply(__pyx_v_result, __pyx_v_length);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 599, __pyx_L1_error)
59072 __Pyx_GOTREF(__pyx_t_6);
59073 __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_6);
59084 __Pyx_INCREF(__pyx_v_result);
59085 __Pyx_GIVEREF(__pyx_v_result);
59086 __Pyx_GOTREF(__pyx_v_self->_size);
59087 __Pyx_DECREF(__pyx_v_self->_size);
59088 __pyx_v_self->_size = __pyx_v_result;
59106 __Pyx_XDECREF(__pyx_r);
59107 __Pyx_INCREF(__pyx_v_self->_size);
59108 __pyx_r = __pyx_v_self->_size;
59121 __Pyx_XDECREF(__pyx_t_6);
59122 __Pyx_AddTraceback(
"View.MemoryView.memoryview.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59125 __Pyx_XDECREF(__pyx_v_result);
59126 __Pyx_XDECREF(__pyx_v_length);
59127 __Pyx_XGIVEREF(__pyx_r);
59128 __Pyx_TraceReturn(__pyx_r, 0);
59129 __Pyx_RefNannyFinishContext();
59142 static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self);
59143 static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self) {
59144 Py_ssize_t __pyx_r;
59145 __Pyx_RefNannyDeclarations
59146 __Pyx_RefNannySetupContext(
"__len__ (wrapper)", 0);
59147 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59150 __Pyx_RefNannyFinishContext();
59154 static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(
struct __pyx_memoryview_obj *__pyx_v_self) {
59155 Py_ssize_t __pyx_r;
59156 __Pyx_TraceDeclarations
59157 __Pyx_RefNannyDeclarations
59159 int __pyx_lineno = 0;
59160 const char *__pyx_filename = NULL;
59161 int __pyx_clineno = 0;
59162 __Pyx_RefNannySetupContext(
"__len__", 0);
59163 __Pyx_TraceCall(
"__len__", __pyx_f[1], 605, 0, __PYX_ERR(1, 605, __pyx_L1_error));
59172 __pyx_t_1 = ((__pyx_v_self->view.ndim >= 1) != 0);
59182 __pyx_r = (__pyx_v_self->view.shape[0]);
59214 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59217 __Pyx_TraceReturn(Py_None, 0);
59218 __Pyx_RefNannyFinishContext();
59231 static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self);
59232 static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self) {
59233 PyObject *__pyx_r = 0;
59234 __Pyx_RefNannyDeclarations
59235 __Pyx_RefNannySetupContext(
"__repr__ (wrapper)", 0);
59236 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59239 __Pyx_RefNannyFinishContext();
59243 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(
struct __pyx_memoryview_obj *__pyx_v_self) {
59244 PyObject *__pyx_r = NULL;
59245 __Pyx_TraceDeclarations
59246 __Pyx_RefNannyDeclarations
59247 PyObject *__pyx_t_1 = NULL;
59248 PyObject *__pyx_t_2 = NULL;
59249 PyObject *__pyx_t_3 = NULL;
59250 int __pyx_lineno = 0;
59251 const char *__pyx_filename = NULL;
59252 int __pyx_clineno = 0;
59253 __Pyx_RefNannySetupContext(
"__repr__", 0);
59254 __Pyx_TraceCall(
"__repr__", __pyx_f[1], 611, 0, __PYX_ERR(1, 611, __pyx_L1_error));
59263 __Pyx_XDECREF(__pyx_r);
59264 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 612, __pyx_L1_error)
59265 __Pyx_GOTREF(__pyx_t_1);
59266 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 612, __pyx_L1_error)
59267 __Pyx_GOTREF(__pyx_t_2);
59268 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
59269 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 612, __pyx_L1_error)
59270 __Pyx_GOTREF(__pyx_t_1);
59271 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
59280 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 613, __pyx_L1_error)
59281 __Pyx_GOTREF(__pyx_t_2);
59290 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 612, __pyx_L1_error)
59291 __Pyx_GOTREF(__pyx_t_3);
59292 __Pyx_GIVEREF(__pyx_t_1);
59293 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
59294 __Pyx_GIVEREF(__pyx_t_2);
59295 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
59298 __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 612, __pyx_L1_error)
59299 __Pyx_GOTREF(__pyx_t_2);
59300 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
59301 __pyx_r = __pyx_t_2;
59315 __Pyx_XDECREF(__pyx_t_1);
59316 __Pyx_XDECREF(__pyx_t_2);
59317 __Pyx_XDECREF(__pyx_t_3);
59318 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59321 __Pyx_XGIVEREF(__pyx_r);
59322 __Pyx_TraceReturn(__pyx_r, 0);
59323 __Pyx_RefNannyFinishContext();
59336 static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self);
59337 static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self) {
59338 PyObject *__pyx_r = 0;
59339 __Pyx_RefNannyDeclarations
59340 __Pyx_RefNannySetupContext(
"__str__ (wrapper)", 0);
59341 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59344 __Pyx_RefNannyFinishContext();
59348 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(
struct __pyx_memoryview_obj *__pyx_v_self) {
59349 PyObject *__pyx_r = NULL;
59350 __Pyx_TraceDeclarations
59351 __Pyx_RefNannyDeclarations
59352 PyObject *__pyx_t_1 = NULL;
59353 PyObject *__pyx_t_2 = NULL;
59354 int __pyx_lineno = 0;
59355 const char *__pyx_filename = NULL;
59356 int __pyx_clineno = 0;
59357 __Pyx_RefNannySetupContext(
"__str__", 0);
59358 __Pyx_TraceCall(
"__str__", __pyx_f[1], 615, 0, __PYX_ERR(1, 615, __pyx_L1_error));
59367 __Pyx_XDECREF(__pyx_r);
59368 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 616, __pyx_L1_error)
59369 __Pyx_GOTREF(__pyx_t_1);
59370 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 616, __pyx_L1_error)
59371 __Pyx_GOTREF(__pyx_t_2);
59372 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
59373 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 616, __pyx_L1_error)
59374 __Pyx_GOTREF(__pyx_t_1);
59375 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
59376 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 616, __pyx_L1_error)
59377 __Pyx_GOTREF(__pyx_t_2);
59378 __Pyx_GIVEREF(__pyx_t_1);
59379 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
59381 __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_object, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 616, __pyx_L1_error)
59382 __Pyx_GOTREF(__pyx_t_1);
59383 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
59384 __pyx_r = __pyx_t_1;
59398 __Pyx_XDECREF(__pyx_t_1);
59399 __Pyx_XDECREF(__pyx_t_2);
59400 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59403 __Pyx_XGIVEREF(__pyx_r);
59404 __Pyx_TraceReturn(__pyx_r, 0);
59405 __Pyx_RefNannyFinishContext();
59418 static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
59419 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_10memoryview_17is_c_contig = {
"is_c_contig", (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, 0};
59420 static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
59421 PyObject *__pyx_r = 0;
59422 __Pyx_RefNannyDeclarations
59423 __Pyx_RefNannySetupContext(
"is_c_contig (wrapper)", 0);
59424 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59427 __Pyx_RefNannyFinishContext();
59431 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(
struct __pyx_memoryview_obj *__pyx_v_self) {
59432 __Pyx_memviewslice *__pyx_v_mslice;
59433 __Pyx_memviewslice __pyx_v_tmp;
59434 PyObject *__pyx_r = NULL;
59435 __Pyx_TraceDeclarations
59436 __Pyx_RefNannyDeclarations
59437 __Pyx_memviewslice *__pyx_t_1;
59438 PyObject *__pyx_t_2 = NULL;
59439 int __pyx_lineno = 0;
59440 const char *__pyx_filename = NULL;
59441 int __pyx_clineno = 0;
59442 __Pyx_RefNannySetupContext(
"is_c_contig", 0);
59443 __Pyx_TraceCall(
"is_c_contig", __pyx_f[1], 619, 0, __PYX_ERR(1, 619, __pyx_L1_error));
59452 __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));
if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(1, 622, __pyx_L1_error)
59453 __pyx_v_mslice = __pyx_t_1;
59462 __Pyx_XDECREF(__pyx_r);
59463 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]),
'C', __pyx_v_self->view.ndim));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 623, __pyx_L1_error)
59464 __Pyx_GOTREF(__pyx_t_2);
59465 __pyx_r = __pyx_t_2;
59479 __Pyx_XDECREF(__pyx_t_2);
59480 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_c_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
59483 __Pyx_XGIVEREF(__pyx_r);
59484 __Pyx_TraceReturn(__pyx_r, 0);
59485 __Pyx_RefNannyFinishContext();
59498 static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
59499 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_10memoryview_19is_f_contig = {
"is_f_contig", (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, 0};
59500 static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
59501 PyObject *__pyx_r = 0;
59502 __Pyx_RefNannyDeclarations
59503 __Pyx_RefNannySetupContext(
"is_f_contig (wrapper)", 0);
59504 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59507 __Pyx_RefNannyFinishContext();
59511 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(
struct __pyx_memoryview_obj *__pyx_v_self) {
59512 __Pyx_memviewslice *__pyx_v_mslice;
59513 __Pyx_memviewslice __pyx_v_tmp;
59514 PyObject *__pyx_r = NULL;
59515 __Pyx_TraceDeclarations
59516 __Pyx_RefNannyDeclarations
59517 __Pyx_memviewslice *__pyx_t_1;
59518 PyObject *__pyx_t_2 = NULL;
59519 int __pyx_lineno = 0;
59520 const char *__pyx_filename = NULL;
59521 int __pyx_clineno = 0;
59522 __Pyx_RefNannySetupContext(
"is_f_contig", 0);
59523 __Pyx_TraceCall(
"is_f_contig", __pyx_f[1], 625, 0, __PYX_ERR(1, 625, __pyx_L1_error));
59532 __pyx_t_1 = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));
if (unlikely(__pyx_t_1 == ((__Pyx_memviewslice *)NULL))) __PYX_ERR(1, 628, __pyx_L1_error)
59533 __pyx_v_mslice = __pyx_t_1;
59542 __Pyx_XDECREF(__pyx_r);
59543 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]),
'F', __pyx_v_self->view.ndim));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 629, __pyx_L1_error)
59544 __Pyx_GOTREF(__pyx_t_2);
59545 __pyx_r = __pyx_t_2;
59559 __Pyx_XDECREF(__pyx_t_2);
59560 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_f_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
59563 __Pyx_XGIVEREF(__pyx_r);
59564 __Pyx_TraceReturn(__pyx_r, 0);
59565 __Pyx_RefNannyFinishContext();
59578 static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
59579 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_10memoryview_21copy = {
"copy", (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, 0};
59580 static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
59581 PyObject *__pyx_r = 0;
59582 __Pyx_RefNannyDeclarations
59583 __Pyx_RefNannySetupContext(
"copy (wrapper)", 0);
59584 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59587 __Pyx_RefNannyFinishContext();
59591 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(
struct __pyx_memoryview_obj *__pyx_v_self) {
59592 __Pyx_memviewslice __pyx_v_mslice;
59594 PyObject *__pyx_r = NULL;
59595 __Pyx_TraceDeclarations
59596 __Pyx_RefNannyDeclarations
59597 __Pyx_memviewslice __pyx_t_1;
59598 PyObject *__pyx_t_2 = NULL;
59599 int __pyx_lineno = 0;
59600 const char *__pyx_filename = NULL;
59601 int __pyx_clineno = 0;
59602 __Pyx_RefNannySetupContext(
"copy", 0);
59603 __Pyx_TraceCall(
"copy", __pyx_f[1], 631, 0, __PYX_ERR(1, 631, __pyx_L1_error));
59612 __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_F_CONTIGUOUS));
59621 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_mslice));
59630 __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_mslice), ((
char *)
"c"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_C_CONTIGUOUS), __pyx_v_self->dtype_is_object);
if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 636, __pyx_L1_error)
59631 __pyx_v_mslice = __pyx_t_1;
59640 __Pyx_XDECREF(__pyx_r);
59641 __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_mslice));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 641, __pyx_L1_error)
59642 __Pyx_GOTREF(__pyx_t_2);
59643 __pyx_r = __pyx_t_2;
59657 __Pyx_XDECREF(__pyx_t_2);
59658 __Pyx_AddTraceback(
"View.MemoryView.memoryview.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
59661 __Pyx_XGIVEREF(__pyx_r);
59662 __Pyx_TraceReturn(__pyx_r, 0);
59663 __Pyx_RefNannyFinishContext();
59676 static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
59677 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_10memoryview_23copy_fortran = {
"copy_fortran", (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, 0};
59678 static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
59679 PyObject *__pyx_r = 0;
59680 __Pyx_RefNannyDeclarations
59681 __Pyx_RefNannySetupContext(
"copy_fortran (wrapper)", 0);
59682 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59685 __Pyx_RefNannyFinishContext();
59689 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(
struct __pyx_memoryview_obj *__pyx_v_self) {
59690 __Pyx_memviewslice __pyx_v_src;
59691 __Pyx_memviewslice __pyx_v_dst;
59693 PyObject *__pyx_r = NULL;
59694 __Pyx_TraceDeclarations
59695 __Pyx_RefNannyDeclarations
59696 __Pyx_memviewslice __pyx_t_1;
59697 PyObject *__pyx_t_2 = NULL;
59698 int __pyx_lineno = 0;
59699 const char *__pyx_filename = NULL;
59700 int __pyx_clineno = 0;
59701 __Pyx_RefNannySetupContext(
"copy_fortran", 0);
59702 __Pyx_TraceCall(
"copy_fortran", __pyx_f[1], 643, 0, __PYX_ERR(1, 643, __pyx_L1_error));
59711 __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_C_CONTIGUOUS));
59720 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_src));
59729 __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_src), ((
char *)
"fortran"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_F_CONTIGUOUS), __pyx_v_self->dtype_is_object);
if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 648, __pyx_L1_error)
59730 __pyx_v_dst = __pyx_t_1;
59739 __Pyx_XDECREF(__pyx_r);
59740 __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_dst));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 653, __pyx_L1_error)
59741 __Pyx_GOTREF(__pyx_t_2);
59742 __pyx_r = __pyx_t_2;
59756 __Pyx_XDECREF(__pyx_t_2);
59757 __Pyx_AddTraceback(
"View.MemoryView.memoryview.copy_fortran", __pyx_clineno, __pyx_lineno, __pyx_filename);
59760 __Pyx_XGIVEREF(__pyx_r);
59761 __Pyx_TraceReturn(__pyx_r, 0);
59762 __Pyx_RefNannyFinishContext();
59773 static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
59774 static PyMethodDef __pyx_mdef___pyx_memoryview_1__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_1__reduce_cython__, METH_NOARGS, 0};
59775 static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
59776 PyObject *__pyx_r = 0;
59777 __Pyx_RefNannyDeclarations
59778 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
59779 __pyx_r = __pyx_pf___pyx_memoryview___reduce_cython__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
59782 __Pyx_RefNannyFinishContext();
59786 static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self) {
59787 PyObject *__pyx_r = NULL;
59788 __Pyx_TraceDeclarations
59789 __Pyx_RefNannyDeclarations
59790 PyObject *__pyx_t_1 = NULL;
59791 int __pyx_lineno = 0;
59792 const char *__pyx_filename = NULL;
59793 int __pyx_clineno = 0;
59794 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
59795 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
59803 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__157, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
59804 __Pyx_GOTREF(__pyx_t_1);
59805 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
59806 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
59807 __PYX_ERR(1, 2, __pyx_L1_error)
59817 __Pyx_XDECREF(__pyx_t_1);
59818 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59820 __Pyx_XGIVEREF(__pyx_r);
59821 __Pyx_TraceReturn(__pyx_r, 0);
59822 __Pyx_RefNannyFinishContext();
59834 static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
59835 static PyMethodDef __pyx_mdef___pyx_memoryview_3__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_3__setstate_cython__, METH_O, 0};
59836 static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
59837 PyObject *__pyx_r = 0;
59838 __Pyx_RefNannyDeclarations
59839 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
59840 __pyx_r = __pyx_pf___pyx_memoryview_2__setstate_cython__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
59843 __Pyx_RefNannyFinishContext();
59847 static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
59848 PyObject *__pyx_r = NULL;
59849 __Pyx_TraceDeclarations
59850 __Pyx_RefNannyDeclarations
59851 PyObject *__pyx_t_1 = NULL;
59852 int __pyx_lineno = 0;
59853 const char *__pyx_filename = NULL;
59854 int __pyx_clineno = 0;
59855 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
59856 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error));
59863 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__158, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
59864 __Pyx_GOTREF(__pyx_t_1);
59865 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
59866 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
59867 __PYX_ERR(1, 4, __pyx_L1_error)
59878 __Pyx_XDECREF(__pyx_t_1);
59879 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
59881 __Pyx_XGIVEREF(__pyx_r);
59882 __Pyx_TraceReturn(__pyx_r, 0);
59883 __Pyx_RefNannyFinishContext();
59895 static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o,
int __pyx_v_flags,
int __pyx_v_dtype_is_object, __Pyx_TypeInfo *__pyx_v_typeinfo) {
59896 struct __pyx_memoryview_obj *__pyx_v_result = 0;
59897 PyObject *__pyx_r = NULL;
59898 __Pyx_TraceDeclarations
59899 __Pyx_RefNannyDeclarations
59900 PyObject *__pyx_t_1 = NULL;
59901 PyObject *__pyx_t_2 = NULL;
59902 PyObject *__pyx_t_3 = NULL;
59903 int __pyx_lineno = 0;
59904 const char *__pyx_filename = NULL;
59905 int __pyx_clineno = 0;
59906 __Pyx_RefNannySetupContext(
"memoryview_cwrapper", 0);
59907 __Pyx_TraceCall(
"memoryview_cwrapper", __pyx_f[1], 657, 0, __PYX_ERR(1, 657, __pyx_L1_error));
59916 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 658, __pyx_L1_error)
59917 __Pyx_GOTREF(__pyx_t_1);
59918 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 658, __pyx_L1_error)
59919 __Pyx_GOTREF(__pyx_t_2);
59920 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 658, __pyx_L1_error)
59921 __Pyx_GOTREF(__pyx_t_3);
59922 __Pyx_INCREF(__pyx_v_o);
59923 __Pyx_GIVEREF(__pyx_v_o);
59924 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_o);
59925 __Pyx_GIVEREF(__pyx_t_1);
59926 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
59927 __Pyx_GIVEREF(__pyx_t_2);
59928 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
59931 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 658, __pyx_L1_error)
59932 __Pyx_GOTREF(__pyx_t_2);
59933 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
59934 __pyx_v_result = ((
struct __pyx_memoryview_obj *)__pyx_t_2);
59944 __pyx_v_result->typeinfo = __pyx_v_typeinfo;
59953 __Pyx_XDECREF(__pyx_r);
59954 __Pyx_INCREF(((PyObject *)__pyx_v_result));
59955 __pyx_r = ((PyObject *)__pyx_v_result);
59968 __Pyx_XDECREF(__pyx_t_1);
59969 __Pyx_XDECREF(__pyx_t_2);
59970 __Pyx_XDECREF(__pyx_t_3);
59971 __Pyx_AddTraceback(
"View.MemoryView.memoryview_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
59974 __Pyx_XDECREF((PyObject *)__pyx_v_result);
59975 __Pyx_XGIVEREF(__pyx_r);
59976 __Pyx_TraceReturn(__pyx_r, 0);
59977 __Pyx_RefNannyFinishContext();
59989 static CYTHON_INLINE
int __pyx_memoryview_check(PyObject *__pyx_v_o) {
59991 __Pyx_TraceDeclarations
59992 __Pyx_RefNannyDeclarations
59994 int __pyx_lineno = 0;
59995 const char *__pyx_filename = NULL;
59996 int __pyx_clineno = 0;
59997 __Pyx_RefNannySetupContext(
"memoryview_check", 0);
59998 __Pyx_TraceCall(
"memoryview_check", __pyx_f[1], 663, 0, __PYX_ERR(1, 663, __pyx_L1_error));
60007 __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type);
60008 __pyx_r = __pyx_t_1;
60021 __Pyx_WriteUnraisable(
"View.MemoryView.memoryview_check", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
60024 __Pyx_TraceReturn(Py_None, 0);
60025 __Pyx_RefNannyFinishContext();
60037 static PyObject *_unellipsify(PyObject *__pyx_v_index,
int __pyx_v_ndim) {
60038 PyObject *__pyx_v_tup = NULL;
60039 PyObject *__pyx_v_result = NULL;
60040 int __pyx_v_have_slices;
60041 int __pyx_v_seen_ellipsis;
60042 CYTHON_UNUSED PyObject *__pyx_v_idx = NULL;
60043 PyObject *__pyx_v_item = NULL;
60044 Py_ssize_t __pyx_v_nslices;
60045 PyObject *__pyx_r = NULL;
60046 __Pyx_TraceDeclarations
60047 __Pyx_RefNannyDeclarations
60050 PyObject *__pyx_t_3 = NULL;
60051 PyObject *__pyx_t_4 = NULL;
60052 Py_ssize_t __pyx_t_5;
60053 PyObject *(*__pyx_t_6)(PyObject *);
60054 PyObject *__pyx_t_7 = NULL;
60055 Py_ssize_t __pyx_t_8;
60058 PyObject *__pyx_t_11 = NULL;
60059 int __pyx_lineno = 0;
60060 const char *__pyx_filename = NULL;
60061 int __pyx_clineno = 0;
60062 __Pyx_RefNannySetupContext(
"_unellipsify", 0);
60063 __Pyx_TraceCall(
"_unellipsify", __pyx_f[1], 666, 0, __PYX_ERR(1, 666, __pyx_L1_error));
60072 __pyx_t_1 = PyTuple_Check(__pyx_v_index);
60073 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
60083 __pyx_t_3 = PyTuple_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 672, __pyx_L1_error)
60084 __Pyx_GOTREF(__pyx_t_3);
60085 __Pyx_INCREF(__pyx_v_index);
60086 __Pyx_GIVEREF(__pyx_v_index);
60087 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_index);
60088 __pyx_v_tup = __pyx_t_3;
60109 __Pyx_INCREF(__pyx_v_index);
60110 __pyx_v_tup = __pyx_v_index;
60121 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 676, __pyx_L1_error)
60122 __Pyx_GOTREF(__pyx_t_3);
60123 __pyx_v_result = ((PyObject*)__pyx_t_3);
60133 __pyx_v_have_slices = 0;
60142 __pyx_v_seen_ellipsis = 0;
60151 __Pyx_INCREF(__pyx_int_0);
60152 __pyx_t_3 = __pyx_int_0;
60153 if (likely(PyList_CheckExact(__pyx_v_tup)) || PyTuple_CheckExact(__pyx_v_tup)) {
60154 __pyx_t_4 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
60157 __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_tup);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 679, __pyx_L1_error)
60158 __Pyx_GOTREF(__pyx_t_4);
60159 __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 679, __pyx_L1_error)
60162 if (likely(!__pyx_t_6)) {
60163 if (likely(PyList_CheckExact(__pyx_t_4))) {
60164 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4))
break;
60165 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
60166 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 679, __pyx_L1_error)
60168 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L1_error)
60169 __Pyx_GOTREF(__pyx_t_7);
60172 if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
60173 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
60174 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(1, 679, __pyx_L1_error)
60176 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L1_error)
60177 __Pyx_GOTREF(__pyx_t_7);
60181 __pyx_t_7 = __pyx_t_6(__pyx_t_4);
60182 if (unlikely(!__pyx_t_7)) {
60183 PyObject* exc_type = PyErr_Occurred();
60185 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
60186 else __PYX_ERR(1, 679, __pyx_L1_error)
60190 __Pyx_GOTREF(__pyx_t_7);
60192 __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_7);
60194 __Pyx_INCREF(__pyx_t_3);
60195 __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_3);
60196 __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0, 0);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L1_error)
60197 __Pyx_GOTREF(__pyx_t_7);
60198 __Pyx_DECREF(__pyx_t_3);
60199 __pyx_t_3 = __pyx_t_7;
60209 __pyx_t_2 = (__pyx_v_item == __pyx_builtin_Ellipsis);
60210 __pyx_t_1 = (__pyx_t_2 != 0);
60220 __pyx_t_1 = ((!(__pyx_v_seen_ellipsis != 0)) != 0);
60230 __pyx_t_8 = PyObject_Length(__pyx_v_tup);
if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(1, 682, __pyx_L1_error)
60231 __pyx_t_7 = PyList_New(1 * ((((__pyx_v_ndim - __pyx_t_8) + 1)<0) ? 0:((__pyx_v_ndim - __pyx_t_8) + 1)));
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 682, __pyx_L1_error)
60232 __Pyx_GOTREF(__pyx_t_7);
60233 { Py_ssize_t __pyx_temp;
60234 for (__pyx_temp=0; __pyx_temp < ((__pyx_v_ndim - __pyx_t_8) + 1); __pyx_temp++) {
60235 __Pyx_INCREF(__pyx_slice__159);
60236 __Pyx_GIVEREF(__pyx_slice__159);
60237 PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__159);
60240 __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_7);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(1, 682, __pyx_L1_error)
60241 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
60250 __pyx_v_seen_ellipsis = 1;
60270 __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__159);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(1, 685, __pyx_L1_error)
60281 __pyx_v_have_slices = 1;
60301 __pyx_t_2 = PySlice_Check(__pyx_v_item);
60302 __pyx_t_10 = ((!(__pyx_t_2 != 0)) != 0);
60305 __pyx_t_1 = __pyx_t_10;
60306 goto __pyx_L9_bool_binop_done;
60308 __pyx_t_10 = ((!(PyIndex_Check(__pyx_v_item) != 0)) != 0);
60309 __pyx_t_1 = __pyx_t_10;
60310 __pyx_L9_bool_binop_done:;
60311 if (unlikely(__pyx_t_1)) {
60320 __pyx_t_7 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Cannot_index_with_type_s, ((PyObject *)Py_TYPE(__pyx_v_item)));
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 689, __pyx_L1_error)
60321 __Pyx_GOTREF(__pyx_t_7);
60322 __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 689, __pyx_L1_error)
60323 __Pyx_GOTREF(__pyx_t_11);
60324 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
60325 __Pyx_Raise(__pyx_t_11, 0, 0, 0);
60326 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
60327 __PYX_ERR(1, 689, __pyx_L1_error)
60345 __pyx_t_10 = (__pyx_v_have_slices != 0);
60348 __pyx_t_1 = __pyx_t_10;
60349 goto __pyx_L11_bool_binop_done;
60351 __pyx_t_10 = PySlice_Check(__pyx_v_item);
60352 __pyx_t_2 = (__pyx_t_10 != 0);
60353 __pyx_t_1 = __pyx_t_2;
60354 __pyx_L11_bool_binop_done:;
60355 __pyx_v_have_slices = __pyx_t_1;
60364 __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_item);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(1, 692, __pyx_L1_error)
60376 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
60377 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
60386 __pyx_t_5 = PyList_GET_SIZE(__pyx_v_result);
if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(1, 694, __pyx_L1_error)
60387 __pyx_v_nslices = (__pyx_v_ndim - __pyx_t_5);
60396 __pyx_t_1 = (__pyx_v_nslices != 0);
60406 __pyx_t_3 = PyList_New(1 * ((__pyx_v_nslices<0) ? 0:__pyx_v_nslices));
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 696, __pyx_L1_error)
60407 __Pyx_GOTREF(__pyx_t_3);
60408 { Py_ssize_t __pyx_temp;
60409 for (__pyx_temp=0; __pyx_temp < __pyx_v_nslices; __pyx_temp++) {
60410 __Pyx_INCREF(__pyx_slice__159);
60411 __Pyx_GIVEREF(__pyx_slice__159);
60412 PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__159);
60415 __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_3);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(1, 696, __pyx_L1_error)
60416 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
60434 __Pyx_XDECREF(__pyx_r);
60435 if (!__pyx_v_have_slices) {
60437 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_have_slices);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 698, __pyx_L1_error)
60438 __Pyx_GOTREF(__pyx_t_4);
60439 __pyx_t_3 = __pyx_t_4;
60441 goto __pyx_L14_bool_binop_done;
60443 __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_nslices);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 698, __pyx_L1_error)
60444 __Pyx_GOTREF(__pyx_t_4);
60445 __pyx_t_3 = __pyx_t_4;
60447 __pyx_L14_bool_binop_done:;
60448 __pyx_t_4 = PyList_AsTuple(__pyx_v_result);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 698, __pyx_L1_error)
60449 __Pyx_GOTREF(__pyx_t_4);
60450 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 698, __pyx_L1_error)
60451 __Pyx_GOTREF(__pyx_t_11);
60452 __Pyx_GIVEREF(__pyx_t_3);
60453 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3);
60454 __Pyx_GIVEREF(__pyx_t_4);
60455 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_4);
60458 __pyx_r = ((PyObject*)__pyx_t_11);
60472 __Pyx_XDECREF(__pyx_t_3);
60473 __Pyx_XDECREF(__pyx_t_4);
60474 __Pyx_XDECREF(__pyx_t_7);
60475 __Pyx_XDECREF(__pyx_t_11);
60476 __Pyx_AddTraceback(
"View.MemoryView._unellipsify", __pyx_clineno, __pyx_lineno, __pyx_filename);
60479 __Pyx_XDECREF(__pyx_v_tup);
60480 __Pyx_XDECREF(__pyx_v_result);
60481 __Pyx_XDECREF(__pyx_v_idx);
60482 __Pyx_XDECREF(__pyx_v_item);
60483 __Pyx_XGIVEREF(__pyx_r);
60484 __Pyx_TraceReturn(__pyx_r, 0);
60485 __Pyx_RefNannyFinishContext();
60497 static PyObject *assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets,
int __pyx_v_ndim) {
60498 Py_ssize_t __pyx_v_suboffset;
60499 PyObject *__pyx_r = NULL;
60500 __Pyx_TraceDeclarations
60501 __Pyx_RefNannyDeclarations
60502 Py_ssize_t *__pyx_t_1;
60503 Py_ssize_t *__pyx_t_2;
60504 Py_ssize_t *__pyx_t_3;
60506 PyObject *__pyx_t_5 = NULL;
60507 int __pyx_lineno = 0;
60508 const char *__pyx_filename = NULL;
60509 int __pyx_clineno = 0;
60510 __Pyx_RefNannySetupContext(
"assert_direct_dimensions", 0);
60511 __Pyx_TraceCall(
"assert_direct_dimensions", __pyx_f[1], 700, 0, __PYX_ERR(1, 700, __pyx_L1_error));
60520 __pyx_t_2 = (__pyx_v_suboffsets + __pyx_v_ndim);
60521 for (__pyx_t_3 = __pyx_v_suboffsets; __pyx_t_3 < __pyx_t_2; __pyx_t_3++) {
60522 __pyx_t_1 = __pyx_t_3;
60523 __pyx_v_suboffset = (__pyx_t_1[0]);
60532 __pyx_t_4 = ((__pyx_v_suboffset >= 0) != 0);
60533 if (unlikely(__pyx_t_4)) {
60542 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__160, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 703, __pyx_L1_error)
60543 __Pyx_GOTREF(__pyx_t_5);
60544 __Pyx_Raise(__pyx_t_5, 0, 0, 0);
60545 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
60546 __PYX_ERR(1, 703, __pyx_L1_error)
60567 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
60570 __Pyx_XDECREF(__pyx_t_5);
60571 __Pyx_AddTraceback(
"View.MemoryView.assert_direct_dimensions", __pyx_clineno, __pyx_lineno, __pyx_filename);
60574 __Pyx_XGIVEREF(__pyx_r);
60575 __Pyx_TraceReturn(__pyx_r, 0);
60576 __Pyx_RefNannyFinishContext();
60588 static struct __pyx_memoryview_obj *__pyx_memview_slice(
struct __pyx_memoryview_obj *__pyx_v_memview, PyObject *__pyx_v_indices) {
60589 int __pyx_v_new_ndim;
60590 int __pyx_v_suboffset_dim;
60592 __Pyx_memviewslice __pyx_v_src;
60593 __Pyx_memviewslice __pyx_v_dst;
60594 __Pyx_memviewslice *__pyx_v_p_src;
60595 struct __pyx_memoryviewslice_obj *__pyx_v_memviewsliceobj = 0;
60596 __Pyx_memviewslice *__pyx_v_p_dst;
60597 int *__pyx_v_p_suboffset_dim;
60598 Py_ssize_t __pyx_v_start;
60599 Py_ssize_t __pyx_v_stop;
60600 Py_ssize_t __pyx_v_step;
60601 int __pyx_v_have_start;
60602 int __pyx_v_have_stop;
60603 int __pyx_v_have_step;
60604 PyObject *__pyx_v_index = NULL;
60605 struct __pyx_memoryview_obj *__pyx_r = NULL;
60606 __Pyx_TraceDeclarations
60607 __Pyx_RefNannyDeclarations
60610 PyObject *__pyx_t_3 = NULL;
60611 struct __pyx_memoryview_obj *__pyx_t_4;
60614 Py_ssize_t __pyx_t_7;
60615 PyObject *(*__pyx_t_8)(PyObject *);
60616 PyObject *__pyx_t_9 = NULL;
60617 Py_ssize_t __pyx_t_10;
60619 Py_ssize_t __pyx_t_12;
60620 int __pyx_lineno = 0;
60621 const char *__pyx_filename = NULL;
60622 int __pyx_clineno = 0;
60623 __Pyx_RefNannySetupContext(
"memview_slice", 0);
60624 __Pyx_TraceCall(
"memview_slice", __pyx_f[1], 710, 0, __PYX_ERR(1, 710, __pyx_L1_error));
60633 __pyx_v_new_ndim = 0;
60634 __pyx_v_suboffset_dim = -1;
60643 (void)(memset((&__pyx_v_dst), 0, (
sizeof(__pyx_v_dst))));
60652 #ifndef CYTHON_WITHOUT_ASSERTIONS
60653 if (unlikely(!Py_OptimizeFlag)) {
60654 if (unlikely(!((__pyx_v_memview->view.ndim > 0) != 0))) {
60655 PyErr_SetNone(PyExc_AssertionError);
60656 __PYX_ERR(1, 722, __pyx_L1_error)
60668 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
60669 __pyx_t_2 = (__pyx_t_1 != 0);
60679 if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(1, 725, __pyx_L1_error)
60680 __pyx_t_3 = ((PyObject *)__pyx_v_memview);
60681 __Pyx_INCREF(__pyx_t_3);
60682 __pyx_v_memviewsliceobj = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_3);
60692 __pyx_v_p_src = (&__pyx_v_memviewsliceobj->from_slice);
60712 __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_src));
60721 __pyx_v_p_src = (&__pyx_v_src);
60732 __pyx_t_4 = __pyx_v_p_src->memview;
60733 __pyx_v_dst.memview = __pyx_t_4;
60742 __pyx_t_5 = __pyx_v_p_src->data;
60743 __pyx_v_dst.data = __pyx_t_5;
60752 __pyx_v_p_dst = (&__pyx_v_dst);
60761 __pyx_v_p_suboffset_dim = (&__pyx_v_suboffset_dim);
60771 if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) {
60772 __pyx_t_3 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
60775 __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_indices);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 746, __pyx_L1_error)
60776 __Pyx_GOTREF(__pyx_t_3);
60777 __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 746, __pyx_L1_error)
60780 if (likely(!__pyx_t_8)) {
60781 if (likely(PyList_CheckExact(__pyx_t_3))) {
60782 if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3))
break;
60783 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
60784 __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(1, 746, __pyx_L1_error)
60786 __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 746, __pyx_L1_error)
60787 __Pyx_GOTREF(__pyx_t_9);
60790 if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
60791 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
60792 __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(1, 746, __pyx_L1_error)
60794 __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 746, __pyx_L1_error)
60795 __Pyx_GOTREF(__pyx_t_9);
60799 __pyx_t_9 = __pyx_t_8(__pyx_t_3);
60800 if (unlikely(!__pyx_t_9)) {
60801 PyObject* exc_type = PyErr_Occurred();
60803 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
60804 else __PYX_ERR(1, 746, __pyx_L1_error)
60808 __Pyx_GOTREF(__pyx_t_9);
60810 __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_9);
60812 __pyx_v_dim = __pyx_t_6;
60813 __pyx_t_6 = (__pyx_t_6 + 1);
60822 __pyx_t_2 = (PyIndex_Check(__pyx_v_index) != 0);
60832 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 751, __pyx_L1_error)
60841 __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_t_10, 0, 0, 0, 0, 0, 0);
if (unlikely(__pyx_t_11 == ((
int)-1))) __PYX_ERR(1, 748, __pyx_L1_error)
60860 __pyx_t_2 = (__pyx_v_index == Py_None);
60861 __pyx_t_1 = (__pyx_t_2 != 0);
60871 (__pyx_v_p_dst->shape[__pyx_v_new_ndim]) = 1;
60880 (__pyx_v_p_dst->strides[__pyx_v_new_ndim]) = 0;
60889 (__pyx_v_p_dst->suboffsets[__pyx_v_new_ndim]) = -1
L;
60898 __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);
60918 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 760, __pyx_L1_error)
60919 __Pyx_GOTREF(__pyx_t_9);
60920 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 760, __pyx_L1_error)
60922 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60924 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 760, __pyx_L1_error)
60925 __pyx_t_10 = __pyx_t_12;
60926 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60927 goto __pyx_L7_bool_binop_done;
60930 __pyx_L7_bool_binop_done:;
60931 __pyx_v_start = __pyx_t_10;
60940 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 761, __pyx_L1_error)
60941 __Pyx_GOTREF(__pyx_t_9);
60942 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 761, __pyx_L1_error)
60944 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60946 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 761, __pyx_L1_error)
60947 __pyx_t_10 = __pyx_t_12;
60948 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60949 goto __pyx_L9_bool_binop_done;
60952 __pyx_L9_bool_binop_done:;
60953 __pyx_v_stop = __pyx_t_10;
60962 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 762, __pyx_L1_error)
60963 __Pyx_GOTREF(__pyx_t_9);
60964 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 762, __pyx_L1_error)
60966 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60968 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 762, __pyx_L1_error)
60969 __pyx_t_10 = __pyx_t_12;
60970 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60971 goto __pyx_L11_bool_binop_done;
60974 __pyx_L11_bool_binop_done:;
60975 __pyx_v_step = __pyx_t_10;
60984 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 764, __pyx_L1_error)
60985 __Pyx_GOTREF(__pyx_t_9);
60986 __pyx_t_1 = (__pyx_t_9 != Py_None);
60987 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
60988 __pyx_v_have_start = __pyx_t_1;
60997 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 765, __pyx_L1_error)
60998 __Pyx_GOTREF(__pyx_t_9);
60999 __pyx_t_1 = (__pyx_t_9 != Py_None);
61000 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
61001 __pyx_v_have_stop = __pyx_t_1;
61010 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 766, __pyx_L1_error)
61011 __Pyx_GOTREF(__pyx_t_9);
61012 __pyx_t_1 = (__pyx_t_9 != Py_None);
61013 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
61014 __pyx_v_have_step = __pyx_t_1;
61023 __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_have_start, __pyx_v_have_stop, __pyx_v_have_step, 1);
if (unlikely(__pyx_t_11 == ((
int)-1))) __PYX_ERR(1, 768, __pyx_L1_error)
61032 __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);
61044 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
61053 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
61054 __pyx_t_2 = (__pyx_t_1 != 0);
61064 __Pyx_XDECREF(((PyObject *)__pyx_r));
61073 if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError(
"memviewsliceobj"); __PYX_ERR(1, 778, __pyx_L1_error) }
61082 if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError(
"memviewsliceobj"); __PYX_ERR(1, 779, __pyx_L1_error) }
61091 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, __pyx_v_memviewsliceobj->to_object_func, __pyx_v_memviewsliceobj->to_dtype_func, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 777, __pyx_L1_error)
61092 __Pyx_GOTREF(__pyx_t_3);
61093 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(1, 777, __pyx_L1_error)
61094 __pyx_r = ((
struct __pyx_memoryview_obj *)__pyx_t_3);
61115 __Pyx_XDECREF(((PyObject *)__pyx_r));
61124 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, NULL, NULL, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 782, __pyx_L1_error)
61125 __Pyx_GOTREF(__pyx_t_3);
61134 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(1, 782, __pyx_L1_error)
61135 __pyx_r = ((
struct __pyx_memoryview_obj *)__pyx_t_3);
61150 __Pyx_XDECREF(__pyx_t_3);
61151 __Pyx_XDECREF(__pyx_t_9);
61152 __Pyx_AddTraceback(
"View.MemoryView.memview_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
61155 __Pyx_XDECREF((PyObject *)__pyx_v_memviewsliceobj);
61156 __Pyx_XDECREF(__pyx_v_index);
61157 __Pyx_XGIVEREF((PyObject *)__pyx_r);
61158 __Pyx_TraceReturn(__pyx_r, 0);
61159 __Pyx_RefNannyFinishContext();
61171 static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, Py_ssize_t __pyx_v_shape, Py_ssize_t __pyx_v_stride, Py_ssize_t __pyx_v_suboffset,
int __pyx_v_dim,
int __pyx_v_new_ndim,
int *__pyx_v_suboffset_dim, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_stop, Py_ssize_t __pyx_v_step,
int __pyx_v_have_start,
int __pyx_v_have_stop,
int __pyx_v_have_step,
int __pyx_v_is_slice) {
61172 Py_ssize_t __pyx_v_new_shape;
61173 int __pyx_v_negative_step;
61175 __Pyx_TraceDeclarations
61179 int __pyx_lineno = 0;
61180 const char *__pyx_filename = NULL;
61181 int __pyx_clineno = 0;
61182 __Pyx_TraceCall(
"slice_memviewslice", __pyx_f[1], 807, 1, __PYX_ERR(1, 807, __pyx_L1_error));
61191 __pyx_t_1 = ((!(__pyx_v_is_slice != 0)) != 0);
61201 __pyx_t_1 = ((__pyx_v_start < 0) != 0);
61211 __pyx_v_start = (__pyx_v_start + __pyx_v_shape);
61229 __pyx_t_1 = (0 <= __pyx_v_start);
61231 __pyx_t_1 = (__pyx_v_start < __pyx_v_shape);
61233 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
61243 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((
char *)
"Index out of bounds (axis %d)"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(1, 832, __pyx_L1_error)
61272 __pyx_t_1 = ((__pyx_v_have_step != 0) != 0);
61275 __pyx_t_2 = __pyx_t_1;
61276 goto __pyx_L6_bool_binop_done;
61278 __pyx_t_1 = ((__pyx_v_step < 0) != 0);
61279 __pyx_t_2 = __pyx_t_1;
61280 __pyx_L6_bool_binop_done:;
61281 __pyx_v_negative_step = __pyx_t_2;
61290 __pyx_t_1 = (__pyx_v_have_step != 0);
61293 __pyx_t_2 = __pyx_t_1;
61294 goto __pyx_L9_bool_binop_done;
61296 __pyx_t_1 = ((__pyx_v_step == 0) != 0);
61297 __pyx_t_2 = __pyx_t_1;
61298 __pyx_L9_bool_binop_done:;
61308 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((
char *)
"Step may not be zero (axis %d)"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(1, 838, __pyx_L1_error)
61326 __pyx_t_2 = (__pyx_v_have_start != 0);
61336 __pyx_t_2 = ((__pyx_v_start < 0) != 0);
61346 __pyx_v_start = (__pyx_v_start + __pyx_v_shape);
61355 __pyx_t_2 = ((__pyx_v_start < 0) != 0);
61393 __pyx_t_2 = ((__pyx_v_start >= __pyx_v_shape) != 0);
61403 __pyx_t_2 = (__pyx_v_negative_step != 0);
61413 __pyx_v_start = (__pyx_v_shape - 1);
61433 __pyx_v_start = __pyx_v_shape;
61465 __pyx_t_2 = (__pyx_v_negative_step != 0);
61475 __pyx_v_start = (__pyx_v_shape - 1);
61508 __pyx_t_2 = (__pyx_v_have_stop != 0);
61518 __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
61528 __pyx_v_stop = (__pyx_v_stop + __pyx_v_shape);
61537 __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
61575 __pyx_t_2 = ((__pyx_v_stop > __pyx_v_shape) != 0);
61585 __pyx_v_stop = __pyx_v_shape;
61615 __pyx_t_2 = (__pyx_v_negative_step != 0);
61625 __pyx_v_stop = -1
L;
61645 __pyx_v_stop = __pyx_v_shape;
61658 __pyx_t_2 = ((!(__pyx_v_have_step != 0)) != 0);
61686 __pyx_v_new_shape = ((__pyx_v_stop - __pyx_v_start) / __pyx_v_step);
61695 __pyx_t_2 = (((__pyx_v_stop - __pyx_v_start) - (__pyx_v_step * __pyx_v_new_shape)) != 0);
61705 __pyx_v_new_shape = (__pyx_v_new_shape + 1);
61723 __pyx_t_2 = ((__pyx_v_new_shape < 0) != 0);
61733 __pyx_v_new_shape = 0;
61751 (__pyx_v_dst->strides[__pyx_v_new_ndim]) = (__pyx_v_stride * __pyx_v_step);
61760 (__pyx_v_dst->shape[__pyx_v_new_ndim]) = __pyx_v_new_shape;
61769 (__pyx_v_dst->suboffsets[__pyx_v_new_ndim]) = __pyx_v_suboffset;
61780 __pyx_t_2 = (((__pyx_v_suboffset_dim[0]) < 0) != 0);
61790 __pyx_v_dst->data = (__pyx_v_dst->data + (__pyx_v_start * __pyx_v_stride));
61810 __pyx_t_3 = (__pyx_v_suboffset_dim[0]);
61811 (__pyx_v_dst->suboffsets[__pyx_t_3]) = ((__pyx_v_dst->suboffsets[__pyx_t_3]) + (__pyx_v_start * __pyx_v_stride));
61822 __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
61832 __pyx_t_2 = ((!(__pyx_v_is_slice != 0)) != 0);
61842 __pyx_t_2 = ((__pyx_v_new_ndim == 0) != 0);
61852 __pyx_v_dst->data = ((((
char **)__pyx_v_dst->data)[0]) + __pyx_v_suboffset);
61880 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((
char *)
"All dimensions preceding dimension %d must be indexed and not sliced"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(1, 899, __pyx_L1_error)
61902 (__pyx_v_suboffset_dim[0]) = __pyx_v_new_ndim;
61937 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
61939 __Pyx_AddTraceback(
"View.MemoryView.slice_memviewslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
61941 __Pyx_PyGILState_Release(__pyx_gilstate_save);
61946 __Pyx_TraceReturn(Py_None, 1);
61958 static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view,
char *__pyx_v_bufp, Py_ssize_t __pyx_v_index, Py_ssize_t __pyx_v_dim) {
61959 Py_ssize_t __pyx_v_shape;
61960 Py_ssize_t __pyx_v_stride;
61961 Py_ssize_t __pyx_v_suboffset;
61962 Py_ssize_t __pyx_v_itemsize;
61963 char *__pyx_v_resultp;
61965 __Pyx_TraceDeclarations
61966 __Pyx_RefNannyDeclarations
61967 Py_ssize_t __pyx_t_1;
61969 PyObject *__pyx_t_3 = NULL;
61970 PyObject *__pyx_t_4 = NULL;
61971 int __pyx_lineno = 0;
61972 const char *__pyx_filename = NULL;
61973 int __pyx_clineno = 0;
61974 __Pyx_RefNannySetupContext(
"pybuffer_index", 0);
61975 __Pyx_TraceCall(
"pybuffer_index", __pyx_f[1], 910, 0, __PYX_ERR(1, 910, __pyx_L1_error));
61984 __pyx_v_suboffset = -1
L;
61993 __pyx_t_1 = __pyx_v_view->itemsize;
61994 __pyx_v_itemsize = __pyx_t_1;
62003 __pyx_t_2 = ((__pyx_v_view->ndim == 0) != 0);
62013 if (unlikely(__pyx_v_itemsize == 0)) {
62014 PyErr_SetString(PyExc_ZeroDivisionError,
"integer division or modulo by zero");
62015 __PYX_ERR(1, 917, __pyx_L1_error)
62017 else if (
sizeof(Py_ssize_t) ==
sizeof(
long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_view->len))) {
62018 PyErr_SetString(PyExc_OverflowError,
"value too large to perform division");
62019 __PYX_ERR(1, 917, __pyx_L1_error)
62021 __pyx_v_shape = __Pyx_div_Py_ssize_t(__pyx_v_view->len, __pyx_v_itemsize);
62030 __pyx_v_stride = __pyx_v_itemsize;
62050 __pyx_v_shape = (__pyx_v_view->shape[__pyx_v_dim]);
62059 __pyx_v_stride = (__pyx_v_view->strides[__pyx_v_dim]);
62068 __pyx_t_2 = ((__pyx_v_view->suboffsets != NULL) != 0);
62078 __pyx_v_suboffset = (__pyx_v_view->suboffsets[__pyx_v_dim]);
62098 __pyx_t_2 = ((__pyx_v_index < 0) != 0);
62108 __pyx_v_index = (__pyx_v_index + (__pyx_v_view->shape[__pyx_v_dim]));
62117 __pyx_t_2 = ((__pyx_v_index < 0) != 0);
62118 if (unlikely(__pyx_t_2)) {
62127 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 928, __pyx_L1_error)
62128 __Pyx_GOTREF(__pyx_t_3);
62129 __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 928, __pyx_L1_error)
62130 __Pyx_GOTREF(__pyx_t_4);
62131 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62132 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 928, __pyx_L1_error)
62133 __Pyx_GOTREF(__pyx_t_3);
62134 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
62135 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
62136 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62137 __PYX_ERR(1, 928, __pyx_L1_error)
62164 __pyx_t_2 = ((__pyx_v_index >= __pyx_v_shape) != 0);
62165 if (unlikely(__pyx_t_2)) {
62174 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 931, __pyx_L1_error)
62175 __Pyx_GOTREF(__pyx_t_3);
62176 __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 931, __pyx_L1_error)
62177 __Pyx_GOTREF(__pyx_t_4);
62178 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62179 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 931, __pyx_L1_error)
62180 __Pyx_GOTREF(__pyx_t_3);
62181 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
62182 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
62183 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62184 __PYX_ERR(1, 931, __pyx_L1_error)
62202 __pyx_v_resultp = (__pyx_v_bufp + (__pyx_v_index * __pyx_v_stride));
62211 __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
62221 __pyx_v_resultp = ((((
char **)__pyx_v_resultp)[0]) + __pyx_v_suboffset);
62239 __pyx_r = __pyx_v_resultp;
62252 __Pyx_XDECREF(__pyx_t_3);
62253 __Pyx_XDECREF(__pyx_t_4);
62254 __Pyx_AddTraceback(
"View.MemoryView.pybuffer_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
62257 __Pyx_TraceReturn(Py_None, 0);
62258 __Pyx_RefNannyFinishContext();
62270 static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
62272 Py_ssize_t *__pyx_v_shape;
62273 Py_ssize_t *__pyx_v_strides;
62277 __Pyx_TraceDeclarations
62279 Py_ssize_t *__pyx_t_2;
62282 Py_ssize_t __pyx_t_5;
62283 Py_ssize_t __pyx_t_6;
62287 int __pyx_lineno = 0;
62288 const char *__pyx_filename = NULL;
62289 int __pyx_clineno = 0;
62290 __Pyx_TraceCall(
"transpose_memslice", __pyx_f[1], 943, 1, __PYX_ERR(1, 943, __pyx_L1_error));
62299 __pyx_t_1 = __pyx_v_memslice->memview->view.ndim;
62300 __pyx_v_ndim = __pyx_t_1;
62309 __pyx_t_2 = __pyx_v_memslice->shape;
62310 __pyx_v_shape = __pyx_t_2;
62319 __pyx_t_2 = __pyx_v_memslice->strides;
62320 __pyx_v_strides = __pyx_t_2;
62329 __pyx_t_3 = __Pyx_div_long(__pyx_v_ndim, 2);
62330 __pyx_t_4 = __pyx_t_3;
62331 for (__pyx_t_1 = 0; __pyx_t_1 < __pyx_t_4; __pyx_t_1+=1) {
62332 __pyx_v_i = __pyx_t_1;
62341 __pyx_v_j = ((__pyx_v_ndim - 1) - __pyx_v_i);
62350 __pyx_t_5 = (__pyx_v_strides[__pyx_v_j]);
62351 __pyx_t_6 = (__pyx_v_strides[__pyx_v_i]);
62352 (__pyx_v_strides[__pyx_v_i]) = __pyx_t_5;
62353 (__pyx_v_strides[__pyx_v_j]) = __pyx_t_6;
62362 __pyx_t_6 = (__pyx_v_shape[__pyx_v_j]);
62363 __pyx_t_5 = (__pyx_v_shape[__pyx_v_i]);
62364 (__pyx_v_shape[__pyx_v_i]) = __pyx_t_6;
62365 (__pyx_v_shape[__pyx_v_j]) = __pyx_t_5;
62374 __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_i]) >= 0) != 0);
62377 __pyx_t_7 = __pyx_t_8;
62378 goto __pyx_L6_bool_binop_done;
62380 __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_j]) >= 0) != 0);
62381 __pyx_t_7 = __pyx_t_8;
62382 __pyx_L6_bool_binop_done:;
62392 __pyx_t_9 = __pyx_memoryview_err(__pyx_builtin_ValueError, ((
char *)
"Cannot transpose memoryview with indirect dimensions"));
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(1, 957, __pyx_L1_error)
62426 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
62428 __Pyx_AddTraceback(
"View.MemoryView.transpose_memslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
62430 __Pyx_PyGILState_Release(__pyx_gilstate_save);
62435 __Pyx_TraceReturn(Py_None, 1);
62448 static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self);
62449 static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) {
62450 __Pyx_RefNannyDeclarations
62451 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
62452 __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
62455 __Pyx_RefNannyFinishContext();
62458 static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
62459 __Pyx_TraceDeclarations
62460 __Pyx_RefNannyDeclarations
62461 int __pyx_lineno = 0;
62462 const char *__pyx_filename = NULL;
62463 int __pyx_clineno = 0;
62464 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
62465 __Pyx_TraceCall(
"__dealloc__", __pyx_f[1], 976, 0, __PYX_ERR(1, 976, __pyx_L1_error));
62474 __PYX_XDEC_MEMVIEW((&__pyx_v_self->from_slice), 1);
62487 __Pyx_WriteUnraisable(
"View.MemoryView._memoryviewslice.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
62489 __Pyx_TraceReturn(Py_None, 0);
62490 __Pyx_RefNannyFinishContext();
62501 static PyObject *__pyx_memoryviewslice_convert_item_to_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp) {
62502 PyObject *__pyx_r = NULL;
62503 __Pyx_TraceDeclarations
62504 __Pyx_RefNannyDeclarations
62506 PyObject *__pyx_t_2 = NULL;
62507 int __pyx_lineno = 0;
62508 const char *__pyx_filename = NULL;
62509 int __pyx_clineno = 0;
62510 __Pyx_RefNannySetupContext(
"convert_item_to_object", 0);
62511 __Pyx_TraceCall(
"convert_item_to_object", __pyx_f[1], 979, 0, __PYX_ERR(1, 979, __pyx_L1_error));
62520 __pyx_t_1 = ((__pyx_v_self->to_object_func != NULL) != 0);
62530 __Pyx_XDECREF(__pyx_r);
62531 __pyx_t_2 = __pyx_v_self->to_object_func(__pyx_v_itemp);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 981, __pyx_L1_error)
62532 __Pyx_GOTREF(__pyx_t_2);
62533 __pyx_r = __pyx_t_2;
62554 __Pyx_XDECREF(__pyx_r);
62555 __pyx_t_2 = __pyx_memoryview_convert_item_to_object(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 983, __pyx_L1_error)
62556 __Pyx_GOTREF(__pyx_t_2);
62557 __pyx_r = __pyx_t_2;
62572 __Pyx_XDECREF(__pyx_t_2);
62573 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
62576 __Pyx_XGIVEREF(__pyx_r);
62577 __Pyx_TraceReturn(__pyx_r, 0);
62578 __Pyx_RefNannyFinishContext();
62590 static PyObject *__pyx_memoryviewslice_assign_item_from_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value) {
62591 PyObject *__pyx_r = NULL;
62592 __Pyx_TraceDeclarations
62593 __Pyx_RefNannyDeclarations
62596 PyObject *__pyx_t_3 = NULL;
62597 int __pyx_lineno = 0;
62598 const char *__pyx_filename = NULL;
62599 int __pyx_clineno = 0;
62600 __Pyx_RefNannySetupContext(
"assign_item_from_object", 0);
62601 __Pyx_TraceCall(
"assign_item_from_object", __pyx_f[1], 985, 0, __PYX_ERR(1, 985, __pyx_L1_error));
62610 __pyx_t_1 = ((__pyx_v_self->to_dtype_func != NULL) != 0);
62620 __pyx_t_2 = __pyx_v_self->to_dtype_func(__pyx_v_itemp, __pyx_v_value);
if (unlikely(__pyx_t_2 == ((
int)0))) __PYX_ERR(1, 987, __pyx_L1_error)
62640 __pyx_t_3 = __pyx_memoryview_assign_item_from_object(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp, __pyx_v_value);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 989, __pyx_L1_error)
62641 __Pyx_GOTREF(__pyx_t_3);
62642 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62655 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
62658 __Pyx_XDECREF(__pyx_t_3);
62659 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
62662 __Pyx_XGIVEREF(__pyx_r);
62663 __Pyx_TraceReturn(__pyx_r, 0);
62664 __Pyx_RefNannyFinishContext();
62677 static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self);
62678 static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self) {
62679 PyObject *__pyx_r = 0;
62680 __Pyx_RefNannyDeclarations
62681 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
62682 __pyx_r = __pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
62685 __Pyx_RefNannyFinishContext();
62689 static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
62690 PyObject *__pyx_r = NULL;
62691 __Pyx_TraceDeclarations
62692 __Pyx_RefNannyDeclarations
62693 int __pyx_lineno = 0;
62694 const char *__pyx_filename = NULL;
62695 int __pyx_clineno = 0;
62696 __Pyx_RefNannySetupContext(
"__get__", 0);
62697 __Pyx_TraceCall(
"__get__", __pyx_f[1], 992, 0, __PYX_ERR(1, 992, __pyx_L1_error));
62706 __Pyx_XDECREF(__pyx_r);
62707 __Pyx_INCREF(__pyx_v_self->from_object);
62708 __pyx_r = __pyx_v_self->from_object;
62721 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.base.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
62724 __Pyx_XGIVEREF(__pyx_r);
62725 __Pyx_TraceReturn(__pyx_r, 0);
62726 __Pyx_RefNannyFinishContext();
62737 static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
62738 static PyMethodDef __pyx_mdef___pyx_memoryviewslice_1__reduce_cython__ = {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_1__reduce_cython__, METH_NOARGS, 0};
62739 static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
62740 PyObject *__pyx_r = 0;
62741 __Pyx_RefNannyDeclarations
62742 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
62743 __pyx_r = __pyx_pf___pyx_memoryviewslice___reduce_cython__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
62746 __Pyx_RefNannyFinishContext();
62750 static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
62751 PyObject *__pyx_r = NULL;
62752 __Pyx_TraceDeclarations
62753 __Pyx_RefNannyDeclarations
62754 PyObject *__pyx_t_1 = NULL;
62755 int __pyx_lineno = 0;
62756 const char *__pyx_filename = NULL;
62757 int __pyx_clineno = 0;
62758 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
62759 __Pyx_TraceCall(
"__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
62767 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__161, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
62768 __Pyx_GOTREF(__pyx_t_1);
62769 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
62770 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
62771 __PYX_ERR(1, 2, __pyx_L1_error)
62781 __Pyx_XDECREF(__pyx_t_1);
62782 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
62784 __Pyx_XGIVEREF(__pyx_r);
62785 __Pyx_TraceReturn(__pyx_r, 0);
62786 __Pyx_RefNannyFinishContext();
62798 static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
62799 static PyMethodDef __pyx_mdef___pyx_memoryviewslice_3__setstate_cython__ = {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_3__setstate_cython__, METH_O, 0};
62800 static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
62801 PyObject *__pyx_r = 0;
62802 __Pyx_RefNannyDeclarations
62803 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
62804 __pyx_r = __pyx_pf___pyx_memoryviewslice_2__setstate_cython__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
62807 __Pyx_RefNannyFinishContext();
62811 static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
62812 PyObject *__pyx_r = NULL;
62813 __Pyx_TraceDeclarations
62814 __Pyx_RefNannyDeclarations
62815 PyObject *__pyx_t_1 = NULL;
62816 int __pyx_lineno = 0;
62817 const char *__pyx_filename = NULL;
62818 int __pyx_clineno = 0;
62819 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
62820 __Pyx_TraceCall(
"__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error));
62827 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__162, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
62828 __Pyx_GOTREF(__pyx_t_1);
62829 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
62830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
62831 __PYX_ERR(1, 4, __pyx_L1_error)
62842 __Pyx_XDECREF(__pyx_t_1);
62843 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
62845 __Pyx_XGIVEREF(__pyx_r);
62846 __Pyx_TraceReturn(__pyx_r, 0);
62847 __Pyx_RefNannyFinishContext();
62859 static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewslice,
int __pyx_v_ndim, PyObject *(*__pyx_v_to_object_func)(
char *),
int (*__pyx_v_to_dtype_func)(
char *, PyObject *),
int __pyx_v_dtype_is_object) {
62860 struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
62861 Py_ssize_t __pyx_v_suboffset;
62862 PyObject *__pyx_v_length = NULL;
62863 PyObject *__pyx_r = NULL;
62864 __Pyx_TraceDeclarations
62865 __Pyx_RefNannyDeclarations
62867 PyObject *__pyx_t_2 = NULL;
62868 PyObject *__pyx_t_3 = NULL;
62869 __Pyx_TypeInfo *__pyx_t_4;
62870 Py_buffer __pyx_t_5;
62871 Py_ssize_t *__pyx_t_6;
62872 Py_ssize_t *__pyx_t_7;
62873 Py_ssize_t *__pyx_t_8;
62874 Py_ssize_t __pyx_t_9;
62875 int __pyx_lineno = 0;
62876 const char *__pyx_filename = NULL;
62877 int __pyx_clineno = 0;
62878 __Pyx_RefNannySetupContext(
"memoryview_fromslice", 0);
62879 __Pyx_TraceCall(
"memoryview_fromslice", __pyx_f[1], 999, 0, __PYX_ERR(1, 999, __pyx_L1_error));
62888 __pyx_t_1 = ((((PyObject *)__pyx_v_memviewslice.memview) == Py_None) != 0);
62898 __Pyx_XDECREF(__pyx_r);
62899 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
62918 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1013, __pyx_L1_error)
62919 __Pyx_GOTREF(__pyx_t_2);
62920 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1013, __pyx_L1_error)
62921 __Pyx_GOTREF(__pyx_t_3);
62922 __Pyx_INCREF(Py_None);
62923 __Pyx_GIVEREF(Py_None);
62924 PyTuple_SET_ITEM(__pyx_t_3, 0, Py_None);
62925 __Pyx_INCREF(__pyx_int_0);
62926 __Pyx_GIVEREF(__pyx_int_0);
62927 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_0);
62928 __Pyx_GIVEREF(__pyx_t_2);
62929 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
62931 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryviewslice_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1013, __pyx_L1_error)
62932 __Pyx_GOTREF(__pyx_t_2);
62933 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
62934 __pyx_v_result = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_2);
62944 __pyx_v_result->from_slice = __pyx_v_memviewslice;
62953 __PYX_INC_MEMVIEW((&__pyx_v_memviewslice), 1);
62962 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memviewslice.memview), __pyx_n_s_base);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1018, __pyx_L1_error)
62963 __Pyx_GOTREF(__pyx_t_2);
62964 __Pyx_GIVEREF(__pyx_t_2);
62965 __Pyx_GOTREF(__pyx_v_result->from_object);
62966 __Pyx_DECREF(__pyx_v_result->from_object);
62967 __pyx_v_result->from_object = __pyx_t_2;
62977 __pyx_t_4 = __pyx_v_memviewslice.memview->typeinfo;
62978 __pyx_v_result->__pyx_base.typeinfo = __pyx_t_4;
62987 __pyx_t_5 = __pyx_v_memviewslice.memview->view;
62988 __pyx_v_result->__pyx_base.view = __pyx_t_5;
62997 __pyx_v_result->__pyx_base.view.buf = ((
void *)__pyx_v_memviewslice.data);
63006 __pyx_v_result->__pyx_base.view.ndim = __pyx_v_ndim;
63015 ((Py_buffer *)(&__pyx_v_result->__pyx_base.view))->obj = Py_None;
63024 Py_INCREF(Py_None);
63033 __pyx_t_1 = ((((
struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)->flags & PyBUF_WRITABLE) != 0);
63043 __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS;
63063 __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS_RO;
63074 __pyx_v_result->__pyx_base.view.shape = ((Py_ssize_t *)__pyx_v_result->from_slice.shape);
63083 __pyx_v_result->__pyx_base.view.strides = ((Py_ssize_t *)__pyx_v_result->from_slice.strides);
63092 __pyx_v_result->__pyx_base.view.suboffsets = NULL;
63101 __pyx_t_7 = (__pyx_v_result->from_slice.suboffsets + __pyx_v_ndim);
63102 for (__pyx_t_8 = __pyx_v_result->from_slice.suboffsets; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
63103 __pyx_t_6 = __pyx_t_8;
63104 __pyx_v_suboffset = (__pyx_t_6[0]);
63113 __pyx_t_1 = ((__pyx_v_suboffset >= 0) != 0);
63123 __pyx_v_result->__pyx_base.view.suboffsets = ((Py_ssize_t *)__pyx_v_result->from_slice.suboffsets);
63132 goto __pyx_L6_break;
63152 __pyx_t_9 = __pyx_v_result->__pyx_base.view.itemsize;
63153 __pyx_v_result->__pyx_base.view.len = __pyx_t_9;
63162 __pyx_t_7 = (__pyx_v_result->__pyx_base.view.shape + __pyx_v_ndim);
63163 for (__pyx_t_8 = __pyx_v_result->__pyx_base.view.shape; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
63164 __pyx_t_6 = __pyx_t_8;
63165 __pyx_t_2 = PyInt_FromSsize_t((__pyx_t_6[0]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1043, __pyx_L1_error)
63166 __Pyx_GOTREF(__pyx_t_2);
63167 __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_2);
63177 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_result->__pyx_base.view.len);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1044, __pyx_L1_error)
63178 __Pyx_GOTREF(__pyx_t_2);
63179 __pyx_t_3 = PyNumber_InPlaceMultiply(__pyx_t_2, __pyx_v_length);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1044, __pyx_L1_error)
63180 __Pyx_GOTREF(__pyx_t_3);
63181 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
63182 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1044, __pyx_L1_error)
63183 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
63184 __pyx_v_result->__pyx_base.view.len = __pyx_t_9;
63194 __pyx_v_result->to_object_func = __pyx_v_to_object_func;
63203 __pyx_v_result->to_dtype_func = __pyx_v_to_dtype_func;
63212 __Pyx_XDECREF(__pyx_r);
63213 __Pyx_INCREF(((PyObject *)__pyx_v_result));
63214 __pyx_r = ((PyObject *)__pyx_v_result);
63227 __Pyx_XDECREF(__pyx_t_2);
63228 __Pyx_XDECREF(__pyx_t_3);
63229 __Pyx_AddTraceback(
"View.MemoryView.memoryview_fromslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
63232 __Pyx_XDECREF((PyObject *)__pyx_v_result);
63233 __Pyx_XDECREF(__pyx_v_length);
63234 __Pyx_XGIVEREF(__pyx_r);
63235 __Pyx_TraceReturn(__pyx_r, 0);
63236 __Pyx_RefNannyFinishContext();
63248 static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_mslice) {
63249 struct __pyx_memoryviewslice_obj *__pyx_v_obj = 0;
63250 __Pyx_memviewslice *__pyx_r;
63251 __Pyx_TraceDeclarations
63252 __Pyx_RefNannyDeclarations
63255 PyObject *__pyx_t_3 = NULL;
63256 int __pyx_lineno = 0;
63257 const char *__pyx_filename = NULL;
63258 int __pyx_clineno = 0;
63259 __Pyx_RefNannySetupContext(
"get_slice_from_memview", 0);
63260 __Pyx_TraceCall(
"get_slice_from_memview", __pyx_f[1], 1052, 0, __PYX_ERR(1, 1052, __pyx_L1_error));
63269 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
63270 __pyx_t_2 = (__pyx_t_1 != 0);
63280 if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(1, 1056, __pyx_L1_error)
63281 __pyx_t_3 = ((PyObject *)__pyx_v_memview);
63282 __Pyx_INCREF(__pyx_t_3);
63283 __pyx_v_obj = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_3);
63293 __pyx_r = (&__pyx_v_obj->from_slice);
63313 __pyx_memoryview_slice_copy(__pyx_v_memview, __pyx_v_mslice);
63322 __pyx_r = __pyx_v_mslice;
63336 __Pyx_XDECREF(__pyx_t_3);
63337 __Pyx_AddTraceback(
"View.MemoryView.get_slice_from_memview", __pyx_clineno, __pyx_lineno, __pyx_filename);
63340 __Pyx_XDECREF((PyObject *)__pyx_v_obj);
63341 __Pyx_TraceReturn(Py_None, 0);
63342 __Pyx_RefNannyFinishContext();
63354 static void __pyx_memoryview_slice_copy(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_dst) {
63356 Py_ssize_t *__pyx_v_shape;
63357 Py_ssize_t *__pyx_v_strides;
63358 Py_ssize_t *__pyx_v_suboffsets;
63359 __Pyx_TraceDeclarations
63360 __Pyx_RefNannyDeclarations
63361 Py_ssize_t *__pyx_t_1;
63365 Py_ssize_t __pyx_t_5;
63366 int __pyx_lineno = 0;
63367 const char *__pyx_filename = NULL;
63368 int __pyx_clineno = 0;
63369 __Pyx_RefNannySetupContext(
"slice_copy", 0);
63370 __Pyx_TraceCall(
"slice_copy", __pyx_f[1], 1063, 0, __PYX_ERR(1, 1063, __pyx_L1_error));
63379 __pyx_t_1 = __pyx_v_memview->view.shape;
63380 __pyx_v_shape = __pyx_t_1;
63389 __pyx_t_1 = __pyx_v_memview->view.strides;
63390 __pyx_v_strides = __pyx_t_1;
63399 __pyx_t_1 = __pyx_v_memview->view.suboffsets;
63400 __pyx_v_suboffsets = __pyx_t_1;
63409 __pyx_v_dst->memview = ((
struct __pyx_memoryview_obj *)__pyx_v_memview);
63418 __pyx_v_dst->data = ((
char *)__pyx_v_memview->view.buf);
63427 __pyx_t_2 = __pyx_v_memview->view.ndim;
63428 __pyx_t_3 = __pyx_t_2;
63429 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
63430 __pyx_v_dim = __pyx_t_4;
63439 (__pyx_v_dst->shape[__pyx_v_dim]) = (__pyx_v_shape[__pyx_v_dim]);
63448 (__pyx_v_dst->strides[__pyx_v_dim]) = (__pyx_v_strides[__pyx_v_dim]);
63457 if ((__pyx_v_suboffsets != 0)) {
63458 __pyx_t_5 = (__pyx_v_suboffsets[__pyx_v_dim]);
63462 (__pyx_v_dst->suboffsets[__pyx_v_dim]) = __pyx_t_5;
63476 __Pyx_WriteUnraisable(
"View.MemoryView.slice_copy", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
63478 __Pyx_TraceReturn(Py_None, 0);
63479 __Pyx_RefNannyFinishContext();
63490 static PyObject *__pyx_memoryview_copy_object(
struct __pyx_memoryview_obj *__pyx_v_memview) {
63491 __Pyx_memviewslice __pyx_v_memviewslice;
63492 PyObject *__pyx_r = NULL;
63493 __Pyx_TraceDeclarations
63494 __Pyx_RefNannyDeclarations
63495 PyObject *__pyx_t_1 = NULL;
63496 int __pyx_lineno = 0;
63497 const char *__pyx_filename = NULL;
63498 int __pyx_clineno = 0;
63499 __Pyx_RefNannySetupContext(
"memoryview_copy", 0);
63500 __Pyx_TraceCall(
"memoryview_copy", __pyx_f[1], 1080, 0, __PYX_ERR(1, 1080, __pyx_L1_error));
63509 __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_memviewslice));
63518 __Pyx_XDECREF(__pyx_r);
63519 __pyx_t_1 = __pyx_memoryview_copy_object_from_slice(__pyx_v_memview, (&__pyx_v_memviewslice));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1084, __pyx_L1_error)
63520 __Pyx_GOTREF(__pyx_t_1);
63521 __pyx_r = __pyx_t_1;
63535 __Pyx_XDECREF(__pyx_t_1);
63536 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
63539 __Pyx_XGIVEREF(__pyx_r);
63540 __Pyx_TraceReturn(__pyx_r, 0);
63541 __Pyx_RefNannyFinishContext();
63553 static PyObject *__pyx_memoryview_copy_object_from_slice(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_memviewslice) {
63554 PyObject *(*__pyx_v_to_object_func)(
char *);
63555 int (*__pyx_v_to_dtype_func)(
char *, PyObject *);
63556 PyObject *__pyx_r = NULL;
63557 __Pyx_TraceDeclarations
63558 __Pyx_RefNannyDeclarations
63561 PyObject *(*__pyx_t_3)(
char *);
63562 int (*__pyx_t_4)(
char *, PyObject *);
63563 PyObject *__pyx_t_5 = NULL;
63564 int __pyx_lineno = 0;
63565 const char *__pyx_filename = NULL;
63566 int __pyx_clineno = 0;
63567 __Pyx_RefNannySetupContext(
"memoryview_copy_from_slice", 0);
63568 __Pyx_TraceCall(
"memoryview_copy_from_slice", __pyx_f[1], 1087, 0, __PYX_ERR(1, 1087, __pyx_L1_error));
63577 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
63578 __pyx_t_2 = (__pyx_t_1 != 0);
63588 __pyx_t_3 = ((
struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_object_func;
63589 __pyx_v_to_object_func = __pyx_t_3;
63598 __pyx_t_4 = ((
struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_dtype_func;
63599 __pyx_v_to_dtype_func = __pyx_t_4;
63619 __pyx_v_to_object_func = NULL;
63628 __pyx_v_to_dtype_func = NULL;
63639 __Pyx_XDECREF(__pyx_r);
63648 __pyx_t_5 = __pyx_memoryview_fromslice((__pyx_v_memviewslice[0]), __pyx_v_memview->view.ndim, __pyx_v_to_object_func, __pyx_v_to_dtype_func, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1101, __pyx_L1_error)
63649 __Pyx_GOTREF(__pyx_t_5);
63650 __pyx_r = __pyx_t_5;
63664 __Pyx_XDECREF(__pyx_t_5);
63665 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy_from_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
63668 __Pyx_XGIVEREF(__pyx_r);
63669 __Pyx_TraceReturn(__pyx_r, 0);
63670 __Pyx_RefNannyFinishContext();
63682 static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) {
63683 Py_ssize_t __pyx_r;
63684 __Pyx_TraceDeclarations
63686 int __pyx_lineno = 0;
63687 const char *__pyx_filename = NULL;
63688 int __pyx_clineno = 0;
63689 __Pyx_TraceCall(
"abs_py_ssize_t", __pyx_f[1], 1109, 1, __PYX_ERR(1, 1109, __pyx_L1_error));
63698 __pyx_t_1 = ((__pyx_v_arg < 0) != 0);
63708 __pyx_r = (-__pyx_v_arg);
63728 __pyx_r = __pyx_v_arg;
63742 __Pyx_WriteUnraisable(
"View.MemoryView.abs_py_ssize_t", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
63745 __Pyx_TraceReturn(Py_None, 1);
63757 static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice,
int __pyx_v_ndim) {
63759 Py_ssize_t __pyx_v_c_stride;
63760 Py_ssize_t __pyx_v_f_stride;
63762 __Pyx_TraceDeclarations
63767 int __pyx_lineno = 0;
63768 const char *__pyx_filename = NULL;
63769 int __pyx_clineno = 0;
63770 __Pyx_TraceCall(
"get_best_order", __pyx_f[1], 1116, 1, __PYX_ERR(1, 1116, __pyx_L1_error));
63779 __pyx_v_c_stride = 0;
63788 __pyx_v_f_stride = 0;
63797 for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
63798 __pyx_v_i = __pyx_t_1;
63807 __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
63817 __pyx_v_c_stride = (__pyx_v_mslice->strides[__pyx_v_i]);
63826 goto __pyx_L4_break;
63846 __pyx_t_1 = __pyx_v_ndim;
63847 __pyx_t_3 = __pyx_t_1;
63848 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
63849 __pyx_v_i = __pyx_t_4;
63858 __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
63868 __pyx_v_f_stride = (__pyx_v_mslice->strides[__pyx_v_i]);
63877 goto __pyx_L7_break;
63897 __pyx_t_2 = ((abs_py_ssize_t(__pyx_v_c_stride) <= abs_py_ssize_t(__pyx_v_f_stride)) != 0);
63941 __Pyx_WriteUnraisable(
"View.MemoryView.get_best_order", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
63944 __Pyx_TraceReturn(Py_None, 1);
63956 static void _copy_strided_to_strided(
char *__pyx_v_src_data, Py_ssize_t *__pyx_v_src_strides,
char *__pyx_v_dst_data, Py_ssize_t *__pyx_v_dst_strides, Py_ssize_t *__pyx_v_src_shape, Py_ssize_t *__pyx_v_dst_shape,
int __pyx_v_ndim,
size_t __pyx_v_itemsize) {
63957 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
63958 CYTHON_UNUSED Py_ssize_t __pyx_v_src_extent;
63959 Py_ssize_t __pyx_v_dst_extent;
63960 Py_ssize_t __pyx_v_src_stride;
63961 Py_ssize_t __pyx_v_dst_stride;
63965 Py_ssize_t __pyx_t_4;
63966 Py_ssize_t __pyx_t_5;
63967 Py_ssize_t __pyx_t_6;
63976 __pyx_v_src_extent = (__pyx_v_src_shape[0]);
63985 __pyx_v_dst_extent = (__pyx_v_dst_shape[0]);
63994 __pyx_v_src_stride = (__pyx_v_src_strides[0]);
64003 __pyx_v_dst_stride = (__pyx_v_dst_strides[0]);
64012 __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
64022 __pyx_t_2 = ((__pyx_v_src_stride > 0) != 0);
64025 __pyx_t_1 = __pyx_t_2;
64026 goto __pyx_L5_bool_binop_done;
64028 __pyx_t_2 = ((__pyx_v_dst_stride > 0) != 0);
64031 __pyx_t_1 = __pyx_t_2;
64032 goto __pyx_L5_bool_binop_done;
64042 __pyx_t_2 = (((size_t)__pyx_v_src_stride) == __pyx_v_itemsize);
64044 __pyx_t_2 = (__pyx_v_itemsize == ((size_t)__pyx_v_dst_stride));
64046 __pyx_t_3 = (__pyx_t_2 != 0);
64047 __pyx_t_1 = __pyx_t_3;
64048 __pyx_L5_bool_binop_done:;
64066 (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, (__pyx_v_itemsize * __pyx_v_dst_extent)));
64086 __pyx_t_4 = __pyx_v_dst_extent;
64087 __pyx_t_5 = __pyx_t_4;
64088 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
64089 __pyx_v_i = __pyx_t_6;
64098 (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, __pyx_v_itemsize));
64107 __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);
64116 __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
64139 __pyx_t_4 = __pyx_v_dst_extent;
64140 __pyx_t_5 = __pyx_t_4;
64141 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
64142 __pyx_v_i = __pyx_t_6;
64151 _copy_strided_to_strided(__pyx_v_src_data, (__pyx_v_src_strides + 1), __pyx_v_dst_data, (__pyx_v_dst_strides + 1), (__pyx_v_src_shape + 1), (__pyx_v_dst_shape + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize);
64160 __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);
64169 __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
64193 static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_ndim,
size_t __pyx_v_itemsize) {
64194 __Pyx_TraceDeclarations
64195 int __pyx_lineno = 0;
64196 const char *__pyx_filename = NULL;
64197 int __pyx_clineno = 0;
64198 __Pyx_TraceCall(
"copy_strided_to_strided", __pyx_f[1], 1170, 1, __PYX_ERR(1, 1170, __pyx_L1_error));
64207 _copy_strided_to_strided(__pyx_v_src->data, __pyx_v_src->strides, __pyx_v_dst->data, __pyx_v_dst->strides, __pyx_v_src->shape, __pyx_v_dst->shape, __pyx_v_ndim, __pyx_v_itemsize);
64220 __Pyx_WriteUnraisable(
"View.MemoryView.copy_strided_to_strided", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
64222 __Pyx_TraceReturn(Py_None, 1);
64233 static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_src,
int __pyx_v_ndim) {
64234 Py_ssize_t __pyx_v_shape;
64235 Py_ssize_t __pyx_v_size;
64236 Py_ssize_t __pyx_r;
64237 __Pyx_TraceDeclarations
64238 Py_ssize_t __pyx_t_1;
64239 Py_ssize_t *__pyx_t_2;
64240 Py_ssize_t *__pyx_t_3;
64241 Py_ssize_t *__pyx_t_4;
64242 int __pyx_lineno = 0;
64243 const char *__pyx_filename = NULL;
64244 int __pyx_clineno = 0;
64245 __Pyx_TraceCall(
"slice_get_size", __pyx_f[1], 1177, 1, __PYX_ERR(1, 1177, __pyx_L1_error));
64254 __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
64255 __pyx_v_size = __pyx_t_1;
64264 __pyx_t_3 = (__pyx_v_src->shape + __pyx_v_ndim);
64265 for (__pyx_t_4 = __pyx_v_src->shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
64266 __pyx_t_2 = __pyx_t_4;
64267 __pyx_v_shape = (__pyx_t_2[0]);
64276 __pyx_v_size = (__pyx_v_size * __pyx_v_shape);
64286 __pyx_r = __pyx_v_size;
64299 __Pyx_WriteUnraisable(
"View.MemoryView.slice_get_size", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
64302 __Pyx_TraceReturn(Py_None, 1);
64314 static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, Py_ssize_t __pyx_v_stride,
int __pyx_v_ndim,
char __pyx_v_order) {
64316 Py_ssize_t __pyx_r;
64317 __Pyx_TraceDeclarations
64322 int __pyx_lineno = 0;
64323 const char *__pyx_filename = NULL;
64324 int __pyx_clineno = 0;
64325 __Pyx_TraceCall(
"fill_contig_strides_array", __pyx_f[1], 1187, 1, __PYX_ERR(1, 1187, __pyx_L1_error));
64334 __pyx_t_1 = ((__pyx_v_order ==
'F') != 0);
64344 __pyx_t_2 = __pyx_v_ndim;
64345 __pyx_t_3 = __pyx_t_2;
64346 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
64347 __pyx_v_idx = __pyx_t_4;
64356 (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;
64365 __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
64386 for (__pyx_t_2 = (__pyx_v_ndim - 1); __pyx_t_2 > -1; __pyx_t_2-=1) {
64387 __pyx_v_idx = __pyx_t_2;
64396 (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;
64405 __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
64417 __pyx_r = __pyx_v_stride;
64430 __Pyx_WriteUnraisable(
"View.MemoryView.fill_contig_strides_array", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
64433 __Pyx_TraceReturn(Py_None, 1);
64445 static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_tmpslice,
char __pyx_v_order,
int __pyx_v_ndim) {
64447 void *__pyx_v_result;
64448 size_t __pyx_v_itemsize;
64449 size_t __pyx_v_size;
64451 __Pyx_TraceDeclarations
64452 Py_ssize_t __pyx_t_1;
64455 struct __pyx_memoryview_obj *__pyx_t_4;
64458 int __pyx_lineno = 0;
64459 const char *__pyx_filename = NULL;
64460 int __pyx_clineno = 0;
64461 __Pyx_TraceCall(
"copy_data_to_temp", __pyx_f[1], 1208, 1, __PYX_ERR(1, 1208, __pyx_L1_error));
64470 __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
64471 __pyx_v_itemsize = __pyx_t_1;
64480 __pyx_v_size = __pyx_memoryview_slice_get_size(__pyx_v_src, __pyx_v_ndim);
64489 __pyx_v_result = malloc(__pyx_v_size);
64498 __pyx_t_2 = ((!(__pyx_v_result != 0)) != 0);
64508 __pyx_t_3 = __pyx_memoryview_err(__pyx_builtin_MemoryError, NULL);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(1, 1224, __pyx_L1_error)
64526 __pyx_v_tmpslice->data = ((
char *)__pyx_v_result);
64535 __pyx_t_4 = __pyx_v_src->memview;
64536 __pyx_v_tmpslice->memview = __pyx_t_4;
64545 __pyx_t_3 = __pyx_v_ndim;
64546 __pyx_t_5 = __pyx_t_3;
64547 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
64548 __pyx_v_i = __pyx_t_6;
64557 (__pyx_v_tmpslice->shape[__pyx_v_i]) = (__pyx_v_src->shape[__pyx_v_i]);
64566 (__pyx_v_tmpslice->suboffsets[__pyx_v_i]) = -1
L;
64576 (void)(__pyx_fill_contig_strides_array((&(__pyx_v_tmpslice->shape[0])), (&(__pyx_v_tmpslice->strides[0])), __pyx_v_itemsize, __pyx_v_ndim, __pyx_v_order));
64585 __pyx_t_3 = __pyx_v_ndim;
64586 __pyx_t_5 = __pyx_t_3;
64587 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
64588 __pyx_v_i = __pyx_t_6;
64597 __pyx_t_2 = (((__pyx_v_tmpslice->shape[__pyx_v_i]) == 1) != 0);
64607 (__pyx_v_tmpslice->strides[__pyx_v_i]) = 0;
64626 __pyx_t_2 = (__pyx_memviewslice_is_contig((__pyx_v_src[0]), __pyx_v_order, __pyx_v_ndim) != 0);
64636 (void)(memcpy(__pyx_v_result, __pyx_v_src->data, __pyx_v_size));
64656 copy_strided_to_strided(__pyx_v_src, __pyx_v_tmpslice, __pyx_v_ndim, __pyx_v_itemsize);
64667 __pyx_r = __pyx_v_result;
64682 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
64684 __Pyx_AddTraceback(
"View.MemoryView.copy_data_to_temp", __pyx_clineno, __pyx_lineno, __pyx_filename);
64686 __Pyx_PyGILState_Release(__pyx_gilstate_save);
64691 __Pyx_TraceReturn(Py_None, 1);
64703 static int __pyx_memoryview_err_extents(
int __pyx_v_i, Py_ssize_t __pyx_v_extent1, Py_ssize_t __pyx_v_extent2) {
64705 __Pyx_TraceDeclarations
64706 __Pyx_RefNannyDeclarations
64707 PyObject *__pyx_t_1 = NULL;
64708 PyObject *__pyx_t_2 = NULL;
64709 PyObject *__pyx_t_3 = NULL;
64710 PyObject *__pyx_t_4 = NULL;
64711 int __pyx_lineno = 0;
64712 const char *__pyx_filename = NULL;
64713 int __pyx_clineno = 0;
64715 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
64717 __Pyx_RefNannySetupContext(
"_err_extents", 0);
64718 __Pyx_TraceCall(
"_err_extents", __pyx_f[1], 1251, 0, __PYX_ERR(1, 1251, __pyx_L1_error));
64727 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_i);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1254, __pyx_L1_error)
64728 __Pyx_GOTREF(__pyx_t_1);
64729 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_extent1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1254, __pyx_L1_error)
64730 __Pyx_GOTREF(__pyx_t_2);
64731 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_extent2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1254, __pyx_L1_error)
64732 __Pyx_GOTREF(__pyx_t_3);
64733 __pyx_t_4 = PyTuple_New(3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1254, __pyx_L1_error)
64734 __Pyx_GOTREF(__pyx_t_4);
64735 __Pyx_GIVEREF(__pyx_t_1);
64736 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
64737 __Pyx_GIVEREF(__pyx_t_2);
64738 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
64739 __Pyx_GIVEREF(__pyx_t_3);
64740 PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
64752 __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1253, __pyx_L1_error)
64753 __Pyx_GOTREF(__pyx_t_3);
64754 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
64755 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1253, __pyx_L1_error)
64756 __Pyx_GOTREF(__pyx_t_4);
64757 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
64758 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
64759 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
64760 __PYX_ERR(1, 1253, __pyx_L1_error)
64772 __Pyx_XDECREF(__pyx_t_1);
64773 __Pyx_XDECREF(__pyx_t_2);
64774 __Pyx_XDECREF(__pyx_t_3);
64775 __Pyx_XDECREF(__pyx_t_4);
64776 __Pyx_AddTraceback(
"View.MemoryView._err_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
64778 __Pyx_TraceReturn(Py_None, 0);
64779 __Pyx_RefNannyFinishContext();
64781 __Pyx_PyGILState_Release(__pyx_gilstate_save);
64794 static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error,
char *__pyx_v_msg,
int __pyx_v_dim) {
64796 __Pyx_TraceDeclarations
64797 __Pyx_RefNannyDeclarations
64798 PyObject *__pyx_t_1 = NULL;
64799 PyObject *__pyx_t_2 = NULL;
64800 PyObject *__pyx_t_3 = NULL;
64801 PyObject *__pyx_t_4 = NULL;
64802 int __pyx_lineno = 0;
64803 const char *__pyx_filename = NULL;
64804 int __pyx_clineno = 0;
64806 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
64808 __Pyx_RefNannySetupContext(
"_err_dim", 0);
64809 __Pyx_TraceCall(
"_err_dim", __pyx_f[1], 1257, 0, __PYX_ERR(1, 1257, __pyx_L1_error));
64810 __Pyx_INCREF(__pyx_v_error);
64819 __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1258, __pyx_L1_error)
64820 __Pyx_GOTREF(__pyx_t_2);
64821 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1258, __pyx_L1_error)
64822 __Pyx_GOTREF(__pyx_t_3);
64823 __pyx_t_4 = PyUnicode_Format(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1258, __pyx_L1_error)
64824 __Pyx_GOTREF(__pyx_t_4);
64825 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
64826 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
64827 __Pyx_INCREF(__pyx_v_error);
64828 __pyx_t_3 = __pyx_v_error; __pyx_t_2 = NULL;
64829 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
64830 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
64831 if (likely(__pyx_t_2)) {
64832 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
64833 __Pyx_INCREF(__pyx_t_2);
64834 __Pyx_INCREF(
function);
64835 __Pyx_DECREF_SET(__pyx_t_3,
function);
64838 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
64839 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
64840 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
64841 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1258, __pyx_L1_error)
64842 __Pyx_GOTREF(__pyx_t_1);
64843 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
64844 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
64845 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
64846 __PYX_ERR(1, 1258, __pyx_L1_error)
64858 __Pyx_XDECREF(__pyx_t_1);
64859 __Pyx_XDECREF(__pyx_t_2);
64860 __Pyx_XDECREF(__pyx_t_3);
64861 __Pyx_XDECREF(__pyx_t_4);
64862 __Pyx_AddTraceback(
"View.MemoryView._err_dim", __pyx_clineno, __pyx_lineno, __pyx_filename);
64864 __Pyx_XDECREF(__pyx_v_error);
64865 __Pyx_TraceReturn(Py_None, 0);
64866 __Pyx_RefNannyFinishContext();
64868 __Pyx_PyGILState_Release(__pyx_gilstate_save);
64881 static int __pyx_memoryview_err(PyObject *__pyx_v_error,
char *__pyx_v_msg) {
64883 __Pyx_TraceDeclarations
64884 __Pyx_RefNannyDeclarations
64886 PyObject *__pyx_t_2 = NULL;
64887 PyObject *__pyx_t_3 = NULL;
64888 PyObject *__pyx_t_4 = NULL;
64889 PyObject *__pyx_t_5 = NULL;
64890 int __pyx_lineno = 0;
64891 const char *__pyx_filename = NULL;
64892 int __pyx_clineno = 0;
64894 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
64896 __Pyx_RefNannySetupContext(
"_err", 0);
64897 __Pyx_TraceCall(
"_err", __pyx_f[1], 1261, 0, __PYX_ERR(1, 1261, __pyx_L1_error));
64898 __Pyx_INCREF(__pyx_v_error);
64907 __pyx_t_1 = ((__pyx_v_msg != NULL) != 0);
64908 if (unlikely(__pyx_t_1)) {
64917 __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1263, __pyx_L1_error)
64918 __Pyx_GOTREF(__pyx_t_3);
64919 __Pyx_INCREF(__pyx_v_error);
64920 __pyx_t_4 = __pyx_v_error; __pyx_t_5 = NULL;
64921 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
64922 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
64923 if (likely(__pyx_t_5)) {
64924 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
64925 __Pyx_INCREF(__pyx_t_5);
64926 __Pyx_INCREF(
function);
64927 __Pyx_DECREF_SET(__pyx_t_4,
function);
64930 __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
64931 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
64932 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
64933 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1263, __pyx_L1_error)
64934 __Pyx_GOTREF(__pyx_t_2);
64935 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
64936 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
64937 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
64938 __PYX_ERR(1, 1263, __pyx_L1_error)
64957 __Pyx_Raise(__pyx_v_error, 0, 0, 0);
64958 __PYX_ERR(1, 1265, __pyx_L1_error)
64971 __Pyx_XDECREF(__pyx_t_2);
64972 __Pyx_XDECREF(__pyx_t_3);
64973 __Pyx_XDECREF(__pyx_t_4);
64974 __Pyx_XDECREF(__pyx_t_5);
64975 __Pyx_AddTraceback(
"View.MemoryView._err", __pyx_clineno, __pyx_lineno, __pyx_filename);
64977 __Pyx_XDECREF(__pyx_v_error);
64978 __Pyx_TraceReturn(Py_None, 0);
64979 __Pyx_RefNannyFinishContext();
64981 __Pyx_PyGILState_Release(__pyx_gilstate_save);
64994 static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_memviewslice __pyx_v_dst,
int __pyx_v_src_ndim,
int __pyx_v_dst_ndim,
int __pyx_v_dtype_is_object) {
64995 void *__pyx_v_tmpdata;
64996 size_t __pyx_v_itemsize;
64998 char __pyx_v_order;
64999 int __pyx_v_broadcasting;
65000 int __pyx_v_direct_copy;
65001 __Pyx_memviewslice __pyx_v_tmp;
65004 __Pyx_TraceDeclarations
65005 Py_ssize_t __pyx_t_1;
65013 int __pyx_lineno = 0;
65014 const char *__pyx_filename = NULL;
65015 int __pyx_clineno = 0;
65016 __Pyx_TraceCall(
"memoryview_copy_contents", __pyx_f[1], 1268, 1, __PYX_ERR(1, 1268, __pyx_L1_error));
65025 __pyx_v_tmpdata = NULL;
65034 __pyx_t_1 = __pyx_v_src.memview->view.itemsize;
65035 __pyx_v_itemsize = __pyx_t_1;
65044 __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_src), __pyx_v_src_ndim);
65053 __pyx_v_broadcasting = 0;
65062 __pyx_v_direct_copy = 0;
65071 __pyx_t_2 = ((__pyx_v_src_ndim < __pyx_v_dst_ndim) != 0);
65081 __pyx_memoryview_broadcast_leading((&__pyx_v_src), __pyx_v_src_ndim, __pyx_v_dst_ndim);
65100 __pyx_t_2 = ((__pyx_v_dst_ndim < __pyx_v_src_ndim) != 0);
65110 __pyx_memoryview_broadcast_leading((&__pyx_v_dst), __pyx_v_dst_ndim, __pyx_v_src_ndim);
65129 __pyx_t_3 = __pyx_v_dst_ndim;
65130 __pyx_t_4 = __pyx_v_src_ndim;
65131 if (((__pyx_t_3 > __pyx_t_4) != 0)) {
65132 __pyx_t_5 = __pyx_t_3;
65134 __pyx_t_5 = __pyx_t_4;
65136 __pyx_v_ndim = __pyx_t_5;
65145 __pyx_t_5 = __pyx_v_ndim;
65146 __pyx_t_3 = __pyx_t_5;
65147 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
65148 __pyx_v_i = __pyx_t_4;
65157 __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) != (__pyx_v_dst.shape[__pyx_v_i])) != 0);
65167 __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) == 1) != 0);
65177 __pyx_v_broadcasting = 1;
65186 (__pyx_v_src.strides[__pyx_v_i]) = 0;
65206 __pyx_t_6 = __pyx_memoryview_err_extents(__pyx_v_i, (__pyx_v_dst.shape[__pyx_v_i]), (__pyx_v_src.shape[__pyx_v_i]));
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(1, 1297, __pyx_L1_error)
65226 __pyx_t_2 = (((__pyx_v_src.suboffsets[__pyx_v_i]) >= 0) != 0);
65236 __pyx_t_6 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((
char *)
"Dimension %d is not direct"), __pyx_v_i);
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(1, 1300, __pyx_L1_error)
65255 __pyx_t_2 = (__pyx_slices_overlap((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize) != 0);
65265 __pyx_t_2 = ((!(__pyx_memviewslice_is_contig(__pyx_v_src, __pyx_v_order, __pyx_v_ndim) != 0)) != 0);
65275 __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim);
65293 __pyx_t_7 = __pyx_memoryview_copy_data_to_temp((&__pyx_v_src), (&__pyx_v_tmp), __pyx_v_order, __pyx_v_ndim);
if (unlikely(__pyx_t_7 == ((
void *)NULL))) __PYX_ERR(1, 1307, __pyx_L1_error)
65294 __pyx_v_tmpdata = __pyx_t_7;
65303 __pyx_v_src = __pyx_v_tmp;
65321 __pyx_t_2 = ((!(__pyx_v_broadcasting != 0)) != 0);
65331 __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src,
'C', __pyx_v_ndim) != 0);
65341 __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst,
'C', __pyx_v_ndim);
65360 __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src,
'F', __pyx_v_ndim) != 0);
65370 __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst,
'F', __pyx_v_ndim);
65389 __pyx_t_2 = (__pyx_v_direct_copy != 0);
65399 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
65408 (void)(memcpy(__pyx_v_dst.data, __pyx_v_src.data, __pyx_memoryview_slice_get_size((&__pyx_v_src), __pyx_v_ndim)));
65417 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
65426 free(__pyx_v_tmpdata);
65463 __pyx_t_2 = (__pyx_v_order ==
'F');
65465 __pyx_t_2 = (
'F' == __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim));
65467 __pyx_t_8 = (__pyx_t_2 != 0);
65477 __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_src));
if (unlikely(__pyx_t_5 == ((
int)0))) __PYX_ERR(1, 1329, __pyx_L1_error)
65486 __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_dst));
if (unlikely(__pyx_t_5 == ((
int)0))) __PYX_ERR(1, 1330, __pyx_L1_error)
65504 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
65513 copy_strided_to_strided((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize);
65522 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
65531 free(__pyx_v_tmpdata);
65555 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
65557 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy_contents", __pyx_clineno, __pyx_lineno, __pyx_filename);
65559 __Pyx_PyGILState_Release(__pyx_gilstate_save);
65564 __Pyx_TraceReturn(Py_None, 1);
65576 static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslice,
int __pyx_v_ndim,
int __pyx_v_ndim_other) {
65578 int __pyx_v_offset;
65579 __Pyx_TraceDeclarations
65583 int __pyx_lineno = 0;
65584 const char *__pyx_filename = NULL;
65585 int __pyx_clineno = 0;
65586 __Pyx_TraceCall(
"broadcast_leading", __pyx_f[1], 1340, 1, __PYX_ERR(1, 1340, __pyx_L1_error));
65595 __pyx_v_offset = (__pyx_v_ndim_other - __pyx_v_ndim);
65604 for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
65605 __pyx_v_i = __pyx_t_1;
65614 (__pyx_v_mslice->shape[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->shape[__pyx_v_i]);
65623 (__pyx_v_mslice->strides[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->strides[__pyx_v_i]);
65632 (__pyx_v_mslice->suboffsets[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->suboffsets[__pyx_v_i]);
65642 __pyx_t_1 = __pyx_v_offset;
65643 __pyx_t_2 = __pyx_t_1;
65644 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
65645 __pyx_v_i = __pyx_t_3;
65654 (__pyx_v_mslice->shape[__pyx_v_i]) = 1;
65663 (__pyx_v_mslice->strides[__pyx_v_i]) = (__pyx_v_mslice->strides[0]);
65672 (__pyx_v_mslice->suboffsets[__pyx_v_i]) = -1
L;
65686 __Pyx_WriteUnraisable(
"View.MemoryView.broadcast_leading", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
65688 __Pyx_TraceReturn(Py_None, 1);
65699 static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_dtype_is_object,
int __pyx_v_ndim,
int __pyx_v_inc) {
65700 __Pyx_TraceDeclarations
65702 int __pyx_lineno = 0;
65703 const char *__pyx_filename = NULL;
65704 int __pyx_clineno = 0;
65705 __Pyx_TraceCall(
"refcount_copying", __pyx_f[1], 1362, 1, __PYX_ERR(1, 1362, __pyx_L1_error));
65714 __pyx_t_1 = (__pyx_v_dtype_is_object != 0);
65724 __pyx_memoryview_refcount_objects_in_slice_with_gil(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_inc);
65746 __Pyx_WriteUnraisable(
"View.MemoryView.refcount_copying", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
65748 __Pyx_TraceReturn(Py_None, 1);
65759 static void __pyx_memoryview_refcount_objects_in_slice_with_gil(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
int __pyx_v_inc) {
65760 __Pyx_TraceDeclarations
65761 __Pyx_RefNannyDeclarations
65762 int __pyx_lineno = 0;
65763 const char *__pyx_filename = NULL;
65764 int __pyx_clineno = 0;
65766 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
65768 __Pyx_RefNannySetupContext(
"refcount_objects_in_slice_with_gil", 0);
65769 __Pyx_TraceCall(
"refcount_objects_in_slice_with_gil", __pyx_f[1], 1371, 0, __PYX_ERR(1, 1371, __pyx_L1_error));
65778 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, __pyx_v_shape, __pyx_v_strides, __pyx_v_ndim, __pyx_v_inc);
65791 __Pyx_WriteUnraisable(
"View.MemoryView.refcount_objects_in_slice_with_gil", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
65793 __Pyx_TraceReturn(Py_None, 0);
65794 __Pyx_RefNannyFinishContext();
65796 __Pyx_PyGILState_Release(__pyx_gilstate_save);
65808 static void __pyx_memoryview_refcount_objects_in_slice(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
int __pyx_v_inc) {
65809 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
65810 __Pyx_TraceDeclarations
65811 __Pyx_RefNannyDeclarations
65812 Py_ssize_t __pyx_t_1;
65813 Py_ssize_t __pyx_t_2;
65814 Py_ssize_t __pyx_t_3;
65816 int __pyx_lineno = 0;
65817 const char *__pyx_filename = NULL;
65818 int __pyx_clineno = 0;
65819 __Pyx_RefNannySetupContext(
"refcount_objects_in_slice", 0);
65820 __Pyx_TraceCall(
"refcount_objects_in_slice", __pyx_f[1], 1377, 0, __PYX_ERR(1, 1377, __pyx_L1_error));
65829 __pyx_t_1 = (__pyx_v_shape[0]);
65830 __pyx_t_2 = __pyx_t_1;
65831 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
65832 __pyx_v_i = __pyx_t_3;
65841 __pyx_t_4 = ((__pyx_v_ndim == 1) != 0);
65851 __pyx_t_4 = (__pyx_v_inc != 0);
65861 Py_INCREF((((PyObject **)__pyx_v_data)[0]));
65881 Py_DECREF((((PyObject **)__pyx_v_data)[0]));
65911 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_inc);
65922 __pyx_v_data = (__pyx_v_data + (__pyx_v_strides[0]));
65936 __Pyx_WriteUnraisable(
"View.MemoryView.refcount_objects_in_slice", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
65938 __Pyx_TraceReturn(Py_None, 0);
65939 __Pyx_RefNannyFinishContext();
65950 static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_ndim,
size_t __pyx_v_itemsize,
void *__pyx_v_item,
int __pyx_v_dtype_is_object) {
65951 __Pyx_TraceDeclarations
65952 int __pyx_lineno = 0;
65953 const char *__pyx_filename = NULL;
65954 int __pyx_clineno = 0;
65955 __Pyx_TraceCall(
"slice_assign_scalar", __pyx_f[1], 1397, 1, __PYX_ERR(1, 1397, __pyx_L1_error));
65964 __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
65973 __pyx_memoryview__slice_assign_scalar(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_itemsize, __pyx_v_item);
65982 __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
65995 __Pyx_WriteUnraisable(
"View.MemoryView.slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
65997 __Pyx_TraceReturn(Py_None, 1);
66008 static void __pyx_memoryview__slice_assign_scalar(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
size_t __pyx_v_itemsize,
void *__pyx_v_item) {
66009 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
66010 Py_ssize_t __pyx_v_stride;
66011 Py_ssize_t __pyx_v_extent;
66012 __Pyx_TraceDeclarations
66014 Py_ssize_t __pyx_t_2;
66015 Py_ssize_t __pyx_t_3;
66016 Py_ssize_t __pyx_t_4;
66017 int __pyx_lineno = 0;
66018 const char *__pyx_filename = NULL;
66019 int __pyx_clineno = 0;
66020 __Pyx_TraceCall(
"_slice_assign_scalar", __pyx_f[1], 1407, 1, __PYX_ERR(1, 1407, __pyx_L1_error));
66029 __pyx_v_stride = (__pyx_v_strides[0]);
66038 __pyx_v_extent = (__pyx_v_shape[0]);
66047 __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
66057 __pyx_t_2 = __pyx_v_extent;
66058 __pyx_t_3 = __pyx_t_2;
66059 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
66060 __pyx_v_i = __pyx_t_4;
66069 (void)(memcpy(__pyx_v_data, __pyx_v_item, __pyx_v_itemsize));
66078 __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
66099 __pyx_t_2 = __pyx_v_extent;
66100 __pyx_t_3 = __pyx_t_2;
66101 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
66102 __pyx_v_i = __pyx_t_4;
66111 __pyx_memoryview__slice_assign_scalar(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize, __pyx_v_item);
66120 __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
66136 __Pyx_WriteUnraisable(
"View.MemoryView._slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
66138 __Pyx_TraceReturn(Py_None, 1);
66148 static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
66149 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum = {
"__pyx_unpickle_Enum", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum, METH_VARARGS|METH_KEYWORDS, 0};
66150 static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
66151 PyObject *__pyx_v___pyx_type = 0;
66152 long __pyx_v___pyx_checksum;
66153 PyObject *__pyx_v___pyx_state = 0;
66154 int __pyx_lineno = 0;
66155 const char *__pyx_filename = NULL;
66156 int __pyx_clineno = 0;
66157 PyObject *__pyx_r = 0;
66158 __Pyx_RefNannyDeclarations
66159 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum (wrapper)", 0);
66161 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
66162 PyObject* values[3] = {0,0,0};
66163 if (unlikely(__pyx_kwds)) {
66164 Py_ssize_t kw_args;
66165 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
66166 switch (pos_args) {
66167 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
66168 CYTHON_FALLTHROUGH;
66169 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
66170 CYTHON_FALLTHROUGH;
66171 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
66172 CYTHON_FALLTHROUGH;
66174 default:
goto __pyx_L5_argtuple_error;
66176 kw_args = PyDict_Size(__pyx_kwds);
66177 switch (pos_args) {
66179 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
66180 else goto __pyx_L5_argtuple_error;
66181 CYTHON_FALLTHROUGH;
66183 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
66185 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, 1); __PYX_ERR(1, 1, __pyx_L3_error)
66187 CYTHON_FALLTHROUGH;
66189 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
66191 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, 2); __PYX_ERR(1, 1, __pyx_L3_error)
66194 if (unlikely(kw_args > 0)) {
66195 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__pyx_unpickle_Enum") < 0)) __PYX_ERR(1, 1, __pyx_L3_error)
66197 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
66198 goto __pyx_L5_argtuple_error;
66200 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
66201 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
66202 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
66204 __pyx_v___pyx_type = values[0];
66205 __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]);
if (unlikely((__pyx_v___pyx_checksum == (
long)-1) && PyErr_Occurred())) __PYX_ERR(1, 1, __pyx_L3_error)
66206 __pyx_v___pyx_state = values[2];
66208 goto __pyx_L4_argument_unpacking_done;
66209 __pyx_L5_argtuple_error:;
66210 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 1, __pyx_L3_error)
66212 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
66213 __Pyx_RefNannyFinishContext();
66215 __pyx_L4_argument_unpacking_done:;
66216 __pyx_r = __pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);
66219 __Pyx_RefNannyFinishContext();
66223 static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
66224 PyObject *__pyx_v___pyx_PickleError = 0;
66225 PyObject *__pyx_v___pyx_result = 0;
66226 PyObject *__pyx_r = NULL;
66227 __Pyx_TraceDeclarations
66228 __Pyx_RefNannyDeclarations
66229 PyObject *__pyx_t_1 = NULL;
66232 PyObject *__pyx_t_4 = NULL;
66233 PyObject *__pyx_t_5 = NULL;
66234 PyObject *__pyx_t_6 = NULL;
66235 int __pyx_lineno = 0;
66236 const char *__pyx_filename = NULL;
66237 int __pyx_clineno = 0;
66238 __Pyx_TraceFrameInit(__pyx_codeobj__163)
66239 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum", 0);
66240 __Pyx_TraceCall(
"__pyx_unpickle_Enum", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
66249 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
66250 __Pyx_GOTREF(__pyx_t_1);
66251 __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_tuple__164, Py_NE));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 4, __pyx_L1_error)
66252 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66253 __pyx_t_3 = (__pyx_t_2 != 0);
66263 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
66264 __Pyx_GOTREF(__pyx_t_1);
66265 __Pyx_INCREF(__pyx_n_s_PickleError);
66266 __Pyx_GIVEREF(__pyx_n_s_PickleError);
66267 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PickleError);
66268 __pyx_t_4 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_1, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 5, __pyx_L1_error)
66269 __Pyx_GOTREF(__pyx_t_4);
66270 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66271 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_PickleError);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 5, __pyx_L1_error)
66272 __Pyx_GOTREF(__pyx_t_1);
66273 __Pyx_INCREF(__pyx_t_1);
66274 __pyx_v___pyx_PickleError = __pyx_t_1;
66275 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66276 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66285 __pyx_t_1 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 6, __pyx_L1_error)
66286 __Pyx_GOTREF(__pyx_t_1);
66287 __pyx_t_5 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4, __pyx_t_1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 6, __pyx_L1_error)
66288 __Pyx_GOTREF(__pyx_t_5);
66289 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66290 __Pyx_INCREF(__pyx_v___pyx_PickleError);
66291 __pyx_t_1 = __pyx_v___pyx_PickleError; __pyx_t_6 = NULL;
66292 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
66293 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
66294 if (likely(__pyx_t_6)) {
66295 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
66296 __Pyx_INCREF(__pyx_t_6);
66297 __Pyx_INCREF(
function);
66298 __Pyx_DECREF_SET(__pyx_t_1,
function);
66301 __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
66302 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
66303 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
66304 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L1_error)
66305 __Pyx_GOTREF(__pyx_t_4);
66306 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66307 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
66308 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66309 __PYX_ERR(1, 6, __pyx_L1_error)
66327 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_MemviewEnum_type), __pyx_n_s_new);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
66328 __Pyx_GOTREF(__pyx_t_1);
66330 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
66331 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
66332 if (likely(__pyx_t_5)) {
66333 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
66334 __Pyx_INCREF(__pyx_t_5);
66335 __Pyx_INCREF(
function);
66336 __Pyx_DECREF_SET(__pyx_t_1,
function);
66339 __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v___pyx_type);
66340 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
66341 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 7, __pyx_L1_error)
66342 __Pyx_GOTREF(__pyx_t_4);
66343 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66344 __pyx_v___pyx_result = __pyx_t_4;
66354 __pyx_t_3 = (__pyx_v___pyx_state != Py_None);
66355 __pyx_t_2 = (__pyx_t_3 != 0);
66365 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(1, 9, __pyx_L1_error)
66366 __pyx_t_4 = __pyx_unpickle_Enum__set_state(((
struct __pyx_MemviewEnum_obj *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 9, __pyx_L1_error)
66367 __Pyx_GOTREF(__pyx_t_4);
66368 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66386 __Pyx_XDECREF(__pyx_r);
66387 __Pyx_INCREF(__pyx_v___pyx_result);
66388 __pyx_r = __pyx_v___pyx_result;
66399 __Pyx_XDECREF(__pyx_t_1);
66400 __Pyx_XDECREF(__pyx_t_4);
66401 __Pyx_XDECREF(__pyx_t_5);
66402 __Pyx_XDECREF(__pyx_t_6);
66403 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
66406 __Pyx_XDECREF(__pyx_v___pyx_PickleError);
66407 __Pyx_XDECREF(__pyx_v___pyx_result);
66408 __Pyx_XGIVEREF(__pyx_r);
66409 __Pyx_TraceReturn(__pyx_r, 0);
66410 __Pyx_RefNannyFinishContext();
66422 static PyObject *__pyx_unpickle_Enum__set_state(
struct __pyx_MemviewEnum_obj *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
66423 PyObject *__pyx_r = NULL;
66424 __Pyx_TraceDeclarations
66425 __Pyx_RefNannyDeclarations
66426 PyObject *__pyx_t_1 = NULL;
66428 Py_ssize_t __pyx_t_3;
66431 PyObject *__pyx_t_6 = NULL;
66432 PyObject *__pyx_t_7 = NULL;
66433 PyObject *__pyx_t_8 = NULL;
66434 int __pyx_lineno = 0;
66435 const char *__pyx_filename = NULL;
66436 int __pyx_clineno = 0;
66437 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum__set_state", 0);
66438 __Pyx_TraceCall(
"__pyx_unpickle_Enum__set_state", __pyx_f[1], 11, 0, __PYX_ERR(1, 11, __pyx_L1_error));
66447 if (unlikely(__pyx_v___pyx_state == Py_None)) {
66448 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
66449 __PYX_ERR(1, 12, __pyx_L1_error)
66451 __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error)
66452 __Pyx_GOTREF(__pyx_t_1);
66453 __Pyx_GIVEREF(__pyx_t_1);
66454 __Pyx_GOTREF(__pyx_v___pyx_result->name);
66455 __Pyx_DECREF(__pyx_v___pyx_result->name);
66456 __pyx_v___pyx_result->name = __pyx_t_1;
66465 if (unlikely(__pyx_v___pyx_state == Py_None)) {
66466 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
66467 __PYX_ERR(1, 13, __pyx_L1_error)
66469 __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state);
if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
66470 __pyx_t_4 = ((__pyx_t_3 > 1) != 0);
66473 __pyx_t_2 = __pyx_t_4;
66474 goto __pyx_L4_bool_binop_done;
66476 __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(1, 13, __pyx_L1_error)
66477 __pyx_t_5 = (__pyx_t_4 != 0);
66478 __pyx_t_2 = __pyx_t_5;
66479 __pyx_L4_bool_binop_done:;
66487 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
66488 __Pyx_GOTREF(__pyx_t_6);
66489 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 14, __pyx_L1_error)
66490 __Pyx_GOTREF(__pyx_t_7);
66491 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
66492 if (unlikely(__pyx_v___pyx_state == Py_None)) {
66493 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
66494 __PYX_ERR(1, 14, __pyx_L1_error)
66496 __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 0);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 14, __pyx_L1_error)
66497 __Pyx_GOTREF(__pyx_t_6);
66499 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
66500 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
66501 if (likely(__pyx_t_8)) {
66502 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
66503 __Pyx_INCREF(__pyx_t_8);
66504 __Pyx_INCREF(
function);
66505 __Pyx_DECREF_SET(__pyx_t_7,
function);
66508 __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6);
66509 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
66510 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
66511 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 14, __pyx_L1_error)
66512 __Pyx_GOTREF(__pyx_t_1);
66513 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
66514 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
66533 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
66536 __Pyx_XDECREF(__pyx_t_1);
66537 __Pyx_XDECREF(__pyx_t_6);
66538 __Pyx_XDECREF(__pyx_t_7);
66539 __Pyx_XDECREF(__pyx_t_8);
66540 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
66543 __Pyx_XGIVEREF(__pyx_r);
66544 __Pyx_TraceReturn(__pyx_r, 0);
66545 __Pyx_RefNannyFinishContext();
66557 static PyObject *__pyx_format_from_typeinfo(__Pyx_TypeInfo *__pyx_v_type) {
66558 __Pyx_StructField *__pyx_v_field;
66559 struct __pyx_typeinfo_string __pyx_v_fmt;
66560 PyObject *__pyx_v_part = 0;
66561 PyObject *__pyx_v_result = 0;
66562 PyObject *__pyx_v_alignment = NULL;
66563 PyObject *__pyx_v_parts = NULL;
66564 PyObject *__pyx_v_extents = NULL;
66566 PyObject *__pyx_r = NULL;
66567 __Pyx_TraceDeclarations
66568 __Pyx_RefNannyDeclarations
66570 PyObject *__pyx_t_2 = NULL;
66571 __Pyx_StructField *__pyx_t_3;
66572 PyObject *__pyx_t_4 = NULL;
66573 PyObject *__pyx_t_5 = NULL;
66578 int __pyx_lineno = 0;
66579 const char *__pyx_filename = NULL;
66580 int __pyx_clineno = 0;
66581 __Pyx_RefNannySetupContext(
"format_from_typeinfo", 0);
66582 __Pyx_TraceCall(
"format_from_typeinfo", __pyx_f[1], 1463, 0, __PYX_ERR(1, 1463, __pyx_L1_error));
66591 __pyx_t_1 = ((__pyx_v_type->typegroup ==
'S') != 0);
66601 #ifndef CYTHON_WITHOUT_ASSERTIONS
66602 if (unlikely(!Py_OptimizeFlag)) {
66603 if (unlikely(!((__pyx_v_type->fields != NULL) != 0))) {
66604 PyErr_SetNone(PyExc_AssertionError);
66605 __PYX_ERR(1, 1469, __pyx_L1_error)
66617 #ifndef CYTHON_WITHOUT_ASSERTIONS
66618 if (unlikely(!Py_OptimizeFlag)) {
66619 if (unlikely(!((__pyx_v_type->fields->type != NULL) != 0))) {
66620 PyErr_SetNone(PyExc_AssertionError);
66621 __PYX_ERR(1, 1470, __pyx_L1_error)
66633 __pyx_t_1 = ((__pyx_v_type->flags & __PYX_BUF_FLAGS_PACKED_STRUCT) != 0);
66643 __Pyx_INCREF(__pyx_kp_b__165);
66644 __pyx_v_alignment = __pyx_kp_b__165;
66664 __Pyx_INCREF(__pyx_kp_b__166);
66665 __pyx_v_alignment = __pyx_kp_b__166;
66676 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1477, __pyx_L1_error)
66677 __Pyx_GOTREF(__pyx_t_2);
66678 __Pyx_INCREF(__pyx_kp_b_T);
66679 __Pyx_GIVEREF(__pyx_kp_b_T);
66680 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_kp_b_T);
66681 __pyx_v_parts = ((PyObject*)__pyx_t_2);
66691 __pyx_t_3 = __pyx_v_type->fields;
66692 __pyx_v_field = __pyx_t_3;
66702 __pyx_t_1 = (__pyx_v_field->type != 0);
66703 if (!__pyx_t_1)
break;
66712 __pyx_t_2 = __pyx_format_from_typeinfo(__pyx_v_field->type);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1481, __pyx_L1_error)
66713 __Pyx_GOTREF(__pyx_t_2);
66714 __Pyx_XDECREF_SET(__pyx_v_part, ((PyObject*)__pyx_t_2));
66724 __pyx_t_2 = PyNumber_Add(__pyx_v_part, __pyx_kp_b__167);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1482, __pyx_L1_error)
66725 __Pyx_GOTREF(__pyx_t_2);
66726 __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_field->name);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1482, __pyx_L1_error)
66727 __Pyx_GOTREF(__pyx_t_4);
66728 __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_t_4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1482, __pyx_L1_error)
66729 __Pyx_GOTREF(__pyx_t_5);
66730 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
66731 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66732 __pyx_t_4 = PyNumber_Add(__pyx_t_5, __pyx_kp_b__167);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1482, __pyx_L1_error)
66733 __Pyx_GOTREF(__pyx_t_4);
66734 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
66735 __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_parts, __pyx_t_4);
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(1, 1482, __pyx_L1_error)
66736 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66745 __pyx_v_field = (__pyx_v_field + 1);
66755 __pyx_t_4 = __Pyx_PyBytes_Join(__pyx_v_alignment, __pyx_v_parts);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1485, __pyx_L1_error)
66756 __Pyx_GOTREF(__pyx_t_4);
66757 __pyx_t_5 = PyNumber_Add(__pyx_t_4, __pyx_kp_b__168);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1485, __pyx_L1_error)
66758 __Pyx_GOTREF(__pyx_t_5);
66759 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66760 if (!(likely(PyBytes_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(1, 1485, __pyx_L1_error)
66761 __pyx_v_result = ((PyObject*)__pyx_t_5);
66782 __pyx_v_fmt = __Pyx_TypeInfoToFormat(__pyx_v_type);
66791 __pyx_t_1 = ((__pyx_v_type->arraysize[0]) != 0);
66801 __pyx_t_5 = PyList_New(0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1489, __pyx_L1_error)
66802 __Pyx_GOTREF(__pyx_t_5);
66803 __pyx_t_7 = __pyx_v_type->ndim;
66804 __pyx_t_8 = __pyx_t_7;
66805 for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
66806 __pyx_v_i = __pyx_t_9;
66807 __pyx_t_4 = __Pyx_PyInt_FromSize_t((__pyx_v_type->arraysize[__pyx_v_i]));
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1489, __pyx_L1_error)
66808 __Pyx_GOTREF(__pyx_t_4);
66809 __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1489, __pyx_L1_error)
66810 __Pyx_GOTREF(__pyx_t_2);
66811 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
66812 if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_2))) __PYX_ERR(1, 1489, __pyx_L1_error)
66813 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
66815 __pyx_v_extents = ((PyObject*)__pyx_t_5);
66825 __pyx_t_5 = PyUnicode_Join(__pyx_kp_u__169, __pyx_v_extents);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1490, __pyx_L1_error)
66826 __Pyx_GOTREF(__pyx_t_5);
66827 __pyx_t_2 = PyUnicode_Format(__pyx_kp_u_s, __pyx_t_5);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1490, __pyx_L1_error)
66828 __Pyx_GOTREF(__pyx_t_2);
66829 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
66830 __pyx_t_5 = PyUnicode_AsASCIIString(((PyObject*)__pyx_t_2));
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1490, __pyx_L1_error)
66831 __Pyx_GOTREF(__pyx_t_5);
66832 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
66833 __pyx_t_2 = __Pyx_PyObject_FromString(__pyx_v_fmt.string);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1490, __pyx_L1_error)
66834 __Pyx_GOTREF(__pyx_t_2);
66835 __pyx_t_4 = PyNumber_Add(__pyx_t_5, __pyx_t_2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1490, __pyx_L1_error)
66836 __Pyx_GOTREF(__pyx_t_4);
66837 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
66838 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
66839 if (!(likely(PyBytes_CheckExact(__pyx_t_4))||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 1490, __pyx_L1_error)
66840 __pyx_v_result = ((PyObject*)__pyx_t_4);
66861 __pyx_t_4 = __Pyx_PyObject_FromString(__pyx_v_fmt.string);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1492, __pyx_L1_error)
66862 __Pyx_GOTREF(__pyx_t_4);
66863 __pyx_v_result = ((PyObject*)__pyx_t_4);
66875 __Pyx_XDECREF(__pyx_r);
66876 __Pyx_INCREF(__pyx_v_result);
66877 __pyx_r = __pyx_v_result;
66890 __Pyx_XDECREF(__pyx_t_2);
66891 __Pyx_XDECREF(__pyx_t_4);
66892 __Pyx_XDECREF(__pyx_t_5);
66893 __Pyx_AddTraceback(
"BufferFormatFromTypeInfo.format_from_typeinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
66896 __Pyx_XDECREF(__pyx_v_part);
66897 __Pyx_XDECREF(__pyx_v_result);
66898 __Pyx_XDECREF(__pyx_v_alignment);
66899 __Pyx_XDECREF(__pyx_v_parts);
66900 __Pyx_XDECREF(__pyx_v_extents);
66901 __Pyx_XGIVEREF(__pyx_r);
66902 __Pyx_TraceReturn(__pyx_r, 0);
66903 __Pyx_RefNannyFinishContext();
66906 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_BC_RANS __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS;
66908 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_BC_RANS(PyTypeObject *t, PyObject *a, PyObject *k) {
66909 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *p;
66910 PyObject *o = __pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_new(t, a, k);
66911 if (unlikely(!o))
return 0;
66912 p = ((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)o);
66913 p->__pyx_vtab = __pyx_vtabptr_6mprans_18BoundaryConditions_BC_RANS;
66914 p->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)Py_None); Py_INCREF(Py_None);
66915 p->body = Py_None; Py_INCREF(Py_None);
66916 p->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66917 p->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66918 p->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66919 p->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66920 p->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66921 p->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66922 p->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66923 p->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66924 p->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66925 p->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66926 p->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66927 p->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66928 p->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66929 p->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66930 p->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66931 p->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66932 p->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66933 p->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66934 p->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66935 p->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66936 p->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66937 p->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66938 p->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66939 p->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66940 p->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66941 p->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66942 p->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66943 p->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66944 p->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66945 p->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66946 p->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66947 p->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66948 p->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66949 p->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66950 p->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66951 p->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66952 p->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66953 p->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66954 p->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66955 p->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66956 p->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66957 p->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66958 p->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66959 p->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66960 p->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66961 p->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66962 p->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
66963 p->zero_array.data = NULL;
66964 p->zero_array.memview = NULL;
66965 p->wind_speed.data = NULL;
66966 p->wind_speed.memview = NULL;
66967 p->body_python_rot_matrix.data = NULL;
66968 p->body_python_rot_matrix.memview = NULL;
66969 p->body_python_last_pos.data = NULL;
66970 p->body_python_last_pos.memview = NULL;
66971 p->body_python_h.data = NULL;
66972 p->body_python_h.memview = NULL;
66976 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions_BC_RANS(PyObject *o) {
66977 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)o;
66978 #if CYTHON_USE_TP_FINALIZE
66979 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
66980 if (PyObject_CallFinalizerFromDealloc(o))
return;
66983 PyObject_GC_UnTrack(o);
66984 Py_CLEAR(p->waves);
66986 Py_CLEAR(p->p_dirichlet);
66987 Py_CLEAR(p->u_dirichlet);
66988 Py_CLEAR(p->v_dirichlet);
66989 Py_CLEAR(p->w_dirichlet);
66990 Py_CLEAR(p->phi_dirichlet);
66991 Py_CLEAR(p->vof_dirichlet);
66992 Py_CLEAR(p->k_dirichlet);
66993 Py_CLEAR(p->dissipation_dirichlet);
66994 Py_CLEAR(p->pAddedMass_dirichlet);
66995 Py_CLEAR(p->p_advective);
66996 Py_CLEAR(p->u_advective);
66997 Py_CLEAR(p->v_advective);
66998 Py_CLEAR(p->w_advective);
66999 Py_CLEAR(p->vof_advective);
67000 Py_CLEAR(p->k_advective);
67001 Py_CLEAR(p->dissipation_advective);
67002 Py_CLEAR(p->u_diffusive);
67003 Py_CLEAR(p->v_diffusive);
67004 Py_CLEAR(p->w_diffusive);
67005 Py_CLEAR(p->k_diffusive);
67006 Py_CLEAR(p->dissipation_diffusive);
67007 Py_CLEAR(p->hx_dirichlet);
67008 Py_CLEAR(p->hy_dirichlet);
67009 Py_CLEAR(p->hz_dirichlet);
67010 Py_CLEAR(p->u_stress);
67011 Py_CLEAR(p->v_stress);
67012 Py_CLEAR(p->w_stress);
67013 Py_CLEAR(p->us_dirichlet);
67014 Py_CLEAR(p->vs_dirichlet);
67015 Py_CLEAR(p->ws_dirichlet);
67016 Py_CLEAR(p->vos_dirichlet);
67017 Py_CLEAR(p->us_advective);
67018 Py_CLEAR(p->vs_advective);
67019 Py_CLEAR(p->ws_advective);
67020 Py_CLEAR(p->vos_advective);
67021 Py_CLEAR(p->us_diffusive);
67022 Py_CLEAR(p->vs_diffusive);
67023 Py_CLEAR(p->ws_diffusive);
67024 Py_CLEAR(p->pInit_dirichlet);
67025 Py_CLEAR(p->pInc_dirichlet);
67026 Py_CLEAR(p->pInit_advective);
67027 Py_CLEAR(p->pInc_advective);
67028 Py_CLEAR(p->pInit_diffusive);
67029 Py_CLEAR(p->pInc_diffusive);
67030 Py_CLEAR(p->clsvof_dirichlet);
67031 Py_CLEAR(p->clsvof_advective);
67032 Py_CLEAR(p->clsvof_diffusive);
67033 __PYX_XDEC_MEMVIEW(&p->zero_array, 1);
67034 __PYX_XDEC_MEMVIEW(&p->wind_speed, 1);
67035 __PYX_XDEC_MEMVIEW(&p->body_python_rot_matrix, 1);
67036 __PYX_XDEC_MEMVIEW(&p->body_python_last_pos, 1);
67037 __PYX_XDEC_MEMVIEW(&p->body_python_h, 1);
67038 PyObject_GC_Track(o);
67039 if (likely(__pyx_ptype_7proteus_18BoundaryConditions_BC_Base)) __pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_dealloc(o);
else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_6mprans_18BoundaryConditions_BC_RANS);
67042 static int __pyx_tp_traverse_6mprans_18BoundaryConditions_BC_RANS(PyObject *o, visitproc
v,
void *a) {
67044 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)o;
67045 e = ((likely(__pyx_ptype_7proteus_18BoundaryConditions_BC_Base)) ? ((__pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_traverse) ? __pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_traverse(o,
v, a) : 0) : __Pyx_call_next_tp_traverse(o,
v, a, __pyx_tp_traverse_6mprans_18BoundaryConditions_BC_RANS));
if (e)
return e;
67047 e = (*v)(((PyObject *)p->waves), a);
if (e)
return e;
67050 e = (*v)(p->body, a);
if (e)
return e;
67052 if (p->p_dirichlet) {
67053 e = (*v)(((PyObject *)p->p_dirichlet), a);
if (e)
return e;
67055 if (p->u_dirichlet) {
67056 e = (*v)(((PyObject *)p->u_dirichlet), a);
if (e)
return e;
67058 if (p->v_dirichlet) {
67059 e = (*v)(((PyObject *)p->v_dirichlet), a);
if (e)
return e;
67061 if (p->w_dirichlet) {
67062 e = (*v)(((PyObject *)p->w_dirichlet), a);
if (e)
return e;
67064 if (p->phi_dirichlet) {
67065 e = (*v)(((PyObject *)p->phi_dirichlet), a);
if (e)
return e;
67067 if (p->vof_dirichlet) {
67068 e = (*v)(((PyObject *)p->vof_dirichlet), a);
if (e)
return e;
67070 if (p->k_dirichlet) {
67071 e = (*v)(((PyObject *)p->k_dirichlet), a);
if (e)
return e;
67073 if (p->dissipation_dirichlet) {
67074 e = (*v)(((PyObject *)p->dissipation_dirichlet), a);
if (e)
return e;
67076 if (p->pAddedMass_dirichlet) {
67077 e = (*v)(((PyObject *)p->pAddedMass_dirichlet), a);
if (e)
return e;
67079 if (p->p_advective) {
67080 e = (*v)(((PyObject *)p->p_advective), a);
if (e)
return e;
67082 if (p->u_advective) {
67083 e = (*v)(((PyObject *)p->u_advective), a);
if (e)
return e;
67085 if (p->v_advective) {
67086 e = (*v)(((PyObject *)p->v_advective), a);
if (e)
return e;
67088 if (p->w_advective) {
67089 e = (*v)(((PyObject *)p->w_advective), a);
if (e)
return e;
67091 if (p->vof_advective) {
67092 e = (*v)(((PyObject *)p->vof_advective), a);
if (e)
return e;
67094 if (p->k_advective) {
67095 e = (*v)(((PyObject *)p->k_advective), a);
if (e)
return e;
67097 if (p->dissipation_advective) {
67098 e = (*v)(((PyObject *)p->dissipation_advective), a);
if (e)
return e;
67100 if (p->u_diffusive) {
67101 e = (*v)(((PyObject *)p->u_diffusive), a);
if (e)
return e;
67103 if (p->v_diffusive) {
67104 e = (*v)(((PyObject *)p->v_diffusive), a);
if (e)
return e;
67106 if (p->w_diffusive) {
67107 e = (*v)(((PyObject *)p->w_diffusive), a);
if (e)
return e;
67109 if (p->k_diffusive) {
67110 e = (*v)(((PyObject *)p->k_diffusive), a);
if (e)
return e;
67112 if (p->dissipation_diffusive) {
67113 e = (*v)(((PyObject *)p->dissipation_diffusive), a);
if (e)
return e;
67115 if (p->hx_dirichlet) {
67116 e = (*v)(((PyObject *)p->hx_dirichlet), a);
if (e)
return e;
67118 if (p->hy_dirichlet) {
67119 e = (*v)(((PyObject *)p->hy_dirichlet), a);
if (e)
return e;
67121 if (p->hz_dirichlet) {
67122 e = (*v)(((PyObject *)p->hz_dirichlet), a);
if (e)
return e;
67125 e = (*v)(((PyObject *)p->u_stress), a);
if (e)
return e;
67128 e = (*v)(((PyObject *)p->v_stress), a);
if (e)
return e;
67131 e = (*v)(((PyObject *)p->w_stress), a);
if (e)
return e;
67133 if (p->us_dirichlet) {
67134 e = (*v)(((PyObject *)p->us_dirichlet), a);
if (e)
return e;
67136 if (p->vs_dirichlet) {
67137 e = (*v)(((PyObject *)p->vs_dirichlet), a);
if (e)
return e;
67139 if (p->ws_dirichlet) {
67140 e = (*v)(((PyObject *)p->ws_dirichlet), a);
if (e)
return e;
67142 if (p->vos_dirichlet) {
67143 e = (*v)(((PyObject *)p->vos_dirichlet), a);
if (e)
return e;
67145 if (p->us_advective) {
67146 e = (*v)(((PyObject *)p->us_advective), a);
if (e)
return e;
67148 if (p->vs_advective) {
67149 e = (*v)(((PyObject *)p->vs_advective), a);
if (e)
return e;
67151 if (p->ws_advective) {
67152 e = (*v)(((PyObject *)p->ws_advective), a);
if (e)
return e;
67154 if (p->vos_advective) {
67155 e = (*v)(((PyObject *)p->vos_advective), a);
if (e)
return e;
67157 if (p->us_diffusive) {
67158 e = (*v)(((PyObject *)p->us_diffusive), a);
if (e)
return e;
67160 if (p->vs_diffusive) {
67161 e = (*v)(((PyObject *)p->vs_diffusive), a);
if (e)
return e;
67163 if (p->ws_diffusive) {
67164 e = (*v)(((PyObject *)p->ws_diffusive), a);
if (e)
return e;
67166 if (p->pInit_dirichlet) {
67167 e = (*v)(((PyObject *)p->pInit_dirichlet), a);
if (e)
return e;
67169 if (p->pInc_dirichlet) {
67170 e = (*v)(((PyObject *)p->pInc_dirichlet), a);
if (e)
return e;
67172 if (p->pInit_advective) {
67173 e = (*v)(((PyObject *)p->pInit_advective), a);
if (e)
return e;
67175 if (p->pInc_advective) {
67176 e = (*v)(((PyObject *)p->pInc_advective), a);
if (e)
return e;
67178 if (p->pInit_diffusive) {
67179 e = (*v)(((PyObject *)p->pInit_diffusive), a);
if (e)
return e;
67181 if (p->pInc_diffusive) {
67182 e = (*v)(((PyObject *)p->pInc_diffusive), a);
if (e)
return e;
67184 if (p->clsvof_dirichlet) {
67185 e = (*v)(((PyObject *)p->clsvof_dirichlet), a);
if (e)
return e;
67187 if (p->clsvof_advective) {
67188 e = (*v)(((PyObject *)p->clsvof_advective), a);
if (e)
return e;
67190 if (p->clsvof_diffusive) {
67191 e = (*v)(((PyObject *)p->clsvof_diffusive), a);
if (e)
return e;
67196 static int __pyx_tp_clear_6mprans_18BoundaryConditions_BC_RANS(PyObject *o) {
67198 struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)o;
67199 if (likely(__pyx_ptype_7proteus_18BoundaryConditions_BC_Base)) {
if (__pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_clear) __pyx_ptype_7proteus_18BoundaryConditions_BC_Base->tp_clear(o); }
else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_6mprans_18BoundaryConditions_BC_RANS);
67200 tmp = ((PyObject*)p->waves);
67201 p->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)Py_None); Py_INCREF(Py_None);
67203 tmp = ((PyObject*)p->body);
67204 p->body = Py_None; Py_INCREF(Py_None);
67206 tmp = ((PyObject*)p->p_dirichlet);
67207 p->p_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67209 tmp = ((PyObject*)p->u_dirichlet);
67210 p->u_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67212 tmp = ((PyObject*)p->v_dirichlet);
67213 p->v_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67215 tmp = ((PyObject*)p->w_dirichlet);
67216 p->w_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67218 tmp = ((PyObject*)p->phi_dirichlet);
67219 p->phi_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67221 tmp = ((PyObject*)p->vof_dirichlet);
67222 p->vof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67224 tmp = ((PyObject*)p->k_dirichlet);
67225 p->k_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67227 tmp = ((PyObject*)p->dissipation_dirichlet);
67228 p->dissipation_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67230 tmp = ((PyObject*)p->pAddedMass_dirichlet);
67231 p->pAddedMass_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67233 tmp = ((PyObject*)p->p_advective);
67234 p->p_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67236 tmp = ((PyObject*)p->u_advective);
67237 p->u_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67239 tmp = ((PyObject*)p->v_advective);
67240 p->v_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67242 tmp = ((PyObject*)p->w_advective);
67243 p->w_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67245 tmp = ((PyObject*)p->vof_advective);
67246 p->vof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67248 tmp = ((PyObject*)p->k_advective);
67249 p->k_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67251 tmp = ((PyObject*)p->dissipation_advective);
67252 p->dissipation_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67254 tmp = ((PyObject*)p->u_diffusive);
67255 p->u_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67257 tmp = ((PyObject*)p->v_diffusive);
67258 p->v_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67260 tmp = ((PyObject*)p->w_diffusive);
67261 p->w_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67263 tmp = ((PyObject*)p->k_diffusive);
67264 p->k_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67266 tmp = ((PyObject*)p->dissipation_diffusive);
67267 p->dissipation_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67269 tmp = ((PyObject*)p->hx_dirichlet);
67270 p->hx_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67272 tmp = ((PyObject*)p->hy_dirichlet);
67273 p->hy_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67275 tmp = ((PyObject*)p->hz_dirichlet);
67276 p->hz_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67278 tmp = ((PyObject*)p->u_stress);
67279 p->u_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67281 tmp = ((PyObject*)p->v_stress);
67282 p->v_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67284 tmp = ((PyObject*)p->w_stress);
67285 p->w_stress = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67287 tmp = ((PyObject*)p->us_dirichlet);
67288 p->us_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67290 tmp = ((PyObject*)p->vs_dirichlet);
67291 p->vs_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67293 tmp = ((PyObject*)p->ws_dirichlet);
67294 p->ws_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67296 tmp = ((PyObject*)p->vos_dirichlet);
67297 p->vos_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67299 tmp = ((PyObject*)p->us_advective);
67300 p->us_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67302 tmp = ((PyObject*)p->vs_advective);
67303 p->vs_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67305 tmp = ((PyObject*)p->ws_advective);
67306 p->ws_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67308 tmp = ((PyObject*)p->vos_advective);
67309 p->vos_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67311 tmp = ((PyObject*)p->us_diffusive);
67312 p->us_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67314 tmp = ((PyObject*)p->vs_diffusive);
67315 p->vs_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67317 tmp = ((PyObject*)p->ws_diffusive);
67318 p->ws_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67320 tmp = ((PyObject*)p->pInit_dirichlet);
67321 p->pInit_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67323 tmp = ((PyObject*)p->pInc_dirichlet);
67324 p->pInc_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67326 tmp = ((PyObject*)p->pInit_advective);
67327 p->pInit_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67329 tmp = ((PyObject*)p->pInc_advective);
67330 p->pInc_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67332 tmp = ((PyObject*)p->pInit_diffusive);
67333 p->pInit_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67335 tmp = ((PyObject*)p->pInc_diffusive);
67336 p->pInc_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67338 tmp = ((PyObject*)p->clsvof_dirichlet);
67339 p->clsvof_dirichlet = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67341 tmp = ((PyObject*)p->clsvof_advective);
67342 p->clsvof_advective = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67344 tmp = ((PyObject*)p->clsvof_diffusive);
67345 p->clsvof_diffusive = ((
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition *)Py_None); Py_INCREF(Py_None);
67350 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_p_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67351 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_1__get__(o);
67354 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_p_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67356 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_3__set__(o,
v);
67359 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_dirichlet_5__del__(o);
67363 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67364 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_1__get__(o);
67367 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67369 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_3__set__(o,
v);
67372 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_dirichlet_5__del__(o);
67376 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67377 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_1__get__(o);
67380 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67382 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_3__set__(o,
v);
67385 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_dirichlet_5__del__(o);
67389 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67390 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_1__get__(o);
67393 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67395 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_3__set__(o,
v);
67398 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_dirichlet_5__del__(o);
67402 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_phi_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67403 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_1__get__(o);
67406 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_phi_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67408 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_3__set__(o,
v);
67411 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13phi_dirichlet_5__del__(o);
67415 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vof_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67416 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_1__get__(o);
67419 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vof_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67421 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_3__set__(o,
v);
67424 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_dirichlet_5__del__(o);
67428 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67429 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_1__get__(o);
67432 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67434 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_3__set__(o,
v);
67437 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_dirichlet_5__del__(o);
67441 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67442 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_1__get__(o);
67445 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67447 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_3__set__(o,
v);
67450 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_dirichlet_5__del__(o);
67454 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pAddedMass_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67455 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_1__get__(o);
67458 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pAddedMass_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67460 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_3__set__(o,
v);
67463 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_20pAddedMass_dirichlet_5__del__(o);
67467 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_p_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67468 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_1__get__(o);
67471 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_p_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67473 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_3__set__(o,
v);
67476 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11p_advective_5__del__(o);
67480 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67481 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_1__get__(o);
67484 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67486 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_3__set__(o,
v);
67489 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_advective_5__del__(o);
67493 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67494 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_1__get__(o);
67497 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67499 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_3__set__(o,
v);
67502 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_advective_5__del__(o);
67506 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67507 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_1__get__(o);
67510 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67512 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_3__set__(o,
v);
67515 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_advective_5__del__(o);
67519 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vof_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67520 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_1__get__(o);
67523 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vof_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67525 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_3__set__(o,
v);
67528 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vof_advective_5__del__(o);
67532 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67533 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_1__get__(o);
67536 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67538 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_3__set__(o,
v);
67541 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_advective_5__del__(o);
67545 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67546 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_1__get__(o);
67549 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67551 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_3__set__(o,
v);
67554 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_advective_5__del__(o);
67558 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67559 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_1__get__(o);
67562 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67564 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_3__set__(o,
v);
67567 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11u_diffusive_5__del__(o);
67571 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67572 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_1__get__(o);
67575 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67577 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_3__set__(o,
v);
67580 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11v_diffusive_5__del__(o);
67584 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67585 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_1__get__(o);
67588 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67590 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_3__set__(o,
v);
67593 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11w_diffusive_5__del__(o);
67597 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67598 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_1__get__(o);
67601 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67603 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_3__set__(o,
v);
67606 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11k_diffusive_5__del__(o);
67610 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67611 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_1__get__(o);
67614 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67616 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_3__set__(o,
v);
67619 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21dissipation_diffusive_5__del__(o);
67623 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hx_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67624 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_1__get__(o);
67627 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hx_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67629 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_3__set__(o,
v);
67632 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hx_dirichlet_5__del__(o);
67636 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hy_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67637 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_1__get__(o);
67640 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hy_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67642 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_3__set__(o,
v);
67645 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hy_dirichlet_5__del__(o);
67649 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hz_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67650 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_1__get__(o);
67653 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hz_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67655 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_3__set__(o,
v);
67658 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12hz_dirichlet_5__del__(o);
67662 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_stress(PyObject *o, CYTHON_UNUSED
void *x) {
67663 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_1__get__(o);
67666 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_stress(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67668 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_3__set__(o,
v);
67671 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8u_stress_5__del__(o);
67675 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_stress(PyObject *o, CYTHON_UNUSED
void *x) {
67676 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_1__get__(o);
67679 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_stress(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67681 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_3__set__(o,
v);
67684 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8v_stress_5__del__(o);
67688 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_stress(PyObject *o, CYTHON_UNUSED
void *x) {
67689 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_1__get__(o);
67692 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_stress(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67694 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_3__set__(o,
v);
67697 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_8w_stress_5__del__(o);
67701 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67702 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_1__get__(o);
67705 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67707 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_3__set__(o,
v);
67710 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_dirichlet_5__del__(o);
67714 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67715 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_1__get__(o);
67718 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67720 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_3__set__(o,
v);
67723 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_dirichlet_5__del__(o);
67727 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67728 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_1__get__(o);
67731 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67733 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_3__set__(o,
v);
67736 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_dirichlet_5__del__(o);
67740 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vos_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67741 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_1__get__(o);
67744 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vos_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67746 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_3__set__(o,
v);
67749 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_dirichlet_5__del__(o);
67753 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67754 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_1__get__(o);
67757 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67759 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_3__set__(o,
v);
67762 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_advective_5__del__(o);
67766 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67767 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_1__get__(o);
67770 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67772 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_3__set__(o,
v);
67775 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_advective_5__del__(o);
67779 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67780 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_1__get__(o);
67783 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67785 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_3__set__(o,
v);
67788 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_advective_5__del__(o);
67792 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vos_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67793 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_1__get__(o);
67796 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vos_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67798 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_3__set__(o,
v);
67801 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13vos_advective_5__del__(o);
67805 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67806 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_1__get__(o);
67809 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67811 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_3__set__(o,
v);
67814 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12us_diffusive_5__del__(o);
67818 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67819 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_1__get__(o);
67822 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67824 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_3__set__(o,
v);
67827 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12vs_diffusive_5__del__(o);
67831 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67832 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_1__get__(o);
67835 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67837 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_3__set__(o,
v);
67840 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_12ws_diffusive_5__del__(o);
67844 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67845 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_1__get__(o);
67848 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67850 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_3__set__(o,
v);
67853 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_dirichlet_5__del__(o);
67857 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67858 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_1__get__(o);
67861 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67863 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_3__set__(o,
v);
67866 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_dirichlet_5__del__(o);
67870 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67871 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_1__get__(o);
67874 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67876 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_3__set__(o,
v);
67879 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_advective_5__del__(o);
67883 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67884 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_1__get__(o);
67887 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67889 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_3__set__(o,
v);
67892 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_advective_5__del__(o);
67896 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67897 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_1__get__(o);
67900 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67902 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_3__set__(o,
v);
67905 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15pInit_diffusive_5__del__(o);
67909 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67910 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_1__get__(o);
67913 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67915 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_3__set__(o,
v);
67918 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_14pInc_diffusive_5__del__(o);
67922 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_dirichlet(PyObject *o, CYTHON_UNUSED
void *x) {
67923 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_1__get__(o);
67926 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_dirichlet(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67928 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_3__set__(o,
v);
67931 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_dirichlet_5__del__(o);
67935 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_advective(PyObject *o, CYTHON_UNUSED
void *x) {
67936 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_1__get__(o);
67939 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_advective(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67941 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_3__set__(o,
v);
67944 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_advective_5__del__(o);
67948 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_diffusive(PyObject *o, CYTHON_UNUSED
void *x) {
67949 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_1__get__(o);
67952 static int __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_diffusive(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
67954 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_3__set__(o,
v);
67957 return __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_16clsvof_diffusive_5__del__(o);
67961 static PyMethodDef __pyx_methods_6mprans_18BoundaryConditions_BC_RANS[] = {
67962 {
"reset", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_3reset, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_2reset},
67963 {
"setNonMaterial", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_4setNonMaterial},
67964 {
"setTank", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_7setTank, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_6setTank},
67965 {
"setFixedNodes", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_8setFixedNodes},
67966 {
"setNoSlip", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_10setNoSlip},
67967 {
"setFreeSlip", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_12setFreeSlip},
67968 {
"setConstantInletVelocity", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_14setConstantInletVelocity},
67969 {
"setConstantOutletPressure", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_16setConstantOutletPressure},
67970 {
"setAtmosphere", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_18setAtmosphere},
67971 {
"setRigidBodyMoveMesh", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_20setRigidBodyMoveMesh},
67972 {
"setChMoveMesh", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_22setChMoveMesh},
67973 {
"setTurbulentDirichlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_24setTurbulentDirichlet},
67974 {
"setTurbulentZeroGradient", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_26setTurbulentZeroGradient},
67975 {
"setWallFunction", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_28setWallFunction},
67976 {
"setMoveMesh", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_30setMoveMesh},
67977 {
"setUnsteadyTwoPhaseVelocityInlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_40setUnsteadyTwoPhaseVelocityInlet},
67978 {
"setTwoPhaseVelocityInlet", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_42setTwoPhaseVelocityInlet},
67979 {
"setHydrostaticPressureOutletWithDepth", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_44setHydrostaticPressureOutletWithDepth},
67980 {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_46__reduce_cython__},
67981 {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_7BC_RANS_48__setstate_cython__},
67985 static struct PyGetSetDef __pyx_getsets_6mprans_18BoundaryConditions_BC_RANS[] = {
67986 {(
char *)
"p_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_p_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_p_dirichlet, (
char *)
"p_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67987 {(
char *)
"u_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_dirichlet, (
char *)
"u_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67988 {(
char *)
"v_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_dirichlet, (
char *)
"v_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67989 {(
char *)
"w_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_dirichlet, (
char *)
"w_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67990 {(
char *)
"phi_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_phi_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_phi_dirichlet, (
char *)
"phi_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67991 {(
char *)
"vof_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vof_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vof_dirichlet, (
char *)
"vof_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67992 {(
char *)
"k_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_dirichlet, (
char *)
"k_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67993 {(
char *)
"dissipation_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_dirichlet, (
char *)
"dissipation_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67994 {(
char *)
"pAddedMass_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pAddedMass_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pAddedMass_dirichlet, (
char *)
"pAddedMass_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
67995 {(
char *)
"p_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_p_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_p_advective, (
char *)
"p_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
67996 {(
char *)
"u_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_advective, (
char *)
"u_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
67997 {(
char *)
"v_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_advective, (
char *)
"v_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
67998 {(
char *)
"w_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_advective, (
char *)
"w_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
67999 {(
char *)
"vof_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vof_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vof_advective, (
char *)
"vof_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68000 {(
char *)
"k_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_advective, (
char *)
"k_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68001 {(
char *)
"dissipation_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_advective, (
char *)
"dissipation_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68002 {(
char *)
"u_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_diffusive, (
char *)
"u_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68003 {(
char *)
"v_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_diffusive, (
char *)
"v_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68004 {(
char *)
"w_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_diffusive, (
char *)
"w_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68005 {(
char *)
"k_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_k_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_k_diffusive, (
char *)
"k_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68006 {(
char *)
"dissipation_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_dissipation_diffusive, (
char *)
"dissipation_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68007 {(
char *)
"hx_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hx_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hx_dirichlet, (
char *)
"hx_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68008 {(
char *)
"hy_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hy_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hy_dirichlet, (
char *)
"hy_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68009 {(
char *)
"hz_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_hz_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_hz_dirichlet, (
char *)
"hz_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68010 {(
char *)
"u_stress", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_u_stress, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_u_stress, (
char *)
"u_stress: proteus.BoundaryConditions.BoundaryCondition", 0},
68011 {(
char *)
"v_stress", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_v_stress, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_v_stress, (
char *)
"v_stress: proteus.BoundaryConditions.BoundaryCondition", 0},
68012 {(
char *)
"w_stress", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_w_stress, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_w_stress, (
char *)
"w_stress: proteus.BoundaryConditions.BoundaryCondition", 0},
68013 {(
char *)
"us_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_dirichlet, (
char *)
"us_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68014 {(
char *)
"vs_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_dirichlet, (
char *)
"vs_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68015 {(
char *)
"ws_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_dirichlet, (
char *)
"ws_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68016 {(
char *)
"vos_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vos_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vos_dirichlet, (
char *)
"vos_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68017 {(
char *)
"us_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_advective, (
char *)
"us_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68018 {(
char *)
"vs_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_advective, (
char *)
"vs_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68019 {(
char *)
"ws_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_advective, (
char *)
"ws_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68020 {(
char *)
"vos_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vos_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vos_advective, (
char *)
"vos_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68021 {(
char *)
"us_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_us_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_us_diffusive, (
char *)
"us_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68022 {(
char *)
"vs_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_vs_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_vs_diffusive, (
char *)
"vs_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68023 {(
char *)
"ws_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_ws_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_ws_diffusive, (
char *)
"ws_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68024 {(
char *)
"pInit_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_dirichlet, (
char *)
"pInit_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68025 {(
char *)
"pInc_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_dirichlet, (
char *)
"pInc_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68026 {(
char *)
"pInit_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_advective, (
char *)
"pInit_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68027 {(
char *)
"pInc_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_advective, (
char *)
"pInc_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68028 {(
char *)
"pInit_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInit_diffusive, (
char *)
"pInit_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68029 {(
char *)
"pInc_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_pInc_diffusive, (
char *)
"pInc_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68030 {(
char *)
"clsvof_dirichlet", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_dirichlet, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_dirichlet, (
char *)
"clsvof_dirichlet: proteus.BoundaryConditions.BoundaryCondition", 0},
68031 {(
char *)
"clsvof_advective", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_advective, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_advective, (
char *)
"clsvof_advective: proteus.BoundaryConditions.BoundaryCondition", 0},
68032 {(
char *)
"clsvof_diffusive", __pyx_getprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_diffusive, __pyx_setprop_6mprans_18BoundaryConditions_7BC_RANS_clsvof_diffusive, (
char *)
"clsvof_diffusive: proteus.BoundaryConditions.BoundaryCondition", 0},
68036 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions_BC_RANS = {
68037 PyVarObject_HEAD_INIT(0, 0)
68038 "mprans.BoundaryConditions.BC_RANS",
68039 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS),
68041 __pyx_tp_dealloc_6mprans_18BoundaryConditions_BC_RANS,
68042 #if PY_VERSION_HEX < 0x030800b4
68045 #if PY_VERSION_HEX >= 0x030800b4
68050 #if PY_MAJOR_VERSION < 3
68053 #if PY_MAJOR_VERSION >= 3
68066 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
68067 "BC_RANS(shape=None, name=None, b_or=None, b_i=0., nd=None)\n\n Class regrouping boundary conditions for two-phase flows\n ",
68068 __pyx_tp_traverse_6mprans_18BoundaryConditions_BC_RANS,
68069 __pyx_tp_clear_6mprans_18BoundaryConditions_BC_RANS,
68074 __pyx_methods_6mprans_18BoundaryConditions_BC_RANS,
68076 __pyx_getsets_6mprans_18BoundaryConditions_BC_RANS,
68082 __pyx_pw_6mprans_18BoundaryConditions_7BC_RANS_1__init__,
68084 __pyx_tp_new_6mprans_18BoundaryConditions_BC_RANS,
68094 #if PY_VERSION_HEX >= 0x030400a1
68097 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
68100 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
68103 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
68107 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZone __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone;
68109 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZone(PyTypeObject *t, PyObject *a, PyObject *k) {
68110 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *p;
68112 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
68113 o = (*t->tp_alloc)(t, 0);
68115 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
68117 if (unlikely(!o))
return 0;
68118 p = ((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)o);
68119 p->__pyx_vtab = __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZone;
68120 p->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)Py_None); Py_INCREF(Py_None);
68121 p->Shape = Py_None; Py_INCREF(Py_None);
68122 p->zone_type = ((PyObject*)Py_None); Py_INCREF(Py_None);
68123 p->wind_speed.data = NULL;
68124 p->wind_speed.memview = NULL;
68125 p->u_calc.data = NULL;
68126 p->u_calc.memview = NULL;
68127 p->zero_vel.data = NULL;
68128 p->zero_vel.memview = NULL;
68129 p->center.data = NULL;
68130 p->center.memview = NULL;
68131 p->orientation.data = NULL;
68132 p->orientation.memview = NULL;
68133 if (unlikely(__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_1__cinit__(o, a, k) < 0))
goto bad;
68136 Py_DECREF(o); o = 0;
68140 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions_RelaxationZone(PyObject *o) {
68141 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)o;
68142 #if CYTHON_USE_TP_FINALIZE
68143 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
68144 if (PyObject_CallFinalizerFromDealloc(o))
return;
68147 PyObject_GC_UnTrack(o);
68148 Py_CLEAR(p->waves);
68149 Py_CLEAR(p->Shape);
68150 Py_CLEAR(p->zone_type);
68151 __PYX_XDEC_MEMVIEW(&p->wind_speed, 1);
68152 __PYX_XDEC_MEMVIEW(&p->u_calc, 1);
68153 __PYX_XDEC_MEMVIEW(&p->zero_vel, 1);
68154 __PYX_XDEC_MEMVIEW(&p->center, 1);
68155 __PYX_XDEC_MEMVIEW(&p->orientation, 1);
68156 (*Py_TYPE(o)->tp_free)(o);
68159 static int __pyx_tp_traverse_6mprans_18BoundaryConditions_RelaxationZone(PyObject *o, visitproc
v,
void *a) {
68161 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)o;
68163 e = (*v)(((PyObject *)p->waves), a);
if (e)
return e;
68166 e = (*v)(p->Shape, a);
if (e)
return e;
68171 static int __pyx_tp_clear_6mprans_18BoundaryConditions_RelaxationZone(PyObject *o) {
68173 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *)o;
68174 tmp = ((PyObject*)p->waves);
68175 p->waves = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)Py_None); Py_INCREF(Py_None);
68177 tmp = ((PyObject*)p->Shape);
68178 p->Shape = Py_None; Py_INCREF(Py_None);
68183 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_Shape(PyObject *o, CYTHON_UNUSED
void *x) {
68184 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_1__get__(o);
68187 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_Shape(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68189 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_3__set__(o,
v);
68192 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5Shape_5__del__(o);
68196 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_zone_type(PyObject *o, CYTHON_UNUSED
void *x) {
68197 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_1__get__(o);
68200 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_zone_type(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68202 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_3__set__(o,
v);
68205 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9zone_type_5__del__(o);
68209 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_dragAlpha(PyObject *o, CYTHON_UNUSED
void *x) {
68210 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_1__get__(o);
68213 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_dragAlpha(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68215 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9dragAlpha_3__set__(o,
v);
68218 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68223 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_dragBeta(PyObject *o, CYTHON_UNUSED
void *x) {
68224 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_1__get__(o);
68227 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_dragBeta(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68229 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8dragBeta_3__set__(o,
v);
68232 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68237 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_porosity(PyObject *o, CYTHON_UNUSED
void *x) {
68238 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_1__get__(o);
68241 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_porosity(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68243 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_8porosity_3__set__(o,
v);
68246 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68251 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_solid(PyObject *o, CYTHON_UNUSED
void *x) {
68252 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_1__get__(o);
68255 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_solid(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68257 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_13epsFact_solid_3__set__(o,
v);
68260 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68265 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_porous(PyObject *o, CYTHON_UNUSED
void *x) {
68266 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_1__get__(o);
68269 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_porous(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68271 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_14epsFact_porous_3__set__(o,
v);
68274 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68279 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_vert_axis(PyObject *o, CYTHON_UNUSED
void *x) {
68280 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_1__get__(o);
68283 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_vert_axis(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68285 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9vert_axis_3__set__(o,
v);
68288 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68293 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_center(PyObject *o, CYTHON_UNUSED
void *x) {
68294 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_1__get__(o);
68297 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_center(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68299 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_6center_3__set__(o,
v);
68302 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68307 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_orientation(PyObject *o, CYTHON_UNUSED
void *x) {
68308 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_1__get__(o);
68311 static int __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_orientation(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68313 return __pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11orientation_3__set__(o,
v);
68316 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
68321 static PyMethodDef __pyx_methods_6mprans_18BoundaryConditions_RelaxationZone[] = {
68322 {
"calculate_phi_python", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python, METH_O, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_4calculate_phi_python},
68323 {
"calculate_vel_python", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_6calculate_vel_python},
68324 {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_8__reduce_cython__},
68325 {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_14RelaxationZone_10__setstate_cython__},
68329 static struct PyGetSetDef __pyx_getsets_6mprans_18BoundaryConditions_RelaxationZone[] = {
68330 {(
char *)
"Shape", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_Shape, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_Shape, (
char *)
"Shape: object", 0},
68331 {(
char *)
"zone_type", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_zone_type, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_zone_type, (
char *)
"zone_type: str", 0},
68332 {(
char *)
"dragAlpha", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_dragAlpha, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_dragAlpha, (
char *)
"dragAlpha: 'double'", 0},
68333 {(
char *)
"dragBeta", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_dragBeta, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_dragBeta, (
char *)
"dragBeta: 'double'", 0},
68334 {(
char *)
"porosity", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_porosity, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_porosity, (
char *)
"porosity: 'double'", 0},
68335 {(
char *)
"epsFact_solid", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_solid, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_solid, (
char *)
"epsFact_solid: 'double'", 0},
68336 {(
char *)
"epsFact_porous", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_porous, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_epsFact_porous, (
char *)
"epsFact_porous: 'double'", 0},
68337 {(
char *)
"vert_axis", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_vert_axis, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_vert_axis, (
char *)
"vert_axis: 'double'", 0},
68338 {(
char *)
"center", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_center, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_center, (
char *)
"center: 'double[:]'", 0},
68339 {(
char *)
"orientation", __pyx_getprop_6mprans_18BoundaryConditions_14RelaxationZone_orientation, __pyx_setprop_6mprans_18BoundaryConditions_14RelaxationZone_orientation, (
char *)
"orientation: 'double[:]'", 0},
68343 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions_RelaxationZone = {
68344 PyVarObject_HEAD_INIT(0, 0)
68345 "mprans.BoundaryConditions.RelaxationZone",
68346 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone),
68348 __pyx_tp_dealloc_6mprans_18BoundaryConditions_RelaxationZone,
68349 #if PY_VERSION_HEX < 0x030800b4
68352 #if PY_VERSION_HEX >= 0x030800b4
68357 #if PY_MAJOR_VERSION < 3
68360 #if PY_MAJOR_VERSION >= 3
68373 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
68374 "\n Holds information about a relaxation zone (wave generation/absorption\n or porous zone)\n\n Parameters\n ----------\n zone_type: string\n type of zone, can be set to 'absorption', 'generation', or 'porous'\n center: array_like\n coordinates of center of the zone\n orientation: array_like\n orientation for absorption/generation zones: from boundary to tank\n epsFact_porous: float\n half the zone length\n waves: Optional[proteus.WaveTools]\n class instance of a wave from proteus.WaveTools (must be set for\n generation zone)\n shape: Optional[proteus.SpatialTools.Shape]\n shape class instance containing region\n dragAlpha: Optional[float]\n parameter for porous zones (default: 0.5/1.005e-6)\n dragBeta: Optional[float]\n parameter for porous zones (default: 0.)\n porosity: Optional[float]\n parameter for porous zone (default: 1.)\n vert_axis: Optional[int]\n index of vertical position vector (x:0, y:1, z:2), must always be\n aligned with gravity. If not set, will be 1 in 2D (y), 2 in 3D (z).\n smoothing: Optional[float]\n smoothing distance from the free surface (usually 3*he)\n vof_water: Optional[int]\n VOF value of water (default: 0)\n vof_air: Optional[int]\n VOF value of air (default: 1)\n ",
68375 __pyx_tp_traverse_6mprans_18BoundaryConditions_RelaxationZone,
68376 __pyx_tp_clear_6mprans_18BoundaryConditions_RelaxationZone,
68381 __pyx_methods_6mprans_18BoundaryConditions_RelaxationZone,
68383 __pyx_getsets_6mprans_18BoundaryConditions_RelaxationZone,
68391 __pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZone,
68401 #if PY_VERSION_HEX >= 0x030400a1
68404 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
68407 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
68410 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
68414 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
68416 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
68417 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *p;
68419 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
68420 o = (*t->tp_alloc)(t, 0);
68422 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
68424 if (unlikely(!o))
return 0;
68425 p = ((
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)o);
68426 p->__pyx_vtab = __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
68427 p->zones_array = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
68428 p->zones = ((PyObject*)Py_None); Py_INCREF(Py_None);
68429 p->model = Py_None; Py_INCREF(Py_None);
68430 p->ar = Py_None; Py_INCREF(Py_None);
68434 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator(PyObject *o) {
68435 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)o;
68436 #if CYTHON_USE_TP_FINALIZE
68437 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
68438 if (PyObject_CallFinalizerFromDealloc(o))
return;
68441 PyObject_GC_UnTrack(o);
68442 Py_CLEAR(p->zones_array);
68443 Py_CLEAR(p->zones);
68444 Py_CLEAR(p->model);
68446 (*Py_TYPE(o)->tp_free)(o);
68449 static int __pyx_tp_traverse_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator(PyObject *o, visitproc
v,
void *a) {
68451 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)o;
68452 if (p->zones_array) {
68453 e = (*v)(((PyObject *)p->zones_array), a);
if (e)
return e;
68456 e = (*v)(p->zones, a);
if (e)
return e;
68459 e = (*v)(p->model, a);
if (e)
return e;
68462 e = (*v)(p->ar, a);
if (e)
return e;
68467 static int __pyx_tp_clear_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator(PyObject *o) {
68469 struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *p = (
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *)o;
68470 tmp = ((PyObject*)p->zones_array);
68471 p->zones_array = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
68473 tmp = ((PyObject*)p->zones);
68474 p->zones = ((PyObject*)Py_None); Py_INCREF(Py_None);
68476 tmp = ((PyObject*)p->model);
68477 p->model = Py_None; Py_INCREF(Py_None);
68479 tmp = ((PyObject*)p->ar);
68480 p->ar = Py_None; Py_INCREF(Py_None);
68485 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_zones(PyObject *o, CYTHON_UNUSED
void *x) {
68486 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_1__get__(o);
68489 static int __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_zones(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68491 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_3__set__(o,
v);
68494 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5zones_5__del__(o);
68498 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_model(PyObject *o, CYTHON_UNUSED
void *x) {
68499 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_1__get__(o);
68502 static int __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_model(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68504 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_3__set__(o,
v);
68507 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5model_5__del__(o);
68511 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_ar(PyObject *o, CYTHON_UNUSED
void *x) {
68512 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_1__get__(o);
68515 static int __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_ar(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68517 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_3__set__(o,
v);
68520 return __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2ar_5__del__(o);
68524 static PyMethodDef __pyx_methods_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator[] = {
68525 {
"attachModel", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_2attachModel},
68526 {
"attachAuxiliaryVariables", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables, METH_O, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_4attachAuxiliaryVariables},
68527 {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_10__reduce_cython__},
68528 {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_12__setstate_cython__},
68532 static struct PyGetSetDef __pyx_getsets_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator[] = {
68533 {(
char *)
"zones", __pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_zones, __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_zones, (
char *)
"zones: dict", 0},
68534 {(
char *)
"model", __pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_model, __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_model, (
char *)
"model: object", 0},
68535 {(
char *)
"ar", __pyx_getprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_ar, __pyx_setprop_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_ar, (
char *)
"ar: object", 0},
68539 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator = {
68540 PyVarObject_HEAD_INIT(0, 0)
68541 "mprans.BoundaryConditions.RelaxationZoneWaveGenerator",
68542 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator),
68544 __pyx_tp_dealloc_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68545 #if PY_VERSION_HEX < 0x030800b4
68548 #if PY_VERSION_HEX >= 0x030800b4
68553 #if PY_MAJOR_VERSION < 3
68556 #if PY_MAJOR_VERSION >= 3
68569 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
68570 "RelaxationZoneWaveGenerator(zones, nd)\n\n Prescribe a velocity penalty scaling in a material zone via a\n Darcy-Forchheimer penalty\n\n Parameters\n ----------\n zones: dict\n dictionary with key as the region flag and values as a RelaxationZone\n class\n nd: int\n number of dimensions of domain\n ",
68571 __pyx_tp_traverse_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68572 __pyx_tp_clear_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68577 __pyx_methods_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68579 __pyx_getsets_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68585 __pyx_pw_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_1__init__,
68587 __pyx_tp_new_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator,
68597 #if PY_VERSION_HEX >= 0x030400a1
68600 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
68603 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
68606 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
68610 static struct __pyx_vtabstruct_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
68612 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
68613 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *p;
68615 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
68616 o = (*t->tp_alloc)(t, 0);
68618 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
68620 if (unlikely(!o))
return 0;
68621 p = ((
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)o);
68622 p->__pyx_vtab = __pyx_vtabptr_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
68623 p->WT = Py_None; Py_INCREF(Py_None);
68624 p->center.data = NULL;
68625 p->center.memview = NULL;
68626 p->orientation.data = NULL;
68627 p->orientation.memview = NULL;
68628 p->zero_vel.data = NULL;
68629 p->zero_vel.memview = NULL;
68630 p->_b_or.data = NULL;
68631 p->_b_or.memview = NULL;
68632 p->wind_speed.data = NULL;
68633 p->wind_speed.memview = NULL;
68637 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics(PyObject *o) {
68638 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)o;
68639 #if CYTHON_USE_TP_FINALIZE
68640 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
68641 if (PyObject_CallFinalizerFromDealloc(o))
return;
68644 PyObject_GC_UnTrack(o);
68646 __PYX_XDEC_MEMVIEW(&p->center, 1);
68647 __PYX_XDEC_MEMVIEW(&p->orientation, 1);
68648 __PYX_XDEC_MEMVIEW(&p->zero_vel, 1);
68649 __PYX_XDEC_MEMVIEW(&p->_b_or, 1);
68650 __PYX_XDEC_MEMVIEW(&p->wind_speed, 1);
68651 (*Py_TYPE(o)->tp_free)(o);
68654 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics(PyObject *o, visitproc
v,
void *a) {
68656 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)o;
68658 e = (*v)(p->WT, a);
if (e)
return e;
68663 static int __pyx_tp_clear_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics(PyObject *o) {
68665 struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *)o;
68666 tmp = ((PyObject*)p->WT);
68667 p->WT = Py_None; Py_INCREF(Py_None);
68672 static PyObject *__pyx_getprop_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_WT(PyObject *o, CYTHON_UNUSED
void *x) {
68673 return __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_1__get__(o);
68676 static int __pyx_setprop_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_WT(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
68678 return __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_3__set__(o,
v);
68681 return __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2WT_5__del__(o);
68685 static PyMethodDef __pyx_methods_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics[] = {
68686 {
"__reduce_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__, METH_NOARGS, __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_2__reduce_cython__},
68687 {
"__setstate_cython__", (PyCFunction)__pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__, METH_O, __pyx_doc_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_4__setstate_cython__},
68691 static struct PyGetSetDef __pyx_getsets_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics[] = {
68692 {(
char *)
"WT", __pyx_getprop_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_WT, __pyx_setprop_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_WT, (
char *)
"WT: object", 0},
68696 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics = {
68697 PyVarObject_HEAD_INIT(0, 0)
68698 "mprans.BoundaryConditions.__cppClass_WavesCharacteristics",
68699 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics),
68701 __pyx_tp_dealloc_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68702 #if PY_VERSION_HEX < 0x030800b4
68705 #if PY_VERSION_HEX >= 0x030800b4
68710 #if PY_MAJOR_VERSION < 3
68713 #if PY_MAJOR_VERSION >= 3
68726 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
68727 "__cppClass_WavesCharacteristics(waves, vert_axis, wind_speed=None, b_or=None, smoothing=0., vof_water=0., vof_air=1.)\n\n Class holding information from WaveTools waves and cnvering it to\n boundary conditions to use for relaxation zones and wave inlet.\n This class is created automatically when passing WaveTools class\n instances to a relaxation zone or wave inlet BC.\n\n Parameters\n ----------\n wave: proteus.WaveTools\n class describing a wave (from proteus.WaveTools)\n vert_axis: int\n index of vertical position vector (x:0, y:1, z:2), must always be\n aligned with gravity. If not set, will be 1 in 2D (y), 2 in 3D (z).\n wind_speed: Optional[array_like]\n speed of air phase\n b_or: Optional[array_like]\n boundary orientation. Necessary for pressure calculations. Used\n for boundary conditions but not in relaxation zones.\n smoothing: Optional[float]\n smoothing distance from the free surface (usually 3*he)\n vof_water: Optional[float]\n VOF value of water (default: 0)\n vof_air: Optional[float]\n VOF value of air (default: 1)\n ",
68728 __pyx_tp_traverse_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68729 __pyx_tp_clear_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68734 __pyx_methods_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68736 __pyx_getsets_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68742 __pyx_pw_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_1__init__,
68744 __pyx_tp_new_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics,
68754 #if PY_VERSION_HEX >= 0x030400a1
68757 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
68760 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
68763 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
68768 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh[8];
68769 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh = 0;
68771 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
68773 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh)))) {
68774 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh];
68775 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh));
68776 (void) PyObject_INIT(o, t);
68777 PyObject_GC_Track(o);
68779 o = (*t->tp_alloc)(t, 0);
68780 if (unlikely(!o))
return 0;
68785 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(PyObject *o) {
68786 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)o;
68787 PyObject_GC_UnTrack(o);
68788 Py_CLEAR(p->__pyx_v_body);
68789 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh)))) {
68790 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)o);
68792 (*Py_TYPE(o)->tp_free)(o);
68796 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(PyObject *o, visitproc
v,
void *a) {
68798 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)o;
68799 if (p->__pyx_v_body) {
68800 e = (*v)(p->__pyx_v_body, a);
if (e)
return e;
68805 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh(PyObject *o) {
68807 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)o;
68808 tmp = ((PyObject*)p->__pyx_v_body);
68809 p->__pyx_v_body = Py_None; Py_INCREF(Py_None);
68814 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh = {
68815 PyVarObject_HEAD_INIT(0, 0)
68816 "mprans.BoundaryConditions.__pyx_scope_struct__setRigidBodyMoveMesh",
68817 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh),
68819 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh,
68820 #if PY_VERSION_HEX < 0x030800b4
68823 #if PY_VERSION_HEX >= 0x030800b4
68828 #if PY_MAJOR_VERSION < 3
68831 #if PY_MAJOR_VERSION >= 3
68844 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
68846 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh,
68847 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh,
68862 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh,
68872 #if PY_VERSION_HEX >= 0x030400a1
68875 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
68878 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
68881 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
68886 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h[8];
68887 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h = 0;
68889 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
68891 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h)))) {
68892 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h];
68893 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h));
68894 (void) PyObject_INIT(o, t);
68895 PyObject_GC_Track(o);
68897 o = (*t->tp_alloc)(t, 0);
68898 if (unlikely(!o))
return 0;
68903 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(PyObject *o) {
68904 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)o;
68905 PyObject_GC_UnTrack(o);
68906 Py_CLEAR(p->__pyx_outer_scope);
68907 Py_CLEAR(p->__pyx_v_i);
68908 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h)))) {
68909 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)o);
68911 (*Py_TYPE(o)->tp_free)(o);
68915 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(PyObject *o, visitproc
v,
void *a) {
68917 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)o;
68918 if (p->__pyx_outer_scope) {
68919 e = (*v)(((PyObject *)p->__pyx_outer_scope), a);
if (e)
return e;
68921 if (p->__pyx_v_i) {
68922 e = (*v)(p->__pyx_v_i, a);
if (e)
return e;
68927 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h(PyObject *o) {
68929 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h *)o;
68930 tmp = ((PyObject*)p->__pyx_outer_scope);
68931 p->__pyx_outer_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh *)Py_None); Py_INCREF(Py_None);
68933 tmp = ((PyObject*)p->__pyx_v_i);
68934 p->__pyx_v_i = Py_None; Py_INCREF(Py_None);
68939 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h = {
68940 PyVarObject_HEAD_INIT(0, 0)
68941 "mprans.BoundaryConditions.__pyx_scope_struct_1_get_DBC_h",
68942 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h),
68944 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h,
68945 #if PY_VERSION_HEX < 0x030800b4
68948 #if PY_VERSION_HEX >= 0x030800b4
68953 #if PY_MAJOR_VERSION < 3
68956 #if PY_MAJOR_VERSION >= 3
68969 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
68971 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h,
68972 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h,
68987 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h,
68997 #if PY_VERSION_HEX >= 0x030400a1
69000 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69003 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69006 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69011 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh[8];
69012 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh = 0;
69014 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69016 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh)))) {
69017 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh];
69018 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh));
69019 (void) PyObject_INIT(o, t);
69020 PyObject_GC_Track(o);
69022 o = (*t->tp_alloc)(t, 0);
69023 if (unlikely(!o))
return 0;
69028 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(PyObject *o) {
69029 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)o;
69030 PyObject_GC_UnTrack(o);
69031 Py_CLEAR(p->__pyx_v_body);
69032 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh)))) {
69033 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)o);
69035 (*Py_TYPE(o)->tp_free)(o);
69039 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(PyObject *o, visitproc
v,
void *a) {
69041 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)o;
69042 if (p->__pyx_v_body) {
69043 e = (*v)(p->__pyx_v_body, a);
if (e)
return e;
69048 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh(PyObject *o) {
69050 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh *)o;
69051 tmp = ((PyObject*)p->__pyx_v_body);
69052 p->__pyx_v_body = Py_None; Py_INCREF(Py_None);
69057 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh = {
69058 PyVarObject_HEAD_INIT(0, 0)
69059 "mprans.BoundaryConditions.__pyx_scope_struct_2_setChMoveMesh",
69060 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh),
69062 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh,
69063 #if PY_VERSION_HEX < 0x030800b4
69066 #if PY_VERSION_HEX >= 0x030800b4
69071 #if PY_MAJOR_VERSION < 3
69074 #if PY_MAJOR_VERSION >= 3
69087 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69089 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh,
69090 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh,
69105 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh,
69115 #if PY_VERSION_HEX >= 0x030400a1
69118 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69121 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69124 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69129 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction[8];
69130 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction = 0;
69132 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69134 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction)))) {
69135 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction];
69136 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction));
69137 (void) PyObject_INIT(o, t);
69138 PyObject_GC_Track(o);
69140 o = (*t->tp_alloc)(t, 0);
69141 if (unlikely(!o))
return 0;
69146 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(PyObject *o) {
69147 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)o;
69148 PyObject_GC_UnTrack(o);
69149 Py_CLEAR(p->__pyx_v_wf);
69150 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction)))) {
69151 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)o);
69153 (*Py_TYPE(o)->tp_free)(o);
69157 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(PyObject *o, visitproc
v,
void *a) {
69159 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)o;
69160 if (p->__pyx_v_wf) {
69161 e = (*v)(p->__pyx_v_wf, a);
if (e)
return e;
69166 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction(PyObject *o) {
69168 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction *)o;
69169 tmp = ((PyObject*)p->__pyx_v_wf);
69170 p->__pyx_v_wf = Py_None; Py_INCREF(Py_None);
69175 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction = {
69176 PyVarObject_HEAD_INIT(0, 0)
69177 "mprans.BoundaryConditions.__pyx_scope_struct_3_setWallFunction",
69178 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction),
69180 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction,
69181 #if PY_VERSION_HEX < 0x030800b4
69184 #if PY_VERSION_HEX >= 0x030800b4
69189 #if PY_MAJOR_VERSION < 3
69192 #if PY_MAJOR_VERSION >= 3
69205 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69207 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction,
69208 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction,
69223 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction,
69233 #if PY_VERSION_HEX >= 0x030400a1
69236 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69239 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69242 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69247 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh[8];
69248 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh = 0;
69250 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69252 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh)))) {
69253 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh];
69254 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh));
69255 (void) PyObject_INIT(o, t);
69256 PyObject_GC_Track(o);
69258 o = (*t->tp_alloc)(t, 0);
69259 if (unlikely(!o))
return 0;
69264 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(PyObject *o) {
69265 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)o;
69266 PyObject_GC_UnTrack(o);
69267 Py_CLEAR(p->__pyx_v_self);
69268 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh)))) {
69269 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)o);
69271 (*Py_TYPE(o)->tp_free)(o);
69275 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(PyObject *o, visitproc
v,
void *a) {
69277 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)o;
69278 if (p->__pyx_v_self) {
69279 e = (*v)(((PyObject *)p->__pyx_v_self), a);
if (e)
return e;
69284 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh(PyObject *o) {
69286 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh *)o;
69287 tmp = ((PyObject*)p->__pyx_v_self);
69288 p->__pyx_v_self = ((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)Py_None); Py_INCREF(Py_None);
69293 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh = {
69294 PyVarObject_HEAD_INIT(0, 0)
69295 "mprans.BoundaryConditions.__pyx_scope_struct_4_setMoveMesh",
69296 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh),
69298 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh,
69299 #if PY_VERSION_HEX < 0x030800b4
69302 #if PY_VERSION_HEX >= 0x030800b4
69307 #if PY_MAJOR_VERSION < 3
69310 #if PY_MAJOR_VERSION >= 3
69323 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69325 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh,
69326 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh,
69341 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh,
69351 #if PY_VERSION_HEX >= 0x030400a1
69354 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69357 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69360 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69365 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet[8];
69366 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet = 0;
69368 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69370 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet)))) {
69371 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet];
69372 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet));
69373 (void) PyObject_INIT(o, t);
69374 PyObject_GC_Track(o);
69376 o = (*t->tp_alloc)(t, 0);
69377 if (unlikely(!o))
return 0;
69382 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(PyObject *o) {
69383 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)o;
69384 PyObject_GC_UnTrack(o);
69385 Py_CLEAR(p->__pyx_v_self);
69386 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet)))) {
69387 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)o);
69389 (*Py_TYPE(o)->tp_free)(o);
69393 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(PyObject *o, visitproc
v,
void *a) {
69395 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)o;
69396 if (p->__pyx_v_self) {
69397 e = (*v)(((PyObject *)p->__pyx_v_self), a);
if (e)
return e;
69402 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet(PyObject *o) {
69404 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet *)o;
69405 tmp = ((PyObject*)p->__pyx_v_self);
69406 p->__pyx_v_self = ((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)Py_None); Py_INCREF(Py_None);
69411 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet = {
69412 PyVarObject_HEAD_INIT(0, 0)
69413 "mprans.BoundaryConditions.__pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet",
69414 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet),
69416 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet,
69417 #if PY_VERSION_HEX < 0x030800b4
69420 #if PY_VERSION_HEX >= 0x030800b4
69425 #if PY_MAJOR_VERSION < 3
69428 #if PY_MAJOR_VERSION >= 3
69441 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69443 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet,
69444 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet,
69459 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet,
69469 #if PY_VERSION_HEX >= 0x030400a1
69472 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69475 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69478 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69483 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet[8];
69484 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet = 0;
69486 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69488 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet)))) {
69489 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet];
69490 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet));
69491 (void) PyObject_INIT(o, t);
69492 PyObject_GC_Track(o);
69494 o = (*t->tp_alloc)(t, 0);
69495 if (unlikely(!o))
return 0;
69500 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(PyObject *o) {
69501 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)o;
69502 PyObject_GC_UnTrack(o);
69503 Py_CLEAR(p->__pyx_v_U);
69504 Py_CLEAR(p->__pyx_v_Uwind);
69505 Py_CLEAR(p->__pyx_v_air);
69506 Py_CLEAR(p->__pyx_v_dissipationInflow);
69507 Py_CLEAR(p->__pyx_v_dissipationInflowAir);
69508 Py_CLEAR(p->__pyx_v_kInflow);
69509 Py_CLEAR(p->__pyx_v_kInflowAir);
69510 Py_CLEAR(p->__pyx_v_self);
69511 Py_CLEAR(p->__pyx_v_smoothing);
69512 Py_CLEAR(p->__pyx_v_vert_axis);
69513 Py_CLEAR(p->__pyx_v_water);
69514 Py_CLEAR(p->__pyx_v_waterLevel);
69515 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet)))) {
69516 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)o);
69518 (*Py_TYPE(o)->tp_free)(o);
69522 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(PyObject *o, visitproc
v,
void *a) {
69524 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)o;
69525 if (p->__pyx_v_U) {
69526 e = (*v)(p->__pyx_v_U, a);
if (e)
return e;
69528 if (p->__pyx_v_Uwind) {
69529 e = (*v)(p->__pyx_v_Uwind, a);
if (e)
return e;
69531 if (p->__pyx_v_air) {
69532 e = (*v)(p->__pyx_v_air, a);
if (e)
return e;
69534 if (p->__pyx_v_dissipationInflow) {
69535 e = (*v)(p->__pyx_v_dissipationInflow, a);
if (e)
return e;
69537 if (p->__pyx_v_dissipationInflowAir) {
69538 e = (*v)(p->__pyx_v_dissipationInflowAir, a);
if (e)
return e;
69540 if (p->__pyx_v_kInflow) {
69541 e = (*v)(p->__pyx_v_kInflow, a);
if (e)
return e;
69543 if (p->__pyx_v_kInflowAir) {
69544 e = (*v)(p->__pyx_v_kInflowAir, a);
if (e)
return e;
69546 if (p->__pyx_v_self) {
69547 e = (*v)(((PyObject *)p->__pyx_v_self), a);
if (e)
return e;
69549 if (p->__pyx_v_smoothing) {
69550 e = (*v)(p->__pyx_v_smoothing, a);
if (e)
return e;
69552 if (p->__pyx_v_vert_axis) {
69553 e = (*v)(p->__pyx_v_vert_axis, a);
if (e)
return e;
69555 if (p->__pyx_v_water) {
69556 e = (*v)(p->__pyx_v_water, a);
if (e)
return e;
69558 if (p->__pyx_v_waterLevel) {
69559 e = (*v)(p->__pyx_v_waterLevel, a);
if (e)
return e;
69564 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet(PyObject *o) {
69566 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)o;
69567 tmp = ((PyObject*)p->__pyx_v_U);
69568 p->__pyx_v_U = Py_None; Py_INCREF(Py_None);
69570 tmp = ((PyObject*)p->__pyx_v_Uwind);
69571 p->__pyx_v_Uwind = Py_None; Py_INCREF(Py_None);
69573 tmp = ((PyObject*)p->__pyx_v_air);
69574 p->__pyx_v_air = Py_None; Py_INCREF(Py_None);
69576 tmp = ((PyObject*)p->__pyx_v_dissipationInflow);
69577 p->__pyx_v_dissipationInflow = Py_None; Py_INCREF(Py_None);
69579 tmp = ((PyObject*)p->__pyx_v_dissipationInflowAir);
69580 p->__pyx_v_dissipationInflowAir = Py_None; Py_INCREF(Py_None);
69582 tmp = ((PyObject*)p->__pyx_v_kInflow);
69583 p->__pyx_v_kInflow = Py_None; Py_INCREF(Py_None);
69585 tmp = ((PyObject*)p->__pyx_v_kInflowAir);
69586 p->__pyx_v_kInflowAir = Py_None; Py_INCREF(Py_None);
69588 tmp = ((PyObject*)p->__pyx_v_self);
69589 p->__pyx_v_self = ((
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *)Py_None); Py_INCREF(Py_None);
69591 tmp = ((PyObject*)p->__pyx_v_smoothing);
69592 p->__pyx_v_smoothing = Py_None; Py_INCREF(Py_None);
69594 tmp = ((PyObject*)p->__pyx_v_vert_axis);
69595 p->__pyx_v_vert_axis = Py_None; Py_INCREF(Py_None);
69597 tmp = ((PyObject*)p->__pyx_v_water);
69598 p->__pyx_v_water = Py_None; Py_INCREF(Py_None);
69600 tmp = ((PyObject*)p->__pyx_v_waterLevel);
69601 p->__pyx_v_waterLevel = Py_None; Py_INCREF(Py_None);
69606 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet = {
69607 PyVarObject_HEAD_INIT(0, 0)
69608 "mprans.BoundaryConditions.__pyx_scope_struct_6_setTwoPhaseVelocityInlet",
69609 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet),
69611 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet,
69612 #if PY_VERSION_HEX < 0x030800b4
69615 #if PY_VERSION_HEX >= 0x030800b4
69620 #if PY_MAJOR_VERSION < 3
69623 #if PY_MAJOR_VERSION >= 3
69636 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69638 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet,
69639 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet,
69654 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet,
69664 #if PY_VERSION_HEX >= 0x030400a1
69667 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69670 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69673 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69678 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet[8];
69679 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet = 0;
69681 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69683 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet)))) {
69684 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet];
69685 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet));
69686 (void) PyObject_INIT(o, t);
69687 PyObject_GC_Track(o);
69689 o = (*t->tp_alloc)(t, 0);
69690 if (unlikely(!o))
return 0;
69695 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(PyObject *o) {
69696 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)o;
69697 PyObject_GC_UnTrack(o);
69698 Py_CLEAR(p->__pyx_outer_scope);
69699 Py_CLEAR(p->__pyx_v_i);
69700 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet)))) {
69701 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)o);
69703 (*Py_TYPE(o)->tp_free)(o);
69707 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(PyObject *o, visitproc
v,
void *a) {
69709 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)o;
69710 if (p->__pyx_outer_scope) {
69711 e = (*v)(((PyObject *)p->__pyx_outer_scope), a);
if (e)
return e;
69713 if (p->__pyx_v_i) {
69714 e = (*v)(p->__pyx_v_i, a);
if (e)
return e;
69719 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet(PyObject *o) {
69721 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet *)o;
69722 tmp = ((PyObject*)p->__pyx_outer_scope);
69723 p->__pyx_outer_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet *)Py_None); Py_INCREF(Py_None);
69725 tmp = ((PyObject*)p->__pyx_v_i);
69726 p->__pyx_v_i = Py_None; Py_INCREF(Py_None);
69731 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet = {
69732 PyVarObject_HEAD_INIT(0, 0)
69733 "mprans.BoundaryConditions.__pyx_scope_struct_7_get_inlet_ux_dirichlet",
69734 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet),
69736 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet,
69737 #if PY_VERSION_HEX < 0x030800b4
69740 #if PY_VERSION_HEX >= 0x030800b4
69745 #if PY_MAJOR_VERSION < 3
69748 #if PY_MAJOR_VERSION >= 3
69761 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69763 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet,
69764 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet,
69779 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet,
69789 #if PY_VERSION_HEX >= 0x030400a1
69792 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
69795 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
69798 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
69803 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth[8];
69804 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth = 0;
69806 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
69808 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth)))) {
69809 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth];
69810 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth));
69811 (void) PyObject_INIT(o, t);
69812 PyObject_GC_Track(o);
69814 o = (*t->tp_alloc)(t, 0);
69815 if (unlikely(!o))
return 0;
69820 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(PyObject *o) {
69821 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)o;
69822 PyObject_GC_UnTrack(o);
69823 Py_CLEAR(p->__pyx_v_U);
69824 Py_CLEAR(p->__pyx_v_Uwind);
69825 Py_CLEAR(p->__pyx_v_air);
69826 Py_CLEAR(p->__pyx_v_dissipationInflow);
69827 Py_CLEAR(p->__pyx_v_dissipationInflowAir);
69828 Py_CLEAR(p->__pyx_v_g);
69829 Py_CLEAR(p->__pyx_v_kInflow);
69830 Py_CLEAR(p->__pyx_v_kInflowAir);
69831 Py_CLEAR(p->__pyx_v_pRef);
69832 Py_CLEAR(p->__pyx_v_refLevel);
69833 Py_CLEAR(p->__pyx_v_rhoDown);
69834 Py_CLEAR(p->__pyx_v_rhoUp);
69835 Py_CLEAR(p->__pyx_v_seaLevel);
69836 Py_CLEAR(p->__pyx_v_smoothing);
69837 Py_CLEAR(p->__pyx_v_vert_axis);
69838 Py_CLEAR(p->__pyx_v_water);
69839 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth)))) {
69840 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)o);
69842 (*Py_TYPE(o)->tp_free)(o);
69846 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(PyObject *o, visitproc
v,
void *a) {
69848 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)o;
69849 if (p->__pyx_v_U) {
69850 e = (*v)(p->__pyx_v_U, a);
if (e)
return e;
69852 if (p->__pyx_v_Uwind) {
69853 e = (*v)(p->__pyx_v_Uwind, a);
if (e)
return e;
69855 if (p->__pyx_v_air) {
69856 e = (*v)(p->__pyx_v_air, a);
if (e)
return e;
69858 if (p->__pyx_v_dissipationInflow) {
69859 e = (*v)(p->__pyx_v_dissipationInflow, a);
if (e)
return e;
69861 if (p->__pyx_v_dissipationInflowAir) {
69862 e = (*v)(p->__pyx_v_dissipationInflowAir, a);
if (e)
return e;
69864 if (p->__pyx_v_g) {
69865 e = (*v)(p->__pyx_v_g, a);
if (e)
return e;
69867 if (p->__pyx_v_kInflow) {
69868 e = (*v)(p->__pyx_v_kInflow, a);
if (e)
return e;
69870 if (p->__pyx_v_kInflowAir) {
69871 e = (*v)(p->__pyx_v_kInflowAir, a);
if (e)
return e;
69873 if (p->__pyx_v_pRef) {
69874 e = (*v)(p->__pyx_v_pRef, a);
if (e)
return e;
69876 if (p->__pyx_v_refLevel) {
69877 e = (*v)(p->__pyx_v_refLevel, a);
if (e)
return e;
69879 if (p->__pyx_v_rhoDown) {
69880 e = (*v)(p->__pyx_v_rhoDown, a);
if (e)
return e;
69882 if (p->__pyx_v_rhoUp) {
69883 e = (*v)(p->__pyx_v_rhoUp, a);
if (e)
return e;
69885 if (p->__pyx_v_seaLevel) {
69886 e = (*v)(p->__pyx_v_seaLevel, a);
if (e)
return e;
69888 if (p->__pyx_v_smoothing) {
69889 e = (*v)(p->__pyx_v_smoothing, a);
if (e)
return e;
69891 if (p->__pyx_v_vert_axis) {
69892 e = (*v)(p->__pyx_v_vert_axis, a);
if (e)
return e;
69894 if (p->__pyx_v_water) {
69895 e = (*v)(p->__pyx_v_water, a);
if (e)
return e;
69900 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth(PyObject *o) {
69902 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)o;
69903 tmp = ((PyObject*)p->__pyx_v_U);
69904 p->__pyx_v_U = Py_None; Py_INCREF(Py_None);
69906 tmp = ((PyObject*)p->__pyx_v_Uwind);
69907 p->__pyx_v_Uwind = Py_None; Py_INCREF(Py_None);
69909 tmp = ((PyObject*)p->__pyx_v_air);
69910 p->__pyx_v_air = Py_None; Py_INCREF(Py_None);
69912 tmp = ((PyObject*)p->__pyx_v_dissipationInflow);
69913 p->__pyx_v_dissipationInflow = Py_None; Py_INCREF(Py_None);
69915 tmp = ((PyObject*)p->__pyx_v_dissipationInflowAir);
69916 p->__pyx_v_dissipationInflowAir = Py_None; Py_INCREF(Py_None);
69918 tmp = ((PyObject*)p->__pyx_v_g);
69919 p->__pyx_v_g = Py_None; Py_INCREF(Py_None);
69921 tmp = ((PyObject*)p->__pyx_v_kInflow);
69922 p->__pyx_v_kInflow = Py_None; Py_INCREF(Py_None);
69924 tmp = ((PyObject*)p->__pyx_v_kInflowAir);
69925 p->__pyx_v_kInflowAir = Py_None; Py_INCREF(Py_None);
69927 tmp = ((PyObject*)p->__pyx_v_pRef);
69928 p->__pyx_v_pRef = Py_None; Py_INCREF(Py_None);
69930 tmp = ((PyObject*)p->__pyx_v_refLevel);
69931 p->__pyx_v_refLevel = Py_None; Py_INCREF(Py_None);
69933 tmp = ((PyObject*)p->__pyx_v_rhoDown);
69934 p->__pyx_v_rhoDown = Py_None; Py_INCREF(Py_None);
69936 tmp = ((PyObject*)p->__pyx_v_rhoUp);
69937 p->__pyx_v_rhoUp = Py_None; Py_INCREF(Py_None);
69939 tmp = ((PyObject*)p->__pyx_v_seaLevel);
69940 p->__pyx_v_seaLevel = Py_None; Py_INCREF(Py_None);
69942 tmp = ((PyObject*)p->__pyx_v_smoothing);
69943 p->__pyx_v_smoothing = Py_None; Py_INCREF(Py_None);
69945 tmp = ((PyObject*)p->__pyx_v_vert_axis);
69946 p->__pyx_v_vert_axis = Py_None; Py_INCREF(Py_None);
69948 tmp = ((PyObject*)p->__pyx_v_water);
69949 p->__pyx_v_water = Py_None; Py_INCREF(Py_None);
69954 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth = {
69955 PyVarObject_HEAD_INIT(0, 0)
69956 "mprans.BoundaryConditions.__pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth",
69957 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth),
69959 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth,
69960 #if PY_VERSION_HEX < 0x030800b4
69963 #if PY_VERSION_HEX >= 0x030800b4
69968 #if PY_MAJOR_VERSION < 3
69971 #if PY_MAJOR_VERSION >= 3
69984 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
69986 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth,
69987 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth,
70002 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth,
70012 #if PY_VERSION_HEX >= 0x030400a1
70015 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70018 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70021 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70026 static struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet[8];
70027 static int __pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet = 0;
70029 static PyObject *__pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
70031 if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet > 0) & (t->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet)))) {
70032 o = (PyObject*)__pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet[--__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet];
70033 memset(o, 0,
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet));
70034 (void) PyObject_INIT(o, t);
70035 PyObject_GC_Track(o);
70037 o = (*t->tp_alloc)(t, 0);
70038 if (unlikely(!o))
return 0;
70043 static void __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(PyObject *o) {
70044 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)o;
70045 PyObject_GC_UnTrack(o);
70046 Py_CLEAR(p->__pyx_outer_scope);
70047 Py_CLEAR(p->__pyx_v_i);
70048 if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet < 8) & (Py_TYPE(o)->tp_basicsize ==
sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet)))) {
70049 __pyx_freelist_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet[__pyx_freecount_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet++] = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)o);
70051 (*Py_TYPE(o)->tp_free)(o);
70055 static int __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(PyObject *o, visitproc
v,
void *a) {
70057 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)o;
70058 if (p->__pyx_outer_scope) {
70059 e = (*v)(((PyObject *)p->__pyx_outer_scope), a);
if (e)
return e;
70061 if (p->__pyx_v_i) {
70062 e = (*v)(p->__pyx_v_i, a);
if (e)
return e;
70067 static int __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet(PyObject *o) {
70069 struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *p = (
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet *)o;
70070 tmp = ((PyObject*)p->__pyx_outer_scope);
70071 p->__pyx_outer_scope = ((
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth *)Py_None); Py_INCREF(Py_None);
70073 tmp = ((PyObject*)p->__pyx_v_i);
70074 p->__pyx_v_i = Py_None; Py_INCREF(Py_None);
70079 static PyTypeObject __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet = {
70080 PyVarObject_HEAD_INIT(0, 0)
70081 "mprans.BoundaryConditions.__pyx_scope_struct_9_get_inlet_ux_dirichlet",
70082 sizeof(
struct __pyx_obj_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet),
70084 __pyx_tp_dealloc_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet,
70085 #if PY_VERSION_HEX < 0x030800b4
70088 #if PY_VERSION_HEX >= 0x030800b4
70093 #if PY_MAJOR_VERSION < 3
70096 #if PY_MAJOR_VERSION >= 3
70109 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
70111 __pyx_tp_traverse_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet,
70112 __pyx_tp_clear_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet,
70127 __pyx_tp_new_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet,
70137 #if PY_VERSION_HEX >= 0x030400a1
70140 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70143 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70146 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70150 static struct __pyx_vtabstruct_array __pyx_vtable_array;
70152 static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k) {
70153 struct __pyx_array_obj *p;
70155 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
70156 o = (*t->tp_alloc)(t, 0);
70158 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
70160 if (unlikely(!o))
return 0;
70161 p = ((
struct __pyx_array_obj *)o);
70162 p->__pyx_vtab = __pyx_vtabptr_array;
70163 p->mode = ((PyObject*)Py_None); Py_INCREF(Py_None);
70164 p->_format = ((PyObject*)Py_None); Py_INCREF(Py_None);
70165 if (unlikely(__pyx_array___cinit__(o, a, k) < 0))
goto bad;
70168 Py_DECREF(o); o = 0;
70172 static void __pyx_tp_dealloc_array(PyObject *o) {
70173 struct __pyx_array_obj *p = (
struct __pyx_array_obj *)o;
70174 #if CYTHON_USE_TP_FINALIZE
70175 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
70176 if (PyObject_CallFinalizerFromDealloc(o))
return;
70180 PyObject *etype, *eval, *etb;
70181 PyErr_Fetch(&etype, &eval, &etb);
70182 __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
70183 __pyx_array___dealloc__(o);
70184 __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
70185 PyErr_Restore(etype, eval, etb);
70188 Py_CLEAR(p->_format);
70189 (*Py_TYPE(o)->tp_free)(o);
70191 static PyObject *__pyx_sq_item_array(PyObject *o, Py_ssize_t i) {
70193 PyObject *x = PyInt_FromSsize_t(i);
if(!x)
return 0;
70194 r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
70199 static int __pyx_mp_ass_subscript_array(PyObject *o, PyObject *i, PyObject *
v) {
70201 return __pyx_array___setitem__(o, i,
v);
70204 PyErr_Format(PyExc_NotImplementedError,
70205 "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
70210 static PyObject *__pyx_tp_getattro_array(PyObject *o, PyObject *
n) {
70211 PyObject *
v = __Pyx_PyObject_GenericGetAttr(o,
n);
70212 if (!
v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
70214 v = __pyx_array___getattr__(o,
n);
70219 static PyObject *__pyx_getprop___pyx_array_memview(PyObject *o, CYTHON_UNUSED
void *x) {
70220 return __pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(o);
70223 static PyMethodDef __pyx_methods_array[] = {
70224 {
"__getattr__", (PyCFunction)__pyx_array___getattr__, METH_O|METH_COEXIST, 0},
70225 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_array_1__reduce_cython__, METH_NOARGS, 0},
70226 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_array_3__setstate_cython__, METH_O, 0},
70230 static struct PyGetSetDef __pyx_getsets_array[] = {
70231 {(
char *)
"memview", __pyx_getprop___pyx_array_memview, 0, (
char *)0, 0},
70235 static PySequenceMethods __pyx_tp_as_sequence_array = {
70236 __pyx_array___len__,
70239 __pyx_sq_item_array,
70248 static PyMappingMethods __pyx_tp_as_mapping_array = {
70249 __pyx_array___len__,
70250 __pyx_array___getitem__,
70251 __pyx_mp_ass_subscript_array,
70254 static PyBufferProcs __pyx_tp_as_buffer_array = {
70255 #if PY_MAJOR_VERSION < 3
70258 #if PY_MAJOR_VERSION < 3
70261 #if PY_MAJOR_VERSION < 3
70264 #if PY_MAJOR_VERSION < 3
70267 __pyx_array_getbuffer,
70271 static PyTypeObject __pyx_type___pyx_array = {
70272 PyVarObject_HEAD_INIT(0, 0)
70273 "mprans.BoundaryConditions.array",
70274 sizeof(
struct __pyx_array_obj),
70276 __pyx_tp_dealloc_array,
70277 #if PY_VERSION_HEX < 0x030800b4
70280 #if PY_VERSION_HEX >= 0x030800b4
70285 #if PY_MAJOR_VERSION < 3
70288 #if PY_MAJOR_VERSION >= 3
70293 &__pyx_tp_as_sequence_array,
70294 &__pyx_tp_as_mapping_array,
70298 __pyx_tp_getattro_array,
70300 &__pyx_tp_as_buffer_array,
70301 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
70309 __pyx_methods_array,
70311 __pyx_getsets_array,
70319 __pyx_tp_new_array,
70329 #if PY_VERSION_HEX >= 0x030400a1
70332 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70335 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70338 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70343 static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
70344 struct __pyx_MemviewEnum_obj *p;
70346 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
70347 o = (*t->tp_alloc)(t, 0);
70349 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
70351 if (unlikely(!o))
return 0;
70352 p = ((
struct __pyx_MemviewEnum_obj *)o);
70353 p->name = Py_None; Py_INCREF(Py_None);
70357 static void __pyx_tp_dealloc_Enum(PyObject *o) {
70358 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
70359 #if CYTHON_USE_TP_FINALIZE
70360 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
70361 if (PyObject_CallFinalizerFromDealloc(o))
return;
70364 PyObject_GC_UnTrack(o);
70366 (*Py_TYPE(o)->tp_free)(o);
70369 static int __pyx_tp_traverse_Enum(PyObject *o, visitproc
v,
void *a) {
70371 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
70373 e = (*v)(p->name, a);
if (e)
return e;
70378 static int __pyx_tp_clear_Enum(PyObject *o) {
70380 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
70381 tmp = ((PyObject*)p->name);
70382 p->name = Py_None; Py_INCREF(Py_None);
70387 static PyMethodDef __pyx_methods_Enum[] = {
70388 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_1__reduce_cython__, METH_NOARGS, 0},
70389 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_3__setstate_cython__, METH_O, 0},
70393 static PyTypeObject __pyx_type___pyx_MemviewEnum = {
70394 PyVarObject_HEAD_INIT(0, 0)
70395 "mprans.BoundaryConditions.Enum",
70396 sizeof(
struct __pyx_MemviewEnum_obj),
70398 __pyx_tp_dealloc_Enum,
70399 #if PY_VERSION_HEX < 0x030800b4
70402 #if PY_VERSION_HEX >= 0x030800b4
70407 #if PY_MAJOR_VERSION < 3
70410 #if PY_MAJOR_VERSION >= 3
70413 __pyx_MemviewEnum___repr__,
70423 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
70425 __pyx_tp_traverse_Enum,
70426 __pyx_tp_clear_Enum,
70431 __pyx_methods_Enum,
70439 __pyx_MemviewEnum___init__,
70451 #if PY_VERSION_HEX >= 0x030400a1
70454 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70457 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70460 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70464 static struct __pyx_vtabstruct_memoryview __pyx_vtable_memoryview;
70466 static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k) {
70467 struct __pyx_memoryview_obj *p;
70469 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
70470 o = (*t->tp_alloc)(t, 0);
70472 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
70474 if (unlikely(!o))
return 0;
70475 p = ((
struct __pyx_memoryview_obj *)o);
70476 p->__pyx_vtab = __pyx_vtabptr_memoryview;
70477 p->obj = Py_None; Py_INCREF(Py_None);
70478 p->_size = Py_None; Py_INCREF(Py_None);
70479 p->_array_interface = Py_None; Py_INCREF(Py_None);
70480 p->view.obj = NULL;
70481 if (unlikely(__pyx_memoryview___cinit__(o, a, k) < 0))
goto bad;
70484 Py_DECREF(o); o = 0;
70488 static void __pyx_tp_dealloc_memoryview(PyObject *o) {
70489 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
70490 #if CYTHON_USE_TP_FINALIZE
70491 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
70492 if (PyObject_CallFinalizerFromDealloc(o))
return;
70495 PyObject_GC_UnTrack(o);
70497 PyObject *etype, *eval, *etb;
70498 PyErr_Fetch(&etype, &eval, &etb);
70499 __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
70500 __pyx_memoryview___dealloc__(o);
70501 __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
70502 PyErr_Restore(etype, eval, etb);
70505 Py_CLEAR(p->_size);
70506 Py_CLEAR(p->_array_interface);
70507 (*Py_TYPE(o)->tp_free)(o);
70510 static int __pyx_tp_traverse_memoryview(PyObject *o, visitproc
v,
void *a) {
70512 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
70514 e = (*v)(p->obj, a);
if (e)
return e;
70517 e = (*v)(p->_size, a);
if (e)
return e;
70519 if (p->_array_interface) {
70520 e = (*v)(p->_array_interface, a);
if (e)
return e;
70523 e = (*v)(p->view.obj, a);
if (e)
return e;
70528 static int __pyx_tp_clear_memoryview(PyObject *o) {
70530 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
70531 tmp = ((PyObject*)p->obj);
70532 p->obj = Py_None; Py_INCREF(Py_None);
70534 tmp = ((PyObject*)p->_size);
70535 p->_size = Py_None; Py_INCREF(Py_None);
70537 tmp = ((PyObject*)p->_array_interface);
70538 p->_array_interface = Py_None; Py_INCREF(Py_None);
70540 Py_CLEAR(p->view.obj);
70543 static PyObject *__pyx_sq_item_memoryview(PyObject *o, Py_ssize_t i) {
70545 PyObject *x = PyInt_FromSsize_t(i);
if(!x)
return 0;
70546 r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
70551 static int __pyx_mp_ass_subscript_memoryview(PyObject *o, PyObject *i, PyObject *
v) {
70553 return __pyx_memoryview___setitem__(o, i,
v);
70556 PyErr_Format(PyExc_NotImplementedError,
70557 "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
70562 static PyObject *__pyx_getprop___pyx_memoryview_T(PyObject *o, CYTHON_UNUSED
void *x) {
70563 return __pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(o);
70566 static PyObject *__pyx_getprop___pyx_memoryview_base(PyObject *o, CYTHON_UNUSED
void *x) {
70567 return __pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(o);
70570 static PyObject *__pyx_getprop___pyx_memoryview_shape(PyObject *o, CYTHON_UNUSED
void *x) {
70571 return __pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(o);
70574 static PyObject *__pyx_getprop___pyx_memoryview_strides(PyObject *o, CYTHON_UNUSED
void *x) {
70575 return __pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(o);
70578 static PyObject *__pyx_getprop___pyx_memoryview_suboffsets(PyObject *o, CYTHON_UNUSED
void *x) {
70579 return __pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(o);
70582 static PyObject *__pyx_getprop___pyx_memoryview_ndim(PyObject *o, CYTHON_UNUSED
void *x) {
70583 return __pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(o);
70586 static PyObject *__pyx_getprop___pyx_memoryview_itemsize(PyObject *o, CYTHON_UNUSED
void *x) {
70587 return __pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(o);
70590 static PyObject *__pyx_getprop___pyx_memoryview_nbytes(PyObject *o, CYTHON_UNUSED
void *x) {
70591 return __pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(o);
70594 static PyObject *__pyx_getprop___pyx_memoryview_size(PyObject *o, CYTHON_UNUSED
void *x) {
70595 return __pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(o);
70598 static PyMethodDef __pyx_methods_memoryview[] = {
70599 {
"is_c_contig", (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, 0},
70600 {
"is_f_contig", (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, 0},
70601 {
"copy", (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, 0},
70602 {
"copy_fortran", (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, 0},
70603 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_1__reduce_cython__, METH_NOARGS, 0},
70604 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_3__setstate_cython__, METH_O, 0},
70608 static struct PyGetSetDef __pyx_getsets_memoryview[] = {
70609 {(
char *)
"T", __pyx_getprop___pyx_memoryview_T, 0, (
char *)0, 0},
70610 {(
char *)
"base", __pyx_getprop___pyx_memoryview_base, 0, (
char *)0, 0},
70611 {(
char *)
"shape", __pyx_getprop___pyx_memoryview_shape, 0, (
char *)0, 0},
70612 {(
char *)
"strides", __pyx_getprop___pyx_memoryview_strides, 0, (
char *)0, 0},
70613 {(
char *)
"suboffsets", __pyx_getprop___pyx_memoryview_suboffsets, 0, (
char *)0, 0},
70614 {(
char *)
"ndim", __pyx_getprop___pyx_memoryview_ndim, 0, (
char *)0, 0},
70615 {(
char *)
"itemsize", __pyx_getprop___pyx_memoryview_itemsize, 0, (
char *)0, 0},
70616 {(
char *)
"nbytes", __pyx_getprop___pyx_memoryview_nbytes, 0, (
char *)0, 0},
70617 {(
char *)
"size", __pyx_getprop___pyx_memoryview_size, 0, (
char *)0, 0},
70621 static PySequenceMethods __pyx_tp_as_sequence_memoryview = {
70622 __pyx_memoryview___len__,
70625 __pyx_sq_item_memoryview,
70634 static PyMappingMethods __pyx_tp_as_mapping_memoryview = {
70635 __pyx_memoryview___len__,
70636 __pyx_memoryview___getitem__,
70637 __pyx_mp_ass_subscript_memoryview,
70640 static PyBufferProcs __pyx_tp_as_buffer_memoryview = {
70641 #if PY_MAJOR_VERSION < 3
70644 #if PY_MAJOR_VERSION < 3
70647 #if PY_MAJOR_VERSION < 3
70650 #if PY_MAJOR_VERSION < 3
70653 __pyx_memoryview_getbuffer,
70657 static PyTypeObject __pyx_type___pyx_memoryview = {
70658 PyVarObject_HEAD_INIT(0, 0)
70659 "mprans.BoundaryConditions.memoryview",
70660 sizeof(
struct __pyx_memoryview_obj),
70662 __pyx_tp_dealloc_memoryview,
70663 #if PY_VERSION_HEX < 0x030800b4
70666 #if PY_VERSION_HEX >= 0x030800b4
70671 #if PY_MAJOR_VERSION < 3
70674 #if PY_MAJOR_VERSION >= 3
70677 __pyx_memoryview___repr__,
70679 &__pyx_tp_as_sequence_memoryview,
70680 &__pyx_tp_as_mapping_memoryview,
70683 __pyx_memoryview___str__,
70686 &__pyx_tp_as_buffer_memoryview,
70687 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
70689 __pyx_tp_traverse_memoryview,
70690 __pyx_tp_clear_memoryview,
70695 __pyx_methods_memoryview,
70697 __pyx_getsets_memoryview,
70705 __pyx_tp_new_memoryview,
70715 #if PY_VERSION_HEX >= 0x030400a1
70718 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70721 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70724 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70728 static struct __pyx_vtabstruct__memoryviewslice __pyx_vtable__memoryviewslice;
70730 static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k) {
70731 struct __pyx_memoryviewslice_obj *p;
70732 PyObject *o = __pyx_tp_new_memoryview(t, a, k);
70733 if (unlikely(!o))
return 0;
70734 p = ((
struct __pyx_memoryviewslice_obj *)o);
70735 p->__pyx_base.__pyx_vtab = (
struct __pyx_vtabstruct_memoryview*)__pyx_vtabptr__memoryviewslice;
70736 p->from_object = Py_None; Py_INCREF(Py_None);
70737 p->from_slice.memview = NULL;
70741 static void __pyx_tp_dealloc__memoryviewslice(PyObject *o) {
70742 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
70743 #if CYTHON_USE_TP_FINALIZE
70744 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
70745 if (PyObject_CallFinalizerFromDealloc(o))
return;
70748 PyObject_GC_UnTrack(o);
70750 PyObject *etype, *eval, *etb;
70751 PyErr_Fetch(&etype, &eval, &etb);
70752 __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
70753 __pyx_memoryviewslice___dealloc__(o);
70754 __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
70755 PyErr_Restore(etype, eval, etb);
70757 Py_CLEAR(p->from_object);
70758 PyObject_GC_Track(o);
70759 __pyx_tp_dealloc_memoryview(o);
70762 static int __pyx_tp_traverse__memoryviewslice(PyObject *o, visitproc
v,
void *a) {
70764 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
70765 e = __pyx_tp_traverse_memoryview(o,
v, a);
if (e)
return e;
70766 if (p->from_object) {
70767 e = (*v)(p->from_object, a);
if (e)
return e;
70772 static int __pyx_tp_clear__memoryviewslice(PyObject *o) {
70774 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
70775 __pyx_tp_clear_memoryview(o);
70776 tmp = ((PyObject*)p->from_object);
70777 p->from_object = Py_None; Py_INCREF(Py_None);
70779 __PYX_XDEC_MEMVIEW(&p->from_slice, 1);
70783 static PyObject *__pyx_getprop___pyx_memoryviewslice_base(PyObject *o, CYTHON_UNUSED
void *x) {
70784 return __pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(o);
70787 static PyMethodDef __pyx_methods__memoryviewslice[] = {
70788 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_1__reduce_cython__, METH_NOARGS, 0},
70789 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_3__setstate_cython__, METH_O, 0},
70793 static struct PyGetSetDef __pyx_getsets__memoryviewslice[] = {
70794 {(
char *)
"base", __pyx_getprop___pyx_memoryviewslice_base, 0, (
char *)0, 0},
70798 static PyTypeObject __pyx_type___pyx_memoryviewslice = {
70799 PyVarObject_HEAD_INIT(0, 0)
70800 "mprans.BoundaryConditions._memoryviewslice",
70801 sizeof(
struct __pyx_memoryviewslice_obj),
70803 __pyx_tp_dealloc__memoryviewslice,
70804 #if PY_VERSION_HEX < 0x030800b4
70807 #if PY_VERSION_HEX >= 0x030800b4
70812 #if PY_MAJOR_VERSION < 3
70815 #if PY_MAJOR_VERSION >= 3
70818 #if CYTHON_COMPILING_IN_PYPY
70819 __pyx_memoryview___repr__,
70828 #if CYTHON_COMPILING_IN_PYPY
70829 __pyx_memoryview___str__,
70836 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
70837 "Internal class for passing memoryview slices to Python",
70838 __pyx_tp_traverse__memoryviewslice,
70839 __pyx_tp_clear__memoryviewslice,
70844 __pyx_methods__memoryviewslice,
70846 __pyx_getsets__memoryviewslice,
70854 __pyx_tp_new__memoryviewslice,
70864 #if PY_VERSION_HEX >= 0x030400a1
70867 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
70870 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
70873 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
70878 static PyMethodDef __pyx_methods[] = {
70882 #if PY_MAJOR_VERSION >= 3
70883 #if CYTHON_PEP489_MULTI_PHASE_INIT
70884 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
70885 static int __pyx_pymod_exec_BoundaryConditions(PyObject* module);
70886 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
70887 {Py_mod_create, (
void*)__pyx_pymod_create},
70888 {Py_mod_exec, (
void*)__pyx_pymod_exec_BoundaryConditions},
70893 static struct PyModuleDef __pyx_moduledef = {
70894 PyModuleDef_HEAD_INIT,
70895 "BoundaryConditions",
70897 #if CYTHON_PEP489_MULTI_PHASE_INIT
70903 #if CYTHON_PEP489_MULTI_PHASE_INIT
70904 __pyx_moduledef_slots,
70913 #ifndef CYTHON_SMALL_CODE
70914 #if defined(__clang__)
70915 #define CYTHON_SMALL_CODE
70916 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
70917 #define CYTHON_SMALL_CODE __attribute__((cold))
70919 #define CYTHON_SMALL_CODE
70923 static __Pyx_StringTabEntry __pyx_string_tab[] = {
70924 {&__pyx_n_s_ASCII, __pyx_k_ASCII,
sizeof(__pyx_k_ASCII), 0, 0, 1, 1},
70925 {&__pyx_n_s_AV_base, __pyx_k_AV_base,
sizeof(__pyx_k_AV_base), 0, 0, 1, 1},
70926 {&__pyx_n_s_Atmosphere, __pyx_k_Atmosphere,
sizeof(__pyx_k_Atmosphere), 0, 0, 1, 1},
70927 {&__pyx_n_s_AuxiliaryVariables, __pyx_k_AuxiliaryVariables,
sizeof(__pyx_k_AuxiliaryVariables), 0, 0, 1, 1},
70928 {&__pyx_kp_s_Auxiliary_variable_used_to_calc, __pyx_k_Auxiliary_variable_used_to_calc,
sizeof(__pyx_k_Auxiliary_variable_used_to_calc), 0, 0, 1, 0},
70929 {&__pyx_kp_s_Auxiliary_variable_used_to_calc_2, __pyx_k_Auxiliary_variable_used_to_calc_2,
sizeof(__pyx_k_Auxiliary_variable_used_to_calc_2), 0, 0, 1, 0},
70930 {&__pyx_n_s_B, __pyx_k_B,
sizeof(__pyx_k_B), 0, 0, 1, 1},
70931 {&__pyx_n_s_BC_RANS, __pyx_k_BC_RANS,
sizeof(__pyx_k_BC_RANS), 0, 0, 1, 1},
70932 {&__pyx_n_s_BC_RANS___cpp_MoveMesh_h, __pyx_k_BC_RANS___cpp_MoveMesh_h,
sizeof(__pyx_k_BC_RANS___cpp_MoveMesh_h), 0, 0, 1, 1},
70933 {&__pyx_n_s_BC_RANS___cpp_MoveMesh_hx, __pyx_k_BC_RANS___cpp_MoveMesh_hx,
sizeof(__pyx_k_BC_RANS___cpp_MoveMesh_hx), 0, 0, 1, 1},
70934 {&__pyx_n_s_BC_RANS___cpp_MoveMesh_hy, __pyx_k_BC_RANS___cpp_MoveMesh_hy,
sizeof(__pyx_k_BC_RANS___cpp_MoveMesh_hy), 0, 0, 1, 1},
70935 {&__pyx_n_s_BC_RANS___cpp_MoveMesh_hz, __pyx_k_BC_RANS___cpp_MoveMesh_hz,
sizeof(__pyx_k_BC_RANS___cpp_MoveMesh_hz), 0, 0, 1, 1},
70936 {&__pyx_n_s_BC_RANS___reduce_cython, __pyx_k_BC_RANS___reduce_cython,
sizeof(__pyx_k_BC_RANS___reduce_cython), 0, 0, 1, 1},
70937 {&__pyx_n_s_BC_RANS___setstate_cython, __pyx_k_BC_RANS___setstate_cython,
sizeof(__pyx_k_BC_RANS___setstate_cython), 0, 0, 1, 1},
70938 {&__pyx_n_s_BC_RANS_reset, __pyx_k_BC_RANS_reset,
sizeof(__pyx_k_BC_RANS_reset), 0, 0, 1, 1},
70939 {&__pyx_n_s_BC_RANS_setAtmosphere, __pyx_k_BC_RANS_setAtmosphere,
sizeof(__pyx_k_BC_RANS_setAtmosphere), 0, 0, 1, 1},
70940 {&__pyx_n_s_BC_RANS_setChMoveMesh, __pyx_k_BC_RANS_setChMoveMesh,
sizeof(__pyx_k_BC_RANS_setChMoveMesh), 0, 0, 1, 1},
70941 {&__pyx_n_s_BC_RANS_setConstantInletVelocity, __pyx_k_BC_RANS_setConstantInletVelocity,
sizeof(__pyx_k_BC_RANS_setConstantInletVelocity), 0, 0, 1, 1},
70942 {&__pyx_n_s_BC_RANS_setConstantOutletPressur, __pyx_k_BC_RANS_setConstantOutletPressur,
sizeof(__pyx_k_BC_RANS_setConstantOutletPressur), 0, 0, 1, 1},
70943 {&__pyx_n_s_BC_RANS_setFixedNodes, __pyx_k_BC_RANS_setFixedNodes,
sizeof(__pyx_k_BC_RANS_setFixedNodes), 0, 0, 1, 1},
70944 {&__pyx_n_s_BC_RANS_setFreeSlip, __pyx_k_BC_RANS_setFreeSlip,
sizeof(__pyx_k_BC_RANS_setFreeSlip), 0, 0, 1, 1},
70945 {&__pyx_n_s_BC_RANS_setHydrostaticPressureOu, __pyx_k_BC_RANS_setHydrostaticPressureOu,
sizeof(__pyx_k_BC_RANS_setHydrostaticPressureOu), 0, 0, 1, 1},
70946 {&__pyx_n_s_BC_RANS_setMoveMesh, __pyx_k_BC_RANS_setMoveMesh,
sizeof(__pyx_k_BC_RANS_setMoveMesh), 0, 0, 1, 1},
70947 {&__pyx_n_s_BC_RANS_setNoSlip, __pyx_k_BC_RANS_setNoSlip,
sizeof(__pyx_k_BC_RANS_setNoSlip), 0, 0, 1, 1},
70948 {&__pyx_n_s_BC_RANS_setNonMaterial, __pyx_k_BC_RANS_setNonMaterial,
sizeof(__pyx_k_BC_RANS_setNonMaterial), 0, 0, 1, 1},
70949 {&__pyx_n_s_BC_RANS_setRigidBodyMoveMesh, __pyx_k_BC_RANS_setRigidBodyMoveMesh,
sizeof(__pyx_k_BC_RANS_setRigidBodyMoveMesh), 0, 0, 1, 1},
70950 {&__pyx_n_s_BC_RANS_setTank, __pyx_k_BC_RANS_setTank,
sizeof(__pyx_k_BC_RANS_setTank), 0, 0, 1, 1},
70951 {&__pyx_n_s_BC_RANS_setTurbulentDirichlet, __pyx_k_BC_RANS_setTurbulentDirichlet,
sizeof(__pyx_k_BC_RANS_setTurbulentDirichlet), 0, 0, 1, 1},
70952 {&__pyx_n_s_BC_RANS_setTurbulentZeroGradient, __pyx_k_BC_RANS_setTurbulentZeroGradient,
sizeof(__pyx_k_BC_RANS_setTurbulentZeroGradient), 0, 0, 1, 1},
70953 {&__pyx_n_s_BC_RANS_setTwoPhaseVelocityInlet, __pyx_k_BC_RANS_setTwoPhaseVelocityInlet,
sizeof(__pyx_k_BC_RANS_setTwoPhaseVelocityInlet), 0, 0, 1, 1},
70954 {&__pyx_n_s_BC_RANS_setUnsteadyTwoPhaseVeloc, __pyx_k_BC_RANS_setUnsteadyTwoPhaseVeloc,
sizeof(__pyx_k_BC_RANS_setUnsteadyTwoPhaseVeloc), 0, 0, 1, 1},
70955 {&__pyx_n_s_BC_RANS_setWallFunction, __pyx_k_BC_RANS_setWallFunction,
sizeof(__pyx_k_BC_RANS_setWallFunction), 0, 0, 1, 1},
70956 {&__pyx_n_s_BoundaryConditions, __pyx_k_BoundaryConditions,
sizeof(__pyx_k_BoundaryConditions), 0, 0, 1, 1},
70957 {&__pyx_kp_s_Boundary_orientation_must_be_def, __pyx_k_Boundary_orientation_must_be_def,
sizeof(__pyx_k_Boundary_orientation_must_be_def), 0, 0, 1, 0},
70958 {&__pyx_kp_s_Buffer_view_does_not_expose_stri, __pyx_k_Buffer_view_does_not_expose_stri,
sizeof(__pyx_k_Buffer_view_does_not_expose_stri), 0, 0, 1, 0},
70959 {&__pyx_kp_s_Can_only_create_a_buffer_that_is, __pyx_k_Can_only_create_a_buffer_that_is,
sizeof(__pyx_k_Can_only_create_a_buffer_that_is), 0, 0, 1, 0},
70960 {&__pyx_kp_s_Cannot_assign_to_read_only_memor, __pyx_k_Cannot_assign_to_read_only_memor,
sizeof(__pyx_k_Cannot_assign_to_read_only_memor), 0, 0, 1, 0},
70961 {&__pyx_kp_s_Cannot_create_writable_memory_vi, __pyx_k_Cannot_create_writable_memory_vi,
sizeof(__pyx_k_Cannot_create_writable_memory_vi), 0, 0, 1, 0},
70962 {&__pyx_kp_s_Cannot_index_with_type_s, __pyx_k_Cannot_index_with_type_s,
sizeof(__pyx_k_Cannot_index_with_type_s), 0, 0, 1, 0},
70963 {&__pyx_n_s_Closure_0_model, __pyx_k_Closure_0_model,
sizeof(__pyx_k_Closure_0_model), 0, 0, 1, 1},
70964 {&__pyx_n_s_Closure_1_model, __pyx_k_Closure_1_model,
sizeof(__pyx_k_Closure_1_model), 0, 0, 1, 1},
70965 {&__pyx_n_s_Cmu, __pyx_k_Cmu,
sizeof(__pyx_k_Cmu), 0, 0, 1, 1},
70966 {&__pyx_n_s_Comm, __pyx_k_Comm,
sizeof(__pyx_k_Comm), 0, 0, 1, 1},
70967 {&__pyx_n_s_DBC_h, __pyx_k_DBC_h,
sizeof(__pyx_k_DBC_h), 0, 0, 1, 1},
70968 {&__pyx_n_s_Domain, __pyx_k_Domain,
sizeof(__pyx_k_Domain), 0, 0, 1, 1},
70969 {&__pyx_n_s_E, __pyx_k_E,
sizeof(__pyx_k_E), 0, 0, 1, 1},
70970 {&__pyx_kp_s_ERROR_Boundary_orientation_for_H, __pyx_k_ERROR_Boundary_orientation_for_H,
sizeof(__pyx_k_ERROR_Boundary_orientation_for_H), 0, 0, 1, 0},
70971 {&__pyx_kp_s_ERROR_Boundary_orientation_for_U, __pyx_k_ERROR_Boundary_orientation_for_U,
sizeof(__pyx_k_ERROR_Boundary_orientation_for_U), 0, 0, 1, 0},
70972 {&__pyx_n_s_Ellipsis, __pyx_k_Ellipsis,
sizeof(__pyx_k_Ellipsis), 0, 0, 1, 1},
70973 {&__pyx_kp_s_Empty_shape_tuple_for_cython_arr, __pyx_k_Empty_shape_tuple_for_cython_arr,
sizeof(__pyx_k_Empty_shape_tuple_for_cython_arr), 0, 0, 1, 0},
70974 {&__pyx_n_s_FreeSlip, __pyx_k_FreeSlip,
sizeof(__pyx_k_FreeSlip), 0, 0, 1, 1},
70975 {&__pyx_n_s_H, __pyx_k_H,
sizeof(__pyx_k_H), 0, 0, 1, 1},
70976 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
70977 {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0, __pyx_k_Incompatible_checksums_0x_x_vs_0,
sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0), 0, 0, 1, 0},
70978 {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_2, __pyx_k_Incompatible_checksums_0x_x_vs_0_2,
sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_2), 0, 0, 1, 0},
70979 {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_3, __pyx_k_Incompatible_checksums_0x_x_vs_0_3,
sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_3), 0, 0, 1, 0},
70980 {&__pyx_kp_s_Incompatible_checksums_0x_x_vs_0_4, __pyx_k_Incompatible_checksums_0x_x_vs_0_4,
sizeof(__pyx_k_Incompatible_checksums_0x_x_vs_0_4), 0, 0, 1, 0},
70981 {&__pyx_n_s_IndexError, __pyx_k_IndexError,
sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
70982 {&__pyx_kp_s_Indirect_dimensions_not_supporte, __pyx_k_Indirect_dimensions_not_supporte,
sizeof(__pyx_k_Indirect_dimensions_not_supporte), 0, 0, 1, 0},
70983 {&__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_k_Invalid_mode_expected_c_or_fortr,
sizeof(__pyx_k_Invalid_mode_expected_c_or_fortr), 0, 0, 1, 0},
70984 {&__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_k_Invalid_shape_in_axis_d_d,
sizeof(__pyx_k_Invalid_shape_in_axis_d_d), 0, 0, 1, 0},
70985 {&__pyx_n_s_K, __pyx_k_K,
sizeof(__pyx_k_K), 0, 0, 1, 1},
70986 {&__pyx_n_s_MPI, __pyx_k_MPI,
sizeof(__pyx_k_MPI), 0, 0, 1, 1},
70987 {&__pyx_n_s_MemoryError, __pyx_k_MemoryError,
sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
70988 {&__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_k_MemoryView_of_r_at_0x_x,
sizeof(__pyx_k_MemoryView_of_r_at_0x_x), 0, 0, 1, 0},
70989 {&__pyx_kp_s_MemoryView_of_r_object, __pyx_k_MemoryView_of_r_object,
sizeof(__pyx_k_MemoryView_of_r_object), 0, 0, 1, 0},
70990 {&__pyx_n_s_NoSlip, __pyx_k_NoSlip,
sizeof(__pyx_k_NoSlip), 0, 0, 1, 1},
70991 {&__pyx_n_s_NonMaterial, __pyx_k_NonMaterial,
sizeof(__pyx_k_NonMaterial), 0, 0, 1, 1},
70992 {&__pyx_n_b_O, __pyx_k_O,
sizeof(__pyx_k_O), 0, 0, 0, 1},
70993 {&__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_k_Out_of_bounds_on_buffer_access_a,
sizeof(__pyx_k_Out_of_bounds_on_buffer_access_a), 0, 0, 1, 0},
70994 {&__pyx_n_s_OverflowError, __pyx_k_OverflowError,
sizeof(__pyx_k_OverflowError), 0, 0, 1, 1},
70995 {&__pyx_n_s_PickleError, __pyx_k_PickleError,
sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
70996 {&__pyx_n_s_RelaxationZone, __pyx_k_RelaxationZone,
sizeof(__pyx_k_RelaxationZone), 0, 0, 1, 1},
70997 {&__pyx_n_s_RelaxationZoneWaveGenerator, __pyx_k_RelaxationZoneWaveGenerator,
sizeof(__pyx_k_RelaxationZoneWaveGenerator), 0, 0, 1, 1},
70998 {&__pyx_n_s_RelaxationZoneWaveGenerator___re, __pyx_k_RelaxationZoneWaveGenerator___re,
sizeof(__pyx_k_RelaxationZoneWaveGenerator___re), 0, 0, 1, 1},
70999 {&__pyx_n_s_RelaxationZoneWaveGenerator___se, __pyx_k_RelaxationZoneWaveGenerator___se,
sizeof(__pyx_k_RelaxationZoneWaveGenerator___se), 0, 0, 1, 1},
71000 {&__pyx_n_s_RelaxationZoneWaveGenerator_atta, __pyx_k_RelaxationZoneWaveGenerator_atta,
sizeof(__pyx_k_RelaxationZoneWaveGenerator_atta), 0, 0, 1, 1},
71001 {&__pyx_n_s_RelaxationZoneWaveGenerator_atta_2, __pyx_k_RelaxationZoneWaveGenerator_atta_2,
sizeof(__pyx_k_RelaxationZoneWaveGenerator_atta_2), 0, 0, 1, 1},
71002 {&__pyx_n_s_RelaxationZoneWaveGenerator_calc, __pyx_k_RelaxationZoneWaveGenerator_calc,
sizeof(__pyx_k_RelaxationZoneWaveGenerator_calc), 0, 0, 1, 1},
71003 {&__pyx_n_s_RelaxationZoneWaveGenerator_calc_2, __pyx_k_RelaxationZoneWaveGenerator_calc_2,
sizeof(__pyx_k_RelaxationZoneWaveGenerator_calc_2), 0, 0, 1, 1},
71004 {&__pyx_n_s_RelaxationZone___reduce_cython, __pyx_k_RelaxationZone___reduce_cython,
sizeof(__pyx_k_RelaxationZone___reduce_cython), 0, 0, 1, 1},
71005 {&__pyx_n_s_RelaxationZone___setstate_cython, __pyx_k_RelaxationZone___setstate_cython,
sizeof(__pyx_k_RelaxationZone___setstate_cython), 0, 0, 1, 1},
71006 {&__pyx_n_s_RelaxationZone_calculate_init, __pyx_k_RelaxationZone_calculate_init,
sizeof(__pyx_k_RelaxationZone_calculate_init), 0, 0, 1, 1},
71007 {&__pyx_n_s_RelaxationZone_calculate_phi_pyt, __pyx_k_RelaxationZone_calculate_phi_pyt,
sizeof(__pyx_k_RelaxationZone_calculate_phi_pyt), 0, 0, 1, 1},
71008 {&__pyx_n_s_RelaxationZone_calculate_vel_pyt, __pyx_k_RelaxationZone_calculate_vel_pyt,
sizeof(__pyx_k_RelaxationZone_calculate_vel_pyt), 0, 0, 1, 1},
71009 {&__pyx_kp_b_T, __pyx_k_T,
sizeof(__pyx_k_T), 0, 0, 0, 0},
71010 {&__pyx_n_s_TwoPhaseVelocityInlet, __pyx_k_TwoPhaseVelocityInlet,
sizeof(__pyx_k_TwoPhaseVelocityInlet), 0, 0, 1, 1},
71011 {&__pyx_n_s_TypeError, __pyx_k_TypeError,
sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
71012 {&__pyx_n_s_U, __pyx_k_U,
sizeof(__pyx_k_U), 0, 0, 1, 1},
71013 {&__pyx_n_s_U0, __pyx_k_U0,
sizeof(__pyx_k_U0), 0, 0, 1, 1},
71014 {&__pyx_n_s_Ubound, __pyx_k_Ubound,
sizeof(__pyx_k_Ubound), 0, 0, 1, 1},
71015 {&__pyx_n_s_Uin, __pyx_k_Uin,
sizeof(__pyx_k_Uin), 0, 0, 1, 1},
71016 {&__pyx_kp_s_Unable_to_convert_item_to_object, __pyx_k_Unable_to_convert_item_to_object,
sizeof(__pyx_k_Unable_to_convert_item_to_object), 0, 0, 1, 0},
71017 {&__pyx_n_s_Up, __pyx_k_Up,
sizeof(__pyx_k_Up), 0, 0, 1, 1},
71018 {&__pyx_n_s_Ustar, __pyx_k_Ustar,
sizeof(__pyx_k_Ustar), 0, 0, 1, 1},
71019 {&__pyx_n_s_Uwind, __pyx_k_Uwind,
sizeof(__pyx_k_Uwind), 0, 0, 1, 1},
71020 {&__pyx_n_s_ValueError, __pyx_k_ValueError,
sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
71021 {&__pyx_n_s_View_MemoryView, __pyx_k_View_MemoryView,
sizeof(__pyx_k_View_MemoryView), 0, 0, 1, 1},
71022 {&__pyx_kp_s_WARNING_Dirichlet_condition_for, __pyx_k_WARNING_Dirichlet_condition_for,
sizeof(__pyx_k_WARNING_Dirichlet_condition_for), 0, 0, 1, 0},
71023 {&__pyx_kp_s_WARNING_Dirichlet_condition_for_2, __pyx_k_WARNING_Dirichlet_condition_for_2,
sizeof(__pyx_k_WARNING_Dirichlet_condition_for_2), 0, 0, 1, 0},
71024 {&__pyx_n_s_WallFunctions, __pyx_k_WallFunctions,
sizeof(__pyx_k_WallFunctions), 0, 0, 1, 1},
71025 {&__pyx_n_s_WallFunctions___init, __pyx_k_WallFunctions___init,
sizeof(__pyx_k_WallFunctions___init), 0, 0, 1, 1},
71026 {&__pyx_n_s_WallFunctions_attachAuxiliaryVar, __pyx_k_WallFunctions_attachAuxiliaryVar,
sizeof(__pyx_k_WallFunctions_attachAuxiliaryVar), 0, 0, 1, 1},
71027 {&__pyx_n_s_WallFunctions_attachModel, __pyx_k_WallFunctions_attachModel,
sizeof(__pyx_k_WallFunctions_attachModel), 0, 0, 1, 1},
71028 {&__pyx_n_s_WallFunctions_calculate, __pyx_k_WallFunctions_calculate,
sizeof(__pyx_k_WallFunctions_calculate), 0, 0, 1, 1},
71029 {&__pyx_n_s_WallFunctions_calculate_init, __pyx_k_WallFunctions_calculate_init,
sizeof(__pyx_k_WallFunctions_calculate_init), 0, 0, 1, 1},
71030 {&__pyx_n_s_WallFunctions_extractVelocity, __pyx_k_WallFunctions_extractVelocity,
sizeof(__pyx_k_WallFunctions_extractVelocity), 0, 0, 1, 1},
71031 {&__pyx_n_s_WallFunctions_findElementContain, __pyx_k_WallFunctions_findElementContain,
sizeof(__pyx_k_WallFunctions_findElementContain), 0, 0, 1, 1},
71032 {&__pyx_n_s_WallFunctions_getFluidVelocityLo, __pyx_k_WallFunctions_getFluidVelocityLo,
sizeof(__pyx_k_WallFunctions_getFluidVelocityLo), 0, 0, 1, 1},
71033 {&__pyx_n_s_WallFunctions_getLocalElement, __pyx_k_WallFunctions_getLocalElement,
sizeof(__pyx_k_WallFunctions_getLocalElement), 0, 0, 1, 1},
71034 {&__pyx_n_s_WallFunctions_getLocalNearestNod, __pyx_k_WallFunctions_getLocalNearestNod,
sizeof(__pyx_k_WallFunctions_getLocalNearestNod), 0, 0, 1, 1},
71035 {&__pyx_n_s_WallFunctions_getVariables, __pyx_k_WallFunctions_getVariables,
sizeof(__pyx_k_WallFunctions_getVariables), 0, 0, 1, 1},
71036 {&__pyx_n_s_WallFunctions_get_dissipation_di, __pyx_k_WallFunctions_get_dissipation_di,
sizeof(__pyx_k_WallFunctions_get_dissipation_di), 0, 0, 1, 1},
71037 {&__pyx_n_s_WallFunctions_get_k_dirichlet, __pyx_k_WallFunctions_get_k_dirichlet,
sizeof(__pyx_k_WallFunctions_get_k_dirichlet), 0, 0, 1, 1},
71038 {&__pyx_n_s_WallFunctions_get_u_diffusive, __pyx_k_WallFunctions_get_u_diffusive,
sizeof(__pyx_k_WallFunctions_get_u_diffusive), 0, 0, 1, 1},
71039 {&__pyx_n_s_WallFunctions_get_u_dirichlet, __pyx_k_WallFunctions_get_u_dirichlet,
sizeof(__pyx_k_WallFunctions_get_u_dirichlet), 0, 0, 1, 1},
71040 {&__pyx_n_s_WallFunctions_get_v_diffusive, __pyx_k_WallFunctions_get_v_diffusive,
sizeof(__pyx_k_WallFunctions_get_v_diffusive), 0, 0, 1, 1},
71041 {&__pyx_n_s_WallFunctions_get_v_dirichlet, __pyx_k_WallFunctions_get_v_dirichlet,
sizeof(__pyx_k_WallFunctions_get_v_dirichlet), 0, 0, 1, 1},
71042 {&__pyx_n_s_WallFunctions_get_w_diffusive, __pyx_k_WallFunctions_get_w_diffusive,
sizeof(__pyx_k_WallFunctions_get_w_diffusive), 0, 0, 1, 1},
71043 {&__pyx_n_s_WallFunctions_get_w_dirichlet, __pyx_k_WallFunctions_get_w_dirichlet,
sizeof(__pyx_k_WallFunctions_get_w_dirichlet), 0, 0, 1, 1},
71044 {&__pyx_n_s_WallFunctions_setYplusNormalDire, __pyx_k_WallFunctions_setYplusNormalDire,
sizeof(__pyx_k_WallFunctions_setYplusNormalDire), 0, 0, 1, 1},
71045 {&__pyx_n_s_WallFunctions_tangentialVelocity, __pyx_k_WallFunctions_tangentialVelocity,
sizeof(__pyx_k_WallFunctions_tangentialVelocity), 0, 0, 1, 1},
71046 {&__pyx_kp_s_Wall_function, __pyx_k_Wall_function,
sizeof(__pyx_k_Wall_function), 0, 0, 1, 0},
71047 {&__pyx_n_s_WaveTools, __pyx_k_WaveTools,
sizeof(__pyx_k_WaveTools), 0, 0, 1, 1},
71048 {&__pyx_n_s_Y, __pyx_k_Y,
sizeof(__pyx_k_Y), 0, 0, 1, 1},
71049 {&__pyx_n_s_Yplus, __pyx_k_Yplus,
sizeof(__pyx_k_Yplus), 0, 0, 1, 1},
71050 {&__pyx_n_s_Ystar, __pyx_k_Ystar,
sizeof(__pyx_k_Ystar), 0, 0, 1, 1},
71051 {&__pyx_kp_b__165, __pyx_k__165,
sizeof(__pyx_k__165), 0, 0, 0, 0},
71052 {&__pyx_kp_b__166, __pyx_k__166,
sizeof(__pyx_k__166), 0, 0, 0, 0},
71053 {&__pyx_kp_b__167, __pyx_k__167,
sizeof(__pyx_k__167), 0, 0, 0, 0},
71054 {&__pyx_kp_b__168, __pyx_k__168,
sizeof(__pyx_k__168), 0, 0, 0, 0},
71055 {&__pyx_kp_u__169, __pyx_k__169,
sizeof(__pyx_k__169), 0, 1, 0, 0},
71056 {&__pyx_n_s_a1, __pyx_k_a1,
sizeof(__pyx_k_a1), 0, 0, 1, 1},
71057 {&__pyx_n_s_abs, __pyx_k_abs,
sizeof(__pyx_k_abs), 0, 0, 1, 1},
71058 {&__pyx_n_s_absorption, __pyx_k_absorption,
sizeof(__pyx_k_absorption), 0, 0, 1, 1},
71059 {&__pyx_n_s_acos, __pyx_k_acos,
sizeof(__pyx_k_acos), 0, 0, 1, 1},
71060 {&__pyx_n_s_air, __pyx_k_air,
sizeof(__pyx_k_air), 0, 0, 1, 1},
71061 {&__pyx_n_s_all, __pyx_k_all,
sizeof(__pyx_k_all), 0, 0, 1, 1},
71062 {&__pyx_n_s_allocate_buffer, __pyx_k_allocate_buffer,
sizeof(__pyx_k_allocate_buffer), 0, 0, 1, 1},
71063 {&__pyx_n_s_ar, __pyx_k_ar,
sizeof(__pyx_k_ar), 0, 0, 1, 1},
71064 {&__pyx_n_s_array, __pyx_k_array,
sizeof(__pyx_k_array), 0, 0, 1, 1},
71065 {&__pyx_n_s_asin, __pyx_k_asin,
sizeof(__pyx_k_asin), 0, 0, 1, 1},
71066 {&__pyx_n_s_atan2, __pyx_k_atan2,
sizeof(__pyx_k_atan2), 0, 0, 1, 1},
71067 {&__pyx_n_s_attachAuxiliaryVariables, __pyx_k_attachAuxiliaryVariables,
sizeof(__pyx_k_attachAuxiliaryVariables), 0, 0, 1, 1},
71068 {&__pyx_n_s_attachModel, __pyx_k_attachModel,
sizeof(__pyx_k_attachModel), 0, 0, 1, 1},
71069 {&__pyx_n_s_avDict, __pyx_k_avDict,
sizeof(__pyx_k_avDict), 0, 0, 1, 1},
71070 {&__pyx_n_s_b_i, __pyx_k_b_i,
sizeof(__pyx_k_b_i), 0, 0, 1, 1},
71071 {&__pyx_n_s_b_or, __pyx_k_b_or,
sizeof(__pyx_k_b_or), 0, 0, 1, 1},
71072 {&__pyx_n_s_base, __pyx_k_base,
sizeof(__pyx_k_base), 0, 0, 1, 1},
71073 {&__pyx_n_s_body, __pyx_k_body,
sizeof(__pyx_k_body), 0, 0, 1, 1},
71074 {&__pyx_n_s_builtins, __pyx_k_builtins,
sizeof(__pyx_k_builtins), 0, 0, 1, 1},
71075 {&__pyx_n_s_c, __pyx_k_c,
sizeof(__pyx_k_c), 0, 0, 1, 1},
71076 {&__pyx_n_u_c, __pyx_k_c,
sizeof(__pyx_k_c), 0, 1, 0, 1},
71077 {&__pyx_n_s_cKDTree, __pyx_k_cKDTree,
sizeof(__pyx_k_cKDTree), 0, 0, 1, 1},
71078 {&__pyx_n_s_calculate, __pyx_k_calculate,
sizeof(__pyx_k_calculate), 0, 0, 1, 1},
71079 {&__pyx_n_s_calculate_init, __pyx_k_calculate_init,
sizeof(__pyx_k_calculate_init), 0, 0, 1, 1},
71080 {&__pyx_n_s_calculate_phi_python, __pyx_k_calculate_phi_python,
sizeof(__pyx_k_calculate_phi_python), 0, 0, 1, 1},
71081 {&__pyx_n_s_calculate_vel_python, __pyx_k_calculate_vel_python,
sizeof(__pyx_k_calculate_vel_python), 0, 0, 1, 1},
71082 {&__pyx_n_s_center, __pyx_k_center,
sizeof(__pyx_k_center), 0, 0, 1, 1},
71083 {&__pyx_n_s_checkedElements, __pyx_k_checkedElements,
sizeof(__pyx_k_checkedElements), 0, 0, 1, 1},
71084 {&__pyx_n_s_class, __pyx_k_class,
sizeof(__pyx_k_class), 0, 0, 1, 1},
71085 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
71086 {&__pyx_n_s_coefficients, __pyx_k_coefficients,
sizeof(__pyx_k_coefficients), 0, 0, 1, 1},
71087 {&__pyx_n_s_comm, __pyx_k_comm,
sizeof(__pyx_k_comm), 0, 0, 1, 1},
71088 {&__pyx_n_s_constant, __pyx_k_constant,
sizeof(__pyx_k_constant), 0, 0, 1, 1},
71089 {&__pyx_n_s_constantInletVelocity, __pyx_k_constantInletVelocity,
sizeof(__pyx_k_constantInletVelocity), 0, 0, 1, 1},
71090 {&__pyx_n_s_constantOutletPressure, __pyx_k_constantOutletPressure,
sizeof(__pyx_k_constantOutletPressure), 0, 0, 1, 1},
71091 {&__pyx_n_s_constant_values, __pyx_k_constant_values,
sizeof(__pyx_k_constant_values), 0, 0, 1, 1},
71092 {&__pyx_kp_s_contiguous_and_direct, __pyx_k_contiguous_and_direct,
sizeof(__pyx_k_contiguous_and_direct), 0, 0, 1, 0},
71093 {&__pyx_kp_s_contiguous_and_indirect, __pyx_k_contiguous_and_indirect,
sizeof(__pyx_k_contiguous_and_indirect), 0, 0, 1, 0},
71094 {&__pyx_n_s_coords, __pyx_k_coords,
sizeof(__pyx_k_coords), 0, 0, 1, 1},
71095 {&__pyx_n_s_coords_relax, __pyx_k_coords_relax,
sizeof(__pyx_k_coords_relax), 0, 0, 1, 1},
71096 {&__pyx_n_s_cos, __pyx_k_cos,
sizeof(__pyx_k_cos), 0, 0, 1, 1},
71097 {&__pyx_n_s_cppClass_WavesCharacteristics, __pyx_k_cppClass_WavesCharacteristics,
sizeof(__pyx_k_cppClass_WavesCharacteristics), 0, 0, 1, 1},
71098 {&__pyx_n_s_cppClass_WavesCharacteristics_2, __pyx_k_cppClass_WavesCharacteristics_2,
sizeof(__pyx_k_cppClass_WavesCharacteristics_2), 0, 0, 1, 1},
71099 {&__pyx_n_s_cppClass_WavesCharacteristics_3, __pyx_k_cppClass_WavesCharacteristics_3,
sizeof(__pyx_k_cppClass_WavesCharacteristics_3), 0, 0, 1, 1},
71100 {&__pyx_n_s_cppClass_WavesCharacteristics_4, __pyx_k_cppClass_WavesCharacteristics_4,
sizeof(__pyx_k_cppClass_WavesCharacteristics_4), 0, 0, 1, 1},
71101 {&__pyx_n_s_cpp_MoveMesh_h, __pyx_k_cpp_MoveMesh_h,
sizeof(__pyx_k_cpp_MoveMesh_h), 0, 0, 1, 1},
71102 {&__pyx_n_s_cpp_MoveMesh_hx, __pyx_k_cpp_MoveMesh_hx,
sizeof(__pyx_k_cpp_MoveMesh_hx), 0, 0, 1, 1},
71103 {&__pyx_n_s_cpp_MoveMesh_hy, __pyx_k_cpp_MoveMesh_hy,
sizeof(__pyx_k_cpp_MoveMesh_hy), 0, 0, 1, 1},
71104 {&__pyx_n_s_cpp_MoveMesh_hz, __pyx_k_cpp_MoveMesh_hz,
sizeof(__pyx_k_cpp_MoveMesh_hz), 0, 0, 1, 1},
71105 {&__pyx_n_s_d, __pyx_k_d,
sizeof(__pyx_k_d), 0, 0, 1, 1},
71106 {&__pyx_n_s_dInflow, __pyx_k_dInflow,
sizeof(__pyx_k_dInflow), 0, 0, 1, 1},
71107 {&__pyx_n_s_dd, __pyx_k_dd,
sizeof(__pyx_k_dd), 0, 0, 1, 1},
71108 {&__pyx_n_s_dict, __pyx_k_dict,
sizeof(__pyx_k_dict), 0, 0, 1, 1},
71109 {&__pyx_n_s_dict_2, __pyx_k_dict_2,
sizeof(__pyx_k_dict_2), 0, 0, 1, 1},
71110 {&__pyx_n_s_dissipationInflow, __pyx_k_dissipationInflow,
sizeof(__pyx_k_dissipationInflow), 0, 0, 1, 1},
71111 {&__pyx_n_s_dissipationInflowAir, __pyx_k_dissipationInflowAir,
sizeof(__pyx_k_dissipationInflowAir), 0, 0, 1, 1},
71112 {&__pyx_n_s_dissipationVal, __pyx_k_dissipationVal,
sizeof(__pyx_k_dissipationVal), 0, 0, 1, 1},
71113 {&__pyx_n_s_distance, __pyx_k_distance,
sizeof(__pyx_k_distance), 0, 0, 1, 1},
71114 {&__pyx_n_s_doc, __pyx_k_doc,
sizeof(__pyx_k_doc), 0, 0, 1, 1},
71115 {&__pyx_n_s_dot, __pyx_k_dot,
sizeof(__pyx_k_dot), 0, 0, 1, 1},
71116 {&__pyx_n_s_dragAlpha, __pyx_k_dragAlpha,
sizeof(__pyx_k_dragAlpha), 0, 0, 1, 1},
71117 {&__pyx_n_s_dragBeta, __pyx_k_dragBeta,
sizeof(__pyx_k_dragBeta), 0, 0, 1, 1},
71118 {&__pyx_n_s_dtype, __pyx_k_dtype,
sizeof(__pyx_k_dtype), 0, 0, 1, 1},
71119 {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object,
sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1},
71120 {&__pyx_n_s_eN, __pyx_k_eN,
sizeof(__pyx_k_eN), 0, 0, 1, 1},
71121 {&__pyx_n_s_eOffset, __pyx_k_eOffset,
sizeof(__pyx_k_eOffset), 0, 0, 1, 1},
71122 {&__pyx_n_s_element, __pyx_k_element,
sizeof(__pyx_k_element), 0, 0, 1, 1},
71123 {&__pyx_n_s_elementMaps, __pyx_k_elementMaps,
sizeof(__pyx_k_elementMaps), 0, 0, 1, 1},
71124 {&__pyx_n_s_elementMaterialTypes, __pyx_k_elementMaterialTypes,
sizeof(__pyx_k_elementMaterialTypes), 0, 0, 1, 1},
71125 {&__pyx_n_s_elementNodesArray, __pyx_k_elementNodesArray,
sizeof(__pyx_k_elementNodesArray), 0, 0, 1, 1},
71126 {&__pyx_n_s_empty, __pyx_k_empty,
sizeof(__pyx_k_empty), 0, 0, 1, 1},
71127 {&__pyx_n_s_encode, __pyx_k_encode,
sizeof(__pyx_k_encode), 0, 0, 1, 1},
71128 {&__pyx_n_s_enumerate, __pyx_k_enumerate,
sizeof(__pyx_k_enumerate), 0, 0, 1, 1},
71129 {&__pyx_n_s_epsFact_porous, __pyx_k_epsFact_porous,
sizeof(__pyx_k_epsFact_porous), 0, 0, 1, 1},
71130 {&__pyx_n_s_error, __pyx_k_error,
sizeof(__pyx_k_error), 0, 0, 1, 1},
71131 {&__pyx_n_s_eta, __pyx_k_eta,
sizeof(__pyx_k_eta), 0, 0, 1, 1},
71132 {&__pyx_n_s_exp, __pyx_k_exp,
sizeof(__pyx_k_exp), 0, 0, 1, 1},
71133 {&__pyx_n_s_extractVelocity, __pyx_k_extractVelocity,
sizeof(__pyx_k_extractVelocity), 0, 0, 1, 1},
71134 {&__pyx_n_s_femSpace, __pyx_k_femSpace,
sizeof(__pyx_k_femSpace), 0, 0, 1, 1},
71135 {&__pyx_n_s_femSpace_velocity, __pyx_k_femSpace_velocity,
sizeof(__pyx_k_femSpace_velocity), 0, 0, 1, 1},
71136 {&__pyx_n_s_findElementContainingCoords, __pyx_k_findElementContainingCoords,
sizeof(__pyx_k_findElementContainingCoords), 0, 0, 1, 1},
71137 {&__pyx_n_s_flags, __pyx_k_flags,
sizeof(__pyx_k_flags), 0, 0, 1, 1},
71138 {&__pyx_n_s_format, __pyx_k_format,
sizeof(__pyx_k_format), 0, 0, 1, 1},
71139 {&__pyx_n_s_fortran, __pyx_k_fortran,
sizeof(__pyx_k_fortran), 0, 0, 1, 1},
71140 {&__pyx_n_u_fortran, __pyx_k_fortran,
sizeof(__pyx_k_fortran), 0, 1, 0, 1},
71141 {&__pyx_n_s_g, __pyx_k_g,
sizeof(__pyx_k_g), 0, 0, 1, 1},
71142 {&__pyx_n_s_generation, __pyx_k_generation,
sizeof(__pyx_k_generation), 0, 0, 1, 1},
71143 {&__pyx_n_s_get, __pyx_k_get,
sizeof(__pyx_k_get), 0, 0, 1, 1},
71144 {&__pyx_n_s_getFluidKappaLocalCoords, __pyx_k_getFluidKappaLocalCoords,
sizeof(__pyx_k_getFluidKappaLocalCoords), 0, 0, 1, 1},
71145 {&__pyx_n_s_getFluidVelocityLocalCoords, __pyx_k_getFluidVelocityLocalCoords,
sizeof(__pyx_k_getFluidVelocityLocalCoords), 0, 0, 1, 1},
71146 {&__pyx_n_s_getInverseValue, __pyx_k_getInverseValue,
sizeof(__pyx_k_getInverseValue), 0, 0, 1, 1},
71147 {&__pyx_n_s_getKappa, __pyx_k_getKappa,
sizeof(__pyx_k_getKappa), 0, 0, 1, 1},
71148 {&__pyx_n_s_getLocalElement, __pyx_k_getLocalElement,
sizeof(__pyx_k_getLocalElement), 0, 0, 1, 1},
71149 {&__pyx_n_s_getLocalNearestNode, __pyx_k_getLocalNearestNode,
sizeof(__pyx_k_getLocalNearestNode), 0, 0, 1, 1},
71150 {&__pyx_n_s_getValue, __pyx_k_getValue,
sizeof(__pyx_k_getValue), 0, 0, 1, 1},
71151 {&__pyx_n_s_getVariables, __pyx_k_getVariables,
sizeof(__pyx_k_getVariables), 0, 0, 1, 1},
71152 {&__pyx_n_s_get_DBC_h, __pyx_k_get_DBC_h,
sizeof(__pyx_k_get_DBC_h), 0, 0, 1, 1},
71153 {&__pyx_n_s_get_dissipation_dirichlet, __pyx_k_get_dissipation_dirichlet,
sizeof(__pyx_k_get_dissipation_dirichlet), 0, 0, 1, 1},
71154 {&__pyx_n_s_get_inlet_ux_dirichlet, __pyx_k_get_inlet_ux_dirichlet,
sizeof(__pyx_k_get_inlet_ux_dirichlet), 0, 0, 1, 1},
71155 {&__pyx_n_s_get_k_dirichlet, __pyx_k_get_k_dirichlet,
sizeof(__pyx_k_get_k_dirichlet), 0, 0, 1, 1},
71156 {&__pyx_n_s_get_u_diffusive, __pyx_k_get_u_diffusive,
sizeof(__pyx_k_get_u_diffusive), 0, 0, 1, 1},
71157 {&__pyx_n_s_get_u_dirichlet, __pyx_k_get_u_dirichlet,
sizeof(__pyx_k_get_u_dirichlet), 0, 0, 1, 1},
71158 {&__pyx_n_s_get_v_diffusive, __pyx_k_get_v_diffusive,
sizeof(__pyx_k_get_v_diffusive), 0, 0, 1, 1},
71159 {&__pyx_n_s_get_v_dirichlet, __pyx_k_get_v_dirichlet,
sizeof(__pyx_k_get_v_dirichlet), 0, 0, 1, 1},
71160 {&__pyx_n_s_get_w_diffusive, __pyx_k_get_w_diffusive,
sizeof(__pyx_k_get_w_diffusive), 0, 0, 1, 1},
71161 {&__pyx_n_s_get_w_dirichlet, __pyx_k_get_w_dirichlet,
sizeof(__pyx_k_get_w_dirichlet), 0, 0, 1, 1},
71162 {&__pyx_n_s_getstate, __pyx_k_getstate,
sizeof(__pyx_k_getstate), 0, 0, 1, 1},
71163 {&__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_k_got_differing_extents_in_dimensi,
sizeof(__pyx_k_got_differing_extents_in_dimensi), 0, 0, 1, 0},
71164 {&__pyx_n_s_gradU, __pyx_k_gradU,
sizeof(__pyx_k_gradU), 0, 0, 1, 1},
71165 {&__pyx_n_s_h, __pyx_k_h,
sizeof(__pyx_k_h), 0, 0, 1, 1},
71166 {&__pyx_kp_s_has_not_been_set_Ignore_if_RANS, __pyx_k_has_not_been_set_Ignore_if_RANS,
sizeof(__pyx_k_has_not_been_set_Ignore_if_RANS), 0, 0, 1, 0},
71167 {&__pyx_n_s_hx, __pyx_k_hx,
sizeof(__pyx_k_hx), 0, 0, 1, 1},
71168 {&__pyx_n_s_hy, __pyx_k_hy,
sizeof(__pyx_k_hy), 0, 0, 1, 1},
71169 {&__pyx_n_s_hydrostaticPressureOutletWithDep, __pyx_k_hydrostaticPressureOutletWithDep,
sizeof(__pyx_k_hydrostaticPressureOutletWithDep), 0, 0, 1, 1},
71170 {&__pyx_n_s_hydrostaticPressureOutletWithDep_2, __pyx_k_hydrostaticPressureOutletWithDep_2,
sizeof(__pyx_k_hydrostaticPressureOutletWithDep_2), 0, 0, 1, 1},
71171 {&__pyx_n_s_hydrostaticPressureOutletWithDep_3, __pyx_k_hydrostaticPressureOutletWithDep_3,
sizeof(__pyx_k_hydrostaticPressureOutletWithDep_3), 0, 0, 1, 1},
71172 {&__pyx_n_s_hz, __pyx_k_hz,
sizeof(__pyx_k_hz), 0, 0, 1, 1},
71173 {&__pyx_n_s_i, __pyx_k_i,
sizeof(__pyx_k_i), 0, 0, 1, 1},
71174 {&__pyx_n_s_id, __pyx_k_id,
sizeof(__pyx_k_id), 0, 0, 1, 1},
71175 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
71176 {&__pyx_n_s_init, __pyx_k_init,
sizeof(__pyx_k_init), 0, 0, 1, 1},
71177 {&__pyx_n_s_inlet_dissipation_dirichlet, __pyx_k_inlet_dissipation_dirichlet,
sizeof(__pyx_k_inlet_dissipation_dirichlet), 0, 0, 1, 1},
71178 {&__pyx_n_s_inlet_k_dirichlet, __pyx_k_inlet_k_dirichlet,
sizeof(__pyx_k_inlet_k_dirichlet), 0, 0, 1, 1},
71179 {&__pyx_n_s_inlet_p_advective, __pyx_k_inlet_p_advective,
sizeof(__pyx_k_inlet_p_advective), 0, 0, 1, 1},
71180 {&__pyx_n_s_inlet_phi_dirichlet, __pyx_k_inlet_phi_dirichlet,
sizeof(__pyx_k_inlet_phi_dirichlet), 0, 0, 1, 1},
71181 {&__pyx_n_s_inlet_vof_dirichlet, __pyx_k_inlet_vof_dirichlet,
sizeof(__pyx_k_inlet_vof_dirichlet), 0, 0, 1, 1},
71182 {&__pyx_n_s_items, __pyx_k_items,
sizeof(__pyx_k_items), 0, 0, 1, 1},
71183 {&__pyx_n_s_itemsize, __pyx_k_itemsize,
sizeof(__pyx_k_itemsize), 0, 0, 1, 1},
71184 {&__pyx_kp_s_itemsize_0_for_cython_array, __pyx_k_itemsize_0_for_cython_array,
sizeof(__pyx_k_itemsize_0_for_cython_array), 0, 0, 1, 0},
71185 {&__pyx_n_s_join, __pyx_k_join,
sizeof(__pyx_k_join), 0, 0, 1, 1},
71186 {&__pyx_n_s_kInflow, __pyx_k_kInflow,
sizeof(__pyx_k_kInflow), 0, 0, 1, 1},
71187 {&__pyx_n_s_kInflowAir, __pyx_k_kInflowAir,
sizeof(__pyx_k_kInflowAir), 0, 0, 1, 1},
71188 {&__pyx_n_s_kInit, __pyx_k_kInit,
sizeof(__pyx_k_kInit), 0, 0, 1, 1},
71189 {&__pyx_n_s_kVal, __pyx_k_kVal,
sizeof(__pyx_k_kVal), 0, 0, 1, 1},
71190 {&__pyx_n_s_kWall, __pyx_k_kWall,
sizeof(__pyx_k_kWall), 0, 0, 1, 1},
71191 {&__pyx_n_s_kWall___init, __pyx_k_kWall___init,
sizeof(__pyx_k_kWall___init), 0, 0, 1, 1},
71192 {&__pyx_n_s_kWall_attachAuxiliaryVariables, __pyx_k_kWall_attachAuxiliaryVariables,
sizeof(__pyx_k_kWall_attachAuxiliaryVariables), 0, 0, 1, 1},
71193 {&__pyx_n_s_kWall_attachModel, __pyx_k_kWall_attachModel,
sizeof(__pyx_k_kWall_attachModel), 0, 0, 1, 1},
71194 {&__pyx_n_s_kWall_calculate, __pyx_k_kWall_calculate,
sizeof(__pyx_k_kWall_calculate), 0, 0, 1, 1},
71195 {&__pyx_n_s_kWall_calculate_init, __pyx_k_kWall_calculate_init,
sizeof(__pyx_k_kWall_calculate_init), 0, 0, 1, 1},
71196 {&__pyx_n_s_kWall_getFluidKappaLocalCoords, __pyx_k_kWall_getFluidKappaLocalCoords,
sizeof(__pyx_k_kWall_getFluidKappaLocalCoords), 0, 0, 1, 1},
71197 {&__pyx_n_s_kWall_getKappa, __pyx_k_kWall_getKappa,
sizeof(__pyx_k_kWall_getKappa), 0, 0, 1, 1},
71198 {&__pyx_n_s_kWall_kappaNearWall, __pyx_k_kWall_kappaNearWall,
sizeof(__pyx_k_kWall_kappaNearWall), 0, 0, 1, 1},
71199 {&__pyx_n_s_kappa, __pyx_k_kappa,
sizeof(__pyx_k_kappa), 0, 0, 1, 1},
71200 {&__pyx_n_s_kappaNearWall, __pyx_k_kappaNearWall,
sizeof(__pyx_k_kappaNearWall), 0, 0, 1, 1},
71201 {&__pyx_n_s_kdtree, __pyx_k_kdtree,
sizeof(__pyx_k_kdtree), 0, 0, 1, 1},
71202 {&__pyx_n_s_ke, __pyx_k_ke,
sizeof(__pyx_k_ke), 0, 0, 1, 1},
71203 {&__pyx_n_s_kk, __pyx_k_kk,
sizeof(__pyx_k_kk), 0, 0, 1, 1},
71204 {&__pyx_n_s_kw, __pyx_k_kw,
sizeof(__pyx_k_kw), 0, 0, 1, 1},
71205 {&__pyx_n_s_last_pos, __pyx_k_last_pos,
sizeof(__pyx_k_last_pos), 0, 0, 1, 1},
71206 {&__pyx_n_s_last_position, __pyx_k_last_position,
sizeof(__pyx_k_last_position), 0, 0, 1, 1},
71207 {&__pyx_n_s_levelModelList, __pyx_k_levelModelList,
sizeof(__pyx_k_levelModelList), 0, 0, 1, 1},
71208 {&__pyx_n_s_local_element, __pyx_k_local_element,
sizeof(__pyx_k_local_element), 0, 0, 1, 1},
71209 {&__pyx_n_s_log, __pyx_k_log,
sizeof(__pyx_k_log), 0, 0, 1, 1},
71210 {&__pyx_n_s_logEvent, __pyx_k_logEvent,
sizeof(__pyx_k_logEvent), 0, 0, 1, 1},
71211 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
71212 {&__pyx_n_s_math, __pyx_k_math,
sizeof(__pyx_k_math), 0, 0, 1, 1},
71213 {&__pyx_n_s_meanV, __pyx_k_meanV,
sizeof(__pyx_k_meanV), 0, 0, 1, 1},
71214 {&__pyx_n_s_memview, __pyx_k_memview,
sizeof(__pyx_k_memview), 0, 0, 1, 1},
71215 {&__pyx_n_s_mesh, __pyx_k_mesh,
sizeof(__pyx_k_mesh), 0, 0, 1, 1},
71216 {&__pyx_n_s_metaclass, __pyx_k_metaclass,
sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
71217 {&__pyx_n_s_mode, __pyx_k_mode,
sizeof(__pyx_k_mode), 0, 0, 1, 1},
71218 {&__pyx_n_s_model, __pyx_k_model,
sizeof(__pyx_k_model), 0, 0, 1, 1},
71219 {&__pyx_n_s_module, __pyx_k_module,
sizeof(__pyx_k_module), 0, 0, 1, 1},
71220 {&__pyx_n_s_mpi4py, __pyx_k_mpi4py,
sizeof(__pyx_k_mpi4py), 0, 0, 1, 1},
71221 {&__pyx_n_s_mprans_BoundaryConditions, __pyx_k_mprans_BoundaryConditions,
sizeof(__pyx_k_mprans_BoundaryConditions), 0, 0, 1, 1},
71222 {&__pyx_n_s_mwl, __pyx_k_mwl,
sizeof(__pyx_k_mwl), 0, 0, 1, 1},
71223 {&__pyx_n_s_n, __pyx_k_n,
sizeof(__pyx_k_n), 0, 0, 1, 1},
71224 {&__pyx_n_s_nP, __pyx_k_nP,
sizeof(__pyx_k_nP), 0, 0, 1, 1},
71225 {&__pyx_n_s_nSpace_global, __pyx_k_nSpace_global,
sizeof(__pyx_k_nSpace_global), 0, 0, 1, 1},
71226 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
71227 {&__pyx_n_s_name_2, __pyx_k_name_2,
sizeof(__pyx_k_name_2), 0, 0, 1, 1},
71228 {&__pyx_n_s_nd, __pyx_k_nd,
sizeof(__pyx_k_nd), 0, 0, 1, 1},
71229 {&__pyx_n_s_ndim, __pyx_k_ndim,
sizeof(__pyx_k_ndim), 0, 0, 1, 1},
71230 {&__pyx_n_s_nearest_node, __pyx_k_nearest_node,
sizeof(__pyx_k_nearest_node), 0, 0, 1, 1},
71231 {&__pyx_n_s_nearest_node_distance, __pyx_k_nearest_node_distance,
sizeof(__pyx_k_nearest_node_distance), 0, 0, 1, 1},
71232 {&__pyx_n_s_new, __pyx_k_new,
sizeof(__pyx_k_new), 0, 0, 1, 1},
71233 {&__pyx_n_s_new_x_0, __pyx_k_new_x_0,
sizeof(__pyx_k_new_x_0), 0, 0, 1, 1},
71234 {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non,
sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
71235 {&__pyx_n_s_node, __pyx_k_node,
sizeof(__pyx_k_node), 0, 0, 1, 1},
71236 {&__pyx_n_s_nodeArray, __pyx_k_nodeArray,
sizeof(__pyx_k_nodeArray), 0, 0, 1, 1},
71237 {&__pyx_n_s_nodeElementOffsets, __pyx_k_nodeElementOffsets,
sizeof(__pyx_k_nodeElementOffsets), 0, 0, 1, 1},
71238 {&__pyx_n_s_nodeElementsArray, __pyx_k_nodeElementsArray,
sizeof(__pyx_k_nodeElementsArray), 0, 0, 1, 1},
71239 {&__pyx_n_s_nodes_kdtree, __pyx_k_nodes_kdtree,
sizeof(__pyx_k_nodes_kdtree), 0, 0, 1, 1},
71240 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
71241 {&__pyx_n_s_nu, __pyx_k_nu,
sizeof(__pyx_k_nu), 0, 0, 1, 1},
71242 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
71243 {&__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},
71244 {&__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},
71245 {&__pyx_n_s_obj, __pyx_k_obj,
sizeof(__pyx_k_obj), 0, 0, 1, 1},
71246 {&__pyx_n_s_old_div, __pyx_k_old_div,
sizeof(__pyx_k_old_div), 0, 0, 1, 1},
71247 {&__pyx_n_s_onElement, __pyx_k_onElement,
sizeof(__pyx_k_onElement), 0, 0, 1, 1},
71248 {&__pyx_n_s_orientation, __pyx_k_orientation,
sizeof(__pyx_k_orientation), 0, 0, 1, 1},
71249 {&__pyx_kp_s_oritentation_must_be_set_for_BC, __pyx_k_oritentation_must_be_set_for_BC,
sizeof(__pyx_k_oritentation_must_be_set_for_BC), 0, 0, 1, 0},
71250 {&__pyx_n_s_os, __pyx_k_os,
sizeof(__pyx_k_os), 0, 0, 1, 1},
71251 {&__pyx_n_s_owning_proc, __pyx_k_owning_proc,
sizeof(__pyx_k_owning_proc), 0, 0, 1, 1},
71252 {&__pyx_n_s_p, __pyx_k_p,
sizeof(__pyx_k_p), 0, 0, 1, 1},
71253 {&__pyx_n_s_pRef, __pyx_k_pRef,
sizeof(__pyx_k_pRef), 0, 0, 1, 1},
71254 {&__pyx_n_s_p_top, __pyx_k_p_top,
sizeof(__pyx_k_p_top), 0, 0, 1, 1},
71255 {&__pyx_n_s_pack, __pyx_k_pack,
sizeof(__pyx_k_pack), 0, 0, 1, 1},
71256 {&__pyx_n_s_pad, __pyx_k_pad,
sizeof(__pyx_k_pad), 0, 0, 1, 1},
71257 {&__pyx_n_s_past_utils, __pyx_k_past_utils,
sizeof(__pyx_k_past_utils), 0, 0, 1, 1},
71258 {&__pyx_n_s_patchBoundaryNodes, __pyx_k_patchBoundaryNodes,
sizeof(__pyx_k_patchBoundaryNodes), 0, 0, 1, 1},
71259 {&__pyx_n_s_ph, __pyx_k_ph,
sizeof(__pyx_k_ph), 0, 0, 1, 1},
71260 {&__pyx_n_s_phi, __pyx_k_phi,
sizeof(__pyx_k_phi), 0, 0, 1, 1},
71261 {&__pyx_n_s_phi_porous, __pyx_k_phi_porous,
sizeof(__pyx_k_phi_porous), 0, 0, 1, 1},
71262 {&__pyx_n_s_phi_top, __pyx_k_phi_top,
sizeof(__pyx_k_phi_top), 0, 0, 1, 1},
71263 {&__pyx_n_s_pickle, __pyx_k_pickle,
sizeof(__pyx_k_pickle), 0, 0, 1, 1},
71264 {&__pyx_n_s_porosity, __pyx_k_porosity,
sizeof(__pyx_k_porosity), 0, 0, 1, 1},
71265 {&__pyx_n_s_porous, __pyx_k_porous,
sizeof(__pyx_k_porous), 0, 0, 1, 1},
71266 {&__pyx_n_s_prepare, __pyx_k_prepare,
sizeof(__pyx_k_prepare), 0, 0, 1, 1},
71267 {&__pyx_n_s_proteus, __pyx_k_proteus,
sizeof(__pyx_k_proteus), 0, 0, 1, 1},
71268 {&__pyx_n_s_proteus_Profiling, __pyx_k_proteus_Profiling,
sizeof(__pyx_k_proteus_Profiling), 0, 0, 1, 1},
71269 {&__pyx_n_s_proteus_ctransportCoefficients, __pyx_k_proteus_ctransportCoefficients,
sizeof(__pyx_k_proteus_ctransportCoefficients), 0, 0, 1, 1},
71270 {&__pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_k_proteus_mprans_BoundaryCondition,
sizeof(__pyx_k_proteus_mprans_BoundaryCondition), 0, 0, 1, 0},
71271 {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError,
sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
71272 {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum,
sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
71273 {&__pyx_n_s_pyx_getbuffer, __pyx_k_pyx_getbuffer,
sizeof(__pyx_k_pyx_getbuffer), 0, 0, 1, 1},
71274 {&__pyx_n_s_pyx_result, __pyx_k_pyx_result,
sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
71275 {&__pyx_n_s_pyx_state, __pyx_k_pyx_state,
sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
71276 {&__pyx_n_s_pyx_type, __pyx_k_pyx_type,
sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
71277 {&__pyx_n_s_pyx_unpickle_BC_RANS, __pyx_k_pyx_unpickle_BC_RANS,
sizeof(__pyx_k_pyx_unpickle_BC_RANS), 0, 0, 1, 1},
71278 {&__pyx_n_s_pyx_unpickle_Enum, __pyx_k_pyx_unpickle_Enum,
sizeof(__pyx_k_pyx_unpickle_Enum), 0, 0, 1, 1},
71279 {&__pyx_n_s_pyx_unpickle_RelaxationZoneWav, __pyx_k_pyx_unpickle_RelaxationZoneWav,
sizeof(__pyx_k_pyx_unpickle_RelaxationZoneWav), 0, 0, 1, 1},
71280 {&__pyx_n_s_pyx_unpickle___cppClass_WavesC, __pyx_k_pyx_unpickle___cppClass_WavesC,
sizeof(__pyx_k_pyx_unpickle___cppClass_WavesC), 0, 0, 1, 1},
71281 {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable,
sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
71282 {&__pyx_n_s_q, __pyx_k_q,
sizeof(__pyx_k_q), 0, 0, 1, 1},
71283 {&__pyx_n_s_q_phi, __pyx_k_q_phi,
sizeof(__pyx_k_q_phi), 0, 0, 1, 1},
71284 {&__pyx_n_s_q_phi_porous, __pyx_k_q_phi_porous,
sizeof(__pyx_k_q_phi_porous), 0, 0, 1, 1},
71285 {&__pyx_n_s_q_velocity_porous, __pyx_k_q_velocity_porous,
sizeof(__pyx_k_q_velocity_porous), 0, 0, 1, 1},
71286 {&__pyx_n_s_qualname, __pyx_k_qualname,
sizeof(__pyx_k_qualname), 0, 0, 1, 1},
71287 {&__pyx_n_s_query, __pyx_k_query,
sizeof(__pyx_k_query), 0, 0, 1, 1},
71288 {&__pyx_n_s_ramp, __pyx_k_ramp,
sizeof(__pyx_k_ramp), 0, 0, 1, 1},
71289 {&__pyx_n_s_range, __pyx_k_range,
sizeof(__pyx_k_range), 0, 0, 1, 1},
71290 {&__pyx_n_s_rank, __pyx_k_rank,
sizeof(__pyx_k_rank), 0, 0, 1, 1},
71291 {&__pyx_n_s_reduce, __pyx_k_reduce,
sizeof(__pyx_k_reduce), 0, 0, 1, 1},
71292 {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython,
sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
71293 {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex,
sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
71294 {&__pyx_n_s_refLevel, __pyx_k_refLevel,
sizeof(__pyx_k_refLevel), 0, 0, 1, 1},
71295 {&__pyx_n_s_referenceElement, __pyx_k_referenceElement,
sizeof(__pyx_k_referenceElement), 0, 0, 1, 1},
71296 {&__pyx_n_s_relax, __pyx_k_relax,
sizeof(__pyx_k_relax), 0, 0, 1, 1},
71297 {&__pyx_n_s_reset, __pyx_k_reset,
sizeof(__pyx_k_reset), 0, 0, 1, 1},
71298 {&__pyx_n_s_rho, __pyx_k_rho,
sizeof(__pyx_k_rho), 0, 0, 1, 1},
71299 {&__pyx_n_s_rhoDown, __pyx_k_rhoDown,
sizeof(__pyx_k_rhoDown), 0, 0, 1, 1},
71300 {&__pyx_n_s_rhoUp, __pyx_k_rhoUp,
sizeof(__pyx_k_rhoUp), 0, 0, 1, 1},
71301 {&__pyx_n_s_rot_matrix, __pyx_k_rot_matrix,
sizeof(__pyx_k_rot_matrix), 0, 0, 1, 1},
71302 {&__pyx_n_s_rotation_matrix, __pyx_k_rotation_matrix,
sizeof(__pyx_k_rotation_matrix), 0, 0, 1, 1},
71303 {&__pyx_kp_u_s, __pyx_k_s,
sizeof(__pyx_k_s), 0, 1, 0, 0},
71304 {&__pyx_n_s_scipy, __pyx_k_scipy,
sizeof(__pyx_k_scipy), 0, 0, 1, 1},
71305 {&__pyx_n_s_seaLevel, __pyx_k_seaLevel,
sizeof(__pyx_k_seaLevel), 0, 0, 1, 1},
71306 {&__pyx_n_s_self, __pyx_k_self,
sizeof(__pyx_k_self), 0, 0, 1, 1},
71307 {&__pyx_n_s_setAtmosphere, __pyx_k_setAtmosphere,
sizeof(__pyx_k_setAtmosphere), 0, 0, 1, 1},
71308 {&__pyx_n_s_setChMoveMesh, __pyx_k_setChMoveMesh,
sizeof(__pyx_k_setChMoveMesh), 0, 0, 1, 1},
71309 {&__pyx_n_s_setChMoveMesh_locals_lambda, __pyx_k_setChMoveMesh_locals_lambda,
sizeof(__pyx_k_setChMoveMesh_locals_lambda), 0, 0, 1, 1},
71310 {&__pyx_n_s_setConstantBC, __pyx_k_setConstantBC,
sizeof(__pyx_k_setConstantBC), 0, 0, 1, 1},
71311 {&__pyx_n_s_setConstantInletVelocity, __pyx_k_setConstantInletVelocity,
sizeof(__pyx_k_setConstantInletVelocity), 0, 0, 1, 1},
71312 {&__pyx_n_s_setConstantOutletPressure, __pyx_k_setConstantOutletPressure,
sizeof(__pyx_k_setConstantOutletPressure), 0, 0, 1, 1},
71313 {&__pyx_n_s_setFixedNodes, __pyx_k_setFixedNodes,
sizeof(__pyx_k_setFixedNodes), 0, 0, 1, 1},
71314 {&__pyx_n_s_setFreeSlip, __pyx_k_setFreeSlip,
sizeof(__pyx_k_setFreeSlip), 0, 0, 1, 1},
71315 {&__pyx_n_s_setHydrostaticPressureOutletWith, __pyx_k_setHydrostaticPressureOutletWith,
sizeof(__pyx_k_setHydrostaticPressureOutletWith), 0, 0, 1, 1},
71316 {&__pyx_n_s_setHydrostaticPressureOutletWith_2, __pyx_k_setHydrostaticPressureOutletWith_2,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_2), 0, 0, 1, 1},
71317 {&__pyx_n_s_setHydrostaticPressureOutletWith_3, __pyx_k_setHydrostaticPressureOutletWith_3,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_3), 0, 0, 1, 1},
71318 {&__pyx_n_s_setHydrostaticPressureOutletWith_4, __pyx_k_setHydrostaticPressureOutletWith_4,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_4), 0, 0, 1, 1},
71319 {&__pyx_n_s_setHydrostaticPressureOutletWith_5, __pyx_k_setHydrostaticPressureOutletWith_5,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_5), 0, 0, 1, 1},
71320 {&__pyx_n_s_setHydrostaticPressureOutletWith_6, __pyx_k_setHydrostaticPressureOutletWith_6,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_6), 0, 0, 1, 1},
71321 {&__pyx_n_s_setHydrostaticPressureOutletWith_7, __pyx_k_setHydrostaticPressureOutletWith_7,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_7), 0, 0, 1, 1},
71322 {&__pyx_n_s_setHydrostaticPressureOutletWith_8, __pyx_k_setHydrostaticPressureOutletWith_8,
sizeof(__pyx_k_setHydrostaticPressureOutletWith_8), 0, 0, 1, 1},
71323 {&__pyx_n_s_setLinearBC, __pyx_k_setLinearBC,
sizeof(__pyx_k_setLinearBC), 0, 0, 1, 1},
71324 {&__pyx_n_s_setLinearRamp, __pyx_k_setLinearRamp,
sizeof(__pyx_k_setLinearRamp), 0, 0, 1, 1},
71325 {&__pyx_n_s_setMoveMesh, __pyx_k_setMoveMesh,
sizeof(__pyx_k_setMoveMesh), 0, 0, 1, 1},
71326 {&__pyx_n_s_setMoveMesh_locals_lambda, __pyx_k_setMoveMesh_locals_lambda,
sizeof(__pyx_k_setMoveMesh_locals_lambda), 0, 0, 1, 1},
71327 {&__pyx_n_s_setNoSlip, __pyx_k_setNoSlip,
sizeof(__pyx_k_setNoSlip), 0, 0, 1, 1},
71328 {&__pyx_n_s_setNonMaterial, __pyx_k_setNonMaterial,
sizeof(__pyx_k_setNonMaterial), 0, 0, 1, 1},
71329 {&__pyx_n_s_setRigidBodyMoveMesh, __pyx_k_setRigidBodyMoveMesh,
sizeof(__pyx_k_setRigidBodyMoveMesh), 0, 0, 1, 1},
71330 {&__pyx_n_s_setRigidBodyMoveMesh_locals_get, __pyx_k_setRigidBodyMoveMesh_locals_get,
sizeof(__pyx_k_setRigidBodyMoveMesh_locals_get), 0, 0, 1, 1},
71331 {&__pyx_n_s_setRigidBodyMoveMesh_locals_get_2, __pyx_k_setRigidBodyMoveMesh_locals_get_2,
sizeof(__pyx_k_setRigidBodyMoveMesh_locals_get_2), 0, 0, 1, 1},
71332 {&__pyx_n_s_setTank, __pyx_k_setTank,
sizeof(__pyx_k_setTank), 0, 0, 1, 1},
71333 {&__pyx_n_s_setTurbulentDirichlet, __pyx_k_setTurbulentDirichlet,
sizeof(__pyx_k_setTurbulentDirichlet), 0, 0, 1, 1},
71334 {&__pyx_n_s_setTurbulentZeroGradient, __pyx_k_setTurbulentZeroGradient,
sizeof(__pyx_k_setTurbulentZeroGradient), 0, 0, 1, 1},
71335 {&__pyx_n_s_setTwoPhaseVelocityInlet, __pyx_k_setTwoPhaseVelocityInlet,
sizeof(__pyx_k_setTwoPhaseVelocityInlet), 0, 0, 1, 1},
71336 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals, __pyx_k_setTwoPhaseVelocityInlet_locals,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals), 0, 0, 1, 1},
71337 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_2, __pyx_k_setTwoPhaseVelocityInlet_locals_2,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_2), 0, 0, 1, 1},
71338 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_3, __pyx_k_setTwoPhaseVelocityInlet_locals_3,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_3), 0, 0, 1, 1},
71339 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_4, __pyx_k_setTwoPhaseVelocityInlet_locals_4,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_4), 0, 0, 1, 1},
71340 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_5, __pyx_k_setTwoPhaseVelocityInlet_locals_5,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_5), 0, 0, 1, 1},
71341 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_6, __pyx_k_setTwoPhaseVelocityInlet_locals_6,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_6), 0, 0, 1, 1},
71342 {&__pyx_n_s_setTwoPhaseVelocityInlet_locals_7, __pyx_k_setTwoPhaseVelocityInlet_locals_7,
sizeof(__pyx_k_setTwoPhaseVelocityInlet_locals_7), 0, 0, 1, 1},
71343 {&__pyx_n_s_setUnsteadyTwoPhaseVelocityInlet, __pyx_k_setUnsteadyTwoPhaseVelocityInlet,
sizeof(__pyx_k_setUnsteadyTwoPhaseVelocityInlet), 0, 0, 1, 1},
71344 {&__pyx_n_s_setUnsteadyTwoPhaseVelocityInlet_2, __pyx_k_setUnsteadyTwoPhaseVelocityInlet_2,
sizeof(__pyx_k_setUnsteadyTwoPhaseVelocityInlet_2), 0, 0, 1, 1},
71345 {&__pyx_n_s_setWallFunction, __pyx_k_setWallFunction,
sizeof(__pyx_k_setWallFunction), 0, 0, 1, 1},
71346 {&__pyx_n_s_setWallFunction_locals_lambda, __pyx_k_setWallFunction_locals_lambda,
sizeof(__pyx_k_setWallFunction_locals_lambda), 0, 0, 1, 1},
71347 {&__pyx_n_s_setYplusNormalDirection, __pyx_k_setYplusNormalDirection,
sizeof(__pyx_k_setYplusNormalDirection), 0, 0, 1, 1},
71348 {&__pyx_n_s_setstate, __pyx_k_setstate,
sizeof(__pyx_k_setstate), 0, 0, 1, 1},
71349 {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython,
sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
71350 {&__pyx_n_s_shape, __pyx_k_shape,
sizeof(__pyx_k_shape), 0, 0, 1, 1},
71351 {&__pyx_n_s_shearStress, __pyx_k_shearStress,
sizeof(__pyx_k_shearStress), 0, 0, 1, 1},
71352 {&__pyx_n_s_sin, __pyx_k_sin,
sizeof(__pyx_k_sin), 0, 0, 1, 1},
71353 {&__pyx_n_s_size, __pyx_k_size,
sizeof(__pyx_k_size), 0, 0, 1, 1},
71354 {&__pyx_n_s_smoothedHeaviside, __pyx_k_smoothedHeaviside,
sizeof(__pyx_k_smoothedHeaviside), 0, 0, 1, 1},
71355 {&__pyx_n_s_smoothedHeaviside_integral, __pyx_k_smoothedHeaviside_integral,
sizeof(__pyx_k_smoothedHeaviside_integral), 0, 0, 1, 1},
71356 {&__pyx_n_s_smoothing, __pyx_k_smoothing,
sizeof(__pyx_k_smoothing), 0, 0, 1, 1},
71357 {&__pyx_n_s_spatial, __pyx_k_spatial,
sizeof(__pyx_k_spatial), 0, 0, 1, 1},
71358 {&__pyx_n_s_sqrt, __pyx_k_sqrt,
sizeof(__pyx_k_sqrt), 0, 0, 1, 1},
71359 {&__pyx_n_s_start, __pyx_k_start,
sizeof(__pyx_k_start), 0, 0, 1, 1},
71360 {&__pyx_n_s_state, __pyx_k_state,
sizeof(__pyx_k_state), 0, 0, 1, 1},
71361 {&__pyx_n_s_statem1, __pyx_k_statem1,
sizeof(__pyx_k_statem1), 0, 0, 1, 1},
71362 {&__pyx_n_s_step, __pyx_k_step,
sizeof(__pyx_k_step), 0, 0, 1, 1},
71363 {&__pyx_n_s_stop, __pyx_k_stop,
sizeof(__pyx_k_stop), 0, 0, 1, 1},
71364 {&__pyx_n_s_str, __pyx_k_str,
sizeof(__pyx_k_str), 0, 0, 1, 1},
71365 {&__pyx_kp_s_strided_and_direct, __pyx_k_strided_and_direct,
sizeof(__pyx_k_strided_and_direct), 0, 0, 1, 0},
71366 {&__pyx_kp_s_strided_and_direct_or_indirect, __pyx_k_strided_and_direct_or_indirect,
sizeof(__pyx_k_strided_and_direct_or_indirect), 0, 0, 1, 0},
71367 {&__pyx_kp_s_strided_and_indirect, __pyx_k_strided_and_indirect,
sizeof(__pyx_k_strided_and_indirect), 0, 0, 1, 0},
71368 {&__pyx_kp_s_stringsource, __pyx_k_stringsource,
sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
71369 {&__pyx_n_s_struct, __pyx_k_struct,
sizeof(__pyx_k_struct), 0, 0, 1, 1},
71370 {&__pyx_n_s_sum, __pyx_k_sum,
sizeof(__pyx_k_sum), 0, 0, 1, 1},
71371 {&__pyx_n_s_super, __pyx_k_super,
sizeof(__pyx_k_super), 0, 0, 1, 1},
71372 {&__pyx_n_s_sys, __pyx_k_sys,
sizeof(__pyx_k_sys), 0, 0, 1, 1},
71373 {&__pyx_n_s_t, __pyx_k_t,
sizeof(__pyx_k_t), 0, 0, 1, 1},
71374 {&__pyx_n_s_tV, __pyx_k_tV,
sizeof(__pyx_k_tV), 0, 0, 1, 1},
71375 {&__pyx_n_s_tanU, __pyx_k_tanU,
sizeof(__pyx_k_tanU), 0, 0, 1, 1},
71376 {&__pyx_n_s_tangentialVelocity, __pyx_k_tangentialVelocity,
sizeof(__pyx_k_tangentialVelocity), 0, 0, 1, 1},
71377 {&__pyx_n_s_tau_rho, __pyx_k_tau_rho,
sizeof(__pyx_k_tau_rho), 0, 0, 1, 1},
71378 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
71379 {&__pyx_n_s_timeIntegration, __pyx_k_timeIntegration,
sizeof(__pyx_k_timeIntegration), 0, 0, 1, 1},
71380 {&__pyx_n_s_tompi4py, __pyx_k_tompi4py,
sizeof(__pyx_k_tompi4py), 0, 0, 1, 1},
71381 {&__pyx_n_s_tt, __pyx_k_tt,
sizeof(__pyx_k_tt), 0, 0, 1, 1},
71382 {&__pyx_n_s_turbModel, __pyx_k_turbModel,
sizeof(__pyx_k_turbModel), 0, 0, 1, 1},
71383 {&__pyx_n_s_u, __pyx_k_u,
sizeof(__pyx_k_u), 0, 0, 1, 1},
71384 {&__pyx_n_s_u0, __pyx_k_u0,
sizeof(__pyx_k_u0), 0, 0, 1, 1},
71385 {&__pyx_n_s_u1, __pyx_k_u1,
sizeof(__pyx_k_u1), 0, 0, 1, 1},
71386 {&__pyx_n_s_u2, __pyx_k_u2,
sizeof(__pyx_k_u2), 0, 0, 1, 1},
71387 {&__pyx_n_s_uDir, __pyx_k_uDir,
sizeof(__pyx_k_uDir), 0, 0, 1, 1},
71388 {&__pyx_n_s_uInit, __pyx_k_uInit,
sizeof(__pyx_k_uInit), 0, 0, 1, 1},
71389 {&__pyx_n_s_u_p, __pyx_k_u_p,
sizeof(__pyx_k_u_p), 0, 0, 1, 1},
71390 {&__pyx_kp_s_unable_to_allocate_array_data, __pyx_k_unable_to_allocate_array_data,
sizeof(__pyx_k_unable_to_allocate_array_data), 0, 0, 1, 0},
71391 {&__pyx_kp_s_unable_to_allocate_shape_and_str, __pyx_k_unable_to_allocate_shape_and_str,
sizeof(__pyx_k_unable_to_allocate_shape_and_str), 0, 0, 1, 0},
71392 {&__pyx_n_s_unpack, __pyx_k_unpack,
sizeof(__pyx_k_unpack), 0, 0, 1, 1},
71393 {&__pyx_n_s_update, __pyx_k_update,
sizeof(__pyx_k_update), 0, 0, 1, 1},
71394 {&__pyx_n_s_use_setstate, __pyx_k_use_setstate,
sizeof(__pyx_k_use_setstate), 0, 0, 1, 1},
71395 {&__pyx_n_s_ut, __pyx_k_ut,
sizeof(__pyx_k_ut), 0, 0, 1, 1},
71396 {&__pyx_n_s_utAbs, __pyx_k_utAbs,
sizeof(__pyx_k_utAbs), 0, 0, 1, 1},
71397 {&__pyx_n_s_utStar, __pyx_k_utStar,
sizeof(__pyx_k_utStar), 0, 0, 1, 1},
71398 {&__pyx_n_s_uu, __pyx_k_uu,
sizeof(__pyx_k_uu), 0, 0, 1, 1},
71399 {&__pyx_n_s_ux_dirichlet, __pyx_k_ux_dirichlet,
sizeof(__pyx_k_ux_dirichlet), 0, 0, 1, 1},
71400 {&__pyx_n_s_v, __pyx_k_v,
sizeof(__pyx_k_v), 0, 0, 1, 1},
71401 {&__pyx_n_s_velocity_porous, __pyx_k_velocity_porous,
sizeof(__pyx_k_velocity_porous), 0, 0, 1, 1},
71402 {&__pyx_n_s_vert_axis, __pyx_k_vert_axis,
sizeof(__pyx_k_vert_axis), 0, 0, 1, 1},
71403 {&__pyx_n_s_vof, __pyx_k_vof,
sizeof(__pyx_k_vof), 0, 0, 1, 1},
71404 {&__pyx_n_s_vof_air, __pyx_k_vof_air,
sizeof(__pyx_k_vof_air), 0, 0, 1, 1},
71405 {&__pyx_n_s_vof_water, __pyx_k_vof_water,
sizeof(__pyx_k_vof_water), 0, 0, 1, 1},
71406 {&__pyx_n_s_vv, __pyx_k_vv,
sizeof(__pyx_k_vv), 0, 0, 1, 1},
71407 {&__pyx_n_s_w, __pyx_k_w,
sizeof(__pyx_k_w), 0, 0, 1, 1},
71408 {&__pyx_n_s_wall, __pyx_k_wall,
sizeof(__pyx_k_wall), 0, 0, 1, 1},
71409 {&__pyx_n_s_water, __pyx_k_water,
sizeof(__pyx_k_water), 0, 0, 1, 1},
71410 {&__pyx_n_s_waterLevel, __pyx_k_waterLevel,
sizeof(__pyx_k_waterLevel), 0, 0, 1, 1},
71411 {&__pyx_n_s_wave, __pyx_k_wave,
sizeof(__pyx_k_wave), 0, 0, 1, 1},
71412 {&__pyx_n_s_waves, __pyx_k_waves,
sizeof(__pyx_k_waves), 0, 0, 1, 1},
71413 {&__pyx_n_s_wf, __pyx_k_wf,
sizeof(__pyx_k_wf), 0, 0, 1, 1},
71414 {&__pyx_n_s_wind_speed, __pyx_k_wind_speed,
sizeof(__pyx_k_wind_speed), 0, 0, 1, 1},
71415 {&__pyx_n_s_wt, __pyx_k_wt,
sizeof(__pyx_k_wt), 0, 0, 1, 1},
71416 {&__pyx_n_s_ww, __pyx_k_ww,
sizeof(__pyx_k_ww), 0, 0, 1, 1},
71417 {&__pyx_n_s_x, __pyx_k_x,
sizeof(__pyx_k_x), 0, 0, 1, 1},
71418 {&__pyx_n_s_x_0, __pyx_k_x_0,
sizeof(__pyx_k_x_0), 0, 0, 1, 1},
71419 {&__pyx_n_s_xi, __pyx_k_xi,
sizeof(__pyx_k_xi), 0, 0, 1, 1},
71420 {&__pyx_n_s_xx, __pyx_k_xx,
sizeof(__pyx_k_xx), 0, 0, 1, 1},
71421 {&__pyx_n_s_zeros, __pyx_k_zeros,
sizeof(__pyx_k_zeros), 0, 0, 1, 1},
71422 {&__pyx_n_s_zone_type, __pyx_k_zone_type,
sizeof(__pyx_k_zone_type), 0, 0, 1, 1},
71423 {&__pyx_n_s_zones, __pyx_k_zones,
sizeof(__pyx_k_zones), 0, 0, 1, 1},
71424 {0, 0, 0, 0, 0, 0, 0}
71426 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
71427 __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super);
if (!__pyx_builtin_super) __PYX_ERR(0, 44, __pyx_L1_error)
71428 __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError);
if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
71429 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(3, 945, __pyx_L1_error)
71430 __pyx_builtin_OverflowError = __Pyx_GetBuiltinName(__pyx_n_s_OverflowError);
if (!__pyx_builtin_OverflowError) __PYX_ERR(1, 81, __pyx_L1_error)
71431 __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate);
if (!__pyx_builtin_enumerate) __PYX_ERR(1, 84, __pyx_L1_error)
71432 __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError);
if (!__pyx_builtin_IndexError) __PYX_ERR(1, 94, __pyx_L1_error)
71433 __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError);
if (!__pyx_builtin_ValueError) __PYX_ERR(1, 133, __pyx_L1_error)
71434 __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError);
if (!__pyx_builtin_MemoryError) __PYX_ERR(1, 148, __pyx_L1_error)
71435 __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range);
if (!__pyx_builtin_range) __PYX_ERR(1, 180, __pyx_L1_error)
71436 __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis);
if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 404, __pyx_L1_error)
71437 __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id);
if (!__pyx_builtin_id) __PYX_ERR(1, 613, __pyx_L1_error)
71443 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
71444 __Pyx_RefNannyDeclarations
71445 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
71454 __pyx_tuple__10 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_x_0, __pyx_n_s_new_x_0, __pyx_n_s_hx);
if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 395, __pyx_L1_error)
71455 __Pyx_GOTREF(__pyx_tuple__10);
71456 __Pyx_GIVEREF(__pyx_tuple__10);
71457 __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_DBC_h, 395, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 395, __pyx_L1_error)
71458 __pyx_tuple__12 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 395, __pyx_L1_error)
71459 __Pyx_GOTREF(__pyx_tuple__12);
71460 __Pyx_GIVEREF(__pyx_tuple__12);
71469 __pyx_tuple__14 = PyTuple_Pack(3, __pyx_n_s_i, __pyx_n_s_DBC_h, __pyx_n_s_DBC_h);
if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 394, __pyx_L1_error)
71470 __Pyx_GOTREF(__pyx_tuple__14);
71471 __Pyx_GIVEREF(__pyx_tuple__14);
71472 __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__14, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_DBC_h, 394, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(0, 394, __pyx_L1_error)
71481 __pyx_tuple__17 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 407, __pyx_L1_error)
71482 __Pyx_GOTREF(__pyx_tuple__17);
71483 __Pyx_GIVEREF(__pyx_tuple__17);
71492 __pyx_tuple__18 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 408, __pyx_L1_error)
71493 __Pyx_GOTREF(__pyx_tuple__18);
71494 __Pyx_GIVEREF(__pyx_tuple__18);
71503 __pyx_tuple__19 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 409, __pyx_L1_error)
71504 __Pyx_GOTREF(__pyx_tuple__19);
71505 __Pyx_GIVEREF(__pyx_tuple__19);
71514 __pyx_tuple__23 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 472, __pyx_L1_error)
71515 __Pyx_GOTREF(__pyx_tuple__23);
71516 __Pyx_GIVEREF(__pyx_tuple__23);
71525 __pyx_tuple__24 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 473, __pyx_L1_error)
71526 __Pyx_GOTREF(__pyx_tuple__24);
71527 __Pyx_GIVEREF(__pyx_tuple__24);
71536 __pyx_tuple__25 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 474, __pyx_L1_error)
71537 __Pyx_GOTREF(__pyx_tuple__25);
71538 __Pyx_GIVEREF(__pyx_tuple__25);
71547 __pyx_tuple__26 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 475, __pyx_L1_error)
71548 __Pyx_GOTREF(__pyx_tuple__26);
71549 __Pyx_GIVEREF(__pyx_tuple__26);
71558 __pyx_tuple__27 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 476, __pyx_L1_error)
71559 __Pyx_GOTREF(__pyx_tuple__27);
71560 __Pyx_GIVEREF(__pyx_tuple__27);
71569 __pyx_tuple__28 = PyTuple_Pack(3, __pyx_float_0_, __pyx_float_0_, __pyx_float_0_);
if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 494, __pyx_L1_error)
71570 __Pyx_GOTREF(__pyx_tuple__28);
71571 __Pyx_GIVEREF(__pyx_tuple__28);
71580 __pyx_tuple__30 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 518, __pyx_L1_error)
71581 __Pyx_GOTREF(__pyx_tuple__30);
71582 __Pyx_GIVEREF(__pyx_tuple__30);
71591 __pyx_tuple__31 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 519, __pyx_L1_error)
71592 __Pyx_GOTREF(__pyx_tuple__31);
71593 __Pyx_GIVEREF(__pyx_tuple__31);
71602 __pyx_tuple__32 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 520, __pyx_L1_error)
71603 __Pyx_GOTREF(__pyx_tuple__32);
71604 __Pyx_GIVEREF(__pyx_tuple__32);
71613 __pyx_tuple__38 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 583, __pyx_L1_error)
71614 __Pyx_GOTREF(__pyx_tuple__38);
71615 __Pyx_GIVEREF(__pyx_tuple__38);
71624 __pyx_tuple__39 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 584, __pyx_L1_error)
71625 __Pyx_GOTREF(__pyx_tuple__39);
71626 __Pyx_GIVEREF(__pyx_tuple__39);
71635 __pyx_tuple__40 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 585, __pyx_L1_error)
71636 __Pyx_GOTREF(__pyx_tuple__40);
71637 __Pyx_GIVEREF(__pyx_tuple__40);
71646 __pyx_tuple__41 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 586, __pyx_L1_error)
71647 __Pyx_GOTREF(__pyx_tuple__41);
71648 __Pyx_GIVEREF(__pyx_tuple__41);
71657 __pyx_tuple__42 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 587, __pyx_L1_error)
71658 __Pyx_GOTREF(__pyx_tuple__42);
71659 __Pyx_GIVEREF(__pyx_tuple__42);
71668 __pyx_tuple__43 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 588, __pyx_L1_error)
71669 __Pyx_GOTREF(__pyx_tuple__43);
71670 __Pyx_GIVEREF(__pyx_tuple__43);
71679 __pyx_tuple__44 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 589, __pyx_L1_error)
71680 __Pyx_GOTREF(__pyx_tuple__44);
71681 __Pyx_GIVEREF(__pyx_tuple__44);
71690 __pyx_tuple__45 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 592, __pyx_L1_error)
71691 __Pyx_GOTREF(__pyx_tuple__45);
71692 __Pyx_GIVEREF(__pyx_tuple__45);
71701 __pyx_tuple__46 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H, __pyx_n_s_u);
if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 697, __pyx_L1_error)
71702 __Pyx_GOTREF(__pyx_tuple__46);
71703 __Pyx_GIVEREF(__pyx_tuple__46);
71704 __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_ux_dirichlet, 697, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 697, __pyx_L1_error)
71705 __pyx_tuple__48 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 697, __pyx_L1_error)
71706 __Pyx_GOTREF(__pyx_tuple__48);
71707 __Pyx_GIVEREF(__pyx_tuple__48);
71716 __pyx_tuple__50 = PyTuple_Pack(3, __pyx_n_s_i, __pyx_n_s_ux_dirichlet, __pyx_n_s_ux_dirichlet);
if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 696, __pyx_L1_error)
71717 __Pyx_GOTREF(__pyx_tuple__50);
71718 __Pyx_GIVEREF(__pyx_tuple__50);
71719 __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_inlet_ux_dirichlet, 696, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 696, __pyx_L1_error)
71728 __pyx_tuple__52 = PyTuple_Pack(4, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 709, __pyx_L1_error)
71729 __Pyx_GOTREF(__pyx_tuple__52);
71730 __Pyx_GIVEREF(__pyx_tuple__52);
71731 __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_inlet_phi_dirichlet, 709, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 709, __pyx_L1_error)
71732 __pyx_tuple__54 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 709, __pyx_L1_error)
71733 __Pyx_GOTREF(__pyx_tuple__54);
71734 __Pyx_GIVEREF(__pyx_tuple__54);
71743 __pyx_tuple__55 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H, __pyx_n_s_vof);
if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 713, __pyx_L1_error)
71744 __Pyx_GOTREF(__pyx_tuple__55);
71745 __Pyx_GIVEREF(__pyx_tuple__55);
71746 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_inlet_vof_dirichlet, 713, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 713, __pyx_L1_error)
71747 __pyx_tuple__57 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 713, __pyx_L1_error)
71748 __Pyx_GOTREF(__pyx_tuple__57);
71749 __Pyx_GIVEREF(__pyx_tuple__57);
71758 __pyx_tuple__58 = PyTuple_Pack(8, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_b_or, __pyx_n_s_phi, __pyx_n_s_H, __pyx_n_s_u, __pyx_n_s_u_p);
if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 724, __pyx_L1_error)
71759 __Pyx_GOTREF(__pyx_tuple__58);
71760 __Pyx_GIVEREF(__pyx_tuple__58);
71761 __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_inlet_p_advective, 724, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 724, __pyx_L1_error)
71762 __pyx_tuple__60 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 724, __pyx_L1_error)
71763 __Pyx_GOTREF(__pyx_tuple__60);
71764 __Pyx_GIVEREF(__pyx_tuple__60);
71773 __pyx_tuple__61 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 739, __pyx_L1_error)
71774 __Pyx_GOTREF(__pyx_tuple__61);
71775 __Pyx_GIVEREF(__pyx_tuple__61);
71776 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_inlet_k_dirichlet, 739, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 739, __pyx_L1_error)
71777 __pyx_tuple__63 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 739, __pyx_L1_error)
71778 __Pyx_GOTREF(__pyx_tuple__63);
71779 __Pyx_GIVEREF(__pyx_tuple__63);
71788 __pyx_tuple__64 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 749, __pyx_L1_error)
71789 __Pyx_GOTREF(__pyx_tuple__64);
71790 __Pyx_GIVEREF(__pyx_tuple__64);
71791 __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_inlet_dissipation_dirichlet, 749, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 749, __pyx_L1_error)
71792 __pyx_tuple__66 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 749, __pyx_L1_error)
71793 __Pyx_GOTREF(__pyx_tuple__66);
71794 __Pyx_GIVEREF(__pyx_tuple__66);
71803 __pyx_tuple__67 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 879, __pyx_L1_error)
71804 __Pyx_GOTREF(__pyx_tuple__67);
71805 __Pyx_GIVEREF(__pyx_tuple__67);
71806 __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_ux_dirichlet, 879, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 879, __pyx_L1_error)
71807 __pyx_tuple__69 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 879, __pyx_L1_error)
71808 __Pyx_GOTREF(__pyx_tuple__69);
71809 __Pyx_GIVEREF(__pyx_tuple__69);
71818 __pyx_tuple__71 = PyTuple_Pack(6, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_p_top, __pyx_n_s_phi_top, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 801, __pyx_L1_error)
71819 __Pyx_GOTREF(__pyx_tuple__71);
71820 __Pyx_GIVEREF(__pyx_tuple__71);
71821 __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_hydrostaticPressureOutletWithDep, 801, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 801, __pyx_L1_error)
71822 __pyx_tuple__73 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 801, __pyx_L1_error)
71823 __Pyx_GOTREF(__pyx_tuple__73);
71824 __Pyx_GIVEREF(__pyx_tuple__73);
71833 __pyx_tuple__74 = PyTuple_Pack(4, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi);
if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 811, __pyx_L1_error)
71834 __Pyx_GOTREF(__pyx_tuple__74);
71835 __Pyx_GIVEREF(__pyx_tuple__74);
71836 __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_hydrostaticPressureOutletWithDep_2, 811, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(0, 811, __pyx_L1_error)
71837 __pyx_tuple__76 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 811, __pyx_L1_error)
71838 __Pyx_GOTREF(__pyx_tuple__76);
71839 __Pyx_GIVEREF(__pyx_tuple__76);
71848 __pyx_tuple__77 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 815, __pyx_L1_error)
71849 __Pyx_GOTREF(__pyx_tuple__77);
71850 __Pyx_GIVEREF(__pyx_tuple__77);
71851 __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_hydrostaticPressureOutletWithDep_3, 815, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 815, __pyx_L1_error)
71852 __pyx_tuple__79 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 815, __pyx_L1_error)
71853 __Pyx_GOTREF(__pyx_tuple__79);
71854 __Pyx_GIVEREF(__pyx_tuple__79);
71863 __pyx_tuple__80 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 825, __pyx_L1_error)
71864 __Pyx_GOTREF(__pyx_tuple__80);
71865 __Pyx_GIVEREF(__pyx_tuple__80);
71866 __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_inlet_k_dirichlet, 825, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(0, 825, __pyx_L1_error)
71867 __pyx_tuple__82 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 825, __pyx_L1_error)
71868 __Pyx_GOTREF(__pyx_tuple__82);
71869 __Pyx_GIVEREF(__pyx_tuple__82);
71878 __pyx_tuple__83 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_phi, __pyx_n_s_H);
if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 835, __pyx_L1_error)
71879 __Pyx_GOTREF(__pyx_tuple__83);
71880 __Pyx_GIVEREF(__pyx_tuple__83);
71881 __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_inlet_dissipation_dirichlet, 835, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 835, __pyx_L1_error)
71882 __pyx_tuple__85 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 835, __pyx_L1_error)
71883 __Pyx_GOTREF(__pyx_tuple__85);
71884 __Pyx_GIVEREF(__pyx_tuple__85);
71893 __pyx_tuple__86 = PyTuple_Pack(3, __pyx_n_s_i, __pyx_n_s_ux_dirichlet, __pyx_n_s_ux_dirichlet);
if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 878, __pyx_L1_error)
71894 __Pyx_GOTREF(__pyx_tuple__86);
71895 __Pyx_GIVEREF(__pyx_tuple__86);
71896 __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_inlet_ux_dirichlet, 878, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(0, 878, __pyx_L1_error)
71904 __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__96)) __PYX_ERR(1, 2, __pyx_L1_error)
71905 __Pyx_GOTREF(__pyx_tuple__96);
71906 __Pyx_GIVEREF(__pyx_tuple__96);
71913 __pyx_tuple__98 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__98)) __PYX_ERR(1, 4, __pyx_L1_error)
71914 __Pyx_GOTREF(__pyx_tuple__98);
71915 __Pyx_GIVEREF(__pyx_tuple__98);
71924 __pyx_slice__117 = PySlice_New(Py_None, __pyx_int_2, Py_None);
if (unlikely(!__pyx_slice__117)) __PYX_ERR(0, 1433, __pyx_L1_error)
71925 __Pyx_GOTREF(__pyx_slice__117);
71926 __Pyx_GIVEREF(__pyx_slice__117);
71935 __pyx_tuple__138 = PyTuple_Pack(3, __pyx_int_190238252, __pyx_int_95533784, __pyx_int_216769129);
if (unlikely(!__pyx_tuple__138)) __PYX_ERR(1, 4, __pyx_L1_error)
71936 __Pyx_GOTREF(__pyx_tuple__138);
71937 __Pyx_GIVEREF(__pyx_tuple__138);
71938 __pyx_tuple__140 = PyTuple_Pack(3, __pyx_int_3281892, __pyx_int_207031348, __pyx_int_249493883);
if (unlikely(!__pyx_tuple__140)) __PYX_ERR(1, 4, __pyx_L1_error)
71939 __Pyx_GOTREF(__pyx_tuple__140);
71940 __Pyx_GIVEREF(__pyx_tuple__140);
71941 __pyx_tuple__142 = PyTuple_Pack(3, __pyx_int_24898426, __pyx_int_161222453, __pyx_int_37384334);
if (unlikely(!__pyx_tuple__142)) __PYX_ERR(1, 4, __pyx_L1_error)
71942 __Pyx_GOTREF(__pyx_tuple__142);
71943 __Pyx_GIVEREF(__pyx_tuple__142);
71952 __pyx_tuple__143 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple__143)) __PYX_ERR(3, 945, __pyx_L1_error)
71953 __Pyx_GOTREF(__pyx_tuple__143);
71954 __Pyx_GIVEREF(__pyx_tuple__143);
71963 __pyx_tuple__144 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__144)) __PYX_ERR(3, 951, __pyx_L1_error)
71964 __Pyx_GOTREF(__pyx_tuple__144);
71965 __Pyx_GIVEREF(__pyx_tuple__144);
71974 __pyx_tuple__145 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr);
if (unlikely(!__pyx_tuple__145)) __PYX_ERR(1, 133, __pyx_L1_error)
71975 __Pyx_GOTREF(__pyx_tuple__145);
71976 __Pyx_GIVEREF(__pyx_tuple__145);
71985 __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array);
if (unlikely(!__pyx_tuple__146)) __PYX_ERR(1, 136, __pyx_L1_error)
71986 __Pyx_GOTREF(__pyx_tuple__146);
71987 __Pyx_GIVEREF(__pyx_tuple__146);
71996 __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str);
if (unlikely(!__pyx_tuple__147)) __PYX_ERR(1, 148, __pyx_L1_error)
71997 __Pyx_GOTREF(__pyx_tuple__147);
71998 __Pyx_GIVEREF(__pyx_tuple__147);
72007 __pyx_tuple__148 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data);
if (unlikely(!__pyx_tuple__148)) __PYX_ERR(1, 176, __pyx_L1_error)
72008 __Pyx_GOTREF(__pyx_tuple__148);
72009 __Pyx_GIVEREF(__pyx_tuple__148);
72018 __pyx_tuple__149 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is);
if (unlikely(!__pyx_tuple__149)) __PYX_ERR(1, 192, __pyx_L1_error)
72019 __Pyx_GOTREF(__pyx_tuple__149);
72020 __Pyx_GIVEREF(__pyx_tuple__149);
72028 __pyx_tuple__150 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__150)) __PYX_ERR(1, 2, __pyx_L1_error)
72029 __Pyx_GOTREF(__pyx_tuple__150);
72030 __Pyx_GIVEREF(__pyx_tuple__150);
72037 __pyx_tuple__151 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__151)) __PYX_ERR(1, 4, __pyx_L1_error)
72038 __Pyx_GOTREF(__pyx_tuple__151);
72039 __Pyx_GIVEREF(__pyx_tuple__151);
72048 __pyx_tuple__152 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor);
if (unlikely(!__pyx_tuple__152)) __PYX_ERR(1, 418, __pyx_L1_error)
72049 __Pyx_GOTREF(__pyx_tuple__152);
72050 __Pyx_GIVEREF(__pyx_tuple__152);
72059 __pyx_tuple__153 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object);
if (unlikely(!__pyx_tuple__153)) __PYX_ERR(1, 495, __pyx_L1_error)
72060 __Pyx_GOTREF(__pyx_tuple__153);
72061 __Pyx_GIVEREF(__pyx_tuple__153);
72070 __pyx_tuple__154 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi);
if (unlikely(!__pyx_tuple__154)) __PYX_ERR(1, 520, __pyx_L1_error)
72071 __Pyx_GOTREF(__pyx_tuple__154);
72072 __Pyx_GIVEREF(__pyx_tuple__154);
72081 __pyx_tuple__155 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri);
if (unlikely(!__pyx_tuple__155)) __PYX_ERR(1, 570, __pyx_L1_error)
72082 __Pyx_GOTREF(__pyx_tuple__155);
72083 __Pyx_GIVEREF(__pyx_tuple__155);
72092 __pyx_tuple__156 = PyTuple_New(1);
if (unlikely(!__pyx_tuple__156)) __PYX_ERR(1, 577, __pyx_L1_error)
72093 __Pyx_GOTREF(__pyx_tuple__156);
72094 __Pyx_INCREF(__pyx_int_neg_1);
72095 __Pyx_GIVEREF(__pyx_int_neg_1);
72096 PyTuple_SET_ITEM(__pyx_tuple__156, 0, __pyx_int_neg_1);
72097 __Pyx_GIVEREF(__pyx_tuple__156);
72105 __pyx_tuple__157 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__157)) __PYX_ERR(1, 2, __pyx_L1_error)
72106 __Pyx_GOTREF(__pyx_tuple__157);
72107 __Pyx_GIVEREF(__pyx_tuple__157);
72114 __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__158)) __PYX_ERR(1, 4, __pyx_L1_error)
72115 __Pyx_GOTREF(__pyx_tuple__158);
72116 __Pyx_GIVEREF(__pyx_tuple__158);
72125 __pyx_slice__159 = PySlice_New(Py_None, Py_None, Py_None);
if (unlikely(!__pyx_slice__159)) __PYX_ERR(1, 682, __pyx_L1_error)
72126 __Pyx_GOTREF(__pyx_slice__159);
72127 __Pyx_GIVEREF(__pyx_slice__159);
72136 __pyx_tuple__160 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte);
if (unlikely(!__pyx_tuple__160)) __PYX_ERR(1, 703, __pyx_L1_error)
72137 __Pyx_GOTREF(__pyx_tuple__160);
72138 __Pyx_GIVEREF(__pyx_tuple__160);
72146 __pyx_tuple__161 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__161)) __PYX_ERR(1, 2, __pyx_L1_error)
72147 __Pyx_GOTREF(__pyx_tuple__161);
72148 __Pyx_GIVEREF(__pyx_tuple__161);
72155 __pyx_tuple__162 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__162)) __PYX_ERR(1, 4, __pyx_L1_error)
72156 __Pyx_GOTREF(__pyx_tuple__162);
72157 __Pyx_GIVEREF(__pyx_tuple__162);
72158 __pyx_tuple__164 = PyTuple_Pack(3, __pyx_int_184977713, __pyx_int_136983863, __pyx_int_112105877);
if (unlikely(!__pyx_tuple__164)) __PYX_ERR(1, 4, __pyx_L1_error)
72159 __Pyx_GOTREF(__pyx_tuple__164);
72160 __Pyx_GIVEREF(__pyx_tuple__164);
72169 __pyx_tuple__170 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__170)) __PYX_ERR(0, 103, __pyx_L1_error)
72170 __Pyx_GOTREF(__pyx_tuple__170);
72171 __Pyx_GIVEREF(__pyx_tuple__170);
72172 __pyx_codeobj_ = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__170, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_reset, 103, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj_)) __PYX_ERR(0, 103, __pyx_L1_error)
72181 __pyx_tuple__171 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 150, __pyx_L1_error)
72182 __Pyx_GOTREF(__pyx_tuple__171);
72183 __Pyx_GIVEREF(__pyx_tuple__171);
72184 __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_setNonMaterial, 150, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(0, 150, __pyx_L1_error)
72193 __pyx_tuple__172 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_b_or);
if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 173, __pyx_L1_error)
72194 __Pyx_GOTREF(__pyx_tuple__172);
72195 __Pyx_GIVEREF(__pyx_tuple__172);
72196 __pyx_codeobj__3 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__172, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setTank, 173, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__3)) __PYX_ERR(0, 173, __pyx_L1_error)
72205 __pyx_tuple__173 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 193, __pyx_L1_error)
72206 __Pyx_GOTREF(__pyx_tuple__173);
72207 __Pyx_GIVEREF(__pyx_tuple__173);
72208 __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_setFixedNodes, 193, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 193, __pyx_L1_error)
72217 __pyx_tuple__174 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__174)) __PYX_ERR(0, 204, __pyx_L1_error)
72218 __Pyx_GOTREF(__pyx_tuple__174);
72219 __Pyx_GIVEREF(__pyx_tuple__174);
72220 __pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__174, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setNoSlip, 204, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 204, __pyx_L1_error)
72229 __pyx_tuple__175 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 230, __pyx_L1_error)
72230 __Pyx_GOTREF(__pyx_tuple__175);
72231 __Pyx_GIVEREF(__pyx_tuple__175);
72232 __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_setFreeSlip, 230, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 230, __pyx_L1_error)
72241 __pyx_tuple__176 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_U, __pyx_n_s_ramp, __pyx_n_s_kk, __pyx_n_s_dd, __pyx_n_s_b_or, __pyx_n_s_Uin, __pyx_n_s_uu, __pyx_n_s_vv, __pyx_n_s_ww);
if (unlikely(!__pyx_tuple__176)) __PYX_ERR(0, 262, __pyx_L1_error)
72242 __Pyx_GOTREF(__pyx_tuple__176);
72243 __Pyx_GIVEREF(__pyx_tuple__176);
72244 __pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(6, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__176, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setConstantInletVelocity, 262, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(0, 262, __pyx_L1_error)
72253 __pyx_tuple__177 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_p, __pyx_n_s_rho, __pyx_n_s_g, __pyx_n_s_kk, __pyx_n_s_dd, __pyx_n_s_b_or, __pyx_n_s_a1);
if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 292, __pyx_L1_error)
72254 __Pyx_GOTREF(__pyx_tuple__177);
72255 __Pyx_GIVEREF(__pyx_tuple__177);
72256 __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(7, 0, 8, 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_mprans_BoundaryCondition, __pyx_n_s_setConstantOutletPressure, 292, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 292, __pyx_L1_error)
72265 __pyx_tuple__178 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_orientation, __pyx_n_s_vof_air, __pyx_n_s_kInflow, __pyx_n_s_dInflow);
if (unlikely(!__pyx_tuple__178)) __PYX_ERR(0, 326, __pyx_L1_error)
72266 __Pyx_GOTREF(__pyx_tuple__178);
72267 __Pyx_GIVEREF(__pyx_tuple__178);
72268 __pyx_codeobj__9 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__178, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setAtmosphere, 326, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__9)) __PYX_ERR(0, 326, __pyx_L1_error)
72277 __pyx_tuple__179 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_body, __pyx_n_s_get_DBC_h, __pyx_n_s_get_DBC_h);
if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 377, __pyx_L1_error)
72278 __Pyx_GOTREF(__pyx_tuple__179);
72279 __Pyx_GIVEREF(__pyx_tuple__179);
72280 __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 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_mprans_BoundaryCondition, __pyx_n_s_setRigidBodyMoveMesh, 377, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 377, __pyx_L1_error)
72289 __pyx_tuple__180 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_body);
if (unlikely(!__pyx_tuple__180)) __PYX_ERR(0, 406, __pyx_L1_error)
72290 __Pyx_GOTREF(__pyx_tuple__180);
72291 __Pyx_GIVEREF(__pyx_tuple__180);
72292 __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__180, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setChMoveMesh, 406, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 406, __pyx_L1_error)
72301 __pyx_tuple__181 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_kVal, __pyx_n_s_dissipationVal);
if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 411, __pyx_L1_error)
72302 __Pyx_GOTREF(__pyx_tuple__181);
72303 __Pyx_GIVEREF(__pyx_tuple__181);
72304 __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_mprans_BoundaryCondition, __pyx_n_s_setTurbulentDirichlet, 411, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 411, __pyx_L1_error)
72313 __pyx_tuple__182 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__182)) __PYX_ERR(0, 433, __pyx_L1_error)
72314 __Pyx_GOTREF(__pyx_tuple__182);
72315 __Pyx_GIVEREF(__pyx_tuple__182);
72316 __pyx_codeobj__21 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setTurbulentZeroGradient, 433, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__21)) __PYX_ERR(0, 433, __pyx_L1_error)
72325 __pyx_tuple__183 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_wall, __pyx_n_s_shearStress, __pyx_n_s_wf);
if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 446, __pyx_L1_error)
72326 __Pyx_GOTREF(__pyx_tuple__183);
72327 __Pyx_GIVEREF(__pyx_tuple__183);
72328 __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 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_mprans_BoundaryCondition, __pyx_n_s_setWallFunction, 446, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 446, __pyx_L1_error)
72337 __pyx_tuple__184 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_last_pos, __pyx_n_s_h, __pyx_n_s_rot_matrix);
if (unlikely(!__pyx_tuple__184)) __PYX_ERR(0, 494, __pyx_L1_error)
72338 __Pyx_GOTREF(__pyx_tuple__184);
72339 __Pyx_GIVEREF(__pyx_tuple__184);
72340 __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__184, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setMoveMesh, 494, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__29)) __PYX_ERR(0, 494, __pyx_L1_error)
72349 __pyx_tuple__185 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t);
if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 522, __pyx_L1_error)
72350 __Pyx_GOTREF(__pyx_tuple__185);
72351 __Pyx_GIVEREF(__pyx_tuple__185);
72352 __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_mprans_BoundaryCondition, __pyx_n_s_cpp_MoveMesh_h, 522, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(0, 522, __pyx_L1_error)
72361 __pyx_tuple__186 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t);
if (unlikely(!__pyx_tuple__186)) __PYX_ERR(0, 535, __pyx_L1_error)
72362 __Pyx_GOTREF(__pyx_tuple__186);
72363 __Pyx_GIVEREF(__pyx_tuple__186);
72364 __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__186, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_cpp_MoveMesh_hx, 535, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 535, __pyx_L1_error)
72373 __pyx_tuple__187 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t);
if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 538, __pyx_L1_error)
72374 __Pyx_GOTREF(__pyx_tuple__187);
72375 __Pyx_GIVEREF(__pyx_tuple__187);
72376 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 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_mprans_BoundaryCondition, __pyx_n_s_cpp_MoveMesh_hy, 538, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 538, __pyx_L1_error)
72385 __pyx_tuple__188 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t);
if (unlikely(!__pyx_tuple__188)) __PYX_ERR(0, 541, __pyx_L1_error)
72386 __Pyx_GOTREF(__pyx_tuple__188);
72387 __Pyx_GIVEREF(__pyx_tuple__188);
72388 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__188, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_cpp_MoveMesh_hz, 541, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 541, __pyx_L1_error)
72397 __pyx_tuple__189 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_wave, __pyx_n_s_smoothing, __pyx_n_s_vert_axis, __pyx_n_s_orientation, __pyx_n_s_wind_speed, __pyx_n_s_vof_air, __pyx_n_s_vof_water, __pyx_n_s_kInflow, __pyx_n_s_dInflow, __pyx_n_s_b_or);
if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 544, __pyx_L1_error)
72398 __Pyx_GOTREF(__pyx_tuple__189);
72399 __Pyx_GIVEREF(__pyx_tuple__189);
72400 __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(10, 0, 11, 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_mprans_BoundaryCondition, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet_2, 544, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(0, 544, __pyx_L1_error)
72409 __pyx_tuple__190 = PyTuple_Pack(24, __pyx_n_s_self, __pyx_n_s_U, __pyx_n_s_waterLevel, __pyx_n_s_smoothing, __pyx_n_s_Uwind, __pyx_n_s_vert_axis, __pyx_n_s_air, __pyx_n_s_water, __pyx_n_s_kInflow, __pyx_n_s_dissipationInflow, __pyx_n_s_kInflowAir, __pyx_n_s_dissipationInflowAir, __pyx_n_s_get_inlet_ux_dirichlet, __pyx_n_s_get_inlet_ux_dirichlet, __pyx_n_s_inlet_phi_dirichlet, __pyx_n_s_inlet_phi_dirichlet, __pyx_n_s_inlet_vof_dirichlet, __pyx_n_s_inlet_vof_dirichlet, __pyx_n_s_inlet_p_advective, __pyx_n_s_inlet_p_advective, __pyx_n_s_inlet_k_dirichlet, __pyx_n_s_inlet_k_dirichlet, __pyx_n_s_inlet_dissipation_dirichlet, __pyx_n_s_inlet_dissipation_dirichlet);
if (unlikely(!__pyx_tuple__190)) __PYX_ERR(0, 644, __pyx_L1_error)
72410 __Pyx_GOTREF(__pyx_tuple__190);
72411 __Pyx_GIVEREF(__pyx_tuple__190);
72412 __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(12, 0, 24, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__190, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setTwoPhaseVelocityInlet, 644, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(0, 644, __pyx_L1_error)
72421 __pyx_tuple__191 = PyTuple_Pack(31, __pyx_n_s_self, __pyx_n_s_seaLevel, __pyx_n_s_rhoUp, __pyx_n_s_rhoDown, __pyx_n_s_g, __pyx_n_s_refLevel, __pyx_n_s_smoothing, __pyx_n_s_orientation, __pyx_n_s_U, __pyx_n_s_Uwind, __pyx_n_s_pRef, __pyx_n_s_vert_axis, __pyx_n_s_air, __pyx_n_s_water, __pyx_n_s_kInflow, __pyx_n_s_dissipationInflow, __pyx_n_s_kInflowAir, __pyx_n_s_dissipationInflowAir, __pyx_n_s_hydrostaticPressureOutletWithDep, __pyx_n_s_hydrostaticPressureOutletWithDep, __pyx_n_s_hydrostaticPressureOutletWithDep_2, __pyx_n_s_hydrostaticPressureOutletWithDep_2, __pyx_n_s_hydrostaticPressureOutletWithDep_3, __pyx_n_s_hydrostaticPressureOutletWithDep_3, __pyx_n_s_inlet_k_dirichlet, __pyx_n_s_inlet_k_dirichlet, __pyx_n_s_inlet_dissipation_dirichlet, __pyx_n_s_inlet_dissipation_dirichlet, __pyx_n_s_b_or, __pyx_n_s_get_inlet_ux_dirichlet, __pyx_n_s_get_inlet_ux_dirichlet);
if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 774, __pyx_L1_error)
72422 __Pyx_GOTREF(__pyx_tuple__191);
72423 __Pyx_GIVEREF(__pyx_tuple__191);
72424 __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(18, 0, 31, 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_mprans_BoundaryCondition, __pyx_n_s_setHydrostaticPressureOutletWith_8, 774, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 774, __pyx_L1_error)
72431 __pyx_tuple__192 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_state, __pyx_n_s_dict_2, __pyx_n_s_use_setstate);
if (unlikely(!__pyx_tuple__192)) __PYX_ERR(1, 1, __pyx_L1_error)
72432 __Pyx_GOTREF(__pyx_tuple__192);
72433 __Pyx_GIVEREF(__pyx_tuple__192);
72434 __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__192, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(1, 1, __pyx_L1_error)
72442 __pyx_tuple__193 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state);
if (unlikely(!__pyx_tuple__193)) __PYX_ERR(1, 16, __pyx_L1_error)
72443 __Pyx_GOTREF(__pyx_tuple__193);
72444 __Pyx_GIVEREF(__pyx_tuple__193);
72445 __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(1, 16, __pyx_L1_error)
72454 __pyx_tuple__194 = PyTuple_Pack(2, __pyx_float_0_5, __pyx_float_1_005eneg_6);
if (unlikely(!__pyx_tuple__194)) __PYX_ERR(0, 949, __pyx_L1_error)
72455 __Pyx_GOTREF(__pyx_tuple__194);
72456 __Pyx_GIVEREF(__pyx_tuple__194);
72465 __pyx_tuple__195 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 968, __pyx_L1_error)
72466 __Pyx_GOTREF(__pyx_tuple__195);
72467 __Pyx_GIVEREF(__pyx_tuple__195);
72468 __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_calculate_init, 968, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 968, __pyx_L1_error)
72477 __pyx_tuple__196 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_xx, __pyx_n_s_tt, __pyx_n_s_ph);
if (unlikely(!__pyx_tuple__196)) __PYX_ERR(0, 1013, __pyx_L1_error)
72478 __Pyx_GOTREF(__pyx_tuple__196);
72479 __Pyx_GIVEREF(__pyx_tuple__196);
72480 __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__196, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_calculate_phi_python, 1013, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(0, 1013, __pyx_L1_error)
72489 __pyx_tuple__197 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_xx, __pyx_n_s_tt);
if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 1021, __pyx_L1_error)
72490 __Pyx_GOTREF(__pyx_tuple__197);
72491 __Pyx_GIVEREF(__pyx_tuple__197);
72492 __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_calculate_vel_python, 1021, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 1021, __pyx_L1_error)
72499 __pyx_tuple__198 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__198)) __PYX_ERR(1, 1, __pyx_L1_error)
72500 __Pyx_GOTREF(__pyx_tuple__198);
72501 __Pyx_GIVEREF(__pyx_tuple__198);
72502 __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__198, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(1, 1, __pyx_L1_error)
72510 __pyx_tuple__199 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state);
if (unlikely(!__pyx_tuple__199)) __PYX_ERR(1, 3, __pyx_L1_error)
72511 __Pyx_GOTREF(__pyx_tuple__199);
72512 __Pyx_GIVEREF(__pyx_tuple__199);
72513 __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(1, 3, __pyx_L1_error)
72522 __pyx_tuple__200 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_model, __pyx_n_s_ar);
if (unlikely(!__pyx_tuple__200)) __PYX_ERR(0, 1054, __pyx_L1_error)
72523 __Pyx_GOTREF(__pyx_tuple__200);
72524 __Pyx_GIVEREF(__pyx_tuple__200);
72525 __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__200, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_attachModel, 1054, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(0, 1054, __pyx_L1_error)
72534 __pyx_tuple__201 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_avDict);
if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1059, __pyx_L1_error)
72535 __Pyx_GOTREF(__pyx_tuple__201);
72536 __Pyx_GIVEREF(__pyx_tuple__201);
72537 __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_mprans_BoundaryCondition, __pyx_n_s_attachAuxiliaryVariables, 1059, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 1059, __pyx_L1_error)
72546 __pyx_tuple__202 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__202)) __PYX_ERR(0, 1062, __pyx_L1_error)
72547 __Pyx_GOTREF(__pyx_tuple__202);
72548 __Pyx_GIVEREF(__pyx_tuple__202);
72549 __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__202, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_calculate_init, 1062, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(0, 1062, __pyx_L1_error)
72558 __pyx_tuple__203 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1073, __pyx_L1_error)
72559 __Pyx_GOTREF(__pyx_tuple__203);
72560 __Pyx_GIVEREF(__pyx_tuple__203);
72561 __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_calculate, 1073, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 1073, __pyx_L1_error)
72568 __pyx_tuple__204 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_state, __pyx_n_s_dict_2, __pyx_n_s_use_setstate);
if (unlikely(!__pyx_tuple__204)) __PYX_ERR(1, 1, __pyx_L1_error)
72569 __Pyx_GOTREF(__pyx_tuple__204);
72570 __Pyx_GIVEREF(__pyx_tuple__204);
72571 __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__204, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(1, 1, __pyx_L1_error)
72579 __pyx_tuple__205 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state);
if (unlikely(!__pyx_tuple__205)) __PYX_ERR(1, 16, __pyx_L1_error)
72580 __Pyx_GOTREF(__pyx_tuple__205);
72581 __Pyx_GIVEREF(__pyx_tuple__205);
72582 __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(1, 16, __pyx_L1_error)
72589 __pyx_tuple__206 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_state, __pyx_n_s_dict_2, __pyx_n_s_use_setstate);
if (unlikely(!__pyx_tuple__206)) __PYX_ERR(1, 1, __pyx_L1_error)
72590 __Pyx_GOTREF(__pyx_tuple__206);
72591 __Pyx_GIVEREF(__pyx_tuple__206);
72592 __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__206, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(1, 1, __pyx_L1_error)
72600 __pyx_tuple__207 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state);
if (unlikely(!__pyx_tuple__207)) __PYX_ERR(1, 16, __pyx_L1_error)
72601 __Pyx_GOTREF(__pyx_tuple__207);
72602 __Pyx_GIVEREF(__pyx_tuple__207);
72603 __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_stringsource, __pyx_n_s_setstate_cython, 16, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(1, 16, __pyx_L1_error)
72612 __pyx_tuple__208 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_turbModel, __pyx_n_s_kWall, __pyx_n_s_Y, __pyx_n_s_Yplus, __pyx_n_s_U0, __pyx_n_s_nu, __pyx_n_s_Cmu, __pyx_n_s_K, __pyx_n_s_B);
if (unlikely(!__pyx_tuple__208)) __PYX_ERR(0, 1225, __pyx_L1_error)
72613 __Pyx_GOTREF(__pyx_tuple__208);
72614 __Pyx_GIVEREF(__pyx_tuple__208);
72615 __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(10, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__208, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_init, 1225, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(0, 1225, __pyx_L1_error)
72616 __pyx_tuple__209 = PyTuple_Pack(4, ((PyObject*)__pyx_float_1_004eneg_6), ((PyObject*)__pyx_float_0_09), ((PyObject*)__pyx_float_0_41), ((PyObject*)__pyx_float_5_57));
if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 1225, __pyx_L1_error)
72617 __Pyx_GOTREF(__pyx_tuple__209);
72618 __Pyx_GIVEREF(__pyx_tuple__209);
72627 __pyx_tuple__210 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_model, __pyx_n_s_ar);
if (unlikely(!__pyx_tuple__210)) __PYX_ERR(0, 1277, __pyx_L1_error)
72628 __Pyx_GOTREF(__pyx_tuple__210);
72629 __Pyx_GIVEREF(__pyx_tuple__210);
72630 __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__210, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_attachModel, 1277, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 1277, __pyx_L1_error)
72639 __pyx_tuple__211 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_avDict);
if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 1288, __pyx_L1_error)
72640 __Pyx_GOTREF(__pyx_tuple__211);
72641 __Pyx_GIVEREF(__pyx_tuple__211);
72642 __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_mprans_BoundaryCondition, __pyx_n_s_attachAuxiliaryVariables, 1288, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(0, 1288, __pyx_L1_error)
72651 __pyx_tuple__212 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__212)) __PYX_ERR(0, 1291, __pyx_L1_error)
72652 __Pyx_GOTREF(__pyx_tuple__212);
72653 __Pyx_GIVEREF(__pyx_tuple__212);
72654 __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__212, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_calculate_init, 1291, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 1291, __pyx_L1_error)
72663 __pyx_tuple__213 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 1294, __pyx_L1_error)
72664 __Pyx_GOTREF(__pyx_tuple__213);
72665 __Pyx_GIVEREF(__pyx_tuple__213);
72666 __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_calculate, 1294, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 1294, __pyx_L1_error)
72675 __pyx_tuple__214 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_coords, __pyx_n_s_kdtree, __pyx_n_s_distance, __pyx_n_s_node);
if (unlikely(!__pyx_tuple__214)) __PYX_ERR(0, 1297, __pyx_L1_error)
72676 __Pyx_GOTREF(__pyx_tuple__214);
72677 __Pyx_GIVEREF(__pyx_tuple__214);
72678 __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__214, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_getLocalNearestNode, 1297, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(0, 1297, __pyx_L1_error)
72687 __pyx_tuple__215 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_femSpace, __pyx_n_s_coords, __pyx_n_s_node, __pyx_n_s_patchBoundaryNodes, __pyx_n_s_checkedElements, __pyx_n_s_statem1, __pyx_n_s_eOffset, __pyx_n_s_eN, __pyx_n_s_xi);
if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 1317, __pyx_L1_error)
72688 __Pyx_GOTREF(__pyx_tuple__215);
72689 __Pyx_GIVEREF(__pyx_tuple__215);
72690 __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 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_mprans_BoundaryCondition, __pyx_n_s_getLocalElement, 1317, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 1317, __pyx_L1_error)
72699 __pyx_tuple__216 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_coords, __pyx_n_s_comm, __pyx_n_s_xi, __pyx_n_s_owning_proc, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_nodes_kdtree, __pyx_n_s_nearest_node, __pyx_n_s_nearest_node_distance, __pyx_n_s_local_element);
if (unlikely(!__pyx_tuple__216)) __PYX_ERR(0, 1363, __pyx_L1_error)
72700 __Pyx_GOTREF(__pyx_tuple__216);
72701 __Pyx_GIVEREF(__pyx_tuple__216);
72702 __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(2, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__216, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_findElementContainingCoords, 1363, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(0, 1363, __pyx_L1_error)
72711 __pyx_tuple__217 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_xi, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_comm, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w);
if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 1401, __pyx_L1_error)
72712 __Pyx_GOTREF(__pyx_tuple__217);
72713 __Pyx_GIVEREF(__pyx_tuple__217);
72714 __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(4, 0, 8, 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_mprans_BoundaryCondition, __pyx_n_s_getFluidVelocityLocalCoords, 1401, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 1401, __pyx_L1_error)
72723 __pyx_tuple__218 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_relax, __pyx_n_s_nP);
if (unlikely(!__pyx_tuple__218)) __PYX_ERR(0, 1426, __pyx_L1_error)
72724 __Pyx_GOTREF(__pyx_tuple__218);
72725 __Pyx_GIVEREF(__pyx_tuple__218);
72726 __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(5, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__218, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_setYplusNormalDirection, 1426, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 1426, __pyx_L1_error)
72727 __pyx_tuple__219 = PyTuple_Pack(1, ((PyObject*)__pyx_float_1_0));
if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 1426, __pyx_L1_error)
72728 __Pyx_GOTREF(__pyx_tuple__219);
72729 __Pyx_GIVEREF(__pyx_tuple__219);
72738 __pyx_tuple__220 = PyTuple_Pack(13, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_coords, __pyx_n_s_xi, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_u, __pyx_n_s_v, __pyx_n_s_w, __pyx_n_s_relax, __pyx_n_s_coords_relax);
if (unlikely(!__pyx_tuple__220)) __PYX_ERR(0, 1438, __pyx_L1_error)
72739 __Pyx_GOTREF(__pyx_tuple__220);
72740 __Pyx_GIVEREF(__pyx_tuple__220);
72741 __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(4, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__220, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_extractVelocity, 1438, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 1438, __pyx_L1_error)
72750 __pyx_tuple__221 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit, __pyx_n_s_u0, __pyx_n_s_u1, __pyx_n_s_u2);
if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 1459, __pyx_L1_error)
72751 __Pyx_GOTREF(__pyx_tuple__221);
72752 __Pyx_GIVEREF(__pyx_tuple__221);
72753 __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(5, 0, 8, 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_mprans_BoundaryCondition, __pyx_n_s_tangentialVelocity, 1459, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 1459, __pyx_L1_error)
72754 __pyx_tuple__222 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__222)) __PYX_ERR(0, 1459, __pyx_L1_error)
72755 __Pyx_GOTREF(__pyx_tuple__222);
72756 __Pyx_GIVEREF(__pyx_tuple__222);
72765 __pyx_tuple__223 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_comm, __pyx_n_s_Up, __pyx_n_s_E);
if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 1481, __pyx_L1_error)
72766 __Pyx_GOTREF(__pyx_tuple__223);
72767 __Pyx_GIVEREF(__pyx_tuple__223);
72768 __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_getVariables, 1481, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 1481, __pyx_L1_error)
72777 __pyx_tuple__224 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit);
if (unlikely(!__pyx_tuple__224)) __PYX_ERR(0, 1511, __pyx_L1_error)
72778 __Pyx_GOTREF(__pyx_tuple__224);
72779 __Pyx_GIVEREF(__pyx_tuple__224);
72780 __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__224, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_u_dirichlet, 1511, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(0, 1511, __pyx_L1_error)
72789 __pyx_tuple__225 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit);
if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 1520, __pyx_L1_error)
72790 __Pyx_GOTREF(__pyx_tuple__225);
72791 __Pyx_GIVEREF(__pyx_tuple__225);
72792 __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_get_v_dirichlet, 1520, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 1520, __pyx_L1_error)
72801 __pyx_tuple__226 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit);
if (unlikely(!__pyx_tuple__226)) __PYX_ERR(0, 1529, __pyx_L1_error)
72802 __Pyx_GOTREF(__pyx_tuple__226);
72803 __Pyx_GIVEREF(__pyx_tuple__226);
72804 __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__226, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_w_dirichlet, 1529, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__123)) __PYX_ERR(0, 1529, __pyx_L1_error)
72813 __pyx_tuple__227 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit);
if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 1538, __pyx_L1_error)
72814 __Pyx_GOTREF(__pyx_tuple__227);
72815 __Pyx_GIVEREF(__pyx_tuple__227);
72816 __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_get_k_dirichlet, 1538, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 1538, __pyx_L1_error)
72825 __pyx_tuple__228 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit, __pyx_n_s_d);
if (unlikely(!__pyx_tuple__228)) __PYX_ERR(0, 1547, __pyx_L1_error)
72826 __Pyx_GOTREF(__pyx_tuple__228);
72827 __Pyx_GIVEREF(__pyx_tuple__228);
72828 __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__228, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_dissipation_dirichlet, 1547, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(0, 1547, __pyx_L1_error)
72837 __pyx_tuple__229 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit, __pyx_n_s_gradU);
if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 1561, __pyx_L1_error)
72838 __Pyx_GOTREF(__pyx_tuple__229);
72839 __Pyx_GIVEREF(__pyx_tuple__229);
72840 __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_get_u_diffusive, 1561, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 1561, __pyx_L1_error)
72849 __pyx_tuple__230 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit, __pyx_n_s_gradU);
if (unlikely(!__pyx_tuple__230)) __PYX_ERR(0, 1571, __pyx_L1_error)
72850 __Pyx_GOTREF(__pyx_tuple__230);
72851 __Pyx_GIVEREF(__pyx_tuple__230);
72852 __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__230, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_get_v_diffusive, 1571, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__127)) __PYX_ERR(0, 1571, __pyx_L1_error)
72861 __pyx_tuple__231 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_n, __pyx_n_s_uInit, __pyx_n_s_gradU);
if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 1581, __pyx_L1_error)
72862 __Pyx_GOTREF(__pyx_tuple__231);
72863 __Pyx_GIVEREF(__pyx_tuple__231);
72864 __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 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_mprans_BoundaryCondition, __pyx_n_s_get_w_diffusive, 1581, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 1581, __pyx_L1_error)
72873 __pyx_tuple__232 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_Y, __pyx_n_s_Yplus, __pyx_n_s_nu, __pyx_n_s_Cmu);
if (unlikely(!__pyx_tuple__232)) __PYX_ERR(0, 1598, __pyx_L1_error)
72874 __Pyx_GOTREF(__pyx_tuple__232);
72875 __Pyx_GIVEREF(__pyx_tuple__232);
72876 __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__232, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_init, 1598, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(0, 1598, __pyx_L1_error)
72877 __pyx_tuple__233 = PyTuple_Pack(2, ((PyObject*)__pyx_float_1_004eneg_6), ((PyObject*)__pyx_float_0_09));
if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 1598, __pyx_L1_error)
72878 __Pyx_GOTREF(__pyx_tuple__233);
72879 __Pyx_GIVEREF(__pyx_tuple__233);
72888 __pyx_tuple__234 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_model, __pyx_n_s_ar);
if (unlikely(!__pyx_tuple__234)) __PYX_ERR(0, 1609, __pyx_L1_error)
72889 __Pyx_GOTREF(__pyx_tuple__234);
72890 __Pyx_GIVEREF(__pyx_tuple__234);
72891 __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__234, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_attachModel, 1609, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 1609, __pyx_L1_error)
72900 __pyx_tuple__235 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_avDict);
if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 1618, __pyx_L1_error)
72901 __Pyx_GOTREF(__pyx_tuple__235);
72902 __Pyx_GIVEREF(__pyx_tuple__235);
72903 __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_mprans_BoundaryCondition, __pyx_n_s_attachAuxiliaryVariables, 1618, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(0, 1618, __pyx_L1_error)
72912 __pyx_tuple__236 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__236)) __PYX_ERR(0, 1621, __pyx_L1_error)
72913 __Pyx_GOTREF(__pyx_tuple__236);
72914 __Pyx_GIVEREF(__pyx_tuple__236);
72915 __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__236, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_calculate_init, 1621, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 1621, __pyx_L1_error)
72924 __pyx_tuple__237 = PyTuple_Pack(1, __pyx_n_s_self);
if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 1624, __pyx_L1_error)
72925 __Pyx_GOTREF(__pyx_tuple__237);
72926 __Pyx_GIVEREF(__pyx_tuple__237);
72927 __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_mprans_BoundaryCondition, __pyx_n_s_calculate, 1624, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(0, 1624, __pyx_L1_error)
72936 __pyx_tuple__238 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_xi, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_comm, __pyx_n_s_kappa);
if (unlikely(!__pyx_tuple__238)) __PYX_ERR(0, 1627, __pyx_L1_error)
72937 __Pyx_GOTREF(__pyx_tuple__238);
72938 __Pyx_GIVEREF(__pyx_tuple__238);
72939 __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__238, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_mprans_BoundaryCondition, __pyx_n_s_getFluidKappaLocalCoords, 1627, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 1627, __pyx_L1_error)
72948 __pyx_tuple__239 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_xi, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_kInit);
if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 1649, __pyx_L1_error)
72949 __Pyx_GOTREF(__pyx_tuple__239);
72950 __Pyx_GIVEREF(__pyx_tuple__239);
72951 __pyx_codeobj__135 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 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_mprans_BoundaryCondition, __pyx_n_s_kappaNearWall, 1649, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__135)) __PYX_ERR(0, 1649, __pyx_L1_error)
72952 __pyx_tuple__240 = PyTuple_Pack(1, ((PyObject *)Py_None));
if (unlikely(!__pyx_tuple__240)) __PYX_ERR(0, 1649, __pyx_L1_error)
72953 __Pyx_GOTREF(__pyx_tuple__240);
72954 __Pyx_GIVEREF(__pyx_tuple__240);
72963 __pyx_tuple__241 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_x, __pyx_n_s_t, __pyx_n_s_xi, __pyx_n_s_element, __pyx_n_s_rank, __pyx_n_s_kInit);
if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 1656, __pyx_L1_error)
72964 __Pyx_GOTREF(__pyx_tuple__241);
72965 __Pyx_GIVEREF(__pyx_tuple__241);
72966 __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(6, 0, 7, 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_mprans_BoundaryCondition, __pyx_n_s_getKappa, 1656, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 1656, __pyx_L1_error)
72973 __pyx_tuple__242 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result);
if (unlikely(!__pyx_tuple__242)) __PYX_ERR(1, 1, __pyx_L1_error)
72974 __Pyx_GOTREF(__pyx_tuple__242);
72975 __Pyx_GIVEREF(__pyx_tuple__242);
72976 __pyx_codeobj__137 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__242, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_BC_RANS, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__137)) __PYX_ERR(1, 1, __pyx_L1_error)
72977 __pyx_tuple__243 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result);
if (unlikely(!__pyx_tuple__243)) __PYX_ERR(1, 1, __pyx_L1_error)
72978 __Pyx_GOTREF(__pyx_tuple__243);
72979 __Pyx_GIVEREF(__pyx_tuple__243);
72980 __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 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_stringsource, __pyx_n_s_pyx_unpickle_RelaxationZoneWav, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(1, 1, __pyx_L1_error)
72981 __pyx_tuple__244 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result);
if (unlikely(!__pyx_tuple__244)) __PYX_ERR(1, 1, __pyx_L1_error)
72982 __Pyx_GOTREF(__pyx_tuple__244);
72983 __Pyx_GIVEREF(__pyx_tuple__244);
72984 __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__244, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle___cppClass_WavesC, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(1, 1, __pyx_L1_error)
72993 __pyx_tuple__245 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect);
if (unlikely(!__pyx_tuple__245)) __PYX_ERR(1, 286, __pyx_L1_error)
72994 __Pyx_GOTREF(__pyx_tuple__245);
72995 __Pyx_GIVEREF(__pyx_tuple__245);
73004 __pyx_tuple__246 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct);
if (unlikely(!__pyx_tuple__246)) __PYX_ERR(1, 287, __pyx_L1_error)
73005 __Pyx_GOTREF(__pyx_tuple__246);
73006 __Pyx_GIVEREF(__pyx_tuple__246);
73015 __pyx_tuple__247 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect);
if (unlikely(!__pyx_tuple__247)) __PYX_ERR(1, 288, __pyx_L1_error)
73016 __Pyx_GOTREF(__pyx_tuple__247);
73017 __Pyx_GIVEREF(__pyx_tuple__247);
73026 __pyx_tuple__248 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct);
if (unlikely(!__pyx_tuple__248)) __PYX_ERR(1, 291, __pyx_L1_error)
73027 __Pyx_GOTREF(__pyx_tuple__248);
73028 __Pyx_GIVEREF(__pyx_tuple__248);
73037 __pyx_tuple__249 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect);
if (unlikely(!__pyx_tuple__249)) __PYX_ERR(1, 292, __pyx_L1_error)
73038 __Pyx_GOTREF(__pyx_tuple__249);
73039 __Pyx_GIVEREF(__pyx_tuple__249);
73046 __pyx_tuple__250 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result);
if (unlikely(!__pyx_tuple__250)) __PYX_ERR(1, 1, __pyx_L1_error)
73047 __Pyx_GOTREF(__pyx_tuple__250);
73048 __Pyx_GIVEREF(__pyx_tuple__250);
73049 __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__250, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(1, 1, __pyx_L1_error)
73050 __Pyx_RefNannyFinishContext();
73053 __Pyx_RefNannyFinishContext();
73057 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
73058 __pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
73059 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
73060 __pyx_float_0_ = PyFloat_FromDouble(0.);
if (unlikely(!__pyx_float_0_)) __PYX_ERR(0, 1, __pyx_L1_error)
73061 __pyx_float_1_ = PyFloat_FromDouble(1.);
if (unlikely(!__pyx_float_1_)) __PYX_ERR(0, 1, __pyx_L1_error)
73062 __pyx_float_2_ = PyFloat_FromDouble(2.);
if (unlikely(!__pyx_float_2_)) __PYX_ERR(0, 1, __pyx_L1_error)
73063 __pyx_float_0_0 = PyFloat_FromDouble(0.0);
if (unlikely(!__pyx_float_0_0)) __PYX_ERR(0, 1, __pyx_L1_error)
73064 __pyx_float_0_5 = PyFloat_FromDouble(0.5);
if (unlikely(!__pyx_float_0_5)) __PYX_ERR(0, 1, __pyx_L1_error)
73065 __pyx_float_1_0 = PyFloat_FromDouble(1.0);
if (unlikely(!__pyx_float_1_0)) __PYX_ERR(0, 1, __pyx_L1_error)
73066 __pyx_float_0_09 = PyFloat_FromDouble(0.09);
if (unlikely(!__pyx_float_0_09)) __PYX_ERR(0, 1, __pyx_L1_error)
73067 __pyx_float_0_25 = PyFloat_FromDouble(0.25);
if (unlikely(!__pyx_float_0_25)) __PYX_ERR(0, 1, __pyx_L1_error)
73068 __pyx_float_0_41 = PyFloat_FromDouble(0.41);
if (unlikely(!__pyx_float_0_41)) __PYX_ERR(0, 1, __pyx_L1_error)
73069 __pyx_float_5_57 = PyFloat_FromDouble(5.57);
if (unlikely(!__pyx_float_5_57)) __PYX_ERR(0, 1, __pyx_L1_error)
73070 __pyx_float_1eneg_10 = PyFloat_FromDouble(1e-10);
if (unlikely(!__pyx_float_1eneg_10)) __PYX_ERR(0, 1, __pyx_L1_error)
73071 __pyx_float_1eneg_20 = PyFloat_FromDouble(1e-20);
if (unlikely(!__pyx_float_1eneg_20)) __PYX_ERR(0, 1, __pyx_L1_error)
73072 __pyx_float_1eneg_30 = PyFloat_FromDouble(1e-30);
if (unlikely(!__pyx_float_1eneg_30)) __PYX_ERR(0, 1, __pyx_L1_error)
73073 __pyx_float_11_225 = PyFloat_FromDouble(11.225);
if (unlikely(!__pyx_float_11_225)) __PYX_ERR(0, 1, __pyx_L1_error)
73074 __pyx_float_1_004eneg_6 = PyFloat_FromDouble(1.004e-6);
if (unlikely(!__pyx_float_1_004eneg_6)) __PYX_ERR(0, 1, __pyx_L1_error)
73075 __pyx_float_1_005eneg_6 = PyFloat_FromDouble(1.005e-6);
if (unlikely(!__pyx_float_1_005eneg_6)) __PYX_ERR(0, 1, __pyx_L1_error)
73076 __pyx_float_neg_1_ = PyFloat_FromDouble(-1.);
if (unlikely(!__pyx_float_neg_1_)) __PYX_ERR(0, 1, __pyx_L1_error)
73077 __pyx_int_0 = PyInt_FromLong(0);
if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
73078 __pyx_int_1 = PyInt_FromLong(1);
if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
73079 __pyx_int_2 = PyInt_FromLong(2);
if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
73080 __pyx_int_3 = PyInt_FromLong(3);
if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
73081 __pyx_int_3281892 = PyInt_FromLong(3281892
L);
if (unlikely(!__pyx_int_3281892)) __PYX_ERR(0, 1, __pyx_L1_error)
73082 __pyx_int_24898426 = PyInt_FromLong(24898426
L);
if (unlikely(!__pyx_int_24898426)) __PYX_ERR(0, 1, __pyx_L1_error)
73083 __pyx_int_37384334 = PyInt_FromLong(37384334
L);
if (unlikely(!__pyx_int_37384334)) __PYX_ERR(0, 1, __pyx_L1_error)
73084 __pyx_int_95533784 = PyInt_FromLong(95533784
L);
if (unlikely(!__pyx_int_95533784)) __PYX_ERR(0, 1, __pyx_L1_error)
73085 __pyx_int_112105877 = PyInt_FromLong(112105877
L);
if (unlikely(!__pyx_int_112105877)) __PYX_ERR(0, 1, __pyx_L1_error)
73086 __pyx_int_136983863 = PyInt_FromLong(136983863
L);
if (unlikely(!__pyx_int_136983863)) __PYX_ERR(0, 1, __pyx_L1_error)
73087 __pyx_int_161222453 = PyInt_FromLong(161222453
L);
if (unlikely(!__pyx_int_161222453)) __PYX_ERR(0, 1, __pyx_L1_error)
73088 __pyx_int_184977713 = PyInt_FromLong(184977713
L);
if (unlikely(!__pyx_int_184977713)) __PYX_ERR(0, 1, __pyx_L1_error)
73089 __pyx_int_190238252 = PyInt_FromLong(190238252
L);
if (unlikely(!__pyx_int_190238252)) __PYX_ERR(0, 1, __pyx_L1_error)
73090 __pyx_int_207031348 = PyInt_FromLong(207031348
L);
if (unlikely(!__pyx_int_207031348)) __PYX_ERR(0, 1, __pyx_L1_error)
73091 __pyx_int_216769129 = PyInt_FromLong(216769129
L);
if (unlikely(!__pyx_int_216769129)) __PYX_ERR(0, 1, __pyx_L1_error)
73092 __pyx_int_249493883 = PyInt_FromLong(249493883
L);
if (unlikely(!__pyx_int_249493883)) __PYX_ERR(0, 1, __pyx_L1_error)
73093 __pyx_int_neg_1 = PyInt_FromLong(-1);
if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
73099 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
73100 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
73101 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
73102 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
73103 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
73104 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
73105 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
73107 static int __Pyx_modinit_global_init_code(
void) {
73108 __Pyx_RefNannyDeclarations
73109 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
73111 generic = Py_None; Py_INCREF(Py_None);
73112 strided = Py_None; Py_INCREF(Py_None);
73113 indirect = Py_None; Py_INCREF(Py_None);
73114 contiguous = Py_None; Py_INCREF(Py_None);
73115 indirect_contiguous = Py_None; Py_INCREF(Py_None);
73116 __Pyx_RefNannyFinishContext();
73120 static int __Pyx_modinit_variable_export_code(
void) {
73121 __Pyx_RefNannyDeclarations
73122 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
73124 __Pyx_RefNannyFinishContext();
73128 static int __Pyx_modinit_function_export_code(
void) {
73129 __Pyx_RefNannyDeclarations
73130 int __pyx_lineno = 0;
73131 const char *__pyx_filename = NULL;
73132 int __pyx_clineno = 0;
73133 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
73135 if (__Pyx_ExportFunction(
"__x_to_cpp", (
void (*)(
void))__pyx_f_6mprans_18BoundaryConditions___x_to_cpp,
"double *(__Pyx_memviewslice)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73136 __Pyx_RefNannyFinishContext();
73139 __Pyx_RefNannyFinishContext();
73143 static int __Pyx_modinit_type_init_code(
void) {
73144 __Pyx_RefNannyDeclarations
73145 PyObject *__pyx_t_1 = NULL;
73146 int __pyx_lineno = 0;
73147 const char *__pyx_filename = NULL;
73148 int __pyx_clineno = 0;
73149 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
73151 __pyx_t_1 = PyImport_ImportModule(
"proteus.BoundaryConditions");
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
73152 __Pyx_GOTREF(__pyx_t_1);
73153 __pyx_ptype_7proteus_18BoundaryConditions_BC_Base = __Pyx_ImportType(__pyx_t_1,
"proteus.BoundaryConditions",
"BC_Base",
sizeof(
struct __pyx_obj_7proteus_18BoundaryConditions_BC_Base), __Pyx_ImportType_CheckSize_Warn);
73154 if (!__pyx_ptype_7proteus_18BoundaryConditions_BC_Base) __PYX_ERR(0, 1, __pyx_L1_error)
73155 __pyx_vtabptr_6mprans_18BoundaryConditions_BC_RANS = &__pyx_vtable_6mprans_18BoundaryConditions_BC_RANS;
73156 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_MoveMesh_h = (__Pyx_memviewslice (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_h;
73157 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_MoveMesh_hx = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hx;
73158 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_MoveMesh_hy = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hy;
73159 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_MoveMesh_hz = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_MoveMesh_hz;
73160 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_u_dirichlet;
73161 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_v_dirichlet;
73162 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_w_dirichlet;
73163 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_phi_dirichlet;
73164 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_vof_dirichlet;
73165 __pyx_vtable_6mprans_18BoundaryConditions_BC_RANS.__pyx___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_BC_RANS *, __Pyx_memviewslice, double))__pyx_f_6mprans_18BoundaryConditions_7BC_RANS___cpp_UnsteadyTwoPhaseVelocityInlet_p_advective;
73166 __pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_base = __pyx_ptype_7proteus_18BoundaryConditions_BC_Base;
73167 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions_BC_RANS) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
73168 #if PY_VERSION_HEX < 0x030800B1
73169 __pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_print = 0;
73171 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_getattro == PyObject_GenericGetAttr)) {
73172 __pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73174 if (__Pyx_SetVtable(__pyx_type_6mprans_18BoundaryConditions_BC_RANS.tp_dict, __pyx_vtabptr_6mprans_18BoundaryConditions_BC_RANS) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
73175 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_BC_RANS, (PyObject *)&__pyx_type_6mprans_18BoundaryConditions_BC_RANS) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
73176 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6mprans_18BoundaryConditions_BC_RANS) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
73177 __pyx_ptype_6mprans_18BoundaryConditions_BC_RANS = &__pyx_type_6mprans_18BoundaryConditions_BC_RANS;
73178 __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZone = &__pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone;
73179 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.calculate_init = (void (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_init;
73180 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.calculate_vel = (__Pyx_memviewslice (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_vel;
73181 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.__pyx___cpp_calculate_vel_wave = (__Pyx_memviewslice (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_wave;
73182 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.__pyx___cpp_calculate_vel_zero = (__Pyx_memviewslice (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_vel_zero;
73183 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.calculate_phi = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone_calculate_phi;
73184 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.__pyx___cpp_calculate_phi_porous = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous;
73185 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZone.__pyx___cpp_calculate_phi_porous_sponge = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZone *,
double *))__pyx_f_6mprans_18BoundaryConditions_14RelaxationZone___cpp_calculate_phi_porous_sponge;
73186 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions_RelaxationZone) < 0) __PYX_ERR(0, 910, __pyx_L1_error)
73187 #if PY_VERSION_HEX < 0x030800B1
73188 __pyx_type_6mprans_18BoundaryConditions_RelaxationZone.tp_print = 0;
73190 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions_RelaxationZone.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions_RelaxationZone.tp_getattro == PyObject_GenericGetAttr)) {
73191 __pyx_type_6mprans_18BoundaryConditions_RelaxationZone.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73193 if (__Pyx_SetVtable(__pyx_type_6mprans_18BoundaryConditions_RelaxationZone.tp_dict, __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZone) < 0) __PYX_ERR(0, 910, __pyx_L1_error)
73194 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_RelaxationZone, (PyObject *)&__pyx_type_6mprans_18BoundaryConditions_RelaxationZone) < 0) __PYX_ERR(0, 910, __pyx_L1_error)
73195 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6mprans_18BoundaryConditions_RelaxationZone) < 0) __PYX_ERR(0, 910, __pyx_L1_error)
73196 __pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone = &__pyx_type_6mprans_18BoundaryConditions_RelaxationZone;
73197 __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator = &__pyx_vtable_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
73198 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.calculate_init = (void (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate_init;
73199 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.calculate = (void (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *,
int __pyx_skip_dispatch))__pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_calculate;
73200 __pyx_vtable_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.__pyx___cpp_iterate = (void (*)(
struct __pyx_obj_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator *))__pyx_f_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator___cpp_iterate;
73201 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator) < 0) __PYX_ERR(0, 1036, __pyx_L1_error)
73202 #if PY_VERSION_HEX < 0x030800B1
73203 __pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.tp_print = 0;
73205 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.tp_getattro == PyObject_GenericGetAttr)) {
73206 __pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73208 if (__Pyx_SetVtable(__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator.tp_dict, __pyx_vtabptr_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator) < 0) __PYX_ERR(0, 1036, __pyx_L1_error)
73209 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_RelaxationZoneWaveGenerator, (PyObject *)&__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator) < 0) __PYX_ERR(0, 1036, __pyx_L1_error)
73210 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator) < 0) __PYX_ERR(0, 1036, __pyx_L1_error)
73211 __pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator = &__pyx_type_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator;
73212 __pyx_vtabptr_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics = &__pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
73213 __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.__pyx___cpp_calculate_velocity = (__Pyx_memviewslice (*)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_velocity;
73214 __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.__pyx___cpp_calculate_pressure = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_pressure;
73215 __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.__pyx___cpp_calculate_phi = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_phi;
73216 __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.__pyx___cpp_calculate_vof = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *,
double *, double))__pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_vof;
73217 __pyx_vtable_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.__pyx___cpp_calculate_smoothing_H = (double (*)(
struct __pyx_obj_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics *, double))__pyx_f_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics___cpp_calculate_smoothing_H;
73218 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics) < 0) __PYX_ERR(0, 1109, __pyx_L1_error)
73219 #if PY_VERSION_HEX < 0x030800B1
73220 __pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.tp_print = 0;
73222 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.tp_getattro == PyObject_GenericGetAttr)) {
73223 __pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73225 if (__Pyx_SetVtable(__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics.tp_dict, __pyx_vtabptr_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics) < 0) __PYX_ERR(0, 1109, __pyx_L1_error)
73226 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cppClass_WavesCharacteristics, (PyObject *)&__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics) < 0) __PYX_ERR(0, 1109, __pyx_L1_error)
73227 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics) < 0) __PYX_ERR(0, 1109, __pyx_L1_error)
73228 __pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics = &__pyx_type_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics;
73229 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
73230 #if PY_VERSION_HEX < 0x030800B1
73231 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh.tp_print = 0;
73233 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh.tp_getattro == PyObject_GenericGetAttr)) {
73234 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73236 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct__setRigidBodyMoveMesh;
73237 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h) < 0) __PYX_ERR(0, 394, __pyx_L1_error)
73238 #if PY_VERSION_HEX < 0x030800B1
73239 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h.tp_print = 0;
73241 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h.tp_getattro == PyObject_GenericGetAttr)) {
73242 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73244 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_1_get_DBC_h;
73245 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh) < 0) __PYX_ERR(0, 406, __pyx_L1_error)
73246 #if PY_VERSION_HEX < 0x030800B1
73247 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh.tp_print = 0;
73249 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh.tp_getattro == PyObject_GenericGetAttr)) {
73250 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73252 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_2_setChMoveMesh;
73253 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction) < 0) __PYX_ERR(0, 446, __pyx_L1_error)
73254 #if PY_VERSION_HEX < 0x030800B1
73255 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction.tp_print = 0;
73257 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction.tp_getattro == PyObject_GenericGetAttr)) {
73258 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73260 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_3_setWallFunction;
73261 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh) < 0) __PYX_ERR(0, 494, __pyx_L1_error)
73262 #if PY_VERSION_HEX < 0x030800B1
73263 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh.tp_print = 0;
73265 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh.tp_getattro == PyObject_GenericGetAttr)) {
73266 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73268 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_4_setMoveMesh;
73269 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet) < 0) __PYX_ERR(0, 544, __pyx_L1_error)
73270 #if PY_VERSION_HEX < 0x030800B1
73271 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet.tp_print = 0;
73273 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet.tp_getattro == PyObject_GenericGetAttr)) {
73274 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73276 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_5_setUnsteadyTwoPhaseVelocityInlet;
73277 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet) < 0) __PYX_ERR(0, 644, __pyx_L1_error)
73278 #if PY_VERSION_HEX < 0x030800B1
73279 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet.tp_print = 0;
73281 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet.tp_getattro == PyObject_GenericGetAttr)) {
73282 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73284 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_6_setTwoPhaseVelocityInlet;
73285 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet) < 0) __PYX_ERR(0, 696, __pyx_L1_error)
73286 #if PY_VERSION_HEX < 0x030800B1
73287 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet.tp_print = 0;
73289 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet.tp_getattro == PyObject_GenericGetAttr)) {
73290 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73292 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_7_get_inlet_ux_dirichlet;
73293 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth) < 0) __PYX_ERR(0, 774, __pyx_L1_error)
73294 #if PY_VERSION_HEX < 0x030800B1
73295 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth.tp_print = 0;
73297 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth.tp_getattro == PyObject_GenericGetAttr)) {
73298 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73300 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_8_setHydrostaticPressureOutletWithDepth;
73301 if (PyType_Ready(&__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet) < 0) __PYX_ERR(0, 878, __pyx_L1_error)
73302 #if PY_VERSION_HEX < 0x030800B1
73303 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet.tp_print = 0;
73305 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet.tp_dictoffset && __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet.tp_getattro == PyObject_GenericGetAttr)) {
73306 __pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
73308 __pyx_ptype_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet = &__pyx_type_6mprans_18BoundaryConditions___pyx_scope_struct_9_get_inlet_ux_dirichlet;
73309 __pyx_vtabptr_array = &__pyx_vtable_array;
73310 __pyx_vtable_array.get_memview = (PyObject *(*)(
struct __pyx_array_obj *))__pyx_array_get_memview;
73311 if (PyType_Ready(&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
73312 #if PY_VERSION_HEX < 0x030800B1
73313 __pyx_type___pyx_array.tp_print = 0;
73315 if (__Pyx_SetVtable(__pyx_type___pyx_array.tp_dict, __pyx_vtabptr_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
73316 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 105, __pyx_L1_error)
73317 __pyx_array_type = &__pyx_type___pyx_array;
73318 if (PyType_Ready(&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(1, 279, __pyx_L1_error)
73319 #if PY_VERSION_HEX < 0x030800B1
73320 __pyx_type___pyx_MemviewEnum.tp_print = 0;
73322 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_MemviewEnum.tp_dictoffset && __pyx_type___pyx_MemviewEnum.tp_getattro == PyObject_GenericGetAttr)) {
73323 __pyx_type___pyx_MemviewEnum.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73325 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(1, 279, __pyx_L1_error)
73326 __pyx_MemviewEnum_type = &__pyx_type___pyx_MemviewEnum;
73327 __pyx_vtabptr_memoryview = &__pyx_vtable_memoryview;
73328 __pyx_vtable_memoryview.get_item_pointer = (
char *(*)(
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_get_item_pointer;
73329 __pyx_vtable_memoryview.is_slice = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_is_slice;
73330 __pyx_vtable_memoryview.setitem_slice_assignment = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_slice_assignment;
73331 __pyx_vtable_memoryview.setitem_slice_assign_scalar = (PyObject *(*)(
struct __pyx_memoryview_obj *,
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_setitem_slice_assign_scalar;
73332 __pyx_vtable_memoryview.setitem_indexed = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_indexed;
73333 __pyx_vtable_memoryview.convert_item_to_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *))__pyx_memoryview_convert_item_to_object;
73334 __pyx_vtable_memoryview.assign_item_from_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *, PyObject *))__pyx_memoryview_assign_item_from_object;
73335 if (PyType_Ready(&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
73336 #if PY_VERSION_HEX < 0x030800B1
73337 __pyx_type___pyx_memoryview.tp_print = 0;
73339 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryview.tp_dictoffset && __pyx_type___pyx_memoryview.tp_getattro == PyObject_GenericGetAttr)) {
73340 __pyx_type___pyx_memoryview.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73342 if (__Pyx_SetVtable(__pyx_type___pyx_memoryview.tp_dict, __pyx_vtabptr_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
73343 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(1, 330, __pyx_L1_error)
73344 __pyx_memoryview_type = &__pyx_type___pyx_memoryview;
73345 __pyx_vtabptr__memoryviewslice = &__pyx_vtable__memoryviewslice;
73346 __pyx_vtable__memoryviewslice.__pyx_base = *__pyx_vtabptr_memoryview;
73347 __pyx_vtable__memoryviewslice.__pyx_base.convert_item_to_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *))__pyx_memoryviewslice_convert_item_to_object;
73348 __pyx_vtable__memoryviewslice.__pyx_base.assign_item_from_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *, PyObject *))__pyx_memoryviewslice_assign_item_from_object;
73349 __pyx_type___pyx_memoryviewslice.tp_base = __pyx_memoryview_type;
73350 if (PyType_Ready(&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(1, 965, __pyx_L1_error)
73351 #if PY_VERSION_HEX < 0x030800B1
73352 __pyx_type___pyx_memoryviewslice.tp_print = 0;
73354 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryviewslice.tp_dictoffset && __pyx_type___pyx_memoryviewslice.tp_getattro == PyObject_GenericGetAttr)) {
73355 __pyx_type___pyx_memoryviewslice.tp_getattro = __Pyx_PyObject_GenericGetAttr;
73357 if (__Pyx_SetVtable(__pyx_type___pyx_memoryviewslice.tp_dict, __pyx_vtabptr__memoryviewslice) < 0) __PYX_ERR(1, 965, __pyx_L1_error)
73358 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(1, 965, __pyx_L1_error)
73359 __pyx_memoryviewslice_type = &__pyx_type___pyx_memoryviewslice;
73360 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73361 __Pyx_RefNannyFinishContext();
73364 __Pyx_XDECREF(__pyx_t_1);
73365 __Pyx_RefNannyFinishContext();
73369 static int __Pyx_modinit_type_import_code(
void) {
73370 __Pyx_RefNannyDeclarations
73371 PyObject *__pyx_t_1 = NULL;
73372 int __pyx_lineno = 0;
73373 const char *__pyx_filename = NULL;
73374 int __pyx_clineno = 0;
73375 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
73377 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 9, __pyx_L1_error)
73378 __Pyx_GOTREF(__pyx_t_1);
73379 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
73380 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
73381 sizeof(PyTypeObject),
73383 sizeof(PyHeapTypeObject),
73385 __Pyx_ImportType_CheckSize_Warn);
73386 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(4, 9, __pyx_L1_error)
73387 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73388 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 200, __pyx_L1_error)
73389 __Pyx_GOTREF(__pyx_t_1);
73390 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
73391 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(3, 200, __pyx_L1_error)
73392 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
73393 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(3, 223, __pyx_L1_error)
73394 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
73395 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(3, 227, __pyx_L1_error)
73396 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
73397 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(3, 239, __pyx_L1_error)
73398 __pyx_ptype_5numpy_generic = __Pyx_ImportType(__pyx_t_1,
"numpy",
"generic",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73399 if (!__pyx_ptype_5numpy_generic) __PYX_ERR(3, 771, __pyx_L1_error)
73400 __pyx_ptype_5numpy_number = __Pyx_ImportType(__pyx_t_1,
"numpy",
"number",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73401 if (!__pyx_ptype_5numpy_number) __PYX_ERR(3, 773, __pyx_L1_error)
73402 __pyx_ptype_5numpy_integer = __Pyx_ImportType(__pyx_t_1,
"numpy",
"integer",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73403 if (!__pyx_ptype_5numpy_integer) __PYX_ERR(3, 775, __pyx_L1_error)
73404 __pyx_ptype_5numpy_signedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"signedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73405 if (!__pyx_ptype_5numpy_signedinteger) __PYX_ERR(3, 777, __pyx_L1_error)
73406 __pyx_ptype_5numpy_unsignedinteger = __Pyx_ImportType(__pyx_t_1,
"numpy",
"unsignedinteger",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73407 if (!__pyx_ptype_5numpy_unsignedinteger) __PYX_ERR(3, 779, __pyx_L1_error)
73408 __pyx_ptype_5numpy_inexact = __Pyx_ImportType(__pyx_t_1,
"numpy",
"inexact",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73409 if (!__pyx_ptype_5numpy_inexact) __PYX_ERR(3, 781, __pyx_L1_error)
73410 __pyx_ptype_5numpy_floating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"floating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73411 if (!__pyx_ptype_5numpy_floating) __PYX_ERR(3, 783, __pyx_L1_error)
73412 __pyx_ptype_5numpy_complexfloating = __Pyx_ImportType(__pyx_t_1,
"numpy",
"complexfloating",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73413 if (!__pyx_ptype_5numpy_complexfloating) __PYX_ERR(3, 785, __pyx_L1_error)
73414 __pyx_ptype_5numpy_flexible = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flexible",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73415 if (!__pyx_ptype_5numpy_flexible) __PYX_ERR(3, 787, __pyx_L1_error)
73416 __pyx_ptype_5numpy_character = __Pyx_ImportType(__pyx_t_1,
"numpy",
"character",
sizeof(PyObject), __Pyx_ImportType_CheckSize_Warn);
73417 if (!__pyx_ptype_5numpy_character) __PYX_ERR(3, 789, __pyx_L1_error)
73418 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
73419 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(3, 827, __pyx_L1_error)
73420 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73421 __pyx_t_1 = PyImport_ImportModule(
"proteus.BoundaryConditions");
if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 17, __pyx_L1_error)
73422 __Pyx_GOTREF(__pyx_t_1);
73423 __pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition = __Pyx_ImportType(__pyx_t_1,
"proteus.BoundaryConditions",
"BoundaryCondition",
sizeof(
struct __pyx_obj_7proteus_18BoundaryConditions_BoundaryCondition), __Pyx_ImportType_CheckSize_Warn);
73424 if (!__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition) __PYX_ERR(5, 17, __pyx_L1_error)
73425 __pyx_vtabptr_7proteus_18BoundaryConditions_BoundaryCondition = (
struct __pyx_vtabstruct_7proteus_18BoundaryConditions_BoundaryCondition*)__Pyx_GetVtable(__pyx_ptype_7proteus_18BoundaryConditions_BoundaryCondition->tp_dict);
if (unlikely(!__pyx_vtabptr_7proteus_18BoundaryConditions_BoundaryCondition)) __PYX_ERR(5, 17, __pyx_L1_error)
73426 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73427 __Pyx_RefNannyFinishContext();
73430 __Pyx_XDECREF(__pyx_t_1);
73431 __Pyx_RefNannyFinishContext();
73435 static int __Pyx_modinit_variable_import_code(
void) {
73436 __Pyx_RefNannyDeclarations
73437 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
73439 __Pyx_RefNannyFinishContext();
73443 static int __Pyx_modinit_function_import_code(
void) {
73444 __Pyx_RefNannyDeclarations
73445 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
73447 __Pyx_RefNannyFinishContext();
73452 #ifndef CYTHON_NO_PYINIT_EXPORT
73453 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
73454 #elif PY_MAJOR_VERSION < 3
73456 #define __Pyx_PyMODINIT_FUNC extern "C" void
73458 #define __Pyx_PyMODINIT_FUNC void
73462 #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
73464 #define __Pyx_PyMODINIT_FUNC PyObject *
73469 #if PY_MAJOR_VERSION < 3
73470 __Pyx_PyMODINIT_FUNC initBoundaryConditions(
void) CYTHON_SMALL_CODE;
73471 __Pyx_PyMODINIT_FUNC initBoundaryConditions(
void)
73473 __Pyx_PyMODINIT_FUNC PyInit_BoundaryConditions(
void) CYTHON_SMALL_CODE;
73474 __Pyx_PyMODINIT_FUNC PyInit_BoundaryConditions(
void)
73475 #if CYTHON_PEP489_MULTI_PHASE_INIT
73477 return PyModuleDef_Init(&__pyx_moduledef);
73479 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
73480 #if PY_VERSION_HEX >= 0x030700A1
73481 static PY_INT64_T main_interpreter_id = -1;
73482 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
73483 if (main_interpreter_id == -1) {
73484 main_interpreter_id = current_id;
73485 return (unlikely(current_id == -1)) ? -1 : 0;
73486 }
else if (unlikely(main_interpreter_id != current_id))
73488 static PyInterpreterState *main_interpreter = NULL;
73489 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
73490 if (!main_interpreter) {
73491 main_interpreter = current_interpreter;
73492 }
else if (unlikely(main_interpreter != current_interpreter))
73497 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
73502 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) {
73503 PyObject *value = PyObject_GetAttrString(spec, from_name);
73505 if (likely(value)) {
73506 if (allow_none || value != Py_None) {
73507 result = PyDict_SetItemString(moddict, to_name, value);
73510 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
73517 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
73518 PyObject *module = NULL, *moddict, *modname;
73519 if (__Pyx_check_single_interpreter())
73522 return __Pyx_NewRef(__pyx_m);
73523 modname = PyObject_GetAttrString(spec,
"name");
73524 if (unlikely(!modname))
goto bad;
73525 module = PyModule_NewObject(modname);
73526 Py_DECREF(modname);
73527 if (unlikely(!module))
goto bad;
73528 moddict = PyModule_GetDict(module);
73529 if (unlikely(!moddict))
goto bad;
73530 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
73531 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
73532 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
73533 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
73536 Py_XDECREF(module);
73541 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_BoundaryConditions(PyObject *__pyx_pyinit_module)
73545 __Pyx_TraceDeclarations
73546 PyObject *__pyx_t_1 = NULL;
73547 PyObject *__pyx_t_2 = NULL;
73548 PyObject *__pyx_t_3 = NULL;
73549 PyObject *__pyx_t_4 = NULL;
73550 static PyThread_type_lock __pyx_t_5[8];
73551 int __pyx_lineno = 0;
73552 const char *__pyx_filename = NULL;
73553 int __pyx_clineno = 0;
73554 __Pyx_RefNannyDeclarations
73555 #if CYTHON_PEP489_MULTI_PHASE_INIT
73557 if (__pyx_m == __pyx_pyinit_module)
return 0;
73558 PyErr_SetString(PyExc_RuntimeError,
"Module 'BoundaryConditions' has already been imported. Re-initialisation is not supported.");
73561 #elif PY_MAJOR_VERSION >= 3
73562 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
73564 #if CYTHON_REFNANNY
73565 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
73566 if (!__Pyx_RefNanny) {
73568 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
73569 if (!__Pyx_RefNanny)
73570 Py_FatalError(
"failed to import 'refnanny' module");
73573 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_BoundaryConditions(void)", 0);
73574 if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73575 #ifdef __Pxy_PyFrame_Initialize_Offsets
73576 __Pxy_PyFrame_Initialize_Offsets();
73578 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
73579 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
73580 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
73581 #ifdef __Pyx_CyFunction_USED
73582 if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73584 #ifdef __Pyx_FusedFunction_USED
73585 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73587 #ifdef __Pyx_Coroutine_USED
73588 if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73590 #ifdef __Pyx_Generator_USED
73591 if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73593 #ifdef __Pyx_AsyncGen_USED
73594 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73596 #ifdef __Pyx_StopAsyncIteration_USED
73597 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73601 #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
73602 PyEval_InitThreads();
73605 #if CYTHON_PEP489_MULTI_PHASE_INIT
73606 __pyx_m = __pyx_pyinit_module;
73607 Py_INCREF(__pyx_m);
73609 #if PY_MAJOR_VERSION < 3
73610 __pyx_m = Py_InitModule4(
"BoundaryConditions", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
73612 __pyx_m = PyModule_Create(&__pyx_moduledef);
73614 if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
73616 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
73617 Py_INCREF(__pyx_d);
73618 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
73619 Py_INCREF(__pyx_b);
73620 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
73621 Py_INCREF(__pyx_cython_runtime);
73622 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
73624 if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73625 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
73626 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73628 if (__pyx_module_is_main_mprans__BoundaryConditions) {
73629 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73631 #if PY_MAJOR_VERSION >= 3
73633 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
73634 if (!PyDict_GetItemString(modules,
"mprans.BoundaryConditions")) {
73635 if (unlikely(PyDict_SetItemString(modules,
"mprans.BoundaryConditions", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
73640 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73642 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73644 (void)__Pyx_modinit_global_init_code();
73645 (void)__Pyx_modinit_variable_export_code();
73646 if (unlikely(__Pyx_modinit_function_export_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
73647 if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
73648 if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
73649 (void)__Pyx_modinit_variable_import_code();
73650 (void)__Pyx_modinit_function_import_code();
73652 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
73653 if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
73655 __Pyx_TraceCall(
"__Pyx_PyMODINIT_FUNC PyInit_BoundaryConditions(void)", __pyx_f[0], 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));
73664 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
73665 __Pyx_GOTREF(__pyx_t_1);
73666 __Pyx_INCREF(__pyx_n_s_str);
73667 __Pyx_GIVEREF(__pyx_n_s_str);
73668 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_str);
73669 __pyx_t_2 = __Pyx_Import(__pyx_n_s_builtins, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
73670 __Pyx_GOTREF(__pyx_t_2);
73671 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73672 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_str);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
73673 __Pyx_GOTREF(__pyx_t_1);
73674 if (PyDict_SetItem(__pyx_d, __pyx_n_s_str, __pyx_t_1) < 0) __PYX_ERR(0, 9, __pyx_L1_error)
73675 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73676 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73685 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error)
73686 __Pyx_GOTREF(__pyx_t_2);
73687 __Pyx_INCREF(__pyx_n_s_range);
73688 __Pyx_GIVEREF(__pyx_n_s_range);
73689 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_range);
73690 __pyx_t_1 = __Pyx_Import(__pyx_n_s_builtins, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
73691 __Pyx_GOTREF(__pyx_t_1);
73692 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73693 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_range);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error)
73694 __Pyx_GOTREF(__pyx_t_2);
73695 if (PyDict_SetItem(__pyx_d, __pyx_n_s_range, __pyx_t_2) < 0) __PYX_ERR(0, 10, __pyx_L1_error)
73696 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73697 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73706 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
73707 __Pyx_GOTREF(__pyx_t_1);
73708 __Pyx_INCREF(__pyx_n_s_old_div);
73709 __Pyx_GIVEREF(__pyx_n_s_old_div);
73710 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_old_div);
73711 __pyx_t_2 = __Pyx_Import(__pyx_n_s_past_utils, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
73712 __Pyx_GOTREF(__pyx_t_2);
73713 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73714 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
73715 __Pyx_GOTREF(__pyx_t_1);
73716 if (PyDict_SetItem(__pyx_d, __pyx_n_s_old_div, __pyx_t_1) < 0) __PYX_ERR(0, 11, __pyx_L1_error)
73717 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73718 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73727 __pyx_t_2 = __Pyx_Import(__pyx_n_s_os, 0, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error)
73728 __Pyx_GOTREF(__pyx_t_2);
73729 if (PyDict_SetItem(__pyx_d, __pyx_n_s_os, __pyx_t_2) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
73730 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73731 __pyx_t_2 = __Pyx_Import(__pyx_n_s_sys, 0, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error)
73732 __Pyx_GOTREF(__pyx_t_2);
73733 if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_2) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
73734 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73743 __pyx_t_2 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error)
73744 __Pyx_GOTREF(__pyx_t_2);
73745 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_2) < 0) __PYX_ERR(0, 18, __pyx_L1_error)
73746 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73755 __pyx_t_2 = PyList_New(3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
73756 __Pyx_GOTREF(__pyx_t_2);
73757 __Pyx_INCREF(__pyx_n_s_AuxiliaryVariables);
73758 __Pyx_GIVEREF(__pyx_n_s_AuxiliaryVariables);
73759 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_AuxiliaryVariables);
73760 __Pyx_INCREF(__pyx_n_s_BoundaryConditions);
73761 __Pyx_GIVEREF(__pyx_n_s_BoundaryConditions);
73762 PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_BoundaryConditions);
73763 __Pyx_INCREF(__pyx_n_s_Comm);
73764 __Pyx_GIVEREF(__pyx_n_s_Comm);
73765 PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_Comm);
73766 __pyx_t_1 = __Pyx_Import(__pyx_n_s_proteus, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error)
73767 __Pyx_GOTREF(__pyx_t_1);
73768 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73769 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_AuxiliaryVariables);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
73770 __Pyx_GOTREF(__pyx_t_2);
73771 if (PyDict_SetItem(__pyx_d, __pyx_n_s_AuxiliaryVariables, __pyx_t_2) < 0) __PYX_ERR(0, 19, __pyx_L1_error)
73772 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73773 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_BoundaryConditions);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
73774 __Pyx_GOTREF(__pyx_t_2);
73775 if (PyDict_SetItem(__pyx_d, __pyx_n_s_BoundaryConditions, __pyx_t_2) < 0) __PYX_ERR(0, 20, __pyx_L1_error)
73776 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73777 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
73778 __Pyx_GOTREF(__pyx_t_2);
73779 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Comm, __pyx_t_2) < 0) __PYX_ERR(0, 21, __pyx_L1_error)
73780 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73781 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73790 __pyx_t_1 = PyList_New(2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error)
73791 __Pyx_GOTREF(__pyx_t_1);
73792 __Pyx_INCREF(__pyx_n_s_smoothedHeaviside);
73793 __Pyx_GIVEREF(__pyx_n_s_smoothedHeaviside);
73794 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_smoothedHeaviside);
73795 __Pyx_INCREF(__pyx_n_s_smoothedHeaviside_integral);
73796 __Pyx_GIVEREF(__pyx_n_s_smoothedHeaviside_integral);
73797 PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_smoothedHeaviside_integral);
73798 __pyx_t_2 = __Pyx_Import(__pyx_n_s_proteus_ctransportCoefficients, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
73799 __Pyx_GOTREF(__pyx_t_2);
73800 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73801 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_smoothedHeaviside);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error)
73802 __Pyx_GOTREF(__pyx_t_1);
73803 if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside, __pyx_t_1) < 0) __PYX_ERR(0, 22, __pyx_L1_error)
73804 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73805 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_smoothedHeaviside_integral);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error)
73806 __Pyx_GOTREF(__pyx_t_1);
73807 if (PyDict_SetItem(__pyx_d, __pyx_n_s_smoothedHeaviside_integral, __pyx_t_1) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
73808 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73809 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73818 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
73819 __Pyx_GOTREF(__pyx_t_2);
73820 __Pyx_INCREF(__pyx_n_s_WaveTools);
73821 __Pyx_GIVEREF(__pyx_n_s_WaveTools);
73822 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_WaveTools);
73823 __pyx_t_1 = __Pyx_Import(__pyx_n_s_proteus, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error)
73824 __Pyx_GOTREF(__pyx_t_1);
73825 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73826 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_WaveTools);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
73827 __Pyx_GOTREF(__pyx_t_2);
73828 if (PyDict_SetItem(__pyx_d, __pyx_n_s_wt, __pyx_t_2) < 0) __PYX_ERR(0, 24, __pyx_L1_error)
73829 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73830 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73839 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error)
73840 __Pyx_GOTREF(__pyx_t_1);
73841 __Pyx_INCREF(__pyx_n_s_logEvent);
73842 __Pyx_GIVEREF(__pyx_n_s_logEvent);
73843 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_logEvent);
73844 __pyx_t_2 = __Pyx_Import(__pyx_n_s_proteus_Profiling, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error)
73845 __Pyx_GOTREF(__pyx_t_2);
73846 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73847 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_logEvent);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error)
73848 __Pyx_GOTREF(__pyx_t_1);
73849 if (PyDict_SetItem(__pyx_d, __pyx_n_s_logEvent, __pyx_t_1) < 0) __PYX_ERR(0, 25, __pyx_L1_error)
73850 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73851 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73860 __pyx_t_2 = PyList_New(6);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73861 __Pyx_GOTREF(__pyx_t_2);
73862 __Pyx_INCREF(__pyx_n_s_cos);
73863 __Pyx_GIVEREF(__pyx_n_s_cos);
73864 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_cos);
73865 __Pyx_INCREF(__pyx_n_s_sin);
73866 __Pyx_GIVEREF(__pyx_n_s_sin);
73867 PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_sin);
73868 __Pyx_INCREF(__pyx_n_s_sqrt);
73869 __Pyx_GIVEREF(__pyx_n_s_sqrt);
73870 PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_sqrt);
73871 __Pyx_INCREF(__pyx_n_s_atan2);
73872 __Pyx_GIVEREF(__pyx_n_s_atan2);
73873 PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_atan2);
73874 __Pyx_INCREF(__pyx_n_s_acos);
73875 __Pyx_GIVEREF(__pyx_n_s_acos);
73876 PyList_SET_ITEM(__pyx_t_2, 4, __pyx_n_s_acos);
73877 __Pyx_INCREF(__pyx_n_s_asin);
73878 __Pyx_GIVEREF(__pyx_n_s_asin);
73879 PyList_SET_ITEM(__pyx_t_2, 5, __pyx_n_s_asin);
73880 __pyx_t_1 = __Pyx_Import(__pyx_n_s_math, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
73881 __Pyx_GOTREF(__pyx_t_1);
73882 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73883 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_cos);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73884 __Pyx_GOTREF(__pyx_t_2);
73885 if (PyDict_SetItem(__pyx_d, __pyx_n_s_cos, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73886 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73887 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_sin);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73888 __Pyx_GOTREF(__pyx_t_2);
73889 if (PyDict_SetItem(__pyx_d, __pyx_n_s_sin, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73890 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73891 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_sqrt);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73892 __Pyx_GOTREF(__pyx_t_2);
73893 if (PyDict_SetItem(__pyx_d, __pyx_n_s_sqrt, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73894 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73895 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_atan2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73896 __Pyx_GOTREF(__pyx_t_2);
73897 if (PyDict_SetItem(__pyx_d, __pyx_n_s_atan2, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73898 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73899 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_acos);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73900 __Pyx_GOTREF(__pyx_t_2);
73901 if (PyDict_SetItem(__pyx_d, __pyx_n_s_acos, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73902 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73903 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_asin);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
73904 __Pyx_GOTREF(__pyx_t_2);
73905 if (PyDict_SetItem(__pyx_d, __pyx_n_s_asin, __pyx_t_2) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
73906 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73907 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73916 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
73917 __Pyx_GOTREF(__pyx_t_1);
73918 __Pyx_INCREF(__pyx_n_s_MPI);
73919 __Pyx_GIVEREF(__pyx_n_s_MPI);
73920 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_MPI);
73921 __pyx_t_2 = __Pyx_Import(__pyx_n_s_mpi4py, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error)
73922 __Pyx_GOTREF(__pyx_t_2);
73923 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73924 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_MPI);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
73925 __Pyx_GOTREF(__pyx_t_1);
73926 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MPI, __pyx_t_1) < 0) __PYX_ERR(0, 27, __pyx_L1_error)
73927 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73928 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73937 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error)
73938 __Pyx_GOTREF(__pyx_t_2);
73939 __Pyx_INCREF(__pyx_n_s_spatial);
73940 __Pyx_GIVEREF(__pyx_n_s_spatial);
73941 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_spatial);
73942 __pyx_t_1 = __Pyx_Import(__pyx_n_s_scipy, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error)
73943 __Pyx_GOTREF(__pyx_t_1);
73944 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73945 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_spatial);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error)
73946 __Pyx_GOTREF(__pyx_t_2);
73947 if (PyDict_SetItem(__pyx_d, __pyx_n_s_spatial, __pyx_t_2) < 0) __PYX_ERR(0, 28, __pyx_L1_error)
73948 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
73949 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73958 __pyx_t_1 = PyList_New(6);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error)
73959 __Pyx_GOTREF(__pyx_t_1);
73960 __Pyx_INCREF(__pyx_n_s_BC_RANS);
73961 __Pyx_GIVEREF(__pyx_n_s_BC_RANS);
73962 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_BC_RANS);
73963 __Pyx_INCREF(__pyx_n_s_RelaxationZone);
73964 __Pyx_GIVEREF(__pyx_n_s_RelaxationZone);
73965 PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_RelaxationZone);
73966 __Pyx_INCREF(__pyx_n_s_RelaxationZoneWaveGenerator);
73967 __Pyx_GIVEREF(__pyx_n_s_RelaxationZoneWaveGenerator);
73968 PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_RelaxationZoneWaveGenerator);
73969 __Pyx_INCREF(__pyx_n_s_cppClass_WavesCharacteristics_2);
73970 __Pyx_GIVEREF(__pyx_n_s_cppClass_WavesCharacteristics_2);
73971 PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_s_cppClass_WavesCharacteristics_2);
73972 __Pyx_INCREF(__pyx_n_s_WallFunctions);
73973 __Pyx_GIVEREF(__pyx_n_s_WallFunctions);
73974 PyList_SET_ITEM(__pyx_t_1, 4, __pyx_n_s_WallFunctions);
73975 __Pyx_INCREF(__pyx_n_s_kWall);
73976 __Pyx_GIVEREF(__pyx_n_s_kWall);
73977 PyList_SET_ITEM(__pyx_t_1, 5, __pyx_n_s_kWall);
73978 if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_1) < 0) __PYX_ERR(0, 30, __pyx_L1_error)
73979 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73988 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_3reset, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_reset, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj_));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error)
73989 __Pyx_GOTREF(__pyx_t_1);
73990 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_reset, __pyx_t_1) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
73991 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
73992 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74001 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_5setNonMaterial, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setNonMaterial, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__2));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 150, __pyx_L1_error)
74002 __Pyx_GOTREF(__pyx_t_1);
74003 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setNonMaterial, __pyx_t_1) < 0) __PYX_ERR(0, 150, __pyx_L1_error)
74004 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74005 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74014 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_7setTank, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setTank, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__3));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 173, __pyx_L1_error)
74015 __Pyx_GOTREF(__pyx_t_1);
74016 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setTank, __pyx_t_1) < 0) __PYX_ERR(0, 173, __pyx_L1_error)
74017 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74018 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74027 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_9setFixedNodes, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setFixedNodes, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__4));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error)
74028 __Pyx_GOTREF(__pyx_t_1);
74029 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setFixedNodes, __pyx_t_1) < 0) __PYX_ERR(0, 193, __pyx_L1_error)
74030 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74031 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74040 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_11setNoSlip, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setNoSlip, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__5));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error)
74041 __Pyx_GOTREF(__pyx_t_1);
74042 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setNoSlip, __pyx_t_1) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
74043 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74044 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74053 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_13setFreeSlip, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setFreeSlip, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__6));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error)
74054 __Pyx_GOTREF(__pyx_t_1);
74055 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setFreeSlip, __pyx_t_1) < 0) __PYX_ERR(0, 230, __pyx_L1_error)
74056 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74057 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74066 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_15setConstantInletVelocity, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setConstantInletVelocity, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__7));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 262, __pyx_L1_error)
74067 __Pyx_GOTREF(__pyx_t_1);
74068 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setConstantInletVelocity, __pyx_t_1) < 0) __PYX_ERR(0, 262, __pyx_L1_error)
74069 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74070 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74079 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_17setConstantOutletPressure, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setConstantOutletPressur, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__8));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
74080 __Pyx_GOTREF(__pyx_t_1);
74081 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setConstantOutletPressure, __pyx_t_1) < 0) __PYX_ERR(0, 292, __pyx_L1_error)
74082 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74083 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74092 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_19setAtmosphere, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setAtmosphere, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__9));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
74093 __Pyx_GOTREF(__pyx_t_1);
74094 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setAtmosphere, __pyx_t_1) < 0) __PYX_ERR(0, 326, __pyx_L1_error)
74095 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74096 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74105 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_21setRigidBodyMoveMesh, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setRigidBodyMoveMesh, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__13));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error)
74106 __Pyx_GOTREF(__pyx_t_1);
74107 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setRigidBodyMoveMesh, __pyx_t_1) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
74108 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74109 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74118 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_23setChMoveMesh, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setChMoveMesh, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__16));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 406, __pyx_L1_error)
74119 __Pyx_GOTREF(__pyx_t_1);
74120 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setChMoveMesh, __pyx_t_1) < 0) __PYX_ERR(0, 406, __pyx_L1_error)
74121 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74122 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74131 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_25setTurbulentDirichlet, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setTurbulentDirichlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__20));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 411, __pyx_L1_error)
74132 __Pyx_GOTREF(__pyx_t_1);
74133 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setTurbulentDirichlet, __pyx_t_1) < 0) __PYX_ERR(0, 411, __pyx_L1_error)
74134 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74135 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74144 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_27setTurbulentZeroGradient, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setTurbulentZeroGradient, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__21));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 433, __pyx_L1_error)
74145 __Pyx_GOTREF(__pyx_t_1);
74146 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setTurbulentZeroGradient, __pyx_t_1) < 0) __PYX_ERR(0, 433, __pyx_L1_error)
74147 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74148 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74157 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_29setWallFunction, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setWallFunction, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__22));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error)
74158 __Pyx_GOTREF(__pyx_t_1);
74159 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setWallFunction, __pyx_t_1) < 0) __PYX_ERR(0, 446, __pyx_L1_error)
74160 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74161 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74170 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_31setMoveMesh, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setMoveMesh, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__29));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L1_error)
74171 __Pyx_GOTREF(__pyx_t_1);
74172 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setMoveMesh, __pyx_t_1) < 0) __PYX_ERR(0, 494, __pyx_L1_error)
74173 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74174 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74183 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_33__cpp_MoveMesh_h, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___cpp_MoveMesh_h, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__33));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 522, __pyx_L1_error)
74184 __Pyx_GOTREF(__pyx_t_1);
74185 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_cpp_MoveMesh_h, __pyx_t_1) < 0) __PYX_ERR(0, 522, __pyx_L1_error)
74186 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74187 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74196 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_35__cpp_MoveMesh_hx, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___cpp_MoveMesh_hx, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__34));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error)
74197 __Pyx_GOTREF(__pyx_t_1);
74198 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_cpp_MoveMesh_hx, __pyx_t_1) < 0) __PYX_ERR(0, 535, __pyx_L1_error)
74199 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74200 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74209 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_37__cpp_MoveMesh_hy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___cpp_MoveMesh_hy, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__35));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 538, __pyx_L1_error)
74210 __Pyx_GOTREF(__pyx_t_1);
74211 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_cpp_MoveMesh_hy, __pyx_t_1) < 0) __PYX_ERR(0, 538, __pyx_L1_error)
74212 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74213 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74222 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_39__cpp_MoveMesh_hz, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___cpp_MoveMesh_hz, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__36));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error)
74223 __Pyx_GOTREF(__pyx_t_1);
74224 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_cpp_MoveMesh_hz, __pyx_t_1) < 0) __PYX_ERR(0, 541, __pyx_L1_error)
74225 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74226 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74235 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_41setUnsteadyTwoPhaseVelocityInlet, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setUnsteadyTwoPhaseVeloc, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__37));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 544, __pyx_L1_error)
74236 __Pyx_GOTREF(__pyx_t_1);
74237 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setUnsteadyTwoPhaseVelocityInlet_2, __pyx_t_1) < 0) __PYX_ERR(0, 544, __pyx_L1_error)
74238 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74239 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74248 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_43setTwoPhaseVelocityInlet, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setTwoPhaseVelocityInlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__49));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error)
74249 __Pyx_GOTREF(__pyx_t_1);
74250 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setTwoPhaseVelocityInlet, __pyx_t_1) < 0) __PYX_ERR(0, 644, __pyx_L1_error)
74251 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74252 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74261 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_45setHydrostaticPressureOutletWithDepth, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS_setHydrostaticPressureOu, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__70));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 774, __pyx_L1_error)
74262 __Pyx_GOTREF(__pyx_t_1);
74263 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setHydrostaticPressureOutletWith_8, __pyx_t_1) < 0) __PYX_ERR(0, 774, __pyx_L1_error)
74264 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74265 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74272 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_47__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___reduce_cython, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__88));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74273 __Pyx_GOTREF(__pyx_t_1);
74274 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_reduce_cython, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74275 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74276 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74284 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_7BC_RANS_49__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BC_RANS___setstate_cython, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__89));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 16, __pyx_L1_error)
74285 __Pyx_GOTREF(__pyx_t_1);
74286 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS->tp_dict, __pyx_n_s_setstate_cython, __pyx_t_1) < 0) __PYX_ERR(1, 16, __pyx_L1_error)
74287 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74288 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_BC_RANS);
74297 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error)
74298 __Pyx_GOTREF(__pyx_t_1);
74299 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_array);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 948, __pyx_L1_error)
74300 __Pyx_GOTREF(__pyx_t_2);
74301 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74302 __pyx_t_1 = PyList_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error)
74303 __Pyx_GOTREF(__pyx_t_1);
74304 __Pyx_INCREF(__pyx_float_0_);
74305 __Pyx_GIVEREF(__pyx_float_0_);
74306 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_float_0_);
74307 __Pyx_INCREF(__pyx_float_0_);
74308 __Pyx_GIVEREF(__pyx_float_0_);
74309 PyList_SET_ITEM(__pyx_t_1, 1, __pyx_float_0_);
74310 __Pyx_INCREF(__pyx_float_0_);
74311 __Pyx_GIVEREF(__pyx_float_0_);
74312 PyList_SET_ITEM(__pyx_t_1, 2, __pyx_float_0_);
74313 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 948, __pyx_L1_error)
74314 __Pyx_GOTREF(__pyx_t_3);
74315 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
74316 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74317 __pyx_k__90 = __pyx_t_3;
74318 __Pyx_GIVEREF(__pyx_t_3);
74328 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_old_div);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 949, __pyx_L1_error)
74329 __Pyx_GOTREF(__pyx_t_3);
74330 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__194, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 949, __pyx_L1_error)
74331 __Pyx_GOTREF(__pyx_t_1);
74332 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
74333 __pyx_k__91 = __pyx_t_1;
74334 __Pyx_GIVEREF(__pyx_t_1);
74344 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_3calculate_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZone_calculate_init, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__92));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 968, __pyx_L1_error)
74345 __Pyx_GOTREF(__pyx_t_1);
74346 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone->tp_dict, __pyx_n_s_calculate_init, __pyx_t_1) < 0) __PYX_ERR(0, 968, __pyx_L1_error)
74347 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74348 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone);
74357 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_5calculate_phi_python, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZone_calculate_phi_pyt, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__93));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error)
74358 __Pyx_GOTREF(__pyx_t_1);
74359 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone->tp_dict, __pyx_n_s_calculate_phi_python, __pyx_t_1) < 0) __PYX_ERR(0, 1013, __pyx_L1_error)
74360 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74361 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone);
74370 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_7calculate_vel_python, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZone_calculate_vel_pyt, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__94));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
74371 __Pyx_GOTREF(__pyx_t_1);
74372 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone->tp_dict, __pyx_n_s_calculate_vel_python, __pyx_t_1) < 0) __PYX_ERR(0, 1021, __pyx_L1_error)
74373 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74374 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZone);
74381 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_9__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZone___reduce_cython, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__95));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74382 __Pyx_GOTREF(__pyx_t_1);
74383 if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74384 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74392 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_14RelaxationZone_11__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZone___setstate_cython, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__97));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
74393 __Pyx_GOTREF(__pyx_t_1);
74394 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_1) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
74395 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74404 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_3attachModel, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator_atta, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__99));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error)
74405 __Pyx_GOTREF(__pyx_t_1);
74406 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_attachModel, __pyx_t_1) < 0) __PYX_ERR(0, 1054, __pyx_L1_error)
74407 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74408 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74417 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_5attachAuxiliaryVariables, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator_atta_2, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__100));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error)
74418 __Pyx_GOTREF(__pyx_t_1);
74419 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_attachAuxiliaryVariables, __pyx_t_1) < 0) __PYX_ERR(0, 1059, __pyx_L1_error)
74420 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74421 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74430 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_7calculate_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator_calc, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__101));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error)
74431 __Pyx_GOTREF(__pyx_t_1);
74432 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_calculate_init, __pyx_t_1) < 0) __PYX_ERR(0, 1062, __pyx_L1_error)
74433 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74434 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74443 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_9calculate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator_calc_2, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__102));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
74444 __Pyx_GOTREF(__pyx_t_1);
74445 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_calculate, __pyx_t_1) < 0) __PYX_ERR(0, 1073, __pyx_L1_error)
74446 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74447 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74454 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator___re, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__103));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74455 __Pyx_GOTREF(__pyx_t_1);
74456 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_reduce_cython, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74457 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74458 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74466 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_27RelaxationZoneWaveGenerator_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxationZoneWaveGenerator___se, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__104));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 16, __pyx_L1_error)
74467 __Pyx_GOTREF(__pyx_t_1);
74468 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator->tp_dict, __pyx_n_s_setstate_cython, __pyx_t_1) < 0) __PYX_ERR(1, 16, __pyx_L1_error)
74469 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74470 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions_RelaxationZoneWaveGenerator);
74477 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cppClass_WavesCharacteristics_3, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__105));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74478 __Pyx_GOTREF(__pyx_t_1);
74479 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics->tp_dict, __pyx_n_s_reduce_cython, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74480 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74481 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics);
74489 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_31__cppClass_WavesCharacteristics_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cppClass_WavesCharacteristics_4, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__106));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 16, __pyx_L1_error)
74490 __Pyx_GOTREF(__pyx_t_1);
74491 if (PyDict_SetItem((PyObject *)__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics->tp_dict, __pyx_n_s_setstate_cython, __pyx_t_1) < 0) __PYX_ERR(1, 16, __pyx_L1_error)
74492 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74493 PyType_Modified(__pyx_ptype_6mprans_18BoundaryConditions___cppClass_WavesCharacteristics);
74502 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_AuxiliaryVariables);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1219, __pyx_L1_error)
74503 __Pyx_GOTREF(__pyx_t_1);
74504 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_AV_base);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1219, __pyx_L1_error)
74505 __Pyx_GOTREF(__pyx_t_3);
74506 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74507 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1219, __pyx_L1_error)
74508 __Pyx_GOTREF(__pyx_t_1);
74509 __Pyx_GIVEREF(__pyx_t_3);
74510 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
74512 __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1219, __pyx_L1_error)
74513 __Pyx_GOTREF(__pyx_t_3);
74514 __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_1, __pyx_n_s_WallFunctions, __pyx_n_s_WallFunctions, (PyObject *) NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_kp_s_Auxiliary_variable_used_to_calc);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1219, __pyx_L1_error)
74515 __Pyx_GOTREF(__pyx_t_2);
74524 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_1__init__, 0, __pyx_n_s_WallFunctions___init, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__107));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1225, __pyx_L1_error)
74525 __Pyx_GOTREF(__pyx_t_4);
74526 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__209);
74527 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_4) < 0) __PYX_ERR(0, 1225, __pyx_L1_error)
74528 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74537 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_3attachModel, 0, __pyx_n_s_WallFunctions_attachModel, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__108));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1277, __pyx_L1_error)
74538 __Pyx_GOTREF(__pyx_t_4);
74539 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_attachModel, __pyx_t_4) < 0) __PYX_ERR(0, 1277, __pyx_L1_error)
74540 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74549 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_5attachAuxiliaryVariables, 0, __pyx_n_s_WallFunctions_attachAuxiliaryVar, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__109));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1288, __pyx_L1_error)
74550 __Pyx_GOTREF(__pyx_t_4);
74551 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_attachAuxiliaryVariables, __pyx_t_4) < 0) __PYX_ERR(0, 1288, __pyx_L1_error)
74552 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74561 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_7calculate_init, 0, __pyx_n_s_WallFunctions_calculate_init, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__110));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1291, __pyx_L1_error)
74562 __Pyx_GOTREF(__pyx_t_4);
74563 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_calculate_init, __pyx_t_4) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
74564 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74573 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_9calculate, 0, __pyx_n_s_WallFunctions_calculate, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__111));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1294, __pyx_L1_error)
74574 __Pyx_GOTREF(__pyx_t_4);
74575 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_calculate, __pyx_t_4) < 0) __PYX_ERR(0, 1294, __pyx_L1_error)
74576 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74585 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_11getLocalNearestNode, 0, __pyx_n_s_WallFunctions_getLocalNearestNod, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__112));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1297, __pyx_L1_error)
74586 __Pyx_GOTREF(__pyx_t_4);
74587 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getLocalNearestNode, __pyx_t_4) < 0) __PYX_ERR(0, 1297, __pyx_L1_error)
74588 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74597 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_13getLocalElement, 0, __pyx_n_s_WallFunctions_getLocalElement, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__113));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1317, __pyx_L1_error)
74598 __Pyx_GOTREF(__pyx_t_4);
74599 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getLocalElement, __pyx_t_4) < 0) __PYX_ERR(0, 1317, __pyx_L1_error)
74600 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74609 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_15findElementContainingCoords, 0, __pyx_n_s_WallFunctions_findElementContain, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__114));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1363, __pyx_L1_error)
74610 __Pyx_GOTREF(__pyx_t_4);
74611 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_findElementContainingCoords, __pyx_t_4) < 0) __PYX_ERR(0, 1363, __pyx_L1_error)
74612 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74621 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_17getFluidVelocityLocalCoords, 0, __pyx_n_s_WallFunctions_getFluidVelocityLo, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__115));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1401, __pyx_L1_error)
74622 __Pyx_GOTREF(__pyx_t_4);
74623 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getFluidVelocityLocalCoords, __pyx_t_4) < 0) __PYX_ERR(0, 1401, __pyx_L1_error)
74624 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74633 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_19setYplusNormalDirection, 0, __pyx_n_s_WallFunctions_setYplusNormalDire, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__116));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1426, __pyx_L1_error)
74634 __Pyx_GOTREF(__pyx_t_4);
74635 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__219);
74636 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_setYplusNormalDirection, __pyx_t_4) < 0) __PYX_ERR(0, 1426, __pyx_L1_error)
74637 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74646 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_21extractVelocity, 0, __pyx_n_s_WallFunctions_extractVelocity, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__118));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1438, __pyx_L1_error)
74647 __Pyx_GOTREF(__pyx_t_4);
74648 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_extractVelocity, __pyx_t_4) < 0) __PYX_ERR(0, 1438, __pyx_L1_error)
74649 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74658 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_23tangentialVelocity, 0, __pyx_n_s_WallFunctions_tangentialVelocity, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__119));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1459, __pyx_L1_error)
74659 __Pyx_GOTREF(__pyx_t_4);
74660 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__222);
74661 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_tangentialVelocity, __pyx_t_4) < 0) __PYX_ERR(0, 1459, __pyx_L1_error)
74662 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74671 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_25getVariables, 0, __pyx_n_s_WallFunctions_getVariables, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__120));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1481, __pyx_L1_error)
74672 __Pyx_GOTREF(__pyx_t_4);
74673 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getVariables, __pyx_t_4) < 0) __PYX_ERR(0, 1481, __pyx_L1_error)
74674 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74683 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_27get_u_dirichlet, 0, __pyx_n_s_WallFunctions_get_u_dirichlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__121));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1511, __pyx_L1_error)
74684 __Pyx_GOTREF(__pyx_t_4);
74685 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_u_dirichlet, __pyx_t_4) < 0) __PYX_ERR(0, 1511, __pyx_L1_error)
74686 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74695 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_29get_v_dirichlet, 0, __pyx_n_s_WallFunctions_get_v_dirichlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__122));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1520, __pyx_L1_error)
74696 __Pyx_GOTREF(__pyx_t_4);
74697 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_v_dirichlet, __pyx_t_4) < 0) __PYX_ERR(0, 1520, __pyx_L1_error)
74698 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74707 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_31get_w_dirichlet, 0, __pyx_n_s_WallFunctions_get_w_dirichlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__123));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1529, __pyx_L1_error)
74708 __Pyx_GOTREF(__pyx_t_4);
74709 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_w_dirichlet, __pyx_t_4) < 0) __PYX_ERR(0, 1529, __pyx_L1_error)
74710 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74719 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_33get_k_dirichlet, 0, __pyx_n_s_WallFunctions_get_k_dirichlet, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__124));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1538, __pyx_L1_error)
74720 __Pyx_GOTREF(__pyx_t_4);
74721 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_k_dirichlet, __pyx_t_4) < 0) __PYX_ERR(0, 1538, __pyx_L1_error)
74722 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74731 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_35get_dissipation_dirichlet, 0, __pyx_n_s_WallFunctions_get_dissipation_di, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__125));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1547, __pyx_L1_error)
74732 __Pyx_GOTREF(__pyx_t_4);
74733 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_dissipation_dirichlet, __pyx_t_4) < 0) __PYX_ERR(0, 1547, __pyx_L1_error)
74734 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74743 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_37get_u_diffusive, 0, __pyx_n_s_WallFunctions_get_u_diffusive, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__126));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1561, __pyx_L1_error)
74744 __Pyx_GOTREF(__pyx_t_4);
74745 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_u_diffusive, __pyx_t_4) < 0) __PYX_ERR(0, 1561, __pyx_L1_error)
74746 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74755 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_39get_v_diffusive, 0, __pyx_n_s_WallFunctions_get_v_diffusive, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__127));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1571, __pyx_L1_error)
74756 __Pyx_GOTREF(__pyx_t_4);
74757 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_v_diffusive, __pyx_t_4) < 0) __PYX_ERR(0, 1571, __pyx_L1_error)
74758 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74767 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_13WallFunctions_41get_w_diffusive, 0, __pyx_n_s_WallFunctions_get_w_diffusive, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__128));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1581, __pyx_L1_error)
74768 __Pyx_GOTREF(__pyx_t_4);
74769 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_get_w_diffusive, __pyx_t_4) < 0) __PYX_ERR(0, 1581, __pyx_L1_error)
74770 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74779 __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_WallFunctions, __pyx_t_1, __pyx_t_2, NULL, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1219, __pyx_L1_error)
74780 __Pyx_GOTREF(__pyx_t_4);
74781 if (PyDict_SetItem(__pyx_d, __pyx_n_s_WallFunctions, __pyx_t_4) < 0) __PYX_ERR(0, 1219, __pyx_L1_error)
74782 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74783 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
74784 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
74785 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74794 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_AuxiliaryVariables);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1592, __pyx_L1_error)
74795 __Pyx_GOTREF(__pyx_t_1);
74796 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_AV_base);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1592, __pyx_L1_error)
74797 __Pyx_GOTREF(__pyx_t_3);
74798 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74799 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1592, __pyx_L1_error)
74800 __Pyx_GOTREF(__pyx_t_1);
74801 __Pyx_GIVEREF(__pyx_t_3);
74802 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
74804 __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1592, __pyx_L1_error)
74805 __Pyx_GOTREF(__pyx_t_3);
74806 __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_1, __pyx_n_s_kWall, __pyx_n_s_kWall, (PyObject *) NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_kp_s_Auxiliary_variable_used_to_calc_2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1592, __pyx_L1_error)
74807 __Pyx_GOTREF(__pyx_t_2);
74816 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_1__init__, 0, __pyx_n_s_kWall___init, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__129));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1598, __pyx_L1_error)
74817 __Pyx_GOTREF(__pyx_t_4);
74818 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__233);
74819 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_4) < 0) __PYX_ERR(0, 1598, __pyx_L1_error)
74820 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74829 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_3attachModel, 0, __pyx_n_s_kWall_attachModel, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__130));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1609, __pyx_L1_error)
74830 __Pyx_GOTREF(__pyx_t_4);
74831 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_attachModel, __pyx_t_4) < 0) __PYX_ERR(0, 1609, __pyx_L1_error)
74832 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74841 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_5attachAuxiliaryVariables, 0, __pyx_n_s_kWall_attachAuxiliaryVariables, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__131));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1618, __pyx_L1_error)
74842 __Pyx_GOTREF(__pyx_t_4);
74843 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_attachAuxiliaryVariables, __pyx_t_4) < 0) __PYX_ERR(0, 1618, __pyx_L1_error)
74844 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74853 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_7calculate_init, 0, __pyx_n_s_kWall_calculate_init, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__132));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1621, __pyx_L1_error)
74854 __Pyx_GOTREF(__pyx_t_4);
74855 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_calculate_init, __pyx_t_4) < 0) __PYX_ERR(0, 1621, __pyx_L1_error)
74856 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74865 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_9calculate, 0, __pyx_n_s_kWall_calculate, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__133));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1624, __pyx_L1_error)
74866 __Pyx_GOTREF(__pyx_t_4);
74867 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_calculate, __pyx_t_4) < 0) __PYX_ERR(0, 1624, __pyx_L1_error)
74868 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74877 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_11getFluidKappaLocalCoords, 0, __pyx_n_s_kWall_getFluidKappaLocalCoords, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__134));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1627, __pyx_L1_error)
74878 __Pyx_GOTREF(__pyx_t_4);
74879 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getFluidKappaLocalCoords, __pyx_t_4) < 0) __PYX_ERR(0, 1627, __pyx_L1_error)
74880 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74889 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_13kappaNearWall, 0, __pyx_n_s_kWall_kappaNearWall, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__135));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1649, __pyx_L1_error)
74890 __Pyx_GOTREF(__pyx_t_4);
74891 __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__240);
74892 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_kappaNearWall, __pyx_t_4) < 0) __PYX_ERR(0, 1649, __pyx_L1_error)
74893 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74902 __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5kWall_15getKappa, 0, __pyx_n_s_kWall_getKappa, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__136));
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1656, __pyx_L1_error)
74903 __Pyx_GOTREF(__pyx_t_4);
74904 if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getKappa, __pyx_t_4) < 0) __PYX_ERR(0, 1656, __pyx_L1_error)
74905 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74914 __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_kWall, __pyx_t_1, __pyx_t_2, NULL, 0, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1592, __pyx_L1_error)
74915 __Pyx_GOTREF(__pyx_t_4);
74916 if (PyDict_SetItem(__pyx_d, __pyx_n_s_kWall, __pyx_t_4) < 0) __PYX_ERR(0, 1592, __pyx_L1_error)
74917 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
74918 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
74919 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
74920 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74927 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_1__pyx_unpickle_BC_RANS, 0, __pyx_n_s_pyx_unpickle_BC_RANS, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__137));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74928 __Pyx_GOTREF(__pyx_t_1);
74929 if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_BC_RANS, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74930 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74939 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_3__pyx_unpickle_RelaxationZoneWaveGenerator, 0, __pyx_n_s_pyx_unpickle_RelaxationZoneWav, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__139));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74940 __Pyx_GOTREF(__pyx_t_1);
74941 if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_RelaxationZoneWav, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74942 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74949 __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6mprans_18BoundaryConditions_5__pyx_unpickle___cppClass_WavesCharacteristics, 0, __pyx_n_s_pyx_unpickle___cppClass_WavesC, NULL, __pyx_n_s_mprans_BoundaryConditions, __pyx_d, ((PyObject *)__pyx_codeobj__141));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
74950 __Pyx_GOTREF(__pyx_t_1);
74951 if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle___cppClass_WavesC, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
74952 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74959 __pyx_t_1 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
74960 __Pyx_GOTREF(__pyx_t_1);
74961 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
74962 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74971 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_array_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 209, __pyx_L1_error)
74972 __Pyx_GOTREF(__pyx_t_1);
74973 if (PyDict_SetItem((PyObject *)__pyx_array_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(1, 209, __pyx_L1_error)
74974 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
74975 PyType_Modified(__pyx_array_type);
74984 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__245, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 286, __pyx_L1_error)
74985 __Pyx_GOTREF(__pyx_t_1);
74986 __Pyx_XGOTREF(
generic);
74987 __Pyx_DECREF_SET(
generic, __pyx_t_1);
74988 __Pyx_GIVEREF(__pyx_t_1);
74998 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__246, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 287, __pyx_L1_error)
74999 __Pyx_GOTREF(__pyx_t_1);
75000 __Pyx_XGOTREF(strided);
75001 __Pyx_DECREF_SET(strided, __pyx_t_1);
75002 __Pyx_GIVEREF(__pyx_t_1);
75012 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__247, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 288, __pyx_L1_error)
75013 __Pyx_GOTREF(__pyx_t_1);
75014 __Pyx_XGOTREF(indirect);
75015 __Pyx_DECREF_SET(indirect, __pyx_t_1);
75016 __Pyx_GIVEREF(__pyx_t_1);
75026 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__248, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 291, __pyx_L1_error)
75027 __Pyx_GOTREF(__pyx_t_1);
75028 __Pyx_XGOTREF(contiguous);
75029 __Pyx_DECREF_SET(contiguous, __pyx_t_1);
75030 __Pyx_GIVEREF(__pyx_t_1);
75040 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__249, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 292, __pyx_L1_error)
75041 __Pyx_GOTREF(__pyx_t_1);
75042 __Pyx_XGOTREF(indirect_contiguous);
75043 __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_1);
75044 __Pyx_GIVEREF(__pyx_t_1);
75054 __pyx_memoryview_thread_locks_used = 0;
75063 __pyx_t_5[0] = PyThread_allocate_lock();
75064 __pyx_t_5[1] = PyThread_allocate_lock();
75065 __pyx_t_5[2] = PyThread_allocate_lock();
75066 __pyx_t_5[3] = PyThread_allocate_lock();
75067 __pyx_t_5[4] = PyThread_allocate_lock();
75068 __pyx_t_5[5] = PyThread_allocate_lock();
75069 __pyx_t_5[6] = PyThread_allocate_lock();
75070 __pyx_t_5[7] = PyThread_allocate_lock();
75071 memcpy(&(__pyx_memoryview_thread_locks[0]), __pyx_t_5,
sizeof(__pyx_memoryview_thread_locks[0]) * (8));
75080 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_memoryview_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 549, __pyx_L1_error)
75081 __Pyx_GOTREF(__pyx_t_1);
75082 if (PyDict_SetItem((PyObject *)__pyx_memoryview_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(1, 549, __pyx_L1_error)
75083 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
75084 PyType_Modified(__pyx_memoryview_type);
75093 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_memoryview_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 995, __pyx_L1_error)
75094 __Pyx_GOTREF(__pyx_t_1);
75095 if (PyDict_SetItem((PyObject *)__pyx_memoryviewslice_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(1, 995, __pyx_L1_error)
75096 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
75097 PyType_Modified(__pyx_memoryviewslice_type);
75104 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum, NULL, __pyx_n_s_View_MemoryView);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
75105 __Pyx_GOTREF(__pyx_t_1);
75106 if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Enum, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
75107 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
75116 __Pyx_TraceReturn(Py_None, 0);
75122 __Pyx_XDECREF(__pyx_t_1);
75123 __Pyx_XDECREF(__pyx_t_2);
75124 __Pyx_XDECREF(__pyx_t_3);
75125 __Pyx_XDECREF(__pyx_t_4);
75128 __Pyx_AddTraceback(
"init mprans.BoundaryConditions", __pyx_clineno, __pyx_lineno, __pyx_filename);
75131 }
else if (!PyErr_Occurred()) {
75132 PyErr_SetString(PyExc_ImportError,
"init mprans.BoundaryConditions");
75135 __Pyx_RefNannyFinishContext();
75136 #if CYTHON_PEP489_MULTI_PHASE_INIT
75137 return (__pyx_m != NULL) ? 0 : -1;
75138 #elif PY_MAJOR_VERSION >= 3
75147 #if CYTHON_REFNANNY
75148 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
75149 PyObject *m = NULL, *p = NULL;
75151 m = PyImport_ImportModule(modname);
75153 p = PyObject_GetAttrString(m,
"RefNannyAPI");
75155 r = PyLong_AsVoidPtr(p);
75159 return (__Pyx_RefNannyAPIStruct *)
r;
75164 #if CYTHON_USE_TYPE_SLOTS
75165 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
75166 PyTypeObject* tp = Py_TYPE(obj);
75167 if (likely(tp->tp_getattro))
75168 return tp->tp_getattro(obj, attr_name);
75169 #if PY_MAJOR_VERSION < 3
75170 if (likely(tp->tp_getattr))
75171 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
75173 return PyObject_GetAttr(obj, attr_name);
75178 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
75179 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
75180 if (unlikely(!result)) {
75181 PyErr_Format(PyExc_NameError,
75182 #
if PY_MAJOR_VERSION >= 3
75183 "name '%U' is not defined", name);
75185 "name '%.200s' is not defined", PyString_AS_STRING(name));
75192 static void __Pyx_RaiseDoubleKeywordsError(
75193 const char* func_name,
75196 PyErr_Format(PyExc_TypeError,
75197 #
if PY_MAJOR_VERSION >= 3
75198 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
75200 "%s() got multiple values for keyword argument '%s'", func_name,
75201 PyString_AsString(kw_name));
75206 static int __Pyx_ParseOptionalKeywords(
75208 PyObject **argnames[],
75210 PyObject *values[],
75211 Py_ssize_t num_pos_args,
75212 const char* function_name)
75214 PyObject *key = 0, *value = 0;
75215 Py_ssize_t
pos = 0;
75217 PyObject*** first_kw_arg = argnames + num_pos_args;
75218 while (PyDict_Next(kwds, &
pos, &key, &value)) {
75219 name = first_kw_arg;
75220 while (*name && (**name != key)) name++;
75222 values[name-argnames] = value;
75225 name = first_kw_arg;
75226 #if PY_MAJOR_VERSION < 3
75227 if (likely(PyString_Check(key))) {
75229 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
75230 && _PyString_Eq(**name, key)) {
75231 values[name-argnames] = value;
75236 if (*name)
continue;
75238 PyObject*** argname = argnames;
75239 while (argname != first_kw_arg) {
75240 if ((**argname == key) || (
75241 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
75242 && _PyString_Eq(**argname, key))) {
75243 goto arg_passed_twice;
75250 if (likely(PyUnicode_Check(key))) {
75252 int cmp = (**name == key) ? 0 :
75253 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
75254 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
75256 PyUnicode_Compare(**name, key);
75257 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
75259 values[name-argnames] = value;
75264 if (*name)
continue;
75266 PyObject*** argname = argnames;
75267 while (argname != first_kw_arg) {
75268 int cmp = (**argname == key) ? 0 :
75269 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
75270 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
75272 PyUnicode_Compare(**argname, key);
75273 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
75274 if (cmp == 0)
goto arg_passed_twice;
75279 goto invalid_keyword_type;
75281 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
75283 goto invalid_keyword;
75288 __Pyx_RaiseDoubleKeywordsError(function_name, key);
75290 invalid_keyword_type:
75291 PyErr_Format(PyExc_TypeError,
75292 "%.200s() keywords must be strings", function_name);
75295 PyErr_Format(PyExc_TypeError,
75296 #
if PY_MAJOR_VERSION < 3
75297 "%.200s() got an unexpected keyword argument '%.200s'",
75298 function_name, PyString_AsString(key));
75300 "%s() got an unexpected keyword argument '%U'",
75301 function_name, key);
75308 static void __Pyx_RaiseArgtupleInvalid(
75309 const char* func_name,
75311 Py_ssize_t num_min,
75312 Py_ssize_t num_max,
75313 Py_ssize_t num_found)
75315 Py_ssize_t num_expected;
75316 const char *more_or_less;
75317 if (num_found < num_min) {
75318 num_expected = num_min;
75319 more_or_less =
"at least";
75321 num_expected = num_max;
75322 more_or_less =
"at most";
75325 more_or_less =
"exactly";
75327 PyErr_Format(PyExc_TypeError,
75328 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
75329 func_name, more_or_less, num_expected,
75330 (num_expected == 1) ?
"" :
"s", num_found);
75334 #if CYTHON_FAST_THREAD_STATE
75335 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
75336 PyObject *tmp_type, *tmp_value, *tmp_tb;
75337 tmp_type = tstate->curexc_type;
75338 tmp_value = tstate->curexc_value;
75339 tmp_tb = tstate->curexc_traceback;
75340 tstate->curexc_type = type;
75341 tstate->curexc_value = value;
75342 tstate->curexc_traceback = tb;
75343 Py_XDECREF(tmp_type);
75344 Py_XDECREF(tmp_value);
75345 Py_XDECREF(tmp_tb);
75347 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
75348 *type = tstate->curexc_type;
75349 *value = tstate->curexc_value;
75350 *tb = tstate->curexc_traceback;
75351 tstate->curexc_type = 0;
75352 tstate->curexc_value = 0;
75353 tstate->curexc_traceback = 0;
75359 static int __Pyx_TraceSetupAndCall(PyCodeObject** code,
75360 PyFrameObject** frame,
75361 PyThreadState* tstate,
75362 const char *funcname,
75363 const char *srcfile,
75365 PyObject *type, *value, *traceback;
75367 if (*frame == NULL || !CYTHON_PROFILE_REUSE_FRAME) {
75368 if (*code == NULL) {
75369 *code = __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);
75370 if (*code == NULL)
return 0;
75372 *frame = PyFrame_New(
75378 if (*frame == NULL)
return 0;
75379 if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
75380 Py_INCREF(Py_None);
75381 (*frame)->f_trace = Py_None;
75383 #if PY_VERSION_HEX < 0x030400B1
75385 (*frame)->f_tstate = tstate;
75388 __Pyx_PyFrame_SetLineNumber(*frame, firstlineno);
75390 __Pyx_EnterTracing(tstate);
75391 __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
75393 if (tstate->c_tracefunc)
75394 retval = tstate->c_tracefunc(tstate->c_traceobj, *frame, PyTrace_CALL, NULL) == 0;
75395 if (retval && tstate->c_profilefunc)
75397 retval = tstate->c_profilefunc(tstate->c_profileobj, *frame, PyTrace_CALL, NULL) == 0;
75398 __Pyx_LeaveTracing(tstate);
75400 __Pyx_ErrRestoreInState(tstate, type, value, traceback);
75401 return __Pyx_IsTracing(tstate, 0, 0) && retval;
75405 Py_XDECREF(traceback);
75409 static PyCodeObject *__Pyx_createFrameCodeObject(
const char *funcname,
const char *srcfile,
int firstlineno) {
75410 PyCodeObject *py_code = 0;
75411 #if PY_MAJOR_VERSION >= 3
75412 py_code = PyCode_NewEmpty(srcfile, funcname, firstlineno);
75413 if (likely(py_code)) {
75414 py_code->co_flags |= CO_OPTIMIZED | CO_NEWLOCALS;
75417 PyObject *py_srcfile = 0;
75418 PyObject *py_funcname = 0;
75419 py_funcname = PyString_FromString(funcname);
75420 if (unlikely(!py_funcname))
goto bad;
75421 py_srcfile = PyString_FromString(srcfile);
75422 if (unlikely(!py_srcfile))
goto bad;
75423 py_code = PyCode_New(
75427 CO_OPTIMIZED | CO_NEWLOCALS,
75440 Py_XDECREF(py_srcfile);
75441 Py_XDECREF(py_funcname);
75448 #if CYTHON_COMPILING_IN_CPYTHON
75449 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
75451 ternaryfunc call = Py_TYPE(func)->tp_call;
75452 if (unlikely(!call))
75453 return PyObject_Call(func, arg, kw);
75454 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
75456 result = (*call)(func, arg, kw);
75457 Py_LeaveRecursiveCall();
75458 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
75461 "NULL result without error in PyObject_Call");
75468 #if CYTHON_FAST_PYCALL
75469 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
75470 PyObject *globals) {
75472 PyThreadState *tstate = __Pyx_PyThreadState_Current;
75473 PyObject **fastlocals;
75476 assert(globals != NULL);
75481 assert(tstate != NULL);
75482 f = PyFrame_New(tstate, co, globals, NULL);
75486 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
75487 for (i = 0; i < na; i++) {
75489 fastlocals[i] = *args++;
75491 result = PyEval_EvalFrameEx(
f,0);
75492 ++tstate->recursion_depth;
75494 --tstate->recursion_depth;
75497 #if 1 || PY_VERSION_HEX < 0x030600B1
75498 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
75499 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
75500 PyObject *globals = PyFunction_GET_GLOBALS(func);
75501 PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
75503 #if PY_MAJOR_VERSION >= 3
75506 PyObject *kwtuple, **k;
75511 assert(kwargs == NULL || PyDict_Check(kwargs));
75512 nk = kwargs ? PyDict_Size(kwargs) : 0;
75513 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
75517 #
if PY_MAJOR_VERSION >= 3
75518 co->co_kwonlyargcount == 0 &&
75520 likely(kwargs == NULL || nk == 0) &&
75521 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
75522 if (argdefs == NULL && co->co_argcount == nargs) {
75523 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
75526 else if (nargs == 0 && argdefs != NULL
75527 && co->co_argcount == Py_SIZE(argdefs)) {
75530 args = &PyTuple_GET_ITEM(argdefs, 0);
75531 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
75535 if (kwargs != NULL) {
75537 kwtuple = PyTuple_New(2 * nk);
75538 if (kwtuple == NULL) {
75542 k = &PyTuple_GET_ITEM(kwtuple, 0);
75544 while (PyDict_Next(kwargs, &
pos, &k[i], &k[i+1])) {
75555 closure = PyFunction_GET_CLOSURE(func);
75556 #if PY_MAJOR_VERSION >= 3
75557 kwdefs = PyFunction_GET_KW_DEFAULTS(func);
75559 if (argdefs != NULL) {
75560 d = &PyTuple_GET_ITEM(argdefs, 0);
75561 nd = Py_SIZE(argdefs);
75567 #if PY_MAJOR_VERSION >= 3
75568 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
75571 d, (
int)nd, kwdefs, closure);
75573 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
75576 d, (
int)nd, closure);
75578 Py_XDECREF(kwtuple);
75580 Py_LeaveRecursiveCall();
75587 #if CYTHON_COMPILING_IN_CPYTHON
75588 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
75589 PyObject *
self, *result;
75591 cfunc = PyCFunction_GET_FUNCTION(func);
75592 self = PyCFunction_GET_SELF(func);
75593 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
75595 result = cfunc(
self, arg);
75596 Py_LeaveRecursiveCall();
75597 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
75600 "NULL result without error in PyObject_Call");
75607 #if CYTHON_COMPILING_IN_CPYTHON
75608 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
75609 #if CYTHON_FAST_PYCALL
75610 if (PyFunction_Check(func)) {
75611 return __Pyx_PyFunction_FastCall(func, NULL, 0);
75614 #ifdef __Pyx_CyFunction_USED
75615 if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
75617 if (likely(PyCFunction_Check(func)))
75620 if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
75621 return __Pyx_PyObject_CallMethO(func, NULL);
75624 return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
75629 #if CYTHON_FAST_PYCCALL
75630 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
75631 PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
75632 PyCFunction meth = PyCFunction_GET_FUNCTION(func);
75633 PyObject *
self = PyCFunction_GET_SELF(func);
75634 int flags = PyCFunction_GET_FLAGS(func);
75635 assert(PyCFunction_Check(func));
75636 assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
75637 assert(nargs >= 0);
75638 assert(nargs == 0 || args != NULL);
75642 assert(!PyErr_Occurred());
75643 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
75644 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self, args, nargs, NULL);
75646 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self, args, nargs);
75652 #if CYTHON_COMPILING_IN_CPYTHON
75653 static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
75655 PyObject *args = PyTuple_New(1);
75656 if (unlikely(!args))
return NULL;
75658 PyTuple_SET_ITEM(args, 0, arg);
75659 result = __Pyx_PyObject_Call(func, args, NULL);
75663 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
75664 #if CYTHON_FAST_PYCALL
75665 if (PyFunction_Check(func)) {
75666 return __Pyx_PyFunction_FastCall(func, &arg, 1);
75669 if (likely(PyCFunction_Check(func))) {
75670 if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
75671 return __Pyx_PyObject_CallMethO(func, arg);
75672 #if CYTHON_FAST_PYCCALL
75673 }
else if (__Pyx_PyFastCFunction_Check(func)) {
75674 return __Pyx_PyCFunction_FastCall(func, &arg, 1);
75678 return __Pyx__PyObject_CallOneArg(func, arg);
75681 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
75683 PyObject *args = PyTuple_Pack(1, arg);
75684 if (unlikely(!args))
return NULL;
75685 result = __Pyx_PyObject_Call(func, args, NULL);
75692 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2) {
75693 PyObject *args, *result = NULL;
75694 #if CYTHON_FAST_PYCALL
75695 if (PyFunction_Check(
function)) {
75696 PyObject *args[2] = {arg1, arg2};
75697 return __Pyx_PyFunction_FastCall(
function, args, 2);
75700 #if CYTHON_FAST_PYCCALL
75701 if (__Pyx_PyFastCFunction_Check(
function)) {
75702 PyObject *args[2] = {arg1, arg2};
75703 return __Pyx_PyCFunction_FastCall(
function, args, 2);
75706 args = PyTuple_New(2);
75707 if (unlikely(!args))
goto done;
75709 PyTuple_SET_ITEM(args, 0, arg1);
75711 PyTuple_SET_ITEM(args, 1, arg2);
75712 Py_INCREF(
function);
75713 result = __Pyx_PyObject_Call(
function, args, NULL);
75715 Py_DECREF(
function);
75721 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval, CYTHON_UNUSED
long inplace) {
75725 #if PY_MAJOR_VERSION < 3
75726 if (likely(PyInt_CheckExact(op1))) {
75727 const long b = intval;
75728 long a = PyInt_AS_LONG(op1);
75729 if (a == b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
75732 #if CYTHON_USE_PYLONG_INTERNALS
75733 if (likely(PyLong_CheckExact(op1))) {
75735 unsigned long uintval;
75736 Py_ssize_t size = Py_SIZE(op1);
75737 const digit* digits = ((PyLongObject*)op1)->ob_digit;
75739 if (size == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
75740 }
else if (intval < 0) {
75749 uintval = (
unsigned long) intval;
75750 #if PyLong_SHIFT * 4 < SIZEOF_LONG*8
75751 if (uintval >> (PyLong_SHIFT * 4)) {
75752 unequal = (size != 5) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
75753 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
75756 #if PyLong_SHIFT * 3 < SIZEOF_LONG*8
75757 if (uintval >> (PyLong_SHIFT * 3)) {
75758 unequal = (size != 4) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
75759 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
75762 #if PyLong_SHIFT * 2 < SIZEOF_LONG*8
75763 if (uintval >> (PyLong_SHIFT * 2)) {
75764 unequal = (size != 3) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
75765 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
75768 #if PyLong_SHIFT * 1 < SIZEOF_LONG*8
75769 if (uintval >> (PyLong_SHIFT * 1)) {
75770 unequal = (size != 2) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
75771 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
75774 unequal = (size != 1) || (((
unsigned long) digits[0]) != (uintval & (
unsigned long) PyLong_MASK));
75775 if (unequal == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
75778 if (PyFloat_CheckExact(op1)) {
75779 const long b = intval;
75780 double a = PyFloat_AS_DOUBLE(op1);
75781 if ((
double)a == (
double)b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
75784 PyObject_RichCompare(op1, op2, Py_EQ));
75788 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
75790 if (!j)
return NULL;
75791 r = PyObject_GetItem(o, j);
75795 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
75796 CYTHON_NCP_UNUSED
int wraparound,
75797 CYTHON_NCP_UNUSED
int boundscheck) {
75798 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
75799 Py_ssize_t wrapped_i = i;
75800 if (wraparound & unlikely(i < 0)) {
75801 wrapped_i += PyList_GET_SIZE(o);
75803 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
75804 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
75808 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
75810 return PySequence_GetItem(o, i);
75813 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
75814 CYTHON_NCP_UNUSED
int wraparound,
75815 CYTHON_NCP_UNUSED
int boundscheck) {
75816 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
75817 Py_ssize_t wrapped_i = i;
75818 if (wraparound & unlikely(i < 0)) {
75819 wrapped_i += PyTuple_GET_SIZE(o);
75821 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
75822 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
75826 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
75828 return PySequence_GetItem(o, i);
75831 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list,
75832 CYTHON_NCP_UNUSED
int wraparound,
75833 CYTHON_NCP_UNUSED
int boundscheck) {
75834 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
75835 if (is_list || PyList_CheckExact(o)) {
75836 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
75837 if ((!boundscheck) || (likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o))))) {
75838 PyObject *
r = PyList_GET_ITEM(o,
n);
75843 else if (PyTuple_CheckExact(o)) {
75844 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
75845 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyTuple_GET_SIZE(o)))) {
75846 PyObject *
r = PyTuple_GET_ITEM(o,
n);
75851 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
75852 if (likely(m && m->sq_item)) {
75853 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
75854 Py_ssize_t l = m->sq_length(o);
75855 if (likely(l >= 0)) {
75858 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
75863 return m->sq_item(o, i);
75867 if (is_list || PySequence_Check(o)) {
75868 return PySequence_GetItem(o, i);
75871 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
75875 #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
75876 static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
75877 PyObject *dict = Py_TYPE(obj)->tp_dict;
75878 return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
75880 static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
75881 PyObject **dictptr = NULL;
75882 Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
75884 #if CYTHON_COMPILING_IN_CPYTHON
75885 dictptr = (likely(offset > 0)) ? (PyObject **) ((
char *)obj + offset) : _PyObject_GetDictPtr(obj);
75887 dictptr = _PyObject_GetDictPtr(obj);
75890 return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
75892 static CYTHON_INLINE
int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
75893 PyObject *dict = Py_TYPE(obj)->tp_dict;
75894 if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
75896 return obj_dict_version == __Pyx_get_object_dict_version(obj);
75901 #if CYTHON_USE_DICT_VERSIONS
75902 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
75904 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
75908 #if !CYTHON_AVOID_BORROWED_REFS
75909 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
75910 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
75911 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
75912 if (likely(result)) {
75913 return __Pyx_NewRef(result);
75914 }
else if (unlikely(PyErr_Occurred())) {
75918 result = PyDict_GetItem(__pyx_d, name);
75919 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
75920 if (likely(result)) {
75921 return __Pyx_NewRef(result);
75925 result = PyObject_GetItem(__pyx_d, name);
75926 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
75927 if (likely(result)) {
75928 return __Pyx_NewRef(result);
75932 return __Pyx_GetBuiltinName(name);
75936 #if !CYTHON_COMPILING_IN_PYPY
75937 static PyObject* __Pyx_PyFloat_EqObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check) {
75938 const double b = floatval;
75941 (void)zerodivision_check;
75945 if (likely(PyFloat_CheckExact(op1))) {
75946 a = PyFloat_AS_DOUBLE(op1);
75949 #if PY_MAJOR_VERSION < 3
75950 if (likely(PyInt_CheckExact(op1))) {
75951 a = (double) PyInt_AS_LONG(op1);
75955 if (likely(PyLong_CheckExact(op1))) {
75956 #if CYTHON_USE_PYLONG_INTERNALS
75957 const digit* digits = ((PyLongObject*)op1)->ob_digit;
75958 const Py_ssize_t size = Py_SIZE(op1);
75960 case 0: a = 0.0;
break;
75961 case -1: a = -(double) digits[0];
break;
75962 case 1: a = (double) digits[0];
break;
75965 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
75966 a = (double) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
75967 if ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
75973 CYTHON_FALLTHROUGH;
75976 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
75977 a = (double) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
75978 if ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
75984 CYTHON_FALLTHROUGH;
75987 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
75988 a = (double) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
75989 if ((8 *
sizeof(
unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
75995 CYTHON_FALLTHROUGH;
76001 PyFloat_Type.tp_richcompare(op2, op1, Py_EQ));
76005 PyObject_RichCompare(op1, op2, Py_EQ));
76016 static CYTHON_INLINE
void __Pyx_RaiseClosureNameError(
const char *varname) {
76017 PyErr_Format(PyExc_NameError,
"free variable '%s' referenced before assignment in enclosing scope", varname);
76021 #if CYTHON_USE_TYPE_SLOTS
76022 static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
76024 Py_ssize_t key_value;
76025 PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
76026 if (unlikely(!(m && m->sq_item))) {
76027 PyErr_Format(PyExc_TypeError,
"'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
76030 key_value = __Pyx_PyIndex_AsSsize_t(index);
76031 if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
76032 return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
76034 if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
76036 PyErr_Format(PyExc_IndexError,
"cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
76040 static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
76041 PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
76042 if (likely(m && m->mp_subscript)) {
76043 return m->mp_subscript(obj, key);
76045 return __Pyx_PyObject_GetIndex(obj, key);
76050 static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
76051 PyObject* fake_module;
76052 PyTypeObject* cached_type = NULL;
76053 fake_module = PyImport_AddModule((
char*)
"_cython_" CYTHON_ABI);
76054 if (!fake_module)
return NULL;
76055 Py_INCREF(fake_module);
76056 cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name);
76058 if (!PyType_Check((PyObject*)cached_type)) {
76059 PyErr_Format(PyExc_TypeError,
76060 "Shared Cython type %.200s is not a type object",
76064 if (cached_type->tp_basicsize != type->tp_basicsize) {
76065 PyErr_Format(PyExc_TypeError,
76066 "Shared Cython type %.200s has the wrong size, try recompiling",
76071 if (!PyErr_ExceptionMatches(PyExc_AttributeError))
goto bad;
76073 if (PyType_Ready(type) < 0)
goto bad;
76074 if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0)
76077 cached_type = type;
76080 Py_DECREF(fake_module);
76081 return cached_type;
76083 Py_XDECREF(cached_type);
76084 cached_type = NULL;
76089 #include <structmember.h>
76091 __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *closure)
76093 if (unlikely(op->func_doc == NULL)) {
76094 if (op->func.m_ml->ml_doc) {
76095 #if PY_MAJOR_VERSION >= 3
76096 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc);
76098 op->func_doc = PyString_FromString(op->func.m_ml->ml_doc);
76100 if (unlikely(op->func_doc == NULL))
76103 Py_INCREF(Py_None);
76107 Py_INCREF(op->func_doc);
76108 return op->func_doc;
76111 __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED
void *context)
76113 PyObject *tmp = op->func_doc;
76114 if (value == NULL) {
76118 op->func_doc = value;
76123 __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76125 if (unlikely(op->func_name == NULL)) {
76126 #if PY_MAJOR_VERSION >= 3
76127 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name);
76129 op->func_name = PyString_InternFromString(op->func.m_ml->ml_name);
76131 if (unlikely(op->func_name == NULL))
76134 Py_INCREF(op->func_name);
76135 return op->func_name;
76138 __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED
void *context)
76141 #if PY_MAJOR_VERSION >= 3
76142 if (unlikely(value == NULL || !PyUnicode_Check(value)))
76144 if (unlikely(value == NULL || !PyString_Check(value)))
76147 PyErr_SetString(PyExc_TypeError,
76148 "__name__ must be set to a string object");
76151 tmp = op->func_name;
76153 op->func_name = value;
76158 __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76160 Py_INCREF(op->func_qualname);
76161 return op->func_qualname;
76164 __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED
void *context)
76167 #if PY_MAJOR_VERSION >= 3
76168 if (unlikely(value == NULL || !PyUnicode_Check(value)))
76170 if (unlikely(value == NULL || !PyString_Check(value)))
76173 PyErr_SetString(PyExc_TypeError,
76174 "__qualname__ must be set to a string object");
76177 tmp = op->func_qualname;
76179 op->func_qualname = value;
76184 __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED
void *closure)
76187 self = m->func_closure;
76194 __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76196 if (unlikely(op->func_dict == NULL)) {
76197 op->func_dict = PyDict_New();
76198 if (unlikely(op->func_dict == NULL))
76201 Py_INCREF(op->func_dict);
76202 return op->func_dict;
76205 __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED
void *context)
76208 if (unlikely(value == NULL)) {
76209 PyErr_SetString(PyExc_TypeError,
76210 "function's dictionary may not be deleted");
76213 if (unlikely(!PyDict_Check(value))) {
76214 PyErr_SetString(PyExc_TypeError,
76215 "setting function's dictionary to a non-dict");
76218 tmp = op->func_dict;
76220 op->func_dict = value;
76225 __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76227 Py_INCREF(op->func_globals);
76228 return op->func_globals;
76231 __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76233 Py_INCREF(Py_None);
76237 __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context)
76239 PyObject* result = (op->func_code) ? op->func_code : Py_None;
76244 __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
76246 PyObject *res = op->defaults_getter((PyObject *) op);
76247 if (unlikely(!res))
76249 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
76250 op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
76251 Py_INCREF(op->defaults_tuple);
76252 op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
76253 Py_INCREF(op->defaults_kwdict);
76255 op->defaults_tuple = PySequence_ITEM(res, 0);
76256 if (unlikely(!op->defaults_tuple)) result = -1;
76258 op->defaults_kwdict = PySequence_ITEM(res, 1);
76259 if (unlikely(!op->defaults_kwdict)) result = -1;
76266 __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED
void *context) {
76270 }
else if (value != Py_None && !PyTuple_Check(value)) {
76271 PyErr_SetString(PyExc_TypeError,
76272 "__defaults__ must be set to a tuple object");
76276 tmp = op->defaults_tuple;
76277 op->defaults_tuple = value;
76282 __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
76283 PyObject* result = op->defaults_tuple;
76284 if (unlikely(!result)) {
76285 if (op->defaults_getter) {
76286 if (__Pyx_CyFunction_init_defaults(op) < 0)
return NULL;
76287 result = op->defaults_tuple;
76296 __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED
void *context) {
76300 }
else if (value != Py_None && !PyDict_Check(value)) {
76301 PyErr_SetString(PyExc_TypeError,
76302 "__kwdefaults__ must be set to a dict object");
76306 tmp = op->defaults_kwdict;
76307 op->defaults_kwdict = value;
76312 __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
76313 PyObject* result = op->defaults_kwdict;
76314 if (unlikely(!result)) {
76315 if (op->defaults_getter) {
76316 if (__Pyx_CyFunction_init_defaults(op) < 0)
return NULL;
76317 result = op->defaults_kwdict;
76326 __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED
void *context) {
76328 if (!value || value == Py_None) {
76330 }
else if (!PyDict_Check(value)) {
76331 PyErr_SetString(PyExc_TypeError,
76332 "__annotations__ must be set to a dict object");
76336 tmp = op->func_annotations;
76337 op->func_annotations = value;
76342 __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, CYTHON_UNUSED
void *context) {
76343 PyObject* result = op->func_annotations;
76344 if (unlikely(!result)) {
76345 result = PyDict_New();
76346 if (unlikely(!result))
return NULL;
76347 op->func_annotations = result;
76352 static PyGetSetDef __pyx_CyFunction_getsets[] = {
76353 {(
char *)
"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
76354 {(
char *)
"__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
76355 {(
char *)
"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
76356 {(
char *)
"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
76357 {(
char *)
"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
76358 {(
char *)
"__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0},
76359 {(
char *)
"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
76360 {(
char *)
"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
76361 {(
char *)
"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
76362 {(
char *)
"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
76363 {(
char *)
"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
76364 {(
char *)
"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
76365 {(
char *)
"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
76366 {(
char *)
"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
76367 {(
char *)
"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
76368 {(
char *)
"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
76369 {(
char *)
"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
76370 {(
char *)
"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
76373 static PyMemberDef __pyx_CyFunction_members[] = {
76374 {(
char *)
"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0},
76378 __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args)
76380 #if PY_MAJOR_VERSION >= 3
76381 Py_INCREF(m->func_qualname);
76382 return m->func_qualname;
76384 return PyString_FromString(m->func.m_ml->ml_name);
76387 static PyMethodDef __pyx_CyFunction_methods[] = {
76388 {
"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
76391 #if PY_VERSION_HEX < 0x030500A0
76392 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
76394 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist)
76396 static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml,
int flags, PyObject* qualname,
76397 PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
76398 if (unlikely(op == NULL))
76401 __Pyx_CyFunction_weakreflist(op) = NULL;
76402 op->func.m_ml = ml;
76403 op->func.m_self = (PyObject *) op;
76404 Py_XINCREF(closure);
76405 op->func_closure = closure;
76406 Py_XINCREF(module);
76407 op->func.m_module = module;
76408 op->func_dict = NULL;
76409 op->func_name = NULL;
76410 Py_INCREF(qualname);
76411 op->func_qualname = qualname;
76412 op->func_doc = NULL;
76413 op->func_classobj = NULL;
76414 op->func_globals = globals;
76415 Py_INCREF(op->func_globals);
76417 op->func_code = code;
76418 op->defaults_pyobjects = 0;
76419 op->defaults_size = 0;
76420 op->defaults = NULL;
76421 op->defaults_tuple = NULL;
76422 op->defaults_kwdict = NULL;
76423 op->defaults_getter = NULL;
76424 op->func_annotations = NULL;
76425 return (PyObject *) op;
76428 __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
76430 Py_CLEAR(m->func_closure);
76431 Py_CLEAR(m->func.m_module);
76432 Py_CLEAR(m->func_dict);
76433 Py_CLEAR(m->func_name);
76434 Py_CLEAR(m->func_qualname);
76435 Py_CLEAR(m->func_doc);
76436 Py_CLEAR(m->func_globals);
76437 Py_CLEAR(m->func_code);
76438 Py_CLEAR(m->func_classobj);
76439 Py_CLEAR(m->defaults_tuple);
76440 Py_CLEAR(m->defaults_kwdict);
76441 Py_CLEAR(m->func_annotations);
76443 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
76445 for (i = 0; i < m->defaults_pyobjects; i++)
76446 Py_XDECREF(pydefaults[i]);
76447 PyObject_Free(m->defaults);
76448 m->defaults = NULL;
76452 static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
76454 if (__Pyx_CyFunction_weakreflist(m) != NULL)
76455 PyObject_ClearWeakRefs((PyObject *) m);
76456 __Pyx_CyFunction_clear(m);
76457 PyObject_GC_Del(m);
76459 static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
76461 PyObject_GC_UnTrack(m);
76462 __Pyx__CyFunction_dealloc(m);
76464 static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit,
void *arg)
76466 Py_VISIT(m->func_closure);
76467 Py_VISIT(m->func.m_module);
76468 Py_VISIT(m->func_dict);
76469 Py_VISIT(m->func_name);
76470 Py_VISIT(m->func_qualname);
76471 Py_VISIT(m->func_doc);
76472 Py_VISIT(m->func_globals);
76473 Py_VISIT(m->func_code);
76474 Py_VISIT(m->func_classobj);
76475 Py_VISIT(m->defaults_tuple);
76476 Py_VISIT(m->defaults_kwdict);
76478 PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
76480 for (i = 0; i < m->defaults_pyobjects; i++)
76481 Py_VISIT(pydefaults[i]);
76485 static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type)
76487 #if PY_MAJOR_VERSION < 3
76488 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
76489 if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) {
76493 if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) {
76495 type = (PyObject *)(Py_TYPE(obj));
76496 return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type)));
76498 if (obj == Py_None)
76501 return __Pyx_PyMethod_New(func, obj, type);
76504 __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
76506 #if PY_MAJOR_VERSION >= 3
76507 return PyUnicode_FromFormat(
"<cyfunction %U at %p>",
76508 op->func_qualname, (
void *)op);
76510 return PyString_FromFormat(
"<cyfunction %s at %p>",
76511 PyString_AsString(op->func_qualname), (
void *)op);
76514 static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *
self, PyObject *arg, PyObject *kw) {
76515 PyCFunctionObject*
f = (PyCFunctionObject*)func;
76516 PyCFunction meth =
f->m_ml->ml_meth;
76518 switch (
f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
76520 if (likely(kw == NULL || PyDict_Size(kw) == 0))
76521 return (*meth)(
self, arg);
76523 case METH_VARARGS | METH_KEYWORDS:
76524 return (*(PyCFunctionWithKeywords)(
void*)meth)(
self, arg, kw);
76526 if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
76527 size = PyTuple_GET_SIZE(arg);
76528 if (likely(size == 0))
76529 return (*meth)(
self, NULL);
76530 PyErr_Format(PyExc_TypeError,
76531 "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T
"d given)",
76532 f->m_ml->ml_name, size);
76537 if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
76538 size = PyTuple_GET_SIZE(arg);
76539 if (likely(size == 1)) {
76540 PyObject *result, *arg0;
76541 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
76542 arg0 = PyTuple_GET_ITEM(arg, 0);
76544 arg0 = PySequence_ITEM(arg, 0);
if (unlikely(!arg0))
return NULL;
76546 result = (*meth)(
self, arg0);
76547 #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
76552 PyErr_Format(PyExc_TypeError,
76553 "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T
"d given)",
76554 f->m_ml->ml_name, size);
76559 PyErr_SetString(PyExc_SystemError,
"Bad call flags in "
76560 "__Pyx_CyFunction_Call. METH_OLDARGS is no "
76561 "longer supported!");
76564 PyErr_Format(PyExc_TypeError,
"%.200s() takes no keyword arguments",
76568 static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
76569 return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw);
76571 static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
76573 __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
76574 if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
76576 PyObject *new_args;
76578 argc = PyTuple_GET_SIZE(args);
76579 new_args = PyTuple_GetSlice(args, 1, argc);
76580 if (unlikely(!new_args))
76582 self = PyTuple_GetItem(args, 0);
76583 if (unlikely(!
self)) {
76584 Py_DECREF(new_args);
76585 PyErr_Format(PyExc_TypeError,
76586 "unbound method %.200S() needs an argument",
76587 cyfunc->func_qualname);
76590 result = __Pyx_CyFunction_CallMethod(func,
self, new_args, kw);
76591 Py_DECREF(new_args);
76593 result = __Pyx_CyFunction_Call(func, args, kw);
76597 static PyTypeObject __pyx_CyFunctionType_type = {
76598 PyVarObject_HEAD_INIT(0, 0)
76599 "cython_function_or_method",
76600 sizeof(__pyx_CyFunctionObject),
76602 (destructor) __Pyx_CyFunction_dealloc,
76606 #if PY_MAJOR_VERSION < 3
76611 (reprfunc) __Pyx_CyFunction_repr,
76616 __Pyx_CyFunction_CallAsMethod,
76621 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
76623 (traverseproc) __Pyx_CyFunction_traverse,
76624 (inquiry) __Pyx_CyFunction_clear,
76626 #
if PY_VERSION_HEX < 0x030500A0
76627 offsetof(__pyx_CyFunctionObject, func_weakreflist),
76629 offsetof(PyCFunctionObject, m_weakreflist),
76633 __pyx_CyFunction_methods,
76634 __pyx_CyFunction_members,
76635 __pyx_CyFunction_getsets,
76638 __Pyx_CyFunction_descr_get,
76640 offsetof(__pyx_CyFunctionObject, func_dict),
76653 #if PY_VERSION_HEX >= 0x030400a1
76656 #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
76659 #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
76662 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
76666 static int __pyx_CyFunction_init(
void) {
76667 __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
76668 if (unlikely(__pyx_CyFunctionType == NULL)) {
76673 static CYTHON_INLINE
void *__Pyx_CyFunction_InitDefaults(PyObject *func,
size_t size,
int pyobjects) {
76674 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
76675 m->defaults = PyObject_Malloc(size);
76676 if (unlikely(!m->defaults))
76677 return PyErr_NoMemory();
76678 memset(m->defaults, 0, size);
76679 m->defaults_pyobjects = pyobjects;
76680 m->defaults_size = size;
76681 return m->defaults;
76683 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
76684 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
76685 m->defaults_tuple = tuple;
76688 static CYTHON_INLINE
void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
76689 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
76690 m->defaults_kwdict = dict;
76693 static CYTHON_INLINE
void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
76694 __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
76695 m->func_annotations = dict;
76700 static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
int flags, PyObject* qualname,
76701 PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
76702 PyObject *op = __Pyx_CyFunction_Init(
76703 PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType),
76704 ml, flags, qualname, closure, module, globals, code
76707 PyObject_GC_Track(op);
76714 __Pyx_init_memviewslice(
struct __pyx_memoryview_obj *memview,
76716 __Pyx_memviewslice *memviewslice,
76717 int memview_is_new_reference)
76719 __Pyx_RefNannyDeclarations
76721 Py_buffer *buf = &memview->view;
76722 __Pyx_RefNannySetupContext(
"init_memviewslice", 0);
76723 if (unlikely(memviewslice->memview || memviewslice->data)) {
76724 PyErr_SetString(PyExc_ValueError,
76725 "memviewslice is already initialized!");
76728 if (buf->strides) {
76729 for (i = 0; i < ndim; i++) {
76730 memviewslice->strides[i] = buf->strides[i];
76733 Py_ssize_t stride = buf->itemsize;
76734 for (i = ndim - 1; i >= 0; i--) {
76735 memviewslice->strides[i] = stride;
76736 stride *= buf->shape[i];
76739 for (i = 0; i < ndim; i++) {
76740 memviewslice->shape[i] = buf->shape[i];
76741 if (buf->suboffsets) {
76742 memviewslice->suboffsets[i] = buf->suboffsets[i];
76744 memviewslice->suboffsets[i] = -1;
76747 memviewslice->memview = memview;
76748 memviewslice->data = (
char *)buf->buf;
76749 if (__pyx_add_acquisition_count(memview) == 0 && !memview_is_new_reference) {
76750 Py_INCREF(memview);
76755 memviewslice->memview = 0;
76756 memviewslice->data = 0;
76759 __Pyx_RefNannyFinishContext();
76762 #ifndef Py_NO_RETURN
76763 #define Py_NO_RETURN
76765 static void __pyx_fatalerror(
const char *fmt, ...) Py_NO_RETURN {
76768 #ifdef HAVE_STDARG_PROTOTYPES
76769 va_start(vargs, fmt);
76773 vsnprintf(msg, 200, fmt, vargs);
76775 Py_FatalError(msg);
76777 static CYTHON_INLINE
int
76778 __pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
76779 PyThread_type_lock lock)
76782 PyThread_acquire_lock(lock, 1);
76783 result = (*acquisition_count)++;
76784 PyThread_release_lock(lock);
76787 static CYTHON_INLINE
int
76788 __pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
76789 PyThread_type_lock lock)
76792 PyThread_acquire_lock(lock, 1);
76793 result = (*acquisition_count)--;
76794 PyThread_release_lock(lock);
76797 static CYTHON_INLINE
void
76798 __Pyx_INC_MEMVIEW(__Pyx_memviewslice *memslice,
int have_gil,
int lineno)
76801 struct __pyx_memoryview_obj *memview = memslice->memview;
76802 if (unlikely(!memview || (PyObject *) memview == Py_None))
76804 if (unlikely(__pyx_get_slice_count(memview) < 0))
76805 __pyx_fatalerror(
"Acquisition count is %d (line %d)",
76806 __pyx_get_slice_count(memview), lineno);
76807 first_time = __pyx_add_acquisition_count(memview) == 0;
76808 if (unlikely(first_time)) {
76810 Py_INCREF((PyObject *) memview);
76812 PyGILState_STATE _gilstate = PyGILState_Ensure();
76813 Py_INCREF((PyObject *) memview);
76814 PyGILState_Release(_gilstate);
76818 static CYTHON_INLINE
void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *memslice,
76819 int have_gil,
int lineno) {
76821 struct __pyx_memoryview_obj *memview = memslice->memview;
76822 if (unlikely(!memview || (PyObject *) memview == Py_None)) {
76823 memslice->memview = NULL;
76826 if (unlikely(__pyx_get_slice_count(memview) <= 0))
76827 __pyx_fatalerror(
"Acquisition count is %d (line %d)",
76828 __pyx_get_slice_count(memview), lineno);
76829 last_time = __pyx_sub_acquisition_count(memview) == 1;
76830 memslice->data = NULL;
76831 if (unlikely(last_time)) {
76833 Py_CLEAR(memslice->memview);
76835 PyGILState_STATE _gilstate = PyGILState_Ensure();
76836 Py_CLEAR(memslice->memview);
76837 PyGILState_Release(_gilstate);
76840 memslice->memview = NULL;
76845 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
76846 if (unlikely(!type)) {
76847 PyErr_SetString(PyExc_SystemError,
"Missing type object");
76850 if (likely(__Pyx_TypeCheck(obj, type)))
76852 PyErr_Format(PyExc_TypeError,
"Cannot convert %.200s to %.200s",
76853 Py_TYPE(obj)->tp_name, type->tp_name);
76858 static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *
v) {
76861 r = PyObject_SetItem(o, j,
v);
76865 static CYTHON_INLINE
int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *
v,
int is_list,
76866 CYTHON_NCP_UNUSED
int wraparound, CYTHON_NCP_UNUSED
int boundscheck) {
76867 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
76868 if (is_list || PyList_CheckExact(o)) {
76869 Py_ssize_t
n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
76870 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o)))) {
76871 PyObject* old = PyList_GET_ITEM(o,
n);
76873 PyList_SET_ITEM(o,
n,
v);
76878 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
76879 if (likely(m && m->sq_ass_item)) {
76880 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
76881 Py_ssize_t l = m->sq_length(o);
76882 if (likely(l >= 0)) {
76885 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
76890 return m->sq_ass_item(o, i,
v);
76894 #if CYTHON_COMPILING_IN_PYPY
76895 if (is_list || (PySequence_Check(o) && !PyDict_Check(o)))
76897 if (is_list || PySequence_Check(o))
76900 return PySequence_SetItem(o, i,
v);
76903 return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i),
v);
76907 static void __Pyx_WriteUnraisable(
const char *name, CYTHON_UNUSED
int clineno,
76908 CYTHON_UNUSED
int lineno, CYTHON_UNUSED
const char *filename,
76909 int full_traceback, CYTHON_UNUSED
int nogil) {
76910 PyObject *old_exc, *old_val, *old_tb;
76912 __Pyx_PyThreadState_declare
76914 PyGILState_STATE state;
76916 state = PyGILState_Ensure();
76918 else state = (PyGILState_STATE)-1;
76921 __Pyx_PyThreadState_assign
76922 __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
76923 if (full_traceback) {
76924 Py_XINCREF(old_exc);
76925 Py_XINCREF(old_val);
76926 Py_XINCREF(old_tb);
76927 __Pyx_ErrRestore(old_exc, old_val, old_tb);
76930 #if PY_MAJOR_VERSION < 3
76931 ctx = PyString_FromString(name);
76933 ctx = PyUnicode_FromString(name);
76935 __Pyx_ErrRestore(old_exc, old_val, old_tb);
76937 PyErr_WriteUnraisable(Py_None);
76939 PyErr_WriteUnraisable(ctx);
76944 PyGILState_Release(state);
76949 #if !CYTHON_COMPILING_IN_PYPY
76950 static PyObject* __Pyx_PyFloat_TrueDivideObjC(PyObject *op1, PyObject *op2,
double floatval,
int inplace,
int zerodivision_check) {
76951 const double b = floatval;
76954 (void)zerodivision_check;
76955 if (likely(PyFloat_CheckExact(op1))) {
76956 a = PyFloat_AS_DOUBLE(op1);
76959 #if PY_MAJOR_VERSION < 3
76960 if (likely(PyInt_CheckExact(op1))) {
76961 a = (double) PyInt_AS_LONG(op1);
76965 if (likely(PyLong_CheckExact(op1))) {
76966 #if CYTHON_USE_PYLONG_INTERNALS
76967 const digit* digits = ((PyLongObject*)op1)->ob_digit;
76968 const Py_ssize_t size = Py_SIZE(op1);
76970 case 0: a = 0.0;
break;
76971 case -1: a = -(double) digits[0];
break;
76972 case 1: a = (double) digits[0];
break;
76975 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
76976 a = (double) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
76977 if ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
76983 CYTHON_FALLTHROUGH;
76986 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
76987 a = (double) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
76988 if ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
76994 CYTHON_FALLTHROUGH;
76997 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT && ((8 *
sizeof(
unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
76998 a = (double) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
76999 if ((8 *
sizeof(
unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
77005 CYTHON_FALLTHROUGH;
77010 a = PyLong_AsDouble(op1);
77011 if (unlikely(a == -1.0 && PyErr_Occurred()))
return NULL;
77015 return (inplace ? PyNumber_InPlaceTrueDivide : PyNumber_TrueDivide)(op1, op2);
77018 PyFPE_START_PROTECT(
"divide",
return NULL)
77020 PyFPE_END_PROTECT(result)
77021 return PyFloat_FromDouble(result);
77026 #if !CYTHON_COMPILING_IN_PYPY
77027 static PyObject* __Pyx_PyInt_SubtractCObj(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval,
int inplace,
int zerodivision_check) {
77029 (void)zerodivision_check;
77030 #if PY_MAJOR_VERSION < 3
77031 if (likely(PyInt_CheckExact(op2))) {
77032 const long a = intval;
77034 long b = PyInt_AS_LONG(op2);
77035 x = (long)((
unsigned long)a - b);
77036 if (likely((x^a) >= 0 || (x^~b) >= 0))
77037 return PyInt_FromLong(x);
77038 return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
77041 #if CYTHON_USE_PYLONG_INTERNALS
77042 if (likely(PyLong_CheckExact(op2))) {
77043 const long a = intval;
77045 #ifdef HAVE_LONG_LONG
77046 const PY_LONG_LONG lla = intval;
77047 PY_LONG_LONG llb, llx;
77049 const digit* digits = ((PyLongObject*)op2)->ob_digit;
77050 const Py_ssize_t size = Py_SIZE(op2);
77051 if (likely(__Pyx_sst_abs(size) <= 1)) {
77052 b = likely(size) ? digits[0] : 0;
77053 if (size == -1) b = -b;
77057 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77058 b = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77060 #ifdef HAVE_LONG_LONG
77061 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77062 llb = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77066 CYTHON_FALLTHROUGH;
77068 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77069 b = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77071 #ifdef HAVE_LONG_LONG
77072 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77073 llb = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77077 CYTHON_FALLTHROUGH;
77079 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77080 b = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77082 #ifdef HAVE_LONG_LONG
77083 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77084 llb = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77088 CYTHON_FALLTHROUGH;
77090 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77091 b = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77093 #ifdef HAVE_LONG_LONG
77094 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77095 llb = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77099 CYTHON_FALLTHROUGH;
77101 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77102 b = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77104 #ifdef HAVE_LONG_LONG
77105 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77106 llb = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77110 CYTHON_FALLTHROUGH;
77112 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77113 b = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77115 #ifdef HAVE_LONG_LONG
77116 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77117 llb = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77121 CYTHON_FALLTHROUGH;
77122 default:
return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
77126 return PyLong_FromLong(x);
77127 #ifdef HAVE_LONG_LONG
77130 return PyLong_FromLongLong(llx);
77136 if (PyFloat_CheckExact(op2)) {
77137 const long a = intval;
77138 double b = PyFloat_AS_DOUBLE(op2);
77140 PyFPE_START_PROTECT(
"subtract",
return NULL)
77141 result = ((double)a) - (double)b;
77142 PyFPE_END_PROTECT(result)
77143 return PyFloat_FromDouble(result);
77145 return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
77150 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname) {
77151 PyErr_Format(PyExc_UnboundLocalError,
"local variable '%s' referenced before assignment", varname);
77155 #if CYTHON_FAST_THREAD_STATE
77156 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
77158 n = PyTuple_GET_SIZE(tuple);
77159 #if PY_MAJOR_VERSION >= 3
77160 for (i=0; i<
n; i++) {
77161 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
77164 for (i=0; i<
n; i++) {
77165 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
77169 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
77170 PyObject *exc_type = tstate->curexc_type;
77171 if (exc_type == err)
return 1;
77172 if (unlikely(!exc_type))
return 0;
77173 if (unlikely(PyTuple_Check(err)))
77174 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
77175 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
77180 static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *
n) {
77181 #if CYTHON_USE_TYPE_SLOTS
77182 #if PY_MAJOR_VERSION >= 3
77183 if (likely(PyUnicode_Check(
n)))
77185 if (likely(PyString_Check(
n)))
77187 return __Pyx_PyObject_GetAttrStr(o,
n);
77189 return PyObject_GetAttr(o,
n);
77193 static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
77194 __Pyx_PyThreadState_declare
77195 __Pyx_PyThreadState_assign
77196 if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
77198 __Pyx_PyErr_Clear();
77202 static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *
n, PyObject *d) {
77203 PyObject *
r = __Pyx_GetAttr(o,
n);
77204 return (likely(
r)) ?
r : __Pyx_GetAttr3Default(d);
77208 #if !CYTHON_COMPILING_IN_PYPY
77209 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval,
int inplace,
int zerodivision_check) {
77211 (void)zerodivision_check;
77212 #if PY_MAJOR_VERSION < 3
77213 if (likely(PyInt_CheckExact(op1))) {
77214 const long b = intval;
77216 long a = PyInt_AS_LONG(op1);
77217 x = (long)((
unsigned long)a - b);
77218 if (likely((x^a) >= 0 || (x^~b) >= 0))
77219 return PyInt_FromLong(x);
77220 return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
77223 #if CYTHON_USE_PYLONG_INTERNALS
77224 if (likely(PyLong_CheckExact(op1))) {
77225 const long b = intval;
77227 #ifdef HAVE_LONG_LONG
77228 const PY_LONG_LONG llb = intval;
77229 PY_LONG_LONG lla, llx;
77231 const digit* digits = ((PyLongObject*)op1)->ob_digit;
77232 const Py_ssize_t size = Py_SIZE(op1);
77233 if (likely(__Pyx_sst_abs(size) <= 1)) {
77234 a = likely(size) ? digits[0] : 0;
77235 if (size == -1) a = -a;
77239 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77240 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77242 #ifdef HAVE_LONG_LONG
77243 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77244 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77248 CYTHON_FALLTHROUGH;
77250 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77251 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77253 #ifdef HAVE_LONG_LONG
77254 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77255 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77259 CYTHON_FALLTHROUGH;
77261 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77262 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77264 #ifdef HAVE_LONG_LONG
77265 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77266 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77270 CYTHON_FALLTHROUGH;
77272 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77273 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77275 #ifdef HAVE_LONG_LONG
77276 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77277 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77281 CYTHON_FALLTHROUGH;
77283 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77284 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77286 #ifdef HAVE_LONG_LONG
77287 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77288 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77292 CYTHON_FALLTHROUGH;
77294 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77295 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77297 #ifdef HAVE_LONG_LONG
77298 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77299 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77303 CYTHON_FALLTHROUGH;
77304 default:
return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
77308 return PyLong_FromLong(x);
77309 #ifdef HAVE_LONG_LONG
77312 return PyLong_FromLongLong(llx);
77318 if (PyFloat_CheckExact(op1)) {
77319 const long b = intval;
77320 double a = PyFloat_AS_DOUBLE(op1);
77322 PyFPE_START_PROTECT(
"subtract",
return NULL)
77323 result = ((double)a) - (double)b;
77324 PyFPE_END_PROTECT(result)
77325 return PyFloat_FromDouble(result);
77327 return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
77332 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals) {
77333 #if CYTHON_COMPILING_IN_PYPY
77334 return PyObject_RichCompareBool(s1, s2, equals);
77337 return (equals == Py_EQ);
77338 }
else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
77339 const char *ps1, *ps2;
77340 Py_ssize_t length = PyBytes_GET_SIZE(s1);
77341 if (length != PyBytes_GET_SIZE(s2))
77342 return (equals == Py_NE);
77343 ps1 = PyBytes_AS_STRING(s1);
77344 ps2 = PyBytes_AS_STRING(s2);
77345 if (ps1[0] != ps2[0]) {
77346 return (equals == Py_NE);
77347 }
else if (length == 1) {
77348 return (equals == Py_EQ);
77351 #if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
77352 Py_hash_t hash1, hash2;
77353 hash1 = ((PyBytesObject*)s1)->ob_shash;
77354 hash2 = ((PyBytesObject*)s2)->ob_shash;
77355 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
77356 return (equals == Py_NE);
77359 result = memcmp(ps1, ps2, (
size_t)length);
77360 return (equals == Py_EQ) ? (result == 0) : (result != 0);
77362 }
else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
77363 return (equals == Py_NE);
77364 }
else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
77365 return (equals == Py_NE);
77368 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
77371 result = __Pyx_PyObject_IsTrue(py_result);
77372 Py_DECREF(py_result);
77379 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals) {
77380 #if CYTHON_COMPILING_IN_PYPY
77381 return PyObject_RichCompareBool(s1, s2, equals);
77383 #if PY_MAJOR_VERSION < 3
77384 PyObject* owned_ref = NULL;
77386 int s1_is_unicode, s2_is_unicode;
77390 s1_is_unicode = PyUnicode_CheckExact(s1);
77391 s2_is_unicode = PyUnicode_CheckExact(s2);
77392 #if PY_MAJOR_VERSION < 3
77393 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
77394 owned_ref = PyUnicode_FromObject(s2);
77395 if (unlikely(!owned_ref))
77399 }
else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
77400 owned_ref = PyUnicode_FromObject(s1);
77401 if (unlikely(!owned_ref))
77405 }
else if (((!s2_is_unicode) & (!s1_is_unicode))) {
77406 return __Pyx_PyBytes_Equals(s1, s2, equals);
77409 if (s1_is_unicode & s2_is_unicode) {
77412 void *data1, *data2;
77413 if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
77415 length = __Pyx_PyUnicode_GET_LENGTH(s1);
77416 if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
77419 #if CYTHON_USE_UNICODE_INTERNALS
77421 Py_hash_t hash1, hash2;
77422 #if CYTHON_PEP393_ENABLED
77423 hash1 = ((PyASCIIObject*)s1)->hash;
77424 hash2 = ((PyASCIIObject*)s2)->hash;
77426 hash1 = ((PyUnicodeObject*)s1)->hash;
77427 hash2 = ((PyUnicodeObject*)s2)->hash;
77429 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
77434 kind = __Pyx_PyUnicode_KIND(s1);
77435 if (kind != __Pyx_PyUnicode_KIND(s2)) {
77438 data1 = __Pyx_PyUnicode_DATA(s1);
77439 data2 = __Pyx_PyUnicode_DATA(s2);
77440 if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
77442 }
else if (length == 1) {
77445 int result = memcmp(data1, data2, (
size_t)(length * kind));
77446 #if PY_MAJOR_VERSION < 3
77447 Py_XDECREF(owned_ref);
77449 return (equals == Py_EQ) ? (result == 0) : (result != 0);
77451 }
else if ((s1 == Py_None) & s2_is_unicode) {
77453 }
else if ((s2 == Py_None) & s1_is_unicode) {
77457 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
77458 #if PY_MAJOR_VERSION < 3
77459 Py_XDECREF(owned_ref);
77463 result = __Pyx_PyObject_IsTrue(py_result);
77464 Py_DECREF(py_result);
77468 #if PY_MAJOR_VERSION < 3
77469 Py_XDECREF(owned_ref);
77471 return (equals == Py_EQ);
77473 #if PY_MAJOR_VERSION < 3
77474 Py_XDECREF(owned_ref);
77476 return (equals == Py_NE);
77481 #if PY_MAJOR_VERSION < 3
77482 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
77483 CYTHON_UNUSED PyObject *cause) {
77484 __Pyx_PyThreadState_declare
77486 if (!value || value == Py_None)
77490 if (!tb || tb == Py_None)
77494 if (!PyTraceBack_Check(tb)) {
77495 PyErr_SetString(PyExc_TypeError,
77496 "raise: arg 3 must be a traceback or None");
77500 if (PyType_Check(type)) {
77501 #if CYTHON_COMPILING_IN_PYPY
77503 Py_INCREF(Py_None);
77507 PyErr_NormalizeException(&type, &value, &tb);
77510 PyErr_SetString(PyExc_TypeError,
77511 "instance exception may not have a separate value");
77515 type = (PyObject*) Py_TYPE(type);
77517 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
77518 PyErr_SetString(PyExc_TypeError,
77519 "raise: exception class must be a subclass of BaseException");
77523 __Pyx_PyThreadState_assign
77524 __Pyx_ErrRestore(type, value, tb);
77533 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
77534 PyObject* owned_instance = NULL;
77535 if (tb == Py_None) {
77537 }
else if (tb && !PyTraceBack_Check(tb)) {
77538 PyErr_SetString(PyExc_TypeError,
77539 "raise: arg 3 must be a traceback or None");
77542 if (value == Py_None)
77544 if (PyExceptionInstance_Check(type)) {
77546 PyErr_SetString(PyExc_TypeError,
77547 "instance exception may not have a separate value");
77551 type = (PyObject*) Py_TYPE(value);
77552 }
else if (PyExceptionClass_Check(type)) {
77553 PyObject *instance_class = NULL;
77554 if (value && PyExceptionInstance_Check(value)) {
77555 instance_class = (PyObject*) Py_TYPE(value);
77556 if (instance_class != type) {
77557 int is_subclass = PyObject_IsSubclass(instance_class, type);
77558 if (!is_subclass) {
77559 instance_class = NULL;
77560 }
else if (unlikely(is_subclass == -1)) {
77563 type = instance_class;
77567 if (!instance_class) {
77570 args = PyTuple_New(0);
77571 else if (PyTuple_Check(value)) {
77575 args = PyTuple_Pack(1, value);
77578 owned_instance = PyObject_Call(type, args, NULL);
77580 if (!owned_instance)
77582 value = owned_instance;
77583 if (!PyExceptionInstance_Check(value)) {
77584 PyErr_Format(PyExc_TypeError,
77585 "calling %R should have returned an instance of "
77586 "BaseException, not %R",
77587 type, Py_TYPE(value));
77592 PyErr_SetString(PyExc_TypeError,
77593 "raise: exception class must be a subclass of BaseException");
77597 PyObject *fixed_cause;
77598 if (cause == Py_None) {
77599 fixed_cause = NULL;
77600 }
else if (PyExceptionClass_Check(cause)) {
77601 fixed_cause = PyObject_CallObject(cause, NULL);
77602 if (fixed_cause == NULL)
77604 }
else if (PyExceptionInstance_Check(cause)) {
77605 fixed_cause = cause;
77606 Py_INCREF(fixed_cause);
77608 PyErr_SetString(PyExc_TypeError,
77609 "exception causes must derive from "
77613 PyException_SetCause(value, fixed_cause);
77615 PyErr_SetObject(type, value);
77617 #if CYTHON_COMPILING_IN_PYPY
77618 PyObject *tmp_type, *tmp_value, *tmp_tb;
77619 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
77621 PyErr_Restore(tmp_type, tmp_value, tb);
77622 Py_XDECREF(tmp_tb);
77624 PyThreadState *tstate = __Pyx_PyThreadState_Current;
77625 PyObject* tmp_tb = tstate->curexc_traceback;
77626 if (tb != tmp_tb) {
77628 tstate->curexc_traceback = tb;
77629 Py_XDECREF(tmp_tb);
77634 Py_XDECREF(owned_instance);
77640 static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
77642 method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
77643 if (unlikely(!method))
77645 target->method = method;
77646 #if CYTHON_COMPILING_IN_CPYTHON
77647 #if PY_MAJOR_VERSION >= 3
77648 if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
77651 PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
77652 target->func = descr->d_method->ml_meth;
77653 target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
77660 static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject*
self) {
77661 PyObject *args, *result = NULL;
77662 if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0))
return NULL;
77663 #if CYTHON_ASSUME_SAFE_MACROS
77664 args = PyTuple_New(1);
77665 if (unlikely(!args))
goto bad;
77667 PyTuple_SET_ITEM(args, 0,
self);
77669 args = PyTuple_Pack(1,
self);
77670 if (unlikely(!args))
goto bad;
77672 result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
77679 static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
77680 if (PY_MAJOR_VERSION >= 3)
77681 return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_items, d);
77683 return PyDict_Items(d);
77687 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
77688 PyErr_Format(PyExc_ValueError,
77689 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T
"d)", expected);
77693 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
77694 PyErr_Format(PyExc_ValueError,
77695 "need more than %" CYTHON_FORMAT_SSIZE_T
"d value%.1s to unpack",
77696 index, (index == 1) ?
"" :
"s");
77700 static CYTHON_INLINE
int __Pyx_IterFinish(
void) {
77701 #if CYTHON_FAST_THREAD_STATE
77702 PyThreadState *tstate = __Pyx_PyThreadState_Current;
77703 PyObject* exc_type = tstate->curexc_type;
77704 if (unlikely(exc_type)) {
77705 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
77706 PyObject *exc_value, *exc_tb;
77707 exc_value = tstate->curexc_value;
77708 exc_tb = tstate->curexc_traceback;
77709 tstate->curexc_type = 0;
77710 tstate->curexc_value = 0;
77711 tstate->curexc_traceback = 0;
77712 Py_DECREF(exc_type);
77713 Py_XDECREF(exc_value);
77714 Py_XDECREF(exc_tb);
77722 if (unlikely(PyErr_Occurred())) {
77723 if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
77735 static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
77736 if (unlikely(retval)) {
77738 __Pyx_RaiseTooManyValuesError(expected);
77741 return __Pyx_IterFinish();
77747 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
77748 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
77750 value = PyDict_GetItemWithError(d, key);
77751 if (unlikely(!value)) {
77752 if (!PyErr_Occurred()) {
77753 if (unlikely(PyTuple_Check(key))) {
77754 PyObject* args = PyTuple_Pack(1, key);
77755 if (likely(args)) {
77756 PyErr_SetObject(PyExc_KeyError, args);
77760 PyErr_SetObject(PyExc_KeyError, key);
77771 #if CYTHON_USE_TYPE_SLOTS
77772 static CYTHON_INLINE
int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
77773 PyTypeObject* tp = Py_TYPE(obj);
77774 if (likely(tp->tp_setattro))
77775 return tp->tp_setattro(obj, attr_name, value);
77776 #if PY_MAJOR_VERSION < 3
77777 if (likely(tp->tp_setattr))
77778 return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
77780 return PyObject_SetAttr(obj, attr_name, value);
77785 #if !CYTHON_COMPILING_IN_PYPY
77786 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval,
int inplace,
int zerodivision_check) {
77788 (void)zerodivision_check;
77789 #if PY_MAJOR_VERSION < 3
77790 if (likely(PyInt_CheckExact(op1))) {
77791 const long b = intval;
77793 long a = PyInt_AS_LONG(op1);
77794 x = (long)((
unsigned long)a + b);
77795 if (likely((x^a) >= 0 || (x^b) >= 0))
77796 return PyInt_FromLong(x);
77797 return PyLong_Type.tp_as_number->nb_add(op1, op2);
77800 #if CYTHON_USE_PYLONG_INTERNALS
77801 if (likely(PyLong_CheckExact(op1))) {
77802 const long b = intval;
77804 #ifdef HAVE_LONG_LONG
77805 const PY_LONG_LONG llb = intval;
77806 PY_LONG_LONG lla, llx;
77808 const digit* digits = ((PyLongObject*)op1)->ob_digit;
77809 const Py_ssize_t size = Py_SIZE(op1);
77810 if (likely(__Pyx_sst_abs(size) <= 1)) {
77811 a = likely(size) ? digits[0] : 0;
77812 if (size == -1) a = -a;
77816 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77817 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77819 #ifdef HAVE_LONG_LONG
77820 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77821 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77825 CYTHON_FALLTHROUGH;
77827 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
77828 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77830 #ifdef HAVE_LONG_LONG
77831 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
77832 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77836 CYTHON_FALLTHROUGH;
77838 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77839 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77841 #ifdef HAVE_LONG_LONG
77842 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77843 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77847 CYTHON_FALLTHROUGH;
77849 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
77850 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77852 #ifdef HAVE_LONG_LONG
77853 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
77854 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77858 CYTHON_FALLTHROUGH;
77860 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77861 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77863 #ifdef HAVE_LONG_LONG
77864 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77865 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77869 CYTHON_FALLTHROUGH;
77871 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
77872 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
77874 #ifdef HAVE_LONG_LONG
77875 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
77876 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
77880 CYTHON_FALLTHROUGH;
77881 default:
return PyLong_Type.tp_as_number->nb_add(op1, op2);
77885 return PyLong_FromLong(x);
77886 #ifdef HAVE_LONG_LONG
77889 return PyLong_FromLongLong(llx);
77895 if (PyFloat_CheckExact(op1)) {
77896 const long b = intval;
77897 double a = PyFloat_AS_DOUBLE(op1);
77899 PyFPE_START_PROTECT(
"add",
return NULL)
77900 result = ((double)a) + (double)b;
77901 PyFPE_END_PROTECT(result)
77902 return PyFloat_FromDouble(result);
77904 return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
77909 static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable,
int is_set,
77910 Py_ssize_t* p_orig_length,
int* p_source_is_set) {
77911 #if CYTHON_COMPILING_IN_CPYTHON
77912 is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable));
77913 *p_source_is_set = is_set;
77914 if (likely(is_set)) {
77915 *p_orig_length = PySet_Size(iterable);
77916 Py_INCREF(iterable);
77921 *p_source_is_set = 0;
77923 *p_orig_length = 0;
77924 return PyObject_GetIter(iterable);
77926 static CYTHON_INLINE
int __Pyx_set_iter_next(
77927 PyObject* iter_obj, Py_ssize_t orig_length,
77928 Py_ssize_t* ppos, PyObject **value,
77929 int source_is_set) {
77930 if (!CYTHON_COMPILING_IN_CPYTHON || unlikely(!source_is_set)) {
77931 *value = PyIter_Next(iter_obj);
77932 if (unlikely(!*value)) {
77933 return __Pyx_IterFinish();
77939 #if CYTHON_COMPILING_IN_CPYTHON
77940 if (unlikely(PySet_GET_SIZE(iter_obj) != orig_length)) {
77942 PyExc_RuntimeError,
77943 "set changed size during iteration");
77948 int ret = _PySet_NextEntry(iter_obj, ppos, value, &hash);
77949 assert (ret != -1);
77960 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
77961 Py_ssize_t cstart, Py_ssize_t cstop,
77962 PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
77963 int has_cstart,
int has_cstop, CYTHON_UNUSED
int wraparound) {
77964 #if CYTHON_USE_TYPE_SLOTS
77965 PyMappingMethods* mp;
77966 #if PY_MAJOR_VERSION < 3
77967 PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
77968 if (likely(ms && ms->sq_slice)) {
77970 if (_py_start && (*_py_start != Py_None)) {
77971 cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
77972 if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred())
goto bad;
77977 if (_py_stop && (*_py_stop != Py_None)) {
77978 cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
77979 if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred())
goto bad;
77981 cstop = PY_SSIZE_T_MAX;
77983 if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
77984 Py_ssize_t l = ms->sq_length(obj);
77985 if (likely(l >= 0)) {
77988 if (cstop < 0) cstop = 0;
77992 if (cstart < 0) cstart = 0;
77995 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
78000 return ms->sq_slice(obj, cstart, cstop);
78003 mp = Py_TYPE(obj)->tp_as_mapping;
78004 if (likely(mp && mp->mp_subscript))
78008 PyObject *py_slice, *py_start, *py_stop;
78010 py_slice = *_py_slice;
78012 PyObject* owned_start = NULL;
78013 PyObject* owned_stop = NULL;
78015 py_start = *_py_start;
78018 owned_start = py_start = PyInt_FromSsize_t(cstart);
78019 if (unlikely(!py_start))
goto bad;
78021 py_start = Py_None;
78024 py_stop = *_py_stop;
78027 owned_stop = py_stop = PyInt_FromSsize_t(cstop);
78028 if (unlikely(!py_stop)) {
78029 Py_XDECREF(owned_start);
78035 py_slice = PySlice_New(py_start, py_stop, Py_None);
78036 Py_XDECREF(owned_start);
78037 Py_XDECREF(owned_stop);
78038 if (unlikely(!py_slice))
goto bad;
78040 #if CYTHON_USE_TYPE_SLOTS
78041 result = mp->mp_subscript(obj, py_slice);
78043 result = PyObject_GetItem(obj, py_slice);
78046 Py_DECREF(py_slice);
78050 PyErr_Format(PyExc_TypeError,
78051 "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
78057 #if CYTHON_USE_PYLONG_INTERNALS
78058 static PyObject *__Pyx_PyLong_AbsNeg(PyObject *
n) {
78059 if (likely(Py_SIZE(
n) == -1)) {
78060 return PyLong_FromLong(((PyLongObject*)
n)->ob_digit[0]);
78062 #if CYTHON_COMPILING_IN_CPYTHON
78064 PyObject *copy = _PyLong_Copy((PyLongObject*)
n);
78065 if (likely(copy)) {
78066 __Pyx_SET_SIZE(copy, -Py_SIZE(copy));
78071 return PyNumber_Negative(
n);
78077 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
78078 PyObject *empty_list = 0;
78079 PyObject *module = 0;
78080 PyObject *global_dict = 0;
78081 PyObject *empty_dict = 0;
78083 #if PY_MAJOR_VERSION < 3
78084 PyObject *py_import;
78085 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
78092 empty_list = PyList_New(0);
78097 global_dict = PyModule_GetDict(__pyx_m);
78100 empty_dict = PyDict_New();
78104 #if PY_MAJOR_VERSION >= 3
78106 if ((1) && (strchr(__Pyx_MODULE_NAME,
'.'))) {
78107 module = PyImport_ImportModuleLevelObject(
78108 name, global_dict, empty_dict, list, 1);
78110 if (!PyErr_ExceptionMatches(PyExc_ImportError))
78119 #if PY_MAJOR_VERSION < 3
78120 PyObject *py_level = PyInt_FromLong(level);
78123 module = PyObject_CallFunctionObjArgs(py_import,
78124 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
78125 Py_DECREF(py_level);
78127 module = PyImport_ImportModuleLevelObject(
78128 name, global_dict, empty_dict, list, level);
78133 #if PY_MAJOR_VERSION < 3
78134 Py_XDECREF(py_import);
78136 Py_XDECREF(empty_list);
78137 Py_XDECREF(empty_dict);
78142 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
78143 PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
78144 if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
78145 PyErr_Format(PyExc_ImportError,
78146 #
if PY_MAJOR_VERSION < 3
78147 "cannot import name %.230s", PyString_AS_STRING(name));
78149 "cannot import name %S", name);
78156 static CYTHON_INLINE
int __Pyx_HasAttr(PyObject *o, PyObject *
n) {
78158 if (unlikely(!__Pyx_PyBaseString_Check(
n))) {
78159 PyErr_SetString(PyExc_TypeError,
78160 "hasattr(): attribute name must be string");
78163 r = __Pyx_GetAttr(o,
n);
78164 if (unlikely(!
r)) {
78174 #if CYTHON_USE_EXC_INFO_STACK
78175 static _PyErr_StackItem *
78176 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
78178 _PyErr_StackItem *exc_info = tstate->exc_info;
78179 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
78180 exc_info->previous_item != NULL)
78182 exc_info = exc_info->previous_item;
78189 #if CYTHON_FAST_THREAD_STATE
78190 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
78191 #if CYTHON_USE_EXC_INFO_STACK
78192 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
78193 *type = exc_info->exc_type;
78194 *value = exc_info->exc_value;
78195 *tb = exc_info->exc_traceback;
78197 *type = tstate->exc_type;
78198 *value = tstate->exc_value;
78199 *tb = tstate->exc_traceback;
78202 Py_XINCREF(*value);
78205 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
78206 PyObject *tmp_type, *tmp_value, *tmp_tb;
78207 #if CYTHON_USE_EXC_INFO_STACK
78208 _PyErr_StackItem *exc_info = tstate->exc_info;
78209 tmp_type = exc_info->exc_type;
78210 tmp_value = exc_info->exc_value;
78211 tmp_tb = exc_info->exc_traceback;
78212 exc_info->exc_type = type;
78213 exc_info->exc_value = value;
78214 exc_info->exc_traceback = tb;
78216 tmp_type = tstate->exc_type;
78217 tmp_value = tstate->exc_value;
78218 tmp_tb = tstate->exc_traceback;
78219 tstate->exc_type = type;
78220 tstate->exc_value = value;
78221 tstate->exc_traceback = tb;
78223 Py_XDECREF(tmp_type);
78224 Py_XDECREF(tmp_value);
78225 Py_XDECREF(tmp_tb);
78230 #if CYTHON_FAST_THREAD_STATE
78231 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
78233 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
78236 PyObject *local_type, *local_value, *local_tb;
78237 #if CYTHON_FAST_THREAD_STATE
78238 PyObject *tmp_type, *tmp_value, *tmp_tb;
78239 local_type = tstate->curexc_type;
78240 local_value = tstate->curexc_value;
78241 local_tb = tstate->curexc_traceback;
78242 tstate->curexc_type = 0;
78243 tstate->curexc_value = 0;
78244 tstate->curexc_traceback = 0;
78246 PyErr_Fetch(&local_type, &local_value, &local_tb);
78248 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
78249 #if CYTHON_FAST_THREAD_STATE
78250 if (unlikely(tstate->curexc_type))
78252 if (unlikely(PyErr_Occurred()))
78255 #if PY_MAJOR_VERSION >= 3
78257 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
78261 Py_XINCREF(local_tb);
78262 Py_XINCREF(local_type);
78263 Py_XINCREF(local_value);
78264 *type = local_type;
78265 *value = local_value;
78267 #if CYTHON_FAST_THREAD_STATE
78268 #if CYTHON_USE_EXC_INFO_STACK
78270 _PyErr_StackItem *exc_info = tstate->exc_info;
78271 tmp_type = exc_info->exc_type;
78272 tmp_value = exc_info->exc_value;
78273 tmp_tb = exc_info->exc_traceback;
78274 exc_info->exc_type = local_type;
78275 exc_info->exc_value = local_value;
78276 exc_info->exc_traceback = local_tb;
78279 tmp_type = tstate->exc_type;
78280 tmp_value = tstate->exc_value;
78281 tmp_tb = tstate->exc_traceback;
78282 tstate->exc_type = local_type;
78283 tstate->exc_value = local_value;
78284 tstate->exc_traceback = local_tb;
78286 Py_XDECREF(tmp_type);
78287 Py_XDECREF(tmp_value);
78288 Py_XDECREF(tmp_tb);
78290 PyErr_SetExcInfo(local_type, local_value, local_tb);
78297 Py_XDECREF(local_type);
78298 Py_XDECREF(local_value);
78299 Py_XDECREF(local_tb);
78304 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
78306 if (unlikely(!type)) {
78307 PyErr_SetString(PyExc_SystemError,
"Missing type object");
78311 #if PY_MAJOR_VERSION == 2
78312 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
78316 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
78318 PyErr_Format(PyExc_TypeError,
78319 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
78320 name, type->tp_name, Py_TYPE(obj)->tp_name);
78325 static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) {
78326 Py_ssize_t
q = a / b;
78327 Py_ssize_t
r = a -
q*b;
78328 q -= ((
r != 0) & ((
r ^ b) < 0));
78333 static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
78334 const char* cstring, Py_ssize_t start, Py_ssize_t stop,
78335 const char* encoding,
const char* errors,
78336 PyObject* (*decode_func)(
const char *
s, Py_ssize_t size,
const char *errors)) {
78338 if (unlikely((start < 0) | (stop < 0))) {
78339 size_t slen = strlen(cstring);
78340 if (unlikely(slen > (
size_t) PY_SSIZE_T_MAX)) {
78341 PyErr_SetString(PyExc_OverflowError,
78342 "c-string too long to convert to Python");
78345 length = (Py_ssize_t) slen;
78354 if (unlikely(stop <= start))
78355 return __Pyx_NewRef(__pyx_empty_unicode);
78356 length = stop - start;
78359 return decode_func(cstring, length, errors);
78361 return PyUnicode_Decode(cstring, length, encoding, errors);
78366 static CYTHON_INLINE
void __Pyx_RaiseNoneNotIterableError(
void) {
78367 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not iterable");
78371 #if CYTHON_FAST_THREAD_STATE
78372 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
78373 PyObject *tmp_type, *tmp_value, *tmp_tb;
78374 #if CYTHON_USE_EXC_INFO_STACK
78375 _PyErr_StackItem *exc_info = tstate->exc_info;
78376 tmp_type = exc_info->exc_type;
78377 tmp_value = exc_info->exc_value;
78378 tmp_tb = exc_info->exc_traceback;
78379 exc_info->exc_type = *type;
78380 exc_info->exc_value = *value;
78381 exc_info->exc_traceback = *tb;
78383 tmp_type = tstate->exc_type;
78384 tmp_value = tstate->exc_value;
78385 tmp_tb = tstate->exc_traceback;
78386 tstate->exc_type = *type;
78387 tstate->exc_value = *value;
78388 tstate->exc_traceback = *tb;
78391 *value = tmp_value;
78395 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
78396 PyObject *tmp_type, *tmp_value, *tmp_tb;
78397 PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
78398 PyErr_SetExcInfo(*type, *value, *tb);
78400 *value = tmp_value;
78406 #if CYTHON_COMPILING_IN_CPYTHON
78407 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
78413 return b == &PyBaseObject_Type;
78415 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
78417 if (a == b)
return 1;
78421 n = PyTuple_GET_SIZE(mro);
78422 for (i = 0; i <
n; i++) {
78423 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
78428 return __Pyx_InBases(a, b);
78430 #if PY_MAJOR_VERSION == 2
78431 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
78432 PyObject *exception, *value, *tb;
78434 __Pyx_PyThreadState_declare
78435 __Pyx_PyThreadState_assign
78436 __Pyx_ErrFetch(&exception, &value, &tb);
78437 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
78438 if (unlikely(res == -1)) {
78439 PyErr_WriteUnraisable(err);
78443 res = PyObject_IsSubclass(err, exc_type2);
78444 if (unlikely(res == -1)) {
78445 PyErr_WriteUnraisable(err);
78449 __Pyx_ErrRestore(exception, value, tb);
78453 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
78454 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
78456 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
78461 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
78463 assert(PyExceptionClass_Check(exc_type));
78464 n = PyTuple_GET_SIZE(tuple);
78465 #if PY_MAJOR_VERSION >= 3
78466 for (i=0; i<
n; i++) {
78467 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
78470 for (i=0; i<
n; i++) {
78471 PyObject *t = PyTuple_GET_ITEM(tuple, i);
78472 #if PY_MAJOR_VERSION < 3
78473 if (likely(exc_type == t))
return 1;
78475 if (likely(PyExceptionClass_Check(t))) {
78476 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
78482 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
78483 if (likely(err == exc_type))
return 1;
78484 if (likely(PyExceptionClass_Check(err))) {
78485 if (likely(PyExceptionClass_Check(exc_type))) {
78486 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
78487 }
else if (likely(PyTuple_Check(exc_type))) {
78488 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
78492 return PyErr_GivenExceptionMatches(err, exc_type);
78494 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
78495 assert(PyExceptionClass_Check(exc_type1));
78496 assert(PyExceptionClass_Check(exc_type2));
78497 if (likely(err == exc_type1 || err == exc_type2))
return 1;
78498 if (likely(PyExceptionClass_Check(err))) {
78499 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
78501 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
78506 static CYTHON_INLINE
long __Pyx_div_long(
long a,
long b) {
78509 q -= ((
r != 0) & ((
r ^ b) < 0));
78514 #if !CYTHON_COMPILING_IN_CPYTHON
78515 static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) {
78516 return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL);
78521 static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc) {
78522 PyTypeObject* type = Py_TYPE(obj);
78523 while (type && type->tp_dealloc != current_tp_dealloc)
78524 type = type->tp_base;
78525 while (type && type->tp_dealloc == current_tp_dealloc)
78526 type = type->tp_base;
78528 type->tp_dealloc(obj);
78532 static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc
v,
void *a, traverseproc current_tp_traverse) {
78533 PyTypeObject* type = Py_TYPE(obj);
78534 while (type && type->tp_traverse != current_tp_traverse)
78535 type = type->tp_base;
78536 while (type && type->tp_traverse == current_tp_traverse)
78537 type = type->tp_base;
78538 if (type && type->tp_traverse)
78539 return type->tp_traverse(obj,
v, a);
78544 static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
78545 PyTypeObject* type = Py_TYPE(obj);
78546 while (type && type->tp_clear != current_tp_clear)
78547 type = type->tp_base;
78548 while (type && type->tp_clear == current_tp_clear)
78549 type = type->tp_base;
78550 if (type && type->tp_clear)
78551 type->tp_clear(obj);
78555 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
78556 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
78557 PyErr_Format(PyExc_AttributeError,
78558 #
if PY_MAJOR_VERSION >= 3
78559 "'%.50s' object has no attribute '%U'",
78560 tp->tp_name, attr_name);
78562 "'%.50s' object has no attribute '%.400s'",
78563 tp->tp_name, PyString_AS_STRING(attr_name));
78567 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
78569 PyTypeObject *tp = Py_TYPE(obj);
78570 if (unlikely(!PyString_Check(attr_name))) {
78571 return PyObject_GenericGetAttr(obj, attr_name);
78573 assert(!tp->tp_dictoffset);
78574 descr = _PyType_Lookup(tp, attr_name);
78575 if (unlikely(!descr)) {
78576 return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
78579 #if PY_MAJOR_VERSION < 3
78580 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
78583 descrgetfunc
f = Py_TYPE(descr)->tp_descr_get;
78585 PyObject *res =
f(descr, obj, (PyObject *)tp);
78595 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
78596 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
78597 if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
78598 return PyObject_GenericGetAttr(obj, attr_name);
78600 return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
78605 #ifndef __PYX_HAVE_RT_ImportType
78606 #define __PYX_HAVE_RT_ImportType
78607 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
78608 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
78610 PyObject *result = 0;
78612 Py_ssize_t basicsize;
78613 #ifdef Py_LIMITED_API
78614 PyObject *py_basicsize;
78616 result = PyObject_GetAttrString(module, class_name);
78619 if (!PyType_Check(result)) {
78620 PyErr_Format(PyExc_TypeError,
78621 "%.200s.%.200s is not a type object",
78622 module_name, class_name);
78625 #ifndef Py_LIMITED_API
78626 basicsize = ((PyTypeObject *)result)->tp_basicsize;
78628 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
78631 basicsize = PyLong_AsSsize_t(py_basicsize);
78632 Py_DECREF(py_basicsize);
78634 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
78637 if ((
size_t)basicsize < size) {
78638 PyErr_Format(PyExc_ValueError,
78639 "%.200s.%.200s size changed, may indicate binary incompatibility. "
78640 "Expected %zd from C header, got %zd from PyObject",
78641 module_name, class_name, size, basicsize);
78644 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
78645 PyErr_Format(PyExc_ValueError,
78646 "%.200s.%.200s size changed, may indicate binary incompatibility. "
78647 "Expected %zd from C header, got %zd from PyObject",
78648 module_name, class_name, size, basicsize);
78651 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
78652 PyOS_snprintf(warning,
sizeof(warning),
78653 "%s.%s size changed, may indicate binary incompatibility. "
78654 "Expected %zd from C header, got %zd from PyObject",
78655 module_name, class_name, size, basicsize);
78656 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
78658 return (PyTypeObject *)result;
78660 Py_XDECREF(result);
78666 static int __Pyx_SetVtable(PyObject *dict,
void *vtable) {
78667 #if PY_VERSION_HEX >= 0x02070000
78668 PyObject *ob = PyCapsule_New(vtable, 0, 0);
78670 PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
78674 if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
78684 static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(
void) {
78685 __Pyx_PyThreadState_declare
78686 __Pyx_PyThreadState_assign
78687 if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
78688 __Pyx_PyErr_Clear();
78690 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
78692 #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
78693 PyTypeObject* tp = Py_TYPE(obj);
78694 if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
78695 return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
78698 result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
78699 if (unlikely(!result)) {
78700 __Pyx_PyObject_GetAttrStr_ClearAttributeError();
78706 static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
78708 PyObject *name_attr;
78709 name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name_2);
78710 if (likely(name_attr)) {
78711 ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
78715 if (unlikely(ret < 0)) {
78719 Py_XDECREF(name_attr);
78722 static int __Pyx_setup_reduce(PyObject* type_obj) {
78724 PyObject *object_reduce = NULL;
78725 PyObject *object_getstate = NULL;
78726 PyObject *object_reduce_ex = NULL;
78727 PyObject *reduce = NULL;
78728 PyObject *reduce_ex = NULL;
78729 PyObject *reduce_cython = NULL;
78730 PyObject *setstate = NULL;
78731 PyObject *setstate_cython = NULL;
78732 PyObject *getstate = NULL;
78733 #if CYTHON_USE_PYTYPE_LOOKUP
78734 getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate);
78736 getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate);
78737 if (!getstate && PyErr_Occurred()) {
78742 #if CYTHON_USE_PYTYPE_LOOKUP
78743 object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate);
78745 object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate);
78746 if (!object_getstate && PyErr_Occurred()) {
78750 if (object_getstate != getstate) {
78754 #if CYTHON_USE_PYTYPE_LOOKUP
78755 object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto __PYX_BAD;
78757 object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto __PYX_BAD;
78759 reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex);
if (unlikely(!reduce_ex))
goto __PYX_BAD;
78760 if (reduce_ex == object_reduce_ex) {
78761 #if CYTHON_USE_PYTYPE_LOOKUP
78762 object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto __PYX_BAD;
78764 object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto __PYX_BAD;
78766 reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce);
if (unlikely(!reduce))
goto __PYX_BAD;
78767 if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
78768 reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
78769 if (likely(reduce_cython)) {
78770 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
78771 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
78772 }
else if (reduce == object_reduce || PyErr_Occurred()) {
78775 setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
78776 if (!setstate) PyErr_Clear();
78777 if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
78778 setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
78779 if (likely(setstate_cython)) {
78780 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
78781 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython);
if (unlikely(ret < 0))
goto __PYX_BAD;
78782 }
else if (!setstate || PyErr_Occurred()) {
78786 PyType_Modified((PyTypeObject*)type_obj);
78791 if (!PyErr_Occurred())
78792 PyErr_Format(PyExc_RuntimeError,
"Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
78795 #if !CYTHON_USE_PYTYPE_LOOKUP
78796 Py_XDECREF(object_reduce);
78797 Py_XDECREF(object_reduce_ex);
78798 Py_XDECREF(object_getstate);
78799 Py_XDECREF(getstate);
78801 Py_XDECREF(reduce);
78802 Py_XDECREF(reduce_ex);
78803 Py_XDECREF(reduce_cython);
78804 Py_XDECREF(setstate);
78805 Py_XDECREF(setstate_cython);
78810 static void* __Pyx_GetVtable(PyObject *dict) {
78812 PyObject *ob = PyObject_GetItem(dict, __pyx_n_s_pyx_vtable);
78815 #if PY_VERSION_HEX >= 0x02070000
78816 ptr = PyCapsule_GetPointer(ob, 0);
78818 ptr = PyCObject_AsVoidPtr(ob);
78820 if (!ptr && !PyErr_Occurred())
78821 PyErr_SetString(PyExc_RuntimeError,
"invalid vtable found for imported type");
78830 static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
78831 Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
78832 for (i=0; i < nbases; i++) {
78833 PyTypeObject *tmptype;
78834 PyObject *tmp = PyTuple_GET_ITEM(bases, i);
78835 tmptype = Py_TYPE(tmp);
78836 #if PY_MAJOR_VERSION < 3
78837 if (tmptype == &PyClass_Type)
78841 metaclass = tmptype;
78844 if (PyType_IsSubtype(metaclass, tmptype))
78846 if (PyType_IsSubtype(tmptype, metaclass)) {
78847 metaclass = tmptype;
78850 PyErr_SetString(PyExc_TypeError,
78851 "metaclass conflict: "
78852 "the metaclass of a derived class "
78853 "must be a (non-strict) subclass "
78854 "of the metaclasses of all its bases");
78858 #if PY_MAJOR_VERSION < 3
78859 metaclass = &PyClass_Type;
78861 metaclass = &PyType_Type;
78864 Py_INCREF((PyObject*) metaclass);
78865 return (PyObject*) metaclass;
78869 static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
78870 PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
78873 PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare);
78875 PyObject *pargs = PyTuple_Pack(2, name, bases);
78876 if (unlikely(!pargs)) {
78880 ns = PyObject_Call(prep, pargs, mkw);
78884 if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError)))
78894 if (unlikely(PyObject_SetItem(
ns, __pyx_n_s_module, modname) < 0))
goto bad;
78895 if (unlikely(PyObject_SetItem(
ns, __pyx_n_s_qualname, qualname) < 0))
goto bad;
78896 if (unlikely(doc && PyObject_SetItem(
ns, __pyx_n_s_doc, doc) < 0))
goto bad;
78902 static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
78903 PyObject *dict, PyObject *mkw,
78904 int calculate_metaclass,
int allow_py2_metaclass) {
78905 PyObject *result, *margs;
78906 PyObject *owned_metaclass = NULL;
78907 if (allow_py2_metaclass) {
78908 owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
78909 if (owned_metaclass) {
78910 metaclass = owned_metaclass;
78911 }
else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
78917 if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
78918 metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
78919 Py_XDECREF(owned_metaclass);
78920 if (unlikely(!metaclass))
78922 owned_metaclass = metaclass;
78924 margs = PyTuple_Pack(3, name, bases, dict);
78925 if (unlikely(!margs)) {
78928 result = PyObject_Call(metaclass, margs, mkw);
78931 Py_XDECREF(owned_metaclass);
78936 #ifndef CYTHON_CLINE_IN_TRACEBACK
78937 static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate,
int c_line) {
78938 PyObject *use_cline;
78939 PyObject *ptype, *pvalue, *ptraceback;
78940 #if CYTHON_COMPILING_IN_CPYTHON
78941 PyObject **cython_runtime_dict;
78943 if (unlikely(!__pyx_cython_runtime)) {
78946 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
78947 #if CYTHON_COMPILING_IN_CPYTHON
78948 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
78949 if (likely(cython_runtime_dict)) {
78950 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
78951 use_cline, *cython_runtime_dict,
78952 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
78956 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
78957 if (use_cline_obj) {
78958 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
78959 Py_DECREF(use_cline_obj);
78967 (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
78969 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
78972 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
78978 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
78979 int start = 0, mid = 0, end = count - 1;
78980 if (end >= 0 && code_line > entries[end].code_line) {
78983 while (start < end) {
78984 mid = start + (end - start) / 2;
78985 if (code_line < entries[mid].code_line) {
78987 }
else if (code_line > entries[mid].code_line) {
78993 if (code_line <= entries[mid].code_line) {
78999 static PyCodeObject *__pyx_find_code_object(
int code_line) {
79000 PyCodeObject* code_object;
79002 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
79005 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
79006 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
79009 code_object = __pyx_code_cache.entries[
pos].code_object;
79010 Py_INCREF(code_object);
79011 return code_object;
79013 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
79015 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
79016 if (unlikely(!code_line)) {
79019 if (unlikely(!entries)) {
79020 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
79021 if (likely(entries)) {
79022 __pyx_code_cache.entries = entries;
79023 __pyx_code_cache.max_count = 64;
79024 __pyx_code_cache.count = 1;
79025 entries[0].code_line = code_line;
79026 entries[0].code_object = code_object;
79027 Py_INCREF(code_object);
79031 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
79032 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
79033 PyCodeObject* tmp = entries[
pos].code_object;
79034 entries[
pos].code_object = code_object;
79038 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
79039 int new_max = __pyx_code_cache.max_count + 64;
79040 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
79041 __pyx_code_cache.entries, ((
size_t)new_max) *
sizeof(__Pyx_CodeObjectCacheEntry));
79042 if (unlikely(!entries)) {
79045 __pyx_code_cache.entries = entries;
79046 __pyx_code_cache.max_count = new_max;
79048 for (i=__pyx_code_cache.count; i>
pos; i--) {
79049 entries[i] = entries[i-1];
79051 entries[
pos].code_line = code_line;
79052 entries[
pos].code_object = code_object;
79053 __pyx_code_cache.count++;
79054 Py_INCREF(code_object);
79058 #include "compile.h"
79059 #include "frameobject.h"
79060 #include "traceback.h"
79061 #if PY_VERSION_HEX >= 0x030b00a6
79062 #ifndef Py_BUILD_CORE
79063 #define Py_BUILD_CORE 1
79065 #include "internal/pycore_frame.h"
79067 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
79068 const char *funcname,
int c_line,
79069 int py_line,
const char *filename) {
79070 PyCodeObject *py_code = NULL;
79071 PyObject *py_funcname = NULL;
79072 #if PY_MAJOR_VERSION < 3
79073 PyObject *py_srcfile = NULL;
79074 py_srcfile = PyString_FromString(filename);
79075 if (!py_srcfile)
goto bad;
79078 #if PY_MAJOR_VERSION < 3
79079 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
79080 if (!py_funcname)
goto bad;
79082 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
79083 if (!py_funcname)
goto bad;
79084 funcname = PyUnicode_AsUTF8(py_funcname);
79085 if (!funcname)
goto bad;
79089 #if PY_MAJOR_VERSION < 3
79090 py_funcname = PyString_FromString(funcname);
79091 if (!py_funcname)
goto bad;
79094 #if PY_MAJOR_VERSION < 3
79095 py_code = __Pyx_PyCode_New(
79112 Py_DECREF(py_srcfile);
79114 py_code = PyCode_NewEmpty(filename, funcname, py_line);
79116 Py_XDECREF(py_funcname);
79119 Py_XDECREF(py_funcname);
79120 #if PY_MAJOR_VERSION < 3
79121 Py_XDECREF(py_srcfile);
79125 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
79126 int py_line,
const char *filename) {
79127 PyCodeObject *py_code = 0;
79128 PyFrameObject *py_frame = 0;
79129 PyThreadState *tstate = __Pyx_PyThreadState_Current;
79130 PyObject *ptype, *pvalue, *ptraceback;
79132 c_line = __Pyx_CLineForTraceback(tstate, c_line);
79134 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
79136 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
79137 py_code = __Pyx_CreateCodeObjectForTraceback(
79138 funcname, c_line, py_line, filename);
79143 Py_XDECREF(pvalue);
79144 Py_XDECREF(ptraceback);
79147 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
79148 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
79150 py_frame = PyFrame_New(
79156 if (!py_frame)
goto bad;
79157 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
79158 PyTraceBack_Here(py_frame);
79160 Py_XDECREF(py_code);
79161 Py_XDECREF(py_frame);
79164 #if PY_MAJOR_VERSION < 3
79165 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags) {
79166 if (PyObject_CheckBuffer(obj))
return PyObject_GetBuffer(obj, view, flags);
79167 if (__Pyx_TypeCheck(obj, __pyx_array_type))
return __pyx_array_getbuffer(obj, view, flags);
79168 if (__Pyx_TypeCheck(obj, __pyx_memoryview_type))
return __pyx_memoryview_getbuffer(obj, view, flags);
79169 PyErr_Format(PyExc_TypeError,
"'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
79172 static void __Pyx_ReleaseBuffer(Py_buffer *view) {
79173 PyObject *obj = view->obj;
79175 if (PyObject_CheckBuffer(obj)) {
79176 PyBuffer_Release(view);
79188 __pyx_memviewslice_is_contig(
const __Pyx_memviewslice mvs,
char order,
int ndim)
79190 int i, index, step, start;
79191 Py_ssize_t itemsize = mvs.memview->view.itemsize;
79192 if (order ==
'F') {
79199 for (i = 0; i < ndim; i++) {
79200 index = start + step * i;
79201 if (mvs.suboffsets[index] >= 0 || mvs.strides[index] != itemsize)
79203 itemsize *= mvs.shape[index];
79210 __pyx_get_array_memory_extents(__Pyx_memviewslice *slice,
79211 void **out_start,
void **out_end,
79212 int ndim,
size_t itemsize)
79216 start = end = slice->data;
79217 for (i = 0; i < ndim; i++) {
79218 Py_ssize_t stride = slice->strides[i];
79219 Py_ssize_t extent = slice->shape[i];
79221 *out_start = *out_end = start;
79225 end += stride * (extent - 1);
79227 start += stride * (extent - 1);
79230 *out_start = start;
79231 *out_end = end + itemsize;
79234 __pyx_slices_overlap(__Pyx_memviewslice *slice1,
79235 __Pyx_memviewslice *slice2,
79236 int ndim,
size_t itemsize)
79238 void *start1, *end1, *start2, *end2;
79239 __pyx_get_array_memory_extents(slice1, &start1, &end1, ndim, itemsize);
79240 __pyx_get_array_memory_extents(slice2, &start2, &end2, ndim, itemsize);
79241 return (start1 < end2) && (start2 < end1);
79245 static CYTHON_INLINE PyObject *
79246 __pyx_capsule_create(
void *p, CYTHON_UNUSED
const char *sig)
79249 #if PY_VERSION_HEX >= 0x02070000
79250 cobj = PyCapsule_New(p, sig, NULL);
79252 cobj = PyCObject_FromVoidPtr(p, NULL);
79258 static CYTHON_INLINE PyObject *__pyx_memview_get_double(
const char *itemp) {
79259 return (PyObject *) PyFloat_FromDouble(*(
double *) itemp);
79261 static CYTHON_INLINE
int __pyx_memview_set_double(
const char *itemp, PyObject *obj) {
79262 double value = __pyx_PyFloat_AsDouble(obj);
79263 if ((value == (
double)-1) && PyErr_Occurred())
79265 *(
double *) itemp = value;
79270 static CYTHON_INLINE
int __Pyx_Is_Little_Endian(
void)
79276 S.u32 = 0x01020304;
79277 return S.u8[0] == 4;
79281 static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
79282 __Pyx_BufFmt_StackElem* stack,
79283 __Pyx_TypeInfo* type) {
79284 stack[0].field = &ctx->root;
79285 stack[0].parent_offset = 0;
79286 ctx->root.type = type;
79287 ctx->root.name =
"buffer dtype";
79288 ctx->root.offset = 0;
79290 ctx->head->field = &ctx->root;
79291 ctx->fmt_offset = 0;
79292 ctx->head->parent_offset = 0;
79293 ctx->new_packmode =
'@';
79294 ctx->enc_packmode =
'@';
79295 ctx->new_count = 1;
79296 ctx->enc_count = 0;
79298 ctx->is_complex = 0;
79299 ctx->is_valid_array = 0;
79300 ctx->struct_alignment = 0;
79301 while (type->typegroup ==
'S') {
79303 ctx->head->field = type->fields;
79304 ctx->head->parent_offset = 0;
79305 type = type->fields->type;
79308 static int __Pyx_BufFmt_ParseNumber(
const char** ts) {
79310 const char* t = *ts;
79311 if (*t < '0' || *t >
'9') {
79314 count = *t++ -
'0';
79315 while (*t >=
'0' && *t <=
'9') {
79317 count += *t++ -
'0';
79323 static int __Pyx_BufFmt_ExpectNumber(
const char **ts) {
79324 int number = __Pyx_BufFmt_ParseNumber(ts);
79326 PyErr_Format(PyExc_ValueError,\
79327 "Does not understand character buffer dtype format string ('%c')", **ts);
79330 static void __Pyx_BufFmt_RaiseUnexpectedChar(
char ch) {
79331 PyErr_Format(PyExc_ValueError,
79332 "Unexpected format string character: '%c'", ch);
79334 static const char* __Pyx_BufFmt_DescribeTypeChar(
char ch,
int is_complex) {
79336 case '?':
return "'bool'";
79337 case 'c':
return "'char'";
79338 case 'b':
return "'signed char'";
79339 case 'B':
return "'unsigned char'";
79340 case 'h':
return "'short'";
79341 case 'H':
return "'unsigned short'";
79342 case 'i':
return "'int'";
79343 case 'I':
return "'unsigned int'";
79344 case 'l':
return "'long'";
79345 case 'L':
return "'unsigned long'";
79346 case 'q':
return "'long long'";
79347 case 'Q':
return "'unsigned long long'";
79348 case 'f':
return (is_complex ?
"'complex float'" :
"'float'");
79349 case 'd':
return (is_complex ?
"'complex double'" :
"'double'");
79350 case 'g':
return (is_complex ?
"'complex long double'" :
"'long double'");
79351 case 'T':
return "a struct";
79352 case 'O':
return "Python object";
79353 case 'P':
return "a pointer";
79354 case 's':
case 'p':
return "a string";
79355 case 0:
return "end";
79356 default:
return "unparseable format string";
79359 static size_t __Pyx_BufFmt_TypeCharToStandardSize(
char ch,
int is_complex) {
79361 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
79362 case 'h':
case 'H':
return 2;
79363 case 'i':
case 'I':
case 'l':
case 'L':
return 4;
79364 case 'q':
case 'Q':
return 8;
79365 case 'f':
return (is_complex ? 8 : 4);
79366 case 'd':
return (is_complex ? 16 : 8);
79368 PyErr_SetString(PyExc_ValueError,
"Python does not define a standard format string size for long double ('g')..");
79371 case 'O':
case 'P':
return sizeof(
void*);
79373 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
79377 static size_t __Pyx_BufFmt_TypeCharToNativeSize(
char ch,
int is_complex) {
79379 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
79380 case 'h':
case 'H':
return sizeof(short);
79381 case 'i':
case 'I':
return sizeof(int);
79382 case 'l':
case 'L':
return sizeof(long);
79383 #ifdef HAVE_LONG_LONG
79384 case 'q':
case 'Q':
return sizeof(PY_LONG_LONG);
79386 case 'f':
return sizeof(float) * (is_complex ? 2 : 1);
79387 case 'd':
return sizeof(double) * (is_complex ? 2 : 1);
79388 case 'g':
return sizeof(
long double) * (is_complex ? 2 : 1);
79389 case 'O':
case 'P':
return sizeof(
void*);
79391 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
79396 typedef struct {
char c;
short x; } __Pyx_st_short;
79397 typedef struct {
char c;
int x; } __Pyx_st_int;
79398 typedef struct {
char c;
long x; } __Pyx_st_long;
79399 typedef struct {
char c;
float x; } __Pyx_st_float;
79400 typedef struct {
char c;
double x; } __Pyx_st_double;
79401 typedef struct {
char c;
long double x; } __Pyx_st_longdouble;
79402 typedef struct {
char c;
void *x; } __Pyx_st_void_p;
79403 #ifdef HAVE_LONG_LONG
79404 typedef struct {
char c; PY_LONG_LONG x; } __Pyx_st_longlong;
79406 static size_t __Pyx_BufFmt_TypeCharToAlignment(
char ch, CYTHON_UNUSED
int is_complex) {
79408 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
79409 case 'h':
case 'H':
return sizeof(__Pyx_st_short) -
sizeof(
short);
79410 case 'i':
case 'I':
return sizeof(__Pyx_st_int) -
sizeof(
int);
79411 case 'l':
case 'L':
return sizeof(__Pyx_st_long) -
sizeof(
long);
79412 #ifdef HAVE_LONG_LONG
79413 case 'q':
case 'Q':
return sizeof(__Pyx_st_longlong) -
sizeof(PY_LONG_LONG);
79415 case 'f':
return sizeof(__Pyx_st_float) -
sizeof(
float);
79416 case 'd':
return sizeof(__Pyx_st_double) -
sizeof(
double);
79417 case 'g':
return sizeof(__Pyx_st_longdouble) -
sizeof(
long double);
79418 case 'P':
case 'O':
return sizeof(__Pyx_st_void_p) -
sizeof(
void*);
79420 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
79428 typedef struct {
short x;
char c; } __Pyx_pad_short;
79429 typedef struct {
int x;
char c; } __Pyx_pad_int;
79430 typedef struct {
long x;
char c; } __Pyx_pad_long;
79431 typedef struct {
float x;
char c; } __Pyx_pad_float;
79432 typedef struct {
double x;
char c; } __Pyx_pad_double;
79433 typedef struct {
long double x;
char c; } __Pyx_pad_longdouble;
79434 typedef struct {
void *x;
char c; } __Pyx_pad_void_p;
79435 #ifdef HAVE_LONG_LONG
79436 typedef struct { PY_LONG_LONG x;
char c; } __Pyx_pad_longlong;
79438 static size_t __Pyx_BufFmt_TypeCharToPadding(
char ch, CYTHON_UNUSED
int is_complex) {
79440 case '?':
case 'c':
case 'b':
case 'B':
case 's':
case 'p':
return 1;
79441 case 'h':
case 'H':
return sizeof(__Pyx_pad_short) -
sizeof(
short);
79442 case 'i':
case 'I':
return sizeof(__Pyx_pad_int) -
sizeof(
int);
79443 case 'l':
case 'L':
return sizeof(__Pyx_pad_long) -
sizeof(
long);
79444 #ifdef HAVE_LONG_LONG
79445 case 'q':
case 'Q':
return sizeof(__Pyx_pad_longlong) -
sizeof(PY_LONG_LONG);
79447 case 'f':
return sizeof(__Pyx_pad_float) -
sizeof(
float);
79448 case 'd':
return sizeof(__Pyx_pad_double) -
sizeof(
double);
79449 case 'g':
return sizeof(__Pyx_pad_longdouble) -
sizeof(
long double);
79450 case 'P':
case 'O':
return sizeof(__Pyx_pad_void_p) -
sizeof(
void*);
79452 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
79456 static char __Pyx_BufFmt_TypeCharToGroup(
char ch,
int is_complex) {
79460 case 'b':
case 'h':
case 'i':
79461 case 'l':
case 'q':
case 's':
case 'p':
79463 case '?':
case 'B':
case 'H':
case 'I':
case 'L':
case 'Q':
79465 case 'f':
case 'd':
case 'g':
79466 return (is_complex ?
'C' :
'R');
79472 __Pyx_BufFmt_RaiseUnexpectedChar(ch);
79477 static void __Pyx_BufFmt_RaiseExpected(__Pyx_BufFmt_Context* ctx) {
79478 if (ctx->head == NULL || ctx->head->field == &ctx->root) {
79479 const char* expected;
79481 if (ctx->head == NULL) {
79485 expected = ctx->head->field->type->name;
79488 PyErr_Format(PyExc_ValueError,
79489 "Buffer dtype mismatch, expected %s%s%s but got %s",
79490 quote, expected, quote,
79491 __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex));
79493 __Pyx_StructField* field = ctx->head->field;
79494 __Pyx_StructField* parent = (ctx->head - 1)->field;
79495 PyErr_Format(PyExc_ValueError,
79496 "Buffer dtype mismatch, expected '%s' but got %s in '%s.%s'",
79497 field->type->name, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex),
79498 parent->type->name, field->name);
79501 static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
79503 size_t size, offset, arraysize = 1;
79504 if (ctx->enc_type == 0)
return 0;
79505 if (ctx->head->field->type->arraysize[0]) {
79507 if (ctx->enc_type ==
's' || ctx->enc_type ==
'p') {
79508 ctx->is_valid_array = ctx->head->field->type->ndim == 1;
79510 if (ctx->enc_count != ctx->head->field->type->arraysize[0]) {
79511 PyErr_Format(PyExc_ValueError,
79512 "Expected a dimension of size %zu, got %zu",
79513 ctx->head->field->type->arraysize[0], ctx->enc_count);
79517 if (!ctx->is_valid_array) {
79518 PyErr_Format(PyExc_ValueError,
"Expected %d dimensions, got %d",
79519 ctx->head->field->type->ndim, ndim);
79522 for (i = 0; i < ctx->head->field->type->ndim; i++) {
79523 arraysize *= ctx->head->field->type->arraysize[i];
79525 ctx->is_valid_array = 0;
79526 ctx->enc_count = 1;
79528 group = __Pyx_BufFmt_TypeCharToGroup(ctx->enc_type, ctx->is_complex);
79530 __Pyx_StructField* field = ctx->head->field;
79531 __Pyx_TypeInfo* type = field->type;
79532 if (ctx->enc_packmode ==
'@' || ctx->enc_packmode ==
'^') {
79533 size = __Pyx_BufFmt_TypeCharToNativeSize(ctx->enc_type, ctx->is_complex);
79535 size = __Pyx_BufFmt_TypeCharToStandardSize(ctx->enc_type, ctx->is_complex);
79537 if (ctx->enc_packmode ==
'@') {
79538 size_t align_at = __Pyx_BufFmt_TypeCharToAlignment(ctx->enc_type, ctx->is_complex);
79539 size_t align_mod_offset;
79540 if (align_at == 0)
return -1;
79541 align_mod_offset = ctx->fmt_offset % align_at;
79542 if (align_mod_offset > 0) ctx->fmt_offset += align_at - align_mod_offset;
79543 if (ctx->struct_alignment == 0)
79544 ctx->struct_alignment = __Pyx_BufFmt_TypeCharToPadding(ctx->enc_type,
79547 if (type->size != size || type->typegroup != group) {
79548 if (type->typegroup ==
'C' && type->fields != NULL) {
79549 size_t parent_offset = ctx->head->parent_offset + field->offset;
79551 ctx->head->field = type->fields;
79552 ctx->head->parent_offset = parent_offset;
79555 if ((type->typegroup ==
'H' || group ==
'H') && type->size == size) {
79557 __Pyx_BufFmt_RaiseExpected(ctx);
79561 offset = ctx->head->parent_offset + field->offset;
79562 if (ctx->fmt_offset != offset) {
79563 PyErr_Format(PyExc_ValueError,
79564 "Buffer dtype mismatch; next field is at offset %" CYTHON_FORMAT_SSIZE_T
"d but %" CYTHON_FORMAT_SSIZE_T
"d expected",
79565 (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset);
79568 ctx->fmt_offset += size;
79570 ctx->fmt_offset += (arraysize - 1) * size;
79573 if (field == &ctx->root) {
79575 if (ctx->enc_count != 0) {
79576 __Pyx_BufFmt_RaiseExpected(ctx);
79581 ctx->head->field = ++field;
79582 if (field->type == NULL) {
79584 field = ctx->head->field;
79586 }
else if (field->type->typegroup ==
'S') {
79587 size_t parent_offset = ctx->head->parent_offset + field->offset;
79588 if (field->type->fields->type == NULL)
continue;
79589 field = field->type->fields;
79591 ctx->head->field = field;
79592 ctx->head->parent_offset = parent_offset;
79598 }
while (ctx->enc_count);
79600 ctx->is_complex = 0;
79604 __pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx,
const char** tsp)
79606 const char *ts = *tsp;
79607 int i = 0,
number, ndim;
79609 if (ctx->new_count != 1) {
79610 PyErr_SetString(PyExc_ValueError,
79611 "Cannot handle repeated arrays in format string");
79614 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79615 ndim = ctx->head->field->type->ndim;
79616 while (*ts && *ts !=
')') {
79618 case ' ':
case '\f':
case '\r':
case '\n':
case '\t':
case '\v':
continue;
79621 number = __Pyx_BufFmt_ExpectNumber(&ts);
79622 if (
number == -1)
return NULL;
79623 if (i < ndim && (
size_t)
number != ctx->head->field->type->arraysize[i])
79624 return PyErr_Format(PyExc_ValueError,
79625 "Expected a dimension of size %zu, got %d",
79626 ctx->head->field->type->arraysize[i],
number);
79627 if (*ts !=
',' && *ts !=
')')
79628 return PyErr_Format(PyExc_ValueError,
79629 "Expected a comma in format string, got '%c'", *ts);
79630 if (*ts ==
',') ts++;
79634 return PyErr_Format(PyExc_ValueError,
"Expected %d dimension(s), got %d",
79635 ctx->head->field->type->ndim, i);
79637 PyErr_SetString(PyExc_ValueError,
79638 "Unexpected end of format string, expected ')'");
79641 ctx->is_valid_array = 1;
79642 ctx->new_count = 1;
79646 static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx,
const char* ts) {
79651 if (ctx->enc_type != 0 && ctx->head == NULL) {
79652 __Pyx_BufFmt_RaiseExpected(ctx);
79655 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79656 if (ctx->head != NULL) {
79657 __Pyx_BufFmt_RaiseExpected(ctx);
79667 if (!__Pyx_Is_Little_Endian()) {
79668 PyErr_SetString(PyExc_ValueError,
"Little-endian buffer not supported on big-endian compiler");
79671 ctx->new_packmode =
'=';
79676 if (__Pyx_Is_Little_Endian()) {
79677 PyErr_SetString(PyExc_ValueError,
"Big-endian buffer not supported on little-endian compiler");
79680 ctx->new_packmode =
'=';
79686 ctx->new_packmode = *ts++;
79690 const char* ts_after_sub;
79691 size_t i, struct_count = ctx->new_count;
79692 size_t struct_alignment = ctx->struct_alignment;
79693 ctx->new_count = 1;
79696 PyErr_SetString(PyExc_ValueError,
"Buffer acquisition: Expected '{' after 'T'");
79699 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79701 ctx->enc_count = 0;
79702 ctx->struct_alignment = 0;
79705 for (i = 0; i != struct_count; ++i) {
79706 ts_after_sub = __Pyx_BufFmt_CheckString(ctx, ts);
79707 if (!ts_after_sub)
return NULL;
79710 if (struct_alignment) ctx->struct_alignment = struct_alignment;
79715 size_t alignment = ctx->struct_alignment;
79717 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79719 if (alignment && ctx->fmt_offset % alignment) {
79720 ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
79725 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79726 ctx->fmt_offset += ctx->new_count;
79727 ctx->new_count = 1;
79728 ctx->enc_count = 0;
79730 ctx->enc_packmode = ctx->new_packmode;
79736 if (*ts !=
'f' && *ts !=
'd' && *ts !=
'g') {
79737 __Pyx_BufFmt_RaiseUnexpectedChar(
'Z');
79740 CYTHON_FALLTHROUGH;
79741 case '?':
case 'c':
case 'b':
case 'B':
case 'h':
case 'H':
case 'i':
case 'I':
79742 case 'l':
case 'L':
case 'q':
case 'Q':
79743 case 'f':
case 'd':
case 'g':
79744 case 'O':
case 'p':
79745 if ((ctx->enc_type == *ts) && (got_Z == ctx->is_complex) &&
79746 (ctx->enc_packmode == ctx->new_packmode) && (!ctx->is_valid_array)) {
79747 ctx->enc_count += ctx->new_count;
79748 ctx->new_count = 1;
79753 CYTHON_FALLTHROUGH;
79755 if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1)
return NULL;
79756 ctx->enc_count = ctx->new_count;
79757 ctx->enc_packmode = ctx->new_packmode;
79758 ctx->enc_type = *ts;
79759 ctx->is_complex = got_Z;
79761 ctx->new_count = 1;
79766 while(*ts !=
':') ++ts;
79770 if (!__pyx_buffmt_parse_array(ctx, &ts))
return NULL;
79774 int number = __Pyx_BufFmt_ExpectNumber(&ts);
79775 if (
number == -1)
return NULL;
79776 ctx->new_count = (size_t)
number;
79784 __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b)
79791 if (a->size != b->size || a->typegroup != b->typegroup ||
79792 a->is_unsigned != b->is_unsigned || a->ndim != b->ndim) {
79793 if (a->typegroup ==
'H' || b->typegroup ==
'H') {
79794 return a->size == b->size;
79800 for (i = 0; i < a->ndim; i++)
79801 if (a->arraysize[i] != b->arraysize[i])
79804 if (a->typegroup ==
'S') {
79805 if (a->flags != b->flags)
79807 if (a->fields || b->fields) {
79808 if (!(a->fields && b->fields))
79810 for (i = 0; a->fields[i].type && b->fields[i].type; i++) {
79811 __Pyx_StructField *field_a = a->fields + i;
79812 __Pyx_StructField *field_b = b->fields + i;
79813 if (field_a->offset != field_b->offset ||
79814 !__pyx_typeinfo_cmp(field_a->type, field_b->type))
79817 return !a->fields[i].type && !b->fields[i].type;
79825 __pyx_check_strides(Py_buffer *buf,
int dim,
int ndim,
int spec)
79827 if (buf->shape[dim] <= 1)
79829 if (buf->strides) {
79830 if (spec & __Pyx_MEMVIEW_CONTIG) {
79831 if (spec & (__Pyx_MEMVIEW_PTR|__Pyx_MEMVIEW_FULL)) {
79832 if (unlikely(buf->strides[dim] !=
sizeof(
void *))) {
79833 PyErr_Format(PyExc_ValueError,
79834 "Buffer is not indirectly contiguous "
79835 "in dimension %d.", dim);
79838 }
else if (unlikely(buf->strides[dim] != buf->itemsize)) {
79839 PyErr_SetString(PyExc_ValueError,
79840 "Buffer and memoryview are not contiguous "
79841 "in the same dimension.");
79845 if (spec & __Pyx_MEMVIEW_FOLLOW) {
79846 Py_ssize_t stride = buf->strides[dim];
79849 if (unlikely(stride < buf->itemsize)) {
79850 PyErr_SetString(PyExc_ValueError,
79851 "Buffer and memoryview are not contiguous "
79852 "in the same dimension.");
79857 if (unlikely(spec & __Pyx_MEMVIEW_CONTIG && dim != ndim - 1)) {
79858 PyErr_Format(PyExc_ValueError,
79859 "C-contiguous buffer is not contiguous in "
79860 "dimension %d", dim);
79862 }
else if (unlikely(spec & (__Pyx_MEMVIEW_PTR))) {
79863 PyErr_Format(PyExc_ValueError,
79864 "C-contiguous buffer is not indirect in "
79865 "dimension %d", dim);
79867 }
else if (unlikely(buf->suboffsets)) {
79868 PyErr_SetString(PyExc_ValueError,
79869 "Buffer exposes suboffsets but no strides");
79878 __pyx_check_suboffsets(Py_buffer *buf,
int dim, CYTHON_UNUSED
int ndim,
int spec)
79880 if (spec & __Pyx_MEMVIEW_DIRECT) {
79881 if (unlikely(buf->suboffsets && buf->suboffsets[dim] >= 0)) {
79882 PyErr_Format(PyExc_ValueError,
79883 "Buffer not compatible with direct access "
79884 "in dimension %d.", dim);
79888 if (spec & __Pyx_MEMVIEW_PTR) {
79889 if (unlikely(!buf->suboffsets || (buf->suboffsets[dim] < 0))) {
79890 PyErr_Format(PyExc_ValueError,
79891 "Buffer is not indirectly accessible "
79892 "in dimension %d.", dim);
79901 __pyx_verify_contig(Py_buffer *buf,
int ndim,
int c_or_f_flag)
79904 if (c_or_f_flag & __Pyx_IS_F_CONTIG) {
79905 Py_ssize_t stride = 1;
79906 for (i = 0; i < ndim; i++) {
79907 if (unlikely(stride * buf->itemsize != buf->strides[i] && buf->shape[i] > 1)) {
79908 PyErr_SetString(PyExc_ValueError,
79909 "Buffer not fortran contiguous.");
79912 stride = stride * buf->shape[i];
79914 }
else if (c_or_f_flag & __Pyx_IS_C_CONTIG) {
79915 Py_ssize_t stride = 1;
79916 for (i = ndim - 1; i >- 1; i--) {
79917 if (unlikely(stride * buf->itemsize != buf->strides[i] && buf->shape[i] > 1)) {
79918 PyErr_SetString(PyExc_ValueError,
79919 "Buffer not C contiguous.");
79922 stride = stride * buf->shape[i];
79929 static int __Pyx_ValidateAndInit_memviewslice(
79934 __Pyx_TypeInfo *dtype,
79935 __Pyx_BufFmt_StackElem stack[],
79936 __Pyx_memviewslice *memviewslice,
79937 PyObject *original_obj)
79939 struct __pyx_memoryview_obj *memview, *new_memview;
79940 __Pyx_RefNannyDeclarations
79942 int i, spec = 0, retval = -1;
79943 __Pyx_BufFmt_Context ctx;
79944 int from_memoryview = __pyx_memoryview_check(original_obj);
79945 __Pyx_RefNannySetupContext(
"ValidateAndInit_memviewslice", 0);
79946 if (from_memoryview && __pyx_typeinfo_cmp(dtype, ((
struct __pyx_memoryview_obj *)
79947 original_obj)->typeinfo)) {
79948 memview = (
struct __pyx_memoryview_obj *) original_obj;
79949 new_memview = NULL;
79951 memview = (
struct __pyx_memoryview_obj *) __pyx_memoryview_new(
79952 original_obj, buf_flags, 0, dtype);
79953 new_memview = memview;
79954 if (unlikely(!memview))
79957 buf = &memview->view;
79958 if (unlikely(buf->ndim != ndim)) {
79959 PyErr_Format(PyExc_ValueError,
79960 "Buffer has wrong number of dimensions (expected %d, got %d)",
79965 __Pyx_BufFmt_Init(&ctx, stack, dtype);
79966 if (unlikely(!__Pyx_BufFmt_CheckString(&ctx, buf->format)))
goto fail;
79968 if (unlikely((
unsigned) buf->itemsize != dtype->size)) {
79969 PyErr_Format(PyExc_ValueError,
79970 "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T
"u byte%s) "
79971 "does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T
"u byte%s)",
79973 (buf->itemsize > 1) ?
"s" :
"",
79976 (dtype->size > 1) ?
"s" :
"");
79979 if (buf->len > 0) {
79980 for (i = 0; i < ndim; i++) {
79981 spec = axes_specs[i];
79982 if (unlikely(!__pyx_check_strides(buf, i, ndim, spec)))
79984 if (unlikely(!__pyx_check_suboffsets(buf, i, ndim, spec)))
79987 if (unlikely(buf->strides && !__pyx_verify_contig(buf, ndim, c_or_f_flag)))
79990 if (unlikely(__Pyx_init_memviewslice(memview, ndim, memviewslice,
79991 new_memview != NULL) == -1)) {
79997 Py_XDECREF(new_memview);
80000 __Pyx_RefNannyFinishContext();
80005 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_double(PyObject *obj,
int writable_flag) {
80006 __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
80007 __Pyx_BufFmt_StackElem stack[1];
80008 int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
80010 if (obj == Py_None) {
80011 result.memview = (
struct __pyx_memoryview_obj *) Py_None;
80014 retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
80015 PyBUF_RECORDS_RO | writable_flag, 1,
80016 &__Pyx_TypeInfo_double, stack,
80018 if (unlikely(retcode == -1))
80022 result.memview = NULL;
80023 result.data = NULL;
80028 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsds_double(PyObject *obj,
int writable_flag) {
80029 __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
80030 __Pyx_BufFmt_StackElem stack[1];
80031 int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
80033 if (obj == Py_None) {
80034 result.memview = (
struct __pyx_memoryview_obj *) Py_None;
80037 retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
80038 PyBUF_RECORDS_RO | writable_flag, 2,
80039 &__Pyx_TypeInfo_double, stack,
80041 if (unlikely(retcode == -1))
80045 result.memview = NULL;
80046 result.data = NULL;
80051 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
80052 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
80053 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
80054 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
80055 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
80057 func_type value = func_value;\
80058 if (sizeof(target_type) < sizeof(func_type)) {\
80059 if (unlikely(value != (func_type) (target_type) value)) {\
80060 func_type zero = 0;\
80061 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
80062 return (target_type) -1;\
80063 if (is_unsigned && unlikely(value < zero))\
80064 goto raise_neg_overflow;\
80066 goto raise_overflow;\
80069 return (target_type) value;\
80073 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dsdsds_double(PyObject *obj,
int writable_flag) {
80074 __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
80075 __Pyx_BufFmt_StackElem stack[1];
80076 int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED), (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
80078 if (obj == Py_None) {
80079 result.memview = (
struct __pyx_memoryview_obj *) Py_None;
80082 retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
80083 PyBUF_RECORDS_RO | writable_flag, 3,
80084 &__Pyx_TypeInfo_double, stack,
80086 if (unlikely(retcode == -1))
80090 result.memview = NULL;
80091 result.data = NULL;
80096 static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_ds_int(PyObject *obj,
int writable_flag) {
80097 __Pyx_memviewslice result = { 0, 0, { 0 }, { 0 }, { 0 } };
80098 __Pyx_BufFmt_StackElem stack[1];
80099 int axes_specs[] = { (__Pyx_MEMVIEW_DIRECT | __Pyx_MEMVIEW_STRIDED) };
80101 if (obj == Py_None) {
80102 result.memview = (
struct __pyx_memoryview_obj *) Py_None;
80105 retcode = __Pyx_ValidateAndInit_memviewslice(axes_specs, 0,
80106 PyBUF_RECORDS_RO | writable_flag, 1,
80107 &__Pyx_TypeInfo_int, stack,
80109 if (unlikely(retcode == -1))
80113 result.memview = NULL;
80114 result.data = NULL;
80119 #if CYTHON_CCOMPLEX
80121 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
80122 return ::std::complex< float >(x, y);
80125 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
80126 return x + y*(__pyx_t_float_complex)_Complex_I;
80130 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
80131 __pyx_t_float_complex
z;
80139 #if CYTHON_CCOMPLEX
80141 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80142 return (a.real == b.real) && (a.imag == b.imag);
80144 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80145 __pyx_t_float_complex
z;
80146 z.real = a.real + b.real;
80147 z.imag = a.imag + b.imag;
80150 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80151 __pyx_t_float_complex
z;
80152 z.real = a.real - b.real;
80153 z.imag = a.imag - b.imag;
80156 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80157 __pyx_t_float_complex
z;
80158 z.real = a.real * b.real - a.imag * b.imag;
80159 z.imag = a.real * b.imag + a.imag * b.real;
80163 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80165 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
80166 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
80167 if (b.real == 0 && b.imag == 0) {
80168 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
80170 float r = b.imag / b.real;
80171 float s = (float)(1.0) / (b.real + b.imag *
r);
80172 return __pyx_t_float_complex_from_parts(
80173 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
80176 float r = b.real / b.imag;
80177 float s = (float)(1.0) / (b.imag + b.real *
r);
80178 return __pyx_t_float_complex_from_parts(
80179 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
80183 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80185 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
80187 float denom = b.real * b.real + b.imag * b.imag;
80188 return __pyx_t_float_complex_from_parts(
80189 (a.real * b.real + a.imag * b.imag) / denom,
80190 (a.imag * b.real - a.real * b.imag) / denom);
80194 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
80195 __pyx_t_float_complex
z;
80200 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
80201 return (a.real == 0) && (a.imag == 0);
80203 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
80204 __pyx_t_float_complex
z;
80210 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
80211 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
80212 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
80214 return hypotf(
z.real,
z.imag);
80217 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
80218 __pyx_t_float_complex
z;
80219 float r, lnr, theta, z_r, z_theta;
80220 if (b.imag == 0 && b.real == (
int)b.real) {
80222 float denom = a.real * a.real + a.imag * a.imag;
80223 a.real = a.real / denom;
80224 a.imag = -a.imag / denom;
80227 switch ((
int)b.real) {
80235 return __Pyx_c_prod_float(a, a);
80237 z = __Pyx_c_prod_float(a, a);
80238 return __Pyx_c_prod_float(
z, a);
80240 z = __Pyx_c_prod_float(a, a);
80241 return __Pyx_c_prod_float(
z,
z);
80247 }
else if (b.imag == 0) {
80248 z.real = powf(a.real, b.real);
80251 }
else if (a.real > 0) {
80256 theta = atan2f(0.0, -1.0);
80259 r = __Pyx_c_abs_float(a);
80260 theta = atan2f(a.imag, a.real);
80263 z_r = expf(lnr * b.real - theta * b.imag);
80264 z_theta = theta * b.real + lnr * b.imag;
80265 z.real = z_r * cosf(z_theta);
80266 z.imag = z_r * sinf(z_theta);
80273 #if CYTHON_CCOMPLEX
80275 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
80276 return ::std::complex< double >(x, y);
80279 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
80280 return x + y*(__pyx_t_double_complex)_Complex_I;
80284 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
80285 __pyx_t_double_complex
z;
80293 #if CYTHON_CCOMPLEX
80295 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80296 return (a.real == b.real) && (a.imag == b.imag);
80298 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80299 __pyx_t_double_complex
z;
80300 z.real = a.real + b.real;
80301 z.imag = a.imag + b.imag;
80304 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80305 __pyx_t_double_complex
z;
80306 z.real = a.real - b.real;
80307 z.imag = a.imag - b.imag;
80310 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80311 __pyx_t_double_complex
z;
80312 z.real = a.real * b.real - a.imag * b.imag;
80313 z.imag = a.real * b.imag + a.imag * b.real;
80317 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80319 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
80320 }
else if (fabs(b.real) >= fabs(b.imag)) {
80321 if (b.real == 0 && b.imag == 0) {
80322 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
80324 double r = b.imag / b.real;
80325 double s = (double)(1.0) / (b.real + b.imag *
r);
80326 return __pyx_t_double_complex_from_parts(
80327 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
80330 double r = b.real / b.imag;
80331 double s = (double)(1.0) / (b.imag + b.real *
r);
80332 return __pyx_t_double_complex_from_parts(
80333 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
80337 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80339 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
80341 double denom = b.real * b.real + b.imag * b.imag;
80342 return __pyx_t_double_complex_from_parts(
80343 (a.real * b.real + a.imag * b.imag) / denom,
80344 (a.imag * b.real - a.real * b.imag) / denom);
80348 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
80349 __pyx_t_double_complex
z;
80354 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
80355 return (a.real == 0) && (a.imag == 0);
80357 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
80358 __pyx_t_double_complex
z;
80364 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
80365 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
80366 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
80368 return hypot(
z.real,
z.imag);
80371 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
80372 __pyx_t_double_complex
z;
80373 double r, lnr, theta, z_r, z_theta;
80374 if (b.imag == 0 && b.real == (
int)b.real) {
80376 double denom = a.real * a.real + a.imag * a.imag;
80377 a.real = a.real / denom;
80378 a.imag = -a.imag / denom;
80381 switch ((
int)b.real) {
80389 return __Pyx_c_prod_double(a, a);
80391 z = __Pyx_c_prod_double(a, a);
80392 return __Pyx_c_prod_double(
z, a);
80394 z = __Pyx_c_prod_double(a, a);
80395 return __Pyx_c_prod_double(
z,
z);
80401 }
else if (b.imag == 0) {
80402 z.real = pow(a.real, b.real);
80405 }
else if (a.real > 0) {
80410 theta = atan2(0.0, -1.0);
80413 r = __Pyx_c_abs_double(a);
80414 theta = atan2(a.imag, a.real);
80417 z_r = exp(lnr * b.real - theta * b.imag);
80418 z_theta = theta * b.real + lnr * b.imag;
80419 z.real = z_r * cos(z_theta);
80420 z.imag = z_r * sin(z_theta);
80427 static __Pyx_memviewslice
80428 __pyx_memoryview_copy_new_contig(
const __Pyx_memviewslice *from_mvs,
80429 const char *mode,
int ndim,
80430 size_t sizeof_dtype,
int contig_flag,
80431 int dtype_is_object)
80433 __Pyx_RefNannyDeclarations
80435 __Pyx_memviewslice new_mvs = { 0, 0, { 0 }, { 0 }, { 0 } };
80436 struct __pyx_memoryview_obj *from_memview = from_mvs->memview;
80437 Py_buffer *buf = &from_memview->view;
80438 PyObject *shape_tuple = NULL;
80439 PyObject *temp_int = NULL;
80440 struct __pyx_array_obj *array_obj = NULL;
80441 struct __pyx_memoryview_obj *memview_obj = NULL;
80442 __Pyx_RefNannySetupContext(
"__pyx_memoryview_copy_new_contig", 0);
80443 for (i = 0; i < ndim; i++) {
80444 if (unlikely(from_mvs->suboffsets[i] >= 0)) {
80445 PyErr_Format(PyExc_ValueError,
"Cannot copy memoryview slice with "
80446 "indirect dimensions (axis %d)", i);
80450 shape_tuple = PyTuple_New(ndim);
80451 if (unlikely(!shape_tuple)) {
80454 __Pyx_GOTREF(shape_tuple);
80455 for(i = 0; i < ndim; i++) {
80456 temp_int = PyInt_FromSsize_t(from_mvs->shape[i]);
80457 if(unlikely(!temp_int)) {
80460 PyTuple_SET_ITEM(shape_tuple, i, temp_int);
80464 array_obj = __pyx_array_new(shape_tuple, sizeof_dtype, buf->format, (
char *) mode, NULL);
80465 if (unlikely(!array_obj)) {
80468 __Pyx_GOTREF(array_obj);
80469 memview_obj = (
struct __pyx_memoryview_obj *) __pyx_memoryview_new(
80470 (PyObject *) array_obj, contig_flag,
80472 from_mvs->memview->typeinfo);
80473 if (unlikely(!memview_obj))
80475 if (unlikely(__Pyx_init_memviewslice(memview_obj, ndim, &new_mvs, 1) < 0))
80477 if (unlikely(__pyx_memoryview_copy_contents(*from_mvs, new_mvs, ndim, ndim,
80478 dtype_is_object) < 0))
80482 __Pyx_XDECREF(new_mvs.memview);
80483 new_mvs.memview = NULL;
80484 new_mvs.data = NULL;
80486 __Pyx_XDECREF(shape_tuple);
80487 __Pyx_XDECREF(temp_int);
80488 __Pyx_XDECREF(array_obj);
80489 __Pyx_RefNannyFinishContext();
80494 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value) {
80495 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80496 #pragma GCC diagnostic push
80497 #pragma GCC diagnostic ignored "-Wconversion"
80499 const int neg_one = (int) -1, const_zero = (
int) 0;
80500 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80501 #pragma GCC diagnostic pop
80503 const int is_unsigned = neg_one > const_zero;
80505 if (
sizeof(
int) <
sizeof(long)) {
80506 return PyInt_FromLong((
long) value);
80507 }
else if (
sizeof(
int) <=
sizeof(
unsigned long)) {
80508 return PyLong_FromUnsignedLong((
unsigned long) value);
80509 #ifdef HAVE_LONG_LONG
80510 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
80511 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
80515 if (
sizeof(
int) <=
sizeof(
long)) {
80516 return PyInt_FromLong((
long) value);
80517 #ifdef HAVE_LONG_LONG
80518 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
80519 return PyLong_FromLongLong((PY_LONG_LONG) value);
80524 int one = 1;
int little = (int)*(
unsigned char *)&one;
80525 unsigned char *bytes = (
unsigned char *)&value;
80526 return _PyLong_FromByteArray(bytes,
sizeof(
int),
80527 little, !is_unsigned);
80532 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
80533 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80534 #pragma GCC diagnostic push
80535 #pragma GCC diagnostic ignored "-Wconversion"
80537 const int neg_one = (int) -1, const_zero = (
int) 0;
80538 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80539 #pragma GCC diagnostic pop
80541 const int is_unsigned = neg_one > const_zero;
80542 #if PY_MAJOR_VERSION < 3
80543 if (likely(PyInt_Check(x))) {
80544 if (
sizeof(
int) <
sizeof(long)) {
80545 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
80547 long val = PyInt_AS_LONG(x);
80548 if (is_unsigned && unlikely(val < 0)) {
80549 goto raise_neg_overflow;
80555 if (likely(PyLong_Check(x))) {
80557 #if CYTHON_USE_PYLONG_INTERNALS
80558 const digit* digits = ((PyLongObject*)x)->ob_digit;
80559 switch (Py_SIZE(x)) {
80560 case 0:
return (
int) 0;
80561 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
80563 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
80564 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80565 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80566 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
80567 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
80572 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
80573 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80574 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80575 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
80576 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
80581 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
80582 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80583 __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])))
80584 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
80585 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
80591 #if CYTHON_COMPILING_IN_CPYTHON
80592 if (unlikely(Py_SIZE(x) < 0)) {
80593 goto raise_neg_overflow;
80597 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
80598 if (unlikely(result < 0))
80600 if (unlikely(result == 1))
80601 goto raise_neg_overflow;
80604 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
80605 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
80606 #ifdef HAVE_LONG_LONG
80607 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
80608 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
80612 #if CYTHON_USE_PYLONG_INTERNALS
80613 const digit* digits = ((PyLongObject*)x)->ob_digit;
80614 switch (Py_SIZE(x)) {
80615 case 0:
return (
int) 0;
80616 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
80617 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
80619 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
80620 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80621 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80622 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
80623 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
80628 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
80629 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80630 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80631 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
80632 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
80637 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
80638 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80639 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80640 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
80641 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
80646 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
80647 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80648 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80649 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
80650 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
80655 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
80656 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80657 __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])))
80658 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
80659 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
80664 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
80665 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80666 __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])))
80667 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
80668 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
80674 if (
sizeof(
int) <=
sizeof(long)) {
80675 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
80676 #ifdef HAVE_LONG_LONG
80677 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
80678 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
80683 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
80684 PyErr_SetString(PyExc_RuntimeError,
80685 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
80688 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
80689 #if PY_MAJOR_VERSION < 3
80690 if (likely(
v) && !PyLong_Check(
v)) {
80692 v = PyNumber_Long(tmp);
80697 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
80698 unsigned char *bytes = (
unsigned char *)&val;
80699 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
80700 bytes,
sizeof(val),
80701 is_little, !is_unsigned);
80711 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
80712 if (!tmp)
return (
int) -1;
80713 val = __Pyx_PyInt_As_int(tmp);
80718 PyErr_SetString(PyExc_OverflowError,
80719 "value too large to convert to int");
80721 raise_neg_overflow:
80722 PyErr_SetString(PyExc_OverflowError,
80723 "can't convert negative value to int");
80728 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
80729 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80730 #pragma GCC diagnostic push
80731 #pragma GCC diagnostic ignored "-Wconversion"
80733 const long neg_one = (long) -1, const_zero = (
long) 0;
80734 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80735 #pragma GCC diagnostic pop
80737 const int is_unsigned = neg_one > const_zero;
80738 #if PY_MAJOR_VERSION < 3
80739 if (likely(PyInt_Check(x))) {
80740 if (
sizeof(
long) <
sizeof(long)) {
80741 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
80743 long val = PyInt_AS_LONG(x);
80744 if (is_unsigned && unlikely(val < 0)) {
80745 goto raise_neg_overflow;
80751 if (likely(PyLong_Check(x))) {
80753 #if CYTHON_USE_PYLONG_INTERNALS
80754 const digit* digits = ((PyLongObject*)x)->ob_digit;
80755 switch (Py_SIZE(x)) {
80756 case 0:
return (
long) 0;
80757 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
80759 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
80760 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80761 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80762 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
80763 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
80768 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
80769 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80770 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80771 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
80772 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
80777 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
80778 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80779 __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])))
80780 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
80781 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
80787 #if CYTHON_COMPILING_IN_CPYTHON
80788 if (unlikely(Py_SIZE(x) < 0)) {
80789 goto raise_neg_overflow;
80793 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
80794 if (unlikely(result < 0))
80796 if (unlikely(result == 1))
80797 goto raise_neg_overflow;
80800 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
80801 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
80802 #ifdef HAVE_LONG_LONG
80803 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
80804 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
80808 #if CYTHON_USE_PYLONG_INTERNALS
80809 const digit* digits = ((PyLongObject*)x)->ob_digit;
80810 switch (Py_SIZE(x)) {
80811 case 0:
return (
long) 0;
80812 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
80813 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
80815 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
80816 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80817 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80818 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
80819 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
80824 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
80825 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
80826 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80827 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
80828 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
80833 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
80834 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80835 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80836 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
80837 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
80842 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
80843 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
80844 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
80845 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
80846 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
80851 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
80852 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80853 __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])))
80854 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
80855 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
80860 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
80861 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
80862 __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])))
80863 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
80864 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
80870 if (
sizeof(
long) <=
sizeof(long)) {
80871 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
80872 #ifdef HAVE_LONG_LONG
80873 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
80874 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
80879 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
80880 PyErr_SetString(PyExc_RuntimeError,
80881 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
80884 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
80885 #if PY_MAJOR_VERSION < 3
80886 if (likely(
v) && !PyLong_Check(
v)) {
80888 v = PyNumber_Long(tmp);
80893 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
80894 unsigned char *bytes = (
unsigned char *)&val;
80895 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
80896 bytes,
sizeof(val),
80897 is_little, !is_unsigned);
80907 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
80908 if (!tmp)
return (
long) -1;
80909 val = __Pyx_PyInt_As_long(tmp);
80914 PyErr_SetString(PyExc_OverflowError,
80915 "value too large to convert to long");
80917 raise_neg_overflow:
80918 PyErr_SetString(PyExc_OverflowError,
80919 "can't convert negative value to long");
80924 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
80925 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80926 #pragma GCC diagnostic push
80927 #pragma GCC diagnostic ignored "-Wconversion"
80929 const long neg_one = (long) -1, const_zero = (
long) 0;
80930 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
80931 #pragma GCC diagnostic pop
80933 const int is_unsigned = neg_one > const_zero;
80935 if (
sizeof(
long) <
sizeof(long)) {
80936 return PyInt_FromLong((
long) value);
80937 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
80938 return PyLong_FromUnsignedLong((
unsigned long) value);
80939 #ifdef HAVE_LONG_LONG
80940 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
80941 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
80945 if (
sizeof(
long) <=
sizeof(
long)) {
80946 return PyInt_FromLong((
long) value);
80947 #ifdef HAVE_LONG_LONG
80948 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
80949 return PyLong_FromLongLong((PY_LONG_LONG) value);
80954 int one = 1;
int little = (int)*(
unsigned char *)&one;
80955 unsigned char *bytes = (
unsigned char *)&value;
80956 return _PyLong_FromByteArray(bytes,
sizeof(
long),
80957 little, !is_unsigned);
80962 static struct __pyx_typeinfo_string __Pyx_TypeInfoToFormat(__Pyx_TypeInfo *type) {
80963 struct __pyx_typeinfo_string result = { {0} };
80964 char *buf = (
char *) result.string;
80965 size_t size = type->size;
80966 switch (type->typegroup) {
80973 *buf = (type->is_unsigned) ?
'B' :
'b';
80974 else if (size == 2)
80975 *buf = (type->is_unsigned) ?
'H' :
'h';
80976 else if (size == 4)
80977 *buf = (type->is_unsigned) ?
'I' :
'i';
80978 else if (size == 8)
80979 *buf = (type->is_unsigned) ?
'Q' :
'q';
80986 __Pyx_TypeInfo complex_type = *type;
80987 complex_type.typegroup =
'R';
80988 complex_type.size /= 2;
80990 *buf = __Pyx_TypeInfoToFormat(&complex_type).string[0];
80996 else if (size == 8)
81006 static CYTHON_INLINE
size_t __Pyx_PyInt_As_size_t(PyObject *x) {
81007 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
81008 #pragma GCC diagnostic push
81009 #pragma GCC diagnostic ignored "-Wconversion"
81011 const size_t neg_one = (size_t) -1, const_zero = (
size_t) 0;
81012 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
81013 #pragma GCC diagnostic pop
81015 const int is_unsigned = neg_one > const_zero;
81016 #if PY_MAJOR_VERSION < 3
81017 if (likely(PyInt_Check(x))) {
81018 if (
sizeof(
size_t) <
sizeof(long)) {
81019 __PYX_VERIFY_RETURN_INT(
size_t,
long, PyInt_AS_LONG(x))
81021 long val = PyInt_AS_LONG(x);
81022 if (is_unsigned && unlikely(val < 0)) {
81023 goto raise_neg_overflow;
81025 return (
size_t) val;
81029 if (likely(PyLong_Check(x))) {
81031 #if CYTHON_USE_PYLONG_INTERNALS
81032 const digit* digits = ((PyLongObject*)x)->ob_digit;
81033 switch (Py_SIZE(x)) {
81034 case 0:
return (
size_t) 0;
81035 case 1: __PYX_VERIFY_RETURN_INT(
size_t, digit, digits[0])
81037 if (8 *
sizeof(
size_t) > 1 * PyLong_SHIFT) {
81038 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81039 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81040 }
else if (8 *
sizeof(
size_t) >= 2 * PyLong_SHIFT) {
81041 return (
size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
81046 if (8 *
sizeof(
size_t) > 2 * PyLong_SHIFT) {
81047 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81048 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81049 }
else if (8 *
sizeof(
size_t) >= 3 * PyLong_SHIFT) {
81050 return (
size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
81055 if (8 *
sizeof(
size_t) > 3 * PyLong_SHIFT) {
81056 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81057 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81058 }
else if (8 *
sizeof(
size_t) >= 4 * PyLong_SHIFT) {
81059 return (
size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
81065 #if CYTHON_COMPILING_IN_CPYTHON
81066 if (unlikely(Py_SIZE(x) < 0)) {
81067 goto raise_neg_overflow;
81071 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
81072 if (unlikely(result < 0))
81073 return (
size_t) -1;
81074 if (unlikely(result == 1))
81075 goto raise_neg_overflow;
81078 if (
sizeof(
size_t) <=
sizeof(
unsigned long)) {
81079 __PYX_VERIFY_RETURN_INT_EXC(
size_t,
unsigned long, PyLong_AsUnsignedLong(x))
81080 #ifdef HAVE_LONG_LONG
81081 }
else if (
sizeof(
size_t) <=
sizeof(
unsigned PY_LONG_LONG)) {
81082 __PYX_VERIFY_RETURN_INT_EXC(
size_t,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
81086 #if CYTHON_USE_PYLONG_INTERNALS
81087 const digit* digits = ((PyLongObject*)x)->ob_digit;
81088 switch (Py_SIZE(x)) {
81089 case 0:
return (
size_t) 0;
81090 case -1: __PYX_VERIFY_RETURN_INT(
size_t, sdigit, (sdigit) (-(sdigit)digits[0]))
81091 case 1: __PYX_VERIFY_RETURN_INT(
size_t, digit, +digits[0])
81093 if (8 *
sizeof(
size_t) - 1 > 1 * PyLong_SHIFT) {
81094 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81095 __PYX_VERIFY_RETURN_INT(
size_t,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81096 }
else if (8 *
sizeof(
size_t) - 1 > 2 * PyLong_SHIFT) {
81097 return (
size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0])));
81102 if (8 *
sizeof(
size_t) > 1 * PyLong_SHIFT) {
81103 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81104 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81105 }
else if (8 *
sizeof(
size_t) - 1 > 2 * PyLong_SHIFT) {
81106 return (
size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0])));
81111 if (8 *
sizeof(
size_t) - 1 > 2 * PyLong_SHIFT) {
81112 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81113 __PYX_VERIFY_RETURN_INT(
size_t,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81114 }
else if (8 *
sizeof(
size_t) - 1 > 3 * PyLong_SHIFT) {
81115 return (
size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
81120 if (8 *
sizeof(
size_t) > 2 * PyLong_SHIFT) {
81121 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81122 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81123 }
else if (8 *
sizeof(
size_t) - 1 > 3 * PyLong_SHIFT) {
81124 return (
size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
81129 if (8 *
sizeof(
size_t) - 1 > 3 * PyLong_SHIFT) {
81130 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81131 __PYX_VERIFY_RETURN_INT(
size_t,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81132 }
else if (8 *
sizeof(
size_t) - 1 > 4 * PyLong_SHIFT) {
81133 return (
size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0])));
81138 if (8 *
sizeof(
size_t) > 3 * PyLong_SHIFT) {
81139 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81140 __PYX_VERIFY_RETURN_INT(
size_t,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81141 }
else if (8 *
sizeof(
size_t) - 1 > 4 * PyLong_SHIFT) {
81142 return (
size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0])));
81148 if (
sizeof(
size_t) <=
sizeof(long)) {
81149 __PYX_VERIFY_RETURN_INT_EXC(
size_t,
long, PyLong_AsLong(x))
81150 #ifdef HAVE_LONG_LONG
81151 }
else if (
sizeof(
size_t) <=
sizeof(PY_LONG_LONG)) {
81152 __PYX_VERIFY_RETURN_INT_EXC(
size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
81157 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
81158 PyErr_SetString(PyExc_RuntimeError,
81159 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
81162 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
81163 #if PY_MAJOR_VERSION < 3
81164 if (likely(
v) && !PyLong_Check(
v)) {
81166 v = PyNumber_Long(tmp);
81171 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
81172 unsigned char *bytes = (
unsigned char *)&val;
81173 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
81174 bytes,
sizeof(val),
81175 is_little, !is_unsigned);
81181 return (
size_t) -1;
81185 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
81186 if (!tmp)
return (
size_t) -1;
81187 val = __Pyx_PyInt_As_size_t(tmp);
81192 PyErr_SetString(PyExc_OverflowError,
81193 "value too large to convert to size_t");
81194 return (
size_t) -1;
81195 raise_neg_overflow:
81196 PyErr_SetString(PyExc_OverflowError,
81197 "can't convert negative value to size_t");
81198 return (
size_t) -1;
81202 static CYTHON_INLINE
char __Pyx_PyInt_As_char(PyObject *x) {
81203 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
81204 #pragma GCC diagnostic push
81205 #pragma GCC diagnostic ignored "-Wconversion"
81207 const char neg_one = (char) -1, const_zero = (
char) 0;
81208 #ifdef __Pyx_HAS_GCC_DIAGNOSTIC
81209 #pragma GCC diagnostic pop
81211 const int is_unsigned = neg_one > const_zero;
81212 #if PY_MAJOR_VERSION < 3
81213 if (likely(PyInt_Check(x))) {
81214 if (
sizeof(
char) <
sizeof(long)) {
81215 __PYX_VERIFY_RETURN_INT(
char,
long, PyInt_AS_LONG(x))
81217 long val = PyInt_AS_LONG(x);
81218 if (is_unsigned && unlikely(val < 0)) {
81219 goto raise_neg_overflow;
81225 if (likely(PyLong_Check(x))) {
81227 #if CYTHON_USE_PYLONG_INTERNALS
81228 const digit* digits = ((PyLongObject*)x)->ob_digit;
81229 switch (Py_SIZE(x)) {
81230 case 0:
return (
char) 0;
81231 case 1: __PYX_VERIFY_RETURN_INT(
char, digit, digits[0])
81233 if (8 *
sizeof(
char) > 1 * PyLong_SHIFT) {
81234 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81235 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81236 }
else if (8 *
sizeof(
char) >= 2 * PyLong_SHIFT) {
81237 return (
char) (((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0]));
81242 if (8 *
sizeof(
char) > 2 * PyLong_SHIFT) {
81243 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81244 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81245 }
else if (8 *
sizeof(
char) >= 3 * PyLong_SHIFT) {
81246 return (
char) (((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
81251 if (8 *
sizeof(
char) > 3 * PyLong_SHIFT) {
81252 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81253 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81254 }
else if (8 *
sizeof(
char) >= 4 * PyLong_SHIFT) {
81255 return (
char) (((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0]));
81261 #if CYTHON_COMPILING_IN_CPYTHON
81262 if (unlikely(Py_SIZE(x) < 0)) {
81263 goto raise_neg_overflow;
81267 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
81268 if (unlikely(result < 0))
81270 if (unlikely(result == 1))
81271 goto raise_neg_overflow;
81274 if (
sizeof(
char) <=
sizeof(
unsigned long)) {
81275 __PYX_VERIFY_RETURN_INT_EXC(
char,
unsigned long, PyLong_AsUnsignedLong(x))
81276 #ifdef HAVE_LONG_LONG
81277 }
else if (
sizeof(
char) <=
sizeof(
unsigned PY_LONG_LONG)) {
81278 __PYX_VERIFY_RETURN_INT_EXC(
char,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
81282 #if CYTHON_USE_PYLONG_INTERNALS
81283 const digit* digits = ((PyLongObject*)x)->ob_digit;
81284 switch (Py_SIZE(x)) {
81285 case 0:
return (
char) 0;
81286 case -1: __PYX_VERIFY_RETURN_INT(
char, sdigit, (sdigit) (-(sdigit)digits[0]))
81287 case 1: __PYX_VERIFY_RETURN_INT(
char, digit, +digits[0])
81289 if (8 *
sizeof(
char) - 1 > 1 * PyLong_SHIFT) {
81290 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81291 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81292 }
else if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
81293 return (
char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
81298 if (8 *
sizeof(
char) > 1 * PyLong_SHIFT) {
81299 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
81300 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81301 }
else if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
81302 return (
char) ((((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
81307 if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
81308 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81309 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81310 }
else if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
81311 return (
char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
81316 if (8 *
sizeof(
char) > 2 * PyLong_SHIFT) {
81317 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
81318 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81319 }
else if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
81320 return (
char) ((((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
81325 if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
81326 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81327 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81328 }
else if (8 *
sizeof(
char) - 1 > 4 * PyLong_SHIFT) {
81329 return (
char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
81334 if (8 *
sizeof(
char) > 3 * PyLong_SHIFT) {
81335 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
81336 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
81337 }
else if (8 *
sizeof(
char) - 1 > 4 * PyLong_SHIFT) {
81338 return (
char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
81344 if (
sizeof(
char) <=
sizeof(long)) {
81345 __PYX_VERIFY_RETURN_INT_EXC(
char,
long, PyLong_AsLong(x))
81346 #ifdef HAVE_LONG_LONG
81347 }
else if (
sizeof(
char) <=
sizeof(PY_LONG_LONG)) {
81348 __PYX_VERIFY_RETURN_INT_EXC(
char, PY_LONG_LONG, PyLong_AsLongLong(x))
81353 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
81354 PyErr_SetString(PyExc_RuntimeError,
81355 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
81358 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
81359 #if PY_MAJOR_VERSION < 3
81360 if (likely(
v) && !PyLong_Check(
v)) {
81362 v = PyNumber_Long(tmp);
81367 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
81368 unsigned char *bytes = (
unsigned char *)&val;
81369 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
81370 bytes,
sizeof(val),
81371 is_little, !is_unsigned);
81381 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
81382 if (!tmp)
return (
char) -1;
81383 val = __Pyx_PyInt_As_char(tmp);
81388 PyErr_SetString(PyExc_OverflowError,
81389 "value too large to convert to char");
81391 raise_neg_overflow:
81392 PyErr_SetString(PyExc_OverflowError,
81393 "can't convert negative value to char");
81398 static int __Pyx_check_binary_version(
void) {
81400 int same=1, i, found_dot;
81401 const char* rt_from_call = Py_GetVersion();
81402 PyOS_snprintf(ctversion, 5,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
81404 for (i = 0; i < 4; i++) {
81405 if (!ctversion[i]) {
81406 same = (rt_from_call[i] <
'0' || rt_from_call[i] >
'9');
81409 if (rt_from_call[i] != ctversion[i]) {
81415 char rtversion[5] = {
'\0'};
81417 for (i=0; i<4; ++i) {
81418 if (rt_from_call[i] ==
'.') {
81419 if (found_dot)
break;
81421 }
else if (rt_from_call[i] <
'0' || rt_from_call[i] >
'9') {
81424 rtversion[i] = rt_from_call[i];
81426 PyOS_snprintf(message,
sizeof(message),
81427 "compiletime version %s of module '%.100s' "
81428 "does not match runtime version %s",
81429 ctversion, __Pyx_MODULE_NAME, rtversion);
81430 return PyErr_WarnEx(NULL, message, 1);
81436 static int __Pyx_ExportFunction(
const char *name,
void (*
f)(
void),
const char *sig) {
81438 PyObject *cobj = 0;
81443 d = PyObject_GetAttrString(__pyx_m, (
char *)
"__pyx_capi__");
81450 if (PyModule_AddObject(__pyx_m, (
char *)
"__pyx_capi__", d) < 0)
81454 #if PY_VERSION_HEX >= 0x02070000
81455 cobj = PyCapsule_New(tmp.p, sig, 0);
81457 cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (
void *)sig, 0);
81461 if (PyDict_SetItemString(d, name, cobj) < 0)
81473 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
81475 #if PY_MAJOR_VERSION < 3
81476 if (t->is_unicode) {
81477 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
81478 }
else if (t->intern) {
81479 *t->p = PyString_InternFromString(t->s);
81481 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
81484 if (t->is_unicode | t->is_str) {
81486 *t->p = PyUnicode_InternFromString(t->s);
81487 }
else if (t->encoding) {
81488 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
81490 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
81493 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
81498 if (PyObject_Hash(*t->p) == -1)
81505 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
81506 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
81508 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
81510 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
81512 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
81513 #if !CYTHON_PEP393_ENABLED
81514 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
81516 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
81517 if (!defenc)
return NULL;
81518 defenc_c = PyBytes_AS_STRING(defenc);
81519 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
81521 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
81523 for (
c = defenc_c;
c < end;
c++) {
81524 if ((
unsigned char) (*
c) >= 128) {
81525 PyUnicode_AsASCIIString(o);
81531 *length = PyBytes_GET_SIZE(defenc);
81535 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
81536 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
81537 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
81538 if (likely(PyUnicode_IS_ASCII(o))) {
81539 *length = PyUnicode_GET_LENGTH(o);
81540 return PyUnicode_AsUTF8(o);
81542 PyUnicode_AsASCIIString(o);
81546 return PyUnicode_AsUTF8AndSize(o, length);
81551 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
81552 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
81554 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
81555 __Pyx_sys_getdefaultencoding_not_ascii &&
81557 PyUnicode_Check(o)) {
81558 return __Pyx_PyUnicode_AsStringAndSize(o, length);
81561 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
81562 if (PyByteArray_Check(o)) {
81563 *length = PyByteArray_GET_SIZE(o);
81564 return PyByteArray_AS_STRING(o);
81569 int r = PyBytes_AsStringAndSize(o, &result, length);
81570 if (unlikely(
r < 0)) {
81577 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
81578 int is_true = x == Py_True;
81579 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
81580 else return PyObject_IsTrue(x);
81582 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
81584 if (unlikely(!x))
return -1;
81585 retval = __Pyx_PyObject_IsTrue(x);
81589 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
81590 #if PY_MAJOR_VERSION >= 3
81591 if (PyLong_Check(result)) {
81592 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
81593 "__int__ returned non-int (type %.200s). "
81594 "The ability to return an instance of a strict subclass of int "
81595 "is deprecated, and may be removed in a future version of Python.",
81596 Py_TYPE(result)->tp_name)) {
81603 PyErr_Format(PyExc_TypeError,
81604 "__%.4s__ returned non-%.4s (type %.200s)",
81605 type_name, type_name, Py_TYPE(result)->tp_name);
81609 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
81610 #if CYTHON_USE_TYPE_SLOTS
81611 PyNumberMethods *m;
81613 const char *name = NULL;
81614 PyObject *res = NULL;
81615 #if PY_MAJOR_VERSION < 3
81616 if (likely(PyInt_Check(x) || PyLong_Check(x)))
81618 if (likely(PyLong_Check(x)))
81620 return __Pyx_NewRef(x);
81621 #if CYTHON_USE_TYPE_SLOTS
81622 m = Py_TYPE(x)->tp_as_number;
81623 #if PY_MAJOR_VERSION < 3
81624 if (m && m->nb_int) {
81626 res = m->nb_int(x);
81628 else if (m && m->nb_long) {
81630 res = m->nb_long(x);
81633 if (likely(m && m->nb_int)) {
81635 res = m->nb_int(x);
81639 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
81640 res = PyNumber_Int(x);
81644 #if PY_MAJOR_VERSION < 3
81645 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
81647 if (unlikely(!PyLong_CheckExact(res))) {
81649 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
81652 else if (!PyErr_Occurred()) {
81653 PyErr_SetString(PyExc_TypeError,
81654 "an integer is required");
81658 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
81661 #if PY_MAJOR_VERSION < 3
81662 if (likely(PyInt_CheckExact(b))) {
81663 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
81664 return PyInt_AS_LONG(b);
81666 return PyInt_AsSsize_t(b);
81669 if (likely(PyLong_CheckExact(b))) {
81670 #if CYTHON_USE_PYLONG_INTERNALS
81671 const digit* digits = ((PyLongObject*)b)->ob_digit;
81672 const Py_ssize_t size = Py_SIZE(b);
81673 if (likely(__Pyx_sst_abs(size) <= 1)) {
81674 ival = likely(size) ? digits[0] : 0;
81675 if (size == -1) ival = -ival;
81680 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
81681 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
81685 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
81686 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
81690 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
81691 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
81695 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
81696 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
81700 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
81701 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]));
81705 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
81706 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]));
81712 return PyLong_AsSsize_t(b);
81714 x = PyNumber_Index(b);
81716 ival = PyInt_AsSsize_t(x);
81720 static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
81721 if (
sizeof(Py_hash_t) ==
sizeof(Py_ssize_t)) {
81722 return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
81723 #if PY_MAJOR_VERSION < 3
81724 }
else if (likely(PyInt_CheckExact(o))) {
81725 return PyInt_AS_LONG(o);
81730 x = PyNumber_Index(o);
81732 ival = PyInt_AsLong(x);
81737 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
81738 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
81740 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
81741 return PyInt_FromSize_t(ival);